@pie-element/explicit-constructed-response 11.1.0-next.28 → 11.1.1-next.1
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/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 +94 -0
- package/dist/author/main.d.ts +38 -0
- package/dist/author/main.js +323 -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/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 +364 -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 +56 -19
- package/CHANGELOG.json +0 -1102
- package/CHANGELOG.md +0 -2175
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -652
- package/configure/CHANGELOG.md +0 -1917
- 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 -1333
- 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,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(m: any, reset: any): void;
|
|
34
|
+
onConfigurationChanged(c: any): void;
|
|
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,94 @@
|
|
|
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, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
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(e), this._render(), this.dispatchModelUpdated(t);
|
|
49
|
+
}
|
|
50
|
+
onConfigurationChanged(e) {
|
|
51
|
+
this._configuration = e;
|
|
52
|
+
let t = this._configuration?.responseAreaInputConfiguration?.inputConfiguration;
|
|
53
|
+
this._model = {
|
|
54
|
+
...this._model,
|
|
55
|
+
responseAreaInputConfiguration: t
|
|
56
|
+
}, this.onModelChanged(this._model);
|
|
57
|
+
}
|
|
58
|
+
insertImage(e) {
|
|
59
|
+
this.dispatchEvent(new d(e));
|
|
60
|
+
}
|
|
61
|
+
onDeleteImage(e, t) {
|
|
62
|
+
this.dispatchEvent(new l(e, t));
|
|
63
|
+
}
|
|
64
|
+
insertSound(e) {
|
|
65
|
+
this.dispatchEvent(new f(e));
|
|
66
|
+
}
|
|
67
|
+
onDeleteSound(e, t) {
|
|
68
|
+
this.dispatchEvent(new u(e, t));
|
|
69
|
+
}
|
|
70
|
+
_render() {
|
|
71
|
+
m("_render");
|
|
72
|
+
let e = o.createElement(i, {
|
|
73
|
+
model: this._model,
|
|
74
|
+
configuration: this._configuration,
|
|
75
|
+
onModelChanged: this.onModelChanged,
|
|
76
|
+
onConfigurationChanged: this.onConfigurationChanged,
|
|
77
|
+
disableSidePanel: this._disableSidePanel,
|
|
78
|
+
imageSupport: {
|
|
79
|
+
add: this.insertImage.bind(this),
|
|
80
|
+
delete: this.onDeleteImage.bind(this)
|
|
81
|
+
},
|
|
82
|
+
uploadSoundSupport: {
|
|
83
|
+
add: this.insertSound.bind(this),
|
|
84
|
+
delete: this.onDeleteSound.bind(this)
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
this._root ||= s(this), this._root.render(e);
|
|
88
|
+
}
|
|
89
|
+
disconnectedCallback() {
|
|
90
|
+
this._root && this._root.unmount();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
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;
|