mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Refactor the skill editor state management from a standalone Zustand store with Context provider pattern to a slice injection pattern that integrates with the existing workflow store. This aligns with how rag-pipeline already injects its slice. - Remove SkillEditorProvider and SkillEditorContext - Export createSkillEditorSlice for injection into workflow store - Update all components to use useStore/useWorkflowStore from workflow store - Add SkillEditorSliceShape to SliceFromInjection union type - Use type-safe slice creator args without any types |
||
|---|---|---|
| .. | ||
| editor | ||
| file-tree | ||
| hooks | ||
| store | ||
| utils | ||
| editor-area.tsx | ||
| editor-body.tsx | ||
| editor-tab-item.tsx | ||
| editor-tabs.tsx | ||
| main.tsx | ||
| sidebar-search-add.tsx | ||
| sidebar.tsx | ||
| skill-doc-editor.tsx | ||
| skill-page-layout.tsx | ||
| type.ts | ||