@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.
@@ -5,6 +5,8 @@ interface ContentPlayerProps {
5
5
  node: INode;
6
6
  editorMode: EditorMode;
7
7
  type: 'content' | 'quml';
8
+ /** For type='quml': render a single question rather than the whole set. */
9
+ singleQuestion?: boolean;
8
10
  }
9
11
  export declare const ContentPlayer: React.FC<ContentPlayerProps>;
10
12
  export {};
@@ -3,6 +3,13 @@ import { UseQueryResult } from '@tanstack/react-query';
3
3
  interface UseQumlContentOptions {
4
4
  enabled?: boolean;
5
5
  }
6
+ /**
7
+ * Builds a single-question questionset hierarchy from an enriched base set,
8
+ * mirroring Angular's qumlplayer-page.component.initQumlPlayer(): keep the
9
+ * questionset shell but expose only the selected question, so the player
10
+ * renders exactly one question.
11
+ */
12
+ export declare function buildSingleQuestionHierarchy(base: Record<string, unknown>, questionId: string): Record<string, unknown> | null;
6
13
  /**
7
14
  * Fetches and assembles the QuestionSet metadata a QuML player needs.
8
15
  * - reads the questionset hierarchy