@yungu-fed/question-editor 0.1.12 → 0.2.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 (193) hide show
  1. package/package.json +19 -17
  2. package/dist/index.css +0 -1
  3. package/dist/index.d.ts +0 -22
  4. package/dist/index.d.ts.map +0 -1
  5. package/dist/index.js +0 -10946
  6. package/dist/index.mjs +0 -8506
  7. package/dist/model/choice.d.ts +0 -14
  8. package/dist/model/choice.d.ts.map +0 -1
  9. package/dist/model/classification.d.ts +0 -8
  10. package/dist/model/classification.d.ts.map +0 -1
  11. package/dist/model/line-connect.d.ts +0 -25
  12. package/dist/model/line-connect.d.ts.map +0 -1
  13. package/dist/model/matching.d.ts +0 -24
  14. package/dist/model/matching.d.ts.map +0 -1
  15. package/dist/model/question-structure.d.ts +0 -147
  16. package/dist/model/question-structure.d.ts.map +0 -1
  17. package/dist/model/rich-text-blank.d.ts +0 -3
  18. package/dist/model/rich-text-blank.d.ts.map +0 -1
  19. package/dist/model/rich-text.d.ts +0 -12
  20. package/dist/model/rich-text.d.ts.map +0 -1
  21. package/dist/model/text-marker.d.ts +0 -18
  22. package/dist/model/text-marker.d.ts.map +0 -1
  23. package/dist/model/types.d.ts +0 -29
  24. package/dist/model/types.d.ts.map +0 -1
  25. package/dist/package.json +0 -3
  26. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +0 -14
  27. package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +0 -1
  28. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts +0 -14
  29. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +0 -1
  30. package/dist/question/content-editor/QuestionContentEditor.d.ts +0 -16
  31. package/dist/question/content-editor/QuestionContentEditor.d.ts.map +0 -1
  32. package/dist/question/content-editor/QuestionContentEditorUi.d.ts +0 -95
  33. package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +0 -1
  34. package/dist/question/content-editor/QuestionContentElementEditor.d.ts +0 -18
  35. package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +0 -1
  36. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +0 -16
  37. package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +0 -1
  38. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +0 -14
  39. package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +0 -1
  40. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts +0 -15
  41. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +0 -1
  42. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +0 -15
  43. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts.map +0 -1
  44. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +0 -15
  45. package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +0 -1
  46. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts +0 -14
  47. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts.map +0 -1
  48. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +0 -13
  49. package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +0 -1
  50. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +0 -13
  51. package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +0 -1
  52. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +0 -20
  53. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +0 -1
  54. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +0 -14
  55. package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +0 -1
  56. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +0 -15
  57. package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +0 -1
  58. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts +0 -15
  59. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +0 -1
  60. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +0 -16
  61. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts.map +0 -1
  62. package/dist/question/content-editor/QuestionRichTextField.d.ts +0 -16
  63. package/dist/question/content-editor/QuestionRichTextField.d.ts.map +0 -1
  64. package/dist/question/content-editor/helpers.d.ts +0 -118
  65. package/dist/question/content-editor/helpers.d.ts.map +0 -1
  66. package/dist/question/content-editor/i18n.d.ts +0 -8
  67. package/dist/question/content-editor/i18n.d.ts.map +0 -1
  68. package/dist/question/content-editor/question-type-template.d.ts +0 -7
  69. package/dist/question/content-editor/question-type-template.d.ts.map +0 -1
  70. package/dist/question/content-editor/structure.d.ts +0 -22
  71. package/dist/question/content-editor/structure.d.ts.map +0 -1
  72. package/dist/question/content-editor/subquestion-editable-children.d.ts +0 -7
  73. package/dist/question/content-editor/subquestion-editable-children.d.ts.map +0 -1
  74. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +0 -6
  75. package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +0 -1
  76. package/dist/question/content-editor/types.d.ts +0 -253
  77. package/dist/question/content-editor/types.d.ts.map +0 -1
  78. package/dist/question/elements/fill/inline-fill-plugin.d.ts +0 -3
  79. package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +0 -1
  80. package/dist/question/elements/text-marker/text-marker-plugin.d.ts +0 -3
  81. package/dist/question/elements/text-marker/text-marker-plugin.d.ts.map +0 -1
  82. package/dist/question/i18n/index.d.ts +0 -3
  83. package/dist/question/i18n/index.d.ts.map +0 -1
  84. package/dist/question/i18n/messages.d.ts +0 -68
  85. package/dist/question/i18n/messages.d.ts.map +0 -1
  86. package/dist/question/line-connect/lineConnectLines.d.ts +0 -37
  87. package/dist/question/line-connect/lineConnectLines.d.ts.map +0 -1
  88. package/dist/question/player/QuestionBlankGroupPlayer.d.ts +0 -15
  89. package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +0 -1
  90. package/dist/question/player/QuestionClassificationPlayer.d.ts +0 -15
  91. package/dist/question/player/QuestionClassificationPlayer.d.ts.map +0 -1
  92. package/dist/question/player/QuestionFillTextCandidateButton.d.ts +0 -12
  93. package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +0 -1
  94. package/dist/question/player/QuestionFillTextContentPlayer.d.ts +0 -15
  95. package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +0 -1
  96. package/dist/question/player/QuestionFillTextPlayer.d.ts +0 -16
  97. package/dist/question/player/QuestionFillTextPlayer.d.ts.map +0 -1
  98. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +0 -16
  99. package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +0 -1
  100. package/dist/question/player/QuestionLineConnectPlayer.d.ts +0 -15
  101. package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +0 -1
  102. package/dist/question/player/QuestionMatchingPlayer.d.ts +0 -15
  103. package/dist/question/player/QuestionMatchingPlayer.d.ts.map +0 -1
  104. package/dist/question/player/QuestionOptionGroupPlayer.d.ts +0 -16
  105. package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +0 -1
  106. package/dist/question/player/QuestionOrderingPlayer.d.ts +0 -15
  107. package/dist/question/player/QuestionOrderingPlayer.d.ts.map +0 -1
  108. package/dist/question/player/QuestionPlayer.d.ts +0 -4
  109. package/dist/question/player/QuestionPlayer.d.ts.map +0 -1
  110. package/dist/question/player/QuestionPlayerComposite.d.ts +0 -15
  111. package/dist/question/player/QuestionPlayerComposite.d.ts.map +0 -1
  112. package/dist/question/player/QuestionPlayerElement.d.ts +0 -19
  113. package/dist/question/player/QuestionPlayerElement.d.ts.map +0 -1
  114. package/dist/question/player/QuestionTextMarkerPlayer.d.ts +0 -15
  115. package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +0 -1
  116. package/dist/question/player/QuestionTextResponsePlayer.d.ts +0 -16
  117. package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +0 -1
  118. package/dist/question/player/QuestionWordBuilderPlayer.d.ts +0 -16
  119. package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +0 -1
  120. package/dist/question/player/helpers.d.ts +0 -24
  121. package/dist/question/player/helpers.d.ts.map +0 -1
  122. package/dist/question/player/types.d.ts +0 -75
  123. package/dist/question/player/types.d.ts.map +0 -1
  124. package/dist/question/preview/QuestionCompositePreview.d.ts +0 -11
  125. package/dist/question/preview/QuestionCompositePreview.d.ts.map +0 -1
  126. package/dist/question/preview/QuestionPreview.d.ts +0 -13
  127. package/dist/question/preview/QuestionPreview.d.ts.map +0 -1
  128. package/dist/question/renderers/QuestionBlankGroupView.d.ts +0 -10
  129. package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +0 -1
  130. package/dist/question/renderers/QuestionClassificationView.d.ts +0 -10
  131. package/dist/question/renderers/QuestionClassificationView.d.ts.map +0 -1
  132. package/dist/question/renderers/QuestionContentElementView.d.ts +0 -11
  133. package/dist/question/renderers/QuestionContentElementView.d.ts.map +0 -1
  134. package/dist/question/renderers/QuestionFillTextView.d.ts +0 -11
  135. package/dist/question/renderers/QuestionFillTextView.d.ts.map +0 -1
  136. package/dist/question/renderers/QuestionJudgementGroupView.d.ts +0 -11
  137. package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +0 -1
  138. package/dist/question/renderers/QuestionLineConnectView.d.ts +0 -10
  139. package/dist/question/renderers/QuestionLineConnectView.d.ts.map +0 -1
  140. package/dist/question/renderers/QuestionMatchingView.d.ts +0 -10
  141. package/dist/question/renderers/QuestionMatchingView.d.ts.map +0 -1
  142. package/dist/question/renderers/QuestionOptionGroupView.d.ts +0 -11
  143. package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +0 -1
  144. package/dist/question/renderers/QuestionOrderingView.d.ts +0 -10
  145. package/dist/question/renderers/QuestionOrderingView.d.ts.map +0 -1
  146. package/dist/question/renderers/QuestionRichContentView.d.ts +0 -8
  147. package/dist/question/renderers/QuestionRichContentView.d.ts.map +0 -1
  148. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts +0 -14
  149. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +0 -1
  150. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +0 -11
  151. package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +0 -1
  152. package/dist/question/renderers/QuestionTextMarkerContent.d.ts +0 -12
  153. package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +0 -1
  154. package/dist/question/renderers/QuestionTextMarkerView.d.ts +0 -10
  155. package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +0 -1
  156. package/dist/question/renderers/QuestionWordBuilderView.d.ts +0 -11
  157. package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +0 -1
  158. package/dist/question/renderers/classificationAnswers.d.ts +0 -4
  159. package/dist/question/renderers/classificationAnswers.d.ts.map +0 -1
  160. package/dist/question/renderers/helpers.d.ts +0 -14
  161. package/dist/question/renderers/helpers.d.ts.map +0 -1
  162. package/dist/question/renderers/lineConnectAnswers.d.ts +0 -4
  163. package/dist/question/renderers/lineConnectAnswers.d.ts.map +0 -1
  164. package/dist/question/renderers/matchingAnswers.d.ts +0 -4
  165. package/dist/question/renderers/matchingAnswers.d.ts.map +0 -1
  166. package/dist/question/renderers/optionGroupAnswers.d.ts +0 -4
  167. package/dist/question/renderers/optionGroupAnswers.d.ts.map +0 -1
  168. package/dist/question/renderers/orderingAnswerGroups.d.ts +0 -4
  169. package/dist/question/renderers/orderingAnswerGroups.d.ts.map +0 -1
  170. package/dist/question/renderers/wordBuilderAnswers.d.ts +0 -4
  171. package/dist/question/renderers/wordBuilderAnswers.d.ts.map +0 -1
  172. package/dist/question/rich-text/RichTextField.d.ts +0 -23
  173. package/dist/question/rich-text/RichTextField.d.ts.map +0 -1
  174. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +0 -6
  175. package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +0 -1
  176. package/dist/question/rich-text/rich-text-toolbar-context.d.ts +0 -3
  177. package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +0 -1
  178. package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +0 -6
  179. package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +0 -1
  180. package/dist/question/shared/subquestion-numbering.d.ts +0 -2
  181. package/dist/question/shared/subquestion-numbering.d.ts.map +0 -1
  182. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +0 -14
  183. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +0 -1
  184. package/dist/question/structure-editor/QuestionStructureEditor.d.ts +0 -9
  185. package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +0 -1
  186. package/dist/question/structure-editor/QuestionStructurePalette.d.ts +0 -10
  187. package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +0 -1
  188. package/dist/question/structure-editor/QuestionStructureSettings.d.ts +0 -16
  189. package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +0 -1
  190. package/dist/question/structure-editor/structure-editor-labels.d.ts +0 -75
  191. package/dist/question/structure-editor/structure-editor-labels.d.ts.map +0 -1
  192. package/dist/utils/cn.d.ts +0 -3
  193. package/dist/utils/cn.d.ts.map +0 -1
