@sheetxl/studio-vanilla 0.4.19 → 0.4.21
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/browser/cjs/index.cjs +80 -2
- package/browser/cjs/{BJIfDlGWvnC0eGUi.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
- package/browser/esm/{DiGLoJDZqriVp152.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
- package/browser/esm/index.mjs +176 -4
- package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/1FbLU-GkjsXMtg8T.cjs +0 -15
- package/browser/cjs/3xnum9EEG0qokR90.cjs +0 -12
- package/browser/cjs/5i4FVjROedZEnZNH.cjs +0 -6
- package/browser/cjs/9yZt9CqVSMBE7LUX.cjs +0 -6
- package/browser/cjs/B7V2ifI29G13Ypfn.cjs +0 -378
- package/browser/cjs/BCBl10fgrkZ5JX8E.cjs +0 -161
- package/browser/cjs/BCVApYTYfHlRzbCn.cjs +0 -6
- package/browser/cjs/BjW-ykzXN9S3TMzb.cjs +0 -11
- package/browser/cjs/Bn5tlfH0oqJI1Lk9.cjs +0 -6
- package/browser/cjs/BnD8IArw964iF-Zg.cjs +0 -1501
- package/browser/cjs/BnwSPi6FOdqxr7z1.cjs +0 -19
- package/browser/cjs/BxpKhdqadWDARG9W.cjs +0 -16
- package/browser/cjs/C8FEOglWYUtglsLP.cjs +0 -6
- package/browser/cjs/CDd6P2SfTKp4v-QA.cjs +0 -6
- package/browser/cjs/CFfq2Z-VQyMwMJKP.cjs +0 -6
- package/browser/cjs/CG1FkANzsujO3FLU.cjs +0 -6
- package/browser/cjs/CGD07mOjjl6zfCzK.cjs +0 -15
- package/browser/cjs/CMO36tnnJHrXso4Q.cjs +0 -7
- package/browser/cjs/CMfyyxtrIHPMnrBl.cjs +0 -6
- package/browser/cjs/CNue1AsHpswiVYJx.cjs +0 -6
- package/browser/cjs/C_bqbac1bCl1H0Bn.cjs +0 -6
- package/browser/cjs/C_jIzbaCWis1jB7f.cjs +0 -32
- package/browser/cjs/CaFeiasVg3jafLwL.cjs +0 -6
- package/browser/cjs/CaWJjQ_KmjWp1ooU.cjs +0 -145
- package/browser/cjs/CahVr7pzDRu3h4G3.cjs +0 -6
- package/browser/cjs/CaswMUSE1R9Noewr.cjs +0 -6
- package/browser/cjs/CfX6-fSMFgAg6iL9.cjs +0 -124
- package/browser/cjs/CkhCXLhqA4a2CnSJ.cjs +0 -6
- package/browser/cjs/CkriFKrE5BBPFQWm.cjs +0 -6
- package/browser/cjs/CuX_ftSJWqfRsXHy.cjs +0 -6
- package/browser/cjs/CznEff7u33FYbOSn.cjs +0 -6
- package/browser/cjs/D-fNsTpgGyZHdYEp.cjs +0 -6
- package/browser/cjs/DCxlQuW8eB70ZbcJ.cjs +0 -6
- package/browser/cjs/DFet-I-_FYR9s_ET.cjs +0 -6
- package/browser/cjs/DKQmNMiW6vEz1i7V.cjs +0 -6
- package/browser/cjs/DMOCfhgdy7Z8GoD-.cjs +0 -13
- package/browser/cjs/DVVk6WU7lfgpQLZG.cjs +0 -6
- package/browser/cjs/DYMFAMQ13cX03167.cjs +0 -7
- package/browser/cjs/DZVJ234kMQwb5dEy.cjs +0 -6
- package/browser/cjs/DZqqUVtfn36E0rIk.cjs +0 -6
- package/browser/cjs/DguzXHidCk2s1uCY.cjs +0 -6
- package/browser/cjs/Dhik7yBvR-5iyJcR.cjs +0 -6
- package/browser/cjs/Dms2LCMINwYEtl3S.cjs +0 -6
- package/browser/cjs/DnHgK81nepMuvMim.cjs +0 -6
- package/browser/cjs/DuJlHux5dLU53d80.cjs +0 -6
- package/browser/cjs/Dz5uLsJ16GF2Cyov.cjs +0 -6
- package/browser/cjs/Io_6AEq6KpjrZEfL.cjs +0 -6
- package/browser/cjs/R7ToEkyr-cbP0Q3N.cjs +0 -6
- package/browser/cjs/TGD3vlMtB_qnQE-M.cjs +0 -11
- package/browser/cjs/XFsZZevZgfk9vB1r.cjs +0 -6
- package/browser/cjs/bGVtUGltyeHuGKLB.cjs +0 -6
- package/browser/cjs/f-w9NYC1mTi7W9HY.cjs +0 -6
- package/browser/cjs/kGBvcCWaH3h23Ojp.cjs +0 -7
- package/browser/cjs/mUwYCSHSRCUQJ4uV.cjs +0 -42
- package/browser/cjs/qLyXB7fJpKBbTC_N.cjs +0 -6
- package/browser/cjs/s2JuJCqW6ny4lxQX.cjs +0 -6
- package/browser/esm/2Fopggi4LREIIXpY.mjs +0 -13208
- package/browser/esm/4ZXEcNsjnqWXAiUa.mjs +0 -2344
- package/browser/esm/4yxl564v_Wx022xz.mjs +0 -633
- package/browser/esm/5Ovf_TtcBCG7hgdY.mjs +0 -20
- package/browser/esm/6X4p3ajMgDNtcmLW.mjs +0 -10
- package/browser/esm/8F0vFRAXlzH-vmJl.mjs +0 -52354
- package/browser/esm/B1L8rEDpskxCqnhJ.mjs +0 -10
- package/browser/esm/BENg2ibY7Hr-SYp3.mjs +0 -10
- package/browser/esm/BHzg_9TpgdKnIlaX.mjs +0 -10
- package/browser/esm/BY9rDUy2rHkqh6hH.mjs +0 -820
- package/browser/esm/Bd2yJknZG5WTZ26u.mjs +0 -10
- package/browser/esm/BlH_AWoPr-w3-qdS.mjs +0 -10
- package/browser/esm/BmeozQuzbqa81PvH.mjs +0 -41
- package/browser/esm/BprECrKMFGb2UK2v.mjs +0 -2174
- package/browser/esm/Br_6r7a5IjKksr00.mjs +0 -390
- package/browser/esm/ByJuiohpCMXnDKmL.mjs +0 -47
- package/browser/esm/C04_X_6DkiZCUmwB.mjs +0 -1702
- package/browser/esm/C3pNOQaLBsTUp2CW.mjs +0 -10
- package/browser/esm/C4gnsPTE7_xP3Mz_.mjs +0 -1575
- package/browser/esm/C8kq7JNW8ivhRL1S.mjs +0 -3934
- package/browser/esm/CGquHZGGYOxATF73.mjs +0 -10
- package/browser/esm/CKwR5AWlnckKQRc-.mjs +0 -10
- package/browser/esm/CLSpsTCV3Onb_QXV.mjs +0 -84
- package/browser/esm/CMrXKGbxBR_LxLxN.mjs +0 -3755
- package/browser/esm/CN-UcSPqkcXnkJCx.mjs +0 -1365
- package/browser/esm/CQJsDOnipkhuGkKg.mjs +0 -56
- package/browser/esm/CTIgStBt9DOpau5q.mjs +0 -1665
- package/browser/esm/CXL9mY2kUT053cTN.mjs +0 -1346
- package/browser/esm/CZ54d8Ueai6uZgy6.mjs +0 -10
- package/browser/esm/CZM2uNUNI4W8qUw3.mjs +0 -10
- package/browser/esm/CaaAGrJF7OxdprqB.mjs +0 -10
- package/browser/esm/CnRJWnfDHzunp3N5.mjs +0 -472
- package/browser/esm/CpGYH9QSPqM4ejyF.mjs +0 -421
- package/browser/esm/CqLIq6VVhQnv6ZP4.mjs +0 -10
- package/browser/esm/CqTn7MLxDJZX7aIA.mjs +0 -10
- package/browser/esm/D3RHh0FQuMAKk4JL.mjs +0 -10
- package/browser/esm/D8hxrXJDfvDRoouY.mjs +0 -147
- package/browser/esm/DMwYqCQzDDwbzt8K.mjs +0 -44
- package/browser/esm/DNV2yXFlJ5hRF5ME.mjs +0 -46
- package/browser/esm/DUxcExPcvgbBrSXX.mjs +0 -5582
- package/browser/esm/DbTEH7CjzsjIc-ew.mjs +0 -21
- package/browser/esm/Df2lY3OJ73BCDQo6.mjs +0 -24
- package/browser/esm/DlUeNEy_cp31Am5t.mjs +0 -39
- package/browser/esm/DovESggwbqQKJEkM.mjs +0 -10
- package/browser/esm/DpNpusKUeZXcDNra.mjs +0 -29
- package/browser/esm/Dx-FJghQY8rpWJi1.mjs +0 -10
- package/browser/esm/DxObRtwZ98tP8NM3.mjs +0 -10
- package/browser/esm/FT-XJjpzjdyq4pin.mjs +0 -48
- package/browser/esm/HnfOytlj72v4rd6y.mjs +0 -425
- package/browser/esm/IChTkXO9eDekfSb7.mjs +0 -10
- package/browser/esm/KcDpdRfEgTnFwlSh.mjs +0 -21
- package/browser/esm/TVfGpAQkvkA9mx4E.mjs +0 -10
- package/browser/esm/pqikV5IyVMBYUDqP.mjs +0 -10
- package/browser/esm/qfHSXgWX4yZd3nwZ.mjs +0 -1466
- package/browser/esm/xWvOAH67Iwyf2Zge.mjs +0 -10
- package/browser/esm/xaJvLe6JwO1rQiE-.mjs +0 -12
- package/cdn/assets/15AvUM5aNUAfFLU7.js +0 -58
- package/cdn/assets/2Fopggi4LREIIXpY.js +0 -13208
- package/cdn/assets/4yxl564v_Wx022xz.js +0 -633
- package/cdn/assets/6X4p3ajMgDNtcmLW.js +0 -10
- package/cdn/assets/B1L8rEDpskxCqnhJ.js +0 -10
- package/cdn/assets/B1y38xd4JTLIrdUW.js +0 -1702
- package/cdn/assets/BENg2ibY7Hr-SYp3.js +0 -10
- package/cdn/assets/BHzg_9TpgdKnIlaX.js +0 -10
- package/cdn/assets/BXRf5zCAUE8kGNat.js +0 -46
- package/cdn/assets/BZdjtacH2DTSHsdG.js +0 -22
- package/cdn/assets/Bd2yJknZG5WTZ26u.js +0 -10
- package/cdn/assets/BlH_AWoPr-w3-qdS.js +0 -10
- package/cdn/assets/C3pNOQaLBsTUp2CW.js +0 -10
- package/cdn/assets/C6yX85fw0aO70N0-.js +0 -2346
- package/cdn/assets/CGquHZGGYOxATF73.js +0 -10
- package/cdn/assets/CKwR5AWlnckKQRc-.js +0 -10
- package/cdn/assets/CN-UcSPqkcXnkJCx.js +0 -1365
- package/cdn/assets/CSBAnGx7ebIRyjML.js +0 -21
- package/cdn/assets/CTIgStBt9DOpau5q.js +0 -1665
- package/cdn/assets/CXL9mY2kUT053cTN.js +0 -1346
- package/cdn/assets/CZ54d8Ueai6uZgy6.js +0 -10
- package/cdn/assets/CZM2uNUNI4W8qUw3.js +0 -10
- package/cdn/assets/CaaAGrJF7OxdprqB.js +0 -10
- package/cdn/assets/Cfgui52VcoZakyBi.js +0 -50
- package/cdn/assets/Ck6R7vI9j0vG-mKU.js +0 -390
- package/cdn/assets/ClTJpu1UdRW0KLAX.js +0 -23
- package/cdn/assets/Co1yPh9LPeUa-tCm.js +0 -29
- package/cdn/assets/CpGYH9QSPqM4ejyF.js +0 -421
- package/cdn/assets/CppP22dM3wzxzf_R.js +0 -3934
- package/cdn/assets/CqLIq6VVhQnv6ZP4.js +0 -10
- package/cdn/assets/CqTn7MLxDJZX7aIA.js +0 -10
- package/cdn/assets/D3RHh0FQuMAKk4JL.js +0 -10
- package/cdn/assets/DCmJyecz9jzS5Hh5.js +0 -41
- package/cdn/assets/DEHd1h8uAHbt7JQl.js +0 -425
- package/cdn/assets/DK25k4g9SWrBiPDl.js +0 -43
- package/cdn/assets/DL18SWHzmNBC5_Sq.js +0 -472
- package/cdn/assets/DZz8nVXsYYFIaomy.js +0 -3756
- package/cdn/assets/Df2lY3OJ73BCDQo6.js +0 -24
- package/cdn/assets/DidmQocPR2LUv5_-.js +0 -84
- package/cdn/assets/DifkJcFEihfAmrz6.js +0 -5582
- package/cdn/assets/Dj-9L-ifpIi1HChy.js +0 -52185
- package/cdn/assets/DovESggwbqQKJEkM.js +0 -10
- package/cdn/assets/Dwy3QqzGL-q3IHdC.js +0 -49
- package/cdn/assets/Dx-FJghQY8rpWJi1.js +0 -10
- package/cdn/assets/DxObRtwZ98tP8NM3.js +0 -10
- package/cdn/assets/IChTkXO9eDekfSb7.js +0 -10
- package/cdn/assets/KcDpdRfEgTnFwlSh.js +0 -21
- package/cdn/assets/R-6SrokApX5Vs5h6.js +0 -12
- package/cdn/assets/TVfGpAQkvkA9mx4E.js +0 -10
- package/cdn/assets/ZfVobc-p41aYisnX.js +0 -46
- package/cdn/assets/_QS_SgWjAGVcBh2y.js +0 -2177
- package/cdn/assets/_bKdjn1gFyUlsKF8.js +0 -149
- package/cdn/assets/cgKx_r-dAv2kc57N.js +0 -1575
- package/cdn/assets/lxv3lfQ08L2wD1S3.js +0 -820
- package/cdn/assets/pqikV5IyVMBYUDqP.js +0 -10
- package/cdn/assets/wXUNHjkvpeSH2dQZ.js +0 -1466
- package/cdn/assets/xWvOAH67Iwyf2Zge.js +0 -10
- package/cdn/assets/xaJvLe6JwO1rQiE-.js +0 -12
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
6
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./n6CXzSocLW_BCO8w.cjs");function F(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}function z(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const C=F(require("@sheetxl/studio-mui")),S=new Map,L=(e,r={})=>{const{message:t,icon:n,customElement:i,hide:s=!1,className:a,cssVars:m={}}=r;if(s)return;const c=typeof e=="string"?document.querySelector(e):e;if(!c)return void console.warn(`Element with selector "${e}" not found for panel.`);let o;if(p(e),i)o=i;else{o=document.createElement("div"),o.className=a?`sheetxl-panel ${a}`:"sheetxl-panel";const g=Object.entries(m).map(([l,v])=>`--sheetxl-panel-${l}: ${v};`).join(" "),x=`
|
|
7
|
+
@keyframes sheetxl-spin {
|
|
8
|
+
from { transform: rotate(0deg); }
|
|
9
|
+
to { transform: rotate(360deg); }
|
|
10
|
+
}
|
|
11
|
+
.sheetxl-panel {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
backdrop-filter: blur(4px);
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
z-index: 9999;
|
|
24
|
+
gap: 16px;
|
|
25
|
+
|
|
26
|
+
/* CSS variables with fallbacks */
|
|
27
|
+
color: var(--sheetxl-panel-color, #333);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sheetxl-panel.dark {
|
|
31
|
+
color: var(--sheetxl-panel-color, #e0e0e0);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sheetxl-icon {
|
|
35
|
+
width: 24px;
|
|
36
|
+
height: 24px;
|
|
37
|
+
color: var(--sheetxl-panel-icon-color, #1976d2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sheetxl-panel.loading {
|
|
41
|
+
/* Loading panel defaults */
|
|
42
|
+
color: var(--sheetxl-panel-color, #333);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sheetxl-panel.loading.dark {
|
|
46
|
+
color: var(--sheetxl-panel-color, #e0e0e0);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sheetxl-panel.error {
|
|
50
|
+
/* Error panel defaults */
|
|
51
|
+
color: var(--sheetxl-panel-color, #d32f2f);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sheetxl-panel.error.dark {
|
|
55
|
+
color: var(--sheetxl-panel-color, #f44336);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sheetxl-panel.error .sheetxl-icon {
|
|
59
|
+
color: var(--sheetxl-panel-icon-color, #d32f2f);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sheetxl-panel.error.dark .sheetxl-icon {
|
|
63
|
+
color: var(--sheetxl-panel-icon-color, #f44336);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sheetxl-message {
|
|
67
|
+
font-size: 1.1em;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
letter-spacing: 0.1px;
|
|
70
|
+
text-align: center;
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
`,f=document.createElement("style");if(f.textContent=x,o.appendChild(f),n){const l=document.createElement("div");l.className="sheetxl-icon",typeof n=="string"?l.innerHTML=n:n instanceof HTMLElement&&l.appendChild(n),o.appendChild(l)}if(t){const l=document.createElement("div");l.className="sheetxl-message",l.textContent=t,o.appendChild(l)}g&&(o.style.cssText+=g),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&o.classList.add("dark")}window.getComputedStyle(c).position==="static"&&(c.style.position="relative"),c.appendChild(o),S.set(e,o)},p=e=>{const r=S.get(e);r&&r.parentNode&&(r.parentNode.removeChild(r),S.delete(e))},N=(e,r={})=>{L(e,{icon:`
|
|
74
|
+
<svg width="24" height="24" viewBox="0 0 24 24" style="animation: sheetxl-spin 1s linear infinite;">
|
|
75
|
+
<circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="31.416" stroke-dashoffset="31.416">
|
|
76
|
+
<animate attributeName="stroke-dasharray" dur="2s" values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/>
|
|
77
|
+
<animate attributeName="stroke-dashoffset" dur="2s" values="0;-15.708;-31.416" repeatCount="indefinite"/>
|
|
78
|
+
</circle>
|
|
79
|
+
</svg>
|
|
80
|
+
`,className:"loading",...r})},P=(e,r={})=>{L(e,{message:"Failed to load SheetXL",icon:`
|
|
81
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
|
|
82
|
+
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/>
|
|
83
|
+
</svg>
|
|
84
|
+
`,className:"error",...r})},y=new Map;var q=u.requireReact();const T=u.getDefaultExportFromCjs(q);var M=u.requireJsxRuntime();const I=z({__proto__:null,default:u.getDefaultExportFromCjs(M)},[M]);var j=u.requireClient();const k=z({__proto__:null,default:u.getDefaultExportFromCjs(j)},[j]);let w;const X=async e=>{if(w)return w;if(C.Studio===void 0)throw new Error("StudioMUI.Studio is undefined. Make sure @sheetxl/studio-mui is correctly installed.");return w=await(async(r,t)=>{typeof t=="string"&&(t={selector:t});try{if(t?.selector&&N(t?.selector,t?.loading),!r)throw new Error("No runtime provided");t?.licenseKey&&await r.StudioMUI.LicenseManager.setLicenseKey(t.licenseKey),t?.selector&&p(t?.selector)}catch(n){throw t?.selector&&(p(t.selector),P(t.selector,{message:`Failed to initialize: ${n instanceof Error?n.message:String(n)}`,...t?.error})),console.error("Failed to initialize:",n),n}return r})({React:T,ReactJSXTransform:I,ReactDOM:k,ReactDOMClient:k,StudioMUI:C},typeof e=="object"?e:void 0),w};let h;const O=async e=>h||await X(e),R={attachStudio:async(e,r)=>(h||(h=await O(e)),(async(t,n,i,s)=>{if(!n)throw new Error("Either a 'selector' or a 'InitializationOptions' must be provided to attach.");const a=typeof n=="string"?n:n.selector||"#sheetxl",m=typeof a=="string"?document.querySelector(a):a;if(!m)throw new Error(`Element with selector "${a}" not found.`);if(y.has(a)&&y.get(a)!==null)throw new Error(`SheetXL already attached to "${a}". Detach first if you want to re-attach.`);const c=typeof n=="object"?n:null;N(a,c?.loading);try{p(a);const o=t.ReactDOMClient.createRoot(m),g=t.React.createRef(),x=t.StudioMUI[i];let f=null;await new Promise(b=>{o.render(t.React.createElement(x,{...s,ref:d=>{d&&(f=d,b())}}))});const v={runtime:t,root:o};y.set(a,v);let E=!1;return new Proxy(f,{get(b,d,_){if(E)throw new Error(`SheetXL instance attached to "${a}" has been detached. Cannot access properties.`);return d==="update"?D=>{const $={...s,...D,ref:g};return o.render(t.React.createElement(x,$)),Promise.resolve()}:d==="detach"?()=>(y.delete(a),o.unmount(),E=!0,Promise.resolve()):Reflect.get(b,d,_)}})}catch(o){throw p(a),P(a,{message:`Failed to initialize: ${o instanceof Error?o.message:String(o)}`,...c?.error}),console.error("Failed to initialize:",o),o}})(h,e,"Studio",r)),async initialize(e){await O(e)}};exports.SheetXL=R,exports.default=R;
|