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