@project-sunbird/collection-editor-react 1.0.14 → 1.0.16-alpha
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/api/competencyFramework.d.ts +32 -0
- package/dist/api/content.d.ts +1 -1
- package/dist/api/content.test.d.ts +1 -0
- package/dist/collection-editor.umd.js +112 -112
- package/dist/components/SparkMetaForm/fields/OptionSearch.d.ts +20 -0
- package/dist/components/SparkMetaForm/fields/OptionSearch.test.d.ts +1 -0
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.competency.test.d.ts +1 -0
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.d.ts +34 -1
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.skill.test.d.ts +1 -0
- package/dist/components/UnitContentList/LevelCourseItem.d.ts +2 -0
- package/dist/hooks/useCompetencyFrameworks.d.ts +27 -0
- package/dist/hooks/useCourseCompetency.d.ts +31 -0
- package/dist/hooks/useCourseCompetency.test.d.ts +1 -0
- package/dist/hooks/useLibrary.d.ts +88 -18
- package/dist/hooks/useLpCompetency.d.ts +13 -0
- package/dist/hooks/useSkillCategory.d.ts +15 -1
- package/dist/hooks/useSkillScope.d.ts +4 -3
- package/dist/hooks/useSkillsCoveredSync.d.ts +10 -0
- package/dist/hooks/useSkillsCoveredSync.test.d.ts +1 -0
- package/dist/i18n/locales/ar.json.d.ts +46 -28
- package/dist/i18n/locales/en.json.d.ts +46 -28
- package/dist/i18n/locales/fr.json.d.ts +46 -28
- package/dist/i18n/locales/pt.json.d.ts +46 -28
- package/dist/index.cjs +109 -109
- package/dist/index.js +9572 -9004
- package/dist/store/tree.store.d.ts +4 -1
- package/dist/store/tree.store.dirty.test.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/content.d.ts +3 -1
- package/dist/types/content.test.d.ts +1 -0
- package/dist/types/editor.d.ts +1 -1
- package/dist/types/framework.d.ts +27 -0
- package/dist/utils/competencyLeaves.d.ts +44 -0
- package/dist/utils/competencyLeaves.test.d.ts +1 -0
- package/dist/utils/libraryCardMeta.d.ts +33 -0
- package/dist/utils/libraryCardMeta.test.d.ts +1 -0
- package/dist/utils/lpCompetency.d.ts +32 -0
- package/dist/utils/lpCompetency.test.d.ts +1 -0
- package/dist/utils/lpStructure.d.ts +21 -16
- package/dist/utils/skillTerms.d.ts +22 -0
- package/dist/utils/skillTerms.test.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/UnitContentList/SkillPicker.d.ts +0 -19
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CompetencyCategoryWire } from '../utils/competencyLeaves';
|
|
2
|
+
export interface ICompetencyFrameworkSummary {
|
|
3
|
+
identifier: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ICompetencyFramework {
|
|
7
|
+
identifier: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
categories?: CompetencyCategoryWire[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Live competency (skill) frameworks of a channel. These are `CompetencyFramework` objects, not
|
|
13
|
+
* `Framework`s, so they never appear in `channel.frameworks` or the Course Type list.
|
|
14
|
+
*/
|
|
15
|
+
export declare function listCompetencyFrameworks(channel?: string): Promise<ICompetencyFrameworkSummary[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Reads a competency framework with its categories and terms. `/framework/v1/read` answers 404
|
|
18
|
+
* for `CompetencyFramework` objects, so this uses the competency-framework read (as lern does).
|
|
19
|
+
*/
|
|
20
|
+
export declare function getCompetencyFramework(frameworkId: string): Promise<ICompetencyFramework>;
|
|
21
|
+
export interface ICompetencyRole {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
/** Leaf skill codes the role requires. */
|
|
25
|
+
skills: string[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Live roles of a competency framework, from lern's `role_skill` (roles don't live in the
|
|
29
|
+
* framework). lern answers 404 when the framework has no roles yet; that is "no roles", not an
|
|
30
|
+
* error.
|
|
31
|
+
*/
|
|
32
|
+
export declare function listCompetencyRoles(frameworkId: string): Promise<ICompetencyRole[]>;
|
package/dist/api/content.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare function compositeSearch(params: {
|
|
|
12
12
|
content: IContent[];
|
|
13
13
|
count: number;
|
|
14
14
|
}>;
|
|
15
|
-
export declare function fetchContentDetails(contentId: string): Promise<IContent>;
|
|
15
|
+
export declare function fetchContentDetails(contentId: string, fields?: string[]): Promise<IContent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|