@project-sunbird/collection-editor-react 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/framework.d.ts +17 -0
- package/dist/collection-editor.umd.js +93 -93
- package/dist/components/SparkMetaForm/hooks/emitTransform.d.ts +17 -0
- package/dist/components/SparkMetaForm/hooks/emitTransform.test.d.ts +1 -0
- package/dist/components/SparkMetaForm/hooks/useCascade.d.ts +12 -4
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.d.ts +33 -1
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.defaults.test.d.ts +1 -0
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.test.d.ts +1 -0
- package/dist/hooks/useFrameworkOptions.d.ts +20 -0
- package/dist/index.cjs +93 -93
- package/dist/index.js +6521 -6344
- package/dist/store/editor.store.d.ts +3 -0
- package/dist/types/framework.d.ts +7 -0
- package/package.json +1 -1
|
@@ -29,6 +29,8 @@ interface EditorState {
|
|
|
29
29
|
sourcingSettings: Record<string, unknown>;
|
|
30
30
|
} | null;
|
|
31
31
|
formStatusMapper: Record<string, boolean>;
|
|
32
|
+
contentFramework: string | null;
|
|
33
|
+
contentTargetFWIds: string[] | null;
|
|
32
34
|
setEditorConfig: (config: IEditorConfig) => void;
|
|
33
35
|
setEditorMode: (mode: EditorMode) => void;
|
|
34
36
|
setButtonLoader: (key: keyof IButtonLoaders, value: boolean) => void;
|
|
@@ -42,6 +44,7 @@ interface EditorState {
|
|
|
42
44
|
setLastSaved: (ts: string) => void;
|
|
43
45
|
setIsDirty: (dirty: boolean) => void;
|
|
44
46
|
setCategoryDefinition: (parsed: IParsedCategoryDefinition) => void;
|
|
47
|
+
setContentFramework: (framework: string | null, targetFWIds: string[] | null) => void;
|
|
45
48
|
setFormStatus: (nodeId: string, isValid: boolean) => void;
|
|
46
49
|
validateAllForms: (treeNodes: import('../types/editor').INode[]) => boolean;
|
|
47
50
|
}
|
|
@@ -3,6 +3,13 @@ export interface ITerm {
|
|
|
3
3
|
name: string;
|
|
4
4
|
code: string;
|
|
5
5
|
index?: number;
|
|
6
|
+
/** Framework category this term belongs to (e.g. 'board', 'medium').
|
|
7
|
+
* Association entries carry this so a parent term's associations can be
|
|
8
|
+
* filtered down to a single child category — mirrors Angular's
|
|
9
|
+
* `a.category === field.sourceCategory` filter. */
|
|
10
|
+
category?: string;
|
|
11
|
+
status?: string;
|
|
12
|
+
description?: string;
|
|
6
13
|
associations?: ITerm[];
|
|
7
14
|
}
|
|
8
15
|
export interface ICategory {
|