@pie-element/image-cloze-association 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/defaults.d.ts +89 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +58 -0
- package/dist/author/index.d.ts +35 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +71 -0
- package/dist/author/root.d.ts +15 -0
- package/dist/author/root.d.ts.map +1 -0
- package/dist/author/root.js +80 -0
- package/dist/controller/defaults.d.ts +17 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +10 -0
- package/dist/controller/index.d.ts +24 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +124 -0
- package/dist/controller/utils.d.ts +15 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +36 -0
- package/dist/delivery/constants.d.ts +15 -0
- package/dist/delivery/constants.d.ts.map +1 -0
- package/dist/delivery/evaluation-icon.d.ts +29 -0
- package/dist/delivery/evaluation-icon.d.ts.map +1 -0
- package/dist/delivery/evaluation-icon.js +38 -0
- package/dist/delivery/image-container.d.ts +14 -0
- package/dist/delivery/image-container.d.ts.map +1 -0
- package/dist/delivery/image-container.js +61 -0
- package/dist/delivery/image-drop-target.d.ts +46 -0
- package/dist/delivery/image-drop-target.d.ts.map +1 -0
- package/dist/delivery/image-drop-target.js +90 -0
- package/dist/delivery/index.d.ts +21 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +110 -0
- package/dist/delivery/interactive-section.d.ts +16 -0
- package/dist/delivery/interactive-section.d.ts.map +1 -0
- package/dist/delivery/interactive-section.js +72 -0
- package/dist/delivery/possible-response.d.ts +35 -0
- package/dist/delivery/possible-response.d.ts.map +1 -0
- package/dist/delivery/possible-response.js +100 -0
- package/dist/delivery/possible-responses.d.ts +32 -0
- package/dist/delivery/possible-responses.d.ts.map +1 -0
- package/dist/delivery/possible-responses.js +41 -0
- package/dist/delivery/root.d.ts +22 -0
- package/dist/delivery/root.d.ts.map +1 -0
- package/dist/delivery/root.js +279 -0
- package/dist/delivery/static-html-span.d.ts +15 -0
- package/dist/delivery/static-html-span.d.ts.map +1 -0
- package/dist/delivery/static-html-span.js +22 -0
- package/dist/delivery/utils-correctness.d.ts +11 -0
- package/dist/delivery/utils-correctness.d.ts.map +1 -0
- package/dist/delivery/utils-correctness.js +43 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +160 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayShuffle.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRandom.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseShuffle.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseValues.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createBaseEach.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMatchData.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shuffleSelf.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/groupBy.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/map.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/shuffle.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/values.js +8 -0
- package/package.json +75 -0
- package/src/author/defaults.ts +69 -0
- package/src/author/index.ts +124 -0
- package/src/author/root.tsx +126 -0
- package/src/controller/defaults.ts +17 -0
- package/src/controller/index.ts +332 -0
- package/src/controller/utils.ts +82 -0
- package/src/delivery/constants.ts +15 -0
- package/src/delivery/evaluation-icon.tsx +64 -0
- package/src/delivery/image-container.tsx +100 -0
- package/src/delivery/image-drop-target.tsx +150 -0
- package/src/delivery/index.ts +283 -0
- package/src/delivery/interactive-section.tsx +104 -0
- package/src/delivery/possible-response.tsx +162 -0
- package/src/delivery/possible-responses.tsx +62 -0
- package/src/delivery/root.tsx +530 -0
- package/src/delivery/static-html-span.tsx +40 -0
- package/src/delivery/utils-correctness.ts +105 -0
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseUnary.js";
|
|
2
|
+
import t from "./_nodeUtil.js";
|
|
3
|
+
import n from "./_baseIsSet.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js
|
|
5
|
+
var r = t && t.isSet, i = r ? e(r) : n;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObjectLike.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js
|
|
4
|
+
var n = "[object Symbol]";
|
|
5
|
+
function r(r) {
|
|
6
|
+
return typeof r == "symbol" || t(r) && e(r) == n;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseIsTypedArray.js";
|
|
2
|
+
import t from "./_baseUnary.js";
|
|
3
|
+
import n from "./_nodeUtil.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js
|
|
5
|
+
var r = n && n.isTypedArray, i = r ? t(r) : e;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeys.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeysIn.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r, !0) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./_arrayMap.js";
|
|
2
|
+
import t from "./isArray.js";
|
|
3
|
+
import n from "./_baseIteratee.js";
|
|
4
|
+
import r from "./_baseMap.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/map.js
|
|
6
|
+
function i(i, a) {
|
|
7
|
+
return (t(i) ? e : r)(i, n(a, 3));
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./_MapCache.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js
|
|
3
|
+
var t = "Expected a function";
|
|
4
|
+
function n(r, i) {
|
|
5
|
+
if (typeof r != "function" || i != null && typeof i != "function") throw TypeError(t);
|
|
6
|
+
var a = function() {
|
|
7
|
+
var e = arguments, t = i ? i.apply(this, e) : e[0], n = a.cache;
|
|
8
|
+
if (n.has(t)) return n.get(t);
|
|
9
|
+
var o = r.apply(this, e);
|
|
10
|
+
return a.cache = n.set(t, o) || n, o;
|
|
11
|
+
};
|
|
12
|
+
return a.cache = new (n.Cache || e)(), a;
|
|
13
|
+
}
|
|
14
|
+
n.Cache = e;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./_isKey.js";
|
|
2
|
+
import t from "./_toKey.js";
|
|
3
|
+
import n from "./_baseProperty.js";
|
|
4
|
+
import r from "./_basePropertyDeep.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/property.js
|
|
6
|
+
function i(i) {
|
|
7
|
+
return e(i) ? n(t(i)) : r(i);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArray.js";
|
|
2
|
+
import t from "./_arrayShuffle.js";
|
|
3
|
+
import n from "./_baseShuffle.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/shuffle.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return (e(r) ? t : n)(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-element/image-cloze-association",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@dnd-kit/core": "6.3.1",
|
|
7
|
+
"@emotion/react": "^11.14.0",
|
|
8
|
+
"@emotion/style": "^0.8.0",
|
|
9
|
+
"@mui/icons-material": "^7.3.4",
|
|
10
|
+
"@mui/material": "^7.3.4",
|
|
11
|
+
"@pie-lib/correct-answer-toggle": "0.1.0",
|
|
12
|
+
"@pie-lib/drag": "0.1.0",
|
|
13
|
+
"@pie-lib/render-ui": "0.1.0",
|
|
14
|
+
"@pie-lib/translator": "0.1.0",
|
|
15
|
+
"classnames": "^2.2.6",
|
|
16
|
+
"humps": "^2.0.1",
|
|
17
|
+
"prop-types": "^15.8.1",
|
|
18
|
+
"@pie-element/shared-configure-events": "0.1.0",
|
|
19
|
+
"@pie-lib/config-ui": "0.1.0",
|
|
20
|
+
"@pie-lib/editable-html-tip-tap": "0.1.0",
|
|
21
|
+
"@pie-element/shared-controller-utils": "0.1.0",
|
|
22
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.0",
|
|
23
|
+
"@pie-element/shared-player-events": "0.1.0",
|
|
24
|
+
"debug": "^4.1.1",
|
|
25
|
+
"lodash-es": "^4.17.21",
|
|
26
|
+
"react-transition-group": "^2.3.1"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": "^18.0.0",
|
|
30
|
+
"react-dom": "^18.0.0"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"development": "./src/index.ts",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./delivery": {
|
|
39
|
+
"development": "./src/delivery/index.ts",
|
|
40
|
+
"types": "./dist/delivery/index.d.ts",
|
|
41
|
+
"default": "./dist/delivery/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./author": {
|
|
44
|
+
"development": "./src/author/index.ts",
|
|
45
|
+
"types": "./dist/author/index.d.ts",
|
|
46
|
+
"default": "./dist/author/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./controller": {
|
|
49
|
+
"development": "./src/controller/index.ts",
|
|
50
|
+
"types": "./dist/controller/index.d.ts",
|
|
51
|
+
"default": "./dist/controller/index.js"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"type": "module",
|
|
55
|
+
"main": "./dist/index.js",
|
|
56
|
+
"types": "./dist/index.d.ts",
|
|
57
|
+
"files": [
|
|
58
|
+
"dist",
|
|
59
|
+
"src"
|
|
60
|
+
],
|
|
61
|
+
"sideEffects": false,
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"vite": "^8.0.1",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
66
|
+
"@types/react": "^18.2.0",
|
|
67
|
+
"@types/react-dom": "^18.2.0"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
71
|
+
"dev": "bun x vite",
|
|
72
|
+
"demo": "bun x vite --mode demo",
|
|
73
|
+
"test": "bun x vitest run"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/image-cloze-association/configure/src/defaults.js
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
model: {
|
|
13
|
+
rationale: '',
|
|
14
|
+
rationaleEnabled: true,
|
|
15
|
+
studentInstructionsEnabled: true,
|
|
16
|
+
teacherInstructions: '',
|
|
17
|
+
teacherInstructionsEnabled: true,
|
|
18
|
+
},
|
|
19
|
+
configuration: {
|
|
20
|
+
baseInputConfiguration: {
|
|
21
|
+
h3: { disabled: true },
|
|
22
|
+
audio: { disabled: false },
|
|
23
|
+
video: { disabled: false },
|
|
24
|
+
image: { disabled: false },
|
|
25
|
+
textAlign: { disabled: true },
|
|
26
|
+
showParagraphs: { disabled: false },
|
|
27
|
+
separateParagraphs: { disabled: true },
|
|
28
|
+
},
|
|
29
|
+
maxImageWidth: {
|
|
30
|
+
teacherInstructions: 300,
|
|
31
|
+
},
|
|
32
|
+
maxImageHeight: {
|
|
33
|
+
teacherInstructions: 300,
|
|
34
|
+
},
|
|
35
|
+
settingsPanelDisabled: false,
|
|
36
|
+
spellCheck: {
|
|
37
|
+
label: 'Spellcheck',
|
|
38
|
+
settings: false,
|
|
39
|
+
enabled: true,
|
|
40
|
+
},
|
|
41
|
+
teacherInstructions: {
|
|
42
|
+
settings: true,
|
|
43
|
+
label: 'Teacher Instructions',
|
|
44
|
+
inputConfiguration: {
|
|
45
|
+
audio: { disabled: false },
|
|
46
|
+
video: { disabled: false },
|
|
47
|
+
image: { disabled: false },
|
|
48
|
+
},
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
51
|
+
withRubric: {
|
|
52
|
+
settings: false,
|
|
53
|
+
label: 'Add Rubric',
|
|
54
|
+
},
|
|
55
|
+
mathMlOptions: {
|
|
56
|
+
mmlOutput: false,
|
|
57
|
+
mmlEditing: false,
|
|
58
|
+
},
|
|
59
|
+
language: {
|
|
60
|
+
settings: false,
|
|
61
|
+
label: 'Specify Language',
|
|
62
|
+
enabled: false,
|
|
63
|
+
},
|
|
64
|
+
languageChoices: {
|
|
65
|
+
label: 'Language Choices',
|
|
66
|
+
options: [],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/image-cloze-association/configure/src/index.js
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
ModelUpdatedEvent,
|
|
13
|
+
DeleteImageEvent,
|
|
14
|
+
InsertImageEvent,
|
|
15
|
+
InsertSoundEvent,
|
|
16
|
+
DeleteSoundEvent,
|
|
17
|
+
} from '@pie-element/shared-configure-events';
|
|
18
|
+
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import { createRoot } from 'react-dom/client';
|
|
21
|
+
import debug from 'debug';
|
|
22
|
+
|
|
23
|
+
import Root from './root.js';
|
|
24
|
+
import sensibleDefaults from './defaults.js';
|
|
25
|
+
|
|
26
|
+
const log = debug('image-cloze-association:configure');
|
|
27
|
+
|
|
28
|
+
export default class ImageClozeAssociationConfigure extends HTMLElement {
|
|
29
|
+
static createDefaultModel = (model = {}) => ({
|
|
30
|
+
...sensibleDefaults.model,
|
|
31
|
+
...model,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
this._root = null;
|
|
37
|
+
this._model = ImageClozeAssociationConfigure.createDefaultModel();
|
|
38
|
+
this.onModelChanged = this.onModelChanged.bind(this);
|
|
39
|
+
this._configuration = sensibleDefaults.configuration;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set model(s) {
|
|
43
|
+
this._model = ImageClozeAssociationConfigure.createDefaultModel(s);
|
|
44
|
+
this._render();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
set configuration(c) {
|
|
48
|
+
this._configuration = c;
|
|
49
|
+
this._render();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set disableSidePanel(s) {
|
|
53
|
+
this._disableSidePanel = s;
|
|
54
|
+
this._render();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
dispatchModelUpdated(reset) {
|
|
58
|
+
const resetValue = !!reset;
|
|
59
|
+
|
|
60
|
+
this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
onModelChanged(m, reset) {
|
|
64
|
+
this._model = m;
|
|
65
|
+
this.dispatchModelUpdated(reset);
|
|
66
|
+
this._render();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
onConfigurationChanged(config) {
|
|
70
|
+
this._configuration = config;
|
|
71
|
+
this._render();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param {done, progress, file} handler
|
|
77
|
+
*/
|
|
78
|
+
insertImage(handler) {
|
|
79
|
+
this.dispatchEvent(new InsertImageEvent(handler));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
onDeleteImage(src, done) {
|
|
83
|
+
this.dispatchEvent(new DeleteImageEvent(src, done));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
insertSound(handler) {
|
|
87
|
+
this.dispatchEvent(new InsertSoundEvent(handler));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
onDeleteSound(src, done) {
|
|
91
|
+
this.dispatchEvent(new DeleteSoundEvent(src, done));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
_render() {
|
|
95
|
+
log('_render');
|
|
96
|
+
|
|
97
|
+
let element = React.createElement(Root, {
|
|
98
|
+
disableSidePanel: this._disableSidePanel,
|
|
99
|
+
model: this._model,
|
|
100
|
+
configuration: this._configuration,
|
|
101
|
+
onModelChanged: this.onModelChanged.bind(this),
|
|
102
|
+
onConfigurationChanged: this.onConfigurationChanged.bind(this),
|
|
103
|
+
imageSupport: {
|
|
104
|
+
add: this.insertImage.bind(this),
|
|
105
|
+
delete: this.onDeleteImage.bind(this),
|
|
106
|
+
},
|
|
107
|
+
uploadSoundSupport: {
|
|
108
|
+
add: this.insertSound.bind(this),
|
|
109
|
+
delete: this.onDeleteSound.bind(this),
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
if (!this._root) {
|
|
114
|
+
this._root = createRoot(this);
|
|
115
|
+
}
|
|
116
|
+
this._root.render(element);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
if (this._root) {
|
|
121
|
+
this._root.unmount();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/image-cloze-association/configure/src/root.jsx
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
import { settings, layout, InputContainer } from '@pie-lib/config-ui';
|
|
14
|
+
import EditableHtml from '@pie-lib/editable-html-tip-tap';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
|
|
17
|
+
const { Panel, toggle, dropdown } = settings;
|
|
18
|
+
|
|
19
|
+
const StyledInputContainer: any = styled(InputContainer)(({ theme }) => ({
|
|
20
|
+
width: '100%',
|
|
21
|
+
paddingTop: theme.spacing(2),
|
|
22
|
+
marginBottom: theme.spacing(2),
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
const ErrorText: any = styled('div')(({ theme }) => ({
|
|
26
|
+
fontSize: theme.typography.fontSize - 2,
|
|
27
|
+
color: theme.palette.error.main,
|
|
28
|
+
paddingTop: theme.spacing(1),
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
export class Root extends React.Component {
|
|
32
|
+
onTeacherInstructionsChanged: any = (teacherInstructions) => {
|
|
33
|
+
this.props.onModelChanged({ ...this.props.model, teacherInstructions });
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
render() {
|
|
37
|
+
const { model, configuration, onModelChanged, onConfigurationChanged, imageSupport, uploadSoundSupport } =
|
|
38
|
+
this.props;
|
|
39
|
+
const {
|
|
40
|
+
baseInputConfiguration = {},
|
|
41
|
+
contentDimensions = {},
|
|
42
|
+
maxImageWidth = {},
|
|
43
|
+
maxImageHeight = {},
|
|
44
|
+
settingsPanelDisabled,
|
|
45
|
+
spellCheck = {},
|
|
46
|
+
teacherInstructions = {},
|
|
47
|
+
withRubric = {},
|
|
48
|
+
mathMlOptions = {},
|
|
49
|
+
language = {},
|
|
50
|
+
languageChoices = {},
|
|
51
|
+
} = configuration || {};
|
|
52
|
+
const { errors = {}, extraCSSRules, spellCheckEnabled } = model || {};
|
|
53
|
+
const { teacherInstructions: teacherInstructionsError } = errors;
|
|
54
|
+
|
|
55
|
+
const panelProperties = {
|
|
56
|
+
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
57
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
58
|
+
rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
|
|
59
|
+
'language.enabled': language.settings && toggle(language.label, true),
|
|
60
|
+
language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const getPluginProps = (props = {}) => ({
|
|
64
|
+
...baseInputConfiguration,
|
|
65
|
+
...props,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
return (
|
|
69
|
+
<layout.ConfigLayout
|
|
70
|
+
extraCSSRules={extraCSSRules}
|
|
71
|
+
dimensions={contentDimensions}
|
|
72
|
+
hideSettings={settingsPanelDisabled}
|
|
73
|
+
settings={
|
|
74
|
+
<Panel
|
|
75
|
+
model={model}
|
|
76
|
+
configuration={configuration}
|
|
77
|
+
onChangeModel={(model) => onModelChanged(model)}
|
|
78
|
+
onChangeConfiguration={(config) => onConfigurationChanged(config)}
|
|
79
|
+
groups={{
|
|
80
|
+
Properties: panelProperties,
|
|
81
|
+
}}
|
|
82
|
+
/>
|
|
83
|
+
}
|
|
84
|
+
>
|
|
85
|
+
{model && model.teacherInstructionsEnabled && (
|
|
86
|
+
<StyledInputContainer label={teacherInstructions.label}>
|
|
87
|
+
<EditableHtml
|
|
88
|
+
markup={model.teacherInstructions || ''}
|
|
89
|
+
onChange={this.onTeacherInstructionsChanged}
|
|
90
|
+
imageSupport={imageSupport}
|
|
91
|
+
nonEmpty={false}
|
|
92
|
+
error={teacherInstructionsError}
|
|
93
|
+
spellCheck={spellCheckEnabled}
|
|
94
|
+
pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}
|
|
95
|
+
maxImageWidth={maxImageWidth && maxImageWidth.teacherInstructions}
|
|
96
|
+
maxImageHeight={maxImageHeight && maxImageHeight.teacherInstructions}
|
|
97
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
98
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
99
|
+
mathMlOptions={mathMlOptions}
|
|
100
|
+
/>
|
|
101
|
+
{teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}
|
|
102
|
+
</StyledInputContainer>
|
|
103
|
+
)}
|
|
104
|
+
|
|
105
|
+
<div>Image cloze association</div>
|
|
106
|
+
</layout.ConfigLayout>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
Root.propTypes = {
|
|
112
|
+
onModelChanged: PropTypes.func,
|
|
113
|
+
onConfigurationChanged: PropTypes.func,
|
|
114
|
+
model: PropTypes.object.isRequired,
|
|
115
|
+
configuration: PropTypes.object.isRequired,
|
|
116
|
+
imageSupport: PropTypes.shape({
|
|
117
|
+
add: PropTypes.func.isRequired,
|
|
118
|
+
delete: PropTypes.func.isRequired,
|
|
119
|
+
}),
|
|
120
|
+
uploadSoundSupport: PropTypes.shape({
|
|
121
|
+
add: PropTypes.func.isRequired,
|
|
122
|
+
delete: PropTypes.func.isRequired,
|
|
123
|
+
}),
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export default Root;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/image-cloze-association/controller/src/defaults.js
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
rationale: '',
|
|
13
|
+
rationaleEnabled: true,
|
|
14
|
+
studentInstructionsEnabled: true,
|
|
15
|
+
teacherInstructions: '',
|
|
16
|
+
teacherInstructionsEnabled: true,
|
|
17
|
+
};
|