@project-sunbird/collection-editor-react 0.1.28 → 0.1.29
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/collection-editor.umd.js +76 -76
- package/dist/hooks/resolveFrameworkIds.test.d.ts +1 -0
- package/dist/hooks/useEditorInit.d.ts +14 -0
- package/dist/index.cjs +83 -83
- package/dist/index.js +2786 -2749
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,20 @@ interface UseEditorInitOptions {
|
|
|
4
4
|
config: IEditorConfig;
|
|
5
5
|
onError?: (e: Error) => void;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Pure framework/target resolution — exported for tests.
|
|
9
|
+
*
|
|
10
|
+
* Priority: content metadata (existing content keeps the framework it was
|
|
11
|
+
* authored in) → channel defaultFramework (new/unpinned content follows the
|
|
12
|
+
* channel) → editorConfig context → null.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveFrameworkIds(meta: Record<string, unknown>, channelDefaultFramework: string | undefined, context: {
|
|
15
|
+
framework?: string;
|
|
16
|
+
targetFWIds?: string[];
|
|
17
|
+
}): {
|
|
18
|
+
framework: string | null;
|
|
19
|
+
targetFWIds: string[] | null;
|
|
20
|
+
};
|
|
7
21
|
export declare function useEditorInit({ config, onError }: UseEditorInitOptions): {
|
|
8
22
|
isLoading: boolean;
|
|
9
23
|
error: Error | null;
|