@pie-element/explicit-constructed-response 11.1.0-next.28 → 11.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 (280) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +4 -0
  2. package/dist/author/alternateResponses.d.ts +34 -0
  3. package/dist/author/alternateResponses.js +116 -0
  4. package/dist/author/alternateSection.d.ts +58 -0
  5. package/dist/author/alternateSection.js +215 -0
  6. package/dist/author/defaults.d.ts +186 -0
  7. package/dist/author/defaults.js +128 -0
  8. package/dist/author/ecr-toolbar.d.ts +41 -0
  9. package/dist/author/ecr-toolbar.js +100 -0
  10. package/dist/author/index.d.ts +42 -0
  11. package/dist/author/index.js +97 -0
  12. package/dist/author/main.d.ts +38 -0
  13. package/dist/author/main.js +294 -0
  14. package/dist/author/markupUtils.d.ts +14 -0
  15. package/dist/author/markupUtils.js +13 -0
  16. package/dist/author/utils.d.ts +9 -0
  17. package/dist/author/utils.js +7 -0
  18. package/dist/controller/defaults.d.ts +25 -0
  19. package/dist/controller/defaults.js +19 -0
  20. package/dist/controller/index.d.ts +64 -0
  21. package/dist/controller/index.js +142 -0
  22. package/dist/delivery/index.d.ts +20 -0
  23. package/dist/delivery/index.js +66 -0
  24. package/dist/delivery/main.d.ts +48 -0
  25. package/dist/delivery/main.js +117 -0
  26. package/dist/explicit-constructed-response.css +2 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.iife.d.ts +8 -0
  29. package/dist/index.iife.js +394 -0
  30. package/dist/index.js +2 -0
  31. package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +3993 -0
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +11 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +6 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +11 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +9 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +9 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +15 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  225. package/dist/print/index.d.ts +15 -0
  226. package/dist/print/index.js +40 -0
  227. package/package.json +62 -25
  228. package/CHANGELOG.json +0 -1102
  229. package/CHANGELOG.md +0 -2175
  230. package/LICENSE.md +0 -5
  231. package/README.md +0 -1
  232. package/configure/CHANGELOG.json +0 -652
  233. package/configure/CHANGELOG.md +0 -1917
  234. package/configure/lib/alternateResponses.js +0 -199
  235. package/configure/lib/alternateResponses.js.map +0 -1
  236. package/configure/lib/alternateSection.js +0 -329
  237. package/configure/lib/alternateSection.js.map +0 -1
  238. package/configure/lib/defaults.js +0 -184
  239. package/configure/lib/defaults.js.map +0 -1
  240. package/configure/lib/ecr-toolbar.js +0 -181
  241. package/configure/lib/ecr-toolbar.js.map +0 -1
  242. package/configure/lib/index.js +0 -161
  243. package/configure/lib/index.js.map +0 -1
  244. package/configure/lib/main.js +0 -514
  245. package/configure/lib/main.js.map +0 -1
  246. package/configure/lib/markupUtils.js +0 -70
  247. package/configure/lib/markupUtils.js.map +0 -1
  248. package/configure/lib/utils.js +0 -15
  249. package/configure/lib/utils.js.map +0 -1
  250. package/configure/package.json +0 -22
  251. package/controller/CHANGELOG.json +0 -517
  252. package/controller/CHANGELOG.md +0 -1333
  253. package/controller/lib/defaults.js +0 -23
  254. package/controller/lib/defaults.js.map +0 -1
  255. package/controller/lib/index.js +0 -368
  256. package/controller/lib/index.js.map +0 -1
  257. package/controller/package.json +0 -18
  258. package/docs/config-schema.json +0 -2629
  259. package/docs/config-schema.json.md +0 -1941
  260. package/docs/demo/config.js +0 -8
  261. package/docs/demo/generate.js +0 -20
  262. package/docs/demo/index.html +0 -1
  263. package/docs/demo/session.js +0 -10
  264. package/docs/pie-schema.json +0 -1130
  265. package/docs/pie-schema.json.md +0 -814
  266. package/lib/index.js +0 -91
  267. package/lib/index.js.map +0 -1
  268. package/lib/main.js +0 -205
  269. package/lib/main.js.map +0 -1
  270. package/lib/print.js +0 -71
  271. package/lib/print.js.map +0 -1
  272. package/module/configure.js +0 -1
  273. package/module/controller.js +0 -6534
  274. package/module/demo.js +0 -45
  275. package/module/element.js +0 -1
  276. package/module/index.html +0 -21
  277. package/module/manifest.json +0 -18
  278. package/module/print-demo.js +0 -83
  279. package/module/print.html +0 -18
  280. package/module/print.js +0 -1