@@ -1,14 +0,0 @@
1
- import type { ChoiceAnswers, ChoiceColumn, ChoiceOption, ChoiceRenderer, ChoiceSelectionType } from "./types";
2
- export declare function removeChoiceColumnAtIndex<TElement extends {
3
- readonly columns: readonly ChoiceColumn[];
4
- readonly options: readonly ChoiceOption[];
5
- }>(element: TElement, columnIndex: number): TElement;
6
- export declare function toggleChoiceOptionIds(currentOptionIds: readonly string[], optionId: string, selectionType: ChoiceSelectionType): string[];
7
- export declare function createChoiceColumns(renderer: ChoiceRenderer): ChoiceColumn[];
8
- export declare function normalizeChoiceColumns(columns: readonly ChoiceColumn[], renderer: ChoiceRenderer): ChoiceColumn[];
9
- export declare function createChoiceOptions(columns: readonly ChoiceColumn[]): ChoiceOption[];
10
- export declare function createNextChoiceOption(options: readonly ChoiceOption[], columns: readonly ChoiceColumn[]): ChoiceOption;
11
- export declare function normalizeChoiceOptions(options: readonly ChoiceOption[], columns: readonly ChoiceColumn[]): ChoiceOption[];
12
- export declare function normalizeChoiceAnswers(answers: ChoiceAnswers | undefined, options: readonly ChoiceOption[], selectionType: ChoiceSelectionType): ChoiceAnswers;
13
- export declare function createNextChoiceColumn(columns: readonly ChoiceColumn[]): ChoiceColumn;
14
- //# sourceMappingURL=choice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"choice.d.ts","sourceRoot":"","sources":["../../src/model/choice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AASjB,wBAAgB,yBAAyB,CACvC,QAAQ,SAAS;IACf,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;CAC3C,EACD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,CAalD;AAED,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,SAAS,MAAM,EAAE,EACnC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,mBAAmB,GACjC,MAAM,EAAE,CAQV;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,GACvB,YAAY,EAAE,CAIhB;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,QAAQ,EAAE,cAAc,GACvB,YAAY,EAAE,CAWhB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,YAAY,EAAE,CAOhB;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,YAAY,CAad;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,YAAY,EAAE,CAehB;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,aAAa,GAAG,SAAS,EAClC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,aAAa,EAAE,mBAAmB,GACjC,aAAa,CAUf;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,YAAY,CAOd"}
@@ -1,8 +0,0 @@
1
- import type { ClassificationAnswer } from "./types";
2
- export declare function normalizeClassificationAnswer(answers: ClassificationAnswer | undefined, categories: readonly {
3
- readonly id: string;
4
- }[], items: readonly {
5
- readonly id: string;
6
- }[]): ClassificationAnswer;
7
- export declare function setClassificationPlacement<TAnswer extends Record<string, string>>(answers: TAnswer, itemId: string, categoryId: string): TAnswer;
8
- //# sourceMappingURL=classification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"classification.d.ts","sourceRoot":"","sources":["../../src/model/classification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,UAAU,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAC9C,KAAK,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,GACxC,oBAAoB,CAWtB;AAED,wBAAgB,0BAA0B,CACxC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAa/D"}
@@ -1,25 +0,0 @@
1
- import type { LineConnectLabelStyle, LineConnectQuestionTypeColumnConfig } from "./types";
2
- export declare const lineConnectLabelStyles: readonly ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
3
- export declare const lineConnectColumnLimits: {
4
- readonly max: 5;
5
- readonly min: 2;
6
- };
7
- export declare function canConnectLineConnectColumns(fromColumnIndex: number, toColumnIndex: number): boolean;
8
- export type NormalizedLineConnectConnection = {
9
- readonly fromItemId: string;
10
- readonly toItemId: string;
11
- };
12
- export declare function normalizeLineConnectConnectionDirection(firstItem: {
13
- readonly columnIndex: number;
14
- readonly itemId: string;
15
- }, secondItem: {
16
- readonly columnIndex: number;
17
- readonly itemId: string;
18
- }): NormalizedLineConnectConnection | null;
19
- export declare function normalizeLineConnectAnswerMap<TAnswer extends Record<string, readonly string[]>>(answers: TAnswer | undefined, itemColumnIndex: ReadonlyMap<string, number>): TAnswer;
20
- export declare function toggleLineConnectAnswerMap<TAnswer extends Record<string, readonly string[]>>(answers: TAnswer, fromItemId: string, toItemId: string): TAnswer;
21
- export declare function normalizeLineConnectColumnConfigs(configs: readonly LineConnectQuestionTypeColumnConfig[] | undefined): LineConnectQuestionTypeColumnConfig[];
22
- export declare function createDefaultLineConnectColumnConfigs(): LineConnectQuestionTypeColumnConfig[];
23
- export declare function getLineConnectLabelMarker(labelStyle: LineConnectLabelStyle, index: number): string;
24
- export declare function normalizeLineConnectLabelStyle(labelStyle: LineConnectLabelStyle | undefined, fallback: LineConnectLabelStyle): LineConnectLabelStyle;
25
- //# sourceMappingURL=line-connect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line-connect.d.ts","sourceRoot":"","sources":["../../src/model/line-connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,mCAAmC,EACpC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,sBAAsB,wFAOzB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AAEX,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,M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estionTypeColumnConfig } from "./types";
2
- export declare const matchingColumnLimits: {
3
- readonly max: 2;
4
- readonly min: 2;
5
- };
6
- export declare const matchingLabelStyles: readonly ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
7
- export declare function canConnectMatchingColumns(fromColumnIndex: number, toColumnIndex: number): boolean;
8
- export type NormalizedMatchingConnection = {
9
- readonly fromItemId: string;
10
- readonly toItemId: string;
11
- };
12
- export declare function normalizeMatchingConnectionDirection(firstItem: {
13
- readonly columnIndex: number;
14
- readonly itemId: string;
15
- }, secondItem: {
16
- readonly columnIndex: number;
17
- readonly itemId: string;
18
- }): NormalizedMatchingConnection | null;
19
- export declare function normalizeMatchingAnswerMap<TAnswer extends Record<string, readonly string[]>>(answers: TAnswer | undefined, itemColumnIndex: ReadonlyMap<string, number>): TAnswer;
20
- export declare function toggleMatchingAnswerMap<TAnswer extends Record<string, readonly string[]>>(answers: TAnswer, fromItemId: string, toItemId: string): TAnswer;
21
- export declare function normalizeMatchingColumnConfigs(configs: readonly MatchingQuestionTypeColumnConfig[] | undefined): MatchingQuestionTypeColumnConfig[];
22
- export declare function createDefaultMatchingColumnConfigs(): MatchingQuestionTypeColumnConfig[];
23
- export declare function getMatchingLabelMarker(labelStyle: MatchingQuestionTypeColumnConfig["labelStyle"], index: number): string;
24
- //# sourceMappingURL=matching.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/model/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAQhE,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,mBAAmB,wFAAyB,CAAC;AAE1D,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,GACpB,OAAO,CAET;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,SAAS,EAAE;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACpE,UAAU,EAAE;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACpE,4BAA4B,GAAG,IAAI,CAerC;AAID,wBAAgB,0BAA0B,CACxC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EAEjD,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CA0BT;AAED,wBAAgB,uBAAuB,CACrC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EACjD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CA4BjE;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,SAAS,gCAAgC,EAAE,GAAG,SAAS,GAC/D,gCAAgC,EAAE,CAqBpC;AAED,wBAAgB,kCAAkC,IAAI,gCAAgC,EAAE,CAEvF;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,gCAAgC,CAAC,YAAY,CAAC,EAC1D,KAAK,EAAE,MAAM,GACZ,MAAM,CAER"}
@@ -1,147 +0,0 @@
1
- export declare const questionStructureElementTypes: readonly ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement", "classification", "lineConnect", "matching", "ordering", "textMarker", "textResponse"];
2
- export type QuestionStructureElementType = (typeof questionStructureElementTypes)[number];
3
- export declare const questionStructureExtraTypes: readonly ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"];
4
- export type QuestionStructureExtraType = (typeof questionStructureExtraTypes)[number];
5
- export type QuestionStructureCandidateMode = "none" | "perBlankOptions" | "sharedPool";
6
- export type QuestionStructureOptionLabelStyle = "lowerAlpha" | "number" | "upperAlpha";
7
- export type QuestionStructureLineConnectLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha";
8
- export type QuestionStructureOptionRenderer = "standard" | "table";
9
- export type QuestionStructureSelectionType = "multiple" | "single";
10
- export type QuestionStructureWordBuilderMode = "sentence" | "spelling";
11
- export type QuestionStructureJudgeAnswerMode = "checkCross" | "correctWrong" | "rightWrong" | "tf" | "validInvalid" | "yesNo";
12
- export type QuestionStructureGlobalConfig = {
13
- readonly canPrint: boolean;
14
- readonly hasAnswer: boolean;
15
- readonly id: string;
16
- readonly name: string;
17
- readonly enName: string;
18
- };
19
- export type QuestionStructureMetadata = {
20
- readonly description?: string;
21
- readonly isSubjective: boolean;
22
- };
23
- export type QuestionStructureRichTextElement = {
24
- readonly config: Record<string, never>;
25
- readonly enName: string;
26
- readonly name: string;
27
- readonly type: "richText";
28
- };
29
- export type QuestionStructureFillTextElement = {
30
- readonly config: {
31
- readonly allowCandidateReuse: boolean;
32
- readonly candidateMode: QuestionStructureCandidateMode;
33
- };
34
- readonly enName: string;
35
- readonly name: string;
36
- readonly type: "inlineFill";
37
- };
38
- export type QuestionStructureWordBuilderElement = {
39
- readonly config: {
40
- readonly builderMode: QuestionStructureWordBuilderMode;
41
- };
42
- readonly enName: string;
43
- readonly name: string;
44
- readonly type: "wordBuilder";
45
- };
46
- export type QuestionStructureBlankGroupElement = {
47
- readonly config: Record<string, never>;
48
- readonly enName: string;
49
- readonly name: string;
50
- readonly type: "fill";
51
- };
52
- export type QuestionStructureOptionGroupElement = {
53
- readonly config: {
54
- readonly optionLabelStyle: QuestionStructureOptionLabelStyle;
55
- readonly renderer: QuestionStructureOptionRenderer;
56
- readonly selectionType: QuestionStructureSelectionType;
57
- };
58
- readonly enName: string;
59
- readonly name: string;
60
- readonly type: "choice";
61
- };
62
- export type QuestionStructureJudgementGroupElement = {
63
- readonly config: {
64
- readonly judgeAnswerMode: QuestionStructureJudgeAnswerMode;
65
- };
66
- readonly enName: string;
67
- readonly name: string;
68
- readonly type: "judgement";
69
- };
70
- export type QuestionStructureClassificationElement = {
71
- readonly config: Record<string, never>;
72
- readonly enName: string;
73
- readonly name: string;
74
- readonly type: "classification";
75
- };
76
- export type QuestionStructureLineConnectColumnConfig = {
77
- readonly labelStyle: QuestionStructureLineConnectLabelStyle;
78
- };
79
- export type QuestionStructureLineConnectElement = {
80
- readonly config: {
81
- readonly columns: readonly QuestionStructureLineConnectColumnConfig[];
82
- };
83
- readonly enName: string;
84
- readonly name: string;
85
- readonly type: "lineConnect";
86
- };
87
- export type QuestionStructureMatchingElement = {
88
- readonly config: {
89
- readonly columns: readonly QuestionStructureLineConnectColumnConfig[];
90
- };
91
- readonly enName: string;
92
- readonly name: string;
93
- readonly type: "matching";
94
- };
95
- export type QuestionStructureTextMarkerElement = {
96
- readonly config: Record<string, never>;
97
- readonly enName: string;
98
- readonly name: string;
99
- readonly type: "textMarker";
100
- };
101
- export type QuestionStructureTextResponseElement = {
102
- readonly config: Record<string, never>;
103
- readonly enName: string;
104
- readonly name: string;
105
- readonly type: "textResponse";
106
- };
107
- export type QuestionStructureOrderingElement = {
108
- readonly config: Record<string, never>;
109
- readonly enName: string;
110
- readonly name: string;
111
- readonly type: "ordering";
112
- };
113
- export type QuestionStructureElement = QuestionStructureBlankGroupElement | QuestionStructureClassificationElement | QuestionStructureFillTextElement | QuestionStructureJudgementGroupElement | QuestionStructureLineConnectElement | QuestionStructureMatchingElement | QuestionStructureOrderingElement | QuestionStructureOptionGroupElement | QuestionStructureRichTextElement | QuestionStructureTextMarkerElement | QuestionStructureTextResponseElement | QuestionStructureWordBuilderElement;
114
- export type QuestionStructureDraftElement = QuestionStructureElement & {
115
- readonly clientId: string;
116
- };
117
- export type QuestionStructureExtra = {
118
- readonly enName: string;
119
- readonly name: string;
120
- readonly type: QuestionStructureExtraType;
121
- };
122
- export type QuestionStructureDraftExtra = QuestionStructureExtra & {
123
- readonly clientId: string;
124
- };
125
- export type QuestionStructureDraft = {
126
- readonly description?: string;
127
- readonly elements: readonly QuestionStructureDraftElement[];
128
- readonly extras: readonly QuestionStructureDraftExtra[];
129
- readonly globalConfig: QuestionStructureGlobalConfig;
130
- readonly isSubjective: boolean;
131
- readonly version: string;
132
- };
133
- export declare function createEmptyQuestionStructureDraft(): QuestionStructureDraft;
134
- export declare function createQuestionStructureExtra(type: QuestionStructureExtraType, _extra?: readonly QuestionStructureDraftExtra[]): QuestionStructureDraftExtra;
135
- export declare function createQuestionStructureElement(type: QuestionStructureElementType, _elements?: readonly QuestionStructureDraftElement[]): QuestionStructureDraftElement;
136
- export declare function deleteQuestionStructureExtra(draft: QuestionStructureDraft, clientId: string): QuestionStructureDraft;
137
- export declare function deleteQuestionStructureElement(draft: QuestionStructureDraft, clientId: string): QuestionStructureDraft;
138
- export declare function moveQuestionStructureElement(draft: QuestionStructureDraft, clientId: string, direction: -1 | 1): QuestionStructureDraft;
139
- export declare function updateQuestionStructureExtra(draft: QuestionStructureDraft, clientId: string, nextExtra: QuestionStructureDraftExtra): QuestionStructureDraft;
140
- export declare function updateQuestionStructureElement(draft: QuestionStructureDraft, clientId: string, nextElement: QuestionStructureDraftElement): QuestionStructureDraft;
141
- export declare function updateQuestionStructureGlobalConfig(draft: QuestionStructureDraft, patch: Partial<QuestionStructureGlobalConfig>): QuestionStructureDraft;
142
- export declare function updateQuestionStructureMetadata(draft: QuestionStructureDraft, patch: Partial<QuestionStructureMetadata>): QuestionStructureDraft;
143
- export declare function getQuestionStructureElementDefaultName(type: QuestionStructureElementType): string;
144
- export declare function getQuestionStructureElementDefaultEnName(type: QuestionStructureElementType): string;
145
- export declare function getQuestionStructureExtraDefaultName(type: QuestionStructureExtraType): string;
146
- export declare function getQuestionStructureExtraDefaultEnName(type: QuestionStructureExtraType): string;
147
- //# sourceMappingURL=question-structure.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-structure.d.ts","sourceRoot":"","sources":["../../src/model/question-structure.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,0KAahC,CAAC;AAEX,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,eAAO,MAAM,2BAA2B,yJAS9B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAkE/C,MAAM,MAAM,8BAA8B,GACtC,MAAM,GACN,iBAAiB,GACjB,YAAY,CAAC;AAEjB,MAAM,MAAM,iCAAiC,GACzC,YAAY,GACZ,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,sCAAsC,GAC9C,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,+BAA+B,GAAG,UAAU,GAAG,OAAO,CAAC;AAEnE,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnE,MAAM,MAAM,gCAAgC,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvE,MAAM,MAAM,gCAAgC,GACxC,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,IAAI,GACJ,cAAc,GACd,OAAO,CAAC;AAEZ,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG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EAAE,CAAC,CAAC,GAAG,CAAC,GAChB,sBAAsB,CA+BxB;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,2BAA2B,GACrC,sBAAsB,CAOxB;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,6BAA6B,GACzC,sBAAsB,CAOxB;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAC5C,sBAAsB,CAQxB;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,OAAO,CAAC,yBAAyB,CAAC,GACxC,sBAAsB,CAKxB;AAED,wBAAgB,sCAAsC,CACpD,IAAI,EAAE,4BAA4B,UAGnC;AAED,wBAAgB,wCAAwC,CACtD,IAAI,EAAE,4BAA4B,UAGnC;AAED,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,0BAA0B,UAMjC;AAED,wBAAgB,sCAAsC,CACpD,IAAI,EAAE,0BAA0B,UAMjC"}
@@ -1,3 +0,0 @@
1
- import type { RichTextEditorPlugin } from '@yungu-fed/rich-text-editor';
2
- export declare const richTextBlankPlugin: RichTextEditorPlugin;
3
- //# sourceMappingURL=rich-text-blank.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rich-text-blank.d.ts","sourceRoot":"","sources":["../../src/model/rich-text-blank.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,eAAO,MAAM,mBAAmB,EAAE,oBA+CjC,CAAA"}
@@ -1,12 +0,0 @@
1
- import type { RichTextEditorValue } from '@yungu-fed/rich-text-editor';
2
- import type { RichTextContent } from './types';
3
- type InlineBlank = {
4
- readonly id: string;
5
- readonly label: string;
6
- };
7
- export declare const emptyRichTextDocument: RichTextEditorValue;
8
- export declare function createRichTextContent(text?: string): RichTextContent;
9
- export declare function normalizeRichTextContent(input?: Partial<RichTextContent>): RichTextContent;
10
- export declare function normalizeInlineBlankRichTextContent(input: Partial<RichTextContent> | undefined, blanks: readonly InlineBlank[]): RichTextContent;
11
- export {};
12
- //# sourceMappingURL=rich-text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../src/model/rich-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mBAAmB,EACpB,MAAM,6BAA6B,CAAA;AAQpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,mBAEnC,CAAA;AAED,wBAAgB,qBAAqB,CAAC,IAAI,SAAK,GAAG,eAAe,CAEhE;AAED,wBAAgB,wBAAwB,CACtC,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAC/B,eAAe,CAQjB;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,EAC3C,MAAM,EAAE,SAAS,WAAW,EAAE,GAC7B,eAAe,CAQjB"}
@@ -1,18 +0,0 @@
1
- import type { RichTextEditorMarkDefinition, RichTextEditorMarkRenderer, RichTextEditorPlugin, RichTextEditorValue } from "@yungu-fed/rich-text-editor";
2
- import type { RichTextContent } from "./types";
3
- export declare const textMarkerCommand = "mark.textMarker";
4
- export declare const textMarkerMarkKey = "markerId";
5
- export declare const textMarkerRichTextPlugin: RichTextEditorPlugin;
6
- export type TextMarkerRange = {
7
- readonly markerId: string;
8
- readonly text: string;
9
- };
10
- export declare function createTextMarkerMarkDefinition(render?: RichTextEditorMarkRenderer): RichTextEditorMarkDefinition;
11
- export declare function createTextMarkerRichTextContent(text?: string): RichTextContent;
12
- export declare function normalizeTextMarkerRichTextContent(input?: Partial<RichTextContent>): RichTextContent;
13
- export declare function extractTextMarkerIds(value: RichTextEditorValue | undefined): string[];
14
- export declare function extractTextMarkerRanges(value: RichTextEditorValue | undefined): TextMarkerRange[];
15
- export declare function createNextTextMarkerId(markers: readonly string[]): string;
16
- export declare function normalizeTextMarkerIds(value: unknown): string[];
17
- export declare function readTextMarkerId(value: unknown): string;
18
- //# sourceMappingURL=text-marker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-marker.d.ts","sourceRoot":"","sources":["../../src/model/text-marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAQrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,eAAO,MAAM,wBAAwB,EAAE,oBAEtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,MAAM,CAAC,EAAE,0BAA0B,GAClC,4BAA4B,CAwB9B;AAED,wBAAgB,+BAA+B,CAAC,IAAI,SAAK,GAAG,eAAe,CAI1E;AAED,wBAAgB,kCAAkC,CAChD,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAC/B,eAAe,CAUjB;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,MAAM,EAAE,CAYV;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,eAAe,EAAE,CAyBnB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASzE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAO/D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvD"}
@@ -1,29 +0,0 @@
1
- import type { RichTextEditorValue } from "@yungu-fed/rich-text-editor";
2
- export type RichTextContent = {
3
- readonly html: string;
4
- readonly json: RichTextEditorValue;
5
- readonly text: string;
6
- };
7
- export type ChoiceOptionLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha" | "upperRoman";
8
- export type ChoiceSelectionType = "multiple" | "single";
9
- export type ChoiceRenderer = "standard" | "table";
10
- export type LineConnectLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha";
11
- export type LineConnectQuestionTypeColumnConfig = {
12
- readonly labelStyle: LineConnectLabelStyle;
13
- };
14
- export type MatchingQuestionTypeColumnConfig = {
15
- readonly labelStyle: LineConnectLabelStyle;
16
- };
17
- export type ChoiceColumn = {
18
- readonly content: RichTextContent;
19
- readonly id: string;
20
- };
21
- export type ChoiceOption = {
22
- readonly cells: readonly RichTextContent[];
23
- readonly id: string;
24
- };
25
- export type ChoiceAnswers = {
26
- readonly optionIds: readonly string[];
27
- };
28
- export type ClassificationAnswer = Readonly<Record<string, string>>;
29
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,YAAY,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC"}
package/dist/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,14 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentBlankGroupItem, QuestionContentItem, QuestionContentRichTextControls } from "./types";
4
- type QuestionContentBlankGroupEditorProps = {
5
- disabled: boolean;
6
- hasAnswer: boolean;
7
- item: QuestionContentBlankGroupItem;
8
- onChange: (item: QuestionContentItem) => void;
9
- richTextControls: QuestionContentRichTextControls;
10
- translator: QuestionContentEditorTranslator;
11
- };
12
- export declare function QuestionContentBlankGroupEditor({ disabled, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentBlankGroupEditorProps>): ReactElement;
13
- export {};
14
- //# sourceMappingURL=QuestionContentBlankGroupEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentBlankGroupEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentBlankGroupEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,+BAA+B,EAGhC,MAAM,SAAS,CAAC;AAsBjB,KAAK,oCAAoC,GAAG;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAC9C,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,oCAAoC,CAAC,GAAG,YAAY,CAub/D"}
@@ -1,14 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentClassificationItem, QuestionContentItem, QuestionContentRichTextControls } from "./types";
4
- type QuestionContentClassificationEditorProps = {
5
- disabled: boolean;
6
- hasAnswer: boolean;
7
- item: QuestionContentClassificationItem;
8
- onChange: (item: QuestionContentItem) => void;
9
- richTextControls: QuestionContentRichTextControls;
10
- translator: QuestionContentEditorTranslator;
11
- };
12
- export declare function QuestionContentClassificationEditor({ disabled, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentClassificationEditorProps>): ReactElement;
13
- export {};
14
- //# sourceMappingURL=QuestionContentClassificationEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentClassificationEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentClassificationEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,KAAK,EACV,iCAAiC,EACjC,mBAAmB,EACnB,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAsBjB,KAAK,wCAAwC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,mCAAmC,CAAC,EAClD,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,wCAAwC,CAAC,GAAG,YAAY,CAmLnE"}
@@ -1,16 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import { type RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
3
- import type { QuestionLocale } from "../i18n";
4
- import type { QuestionContentDraft, QuestionContentQuestionTypeTemplate } from "./types";
5
- import "./QuestionContentEditorLayout.css";
6
- export type QuestionContentEditorProps = {
7
- disabled?: boolean;
8
- emptyText?: string;
9
- locale?: QuestionLocale;
10
- onChange: (draft: QuestionContentDraft) => void;
11
- questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[];
12
- uploadImage?: RichTextEditorRootProps["uploadImage"];
13
- value: QuestionContentDraft;
14
- };
15
- export declare function QuestionContentEditor({ disabled, locale, onChange, questionTypeTemplates, uploadImage, value, }: Readonly<QuestionContentEditorProps>): ReactElement;
16
- //# sourceMappingURL=QuestionContentEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EACV,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,oBAAoB,EAMpB,mCAAmC,EACpC,MAAM,SAAS,CAAC;AAejB,OAAO,mCAAmC,CAAC;AAK3C,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD,qBAAqB,EAAE,SAAS,mCAAmC,EAAE,CAAC;IACtE,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACrD,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAgB,EAChB,MAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,WAAW,EACX,KAAK,GACN,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,CAoIrD"}
@@ -1,95 +0,0 @@
1
- import type { ButtonHTMLAttributes, ReactElement, ReactNode } from "react";
2
- type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> & {
3
- danger?: boolean;
4
- icon?: ReactNode;
5
- size?: "small";
6
- type?: "dashed";
7
- };
8
- type SelectOption = {
9
- disabled?: boolean;
10
- label: ReactNode;
11
- value: string;
12
- };
13
- type SelectProps = {
14
- "aria-label"?: string;
15
- allowClear?: boolean;
16
- className?: string;
17
- disabled?: boolean;
18
- onChange: (value: string | undefined) => void;
19
- options: ReadonlyArray<SelectOption>;
20
- placeholder?: string;
21
- value?: string;
22
- };
23
- type ModalProps = {
24
- cancelText: string;
25
- children: ReactNode;
26
- closeLabel: string;
27
- okButtonProps?: {
28
- disabled?: boolean;
29
- };
30
- okText: string;
31
- onCancel: () => void;
32
- onOk: () => void;
33
- open: boolean;
34
- title: string;
35
- };
36
- type RadioGroupProps = {
37
- onChange: (event: {
38
- target: {
39
- value: string;
40
- };
41
- }) => void;
42
- options: ReadonlyArray<SelectOption>;
43
- value: string | null;
44
- };
45
- type SpaceProps = {
46
- children: ReactNode;
47
- className?: string;
48
- size?: number;
49
- wrap?: boolean;
50
- };
51
- type TextProps = {
52
- children: ReactNode;
53
- className?: string;
54
- strong?: boolean;
55
- type?: "secondary";
56
- };
57
- type TableColumn<T> = {
58
- dataIndex?: keyof T | string;
59
- key: string;
60
- render?: (value: unknown, row: T, index: number) => ReactNode;
61
- title: ReactNode;
62
- width?: number;
63
- };
64
- type TableProps<T> = {
65
- columns: ReadonlyArray<TableColumn<T>>;
66
- dataSource: ReadonlyArray<T>;
67
- pagination?: false;
68
- rowKey: (row: T) => string;
69
- scroll?: {
70
- x: string;
71
- };
72
- size?: "small";
73
- };
74
- export declare function Button({ children, className, danger, icon, size, type, ...props }: Readonly<ButtonProps>): ReactElement;
75
- export declare function Select({ "aria-label": ariaLabel, allowClear, className, disabled, onChange, options, placeholder, value, }: Readonly<SelectProps>): ReactElement;
76
- export declare function Modal({ cancelText, children, closeLabel, okButtonProps, okText, onCancel, onOk, open, title, }: Readonly<ModalProps>): ReactElement | null;
77
- declare function RadioGroup({ onChange, options, value, }: Readonly<RadioGroupProps>): ReactElement;
78
- export declare const Radio: {
79
- Group: typeof RadioGroup;
80
- };
81
- export declare function Empty({ description, }: Readonly<{
82
- description: ReactNode;
83
- }>): ReactElement;
84
- export declare function Space({ children, className, size, wrap, }: Readonly<SpaceProps>): ReactElement;
85
- declare function Text({ children, className, strong, type, }: Readonly<TextProps>): ReactElement;
86
- export declare const Typography: {
87
- Text: typeof Text;
88
- };
89
- export declare function Table<T>({ columns, dataSource, rowKey, }: Readonly<TableProps<T>>): ReactElement;
90
- export declare const ArrowDownIcon = "\u2193";
91
- export declare const ArrowUpIcon = "\u2191";
92
- export declare const DeleteIcon = "\u00D7";
93
- export declare const PlusIcon = "+";
94
- export {};
95
- //# sourceMappingURL=QuestionContentEditorUi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentEditorUi.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentEditorUi.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AAIf,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GAAG;IACzE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,MAAM,C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C,UAAU,CAAC,GAAG,YAAY,GAAG,IAAI,CA4B5C;AAED,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,OAAO,EACP,KAAK,GACN,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,YAAY,CAgB1C;AAED,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,wBAAgB,KAAK,CAAC,EACpB,WAAW,GACZ,EAAE,QAAQ,CAAC;IAAE,WAAW,EAAE,SAAS,CAAA;CAAE,CAAC,GAAG,YAAY,CAErD;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,IAAQ,EACR,IAAY,GACb,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY,CAerC;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,SAAS,EACT,MAAc,EACd,IAAI,GACL,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,YAAY,CAWpC;AAED,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAEF,wBAAgB,KAAK,CAAC,CAAC,EAAE,EACvB,OAAO,EACP,UAAU,EACV,MAAM,GACP,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAiCxC;AA2BD,eAAO,MAAM,aAAa,WAAM,CAAC;AACjC,eAAO,MAAM,WAAW,WAAM,CAAC;AAC/B,eAAO,MAAM,UAAU,WAAM,CAAC;AAC9B,eAAO,MAAM,QAAQ,MAAM,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { ReactElement, ReactNode } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentItem, QuestionContentRichTextControls, QuestionContentStructureElement } from "./types";
4
- type QuestionContentElementEditorProps = {
5
- disabled: boolean;
6
- element: Exclude<QuestionContentStructureElement, {
7
- type: "textResponse";
8
- }>;
9
- hasAnswer: boolean;
10
- item: QuestionContentItem;
11
- onChange: (item: QuestionContentItem) => void;
12
- richTextControls: QuestionContentRichTextControls;
13
- title: ReactNode;
14
- translator: QuestionContentEditorTranslator;
15
- };
16
- export declare function QuestionContentElementEditor({ disabled, element, hasAnswer, item, onChange, richTextControls, title, translator, }: Readonly<QuestionContentElementEditorProps>): ReactElement;
17
- export {};
18
- //# sourceMappingURL=QuestionContentElementEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentElementEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentElementEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAIV,mBAAmB,EAMnB,+BAA+B,EAE/B,+BAA+B,EAGhC,MAAM,SAAS,CAAC;AAgBjB,KAAK,iCAAiC,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC,+BAA+B,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAoBF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAyE5D"}
@@ -1,16 +0,0 @@
1
- import type { ReactElement, ReactNode } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement, QuestionContentItem, QuestionContentRichTextControls } from "./types";
4
- type QuestionContentFillTextEditorProps = {
5
- disabled: boolean;
6
- element: QuestionContentFillTextStructureElement;
7
- hasAnswer: boolean;
8
- item: QuestionContentFillTextItem;
9
- onChange: (item: QuestionContentItem) => void;
10
- richTextControls: QuestionContentRichTextControls;
11
- title: ReactNode;
12
- translator: QuestionContentEditorTranslator;
13
- };
14
- export declare function QuestionContentFillTextEditor({ disabled, element, hasAnswer, item, onChange, richTextControls, title, translator, }: Readonly<QuestionContentFillTextEditorProps>): ReactElement;
15
- export {};
16
- //# sourceMappingURL=QuestionContentFillTextEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentFillTextEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentFillTextEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,KAAK,EAIV,2BAA2B,EAC3B,uCAAuC,EACvC,mBAAmB,EACnB,+BAA+B,EAGhC,MAAM,SAAS,CAAC;AAwBjB,KAAK,kCAAkC,GAAG;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,uCAAuC,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAcF,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,UAAU,GACX,EAAE,QAAQ,CAAC,kCAAkC,CAAC,GAAG,YAAY,CAu8B7D"}
@@ -1,14 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentItem, QuestionContentJudgementGroupItem, QuestionContentJudgementGroupStructureElement } from "./types";
4
- type QuestionContentJudgementGroupEditorProps = {
5
- disabled: boolean;
6
- element: QuestionContentJudgementGroupStructureElement;
7
- hasAnswer: boolean;
8
- item: QuestionContentJudgementGroupItem;
9
- onChange: (item: QuestionContentItem) => void;
10
- translator: QuestionContentEditorTranslator;
11
- };
12
- export declare function QuestionContentJudgementGroupEditor({ disabled, element, hasAnswer, item, onChange, translator, }: Readonly<QuestionContentJudgementGroupEditorProps>): ReactElement;
13
- export {};
14
- //# sourceMappingURL=QuestionContentJudgementGroupEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentJudgementGroupEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentJudgementGroupEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,mBAAmB,EACnB,iCAAiC,EACjC,6CAA6C,EAC9C,MAAM,SAAS,CAAC;AAKjB,KAAK,wCAAwC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,6CAA6C,CAAC;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,mCAAmC,CAAC,EAClD,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,wCAAwC,CAAC,GAAG,YAAY,CA+CnE"}
@@ -1,15 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { QuestionContentEditorTranslator } from "./i18n";
3
- import type { QuestionContentItem, QuestionContentLineConnectItem, QuestionContentLineConnectStructureElement, QuestionContentRichTextControls } from "./types";
4
- type QuestionContentLineConnectEditorProps = {
5
- disabled: boolean;
6
- element: QuestionContentLineConnectStructureElement;
7
- hasAnswer: boolean;
8
- item: QuestionContentLineConnectItem;
9
- onChange: (item: QuestionContentItem) => void;
10
- richTextControls: QuestionContentRichTextControls;
11
- translator: QuestionContentEditorTranslator;
12
- };
13
- export declare function QuestionContentLineConnectEditor({ disabled, element, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentLineConnectEditorProps>): ReactElement;
14
- export {};
15
- //# sourceMappingURL=QuestionContentLineConnectEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionContentLineConnectEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentLineConnectEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAQzD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,mBAAmB,EAEnB,8BAA8B,EAE9B,0CAA0C,EAC1C,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAmDjB,KAAK,qCAAqC,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,0CAA0C,CAAC;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,qCAAqC,CAAC,GAAG,YAAY,CA4ehE"}