@pie-element/extended-text-entry 15.1.0-next.28 → 15.1.1-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.
Files changed (195) hide show
  1. package/dist/author/defaults.d.ts +166 -0
  2. package/dist/author/defaults.js +209 -0
  3. package/dist/author/index.d.ts +52 -0
  4. package/dist/author/index.js +74 -0
  5. package/dist/author/main.d.ts +26 -0
  6. package/dist/author/main.js +166 -0
  7. package/dist/controller/defaults.d.ts +33 -0
  8. package/dist/controller/defaults.js +104 -0
  9. package/dist/controller/index.d.ts +59 -0
  10. package/dist/controller/index.js +72 -0
  11. package/dist/delivery/annotation/annotation-editor.d.ts +47 -0
  12. package/dist/delivery/annotation/annotation-editor.js +296 -0
  13. package/dist/delivery/annotation/annotation-menu.d.ts +25 -0
  14. package/dist/delivery/annotation/annotation-menu.js +113 -0
  15. package/dist/delivery/annotation/annotation-utils.d.ts +20 -0
  16. package/dist/delivery/annotation/annotation-utils.js +65 -0
  17. package/dist/delivery/annotation/freeform-editor.d.ts +30 -0
  18. package/dist/delivery/annotation/freeform-editor.js +143 -0
  19. package/dist/delivery/index.d.ts +23 -0
  20. package/dist/delivery/index.js +68 -0
  21. package/dist/delivery/main.d.ts +27 -0
  22. package/dist/delivery/main.js +134 -0
  23. package/dist/extended-text-entry.css +2 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.iife.d.ts +8 -0
  26. package/dist/index.iife.js +404 -0
  27. package/dist/index.js +2 -0
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  142. package/dist/print/index.d.ts +15 -0
  143. package/dist/print/index.js +49 -0
  144. package/package.json +58 -23
  145. package/CHANGELOG.json +0 -1282
  146. package/CHANGELOG.md +0 -2252
  147. package/LICENSE.md +0 -5
  148. package/README.md +0 -1
  149. package/configure/CHANGELOG.json +0 -922
  150. package/configure/CHANGELOG.md +0 -1942
  151. package/configure/lib/defaults.js +0 -224
  152. package/configure/lib/defaults.js.map +0 -1
  153. package/configure/lib/index.js +0 -125
  154. package/configure/lib/index.js.map +0 -1
  155. package/configure/lib/main.js +0 -247
  156. package/configure/lib/main.js.map +0 -1
  157. package/configure/package.json +0 -23
  158. package/controller/CHANGELOG.json +0 -362
  159. package/controller/CHANGELOG.md +0 -1172
  160. package/controller/lib/defaults.js +0 -91
  161. package/controller/lib/defaults.js.map +0 -1
  162. package/controller/lib/index.js +0 -101
  163. package/controller/lib/index.js.map +0 -1
  164. package/controller/package.json +0 -16
  165. package/docs/config-schema.json +0 -1782
  166. package/docs/config-schema.json.md +0 -1333
  167. package/docs/demo/config.js +0 -7
  168. package/docs/demo/generate.js +0 -14
  169. package/docs/demo/index.html +0 -3
  170. package/docs/demo/session.js +0 -7
  171. package/docs/pie-schema.json +0 -954
  172. package/docs/pie-schema.json.md +0 -717
  173. package/lib/annotation/annotation-editor.js +0 -636
  174. package/lib/annotation/annotation-editor.js.map +0 -1
  175. package/lib/annotation/annotation-menu.js +0 -147
  176. package/lib/annotation/annotation-menu.js.map +0 -1
  177. package/lib/annotation/annotation-utils.js +0 -205
  178. package/lib/annotation/annotation-utils.js.map +0 -1
  179. package/lib/annotation/freeform-editor.js +0 -241
  180. package/lib/annotation/freeform-editor.js.map +0 -1
  181. package/lib/index.js +0 -108
  182. package/lib/index.js.map +0 -1
  183. package/lib/main.js +0 -205
  184. package/lib/main.js.map +0 -1
  185. package/lib/print.js +0 -86
  186. package/lib/print.js.map +0 -1
  187. package/module/configure.js +0 -1
  188. package/module/controller.js +0 -139
  189. package/module/demo.js +0 -38
  190. package/module/element.js +0 -1
  191. package/module/index.html +0 -21
  192. package/module/manifest.json +0 -22
  193. package/module/print-demo.js +0 -76
  194. package/module/print.html +0 -18
  195. package/module/print.js +0 -1
