@pie-element/inline-dropdown 10.1.1-next.1 → 10.1.1-next.29
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 +1082 -0
- package/CHANGELOG.md +2181 -0
- package/LICENSE.md +5 -0
- package/README.md +1 -0
- package/configure/CHANGELOG.json +647 -0
- package/configure/CHANGELOG.md +1938 -0
- package/configure/lib/defaults.js +192 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +135 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/inline-dropdown-toolbar.js +456 -0
- package/configure/lib/inline-dropdown-toolbar.js.map +1 -0
- package/configure/lib/main.js +612 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/lib/markupUtils.js +50 -0
- package/configure/lib/markupUtils.js.map +1 -0
- package/configure/lib/response-area.js +48 -0
- package/configure/lib/response-area.js.map +1 -0
- package/configure/lib/utils.js +22 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +24 -0
- package/controller/CHANGELOG.json +467 -0
- package/controller/CHANGELOG.md +1279 -0
- package/controller/lib/defaults.js +25 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +295 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/lib/utils.js +32 -0
- package/controller/lib/utils.js.map +1 -0
- package/controller/package.json +16 -0
- package/docs/config-schema.json +2854 -0
- package/docs/config-schema.json.md +2106 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +76 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +11 -0
- package/docs/pie-schema.json +1152 -0
- package/docs/pie-schema.json.md +814 -0
- package/lib/index.js +85 -0
- package/lib/index.js.map +1 -0
- package/lib/inline-dropdown.js +176 -0
- package/lib/inline-dropdown.js.map +1 -0
- package/package.json +20 -57
- package/dist/author/defaults.d.ts +0 -194
- package/dist/author/defaults.js +0 -130
- package/dist/author/index.d.ts +0 -43
- package/dist/author/index.js +0 -83
- package/dist/author/inline-dropdown-toolbar.d.ts +0 -47
- package/dist/author/inline-dropdown-toolbar.js +0 -262
- package/dist/author/main.d.ts +0 -48
- package/dist/author/main.js +0 -375
- package/dist/author/markupUtils.d.ts +0 -12
- package/dist/author/markupUtils.js +0 -23
- package/dist/author/response-area.d.ts +0 -20
- package/dist/author/response-area.js +0 -32
- package/dist/author/utils.d.ts +0 -10
- package/dist/author/utils.js +0 -10
- package/dist/controller/defaults.d.ts +0 -27
- package/dist/controller/defaults.js +0 -21
- package/dist/controller/index.d.ts +0 -54
- package/dist/controller/index.js +0 -126
- package/dist/controller/utils.d.ts +0 -12
- package/dist/controller/utils.js +0 -13
- package/dist/delivery/index.d.ts +0 -20
- package/dist/delivery/index.js +0 -60
- package/dist/delivery/inline-dropdown.d.ts +0 -38
- package/dist/delivery/inline-dropdown.js +0 -109
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -148
- package/dist/index.js +0 -2
- 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/_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/_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/_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/_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/_castFunction.js +0 -7
- 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/_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/_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/_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/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/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/forEach.js +0 -10
- 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/isUndefined.js +0 -6
- 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/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/toString.js +0 -7
package/dist/author/main.js
DELETED
|
@@ -1,375 +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/isEqual.js";
|
|
4
|
-
import r from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js";
|
|
5
|
-
import i from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js";
|
|
6
|
-
import a from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js";
|
|
7
|
-
import { generateValidationMessage as o } from "./utils.js";
|
|
8
|
-
import s from "./inline-dropdown-toolbar.js";
|
|
9
|
-
import c from "./response-area.js";
|
|
10
|
-
import l from "react";
|
|
11
|
-
import { renderMath as u } from "@pie-element/shared-math-rendering-mathjax";
|
|
12
|
-
import d from "react-dom";
|
|
13
|
-
import f from "prop-types";
|
|
14
|
-
import { color as p } from "@pie-lib/render-ui";
|
|
15
|
-
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
16
|
-
import { styled as g } from "@mui/material/styles";
|
|
17
|
-
import _, { ALL_PLUGINS as v } from "@pie-lib/editable-html-tip-tap";
|
|
18
|
-
import { AlertDialog as ee, InputContainer as y, layout as b, settings as x } from "@pie-lib/config-ui";
|
|
19
|
-
import S from "@mui/material/Tooltip";
|
|
20
|
-
import C from "@mui/material/Typography";
|
|
21
|
-
import te from "@mui/material/Accordion";
|
|
22
|
-
import ne from "@mui/material/AccordionSummary";
|
|
23
|
-
import w from "@mui/material/AccordionDetails";
|
|
24
|
-
import re from "@mui/icons-material/ExpandMore";
|
|
25
|
-
import ie from "@mui/icons-material/Info";
|
|
26
|
-
//#region src/author/main.tsx
|
|
27
|
-
var { toggle: T, Panel: E, dropdown: D } = x, O = g(y)(({ theme: e }) => ({
|
|
28
|
-
width: "100%",
|
|
29
|
-
paddingTop: e.spacing(2),
|
|
30
|
-
marginBottom: e.spacing(2)
|
|
31
|
-
})), k = g(y)(({ theme: e }) => ({
|
|
32
|
-
width: "100%",
|
|
33
|
-
paddingTop: e.spacing(.5),
|
|
34
|
-
marginBottom: e.spacing(2)
|
|
35
|
-
})), A = g(C)(({ theme: e }) => ({
|
|
36
|
-
fontSize: e.typography.fontSize + 2,
|
|
37
|
-
marginRight: e.spacing(1)
|
|
38
|
-
})), ae = g("span")(({ theme: e }) => ({
|
|
39
|
-
display: "flex",
|
|
40
|
-
alignItems: "center",
|
|
41
|
-
whiteSpace: "break-spaces",
|
|
42
|
-
color: p.disabled(),
|
|
43
|
-
padding: 0,
|
|
44
|
-
fontSize: e.typography.fontSize - 2,
|
|
45
|
-
lineHeight: 1
|
|
46
|
-
})), oe = g("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), se = g(w)({
|
|
47
|
-
display: "block",
|
|
48
|
-
paddingTop: 0,
|
|
49
|
-
paddingBottom: 0
|
|
50
|
-
}), ce = g("div")(({ theme: e }) => ({
|
|
51
|
-
display: "flex",
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
marginBottom: e.spacing(1)
|
|
54
|
-
})), le = g(S)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
55
|
-
fontSize: e.typography.fontSize - 2,
|
|
56
|
-
whiteSpace: "pre",
|
|
57
|
-
maxWidth: "500px"
|
|
58
|
-
} })), j = g("div")(({ theme: e }) => ({
|
|
59
|
-
fontSize: e.typography.fontSize - 2,
|
|
60
|
-
color: e.palette.error.main,
|
|
61
|
-
paddingTop: e.spacing(1)
|
|
62
|
-
})), M = (e) => {
|
|
63
|
-
let t = document.createElement("div");
|
|
64
|
-
return t.innerHTML = (e || "").trim(), t;
|
|
65
|
-
}, N = class extends l.Component {
|
|
66
|
-
static propTypes = {
|
|
67
|
-
configuration: f.object.isRequired,
|
|
68
|
-
model: f.object.isRequired,
|
|
69
|
-
disableSidePanel: f.bool,
|
|
70
|
-
onModelChanged: f.func.isRequired,
|
|
71
|
-
onConfigurationChanged: f.func.isRequired,
|
|
72
|
-
imageSupport: f.shape({
|
|
73
|
-
add: f.func.isRequired,
|
|
74
|
-
delete: f.func.isRequired
|
|
75
|
-
}),
|
|
76
|
-
uploadSoundSupport: f.shape({
|
|
77
|
-
add: f.func.isRequired,
|
|
78
|
-
delete: f.func.isRequired
|
|
79
|
-
})
|
|
80
|
-
};
|
|
81
|
-
state = { warning: { open: !1 } };
|
|
82
|
-
componentDidMount() {
|
|
83
|
-
let { model: { choices: t } } = this.props;
|
|
84
|
-
this.setState({ respAreaChoices: e(t) });
|
|
85
|
-
}
|
|
86
|
-
UNSAFE_componentWillReceiveProps(r) {
|
|
87
|
-
let i = {};
|
|
88
|
-
(!n(r.model.choices, this.props.model.choices) || !n(r.model.choices, this.state.respAreaChoices)) && (i.respAreaChoices = e(r.model.choices)), t(i) || this.setState(i);
|
|
89
|
-
}
|
|
90
|
-
componentDidUpdate() {
|
|
91
|
-
u(d.findDOMNode(this));
|
|
92
|
-
}
|
|
93
|
-
onModelChange = (e) => {
|
|
94
|
-
this.props.onModelChanged({
|
|
95
|
-
...this.props.model,
|
|
96
|
-
...e
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
onPromptChanged = (e) => {
|
|
100
|
-
this.onModelChange({ prompt: e });
|
|
101
|
-
};
|
|
102
|
-
onRationaleChanged = (e) => {
|
|
103
|
-
this.onModelChange({ rationale: e });
|
|
104
|
-
};
|
|
105
|
-
onChoiceRationaleChanged = (e, t) => {
|
|
106
|
-
let { model: n } = this.props, r = n.choices && n.choices[e] && n.choices[e].findIndex((e) => e.label === t.label && e.value === t.value);
|
|
107
|
-
n.choices[e] && n.choices[e].splice(r, 1, t), this.onModelChange(n);
|
|
108
|
-
};
|
|
109
|
-
onTeacherInstructionsChanged = (e) => {
|
|
110
|
-
this.onModelChange({ teacherInstructions: e });
|
|
111
|
-
};
|
|
112
|
-
onMarkupChanged = (e) => {
|
|
113
|
-
this.onModelChange({ slateMarkup: e });
|
|
114
|
-
};
|
|
115
|
-
onCheck = (e) => {
|
|
116
|
-
this.setState({ warning: {
|
|
117
|
-
open: !0,
|
|
118
|
-
text: "Response areas with under 2 options or with no correct answers will be discarded.",
|
|
119
|
-
onClose: () => {
|
|
120
|
-
this.setState({ warning: { open: !1 } });
|
|
121
|
-
},
|
|
122
|
-
onConfirm: () => {
|
|
123
|
-
this.setState({ warning: { open: !1 } }, e);
|
|
124
|
-
}
|
|
125
|
-
} });
|
|
126
|
-
};
|
|
127
|
-
onChange = (t) => {
|
|
128
|
-
let { respAreaChoices: n } = this.state, i = M(t), o = i.querySelectorAll("[data-type=\"inline_dropdown\"]"), s = {};
|
|
129
|
-
o.forEach((e) => {
|
|
130
|
-
s[e.dataset.index] = e.dataset.value || "";
|
|
131
|
-
});
|
|
132
|
-
let c = a(n, (e, t, i) => (r(s[i]) || (e[i] = n[i]), e), {}), l = {}, u = !1;
|
|
133
|
-
o.forEach((e, t) => {
|
|
134
|
-
let n = c[e.dataset.index] || [];
|
|
135
|
-
n.length < 2 || !n.find((e) => e.correct) ? (e.remove(), u = !0) : (l[t] = c[e.dataset.index] || [], e.dataset.index = t);
|
|
136
|
-
}), u ? this.onCheck(() => this.onModelChange({
|
|
137
|
-
choices: e(l),
|
|
138
|
-
slateMarkup: i.innerHTML
|
|
139
|
-
})) : this.onModelChange({
|
|
140
|
-
choices: e(l),
|
|
141
|
-
slateMarkup: i.innerHTML
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
onAddChoice = (t, n, r) => {
|
|
145
|
-
let { respAreaChoices: a } = this.state, { maxResponseAreaChoices: o } = this.props.configuration, s = (e) => this.setState({ warning: {
|
|
146
|
-
open: !0,
|
|
147
|
-
text: e,
|
|
148
|
-
onClose: void 0,
|
|
149
|
-
onConfirm: () => {
|
|
150
|
-
this.setState({ warning: { open: !1 } });
|
|
151
|
-
}
|
|
152
|
-
} });
|
|
153
|
-
if (a[t] && a[t].length >= o) {
|
|
154
|
-
s(`There are only ${o} answers allowed per choice.`);
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
if (a[t] || (a[t] = []), (a[t] || []).find((e, t) => e.label === n && t !== r)) {
|
|
158
|
-
s("Duplicate answers are not allowed.");
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (r >= 0 && a[t]?.[r]) a[t][r].label = n;
|
|
162
|
-
else {
|
|
163
|
-
let e = a[t] && i(a[t].map((e) => parseInt(e.value)).filter((e) => !isNaN(e))) || 0;
|
|
164
|
-
a[t].push({
|
|
165
|
-
label: n,
|
|
166
|
-
value: `${e + 1}`,
|
|
167
|
-
correct: !1
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
this.onModelChange({ choices: e(a) });
|
|
171
|
-
};
|
|
172
|
-
onRemoveChoice = (t, n) => {
|
|
173
|
-
let { respAreaChoices: r } = this.state;
|
|
174
|
-
r[t].splice(n, 1), this.onModelChange({ choices: e(r) });
|
|
175
|
-
};
|
|
176
|
-
onSelectChoice = (t, n) => {
|
|
177
|
-
let { respAreaChoices: r } = this.state;
|
|
178
|
-
r[t] = r[t].map((e, t) => ({
|
|
179
|
-
...e,
|
|
180
|
-
correct: t === n
|
|
181
|
-
})), this.onModelChange({ choices: e(r) });
|
|
182
|
-
};
|
|
183
|
-
render() {
|
|
184
|
-
let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: u = {}, choiceRationale: d = {}, contentDimensions: f = {}, lockChoiceOrder: p = {}, maxResponseAreas: g, maxImageWidth: y = {}, maxImageHeight: x = {}, partialScoring: S = {}, prompt: C = {}, rationale: w = {}, settingsPanelDisabled: M, spellCheck: N = {}, teacherInstructions: P = {}, template: F = {}, withRubric: I = {}, mathMlOptions: L = {}, language: R = {}, languageChoices: z = {}, responseAreaInputConfiguration: B = {} } = n || {}, { choiceRationaleEnabled: V, choices: H, errors: U, extraCSSRules: ue, promptEnabled: de, rationaleEnabled: fe, spellCheckEnabled: W, teacherInstructionsEnabled: pe, toolbarEditorPosition: me } = t || {}, { prompt: G, rationale: K, responseAreasError: q, responseAreaChoicesError: he, teacherInstructions: J } = U || {}, Y = y && y.prompt, X = x && x.prompt, Z = () => (Object.keys(H) || []).map((e, t) => /* @__PURE__ */ m(oe, { children: /* @__PURE__ */ h(te, {
|
|
185
|
-
slotProps: { transition: { timeout: {
|
|
186
|
-
enter: 225,
|
|
187
|
-
exit: 195
|
|
188
|
-
} } },
|
|
189
|
-
children: [/* @__PURE__ */ m(ne, {
|
|
190
|
-
expandIcon: /* @__PURE__ */ m(re, {}),
|
|
191
|
-
children: /* @__PURE__ */ m(A, {
|
|
192
|
-
component: "div",
|
|
193
|
-
children: `Rationale for response area #${t + 1}`
|
|
194
|
-
})
|
|
195
|
-
}), /* @__PURE__ */ m(se, { children: (H[e] || []).map((t) => /* @__PURE__ */ h(l.Fragment, { children: [/* @__PURE__ */ m(ae, { dangerouslySetInnerHTML: { __html: `${w.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ m(k, { children: /* @__PURE__ */ m(_, {
|
|
196
|
-
markup: t.rationale || "",
|
|
197
|
-
spellCheck: W,
|
|
198
|
-
pluginProps: $(w?.inputConfiguration),
|
|
199
|
-
onChange: (n) => this.onChoiceRationaleChanged(e, {
|
|
200
|
-
...t,
|
|
201
|
-
rationale: n
|
|
202
|
-
}),
|
|
203
|
-
imageSupport: i,
|
|
204
|
-
maxImageWidth: y && y.rationale || Y,
|
|
205
|
-
maxImageHeight: x && x.rationale || X,
|
|
206
|
-
uploadSoundSupport: a,
|
|
207
|
-
mathMlOptions: L
|
|
208
|
-
}) })] }, t.label)) })]
|
|
209
|
-
}) }, e)), Q = { position: me === "top" ? "top" : "bottom" }, ge = o(n), _e = {
|
|
210
|
-
partialScoring: S.settings && T(S.label),
|
|
211
|
-
lockChoiceOrder: p.settings && T(p.label),
|
|
212
|
-
"language.enabled": R.settings && T(R.label, !0),
|
|
213
|
-
language: R.settings && R.enabled && D(z.label, z.options)
|
|
214
|
-
}, ve = {
|
|
215
|
-
teacherInstructionsEnabled: P.settings && T(P.label),
|
|
216
|
-
rationaleEnabled: w.settings && T(w.label),
|
|
217
|
-
choiceRationaleEnabled: d.settings && T(d.label),
|
|
218
|
-
promptEnabled: C.settings && T(C.label),
|
|
219
|
-
spellCheckEnabled: N.settings && T(N.label),
|
|
220
|
-
rubricEnabled: I?.settings && T(I?.label)
|
|
221
|
-
}, $ = (e = {}) => ({
|
|
222
|
-
...u,
|
|
223
|
-
...e
|
|
224
|
-
});
|
|
225
|
-
return /* @__PURE__ */ h(b.ConfigLayout, {
|
|
226
|
-
extraCSSRules: {
|
|
227
|
-
names: ["red", "blue"],
|
|
228
|
-
rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
|
|
229
|
-
},
|
|
230
|
-
dimensions: f,
|
|
231
|
-
hideSettings: M,
|
|
232
|
-
settings: /* @__PURE__ */ m(E, {
|
|
233
|
-
model: t,
|
|
234
|
-
configuration: n,
|
|
235
|
-
onChangeModel: (e) => this.onModelChange(e),
|
|
236
|
-
onChangeConfiguration: (e) => r(e, !0),
|
|
237
|
-
groups: {
|
|
238
|
-
Settings: _e,
|
|
239
|
-
Properties: ve
|
|
240
|
-
}
|
|
241
|
-
}),
|
|
242
|
-
children: [
|
|
243
|
-
pe && /* @__PURE__ */ h(O, {
|
|
244
|
-
label: P.label,
|
|
245
|
-
children: [/* @__PURE__ */ m(_, {
|
|
246
|
-
markup: t.teacherInstructions || "",
|
|
247
|
-
onChange: this.onTeacherInstructionsChanged,
|
|
248
|
-
imageSupport: i,
|
|
249
|
-
nonEmpty: !1,
|
|
250
|
-
error: J,
|
|
251
|
-
toolbarOpts: Q,
|
|
252
|
-
pluginProps: $(P?.inputConfiguration),
|
|
253
|
-
spellCheck: W,
|
|
254
|
-
maxImageWidth: y && y.teacherInstructions || Y,
|
|
255
|
-
maxImageHeight: x && x.teacherInstructions || X,
|
|
256
|
-
uploadSoundSupport: a,
|
|
257
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
258
|
-
mathMlOptions: L
|
|
259
|
-
}), J && /* @__PURE__ */ m(j, { children: J })]
|
|
260
|
-
}),
|
|
261
|
-
de && /* @__PURE__ */ h(O, {
|
|
262
|
-
label: C.label,
|
|
263
|
-
children: [/* @__PURE__ */ m(_, {
|
|
264
|
-
markup: t.prompt,
|
|
265
|
-
onChange: this.onPromptChanged,
|
|
266
|
-
imageSupport: i,
|
|
267
|
-
nonEmpty: !1,
|
|
268
|
-
disableUnderline: !0,
|
|
269
|
-
error: G,
|
|
270
|
-
toolbarOpts: Q,
|
|
271
|
-
pluginProps: $(C?.inputConfiguration),
|
|
272
|
-
spellCheck: W,
|
|
273
|
-
maxImageWidth: Y,
|
|
274
|
-
maxImageHeight: X,
|
|
275
|
-
uploadSoundSupport: a,
|
|
276
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
277
|
-
mathMlOptions: L
|
|
278
|
-
}), G && /* @__PURE__ */ m(j, { children: G })]
|
|
279
|
-
}),
|
|
280
|
-
/* @__PURE__ */ h(ce, { children: [/* @__PURE__ */ m(A, {
|
|
281
|
-
component: "div",
|
|
282
|
-
children: "Define Template, Choices, and Correct Responses"
|
|
283
|
-
}), /* @__PURE__ */ m(le, {
|
|
284
|
-
disableFocusListener: !0,
|
|
285
|
-
disableTouchListener: !0,
|
|
286
|
-
placement: "right",
|
|
287
|
-
title: ge,
|
|
288
|
-
children: /* @__PURE__ */ m(ie, {
|
|
289
|
-
fontSize: "small",
|
|
290
|
-
color: "primary"
|
|
291
|
-
})
|
|
292
|
-
})] }),
|
|
293
|
-
/* @__PURE__ */ m(c, {
|
|
294
|
-
responseAreasError: q,
|
|
295
|
-
responseAreaChoicesError: he,
|
|
296
|
-
editableHtmlProps: {
|
|
297
|
-
pluginProps: $(F?.inputConfiguration),
|
|
298
|
-
activePlugins: v,
|
|
299
|
-
toolbarOpts: { position: "top" },
|
|
300
|
-
extraCSSRules: {
|
|
301
|
-
names: ["red", "blue"],
|
|
302
|
-
rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
|
|
303
|
-
},
|
|
304
|
-
responseAreaProps: {
|
|
305
|
-
type: "inline-dropdown",
|
|
306
|
-
options: { duplicates: !0 },
|
|
307
|
-
maxResponseAreas: g,
|
|
308
|
-
respAreaToolbar: (e, t, n) => {
|
|
309
|
-
let [r, i] = e, { respAreaChoices: o } = this.state;
|
|
310
|
-
return (e) => /* @__PURE__ */ m(s, {
|
|
311
|
-
...e,
|
|
312
|
-
onAddChoice: this.onAddChoice,
|
|
313
|
-
onCheck: this.onCheck,
|
|
314
|
-
onRemoveChoice: (e) => this.onRemoveChoice(r.attrs.index, e),
|
|
315
|
-
onSelectChoice: (e) => this.onSelectChoice(r.attrs.index, e),
|
|
316
|
-
node: r,
|
|
317
|
-
pos: i,
|
|
318
|
-
editor: t,
|
|
319
|
-
onToolbarDone: n,
|
|
320
|
-
choices: o[r.attrs.index],
|
|
321
|
-
spellCheck: W,
|
|
322
|
-
uploadSoundSupport: a,
|
|
323
|
-
mathMlOptions: L,
|
|
324
|
-
baseInputConfiguration: u,
|
|
325
|
-
responseAreaInputConfiguration: B
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
spellCheck: W,
|
|
330
|
-
markup: t.slateMarkup || "",
|
|
331
|
-
onChange: this.onChange,
|
|
332
|
-
imageSupport: i,
|
|
333
|
-
disableImageAlignmentButtons: !0,
|
|
334
|
-
disabled: !1,
|
|
335
|
-
highlightShape: !1,
|
|
336
|
-
error: q,
|
|
337
|
-
uploadSoundSupport: a,
|
|
338
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
339
|
-
mathMlOptions: L
|
|
340
|
-
}
|
|
341
|
-
}),
|
|
342
|
-
V && Z(),
|
|
343
|
-
fe && /* @__PURE__ */ h(O, {
|
|
344
|
-
label: w.label,
|
|
345
|
-
children: [/* @__PURE__ */ m(_, {
|
|
346
|
-
markup: t.rationale || "",
|
|
347
|
-
onChange: this.onRationaleChanged,
|
|
348
|
-
imageSupport: i,
|
|
349
|
-
error: K,
|
|
350
|
-
toolbarOpts: Q,
|
|
351
|
-
pluginProps: $(w?.inputConfiguration),
|
|
352
|
-
spellCheck: W,
|
|
353
|
-
maxImageWidth: y && y.rationale || Y,
|
|
354
|
-
maxImageHeight: x && x.rationale || X,
|
|
355
|
-
uploadSoundSupport: a,
|
|
356
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
357
|
-
mathMlOptions: L
|
|
358
|
-
}), K && /* @__PURE__ */ m(j, { children: K })]
|
|
359
|
-
}),
|
|
360
|
-
/* @__PURE__ */ m(ee, {
|
|
361
|
-
open: e.open,
|
|
362
|
-
title: "Warning",
|
|
363
|
-
text: e.text,
|
|
364
|
-
onClose: e.onClose,
|
|
365
|
-
onConfirm: e.onConfirm,
|
|
366
|
-
disableAutoFocus: !0,
|
|
367
|
-
disableEnforceFocus: !0,
|
|
368
|
-
disableRestoreFocus: !0
|
|
369
|
-
})
|
|
370
|
-
]
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
//#endregion
|
|
375
|
-
export { N as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/inline-dropdown/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 createElementFromHTML: (htmlString: any) => HTMLDivElement;
|
|
11
|
-
export declare const processMarkup: (markup: any) => string;
|
|
12
|
-
export declare const createSlateMarkup: (markup: any, choices: any) => any;
|
|
@@ -1,23 +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));
|
|
8
|
-
return t.querySelectorAll("[data-type=\"inline_dropdown\"]").forEach((e) => {
|
|
9
|
-
e.replaceWith(`{{${e.dataset.index}}}`);
|
|
10
|
-
}), t.innerHTML;
|
|
11
|
-
}, s = /\{\{(\d+)\}\}/g, c = (t, n) => {
|
|
12
|
-
let r = i(t), a = (t) => {
|
|
13
|
-
let r = n[t] && n[t].find((e) => e.correct);
|
|
14
|
-
return (!r || !r.value) && (r = {
|
|
15
|
-
id: "",
|
|
16
|
-
value: "",
|
|
17
|
-
label: ""
|
|
18
|
-
}), `<span data-type="inline_dropdown" data-index="${t}" data-value="${e(r.label)}"></span>`;
|
|
19
|
-
};
|
|
20
|
-
return r.replace(s, (e, t) => a(t));
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { c as createSlateMarkup, o as processMarkup };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/inline-dropdown/configure/src/response-area.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
|
-
declare class ResponseAreaComponent extends React.Component {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
editableHtmlProps: PropTypes.Validator<object>;
|
|
14
|
-
responseAreasError: PropTypes.Requireable<string>;
|
|
15
|
-
responseAreaChoicesError: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
componentDidMount(): void;
|
|
18
|
-
render(): React.JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
export default ResponseAreaComponent;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { renderMath as t } from "@pie-element/shared-math-rendering-mathjax";
|
|
3
|
-
import n from "react-dom";
|
|
4
|
-
import r from "prop-types";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
import { styled as o } from "@mui/material/styles";
|
|
7
|
-
import s from "@pie-lib/editable-html-tip-tap";
|
|
8
|
-
//#region src/author/response-area.tsx
|
|
9
|
-
var c = o("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), l = o("div")(({ theme: e }) => ({
|
|
10
|
-
fontSize: e.typography.fontSize - 2,
|
|
11
|
-
color: e.palette.error.main,
|
|
12
|
-
paddingTop: e.spacing(1)
|
|
13
|
-
})), u = class extends e.Component {
|
|
14
|
-
static propTypes = {
|
|
15
|
-
editableHtmlProps: r.object.isRequired,
|
|
16
|
-
responseAreasError: r.string,
|
|
17
|
-
responseAreaChoicesError: r.string
|
|
18
|
-
};
|
|
19
|
-
componentDidMount() {
|
|
20
|
-
t(n.findDOMNode(this));
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
let { editableHtmlProps: e, responseAreasError: t, responseAreaChoicesError: n } = this.props;
|
|
24
|
-
return /* @__PURE__ */ a(c, { children: [
|
|
25
|
-
/* @__PURE__ */ i(s, { ...e }),
|
|
26
|
-
t && /* @__PURE__ */ i(l, { children: t }),
|
|
27
|
-
n && /* @__PURE__ */ i(l, { children: n })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { u as default };
|
package/dist/author/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/inline-dropdown/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;
|
|
10
|
-
export declare const getPluginProps: (props?: {}, baseInputConfiguration?: {}) => {};
|
package/dist/author/utils.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/author/utils.ts
|
|
2
|
-
var e = (e) => {
|
|
3
|
-
let { maxResponseAreas: t, maxResponseAreaChoices: n } = e;
|
|
4
|
-
return "Validation requirements:" + ("\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined." + (n ? `\nThere should be at most ${n} choices defined per response area.` : ""));
|
|
5
|
-
}, t = (e = {}, t = {}) => ({
|
|
6
|
-
...t,
|
|
7
|
-
...e
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as generateValidationMessage, t as getPluginProps };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/inline-dropdown/controller/src/defaults.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
|
-
declare const _default: {
|
|
10
|
-
alternateResponse: {};
|
|
11
|
-
choiceRationaleEnabled: boolean;
|
|
12
|
-
choices: {};
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
displayType: string;
|
|
15
|
-
markup: string;
|
|
16
|
-
mode: string;
|
|
17
|
-
prompt: string;
|
|
18
|
-
promptEnabled: boolean;
|
|
19
|
-
rationale: string;
|
|
20
|
-
rationaleEnabled: boolean;
|
|
21
|
-
shuffle: boolean;
|
|
22
|
-
studentInstructionsEnabled: boolean;
|
|
23
|
-
teacherInstructions: string;
|
|
24
|
-
teacherInstructionsEnabled: boolean;
|
|
25
|
-
toolbarEditorPosition: string;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region src/controller/defaults.ts
|
|
2
|
-
var e = {
|
|
3
|
-
alternateResponse: {},
|
|
4
|
-
choiceRationaleEnabled: !0,
|
|
5
|
-
choices: {},
|
|
6
|
-
disabled: !1,
|
|
7
|
-
displayType: "block",
|
|
8
|
-
markup: "",
|
|
9
|
-
mode: "gather",
|
|
10
|
-
prompt: "",
|
|
11
|
-
promptEnabled: !0,
|
|
12
|
-
rationale: "",
|
|
13
|
-
rationaleEnabled: !0,
|
|
14
|
-
shuffle: !0,
|
|
15
|
-
studentInstructionsEnabled: !0,
|
|
16
|
-
teacherInstructions: "",
|
|
17
|
-
teacherInstructionsEnabled: !0,
|
|
18
|
-
toolbarEditorPosition: "bottom"
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { e as default };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/inline-dropdown/controller/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 declare const normalize: (question: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param {*} question
|
|
13
|
-
* @param {*} session
|
|
14
|
-
* @param {*} env
|
|
15
|
-
* @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
|
|
16
|
-
*/
|
|
17
|
-
export declare function model(question: any, session: any, env: any, updateSession: any): Promise<{
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
mode: any;
|
|
20
|
-
prompt: any;
|
|
21
|
-
displayType: any;
|
|
22
|
-
markup: any;
|
|
23
|
-
choices: any;
|
|
24
|
-
feedback: {};
|
|
25
|
-
responseCorrect: boolean | undefined;
|
|
26
|
-
rationale: any;
|
|
27
|
-
teacherInstructions: any;
|
|
28
|
-
language: any;
|
|
29
|
-
extraCSSRules: any;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const getScore: (config: any, session: any) => number;
|
|
32
|
-
/**
|
|
33
|
-
* Generates detailed trace log for scoring evaluation
|
|
34
|
-
* @param {Object} model - the question model
|
|
35
|
-
* @param {Object} session - the student session
|
|
36
|
-
* @param {Object} env - the environment
|
|
37
|
-
* @returns {Array} traceLog - array of trace messages
|
|
38
|
-
*/
|
|
39
|
-
export declare const getLogTrace: (model: any, session: any, env: any) => string[];
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* The score is partial by default for checkbox mode, allOrNothing for radio mode.
|
|
43
|
-
* To disable partial scoring for checkbox mode you either set model.partialScoring = false or env.partialScoring =
|
|
44
|
-
* false. the value in `env` will override the value in `model`.
|
|
45
|
-
* @param {Object} model - the main model
|
|
46
|
-
* @param {boolean} model.partialScoring - is partial scoring enabled (if undefined set to to true)
|
|
47
|
-
* @param {*} session
|
|
48
|
-
* @param {Object} env
|
|
49
|
-
* @param {boolean} env.partialScoring - is partial scoring enabled (if undefined default to true) This overrides
|
|
50
|
-
* `model.partialScoring`.
|
|
51
|
-
*/
|
|
52
|
-
export declare function outcome(model: any, session: any, env?: {}): Promise<unknown>;
|
|
53
|
-
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
54
|
-
export declare const validate: (model?: {}, config?: {}) => {};
|