@pie-element/extended-text-entry 15.1.1-next.0 → 15.1.1-next.29
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/CHANGELOG.json +1282 -0
- package/CHANGELOG.md +2260 -0
- package/LICENSE.md +5 -0
- package/README.md +1 -0
- package/configure/CHANGELOG.json +922 -0
- package/configure/CHANGELOG.md +1949 -0
- package/configure/lib/defaults.js +224 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +125 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/main.js +247 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/package.json +23 -0
- package/controller/CHANGELOG.json +362 -0
- package/controller/CHANGELOG.md +1179 -0
- package/controller/lib/defaults.js +91 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +101 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/package.json +16 -0
- package/docs/config-schema.json +1782 -0
- package/docs/config-schema.json.md +1333 -0
- package/docs/demo/config.js +7 -0
- package/docs/demo/generate.js +14 -0
- package/docs/demo/index.html +3 -0
- package/docs/demo/session.js +7 -0
- package/docs/pie-schema.json +954 -0
- package/docs/pie-schema.json.md +717 -0
- package/lib/annotation/annotation-editor.js +636 -0
- package/lib/annotation/annotation-editor.js.map +1 -0
- package/lib/annotation/annotation-menu.js +147 -0
- package/lib/annotation/annotation-menu.js.map +1 -0
- package/lib/annotation/annotation-utils.js +205 -0
- package/lib/annotation/annotation-utils.js.map +1 -0
- package/lib/annotation/freeform-editor.js +241 -0
- package/lib/annotation/freeform-editor.js.map +1 -0
- package/lib/index.js +108 -0
- package/lib/index.js.map +1 -0
- package/lib/main.js +205 -0
- package/lib/main.js.map +1 -0
- package/lib/print.js +86 -0
- package/lib/print.js.map +1 -0
- package/module/configure.js +1 -0
- package/module/controller.js +139 -0
- package/module/demo.js +38 -0
- package/module/element.js +1 -0
- package/module/index.html +21 -0
- package/module/manifest.json +22 -0
- package/module/print-demo.js +76 -0
- package/module/print.html +18 -0
- package/module/print.js +1 -0
- package/package.json +21 -56
- package/dist/author/defaults.d.ts +0 -166
- package/dist/author/defaults.js +0 -209
- package/dist/author/index.d.ts +0 -52
- package/dist/author/index.js +0 -74
- package/dist/author/main.d.ts +0 -26
- package/dist/author/main.js +0 -166
- package/dist/controller/defaults.d.ts +0 -33
- package/dist/controller/defaults.js +0 -104
- package/dist/controller/index.d.ts +0 -59
- package/dist/controller/index.js +0 -72
- package/dist/delivery/annotation/annotation-editor.d.ts +0 -47
- package/dist/delivery/annotation/annotation-editor.js +0 -296
- package/dist/delivery/annotation/annotation-menu.d.ts +0 -25
- package/dist/delivery/annotation/annotation-menu.js +0 -113
- package/dist/delivery/annotation/annotation-utils.d.ts +0 -20
- package/dist/delivery/annotation/annotation-utils.js +0 -65
- package/dist/delivery/annotation/freeform-editor.d.ts +0 -30
- package/dist/delivery/annotation/freeform-editor.js +0 -143
- package/dist/delivery/index.d.ts +0 -23
- package/dist/delivery/index.js +0 -68
- package/dist/delivery/main.d.ts +0 -27
- package/dist/delivery/main.js +0 -134
- package/dist/extended-text-entry.css +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -404
- package/dist/index.js +0 -2
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
- package/dist/print/index.d.ts +0 -15
- package/dist/print/index.js +0 -49
package/dist/author/main.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import t from "prop-types";
|
|
3
|
-
import n from "@mui/material/Typography";
|
|
4
|
-
import { styled as r } from "@mui/material/styles";
|
|
5
|
-
import i, { ALL_PLUGINS as a } from "@pie-lib/editable-html-tip-tap";
|
|
6
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
import { FeedbackSelector as c, InputContainer as l, layout as u, settings as d } from "@pie-lib/config-ui";
|
|
8
|
-
//#region src/author/main.tsx
|
|
9
|
-
var { Panel: f, toggle: p, numberFields: m, dropdown: h } = d, g = {
|
|
10
|
-
type: "default",
|
|
11
|
-
default: "Your answer has been submitted"
|
|
12
|
-
}, _ = r(n)(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), v = r(l)(({ theme: e }) => ({
|
|
13
|
-
paddingTop: e.spacing(1),
|
|
14
|
-
marginTop: e.spacing(2),
|
|
15
|
-
marginBottom: e.spacing(2),
|
|
16
|
-
width: "100%"
|
|
17
|
-
})), y = r("div")(({ theme: e }) => ({
|
|
18
|
-
fontSize: e.typography.fontSize - 2,
|
|
19
|
-
color: e.palette.error.main,
|
|
20
|
-
paddingTop: e.spacing(1)
|
|
21
|
-
})), b = class extends e.Component {
|
|
22
|
-
static propTypes = {
|
|
23
|
-
onModelChanged: t.func.isRequired,
|
|
24
|
-
onConfigurationChanged: t.func,
|
|
25
|
-
model: t.object.isRequired,
|
|
26
|
-
configuration: t.object.isRequired,
|
|
27
|
-
imageSupport: t.object.isRequired,
|
|
28
|
-
uploadSoundSupport: t.object.isRequired
|
|
29
|
-
};
|
|
30
|
-
constructor(e) {
|
|
31
|
-
super(e), this.state = { setDimensions: !0 };
|
|
32
|
-
}
|
|
33
|
-
onPromptChange = (e) => {
|
|
34
|
-
let { onModelChanged: t, model: n } = this.props;
|
|
35
|
-
t({
|
|
36
|
-
...n,
|
|
37
|
-
prompt: e
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
changeFeedback = (e) => {
|
|
41
|
-
let { model: t, onModelChanged: n } = this.props;
|
|
42
|
-
n({
|
|
43
|
-
...t,
|
|
44
|
-
feedback: e
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
changeTeacherInstructions = (e) => {
|
|
48
|
-
let { model: t, onModelChanged: n } = this.props;
|
|
49
|
-
n({
|
|
50
|
-
...t,
|
|
51
|
-
teacherInstructions: e
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
render() {
|
|
55
|
-
let { model: t, configuration: n, imageSupport: r, onConfigurationChanged: l, onModelChanged: d, uploadSoundSupport: b } = this.props, { annotations: x = {}, contentDimensions: S = {}, dimensions: C = {}, equationEditor: w = {}, feedback: T = {}, playerSpellCheck: E = {}, prompt: D = {}, settingsPanelDisabled: ee, spanishInput: O = {}, specialInput: k = {}, spellCheck: A = {}, studentInstructions: j = {}, teacherInstructions: M = {}, mathInput: N = {}, maxImageWidth: P = {}, maxImageHeight: F = {}, multiple: I = {}, withRubric: L = {}, mathMlOptions: R = {}, baseInputConfiguration: z = {} } = n || {}, { errors: B = {}, extraCSSRules: V, feedbackEnabled: H, promptEnabled: U, spellCheckEnabled: W, teacherInstructionsEnabled: G, toolbarEditorPosition: K } = t || {}, { prompt: q, teacherInstructions: J } = B, Y = P && P.prompt, X = F && F.prompt, Z = { position: K === "top" ? "top" : "bottom" }, Q = {
|
|
56
|
-
mathInput: N.settings && p(N.label),
|
|
57
|
-
equationEditor: w.enabled && t.mathInput && h(w.label, [
|
|
58
|
-
"non-negative-integers",
|
|
59
|
-
"integers",
|
|
60
|
-
"decimals",
|
|
61
|
-
"fractions",
|
|
62
|
-
"Grade 1 - 2",
|
|
63
|
-
"Grade 3 - 5",
|
|
64
|
-
"Grade 6 - 7",
|
|
65
|
-
"Grade 8 - HS",
|
|
66
|
-
"geometry",
|
|
67
|
-
"advanced-algebra",
|
|
68
|
-
"statistics",
|
|
69
|
-
"item-authoring"
|
|
70
|
-
]),
|
|
71
|
-
spanishInput: O.settings && p(O.label),
|
|
72
|
-
specialInput: k.settings && p(k.label),
|
|
73
|
-
dimensions: C.settings && m(C.label, {
|
|
74
|
-
width: {
|
|
75
|
-
label: "Width (px)",
|
|
76
|
-
suffix: "px",
|
|
77
|
-
min: 100,
|
|
78
|
-
max: 1200
|
|
79
|
-
},
|
|
80
|
-
height: {
|
|
81
|
-
label: "Height (px)",
|
|
82
|
-
suffix: "px",
|
|
83
|
-
min: 100,
|
|
84
|
-
max: 500
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
"multiple.enabled": I.settings && p(I.label, !0),
|
|
88
|
-
promptEnabled: D.settings && p(D.label),
|
|
89
|
-
feedbackEnabled: T.settings && p(T.label),
|
|
90
|
-
annotationsEnabled: x.settings && p(x.label),
|
|
91
|
-
spellCheckEnabled: A.settings && p(A.label),
|
|
92
|
-
playerSpellCheckDisabled: E.settings && p(E.label)
|
|
93
|
-
}, te = {
|
|
94
|
-
teacherInstructionsEnabled: M.settings && p(M.label),
|
|
95
|
-
studentInstructionsEnabled: j.settings && p(j.label),
|
|
96
|
-
rubricEnabled: L?.settings && p(L?.label)
|
|
97
|
-
}, $ = (e) => Object.assign({ ...z }, e || {});
|
|
98
|
-
return /* @__PURE__ */ s(u.ConfigLayout, {
|
|
99
|
-
extraCSSRules: V,
|
|
100
|
-
dimensions: S,
|
|
101
|
-
hideSettings: ee,
|
|
102
|
-
settings: /* @__PURE__ */ o(f, {
|
|
103
|
-
model: t,
|
|
104
|
-
configuration: n,
|
|
105
|
-
onChangeModel: (e) => d(e),
|
|
106
|
-
onChangeConfiguration: (e) => l(e),
|
|
107
|
-
groups: {
|
|
108
|
-
Settings: Q,
|
|
109
|
-
Properties: te
|
|
110
|
-
}
|
|
111
|
-
}),
|
|
112
|
-
children: [
|
|
113
|
-
G && /* @__PURE__ */ s(v, {
|
|
114
|
-
label: M.label,
|
|
115
|
-
children: [/* @__PURE__ */ o(i, {
|
|
116
|
-
className: "prompt",
|
|
117
|
-
markup: t.teacherInstructions || "",
|
|
118
|
-
onChange: this.changeTeacherInstructions,
|
|
119
|
-
imageSupport: r,
|
|
120
|
-
nonEmpty: !1,
|
|
121
|
-
error: J,
|
|
122
|
-
toolbarOpts: Z,
|
|
123
|
-
spellCheck: W,
|
|
124
|
-
maxImageWidth: P && P.teacherInstructions || Y,
|
|
125
|
-
maxImageHeight: F && F.teacherInstructions || X,
|
|
126
|
-
uploadSoundSupport: b,
|
|
127
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
128
|
-
mathMlOptions: R,
|
|
129
|
-
pluginProps: $(M?.inputConfiguration)
|
|
130
|
-
}), J && /* @__PURE__ */ o(y, { children: J })]
|
|
131
|
-
}),
|
|
132
|
-
U && /* @__PURE__ */ s(v, {
|
|
133
|
-
label: D.label,
|
|
134
|
-
children: [/* @__PURE__ */ o(i, {
|
|
135
|
-
activePlugins: a,
|
|
136
|
-
className: "prompt",
|
|
137
|
-
markup: t.prompt || "",
|
|
138
|
-
onChange: this.onPromptChange,
|
|
139
|
-
imageSupport: r,
|
|
140
|
-
nonEmpty: !1,
|
|
141
|
-
error: q,
|
|
142
|
-
toolbarOpts: Z,
|
|
143
|
-
spellCheck: W,
|
|
144
|
-
maxImageWidth: Y,
|
|
145
|
-
maxImageHeight: X,
|
|
146
|
-
uploadSoundSupport: b,
|
|
147
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
148
|
-
mathMlOptions: R,
|
|
149
|
-
pluginProps: $(D?.inputConfiguration)
|
|
150
|
-
}), q && /* @__PURE__ */ o(y, { children: q })]
|
|
151
|
-
}),
|
|
152
|
-
H && /* @__PURE__ */ s(e.Fragment, { children: [/* @__PURE__ */ o(_, {
|
|
153
|
-
variant: "h6",
|
|
154
|
-
children: "Feedback"
|
|
155
|
-
}), /* @__PURE__ */ o(c, {
|
|
156
|
-
label: "When submitted, show",
|
|
157
|
-
feedback: t.feedback || g,
|
|
158
|
-
onChange: this.changeFeedback,
|
|
159
|
-
toolbarOpts: Z
|
|
160
|
-
})] })
|
|
161
|
-
]
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
//#endregion
|
|
166
|
-
export { b as default };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/extended-text-entry/controller/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
|
-
annotationsEnabled: boolean;
|
|
11
|
-
dimensions: {
|
|
12
|
-
height: number;
|
|
13
|
-
width: number;
|
|
14
|
-
};
|
|
15
|
-
equationEditor: string;
|
|
16
|
-
feedbackEnabled: boolean;
|
|
17
|
-
mathInput: boolean;
|
|
18
|
-
playerSpellCheckDisabled: boolean;
|
|
19
|
-
predefinedAnnotations: {
|
|
20
|
-
label: string;
|
|
21
|
-
text: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}[];
|
|
24
|
-
prompt: string;
|
|
25
|
-
promptEnabled: boolean;
|
|
26
|
-
rationale: string;
|
|
27
|
-
rationaleEnabled: boolean;
|
|
28
|
-
studentInstructionsEnabled: boolean;
|
|
29
|
-
teacherInstructions: string;
|
|
30
|
-
teacherInstructionsEnabled: boolean;
|
|
31
|
-
toolbarEditorPosition: string;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
//#region src/controller/defaults.ts
|
|
2
|
-
var e = {
|
|
3
|
-
annotationsEnabled: !1,
|
|
4
|
-
dimensions: {
|
|
5
|
-
height: 100,
|
|
6
|
-
width: 500
|
|
7
|
-
},
|
|
8
|
-
equationEditor: "Grade 8 - HS",
|
|
9
|
-
feedbackEnabled: !1,
|
|
10
|
-
mathInput: !1,
|
|
11
|
-
playerSpellCheckDisabled: !0,
|
|
12
|
-
predefinedAnnotations: [
|
|
13
|
-
{
|
|
14
|
-
label: "good",
|
|
15
|
-
text: "good",
|
|
16
|
-
type: "positive"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: "★",
|
|
20
|
-
text: "★",
|
|
21
|
-
type: "positive"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: ":-)",
|
|
25
|
-
text: ":-)",
|
|
26
|
-
type: "positive"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: "creative",
|
|
30
|
-
text: "creative",
|
|
31
|
-
type: "positive"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
label: "run-on",
|
|
35
|
-
text: "run-on",
|
|
36
|
-
type: "negative"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: "frag",
|
|
40
|
-
text: "fragment",
|
|
41
|
-
type: "negative"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "tran",
|
|
45
|
-
text: "transition",
|
|
46
|
-
type: "negative"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "supp",
|
|
50
|
-
text: "support needed",
|
|
51
|
-
type: "negative"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "punc",
|
|
55
|
-
text: "punctuation",
|
|
56
|
-
type: "negative"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: "agr",
|
|
60
|
-
text: "agreement wrong",
|
|
61
|
-
type: "negative"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
label: "unclear",
|
|
65
|
-
text: "unclear",
|
|
66
|
-
type: "negative"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
label: "cut",
|
|
70
|
-
text: "cut",
|
|
71
|
-
type: "negative"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: "sp",
|
|
75
|
-
text: "spelling",
|
|
76
|
-
type: "negative"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: "cap",
|
|
80
|
-
text: "capitalization",
|
|
81
|
-
type: "negative"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: "inf",
|
|
85
|
-
text: "informal",
|
|
86
|
-
type: "negative"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: "awk",
|
|
90
|
-
text: "awkward",
|
|
91
|
-
type: "negative"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
prompt: "",
|
|
95
|
-
promptEnabled: !0,
|
|
96
|
-
rationale: "",
|
|
97
|
-
rationaleEnabled: !0,
|
|
98
|
-
studentInstructionsEnabled: !0,
|
|
99
|
-
teacherInstructions: "",
|
|
100
|
-
teacherInstructionsEnabled: !0,
|
|
101
|
-
toolbarEditorPosition: "bottom"
|
|
102
|
-
};
|
|
103
|
-
//#endregion
|
|
104
|
-
export { e as default };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/extended-text-entry/controller/src/index.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
|
-
export declare function createDefaultModel(model?: {}): Promise<{
|
|
10
|
-
annotationsEnabled: boolean;
|
|
11
|
-
dimensions: {
|
|
12
|
-
height: number;
|
|
13
|
-
width: number;
|
|
14
|
-
};
|
|
15
|
-
equationEditor: string;
|
|
16
|
-
feedbackEnabled: boolean;
|
|
17
|
-
mathInput: boolean;
|
|
18
|
-
playerSpellCheckDisabled: boolean;
|
|
19
|
-
predefinedAnnotations: {
|
|
20
|
-
label: string;
|
|
21
|
-
text: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}[];
|
|
24
|
-
prompt: string;
|
|
25
|
-
promptEnabled: boolean;
|
|
26
|
-
rationale: string;
|
|
27
|
-
rationaleEnabled: boolean;
|
|
28
|
-
studentInstructionsEnabled: boolean;
|
|
29
|
-
teacherInstructions: string;
|
|
30
|
-
teacherInstructionsEnabled: boolean;
|
|
31
|
-
toolbarEditorPosition: string;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const normalize: (question: any) => any;
|
|
34
|
-
export declare function model(question: any, session: any, env: any): Promise<{
|
|
35
|
-
prompt: any;
|
|
36
|
-
dimensions: any;
|
|
37
|
-
customKeys: any;
|
|
38
|
-
id: any;
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
feedback: string | undefined;
|
|
41
|
-
teacherInstructions: any;
|
|
42
|
-
language: any;
|
|
43
|
-
mathInput: any;
|
|
44
|
-
spanishInput: any;
|
|
45
|
-
specialInput: any;
|
|
46
|
-
equationEditor: any;
|
|
47
|
-
spellCheckEnabled: boolean;
|
|
48
|
-
playersToolbarPosition: any;
|
|
49
|
-
annotatorMode: any;
|
|
50
|
-
disabledAnnotator: boolean;
|
|
51
|
-
predefinedAnnotations: any;
|
|
52
|
-
extraCSSRules: any;
|
|
53
|
-
}>;
|
|
54
|
-
export declare function outcome(): Promise<{
|
|
55
|
-
score: number;
|
|
56
|
-
completed: string;
|
|
57
|
-
note: string;
|
|
58
|
-
}>;
|
|
59
|
-
export declare const validate: (model?: {}, config?: {}) => {};
|
package/dist/controller/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import e from "./defaults.js";
|
|
2
|
-
import t from "debug";
|
|
3
|
-
import { getFeedback as n } from "@pie-element/shared-feedback";
|
|
4
|
-
//#region src/controller/index.ts
|
|
5
|
-
var r = t("@pie-element:extended-text-entry:controller");
|
|
6
|
-
async function i(t = {}) {
|
|
7
|
-
return r("[createDefaultModel]", t), {
|
|
8
|
-
...e,
|
|
9
|
-
...t
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
var a = (t) => ({
|
|
13
|
-
...e,
|
|
14
|
-
...t
|
|
15
|
-
});
|
|
16
|
-
async function o(e, t, i) {
|
|
17
|
-
r("[question]", e);
|
|
18
|
-
let o = a(e), s = i.mode === "evaluate" && o.feedbackEnabled ? n(o.feedback, "Your answer has been submitted") : Promise.resolve(void 0), c = null;
|
|
19
|
-
c = i.role === "instructor" && (i.mode === "view" || i.mode === "evaluate") && o.teacherInstructionsEnabled ? o.teacherInstructions : null;
|
|
20
|
-
let l = o.equationEditor || "miscellaneous";
|
|
21
|
-
switch (o.equationEditor) {
|
|
22
|
-
case "Grade 1 - 2":
|
|
23
|
-
l = 1;
|
|
24
|
-
break;
|
|
25
|
-
case "Grade 3 - 5":
|
|
26
|
-
l = 3;
|
|
27
|
-
break;
|
|
28
|
-
case "Grade 6 - 7":
|
|
29
|
-
l = 6;
|
|
30
|
-
break;
|
|
31
|
-
case "Grade 8 - HS":
|
|
32
|
-
l = 8;
|
|
33
|
-
break;
|
|
34
|
-
default: break;
|
|
35
|
-
}
|
|
36
|
-
let u = o.annotationsEnabled && (i.role === "instructor" || i.mode === "evaluate");
|
|
37
|
-
return s.then((e) => ({
|
|
38
|
-
prompt: o.promptEnabled ? o.prompt : null,
|
|
39
|
-
dimensions: o.dimensions,
|
|
40
|
-
customKeys: o.customKeys || [],
|
|
41
|
-
id: o.id,
|
|
42
|
-
disabled: i.mode !== "gather",
|
|
43
|
-
feedback: e,
|
|
44
|
-
teacherInstructions: c,
|
|
45
|
-
language: o.language,
|
|
46
|
-
mathInput: o.mathInput,
|
|
47
|
-
spanishInput: o.spanishInput,
|
|
48
|
-
specialInput: o.specialInput,
|
|
49
|
-
equationEditor: l,
|
|
50
|
-
spellCheckEnabled: !o.playerSpellCheckDisabled,
|
|
51
|
-
playersToolbarPosition: o.playersToolbarPosition || "bottom",
|
|
52
|
-
annotatorMode: u,
|
|
53
|
-
disabledAnnotator: o.annotationsEnabled ? i.role !== "instructor" : !0,
|
|
54
|
-
predefinedAnnotations: o.annotationsEnabled ? o.predefinedAnnotations : [],
|
|
55
|
-
extraCSSRules: o.extraCSSRules
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
async function s() {
|
|
59
|
-
return {
|
|
60
|
-
score: 0,
|
|
61
|
-
completed: "n/a",
|
|
62
|
-
note: "Requires manual scoring"
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
var c = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), l = (e = {}, t = {}) => {
|
|
66
|
-
let n = {};
|
|
67
|
-
return ["teacherInstructions", "prompt"].forEach((r) => {
|
|
68
|
-
t[r]?.required && !c(e[r]) && (n[r] = "This field is required.");
|
|
69
|
-
}), n;
|
|
70
|
-
};
|
|
71
|
-
//#endregion
|
|
72
|
-
export { i as createDefaultModel, o as model, a as normalize, s as outcome, l as validate };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/extended-text-entry/src/annotation/annotation-editor.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
|
-
declare class AnnotationEditor extends React.Component {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
text: PropTypes.Requireable<string>;
|
|
14
|
-
comment: PropTypes.Requireable<string>;
|
|
15
|
-
annotations: PropTypes.Requireable<any[]>;
|
|
16
|
-
predefinedAnnotations: PropTypes.Requireable<any[]>;
|
|
17
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
18
|
-
onCommentChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
-
width: PropTypes.Requireable<number>;
|
|
20
|
-
height: PropTypes.Requireable<number>;
|
|
21
|
-
maxHeight: PropTypes.Requireable<string>;
|
|
22
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
23
|
-
disabledMath: PropTypes.Requireable<boolean>;
|
|
24
|
-
customKeys: PropTypes.Requireable<any[]>;
|
|
25
|
-
keypadMode: PropTypes.Requireable<string>;
|
|
26
|
-
};
|
|
27
|
-
constructor(props: any);
|
|
28
|
-
componentDidMount(): void;
|
|
29
|
-
adjustAnnotationsPosition: any;
|
|
30
|
-
handleClick: any;
|
|
31
|
-
handleHover: any;
|
|
32
|
-
handleCancelHover: any;
|
|
33
|
-
handleClose: any;
|
|
34
|
-
handleSelection: any;
|
|
35
|
-
deleteAnnotation: any;
|
|
36
|
-
createDOMAnnotation: any;
|
|
37
|
-
createNewAnnotation: any;
|
|
38
|
-
handleMenuClick: any;
|
|
39
|
-
editAnnotation: any;
|
|
40
|
-
addAnnotation: any;
|
|
41
|
-
updateLabel: any;
|
|
42
|
-
changeAnnotationType: any;
|
|
43
|
-
updateAnnotation: any;
|
|
44
|
-
componentWillUnmount(): void;
|
|
45
|
-
render(): React.JSX.Element;
|
|
46
|
-
}
|
|
47
|
-
export default AnnotationEditor;
|