@project-sunbird/collection-editor-react 1.0.14 → 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 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
@@ -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 {};