@pie-element/element-player 0.1.1 → 0.1.2-next.1
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/README.md +38 -10
- package/dist/index.d.ts +10 -6
- package/dist/lib/element-loader.d.ts +16 -1
- package/dist/lib/iife-bundle-loader.d.ts +98 -0
- package/dist/lib/math-rendering-types.d.ts +7 -0
- package/dist/lib/player-strategy.d.ts +9 -0
- package/dist/lib/runtime-support.d.ts +12 -0
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/unified-player-loader.d.ts +51 -0
- package/dist/math-mathjax-YIPQGZlD.js +59 -0
- package/dist/pie-element-player.css +3 -1
- package/dist/pie-element-player.js +3034 -2814
- package/dist/players/index.d.ts +2 -6
- package/package.json +21 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/element-loader.d.ts.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/math-mathjax-Dwo4iuV6.js +0 -50
- package/dist/players/index.d.ts.map +0 -1
package/dist/players/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PIE Element Players
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Unified player custom element registration.
|
|
5
5
|
*/
|
|
6
|
-
import './
|
|
7
|
-
import './EsmPrintPlayer.svelte';
|
|
8
|
-
export { default as EsmElementPlayer } from './EsmElementPlayer.svelte';
|
|
9
|
-
export { default as EsmPrintPlayer } from './EsmPrintPlayer.svelte';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
6
|
+
import './PieElementPlayer.svelte';
|
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/element-player",
|
|
3
|
-
"version": "0.1.1",
|
|
3
|
+
"version": "0.1.2-next.1",
|
|
4
4
|
"description": "Shared PIE element player web component",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"unpkg": "./dist/pie-element-player.js",
|
|
7
|
+
"jsdelivr": "./dist/pie-element-player.js",
|
|
6
8
|
"main": "./dist/pie-element-player.js",
|
|
7
9
|
"types": "./dist/index.d.ts",
|
|
8
10
|
"exports": {
|
|
9
11
|
".": {
|
|
10
12
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"
|
|
12
|
-
"default": "./dist/pie-element-player.js"
|
|
13
|
+
"import": "./dist/pie-element-player.js"
|
|
13
14
|
},
|
|
14
15
|
"./players": {
|
|
15
|
-
"types": "./dist/
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/pie-element-player.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/pie-element-player.css"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
22
|
"dist"
|
|
@@ -25,29 +26,20 @@
|
|
|
25
26
|
"dev": "vite"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@pie-element/shared-math-rendering-mathjax": "
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"@tiptap/extension-document": "3.18.0",
|
|
34
|
-
"@tiptap/extension-history": "3.18.0",
|
|
35
|
-
"@tiptap/extension-text": "3.18.0",
|
|
36
|
-
"@tiptap/starter-kit": "3.18.0",
|
|
37
|
-
"highlight.js": "^11.11.1",
|
|
38
|
-
"lowlight": "^3.3.0"
|
|
29
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
39
34
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
38
|
+
"directory": "packages/element-player"
|
|
42
39
|
},
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"daisyui": "^5.5.14",
|
|
47
|
-
"svelte": "^5.46.1",
|
|
48
|
-
"tailwindcss": "^4.1.18",
|
|
49
|
-
"vite": "^7.3.1",
|
|
50
|
-
"typescript": "^5.9.3"
|
|
40
|
+
"homepage": "https://github.com/pie-framework/pie-elements-ng#readme",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/pie-framework/pie-elements-ng/issues"
|
|
51
43
|
},
|
|
52
|
-
"
|
|
44
|
+
"sideEffects": true
|
|
53
45
|
}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,WAAW,CAAC;AAGnB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG7D,OAAO,WAAW,CAAC;AAGnB,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"element-loader.d.ts","sourceRoot":"","sources":["../../src/lib/element-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,OAAe,EACtB,QAAQ,GAAE,OAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAiEf;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,OAAe,GACrB,OAAO,CAAC,GAAG,CAAC,CAiDd"}
|
package/dist/lib/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/D,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACvE;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const c = "https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js";
|
|
2
|
-
let n = null;
|
|
3
|
-
function u(o) {
|
|
4
|
-
return typeof window > "u" || window.MathJax?.version ? Promise.resolve() : n || (n = new Promise((a, s) => {
|
|
5
|
-
const { useSingleDollar: l = !1, accessibility: r = !0, loadFonts: i = !0, srcUrl: d } = o, e = {
|
|
6
|
-
tex: {
|
|
7
|
-
packages: ["base", "ams", "autoload"],
|
|
8
|
-
macros: {
|
|
9
|
-
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
10
|
-
overarc: "\\overparen",
|
|
11
|
-
napprox: "\\not\\approx",
|
|
12
|
-
longdiv: "\\enclose{longdiv}"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
options: {
|
|
16
|
-
enableMenu: r,
|
|
17
|
-
enableExplorer: r
|
|
18
|
-
},
|
|
19
|
-
startup: {
|
|
20
|
-
ready: () => {
|
|
21
|
-
window.MathJax?.startup.defaultReady && (window.MathJax.startup.defaultReady(), a());
|
|
22
|
-
},
|
|
23
|
-
defaultReady: () => {
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
l && e.tex && (e.tex.inlineMath = [
|
|
28
|
-
["$", "$"],
|
|
29
|
-
["\\(", "\\)"]
|
|
30
|
-
], e.tex.processEscapes = !0), i || (e.chtml = { fontURL: "" }), window.MathJax = e;
|
|
31
|
-
const t = document.createElement("script");
|
|
32
|
-
t.src = d || c, t.async = !0, t.onload = () => {
|
|
33
|
-
setTimeout(a, 100);
|
|
34
|
-
}, t.onerror = () => {
|
|
35
|
-
s(new Error("Failed to load MathJax"));
|
|
36
|
-
}, document.head.appendChild(t);
|
|
37
|
-
}), n);
|
|
38
|
-
}
|
|
39
|
-
function p(o = {}) {
|
|
40
|
-
return async (a) => {
|
|
41
|
-
if (await u(o), !window.MathJax?.typesetPromise) {
|
|
42
|
-
console.warn("[mathjax-renderer] MathJax not loaded or missing typesetPromise.");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
await window.MathJax.typesetPromise([a]);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
p as m
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/players/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC"}
|