@project-sunbird/collection-editor-react 0.1.28 → 0.1.30

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.
@@ -25,6 +25,8 @@ export interface PreparedField {
25
25
  depends?: string[];
26
26
  tab: 'details' | 'audience' | 'licensing';
27
27
  section?: string;
28
+ /** Framework category the field's options are sourced from (board/medium/…). */
29
+ sourceCategory?: string;
28
30
  defaultValue?: unknown;
29
31
  currentValue?: unknown;
30
32
  }
@@ -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;