@pie-qti/player-elements 0.1.21 → 0.1.23
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/{define-XpbOHJoz.js → define-CqE08oOW.js} +3486 -2816
- package/dist/define-CqE08oOW.js.map +1 -0
- package/dist/{dist-CU6ScSS-.js → dist-B1Rc9Jhz.js} +4 -4
- package/dist/{dist-CU6ScSS-.js.map → dist-B1Rc9Jhz.js.map} +1 -1
- package/dist/dist-CQEJemjs.js +5061 -0
- package/dist/dist-CQEJemjs.js.map +1 -0
- package/dist/{dist-4hIHy9-L.js → dist-CsEP48m1.js} +2369 -2677
- package/dist/dist-CsEP48m1.js.map +1 -0
- package/dist/{dist-CxqtFqGy.js → dist-DQ_jFQFX.js} +22 -13
- package/dist/dist-DQ_jFQFX.js.map +1 -0
- package/dist/{element-DNnKo2Uk.js → element-DU-n15ch.js} +2 -2
- package/dist/{element-DNnKo2Uk.js.map → element-DU-n15ch.js.map} +1 -1
- package/dist/{element-class-iN9MRyjF-D6u8ACFm.js → element-class-DBV-1lkb-BeszDwN_.js} +2402 -2400
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +3 -3
- package/dist/item-toolbar-element-iE73NEkH.js +1922 -0
- package/dist/item-toolbar-element-iE73NEkH.js.map +1 -0
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js +4 -0
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js.map +1 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js +8300 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +1 -0
- package/dist/pie-tool-calculator-CkQb5qxg.js +2243 -0
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register-players.js.map +1 -1
- package/dist/register.js +8227 -10359
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-hMDtJOXa.js → resolveItems-DhQQhD2k.js} +1808 -2164
- package/dist/resolveItems-DhQQhD2k.js.map +1 -0
- package/dist/{chunk-foFoljWS.js → rolldown-runtime-CEFd7nDs.js} +10 -3
- package/dist/{root--0fyaoNu.js → root-Dqg3cyBt.js} +12 -12
- package/dist/root-Dqg3cyBt.js.map +1 -0
- package/dist/{sre-CFPLI6BY.js → sre-BD1SyGce.js} +105 -85
- package/dist/{sre-CFPLI6BY.js.map → sre-BD1SyGce.js.map} +1 -1
- package/dist/tool-tts-inline-CA3VjWU4.js +3670 -0
- package/dist/tool-tts-inline-CA3VjWU4.js.map +1 -0
- package/dist/{tag-names-ClLtKtXt.js → types-BFOGFD4R.js} +4 -22
- package/dist/types-BFOGFD4R.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-XpbOHJoz.js.map +0 -1
- package/dist/dist-4hIHy9-L.js.map +0 -1
- package/dist/dist-CxqtFqGy.js.map +0 -1
- package/dist/dist-Nkkk25AH.js +0 -1275
- package/dist/dist-Nkkk25AH.js.map +0 -1
- package/dist/element-class-iN9MRyjF-D6u8ACFm.js.map +0 -1
- package/dist/item-toolbar-element-3k36WOlC.js +0 -6086
- package/dist/item-toolbar-element-3k36WOlC.js.map +0 -1
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js +0 -38802
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CP-OMtE6.js +0 -28516
- package/dist/pie-assessment-toolkit-element-CP-OMtE6.js.map +0 -1
- package/dist/pie-tool-calculator-VzYEjxiY.js +0 -2309
- package/dist/pie-tool-calculator-VzYEjxiY.js.map +0 -1
- package/dist/resolveItems-hMDtJOXa.js.map +0 -1
- package/dist/root--0fyaoNu.js.map +0 -1
- package/dist/tag-names-ClLtKtXt.js.map +0 -1
- package/dist/tool-tts-inline-B-xT_sdY.js +0 -2641
- package/dist/tool-tts-inline-B-xT_sdY.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.
|
|
1
|
+
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/events.js
|
|
2
2
|
var e = class extends Event {
|
|
3
3
|
context;
|
|
4
4
|
contextTarget;
|
|
@@ -50,26 +50,8 @@ var e = class extends Event {
|
|
|
50
50
|
return t.dispatchEvent(new e(n, t, (e) => {
|
|
51
51
|
r = e;
|
|
52
52
|
}, !1)), r;
|
|
53
|
-
}, i = (e) => e
|
|
54
|
-
"annotation-xml",
|
|
55
|
-
"color-profile",
|
|
56
|
-
"font-face",
|
|
57
|
-
"font-face-src",
|
|
58
|
-
"font-face-uri",
|
|
59
|
-
"font-face-format",
|
|
60
|
-
"font-face-name",
|
|
61
|
-
"missing-glyph"
|
|
62
|
-
]), o = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, s = (e, t = "custom element tag") => {
|
|
63
|
-
if (!e || typeof e != "string") throw Error(`Invalid ${t}: expected a non-empty string`);
|
|
64
|
-
let n = e.trim();
|
|
65
|
-
if (!n) throw Error(`Invalid ${t}: tag is empty`);
|
|
66
|
-
if (n !== n.toLowerCase()) throw Error(`Invalid ${t} "${n}": custom element names must be lowercase`);
|
|
67
|
-
if (!n.includes("-")) throw Error(`Invalid ${t} "${n}": custom element names must include a hyphen`);
|
|
68
|
-
if (a.has(n)) throw Error(`Invalid ${t} "${n}": this name is reserved by the HTML spec`);
|
|
69
|
-
if (!o.test(n)) throw Error(`Invalid ${t} "${n}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
70
|
-
return n;
|
|
71
|
-
};
|
|
53
|
+
}, i = (e) => e;
|
|
72
54
|
//#endregion
|
|
73
|
-
export {
|
|
55
|
+
export { e as a, t as i, n, r, i as t };
|
|
74
56
|
|
|
75
|
-
//# sourceMappingURL=
|
|
57
|
+
//# sourceMappingURL=types-BFOGFD4R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BFOGFD4R.js","names":[],"sources":["../../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/events.js","../../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/consumer.js","../../../node_modules/.bun/@pie-players+pie-context@0.3.67/node_modules/@pie-players/pie-context/dist/types.js"],"sourcesContent":["export class ContextRequestEvent extends Event {\n context;\n contextTarget;\n callback;\n subscribe;\n constructor(context, contextTarget, callback, subscribe) {\n super(\"context-request\", { bubbles: true, composed: true });\n this.context = context;\n this.contextTarget = contextTarget;\n this.callback = callback;\n this.subscribe = subscribe ?? false;\n }\n}\nexport class ContextProviderEvent extends Event {\n context;\n contextTarget;\n constructor(context, contextTarget) {\n super(\"context-provider\", { bubbles: true, composed: true });\n this.context = context;\n this.contextTarget = contextTarget;\n }\n}\n","import { ContextRequestEvent } from \"./events.js\";\nexport class ContextConsumer {\n host;\n context;\n subscribe;\n onValue;\n isConnected = false;\n unsubscribe;\n currentValue;\n constructor(host, options) {\n this.host = host;\n this.context = options.context;\n this.subscribe = options.subscribe ?? true;\n this.onValue = options.onValue;\n }\n connect() {\n if (this.isConnected)\n return;\n this.isConnected = true;\n this.requestValue();\n }\n disconnect() {\n if (!this.isConnected)\n return;\n this.isConnected = false;\n this.unsubscribe?.();\n this.unsubscribe = undefined;\n }\n get value() {\n return this.currentValue;\n }\n handleValue = (value, unsubscribe) => {\n if (unsubscribe !== this.unsubscribe) {\n this.unsubscribe?.();\n this.unsubscribe = unsubscribe;\n }\n if (!this.subscribe && this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = undefined;\n }\n this.currentValue = value;\n this.onValue?.(value);\n };\n requestValue() {\n this.host.dispatchEvent(new ContextRequestEvent(this.context, this.host, this.handleValue, this.subscribe));\n }\n}\nexport const consumeContext = (host, options) => new ContextConsumer(host, options);\nexport const requestContext = (host, context) => {\n let value;\n host.dispatchEvent(new ContextRequestEvent(context, host, (nextValue) => {\n value = nextValue;\n }, false));\n return value;\n};\n","export const createContext = (key) => key;\n"],"x_google_ignoreList":[0,1,2],"mappings":";AAAA,IAAa,IAAb,cAAyC,MAAM;CAC3C;CACA;CACA;CACA;CACA,YAAY,GAAS,GAAe,GAAU,GAAW;EAKrD,AAJA,MAAM,mBAAmB;GAAE,SAAS;GAAM,UAAU;EAAK,CAAC,GAC1D,KAAK,UAAU,GACf,KAAK,gBAAgB,GACrB,KAAK,WAAW,GAChB,KAAK,YAAY,KAAa;CAClC;AACJ,GACa,IAAb,cAA0C,MAAM;CAC5C;CACA;CACA,YAAY,GAAS,GAAe;EAGhC,AAFA,MAAM,oBAAoB;GAAE,SAAS;GAAM,UAAU;EAAK,CAAC,GAC3D,KAAK,UAAU,GACf,KAAK,gBAAgB;CACzB;AACJ,GCpBa,IAAb,MAA6B;CACzB;CACA;CACA;CACA;CACA,cAAc;CACd;CACA;CACA,YAAY,GAAM,GAAS;EAIvB,AAHA,KAAK,OAAO,GACZ,KAAK,UAAU,EAAQ,SACvB,KAAK,YAAY,EAAQ,aAAa,IACtC,KAAK,UAAU,EAAQ;CAC3B;CACA,UAAU;EACF,KAAK,gBAET,KAAK,cAAc,IACnB,KAAK,aAAa;CACtB;CACA,aAAa;EACJ,KAAK,gBAEV,KAAK,cAAc,IACnB,KAAK,cAAc,GACnB,KAAK,cAAc,KAAA;CACvB;CACA,IAAI,QAAQ;EACR,OAAO,KAAK;CAChB;CACA,eAAe,GAAO,MAAgB;EAUlC,AATI,MAAgB,KAAK,gBACrB,KAAK,cAAc,GACnB,KAAK,cAAc,IAEnB,CAAC,KAAK,aAAa,KAAK,gBACxB,KAAK,YAAY,GACjB,KAAK,cAAc,KAAA,IAEvB,KAAK,eAAe,GACpB,KAAK,UAAU,CAAK;CACxB;CACA,eAAe;EACX,KAAK,KAAK,cAAc,IAAI,EAAoB,KAAK,SAAS,KAAK,MAAM,KAAK,aAAa,KAAK,SAAS,CAAC;CAC9G;AACJ,GAEa,KAAkB,GAAM,MAAY;CAC7C,IAAI;CAIJ,OAHA,EAAK,cAAc,IAAI,EAAoB,GAAS,IAAO,MAAc;EACrE,IAAQ;CACZ,GAAG,EAAK,CAAC,GACF;AACX,GCtDa,KAAiB,MAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-qti/player-elements",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "QTI (2.x and 3.0) player web components (custom elements) for framework-agnostic embedding",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@pie-qti/item-player": "0.1.
|
|
36
|
+
"@pie-qti/item-player": "0.1.23"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@pie-qti/assessment-player": "0.1.
|
|
40
|
-
"@pie-qti/default-components": "0.1.
|
|
41
|
-
"@pie-qti/qti-common": "0.1.
|
|
42
|
-
"@pie-qti/section-player": "0.1.
|
|
39
|
+
"@pie-qti/assessment-player": "0.1.23",
|
|
40
|
+
"@pie-qti/default-components": "0.1.23",
|
|
41
|
+
"@pie-qti/qti-common": "0.1.23",
|
|
42
|
+
"@pie-qti/section-player": "0.1.23",
|
|
43
43
|
"@biomejs/biome": "^2.5.7",
|
|
44
44
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
45
45
|
"linkedom": "^0.18.13",
|
|
46
46
|
"svelte": "^5.56.8",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
|
-
"vite": "^8.
|
|
48
|
+
"vite": "^8.2.1"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"sideEffects": [
|
|
63
63
|
"./dist/register.js",
|
|
64
64
|
"./dist/register-players.js",
|
|
65
|
-
"./dist/
|
|
65
|
+
"./dist/define-*.js"
|
|
66
66
|
],
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=20.19.0"
|