@yungu-fed/question-editor 0.2.0 → 0.2.1

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 (205) hide show
  1. package/dist/index.css +1 -0
  2. package/dist/index.d.ts +25 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +11339 -0
  5. package/dist/index.mjs +8839 -0
  6. package/dist/model/choice.d.ts +14 -0
  7. package/dist/model/choice.d.ts.map +1 -0
  8. package/dist/model/classification.d.ts +8 -0
  9. package/dist/model/classification.d.ts.map +1 -0
  10. package/dist/model/line-connect.d.ts +25 -0
  11. package/dist/model/line-connect.d.ts.map +1 -0
  12. package/dist/model/matching.d.ts +24 -0
  13. package/dist/model/matching.d.ts.map +1 -0
  14. package/dist/model/question-content-id.d.ts +3 -0
  15. package/dist/model/question-content-id.d.ts.map +1 -0
  16. package/dist/model/question-structure.d.ts +147 -0
  17. package/dist/model/question-structure.d.ts.map +1 -0
  18. package/dist/model/rich-text-blank.d.ts +3 -0
  19. package/dist/model/rich-text-blank.d.ts.map +1 -0
  20. package/dist/model/rich-text.d.ts +12 -0
  21. package/dist/model/rich-text.d.ts.map +1 -0
  22. package/dist/model/text-marker.d.ts +18 -0
  23. package/dist/model/text-marker.d.ts.map +1 -0
  24. package/dist/model/types.d.ts +29 -0
  25. package/dist/model/types.d.ts.map +1 -0
  26. package/dist/package.json +3 -0
  27. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +14 -0
  28. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +1 -0
  29. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts +14 -0
  30. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +1 -0
  31. package/dist/question/content-editor/QuestionContentEditor.d.ts +16 -0
  32. package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -0
  33. package/dist/question/content-editor/QuestionContentEditorUi.d.ts +95 -0
  34. package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +1 -0
  35. package/dist/question/content-editor/QuestionContentElementEditor.d.ts +18 -0
  36. package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -0
  37. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +16 -0
  38. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +1 -0
  39. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +14 -0
  40. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +1 -0
  41. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts +15 -0
  42. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +1 -0
  43. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +15 -0
  44. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts.map +1 -0
  45. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +15 -0
  46. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -0
  47. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts +14 -0
  48. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts.map +1 -0
  49. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +13 -0
  50. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +1 -0
  51. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +13 -0
  52. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +1 -0
  53. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +20 -0
  54. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -0
  55. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +14 -0
  56. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +1 -0
  57. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +15 -0
  58. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +1 -0
  59. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts +15 -0
  60. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +1 -0
  61. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +16 -0
  62. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts.map +1 -0
  63. package/dist/question/content-editor/QuestionRichTextField.d.ts +16 -0
  64. package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -0
  65. package/dist/question/content-editor/helpers.d.ts +111 -0
  66. package/dist/question/content-editor/helpers.d.ts.map +1 -0
  67. package/dist/question/content-editor/i18n.d.ts +8 -0
  68. package/dist/question/content-editor/i18n.d.ts.map +1 -0
  69. package/dist/question/content-editor/question-content-contract.d.ts +3 -0
  70. package/dist/question/content-editor/question-content-contract.d.ts.map +1 -0
  71. package/dist/question/content-editor/question-type-template.d.ts +7 -0
  72. package/dist/question/content-editor/question-type-template.d.ts.map +1 -0
  73. package/dist/question/content-editor/structure.d.ts +22 -0
  74. package/dist/question/content-editor/structure.d.ts.map +1 -0
  75. package/dist/question/content-editor/subquestion-editable-children.d.ts +9 -0
  76. package/dist/question/content-editor/subquestion-editable-children.d.ts.map +1 -0
  77. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +6 -0
  78. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
  79. package/dist/question/content-editor/types.d.ts +253 -0
  80. package/dist/question/content-editor/types.d.ts.map +1 -0
  81. package/dist/question/elements/fill/inline-fill-plugin.d.ts +3 -0
  82. package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +1 -0
  83. package/dist/question/elements/text-marker/text-marker-plugin.d.ts +3 -0
  84. package/dist/question/elements/text-marker/text-marker-plugin.d.ts.map +1 -0
  85. package/dist/question/i18n/index.d.ts +3 -0
  86. package/dist/question/i18n/index.d.ts.map +1 -0
  87. package/dist/question/i18n/messages.d.ts +68 -0
  88. package/dist/question/i18n/messages.d.ts.map +1 -0
  89. package/dist/question/line-connect/lineConnectLines.d.ts +37 -0
  90. package/dist/question/line-connect/lineConnectLines.d.ts.map +1 -0
  91. package/dist/question/player/QuestionBlankGroupPlayer.d.ts +15 -0
  92. package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
  93. package/dist/question/player/QuestionClassificationPlayer.d.ts +15 -0
  94. package/dist/question/player/QuestionClassificationPlayer.d.ts.map +1 -0
  95. package/dist/question/player/QuestionFillTextCandidateButton.d.ts +12 -0
  96. package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +1 -0
  97. package/dist/question/player/QuestionFillTextContentPlayer.d.ts +15 -0
  98. package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -0
  99. package/dist/question/player/QuestionFillTextPlayer.d.ts +16 -0
  100. package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
  101. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +16 -0
  102. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
  103. package/dist/question/player/QuestionLineConnectPlayer.d.ts +15 -0
  104. package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +1 -0
  105. package/dist/question/player/QuestionMatchingPlayer.d.ts +15 -0
  106. package/dist/question/player/QuestionMatchingPlayer.d.ts.map +1 -0
  107. package/dist/question/player/QuestionOptionGroupPlayer.d.ts +16 -0
  108. package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
  109. package/dist/question/player/QuestionOrderingPlayer.d.ts +15 -0
  110. package/dist/question/player/QuestionOrderingPlayer.d.ts.map +1 -0
  111. package/dist/question/player/QuestionPlayer.d.ts +4 -0
  112. package/dist/question/player/QuestionPlayer.d.ts.map +1 -0
  113. package/dist/question/player/QuestionPlayerComposite.d.ts +15 -0
  114. package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
  115. package/dist/question/player/QuestionPlayerElement.d.ts +19 -0
  116. package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
  117. package/dist/question/player/QuestionTextMarkerPlayer.d.ts +15 -0
  118. package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +1 -0
  119. package/dist/question/player/QuestionTextResponsePlayer.d.ts +16 -0
  120. package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +1 -0
  121. package/dist/question/player/QuestionWordBuilderPlayer.d.ts +16 -0
  122. package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +1 -0
  123. package/dist/question/player/helpers.d.ts +26 -0
  124. package/dist/question/player/helpers.d.ts.map +1 -0
  125. package/dist/question/player/response-contract.d.ts +8 -0
  126. package/dist/question/player/response-contract.d.ts.map +1 -0
  127. package/dist/question/player/types.d.ts +70 -0
  128. package/dist/question/player/types.d.ts.map +1 -0
  129. package/dist/question/player/view-response-types.d.ts +61 -0
  130. package/dist/question/player/view-response-types.d.ts.map +1 -0
  131. package/dist/question/presentation-contract.d.ts +20 -0
  132. package/dist/question/presentation-contract.d.ts.map +1 -0
  133. package/dist/question/preview/QuestionCompositePreview.d.ts +11 -0
  134. package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -0
  135. package/dist/question/preview/QuestionPreview.d.ts +14 -0
  136. package/dist/question/preview/QuestionPreview.d.ts.map +1 -0
  137. package/dist/question/renderers/QuestionBlankGroupView.d.ts +10 -0
  138. package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -0
  139. package/dist/question/renderers/QuestionClassificationView.d.ts +10 -0
  140. package/dist/question/renderers/QuestionClassificationView.d.ts.map +1 -0
  141. package/dist/question/renderers/QuestionContentElementView.d.ts +11 -0
  142. package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -0
  143. package/dist/question/renderers/QuestionFillTextView.d.ts +11 -0
  144. package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -0
  145. package/dist/question/renderers/QuestionJudgementGroupView.d.ts +11 -0
  146. package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -0
  147. package/dist/question/renderers/QuestionLineConnectView.d.ts +10 -0
  148. package/dist/question/renderers/QuestionLineConnectView.d.ts.map +1 -0
  149. package/dist/question/renderers/QuestionMatchingView.d.ts +10 -0
  150. package/dist/question/renderers/QuestionMatchingView.d.ts.map +1 -0
  151. package/dist/question/renderers/QuestionOptionGroupView.d.ts +11 -0
  152. package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -0
  153. package/dist/question/renderers/QuestionOrderingView.d.ts +10 -0
  154. package/dist/question/renderers/QuestionOrderingView.d.ts.map +1 -0
  155. package/dist/question/renderers/QuestionRichContentView.d.ts +8 -0
  156. package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -0
  157. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts +14 -0
  158. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +1 -0
  159. package/dist/question/renderers/QuestionSectionTitle.d.ts +6 -0
  160. package/dist/question/renderers/QuestionSectionTitle.d.ts.map +1 -0
  161. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +15 -0
  162. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
  163. package/dist/question/renderers/QuestionTextMarkerContent.d.ts +12 -0
  164. package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +1 -0
  165. package/dist/question/renderers/QuestionTextMarkerView.d.ts +10 -0
  166. package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +1 -0
  167. package/dist/question/renderers/QuestionWordBuilderView.d.ts +11 -0
  168. package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +1 -0
  169. package/dist/question/renderers/classificationAnswers.d.ts +4 -0
  170. package/dist/question/renderers/classificationAnswers.d.ts.map +1 -0
  171. package/dist/question/renderers/helpers.d.ts +14 -0
  172. package/dist/question/renderers/helpers.d.ts.map +1 -0
  173. package/dist/question/renderers/lineConnectAnswers.d.ts +4 -0
  174. package/dist/question/renderers/lineConnectAnswers.d.ts.map +1 -0
  175. package/dist/question/renderers/matchingAnswers.d.ts +4 -0
  176. package/dist/question/renderers/matchingAnswers.d.ts.map +1 -0
  177. package/dist/question/renderers/optionGroupAnswers.d.ts +4 -0
  178. package/dist/question/renderers/optionGroupAnswers.d.ts.map +1 -0
  179. package/dist/question/renderers/orderingAnswerGroups.d.ts +4 -0
  180. package/dist/question/renderers/orderingAnswerGroups.d.ts.map +1 -0
  181. package/dist/question/renderers/wordBuilderAnswers.d.ts +4 -0
  182. package/dist/question/renderers/wordBuilderAnswers.d.ts.map +1 -0
  183. package/dist/question/rich-text/RichTextField.d.ts +23 -0
  184. package/dist/question/rich-text/RichTextField.d.ts.map +1 -0
  185. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +6 -0
  186. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +1 -0
  187. package/dist/question/rich-text/rich-text-toolbar-context.d.ts +3 -0
  188. package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +1 -0
  189. package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +6 -0
  190. package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +1 -0
  191. package/dist/question/shared/subquestion-numbering.d.ts +2 -0
  192. package/dist/question/shared/subquestion-numbering.d.ts.map +1 -0
  193. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +14 -0
  194. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -0
  195. package/dist/question/structure-editor/QuestionStructureEditor.d.ts +9 -0
  196. package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -0
  197. package/dist/question/structure-editor/QuestionStructurePalette.d.ts +10 -0
  198. package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +1 -0
  199. package/dist/question/structure-editor/QuestionStructureSettings.d.ts +16 -0
  200. package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
  201. package/dist/question/structure-editor/structure-editor-labels.d.ts +75 -0
  202. package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -0
  203. package/dist/utils/cn.d.ts +3 -0
  204. package/dist/utils/cn.d.ts.map +1 -0
  205. package/package.json +15 -15
