@pie-element/ebsr 14.2.2-next.0 → 14.2.2-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/author/defaults.d.ts +284 -2
  2. package/dist/author/defaults.js +1 -1
  3. package/dist/author/index.js +24 -22
  4. package/dist/author/main.d.ts +1 -0
  5. package/dist/author/main.js +72 -70
  6. package/dist/browser/author/index.js +41058 -12238
  7. package/dist/browser/author/index.js.map +1 -1
  8. package/dist/browser/controller/index.js +90 -268
  9. package/dist/browser/controller/index.js.map +1 -1
  10. package/dist/browser/delivery/index.js +26 -26
  11. package/dist/browser/delivery/index.js.map +1 -1
  12. package/dist/browser/delivery-DM01fVuQ.js +1290 -0
  13. package/dist/browser/delivery-DM01fVuQ.js.map +1 -0
  14. package/dist/browser/dist-CHbLnyuX.js +111 -0
  15. package/dist/browser/dist-CHbLnyuX.js.map +1 -0
  16. package/dist/browser/{dist-D9ARZhQk.js → dist-DiGNNRzu.js} +2 -2
  17. package/dist/browser/{dist-D9ARZhQk.js.map → dist-DiGNNRzu.js.map} +1 -1
  18. package/dist/browser/ebsr.css +2 -0
  19. package/dist/browser/print/index.js +27 -28
  20. package/dist/browser/print/index.js.map +1 -1
  21. package/dist/browser/private-tags-Z0nu6DO5.js +9590 -0
  22. package/dist/browser/private-tags-Z0nu6DO5.js.map +1 -0
  23. package/dist/controller/index.js +29 -30
  24. package/dist/controller/utils.d.ts +1 -1
  25. package/dist/controller/utils.js +2 -2
  26. package/dist/delivery/index.js +25 -24
  27. package/dist/index.iife.js +37 -37
  28. package/dist/print/index.js +32 -32
  29. package/dist/private-tags.d.ts +2 -0
  30. package/dist/private-tags.js +3 -0
  31. package/dist/runtime-support.d.ts +12 -0
  32. package/dist/runtime-support.js +12 -0
  33. package/module/print.js +18298 -0
  34. package/module/print.js.map +1 -0
  35. package/package.json +27 -10
  36. package/print.js +2 -0
  37. package/dist/browser/_Uint8Array-fRN8Lsus.js +0 -193
  38. package/dist/browser/_Uint8Array-fRN8Lsus.js.map +0 -1
  39. package/dist/browser/browser-CdX8WGiZ.js +0 -207
  40. package/dist/browser/browser-CdX8WGiZ.js.map +0 -1
  41. package/dist/browser/cloneDeep-o_mWij0W.js +0 -251
  42. package/dist/browser/cloneDeep-o_mWij0W.js.map +0 -1
  43. package/dist/browser/dist-DQkngCcw.js +0 -36
  44. package/dist/browser/dist-DQkngCcw.js.map +0 -1
  45. package/dist/browser/get-BfBCyZ1r.js +0 -333
  46. package/dist/browser/get-BfBCyZ1r.js.map +0 -1
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  190. 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: any;
49
- partB: any;
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;
@@ -1,4 +1,4 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
1
+ import { cloneDeep as e } from "@pie-element/shared-lodash";
2
2
  //#region src/author/defaults.ts
