@project-sunbird/collection-editor-react 0.1.18 → 0.1.19
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/question.d.ts +12 -0
- package/dist/collection-editor.umd.js +93 -93
- package/dist/hooks/useQumlContent.d.ts +16 -0
- package/dist/index.cjs +93 -93
- package/dist/index.js +4452 -4307
- package/dist/services/quml/QumlPlayerService.d.ts +38 -0
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
interface UseQumlContentOptions {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Fetches and assembles the QuestionSet metadata a QuML player needs.
|
|
8
|
+
* - reads the questionset hierarchy
|
|
9
|
+
* - collects all question identifiers from the tree
|
|
10
|
+
* - fetches full question bodies via /question/v2/list
|
|
11
|
+
* - replaces question stubs in the hierarchy with the full data
|
|
12
|
+
* - backfills outcomeDeclaration.maxScore where missing
|
|
13
|
+
* The result is passed straight to <sunbird-quml-player> as `metadata`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useQumlContent(questionSetId: string, options?: UseQumlContentOptions): UseQueryResult<Record<string, unknown>, Error>;
|
|
16
|
+
export {};
|