@pie-element/explicit-constructed-response 11.1.1 → 11.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.
- package/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -0
- package/dist/author/alternateResponses.d.ts +34 -0
- package/dist/author/alternateResponses.js +116 -0
- package/dist/author/alternateSection.d.ts +58 -0
- package/dist/author/alternateSection.js +215 -0
- package/dist/author/defaults.d.ts +186 -0
- package/dist/author/defaults.js +128 -0
- package/dist/author/ecr-toolbar.d.ts +41 -0
- package/dist/author/ecr-toolbar.js +100 -0
- package/dist/author/index.d.ts +42 -0
- package/dist/author/index.js +97 -0
- package/dist/author/main.d.ts +38 -0
- package/dist/author/main.js +294 -0
- package/dist/author/markupUtils.d.ts +14 -0
- package/dist/author/markupUtils.js +13 -0
- package/dist/author/utils.d.ts +9 -0
- package/dist/author/utils.js +7 -0
- package/dist/browser/author/index.js +3498 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/browser-DbR93LB7.js +950 -0
- package/dist/browser/browser-DbR93LB7.js.map +1 -0
- package/dist/browser/controller/index.js +4183 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +96 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/dist-D9ARZhQk.js +1426 -0
- package/dist/browser/dist-D9ARZhQk.js.map +1 -0
- package/dist/browser/dist-DnL6t4VO.js +46135 -0
- package/dist/browser/dist-DnL6t4VO.js.map +1 -0
- package/dist/browser/explicit-constructed-response.css +2 -0
- package/dist/browser/main-V_e6PRBN.js +941 -0
- package/dist/browser/main-V_e6PRBN.js.map +1 -0
- package/dist/browser/print/index.js +40 -0
- package/dist/browser/print/index.js.map +1 -0
- package/dist/browser/reduce-Bqz7DMQ0.js +172 -0
- package/dist/browser/reduce-Bqz7DMQ0.js.map +1 -0
- package/dist/controller/defaults.d.ts +25 -0
- package/dist/controller/defaults.js +19 -0
- package/dist/controller/index.d.ts +64 -0
- package/dist/controller/index.js +142 -0
- package/dist/delivery/index.d.ts +20 -0
- package/dist/delivery/index.js +66 -0
- package/dist/delivery/main.d.ts +48 -0
- package/dist/delivery/main.js +117 -0
- package/dist/explicit-constructed-response.css +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +393 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +3993 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +15 -0
- package/dist/print/index.js +40 -0
- package/package.json +86 -22
- package/CHANGELOG.json +0 -1102
- package/CHANGELOG.md +0 -2187
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -652
- package/configure/CHANGELOG.md +0 -1928
- package/configure/lib/alternateResponses.js +0 -199
- package/configure/lib/alternateResponses.js.map +0 -1
- package/configure/lib/alternateSection.js +0 -329
- package/configure/lib/alternateSection.js.map +0 -1
- package/configure/lib/defaults.js +0 -184
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/ecr-toolbar.js +0 -181
- package/configure/lib/ecr-toolbar.js.map +0 -1
- package/configure/lib/index.js +0 -161
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -514
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/markupUtils.js +0 -70
- package/configure/lib/markupUtils.js.map +0 -1
- package/configure/lib/utils.js +0 -15
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -22
- package/controller/CHANGELOG.json +0 -517
- package/controller/CHANGELOG.md +0 -1344
- package/controller/lib/defaults.js +0 -23
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -368
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -18
- package/docs/config-schema.json +0 -2629
- package/docs/config-schema.json.md +0 -1941
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -20
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -10
- package/docs/pie-schema.json +0 -1130
- package/docs/pie-schema.json.md +0 -814
- package/lib/index.js +0 -91
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -205
- package/lib/main.js.map +0 -1
- package/lib/print.js +0 -71
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -6534
- package/module/demo.js +0 -45
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -18
- package/module/print-demo.js +0 -83
- package/module/print.html +0 -18
- package/module/print.js +0 -1
|
@@ -0,0 +1,294 @@
|
|
|
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/isEmpty.js";
|
|
3
|
+
import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js";
|
|
4
|
+
import r from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js";
|
|
5
|
+
import { decodeHTML as i, getAdjustedLength as a } from "./markupUtils.js";
|
|
6
|
+
import o from "./ecr-toolbar.js";
|
|
7
|
+
import s from "./alternateResponses.js";
|
|
8
|
+
import { generateValidationMessage as c } from "./utils.js";
|
|
9
|
+
import l from "react";
|
|
10
|
+
import u from "prop-types";
|
|
11
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
|
+
import { styled as p } from "@mui/material/styles";
|
|
13
|
+
import m, { ALL_PLUGINS as h } from "@pie-lib/editable-html-tip-tap";
|
|
14
|
+
import { InputContainer as g, layout as ee, settings as _ } from "@pie-lib/config-ui";
|
|
15
|
+
import v from "@mui/material/Typography";
|
|
16
|
+
import y from "@mui/icons-material/Info";
|
|
17
|
+
import b from "@mui/material/Tooltip";
|
|
18
|
+
//#region src/author/main.tsx
|
|
19
|
+
var { toggle: x, Panel: te, dropdown: ne } = _, S = p(g)(({ theme: e }) => ({
|
|
20
|
+
width: "100%",
|
|
21
|
+
paddingTop: e.spacing(1),
|
|
22
|
+
marginTop: e.spacing(2),
|
|
23
|
+
marginBottom: e.spacing(2)
|
|
24
|
+
})), C = p(m)(({ theme: e }) => ({
|
|
25
|
+
minHeight: "100px",
|
|
26
|
+
paddingTop: e.spacing(1),
|
|
27
|
+
width: "100%",
|
|
28
|
+
"& [data-slate-editor=\"true\"]": { minHeight: "100px" }
|
|
29
|
+
})), re = p(v)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), ie = p(b)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
30
|
+
fontSize: e.typography.fontSize - 2,
|
|
31
|
+
whiteSpace: "pre",
|
|
32
|
+
maxWidth: "500px"
|
|
33
|
+
} })), w = p("div")(({ theme: e }) => ({
|
|
34
|
+
fontSize: e.typography.fontSize - 2,
|
|
35
|
+
color: e.palette.error.main,
|
|
36
|
+
paddingTop: e.spacing(1)
|
|
37
|
+
})), T = p("div")({
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center"
|
|
40
|
+
}), E = p(v)(({ theme: e }) => ({
|
|
41
|
+
fontSize: e.typography.fontSize + 2,
|
|
42
|
+
marginTop: e.spacing(3),
|
|
43
|
+
marginBottom: e.spacing(1)
|
|
44
|
+
})), D = (e) => {
|
|
45
|
+
let t = document.createElement("div");
|
|
46
|
+
return t.innerHTML = e.trim(), t;
|
|
47
|
+
}, O = class extends l.Component {
|
|
48
|
+
static propTypes = {
|
|
49
|
+
configuration: u.object.isRequired,
|
|
50
|
+
model: u.object.isRequired,
|
|
51
|
+
disableSidePanel: u.bool,
|
|
52
|
+
onModelChanged: u.func.isRequired,
|
|
53
|
+
onConfigurationChanged: u.func.isRequired,
|
|
54
|
+
imageSupport: u.shape({
|
|
55
|
+
add: u.func.isRequired,
|
|
56
|
+
delete: u.func.isRequired
|
|
57
|
+
}),
|
|
58
|
+
uploadSoundSupport: u.object
|
|
59
|
+
};
|
|
60
|
+
state = {};
|
|
61
|
+
componentDidMount() {
|
|
62
|
+
let { model: { slateMarkup: e, choices: t, maxLengthPerChoice: n = [] }, onModelChanged: r } = this.props, o = !n.length;
|
|
63
|
+
this.setState({ markup: e }), Object.values(t).forEach((e, t) => {
|
|
64
|
+
let r = e.map((e) => i(e.label || "").length), s = Math.max(...r);
|
|
65
|
+
(o || !n[t] || n[t] < s || n[t] > s + 10) && (n[t] = a(s));
|
|
66
|
+
}), r({ maxLengthPerChoice: n });
|
|
67
|
+
}
|
|
68
|
+
onModelChange = (e) => {
|
|
69
|
+
this.props.onModelChanged({ ...e });
|
|
70
|
+
};
|
|
71
|
+
onPromptChanged = (e) => {
|
|
72
|
+
this.props.onModelChanged({ prompt: e });
|
|
73
|
+
};
|
|
74
|
+
onRationaleChanged = (e) => {
|
|
75
|
+
this.props.onModelChanged({ rationale: e });
|
|
76
|
+
};
|
|
77
|
+
onTeacherInstructionsChanged = (e) => {
|
|
78
|
+
let { onModelChanged: t } = this.props;
|
|
79
|
+
t({ teacherInstructions: e });
|
|
80
|
+
};
|
|
81
|
+
onMarkupChanged = (e) => {
|
|
82
|
+
this.props.onModelChanged({ slateMarkup: e });
|
|
83
|
+
};
|
|
84
|
+
onResponsesChanged = (e) => {
|
|
85
|
+
this.props.onModelChanged({ choices: e });
|
|
86
|
+
};
|
|
87
|
+
onLengthChanged = (e) => {
|
|
88
|
+
let { onModelChanged: t } = this.props;
|
|
89
|
+
t({ maxLengthPerChoice: e });
|
|
90
|
+
};
|
|
91
|
+
onChangeResponse = (e, t) => {
|
|
92
|
+
let { model: n, onModelChanged: r } = this.props, { choices: o } = n, { maxLengthPerChoice: s } = n, c = i(t || "").length;
|
|
93
|
+
if (!o[e] || !o[e].length) {
|
|
94
|
+
o[e] = [{
|
|
95
|
+
label: t || "",
|
|
96
|
+
value: "0"
|
|
97
|
+
}];
|
|
98
|
+
let n = e > s.length ? e - s.length : 0;
|
|
99
|
+
s = [...s, ...Array(n).fill(1)], s.splice(e, 0, a(c));
|
|
100
|
+
} else o[e][0].label = t || "", s && (s[e] < c || s[e] > c + 10) && (s[e] = a(c));
|
|
101
|
+
r({
|
|
102
|
+
choices: o,
|
|
103
|
+
maxLengthPerChoice: s
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
onChange = (t) => {
|
|
107
|
+
let { model: { choices: n, maxLengthPerChoice: r }, onModelChanged: i } = this.props, a = D(t), o = a.querySelectorAll("[data-type=\"explicit_constructed_response\"]"), s = {}, c = [];
|
|
108
|
+
o.forEach((t, i) => {
|
|
109
|
+
let a = e(n[t.dataset.index]);
|
|
110
|
+
a && (a[0] = {
|
|
111
|
+
label: t.dataset.value || "",
|
|
112
|
+
value: "0"
|
|
113
|
+
}, c[i] = r[t.dataset.index]), s[i] = a, t.dataset.index = i;
|
|
114
|
+
}), this.setState({ cachedChoices: void 0 }, () => i({
|
|
115
|
+
choices: s,
|
|
116
|
+
slateMarkup: a.innerHTML,
|
|
117
|
+
maxLengthPerChoice: c
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
onHandleAreaChange = r((t) => {
|
|
121
|
+
let { model: { choices: r }, onModelChanged: i } = this.props, { cachedChoices: a } = this.state;
|
|
122
|
+
if (!t) return;
|
|
123
|
+
let o = r ? e(r) : {}, s = a ? e(a) : {};
|
|
124
|
+
t.forEach((e) => {
|
|
125
|
+
let t = e.index;
|
|
126
|
+
!o[t] && s[t] ? (Object.assign(o, n(s, t)), Object.prototype.hasOwnProperty.call(s, t) && delete s[t]) : (Object.assign(s, n(o, t)), Object.prototype.hasOwnProperty.call(o, t) && delete o[t]);
|
|
127
|
+
}), this.setState({ cachedChoices: s }, () => i({ choices: o }));
|
|
128
|
+
}, 500, {
|
|
129
|
+
trailing: !1,
|
|
130
|
+
leading: !0
|
|
131
|
+
});
|
|
132
|
+
render() {
|
|
133
|
+
let { model: e, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: l = {}, contentDimensions: u = {}, maxImageWidth: p = {}, maxImageHeight: g = {}, maxLengthPerChoice: _ = {}, maxResponseAreas: v, partialScoring: b = {}, playerSpellCheck: D = {}, prompt: O = {}, rationale: k = {}, template: ae = {}, settingsPanelDisabled: oe, spellCheck: A = {}, editSource: j = {}, teacherInstructions: M = {}, withRubric: N = {}, mathMlOptions: P = {}, language: F = {}, languageChoices: I = {}, spanishButton: L = {}, responseAreaInputConfiguration: R = {} } = n || {}, { errors: z, extraCSSRules: B, maxLengthPerChoiceEnabled: V, promptEnabled: H, rationaleEnabled: U, spellCheckEnabled: W, teacherInstructionsEnabled: se, toolbarEditorPosition: ce } = e || {}, { choices: G = {}, prompt: K, rationale: q, responseAreas: J, teacherInstructions: Y } = z || {}, le = c(n), X = p && p.prompt, Z = g && g.prompt, Q = { position: ce === "top" ? "top" : "bottom" }, ue = {
|
|
134
|
+
partialScoring: b.settings && x(b.label),
|
|
135
|
+
maxLengthPerChoiceEnabled: _.settings && x(_.label),
|
|
136
|
+
"language.enabled": F.settings && x(F.label, !0),
|
|
137
|
+
language: F.settings && F.enabled && ne(I.label, I.options),
|
|
138
|
+
"responseAreaInputConfiguration.inputConfiguration.characters.disabled": L.settings && x(L.label, !0)
|
|
139
|
+
}, de = {
|
|
140
|
+
teacherInstructionsEnabled: M.settings && x(M.label),
|
|
141
|
+
rationaleEnabled: k.settings && x(k.label),
|
|
142
|
+
promptEnabled: O.settings && x(O.label),
|
|
143
|
+
spellCheckEnabled: A.settings && x(A.label),
|
|
144
|
+
playerSpellCheckEnabled: D.settings && x(D.label),
|
|
145
|
+
rubricEnabled: N?.settings && x(N?.label),
|
|
146
|
+
"editSource.enabled": j?.settings && x(j.label, !0)
|
|
147
|
+
}, $ = (e = {}) => ({
|
|
148
|
+
...l,
|
|
149
|
+
...e
|
|
150
|
+
});
|
|
151
|
+
return /* @__PURE__ */ f(ee.ConfigLayout, {
|
|
152
|
+
extraCSSRules: B,
|
|
153
|
+
dimensions: u,
|
|
154
|
+
hideSettings: oe,
|
|
155
|
+
settings: /* @__PURE__ */ d(te, {
|
|
156
|
+
model: e,
|
|
157
|
+
configuration: n,
|
|
158
|
+
onChangeModel: (e) => this.onModelChange(e),
|
|
159
|
+
onChangeConfiguration: (e) => r(e, !0),
|
|
160
|
+
groups: {
|
|
161
|
+
Settings: ue,
|
|
162
|
+
Properties: de
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
children: [
|
|
166
|
+
se && /* @__PURE__ */ f(S, {
|
|
167
|
+
label: M.label,
|
|
168
|
+
children: [/* @__PURE__ */ d(m, {
|
|
169
|
+
className: "prompt",
|
|
170
|
+
markup: e.teacherInstructions || "",
|
|
171
|
+
onChange: this.onTeacherInstructionsChanged,
|
|
172
|
+
imageSupport: i,
|
|
173
|
+
nonEmpty: !1,
|
|
174
|
+
error: Y,
|
|
175
|
+
toolbarOpts: Q,
|
|
176
|
+
pluginProps: $(M?.inputConfiguration),
|
|
177
|
+
spellCheck: W,
|
|
178
|
+
maxImageWidth: p && p.teacherInstructions || X,
|
|
179
|
+
maxImageHeight: g && g.teacherInstructions || Z,
|
|
180
|
+
uploadSoundSupport: a,
|
|
181
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
182
|
+
mathMlOptions: P,
|
|
183
|
+
autoWidthToolbar: !0
|
|
184
|
+
}), Y && /* @__PURE__ */ d(w, { children: Y })]
|
|
185
|
+
}),
|
|
186
|
+
H && /* @__PURE__ */ f(S, {
|
|
187
|
+
label: O.label,
|
|
188
|
+
children: [/* @__PURE__ */ d(m, {
|
|
189
|
+
className: "prompt",
|
|
190
|
+
markup: e.prompt,
|
|
191
|
+
onChange: this.onPromptChanged,
|
|
192
|
+
imageSupport: i,
|
|
193
|
+
nonEmpty: !1,
|
|
194
|
+
disableUnderline: !0,
|
|
195
|
+
error: K,
|
|
196
|
+
toolbarOpts: Q,
|
|
197
|
+
pluginProps: $(O?.inputConfiguration),
|
|
198
|
+
spellCheck: W,
|
|
199
|
+
maxImageWidth: X,
|
|
200
|
+
maxImageHeight: Z,
|
|
201
|
+
uploadSoundSupport: a,
|
|
202
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
203
|
+
mathMlOptions: P,
|
|
204
|
+
autoWidthToolbar: !0
|
|
205
|
+
}), K && /* @__PURE__ */ d(w, { children: K })]
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ f(T, { children: [/* @__PURE__ */ d(re, {
|
|
208
|
+
component: "div",
|
|
209
|
+
children: "Define Template, Choices, and Correct Responses"
|
|
210
|
+
}), /* @__PURE__ */ d(ie, {
|
|
211
|
+
disableFocusListener: !0,
|
|
212
|
+
disableTouchListener: !0,
|
|
213
|
+
placement: "right",
|
|
214
|
+
title: le,
|
|
215
|
+
children: /* @__PURE__ */ d(y, {
|
|
216
|
+
fontSize: "small",
|
|
217
|
+
color: "primary",
|
|
218
|
+
style: { marginLeft: "8px" }
|
|
219
|
+
})
|
|
220
|
+
})] }),
|
|
221
|
+
/* @__PURE__ */ d(C, {
|
|
222
|
+
activePlugins: h,
|
|
223
|
+
toolbarOpts: { position: "top" },
|
|
224
|
+
spellCheck: W,
|
|
225
|
+
pluginProps: $(ae?.inputConfiguration),
|
|
226
|
+
responseAreaProps: {
|
|
227
|
+
type: "explicit-constructed-response",
|
|
228
|
+
options: { duplicates: !0 },
|
|
229
|
+
maxResponseAreas: v,
|
|
230
|
+
respAreaToolbar: (e, t, n) => {
|
|
231
|
+
let [r, i] = e, { model: a } = this.props, s = (a.choices[r.attrs.index] || [])[0];
|
|
232
|
+
return () => /* @__PURE__ */ d(o, {
|
|
233
|
+
onChangeResponse: (e) => this.onChangeResponse(r.attrs.index, e),
|
|
234
|
+
node: r,
|
|
235
|
+
pos: i,
|
|
236
|
+
editor: t,
|
|
237
|
+
onToolbarDone: n,
|
|
238
|
+
correctChoice: s,
|
|
239
|
+
maxLengthPerChoiceEnabled: V,
|
|
240
|
+
pluginProps: $(R?.inputConfiguration)
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
error: () => G,
|
|
244
|
+
onHandleAreaChange: this.onHandleAreaChange
|
|
245
|
+
},
|
|
246
|
+
markup: e.slateMarkup,
|
|
247
|
+
onChange: this.onChange,
|
|
248
|
+
imageSupport: i,
|
|
249
|
+
disableImageAlignmentButtons: !0,
|
|
250
|
+
onBlur: this.onBlur,
|
|
251
|
+
disabled: !1,
|
|
252
|
+
highlightShape: !1,
|
|
253
|
+
error: J,
|
|
254
|
+
uploadSoundSupport: a,
|
|
255
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
256
|
+
mathMlOptions: P,
|
|
257
|
+
autoWidthToolbar: !0
|
|
258
|
+
}),
|
|
259
|
+
J && /* @__PURE__ */ d(w, { children: J }),
|
|
260
|
+
!t(e.choices) && /* @__PURE__ */ d(E, { children: `Define Alternates ${V ? "and Character Limits" : ""}` }),
|
|
261
|
+
/* @__PURE__ */ d(s, {
|
|
262
|
+
model: e,
|
|
263
|
+
onChange: this.onResponsesChanged,
|
|
264
|
+
onLengthChange: this.onLengthChanged,
|
|
265
|
+
maxLengthPerChoiceEnabled: V,
|
|
266
|
+
spellCheck: W,
|
|
267
|
+
choicesErrors: G,
|
|
268
|
+
pluginProps: $(R?.inputConfiguration)
|
|
269
|
+
}),
|
|
270
|
+
U && /* @__PURE__ */ f(S, {
|
|
271
|
+
label: k.label,
|
|
272
|
+
children: [/* @__PURE__ */ d(m, {
|
|
273
|
+
className: "prompt",
|
|
274
|
+
markup: e.rationale || "",
|
|
275
|
+
onChange: this.onRationaleChanged,
|
|
276
|
+
imageSupport: i,
|
|
277
|
+
error: q,
|
|
278
|
+
toolbarOpts: Q,
|
|
279
|
+
pluginProps: $(k?.inputConfiguration),
|
|
280
|
+
spellCheck: W,
|
|
281
|
+
maxImageWidth: p && p.rationale || X,
|
|
282
|
+
maxImageHeight: g && g.rationale || Z,
|
|
283
|
+
uploadSoundSupport: a,
|
|
284
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
285
|
+
mathMlOptions: P,
|
|
286
|
+
autoWidthToolbar: !0
|
|
287
|
+
}), q && /* @__PURE__ */ d(w, { children: q })]
|
|
288
|
+
})
|
|
289
|
+
]
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
//#endregion
|
|
294
|
+
export { O as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/explicit-constructed-response/configure/src/markupUtils.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 declare const removeUnwantedCharacters: (markup: any) => any;
|
|
10
|
+
export declare const processMarkup: (markup: any) => string;
|
|
11
|
+
export declare const createSlateMarkup: (markup: any, choices: any) => any;
|
|
12
|
+
export declare const getAdjustedLength: (length: any) => any;
|
|
13
|
+
export declare const stripHtmlTags: (markup: any) => string;
|
|
14
|
+
export declare const decodeHTML: (html: any) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js";
|
|
2
|
+
//#region src/author/markupUtils.tsx
|
|
3
|
+
var t = "imes|riangle|an|heta|herefore", n = "throot|parallel|cong|approx|eq|e|sim", r = RegExp(`(\\t(?!${t}))|(\\n(?!${n}))|(\\\\t(?!${t}))|(\\\\n(?!${n}))`, "g"), i = (e) => e.replace(r, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), a = (e = "") => {
|
|
4
|
+
let t = document.createElement("div");
|
|
5
|
+
return t.innerHTML = e.trim(), t;
|
|
6
|
+
}, o = (e) => {
|
|
7
|
+
let t = a(i(e || "") || ""), n = 0;
|
|
8
|
+
return t.querySelectorAll("[data-type=\"explicit_constructed_response\"]").forEach((e) => {
|
|
9
|
+
e.replaceWith(`{{${n++}}}`);
|
|
10
|
+
}), t.innerHTML;
|
|
11
|
+
}, s = /\{\{(\d+)\}\}/g, c = (t, n) => t ? i(t).replace(s, (t, r) => `<span data-type="explicit_constructed_response" data-index="${r}" data-value="${e(n[r][0].label || "")}"></span>`) : "", l = (e) => e <= 2 ? e + 2 : e <= 4 ? e + 3 : e <= 6 ? e + 4 : e + 5, u = (e) => typeof e == "string" ? e.replace(/<\/?[^>]+(>|$)/g, "") : "", d = (e) => new DOMParser().parseFromString(e, "text/html").body.textContent || "";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { c as createSlateMarkup, d as decodeHTML, l as getAdjustedLength, o as processMarkup, u as stripHtmlTags };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/explicit-constructed-response/configure/src/utils.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 declare const generateValidationMessage: (config: any) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/author/utils.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
let { maxResponseAreas: t } = e;
|
|
4
|
+
return "Validation requirements:" + ("\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined.");
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as generateValidationMessage };
|