3
3
  var t = {
4
4
  addChoiceButton: {
@@ -1,18 +1,19 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js";
2
- import t from "./main.js";
1
+ import { EBSR_MULTIPLE_CHOICE_CONFIGURE_TAG as e } from "../private-tags.js";
2
+ import { Main as t } from "./main.js";
3
3
  import n from "./defaults.js";
4
- import r from "react";
5
- import { createRoot as i } from "react-dom/client";
6
- import { ModelUpdatedEvent as a } from "@pie-element/shared-configure-events";
7
- import o from "@pie-element/multiple-choice/author";
4
+ import { defaults as r } from "@pie-element/shared-lodash";
5
+ import i from "react";
6
+ import { createRoot as a } from "react-dom/client";
7
+ import { ModelUpdatedEvent as o } from "@pie-element/shared-configure-events";
8
+ import s from "@pie-element/multiple-choice/author";
8
9
  //#region src/author/index.ts
9
- var s = a.TYPE, c = "ebsr-multiple-choice-configure", l = class extends o {};
10
- customElements.get(c) || customElements.define(c, l);
11
- var u = (t, r) => ({
12
- configuration: e(t, n.configuration),
13
- model: r
14
- }), { model: d } = n || {}, f = class e extends HTMLElement {
15
- static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = d) => ({
10
+ var c = o.TYPE, l = e, u = class extends s {};
11
+ customElements.get(l) || customElements.define(l, u);
12
+ var d = (e, t) => ({
13
+ configuration: r(e, n.configuration),
14
+ model: t
15
+ }), { model: f } = n || {}, p = class e extends HTMLElement {
16
+ static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = f) => ({
16
17
  ...r,
17
18
  ...n,
18
19
  partA: {
@@ -34,13 +35,13 @@ var u = (t, r) => ({
34
35
  }
35
36
  dispatchModelUpdated(e) {
36
37
  let t = !!e;
37
- this.dispatchEvent(new a(this._model, t));
38
+ this.dispatchEvent(new o(this._model, t));
38
39
  }
39
40
  onModelChanged = (t, n) => {
40
41
  this._model = e.createDefaultModel(t, this._model), this.dispatchModelUpdated(n), this._render();
41
42
  };
42
43
  set configuration(e) {
43
- let t = u(e, this._model), r = {
44
+ let t = d(e, this._model), r = {
44
45
  ...n.configuration,
45
46
  ...t.configuration
46
47
  };
@@ -50,29 +51,30 @@ var u = (t, r) => ({
50
51
  })) : delete this._model.language, this._render();
51
52
  }
52
53
  onConfigurationChanged(e) {
53
- this._configuration = u(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
54
+ this._configuration = d(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
54
55
  }
55
56
  onModelUpdated = (e) => {
56
57
  if (e.target === this) return;
57
58
  e.preventDefault(), e.stopImmediatePropagation();
58
59
  let t = e.target && e.target.getAttribute("id");
59
- t && (e.update && (this._model[`part${t}`] = e.update), this.dispatchEvent(new a(this._model)));
60
+ t && (e.update && (this._model[`part${t}`] = e.update), this.dispatchEvent(new o(this._model)));
60
61
  };
61
62
  connectedCallback() {
62
- this.addEventListener(s, this.onModelUpdated), this._render();
63
+ this.addEventListener(c, this.onModelUpdated), this._render();
63
64
  }
64
65
  _render() {
65
- let e = r.createElement(t, {
66
+ let e = i.createElement(t, {
66
67
  model: this._model,
67
68
  configuration: this._configuration,
69
+ multipleChoiceTagName: l,
68
70
  onModelChanged: this.onModelChanged,
69
71
  onConfigurationChanged: this.onConfigurationChanged
70
72
  });
71
- this._root ||= i(this), this._root.render(e);
73
+ this._root ||= a(this), this._root.render(e);
72
74
  }
73
75
  disconnectedCallback() {
74
- this.removeEventListener(s, this.onModelUpdated), this._root && this._root.unmount();
76
+ this.removeEventListener(c, this.onModelUpdated), this._root &&= (this._root.unmount(), null);
75
77
  }
76
78
  };
77
79
  //#endregion
78
- export { f as default };
80
+ export { p as default };
@@ -12,6 +12,7 @@ export declare class Main extends React.Component {
12
12
  static propTypes: {
13
13
  configuration: PropTypes.Requireable<object>;
14
14
  model: PropTypes.Requireable<object>;
15
+ multipleChoiceTagName: PropTypes.Requireable<string>;
15
16
  onModelChanged: PropTypes.Requireable<(...args: any[]) => any>;
16
17
  onConfigurationChanged: PropTypes.Requireable<(...args: any[]) => any>;
17
18
  };
@@ -1,18 +1,20 @@
1
- import e from "react";
2
- import t from "prop-types";
3
- import { layout as n, settings as r } from "@pie-lib/config-ui";
4
- import { styled as i } from "@mui/material/styles";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { EBSR_MULTIPLE_CHOICE_CONFIGURE_TAG as e } from "../private-tags.js";
2
+ import t from "react";
3
+ import n from "prop-types";
4
+ import { layout as r, settings as i } from "@pie-lib/config-ui";
5
+ import { styled as a } from "@mui/material/styles";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
7
  //#region src/author/main.tsx
7
- var { Panel: s, toggle: c, radio: l, dropdown: u } = r, d = i("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), f = i("div")(({ theme: e }) => ({
8
+ var { Panel: c, toggle: l, radio: u, dropdown: d } = i, f = a("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), p = a("div")(({ theme: e }) => ({
8
9
  flex: 1,
9
10
  height: e.spacing(2.5)
10
- })), p = class extends e.Component {
11
+ })), m = class extends t.Component {
11
12
  static propTypes = {
12
- configuration: t.object,
13
- model: t.object,
14
- onModelChanged: t.func,
15
- onConfigurationChanged: t.func
13
+ configuration: n.object,
14
+ model: n.object,
15
+ multipleChoiceTagName: n.string,
16
+ onModelChanged: n.func,
17
+ onConfigurationChanged: n.func
16
18
  };
17
19
  removeExtraChoices = (e) => {
18
20
  let t = !1;
@@ -23,93 +25,93 @@ var { Panel: s, toggle: c, radio: l, dropdown: u } = r, d = i("div")(({ theme: e
23
25
  return t === "partA.choiceMode" && e.partA.choiceMode === "radio" ? (e.partA.choices = this.removeExtraChoices(e.partA.choices), n(e, !0)) : t === "partB.choiceMode" && e.partB.choiceMode === "radio" ? (e.partB.choices = this.removeExtraChoices(e.partB.choices), n(e, !0)) : n(e);
24
26
  };
25
27
  render() {
26
- let { model: e, configuration: t, onConfigurationChanged: r } = this.props, { partLabelType: i, partA: p, partB: m, extraCSSRules: h } = e, { contentDimensions: g = {}, partA: _ = {}, partB: v = {}, partialScoring: y = {}, settingsPanelDisabled: b, scoringType: x = {}, language: S = {}, languageChoices: C = {}, ...w } = t, { feedback: T = {}, choiceMode: E = {}, choicePrefix: D = {}, lockChoiceOrder: O = {}, prompt: k = {}, teacherInstructions: A = {}, studentInstructions: j = {}, choicesLayout: M = {}, gridColumns: N = {}, rationale: P = {}, spellCheck: F = {} } = _ || {}, { feedback: I = {}, choiceMode: L = {}, choicePrefix: R = {}, lockChoiceOrder: z = {}, prompt: B = {}, teacherInstructions: V = {}, studentInstructions: H = {}, choicesLayout: U = {}, gridColumns: W = {}, rationale: G = {}, spellCheck: K = {} } = v || {}, q = (i || "Numbers") === "Numbers", J = `Part ${q ? "1" : "A"}`, Y = `Part ${q ? "2" : "B"}`, X = {
27
- partA: p.choices && p.choices.length ? Array.from({ length: p.choices.length }, (e, t) => `${t + 1}`) : [],
28
- partB: m.choices && m.choices.length ? Array.from({ length: m.choices.length }, (e, t) => `${t + 1}`) : []
29
- }, Z = {
30
- partLabels: w.partLabels.settings && c(w.partLabels.label),
31
- partLabelType: e.partLabels && u("", ["Numbers", "Letters"]),
32
- partialScoring: y.settings && c(y.label),
33
- scoringType: x.settings && l(x.label, ["auto", "rubric"]),
34
- "language.enabled": S.settings && c(S.label, !0),
35
- language: S.settings && S.enabled && u(C.label, C.options)
36
- }, Q = {
37
- "partA.choiceMode": E.settings && l(E.label, ["checkbox", "radio"]),
38
- "partA.choicePrefix": D.settings && l(D.label, ["numbers", "letters"]),
39
- "partA.lockChoiceOrder": O.settings && c(O.label),
40
- "partA.choicesLayout": M.settings && u(M.label, [
28
+ let { model: t, configuration: n, multipleChoiceTagName: i = e, onConfigurationChanged: a } = this.props, m = i, { partLabelType: h, partA: g, partB: _, extraCSSRules: v } = t, { contentDimensions: ee = {}, partA: y = {}, partB: b = {}, partialScoring: x = {}, settingsPanelDisabled: S, scoringType: C = {}, language: w = {}, languageChoices: T = {}, ...E } = n, { feedback: D = {}, choiceMode: O = {}, choicePrefix: k = {}, lockChoiceOrder: A = {}, prompt: j = {}, teacherInstructions: M = {}, studentInstructions: N = {}, choicesLayout: P = {}, gridColumns: F = {}, rationale: I = {}, spellCheck: L = {} } = y || {}, { feedback: R = {}, choiceMode: z = {}, choicePrefix: B = {}, lockChoiceOrder: V = {}, prompt: H = {}, teacherInstructions: U = {}, studentInstructions: W = {}, choicesLayout: G = {}, gridColumns: K = {}, rationale: q = {}, spellCheck: J = {} } = b || {}, Y = (h || "Numbers") === "Numbers", X = `Part ${Y ? "1" : "A"}`, Z = `Part ${Y ? "2" : "B"}`, Q = {
29
+ partA: g.choices && g.choices.length ? Array.from({ length: g.choices.length }, (e, t) => `${t + 1}`) : [],
30
+ partB: _.choices && _.choices.length ? Array.from({ length: _.choices.length }, (e, t) => `${t + 1}`) : []
31
+ }, $ = {
32
+ partLabels: E.partLabels.settings && l(E.partLabels.label),
33
+ partLabelType: t.partLabels && d("", ["Numbers", "Letters"]),
34
+ partialScoring: x.settings && l(x.label),
35
+ scoringType: C.settings && u(C.label, ["auto", "rubric"]),
36
+ "language.enabled": w.settings && l(w.label, !0),
37
+ language: w.settings && w.enabled && d(T.label, T.options)
38
+ }, te = {
39
+ "partA.choiceMode": O.settings && u(O.label, ["checkbox", "radio"]),
40
+ "partA.choicePrefix": k.settings && u(k.label, ["numbers", "letters"]),
41
+ "partA.lockChoiceOrder": A.settings && l(A.label),
42
+ "partA.choicesLayout": P.settings && d(P.label, [
41
43
  "vertical",
42
44
  "grid",
43
45
  "horizontal"
44
46
  ]),
45
- "partA.gridColumns": M.settings && p.choicesLayout === "grid" && X.partA.length > 0 && u(N.label, X.partA)
46
- }, $ = {
47
- "partA.feedbackEnabled": T.settings && c(T.label),
48
- "partA.promptEnabled": k.settings && c(k.label),
49
- "partA.teacherInstructionsEnabled": A.settings && c(A.label),
50
- "partA.studentInstructionsEnabled": j.settings && c(j.label),
51
- "partA.rationaleEnabled": P.settings && c(P.label),
52
- "partA.spellCheckEnabled": F.settings && c(F.label)
53
- }, ee = {
54
- "partB.choiceMode": L.settings && l(L.label, ["checkbox", "radio"]),
55
- "partB.choicePrefix": R.settings && l(R.label, ["numbers", "letters"]),
56
- "partB.lockChoiceOrder": z.settings && c(z.label),
57
- "partB.choicesLayout": U.settings && u(U.label, [
47
+ "partA.gridColumns": P.settings && g.choicesLayout === "grid" && Q.partA.length > 0 && d(F.label, Q.partA)
48
+ }, ne = {
49
+ "partA.feedbackEnabled": D.settings && l(D.label),
50
+ "partA.promptEnabled": j.settings && l(j.label),
51
+ "partA.teacherInstructionsEnabled": M.settings && l(M.label),
52
+ "partA.studentInstructionsEnabled": N.settings && l(N.label),
53
+ "partA.rationaleEnabled": I.settings && l(I.label),
54
+ "partA.spellCheckEnabled": L.settings && l(L.label)
55
+ }, re = {
56
+ "partB.choiceMode": z.settings && u(z.label, ["checkbox", "radio"]),
57
+ "partB.choicePrefix": B.settings && u(B.label, ["numbers", "letters"]),
58
+ "partB.lockChoiceOrder": V.settings && l(V.label),
59
+ "partB.choicesLayout": G.settings && d(G.label, [
58
60
  "vertical",
59
61
  "grid",
60
62
  "horizontal"
61
63
  ]),
62
- "partB.gridColumns": U.settings && m.choicesLayout === "grid" && X.partB.length > 0 && u(W.label, X.partB)
63
- }, te = {
64
- "partB.feedbackEnabled": I.settings && c(I.label),
65
- "partB.promptEnabled": B.settings && c(B.label),
66
- "partB.teacherInstructionsEnabled": V.settings && c(V.label),
67
- "partB.studentInstructionsEnabled": H.settings && c(H.label),
68
- "partB.rationaleEnabled": G.settings && c(G.label),
69
- "partB.spellCheckEnabled": K.settings && c(K.label)
64
+ "partB.gridColumns": G.settings && _.choicesLayout === "grid" && Q.partB.length > 0 && d(K.label, Q.partB)
65
+ }, ie = {
66
+ "partB.feedbackEnabled": R.settings && l(R.label),
67
+ "partB.promptEnabled": H.settings && l(H.label),
68
+ "partB.teacherInstructionsEnabled": U.settings && l(U.label),
69
+ "partB.studentInstructionsEnabled": W.settings && l(W.label),
70
+ "partB.rationaleEnabled": q.settings && l(q.label),
71
+ "partB.spellCheckEnabled": J.settings && l(J.label)
70
72
  };
71
- return /* @__PURE__ */ o(n.ConfigLayout, {
72
- extraCSSRules: h,
73
- dimensions: g,
74
- hideSettings: b,
75
- settings: /* @__PURE__ */ a(s, {
76
- model: e,
73
+ return /* @__PURE__ */ s(r.ConfigLayout, {
74
+ extraCSSRules: v,
75
+ dimensions: ee,
76
+ hideSettings: S,
77
+ settings: /* @__PURE__ */ o(c, {
78
+ model: t,
77
79
  onChangeModel: this.onModelChanged,
78
- configuration: t,
79
- onChangeConfiguration: r,
80
+ configuration: n,
81
+ onChangeConfiguration: a,
80
82
  groups: {
81
- "Settings for both": Z,
82
- [`Settings ${J}`]: Q,
83
- [`Properties ${J}`]: $,
84
- [`Settings ${Y}`]: ee,
85
- [`Properties ${Y}`]: te
83
+ "Settings for both": $,
84
+ [`Settings ${X}`]: te,
85
+ [`Properties ${X}`]: ne,
86
+ [`Settings ${Z}`]: re,
87
+ [`Properties ${Z}`]: ie
86
88
  }
87
89
  }),
88
90
  children: [
89
- e.partLabels && /* @__PURE__ */ a(d, { children: J }),
90
- /* @__PURE__ */ a("ebsr-multiple-choice-configure", {
91
+ t.partLabels && /* @__PURE__ */ o(f, { children: X }),
92
+ /* @__PURE__ */ o(m, {
91
93
  id: "A",
92
94
  ref: (e) => {
93
95
  e && (this.partA = e, this.partA._model = {
94
96
  ...this.props.model.partA,
95
97
  errors: this.props.model.errors && this.props.model.errors.partA || {}
96
98
  }, this.partA.configuration = {
97
- ..._,
98
- ...w
99
+ ...y,
100
+ ...E
99
101
  });
100
102
  }
101
103
  }, "partA"),
102
- /* @__PURE__ */ a(f, {}),
103
- e.partLabels && /* @__PURE__ */ a(d, { children: Y }),
104
- /* @__PURE__ */ a("ebsr-multiple-choice-configure", {
104
+ /* @__PURE__ */ o(p, {}),
105
+ t.partLabels && /* @__PURE__ */ o(f, { children: Z }),
106
+ /* @__PURE__ */ o(m, {
105
107
  id: "B",
106
108
  ref: (e) => {
107
109
  e && (this.partB = e, this.partB._model = {
108
110
  ...this.props.model.partB,
109
111
  errors: this.props.model.errors && this.props.model.errors.partB || {}
110
112
  }, this.partB.configuration = {
111
- ...v,
112
- ...w
113
+ ...b,
114
+ ...E
113
115
  });
114
116
  }
115
117
  }, "partB")
@@ -118,4 +120,4 @@ var { Panel: s, toggle: c, radio: l, dropdown: u } = r, d = i("div")(({ theme: e
118
120
  }
119
121
  };
120
122
  //#endregion
121
- export { p as default };
123
+ export { m as Main, m as default };