@pie-element/explicit-constructed-response 11.1.2-next.2 → 11.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.json +1102 -0
  2. package/CHANGELOG.md +2194 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +652 -0
  6. package/configure/CHANGELOG.md +1935 -0
  7. package/configure/lib/alternateResponses.js +199 -0
  8. package/configure/lib/alternateResponses.js.map +1 -0
  9. package/configure/lib/alternateSection.js +329 -0
  10. package/configure/lib/alternateSection.js.map +1 -0
  11. package/configure/lib/defaults.js +184 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/ecr-toolbar.js +181 -0
  14. package/configure/lib/ecr-toolbar.js.map +1 -0
  15. package/configure/lib/index.js +161 -0
  16. package/configure/lib/index.js.map +1 -0
  17. package/configure/lib/main.js +501 -0
  18. package/configure/lib/main.js.map +1 -0
  19. package/configure/lib/markupUtils.js +70 -0
  20. package/configure/lib/markupUtils.js.map +1 -0
  21. package/configure/lib/utils.js +15 -0
  22. package/configure/lib/utils.js.map +1 -0
  23. package/configure/package.json +22 -0
  24. package/controller/CHANGELOG.json +517 -0
  25. package/controller/CHANGELOG.md +1344 -0
  26. package/controller/lib/defaults.js +23 -0
  27. package/controller/lib/defaults.js.map +1 -0
  28. package/controller/lib/index.js +368 -0
  29. package/controller/lib/index.js.map +1 -0
  30. package/controller/package.json +18 -0
  31. package/docs/config-schema.json +2629 -0
  32. package/docs/config-schema.json.md +1941 -0
  33. package/docs/demo/config.js +8 -0
  34. package/docs/demo/generate.js +20 -0
  35. package/docs/demo/index.html +1 -0
  36. package/docs/demo/session.js +10 -0
  37. package/docs/pie-schema.json +1130 -0
  38. package/docs/pie-schema.json.md +814 -0
  39. package/lib/index.js +91 -0
  40. package/lib/index.js.map +1 -0
  41. package/lib/main.js +205 -0
  42. package/lib/main.js.map +1 -0
  43. package/lib/print.js +71 -0
  44. package/lib/print.js.map +1 -0
  45. package/module/configure.js +1 -0
  46. package/module/controller.js +6534 -0
  47. package/module/demo.js +45 -0
  48. package/module/element.js +1 -0
  49. package/module/index.html +21 -0
  50. package/module/manifest.json +18 -0
  51. package/module/print-demo.js +83 -0
  52. package/module/print.html +18 -0
  53. package/module/print.js +1 -0
  54. package/package.json +25 -92
  55. package/configure.js +0 -2
  56. package/controller.js +0 -1
  57. package/dist/_virtual/_rolldown/runtime.js +0 -4
  58. package/dist/author/alternateResponses.d.ts +0 -34
  59. package/dist/author/alternateResponses.js +0 -113
  60. package/dist/author/alternateSection.d.ts +0 -58
  61. package/dist/author/alternateSection.js +0 -213
  62. package/dist/author/defaults.d.ts +0 -186
  63. package/dist/author/defaults.js +0 -128
  64. package/dist/author/ecr-toolbar.d.ts +0 -41
  65. package/dist/author/ecr-toolbar.js +0 -100
  66. package/dist/author/index.d.ts +0 -42
  67. package/dist/author/index.js +0 -96
  68. package/dist/author/main.d.ts +0 -38
  69. package/dist/author/main.js +0 -291
  70. package/dist/author/markupUtils.d.ts +0 -14
  71. package/dist/author/markupUtils.js +0 -13
  72. package/dist/author/utils.d.ts +0 -9
  73. package/dist/author/utils.js +0 -7
  74. package/dist/browser/author/index.js +0 -3378
  75. package/dist/browser/author/index.js.map +0 -1
  76. package/dist/browser/browser-BC3WygxE.js +0 -360
  77. package/dist/browser/browser-BC3WygxE.js.map +0 -1
  78. package/dist/browser/controller/index.js +0 -4152
  79. package/dist/browser/controller/index.js.map +0 -1
  80. package/dist/browser/delivery/index.js +0 -96
  81. package/dist/browser/delivery/index.js.map +0 -1
  82. package/dist/browser/dist-B5QyKMGD.js +0 -45663
  83. package/dist/browser/dist-B5QyKMGD.js.map +0 -1
  84. package/dist/browser/dist-D9ARZhQk.js +0 -1426
  85. package/dist/browser/dist-D9ARZhQk.js.map +0 -1
  86. package/dist/browser/explicit-constructed-response.css +0 -2
  87. package/dist/browser/main-Czk7a-Zt.js +0 -959
  88. package/dist/browser/main-Czk7a-Zt.js.map +0 -1
  89. package/dist/browser/print/index.js +0 -40
  90. package/dist/browser/print/index.js.map +0 -1
  91. package/dist/controller/defaults.d.ts +0 -25
  92. package/dist/controller/defaults.js +0 -19
  93. package/dist/controller/index.d.ts +0 -64
  94. package/dist/controller/index.js +0 -139
  95. package/dist/delivery/index.d.ts +0 -20
  96. package/dist/delivery/index.js +0 -66
  97. package/dist/delivery/main.d.ts +0 -48
  98. package/dist/delivery/main.js +0 -115
  99. package/dist/explicit-constructed-response.css +0 -2
  100. package/dist/index.d.ts +0 -1
  101. package/dist/index.iife.d.ts +0 -8
  102. package/dist/index.iife.js +0 -393
  103. package/dist/index.js +0 -2
  104. package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +0 -3993
  105. package/dist/print/index.d.ts +0 -15
  106. package/dist/print/index.js +0 -40
  107. package/dist/runtime-support.d.ts +0 -12
  108. package/dist/runtime-support.js +0 -12
