@pie-element/extended-text-entry 15.1.1-next.11 → 15.1.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/defaults.d.ts +166 -0
  4. package/dist/author/defaults.js +209 -0
  5. package/dist/author/index.d.ts +52 -0
  6. package/dist/author/index.js +74 -0
  7. package/dist/author/main.d.ts +26 -0
  8. package/dist/author/main.js +166 -0
  9. package/dist/browser/author/index.js +495 -0
  10. package/dist/browser/author/index.js.map +1 -0
  11. package/dist/browser/browser-kkT1XVKw.js +210 -0
  12. package/dist/browser/browser-kkT1XVKw.js.map +1 -0
  13. package/dist/browser/controller/index.js +184 -0
  14. package/dist/browser/controller/index.js.map +1 -0
  15. package/dist/browser/delivery/index.js +98 -0
  16. package/dist/browser/delivery/index.js.map +1 -0
  17. package/dist/browser/dist-D8VooYkz.js +49034 -0
  18. package/dist/browser/dist-D8VooYkz.js.map +1 -0
  19. package/dist/browser/extended-text-entry.css +2 -0
  20. package/dist/browser/main-C2oHx_V9.js +714 -0
  21. package/dist/browser/main-C2oHx_V9.js.map +1 -0
  22. package/dist/browser/print/index.js +53 -0
  23. package/dist/browser/print/index.js.map +1 -0
  24. package/dist/controller/defaults.d.ts +33 -0
  25. package/dist/controller/defaults.js +104 -0
  26. package/dist/controller/index.d.ts +59 -0
  27. package/dist/controller/index.js +72 -0
  28. package/dist/delivery/annotation/annotation-editor.d.ts +47 -0
  29. package/dist/delivery/annotation/annotation-editor.js +296 -0
  30. package/dist/delivery/annotation/annotation-menu.d.ts +25 -0
  31. package/dist/delivery/annotation/annotation-menu.js +113 -0
  32. package/dist/delivery/annotation/annotation-utils.d.ts +20 -0
  33. package/dist/delivery/annotation/annotation-utils.js +65 -0
  34. package/dist/delivery/annotation/freeform-editor.d.ts +30 -0
  35. package/dist/delivery/annotation/freeform-editor.js +143 -0
  36. package/dist/delivery/index.d.ts +23 -0
  37. package/dist/delivery/index.js +68 -0
  38. package/dist/delivery/main.d.ts +27 -0
  39. package/dist/delivery/main.js +134 -0
  40. package/dist/extended-text-entry.css +2 -0
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.iife.d.ts +8 -0
  43. package/dist/index.iife.js +403 -0
  44. package/dist/index.js +2 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  159. package/dist/print/index.d.ts +15 -0
  160. package/dist/print/index.js +49 -0
  161. package/package.json +83 -21
  162. package/CHANGELOG.json +0 -1282
  163. package/CHANGELOG.md +0 -2260
  164. package/LICENSE.md +0 -5
  165. package/README.md +0 -1
  166. package/configure/CHANGELOG.json +0 -922
  167. package/configure/CHANGELOG.md +0 -1949
  168. package/configure/lib/defaults.js +0 -224
  169. package/configure/lib/defaults.js.map +0 -1
  170. package/configure/lib/index.js +0 -125
  171. package/configure/lib/index.js.map +0 -1
  172. package/configure/lib/main.js +0 -247
  173. package/configure/lib/main.js.map +0 -1
  174. package/configure/package.json +0 -23
  175. package/controller/CHANGELOG.json +0 -362
  176. package/controller/CHANGELOG.md +0 -1179
  177. package/controller/lib/defaults.js +0 -91
  178. package/controller/lib/defaults.js.map +0 -1
  179. package/controller/lib/index.js +0 -101
  180. package/controller/lib/index.js.map +0 -1
  181. package/controller/package.json +0 -16
  182. package/docs/config-schema.json +0 -1782
  183. package/docs/config-schema.json.md +0 -1333
  184. package/docs/demo/config.js +0 -7
  185. package/docs/demo/generate.js +0 -14
  186. package/docs/demo/index.html +0 -3
  187. package/docs/demo/session.js +0 -7
  188. package/docs/pie-schema.json +0 -954
  189. package/docs/pie-schema.json.md +0 -717
  190. package/lib/annotation/annotation-editor.js +0 -636
  191. package/lib/annotation/annotation-editor.js.map +0 -1
  192. package/lib/annotation/annotation-menu.js +0 -147
  193. package/lib/annotation/annotation-menu.js.map +0 -1
  194. package/lib/annotation/annotation-utils.js +0 -205
  195. package/lib/annotation/annotation-utils.js.map +0 -1
  196. package/lib/annotation/freeform-editor.js +0 -241
  197. package/lib/annotation/freeform-editor.js.map +0 -1
  198. package/lib/index.js +0 -108
  199. package/lib/index.js.map +0 -1
  200. package/lib/main.js +0 -205
  201. package/lib/main.js.map +0 -1
  202. package/lib/print.js +0 -86
  203. package/lib/print.js.map +0 -1
  204. package/module/configure.js +0 -1
  205. package/module/controller.js +0 -139
  206. package/module/demo.js +0 -38
  207. package/module/element.js +0 -1
  208. package/module/index.html +0 -21
  209. package/module/manifest.json +0 -22
  210. package/module/print-demo.js +0 -76
  211. package/module/print.html +0 -18
  212. package/module/print.js +0 -1
