@pie-element/extended-text-entry 15.1.1-next.11 → 15.1.2-next.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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/author/defaults.d.ts +166 -0
- package/dist/author/defaults.js +209 -0
- package/dist/author/index.d.ts +52 -0
- package/dist/author/index.js +74 -0
- package/dist/author/main.d.ts +26 -0
- package/dist/author/main.js +166 -0
- package/dist/browser/author/index.js +495 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/browser-kkT1XVKw.js +210 -0
- package/dist/browser/browser-kkT1XVKw.js.map +1 -0
- package/dist/browser/controller/index.js +184 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +98 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/dist-D8VooYkz.js +49034 -0
- package/dist/browser/dist-D8VooYkz.js.map +1 -0
- package/dist/browser/extended-text-entry.css +2 -0
- package/dist/browser/main-C2oHx_V9.js +714 -0
- package/dist/browser/main-C2oHx_V9.js.map +1 -0
- package/dist/browser/print/index.js +53 -0
- package/dist/browser/print/index.js.map +1 -0
- package/dist/controller/defaults.d.ts +33 -0
- package/dist/controller/defaults.js +104 -0
- package/dist/controller/index.d.ts +59 -0
- package/dist/controller/index.js +72 -0
- package/dist/delivery/annotation/annotation-editor.d.ts +47 -0
- package/dist/delivery/annotation/annotation-editor.js +296 -0
- package/dist/delivery/annotation/annotation-menu.d.ts +25 -0
- package/dist/delivery/annotation/annotation-menu.js +113 -0
- package/dist/delivery/annotation/annotation-utils.d.ts +20 -0
- package/dist/delivery/annotation/annotation-utils.js +65 -0
- package/dist/delivery/annotation/freeform-editor.d.ts +30 -0
- package/dist/delivery/annotation/freeform-editor.js +143 -0
- package/dist/delivery/index.d.ts +23 -0
- package/dist/delivery/index.js +68 -0
- package/dist/delivery/main.d.ts +27 -0
- package/dist/delivery/main.js +134 -0
- package/dist/extended-text-entry.css +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +403 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/print/index.d.ts +15 -0
- package/dist/print/index.js +49 -0
- package/package.json +83 -21
- package/CHANGELOG.json +0 -1282
- package/CHANGELOG.md +0 -2260
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -922
- package/configure/CHANGELOG.md +0 -1949
- package/configure/lib/defaults.js +0 -224
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -125
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -247
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -23
- package/controller/CHANGELOG.json +0 -362
- package/controller/CHANGELOG.md +0 -1179
- package/controller/lib/defaults.js +0 -91
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -101
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -16
- package/docs/config-schema.json +0 -1782
- package/docs/config-schema.json.md +0 -1333
- package/docs/demo/config.js +0 -7
- package/docs/demo/generate.js +0 -14
- package/docs/demo/index.html +0 -3
- package/docs/demo/session.js +0 -7
- package/docs/pie-schema.json +0 -954
- package/docs/pie-schema.json.md +0 -717
- package/lib/annotation/annotation-editor.js +0 -636
- package/lib/annotation/annotation-editor.js.map +0 -1
- package/lib/annotation/annotation-menu.js +0 -147
- package/lib/annotation/annotation-menu.js.map +0 -1
- package/lib/annotation/annotation-utils.js +0 -205
- package/lib/annotation/annotation-utils.js.map +0 -1
- package/lib/annotation/freeform-editor.js +0 -241
- package/lib/annotation/freeform-editor.js.map +0 -1
- package/lib/index.js +0 -108
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -205
- package/lib/main.js.map +0 -1
- package/lib/print.js +0 -86
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -139
- package/module/demo.js +0 -38
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -22
- package/module/print-demo.js +0 -76
- package/module/print.html +0 -18
- package/module/print.js +0 -1
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _default = exports.default = {
|
|
8
|
-
model: {
|
|
9
|
-
annotationsEnabled: false,
|
|
10
|
-
dimensions: {
|
|
11
|
-
height: 100,
|
|
12
|
-
width: 500
|
|
13
|
-
},
|
|
14
|
-
equationEditor: 'Grade 8 - HS',
|
|
15
|
-
feedbackEnabled: false,
|
|
16
|
-
mathInput: false,
|
|
17
|
-
playerSpellCheckDisabled: true,
|
|
18
|
-
predefinedAnnotations: [{
|
|
19
|
-
label: 'good',
|
|
20
|
-
text: 'good',
|
|
21
|
-
type: 'positive'
|
|
22
|
-
}, {
|
|
23
|
-
label: '★',
|
|
24
|
-
text: '★',
|
|
25
|
-
type: 'positive'
|
|
26
|
-
}, {
|
|
27
|
-
label: ':-)',
|
|
28
|
-
text: ':-)',
|
|
29
|
-
type: 'positive'
|
|
30
|
-
}, {
|
|
31
|
-
label: 'creative',
|
|
32
|
-
text: 'creative',
|
|
33
|
-
type: 'positive'
|
|
34
|
-
}, {
|
|
35
|
-
label: 'run-on',
|
|
36
|
-
text: 'run-on',
|
|
37
|
-
type: 'negative'
|
|
38
|
-
}, {
|
|
39
|
-
label: 'frag',
|
|
40
|
-
text: 'fragment',
|
|
41
|
-
type: 'negative'
|
|
42
|
-
}, {
|
|
43
|
-
label: 'tran',
|
|
44
|
-
text: 'transition',
|
|
45
|
-
type: 'negative'
|
|
46
|
-
}, {
|
|
47
|
-
label: 'supp',
|
|
48
|
-
text: 'support needed',
|
|
49
|
-
type: 'negative'
|
|
50
|
-
}, {
|
|
51
|
-
label: 'punc',
|
|
52
|
-
text: 'punctuation',
|
|
53
|
-
type: 'negative'
|
|
54
|
-
}, {
|
|
55
|
-
label: 'agr',
|
|
56
|
-
text: 'agreement wrong',
|
|
57
|
-
type: 'negative'
|
|
58
|
-
}, {
|
|
59
|
-
label: 'unclear',
|
|
60
|
-
text: 'unclear',
|
|
61
|
-
type: 'negative'
|
|
62
|
-
}, {
|
|
63
|
-
label: 'cut',
|
|
64
|
-
text: 'cut',
|
|
65
|
-
type: 'negative'
|
|
66
|
-
}, {
|
|
67
|
-
label: 'sp',
|
|
68
|
-
text: 'spelling',
|
|
69
|
-
type: 'negative'
|
|
70
|
-
}, {
|
|
71
|
-
label: 'cap',
|
|
72
|
-
text: 'capitalization',
|
|
73
|
-
type: 'negative'
|
|
74
|
-
}, {
|
|
75
|
-
label: 'inf',
|
|
76
|
-
text: 'informal',
|
|
77
|
-
type: 'negative'
|
|
78
|
-
}, {
|
|
79
|
-
label: 'awk',
|
|
80
|
-
text: 'awkward',
|
|
81
|
-
type: 'negative'
|
|
82
|
-
}],
|
|
83
|
-
prompt: '',
|
|
84
|
-
promptEnabled: true,
|
|
85
|
-
rationale: '',
|
|
86
|
-
rationaleEnabled: true,
|
|
87
|
-
spanishInput: false,
|
|
88
|
-
specialInput: false,
|
|
89
|
-
spellCheckEnabled: true,
|
|
90
|
-
studentInstructionsEnabled: true,
|
|
91
|
-
teacherInstructions: '',
|
|
92
|
-
teacherInstructionsEnabled: true,
|
|
93
|
-
toolbarEditorPosition: 'bottom'
|
|
94
|
-
},
|
|
95
|
-
configuration: {
|
|
96
|
-
annotations: {
|
|
97
|
-
settings: false,
|
|
98
|
-
label: 'Annotations'
|
|
99
|
-
},
|
|
100
|
-
baseInputConfiguration: {
|
|
101
|
-
audio: {
|
|
102
|
-
disabled: false
|
|
103
|
-
},
|
|
104
|
-
video: {
|
|
105
|
-
disabled: false
|
|
106
|
-
},
|
|
107
|
-
image: {
|
|
108
|
-
disabled: false
|
|
109
|
-
},
|
|
110
|
-
h3: {
|
|
111
|
-
disabled: true
|
|
112
|
-
},
|
|
113
|
-
blockquote: {
|
|
114
|
-
disabled: true
|
|
115
|
-
},
|
|
116
|
-
textAlign: {
|
|
117
|
-
disabled: true
|
|
118
|
-
},
|
|
119
|
-
showParagraphs: {
|
|
120
|
-
disabled: false
|
|
121
|
-
},
|
|
122
|
-
separateParagraphs: {
|
|
123
|
-
disabled: true
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
dimensions: {
|
|
127
|
-
settings: true,
|
|
128
|
-
label: 'Text-Entry Display Size'
|
|
129
|
-
},
|
|
130
|
-
spellCheck: {
|
|
131
|
-
label: 'Spellcheck',
|
|
132
|
-
settings: false,
|
|
133
|
-
enabled: true
|
|
134
|
-
},
|
|
135
|
-
playerSpellCheck: {
|
|
136
|
-
label: 'Disable Student Spellcheck',
|
|
137
|
-
settings: true,
|
|
138
|
-
enabled: true
|
|
139
|
-
},
|
|
140
|
-
equationEditor: {
|
|
141
|
-
settings: false,
|
|
142
|
-
label: 'Equation Editor',
|
|
143
|
-
enabled: true
|
|
144
|
-
},
|
|
145
|
-
feedback: {
|
|
146
|
-
settings: true,
|
|
147
|
-
label: 'Feedback'
|
|
148
|
-
},
|
|
149
|
-
mathInput: {
|
|
150
|
-
settings: true,
|
|
151
|
-
label: 'Student response can include math notation',
|
|
152
|
-
enabled: false
|
|
153
|
-
},
|
|
154
|
-
settingsPanelDisabled: false,
|
|
155
|
-
spanishInput: {
|
|
156
|
-
settings: true,
|
|
157
|
-
label: 'Students can insert Spanish',
|
|
158
|
-
enabled: false
|
|
159
|
-
},
|
|
160
|
-
specialInput: {
|
|
161
|
-
settings: true,
|
|
162
|
-
label: 'Students can insert Special Characters',
|
|
163
|
-
enabled: false
|
|
164
|
-
},
|
|
165
|
-
multiple: {
|
|
166
|
-
settings: false,
|
|
167
|
-
label: 'Multiple Parts',
|
|
168
|
-
enabled: false
|
|
169
|
-
},
|
|
170
|
-
studentInstructions: {
|
|
171
|
-
settings: false,
|
|
172
|
-
label: 'Student Instructions'
|
|
173
|
-
},
|
|
174
|
-
prompt: {
|
|
175
|
-
settings: true,
|
|
176
|
-
label: 'Prompt',
|
|
177
|
-
inputConfiguration: {
|
|
178
|
-
audio: {
|
|
179
|
-
disabled: false
|
|
180
|
-
},
|
|
181
|
-
video: {
|
|
182
|
-
disabled: false
|
|
183
|
-
},
|
|
184
|
-
image: {
|
|
185
|
-
disabled: false
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
required: false
|
|
189
|
-
},
|
|
190
|
-
teacherInstructions: {
|
|
191
|
-
settings: true,
|
|
192
|
-
label: 'Teacher Instructions',
|
|
193
|
-
inputConfiguration: {
|
|
194
|
-
audio: {
|
|
195
|
-
disabled: false
|
|
196
|
-
},
|
|
197
|
-
video: {
|
|
198
|
-
disabled: false
|
|
199
|
-
},
|
|
200
|
-
image: {
|
|
201
|
-
disabled: false
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
required: false
|
|
205
|
-
},
|
|
206
|
-
maxImageWidth: {
|
|
207
|
-
teacherInstructions: 300,
|
|
208
|
-
prompt: 300
|
|
209
|
-
},
|
|
210
|
-
maxImageHeight: {
|
|
211
|
-
teacherInstructions: 300,
|
|
212
|
-
prompt: 300
|
|
213
|
-
},
|
|
214
|
-
withRubric: {
|
|
215
|
-
settings: false,
|
|
216
|
-
label: 'Add Rubric'
|
|
217
|
-
},
|
|
218
|
-
mathMlOptions: {
|
|
219
|
-
mmlOutput: false,
|
|
220
|
-
mmlEditing: false
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","names":["model","annotationsEnabled","dimensions","height","width","equationEditor","feedbackEnabled","mathInput","playerSpellCheckDisabled","predefinedAnnotations","label","text","type","prompt","promptEnabled","rationale","rationaleEnabled","spanishInput","specialInput","spellCheckEnabled","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition","configuration","annotations","settings","baseInputConfiguration","audio","disabled","video","image","h3","blockquote","textAlign","showParagraphs","separateParagraphs","spellCheck","enabled","playerSpellCheck","feedback","settingsPanelDisabled","multiple","studentInstructions","inputConfiguration","required","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n model: {\n annotationsEnabled: false,\n dimensions: { height: 100, width: 500 },\n equationEditor: 'Grade 8 - HS',\n feedbackEnabled: false,\n mathInput: false,\n playerSpellCheckDisabled: true,\n predefinedAnnotations: [\n { label: 'good', text: 'good', type: 'positive' },\n { label: '★', text: '★', type: 'positive' },\n { label: ':-)', text: ':-)', type: 'positive' },\n { label: 'creative', text: 'creative', type: 'positive' },\n { label: 'run-on', text: 'run-on', type: 'negative' },\n { label: 'frag', text: 'fragment', type: 'negative' },\n { label: 'tran', text: 'transition', type: 'negative' },\n { label: 'supp', text: 'support needed', type: 'negative' },\n { label: 'punc', text: 'punctuation', type: 'negative' },\n { label: 'agr', text: 'agreement wrong', type: 'negative' },\n { label: 'unclear', text: 'unclear', type: 'negative' },\n { label: 'cut', text: 'cut', type: 'negative' },\n { label: 'sp', text: 'spelling', type: 'negative' },\n { label: 'cap', text: 'capitalization', type: 'negative' },\n { label: 'inf', text: 'informal', type: 'negative' },\n { label: 'awk', text: 'awkward', type: 'negative' },\n ],\n prompt: '',\n promptEnabled: true,\n rationale: '',\n rationaleEnabled: true,\n spanishInput: false,\n specialInput: false,\n spellCheckEnabled: true,\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n },\n configuration: {\n annotations: {\n settings: false,\n label: 'Annotations',\n },\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n h3: { disabled: true },\n blockquote: { disabled: true },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n separateParagraphs: { disabled: true },\n },\n dimensions: {\n settings: true,\n label: 'Text-Entry Display Size',\n },\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n playerSpellCheck: {\n label: 'Disable Student Spellcheck',\n settings: true,\n enabled: true,\n },\n equationEditor: {\n settings: false,\n label: 'Equation Editor',\n enabled: true,\n },\n feedback: {\n settings: true,\n label: 'Feedback',\n },\n mathInput: {\n settings: true,\n label: 'Student response can include math notation',\n enabled: false,\n },\n settingsPanelDisabled: false,\n spanishInput: {\n settings: true,\n label: 'Students can insert Spanish',\n enabled: false,\n },\n specialInput: {\n settings: true,\n label: 'Students can insert Special Characters',\n enabled: false,\n },\n multiple: {\n settings: false,\n label: 'Multiple Parts',\n enabled: false,\n },\n studentInstructions: {\n settings: false,\n label: 'Student Instructions',\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n },\n};\n"],"mappings":";;;;;;iCAAe;EACbA,KAAK,EAAE;IACLC,kBAAkB,EAAE,KAAK;IACzBC,UAAU,EAAE;MAAEC,MAAM,EAAE,GAAG;MAAEC,KAAK,EAAE;IAAI,CAAC;IACvCC,cAAc,EAAE,cAAc;IAC9BC,eAAe,EAAE,KAAK;IACtBC,SAAS,EAAE,KAAK;IAChBC,wBAAwB,EAAE,IAAI;IAC9BC,qBAAqB,EAAE,CACrB;MAAEC,KAAK,EAAE,MAAM;MAAEC,IAAI,EAAE,MAAM;MAAEC,IAAI,EAAE;IAAW,CAAC,EACjD;MAAEF,KAAK,EAAE,GAAG;MAAEC,IAAI,EAAE,GAAG;MAAEC,IAAI,EAAE;IAAW,CAAC,EAC3C;MAAEF,KAAK,EAAE,KAAK;MAAEC,IAAI,EAAE,KAAK;MAAEC,IAAI,EAAE;IAAW,CAAC,EAC/C;MAAEF,KAAK,EAAE,UAAU;MAAEC,IAAI,EAAE,UAAU;MAAEC,IAAI,EAAE;IAAW,CAAC,EACzD;MAAEF,KAAK,EAAE,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Aa,EAAE;MACbC,SAAS,EAAE,KAAK;MAChBC,UAAU,EAAE;IACd;EACF;AACF,CAAC","ignoreList":[]}
|
package/configure/lib/index.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _client = require("react-dom/client");
|
|
12
|
-
var _main = _interopRequireDefault(require("./main"));
|
|
13
|
-
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
14
|
-
class ExtendedTextEntry extends HTMLElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
this._root = null;
|
|
18
|
-
this._configuration = _defaults.default.configuration;
|
|
19
|
-
|
|
20
|
-
// if configuration.withRubric.forceEnabled is true, then we
|
|
21
|
-
// update the configuration (we do not want to display the toggle in the Settings Panel)
|
|
22
|
-
if (this._configuration.withRubric?.forceEnabled) {
|
|
23
|
-
this._configuration.withRubric.settings = false;
|
|
24
|
-
}
|
|
25
|
-
this._model = ExtendedTextEntry.createDefaultModel({}, this._configuration);
|
|
26
|
-
}
|
|
27
|
-
set model(m) {
|
|
28
|
-
this._model = ExtendedTextEntry.createDefaultModel(m, this._configuration);
|
|
29
|
-
this.render();
|
|
30
|
-
}
|
|
31
|
-
set configuration(c) {
|
|
32
|
-
this._configuration = {
|
|
33
|
-
..._defaults.default.configuration,
|
|
34
|
-
...c
|
|
35
|
-
};
|
|
36
|
-
const {
|
|
37
|
-
withRubric = {}
|
|
38
|
-
} = c || {};
|
|
39
|
-
|
|
40
|
-
// if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)
|
|
41
|
-
// without triggering the Model Updated event (for more details, check documentation)
|
|
42
|
-
// and also update the configuration (we do not want to display the toggle in the Settings Panel)
|
|
43
|
-
if (withRubric?.forceEnabled) {
|
|
44
|
-
this._configuration.withRubric.settings = false;
|
|
45
|
-
if (!this._model.rubricEnabled) {
|
|
46
|
-
this._model.rubricEnabled = true;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
this.render();
|
|
50
|
-
}
|
|
51
|
-
onModelChanged(m) {
|
|
52
|
-
this._model = m;
|
|
53
|
-
this.render();
|
|
54
|
-
this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(this._model, false));
|
|
55
|
-
}
|
|
56
|
-
onConfigurationChanged(c) {
|
|
57
|
-
this._configuration = {
|
|
58
|
-
..._defaults.default.configuration,
|
|
59
|
-
...c
|
|
60
|
-
};
|
|
61
|
-
if (this._model) {
|
|
62
|
-
this.onModelChanged(this._model);
|
|
63
|
-
}
|
|
64
|
-
this.render();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @param {done, progress, file} handler
|
|
70
|
-
*/
|
|
71
|
-
insertImage(handler) {
|
|
72
|
-
this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
|
|
73
|
-
}
|
|
74
|
-
onDeleteImage(src, done) {
|
|
75
|
-
this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
|
|
76
|
-
}
|
|
77
|
-
insertSound(handler) {
|
|
78
|
-
this.dispatchEvent(new _pieConfigureEvents.InsertSoundEvent(handler));
|
|
79
|
-
}
|
|
80
|
-
onDeleteSound(src, done) {
|
|
81
|
-
this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
|
|
82
|
-
}
|
|
83
|
-
render() {
|
|
84
|
-
if (this._model) {
|
|
85
|
-
const element = /*#__PURE__*/_react.default.createElement(_main.default, {
|
|
86
|
-
model: this._model,
|
|
87
|
-
configuration: this._configuration,
|
|
88
|
-
onModelChanged: this.onModelChanged.bind(this),
|
|
89
|
-
onConfigurationChanged: this.onConfigurationChanged.bind(this),
|
|
90
|
-
imageSupport: {
|
|
91
|
-
add: this.insertImage.bind(this),
|
|
92
|
-
delete: this.onDeleteImage.bind(this)
|
|
93
|
-
},
|
|
94
|
-
uploadSoundSupport: {
|
|
95
|
-
add: this.insertSound.bind(this),
|
|
96
|
-
delete: this.onDeleteSound.bind(this)
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
if (!this._root) {
|
|
100
|
-
this._root = (0, _client.createRoot)(this);
|
|
101
|
-
}
|
|
102
|
-
this._root.render(element);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
disconnectedCallback() {
|
|
106
|
-
if (this._root) {
|
|
107
|
-
this._root.unmount();
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.default = ExtendedTextEntry;
|
|
112
|
-
(0, _defineProperty2.default)(ExtendedTextEntry, "createDefaultModel", (model = {}, config) => {
|
|
113
|
-
const defaultModel = {
|
|
114
|
-
..._defaults.default.model,
|
|
115
|
-
...model
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)
|
|
119
|
-
// without triggering the Model Updated event (for more details, check documentation)
|
|
120
|
-
if (config?.withRubric?.forceEnabled && !defaultModel.rubricEnabled) {
|
|
121
|
-
defaultModel.rubricEnabled = true;
|
|
122
|
-
}
|
|
123
|
-
return defaultModel;
|
|
124
|
-
});
|
|
125
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_pieConfigureEvents","require","_react","_interopRequireDefault","_client","_main","_defaults","ExtendedTextEntry","HTMLElement","constructor","_root","_configuration","defaults","configuration","withRubric","forceEnabled","settings","_model","createDefaultModel","model","m","render","c","rubricEnabled","onModelChanged","dispatchEvent","ModelUpdatedEvent","onConfigurationChanged","insertImage","handler","InsertImageEvent","onDeleteImage","src","done","DeleteImageEvent","insertSound","InsertSoundEvent","onDeleteSound","DeleteSoundEvent","element","React","createElement","Main","bind","imageSupport","add","delete","uploadSoundSupport","createRoot","disconnectedCallback","unmount","exports","default","_defineProperty2","config","defaultModel"],"sources":["../src/index.js"],"sourcesContent":["import {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-framework/pie-configure-events';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Main from './main';\n\nimport defaults from './defaults';\n\nexport default class ExtendedTextEntry extends HTMLElement {\n static createDefaultModel = (model = {}, config) => {\n const defaultModel = { ...defaults.model, ...model };\n\n // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)\n // without triggering the Model Updated event (for more details, check documentation)\n if (config?.withRubric?.forceEnabled && !defaultModel.rubricEnabled) {\n defaultModel.rubricEnabled = true;\n }\n\n return defaultModel;\n };\n\n constructor() {\n super();\n this._root = null;\n this._configuration = defaults.configuration;\n\n // if configuration.withRubric.forceEnabled is true, then we\n // update the configuration (we do not want to display the toggle in the Settings Panel)\n if (this._configuration.withRubric?.forceEnabled) {\n this._configuration.withRubric.settings = false;\n }\n\n this._model = ExtendedTextEntry.createDefaultModel({}, this._configuration);\n }\n\n set model(m) {\n this._model = ExtendedTextEntry.createDefaultModel(m, this._configuration);\n this.render();\n }\n\n set configuration(c) {\n this._configuration = {\n ...defaults.configuration,\n ...c,\n };\n\n const { withRubric = {} } = c || {};\n\n // if configuration.withRubric.forceEnabled is true, then we update the model (rubricEnabled)\n // without triggering the Model Updated event (for more details, check documentation)\n // and also update the configuration (we do not want to display the toggle in the Settings Panel)\n if (withRubric?.forceEnabled) {\n this._configuration.withRubric.settings = false;\n\n if (!this._model.rubricEnabled) {\n this._model.rubricEnabled = true;\n }\n }\n\n this.render();\n }\n\n onModelChanged(m) {\n this._model = m;\n this.render();\n this.dispatchEvent(new ModelUpdatedEvent(this._model, false));\n }\n\n onConfigurationChanged(c) {\n this._configuration = {\n ...defaults.configuration,\n ...c,\n };\n\n if (this._model) {\n this.onModelChanged(this._model);\n }\n\n this.render();\n }\n\n /**\n *\n * @param {done, progress, file} handler\n */\n insertImage(handler) {\n this.dispatchEvent(new InsertImageEvent(handler));\n }\n\n onDeleteImage(src, done) {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n }\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n render() {\n if (this._model) {\n const element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged.bind(this),\n onConfigurationChanged: this.onConfigurationChanged.bind(this),\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n }\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEe,MAAMM,iBAAiB,SAASC,WAAW,CAAC;EAazDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,KAAK,GAAG,IAAI;IACjB,IAAI,CAACC,cAAc,GAAGC,iBAAQ,CAACC,aAAa;;IAE5C;IACA;IACA,IAAI,IAAI,CAACF,cAAc,CAACG,UAAU,EAAEC,YAAY,EAAE;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IAAI;QACtC;MACF,CAAC,CAAC;MAEF,IAAI,CAAC,IAAI,CAACjC,KAAK,EAAE;QACf,IAAI,CAACA,KAAK,GAAG,IAAAsC,kBAAU,EAAC,IAAI,CAAC;MAC/B;MACA,IAAI,CAACtC,KAAK,CAACW,MAAM,CAACkB,OAAO,CAAC;IAC5B;EACF;EAEAU,oBAAoBA,CAAA,EAAG;IACrB,IAAI,IAAI,CAACvC,KAAK,EAAE;MACd,IAAI,CAACA,KAAK,CAACwC,OAAO,CAAC,CAAC;IACtB;EACF;AACF;AAACC,OAAA,CAAAC,OAAA,GAAA7C,iBAAA;AAAA,IAAA8C,gBAAA,CAAAD,OAAA,EA1HoB7C,iBAAiB,wBACR,CAACY,KAAK,GAAG,CAAC,CAAC,EAAEmC,MAAM,KAAK;EAClD,MAAMC,YAAY,GAAG;IAAE,GAAG3C,iBAAQ,CAACO,KAAK;IAAE,GAAGA;EAAM,CAAC;;EAEpD;EACA;EACA,IAAImC,MAAM,EAAExC,UAAU,EAAEC,YAAY,IAAI,CAACwC,YAAY,CAAChC,aAAa,EAAE;IACnEgC,YAAY,CAAChC,aAAa,GAAG,IAAI;EACnC;EAEA,OAAOgC,YAAY;AACrB,CAAC","ignoreList":[]}
|
package/configure/lib/main.js
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.Main = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _configUi = require("@pie-lib/config-ui");
|
|
11
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
13
|
-
var _styles = require("@mui/material/styles");
|
|
14
|
-
var _editableHtmlTipTap = _interopRequireWildcard(require("@pie-lib/editable-html-tip-tap"));
|
|
15
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
-
const {
|
|
17
|
-
Panel,
|
|
18
|
-
toggle,
|
|
19
|
-
numberFields,
|
|
20
|
-
dropdown
|
|
21
|
-
} = _configUi.settings;
|
|
22
|
-
const defaultFeedback = {
|
|
23
|
-
type: 'default',
|
|
24
|
-
default: 'Your answer has been submitted'
|
|
25
|
-
};
|
|
26
|
-
const StyledHeader = (0, _styles.styled)(_Typography.default)(({
|
|
27
|
-
theme
|
|
28
|
-
}) => ({
|
|
29
|
-
paddingBottom: theme.spacing(1)
|
|
30
|
-
}));
|
|
31
|
-
const PromptContainer = (0, _styles.styled)(_configUi.InputContainer)(({
|
|
32
|
-
theme
|
|
33
|
-
}) => ({
|
|
34
|
-
paddingTop: theme.spacing(1),
|
|
35
|
-
marginTop: theme.spacing(2),
|
|
36
|
-
marginBottom: theme.spacing(2),
|
|
37
|
-
width: '100%'
|
|
38
|
-
}));
|
|
39
|
-
const ErrorText = (0, _styles.styled)('div')(({
|
|
40
|
-
theme
|
|
41
|
-
}) => ({
|
|
42
|
-
fontSize: theme.typography.fontSize - 2,
|
|
43
|
-
color: theme.palette.error.main,
|
|
44
|
-
paddingTop: theme.spacing(1)
|
|
45
|
-
}));
|
|
46
|
-
class Main extends _react.default.Component {
|
|
47
|
-
constructor(props) {
|
|
48
|
-
super(props);
|
|
49
|
-
(0, _defineProperty2.default)(this, "onPromptChange", markup => {
|
|
50
|
-
const {
|
|
51
|
-
onModelChanged,
|
|
52
|
-
model
|
|
53
|
-
} = this.props;
|
|
54
|
-
onModelChanged({
|
|
55
|
-
...model,
|
|
56
|
-
prompt: markup
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
(0, _defineProperty2.default)(this, "changeFeedback", feedback => {
|
|
60
|
-
const {
|
|
61
|
-
model,
|
|
62
|
-
onModelChanged
|
|
63
|
-
} = this.props;
|
|
64
|
-
const update = {
|
|
65
|
-
...model,
|
|
66
|
-
feedback
|
|
67
|
-
};
|
|
68
|
-
onModelChanged(update);
|
|
69
|
-
});
|
|
70
|
-
(0, _defineProperty2.default)(this, "changeTeacherInstructions", teacherInstructions => {
|
|
71
|
-
const {
|
|
72
|
-
model,
|
|
73
|
-
onModelChanged
|
|
74
|
-
} = this.props;
|
|
75
|
-
const update = {
|
|
76
|
-
...model,
|
|
77
|
-
teacherInstructions
|
|
78
|
-
};
|
|
79
|
-
onModelChanged(update);
|
|
80
|
-
});
|
|
81
|
-
this.state = {
|
|
82
|
-
setDimensions: true
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
const {
|
|
87
|
-
model,
|
|
88
|
-
configuration,
|
|
89
|
-
imageSupport,
|
|
90
|
-
onConfigurationChanged,
|
|
91
|
-
onModelChanged,
|
|
92
|
-
uploadSoundSupport
|
|
93
|
-
} = this.props;
|
|
94
|
-
const {
|
|
95
|
-
annotations = {},
|
|
96
|
-
contentDimensions = {},
|
|
97
|
-
dimensions = {},
|
|
98
|
-
equationEditor = {},
|
|
99
|
-
feedback = {},
|
|
100
|
-
playerSpellCheck = {},
|
|
101
|
-
prompt = {},
|
|
102
|
-
settingsPanelDisabled,
|
|
103
|
-
spanishInput = {},
|
|
104
|
-
specialInput = {},
|
|
105
|
-
spellCheck = {},
|
|
106
|
-
studentInstructions = {},
|
|
107
|
-
teacherInstructions = {},
|
|
108
|
-
mathInput = {},
|
|
109
|
-
maxImageWidth = {},
|
|
110
|
-
maxImageHeight = {},
|
|
111
|
-
multiple = {},
|
|
112
|
-
withRubric = {},
|
|
113
|
-
mathMlOptions = {},
|
|
114
|
-
baseInputConfiguration = {}
|
|
115
|
-
} = configuration || {};
|
|
116
|
-
const {
|
|
117
|
-
errors = {},
|
|
118
|
-
extraCSSRules,
|
|
119
|
-
feedbackEnabled,
|
|
120
|
-
promptEnabled,
|
|
121
|
-
spellCheckEnabled,
|
|
122
|
-
teacherInstructionsEnabled,
|
|
123
|
-
toolbarEditorPosition
|
|
124
|
-
} = model || {};
|
|
125
|
-
const {
|
|
126
|
-
prompt: promptError,
|
|
127
|
-
teacherInstructions: teacherInstructionsError
|
|
128
|
-
} = errors;
|
|
129
|
-
const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
130
|
-
const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
131
|
-
const toolbarOpts = {
|
|
132
|
-
position: toolbarEditorPosition === 'top' ? 'top' : 'bottom'
|
|
133
|
-
};
|
|
134
|
-
const panelSettings = {
|
|
135
|
-
mathInput: mathInput.settings && toggle(mathInput.label),
|
|
136
|
-
equationEditor: equationEditor.enabled && model.mathInput && dropdown(equationEditor.label, ['non-negative-integers', 'integers', 'decimals', 'fractions', 'Grade 1 - 2', 'Grade 3 - 5', 'Grade 6 - 7', 'Grade 8 - HS', 'geometry', 'advanced-algebra', 'statistics', 'item-authoring']),
|
|
137
|
-
spanishInput: spanishInput.settings && toggle(spanishInput.label),
|
|
138
|
-
specialInput: specialInput.settings && toggle(specialInput.label),
|
|
139
|
-
dimensions: dimensions.settings && numberFields(dimensions.label, {
|
|
140
|
-
width: {
|
|
141
|
-
label: 'Width (px)',
|
|
142
|
-
suffix: 'px',
|
|
143
|
-
min: 100,
|
|
144
|
-
max: 1200
|
|
145
|
-
},
|
|
146
|
-
height: {
|
|
147
|
-
label: 'Height (px)',
|
|
148
|
-
suffix: 'px',
|
|
149
|
-
min: 100,
|
|
150
|
-
max: 500
|
|
151
|
-
}
|
|
152
|
-
}),
|
|
153
|
-
'multiple.enabled': multiple.settings && toggle(multiple.label, true),
|
|
154
|
-
promptEnabled: prompt.settings && toggle(prompt.label),
|
|
155
|
-
feedbackEnabled: feedback.settings && toggle(feedback.label),
|
|
156
|
-
annotationsEnabled: annotations.settings && toggle(annotations.label),
|
|
157
|
-
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
158
|
-
playerSpellCheckDisabled: playerSpellCheck.settings && toggle(playerSpellCheck.label)
|
|
159
|
-
};
|
|
160
|
-
const panelProperties = {
|
|
161
|
-
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
162
|
-
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
163
|
-
rubricEnabled: withRubric?.settings && toggle(withRubric?.label)
|
|
164
|
-
};
|
|
165
|
-
const getPluginProps = props => {
|
|
166
|
-
return Object.assign({
|
|
167
|
-
...baseInputConfiguration
|
|
168
|
-
}, props || {});
|
|
169
|
-
};
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement(_configUi.layout.ConfigLayout, {
|
|
171
|
-
extraCSSRules: extraCSSRules,
|
|
172
|
-
dimensions: contentDimensions,
|
|
173
|
-
hideSettings: settingsPanelDisabled,
|
|
174
|
-
settings: /*#__PURE__*/_react.default.createElement(Panel, {
|
|
175
|
-
model: model,
|
|
176
|
-
configuration: configuration,
|
|
177
|
-
onChangeModel: model => onModelChanged(model),
|
|
178
|
-
onChangeConfiguration: config => onConfigurationChanged(config),
|
|
179
|
-
groups: {
|
|
180
|
-
Settings: panelSettings,
|
|
181
|
-
Properties: panelProperties
|
|
182
|
-
}
|
|
183
|
-
})
|
|
184
|
-
}, teacherInstructionsEnabled && /*#__PURE__*/_react.default.createElement(PromptContainer, {
|
|
185
|
-
label: teacherInstructions.label
|
|
186
|
-
}, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
|
|
187
|
-
className: "prompt",
|
|
188
|
-
markup: model.teacherInstructions || '',
|
|
189
|
-
onChange: this.changeTeacherInstructions,
|
|
190
|
-
imageSupport: imageSupport,
|
|
191
|
-
nonEmpty: false,
|
|
192
|
-
error: teacherInstructionsError,
|
|
193
|
-
toolbarOpts: toolbarOpts,
|
|
194
|
-
spellCheck: spellCheckEnabled,
|
|
195
|
-
maxImageWidth: maxImageWidth && maxImageWidth.teacherInstructions || defaultImageMaxWidth,
|
|
196
|
-
maxImageHeight: maxImageHeight && maxImageHeight.teacherInstructions || defaultImageMaxHeight,
|
|
197
|
-
uploadSoundSupport: uploadSoundSupport,
|
|
198
|
-
languageCharactersProps: [{
|
|
199
|
-
language: 'spanish'
|
|
200
|
-
}, {
|
|
201
|
-
language: 'special'
|
|
202
|
-
}],
|
|
203
|
-
mathMlOptions: mathMlOptions,
|
|
204
|
-
pluginProps: getPluginProps(teacherInstructions?.inputConfiguration)
|
|
205
|
-
}), teacherInstructionsError && /*#__PURE__*/_react.default.createElement(ErrorText, null, teacherInstructionsError)), promptEnabled && /*#__PURE__*/_react.default.createElement(PromptContainer, {
|
|
206
|
-
label: prompt.label
|
|
207
|
-
}, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
|
|
208
|
-
activePlugins: _editableHtmlTipTap.ALL_PLUGINS,
|
|
209
|
-
className: "prompt",
|
|
210
|
-
markup: model.prompt || '',
|
|
211
|
-
onChange: this.onPromptChange,
|
|
212
|
-
imageSupport: imageSupport,
|
|
213
|
-
nonEmpty: false,
|
|
214
|
-
error: promptError,
|
|
215
|
-
toolbarOpts: toolbarOpts,
|
|
216
|
-
spellCheck: spellCheckEnabled,
|
|
217
|
-
maxImageWidth: defaultImageMaxWidth,
|
|
218
|
-
maxImageHeight: defaultImageMaxHeight,
|
|
219
|
-
uploadSoundSupport: uploadSoundSupport,
|
|
220
|
-
languageCharactersProps: [{
|
|
221
|
-
language: 'spanish'
|
|
222
|
-
}, {
|
|
223
|
-
language: 'special'
|
|
224
|
-
}],
|
|
225
|
-
mathMlOptions: mathMlOptions,
|
|
226
|
-
pluginProps: getPluginProps(prompt?.inputConfiguration)
|
|
227
|
-
}), promptError && /*#__PURE__*/_react.default.createElement(ErrorText, null, promptError)), feedbackEnabled && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(StyledHeader, {
|
|
228
|
-
variant: "h6"
|
|
229
|
-
}, "Feedback"), /*#__PURE__*/_react.default.createElement(_configUi.FeedbackSelector, {
|
|
230
|
-
label: "When submitted, show",
|
|
231
|
-
feedback: model.feedback || defaultFeedback,
|
|
232
|
-
onChange: this.changeFeedback,
|
|
233
|
-
toolbarOpts: toolbarOpts
|
|
234
|
-
})));
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
exports.Main = Main;
|
|
238
|
-
(0, _defineProperty2.default)(Main, "propTypes", {
|
|
239
|
-
onModelChanged: _propTypes.default.func.isRequired,
|
|
240
|
-
onConfigurationChanged: _propTypes.default.func,
|
|
241
|
-
model: _propTypes.default.object.isRequired,
|
|
242
|
-
configuration: _propTypes.default.object.isRequired,
|
|
243
|
-
imageSupport: _propTypes.default.object.isRequired,
|
|
244
|
-
uploadSoundSupport: _propTypes.default.object.isRequired
|
|
245
|
-
});
|
|
246
|
-
var _default = exports.default = Main;
|
|
247
|
-
//# sourceMappingURL=main.js.map
|