@yungu-fed/question-editor 0.1.0

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.
Files changed (125) hide show
  1. package/README.md +79 -0
  2. package/dist/index.cjs +3 -0
  3. package/dist/index.css +1 -0
  4. package/dist/index.d.ts +20 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +5783 -0
  7. package/dist/model/choice.d.ts +12 -0
  8. package/dist/model/choice.d.ts.map +1 -0
  9. package/dist/model/question-element-specs.d.ts +25 -0
  10. package/dist/model/question-element-specs.d.ts.map +1 -0
  11. package/dist/model/question-model.d.ts +14 -0
  12. package/dist/model/question-model.d.ts.map +1 -0
  13. package/dist/model/question-structure.d.ts +88 -0
  14. package/dist/model/question-structure.d.ts.map +1 -0
  15. package/dist/model/rich-text-blank.d.ts +3 -0
  16. package/dist/model/rich-text-blank.d.ts.map +1 -0
  17. package/dist/model/rich-text.d.ts +7 -0
  18. package/dist/model/rich-text.d.ts.map +1 -0
  19. package/dist/model/types.d.ts +171 -0
  20. package/dist/model/types.d.ts.map +1 -0
  21. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +14 -0
  22. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +1 -0
  23. package/dist/question/content-editor/QuestionContentEditor.d.ts +15 -0
  24. package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -0
  25. package/dist/question/content-editor/QuestionContentEditorUi.d.ts +95 -0
  26. package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +1 -0
  27. package/dist/question/content-editor/QuestionContentElementEditor.d.ts +16 -0
  28. package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -0
  29. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +16 -0
  30. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +1 -0
  31. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +14 -0
  32. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +1 -0
  33. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +15 -0
  34. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -0
  35. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +13 -0
  36. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +1 -0
  37. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +13 -0
  38. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +1 -0
  39. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +20 -0
  40. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -0
  41. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +14 -0
  42. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +1 -0
  43. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +15 -0
  44. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +1 -0
  45. package/dist/question/content-editor/QuestionRichTextField.d.ts +16 -0
  46. package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -0
  47. package/dist/question/content-editor/helpers.d.ts +62 -0
  48. package/dist/question/content-editor/helpers.d.ts.map +1 -0
  49. package/dist/question/content-editor/i18n.d.ts +8 -0
  50. package/dist/question/content-editor/i18n.d.ts.map +1 -0
  51. package/dist/question/content-editor/structure.d.ts +21 -0
  52. package/dist/question/content-editor/structure.d.ts.map +1 -0
  53. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +7 -0
  54. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
  55. package/dist/question/content-editor/types.d.ts +178 -0
  56. package/dist/question/content-editor/types.d.ts.map +1 -0
  57. package/dist/question/elements/fill/inline-fill-plugin.d.ts +3 -0
  58. package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +1 -0
  59. package/dist/question/i18n/index.d.ts +3 -0
  60. package/dist/question/i18n/index.d.ts.map +1 -0
  61. package/dist/question/i18n/messages.d.ts +62 -0
  62. package/dist/question/i18n/messages.d.ts.map +1 -0
  63. package/dist/question/player/QuestionBlankGroupPlayer.d.ts +14 -0
  64. package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
  65. package/dist/question/player/QuestionFillTextCandidateButton.d.ts +12 -0
  66. package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +1 -0
  67. package/dist/question/player/QuestionFillTextContentPlayer.d.ts +15 -0
  68. package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -0
  69. package/dist/question/player/QuestionFillTextPlayer.d.ts +15 -0
  70. package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
  71. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +15 -0
  72. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
  73. package/dist/question/player/QuestionOptionGroupPlayer.d.ts +15 -0
  74. package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
  75. package/dist/question/player/QuestionPlayer.d.ts +4 -0
  76. package/dist/question/player/QuestionPlayer.d.ts.map +1 -0
  77. package/dist/question/player/QuestionPlayerComposite.d.ts +16 -0
  78. package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
  79. package/dist/question/player/QuestionPlayerElement.d.ts +15 -0
  80. package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
  81. package/dist/question/player/helpers.d.ts +12 -0
  82. package/dist/question/player/helpers.d.ts.map +1 -0
  83. package/dist/question/player/types.d.ts +50 -0
  84. package/dist/question/player/types.d.ts.map +1 -0
  85. package/dist/question/preview/QuestionCompositePreview.d.ts +12 -0
  86. package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -0
  87. package/dist/question/preview/QuestionPreview.d.ts +14 -0
  88. package/dist/question/preview/QuestionPreview.d.ts.map +1 -0
  89. package/dist/question/renderers/QuestionBlankGroupView.d.ts +10 -0
  90. package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -0
  91. package/dist/question/renderers/QuestionContentElementView.d.ts +11 -0
  92. package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -0
  93. package/dist/question/renderers/QuestionFillTextView.d.ts +11 -0
  94. package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -0
  95. package/dist/question/renderers/QuestionJudgementGroupView.d.ts +11 -0
  96. package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -0
  97. package/dist/question/renderers/QuestionOptionGroupView.d.ts +11 -0
  98. package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -0
  99. package/dist/question/renderers/QuestionRichContentView.d.ts +8 -0
  100. package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -0
  101. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +11 -0
  102. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
  103. package/dist/question/renderers/helpers.d.ts +14 -0
  104. package/dist/question/renderers/helpers.d.ts.map +1 -0
  105. package/dist/question/rich-text/RichTextField.d.ts +14 -0
  106. package/dist/question/rich-text/RichTextField.d.ts.map +1 -0
  107. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +6 -0
  108. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +1 -0
  109. package/dist/question/rich-text/rich-text-toolbar-context.d.ts +3 -0
  110. package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +1 -0
  111. package/dist/question/shared/subquestion-numbering.d.ts +2 -0
  112. package/dist/question/shared/subquestion-numbering.d.ts.map +1 -0
  113. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +14 -0
  114. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -0
  115. package/dist/question/structure-editor/QuestionStructureEditor.d.ts +9 -0
  116. package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -0
  117. package/dist/question/structure-editor/QuestionStructurePalette.d.ts +10 -0
  118. package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +1 -0
  119. package/dist/question/structure-editor/QuestionStructureSettings.d.ts +13 -0
  120. package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
  121. package/dist/question/structure-editor/structure-editor-labels.d.ts +53 -0
  122. package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -0
  123. package/dist/utils/cn.d.ts +3 -0
  124. package/dist/utils/cn.d.ts.map +1 -0
  125. package/package.json +86 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionJudgementGroupPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionJudgementGroupPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,iCAAiC,EACjC,6CAA6C,EAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AASjB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,6CAA6C,CAAC;IACvD,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAkE5D"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentOptionGroupItem, QuestionContentOptionGroupStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
