@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.
- package/package.json +19 -17
- package/dist/index.css +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10946
- package/dist/index.mjs +0 -8506
- package/dist/model/choice.d.ts +0 -14
- package/dist/model/choice.d.ts.map +0 -1
- package/dist/model/classification.d.ts +0 -8
- package/dist/model/classification.d.ts.map +0 -1
- package/dist/model/line-connect.d.ts +0 -25
- package/dist/model/line-connect.d.ts.map +0 -1
- package/dist/model/matching.d.ts +0 -24
- package/dist/model/matching.d.ts.map +0 -1
- package/dist/model/question-structure.d.ts +0 -147
- package/dist/model/question-structure.d.ts.map +0 -1
- package/dist/model/rich-text-blank.d.ts +0 -3
- package/dist/model/rich-text-blank.d.ts.map +0 -1
- package/dist/model/rich-text.d.ts +0 -12
- package/dist/model/rich-text.d.ts.map +0 -1
- package/dist/model/text-marker.d.ts +0 -18
- package/dist/model/text-marker.d.ts.map +0 -1
- package/dist/model/types.d.ts +0 -29
- package/dist/model/types.d.ts.map +0 -1
- package/dist/package.json +0 -3
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +0 -14
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts +0 -14
- package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentEditor.d.ts +0 -16
- package/dist/question/content-editor/QuestionContentEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts +0 -95
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts +0 -18
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +0 -16
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +0 -14
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts +0 -15
- package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +0 -15
- package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +0 -15
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts +0 -14
- package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +0 -13
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +0 -13
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +0 -20
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +0 -14
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +0 -15
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts +0 -15
- package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +0 -16
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts.map +0 -1
- package/dist/question/content-editor/QuestionRichTextField.d.ts +0 -16
- package/dist/question/content-editor/QuestionRichTextField.d.ts.map +0 -1
- package/dist/question/content-editor/helpers.d.ts +0 -118
- package/dist/question/content-editor/helpers.d.ts.map +0 -1
- package/dist/question/content-editor/i18n.d.ts +0 -8
- package/dist/question/content-editor/i18n.d.ts.map +0 -1
- package/dist/question/content-editor/question-type-template.d.ts +0 -7
- package/dist/question/content-editor/question-type-template.d.ts.map +0 -1
- package/dist/question/content-editor/structure.d.ts +0 -22
- package/dist/question/content-editor/structure.d.ts.map +0 -1
- package/dist/question/content-editor/subquestion-editable-children.d.ts +0 -7
- package/dist/question/content-editor/subquestion-editable-children.d.ts.map +0 -1
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +0 -6
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +0 -1
- package/dist/question/content-editor/types.d.ts +0 -253
- package/dist/question/content-editor/types.d.ts.map +0 -1
- package/dist/question/elements/fill/inline-fill-plugin.d.ts +0 -3
- package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +0 -1
- package/dist/question/elements/text-marker/text-marker-plugin.d.ts +0 -3
- package/dist/question/elements/text-marker/text-marker-plugin.d.ts.map +0 -1
- package/dist/question/i18n/index.d.ts +0 -3
- package/dist/question/i18n/index.d.ts.map +0 -1
- package/dist/question/i18n/messages.d.ts +0 -68
- package/dist/question/i18n/messages.d.ts.map +0 -1
- package/dist/question/line-connect/lineConnectLines.d.ts +0 -37
- package/dist/question/line-connect/lineConnectLines.d.ts.map +0 -1
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts +0 -15
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionClassificationPlayer.d.ts +0 -15
- package/dist/question/player/QuestionClassificationPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts +0 -12
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +0 -1
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts +0 -15
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionFillTextPlayer.d.ts +0 -16
- package/dist/question/player/QuestionFillTextPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +0 -16
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionLineConnectPlayer.d.ts +0 -15
- package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionMatchingPlayer.d.ts +0 -15
- package/dist/question/player/QuestionMatchingPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts +0 -16
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionOrderingPlayer.d.ts +0 -15
- package/dist/question/player/QuestionOrderingPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionPlayer.d.ts +0 -4
- package/dist/question/player/QuestionPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionPlayerComposite.d.ts +0 -15
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +0 -1
- package/dist/question/player/QuestionPlayerElement.d.ts +0 -19
- package/dist/question/player/QuestionPlayerElement.d.ts.map +0 -1
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts +0 -15
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionTextResponsePlayer.d.ts +0 -16
- package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +0 -1
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts +0 -16
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +0 -1
- package/dist/question/player/helpers.d.ts +0 -24
- package/dist/question/player/helpers.d.ts.map +0 -1
- package/dist/question/player/types.d.ts +0 -75
- package/dist/question/player/types.d.ts.map +0 -1
- package/dist/question/preview/QuestionCompositePreview.d.ts +0 -11
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +0 -1
- package/dist/question/preview/QuestionPreview.d.ts +0 -13
- package/dist/question/preview/QuestionPreview.d.ts.map +0 -1
- package/dist/question/renderers/QuestionBlankGroupView.d.ts +0 -10
- package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionClassificationView.d.ts +0 -10
- package/dist/question/renderers/QuestionClassificationView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionContentElementView.d.ts +0 -11
- package/dist/question/renderers/QuestionContentElementView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionFillTextView.d.ts +0 -11
- package/dist/question/renderers/QuestionFillTextView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts +0 -11
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionLineConnectView.d.ts +0 -10
- package/dist/question/renderers/QuestionLineConnectView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionMatchingView.d.ts +0 -10
- package/dist/question/renderers/QuestionMatchingView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionOptionGroupView.d.ts +0 -11
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionOrderingView.d.ts +0 -10
- package/dist/question/renderers/QuestionOrderingView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionRichContentView.d.ts +0 -8
- package/dist/question/renderers/QuestionRichContentView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts +0 -14
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +0 -11
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +0 -1
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts +0 -12
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +0 -1
- package/dist/question/renderers/QuestionTextMarkerView.d.ts +0 -10
- package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +0 -1
- package/dist/question/renderers/QuestionWordBuilderView.d.ts +0 -11
- package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +0 -1
- package/dist/question/renderers/classificationAnswers.d.ts +0 -4
- package/dist/question/renderers/classificationAnswers.d.ts.map +0 -1
- package/dist/question/renderers/helpers.d.ts +0 -14
- package/dist/question/renderers/helpers.d.ts.map +0 -1
- package/dist/question/renderers/lineConnectAnswers.d.ts +0 -4
- package/dist/question/renderers/lineConnectAnswers.d.ts.map +0 -1
- package/dist/question/renderers/matchingAnswers.d.ts +0 -4
- package/dist/question/renderers/matchingAnswers.d.ts.map +0 -1
- package/dist/question/renderers/optionGroupAnswers.d.ts +0 -4
- package/dist/question/renderers/optionGroupAnswers.d.ts.map +0 -1
- package/dist/question/renderers/orderingAnswerGroups.d.ts +0 -4
- package/dist/question/renderers/orderingAnswerGroups.d.ts.map +0 -1
- package/dist/question/renderers/wordBuilderAnswers.d.ts +0 -4
- package/dist/question/renderers/wordBuilderAnswers.d.ts.map +0 -1
- package/dist/question/rich-text/RichTextField.d.ts +0 -23
- package/dist/question/rich-text/RichTextField.d.ts.map +0 -1
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +0 -6
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +0 -1
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts +0 -3
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +0 -1
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +0 -6
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +0 -1
- package/dist/question/shared/subquestion-numbering.d.ts +0 -2
- package/dist/question/shared/subquestion-numbering.d.ts.map +0 -1
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +0 -14
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +0 -1
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts +0 -9
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +0 -1
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts +0 -10
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +0 -1
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts +0 -16
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +0 -1
- package/dist/question/structure-editor/structure-editor-labels.d.ts +0 -75
- package/dist/question/structure-editor/structure-editor-labels.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAc1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkCnD,wBAAgB,cAAc,CAC5B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAC5D,YAAY,CASd"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentDraft } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
import type { QuestionPlayerResponse } from "./types";
|
|
5
|
-
export type QuestionPlayerCompositeProps = {
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
messages: QuestionMessages;
|
|
8
|
-
onChildResponseChange: (childIndex: number, response: QuestionPlayerResponse) => void;
|
|
9
|
-
renderChild: (child: QuestionContentDraft, response: QuestionPlayerResponse, onChange: (response: QuestionPlayerResponse) => void, numberPath: readonly number[]) => ReactElement;
|
|
10
|
-
numberPath?: readonly number[];
|
|
11
|
-
response: QuestionPlayerResponse;
|
|
12
|
-
value: QuestionContentDraft;
|
|
13
|
-
};
|
|
14
|
-
export declare function QuestionPlayerComposite({ messages, numberPath, onChildResponseChange, renderChild, response, value, }: Readonly<QuestionPlayerCompositeProps>): ReactElement;
|
|
15
|
-
//# sourceMappingURL=QuestionPlayerComposite.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionPlayerComposite.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayerComposite.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKtD,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,qBAAqB,EAAE,CACrB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,sBAAsB,KAC7B,IAAI,CAAC;IACV,WAAW,EAAE,CACX,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,EACpD,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,UAAe,EACf,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,KAAK,GACN,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAkCvD"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
|
|
2
|
-
import type { ReactElement } from "react";
|
|
3
|
-
import type { QuestionContentItem, QuestionContentStructureElement } from "../content-editor/types";
|
|
4
|
-
import type { QuestionLocale, QuestionMessages } from "../i18n";
|
|
5
|
-
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
6
|
-
export type QuestionPlayerElementProps = {
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
element: QuestionContentStructureElement;
|
|
9
|
-
item: QuestionContentItem;
|
|
10
|
-
locale: QuestionLocale;
|
|
11
|
-
messages: QuestionMessages;
|
|
12
|
-
onResponseItemChange: (item: QuestionPlayerResponseItem) => void;
|
|
13
|
-
response: QuestionPlayerResponse;
|
|
14
|
-
responseIndex: number;
|
|
15
|
-
showAnswer: boolean;
|
|
16
|
-
uploadImage?: RichTextEditorRootProps["uploadImage"];
|
|
17
|
-
};
|
|
18
|
-
export declare function QuestionPlayerElement({ disabled, element, item, locale, messages, onResponseItemChange, response, responseIndex, showAnswer, uploadImage, }: Readonly<QuestionPlayerElementProps>): ReactElement | null;
|
|
19
|
-
//# sourceMappingURL=QuestionPlayerElement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionPlayerElement.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionPlayerElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAIV,mBAAmB,EAOnB,+BAA+B,EAGhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAejB,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,+BAA+B,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACjE,QAAQ,EAAE,sBAAsB,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,GAAG,IAAI,CAkF5D"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentTextMarkerItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
5
|
-
export type QuestionTextMarkerPlayerProps = {
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
item: QuestionContentTextMarkerItem;
|
|
8
|
-
messages: QuestionMessages;
|
|
9
|
-
onChange: (item: QuestionPlayerResponseItem) => void;
|
|
10
|
-
response: QuestionPlayerResponse;
|
|
11
|
-
responseIndex: number;
|
|
12
|
-
showAnswer: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function QuestionTextMarkerPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionTextMarkerPlayerProps>): ReactElement;
|
|
15
|
-
//# sourceMappingURL=QuestionTextMarkerPlayer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionTextMarkerPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionTextMarkerPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AASjB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CA8BxD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
|
|
2
|
-
import type { ReactElement } from "react";
|
|
3
|
-
import type { QuestionLocale, QuestionMessages } from "../i18n";
|
|
4
|
-
import type { QuestionPlayerResponse, QuestionPlayerTextResponseItem } from "./types";
|
|
5
|
-
export type QuestionTextResponsePlayerProps = {
|
|
6
|
-
readonly disabled: boolean;
|
|
7
|
-
readonly locale: QuestionLocale;
|
|
8
|
-
readonly label: string;
|
|
9
|
-
readonly messages: QuestionMessages;
|
|
10
|
-
readonly onChange: (item: QuestionPlayerTextResponseItem) => void;
|
|
11
|
-
readonly response: QuestionPlayerResponse;
|
|
12
|
-
readonly responseIndex: number;
|
|
13
|
-
readonly uploadImage?: RichTextEditorRootProps["uploadImage"];
|
|
14
|
-
};
|
|
15
|
-
export declare function QuestionTextResponsePlayer({ disabled, locale, label, messages, onChange, response, responseIndex, uploadImage, }: QuestionTextResponsePlayerProps): ReactElement;
|
|
16
|
-
//# sourceMappingURL=QuestionTextResponsePlayer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionTextResponsePlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionTextResponsePlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EACV,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAQjB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CAC/D,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,GACZ,EAAE,+BAA+B,GAAG,YAAY,CAwBhD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentWordBuilderItem, QuestionContentWordBuilderStructureElement } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
5
|
-
export type QuestionWordBuilderPlayerProps = {
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
element: QuestionContentWordBuilderStructureElement;
|
|
8
|
-
item: QuestionContentWordBuilderItem;
|
|
9
|
-
messages: QuestionMessages;
|
|
10
|
-
onChange: (item: QuestionPlayerResponseItem) => void;
|
|
11
|
-
response: QuestionPlayerResponse;
|
|
12
|
-
responseIndex: number;
|
|
13
|
-
showAnswer: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare function QuestionWordBuilderPlayer({ disabled, element, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionWordBuilderPlayerProps>): ReactElement;
|
|
16
|
-
//# sourceMappingURL=QuestionWordBuilderPlayer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionWordBuilderPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionWordBuilderPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAUjB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,0CAA0C,CAAC;IACpD,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CA8HzD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { QuestionContentDraft, QuestionContentFillTextStructureElement, QuestionContentOrderingItem, QuestionContentQuestionTypeTemplate } from "../content-editor/types";
|
|
2
|
-
import type { QuestionPlayerBlankGroupResponseItem, QuestionPlayerClassificationResponseItem, QuestionPlayerFillTextAnswer, QuestionPlayerFillTextResponseItem, QuestionPlayerJudgementGroupResponseItem, QuestionPlayerLineConnectResponseItem, QuestionPlayerMatchingResponseItem, QuestionPlayerOrderingResponseItem, QuestionPlayerOptionGroupResponseItem, QuestionPlayerResponse, QuestionPlayerResponseItem, QuestionPlayerTextMarkerResponseItem, QuestionPlayerTextResponseItem, QuestionPlayerWordBuilderResponseItem } from "./types";
|
|
3
|
-
export declare function createEmptyQuestionPlayerResponse(value: QuestionContentDraft, questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[]): QuestionPlayerResponse;
|
|
4
|
-
export declare function getOptionGroupResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerOptionGroupResponseItem;
|
|
5
|
-
export declare function getBlankGroupResponseItem(response: QuestionPlayerResponse, responseIndex: number, blankIds: readonly string[]): QuestionPlayerBlankGroupResponseItem;
|
|
6
|
-
export declare function getFillTextResponseItem(response: QuestionPlayerResponse, responseIndex: number, element: QuestionContentFillTextStructureElement, blankIds: readonly string[]): QuestionPlayerFillTextResponseItem;
|
|
7
|
-
export declare function getWordBuilderResponseItem(response: QuestionPlayerResponse, responseIndex: number, blankIds: readonly string[]): QuestionPlayerWordBuilderResponseItem;
|
|
8
|
-
export declare function getJudgementGroupResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerJudgementGroupResponseItem;
|
|
9
|
-
export declare function getClassificationResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerClassificationResponseItem;
|
|
10
|
-
export declare function getLineConnectResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerLineConnectResponseItem;
|
|
11
|
-
export declare function getMatchingResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerMatchingResponseItem;
|
|
12
|
-
export declare function getOrderingResponseItem(response: QuestionPlayerResponse, responseIndex: number, item: QuestionContentOrderingItem): QuestionPlayerOrderingResponseItem;
|
|
13
|
-
export declare function getTextMarkerResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerTextMarkerResponseItem;
|
|
14
|
-
export declare function getTextResponseItem(response: QuestionPlayerResponse, responseIndex: number): QuestionPlayerTextResponseItem;
|
|
15
|
-
export declare function updateResponseItem(response: QuestionPlayerResponse, responseIndex: number, nextItem: QuestionPlayerResponseItem): QuestionPlayerResponse;
|
|
16
|
-
export declare function updateChildResponse(response: QuestionPlayerResponse, childIndex: number, nextChild: QuestionPlayerResponse): QuestionPlayerResponse;
|
|
17
|
-
export declare function toggleSelectedOptionId(selectedOptionIds: readonly string[], optionId: string, selectionType: "multiple" | "single"): string[];
|
|
18
|
-
export declare function toggleOptionAnswer(answers: QuestionPlayerFillTextAnswer | undefined, optionId: string, selectionType?: "multiple" | "single"): QuestionPlayerFillTextAnswer;
|
|
19
|
-
export declare function toggleLineConnectConnection(connections: Record<string, string[]>, fromItemId: string, toItemId: string): Record<string, string[]>;
|
|
20
|
-
export declare function toggleMatchingConnection(connections: Record<string, string[]>, fromItemId: string, toItemId: string): Record<string, string[]>;
|
|
21
|
-
export declare function setClassificationResponsePlacement(placements: Record<string, string>, itemId: string, categoryId: string): Record<string, string>;
|
|
22
|
-
export declare function moveOrderingResponseOption(orderedOptionIds: readonly string[], item: QuestionContentOrderingItem, optionId: string, direction: -1 | 1): string[];
|
|
23
|
-
export declare function toggleTextMarkerSelection(selectedMarkers: readonly string[], markerId: string): string[];
|
|
24
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/question/player/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,uCAAuC,EAGvC,2BAA2B,EAE3B,mCAAmC,EACpC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,oCAAoC,EACpC,wCAAwC,EACxC,4BAA4B,EAC5B,kCAAkC,EAClC,wCAAwC,EACxC,qCAAqC,EACrC,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,sBAAsB,EACtB,0BAA0B,EAC1B,oCAAoC,EACpC,8BAA8B,EAC9B,qCAAqC,EACtC,MAAM,SAAS,CAAC;AAiBjB,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,oBAAoB,EAC3B,qBAAqB,EAAE,SAAS,mCAAmC,EAAE,GACpE,sBAAsB,CAgCxB;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,qCAAqC,CAOvC;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,oCAAoC,CAOtC;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,uCAAuC,EAChD,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,kCAAkC,CAOpC;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,qCAAqC,CAOvC;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,wCAAwC,CAO1C;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,wCAAwC,CAO1C;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,qCAAqC,CAOvC;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,kCAAkC,CAOpC;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,2BAA2B,GAChC,kCAAkC,CAOpC;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,oCAAoC,CAOtC;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,GACpB,8BAA8B,CAOhC;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,0BAA0B,GACnC,sBAAsB,CAOxB;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,sBAAsB,EAChC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,sBAAsB,GAChC,sBAAsB,CAOxB;AAED,wBAAgB,sBAAsB,CACpC,iBAAiB,EAAE,SAAS,MAAM,EAAE,EACpC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,UAAU,GAAG,QAAQ,GACnC,MAAM,EAAE,CAEV;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,4BAA4B,GAAG,SAAS,EACjD,QAAQ,EAAE,MAAM,EAChB,aAAa,GAAE,UAAU,GAAG,QAAmB,GAC9C,4BAA4B,CAO9B;AAED,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACrC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAE1B;AAED,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACrC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAE1B;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB;AAED,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,SAAS,MAAM,EAAE,EACnC,IAAI,EAAE,2BAA2B,EACjC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAChB,MAAM,EAAE,CAOV;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,SAAS,MAAM,EAAE,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,CAIV"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
|
|
2
|
-
import type { QuestionContentDraft, QuestionContentQuestionTypeTemplate, QuestionRichContentValue, QuestionJudgementValues } from "../content-editor/types";
|
|
3
|
-
import type { QuestionLocale } from "../i18n";
|
|
4
|
-
export type QuestionPlayerFillTextAnswer = {
|
|
5
|
-
kind: "option";
|
|
6
|
-
optionIds: string[];
|
|
7
|
-
} | {
|
|
8
|
-
kind: "text";
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
export type QuestionPlayerOptionGroupResponseItem = {
|
|
12
|
-
selectedOptionIds: string[];
|
|
13
|
-
type: "choice";
|
|
14
|
-
};
|
|
15
|
-
export type QuestionPlayerBlankGroupResponseItem = {
|
|
16
|
-
answers: Record<string, string>;
|
|
17
|
-
type: "fill";
|
|
18
|
-
};
|
|
19
|
-
export type QuestionPlayerFillTextResponseItem = {
|
|
20
|
-
answers: Record<string, QuestionPlayerFillTextAnswer>;
|
|
21
|
-
type: "inlineFill";
|
|
22
|
-
};
|
|
23
|
-
export type QuestionPlayerWordBuilderResponseItem = {
|
|
24
|
-
answers: Record<string, string>;
|
|
25
|
-
type: "wordBuilder";
|
|
26
|
-
};
|
|
27
|
-
export type QuestionPlayerJudgementGroupResponseItem = {
|
|
28
|
-
selectedValues: QuestionJudgementValues;
|
|
29
|
-
type: "judgement";
|
|
30
|
-
};
|
|
31
|
-
export type QuestionPlayerClassificationResponseItem = {
|
|
32
|
-
placements: Record<string, string>;
|
|
33
|
-
type: "classification";
|
|
34
|
-
};
|
|
35
|
-
export type QuestionPlayerLineConnectResponseItem = {
|
|
36
|
-
connections: Record<string, string[]>;
|
|
37
|
-
type: "lineConnect";
|
|
38
|
-
};
|
|
39
|
-
export type QuestionPlayerMatchingResponseItem = {
|
|
40
|
-
connections: Record<string, string[]>;
|
|
41
|
-
type: "matching";
|
|
42
|
-
};
|
|
43
|
-
export type QuestionPlayerOrderingResponseItem = {
|
|
44
|
-
orderedOptionIds: string[];
|
|
45
|
-
type: "ordering";
|
|
46
|
-
};
|
|
47
|
-
export type QuestionPlayerTextMarkerResponseItem = {
|
|
48
|
-
selectedMarkers: string[];
|
|
49
|
-
type: "textMarker";
|
|
50
|
-
};
|
|
51
|
-
export type QuestionPlayerTextResponseItem = {
|
|
52
|
-
readonly content: QuestionRichContentValue;
|
|
53
|
-
readonly type: "textResponse";
|
|
54
|
-
};
|
|
55
|
-
export type QuestionPlayerResponseItem = QuestionPlayerBlankGroupResponseItem | QuestionPlayerClassificationResponseItem | QuestionPlayerFillTextResponseItem | QuestionPlayerJudgementGroupResponseItem | QuestionPlayerLineConnectResponseItem | QuestionPlayerMatchingResponseItem | QuestionPlayerOrderingResponseItem | QuestionPlayerOptionGroupResponseItem | QuestionPlayerTextMarkerResponseItem | QuestionPlayerTextResponseItem | QuestionPlayerWordBuilderResponseItem;
|
|
56
|
-
export type QuestionPlayerResponse = {
|
|
57
|
-
questionTypeKey: null | number;
|
|
58
|
-
children: QuestionPlayerResponse[];
|
|
59
|
-
id: null | number;
|
|
60
|
-
items: QuestionPlayerResponseItem[];
|
|
61
|
-
version: string;
|
|
62
|
-
};
|
|
63
|
-
export type QuestionPlayerProps = {
|
|
64
|
-
className?: string;
|
|
65
|
-
disabled?: boolean;
|
|
66
|
-
locale?: QuestionLocale;
|
|
67
|
-
onResponseChange: (response: QuestionPlayerResponse) => void;
|
|
68
|
-
response: QuestionPlayerResponse;
|
|
69
|
-
showAnswer?: boolean;
|
|
70
|
-
showExtraAttributes?: boolean;
|
|
71
|
-
questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[];
|
|
72
|
-
uploadImage?: RichTextEditorRootProps["uploadImage"];
|
|
73
|
-
value: QuestionContentDraft;
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/question/player/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentDraft } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionCompositePreviewProps = {
|
|
5
|
-
messages: QuestionMessages;
|
|
6
|
-
renderChild: (child: QuestionContentDraft, numberPath: readonly number[]) => ReactElement;
|
|
7
|
-
numberPath?: readonly number[];
|
|
8
|
-
value: QuestionContentDraft;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionCompositePreview({ messages, numberPath, renderChild, value, }: Readonly<QuestionCompositePreviewProps>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=QuestionCompositePreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionCompositePreview.d.ts","sourceRoot":"","sources":["../../../src/question/preview/QuestionCompositePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAKhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,CACX,KAAK,EAAE,oBAAoB,EAC3B,UAAU,EAAE,SAAS,MAAM,EAAE,KAC1B,YAAY,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,UAAe,EACf,WAAW,EACX,KAAK,GACN,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CAqBxD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentDraft, QuestionContentQuestionTypeTemplate } from "../content-editor/types";
|
|
3
|
-
import type { QuestionLocale } from "../i18n";
|
|
4
|
-
export type QuestionPreviewProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
locale?: QuestionLocale;
|
|
7
|
-
showAnswer?: boolean;
|
|
8
|
-
showExtraAttributes?: boolean;
|
|
9
|
-
questionTypeTemplates: readonly QuestionContentQuestionTypeTemplate[];
|
|
10
|
-
value: QuestionContentDraft;
|
|
11
|
-
};
|
|
12
|
-
export declare function QuestionPreview({ locale, ...props }: Readonly<QuestionPreviewProps>): ReactElement;
|
|
13
|
-
//# sourceMappingURL=QuestionPreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionPreview.d.ts","sourceRoot":"","sources":["../../../src/question/preview/QuestionPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,oBAAoB,EAMpB,mCAAmC,EACpC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,SAAS,CAAC;AAcjB,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,SAAS,mCAAmC,EAAE,CAAC;IACtE,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAOF,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAC7D,YAAY,CAQd"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentBlankGroupItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionBlankGroupViewProps = {
|
|
5
|
-
item: QuestionContentBlankGroupItem;
|
|
6
|
-
messages: QuestionMessages;
|
|
7
|
-
showAnswer: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function QuestionBlankGroupView({ item, messages, showAnswer, }: Readonly<QuestionBlankGroupViewProps>): ReactElement;
|
|
10
|
-
//# sourceMappingURL=QuestionBlankGroupView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionBlankGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionBlankGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAuCtD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentClassificationItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionClassificationViewProps = {
|
|
5
|
-
item: QuestionContentClassificationItem;
|
|
6
|
-
messages: QuestionMessages;
|
|
7
|
-
showAnswer: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function QuestionClassificationView({ item, messages, showAnswer, }: Readonly<QuestionClassificationViewProps>): ReactElement;
|
|
10
|
-
//# sourceMappingURL=QuestionClassificationView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionClassificationView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionClassificationView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,CA8B1D"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentItem, QuestionContentStructureElement } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionContentElementViewProps = {
|
|
5
|
-
element: QuestionContentStructureElement;
|
|
6
|
-
item: QuestionContentItem;
|
|
7
|
-
messages: QuestionMessages;
|
|
8
|
-
showAnswer: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionContentElementView({ element, item, messages, showAnswer, }: Readonly<QuestionContentElementViewProps>): ReactElement | null;
|
|
11
|
-
//# sourceMappingURL=QuestionContentElementView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionContentElementView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionContentElementView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAIV,mBAAmB,EAOnB,+BAA+B,EAGhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAehD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,+BAA+B,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,GAAG,IAAI,CAyDjE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionFillTextViewProps = {
|
|
5
|
-
element: QuestionContentFillTextStructureElement;
|
|
6
|
-
item: QuestionContentFillTextItem;
|
|
7
|
-
messages: QuestionMessages;
|
|
8
|
-
showAnswer: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionFillTextView({ element, item, messages, showAnswer, }: Readonly<QuestionFillTextViewProps>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=QuestionFillTextView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionFillTextView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionFillTextView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,2BAA2B,EAC3B,uCAAuC,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAWhD,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,uCAAuC,CAAC;IACjD,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CA6BpD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentJudgementGroupItem, QuestionContentJudgementGroupStructureElement } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionJudgementGroupViewProps = {
|
|
5
|
-
element: QuestionContentJudgementGroupStructureElement;
|
|
6
|
-
item: QuestionContentJudgementGroupItem;
|
|
7
|
-
messages: QuestionMessages;
|
|
8
|
-
showAnswer: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionJudgementGroupView({ element, item, messages, showAnswer, }: Readonly<QuestionJudgementGroupViewProps>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=QuestionJudgementGroupView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionJudgementGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionJudgementGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,iCAAiC,EACjC,6CAA6C,EAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,6CAA6C,CAAC;IACvD,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,YAAY,CA+B1D"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentLineConnectItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionLineConnectViewProps = {
|
|
5
|
-
item: QuestionContentLineConnectItem;
|
|
6
|
-
messages: QuestionMessages;
|
|
7
|
-
showAnswer: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function QuestionLineConnectView({ item, messages, showAnswer, }: Readonly<QuestionLineConnectViewProps>): ReactElement;
|
|
10
|
-
//# sourceMappingURL=QuestionLineConnectView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionLineConnectView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionLineConnectView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAyCvD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentMatchingItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionMatchingViewProps = {
|
|
5
|
-
item: QuestionContentMatchingItem;
|
|
6
|
-
messages: QuestionMessages;
|
|
7
|
-
showAnswer: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function QuestionMatchingView({ item, messages, showAnswer, }: Readonly<QuestionMatchingViewProps>): ReactElement;
|
|
10
|
-
//# sourceMappingURL=QuestionMatchingView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionMatchingView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionMatchingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CAkCpD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentOptionGroupItem, QuestionContentOptionGroupStructureElement } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionOptionGroupViewProps = {
|
|
5
|
-
element: QuestionContentOptionGroupStructureElement;
|
|
6
|
-
item: QuestionContentOptionGroupItem;
|
|
7
|
-
messages: QuestionMessages;
|
|
8
|
-
showAnswer: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionOptionGroupView({ element, item, messages, showAnswer, }: Readonly<QuestionOptionGroupViewProps>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=QuestionOptionGroupView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionOptionGroupView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionOptionGroupView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAWhD,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,0CAA0C,CAAC;IACpD,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAuFvD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionContentOrderingItem } from "../content-editor/types";
|
|
3
|
-
import type { QuestionMessages } from "../i18n";
|
|
4
|
-
export type QuestionOrderingViewProps = {
|
|
5
|
-
item: QuestionContentOrderingItem;
|
|
6
|
-
messages: QuestionMessages;
|
|
7
|
-
showAnswer: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function QuestionOrderingView({ item, messages, showAnswer, }: Readonly<QuestionOrderingViewProps>): ReactElement;
|
|
10
|
-
//# sourceMappingURL=QuestionOrderingView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionOrderingView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionOrderingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOhD,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,YAAY,CAmBpD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from "react";
|
|
2
|
-
import type { QuestionRichContentValue } from "../content-editor/types";
|
|
3
|
-
export type QuestionRichContentViewProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
content: QuestionRichContentValue;
|
|
6
|
-
};
|
|
7
|
-
export declare function QuestionRichContentView({ className, content, }: Readonly<QuestionRichContentViewProps>): ReactElement;
|
|
8
|
-
//# sourceMappingURL=QuestionRichContentView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionRichContentView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionRichContentView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAMxE,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,OAAO,GACR,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAiBvD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
-
import type { QuestionRichContentValue } from "../content-editor/types";
|
|
3
|
-
export type QuestionRichContentBlankRenderOptions = {
|
|
4
|
-
readonly blankId: string;
|
|
5
|
-
readonly index: number;
|
|
6
|
-
readonly label: string;
|
|
7
|
-
};
|
|
8
|
-
export type QuestionRichContentWithBlankViewProps = {
|
|
9
|
-
className?: string;
|
|
10
|
-
content: QuestionRichContentValue;
|
|
11
|
-
renderBlank: (options: QuestionRichContentBlankRenderOptions) => ReactNode;
|
|
12
|
-
};
|
|
13
|
-
export declare function QuestionRichContentWithBlankView({ className, content, renderBlank, }: Readonly<QuestionRichContentWithBlankViewProps>): ReactElement;
|
|
14
|
-
//# sourceMappingURL=QuestionRichContentWithBlankView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionRichContentWithBlankView.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionRichContentWithBlankView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAaxE,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,wBAAwB,CAAC;IAClC,WAAW,EAAE,CAAC,OAAO,EAAE,qCAAqC,KAAK,SAAS,CAAC;CAC5E,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC/C,SAAS,EACT,OAAO,EACP,WAAW,GACZ,EAAE,QAAQ,CAAC,qCAAqC,CAAC,GAAG,YAAY,CAkBhE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from "react";
|
|
2
|
-
export type QuestionStandardAnswerGroup = {
|
|
3
|
-
contents: readonly ReactNode[];
|
|
4
|
-
marker: string;
|
|
5
|
-
};
|
|
6
|
-
export type QuestionStandardAnswerPanelProps = {
|
|
7
|
-
groups: readonly QuestionStandardAnswerGroup[];
|
|
8
|
-
title: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function QuestionStandardAnswerPanel({ groups, title, }: Readonly<QuestionStandardAnswerPanelProps>): ReactElement | null;
|
|
11
|
-
//# sourceMappingURL=QuestionStandardAnswerPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionStandardAnswerPanel.d.ts","sourceRoot":"","sources":["../../../src/question/renderers/QuestionStandardAnswerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,KAAK,GACN,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GAAG,YAAY,GAAG,IAAI,CA+BlE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAyBtD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAY/B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAyC/B"}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAyB/B"}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|