@pie-element/element-player 0.1.2-next.3 → 0.1.2-next.5

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,7 +1,10 @@
1
1
  //#region ../shared/math-rendering-mathjax/dist/index.js
2
- var e = null;
2
+ var e = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading");
3
3
  function t(t) {
4
- return typeof window > "u" || window.MathJax?.typesetPromise ? Promise.resolve() : e || (e = new Promise((e, n) => {
4
+ if (typeof window > "u" || window.MathJax?.typesetPromise) return Promise.resolve();
5
+ let n = globalThis, r = n[e];
6
+ if (r) return r;
7
+ let i = new Promise((e, n) => {
5
8
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = t, s = {
6
9
  loader: { load: i ? ["a11y/assistive-mml"] : [] },
7
10
  tex: {
@@ -36,7 +39,8 @@ function t(t) {
36
39
  }, c.onerror = () => {
37
40
  n(/* @__PURE__ */ Error("Failed to load MathJax"));
38
41
  }, document.head.appendChild(c);
39
- }), e);
42
+ });
43
+ return n[e] = i, i;
40
44
  }
41
45
  function n() {
42
46
  let e = window.MathJax?.startup?.document;
@@ -1,4 +1,4 @@
1
- import { t as e } from "./math-mathjax-YIPQGZlD.js";
1
+ import { t as e } from "./math-mathjax-DfQclRvN.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.3",
3
+ "version": "0.1.2-next.5",
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.0"
29
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.2"
30
30
  },
31
31
  "license": "MIT",
32
32
  "publishConfig": {