@project-sunbird/collection-editor-react 1.0.13 → 1.0.15
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/README.md +0 -25
- 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/hooks/useLibrary.d.ts +9 -21
- package/dist/i18n/locales/ar.json.d.ts +3 -17
- package/dist/i18n/locales/en.json.d.ts +3 -17
- package/dist/i18n/locales/fr.json.d.ts +3 -17
- package/dist/i18n/locales/pt.json.d.ts +3 -17
- package/dist/index.cjs +112 -112
- package/dist/index.js +9569 -9768
- package/dist/store/tree.store.d.ts +1 -1
- package/dist/store/ui.store.d.ts +0 -2
- 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/profile.d.ts +1 -8
- package/dist/utils/lpStructure.d.ts +39 -57
- package/package.json +1 -1
- package/dist/components/UnitContentList/LevelCourseItem.d.ts +0 -9
- package/dist/components/UnitContentList/LevelExamItem.d.ts +0 -7
- package/dist/hooks/useLevelExam.d.ts +0 -18
package/README.md
CHANGED
|
@@ -143,31 +143,6 @@ The equivalent web-component usage is identical to the standard flow — just se
|
|
|
143
143
|
`IEditorProfile` (exported for advanced integrations that need to introspect the active profile,
|
|
144
144
|
e.g. `unitLabelKey`/`features` for a custom host toolbar) is re-exported from the package root.
|
|
145
145
|
|
|
146
|
-
## Evaluation Course profile
|
|
147
|
-
|
|
148
|
-
Setting `config.primaryCategory` to `'Evaluation Course'` authors a normal Course — same unit
|
|
149
|
-
structure, drag/drop, depth, and toolbar as the default profile — except the Library's addable
|
|
150
|
-
content is restricted to exactly `Practice Question Set` and `Course Assessment` (ECML assessment
|
|
151
|
-
content), at every depth in the course, not just the root. This is the category used for a Course
|
|
152
|
-
that will serve as a Learning Path's Prior/Outcome Assessment or a Level Exam course — its content
|
|
153
|
-
must be assessment-only, never regular course material.
|
|
154
|
-
|
|
155
|
-
```tsx
|
|
156
|
-
const evaluationCourseConfig = {
|
|
157
|
-
context: { /* same shape as any other Course */ },
|
|
158
|
-
config: {
|
|
159
|
-
mode: 'edit',
|
|
160
|
-
objectType: 'Collection',
|
|
161
|
-
primaryCategory: 'Evaluation Course', // the only switch
|
|
162
|
-
},
|
|
163
|
-
};
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
No new backend object category definition is required beyond the platform accepting
|
|
167
|
-
`'Evaluation Course'` as a `primaryCategory` value on Collection objects — the restriction is
|
|
168
|
-
enforced entirely client-side, via `evaluationCourseProfile.restrictedContentCategories`
|
|
169
|
-
(`IEditorProfile`).
|
|
170
|
-
|
|
171
146
|
---
|
|
172
147
|
|
|
173
148
|
## API
|
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 {};
|