@project-sunbird/collection-editor-react 1.0.6 → 1.0.7
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 +108 -108
- package/dist/hooks/useSkillsCoveredSync.d.ts +9 -0
- package/dist/index.cjs +108 -108
- package/dist/index.js +2978 -2964
- package/dist/utils/lpStructure.d.ts +14 -0
- package/package.json +1 -1
|
@@ -125,6 +125,20 @@ export declare function computePathShape(root: INode | undefined): {
|
|
|
125
125
|
courseCount: number;
|
|
126
126
|
};
|
|
127
127
|
export declare function computeSkillsCovered(root: INode | undefined, skillCategoryCode: string | undefined): string[];
|
|
128
|
+
/**
|
|
129
|
+
* The skills-covered union that should be persisted onto the LP root's OWN
|
|
130
|
+
* skill-category metadata field, or null if it already matches what's
|
|
131
|
+
* currently stored there (treeCache first, same precedence as every other
|
|
132
|
+
* field read this way — e.g. getExplicitCurriculum). Per
|
|
133
|
+
* learning_path_ocd.md's recommendation: writing the derived union onto the
|
|
134
|
+
* root makes a saved Learning Path searchable/discoverable by skill without
|
|
135
|
+
* a separately-editable root field that could drift from what the path
|
|
136
|
+
* actually covers — a Level's own selection (or the Prior/Outcome
|
|
137
|
+
* Assessment's course tags) stays the single source of truth; this is a
|
|
138
|
+
* read-through mirror onto root, never the other way around. Compares
|
|
139
|
+
* order-insensitively so re-syncing an unchanged set doesn't loop.
|
|
140
|
+
*/
|
|
141
|
+
export declare function resolveSkillsCoveredForSync(root: INode | undefined, skillCategoryCode: string | undefined, treeCache: Record<string, Record<string, unknown>>): string[] | null;
|
|
128
142
|
/**
|
|
129
143
|
* Content Levels whose selected skills include at least one outside the
|
|
130
144
|
* given scope — same rule as validateLearningPathStructure's
|