5
+ export type QuestionOptionGroupPlayerProps = {
6
+ disabled: boolean;
7
+ element: QuestionContentOptionGroupStructureElement;
8
+ item: QuestionContentOptionGroupItem;
9
+ messages: QuestionMessages;
10
+ onChange: (item: QuestionPlayerResponseItem) => void;
11
+ response: QuestionPlayerResponse;
12
+ showAnswer: boolean;
13
+ };
14
+ export declare function QuestionOptionGroupPlayer({ disabled, element, item, messages, onChange, response, showAnswer, }: Readonly<QuestionOptionGroupPlayerProps>): ReactElement;
15
+ //# sourceMappingURL=QuestionOptionGroupPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionOptionGroupPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionOptionGroupPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAcjB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,0CAA0C,CAAC;IACpD,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CAwLzD"}
@@ -0,0 +1,4 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionPlayerProps } from "./types";
3
+ export declare function QuestionPlayer({ locale, ...props }: Readonly<QuestionPlayerProps>): ReactElement;
4
+ //# sourceMappingURL=QuestionPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAa1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiCnD,wBAAgB,cAAc,CAC5B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAC5D,YAAY,CAQd"}
@@ -0,0 +1,16 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerResponse } from "./types";
5
+ export type QuestionPlayerCompositeProps = {
6
+ disabled: boolean;
7
+ messages: QuestionMessages;
8
+ onChildResponseChange: (childIndex: number, response: QuestionPlayerResponse) => void;
9
+ renderChild: (child: QuestionContentDraft, response: QuestionPlayerResponse, structure: QuestionContentStructure, onChange: (response: QuestionPlayerResponse) => void, numberPath: readonly number[]) => ReactElement;
10
+ numberPath?: readonly number[];
11
+ response: QuestionPlayerResponse;
12
+ subquestionTemplates: readonly QuestionContentSubquestionTemplate[];
13
+ value: QuestionContentDraft;
14
+ };
15
+ export declare function QuestionPlayerComposite({ messages, numberPath, onChildResponseChange, renderChild, response, subquestionTemplates, value, }: Readonly<QuestionPlayerCompositeProps>): ReactElement;
16
+ //# sourceMappingURL=QuestionPlayerComposite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionPlayerComposite.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayerComposite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKtD,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,qBAAqB,EAAE,CACrB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,sBAAsB,KAC7B,IAAI,CAAC;IACV,WAAW,EAAE,CACX,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,sBAAsB,EAChC,SAAS,EAAE,wBAAwB,EACnC,QAAQ,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,EACpD,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,oBAAoB,EAAE,SAAS,kCAAkC,EAAE,CAAC;IACpE,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,UAAe,EACf,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,KAAK,GACN,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAuCvD"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentItem, QuestionContentStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
5
+ export type QuestionPlayerElementProps = {
6
+ disabled: boolean;
7
+ element: QuestionContentStructureElement;
8
+ item: QuestionContentItem;
9
+ messages: QuestionMessages;
10
+ onResponseItemChange: (item: QuestionPlayerResponseItem) => void;
11
+ response: QuestionPlayerResponse;
12
+ showAnswer: boolean;
13
+ };
14
+ export declare function QuestionPlayerElement({ disabled, element, item, messages, onResponseItemChange, response, showAnswer, }: Readonly<QuestionPlayerElementProps>): ReactElement | null;
15
+ //# sourceMappingURL=QuestionPlayerElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionPlayerElement.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayerElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAGV,mBAAmB,EAInB,+BAA+B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAQjB,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,+BAA+B,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACjE,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,GAAG,IAAI,CA4D5D"}
@@ -0,0 +1,12 @@
1
+ import type { QuestionContentDraft, QuestionContentFillTextStructureElement, QuestionContentStructure, QuestionContentSubquestionTemplate } from "../content-editor/types";
2
+ import type { QuestionPlayerBlankGroupResponseItem, QuestionPlayerFillTextAnswer, QuestionPlayerFillTextResponseItem, QuestionPlayerJudgementGroupResponseItem, QuestionPlayerOptionGroupResponseItem, QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
3
+ export declare function createEmptyQuestionPlayerResponse(value: QuestionContentDraft, structure: QuestionContentStructure, subquestionTemplates?: readonly QuestionContentSubquestionTemplate[]): QuestionPlayerResponse;
4
+ export declare function getOptionGroupResponseItem(response: QuestionPlayerResponse, elementKey: string): QuestionPlayerOptionGroupResponseItem;
5
+ export declare function getBlankGroupResponseItem(response: QuestionPlayerResponse, elementKey: string, blankIds: readonly string[]): QuestionPlayerBlankGroupResponseItem;
6
+ export declare function getFillTextResponseItem(response: QuestionPlayerResponse, element: QuestionContentFillTextStructureElement, blankIds: readonly string[]): QuestionPlayerFillTextResponseItem;
7
+ export declare function getJudgementGroupResponseItem(response: QuestionPlayerResponse, elementKey: string): QuestionPlayerJudgementGroupResponseItem;
8
+ export declare function updateResponseItem(response: QuestionPlayerResponse, nextItem: QuestionPlayerResponseItem): QuestionPlayerResponse;
9
+ export declare function updateChildResponse(response: QuestionPlayerResponse, childIndex: number, nextChild: QuestionPlayerResponse): QuestionPlayerResponse;
10
+ export declare function toggleSelectedIndex(selectedIndexes: readonly number[], index: number, selectionType: "multiple" | "single"): number[];
11
+ export declare function toggleOptionAnswer(answer: QuestionPlayerFillTextAnswer | undefined, optionId: string, selectionType?: "multiple" | "single"): QuestionPlayerFillTextAnswer;
12
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/question/player/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,uCAAuC,EAEvC,wBAAwB,EAExB,kCAAkC,EACnC,MAAM,y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AU,GAAG,QAAmB,GAC9C,4BAA4B,CAO9B"}
@@ -0,0 +1,50 @@
1
+ import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "../content-editor/types";
2
+ import type { QuestionLocale } from "../i18n";
3
+ export type QuestionPlayerFillTextAnswer = {
4
+ kind: "option";
5
+ optionIds: string[];
6
+ } | {
7
+ kind: "text";
8
+ value: string;
9
+ };
10
+ export type QuestionPlayerOptionGroupResponseItem = {
11
+ elementKey: string;
12
+ selectedIndexes: number[];
13
+ type: "choice";
14
+ };
15
+ export type QuestionPlayerBlankGroupResponseItem = {
16
+ answers: Record<string, string>;
17
+ elementKey: string;
18
+ type: "fill";
19
+ };
20
+ export type QuestionPlayerFillTextResponseItem = {
21
+ answers: Record<string, QuestionPlayerFillTextAnswer>;
22
+ elementKey: string;
23
+ type: "inlineFill";
24
+ };
25
+ export type QuestionPlayerJudgementGroupResponseItem = {
26
+ elementKey: string;
27
+ selectedValues: string[];
28
+ type: "judgement";
29
+ };
30
+ export type QuestionPlayerResponseItem = QuestionPlayerBlankGroupResponseItem | QuestionPlayerFillTextResponseItem | QuestionPlayerJudgementGroupResponseItem | QuestionPlayerOptionGroupResponseItem;
31
+ export type QuestionPlayerResponse = {
32
+ questionTypeKey: null | number;
33
+ children: QuestionPlayerResponse[];
34
+ id: null | string;
35
+ items: QuestionPlayerResponseItem[];
36
+ version: string;
37
+ };
38
+ export type QuestionPlayerProps = {
39
+ className?: string;
40
+ disabled?: boolean;
41
+ locale?: QuestionLocale;
42
+ onResponseChange: (response: QuestionPlayerResponse) => void;
43
+ response: QuestionPlayerResponse;
44
+ showAnswer?: boolean;
45
+ showExtraAttributes?: boolean;
46
+ structure: QuestionContentStructure;
47
+ subquestionTemplates?: QuestionContentSubquestionTemplate[];
48
+ value: QuestionContentDraft;
49
+ };
50
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/question/player/types.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A0B,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC7D,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;IACpC,oBAAoB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC5D,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionCompositePreviewProps = {
5
+ messages: QuestionMessages;
6
+ renderChild: (child: QuestionContentDraft, structure: QuestionContentStructure, numberPath: readonly number[]) => ReactElement;
7
+ numberPath?: readonly number[];
8
+ subquestionTemplates: readonly QuestionContentSubquestionTemplate[];
9
+ value: QuestionContentDraft;
10
+ };
11
+ export declare function QuestionCompositePreview({ messages, numberPath, renderChild, subquestionTemplates, value, }: Readonly<QuestionCompositePreviewProps>): ReactElement;
12
+ //# sourceMappingURL=QuestionCompositePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionCompositePreview.d.ts","sourceRoot":"","sources":["../../../src/question/preview/QuestionCompositePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAKhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,CACX,KAAK,EAAE,oBAAoB,EAC3B,SAAS,EAAE,wBAAwB,EACnC,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,oBAAoB,EAAE,SAAS,kCAAkC,EAAE,CAAC;IACpE,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,UAAe,EACf,WAAW,EACX,oBAAoB,EACpB,KAAK,GACN,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CAgCxD"}
@@ -0,0 +1,14 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "../content-editor/types";
3
+ import type { QuestionLocale } from "../i18n";
4
+ export type QuestionPreviewProps = {
5
+ className?: string;
6
+ locale?: QuestionLocale;
7
+ showAnswer?: boolean;
8
+ showExtraAttributes?: boolean;
9
+ structure: QuestionContentStructure;
10
+ subquestionTemplates?: QuestionContentSubquestionTemplate[];
11
+ value: QuestionContentDraft;
12
+ };
13
+ export declare function QuestionPreview({ locale, ...props }: Readonly<QuestionPreviewProps>): ReactElement;
14
+ //# sourceMappingURL=QuestionPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionPreview.d.ts","sourceRoot":"","sources":["../../../src/question/preview/QuestionPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EAIpB,wBAAwB,EAExB,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,SAAS,CAAC;AAajB,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;IACpC,oBAAoB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC5D,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAOF,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAC7D,YAAY,CAQd"}
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentBlankGroupItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionBlankGroupViewProps = {
5
+ item: QuestionContentBlankGroupItem;
6
+ messages: QuestionMessages;
7
+ showAnswer: boolean;
8
+ };
9
+ export declare function QuestionBlankGroupView({ item, messages, showAnswer, }: Readonly<QuestionBlankGroupViewProps>): ReactElement;
10
+ //# sourceMappingURL=QuestionBlankGroupView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionBlankGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionBlankGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAoCtD"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentItem, QuestionContentStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionContentElementViewProps = {
5
+ element: QuestionContentStructureElement;
6
+ item: QuestionContentItem;
7
+ messages: QuestionMessages;
8
+ showAnswer: boolean;
9
+ };
10
+ export declare function QuestionContentElementView({ element, item, messages, showAnswer, }: Readonly<QuestionContentElementViewProps>): ReactElement | null;
11
+ //# sourceMappingURL=QuestionContentElementView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionContentElementView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionContentElementView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAGV,mBAAmB,EAInB,+BAA+B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,+BAA+B,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,GAAG,IAAI,CAgDjE"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionFillTextViewProps = {
5
+ element: QuestionContentFillTextStructureElement;
6
+ item: QuestionContentFillTextItem;
7
+ messages: QuestionMessages;
8
+ showAnswer: boolean;
9
+ };
10
+ export declare function QuestionFillTextView({ element, item, messages, showAnswer, }: Readonly<QuestionFillTextViewProps>): ReactElement;
11
+ //# sourceMappingURL=QuestionFillTextView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionFillTextView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionFillTextView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,2BAA2B,EAC3B,uCAAuC,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAWhD,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,uCAAuC,CAAC;IACjD,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CA6BpD"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentJudgementGroupItem, QuestionContentJudgementGroupStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionJudgementGroupViewProps = {
5
+ element: QuestionContentJudgementGroupStructureElement;
6
+ item: QuestionContentJudgementGroupItem;
7
+ messages: QuestionMessages;
8
+ showAnswer: boolean;
9
+ };
10
+ export declare function QuestionJudgementGroupView({ element, item, messages, showAnswer, }: Readonly<QuestionJudgementGroupViewProps>): ReactElement;
11
+ //# sourceMappingURL=QuestionJudgementGroupView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionJudgementGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionJudgementGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,iCAAiC,EACjC,6CAA6C,EAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,6CAA6C,CAAC;IACvD,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,CA4B1D"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentOptionGroupItem, QuestionContentOptionGroupStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionOptionGroupViewProps = {
5
+ element: QuestionContentOptionGroupStructureElement;
6
+ item: QuestionContentOptionGroupItem;
7
+ messages: QuestionMessages;
8
+ showAnswer: boolean;
9
+ };
10
+ export declare function QuestionOptionGroupView({ element, item, messages, showAnswer, }: Readonly<QuestionOptionGroupViewProps>): ReactElement;
11
+ //# sourceMappingURL=QuestionOptionGroupView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionOptionGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionOptionGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAWhD,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,0CAA0C,CAAC;IACpD,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAsHvD"}
@@ -0,0 +1,8 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionRichContentValue } from "../content-editor/types";
3
+ export type QuestionRichContentViewProps = {
4
+ className?: string;
5
+ content: QuestionRichContentValue;
6
+ };
7
+ export declare function QuestionRichContentView({ className, content, }: Readonly<QuestionRichContentViewProps>): ReactElement;
8
+ //# sourceMappingURL=QuestionRichContentView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionRichContentView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionRichContentView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAMxE,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,OAAO,GACR,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAevD"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ export type QuestionStandardAnswerGroup = {
3
+ contents: readonly ReactNode[];
4
+ marker: string;
5
+ };
6
+ export type QuestionStandardAnswerPanelProps = {
7
+ groups: readonly QuestionStandardAnswerGroup[];
8
+ title: string;
9
+ };
10
+ export declare function QuestionStandardAnswerPanel({ groups, title, }: Readonly<QuestionStandardAnswerPanelProps>): ReactElement | null;
11
+ //# sourceMappingURL=QuestionStandardAnswerPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionStandardAnswerPanel.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionStandardAnswerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,KAAK,GACN,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GAAG,YAAY,GAAG,IAAI,CA+BlE"}
@@ -0,0 +1,14 @@
1
+ import type { QuestionContentCandidateOption, QuestionContentCandidateOptionGroup, QuestionContentFillTextItem, QuestionFillTextAnswer, QuestionPerBlankOptionAnswer, QuestionRichBlankAnswerGroup, QuestionRichContentValue, QuestionSharedCandidateAnswerGroup } from "../content-editor/types";
2
+ export type FillTextAnswerContentGroup = {
3
+ readonly blankIds: readonly string[];
4
+ readonly contents: readonly QuestionRichContentValue[];
5
+ };
6
+ export declare function joinClassNames(...classNames: Array<false | null | string | undefined>): string;
7
+ export declare function formatBlankAnswerMarker(blankIds: readonly string[], blanks: readonly string[], blankLabel: string): string;
8
+ export declare function isRichBlankAnswerGroup(answer: QuestionFillTextAnswer): answer is QuestionRichBlankAnswerGroup;
9
+ export declare function isPerBlankOptionAnswer(answer: QuestionFillTextAnswer): answer is QuestionPerBlankOptionAnswer;
10
+ export declare function isSharedCandidateAnswerGroup(answer: QuestionFillTextAnswer): answer is QuestionSharedCandidateAnswerGroup;
11
+ export declare function findCandidateOptionContent(options: readonly QuestionContentCandidateOption[] | undefined, optionId: string): QuestionRichContentValue | null;
12
+ export declare function findBlankOptionContent(groups: readonly QuestionContentCandidateOptionGroup[] | undefined, blankId: string, optionId: string): QuestionRichContentValue | null;
13
+ export declare function collectFillTextAnswerContents(item: QuestionContentFillTextItem): FillTextAnswerContentGroup[];
14
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,mCAAmC,EACnC,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,SAAS,wBAAwB,EAAE,CAAC;CACxD,CAAC;AAEF,wBAAgB,cAAc,CAC5B,GAAG,UAAU,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC,GACtD,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,UAAU,EAAE,MAAM,GACjB,MAAM,CAMR;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,sBAAsB,GAC7B,MAAM,IAAI,4BAA4B,CAExC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,sBAAsB,GAC7B,MAAM,IAAI,4BAA4B,CAExC;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,sBAAsB,GAC7B,MAAM,IAAI,kCAAkC,CAE9C;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,SAAS,8BAA8B,EAAE,GAAG,SAAS,EAC9D,QAAQ,EAAE,MAAM,GACf,wBAAwB,GAAG,IAAI,CAIjC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,mCAAmC,EAAE,GAAG,SAAS,EAClE,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,wBAAwB,GAAG,IAAI,CAMjC;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,2BAA2B,GAChC,0BAA0B,EAAE,CAuC9B"}
@@ -0,0 +1,14 @@
1
+ import type { RichTextEditorApi, RichTextEditorPlugin } from '@yungu-fed/rich-text-editor';
2
+ import type { ReactNode, Ref } from 'react';
3
+ import type { RichTextContent } from '../../model/types';
4
+ export type RichTextFieldProps = {
5
+ readonly apiRef?: Ref<RichTextEditorApi>;
6
+ readonly ariaLabel: string;
7
+ readonly compact?: boolean;
8
+ readonly onChange: (value: RichTextContent) => void;
9
+ readonly plugins?: readonly RichTextEditorPlugin[];
10
+ readonly toolbarExtra?: ReactNode;
11
+ readonly value: RichTextContent;
12
+ };
13
+ export declare function RichTextField({ apiRef, ariaLabel, compact, onChange, plugins, toolbarExtra, value, }: RichTextFieldProps): JSX.Element;
14
+ //# sourceMappingURL=RichTextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextField.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/RichTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EAErB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOxD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAClD,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;CAChC,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,OAAe,EACf,QAAQ,EACR,OAAY,EACZ,YAAY,EACZ,KAAK,GACN,EAAE,kBAAkB,eA2DpB"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type RichTextFieldTestToolbarProps = {
3
+ readonly toolbarExtra?: ReactNode;
4
+ };
5
+ export declare function RichTextFieldTestToolbar({ toolbarExtra, }: RichTextFieldTestToolbarProps): JSX.Element;
6
+ //# sourceMappingURL=RichTextFieldTestToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextFieldTestToolbar.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/RichTextFieldTestToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;CAClC,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,YAAY,GACb,EAAE,6BAA6B,eAkB/B"}
@@ -0,0 +1,3 @@
1
+ export declare const QuestionSharedRichTextToolbarContext: import("react").Context<boolean>;
2
+ export declare function useQuestionSharedRichTextToolbar(): boolean;
3
+ //# sourceMappingURL=rich-text-toolbar-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-toolbar-context.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/rich-text-toolbar-context.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC,kCAC3B,CAAA;AAEtB,wBAAgB,gCAAgC,YAE/C"}
@@ -0,0 +1,2 @@
1
+ export declare function formatSubquestionNumberPath(numberPath: readonly number[]): string;
2
+ //# sourceMappingURL=subquestion-numbering.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subquestion-numbering.d.ts","sourceRoot":"","sources":["../../../src/question/shared/subquestion-numbering.ts"],"names":[],"mappings":"AAAA,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,MAAM,CAER"}
@@ -0,0 +1,14 @@
1
+ import type { QuestionStructureDraftElement, QuestionStructureDraftExtra } from "../../model/question-structure";
2
+ import type { QuestionStructureLabels } from "./structure-editor-labels";
3
+ export type QuestionStructureCanvasProps = {
4
+ readonly elements: readonly QuestionStructureDraftElement[];
5
+ readonly extra: readonly QuestionStructureDraftExtra[];
6
+ readonly labels: QuestionStructureLabels;
7
+ readonly onDeleteElement: (clientId: string) => void;
8
+ readonly onDeleteExtra: (clientId: string) => void;
9
+ readonly onMoveElement: (clientId: string, direction: -1 | 1) => void;
10
+ readonly onSelectElement: (clientId: string) => void;
11
+ readonly selectedElementClientId: null | string;
12
+ };
13
+ export declare function QuestionStructureCanvas({ elements, extra, labels, onDeleteElement, onDeleteExtra, onMoveElement, onSelectElement, selectedElementClientId, }: QuestionStructureCanvasProps): JSX.Element;
14
+ //# sourceMappingURL=QuestionStructureCanvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionStructureCanvas.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureCanvas.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AASxE,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,6BAA6B,EAAE,CAAA;IAC3D,QAAQ,CAAC,KAAK,EAAE,SAAS,2BAA2B,EAAE,CAAA;IACtD,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACrE,QAAQ,CAAC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,uBAAuB,EAAE,IAAI,GAAG,MAAM,CAAA;CAChD,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,eAAe,EACf,aAAa,EACb,aAAa,EACb,eAAe,EACf,uBAAuB,GACxB,EAAE,4BAA4B,eAqK9B"}
@@ -0,0 +1,9 @@
1
+ import type { QuestionStructureDraft } from "../../model/question-structure";
2
+ import type { QuestionLocale } from "../i18n";
3
+ export type QuestionStructureEditorProps = {
4
+ readonly locale?: QuestionLocale;
5
+ readonly onChange: (value: QuestionStructureDraft) => void;
6
+ readonly value: QuestionStructureDraft;
7
+ };
8
+ export declare function QuestionStructureEditor({ locale, onChange, value, }: QuestionStructureEditorProps): JSX.Element;
9
+ //# sourceMappingURL=QuestionStructureEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionStructureEditor.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EAMvB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,cAAc,EACf,MAAM,SAAS,CAAA;AAmBhB,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAA;CACvC,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,MAAgB,EAChB,QAAQ,EACR,KAAK,GACN,EAAE,4BAA4B,eAiG9B"}
@@ -0,0 +1,10 @@
1
+ import type { QuestionStructureElementType, QuestionStructureExtraKey } from "../../model/question-structure";
2
+ import type { QuestionStructureLabels } from "./structure-editor-labels";
3
+ export type QuestionStructurePaletteProps = {
4
+ readonly addedExtraTypes: readonly QuestionStructureExtraKey[];
5
+ readonly labels: QuestionStructureLabels;
6
+ readonly onAddElement: (type: QuestionStructureElementType) => void;
7
+ readonly onAddExtra: (key: QuestionStructureExtraKey) => void;
8
+ };
9
+ export declare function QuestionStructurePalette({ addedExtraTypes, labels, onAddElement, onAddExtra, }: QuestionStructurePaletteProps): JSX.Element;
10
+ //# sourceMappingURL=QuestionStructurePalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionStructurePalette.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructurePalette.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAcxE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,yBAAyB,EAAE,CAAA;IAC9D,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,4BAA4B,KAAK,IAAI,CAAA;IACnE,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,EAAE,yBAAyB,KAAK,IAAI,CAAA;CAC9D,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,eAAe,EACf,MAAM,EACN,YAAY,EACZ,UAAU,GACX,EAAE,6BAA6B,eA0D/B"}
@@ -0,0 +1,13 @@
1
+ import type { QuestionStructureDraftElement, QuestionStructureDraftExtra, QuestionStructureGlobalConfig } from "../../model/question-structure";
2
+ import type { QuestionStructureLabels } from "./structure-editor-labels";
3
+ export type QuestionStructureSettingsProps = {
4
+ readonly globalConfig: QuestionStructureGlobalConfig;
5
+ readonly labels: QuestionStructureLabels;
6
+ readonly onElementChange: (element: QuestionStructureDraftElement) => void;
7
+ readonly onExtraChange: (extra: QuestionStructureDraftExtra) => void;
8
+ readonly onGlobalConfigChange: (patch: Partial<QuestionStructureGlobalConfig>) => void;
9
+ readonly selectedExtra: null | QuestionStructureDraftExtra;
10
+ readonly selectedElement: null | QuestionStructureDraftElement;
11
+ };
12
+ export declare function QuestionStructureSettings({ globalConfig, labels, onElementChange, onExtraChange, onGlobalConfigChange, selectedExtra, selectedElement, }: QuestionStructureSettingsProps): JSX.Element;
13
+ //# sourceMappingURL=QuestionStructureSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionStructureSettings.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAK9B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAmBxE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,YAAY,EAAE,6BAA6B,CAAA;IACpD,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,CAAA;IAC1E,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACpE,QAAQ,CAAC,oBAAoB,EAAE,CAC7B,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,KAC1C,IAAI,CAAA;IACT,QAAQ,CAAC,aAAa,EAAE,IAAI,GAAG,2BAA2B,CAAA;IAC1D,QAAQ,CAAC,eAAe,EAAE,IAAI,GAAG,6BAA6B,CAAA;CAC/D,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,YAAY,EACZ,MAAM,EACN,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,eAAe,GAChB,EAAE,8BAA8B,eA+EhC"}
@@ -0,0 +1,53 @@
1
+ import type { QuestionStructureCandidateMode, QuestionStructureElementType, QuestionStructureExtraKey, QuestionStructureJudgeAnswerMode, QuestionStructureOptionLabelStyle, QuestionStructureOptionRenderer, QuestionStructureSelectionType } from "../../model/question-structure";
2
+ import type { QuestionLocale } from "../i18n";
3
+ export type QuestionStructureLabels = {
4
+ readonly addElement: string;
5
+ readonly addExtra: string;
6
+ readonly allowCandidateReuse: string;
7
+ readonly blankGroupDescription: string;
8
+ readonly blankGroupLabel: string;
9
+ readonly canPrint: string;
10
+ readonly candidateMode: string;
11
+ readonly canvas: string;
12
+ readonly confirmDelete: string;
13
+ readonly deleteElement: string;
14
+ readonly elementCount: (count: number) => string;
15
+ readonly elementName: string;
16
+ readonly elementEnName: string;
17
+ readonly elementSettings: string;
18
+ readonly extraDescriptions: ReadonlyMap<QuestionStructureExtraKey, string>;
19
+ readonly extraLabels: ReadonlyMap<QuestionStructureExtraKey, string>;
20
+ readonly extraSettings: string;
21
+ readonly extraTitle: string;
22
+ readonly fillTextDescription: string;
23
+ readonly fillTextLabel: string;
24
+ readonly globalSettings: string;
25
+ readonly hasAnswer: string;
26
+ readonly judgementGroupDescription: string;
27
+ readonly judgementGroupLabel: string;
28
+ readonly judgeAnswerMode: string;
29
+ readonly moveDown: string;
30
+ readonly moveUp: string;
31
+ readonly noElement: string;
32
+ readonly optionGroupDescription: string;
33
+ readonly optionGroupLabel: string;
34
+ readonly optionLabelStyle: string;
35
+ readonly optionValueLabels: ReadonlyMap<QuestionStructureOptionValue, string>;
36
+ readonly palette: string;
37
+ readonly description: string;
38
+ readonly renderer: string;
39
+ readonly richTextDescription: string;
40
+ readonly richTextLabel: string;
41
+ readonly selectionType: string;
42
+ readonly structureEnName: string;
43
+ readonly structureName: string;
44
+ };
45
+ export type QuestionStructureOptionValue = QuestionStructureCandidateMode | QuestionStructureJudgeAnswerMode | QuestionStructureOptionLabelStyle | QuestionStructureOptionRenderer | QuestionStructureSelectionType;
46
+ export declare const questionStructureLabels: Record<QuestionLocale, QuestionStructureLabels>;
47
+ export declare function getQuestionStructureExtraDescription(labels: QuestionStructureLabels, key: QuestionStructureExtraKey): string;
48
+ export declare function getQuestionStructureExtraLabel(labels: QuestionStructureLabels, key: QuestionStructureExtraKey): string;
49
+ export declare function getQuestionStructureLabels(locale: QuestionLocale): QuestionStructureLabels;
50
+ export declare function getQuestionStructureElementDescription(labels: QuestionStructureLabels, type: QuestionStructureElementType): string;
51
+ export declare function getQuestionStructureElementLabel(labels: QuestionStructureLabels, type: QuestionStructureElementType): string;
52
+ export declare function getQuestionStructureOptionLabel(labels: QuestionStructureLabels, value: QuestionStructureOptionValue): string;
53
+ //# sourceMappingURL=structure-editor-labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structure-editor-labels.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/structure-editor-labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C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,CAC9C,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,4BAA4B,UAcnC;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,uBAAuB,EAC/B,KAAK,EAAE,4BAA4B,UAGpC"}
@@ -0,0 +1,3 @@
1
+ export type ClassNameValue = false | null | readonly ClassNameValue[] | string | undefined;
2
+ export declare function cn(...inputs: readonly ClassNameValue[]): string;
3
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,IAAI,GACJ,SAAS,cAAc,EAAE,GACzB,MAAM,GACN,SAAS,CAAA;AAEb,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAK/D"}