@pie-element/element-player 0.1.2-next.4 → 0.1.2-next.6

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.
@@ -1,4 +1,4 @@
1
- import { t as e } from "./math-mathjax-YIPQGZlD.js";
1
+ import { t as e } from "./math-mathjax-DOKotYqr.js";
2
2
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
3
3
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
4
4
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/element-player",
3
- "version": "0.1.2-next.4",
3
+ "version": "0.1.2-next.6",
4
4
  "description": "Shared PIE element player web component",
5
5
  "type": "module",
6
6
  "unpkg": "./dist/pie-element-player.js",
@@ -26,7 +26,7 @@
26
26
  "dev": "vite"
27
27
  },
28
28
  "dependencies": {
29
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.1"
29
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.3"
30
30
  },
31
31
  "license": "MIT",
32
32
  "publishConfig": {
@@ -1,59 +0,0 @@
1
- //#region ../shared/math-rendering-mathjax/dist/index.js
2
- var e = null;
3
- function t(t) {
4
- return typeof window > "u" || window.MathJax?.typesetPromise ? Promise.resolve() : e || (e = new Promise((e, n) => {
5
- let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = t, s = {
6
- loader: { load: i ? ["a11y/assistive-mml"] : [] },
7
- tex: {
8
- packages: [
9
- "base",
10
- "ams",
11
- "autoload"
12
- ],
13
- macros: {
14
- parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
15
- overarc: "\\overparen",
16
- napprox: "\\not\\approx",
17
- longdiv: "\\enclose{longdiv}"
18
- }
19
- },
20
- options: {
21
- enableMenu: i,
22
- enableExplorer: i,
23
- enableAssistiveMml: i
24
- },
25
- startup: {
26
- ready: () => {
27
- window.MathJax?.startup.defaultReady && (window.MathJax.startup.defaultReady(), e());
28
- },
29
- defaultReady: () => {}
30
- }
31
- };
32
- r && s.tex && (s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
33
- let c = document.createElement("script");
34
- c.src = o || "https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js", c.async = !0, c.onload = () => {
35
- setTimeout(e, 100);
36
- }, c.onerror = () => {
37
- n(/* @__PURE__ */ Error("Failed to load MathJax"));
38
- }, document.head.appendChild(c);
39
- }), e);
40
- }
41
- function n() {
42
- let e = window.MathJax?.startup?.document;
43
- if (typeof e?.assistiveMml == "function") try {
44
- e.assistiveMml().updateDocument?.();
45
- } catch (e) {
46
- console.warn("[mathjax-renderer] Failed to attach assistive MathML:", e);
47
- }
48
- }
49
- function r(e = {}) {
50
- return async (r) => {
51
- if (await t(e), !window.MathJax?.typesetPromise) {
52
- console.warn("[mathjax-renderer] MathJax not loaded or missing typesetPromise.");
53
- return;
54
- }
55
- await window.MathJax.typesetPromise([r]), n();
56
- };
57
- }
58
- //#endregion
59
- export { r as t };