@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.
- package/dist/index.css +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11339 -0
- package/dist/index.mjs +8839 -0
- package/dist/model/choice.d.ts +14 -0
- package/dist/model/choice.d.ts.map +1 -0
- package/dist/model/classification.d.ts +8 -0
- package/dist/model/classification.d.ts.map +1 -0
- package/dist/model/line-connect.d.ts +25 -0
- package/dist/model/line-connect.d.ts.map +1 -0
- package/dist/model/matching.d.ts +24 -0
- package/dist/model/matching.d.ts.map +1 -0
- package/dist/model/question-content-id.d.ts +3 -0
- package/dist/model/question-content-id.d.ts.map +1 -0
- package/dist/model/question-structure.d.ts +147 -0
- package/dist/model/question-structure.d.ts.map +1 -0
- package/dist/model/rich-text-blank.d.ts +3 -0
- package/dist/model/rich-text-blank.d.ts.map +1 -0
- package/dist/model/rich-text.d.ts +12 -0
- package/dist/model/rich-text.d.ts.map +1 -0
- package/dist/model/text-marker.d.ts +18 -0
- package/dist/model/text-marker.d.ts.map +1 -0
- package/dist/model/types.d.ts +29 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/package.json +3 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts +95 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts +18 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +20 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts +16 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -0
- package/dist/question/content-editor/helpers.d.ts +111 -0
- package/dist/question/content-editor/helpers.d.ts.map +1 -0
- package/dist/question/content-editor/i18n.d.ts +8 -0
- package/dist/question/content-editor/i18n.d.ts.map +1 -0
- package/dist/question/content-editor/question-content-contract.d.ts +3 -0
- package/dist/question/content-editor/question-content-contract.d.ts.map +1 -0
- package/dist/question/content-editor/question-type-template.d.ts +7 -0
- package/dist/question/content-editor/question-type-template.d.ts.map +1 -0
- package/dist/question/content-editor/structure.d.ts +22 -0
- package/dist/question/content-editor/structure.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-editable-children.d.ts +9 -0
- package/dist/question/content-editor/subquestion-editable-children.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +6 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
- package/dist/question/content-editor/types.d.ts +253 -0
- package/dist/question/content-editor/types.d.ts.map +1 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts +3 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +1 -0
- package/dist/question/elements/text-marker/text-marker-plugin.d.ts +3 -0
- package/dist/question/elements/text-marker/text-marker-plugin.d.ts.map +1 -0
- package/dist/question/i18n/index.d.ts +3 -0
- package/dist/question/i18n/index.d.ts.map +1 -0
- package/dist/question/i18n/messages.d.ts +68 -0
- package/dist/question/i18n/messages.d.ts.map +1 -0
- package/dist/question/line-connect/lineConnectLines.d.ts +37 -0
- package/dist/question/line-connect/lineConnectLines.d.ts.map +1 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionClassificationPlayer.d.ts +15 -0
- package/dist/question/player/QuestionClassificationPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts +12 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts +15 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts +16 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +16 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionLineConnectPlayer.d.ts +15 -0
- package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionMatchingPlayer.d.ts +15 -0
- package/dist/question/player/QuestionMatchingPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts +16 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOrderingPlayer.d.ts +15 -0
- package/dist/question/player/QuestionOrderingPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayer.d.ts +4 -0
- package/dist/question/player/QuestionPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts +15 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerElement.d.ts +19 -0
- package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts +15 -0
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionTextResponsePlayer.d.ts +16 -0
- package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts +16 -0
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +1 -0
- package/dist/question/player/helpers.d.ts +26 -0
- package/dist/question/player/helpers.d.ts.map +1 -0
- package/dist/question/player/response-contract.d.ts +8 -0
- package/dist/question/player/response-contract.d.ts.map +1 -0
- package/dist/question/player/types.d.ts +70 -0
- package/dist/question/player/types.d.ts.map +1 -0
- package/dist/question/player/view-response-types.d.ts +61 -0
- package/dist/question/player/view-response-types.d.ts.map +1 -0
- package/dist/question/presentation-contract.d.ts +20 -0
- package/dist/question/presentation-contract.d.ts.map +1 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts +11 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -0
- package/dist/question/preview/QuestionPreview.d.ts +14 -0
- package/dist/question/preview/QuestionPreview.d.ts.map +1 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts +10 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionClassificationView.d.ts +10 -0
- package/dist/question/renderers/QuestionClassificationView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts +11 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts +11 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionLineConnectView.d.ts +10 -0
- package/dist/question/renderers/QuestionLineConnectView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionMatchingView.d.ts +10 -0
- package/dist/question/renderers/QuestionMatchingView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionOrderingView.d.ts +10 -0
- package/dist/question/renderers/QuestionOrderingView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts +8 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts +14 -0
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionSectionTitle.d.ts +6 -0
- package/dist/question/renderers/QuestionSectionTitle.d.ts.map +1 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +15 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts +12 -0
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +1 -0
- package/dist/question/renderers/QuestionTextMarkerView.d.ts +10 -0
- package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionWordBuilderView.d.ts +11 -0
- package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +1 -0
- package/dist/question/renderers/classificationAnswers.d.ts +4 -0
- package/dist/question/renderers/classificationAnswers.d.ts.map +1 -0
- package/dist/question/renderers/helpers.d.ts +14 -0
- package/dist/question/renderers/helpers.d.ts.map +1 -0
- package/dist/question/renderers/lineConnectAnswers.d.ts +4 -0
- package/dist/question/renderers/lineConnectAnswers.d.ts.map +1 -0
- package/dist/question/renderers/matchingAnswers.d.ts +4 -0
- package/dist/question/renderers/matchingAnswers.d.ts.map +1 -0
- package/dist/question/renderers/optionGroupAnswers.d.ts +4 -0
- package/dist/question/renderers/optionGroupAnswers.d.ts.map +1 -0
- package/dist/question/renderers/orderingAnswerGroups.d.ts +4 -0
- package/dist/question/renderers/orderingAnswerGroups.d.ts.map +1 -0
- package/dist/question/renderers/wordBuilderAnswers.d.ts +4 -0
- package/dist/question/renderers/wordBuilderAnswers.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextField.d.ts +23 -0
- package/dist/question/rich-text/RichTextField.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +6 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +1 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts +3 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +1 -0
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +6 -0
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts +2 -0
- package/dist/question/shared/subquestion-numbering.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +14 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts +9 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts +10 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts +16 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts +75 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +15 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionStandardAnswerPanel.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionStandardAnswerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,KAAK,GACN,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GAAG,YAAY,GAAG,IAAI,CA2ClE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionRichContentValue } from "../content-editor/types";
|
|
3
|
+
export type QuestionTextMarkerContentProps = {
|
|
4
|
+
answerMarkers?: readonly string[];
|
|
5
|
+
content: QuestionRichContentValue;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onMarkerClick?: (markerId: string) => void;
|
|
8
|
+
selectedMarkers?: readonly string[];
|
|
9
|
+
showAnswer?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function QuestionTextMarkerContent({ answerMarkers, content, disabled, onMarkerClick, selectedMarkers, showAnswer, }: Readonly<QuestionTextMarkerContentProps>): ReactElement;
|
|
12
|
+
//# sourceMappingURL=QuestionTextMarkerContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionTextMarkerContent.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionTextMarkerContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAMxE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,OAAO,EAAE,wBAAwB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,aAAkB,EAClB,OAAO,EACP,QAAgB,EAChB,aAAa,EACb,eAAoB,EACpB,UAAkB,GACnB,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CA0GzD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentTextMarkerItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
export type QuestionTextMarkerViewProps = {
|
|
5
|
+
item: QuestionContentTextMarkerItem;
|
|
6
|
+
messages: QuestionMessages;
|
|
7
|
+
showAnswer: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function QuestionTextMarkerView({ item, messages, showAnswer, }: Readonly<QuestionTextMarkerViewProps>): ReactElement;
|
|
10
|
+
//# sourceMappingURL=QuestionTextMarkerView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionTextMarkerView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionTextMarkerView.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;AAMhD,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,CA0BtD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentWordBuilderItem, QuestionContentWordBuilderStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
export type QuestionWordBuilderViewProps = {
|
|
5
|
+
element: QuestionContentWordBuilderStructureElement;
|
|
6
|
+
item: QuestionContentWordBuilderItem;
|
|
7
|
+
messages: QuestionMessages;
|
|
8
|
+
showAnswer: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function QuestionWordBuilderView({ element, item, messages, showAnswer, }: Readonly<QuestionWordBuilderViewProps>): ReactElement;
|
|
11
|
+
//# sourceMappingURL=QuestionWordBuilderView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionWordBuilderView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionWordBuilderView.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;AAQhD,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,CAuCvD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentClassificationItem } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function getClassificationStandardAnswerGroups(item: QuestionContentClassificationItem): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=classificationAnswers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classificationAnswers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/classificationAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAIjF,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,iCAAiC,GACtC,2BAA2B,EAAE,CAa/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { QuestionContentCandidateOption, QuestionContentCandidateOptionGroup, QuestionContentFillTextItem, QuestionFillTextAnswer, QuestionPerBlankOptionAnswer, QuestionRichBlankAnswerGroup, QuestionRichContentValue, QuestionSharedCandidateAnswerGroup } from "../content-editor/types";
|
|
2
|
+
export type FillTextAnswerContentGroup = {
|
|
3
|
+
readonly blankIds: readonly string[];
|
|
4
|
+
readonly contents: readonly QuestionRichContentValue[];
|
|
5
|
+
};
|
|
6
|
+
export declare function joinClassNames(...classNames: Array<false | null | string | undefined>): string;
|
|
7
|
+
export declare function formatBlankAnswerMarker(blankIds: readonly string[], blanks: readonly string[], blankLabel: string): string;
|
|
8
|
+
export declare function isRichBlankAnswerGroup(answers: QuestionFillTextAnswer): answers is QuestionRichBlankAnswerGroup;
|
|
9
|
+
export declare function isPerBlankOptionAnswer(answers: QuestionFillTextAnswer): answers is QuestionPerBlankOptionAnswer;
|
|
10
|
+
export declare function isSharedCandidateAnswerGroup(answers: QuestionFillTextAnswer): answers is QuestionSharedCandidateAnswerGroup;
|
|
11
|
+
export declare function findCandidateOptionContent(options: readonly QuestionContentCandidateOption[] | undefined, optionId: string): QuestionRichContentValue | null;
|
|
12
|
+
export declare function findBlankOptionContent(groups: readonly QuestionContentCandidateOptionGroup[] | undefined, blankId: string, optionId: string): QuestionRichContentValue | null;
|
|
13
|
+
export declare function collectFillTextAnswerContents(item: QuestionContentFillTextItem): FillTextAnswerContentGroup[];
|
|
14
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,mCAAmC,EACnC,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,SAAS,wBAAwB,EAAE,CAAC;CACxD,CAAC;AAEF,wBAAgB,cAAc,CAC5B,GAAG,UAAU,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC,GACtD,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,UAAU,EAAE,MAAM,GACjB,MAAM,CAMR;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,IAAI,4BAA4B,CAEzC;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,IAAI,4BAA4B,CAEzC;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,sBAAsB,GAC9B,OAAO,IAAI,kCAAkC,CAE/C;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,SAAS,8BAA8B,EAAE,GAAG,SAAS,EAC9D,QAAQ,EAAE,MAAM,GACf,wBAAwB,GAAG,IAAI,CAIjC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,mCAAmC,EAAE,GAAG,SAAS,EAClE,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,wBAAwB,GAAG,IAAI,CAMjC;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,2BAA2B,GAChC,0BAA0B,EAAE,CAuC9B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentLineConnectItem } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function getLineConnectStandardAnswerGroups(item: QuestionContentLineConnectItem): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=lineConnectAnswers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineConnectAnswers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/lineConnectAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAMjF,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,8BAA8B,GACnC,2BAA2B,EAAE,CA0C/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentMatchingItem } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function getMatchingStandardAnswerGroups(item: QuestionContentMatchingItem): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=matchingAnswers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchingAnswers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/matchingAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAKjF,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,2BAA2B,GAChC,2BAA2B,EAAE,CA0B/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentOptionGroupItem, QuestionContentOptionGroupStructureElement } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function getOptionGroupStandardAnswerGroups(element: QuestionContentOptionGroupStructureElement, item: QuestionContentOptionGroupItem): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=optionGroupAnswers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionGroupAnswers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/optionGroupAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAMjF,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,0CAA0C,EACnD,IAAI,EAAE,8BAA8B,GACnC,2BAA2B,EAAE,CAU/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentOrderingItem } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function createOrderingStandardAnswerGroups(item: QuestionContentOrderingItem): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=orderingAnswerGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderingAnswerGroups.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/orderingAnswerGroups.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAIjF,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,2BAA2B,GAChC,2BAA2B,EAAE,CAc/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuestionContentWordBuilderItem } from "../content-editor/types";
|
|
2
|
+
import type { QuestionStandardAnswerGroup } from "./QuestionStandardAnswerPanel";
|
|
3
|
+
export declare function getWordBuilderStandardAnswerGroups(item: QuestionContentWordBuilderItem, blankLabel: string): QuestionStandardAnswerGroup[];
|
|
4
|
+
//# sourceMappingURL=wordBuilderAnswers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordBuilderAnswers.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/wordBuilderAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAMjF,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,8BAA8B,EACpC,UAAU,EAAE,MAAM,GACjB,2BAA2B,EAAE,CA2B/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RichTextEditorApi, RichTextEditorPlugin, RichTextEditorRootProps } from '@yungu-fed/rich-text-editor';
|
|
2
|
+
import type { ReactNode, Ref } from 'react';
|
|
3
|
+
import type { RichTextContent } from '../../model/types';
|
|
4
|
+
export type RichTextFieldProps = {
|
|
5
|
+
readonly apiRef?: Ref<RichTextEditorApi>;
|
|
6
|
+
readonly ariaLabel: string;
|
|
7
|
+
readonly compact?: boolean;
|
|
8
|
+
readonly onChange: (value: RichTextContent) => void;
|
|
9
|
+
readonly locale?: RichTextEditorRootProps['locale'];
|
|
10
|
+
readonly placeholder?: string;
|
|
11
|
+
readonly plugins?: readonly RichTextEditorPlugin[];
|
|
12
|
+
readonly toolbarExtra?: ReactNode;
|
|
13
|
+
readonly toolbarMode?: 'auto' | 'local';
|
|
14
|
+
readonly uploadImage?: RichTextEditorRootProps['uploadImage'];
|
|
15
|
+
readonly value: RichTextContent;
|
|
16
|
+
};
|
|
17
|
+
export declare function RichTextField({ apiRef, ariaLabel, compact, onChange, locale, placeholder, plugins, toolbarExtra, toolbarMode, uploadImage, value, }: RichTextFieldProps): JSX.Element;
|
|
18
|
+
export declare function shouldUseQuestionSharedRichTextToolbar({ hasSharedToolbar, hasToolbarExtra, toolbarMode, }: {
|
|
19
|
+
readonly hasSharedToolbar: boolean;
|
|
20
|
+
readonly hasToolbarExtra: boolean;
|
|
21
|
+
readonly toolbarMode: 'auto' | 'local';
|
|
22
|
+
}): boolean;
|
|
23
|
+
//# sourceMappingURL=RichTextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextField.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/RichTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EAExB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOxD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAClD,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAA;IAC7D,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;CAChC,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,OAAe,EACf,QAAQ,EACR,MAAM,EACN,WAAW,EACX,OAAY,EACZ,YAAY,EACZ,WAAoB,EACpB,WAAW,EACX,KAAK,GACN,EAAE,kBAAkB,eAiEpB;AAED,wBAAgB,sCAAsC,CAAC,EACrD,gBAAgB,EAChB,eAAe,EACf,WAAW,GACZ,EAAE;IACD,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAA;CACvC,WAEA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type RichTextFieldTestToolbarProps = {
|
|
3
|
+
readonly toolbarExtra?: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare function RichTextFieldTestToolbar({ toolbarExtra, }: RichTextFieldTestToolbarProps): JSX.Element;
|
|
6
|
+
//# sourceMappingURL=RichTextFieldTestToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextFieldTestToolbar.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/RichTextFieldTestToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;CAClC,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,YAAY,GACb,EAAE,6BAA6B,eAkB/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-toolbar-context.d.ts","sourceRoot":"","sources":["../../../src/question/rich-text/rich-text-toolbar-context.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC,kCAC3B,CAAA;AAEtB,wBAAgB,gCAAgC,YAE/C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
export type QuestionTextResponsePlaceholderProps = {
|
|
3
|
+
readonly label: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function QuestionTextResponsePlaceholder({ label, }: QuestionTextResponsePlaceholderProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=QuestionTextResponsePlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionTextResponsePlaceholder.d.ts","sourceRoot":"","sources":["../../../src/question/shared/QuestionTextResponsePlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,oCAAoC,GAAG;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAC9C,KAAK,GACN,EAAE,oCAAoC,GAAG,YAAY,CAMrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subquestion-numbering.d.ts","sourceRoot":"","sources":["../../../src/question/shared/subquestion-numbering.ts"],"names":[],"mappings":"AAAA,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,MAAM,CAER"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { QuestionStructureDraftElement, QuestionStructureDraftExtra } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionStructureLabels } from "./structure-editor-labels";
|
|
3
|
+
export type QuestionStructureCanvasProps = {
|
|
4
|
+
readonly elements: readonly QuestionStructureDraftElement[];
|
|
5
|
+
readonly extras: readonly QuestionStructureDraftExtra[];
|
|
6
|
+
readonly labels: QuestionStructureLabels;
|
|
7
|
+
readonly onDeleteElement: (clientId: string) => void;
|
|
8
|
+
readonly onDeleteExtra: (clientId: string) => void;
|
|
9
|
+
readonly onMoveElement: (clientId: string, direction: -1 | 1) => void;
|
|
10
|
+
readonly onSelectElement: (clientId: string) => void;
|
|
11
|
+
readonly selectedElementClientId: null | string;
|
|
12
|
+
};
|
|
13
|
+
export declare function QuestionStructureCanvas({ elements, extras, labels, onDeleteElement, onDeleteExtra, onMoveElement, onSelectElement, selectedElementClientId, }: QuestionStructureCanvasProps): JSX.Element;
|
|
14
|
+
//# sourceMappingURL=QuestionStructureCanvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionStructureCanvas.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureCanvas.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AASxE,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,6BAA6B,EAAE,CAAA;IAC3D,QAAQ,CAAC,MAAM,EAAE,SAAS,2BAA2B,EAAE,CAAA;IACvD,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACrE,QAAQ,CAAC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,uBAAuB,EAAE,IAAI,GAAG,MAAM,CAAA;CAChD,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,eAAe,EACf,aAAa,EACb,aAAa,EACb,eAAe,EACf,uBAAuB,GACxB,EAAE,4BAA4B,eAqK9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { QuestionStructureDraft } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionLocale } from "../i18n";
|
|
3
|
+
export type QuestionStructureEditorProps = {
|
|
4
|
+
readonly locale?: QuestionLocale;
|
|
5
|
+
readonly onChange: (value: QuestionStructureDraft) => void;
|
|
6
|
+
readonly value: QuestionStructureDraft;
|
|
7
|
+
};
|
|
8
|
+
export declare function QuestionStructureEditor({ locale, onChange, value, }: QuestionStructureEditorProps): JSX.Element;
|
|
9
|
+
//# sourceMappingURL=QuestionStructureEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionStructureEditor.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EAOvB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,cAAc,EACf,MAAM,SAAS,CAAA;AAoBhB,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAA;CACvC,CAAA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,MAAgB,EAChB,QAAQ,EACR,KAAK,GACN,EAAE,4BAA4B,eAwG9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { QuestionStructureElementType, QuestionStructureExtraType } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionStructureLabels } from "./structure-editor-labels";
|
|
3
|
+
export type QuestionStructurePaletteProps = {
|
|
4
|
+
readonly addedExtraTypes: readonly QuestionStructureExtraType[];
|
|
5
|
+
readonly labels: QuestionStructureLabels;
|
|
6
|
+
readonly onAddElement: (type: QuestionStructureElementType) => void;
|
|
7
|
+
readonly onAddExtra: (type: QuestionStructureExtraType) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function QuestionStructurePalette({ addedExtraTypes, labels, onAddElement, onAddExtra, }: QuestionStructurePaletteProps): JSX.Element;
|
|
10
|
+
//# sourceMappingURL=QuestionStructurePalette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionStructurePalette.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructurePalette.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAcxE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,0BAA0B,EAAE,CAAA;IAC/D,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,4BAA4B,KAAK,IAAI,CAAA;IACnE,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAA;CAChE,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,eAAe,EACf,MAAM,EACN,YAAY,EACZ,UAAU,GACX,EAAE,6BAA6B,eA0D/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { QuestionStructureDraftElement, QuestionStructureDraftExtra, QuestionStructureGlobalConfig, QuestionStructureMetadata } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionStructureLabels } from "./structure-editor-labels";
|
|
3
|
+
export type QuestionStructureSettingsProps = {
|
|
4
|
+
readonly description?: string;
|
|
5
|
+
readonly globalConfig: QuestionStructureGlobalConfig;
|
|
6
|
+
readonly isSubjective: boolean;
|
|
7
|
+
readonly labels: QuestionStructureLabels;
|
|
8
|
+
readonly onElementChange: (element: QuestionStructureDraftElement) => void;
|
|
9
|
+
readonly onExtraChange: (extras: QuestionStructureDraftExtra) => void;
|
|
10
|
+
readonly onGlobalConfigChange: (patch: Partial<QuestionStructureGlobalConfig>) => void;
|
|
11
|
+
readonly onMetadataChange: (patch: Partial<QuestionStructureMetadata>) => void;
|
|
12
|
+
readonly selectedExtra: null | QuestionStructureDraftExtra;
|
|
13
|
+
readonly selectedElement: null | QuestionStructureDraftElement;
|
|
14
|
+
};
|
|
15
|
+
export declare function QuestionStructureSettings({ description, globalConfig, isSubjective, labels, onElementChange, onExtraChange, onGlobalConfigChange, onMetadataChange, selectedExtra, selectedElement, }: QuestionStructureSettingsProps): JSX.Element;
|
|
16
|
+
//# sourceMappingURL=QuestionStructureSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionStructureSettings.d.ts","sourceRoot":"","sources":["../../../src/question/structure-editor/QuestionStructureSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAG7B,yBAAyB,EAK1B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAiCxE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,YAAY,EAAE,6BAA6B,CAAA;IACpD,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAA;IACxC,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,CAAA;IAC1E,QAAQ,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACrE,QAAQ,CAAC,oBAAoB,EAAE,CAC7B,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,KAC1C,IAAI,CAAA;IACT,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,yBAAyB,CAAC,KAAK,IAAI,CAAA;IAC9E,QAAQ,CAAC,aAAa,EAAE,IAAI,GAAG,2BAA2B,CAAA;IAC1D,QAAQ,CAAC,eAAe,EAAE,IAAI,GAAG,6BAA6B,CAAA;CAC/D,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,eAAe,GAChB,EAAE,8BAA8B,eAyFhC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { QuestionStructureCandidateMode, QuestionStructureElementType, QuestionStructureExtraType, QuestionStructureJudgeAnswerMode, QuestionStructureLineConnectLabelStyle, QuestionStructureOptionLabelStyle, QuestionStructureOptionRenderer, QuestionStructureSelectionType, QuestionStructureWordBuilderMode } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionLocale } from "../i18n";
|
|
3
|
+
export type QuestionStructureLabels = {
|
|
4
|
+
readonly addElement: string;
|
|
5
|
+
readonly addExtra: string;
|
|
6
|
+
readonly allowCandidateReuse: string;
|
|
7
|
+
readonly blankGroupDescription: string;
|
|
8
|
+
readonly blankGroupLabel: string;
|
|
9
|
+
readonly canPrint: string;
|
|
10
|
+
readonly candidateMode: string;
|
|
11
|
+
readonly candidateModeValueLabels: ReadonlyMap<QuestionStructureCandidateMode, string>;
|
|
12
|
+
readonly canvas: string;
|
|
13
|
+
readonly classificationDescription: string;
|
|
14
|
+
readonly classificationLabel: string;
|
|
15
|
+
readonly confirmDelete: string;
|
|
16
|
+
readonly deleteElement: string;
|
|
17
|
+
readonly elementCount: (count: number) => string;
|
|
18
|
+
readonly elementName: string;
|
|
19
|
+
readonly elementEnName: string;
|
|
20
|
+
readonly elementSettings: string;
|
|
21
|
+
readonly extraDescriptions: ReadonlyMap<QuestionStructureExtraType, string>;
|
|
22
|
+
readonly extraLabels: ReadonlyMap<QuestionStructureExtraType, string>;
|
|
23
|
+
readonly extraSettings: string;
|
|
24
|
+
readonly extraTitle: string;
|
|
25
|
+
readonly fillTextDescription: string;
|
|
26
|
+
readonly fillTextLabel: string;
|
|
27
|
+
readonly globalSettings: string;
|
|
28
|
+
readonly hasAnswer: string;
|
|
29
|
+
readonly isSubjective: string;
|
|
30
|
+
readonly judgementGroupDescription: string;
|
|
31
|
+
readonly judgementGroupLabel: string;
|
|
32
|
+
readonly judgeAnswerMode: string;
|
|
33
|
+
readonly lineConnectColumnCount: string;
|
|
34
|
+
readonly lineConnectColumnLabel: (index: number) => string;
|
|
35
|
+
readonly lineConnectDescription: string;
|
|
36
|
+
readonly lineConnectLabelStyleLabels: ReadonlyMap<QuestionStructureLineConnectLabelStyle, string>;
|
|
37
|
+
readonly lineConnectLabel: string;
|
|
38
|
+
readonly matchingDescription: string;
|
|
39
|
+
readonly matchingLabel: string;
|
|
40
|
+
readonly moveDown: string;
|
|
41
|
+
readonly moveUp: string;
|
|
42
|
+
readonly noElement: string;
|
|
43
|
+
readonly orderingDescription: string;
|
|
44
|
+
readonly orderingLabel: string;
|
|
45
|
+
readonly optionGroupDescription: string;
|
|
46
|
+
readonly optionGroupLabel: string;
|
|
47
|
+
readonly optionLabelStyle: string;
|
|
48
|
+
readonly optionValueLabels: ReadonlyMap<QuestionStructureOptionValue, string>;
|
|
49
|
+
readonly palette: string;
|
|
50
|
+
readonly practiceMode: string;
|
|
51
|
+
readonly description: string;
|
|
52
|
+
readonly renderer: string;
|
|
53
|
+
readonly richTextDescription: string;
|
|
54
|
+
readonly richTextLabel: string;
|
|
55
|
+
readonly selectionType: string;
|
|
56
|
+
readonly structureEnName: string;
|
|
57
|
+
readonly structureName: string;
|
|
58
|
+
readonly textMarkerDescription: string;
|
|
59
|
+
readonly textMarkerLabel: string;
|
|
60
|
+
readonly textResponseDescription: string;
|
|
61
|
+
readonly textResponseLabel: string;
|
|
62
|
+
readonly wordBuilderDescription: string;
|
|
63
|
+
readonly wordBuilderLabel: string;
|
|
64
|
+
};
|
|
65
|
+
export type QuestionStructureOptionValue = QuestionStructureCandidateMode | QuestionStructureJudgeAnswerMode | QuestionStructureOptionRenderer | QuestionStructureOptionLabelStyle | QuestionStructureSelectionType | QuestionStructureWordBuilderMode;
|
|
66
|
+
export declare const questionStructureLabels: Record<QuestionLocale, QuestionStructureLabels>;
|
|
67
|
+
export declare function getQuestionStructureExtraDescription(labels: QuestionStructureLabels, key: QuestionStructureExtraType): string;
|
|
68
|
+
export declare function getQuestionStructureExtraLabel(labels: QuestionStructureLabels, key: QuestionStructureExtraType): string;
|
|
69
|
+
export declare function getQuestionStructureLabels(locale: QuestionLocale): QuestionStructureLabels;
|
|
70
|
+
export declare function getQuestionStructureElementDescription(labels: QuestionStructureLabels, type: QuestionStructureElementType): string;
|
|
71
|
+
export declare function getQuestionStructureElementLabel(labels: QuestionStructureLabels, type: QuestionStructureElementType): string;
|
|
72
|
+
export declare function getQuestionStructureOptionLabel(labels: QuestionStructureLabels, value: QuestionStructureOptionValue): string;
|
|
73
|
+
export declare function getQuestionStructureCandidateModeLabel(labels: QuestionStructureLabels, value: QuestionStructureCandidateMode): string;
|
|
74
|
+
export declare function getQuestionStructureLineConnectLabelStyleLabel(labels: QuestionStructureLabels, value: QuestionStructureLineConnectLabelStyle): string;
|
|
75
|
+
//# sourceMappingURL=structure-editor-labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure-editor-labels.d.ts","sourceRoot":"","sources":["../../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EAAE,uBAAuB,EAC/B,IAAI,EAAE,4BAA4B,UAWnC;AA8CD,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,4BAA4B,UAWnC;AASD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,uBAAuB,EAC/B,KAAK,EAAE,4BAA4B,UAGpC;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,uBAAuB,EAC/B,KAAK,EAAE,8BAA8B,UAGtC;AAED,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,uBAAuB,EAC/B,KAAK,EAAE,sCAAsC,UAG9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,IAAI,GACJ,SAAS,cAAc,EAAE,GACzB,MAAM,GACN,SAAS,CAAA;AAEb,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAK/D"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yungu-fed/question-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -21,19 +21,6 @@
|
|
|
21
21
|
"dist",
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "pnpm run typecheck && vite build && tsc -p tsconfig.types.json",
|
|
26
|
-
"build:watch": "vite build --watch",
|
|
27
|
-
"build-ladle": "ladle build --viteConfig ./ladle.vite.config.ts",
|
|
28
|
-
"check": "pnpm run checkstyle && pnpm run lint && pnpm run test && pnpm run build && pnpm run build-ladle",
|
|
29
|
-
"checkstyle": "stylelint \"src/**/*.css\" --allow-empty-input",
|
|
30
|
-
"ladle": "ladle serve --viteConfig ./ladle.vite.config.ts",
|
|
31
|
-
"lint": "eslint .",
|
|
32
|
-
"test": "vitest run --passWithNoTests",
|
|
33
|
-
"test:coverage": "vitest run --coverage",
|
|
34
|
-
"test:watch": "vitest",
|
|
35
|
-
"typecheck": "tsc -b"
|
|
36
|
-
},
|
|
37
24
|
"peerDependencies": {
|
|
38
25
|
"@types/react": ">=16.14.0 <20",
|
|
39
26
|
"react": ">=16.14.0 <20",
|
|
@@ -84,5 +71,18 @@
|
|
|
84
71
|
"dependencies": {
|
|
85
72
|
"@yungu-fed/rich-text-editor": "^0.1.5",
|
|
86
73
|
"ulid": "^3.0.2"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "pnpm run typecheck && vite build && tsc -p tsconfig.types.json",
|
|
77
|
+
"build:watch": "vite build --watch",
|
|
78
|
+
"build-ladle": "ladle build --viteConfig ./ladle.vite.config.ts",
|
|
79
|
+
"check": "pnpm run checkstyle && pnpm run lint && pnpm run test && pnpm run build && pnpm run build-ladle",
|
|
80
|
+
"checkstyle": "stylelint \"src/**/*.css\" --allow-empty-input",
|
|
81
|
+
"ladle": "ladle serve --viteConfig ./ladle.vite.config.ts",
|
|
82
|
+
"lint": "eslint .",
|
|
83
|
+
"test": "vitest run --passWithNoTests",
|
|
84
|
+
"test:coverage": "vitest run --coverage",
|
|
85
|
+
"test:watch": "vitest",
|
|
86
|
+
"typecheck": "tsc -b"
|
|
87
87
|
}
|
|
88
|
-
}
|
|
88
|
+
}
|