@pie-element/ebsr 14.2.2-next.0 → 14.2.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/defaults.d.ts +284 -2
- package/dist/author/defaults.js +1 -1
- package/dist/author/index.js +16 -16
- package/dist/browser/author/index.js +3455 -3561
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +87 -265
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-CaWRqnXk.js +62 -0
- package/dist/browser/dist-CaWRqnXk.js.map +1 -0
- package/dist/browser/print/index.js +3 -4
- package/dist/browser/print/index.js.map +1 -1
- package/dist/controller/index.js +29 -30
- package/dist/controller/utils.d.ts +1 -1
- package/dist/controller/utils.js +1 -1
- package/dist/delivery/index.js +10 -10
- package/dist/index.iife.js +37 -37
- package/dist/print/index.js +12 -13
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +11 -7
- package/dist/browser/_Uint8Array-fRN8Lsus.js +0 -193
- package/dist/browser/_Uint8Array-fRN8Lsus.js.map +0 -1
- package/dist/browser/cloneDeep-o_mWij0W.js +0 -251
- package/dist/browser/cloneDeep-o_mWij0W.js.map +0 -1
- package/dist/browser/get-BfBCyZ1r.js +0 -333
- package/dist/browser/get-BfBCyZ1r.js.map +0 -1
- 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/_SetCache.js +0 -11
- 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/_apply.js +0 -12
- 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/_arrayMap.js +0 -7
- 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/_arraySome.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/_baseGet.js +0 -10
- 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/_baseIsEqual.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
- 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/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- 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/_baseToString.js +0 -15
- 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/_cacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
- 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/_equalArrays.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
- 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/_isIterateeCall.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
- 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/_mapToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
- 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/_overRest.js +0 -13
- 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/_setCacheAdd.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- 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/_stringToPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
- 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/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
- 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/get.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.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/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
- 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/memoize.js +0 -16
- 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/toString.js +0 -7
|
@@ -45,8 +45,290 @@ declare const _default: {
|
|
|
45
45
|
settings: boolean;
|
|
46
46
|
label: string;
|
|
47
47
|
};
|
|
48
|
-
partA:
|
|
49
|
-
|
|
48
|
+
partA: {
|
|
49
|
+
addChoiceButton: {
|
|
50
|
+
settings: boolean;
|
|
51
|
+
label: string;
|
|
52
|
+
};
|
|
53
|
+
choiceMode: {
|
|
54
|
+
settings: boolean;
|
|
55
|
+
label: string;
|
|
56
|
+
};
|
|
57
|
+
choicePrefix: {
|
|
58
|
+
settings: boolean;
|
|
59
|
+
label: string;
|
|
60
|
+
};
|
|
61
|
+
deleteChoice: {
|
|
62
|
+
settings: boolean;
|
|
63
|
+
};
|
|
64
|
+
feedback: {
|
|
65
|
+
settings: boolean;
|
|
66
|
+
label: string;
|
|
67
|
+
};
|
|
68
|
+
lockChoiceOrder: {
|
|
69
|
+
settings: boolean;
|
|
70
|
+
label: string;
|
|
71
|
+
};
|
|
72
|
+
prompt: {
|
|
73
|
+
settings: boolean;
|
|
74
|
+
label: string;
|
|
75
|
+
inputConfiguration: {
|
|
76
|
+
audio: {
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
};
|
|
79
|
+
video: {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
};
|
|
82
|
+
image: {
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
required: boolean;
|
|
87
|
+
};
|
|
88
|
+
rationale: {
|
|
89
|
+
settings: boolean;
|
|
90
|
+
label: string;
|
|
91
|
+
inputConfiguration: {
|
|
92
|
+
audio: {
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
};
|
|
95
|
+
video: {
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
};
|
|
98
|
+
image: {
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
required: boolean;
|
|
103
|
+
};
|
|
104
|
+
settingsPanelDisabled: boolean;
|
|
105
|
+
studentInstructions: {
|
|
106
|
+
settings: boolean;
|
|
107
|
+
label: string;
|
|
108
|
+
};
|
|
109
|
+
teacherInstructions: {
|
|
110
|
+
settings: boolean;
|
|
111
|
+
label: string;
|
|
112
|
+
inputConfiguration: {
|
|
113
|
+
audio: {
|
|
114
|
+
disabled: boolean;
|
|
115
|
+
};
|
|
116
|
+
video: {
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
};
|
|
119
|
+
image: {
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
required: boolean;
|
|
124
|
+
};
|
|
125
|
+
choicesLayout: {
|
|
126
|
+
settings: boolean;
|
|
127
|
+
label: string;
|
|
128
|
+
};
|
|
129
|
+
gridColumns: {
|
|
130
|
+
label: string;
|
|
131
|
+
};
|
|
132
|
+
spellCheck: {
|
|
133
|
+
label: string;
|
|
134
|
+
settings: boolean;
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
};
|
|
137
|
+
maxImageWidth: {
|
|
138
|
+
teacherInstructions: number;
|
|
139
|
+
prompt: number;
|
|
140
|
+
rationale: number;
|
|
141
|
+
choices: number;
|
|
142
|
+
};
|
|
143
|
+
maxImageHeight: {
|
|
144
|
+
teacherInstructions: number;
|
|
145
|
+
prompt: number;
|
|
146
|
+
rationale: number;
|
|
147
|
+
choices: number;
|
|
148
|
+
};
|
|
149
|
+
mathMlOptions: {
|
|
150
|
+
mmlOutput: boolean;
|
|
151
|
+
mmlEditing: boolean;
|
|
152
|
+
};
|
|
153
|
+
choices: {
|
|
154
|
+
inputConfiguration: {
|
|
155
|
+
audio: {
|
|
156
|
+
disabled: boolean;
|
|
157
|
+
};
|
|
158
|
+
video: {
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
};
|
|
161
|
+
image: {
|
|
162
|
+
disabled: boolean;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
baseInputConfiguration: {
|
|
167
|
+
h3: {
|
|
168
|
+
disabled: boolean;
|
|
169
|
+
};
|
|
170
|
+
audio: {
|
|
171
|
+
disabled: boolean;
|
|
172
|
+
};
|
|
173
|
+
video: {
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
};
|
|
176
|
+
image: {
|
|
177
|
+
disabled: boolean;
|
|
178
|
+
};
|
|
179
|
+
textAlign: {
|
|
180
|
+
disabled: boolean;
|
|
181
|
+
};
|
|
182
|
+
showParagraphs: {
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
};
|
|
185
|
+
separateParagraphs: {
|
|
186
|
+
disabled: boolean;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
partB: {
|
|
191
|
+
addChoiceButton: {
|
|
192
|
+
settings: boolean;
|
|
193
|
+
label: string;
|
|
194
|
+
};
|
|
195
|
+
choiceMode: {
|
|
196
|
+
settings: boolean;
|
|
197
|
+
label: string;
|
|
198
|
+
};
|
|
199
|
+
choicePrefix: {
|
|
200
|
+
settings: boolean;
|
|
201
|
+
label: string;
|
|
202
|
+
};
|
|
203
|
+
deleteChoice: {
|
|
204
|
+
settings: boolean;
|
|
205
|
+
};
|
|
206
|
+
feedback: {
|
|
207
|
+
settings: boolean;
|
|
208
|
+
label: string;
|
|
209
|
+
};
|
|
210
|
+
lockChoiceOrder: {
|
|
211
|
+
settings: boolean;
|
|
212
|
+
label: string;
|
|
213
|
+
};
|
|
214
|
+
prompt: {
|
|
215
|
+
settings: boolean;
|
|
216
|
+
label: string;
|
|
217
|
+
inputConfiguration: {
|
|
218
|
+
audio: {
|
|
219
|
+
disabled: boolean;
|
|
220
|
+
};
|
|
221
|
+
video: {
|
|
222
|
+
disabled: boolean;
|
|
223
|
+
};
|
|
224
|
+
image: {
|
|
225
|
+
disabled: boolean;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
required: boolean;
|
|
229
|
+
};
|
|
230
|
+
rationale: {
|
|
231
|
+
settings: boolean;
|
|
232
|
+
label: string;
|
|
233
|
+
inputConfiguration: {
|
|
234
|
+
audio: {
|
|
235
|
+
disabled: boolean;
|
|
236
|
+
};
|
|
237
|
+
video: {
|
|
238
|
+
disabled: boolean;
|
|
239
|
+
};
|
|
240
|
+
image: {
|
|
241
|
+
disabled: boolean;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
required: boolean;
|
|
245
|
+
};
|
|
246
|
+
settingsPanelDisabled: boolean;
|
|
247
|
+
studentInstructions: {
|
|
248
|
+
settings: boolean;
|
|
249
|
+
label: string;
|
|
250
|
+
};
|
|
251
|
+
teacherInstructions: {
|
|
252
|
+
settings: boolean;
|
|
253
|
+
label: string;
|
|
254
|
+
inputConfiguration: {
|
|
255
|
+
audio: {
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
};
|
|
258
|
+
video: {
|
|
259
|
+
disabled: boolean;
|
|
260
|
+
};
|
|
261
|
+
image: {
|
|
262
|
+
disabled: boolean;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
required: boolean;
|
|
266
|
+
};
|
|
267
|
+
choicesLayout: {
|
|
268
|
+
settings: boolean;
|
|
269
|
+
label: string;
|
|
270
|
+
};
|
|
271
|
+
gridColumns: {
|
|
272
|
+
label: string;
|
|
273
|
+
};
|
|
274
|
+
spellCheck: {
|
|
275
|
+
label: string;
|
|
276
|
+
settings: boolean;
|
|
277
|
+
enabled: boolean;
|
|
278
|
+
};
|
|
279
|
+
maxImageWidth: {
|
|
280
|
+
teacherInstructions: number;
|
|
281
|
+
prompt: number;
|
|
282
|
+
rationale: number;
|
|
283
|
+
choices: number;
|
|
284
|
+
};
|
|
285
|
+
maxImageHeight: {
|
|
286
|
+
teacherInstructions: number;
|
|
287
|
+
prompt: number;
|
|
288
|
+
rationale: number;
|
|
289
|
+
choices: number;
|
|
290
|
+
};
|
|
291
|
+
mathMlOptions: {
|
|
292
|
+
mmlOutput: boolean;
|
|
293
|
+
mmlEditing: boolean;
|
|
294
|
+
};
|
|
295
|
+
choices: {
|
|
296
|
+
inputConfiguration: {
|
|
297
|
+
audio: {
|
|
298
|
+
disabled: boolean;
|
|
299
|
+
};
|
|
300
|
+
video: {
|
|
301
|
+
disabled: boolean;
|
|
302
|
+
};
|
|
303
|
+
image: {
|
|
304
|
+
disabled: boolean;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
baseInputConfiguration: {
|
|
309
|
+
h3: {
|
|
310
|
+
disabled: boolean;
|
|
311
|
+
};
|
|
312
|
+
audio: {
|
|
313
|
+
disabled: boolean;
|
|
314
|
+
};
|
|
315
|
+
video: {
|
|
316
|
+
disabled: boolean;
|
|
317
|
+
};
|
|
318
|
+
image: {
|
|
319
|
+
disabled: boolean;
|
|
320
|
+
};
|
|
321
|
+
textAlign: {
|
|
322
|
+
disabled: boolean;
|
|
323
|
+
};
|
|
324
|
+
showParagraphs: {
|
|
325
|
+
disabled: boolean;
|
|
326
|
+
};
|
|
327
|
+
separateParagraphs: {
|
|
328
|
+
disabled: boolean;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
50
332
|
partLabels: {
|
|
51
333
|
settings: boolean;
|
|
52
334
|
label: string;
|
package/dist/author/defaults.js
CHANGED
package/dist/author/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "
|
|
1
|
+
import e from "./main.js";
|
|
2
|
+
import t from "./defaults.js";
|
|
3
|
+
import { defaults as n } from "@pie-element/shared-lodash";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import { createRoot as i } from "react-dom/client";
|
|
6
6
|
import { ModelUpdatedEvent as a } from "@pie-element/shared-configure-events";
|
|
@@ -8,10 +8,10 @@ import o from "@pie-element/multiple-choice/author";
|
|
|
8
8
|
//#region src/author/index.ts
|
|
9
9
|
var s = a.TYPE, c = "ebsr-multiple-choice-configure", l = class extends o {};
|
|
10
10
|
customElements.get(c) || customElements.define(c, l);
|
|
11
|
-
var u = (
|
|
12
|
-
configuration: e
|
|
11
|
+
var u = (e, r) => ({
|
|
12
|
+
configuration: n(e, t.configuration),
|
|
13
13
|
model: r
|
|
14
|
-
}), { model: d } =
|
|
14
|
+
}), { model: d } = t || {}, f = class n extends HTMLElement {
|
|
15
15
|
static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = d) => ({
|
|
16
16
|
...r,
|
|
17
17
|
...n,
|
|
@@ -27,22 +27,22 @@ var u = (t, r) => ({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
constructor() {
|
|
30
|
-
super(), this._root = null, this._model =
|
|
30
|
+
super(), this._root = null, this._model = n.createDefaultModel(), this._configuration = t.configuration, this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
31
31
|
}
|
|
32
|
-
set model(
|
|
33
|
-
this._model =
|
|
32
|
+
set model(e) {
|
|
33
|
+
this._model = n.createDefaultModel(e, this._model), this._render();
|
|
34
34
|
}
|
|
35
35
|
dispatchModelUpdated(e) {
|
|
36
36
|
let t = !!e;
|
|
37
37
|
this.dispatchEvent(new a(this._model, t));
|
|
38
38
|
}
|
|
39
|
-
onModelChanged = (
|
|
40
|
-
this._model =
|
|
39
|
+
onModelChanged = (e, t) => {
|
|
40
|
+
this._model = n.createDefaultModel(e, this._model), this.dispatchModelUpdated(t), this._render();
|
|
41
41
|
};
|
|
42
42
|
set configuration(e) {
|
|
43
|
-
let
|
|
44
|
-
...
|
|
45
|
-
...
|
|
43
|
+
let n = u(e, this._model), r = {
|
|
44
|
+
...t.configuration,
|
|
45
|
+
...n.configuration
|
|
46
46
|
};
|
|
47
47
|
this._configuration = r, r?.language?.enabled ? r?.languageChoices?.options?.length && (this._model.language = r?.languageChoices.options[0].value) : r.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
48
48
|
value: this._model.language,
|
|
@@ -62,13 +62,13 @@ var u = (t, r) => ({
|
|
|
62
62
|
this.addEventListener(s, this.onModelUpdated), this._render();
|
|
63
63
|
}
|
|
64
64
|
_render() {
|
|
65
|
-
let
|
|
65
|
+
let t = r.createElement(e, {
|
|
66
66
|
model: this._model,
|
|
67
67
|
configuration: this._configuration,
|
|
68
68
|
onModelChanged: this.onModelChanged,
|
|
69
69
|
onConfigurationChanged: this.onConfigurationChanged
|
|
70
70
|
});
|
|
71
|
-
this._root ||= i(this), this._root.render(
|
|
71
|
+
this._root ||= i(this), this._root.render(t);
|
|
72
72
|
}
|
|
73
73
|
disconnectedCallback() {
|
|
74
74
|
this.removeEventListener(s, this.onModelUpdated), this._root && this._root.unmount();
|