@pie-qti/player-elements 0.1.22 → 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-Bkc2UFCK.js → define-CqE08oOW.js} +2832 -2424
- package/dist/define-CqE08oOW.js.map +1 -0
- package/dist/{dist-C0bIgnik.js → dist-B1Rc9Jhz.js} +4 -4
- package/dist/{dist-C0bIgnik.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-_mWRIrTg.js → dist-CsEP48m1.js} +2353 -2660
- package/dist/dist-CsEP48m1.js.map +1 -0
- package/dist/{dist-CPyrAOfS.js → dist-DQ_jFQFX.js} +20 -11
- package/dist/dist-DQ_jFQFX.js.map +1 -0
- package/dist/{element-BrpUrZI4.js → element-DU-n15ch.js} +2 -2
- package/dist/{element-BrpUrZI4.js.map → element-DU-n15ch.js.map} +1 -1
- package/dist/{element-class-DWoLXp_r-ms67Krq-.js → element-class-DBV-1lkb-BeszDwN_.js} +524 -496
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-iE73NEkH.js +1922 -0
- package/dist/item-toolbar-element-iE73NEkH.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-BGp3etqJ.js → pie-tool-calculator-CkQb5qxg.js} +969 -952
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register.js +4591 -6734
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-XtUnsftV.js → resolveItems-DhQQhD2k.js} +2 -2
- package/dist/{resolveItems-XtUnsftV.js.map → resolveItems-DhQQhD2k.js.map} +1 -1
- package/dist/{root-DBWhDxjY.js → root-Dqg3cyBt.js} +12 -12
- package/dist/root-Dqg3cyBt.js.map +1 -0
- package/dist/tool-tts-inline-CA3VjWU4.js +3670 -0
- package/dist/tool-tts-inline-CA3VjWU4.js.map +1 -0
- package/dist/{tag-names-DV56RHJk.js → types-BFOGFD4R.js} +4 -22
- package/dist/types-BFOGFD4R.js.map +1 -0
- package/package.json +7 -7
- package/dist/define-Bkc2UFCK.js.map +0 -1
- package/dist/dist-CPyrAOfS.js.map +0 -1
- package/dist/dist-DU1nH3y8.js +0 -1247
- package/dist/dist-DU1nH3y8.js.map +0 -1
- package/dist/dist-_mWRIrTg.js.map +0 -1
- package/dist/element-class-DWoLXp_r-ms67Krq-.js.map +0 -1
- package/dist/item-toolbar-element-DFppTi_H.js +0 -6015
- package/dist/item-toolbar-element-DFppTi_H.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js +0 -28479
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js.map +0 -1
- package/dist/pie-tool-calculator-BGp3etqJ.js.map +0 -1
- package/dist/root-DBWhDxjY.js.map +0 -1
- package/dist/tag-names-DV56RHJk.js.map +0 -1
- package/dist/tool-tts-inline-DVUYjVnD.js +0 -2574
- package/dist/tool-tts-inline-DVUYjVnD.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,13 +33,13 @@
|
|
|
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",
|
|
@@ -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"
|