@project-sunbird/collection-editor-react 1.0.6 → 1.0.8

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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-sunbird/collection-editor-react",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",