@project-sunbird/sunbird-questionset-editor-web-component-react 0.1.16 → 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.
@@ -71,6 +71,7 @@ export interface SelectOption {
71
71
  value: string;
72
72
  label: string;
73
73
  }
74
+ export declare function adaptFieldsForFramework(fields: ICategoryField[], frameworkTerms: Map<string, FrameworkTerm[]> | undefined, categoryOrder: string[] | undefined, isRoot: boolean): ICategoryField[];
74
75
  export interface SingleSelectDropdownProps {
75
76
  fieldId: string;
76
77
  value: string;
@@ -24,3 +24,18 @@ export declare function useFramework(overrideFrameworkId?: string): {
24
24
  * taxonomy payload, same as this hook's frameworkTerms merge does).
25
25
  */
26
26
  export declare function resolveTargetFrameworkIds(): string[];
27
+ /**
28
+ * Every category code seen across ANY framework fetched this session (the
29
+ * query cache) — the full universe of fields a framework switch could ever
30
+ * have populated, not just the one framework being switched away from.
31
+ *
32
+ * Two frameworks can define the SAME category code with different terms
33
+ * (e.g. both TPD and USF using `industry`/`domain`/`skill`) — clearing only
34
+ * the outgoing framework's own codes leaves a shared code's VALUE sitting
35
+ * in state, so it silently reappears pre-filled the moment a framework that
36
+ * also has that code is selected, even though the user never entered it
37
+ * under the new framework. Clearing this entire known universe on every
38
+ * framework switch (ContextualEditor.tsx's handleFrameworkChange) — not
39
+ * just the outgoing framework's codes — guarantees no such carryover.
40
+ */
41
+ export declare function allKnownFrameworkCategoryCodes(): Set<string>;