@@ -0,0 +1,9 @@
1
+ import e from "./_baseGetTag.js";
2
+ import t from "./isObjectLike.js";
3
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
4
+ var n = "[object Symbol]";
5
+ function r(r) {
6
+ return typeof r == "symbol" || t(r) && e(r) == n;
7
+ }
8
+ //#endregion
9
+ export { r as default };
@@ -0,0 +1,7 @@
1
+ import e from "./_baseIsTypedArray.js";
2
+ import t from "./_baseUnary.js";
3
+ import n from "./_nodeUtil.js";
4
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
5
+ var r = n && n.isTypedArray, i = r ? t(r) : e;
6
+ //#endregion
7
+ export { i as default };
@@ -0,0 +1,9 @@
1
+ import e from "./isArrayLike.js";
2
+ import t from "./_arrayLikeKeys.js";
3
+ import n from "./_baseKeys.js";
4
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js
5
+ function r(r) {
6
+ return e(r) ? t(r) : n(r);
7
+ }
8
+ //#endregion
9
+ export { r as default };
@@ -0,0 +1,9 @@
1
+ import e from "./isArrayLike.js";
2
+ import t from "./_arrayLikeKeys.js";
3
+ import n from "./_baseKeysIn.js";
4
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
5
+ function r(r) {
6
+ return e(r) ? t(r, !0) : n(r);
7
+ }
8
+ //#endregion
9
+ export { r as default };
@@ -0,0 +1,7 @@
1
+ import e from "./_root.js";
2
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js
3
+ var t = function() {
4
+ return e.Date.now();
5
+ };
6
+ //#endregion
7
+ export { t as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
2
+ function e() {
3
+ return [];
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
2
+ function e() {
3
+ return !1;
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,19 @@
1
+ import e from "./isSymbol.js";
2
+ import t from "./_baseTrim.js";
3
+ import n from "./isObject.js";
4
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
5
+ var r = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
6
+ function c(c) {
7
+ if (typeof c == "number") return c;
8
+ if (e(c)) return r;
9
+ if (n(c)) {
10
+ var l = typeof c.valueOf == "function" ? c.valueOf() : c;
11
+ c = n(l) ? l + "" : l;
12
+ }
13
+ if (typeof c != "string") return c === 0 ? c : +c;
14
+ c = t(c);
15
+ var u = a.test(c);
16
+ return u || o.test(c) ? s(c.slice(2), u ? 2 : 8) : i.test(c) ? r : +c;
17
+ }
18
+ //#endregion
19
+ export { c as default };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/extended-text-entry/src/print.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 ExtendedTextEntryPrint extends HTMLElement {
10
+ constructor();
11
+ set options(o: any);
12
+ set model(s: any);
13
+ connectedCallback(): void;
14
+ disconnectedCallback(): void;
15
+ }
@@ -0,0 +1,49 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
+ import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js";
3
+ import n from "../delivery/main.js";
4
+ import r from "react";
5
+ import i from "debug";
6
+ import { createRoot as a } from "react-dom/client";
7
+ import { renderMath as o } from "@pie-element/shared-math-rendering-mathjax";
8
+ //#region src/print/index.tsx
9
+ var s = i("pie-element:extended-text-entry:print"), c = (t, n) => {
10
+ let r = n.role === "instructor", i = e(t);
11
+ return i.prompt = i.promptEnabled === !1 ? void 0 : i.prompt, i.teacherInstructions = r && i.teacherInstructionsEnabled !== !1 ? i.teacherInstructions : void 0, i.showTeacherInstructions = r, i.mode = r ? "evaluate" : i.mode, i.dimensions = {
12
+ height: 100,
13
+ width: 500,
14
+ ...i.dimensions
15
+ }, i.disabled = !0, i.feedback = void 0, i.animationsDisabled = !0, i;
16
+ }, l = class extends HTMLElement {
17
+ constructor() {
18
+ super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = t(() => {
19
+ if (this._model && this._session && this._options) {
20
+ let e = c(this._model, this._options), t = r.createElement(n, {
21
+ model: e,
22
+ session: {},
23
+ onChange: () => {},
24
+ onValueChange: () => {},
25
+ onAnnotationsChange: () => {},
26
+ onCommentChange: () => {}
27
+ });
28
+ this._root ||= a(this), this._root.render(t), queueMicrotask(() => {
29
+ s("render complete - render math"), o(this);
30
+ });
31
+ } else s("skip");
32
+ }, 50, {
33
+ leading: !1,
34
+ trailing: !0
35
+ });
36
+ }
37
+ set options(e) {
38
+ this._options = e, this._rerender();
39
+ }
40
+ set model(e) {
41
+ this._model = e, this._rerender();
42
+ }
43
+ connectedCallback() {}
44
+ disconnectedCallback() {
45
+ this._root && this._root.unmount();
46
+ }
47
+ };
48
+ //#endregion
49
+ export { l as default };
package/package.json CHANGED
@@ -1,38 +1,100 @@
1
1
  {
2
2
  "name": "@pie-element/extended-text-entry",
3
- "repository": "pie-framework/pie-elements",
4
- "version": "15.1.1-next.11+84119e88b",
3
+ "version": "15.1.2-next.0",
5
4
  "description": "",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "author": "pie framework developers",
10
- "license": "ISC",
11
5
  "dependencies": {
12
6
  "@emotion/react": "^11.14.0",
13
7
  "@emotion/style": "^0.8.0",
14
8
  "@mui/icons-material": "^7.3.4",
15
9
  "@mui/material": "^7.3.4",
16
- "@pie-framework/pie-player-events": "^0.1.0",
17
- "@pie-lib/config-ui": "13.0.5",
18
- "@pie-lib/editable-html-tip-tap": "2.1.3",
19
- "@pie-lib/math-rendering": "5.0.2",
20
- "@pie-lib/render-ui": "6.1.1",
10
+ "@pie-lib/config-ui": "13.0.3",
11
+ "@pie-lib/editable-html-tip-tap": "2.1.1",
12
+ "@pie-lib/render-ui": "6.1.0",
21
13
  "classnames": "^2.2.6",
22
14
  "debug": "^4.1.1",
23
15
  "lodash.throttle": "^4.1.1",
24
16
  "prop-types": "^15.8.1",
25
- "react": "18.3.1",
26
- "react-dom": "18.3.1"
17
+ "@pie-element/shared-configure-events": "0.1.0",
18
+ "@pie-element/shared-feedback": "0.1.0",
19
+ "@pie-element/shared-math-rendering-mathjax": "0.1.0",
20
+ "@pie-element/shared-player-events": "0.1.0",
21
+ "lodash-es": "^4.18.1",
22
+ "@emotion/core": "0.x.x"
27
23
  },
28
- "gitHead": "84119e88bfc3869f06f03cb7d63655060d30db73",
29
- "scripts": {
30
- "postpublish": "../../scripts/postpublish"
24
+ "peerDependencies": {
25
+ "react": "^18.0.0",
26
+ "react-dom": "^18.0.0"
31
27
  },
32
- "main": "lib/index.js",
33
- "module": "src/index.js",
34
28
  "exports": {
35
- ".": "./src/index.js",
36
- "./print": "./src/print.js"
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./dist/index.js"
32
+ },
33
+ "./delivery": {
34
+ "types": "./dist/delivery/index.d.ts",
35
+ "default": "./dist/delivery/index.js"
36
+ },
37
+ "./browser/delivery": {
38
+ "default": "./dist/browser/delivery/index.js"
39
+ },
40
+ "./author": {
41
+ "types": "./dist/author/index.d.ts",
42
+ "default": "./dist/author/index.js"
43
+ },
44
+ "./browser/author": {
45
+ "default": "./dist/browser/author/index.js"
46
+ },
47
+ "./configure": {
48
+ "types": "./dist/author/index.d.ts",
49
+ "default": "./dist/author/index.js"
50
+ },
51
+ "./controller": {
52
+ "types": "./dist/controller/index.d.ts",
53
+ "default": "./dist/controller/index.js"
54
+ },
55
+ "./controller.js": {
56
+ "types": "./dist/controller/index.d.ts",
57
+ "default": "./dist/controller/index.js"
58
+ },
59
+ "./browser/controller": {
60
+ "default": "./dist/browser/controller/index.js"
61
+ },
62
+ "./print": {
63
+ "types": "./dist/print/index.d.ts",
64
+ "default": "./dist/print/index.js"
65
+ },
66
+ "./browser/print": {
67
+ "default": "./dist/browser/print/index.js"
68
+ }
69
+ },
70
+ "type": "module",
71
+ "main": "./dist/index.js",
72
+ "types": "./dist/index.d.ts",
73
+ "files": [
74
+ "configure.js",
75
+ "controller.js",
76
+ "dist"
77
+ ],
78
+ "sideEffects": false,
79
+ "devDependencies": {
80
+ "vite": "^8.0.1",
81
+ "typescript": "^5.9.3",
82
+ "@vitejs/plugin-react": "^6.0.1",
83
+ "@types/react": "^18.2.0",
84
+ "@types/react-dom": "^18.2.0"
85
+ },
86
+ "scripts": {
87
+ "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
88
+ "dev": "bun x vite",
89
+ "demo": "bun x vite --mode demo",
90
+ "test": "bun x vitest run"
91
+ },
92
+ "pie": {
93
+ "controller": "@pie-element/extended-text-entry/controller",
94
+ "configure": "@pie-element/extended-text-entry/configure",
95
+ "browserSharedDependencies": {
96
+ "react": "18.2.0",
97
+ "react-dom": "18.2.0"
98
+ }
37
99
  }
38
100
  }