@pie-element/extended-text-entry 15.1.1-next.11 → 15.1.2-next.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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/author/defaults.d.ts +166 -0
- package/dist/author/defaults.js +209 -0
- package/dist/author/index.d.ts +52 -0
- package/dist/author/index.js +74 -0
- package/dist/author/main.d.ts +26 -0
- package/dist/author/main.js +166 -0
- package/dist/browser/author/index.js +495 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/browser-kkT1XVKw.js +210 -0
- package/dist/browser/browser-kkT1XVKw.js.map +1 -0
- package/dist/browser/controller/index.js +184 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +98 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/dist-D8VooYkz.js +49034 -0
- package/dist/browser/dist-D8VooYkz.js.map +1 -0
- package/dist/browser/extended-text-entry.css +2 -0
- package/dist/browser/main-C2oHx_V9.js +714 -0
- package/dist/browser/main-C2oHx_V9.js.map +1 -0
- package/dist/browser/print/index.js +53 -0
- package/dist/browser/print/index.js.map +1 -0
- package/dist/controller/defaults.d.ts +33 -0
- package/dist/controller/defaults.js +104 -0
- package/dist/controller/index.d.ts +59 -0
- package/dist/controller/index.js +72 -0
- package/dist/delivery/annotation/annotation-editor.d.ts +47 -0
- package/dist/delivery/annotation/annotation-editor.js +296 -0
- package/dist/delivery/annotation/annotation-menu.d.ts +25 -0
- package/dist/delivery/annotation/annotation-menu.js +113 -0
- package/dist/delivery/annotation/annotation-utils.d.ts +20 -0
- package/dist/delivery/annotation/annotation-utils.js +65 -0
- package/dist/delivery/annotation/freeform-editor.d.ts +30 -0
- package/dist/delivery/annotation/freeform-editor.js +143 -0
- package/dist/delivery/index.d.ts +23 -0
- package/dist/delivery/index.js +68 -0
- package/dist/delivery/main.d.ts +27 -0
- package/dist/delivery/main.js +134 -0
- package/dist/extended-text-entry.css +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +403 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/print/index.d.ts +15 -0
- package/dist/print/index.js +49 -0
- package/package.json +83 -21
- package/CHANGELOG.json +0 -1282
- package/CHANGELOG.md +0 -2260
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -922
- package/configure/CHANGELOG.md +0 -1949
- package/configure/lib/defaults.js +0 -224
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -125
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -247
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -23
- package/controller/CHANGELOG.json +0 -362
- package/controller/CHANGELOG.md +0 -1179
- package/controller/lib/defaults.js +0 -91
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -101
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -16
- package/docs/config-schema.json +0 -1782
- package/docs/config-schema.json.md +0 -1333
- package/docs/demo/config.js +0 -7
- package/docs/demo/generate.js +0 -14
- package/docs/demo/index.html +0 -3
- package/docs/demo/session.js +0 -7
- package/docs/pie-schema.json +0 -954
- package/docs/pie-schema.json.md +0 -717
- package/lib/annotation/annotation-editor.js +0 -636
- package/lib/annotation/annotation-editor.js.map +0 -1
- package/lib/annotation/annotation-menu.js +0 -147
- package/lib/annotation/annotation-menu.js.map +0 -1
- package/lib/annotation/annotation-utils.js +0 -205
- package/lib/annotation/annotation-utils.js.map +0 -1
- package/lib/annotation/freeform-editor.js +0 -241
- package/lib/annotation/freeform-editor.js.map +0 -1
- package/lib/index.js +0 -108
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -205
- package/lib/main.js.map +0 -1
- package/lib/print.js +0 -86
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -139
- package/module/demo.js +0 -38
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -22
- package/module/print-demo.js +0 -76
- package/module/print.html +0 -18
- package/module/print.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObjectLike.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/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.18.1/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.18.1/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.18.1/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,19 @@
|
|
|
1
|
+
import e from "./isSymbol.js";
|
|
2
|
+
import t from "./_baseTrim.js";
|
|
3
|
+
import n from "./isObject.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
5
|
+
var r = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
|
|
6
|
+
function c(c) {
|
|
7
|
+
if (typeof c == "number") return c;
|
|
8
|
+
if (e(c)) return r;
|
|
9
|
+
if (n(c)) {
|
|
10
|
+
var l = typeof c.valueOf == "function" ? c.valueOf() : c;
|
|
11
|
+
c = n(l) ? l + "" : l;
|
|
12
|
+
}
|
|
13
|
+
if (typeof c != "string") return c === 0 ? c : +c;
|
|
14
|
+
c = t(c);
|
|
15
|
+
var u = a.test(c);
|
|
16
|
+
return u || o.test(c) ? s(c.slice(2), u ? 2 : 8) : i.test(c) ? r : +c;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { c as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/extended-text-entry/src/print.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export default class ExtendedTextEntryPrint extends HTMLElement {
|
|
10
|
+
constructor();
|
|
11
|
+
set options(o: any);
|
|
12
|
+
set model(s: any);
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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/debounce.js";
|
|
3
|
+
import n from "../delivery/main.js";
|
|
4
|
+
import r from "react";
|
|
5
|
+
import i from "debug";
|
|
6
|
+
import { createRoot as a } from "react-dom/client";
|
|
7
|
+
import { renderMath as o } from "@pie-element/shared-math-rendering-mathjax";
|
|
8
|
+
//#region src/print/index.tsx
|
|
9
|
+
var s = i("pie-element:extended-text-entry:print"), c = (t, n) => {
|
|
10
|
+
let r = n.role === "instructor", i = e(t);
|
|
11
|
+
return i.prompt = i.promptEnabled === !1 ? void 0 : i.prompt, i.teacherInstructions = r && i.teacherInstructionsEnabled !== !1 ? i.teacherInstructions : void 0, i.showTeacherInstructions = r, i.mode = r ? "evaluate" : i.mode, i.dimensions = {
|
|
12
|
+
height: 100,
|
|
13
|
+
width: 500,
|
|
14
|
+
...i.dimensions
|
|
15
|
+
}, i.disabled = !0, i.feedback = void 0, i.animationsDisabled = !0, i;
|
|
16
|
+
}, l = class extends HTMLElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = t(() => {
|
|
19
|
+
if (this._model && this._session && this._options) {
|
|
20
|
+
let e = c(this._model, this._options), t = r.createElement(n, {
|
|
21
|
+
model: e,
|
|
22
|
+
session: {},
|
|
23
|
+
onChange: () => {},
|
|
24
|
+
onValueChange: () => {},
|
|
25
|
+
onAnnotationsChange: () => {},
|
|
26
|
+
onCommentChange: () => {}
|
|
27
|
+
});
|
|
28
|
+
this._root ||= a(this), this._root.render(t), queueMicrotask(() => {
|
|
29
|
+
s("render complete - render math"), o(this);
|
|
30
|
+
});
|
|
31
|
+
} else s("skip");
|
|
32
|
+
}, 50, {
|
|
33
|
+
leading: !1,
|
|
34
|
+
trailing: !0
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
set options(e) {
|
|
38
|
+
this._options = e, this._rerender();
|
|
39
|
+
}
|
|
40
|
+
set model(e) {
|
|
41
|
+
this._model = e, this._rerender();
|
|
42
|
+
}
|
|
43
|
+
connectedCallback() {}
|
|
44
|
+
disconnectedCallback() {
|
|
45
|
+
this._root && this._root.unmount();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { l as default };
|
package/package.json
CHANGED
|
@@ -1,38 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry",
|
|
3
|
-
"
|
|
4
|
-
"version": "15.1.1-next.11+84119e88b",
|
|
3
|
+
"version": "15.1.2-next.0",
|
|
5
4
|
"description": "",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"author": "pie framework developers",
|
|
10
|
-
"license": "ISC",
|
|
11
5
|
"dependencies": {
|
|
12
6
|
"@emotion/react": "^11.14.0",
|
|
13
7
|
"@emotion/style": "^0.8.0",
|
|
14
8
|
"@mui/icons-material": "^7.3.4",
|
|
15
9
|
"@mui/material": "^7.3.4",
|
|
16
|
-
"@pie-
|
|
17
|
-
"@pie-lib/
|
|
18
|
-
"@pie-lib/
|
|
19
|
-
"@pie-lib/math-rendering": "5.0.2",
|
|
20
|
-
"@pie-lib/render-ui": "6.1.1",
|
|
10
|
+
"@pie-lib/config-ui": "13.0.3",
|
|
11
|
+
"@pie-lib/editable-html-tip-tap": "2.1.1",
|
|
12
|
+
"@pie-lib/render-ui": "6.1.0",
|
|
21
13
|
"classnames": "^2.2.6",
|
|
22
14
|
"debug": "^4.1.1",
|
|
23
15
|
"lodash.throttle": "^4.1.1",
|
|
24
16
|
"prop-types": "^15.8.1",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
17
|
+
"@pie-element/shared-configure-events": "0.1.0",
|
|
18
|
+
"@pie-element/shared-feedback": "0.1.0",
|
|
19
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.0",
|
|
20
|
+
"@pie-element/shared-player-events": "0.1.0",
|
|
21
|
+
"lodash-es": "^4.18.1",
|
|
22
|
+
"@emotion/core": "0.x.x"
|
|
27
23
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^18.0.0",
|
|
26
|
+
"react-dom": "^18.0.0"
|
|
31
27
|
},
|
|
32
|
-
"main": "lib/index.js",
|
|
33
|
-
"module": "src/index.js",
|
|
34
28
|
"exports": {
|
|
35
|
-
".":
|
|
36
|
-
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./delivery": {
|
|
34
|
+
"types": "./dist/delivery/index.d.ts",
|
|
35
|
+
"default": "./dist/delivery/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./browser/delivery": {
|
|
38
|
+
"default": "./dist/browser/delivery/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./author": {
|
|
41
|
+
"types": "./dist/author/index.d.ts",
|
|
42
|
+
"default": "./dist/author/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./browser/author": {
|
|
45
|
+
"default": "./dist/browser/author/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./configure": {
|
|
48
|
+
"types": "./dist/author/index.d.ts",
|
|
49
|
+
"default": "./dist/author/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./controller": {
|
|
52
|
+
"types": "./dist/controller/index.d.ts",
|
|
53
|
+
"default": "./dist/controller/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./controller.js": {
|
|
56
|
+
"types": "./dist/controller/index.d.ts",
|
|
57
|
+
"default": "./dist/controller/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./browser/controller": {
|
|
60
|
+
"default": "./dist/browser/controller/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./print": {
|
|
63
|
+
"types": "./dist/print/index.d.ts",
|
|
64
|
+
"default": "./dist/print/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./browser/print": {
|
|
67
|
+
"default": "./dist/browser/print/index.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"type": "module",
|
|
71
|
+
"main": "./dist/index.js",
|
|
72
|
+
"types": "./dist/index.d.ts",
|
|
73
|
+
"files": [
|
|
74
|
+
"configure.js",
|
|
75
|
+
"controller.js",
|
|
76
|
+
"dist"
|
|
77
|
+
],
|
|
78
|
+
"sideEffects": false,
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"vite": "^8.0.1",
|
|
81
|
+
"typescript": "^5.9.3",
|
|
82
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
83
|
+
"@types/react": "^18.2.0",
|
|
84
|
+
"@types/react-dom": "^18.2.0"
|
|
85
|
+
},
|
|
86
|
+
"scripts": {
|
|
87
|
+
"build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
88
|
+
"dev": "bun x vite",
|
|
89
|
+
"demo": "bun x vite --mode demo",
|
|
90
|
+
"test": "bun x vitest run"
|
|
91
|
+
},
|
|
92
|
+
"pie": {
|
|
93
|
+
"controller": "@pie-element/extended-text-entry/controller",
|
|
94
|
+
"configure": "@pie-element/extended-text-entry/configure",
|
|
95
|
+
"browserSharedDependencies": {
|
|
96
|
+
"react": "18.2.0",
|
|
97
|
+
"react-dom": "18.2.0"
|
|
98
|
+
}
|
|
37
99
|
}
|
|
38
100
|
}
|