@@ -1,113 +0,0 @@
1
- import e from "./alternateSection.js";
2
- import t from "react";
3
- import n from "prop-types";
4
- import { cloneDeep as r, isEqual as i, map as a, reduce as o } from "@pie-element/shared-lodash";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- //#region src/author/alternateResponses.tsx
7
- var l = class extends t.Component {
8
- static propTypes = {
9
- choicesErrors: n.object,
10
- model: n.object.isRequired,
11
- onChange: n.func.isRequired,
12
- onLengthChange: n.func.isRequired,
13
- maxLengthPerChoiceEnabled: n.bool.isRequired,
14
- spellCheck: n.bool,
15
- pluginProps: n.object
16
- };
17
- state = { maxLengthPerChoice: r(this.props.model.maxLengthPerChoice) };
18
- UNSAFE_componentWillReceiveProps(e) {
19
- this.updateChoicesIfNeeded(e);
20
- }
21
- componentDidMount() {
22
- this.updateChoicesIfNeeded(this.props);
23
- }
24
- updateChoicesIfNeeded = (e) => {
25
- if (!this.state.choices || !i(this.state.choices, e.model.choices) || !i(e.model.choices, this.props.model.choices) || this.state.values && Object.keys(this.state.values).length !== Object.keys(this.props.model.choices).length || e.maxLengthPerChoiceEnabled !== this.props.maxLengthPerChoiceEnabled) {
26
- let { choices: t, maxLengthPerChoice: n } = e.model, i = o(t, (t, n, r) => (n && (e.maxLengthPerChoiceEnabled || n.length > 1) && (t[r] = n[0]), t), {});
27
- this.setState({
28
- choices: e.model.choices,
29
- values: i,
30
- maxLengthPerChoice: r(n)
31
- });
32
- }
33
- };
34
- getRemainingChoices = (e) => {
35
- let { choices: t } = this.state;
36
- return o(t, (t, n, r) => (n && n.length === 1 && !e && t.push({
37
- label: n[0].label,
38
- value: r
39
- }), t), []);
40
- };
41
- onChoiceChanged = (e, t) => {
42
- let { onChange: n } = this.props, { choices: r } = this.state, i = r[t] || [], a = !i.find((t) => t.value === e.value), o = i.reduce((t, n) => {
43
- let r = n.value === e.value ? e : n;
44
- return t.push(r), t;
45
- }, []);
46
- a && o.push(e), n({
47
- ...r,
48
- [t]: o
49
- });
50
- };
51
- onChoiceRemoved = (e, t) => {
52
- let { onChange: n } = this.props, { choices: r } = this.state, i = (r[t] || []).reduce((t, n) => (n.value === e || t.push(n), t), []);
53
- n({
54
- ...r,
55
- [t]: i
56
- });
57
- };
58
- onSectionSelect = (e, t) => {
59
- let { onChange: n } = this.props, { choices: r, values: i } = this.state;
60
- r[t] && r[t].length > 1 ? e || n({
61
- ...r,
62
- [t]: [r[t][0]]
63
- }) : this.setState({
64
- choices: {
65
- ...r,
66
- [t]: [...r[t], {
67
- label: "",
68
- value: "1"
69
- }]
70
- },
71
- values: {
72
- ...i,
73
- [t]: r[t][0]
74
- }
75
- });
76
- };
77
- onLengthChanged = (e, t) => {
78
- let { model: n, onLengthChange: r } = this.props, { maxLengthPerChoice: i } = n;
79
- i[t] = e, r(i);
80
- };
81
- render() {
82
- let { choices: t } = this.state, { model: { maxLengthPerChoice: n, maxLengthPerChoiceEnabled: r }, spellCheck: i, choicesErrors: o, pluginProps: l } = this.props;
83
- return /* @__PURE__ */ c("div", { children: [a(t, (t, a) => {
84
- if (t && (r || t.length > 1)) {
85
- let c = this.state.values[a];
86
- return /* @__PURE__ */ s(e, {
87
- value: c && c.value,
88
- errors: o && o[a],
89
- onSelect: (e) => this.onSectionSelect(e, a),
90
- choiceChanged: (e) => this.onChoiceChanged(e, a),
91
- choiceRemoved: (e) => this.onChoiceRemoved(e, a),
92
- lengthChanged: (e) => this.onLengthChanged(e, a),
93
- selectChoices: [c],
94
- choices: t,
95
- maxLength: n[a],
96
- showMaxLength: r,
97
- spellCheck: i,
98
- pluginProps: l
99
- }, a);
100
- }
101
- }), t && Object.keys(this.state.values).length !== Object.keys(t).length && /* @__PURE__ */ s(e, {
102
- value: "",
103
- onSelect: (e) => this.onSectionSelect(e, e.value),
104
- choiceChanged: (e) => this.onChoiceChanged(e),
105
- choiceRemoved: (e) => this.onChoiceRemoved(e),
106
- selectChoices: this.getRemainingChoices(),
107
- spellCheck: i,
108
- pluginProps: l
109
- })] });
110
- }
111
- };
112
- //#endregion
113
- export { l as default };
@@ -1,58 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/explicit-constructed-response/configure/src/alternateSection.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- export declare class Choice extends React.Component {
12
- static propTypes: {
13
- error: PropTypes.Requireable<string>;
14
- markup: PropTypes.Requireable<string>;
15
- onChange: PropTypes.Validator<(...args: any[]) => any>;
16
- onDelete: PropTypes.Validator<(...args: any[]) => any>;
17
- value: PropTypes.Requireable<string>;
18
- spellCheck: PropTypes.Requireable<boolean>;
19
- showMaxLength: PropTypes.Requireable<boolean>;
20
- pluginProps: PropTypes.Requireable<object>;
21
- };
22
- state: {
23
- value: any;
24
- };
25
- updateText: import("@pie-element/shared-lodash").CancelableFunction<any>;
26
- UNSAFE_componentWillReceiveProps(nextProps: any): void;
27
- onChange: any;
28
- onKeyDown: any;
29
- render(): React.JSX.Element;
30
- }
31
- export declare class AlternateSection extends React.Component {
32
- static propTypes: {
33
- choices: PropTypes.Requireable<any[]>;
34
- selectChoices: PropTypes.Validator<any[]>;
35
- errors: PropTypes.Requireable<object>;
36
- onSelect: PropTypes.Validator<(...args: any[]) => any>;
37
- choiceChanged: PropTypes.Validator<(...args: any[]) => any>;
38
- lengthChanged: PropTypes.Requireable<(...args: any[]) => any>;
39
- choiceRemoved: PropTypes.Validator<(...args: any[]) => any>;
40
- value: PropTypes.Requireable<string>;
41
- maxLength: PropTypes.Requireable<number>;
42
- showMaxLength: PropTypes.Requireable<boolean>;
43
- spellCheck: PropTypes.Requireable<boolean>;
44
- pluginProps: PropTypes.Requireable<object>;
45
- };
46
- state: {};
47
- UNSAFE_componentWillReceiveProps(nextProps: any): void;
48
- componentDidMount(): void;
49
- updateChoicesIfNeeded: any;
50
- handleSelect: any;
51
- onAddChoice: any;
52
- onChoiceChanged: any;
53
- onRemoveChoice: any;
54
- getChoicesMaxLength: any;
55
- changeLength: any;
56
- render(): React.JSX.Element;
57
- }
58
- export default AlternateSection;
@@ -1,213 +0,0 @@
1
- import { decodeHTML as e, getAdjustedLength as t, stripHtmlTags as n } from "./markupUtils.js";
2
- import r from "react";
3
- import i from "prop-types";
4
- import { debounce as a, isEqual as o, max as s } from "@pie-element/shared-lodash";
5
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
- import { styled as u } from "@mui/material/styles";
7
- import d from "@pie-lib/editable-html-tip-tap";
8
- import f from "@mui/material/Button";
9
- import p from "@mui/icons-material/Delete";
10
- import m from "@mui/material/IconButton";
11
- import h from "@mui/material/MenuItem";
12
- import g from "@mui/material/Select";
13
- import _ from "@mui/material/TextField";
14
- //#region src/author/alternateSection.tsx
15
- var v = u("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), y = u("div")(({ theme: e }) => ({
16
- alignItems: "flex-start",
17
- flexDirection: "column",
18
- display: "flex",
19
- paddingTop: e.spacing(2.5),
20
- "& > *": {
21
- marginBottom: e.spacing(2.5),
22
- width: "100%"
23
- }
24
- })), b = u(d)(({ theme: e, hasError: t }) => ({
25
- flex: "1",
26
- marginRight: e.spacing(2.5),
27
- ...t && {
28
- border: `2px solid ${e.palette.error.main}`,
29
- borderRadius: "6px"
30
- }
31
- })), x = u(m)(({ theme: e }) => ({ "& svg": { fill: e.palette.grey[600] } })), S = u("div")({
32
- alignItems: "flex-end",
33
- display: "flex",
34
- justifyContent: "space-between",
35
- width: "100%"
36
- }), C = u("div")({
37
- alignItems: "center",
38
- display: "flex"
39
- }), w = u(_)(({ theme: e }) => ({
40
- width: "230px",
41
- marginRight: e.spacing(2.5),
42
- "& .MuiInput-underline:before": { borderBottomColor: e.palette.divider },
43
- "& .MuiInput-underline:hover:not(.Mui-disabled):before": { borderBottomColor: e.palette.text.primary },
44
- "& .MuiInput-underline:after": { borderBottomColor: e.palette.primary.main }
45
- })), T = u("div")(({ theme: e }) => ({
46
- fontSize: e.typography.fontSize - 2,
47
- color: e.palette.error.main,
48
- paddingTop: e.spacing(.5)
49
- })), E = u("div")({
50
- alignItems: "center",
51
- display: "flex",
52
- justifyContent: "space-between"
53
- }), D = class extends r.Component {
54
- static propTypes = {
55
- error: i.string,
56
- markup: i.string,
57
- onChange: i.func.isRequired,
58
- onDelete: i.func.isRequired,
59
- value: i.string,
60
- spellCheck: i.bool,
61
- showMaxLength: i.bool,
62
- pluginProps: i.object
63
- };
64
- state = { value: this.props.markup };
65
- updateText = a(this.props.onChange, 300);
66
- UNSAFE_componentWillReceiveProps(e) {
67
- e.markup && this.setState({ value: e.markup });
68
- }
69
- onChange = (e) => {
70
- let t = n(e);
71
- this.setState({ value: t }), this.updateText(t);
72
- };
73
- onKeyDown = (e) => {
74
- if (e.key === "Enter") return !0;
75
- };
76
- render() {
77
- let { value: e } = this.state, { onDelete: t, spellCheck: n, error: i, showMaxLength: a, pluginProps: o } = this.props, s = a ? {} : { maxLength: 25 };
78
- return /* @__PURE__ */ l(r.Fragment, { children: [/* @__PURE__ */ l(E, { children: [/* @__PURE__ */ c(b, {
79
- hasError: !!i,
80
- disableUnderline: !0,
81
- onChange: this.onChange,
82
- onKeyDown: this.onKeyDown,
83
- markup: e || "",
84
- activePlugins: ["languageCharacters"],
85
- pluginProps: o,
86
- languageCharactersProps: [{ language: "spanish" }],
87
- spellCheck: n,
88
- autoWidthToolbar: !0,
89
- toolbarOpts: {
90
- minWidth: "auto",
91
- isHidden: !!o?.characters?.disabled
92
- },
93
- ...s
94
- }), /* @__PURE__ */ c(x, {
95
- "aria-label": "delete",
96
- onClick: t,
97
- size: "large",
98
- children: /* @__PURE__ */ c(p, {})
99
- })] }), i && /* @__PURE__ */ c(T, { children: i })] });
100
- }
101
- }, O = class extends r.Component {
102
- static propTypes = {
103
- choices: i.array,
104
- selectChoices: i.array.isRequired,
105
- errors: i.object,
106
- onSelect: i.func.isRequired,
107
- choiceChanged: i.func.isRequired,
108
- lengthChanged: i.func,
109
- choiceRemoved: i.func.isRequired,
110
- value: i.string,
111
- maxLength: i.number,
112
- showMaxLength: i.bool,
113
- spellCheck: i.bool,
114
- pluginProps: i.object
115
- };
116
- state = {};
117
- UNSAFE_componentWillReceiveProps(e) {
118
- this.updateChoicesIfNeeded(e);
119
- }
120
- componentDidMount() {
121
- this.updateChoicesIfNeeded(this.props);
122
- }
123
- updateChoicesIfNeeded = (e) => {
124
- (!this.state.choices || !o(e.choices, this.state.choices) || !o(e.choices, this.props.choices)) && this.setState({ choices: e.choices });
125
- };
126
- handleSelect = (e) => {
127
- let { onSelect: t, selectChoices: n } = this.props, { value: r } = e.target;
128
- t(n.find((e) => e.value === r));
129
- };
130
- onAddChoice = () => {
131
- let { choices: e } = this.state;
132
- if (e.length && e[e.length - 1].label !== "") {
133
- let t = s(e.map((e) => parseInt(e.value)).filter((e) => !isNaN(e))) || 0;
134
- this.setState({ choices: [...e, {
135
- value: `${t + 1}`,
136
- label: ""
137
- }] });
138
- }
139
- };
140
- onChoiceChanged = (n, r, i) => {
141
- let { choiceChanged: a, lengthChanged: o, maxLength: s, choices: c } = this.props, l = c.map((t) => e(t.label || "").length);
142
- l[i] = e(r).length;
143
- let u = Math.max(...l);
144
- a({
145
- ...n,
146
- label: r
147
- }), (u > s || u + 10 <= s) && o(t(u));
148
- };
149
- onRemoveChoice = (e) => {
150
- let { choiceRemoved: t } = this.props;
151
- t(e.value);
152
- };
153
- getChoicesMaxLength = () => {
154
- let { choices: t } = this.state;
155
- if (!t) return 1;
156
- let n = t.map((t) => e(t.label || "").length);
157
- return Math.max(...n);
158
- };
159
- changeLength = (e) => {
160
- let { lengthChanged: t } = this.props, n = parseInt(e.target.value, 10), r = this.getChoicesMaxLength();
161
- n && n >= r && n <= r + 10 && t(n);
162
- };
163
- render() {
164
- let { selectChoices: t, maxLength: n, showMaxLength: r, value: i, spellCheck: a, errors: o, pluginProps: s } = this.props, { choices: u } = this.state, d = this.getChoicesMaxLength();
165
- return /* @__PURE__ */ l(v, { children: [
166
- /* @__PURE__ */ l(S, { children: [/* @__PURE__ */ l(g, {
167
- variant: "standard",
168
- displayEmpty: !0,
169
- onChange: this.handleSelect,
170
- value: i || "",
171
- readOnly: r,
172
- MenuProps: { transitionDuration: {
173
- enter: 225,
174
- exit: 195
175
- } },
176
- children: [/* @__PURE__ */ c(h, {
177
- value: "",
178
- children: /* @__PURE__ */ c("em", { children: i ? "Remove selection" : "Select a response" })
179
- }), t.map((t, n) => /* @__PURE__ */ c(h, {
180
- value: t?.value,
181
- children: e(t?.label)
182
- }, n))]
183
- }), u && u.length > 0 && /* @__PURE__ */ l(C, { children: [n && r && /* @__PURE__ */ c(w, {
184
- variant: "standard",
185
- label: "Maximum length (characters)",
186
- type: "number",
187
- inputProps: {
188
- min: d,
189
- max: d + 10
190
- },
191
- value: n,
192
- onChange: this.changeLength
193
- }), /* @__PURE__ */ c(f, {
194
- variant: "contained",
195
- color: "primary",
196
- onClick: this.onAddChoice,
197
- children: "Add"
198
- })] })] }),
199
- o && o[0] && /* @__PURE__ */ c(T, { children: o[0] }),
200
- /* @__PURE__ */ c(y, { children: u && u.map((e, t) => t > 0 && /* @__PURE__ */ c(D, {
201
- markup: e.label,
202
- onChange: (n) => this.onChoiceChanged(e, n, t),
203
- onDelete: () => this.onRemoveChoice(e),
204
- spellCheck: a,
205
- error: o && o[t],
206
- showMaxLength: r,
207
- pluginProps: s
208
- }, t)) })
209
- ] });
210
- }
211
- };
212
- //#endregion
213
- export { O as default };
@@ -1,186 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/explicit-constructed-response/configure/src/defaults.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- declare const _default: {
10
- model: {
11
- choices: {};
12
- displayType: string;
13
- markup: string;
14
- maxLengthPerChoiceEnabled: boolean;
15
- playerSpellCheckEnabled: boolean;
16
- prompt: string;
17
- promptEnabled: boolean;
18
- rationale: string;
19
- rationaleEnabled: boolean;
20
- spellCheckEnabled: boolean;
21
- studentInstructionsEnabled: boolean;
22
- teacherInstructions: string;
23
- teacherInstructionsEnabled: boolean;
24
- toolbarEditorPosition: string;
25
- responseAreaInputConfiguration: {};
26
- };
27
- configuration: {
28
- baseInputConfiguration: {
29
- h3: {
30
- disabled: boolean;
31
- };
32
- html: {
33
- disabled: boolean;
34
- };
35
- audio: {
36
- disabled: boolean;
37
- };
38
- video: {
39
- disabled: boolean;
40
- };
41
- image: {
42
- disabled: boolean;
43
- };
44
- textAlign: {
45
- disabled: boolean;
46
- };
47
- showParagraphs: {
48
- disabled: boolean;
49
- };
50
- separateParagraphs: {
51
- disabled: boolean;
52
- };
53
- };
54
- prompt: {
55
- settings: boolean;
56
- label: string;
57
- inputConfiguration: {
58
- audio: {
59
- disabled: boolean;
60
- };
61
- video: {
62
- disabled: boolean;
63
- };
64
- image: {
65
- disabled: boolean;
66
- };
67
- };
68
- required: boolean;
69
- };
70
- partialScoring: {
71
- settings: boolean;
72
- label: string;
73
- };
74
- rationale: {
75
- settings: boolean;
76
- label: string;
77
- inputConfiguration: {
78
- audio: {
79
- disabled: boolean;
80
- };
81
- video: {
82
- disabled: boolean;
83
- };
84
- image: {
85
- disabled: boolean;
86
- };
87
- };
88
- required: boolean;
89
- };
90
- settingsPanelDisabled: boolean;
91
- spellCheck: {
92
- label: string;
93
- settings: boolean;
94
- enabled: boolean;
95
- };
96
- editSource: {
97
- label: string;
98
- settings: boolean;
99
- enabled: boolean;
100
- };
101
- playerSpellCheck: {
102
- label: string;
103
- settings: boolean;
104
- enabled: boolean;
105
- };
106
- teacherInstructions: {
107
- settings: boolean;
108
- label: string;
109
- inputConfiguration: {
110
- audio: {
111
- disabled: boolean;
112
- };
113
- video: {
114
- disabled: boolean;
115
- };
116
- image: {
117
- disabled: boolean;
118
- };
119
- };
120
- required: boolean;
121
- };
122
- template: {
123
- inputConfiguration: {
124
- audio: {
125
- disabled: boolean;
126
- };
127
- video: {
128
- disabled: boolean;
129
- };
130
- image: {
131
- disabled: boolean;
132
- };
133
- h3: {
134
- disabled: boolean;
135
- };
136
- blockquote: {
137
- disabled: boolean;
138
- };
139
- };
140
- };
141
- maxLengthPerChoice: {
142
- settings: boolean;
143
- label: string;
144
- };
145
- maxResponseAreas: number;
146
- maxImageWidth: {
147
- teacherInstructions: number;
148
- prompt: number;
149
- rationale: number;
150
- };
151
- maxImageHeight: {
152
- teacherInstructions: number;
153
- prompt: number;
154
- rationale: number;
155
- };
156
- withRubric: {
157
- settings: boolean;
158
- label: string;
159
- };
160
- mathMlOptions: {
161
- mmlOutput: boolean;
162
- mmlEditing: boolean;
163
- };
164
- language: {
165
- settings: boolean;
166
- label: string;
167
- enabled: boolean;
168
- };
169
- languageChoices: {
170
- label: string;
171
- options: never[];
172
- };
173
- responseAreaInputConfiguration: {
174
- inputConfiguration: {
175
- characters: {
176
- disabled: boolean;
177
- };
178
- };
179
- };
180
- spanishButton: {
181
- settings: boolean;
182
- label: string;
183
- };
184
- };
185
- };
186
- export default _default;
@@ -1,128 +0,0 @@
1
- //#region src/author/defaults.ts
2
- var e = {
3
- model: {
4
- choices: {},
5
- displayType: "block",
6
- markup: "",
7
- maxLengthPerChoiceEnabled: !0,
8
- playerSpellCheckEnabled: !0,
9
- prompt: "",
10
- promptEnabled: !0,
11
- rationale: "",
12
- rationaleEnabled: !0,
13
- spellCheckEnabled: !0,
14
- studentInstructionsEnabled: !0,
15
- teacherInstructions: "",
16
- teacherInstructionsEnabled: !0,
17
- toolbarEditorPosition: "bottom",
18
- responseAreaInputConfiguration: {}
19
- },
20
- configuration: {
21
- baseInputConfiguration: {
22
- h3: { disabled: !0 },
23
- html: { disabled: !0 },
24
- audio: { disabled: !1 },
25
- video: { disabled: !1 },
26
- image: { disabled: !1 },
27
- textAlign: { disabled: !0 },
28
- showParagraphs: { disabled: !1 },
29
- separateParagraphs: { disabled: !0 }
30
- },
31
- prompt: {
32
- settings: !0,
33
- label: "Prompt",
34
- inputConfiguration: {
35
- audio: { disabled: !1 },
36
- video: { disabled: !1 },
37
- image: { disabled: !1 }
38
- },
39
- required: !1
40
- },
41
- partialScoring: {
42
- settings: !1,
43
- label: "Allow Partial Scoring"
44
- },
45
- rationale: {
46
- settings: !0,
47
- label: "Rationale",
48
- inputConfiguration: {
49
- audio: { disabled: !1 },
50
- video: { disabled: !1 },
51
- image: { disabled: !1 }
52
- },
53
- required: !1
54
- },
55
- settingsPanelDisabled: !1,
56
- spellCheck: {
57
- label: "Spellcheck",
58
- settings: !1,
59
- enabled: !0
60
- },
61
- editSource: {
62
- label: "Edit Source",
63
- settings: !1,
64
- enabled: !1
65
- },
66
- playerSpellCheck: {
67
- label: "Student Spellcheck",
68
- settings: !0,
69
- enabled: !0
70
- },
71
- teacherInstructions: {
72
- settings: !0,
73
- label: "Teacher Instructions",
74
- inputConfiguration: {
75
- audio: { disabled: !1 },
76
- video: { disabled: !1 },
77
- image: { disabled: !1 }
78
- },
79
- required: !1
80
- },
81
- template: { inputConfiguration: {
82
- audio: { disabled: !1 },
83
- video: { disabled: !1 },
84
- image: { disabled: !1 },
85
- h3: { disabled: !0 },
86
- blockquote: { disabled: !0 }
87
- } },
88
- maxLengthPerChoice: {
89
- settings: !0,
90
- label: "Maximum Length Per Choice"
91
- },
92
- maxResponseAreas: 10,
93
- maxImageWidth: {
94
- teacherInstructions: 300,
95
- prompt: 300,
96
- rationale: 300
97
- },
98
- maxImageHeight: {
99
- teacherInstructions: 300,
100
- prompt: 300,
101
- rationale: 300
102
- },
103
- withRubric: {
104
- settings: !1,
105
- label: "Add Rubric"
106
- },
107
- mathMlOptions: {
108
- mmlOutput: !1,
109
- mmlEditing: !1
110
- },
111
- language: {
112
- settings: !1,
113
- label: "Specify Language",
114
- enabled: !1
115
- },
116
- languageChoices: {
117
- label: "Language Choices",
118
- options: []
119
- },
120
- responseAreaInputConfiguration: { inputConfiguration: { characters: { disabled: !0 } } },
121
- spanishButton: {
122
- settings: !0,
123
- label: "Disable Spanish Characters"
124
- }
125
- }
126
- };
127
- //#endregion
128
- export { e as default };