@pie-element/ebsr 14.0.1 → 14.1.1-next.2
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 +67 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +161 -0
- package/dist/author/index.d.ts +35 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +78 -0
- package/dist/author/main.d.ts +23 -0
- package/dist/author/main.d.ts.map +1 -0
- package/dist/author/main.js +121 -0
- package/dist/controller/defaults.d.ts +16 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +26 -0
- package/dist/controller/index.d.ts +43 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +186 -0
- package/dist/controller/utils.d.ts +11 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +8 -0
- package/dist/delivery/index.d.ts +27 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +132 -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 +165 -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/_apply.js +12 -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/_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/_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/_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/_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/_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/_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/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -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/_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/_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/_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/_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/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +12 -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/_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/_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/_overRest.js +13 -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/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -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/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +16 -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/get.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/isEqual.js +7 -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/memoize.js +16 -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/print/index.d.ts +26 -0
- package/dist/print/index.d.ts.map +1 -0
- package/dist/print/index.js +107 -0
- package/package.json +59 -18
- package/{configure/src/defaults.js → src/author/defaults.ts} +10 -0
- package/{configure/src/index.js → src/author/index.ts} +16 -6
- package/{configure/src/main.jsx → src/author/main.tsx} +14 -4
- package/{controller/src/defaults.js → src/controller/defaults.ts} +10 -0
- package/{controller/src/index.js → src/controller/index.ts} +13 -3
- package/{controller/src/utils.js → src/controller/utils.ts} +10 -0
- package/src/{index.js → delivery/index.tsx} +78 -3
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
- package/src/{print.js → print/index.tsx} +12 -2
- package/CHANGELOG.json +0 -1547
- package/CHANGELOG.md +0 -2259
- package/LICENSE.md +0 -5
- package/README.md +0 -62
- package/configure/CHANGELOG.json +0 -992
- package/configure/CHANGELOG.md +0 -2126
- package/configure/lib/defaults.js +0 -229
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -154
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -222
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -23
- package/configure/src/__tests__/index.test.js +0 -492
- package/controller/CHANGELOG.json +0 -552
- package/controller/CHANGELOG.md +0 -1269
- package/controller/lib/defaults.js +0 -31
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -448
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/utils.js +0 -18
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -18
- package/controller/src/__tests__/index.test.js +0 -591
- package/controller/src/__tests__/utils.test.js +0 -48
- package/docs/config-schema.json +0 -5787
- package/docs/config-schema.json.md +0 -4278
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -52
- package/docs/demo/index.html +0 -2
- package/docs/demo/session.js +0 -14
- package/docs/pie-schema.json +0 -2911
- package/docs/pie-schema.json.md +0 -2142
- package/ebsr.png +0 -0
- package/lib/index.js +0 -146
- package/lib/index.js.map +0 -1
- package/lib/print.js +0 -186
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -5664
- package/module/demo.js +0 -77
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -14
- package/module/print-demo.js +0 -115
- package/module/print.html +0 -18
- package/module/print.js +0 -1
- package/src/__tests__/index.test.js +0 -129
package/package.json
CHANGED
|
@@ -1,29 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"
|
|
4
|
-
"version": "14.0.1",
|
|
3
|
+
"version": "14.1.1-next.2",
|
|
5
4
|
"description": "",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
5
|
"dependencies": {
|
|
10
|
-
"@pie-element/multiple-choice": "
|
|
11
|
-
"@pie-
|
|
12
|
-
"@pie-lib/translator": "4.0.0",
|
|
6
|
+
"@pie-element/multiple-choice": "13.1.1-next.0",
|
|
7
|
+
"@pie-lib/translator": "4.0.1",
|
|
13
8
|
"classnames": "^2.2.5",
|
|
14
9
|
"debug": "^4.1.1",
|
|
15
|
-
"lodash-es": "^4.17.23"
|
|
10
|
+
"lodash-es": "^4.17.23",
|
|
11
|
+
"@pie-element/shared-configure-events": "0.1.0",
|
|
12
|
+
"@pie-lib/config-ui": "13.0.1",
|
|
13
|
+
"@pie-element/shared-controller-utils": "0.1.0",
|
|
14
|
+
"@pie-element/shared-player-events": "0.1.0",
|
|
15
|
+
"@mui/material": "^7.3.4",
|
|
16
|
+
"prop-types": "^15.6.1"
|
|
16
17
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"scripts": {
|
|
21
|
-
"postpublish": "../../scripts/postpublish"
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": "^18.0.0",
|
|
20
|
+
"react-dom": "^18.0.0"
|
|
22
21
|
},
|
|
23
|
-
"main": "lib/index.js",
|
|
24
|
-
"module": "src/index.js",
|
|
25
22
|
"exports": {
|
|
26
|
-
".":
|
|
27
|
-
|
|
23
|
+
".": {
|
|
24
|
+
"development": "./src/index.ts",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./delivery": {
|
|
29
|
+
"development": "./src/delivery/index.tsx",
|
|
30
|
+
"types": "./dist/delivery/index.d.ts",
|
|
31
|
+
"default": "./dist/delivery/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./author": {
|
|
34
|
+
"development": "./src/author/index.ts",
|
|
35
|
+
"types": "./dist/author/index.d.ts",
|
|
36
|
+
"default": "./dist/author/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./controller": {
|
|
39
|
+
"development": "./src/controller/index.ts",
|
|
40
|
+
"types": "./dist/controller/index.d.ts",
|
|
41
|
+
"default": "./dist/controller/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./print": {
|
|
44
|
+
"development": "./src/print/index.tsx",
|
|
45
|
+
"types": "./dist/print/index.d.ts",
|
|
46
|
+
"default": "./dist/print/index.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"type": "module",
|
|
50
|
+
"main": "./dist/index.js",
|
|
51
|
+
"types": "./dist/index.d.ts",
|
|
52
|
+
"files": [
|
|
53
|
+
"dist",
|
|
54
|
+
"src"
|
|
55
|
+
],
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"vite": "^8.0.1",
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
61
|
+
"@types/react": "^18.2.0",
|
|
62
|
+
"@types/react-dom": "^18.2.0"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
66
|
+
"dev": "bun x vite",
|
|
67
|
+
"demo": "bun x vite --mode demo",
|
|
68
|
+
"test": "bun x vitest run"
|
|
28
69
|
}
|
|
29
70
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/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
|
+
|
|
1
11
|
import { cloneDeep } from 'lodash-es';
|
|
2
12
|
|
|
3
13
|
const defaultConfig = {
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/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
|
+
|
|
1
11
|
import React from 'react';
|
|
2
12
|
import { createRoot } from 'react-dom/client';
|
|
3
|
-
import { ModelUpdatedEvent } from '@pie-
|
|
4
|
-
import MultipleChoiceConfigure from '@pie-element/multiple-choice/
|
|
13
|
+
import { ModelUpdatedEvent } from '@pie-element/shared-configure-events';
|
|
14
|
+
import MultipleChoiceConfigure from '@pie-element/multiple-choice/author';
|
|
5
15
|
import { defaults } from 'lodash-es';
|
|
6
|
-
import Main from './main';
|
|
16
|
+
import Main from './main.js';
|
|
7
17
|
|
|
8
|
-
import sensibleDefaults from './defaults';
|
|
18
|
+
import sensibleDefaults from './defaults.js';
|
|
9
19
|
|
|
10
20
|
const MODEL_UPDATED = ModelUpdatedEvent.TYPE;
|
|
11
21
|
const MC_TAG_NAME = 'ebsr-multiple-choice-configure';
|
|
@@ -70,7 +80,7 @@ export default class EbsrConfigure extends HTMLElement {
|
|
|
70
80
|
this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
onModelChanged = (m, reset) => {
|
|
83
|
+
onModelChanged: any = (m, reset) => {
|
|
74
84
|
this._model = EbsrConfigure.createDefaultModel(m, this._model);
|
|
75
85
|
|
|
76
86
|
this.dispatchModelUpdated(reset);
|
|
@@ -127,7 +137,7 @@ export default class EbsrConfigure extends HTMLElement {
|
|
|
127
137
|
this._render();
|
|
128
138
|
}
|
|
129
139
|
|
|
130
|
-
onModelUpdated = (e) => {
|
|
140
|
+
onModelUpdated: any = (e) => {
|
|
131
141
|
if (e.target === this) {
|
|
132
142
|
return;
|
|
133
143
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/configure/src/main.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
|
+
|
|
1
11
|
import React from 'react';
|
|
2
12
|
import PropTypes from 'prop-types';
|
|
3
13
|
import { settings, layout } from '@pie-lib/config-ui';
|
|
@@ -5,11 +15,11 @@ import { styled } from '@mui/material/styles';
|
|
|
5
15
|
|
|
6
16
|
const { Panel, toggle, radio, dropdown } = settings;
|
|
7
17
|
|
|
8
|
-
const PartLabel = styled('div')(({ theme }) => ({
|
|
18
|
+
const PartLabel: any = styled('div')(({ theme }) => ({
|
|
9
19
|
paddingBottom: theme.spacing(2),
|
|
10
20
|
}));
|
|
11
21
|
|
|
12
|
-
const Divider = styled('div')(({ theme }) => ({
|
|
22
|
+
const Divider: any = styled('div')(({ theme }) => ({
|
|
13
23
|
flex: 1,
|
|
14
24
|
height: theme.spacing(2.5),
|
|
15
25
|
}));
|
|
@@ -22,7 +32,7 @@ export class Main extends React.Component {
|
|
|
22
32
|
onConfigurationChanged: PropTypes.func,
|
|
23
33
|
};
|
|
24
34
|
|
|
25
|
-
removeExtraChoices = (choices) => {
|
|
35
|
+
removeExtraChoices: any = (choices) => {
|
|
26
36
|
let correctFound = false;
|
|
27
37
|
|
|
28
38
|
return (choices || []).map((choice) => {
|
|
@@ -40,7 +50,7 @@ export class Main extends React.Component {
|
|
|
40
50
|
});
|
|
41
51
|
};
|
|
42
52
|
|
|
43
|
-
onModelChanged = (model, key) => {
|
|
53
|
+
onModelChanged: any = (model, key) => {
|
|
44
54
|
const { onModelChanged } = this.props;
|
|
45
55
|
|
|
46
56
|
if (key === 'partA.choiceMode' && model.partA.choiceMode === 'radio') {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/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
|
+
|
|
1
11
|
const partModel = (base) => ({
|
|
2
12
|
choiceMode: 'radio',
|
|
3
13
|
choicePrefix: 'letters',
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/controller/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 defaults from './defaults.js';
|
|
12
|
+
import { lockChoices, getShuffledChoices, partialScoring } from '@pie-element/shared-controller-utils';
|
|
13
|
+
import { isResponseCorrect } from './utils.js';
|
|
4
14
|
import { get, isEmpty } from 'lodash-es';
|
|
5
15
|
import Translator from '@pie-lib/translator';
|
|
6
16
|
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/controller/src/utils.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
|
+
|
|
1
11
|
import { isEqual } from 'lodash-es';
|
|
2
12
|
|
|
3
13
|
export const getCorrectResponse = (choices) =>
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/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 { SessionChangedEvent } from '@pie-element/shared-player-events';
|
|
2
12
|
import MultipleChoice from '@pie-element/multiple-choice';
|
|
3
13
|
import { get } from 'lodash-es';
|
|
4
14
|
import debug from 'debug';
|
|
@@ -26,6 +36,38 @@ export const isSessionComplete = (session) => {
|
|
|
26
36
|
return isNonEmptyArray(a) && isNonEmptyArray(b);
|
|
27
37
|
};
|
|
28
38
|
|
|
39
|
+
function getPlayerAttributes(element) {
|
|
40
|
+
const player =
|
|
41
|
+
element.closest('pie-player') ||
|
|
42
|
+
element.closest('pie-item-player');
|
|
43
|
+
|
|
44
|
+
if (!player) {
|
|
45
|
+
return { baseHeadingLevel: undefined, includeSrHeading: true };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const getRaw = (camelCaseName, hyphenatedName, allLowerName) => {
|
|
49
|
+
let raw = player[camelCaseName];
|
|
50
|
+
|
|
51
|
+
// fallback in case someone sets via HTML attribute manually
|
|
52
|
+
if (raw == null) {
|
|
53
|
+
raw =
|
|
54
|
+
player.getAttribute(hyphenatedName) ??
|
|
55
|
+
player.getAttribute(allLowerName);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return raw;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const levelRaw = getRaw('baseHeadingLevel', 'base-heading-level', 'baseheadinglevel');
|
|
62
|
+
const level = parseInt(levelRaw, 10);
|
|
63
|
+
const baseHeadingLevel = Number.isFinite(level) && level >= 1 && level <= 6 ? level : undefined;
|
|
64
|
+
|
|
65
|
+
const srRaw = getRaw('includeSrHeading', 'include-sr-heading', 'includesrheading');
|
|
66
|
+
const includeSrHeading = srRaw == null ? true : srRaw !== false && srRaw !== 'false';
|
|
67
|
+
|
|
68
|
+
return { baseHeadingLevel, includeSrHeading };
|
|
69
|
+
}
|
|
70
|
+
|
|
29
71
|
export default class Ebsr extends HTMLElement {
|
|
30
72
|
constructor() {
|
|
31
73
|
super();
|
|
@@ -33,7 +75,7 @@ export default class Ebsr extends HTMLElement {
|
|
|
33
75
|
this._session = {};
|
|
34
76
|
}
|
|
35
77
|
|
|
36
|
-
onSessionUpdated = (e) => {
|
|
78
|
+
onSessionUpdated: any = (e) => {
|
|
37
79
|
if (e.target === this) {
|
|
38
80
|
return;
|
|
39
81
|
}
|
|
@@ -85,6 +127,12 @@ export default class Ebsr extends HTMLElement {
|
|
|
85
127
|
mode,
|
|
86
128
|
keyMode: this._model[key].choicePrefix,
|
|
87
129
|
};
|
|
130
|
+
|
|
131
|
+
// Parts of an EBSR item should not render their own SR headings —
|
|
132
|
+
// the EBSR element itself provides the item-level heading.
|
|
133
|
+
const { includeSrHeading, baseHeadingLevel } = getPlayerAttributes(this);
|
|
134
|
+
part.includeSrHeading = includeSrHeading;
|
|
135
|
+
part.baseHeadingLevel = baseHeadingLevel !== undefined ? Math.min(6, baseHeadingLevel + (includeSrHeading ? 1 : 0)) : undefined;
|
|
88
136
|
}
|
|
89
137
|
}
|
|
90
138
|
|
|
@@ -116,16 +164,43 @@ export default class Ebsr extends HTMLElement {
|
|
|
116
164
|
|
|
117
165
|
connectedCallback() {
|
|
118
166
|
this._render();
|
|
167
|
+
this._initPlayerObserver();
|
|
119
168
|
this.addEventListener(SESSION_CHANGED, this.onSessionUpdated);
|
|
120
169
|
}
|
|
121
170
|
|
|
122
171
|
disconnectedCallback() {
|
|
172
|
+
this._disconnectPlayerObserver();
|
|
123
173
|
this.removeEventListener(SESSION_CHANGED, this.onSessionUpdated);
|
|
124
174
|
}
|
|
125
175
|
|
|
176
|
+
_initPlayerObserver() {
|
|
177
|
+
const player = this.closest('pie-player') || this.closest('pie-item-player');
|
|
178
|
+
if (!player) return;
|
|
179
|
+
|
|
180
|
+
this._playerObserver = new MutationObserver(() => {
|
|
181
|
+
this._render();
|
|
182
|
+
});
|
|
183
|
+
this._playerObserver.observe(player, {
|
|
184
|
+
attributes: true,
|
|
185
|
+
attributeFilter: ['base-heading-level', 'baseheadinglevel', 'include-sr-heading', 'includesrheading'],
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
_disconnectPlayerObserver() {
|
|
190
|
+
if (this._playerObserver) {
|
|
191
|
+
this._playerObserver.disconnect();
|
|
192
|
+
this._playerObserver = null;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
126
196
|
_render() {
|
|
127
197
|
this.ariaLabel = 'Two-Part Question';
|
|
128
198
|
this.role = 'region';
|
|
199
|
+
|
|
200
|
+
const { baseHeadingLevel: ebsrLevel, includeSrHeading } = getPlayerAttributes(this);
|
|
201
|
+
const headingTag = ebsrLevel ? `h${Math.min(6, ebsrLevel)}` : 'h2';
|
|
202
|
+
const srHeading = includeSrHeading ? `<${headingTag} class="srOnly">Two-Part Question</${headingTag}>` : '';
|
|
203
|
+
|
|
129
204
|
this.innerHTML = `
|
|
130
205
|
<style>
|
|
131
206
|
.srOnly {
|
|
@@ -140,7 +215,7 @@ export default class Ebsr extends HTMLElement {
|
|
|
140
215
|
}
|
|
141
216
|
${this._model?.extraCSSRules?.rules}
|
|
142
217
|
</style>
|
|
143
|
-
|
|
218
|
+
${srHeading}
|
|
144
219
|
<${MC_TAG_NAME} id="a"></${MC_TAG_NAME}>
|
|
145
220
|
<${MC_TAG_NAME} id="b"></${MC_TAG_NAME}>
|
|
146
221
|
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IIFE entry point for ebsr element
|
|
3
|
+
* This file is only used for IIFE builds and includes auto-registration
|
|
4
|
+
*
|
|
5
|
+
* @sync-generated - Auto-generated during sync from pie-elements
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Element from './index.js';
|
|
9
|
+
|
|
10
|
+
// Auto-register the custom element for IIFE mode
|
|
11
|
+
if (typeof window !== 'undefined' && !customElements.get('ebsr-element')) {
|
|
12
|
+
customElements.define('ebsr-element', Element);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Export for IIFE global
|
|
16
|
+
export default Element;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './delivery/index.js';
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/ebsr/src/print.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
|
+
|
|
1
11
|
import { cloneDeep, get } from 'lodash-es';
|
|
2
12
|
import MultipleChoice from '@pie-element/multiple-choice';
|
|
3
13
|
import debug from 'debug';
|
|
4
|
-
import { SessionChangedEvent } from '@pie-
|
|
14
|
+
import { SessionChangedEvent } from '@pie-element/shared-player-events';
|
|
5
15
|
const MC_TAG_NAME = 'ebsr-multiple-choice';
|
|
6
16
|
const SESSION_CHANGED = SessionChangedEvent.TYPE;
|
|
7
17
|
import Translator from '@pie-lib/translator';
|
|
@@ -73,7 +83,7 @@ export default class Ebsr extends HTMLElement {
|
|
|
73
83
|
this._options = null;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
|
-
onSessionUpdated = (e) => {
|
|
86
|
+
onSessionUpdated: any = (e) => {
|
|
77
87
|
if (e.target === this) {
|
|
78
88
|
return;
|
|
79
89
|
}
|