@project-sunbird/collection-editor-react 0.1.19 → 0.1.20
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/hierarchy.d.ts +11 -0
- package/dist/collection-editor.umd.js +93 -93
- package/dist/components/ContentPlayer/ContentPlayer.d.ts +2 -0
- package/dist/hooks/useQumlContent.d.ts +7 -0
- package/dist/index.cjs +93 -93
- package/dist/index.js +4144 -4079
- package/dist/services/quml/QumlPlayerService.d.ts +2 -0
- package/package.json +1 -1
package/dist/api/hierarchy.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { INode } from '../types/editor';
|
|
2
2
|
|
|
3
|
+
export declare function mapToINode(raw: unknown, parentId?: string): INode;
|
|
3
4
|
export declare function readHierarchy(contentId: string): Promise<{
|
|
4
5
|
content: Record<string, unknown>;
|
|
5
6
|
rootNode: INode;
|
|
6
7
|
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Loads a QuestionSet hierarchy as an editor tree. Used when the editor root
|
|
10
|
+
* itself is a QuestionSet (objectType === 'QuestionSet'), where the correct
|
|
11
|
+
* endpoint is /questionset/v2/hierarchy (payload under result.questionset)
|
|
12
|
+
* rather than the content-collection endpoint.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readQuestionSetHierarchyTree(questionSetId: string): Promise<{
|
|
15
|
+
content: Record<string, unknown>;
|
|
16
|
+
rootNode: INode;
|
|
17
|
+
}>;
|
|
7
18
|
export declare function updateHierarchy(_contentId: string, nodesModified: Record<string, unknown>, hierarchy: Record<string, unknown>, lastUpdatedBy?: string): Promise<{
|
|
8
19
|
identifiers?: Record<string, string>;
|
|
9
20
|
}>;
|