@sheetxl/studio-vanilla
Version:
SheetXL Studio - Vanilla entry point for integrating SheetXL UI.
22 lines (21 loc) • 1.49 kB
JavaScript
/**
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.4
*
* (C) 2025-present SheetXL Inc. & Michael T. Ford
* License: The license can be found at https://www.sheetxl.com/license.
*/
let a = null;
const m = { reactUrl: "https://esm.sh/react@19.1.0", reactJsxTransform: "https://esm.sh/react@19.1.0/jsx-runtime", reactDomUrl: "https://esm.sh/react-dom@19.1.0", reactDomUrlClient: "https://esm.sh/react-dom@19.1.0/client" }, i = (e) => (e = { ...e, ...m }, a || (a = (async () => {
const c = e.reactUrl, s = e.reactDomUrl, n = e.reactDomUrlClient, o = e.reactJsxTransform;
if (document.querySelector('script[type="importmap"]')) console.warn("SheetXL: Import map already exists. Skipping injection.");
else {
const t = document.createElement("script");
t.type = "importmap", t.textContent = JSON.stringify({ imports: { react: c, "react/jsx-runtime": o, "react-dom": s, "react-dom/client": n } }), document.head.appendChild(t);
}
await new Promise((t) => setTimeout(t, 0));
const r = await Promise.all([import("./BjUnH-Jak3KkxyMS.js").then((t) => t.R), import("./ESo6qTbjf45cfiLm.js").then((t) => t.j), import("./DdDAkCzLnDiQdL3A.js").then((t) => t.i), import("./BLM_iAjwRwVBN8bb.js").then((t) => t.c), import("./Dm24M4tfHrPDHOCg.js").then((t) => t.aL)]);
return { React: r[0], ReactJSXTransform: r[1], ReactDOM: r[2], ReactDOMClient: r[3], StudioMUI: r[4] };
})(), a));
export {
i as resolveDependencies
};