@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
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _default = exports.default = {
|
|
8
|
-
model: {
|
|
9
|
-
choices: {},
|
|
10
|
-
displayType: 'block',
|
|
11
|
-
markup: '',
|
|
12
|
-
maxLengthPerChoiceEnabled: true,
|
|
13
|
-
playerSpellCheckEnabled: true,
|
|
14
|
-
prompt: '',
|
|
15
|
-
promptEnabled: true,
|
|
16
|
-
rationale: '',
|
|
17
|
-
rationaleEnabled: true,
|
|
18
|
-
spellCheckEnabled: true,
|
|
19
|
-
studentInstructionsEnabled: true,
|
|
20
|
-
teacherInstructions: '',
|
|
21
|
-
teacherInstructionsEnabled: true,
|
|
22
|
-
toolbarEditorPosition: 'bottom',
|
|
23
|
-
responseAreaInputConfiguration: {}
|
|
24
|
-
},
|
|
25
|
-
configuration: {
|
|
26
|
-
baseInputConfiguration: {
|
|
27
|
-
h3: {
|
|
28
|
-
disabled: true
|
|
29
|
-
},
|
|
30
|
-
html: {
|
|
31
|
-
disabled: true
|
|
32
|
-
},
|
|
33
|
-
audio: {
|
|
34
|
-
disabled: false
|
|
35
|
-
},
|
|
36
|
-
video: {
|
|
37
|
-
disabled: false
|
|
38
|
-
},
|
|
39
|
-
image: {
|
|
40
|
-
disabled: false
|
|
41
|
-
},
|
|
42
|
-
textAlign: {
|
|
43
|
-
disabled: true
|
|
44
|
-
},
|
|
45
|
-
showParagraphs: {
|
|
46
|
-
disabled: false
|
|
47
|
-
},
|
|
48
|
-
separateParagraphs: {
|
|
49
|
-
disabled: true
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
prompt: {
|
|
53
|
-
settings: true,
|
|
54
|
-
label: 'Prompt',
|
|
55
|
-
inputConfiguration: {
|
|
56
|
-
audio: {
|
|
57
|
-
disabled: false
|
|
58
|
-
},
|
|
59
|
-
video: {
|
|
60
|
-
disabled: false
|
|
61
|
-
},
|
|
62
|
-
image: {
|
|
63
|
-
disabled: false
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
required: false
|
|
67
|
-
},
|
|
68
|
-
partialScoring: {
|
|
69
|
-
settings: false,
|
|
70
|
-
label: 'Allow Partial Scoring'
|
|
71
|
-
},
|
|
72
|
-
rationale: {
|
|
73
|
-
settings: true,
|
|
74
|
-
label: 'Rationale',
|
|
75
|
-
inputConfiguration: {
|
|
76
|
-
audio: {
|
|
77
|
-
disabled: false
|
|
78
|
-
},
|
|
79
|
-
video: {
|
|
80
|
-
disabled: false
|
|
81
|
-
},
|
|
82
|
-
image: {
|
|
83
|
-
disabled: false
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
required: false
|
|
87
|
-
},
|
|
88
|
-
settingsPanelDisabled: false,
|
|
89
|
-
spellCheck: {
|
|
90
|
-
label: 'Spellcheck',
|
|
91
|
-
settings: false,
|
|
92
|
-
enabled: true
|
|
93
|
-
},
|
|
94
|
-
editSource: {
|
|
95
|
-
label: 'Edit Source',
|
|
96
|
-
settings: false,
|
|
97
|
-
enabled: false
|
|
98
|
-
},
|
|
99
|
-
playerSpellCheck: {
|
|
100
|
-
label: 'Student Spellcheck',
|
|
101
|
-
settings: true,
|
|
102
|
-
enabled: true
|
|
103
|
-
},
|
|
104
|
-
teacherInstructions: {
|
|
105
|
-
settings: true,
|
|
106
|
-
label: 'Teacher Instructions',
|
|
107
|
-
inputConfiguration: {
|
|
108
|
-
audio: {
|
|
109
|
-
disabled: false
|
|
110
|
-
},
|
|
111
|
-
video: {
|
|
112
|
-
disabled: false
|
|
113
|
-
},
|
|
114
|
-
image: {
|
|
115
|
-
disabled: false
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
required: false
|
|
119
|
-
},
|
|
120
|
-
template: {
|
|
121
|
-
inputConfiguration: {
|
|
122
|
-
audio: {
|
|
123
|
-
disabled: false
|
|
124
|
-
},
|
|
125
|
-
video: {
|
|
126
|
-
disabled: false
|
|
127
|
-
},
|
|
128
|
-
image: {
|
|
129
|
-
disabled: false
|
|
130
|
-
},
|
|
131
|
-
h3: {
|
|
132
|
-
disabled: true
|
|
133
|
-
},
|
|
134
|
-
blockquote: {
|
|
135
|
-
disabled: true
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
maxLengthPerChoice: {
|
|
140
|
-
settings: true,
|
|
141
|
-
label: 'Maximum Length Per Choice'
|
|
142
|
-
},
|
|
143
|
-
maxResponseAreas: 10,
|
|
144
|
-
maxImageWidth: {
|
|
145
|
-
teacherInstructions: 300,
|
|
146
|
-
prompt: 300,
|
|
147
|
-
rationale: 300
|
|
148
|
-
},
|
|
149
|
-
maxImageHeight: {
|
|
150
|
-
teacherInstructions: 300,
|
|
151
|
-
prompt: 300,
|
|
152
|
-
rationale: 300
|
|
153
|
-
},
|
|
154
|
-
withRubric: {
|
|
155
|
-
settings: false,
|
|
156
|
-
label: 'Add Rubric'
|
|
157
|
-
},
|
|
158
|
-
mathMlOptions: {
|
|
159
|
-
mmlOutput: false,
|
|
160
|
-
mmlEditing: false
|
|
161
|
-
},
|
|
162
|
-
language: {
|
|
163
|
-
settings: false,
|
|
164
|
-
label: 'Specify Language',
|
|
165
|
-
enabled: false
|
|
166
|
-
},
|
|
167
|
-
languageChoices: {
|
|
168
|
-
label: 'Language Choices',
|
|
169
|
-
options: []
|
|
170
|
-
},
|
|
171
|
-
responseAreaInputConfiguration: {
|
|
172
|
-
inputConfiguration: {
|
|
173
|
-
characters: {
|
|
174
|
-
disabled: true
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
spanishButton: {
|
|
179
|
-
settings: true,
|
|
180
|
-
label: 'Disable Spanish Characters'
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","names":["model","choices","displayType","markup","maxLengthPerChoiceEnabled","playerSpellCheckEnabled","prompt","promptEnabled","rationale","rationaleEnabled","spellCheckEnabled","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition","responseAreaInputConfiguration","configuration","baseInputConfiguration","h3","disabled","html","audio","video","image","textAlign","showParagraphs","separateParagraphs","settings","label","inputConfiguration","required","partialScoring","settingsPanelDisabled","spellCheck","enabled","editSource","playerSpellCheck","template","blockquote","maxLengthPerChoice","maxResponseAreas","maxImageWidth","maxImageHeight","withRubric","mathMlOptions","mmlOutput","mmlEditing","language","languageChoices","options","characters","spanishButton"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n model: {\n choices: {},\n displayType: 'block',\n markup: '',\n maxLengthPerChoiceEnabled: true,\n playerSpellCheckEnabled: true,\n prompt: '',\n promptEnabled: true,\n rationale: '',\n rationaleEnabled: true,\n spellCheckEnabled: true,\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n responseAreaInputConfiguration: {},\n },\n configuration: {\n baseInputConfiguration: {\n h3: { disabled: true },\n html: { disabled: true },\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n textAlign: { disabled: true },\n showParagraphs: { disabled: false },\n separateParagraphs: { disabled: true },\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n partialScoring: {\n settings: false,\n label: 'Allow Partial Scoring',\n },\n rationale: {\n settings: true,\n label: 'Rationale',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n editSource: {\n label: 'Edit Source',\n settings: false,\n enabled: false,\n },\n playerSpellCheck: {\n label: 'Student Spellcheck',\n settings: true,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n required: false,\n },\n template: {\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n h3: { disabled: true },\n blockquote: { disabled: true },\n },\n },\n maxLengthPerChoice: {\n settings: true,\n label: 'Maximum Length Per Choice',\n },\n maxResponseAreas: 10,\n maxImageWidth: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n maxImageHeight: {\n teacherInstructions: 300,\n prompt: 300,\n rationale: 300,\n },\n withRubric: {\n settings: false,\n label: 'Add Rubric',\n },\n mathMlOptions: {\n mmlOutput: false,\n mmlEditing: false,\n },\n language: {\n settings: false,\n label: 'Specify Language',\n enabled: false,\n },\n languageChoices: {\n label: 'Language Choices',\n options: [],\n },\n responseAreaInputConfiguration: {\n inputConfigu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E;QAAM,CAAC;QAC1BD,EAAE,EAAE;UAAEC,QAAQ,EAAE;QAAK,CAAC;QACtBmB,UAAU,EAAE;UAAEnB,QAAQ,EAAE;QAAK;MAC/B;IACF,CAAC;IACDoB,kBAAkB,EAAE;MAClBZ,QAAQ,EAAE,IAAI;MACdC,KAAK,EAAE;IACT,CAAC;IACDY,gBAAgB,EAAE,EAAE;IACpBC,aAAa,EAAE;MACb7B,mBAAmB,EAAE,GAAG;MACxBN,MAAM,EAAE,GAAG;MACXE,SAAS,EAAE;IACb,CAAC;IACDkC,cAAc,EAAE;MACd9B,mBAAmB,EAAE,GAAG;MACxBN,MAAM,EAAE,GAAG;MACXE,SAAS,EAAE;IACb,CAAC;IACDmC,UAAU,EAAE;MACVhB,QAAQ,EAAE,KAAK;MACfC,KAAK,EAAE;IACT,CAAC;IACDgB,aAAa,EAAE;MACbC,SAAS,EAAE,KAAK;MAChBC,UAAU,EAAE;IACd,CAAC;IACDC,QAAQ,EAAE;MACRpB,QAAQ,EAAE,KAAK;MACfC,KAAK,EAAE,kBAAkB;MACzBM,OAAO,EAAE;IACX,CAAC;IACDc,eAAe,EAAE;MACfpB,KAAK,EAAE,kBAAkB;MACzBqB,OAAO,EAAE;IACX,CAAC;IACDlC,8BAA8B,EAAE;MAC9Bc,kBAAkB,EAAE;QAClBqB,UAAU,EAAE;UACV/B,QAAQ,EAAE;QACZ;MACF;IACF,CAAC;IACDgC,aAAa,EAAE;MACbxB,QAAQ,EAAE,IAAI;MACdC,KAAK,EAAE;IACT;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.ECRToolbar = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var _styles = require("@mui/material/styles");
|
|
13
|
-
var _editableHtmlTipTap = _interopRequireDefault(require("@pie-lib/editable-html-tip-tap"));
|
|
14
|
-
var _markupUtils = require("./markupUtils");
|
|
15
|
-
const findSlateNode = key => {
|
|
16
|
-
return window.document.querySelector('[data-key="' + key + '"]');
|
|
17
|
-
};
|
|
18
|
-
const StyledEditableHtml = (0, _styles.styled)(_editableHtmlTipTap.default)(({
|
|
19
|
-
theme
|
|
20
|
-
}) => ({
|
|
21
|
-
backgroundColor: theme.palette.common.white,
|
|
22
|
-
outline: 'none',
|
|
23
|
-
lineHeight: '15px'
|
|
24
|
-
}));
|
|
25
|
-
class ECRToolbar extends _react.default.Component {
|
|
26
|
-
constructor(...args) {
|
|
27
|
-
super(...args);
|
|
28
|
-
(0, _defineProperty2.default)(this, "state", {
|
|
29
|
-
markup: '',
|
|
30
|
-
toolbarStyle: {}
|
|
31
|
-
});
|
|
32
|
-
(0, _defineProperty2.default)(this, "onDone", markup => {
|
|
33
|
-
const {
|
|
34
|
-
editor,
|
|
35
|
-
node,
|
|
36
|
-
onToolbarDone,
|
|
37
|
-
onChangeResponse,
|
|
38
|
-
pos
|
|
39
|
-
} = this.props;
|
|
40
|
-
const sanitizedMarkup = (0, _markupUtils.stripHtmlTags)(markup);
|
|
41
|
-
this.setState({
|
|
42
|
-
markup: sanitizedMarkup
|
|
43
|
-
});
|
|
44
|
-
const {
|
|
45
|
-
tr
|
|
46
|
-
} = editor.state;
|
|
47
|
-
|
|
48
|
-
// Type check before calling setNodeMarkup: if the node at the current position is a text node,
|
|
49
|
-
// missing, or not an inline atom, bail out to avoid errors after a delete.
|
|
50
|
-
const nodeAtPos = tr.doc.nodeAt(pos);
|
|
51
|
-
if (!nodeAtPos || nodeAtPos.isText || !nodeAtPos.isAtom || !nodeAtPos.isInline) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Merge old and new attributes
|
|
56
|
-
tr.setNodeMarkup(pos, undefined, {
|
|
57
|
-
...node.attrs,
|
|
58
|
-
value: sanitizedMarkup
|
|
59
|
-
});
|
|
60
|
-
editor.view.dispatch(tr);
|
|
61
|
-
onToolbarDone(true);
|
|
62
|
-
onChangeResponse(sanitizedMarkup);
|
|
63
|
-
});
|
|
64
|
-
(0, _defineProperty2.default)(this, "onRespAreaChange", respAreaMarkup => {
|
|
65
|
-
this.setState({
|
|
66
|
-
respAreaMarkup
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
(0, _defineProperty2.default)(this, "onKeyDown", event => {
|
|
70
|
-
if (event.key === 'Enter') {
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
return false;
|
|
74
|
-
});
|
|
75
|
-
(0, _defineProperty2.default)(this, "onBlur", () => {
|
|
76
|
-
if (this.clickedInside) {
|
|
77
|
-
this.clickedInside = false;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
componentDidMount() {
|
|
82
|
-
const {
|
|
83
|
-
correctChoice,
|
|
84
|
-
node,
|
|
85
|
-
editor
|
|
86
|
-
} = this.props;
|
|
87
|
-
const choice = correctChoice || {};
|
|
88
|
-
const domNode = editor.view.nodeDOM(editor.state.selection.from);
|
|
89
|
-
if (domNode?.nodeType === 1) {
|
|
90
|
-
//eslint-disable-next-line
|
|
91
|
-
const domNodeRect = domNode.getBoundingClientRect();
|
|
92
|
-
const editor = domNode.closest('.tiptap');
|
|
93
|
-
const editorRect = editor.getBoundingClientRect();
|
|
94
|
-
const top = domNodeRect.top - editorRect.top;
|
|
95
|
-
const left = domNodeRect.left - editorRect.left;
|
|
96
|
-
this.setState({
|
|
97
|
-
markup: choice.label,
|
|
98
|
-
toolbarStyle: {
|
|
99
|
-
position: 'absolute',
|
|
100
|
-
// top: `${top + domNodeRect.height + 17}px`,
|
|
101
|
-
top: 0,
|
|
102
|
-
// left: `${left + 20}px`,
|
|
103
|
-
left: 0,
|
|
104
|
-
width: `${domNodeRect.width - 4}px`
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
render() {
|
|
110
|
-
const {
|
|
111
|
-
maxLengthPerChoiceEnabled,
|
|
112
|
-
pluginProps,
|
|
113
|
-
spellCheck
|
|
114
|
-
} = this.props;
|
|
115
|
-
const {
|
|
116
|
-
markup,
|
|
117
|
-
toolbarStyle
|
|
118
|
-
} = this.state;
|
|
119
|
-
const inputProps = maxLengthPerChoiceEnabled ? {} : {
|
|
120
|
-
maxLength: 25
|
|
121
|
-
};
|
|
122
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
-
style: toolbarStyle
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(StyledEditableHtml, (0, _extends2.default)({
|
|
125
|
-
autoFocus: true,
|
|
126
|
-
disableUnderline: true,
|
|
127
|
-
onChange: respAreaMarkup => {
|
|
128
|
-
if (this.preventDone) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
this.onRespAreaChange(respAreaMarkup);
|
|
132
|
-
},
|
|
133
|
-
onDone: val => {
|
|
134
|
-
if (this.preventDone) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
this.onDone(val);
|
|
138
|
-
},
|
|
139
|
-
onBlur: e => {
|
|
140
|
-
this.preventDone = e.relatedTarget && e.relatedTarget.closest('.insert-character-dialog');
|
|
141
|
-
this.onBlur(e);
|
|
142
|
-
},
|
|
143
|
-
onKeyDown: this.onKeyDown,
|
|
144
|
-
markup: markup || '',
|
|
145
|
-
activePlugins: ['languageCharacters'],
|
|
146
|
-
pluginProps: pluginProps,
|
|
147
|
-
languageCharactersProps: [{
|
|
148
|
-
language: 'spanish'
|
|
149
|
-
}],
|
|
150
|
-
minHeight: '15px',
|
|
151
|
-
maxHeight: '15px',
|
|
152
|
-
spellCheck: spellCheck,
|
|
153
|
-
autoWidthToolbar: true,
|
|
154
|
-
toolbarOpts: {
|
|
155
|
-
minWidth: 'auto',
|
|
156
|
-
isHidden: !!pluginProps?.characters?.disabled
|
|
157
|
-
}
|
|
158
|
-
}, inputProps)));
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
exports.ECRToolbar = ECRToolbar;
|
|
162
|
-
(0, _defineProperty2.default)(ECRToolbar, "propTypes", {
|
|
163
|
-
correctChoice: _propTypes.default.object,
|
|
164
|
-
node: _propTypes.default.object,
|
|
165
|
-
pos: _propTypes.default.number,
|
|
166
|
-
onDone: _propTypes.default.func,
|
|
167
|
-
onChangeResponse: _propTypes.default.func.isRequired,
|
|
168
|
-
onToolbarDone: _propTypes.default.func.isRequired,
|
|
169
|
-
value: _propTypes.default.shape({
|
|
170
|
-
change: _propTypes.default.func.isRequired,
|
|
171
|
-
document: _propTypes.default.shape({
|
|
172
|
-
getNextText: _propTypes.default.func.isRequired
|
|
173
|
-
})
|
|
174
|
-
}),
|
|
175
|
-
editor: _propTypes.default.object,
|
|
176
|
-
maxLengthPerChoiceEnabled: _propTypes.default.bool,
|
|
177
|
-
pluginProps: _propTypes.default.object,
|
|
178
|
-
spellCheck: _propTypes.default.bool
|
|
179
|
-
});
|
|
180
|
-
var _default = exports.default = ECRToolbar;
|
|
181
|
-
//# sourceMappingURL=ecr-toolbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecr-toolbar.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_editableHtmlTipTap","_markupUtils","findSlateNode","key","window","document","querySelector","StyledEditableHtml","styled","EditableHtml","theme","backgroundColor","palette","common","white","outline","lineHeight","ECRToolbar","React","Component","constructor","args","_defineProperty2","default","markup","toolbarStyle","editor","node","onToolbarDone","onChangeResponse","pos","props","sanitizedMarkup","stripHtmlTags","setState","tr","state","nodeAtPos","doc","nodeAt","isText","isAtom","isInline","setNodeMarkup","undefined","attrs","value","view","dispatch","respAreaMarkup","event","clickedInside","componentDidMount","correctChoice","choice","domNode","nodeDOM","selection","from","nodeType","domNodeRect","getBoundingClientRect","closest","editorRect","top","left","label","position","width","render","maxLengthPerChoiceEnabled","pluginProps","spellCheck","inputProps","maxLength","createElement","style","_extends2","autoFocus","disableUnderline","onChange","preventDone","onRespAreaChange","onDone","val","onBlur","e","relatedTarget","onKeyDown","activePlugins","languageCharactersProps","language","minHeight","maxHeight","autoWidthToolbar","toolbarOpts","minWidth","isHidden","characters","disabled","exports","PropTypes","object","number","func","isRequired","shape","change","getNextText","bool","_default"],"sources":["../src/ecr-toolbar.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport { stripHtmlTags } from './markupUtils';\n\nconst findSlateNode = (key) => {\n return window.document.querySelector('[data-key=\"' + key + '\"]');\n};\n\nconst StyledEditableHtml = styled(EditableHtml)(({ theme }) => ({\n backgroundColor: theme.palette.common.white,\n outline: 'none',\n lineHeight: '15px',\n}));\n\nexport class ECRToolbar extends React.Component {\n static propTypes = {\n correctChoice: PropTypes.object,\n node: PropTypes.object,\n pos: PropTypes.number,\n onDone: PropTypes.func,\n onChangeResponse: PropTypes.func.isRequired,\n onToolbarDone: PropTypes.func.isRequired,\n value: PropTypes.shape({\n change: PropTypes.func.isRequired,\n document: PropTypes.shape({\n getNextText: PropTypes.func.isRequired,\n }),\n }),\n editor: PropTypes.object,\n maxLengthPerChoiceEnabled: PropTypes.bool,\n pluginProps: PropTypes.object,\n spellCheck: PropTypes.bool,\n };\n\n state = {\n markup: '',\n toolbarStyle: {},\n };\n\n componentDidMount() {\n const { correctChoice, node, editor } = this.props;\n const choice = correctChoice || {};\n\n const domNode = editor.view.nodeDOM(editor.state.selection.from);\n\n if (domNode?.nodeType === 1) {\n //eslint-disable-next-line\n const domNodeRect = domNode.getBoundingClientRect();\n const editor = domNode.closest('.tiptap');\n const editorRect = editor.getBoundingClientRect();\n const top = domNodeRect.top - editorRect.top;\n const left = domNodeRect.left - editorRect.left;\n\n this.setState({\n markup: choice.label,\n toolbarStyle: {\n position: 'absolute',\n // top: `${top + domNodeRect.height + 17}px`,\n top: 0,\n // left: `${left + 20}px`,\n left: 0,\n width: `${domNodeRect.width - 4}px`,\n },\n });\n }\n }\n\n onDone = (markup) => {\n const { editor, node, onToolbarDone, onChangeResponse, pos } = this.props;\n const sanitizedMarkup = stripHtmlTags(markup);\n this.setState({ markup: sanitizedMarkup });\n\n const { tr } = editor.state;\n\n // Type check before calling setNodeMarkup: if the node at the current position is a text node,\n // missing, or not an inline atom, bail out to avoid errors after a delete.\n const nodeAtPos = tr.doc.nodeAt(pos);\n if (!nodeAtPos || nodeAtPos.isText || !nodeAtPos.isAtom || !nodeAtPos.isInline) {\n return false;\n }\n\n // Merge old and new attributes\n tr.setNodeMarkup(pos, undefined, { ...node.attrs, value: sanitizedMarkup });\n editor.view.dispatch(tr);\n\n onToolbarDone(true);\n onChangeResponse(sanitizedMarkup);\n };\n\n onRespAreaChange = (respAreaMarkup) => {\n this.setState({ respAreaMarkup });\n };\n\n onKeyDown = (event) => {\n if (event.key === 'Enter') {\n return true;\n }\n\n return false;\n };\n\n onBlur = () => {\n if (this.clickedInside) {\n this.clickedInside = false;\n }\n };\n\n render() {\n const { maxLengthPerChoiceEnabled, pluginProps, spellCheck } = this.props;\n const { markup, toolbarStyle } = this.state;\n const inputProps = maxLengthPerChoiceEnabled ? {} : { maxLength: 25 };\n\n return (\n <div style={toolbarStyle}>\n <StyledEditableHtml\n autoFocus={true}\n disableUnderline\n onChange={(respAreaMarkup) => {\n if (this.preventDone) {\n return;\n }\n this.onRespAreaChange(respAreaMarkup);\n }}\n onDone={(val) => {\n if (this.preventDone) {\n return;\n }\n this.onDone(val);\n }}\n onBlur={(e) => {\n this.preventDone = e.relatedTarget && e.relatedTarget.closest('.insert-character-dialog');\n this.onBlur(e);\n }}\n onKeyDown={this.onKeyDown}\n markup={markup || ''}\n activePlugins={['languageCharacters']}\n pluginProps={pluginProps}\n languageCharactersProps={[{ language: 'spanish' }]}\n minHeight={'15px'}\n maxHeight={'15px'}\n spellCheck={spellCheck}\n autoWidthToolbar\n toolbarOpts={{\n minWidth: 'auto',\n isHidden: !!pluginProps?.characters?.disabled,\n }}\n {...inputProps}\n />\n </div>\n );\n }\n}\n\nexport default ECRToolbar;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,MAAMK,aAAa,GAAIC,GAAG,IAAK;EAC7B,OAAOC,MAAM,CAACC,QAAQ,CAACC,aAAa,CAAC,aAAa,GAAGH,GAAG,GAAG,IAAI,CAAC;AAClE,CAAC;AAED,MAAMI,kBAAkB,GAAG,IAAAC,cAAM,EAACC,2BAAY,CAAC,CAAC,CAAC;EAAEC;AAAM,CAAC,MAAM;EAC9DC,eAAe,EAAED,KAAK,CAACE,OAAO,CAACC,MAAM,CAACC,KAAK;EAC3CC,OAAO,EAAE,MAAM;EACfC,UAAU,EAAE;AACd,CAAC,CAAC,CAAC;AAEI,MAAMC,UAAU,SAASC,cAAK,CAACC,SAAS,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,iBAoBtC;MACNC,MAAM,EAAE,EAAE;MACVC,YAAY,EAAE,CAAC;IACjB,CAAC;IAAA,IAAAH,gBAAA,CAAAC,OAAA,kBA8BSC,MAAM,IAAK;MACnB,MAAM;QAAEE,MAAM;QAAEC,IAAI;QAAEC,aAAa;QAAEC,gBAAgB;QAAE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,GAAG,EAAEuE,kBAAS,CAACE,MAAM;EACrBpB,MAAM,EAAEkB,kBAAS,CAACG,IAAI;EACtB3E,gBAAgB,EAAEwE,kBAAS,CAACG,IAAI,CAACC,UAAU;EAC3C7E,aAAa,EAAEyE,kBAAS,CAACG,IAAI,CAACC,UAAU;EACxC3D,KAAK,EAAEuD,kBAAS,CAACK,KAAK,CAAC;IACrBC,MAAM,EAAEN,kBAAS,CAACG,IAAI,CAACC,UAAU;IACjCpG,QAAQ,EAAEgG,kBAAS,CAACK,KAAK,CAAC;MACxBE,WAAW,EAAEP,kBAAS,CAACG,IAAI,CAACC;IAC9B,CAAC;EACH,CAAC,CAAC;EACF/E,MAAM,EAAE2E,kBAAS,CAACC,MAAM;EACxBhC,yBAAyB,EAAE+B,kBAAS,CAACQ,IAAI;EACzCtC,WAAW,EAAE8B,kBAAS,CAACC,MAAM;EAC7B9B,UAAU,EAAE6B,kBAAS,CAACQ;AACxB,CAAC;AAAA,IAAAC,QAAA,GAAAV,OAAA,CAAA7E,OAAA,GAyHYN,UAAU","ignoreList":[]}
|
package/configure/lib/index.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _client = require("react-dom/client");
|
|
11
|
-
var _debug = _interopRequireDefault(require("debug"));
|
|
12
|
-
var _lodashEs = require("lodash-es");
|
|
13
|
-
var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
|
|
14
|
-
var _main = _interopRequireDefault(require("./main"));
|
|
15
|
-
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
16
|
-
var _markupUtils = require("./markupUtils");
|
|
17
|
-
const log = (0, _debug.default)('explicit-constructed-response:configure');
|
|
18
|
-
class ExplicitConstructedResponse extends HTMLElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
this._root = null;
|
|
22
|
-
this._model = ExplicitConstructedResponse.prepareModel();
|
|
23
|
-
this._configuration = _defaults.default.configuration;
|
|
24
|
-
this.onModelChanged = this.onModelChanged.bind(this);
|
|
25
|
-
this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
26
|
-
}
|
|
27
|
-
set model(s) {
|
|
28
|
-
this._model = ExplicitConstructedResponse.prepareModel(s);
|
|
29
|
-
if (this._model.responseAreaInputConfiguration) {
|
|
30
|
-
this._model.responseAreaInputConfiguration = this._configuration.responseAreaInputConfiguration?.inputConfiguration;
|
|
31
|
-
}
|
|
32
|
-
this._render();
|
|
33
|
-
}
|
|
34
|
-
set configuration(c) {
|
|
35
|
-
this._configuration = (0, _lodashEs.defaults)(c, _defaults.default.configuration);
|
|
36
|
-
|
|
37
|
-
// if language:enabled is true, then the corresponding default item model should include a language value;
|
|
38
|
-
// if it is false, then the language field should be omitted from the item model.
|
|
39
|
-
// if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,
|
|
40
|
-
// then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).
|
|
41
|
-
if (c.language?.enabled) {
|
|
42
|
-
if (c.languageChoices?.options?.length) {
|
|
43
|
-
this._model.language = c.languageChoices.options[0].value;
|
|
44
|
-
}
|
|
45
|
-
} else if (c.language.settings && this._model.language) {
|
|
46
|
-
this._configuration.language.enabled = true;
|
|
47
|
-
if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {
|
|
48
|
-
this._configuration.languageChoices.options = [];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// check if the language is already included in the languageChoices.options array
|
|
52
|
-
// and if not, then add it.
|
|
53
|
-
if (!this._configuration.languageChoices.options.find(option => option.value === this._model.language)) {
|
|
54
|
-
this._configuration.languageChoices.options.push({
|
|
55
|
-
value: this._model.language,
|
|
56
|
-
label: this._model.language
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
delete this._model.language;
|
|
61
|
-
}
|
|
62
|
-
this._render();
|
|
63
|
-
}
|
|
64
|
-
set disableSidePanel(s) {
|
|
65
|
-
this._disableSidePanel = s;
|
|
66
|
-
this._render();
|
|
67
|
-
}
|
|
68
|
-
dispatchModelUpdated(reset) {
|
|
69
|
-
const resetValue = !!reset;
|
|
70
|
-
this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(this._model, resetValue));
|
|
71
|
-
}
|
|
72
|
-
onModelChanged(m, reset) {
|
|
73
|
-
this._model = ExplicitConstructedResponse.prepareModel(m);
|
|
74
|
-
this._render();
|
|
75
|
-
this.dispatchModelUpdated(reset);
|
|
76
|
-
}
|
|
77
|
-
onConfigurationChanged(c) {
|
|
78
|
-
this._configuration = c;
|
|
79
|
-
const newInputConfig = this._configuration?.responseAreaInputConfiguration?.inputConfiguration;
|
|
80
|
-
this._model = {
|
|
81
|
-
...this._model,
|
|
82
|
-
responseAreaInputConfiguration: newInputConfig
|
|
83
|
-
};
|
|
84
|
-
this.onModelChanged(this._model);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** @param {done, progress, file} handler */
|
|
88
|
-
insertImage(handler) {
|
|
89
|
-
this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
|
|
90
|
-
}
|
|
91
|
-
onDeleteImage(src, done) {
|
|
92
|
-
this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
|
|
93
|
-
}
|
|
94
|
-
insertSound(handler) {
|
|
95
|
-
this.dispatchEvent(new _pieConfigureEvents.InsertSoundEvent(handler));
|
|
96
|
-
}
|
|
97
|
-
onDeleteSound(src, done) {
|
|
98
|
-
this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
|
|
99
|
-
}
|
|
100
|
-
_render() {
|
|
101
|
-
log('_render');
|
|
102
|
-
let element = /*#__PURE__*/_react.default.createElement(_main.default, {
|
|
103
|
-
model: this._model,
|
|
104
|
-
configuration: this._configuration,
|
|
105
|
-
onModelChanged: this.onModelChanged,
|
|
106
|
-
onConfigurationChanged: this.onConfigurationChanged,
|
|
107
|
-
disableSidePanel: this._disableSidePanel,
|
|
108
|
-
imageSupport: {
|
|
109
|
-
add: this.insertImage.bind(this),
|
|
110
|
-
delete: this.onDeleteImage.bind(this)
|
|
111
|
-
},
|
|
112
|
-
uploadSoundSupport: {
|
|
113
|
-
add: this.insertSound.bind(this),
|
|
114
|
-
delete: this.onDeleteSound.bind(this)
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
if (!this._root) {
|
|
118
|
-
this._root = (0, _client.createRoot)(this);
|
|
119
|
-
}
|
|
120
|
-
this._root.render(element);
|
|
121
|
-
}
|
|
122
|
-
disconnectedCallback() {
|
|
123
|
-
if (this._root) {
|
|
124
|
-
this._root.unmount();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.default = ExplicitConstructedResponse;
|
|
129
|
-
(0, _defineProperty2.default)(ExplicitConstructedResponse, "prepareModel", (model = {}) => {
|
|
130
|
-
const joinedObj = {
|
|
131
|
-
..._defaults.default.model,
|
|
132
|
-
...model
|
|
133
|
-
};
|
|
134
|
-
const slateMarkup = joinedObj.slateMarkup || (0, _markupUtils.createSlateMarkup)(joinedObj.markup, joinedObj.choices);
|
|
135
|
-
const processedMarkup = (0, _markupUtils.processMarkup)(slateMarkup);
|
|
136
|
-
|
|
137
|
-
// this was added to treat an exception, when the model has choices without the "value" property
|
|
138
|
-
// like: { label: 'test' }
|
|
139
|
-
if (joinedObj.choices) {
|
|
140
|
-
Object.keys(joinedObj.choices).forEach(key => {
|
|
141
|
-
if ((0, _lodashEs.isArray)(joinedObj.choices[key])) {
|
|
142
|
-
joinedObj.choices[key] = (joinedObj.choices[key] || []).map((item, index) => {
|
|
143
|
-
if (!item.value) {
|
|
144
|
-
log('Choice does not contain "value" property, which is required.', item);
|
|
145
|
-
return {
|
|
146
|
-
value: `${index}`,
|
|
147
|
-
...item
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
return item;
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return {
|
|
156
|
-
...joinedObj,
|
|
157
|
-
slateMarkup,
|
|
158
|
-
markup: processedMarkup
|
|
159
|
-
};
|
|
160
|
-
});
|
|
161
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_client","_debug","_lodashEs","_pieConfigureEvents","_main","_defaults","_markupUtils","log","debug","ExplicitConstructedResponse","HTMLElement","constructor","_root","_model","prepareModel","_configuration","sensibleDefaults","configuration","onModelChanged","bind","onConfigurationChanged","model","s","responseAreaInputConfiguration","inputConfiguration","_render","c","defaults","language","enabled","languageChoices","options","length","value","settings","find","option","push","label","disableSidePanel","_disableSidePanel","dispatchModelUpdated","reset","resetValue","dispatchEvent","ModelUpdatedEvent","m","newInputConfig","insertImage","handler","InsertImageEvent","onDeleteImage","src","done","DeleteImageEvent","insertSound","InsertSoundEvent","onDeleteSound","DeleteSoundEvent","element","React","createElement","Main","imageSupport","add","delete","uploadSoundSupport","createRoot","render","disconnectedCallback","unmount","exports","default","_defineProperty2","joinedObj","slateMarkup","createSlateMarkup","markup","choices","processedMarkup","processMarkup","Object","keys","forEach","key","isArray","map","item","index"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport debug from 'debug';\nimport { defaults, isArray } from 'lodash-es';\nimport {\n ModelUpdatedEvent,\n DeleteImageEvent,\n InsertImageEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n} from '@pie-framework/pie-configure-events';\n\nimport Main from './main';\n\nimport sensibleDefaults from './defaults';\nimport { processMarkup, createSlateMarkup } from './markupUtils';\n\nconst log = debug('explicit-constructed-response:configure');\n\nexport default class ExplicitConstructedResponse extends HTMLElement {\n static prepareModel = (model = {}) => {\n const joinedObj = {\n ...sensibleDefaults.model,\n ...model,\n };\n const slateMarkup = joinedObj.slateMarkup || createSlateMarkup(joinedObj.markup, joinedObj.choices);\n const processedMarkup = processMarkup(slateMarkup);\n\n // this was added to treat an exception, when the model has choices without the \"value\" property\n // like: { label: 'test' }\n if (joinedObj.choices) {\n Object.keys(joinedObj.choices).forEach((key) => {\n if (isArray(joinedObj.choices[key])) {\n joinedObj.choices[key] = (joinedObj.choices[key] || []).map((item, index) => {\n if (!item.value) {\n log('Choice does not contain \"value\" property, which is required.', item);\n return { value: `${index}`, ...item };\n }\n\n return item;\n });\n }\n });\n }\n\n return {\n ...joinedObj,\n slateMarkup,\n markup: processedMarkup,\n };\n };\n\n constructor() {\n super();\n this._root = null;\n this._model = ExplicitConstructedResponse.prepareModel();\n this._configuration = sensibleDefaults.configuration;\n this.onModelChanged = this.onModelChanged.bind(this);\n this.onConfigurationChanged = this.onConfigurationChanged.bind(this);\n }\n\n set model(s) {\n this._model = ExplicitConstructedResponse.prepareModel(s);\n if (this._model.responseAreaInputConfiguration) {\n this._model.responseAreaInputConfiguration =\n this._configuration.responseAreaInputConfiguration?.inputConfiguration;\n }\n this._render();\n }\n\n set configuration(c) {\n this._configuration = defaults(c, sensibleDefaults.configuration);\n\n // if language:enabled is true, then the corresponding default item model should include a language value;\n // if it is false, then the language field should be omitted from the item model.\n // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,\n // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).\n if (c.language?.enabled) {\n if (c.languageChoices?.options?.length) {\n this._model.language = c.languageChoices.options[0].value;\n }\n } else if (c.language.settings && this._model.language) {\n this._configuration.language.enabled = true;\n\n if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {\n this._configuration.languageChoices.options = [];\n }\n\n // check if the language is already included in the languageChoices.options array\n // and if not, then add it.\n if (!this._configuration.languageChoices.options.find((option) => option.value === this._model.language)) {\n this._configuration.languageChoices.options.push({\n value: this._model.language,\n label: this._model.language,\n });\n }\n } else {\n delete this._model.language;\n }\n\n this._render();\n }\n\n set disableSidePanel(s) {\n this._disableSidePanel = s;\n this._render();\n }\n\n dispatchModelUpdated(reset) {\n const resetValue = !!reset;\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));\n }\n\n onModelChanged(m, reset) {\n this._model = ExplicitConstructedResponse.prepareModel(m);\n this._render();\n this.dispatchModelUpdated(reset);\n }\n\n onConfigurationChanged(c) {\n this._configuration = c;\n\n const newInputConfig = this._configuration?.responseAreaInputConfiguration?.inputConfiguration;\n\n this._model = {\n ...this._model,\n responseAreaInputConfiguration: newInputConfig,\n };\n\n this.onModelChanged(this._model);\n }\n\n /** @param {done, progress, file} handler */\n insertImage(handler) {\n this.dispatchEvent(new InsertImageEvent(handler));\n }\n\n onDeleteImage(src, done) {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n }\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n _render() {\n log('_render');\n\n let element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n disableSidePanel: this._disableSidePanel,\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA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