@@ -0,0 +1,166 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/extended-text-entry/configure/src/defaults.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ declare const _default: {
10
+ model: {
11
+ annotationsEnabled: boolean;
12
+ dimensions: {
13
+ height: number;
14
+ width: number;
15
+ };
16
+ equationEditor: string;
17
+ feedbackEnabled: boolean;
18
+ mathInput: boolean;
19
+ playerSpellCheckDisabled: boolean;
20
+ predefinedAnnotations: {
21
+ label: string;
22
+ text: string;
23
+ type: string;
24
+ }[];
25
+ prompt: string;
26
+ promptEnabled: boolean;
27
+ rationale: string;
28
+ rationaleEnabled: boolean;
29
+ spanishInput: boolean;
30
+ specialInput: boolean;
31
+ spellCheckEnabled: boolean;
32
+ studentInstructionsEnabled: boolean;
33
+ teacherInstructions: string;
34
+ teacherInstructionsEnabled: boolean;
35
+ toolbarEditorPosition: string;
36
+ };
37
+ configuration: {
38
+ annotations: {
39
+ settings: boolean;
40
+ label: string;
41
+ };
42
+ baseInputConfiguration: {
43
+ audio: {
44
+ disabled: boolean;
45
+ };
46
+ video: {
47
+ disabled: boolean;
48
+ };
49
+ image: {
50
+ disabled: boolean;
51
+ };
52
+ h3: {
53
+ disabled: boolean;
54
+ };
55
+ blockquote: {
56
+ disabled: boolean;
57
+ };
58
+ textAlign: {
59
+ disabled: boolean;
60
+ };
61
+ showParagraphs: {
62
+ disabled: boolean;
63
+ };
64
+ separateParagraphs: {
65
+ disabled: boolean;
66
+ };
67
+ };
68
+ dimensions: {
69
+ settings: boolean;
70
+ label: string;
71
+ };
72
+ spellCheck: {
73
+ label: string;
74
+ settings: boolean;
75
+ enabled: boolean;
76
+ };
77
+ playerSpellCheck: {
78
+ label: string;
79
+ settings: boolean;
80
+ enabled: boolean;
81
+ };
82
+ equationEditor: {
83
+ settings: boolean;
84
+ label: string;
85
+ enabled: boolean;
86
+ };
87
+ feedback: {
88
+ settings: boolean;
89
+ label: string;
90
+ };
91
+ mathInput: {
92
+ settings: boolean;
93
+ label: string;
94
+ enabled: boolean;
95
+ };
96
+ settingsPanelDisabled: boolean;
97
+ spanishInput: {
98
+ settings: boolean;
99
+ label: string;
100
+ enabled: boolean;
101
+ };
102
+ specialInput: {
103
+ settings: boolean;
104
+ label: string;
105
+ enabled: boolean;
106
+ };
107
+ multiple: {
108
+ settings: boolean;
109
+ label: string;
110
+ enabled: boolean;
111
+ };
112
+ studentInstructions: {
113
+ settings: boolean;
114
+ label: string;
115
+ };
116
+ prompt: {
117
+ settings: boolean;
118
+ label: string;
119
+ inputConfiguration: {
120
+ audio: {
121
+ disabled: boolean;
122
+ };
123
+ video: {
124
+ disabled: boolean;
125
+ };
126
+ image: {
127
+ disabled: boolean;
128
+ };
129
+ };
130
+ required: boolean;
131
+ };
132
+ teacherInstructions: {
133
+ settings: boolean;
134
+ label: string;
135
+ inputConfiguration: {
136
+ audio: {
137
+ disabled: boolean;
138
+ };
139
+ video: {
140
+ disabled: boolean;
141
+ };
142
+ image: {
143
+ disabled: boolean;
144
+ };
145
+ };
146
+ required: boolean;
147
+ };
148
+ maxImageWidth: {
149
+ teacherInstructions: number;
150
+ prompt: number;
151
+ };
152
+ maxImageHeight: {
153
+ teacherInstructions: number;
154
+ prompt: number;
155
+ };
156
+ withRubric: {
157
+ settings: boolean;
158
+ label: string;
159
+ };
160
+ mathMlOptions: {
161
+ mmlOutput: boolean;
162
+ mmlEditing: boolean;
163
+ };
164
+ };
165
+ };
166
+ export default _default;
@@ -0,0 +1,209 @@
1
+ //#region src/author/defaults.ts
2
+ var e = {
3
+ model: {
4
+ annotationsEnabled: !1,
5
+ dimensions: {
6
+ height: 100,
7
+ width: 500
8
+ },
9
+ equationEditor: "Grade 8 - HS",
10
+ feedbackEnabled: !1,
11
+ mathInput: !1,
12
+ playerSpellCheckDisabled: !0,
13
+ predefinedAnnotations: [
14
+ {
15
+ label: "good",
16
+ text: "good",
17
+ type: "positive"
18
+ },
19
+ {
20
+ label: "★",
21
+ text: "★",
22
+ type: "positive"
23
+ },
24
+ {
25
+ label: ":-)",
26
+ text: ":-)",
27
+ type: "positive"
28
+ },
29
+ {
30
+ label: "creative",
31
+ text: "creative",
32
+ type: "positive"
33
+ },
34
+ {
35
+ label: "run-on",
36
+ text: "run-on",
37
+ type: "negative"
38
+ },
39
+ {
40
+ label: "frag",
41
+ text: "fragment",
42
+ type: "negative"
43
+ },
44
+ {
45
+ label: "tran",
46
+ text: "transition",
47
+ type: "negative"
48
+ },
49
+ {
50
+ label: "supp",
51
+ text: "support needed",
52
+ type: "negative"
53
+ },
54
+ {
55
+ label: "punc",
56
+ text: "punctuation",
57
+ type: "negative"
58
+ },
59
+ {
60
+ label: "agr",
61
+ text: "agreement wrong",
62
+ type: "negative"
63
+ },
64
+ {
65
+ label: "unclear",
66
+ text: "unclear",
67
+ type: "negative"
68
+ },
69
+ {
70
+ label: "cut",
71
+ text: "cut",
72
+ type: "negative"
73
+ },
74
+ {
75
+ label: "sp",
76
+ text: "spelling",
77
+ type: "negative"
78
+ },
79
+ {
80
+ label: "cap",
81
+ text: "capitalization",
82
+ type: "negative"
83
+ },
84
+ {
85
+ label: "inf",
86
+ text: "informal",
87
+ type: "negative"
88
+ },
89
+ {
90
+ label: "awk",
91
+ text: "awkward",
92
+ type: "negative"
93
+ }
94
+ ],
95
+ prompt: "",
96
+ promptEnabled: !0,
97
+ rationale: "",
98
+ rationaleEnabled: !0,
99
+ spanishInput: !1,
100
+ specialInput: !1,
101
+ spellCheckEnabled: !0,
102
+ studentInstructionsEnabled: !0,
103
+ teacherInstructions: "",
104
+ teacherInstructionsEnabled: !0,
105
+ toolbarEditorPosition: "bottom"
106
+ },
107
+ configuration: {
108
+ annotations: {
109
+ settings: !1,
110
+ label: "Annotations"
111
+ },
112
+ baseInputConfiguration: {
113
+ audio: { disabled: !1 },
114
+ video: { disabled: !1 },
115
+ image: { disabled: !1 },
116
+ h3: { disabled: !0 },
117
+ blockquote: { disabled: !0 },
118
+ textAlign: { disabled: !0 },
119
+ showParagraphs: { disabled: !1 },
120
+ separateParagraphs: { disabled: !0 }
121
+ },
122
+ dimensions: {
123
+ settings: !0,
124
+ label: "Text-Entry Display Size"
125
+ },
126
+ spellCheck: {
127
+ label: "Spellcheck",
128
+ settings: !1,
129
+ enabled: !0
130
+ },
131
+ playerSpellCheck: {
132
+ label: "Disable Student Spellcheck",
133
+ settings: !0,
134
+ enabled: !0
135
+ },
136
+ equationEditor: {
137
+ settings: !1,
138
+ label: "Equation Editor",
139
+ enabled: !0
140
+ },
141
+ feedback: {
142
+ settings: !0,
143
+ label: "Feedback"
144
+ },
145
+ mathInput: {
146
+ settings: !0,
147
+ label: "Student response can include math notation",
148
+ enabled: !1
149
+ },
150
+ settingsPanelDisabled: !1,
151
+ spanishInput: {
152
+ settings: !0,
153
+ label: "Students can insert Spanish",
154
+ enabled: !1
155
+ },
156
+ specialInput: {
157
+ settings: !0,
158
+ label: "Students can insert Special Characters",
159
+ enabled: !1
160
+ },
161
+ multiple: {
162
+ settings: !1,
163
+ label: "Multiple Parts",
164
+ enabled: !1
165
+ },
166
+ studentInstructions: {
167
+ settings: !1,
168
+ label: "Student Instructions"
169
+ },
170
+ prompt: {
171
+ settings: !0,
172
+ label: "Prompt",
173
+ inputConfiguration: {
174
+ audio: { disabled: !1 },
175
+ video: { disabled: !1 },
176
+ image: { disabled: !1 }
177
+ },
178
+ required: !1
179
+ },
180
+ teacherInstructions: {
181
+ settings: !0,
182
+ label: "Teacher Instructions",
183
+ inputConfiguration: {
184
+ audio: { disabled: !1 },
185
+ video: { disabled: !1 },
186
+ image: { disabled: !1 }
187
+ },
188
+ required: !1
189
+ },
190
+ maxImageWidth: {
191
+ teacherInstructions: 300,
192
+ prompt: 300
193
+ },
194
+ maxImageHeight: {
195
+ teacherInstructions: 300,
196
+ prompt: 300
197
+ },
198
+ withRubric: {
199
+ settings: !1,
200
+ label: "Add Rubric"
201
+ },
202
+ mathMlOptions: {
203
+ mmlOutput: !1,
204
+ mmlEditing: !1
205
+ }
206
+ }
207
+ };
208
+ //#endregion
209
+ export { e as default };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/extended-text-entry/configure/src/index.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export default class ExtendedTextEntry extends HTMLElement {
10
+ static createDefaultModel: (model: {} | undefined, config: any) => {
11
+ annotationsEnabled: boolean;
12
+ dimensions: {
13
+ height: number;
14
+ width: number;
15
+ };
16
+ equationEditor: string;
17
+ feedbackEnabled: boolean;
18
+ mathInput: boolean;
19
+ playerSpellCheckDisabled: boolean;
20
+ predefinedAnnotations: {
21
+ label: string;
22
+ text: string;
23
+ type: string;
24
+ }[];
25
+ prompt: string;
26
+ promptEnabled: boolean;
27
+ rationale: string;
28
+ rationaleEnabled: boolean;
29
+ spanishInput: boolean;
30
+ specialInput: boolean;
31
+ spellCheckEnabled: boolean;
32
+ studentInstructionsEnabled: boolean;
33
+ teacherInstructions: string;
34
+ teacherInstructionsEnabled: boolean;
35
+ toolbarEditorPosition: string;
36
+ };
37
+ constructor();
38
+ set model(m: any);
39
+ set configuration(c: any);
40
+ onModelChanged(m: any): void;
41
+ onConfigurationChanged(c: any): void;
42
+ /**
43
+ *
44
+ * @param {done, progress, file} handler
45
+ */
46
+ insertImage(handler: any): void;
47
+ onDeleteImage(src: any, done: any): void;
48
+ insertSound(handler: any): void;
49
+ onDeleteSound(src: any, done: any): void;
50
+ render(): void;
51
+ disconnectedCallback(): void;
52
+ }
@@ -0,0 +1,74 @@
1
+ import e from "./main.js";
2
+ import t from "./defaults.js";
3
+ import n from "react";
4
+ import { createRoot as r } from "react-dom/client";
5
+ import { DeleteImageEvent as i, DeleteSoundEvent as a, InsertImageEvent as o, InsertSoundEvent as s, ModelUpdatedEvent as c } from "@pie-element/shared-configure-events";
6
+ //#region src/author/index.ts
7
+ var l = class l extends HTMLElement {
8
+ static createDefaultModel = (e = {}, n) => {
9
+ let r = {
10
+ ...t.model,
11
+ ...e
12
+ };
13
+ return n?.withRubric?.forceEnabled && !r.rubricEnabled && (r.rubricEnabled = !0), r;
14
+ };
15
+ constructor() {
16
+ super(), this._root = null, this._configuration = t.configuration, this._configuration.withRubric?.forceEnabled && (this._configuration.withRubric.settings = !1), this._model = l.createDefaultModel({}, this._configuration);
17
+ }
18
+ set model(e) {
19
+ this._model = l.createDefaultModel(e, this._configuration), this.render();
20
+ }
21
+ set configuration(e) {
22
+ this._configuration = {
23
+ ...t.configuration,
24
+ ...e
25
+ };
26
+ let { withRubric: n = {} } = e || {};
27
+ n?.forceEnabled && (this._configuration.withRubric.settings = !1, this._model.rubricEnabled || (this._model.rubricEnabled = !0)), this.render();
28
+ }
29
+ onModelChanged(e) {
30
+ this._model = e, this.render(), this.dispatchEvent(new c(this._model, !1));
31
+ }
32
+ onConfigurationChanged(e) {
33
+ this._configuration = {
34
+ ...t.configuration,
35
+ ...e
36
+ }, this._model && this.onModelChanged(this._model), this.render();
37
+ }
38
+ insertImage(e) {
39
+ this.dispatchEvent(new o(e));
40
+ }
41
+ onDeleteImage(e, t) {
42
+ this.dispatchEvent(new i(e, t));
43
+ }
44
+ insertSound(e) {
45
+ this.dispatchEvent(new s(e));
46
+ }
47
+ onDeleteSound(e, t) {
48
+ this.dispatchEvent(new a(e, t));
49
+ }
50
+ render() {
51
+ if (this._model) {
52
+ let t = n.createElement(e, {
53
+ model: this._model,
54
+ configuration: this._configuration,
55
+ onModelChanged: this.onModelChanged.bind(this),
56
+ onConfigurationChanged: this.onConfigurationChanged.bind(this),
57
+ imageSupport: {
58
+ add: this.insertImage.bind(this),
59
+ delete: this.onDeleteImage.bind(this)
60
+ },
61
+ uploadSoundSupport: {
62
+ add: this.insertSound.bind(this),
63
+ delete: this.onDeleteSound.bind(this)
64
+ }
65
+ });
66
+ this._root ||= r(this), this._root.render(t);
67
+ }
68
+ }
69
+ disconnectedCallback() {
70
+ this._root && this._root.unmount();
71
+ }
72
+ };
73
+ //#endregion
74
+ export { l as default };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/extended-text-entry/configure/src/main.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class Main extends React.Component {
12
+ static propTypes: {
13
+ onModelChanged: PropTypes.Validator<(...args: any[]) => any>;
14
+ onConfigurationChanged: PropTypes.Requireable<(...args: any[]) => any>;
15
+ model: PropTypes.Validator<object>;
16
+ configuration: PropTypes.Validator<object>;
17
+ imageSupport: PropTypes.Validator<object>;
18
+ uploadSoundSupport: PropTypes.Validator<object>;
19
+ };
20
+ constructor(props: any);
21
+ onPromptChange: any;
22
+ changeFeedback: any;
23
+ changeTeacherInstructions: any;
24
+ render(): React.JSX.Element;
25
+ }
26
+ export default Main;
@@ -0,0 +1,166 @@
1
+ import e from "react";
2
+ import t from "prop-types";
3
+ import n from "@mui/material/Typography";
4
+ import { styled as r } from "@mui/material/styles";
5
+ import i, { ALL_PLUGINS as a } from "@pie-lib/editable-html-tip-tap";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { FeedbackSelector as c, InputContainer as l, layout as u, settings as d } from "@pie-lib/config-ui";
8
+ //#region src/author/main.tsx
9
+ var { Panel: f, toggle: p, numberFields: m, dropdown: h } = d, g = {
10
+ type: "default",
11
+ default: "Your answer has been submitted"
12
+ }, _ = r(n)(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), v = r(l)(({ theme: e }) => ({
13
+ paddingTop: e.spacing(1),
14
+ marginTop: e.spacing(2),
15
+ marginBottom: e.spacing(2),
16
+ width: "100%"
17
+ })), y = r("div")(({ theme: e }) => ({
18
+ fontSize: e.typography.fontSize - 2,
19
+ color: e.palette.error.main,
20
+ paddingTop: e.spacing(1)
21
+ })), b = class extends e.Component {
22
+ static propTypes = {
23
+ onModelChanged: t.func.isRequired,
24
+ onConfigurationChanged: t.func,
25
+ model: t.object.isRequired,
26
+ configuration: t.object.isRequired,
27
+ imageSupport: t.object.isRequired,
28
+ uploadSoundSupport: t.object.isRequired
29
+ };
30
+ constructor(e) {
31
+ super(e), this.state = { setDimensions: !0 };
32
+ }
33
+ onPromptChange = (e) => {
34
+ let { onModelChanged: t, model: n } = this.props;
35
+ t({
36
+ ...n,
37
+ prompt: e
38
+ });
39
+ };
40
+ changeFeedback = (e) => {
41
+ let { model: t, onModelChanged: n } = this.props;
42
+ n({
43
+ ...t,
44
+ feedback: e
45
+ });
46
+ };
47
+ changeTeacherInstructions = (e) => {
48
+ let { model: t, onModelChanged: n } = this.props;
49
+ n({
50
+ ...t,
51
+ teacherInstructions: e
52
+ });
53
+ };
54
+ render() {
55
+ let { model: t, configuration: n, imageSupport: r, onConfigurationChanged: l, onModelChanged: d, uploadSoundSupport: b } = this.props, { annotations: x = {}, contentDimensions: S = {}, dimensions: C = {}, equationEditor: w = {}, feedback: T = {}, playerSpellCheck: E = {}, prompt: D = {}, settingsPanelDisabled: ee, spanishInput: O = {}, specialInput: k = {}, spellCheck: A = {}, studentInstructions: j = {}, teacherInstructions: M = {}, mathInput: N = {}, maxImageWidth: P = {}, maxImageHeight: F = {}, multiple: I = {}, withRubric: L = {}, mathMlOptions: R = {}, baseInputConfiguration: z = {} } = n || {}, { errors: B = {}, extraCSSRules: V, feedbackEnabled: H, promptEnabled: U, spellCheckEnabled: W, teacherInstructionsEnabled: G, toolbarEditorPosition: K } = t || {}, { prompt: q, teacherInstructions: J } = B, Y = P && P.prompt, X = F && F.prompt, Z = { position: K === "top" ? "top" : "bottom" }, Q = {
56
+ mathInput: N.settings && p(N.label),
57
+ equationEditor: w.enabled && t.mathInput && h(w.label, [
58
+ "non-negative-integers",
59
+ "integers",
60
+ "decimals",
61
+ "fractions",
62
+ "Grade 1 - 2",
63
+ "Grade 3 - 5",
64
+ "Grade 6 - 7",
65
+ "Grade 8 - HS",
66
+ "geometry",
67
+ "advanced-algebra",
68
+ "statistics",
69
+ "item-authoring"
70
+ ]),
71
+ spanishInput: O.settings && p(O.label),
72
+ specialInput: k.settings && p(k.label),
73
+ dimensions: C.settings && m(C.label, {
74
+ width: {
75
+ label: "Width (px)",
76
+ suffix: "px",
77
+ min: 100,
78
+ max: 1200
79
+ },
80
+ height: {
81
+ label: "Height (px)",
82
+ suffix: "px",
83
+ min: 100,
84
+ max: 500
85
+ }
86
+ }),
87
+ "multiple.enabled": I.settings && p(I.label, !0),
88
+ promptEnabled: D.settings && p(D.label),
89
+ feedbackEnabled: T.settings && p(T.label),
90
+ annotationsEnabled: x.settings && p(x.label),
91
+ spellCheckEnabled: A.settings && p(A.label),
92
+ playerSpellCheckDisabled: E.settings && p(E.label)
93
+ }, te = {
94
+ teacherInstructionsEnabled: M.settings && p(M.label),
95
+ studentInstructionsEnabled: j.settings && p(j.label),
96
+ rubricEnabled: L?.settings && p(L?.label)
97
+ }, $ = (e) => Object.assign({ ...z }, e || {});
98
+ return /* @__PURE__ */ s(u.ConfigLayout, {
99
+ extraCSSRules: V,
100
+ dimensions: S,
101
+ hideSettings: ee,
102
+ settings: /* @__PURE__ */ o(f, {
103
+ model: t,
104
+ configuration: n,
105
+ onChangeModel: (e) => d(e),
106
+ onChangeConfiguration: (e) => l(e),
107
+ groups: {
108
+ Settings: Q,
109
+ Properties: te
110
+ }
111
+ }),
112
+ children: [
113
+ G && /* @__PURE__ */ s(v, {
114
+ label: M.label,
115
+ children: [/* @__PURE__ */ o(i, {
116
+ className: "prompt",
117
+ markup: t.teacherInstructions || "",
118
+ onChange: this.changeTeacherInstructions,
119
+ imageSupport: r,
120
+ nonEmpty: !1,
121
+ error: J,
122
+ toolbarOpts: Z,
123
+ spellCheck: W,
124
+ maxImageWidth: P && P.teacherInstructions || Y,
125
+ maxImageHeight: F && F.teacherInstructions || X,
126
+ uploadSoundSupport: b,
127
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
128
+ mathMlOptions: R,
129
+ pluginProps: $(M?.inputConfiguration)
130
+ }), J && /* @__PURE__ */ o(y, { children: J })]
131
+ }),
132
+ U && /* @__PURE__ */ s(v, {
133
+ label: D.label,
134
+ children: [/* @__PURE__ */ o(i, {
135
+ activePlugins: a,
136
+ className: "prompt",
137
+ markup: t.prompt || "",
138
+ onChange: this.onPromptChange,
139
+ imageSupport: r,
140
+ nonEmpty: !1,
141
+ error: q,
142
+ toolbarOpts: Z,
143
+ spellCheck: W,
144
+ maxImageWidth: Y,
145
+ maxImageHeight: X,
146
+ uploadSoundSupport: b,
147
+ languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
148
+ mathMlOptions: R,
149
+ pluginProps: $(D?.inputConfiguration)
150
+ }), q && /* @__PURE__ */ o(y, { children: q })]
151
+ }),
152
+ H && /* @__PURE__ */ s(e.Fragment, { children: [/* @__PURE__ */ o(_, {
153
+ variant: "h6",
154
+ children: "Feedback"
155
+ }), /* @__PURE__ */ o(c, {
156
+ label: "When submitted, show",
157
+ feedback: t.feedback || g,
158
+ onChange: this.changeFeedback,
159
+ toolbarOpts: Z
160
+ })] })
161
+ ]
162
+ });
163
+ }
164
+ };
165
+ //#endregion
166
+ export { b as default };