@@ -0,0 +1,128 @@
1
+ //#region src/author/defaults.ts
2
+ var e = {
3
+ model: {
4
+ choices: {},
5
+ displayType: "block",
6
+ markup: "",
7
+ maxLengthPerChoiceEnabled: !0,
8
+ playerSpellCheckEnabled: !0,
9
+ prompt: "",
10
+ promptEnabled: !0,
11
+ rationale: "",
12
+ rationaleEnabled: !0,
13
+ spellCheckEnabled: !0,
14
+ studentInstructionsEnabled: !0,
15
+ teacherInstructions: "",
16
+ teacherInstructionsEnabled: !0,
17
+ toolbarEditorPosition: "bottom",
18
+ responseAreaInputConfiguration: {}
19
+ },
20
+ configuration: {
21
+ baseInputConfiguration: {
22
+ h3: { disabled: !0 },
23
+ html: { disabled: !0 },
24
+ audio: { disabled: !1 },
25
+ video: { disabled: !1 },
26
+ image: { disabled: !1 },
27
+ textAlign: { disabled: !0 },
28
+ showParagraphs: { disabled: !1 },
29
+ separateParagraphs: { disabled: !0 }
30
+ },
31
+ prompt: {
32
+ settings: !0,
33
+ label: "Prompt",
34
+ inputConfiguration: {
35
+ audio: { disabled: !1 },
36
+ video: { disabled: !1 },
37
+ image: { disabled: !1 }
38
+ },
39
+ required: !1
40
+ },
41
+ partialScoring: {
42
+ settings: !1,
43
+ label: "Allow Partial Scoring"
44
+ },
45
+ rationale: {
46
+ settings: !0,
47
+ label: "Rationale",
48
+ inputConfiguration: {
49
+ audio: { disabled: !1 },
50
+ video: { disabled: !1 },
51
+ image: { disabled: !1 }
52
+ },
53
+ required: !1
54
+ },
55
+ settingsPanelDisabled: !1,
56
+ spellCheck: {
57
+ label: "Spellcheck",
58
+ settings: !1,
59
+ enabled: !0
60
+ },
61
+ editSource: {
62
+ label: "Edit Source",
63
+ settings: !1,
64
+ enabled: !1
65
+ },
66
+ playerSpellCheck: {
67
+ label: "Student Spellcheck",
68
+ settings: !0,
69
+ enabled: !0
70
+ },
71
+ teacherInstructions: {
72
+ settings: !0,
73
+ label: "Teacher Instructions",
74
+ inputConfiguration: {
75
+ audio: { disabled: !1 },
76
+ video: { disabled: !1 },
77
+ image: { disabled: !1 }
78
+ },
79
+ required: !1
80
+ },
81
+ template: { inputConfiguration: {
82
+ audio: { disabled: !1 },
83
+ video: { disabled: !1 },
84
+ image: { disabled: !1 },
85
+ h3: { disabled: !0 },
86
+ blockquote: { disabled: !0 }
87
+ } },
88
+ maxLengthPerChoice: {
89
+ settings: !0,
90
+ label: "Maximum Length Per Choice"
91
+ },
92
+ maxResponseAreas: 10,
93
+ maxImageWidth: {
94
+ teacherInstructions: 300,
95
+ prompt: 300,
96
+ rationale: 300
97
+ },
98
+ maxImageHeight: {
99
+ teacherInstructions: 300,
100
+ prompt: 300,
101
+ rationale: 300
102
+ },
103
+ withRubric: {
104
+ settings: !1,
105
+ label: "Add Rubric"
106
+ },
107
+ mathMlOptions: {
108
+ mmlOutput: !1,
109
+ mmlEditing: !1
110
+ },
111
+ language: {
112
+ settings: !1,
113
+ label: "Specify Language",
114
+ enabled: !1
115
+ },
116
+ languageChoices: {
117
+ label: "Language Choices",
118
+ options: []
119
+ },
120
+ responseAreaInputConfiguration: { inputConfiguration: { characters: { disabled: !0 } } },
121
+ spanishButton: {
122
+ settings: !0,
123
+ label: "Disable Spanish Characters"
124
+ }
125
+ }
126
+ };
127
+ //#endregion
128
+ export { e as default };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/explicit-constructed-response/configure/src/ecr-toolbar.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 ECRToolbar extends React.Component {
12
+ static propTypes: {
13
+ correctChoice: PropTypes.Requireable<object>;
14
+ node: PropTypes.Requireable<object>;
15
+ pos: PropTypes.Requireable<number>;
16
+ onDone: PropTypes.Requireable<(...args: any[]) => any>;
17
+ onChangeResponse: PropTypes.Validator<(...args: any[]) => any>;
18
+ onToolbarDone: PropTypes.Validator<(...args: any[]) => any>;
19
+ value: PropTypes.Requireable<PropTypes.InferProps<{
20
+ change: PropTypes.Validator<(...args: any[]) => any>;
21
+ document: PropTypes.Requireable<PropTypes.InferProps<{
22
+ getNextText: PropTypes.Validator<(...args: any[]) => any>;
23
+ }>>;
24
+ }>>;
25
+ editor: PropTypes.Requireable<object>;
26
+ maxLengthPerChoiceEnabled: PropTypes.Requireable<boolean>;
27
+ pluginProps: PropTypes.Requireable<object>;
28
+ spellCheck: PropTypes.Requireable<boolean>;
29
+ };
30
+ state: {
31
+ markup: string;
32
+ toolbarStyle: {};
33
+ };
34
+ componentDidMount(): void;
35
+ onDone: any;
36
+ onRespAreaChange: any;
37
+ onKeyDown: any;
38
+ onBlur: any;
39
+ render(): React.JSX.Element;
40
+ }
41
+ export default ECRToolbar;
@@ -0,0 +1,100 @@
1
+ import { stripHtmlTags as e } from "./markupUtils.js";
2
+ import t from "react";
3
+ import n from "prop-types";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { styled as i } from "@mui/material/styles";
6
+ import a from "@pie-lib/editable-html-tip-tap";
7
+ //#region src/author/ecr-toolbar.tsx
8
+ var o = i(a)(({ theme: e }) => ({
9
+ backgroundColor: e.palette.common.white,
10
+ outline: "none",
11
+ lineHeight: "15px"
12
+ })), s = class extends t.Component {
13
+ static propTypes = {
14
+ correctChoice: n.object,
15
+ node: n.object,
16
+ pos: n.number,
17
+ onDone: n.func,
18
+ onChangeResponse: n.func.isRequired,
19
+ onToolbarDone: n.func.isRequired,
20
+ value: n.shape({
21
+ change: n.func.isRequired,
22
+ document: n.shape({ getNextText: n.func.isRequired })
23
+ }),
24
+ editor: n.object,
25
+ maxLengthPerChoiceEnabled: n.bool,
26
+ pluginProps: n.object,
27
+ spellCheck: n.bool
28
+ };
29
+ state = {
30
+ markup: "",
31
+ toolbarStyle: {}
32
+ };
33
+ componentDidMount() {
34
+ let { correctChoice: e, node: t, editor: n } = this.props, r = e || {}, i = n.view.nodeDOM(n.state.selection.from);
35
+ if (i?.nodeType === 1) {
36
+ let e = i.getBoundingClientRect(), t = i.closest(".tiptap").getBoundingClientRect();
37
+ e.top - t.top, e.left - t.left, this.setState({
38
+ markup: r.label,
39
+ toolbarStyle: {
40
+ position: "absolute",
41
+ top: 0,
42
+ left: 0,
43
+ width: `${e.width - 4}px`
44
+ }
45
+ });
46
+ }
47
+ }
48
+ onDone = (t) => {
49
+ let { editor: n, node: r, onToolbarDone: i, onChangeResponse: a, pos: o } = this.props, s = e(t);
50
+ this.setState({ markup: s });
51
+ let { tr: c } = n.state, l = c.doc.nodeAt(o);
52
+ if (!l || l.isText || !l.isAtom || !l.isInline) return !1;
53
+ c.setNodeMarkup(o, void 0, {
54
+ ...r.attrs,
55
+ value: s
56
+ }), n.view.dispatch(c), i(!0), a(s);
57
+ };
58
+ onRespAreaChange = (e) => {
59
+ this.setState({ respAreaMarkup: e });
60
+ };
61
+ onKeyDown = (e) => e.key === "Enter";
62
+ onBlur = () => {
63
+ this.clickedInside &&= !1;
64
+ };
65
+ render() {
66
+ let { maxLengthPerChoiceEnabled: e, pluginProps: t, spellCheck: n } = this.props, { markup: i, toolbarStyle: a } = this.state, s = e ? {} : { maxLength: 25 };
67
+ return /* @__PURE__ */ r("div", {
68
+ style: a,
69
+ children: /* @__PURE__ */ r(o, {
70
+ autoFocus: !0,
71
+ disableUnderline: !0,
72
+ onChange: (e) => {
73
+ this.preventDone || this.onRespAreaChange(e);
74
+ },
75
+ onDone: (e) => {
76
+ this.preventDone || this.onDone(e);
77
+ },
78
+ onBlur: (e) => {
79
+ this.preventDone = e.relatedTarget && e.relatedTarget.closest(".insert-character-dialog"), this.onBlur(e);
80
+ },
81
+ onKeyDown: this.onKeyDown,
82
+ markup: i || "",
83
+ activePlugins: ["languageCharacters"],
84
+ pluginProps: t,
85
+ languageCharactersProps: [{ language: "spanish" }],
86
+ minHeight: "15px",
87
+ maxHeight: "15px",
88
+ spellCheck: n,
89
+ autoWidthToolbar: !0,
90
+ toolbarOpts: {
91
+ minWidth: "auto",
92
+ isHidden: !!t?.characters?.disabled
93
+ },
94
+ ...s
95
+ })
96
+ });
97
+ }
98
+ };
99
+ //#endregion
100
+ export { s as default };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/explicit-constructed-response/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 ExplicitConstructedResponse extends HTMLElement {
10
+ static prepareModel: (model?: {}) => {
11
+ slateMarkup: any;
12
+ markup: string;
13
+ choices: {};
14
+ displayType: string;
15
+ maxLengthPerChoiceEnabled: boolean;
16
+ playerSpellCheckEnabled: boolean;
17
+ prompt: string;
18
+ promptEnabled: boolean;
19
+ rationale: string;
20
+ rationaleEnabled: boolean;
21
+ spellCheckEnabled: boolean;
22
+ studentInstructionsEnabled: boolean;
23
+ teacherInstructions: string;
24
+ teacherInstructionsEnabled: boolean;
25
+ toolbarEditorPosition: string;
26
+ responseAreaInputConfiguration: {};
27
+ };
28
+ constructor();
29
+ set model(s: any);
30
+ set configuration(c: any);
31
+ set disableSidePanel(s: any);
32
+ dispatchModelUpdated(reset: any): void;
33
+ onModelChanged: any;
34
+ onConfigurationChanged: any;
35
+ /** @param {done, progress, file} handler */
36
+ insertImage(handler: any): void;
37
+ onDeleteImage(src: any, done: any): void;
38
+ insertSound(handler: any): void;
39
+ onDeleteSound(src: any, done: any): void;
40
+ _render(): void;
41
+ disconnectedCallback(): void;
42
+ }
@@ -0,0 +1,97 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js";
2
+ import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js";
3
+ import { createSlateMarkup as n, processMarkup as r } from "./markupUtils.js";
4
+ import i from "./main.js";
5
+ import a from "./defaults.js";
6
+ import o from "react";
7
+ import { createRoot as s } from "react-dom/client";
8
+ import c from "debug";
9
+ import { DeleteImageEvent as l, DeleteSoundEvent as u, InsertImageEvent as d, InsertSoundEvent as f, ModelUpdatedEvent as p } from "@pie-element/shared-configure-events";
10
+ //#region src/author/index.ts
11
+ var m = c("explicit-constructed-response:configure"), h = class c extends HTMLElement {
12
+ static prepareModel = (t = {}) => {
13
+ let i = {
14
+ ...a.model,
15
+ ...t
16
+ }, o = i.slateMarkup || n(i.markup, i.choices), s = r(o);
17
+ return i.choices && Object.keys(i.choices).forEach((t) => {
18
+ e(i.choices[t]) && (i.choices[t] = (i.choices[t] || []).map((e, t) => e.value ? e : (m("Choice does not contain \"value\" property, which is required.", e), {
19
+ value: `${t}`,
20
+ ...e
21
+ })));
22
+ }), {
23
+ ...i,
24
+ slateMarkup: o,
25
+ markup: s
26
+ };
27
+ };
28
+ constructor() {
29
+ super(), this._root = null, this._model = c.prepareModel(), this._configuration = a.configuration;
30
+ }
31
+ set model(e) {
32
+ this._model = c.prepareModel(e), this._model.responseAreaInputConfiguration && (this._model.responseAreaInputConfiguration = this._configuration.responseAreaInputConfiguration?.inputConfiguration), this._render();
33
+ }
34
+ set configuration(e) {
35
+ this._configuration = t(e, a.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
36
+ value: this._model.language,
37
+ label: this._model.language
38
+ })) : delete this._model.language, this._render();
39
+ }
40
+ set disableSidePanel(e) {
41
+ this._disableSidePanel = e, this._render();
42
+ }
43
+ dispatchModelUpdated(e) {
44
+ let t = !!e;
45
+ this.dispatchEvent(new p(this._model, t));
46
+ }
47
+ onModelChanged = (e, t) => {
48
+ this._model = c.prepareModel({
49
+ ...this._model,
50
+ ...e
51
+ }), this._render(), this.dispatchModelUpdated(t);
52
+ };
53
+ onConfigurationChanged = (e) => {
54
+ this._configuration = e;
55
+ let t = this._configuration?.responseAreaInputConfiguration?.inputConfiguration;
56
+ this._model = {
57
+ ...this._model,
58
+ responseAreaInputConfiguration: t
59
+ }, this.onModelChanged(this._model);
60
+ };
61
+ insertImage(e) {
62
+ this.dispatchEvent(new d(e));
63
+ }
64
+ onDeleteImage(e, t) {
65
+ this.dispatchEvent(new l(e, t));
66
+ }
67
+ insertSound(e) {
68
+ this.dispatchEvent(new f(e));
69
+ }
70
+ onDeleteSound(e, t) {
71
+ this.dispatchEvent(new u(e, t));
72
+ }
73
+ _render() {
74
+ m("_render");
75
+ let e = o.createElement(i, {
76
+ model: this._model,
77
+ configuration: this._configuration,
78
+ onModelChanged: this.onModelChanged,
79
+ onConfigurationChanged: this.onConfigurationChanged,
80
+ disableSidePanel: this._disableSidePanel,
81
+ imageSupport: {
82
+ add: this.insertImage.bind(this),
83
+ delete: this.onDeleteImage.bind(this)
84
+ },
85
+ uploadSoundSupport: {
86
+ add: this.insertSound.bind(this),
87
+ delete: this.onDeleteSound.bind(this)
88
+ }
89
+ });
90
+ this._root ||= s(this), this._root.render(e);
91
+ }
92
+ disconnectedCallback() {
93
+ this._root && this._root.unmount();
94
+ }
95
+ };
96
+ //#endregion
97
+ export { h as default };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/explicit-constructed-response/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
+ configuration: PropTypes.Validator<object>;
14
+ model: PropTypes.Validator<object>;
15
+ disableSidePanel: PropTypes.Requireable<boolean>;
16
+ onModelChanged: PropTypes.Validator<(...args: any[]) => any>;
17
+ onConfigurationChanged: PropTypes.Validator<(...args: any[]) => any>;
18
+ imageSupport: PropTypes.Requireable<PropTypes.InferProps<{
19
+ add: PropTypes.Validator<(...args: any[]) => any>;
20
+ delete: PropTypes.Validator<(...args: any[]) => any>;
21
+ }>>;
22
+ uploadSoundSupport: PropTypes.Requireable<object>;
23
+ };
24
+ state: {};
25
+ componentDidMount(): void;
26
+ onModelChange: any;
27
+ onPromptChanged: any;
28
+ onRationaleChanged: any;
29
+ onTeacherInstructionsChanged: any;
30
+ onMarkupChanged: any;
31
+ onResponsesChanged: any;
32
+ onLengthChanged: any;
33
+ onChangeResponse: any;
34
+ onChange: any;
35
+ onHandleAreaChange: any;
36
+ render(): React.JSX.Element;
37
+ }
38
+ export default Main;