@@ -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;AAc1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAgDnD,wBAAgB,cAAc,CAC5B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAC5D,YAAY,CAqBd"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentDraft } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerViewResponse } from "./view-response-types";
5
+ export type QuestionPlayerCompositeProps = {
6
+ disabled: boolean;
7
+ messages: QuestionMessages;
8
+ onChildResponseChange: (childIndex: number, response: QuestionPlayerViewResponse) => void;
9
+ renderChild: (child: QuestionContentDraft, response: QuestionPlayerViewResponse, onChange: (response: QuestionPlayerViewResponse) => void, numberPath: readonly number[]) => ReactElement;
10
+ numberPath?: readonly number[];
11
+ response: QuestionPlayerViewResponse;
12
+ value: QuestionContentDraft;
13
+ };
14
+ export declare function QuestionPlayerComposite({ messages, numberPath, onChildResponseChange, renderChild, response, value, }: Readonly<QuestionPlayerCompositeProps>): ReactElement;
15
+ //# 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,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAKxE,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,qBAAqB,EAAE,CACrB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,0BAA0B,KACjC,IAAI,CAAC;IACV,WAAW,EAAE,CACX,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,0BAA0B,EACpC,QAAQ,EAAE,CAAC,QAAQ,EAAE,0BAA0B,KAAK,IAAI,EACxD,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,0BAA0B,CAAC;IACrC,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,UAAe,EACf,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,KAAK,GACN,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAkCvD"}
@@ -0,0 +1,19 @@
1
+ import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
2
+ import type { ReactElement } from "react";
3
+ import type { QuestionContentItem, QuestionContentStructureElement } from "../content-editor/types";
4
+ import type { QuestionLocale, QuestionMessages } from "../i18n";
5
+ import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
6
+ export type QuestionPlayerElementProps = {
7
+ disabled: boolean;
8
+ element: QuestionContentStructureElement;
9
+ item: QuestionContentItem;
10
+ locale: QuestionLocale;
11
+ messages: QuestionMessages;
12
+ onResponseItemChange: (item: QuestionPlayerViewResponseItem) => void;
13
+ response: QuestionPlayerViewResponse;
14
+ responseIndex: number;
15
+ showAnswer: boolean;
16
+ uploadImage?: RichTextEditorRootProps["uploadImage"];
17
+ };
18
+ export declare function QuestionPlayerElement({ disabled, element, item, locale, messages, onResponseItemChange, response, responseIndex, showAnswer, uploadImage, }: Readonly<QuestionPlayerElementProps>): ReactElement | null;
19
+ //# 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,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAIV,mBAAmB,EAOnB,+BAA+B,EAGhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAe/B,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,+BAA+B,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACrE,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,GAAG,IAAI,CAoF5D"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentTextMarkerItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
5
+ export type QuestionTextMarkerPlayerProps = {
6
+ disabled: boolean;
7
+ item: QuestionContentTextMarkerItem;
8
+ messages: QuestionMessages;
9
+ onChange: (item: QuestionPlayerViewResponseItem) => void;
10
+ response: QuestionPlayerViewResponse;
11
+ responseIndex: number;
12
+ showAnswer: boolean;
13
+ };
14
+ export declare function QuestionTextMarkerPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionTextMarkerPlayerProps>): ReactElement;
15
+ //# sourceMappingURL=QuestionTextMarkerPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionTextMarkerPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionTextMarkerPlayer.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;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAS/B,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CA8BxD"}
@@ -0,0 +1,16 @@
1
+ import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
2
+ import type { ReactElement } from "react";
3
+ import type { QuestionLocale, QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerViewResponse, QuestionPlayerTextResponseViewItem } from "./view-response-types";
5
+ export type QuestionTextResponsePlayerProps = {
6
+ readonly disabled: boolean;
7
+ readonly locale: QuestionLocale;
8
+ readonly label: string;
9
+ readonly messages: QuestionMessages;
10
+ readonly onChange: (item: QuestionPlayerTextResponseViewItem) => void;
11
+ readonly response: QuestionPlayerViewResponse;
12
+ readonly responseIndex: number;
13
+ readonly uploadImage?: RichTextEditorRootProps["uploadImage"];
14
+ };
15
+ export declare function QuestionTextResponsePlayer({ disabled, locale, label, messages, onChange, response, responseIndex, uploadImage, }: QuestionTextResponsePlayerProps): ReactElement;
16
+ //# sourceMappingURL=QuestionTextResponsePlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionTextResponsePlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionTextResponsePlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EACV,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,kCAAkC,KAAK,IAAI,CAAC;IACtE,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CAC/D,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,GACZ,EAAE,+BAA+B,GAAG,YAAY,CAwBhD"}
@@ -0,0 +1,16 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentWordBuilderItem, QuestionContentWordBuilderStructureElement } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
5
+ export type QuestionWordBuilderPlayerProps = {
6
+ disabled: boolean;
7
+ element: QuestionContentWordBuilderStructureElement;
8
+ item: QuestionContentWordBuilderItem;
9
+ messages: QuestionMessages;
10
+ onChange: (item: QuestionPlayerViewResponseItem) => void;
11
+ response: QuestionPlayerViewResponse;
12
+ responseIndex: number;
13
+ showAnswer: boolean;
14
+ };
15
+ export declare function QuestionWordBuilderPlayer({ disabled, element, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionWordBuilderPlayerProps>): ReactElement;
16
+ //# sourceMappingURL=QuestionWordBuilderPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionWordBuilderPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionWordBuilderPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAU/B,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,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CA8HzD"}
@@ -0,0 +1,26 @@
1
+ import type { QuestionContentFillTextStructureElement, QuestionContentOrderingItem, QuestionContentQuestionTypeTemplate } from "../content-editor/types";
2
+ import type { QuestionPresentationDraft } from "../presentation-contract";
3
+ import type { QuestionPlayerResponse } from "./types";
4
+ import type { QuestionPlayerBlankGroupViewResponseItem, QuestionPlayerClassificationViewResponseItem, QuestionPlayerFillTextAnswer, QuestionPlayerFillTextViewResponseItem, QuestionPlayerJudgementGroupViewResponseItem, QuestionPlayerLineConnectViewResponseItem, QuestionPlayerMatchingViewResponseItem, QuestionPlayerOrderingViewResponseItem, QuestionPlayerOptionGroupViewResponseItem, QuestionPlayerTextMarkerViewResponseItem, QuestionPlayerTextResponseViewItem, QuestionPlayerViewResponse, QuestionPlayerViewResponseItem, QuestionPlayerWordBuilderViewResponseItem } from "./view-response-types";
5
+ export declare function createEmptyQuestionPlayerResponse(value: QuestionPresentationDraft, questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[]): QuestionPlayerResponse;
6
+ export declare function getOptionGroupResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerOptionGroupViewResponseItem;
7
+ export declare function getBlankGroupResponseItem(response: QuestionPlayerViewResponse, responseIndex: number, blankIds: readonly string[]): QuestionPlayerBlankGroupViewResponseItem;
8
+ export declare function getFillTextResponseItem(response: QuestionPlayerViewResponse, responseIndex: number, element: QuestionContentFillTextStructureElement, blankIds: readonly string[]): QuestionPlayerFillTextViewResponseItem;
9
+ export declare function getWordBuilderResponseItem(response: QuestionPlayerViewResponse, responseIndex: number, blankIds: readonly string[]): QuestionPlayerWordBuilderViewResponseItem;
10
+ export declare function getJudgementGroupResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerJudgementGroupViewResponseItem;
11
+ export declare function getClassificationResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerClassificationViewResponseItem;
12
+ export declare function getLineConnectResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerLineConnectViewResponseItem;
13
+ export declare function getMatchingResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerMatchingViewResponseItem;
14
+ export declare function getOrderingResponseItem(response: QuestionPlayerViewResponse, responseIndex: number, item: QuestionContentOrderingItem): QuestionPlayerOrderingViewResponseItem;
15
+ export declare function getTextMarkerResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerTextMarkerViewResponseItem;
16
+ export declare function getTextResponseItem(response: QuestionPlayerViewResponse, responseIndex: number): QuestionPlayerTextResponseViewItem;
17
+ export declare function updateResponseItem(response: QuestionPlayerViewResponse, responseIndex: number, nextItem: QuestionPlayerViewResponseItem): QuestionPlayerViewResponse;
18
+ export declare function updateChildResponse(response: QuestionPlayerViewResponse, childIndex: number, nextChild: QuestionPlayerViewResponse): QuestionPlayerViewResponse;
19
+ export declare function toggleSelectedOptionId(selectedOptionIds: readonly string[], optionId: string, selectionType: "multiple" | "single"): string[];
20
+ export declare function toggleOptionAnswer(answers: QuestionPlayerFillTextAnswer | undefined, optionId: string, selectionType?: "multiple" | "single"): QuestionPlayerFillTextAnswer;
21
+ export declare function toggleLineConnectConnection(connections: Record<string, string[]>, fromItemId: string, toItemId: string): Record<string, string[]>;
22
+ export declare function toggleMatchingConnection(connections: Record<string, string[]>, fromItemId: string, toItemId: string): Record<string, string[]>;
23
+ export declare function setClassificationResponsePlacement(placements: Record<string, string>, itemId: string, categoryId: string): Record<string, string>;
24
+ export declare function moveOrderingResponseOption(orderedOptionIds: readonly string[], item: QuestionContentOrderingItem, optionId: string, direction: -1 | 1): string[];
25
+ export declare function toggleTextMarkerSelection(selectedMarkers: readonly string[], markerId: string): string[];
26
+ //# 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,EAEV,uCAAuC,EAGvC,2BAA2B,EAE3B,mCAAmC,EACpC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EACV,wCAAwC,EACxC,4CAA4C,EAC5C,4BAA4B,EAC5B,sCAAsC,EACtC,4CAA4C,EAC5C,yCAAyC,EACzC,sCAAsC,EACtC,sCAAsC,EACtC,yCAAyC,EACzC,wCAAwC,EACxC,kCAAkC,EAClC,0BAA0B,EAC1B,8BAA8B,EAC9B,yCAAyC,EAC1C,MAAM,uBAAuB,CAAC;AAmB/B,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,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,EAAE,MAAM,EAChB,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAChB,MAAM,EAAE,CAOV;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,SAAS,MAAM,EAAE,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,CAIV"}
@@ -0,0 +1,8 @@
1
+ import type { QuestionContentDraft } from "../content-editor/types";
2
+ import type { QuestionPlayerResponse } from "./types";
3
+ import type { QuestionPlayerViewResponse } from "./view-response-types";
4
+ /** 将 QuestionPlayer 内部受控状态投影为唯一公共作答契约。 */
5
+ export declare function createCanonicalQuestionPlayerResponse(response: QuestionPlayerViewResponse, question: QuestionContentDraft): QuestionPlayerResponse;
6
+ /** 在组件入口校验 canonical 作答,再恢复为各 player 使用的局部 view state。 */
7
+ export declare function createQuestionPlayerViewResponse(response: QuestionPlayerResponse, question: QuestionContentDraft): QuestionPlayerViewResponse;
8
+ //# sourceMappingURL=response-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-contract.d.ts","sourceRoot":"","sources":["../../../src/question/player/response-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EAIrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,uBAAuB,CAAC;AAU/B,0CAA0C;AAC1C,wBAAgB,qCAAqC,CACnD,QAAQ,EAAE,0BAA0B,EACpC,QAAQ,EAAE,oBAAoB,GAC7B,sBAAsB,CAmBxB;AAED,0DAA0D;AAC1D,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,oBAAoB,GAC7B,0BAA0B,CAuB5B"}
@@ -0,0 +1,70 @@
1
+ import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
2
+ import type { ChoiceAnswers } from "../../model/types";
3
+ import type { QuestionContentQuestionTypeTemplate, QuestionContentClassificationAnswer, QuestionContentLineConnectAnswer, QuestionContentMatchingAnswer, QuestionRichBlankAnswerGroup, QuestionRichContentValue, QuestionJudgementValues } from "../content-editor/types";
4
+ import type { QuestionLocale } from "../i18n";
5
+ import type { QuestionPresentationDraft } from "../presentation-contract";
6
+ export type QuestionPlayerOptionGroupResponseItem = {
7
+ readonly answers: ChoiceAnswers;
8
+ readonly type: "choice";
9
+ };
10
+ export type QuestionPlayerBlankGroupResponseItem = {
11
+ readonly answers: readonly QuestionRichBlankAnswerGroup[];
12
+ readonly type: "fill";
13
+ };
14
+ export type QuestionPlayerFillTextResponseItem = {
15
+ readonly answers: readonly QuestionRichBlankAnswerGroup[];
16
+ readonly type: "inlineFill";
17
+ };
18
+ export type QuestionPlayerWordBuilderResponseItem = {
19
+ readonly answers: Readonly<Record<string, string>>;
20
+ readonly type: "wordBuilder";
21
+ };
22
+ export type QuestionPlayerJudgementGroupResponseItem = {
23
+ readonly answers: QuestionJudgementValues;
24
+ readonly type: "judgement";
25
+ };
26
+ export type QuestionPlayerClassificationResponseItem = {
27
+ readonly answers: Readonly<QuestionContentClassificationAnswer>;
28
+ readonly type: "classification";
29
+ };
30
+ export type QuestionPlayerLineConnectResponseItem = {
31
+ readonly answers: Readonly<QuestionContentLineConnectAnswer>;
32
+ readonly type: "lineConnect";
33
+ };
34
+ export type QuestionPlayerMatchingResponseItem = {
35
+ readonly answers: Readonly<QuestionContentMatchingAnswer>;
36
+ readonly type: "matching";
37
+ };
38
+ export type QuestionPlayerOrderingResponseItem = {
39
+ readonly answers: readonly string[];
40
+ readonly type: "ordering";
41
+ };
42
+ export type QuestionPlayerTextMarkerResponseItem = {
43
+ readonly answers: readonly string[];
44
+ readonly type: "textMarker";
45
+ };
46
+ export type QuestionPlayerTextResponseItem = {
47
+ readonly answers: QuestionRichContentValue;
48
+ readonly type: "textResponse";
49
+ };
50
+ export type QuestionPlayerResponseItem = QuestionPlayerBlankGroupResponseItem | QuestionPlayerClassificationResponseItem | QuestionPlayerFillTextResponseItem | QuestionPlayerJudgementGroupResponseItem | QuestionPlayerLineConnectResponseItem | QuestionPlayerMatchingResponseItem | QuestionPlayerOrderingResponseItem | QuestionPlayerOptionGroupResponseItem | QuestionPlayerTextMarkerResponseItem | QuestionPlayerTextResponseItem | QuestionPlayerWordBuilderResponseItem;
51
+ export type QuestionPlayerResponse = {
52
+ readonly questionTypeKey: null | number;
53
+ readonly children: readonly QuestionPlayerResponse[];
54
+ readonly elementAnswers: readonly QuestionPlayerResponseItem[];
55
+ readonly id: null | number;
56
+ readonly version: string;
57
+ };
58
+ export type QuestionPlayerProps = {
59
+ className?: string;
60
+ disabled?: boolean;
61
+ locale?: QuestionLocale;
62
+ onResponseChange: (response: QuestionPlayerResponse) => void;
63
+ response: QuestionPlayerResponse;
64
+ showAnswer?: boolean;
65
+ showExtraAttributes?: boolean;
66
+ questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[];
67
+ uploadImage?: RichTextEditorRootProps["uploadImage"];
68
+ value: QuestionPresentationDraft;
69
+ };
70
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/question/player/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EACV,mCAAmC,EACnC,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC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AAuB,CAAC,aAAa,CAAC,CAAC;IACrD,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { QuestionRichContentValue, QuestionJudgementValues } from "../content-editor/types";
2
+ export type QuestionPlayerFillTextAnswer = {
3
+ kind: "option";
4
+ optionIds: string[];
5
+ } | {
6
+ kind: "text";
7
+ value: string;
8
+ };
9
+ export type QuestionPlayerOptionGroupViewResponseItem = {
10
+ selectedOptionIds: string[];
11
+ type: "choice";
12
+ };
13
+ export type QuestionPlayerBlankGroupViewResponseItem = {
14
+ answers: Record<string, string>;
15
+ type: "fill";
16
+ };
17
+ export type QuestionPlayerFillTextViewResponseItem = {
18
+ answers: Record<string, QuestionPlayerFillTextAnswer>;
19
+ type: "inlineFill";
20
+ };
21
+ export type QuestionPlayerWordBuilderViewResponseItem = {
22
+ answers: Record<string, string>;
23
+ type: "wordBuilder";
24
+ };
25
+ export type QuestionPlayerJudgementGroupViewResponseItem = {
26
+ selectedValues: QuestionJudgementValues;
27
+ type: "judgement";
28
+ };
29
+ export type QuestionPlayerClassificationViewResponseItem = {
30
+ placements: Record<string, string>;
31
+ type: "classification";
32
+ };
33
+ export type QuestionPlayerLineConnectViewResponseItem = {
34
+ connections: Record<string, string[]>;
35
+ type: "lineConnect";
36
+ };
37
+ export type QuestionPlayerMatchingViewResponseItem = {
38
+ connections: Record<string, string[]>;
39
+ type: "matching";
40
+ };
41
+ export type QuestionPlayerOrderingViewResponseItem = {
42
+ orderedOptionIds: string[];
43
+ type: "ordering";
44
+ };
45
+ export type QuestionPlayerTextMarkerViewResponseItem = {
46
+ selectedMarkers: string[];
47
+ type: "textMarker";
48
+ };
49
+ export type QuestionPlayerTextResponseViewItem = {
50
+ readonly content: QuestionRichContentValue;
51
+ readonly type: "textResponse";
52
+ };
53
+ export type QuestionPlayerViewResponseItem = QuestionPlayerBlankGroupViewResponseItem | QuestionPlayerClassificationViewResponseItem | QuestionPlayerFillTextViewResponseItem | QuestionPlayerJudgementGroupViewResponseItem | QuestionPlayerLineConnectViewResponseItem | QuestionPlayerMatchingViewResponseItem | QuestionPlayerOrderingViewResponseItem | QuestionPlayerOptionGroupViewResponseItem | QuestionPlayerTextMarkerViewResponseItem | QuestionPlayerTextResponseViewItem | QuestionPlayerWordBuilderViewResponseItem;
54
+ export type QuestionPlayerViewResponse = {
55
+ questionTypeKey: null | number;
56
+ children: QuestionPlayerViewResponse[];
57
+ id: null | number;
58
+ items: QuestionPlayerViewResponseItem[];
59
+ version: string;
60
+ };
61
+ //# sourceMappingURL=view-response-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-response-types.d.ts","sourceRoot":"","sources":["../../../src/question/player/view-response-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,4BAA4B,GACpC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpC,MAAM,MAAM,yCAAyC,GAAG;IACtD,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IACtD,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,aAAa,CAAC;C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I,GAAG,MAAM,CAAC;IAClB,KAAK,EAAE,8BAA8B,EAAE,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ChoiceAnswers } from "../model/types";
2
+ import type { QuestionContentDraft, QuestionContentExtraItem, QuestionContentItem, QuestionContentOptionGroupItem, QuestionContentQuestionTypeTemplate } from "./content-editor/types";
3
+ export type QuestionPresentationChoiceItem = {
4
+ readonly answers?: ChoiceAnswers;
5
+ readonly columns: QuestionContentOptionGroupItem["columns"];
6
+ readonly options: QuestionContentOptionGroupItem["options"];
7
+ readonly type: "choice";
8
+ };
9
+ export type QuestionPresentationItem = Exclude<QuestionContentItem, QuestionContentOptionGroupItem> | QuestionPresentationChoiceItem;
10
+ export type QuestionPresentationDraft = {
11
+ readonly questionTypeKey: null | number;
12
+ readonly children: readonly QuestionPresentationDraft[];
13
+ readonly elements: readonly QuestionPresentationItem[];
14
+ readonly extras: readonly QuestionContentExtraItem[];
15
+ readonly id: null | number;
16
+ readonly version: string;
17
+ };
18
+ export declare function reconcileQuestionPresentationDraftWithTemplates(value: QuestionPresentationDraft, templates: readonly QuestionContentQuestionTypeTemplate[]): QuestionContentDraft;
19
+ export declare function normalizeQuestionPresentationDraft(value: QuestionPresentationDraft): QuestionContentDraft;
20
+ //# sourceMappingURL=presentation-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-contract.d.ts","sourceRoot":"","sources":["../../src/question/presentation-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,8BAA8B,EAC9B,mCAAmC,EACpC,MAAM,wBAAwB,CAAC;AAIhC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAC5D,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAC5D,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC,OAAO,CAAC,mBAAmB,EAAE,8BAA8B,CAAC,GAC5D,8BAA8B,CAAC;AAEnC,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,eAAe,EAAE,IAAI,GAAG,MAAM,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,yBAAyB,EAAE,CAAC;IACxD,QAAQ,CAAC,QAAQ,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACrD,QAAQ,CAAC,EAAE,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,+CAA+C,CAC7D,KAAK,EAAE,yBAAyB,EAChC,SAAS,EAAE,SAAS,mCAAmC,EAAE,GACxD,oBAAoB,CAKtB;AAED,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,yBAAyB,GAC/B,oBAAoB,CAStB"}
@@ -0,0 +1,11 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentDraft } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionCompositePreviewProps = {
5
+ messages: QuestionMessages;
6
+ renderChild: (child: QuestionContentDraft, numberPath: readonly number[]) => ReactElement;
7
+ numberPath?: readonly number[];
8
+ value: QuestionContentDraft;
9
+ };
10
+ export declare function QuestionCompositePreview({ messages, numberPath, renderChild, value, }: Readonly<QuestionCompositePreviewProps>): ReactElement;
11
+ //# 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,EACrB,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,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,UAAe,EACf,WAAW,EACX,KAAK,GACN,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CAqBxD"}
@@ -0,0 +1,14 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentQuestionTypeTemplate } from "../content-editor/types";
3
+ import type { QuestionLocale } from "../i18n";
4
+ import type { QuestionPresentationDraft } from "../presentation-contract";
5
+ export type QuestionPreviewProps = {
6
+ className?: string;
7
+ locale?: QuestionLocale;
8
+ showAnswer?: boolean;
9
+ showExtraAttributes?: boolean;
10
+ questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[];
11
+ value: QuestionPresentationDraft;
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,EAOV,mCAAmC,EACpC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAgB1E,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,qBAAqB,EAAE,SAAS,mCAAmC,EAAE,CAAC;IACtE,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AAQF,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAC7D,YAAY,CAad"}
@@ -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,CAwCtD"}
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentClassificationItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionClassificationViewProps = {
5
+ item: QuestionContentClassificationItem;
6
+ messages: QuestionMessages;
7
+ showAnswer: boolean;
8
+ };
9
+ export declare function QuestionClassificationView({ item, messages, showAnswer, }: Readonly<QuestionClassificationViewProps>): ReactElement;
10
+ //# sourceMappingURL=QuestionClassificationView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionClassificationView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionClassificationView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,CA8B1D"}
@@ -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,EAIV,mBAAmB,EAOnB,+BAA+B,EAGhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAchD,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,CAuDjE"}
@@ -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,CA8BpD"}
@@ -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;AAShD,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,CAgC1D"}
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentLineConnectItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionLineConnectViewProps = {
5
+ item: QuestionContentLineConnectItem;
6
+ messages: QuestionMessages;
7
+ showAnswer: boolean;
8
+ };
9
+ export declare function QuestionLineConnectView({ item, messages, showAnswer, }: Readonly<QuestionLineConnectViewProps>): ReactElement;
10
+ //# sourceMappingURL=QuestionLineConnectView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionLineConnectView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionLineConnectView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAyCvD"}
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentMatchingItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionMatchingViewProps = {
5
+ item: QuestionContentMatchingItem;
6
+ messages: QuestionMessages;
7
+ showAnswer: boolean;
8
+ };
9
+ export declare function QuestionMatchingView({ item, messages, showAnswer, }: Readonly<QuestionMatchingViewProps>): ReactElement;
10
+ //# sourceMappingURL=QuestionMatchingView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionMatchingView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionMatchingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CAkCpD"}
@@ -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,CAuFvD"}
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentOrderingItem } from "../content-editor/types";
3
+ import type { QuestionMessages } from "../i18n";
4
+ export type QuestionOrderingViewProps = {
5
+ item: QuestionContentOrderingItem;
6
+ messages: QuestionMessages;
7
+ showAnswer: boolean;
8
+ };
9
+ export declare function QuestionOrderingView({ item, messages, showAnswer, }: Readonly<QuestionOrderingViewProps>): ReactElement;
10
+ //# sourceMappingURL=QuestionOrderingView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionOrderingView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionOrderingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOhD,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CAmBpD"}
@@ -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,CAiBvD"}
@@ -0,0 +1,14 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ import type { QuestionRichContentValue } from "../content-editor/types";
3
+ export type QuestionRichContentBlankRenderOptions = {
4
+ readonly blankId: string;
5
+ readonly index: number;
6
+ readonly label: string;
7
+ };
8
+ export type QuestionRichContentWithBlankViewProps = {
9
+ className?: string;
10
+ content: QuestionRichContentValue;
11
+ renderBlank: (options: QuestionRichContentBlankRenderOptions) => ReactNode;
12
+ };
13
+ export declare function QuestionRichContentWithBlankView({ className, content, renderBlank, }: Readonly<QuestionRichContentWithBlankViewProps>): ReactElement;
14
+ //# sourceMappingURL=QuestionRichContentWithBlankView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionRichContentWithBlankView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionRichContentWithBlankView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAaxE,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,wBAAwB,CAAC;IAClC,WAAW,EAAE,CAAC,OAAO,EAAE,qCAAqC,KAAK,SAAS,CAAC;CAC5E,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC/C,SAAS,EACT,OAAO,EACP,WAAW,GACZ,EAAE,QAAQ,CAAC,qCAAqC,CAAC,GAAG,YAAY,CAkBhE"}
@@ -0,0 +1,6 @@
1
+ import type { ReactElement } from "react";
2
+ export type QuestionSectionTitleProps = {
3
+ children: string;
4
+ };
5
+ export declare function QuestionSectionTitle({ children, }: Readonly<QuestionSectionTitleProps>): ReactElement;
6
+ //# sourceMappingURL=QuestionSectionTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionSectionTitle.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionSectionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,GACT,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CAEpD"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ export type QuestionStandardAnswerGroup = {
3
+ kind: "markerOnly";
4
+ marker: string;
5
+ } | {
6
+ contents: readonly ReactNode[];
7
+ kind: "detailed";
8
+ marker: string;
9
+ };
10
+ export type QuestionStandardAnswerPanelProps = {
11
+ groups: readonly QuestionStandardAnswerGroup[];
12
+ title: string;
13
+ };
14
+ export declare function QuestionStandardAnswerPanel({ groups, title, }: Readonly<QuestionStandardAnswerPanelProps>): ReactElement | null;
15
+ //# sourceMappingURL=QuestionStandardAnswerPanel.d.ts.map