@sheetxl/scripting 0.3.1 → 0.3.3
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/LICENSE.md +11 -11
- package/README.md +309 -309
- package/browser/cjs/{DD5u0jJgnIfl_LRp.cjs → C4O8p1gaG_ffDI-C.cjs} +3 -3
- package/browser/cjs/{DwQSeolUdto6tnne.cjs → C63zqj1OgMQB9L6-.cjs} +2 -2
- package/browser/cjs/{DBkloFDekvQ92YXS.cjs → COwdptZkEeOOV8oT.cjs} +1 -1
- package/browser/cjs/{UDMd4iRmsiNDeVh4.cjs → D5P2hHB9f9EDaK9k.cjs} +1 -1
- package/browser/cjs/{B7r9o0J98FeOpECG.cjs → DOzAvO_WVd49XPfh.cjs} +2 -2
- package/browser/cjs/{BpsMQL8WKA-7RfCC.cjs → Dr0Nig6bA1OfJBwR.cjs} +4 -4
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{CnhwtcVoqbW4lNsP.mjs → BufxZm9HDBS-4-Z2.mjs} +4 -4
- package/browser/esm/{D1tRW1SWMJsVGesD.mjs → C08R_fLZVcGz1xjL.mjs} +2 -2
- package/browser/esm/{DQ3J4uNfIXgPKYoJ.mjs → CTKEvpu_O0tkwlk2.mjs} +4 -4
- package/{node/esm/DOzXoj7qdg53TENL.mjs → browser/esm/D-fiiiym4UD3T5gV.mjs} +2 -2
- package/browser/esm/{CbSvIMzV_OzOFidG.mjs → DG3QA94Uha4mVPXt.mjs} +1 -1
- package/browser/esm/{CeyaVAZTjD2qkAHf.mjs → DQbabas4EStQBtWx.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/licenses/dependencies.txt +22 -22
- package/{browser/esm/BB9Q-lDQb6Cd-_mI.mjs → node/esm/04ESCVQzFiTXB9ss.mjs} +2 -2
- package/node/esm/{4mi4tR_Wnw5gjYEb.mjs → C6_QRJKC_Nt_ERUe.mjs} +4 -4
- package/node/esm/{BtNokzpAfQ4NDORx.mjs → Cm_4SiGlvgoqqGnT.mjs} +1 -1
- package/node/esm/{D5AQfRIkPzleF5Ud.mjs → DlLDrDLtw26ZO71r.mjs} +1 -1
- package/node/esm/index.mjs +2 -2
- package/node/esm/{CHn5nxfVUD9z6idt.mjs → ouLmEocxXaiHFXlu.mjs} +3 -3
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Repository Licensing
|
|
2
|
-
|
|
3
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
4
|
-
|
|
5
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
6
|
-
|
|
7
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
8
|
-
|
|
9
|
-
For more details on commercial licensing, please visit our website:
|
|
10
|
-
|
|
11
|
-
https://www.sheetxl.com/licensing-pricing
|
|
1
|
+
# Repository Licensing
|
|
2
|
+
|
|
3
|
+
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
4
|
+
|
|
5
|
+
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
6
|
+
|
|
7
|
+
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
8
|
+
|
|
9
|
+
For more details on commercial licensing, please visit our website:
|
|
10
|
+
|
|
11
|
+
https://www.sheetxl.com/licensing-pricing
|
package/README.md
CHANGED
|
@@ -1,309 +1,309 @@
|
|
|
1
|
-
# SheetXL — The Developer-First Spreadsheet Ecosystem
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
[](https://discord.gg/NTKdwUgK9p)
|
|
6
|
-
[](https://www.npmjs.com/package/@sheetxl/studio-mui)
|
|
7
|
-
[](https://www.npmjs.com/package/@sheetxl/studio-mui)
|
|
8
|
-
|
|
9
|
-
### The full spreadsheet stack — for developers
|
|
10
|
-
|
|
11
|
-
**SheetXL is the modern spreadsheet ecosystem** — modular, embeddable, and fully scriptable.
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
Whether you're building a custom UI, adding live scripting, or integrating spreadsheet logic into your app, SheetXL gives you full control with zero platform lock-in.
|
|
16
|
-
|
|
17
|
-
### Try it now — Live Demo
|
|
18
|
-
|
|
19
|
-
👉 [See a full SheetXL demo](https://demo.sheetxl.com)
|
|
20
|
-
|
|
21
|
-
## 🚀 Getting Started
|
|
22
|
-
|
|
23
|
-
Get started in minutes with our production ready application.
|
|
24
|
-
|
|
25
|
-
### 1. Installation
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# Using npm
|
|
29
|
-
npm install @sheetxl/sdk @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled
|
|
30
|
-
|
|
31
|
-
# Using yarn
|
|
32
|
-
yarn add @sheetxl/sdk @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 2. Basic Usage
|
|
36
|
-
|
|
37
|
-
```javascript
|
|
38
|
-
import React from 'react';
|
|
39
|
-
import { Workbook } from '@sheetxl/studio-mui';
|
|
40
|
-
|
|
41
|
-
function App() {
|
|
42
|
-
// SheetXL will fill it's parent container.
|
|
43
|
-
return (
|
|
44
|
-
<div style={{ height: '600px', width: '100%' }}>
|
|
45
|
-
<Workbook />
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
For more advanced setup options, check out our full
|
|
52
|
-
[Getting Started Guides](https://www.sheetxl.com/docs/category/getting-started).
|
|
53
|
-
|
|
54
|
-
### 📚 Ecosystem Overview
|
|
55
|
-
|
|
56
|
-
The SheetXL ecosystem is modular by design. You can use only what you need — or compose it all together.
|
|
57
|
-
|
|
58
|
-
### SDK
|
|
59
|
-
|
|
60
|
-
At the core of the ecosystem is a **headless, high-performance SDK** [`@sheetxl/sdk`](https://www.npmjs.com/package/@sheetxl/sdk),
|
|
61
|
-
built to power everything from lightweight grid widgets to massive enterprise-scale calculation engines
|
|
62
|
-
|
|
63
|
-
Key features:
|
|
64
|
-
|
|
65
|
-
* **Blazing Speed:** Executes 10M+ operations per second and handles spreadsheets with 17B+ cells.
|
|
66
|
-
* **Powerful API:** A modern, vectorized, range-based API for precise, scriptable control over data — independent of any UI.
|
|
67
|
-
|
|
68
|
-
### Applications and UI Toolkits
|
|
69
|
-
|
|
70
|
-
Build UIs your way — from plug-and-play dashboards to fully custom design systems.
|
|
71
|
-
|
|
72
|
-
* **Rapid Deployment** [`@sheetxl/studio-mui`](https://www.npmjs.com/package/@sheetxl/studio-mui): A complete, open-source spreadsheet UI with Excel-grade features. Ready to ship.
|
|
73
|
-
* **Custom Interface** [`@sheetxl/react`](https://www.npmjs.com/package/@sheetxl/react): A flexible component and hook library for deep customization.
|
|
74
|
-
|
|
75
|
-
### I/O Connectors
|
|
76
|
-
|
|
77
|
-
Easily load and save workbooks in popular formats:
|
|
78
|
-
|
|
79
|
-
* `xlsx` (Excel)
|
|
80
|
-
* `csv`
|
|
81
|
-
* `parquet` (in progress)
|
|
82
|
-
* `json` (native format)
|
|
83
|
-
|
|
84
|
-
`Items marked with 💎 are part of the premium licensing.`
|
|
85
|
-
|
|
86
|
-

|
|
87
|
-
|
|
88
|
-
| Category | Module | Description | License |
|
|
89
|
-
|--------------|-------------------------|-----------------------------|---------|
|
|
90
|
-
| Core | @sheetxl/sdk 💎 | Headless spreadsheet API | Commercial |
|
|
91
|
-
| | @sheetxl/formulas | Collection of 400+ formulas | MIT |
|
|
92
|
-
| | @sheetxl/primitives | Low level types (Scalar, IRange) | MIT |
|
|
93
|
-
| | @sheetxl/scripting 💎 | Scripting engine and compiler | Commercial |
|
|
94
|
-
| IO | @sheetxl/io | Import/export (xlsx, csv, json) | MIT |
|
|
95
|
-
| Applications | @sheetxl/studio-vanilla | Framework-agnostic spreadsheet app | MIT |
|
|
96
|
-
| | @sheetxl/studio-mui | Spreadsheet app powered by React/MUI | MIT |
|
|
97
|
-
| UI Toolkits | @sheetxl/react 💎 | Spreadsheet React UI components and hooks | Commercial |
|
|
98
|
-
| | @sheetxl/grid-react 💎 | Lightweight, standalone React data grid | Commercial |
|
|
99
|
-
| Utils | @sheetxl/utils | Headless utilities (math, ranges, etc) | MIT |
|
|
100
|
-
| | @sheetxl/utils-react | React UI helpers | MIT |
|
|
101
|
-
| | @sheetxl/utils-mui | MUI UI helpers (color picker, dialogs, etc) | MIT |
|
|
102
|
-
|
|
103
|
-
## Key Features
|
|
104
|
-
|
|
105
|
-
SheetXL is built on four core pillars: extreme performance, deep Excel compatibility, unparalleled developer power, and a modern, extensible architecture.
|
|
106
|
-
|
|
107
|
-
* **Performance & Scale**
|
|
108
|
-
|
|
109
|
-
* Process 10M+ ops/second and manage massive 17B+ cell workbooks, all in-browser.
|
|
110
|
-
|
|
111
|
-
* **True Excel Fidelity**
|
|
112
|
-
|
|
113
|
-
* Go beyond basic formulas. Get the Excel-grade features your users demand, from tables and charts to cross-sheet copy/paste.
|
|
114
|
-
|
|
115
|
-
* **Unmatched Developer Power**
|
|
116
|
-
|
|
117
|
-
* With a headless core, a powerful vectorized API, and a built-in scripting engine, you have the ultimate control to build any experience.
|
|
118
|
-
|
|
119
|
-
* **Modern, Open Architecture**
|
|
120
|
-
|
|
121
|
-
* Built with TypeScript and a flexible plugin model, including a fully open-sourced MIT-licensed MUI design system.
|
|
122
|
-
|
|
123
|
-
### ✨ User Features
|
|
124
|
-
|
|
125
|
-
* 17+ billion cells (The same as Excel)
|
|
126
|
-
* 400+ Formulas
|
|
127
|
-
* Scripting Engine
|
|
128
|
-
* Full fidelity Import / Export to Excel
|
|
129
|
-
|
|
130
|
-
<details>
|
|
131
|
-
<summary><b>Click to see the full list of User Features...</b></summary>
|
|
132
|
-
|
|
133
|
-
* Formatted Copy/Paste (Compatible with Microsoft Excel and Google Sheet)
|
|
134
|
-
* Hidden Rows/Columns
|
|
135
|
-
* Frozen Rows/Columns
|
|
136
|
-
* Resizable, Auto-fit Rows/Columns
|
|
137
|
-
* Office Theme (Color Picker, Theme Selector)
|
|
138
|
-
* Cell Styles (Themes and Formatting)
|
|
139
|
-
* Preset Cell Style Selector
|
|
140
|
-
* Overflow, Word-wrap
|
|
141
|
-
* Borders
|
|
142
|
-
* Tables
|
|
143
|
-
* Drawings
|
|
144
|
-
* Multi-range selection
|
|
145
|
-
* Merged Cells
|
|
146
|
-
* Autofill
|
|
147
|
-
* Keyboard Accessible Support for all Excel shortcut keys
|
|
148
|
-
* Undo/Redo
|
|
149
|
-
* Find/Replace
|
|
150
|
-
* Sort
|
|
151
|
-
* Zoom
|
|
152
|
-
* Hyperlinks
|
|
153
|
-
* Mobile Friendly (Touch / Small screen accommodation)
|
|
154
|
-
|
|
155
|
-
</details>
|
|
156
|
-
|
|
157
|
-
### 🛠️ Developer Features
|
|
158
|
-
|
|
159
|
-
* Typescript
|
|
160
|
-
* Easy Integration
|
|
161
|
-
|
|
162
|
-
<details>
|
|
163
|
-
<summary><b>Click to see the full list of Developer Features...</b></summary>
|
|
164
|
-
* Built in scripting & Formula support.
|
|
165
|
-
* Built from the ground up using React and CSS-in-JS components.
|
|
166
|
-
* Fully functional MIT Open-sourced Material-UI Application.
|
|
167
|
-
* Headless spreadsheet API can be used without UI and on server or as library.
|
|
168
|
-
* Easily extend functions with simple registration.
|
|
169
|
-
|
|
170
|
-
</details>
|
|
171
|
-
|
|
172
|
-
## Roadmap
|
|
173
|
-
|
|
174
|
-
* Table Filtering (in progress)
|
|
175
|
-
|
|
176
|
-
<details>
|
|
177
|
-
<summary><b>🧭 Click to see the full Roadmap...</b></summary>
|
|
178
|
-
|
|
179
|
-
### 2025 Roadmap
|
|
180
|
-
|
|
181
|
-
* Conditional formatting
|
|
182
|
-
* Full Styling in Excel Export
|
|
183
|
-
* Full Charting (nearly complete)
|
|
184
|
-
* Multi-key shortcuts
|
|
185
|
-
* Pivot
|
|
186
|
-
* Sparklines
|
|
187
|
-
* Slicer/Timeline
|
|
188
|
-
* Accessibility <https://www.w3.org/TR/WCAG21/>
|
|
189
|
-
* Printing
|
|
190
|
-
|
|
191
|
-
### 2026 Roadmap
|
|
192
|
-
|
|
193
|
-
* Google Sheets Interop
|
|
194
|
-
* Collaboration
|
|
195
|
-
|
|
196
|
-
</details>
|
|
197
|
-
|
|
198
|
-
## 🤔 Why SheetXL?
|
|
199
|
-
|
|
200
|
-
We believe developers have been forced to compromise between powerful but closed spreadsheet apps and flexible but limited data grids for too long. SheetXL was built to end that compromise.
|
|
201
|
-
|
|
202
|
-
### Why not just a spreadsheet app?
|
|
203
|
-
|
|
204
|
-
Importing and Exporting data from a spreadsheet is a broken part of nearly every business workflow. Instead of
|
|
205
|
-
importing/exporting data, just import the spreadsheet.
|
|
206
|
-
|
|
207
|
-
* Reduce errors on data due to import/export copying of data.
|
|
208
|
-
* Real time integration/validation of your data.
|
|
209
|
-
* Complete control of data as your data never leaves your systems.
|
|
210
|
-
* Improved user productivity.
|
|
211
|
-
* Combine custom user enhancements with flexible data manipulation.
|
|
212
|
-
|
|
213
|
-
### Why not just a spreadsheet component?
|
|
214
|
-
|
|
215
|
-
As a Microsoft Excel user and a React developer I have always wanted a solution that combines the
|
|
216
|
-
flexibility and ease of use of Excel with the control and specific capabilities of my custom application.
|
|
217
|
-
|
|
218
|
-
I wanted my custom applications to have spreadsheet features!
|
|
219
|
-
|
|
220
|
-
Several great spreadsheet components exists but none of them have:
|
|
221
|
-
|
|
222
|
-
* Excel compatibility and features.
|
|
223
|
-
* Simple integration.
|
|
224
|
-
* Billions of cells.
|
|
225
|
-
* Comprehensive support for keyboard shortcuts (e.g. tabbing within multi-selected ranges, arrow-keys within cells).
|
|
226
|
-
* Enable advanced copy / paste between Excel/Excel Online/Google Sheets.
|
|
227
|
-
* Easily extendable libraries that use open-source and modern design patterns.
|
|
228
|
-
* Real-time integration to data providing a single source of truth; no copying data between systems using complex APIs.
|
|
229
|
-
|
|
230
|
-
### Why Now?
|
|
231
|
-
|
|
232
|
-
* TypeScript became the new “default scripting language.”
|
|
233
|
-
* Post-VBA fatigue is real.
|
|
234
|
-
* Excel is powerful but closed.
|
|
235
|
-
* Data grids are customizable but are limited.
|
|
236
|
-
* SaaS is full of spreadsheet imposters.
|
|
237
|
-
|
|
238
|
-
## The Competitive Landscape
|
|
239
|
-
|
|
240
|
-
We encourage you to explore the landscape. We're confident you'll see why we built SheetXL.
|
|
241
|
-
|
|
242
|
-
<details>
|
|
243
|
-
<summary><b>👐 Open-source Spreadsheets Components...</b></summary>
|
|
244
|
-
|
|
245
|
-
* <https://dream-num.github.io/LuckysheetDemo/> <https://github.com/dream-num/Luckysheet> (14,500 :star:)
|
|
246
|
-
* <https://github.com/jspreadsheet/ce> <https://jspreadsheet.com/v8> (6,400 :star:)
|
|
247
|
-
* <https://github.com/myliang/x-spreadsheet> <https://myliang.github.io/x-spreadsheet> (13,500 :star:)
|
|
248
|
-
* <https://github.com/nadbm/react-datasheet> <https://nadbm.github.io/react-datasheet> (5,300 :star:)
|
|
249
|
-
* <https://github.com/adazzle/react-data-grid> (6,200 :star:)
|
|
250
|
-
* <https://iddan.github.io/react-spreadsheet> (1,000 :star:)
|
|
251
|
-
|
|
252
|
-
</details>
|
|
253
|
-
|
|
254
|
-
<details>
|
|
255
|
-
<summary><b>💲 Paid Spreadsheets Components...</b></summary>
|
|
256
|
-
|
|
257
|
-
* <https://demos.devexpress.com/ASPxSpreadSheetDemos/Features/Charts.aspx>
|
|
258
|
-
* <https://www.igniteui.com/spreadsheet/overview> <https://www.infragistics.com/products/ignite-ui-jquery/grids-and-lists/spreadsheet>
|
|
259
|
-
* <https://ej2.syncfusion.com/react/demos/#/bootstrap5/spreadsheet/default>
|
|
260
|
-
* <https://webix.com/demos/spreadsheet>
|
|
261
|
-
|
|
262
|
-
</details>
|
|
263
|
-
|
|
264
|
-
<details>
|
|
265
|
-
<summary><b>💲 Paid Data-grids...</b></summary>
|
|
266
|
-
|
|
267
|
-
A data-grid is a sub-component within a spreadsheet that provides base grid-level rendering but without many of the
|
|
268
|
-
spreadsheet features (user styling, formulas, excel compatibility, etc). Features vary by product but generally
|
|
269
|
-
include sorting, filtering, grouping, and basic cell editing.
|
|
270
|
-
|
|
271
|
-
* <https://handsontable.com/demo> (18,100 :star:)
|
|
272
|
-
* <https://www.ag-grid.com/example> (10,500 :star:)
|
|
273
|
-
* <https://mui.com/x/react-data-grid> (6,100 :star:)
|
|
274
|
-
* <https://www.datagridxl.com/>
|
|
275
|
-
|
|
276
|
-
</details>
|
|
277
|
-
|
|
278
|
-
<details>
|
|
279
|
-
<summary><b>💲 SAAS Spreadsheets...</b></summary>
|
|
280
|
-
|
|
281
|
-
I tried SAAS spreadsheets but these “next-gen spreadsheets” were just mediocre web UIs pretending to be Excel.
|
|
282
|
-
|
|
283
|
-
* <https://www.equals.app>
|
|
284
|
-
* <https://www.rows.com>
|
|
285
|
-
* <https://www.quadratichq.com/>
|
|
286
|
-
* <https://sourcetable.com//>
|
|
287
|
-
|
|
288
|
-
</details>
|
|
289
|
-
|
|
290
|
-
## 🙏 Credits / 🎉 Special Thanks
|
|
291
|
-
|
|
292
|
-
* [Formula.js](https://formulajs.info) (For function references)
|
|
293
|
-
* [Fast Formula Parser](https://github.com/LesterLyu/fast-formula-parser) (For grammar support)
|
|
294
|
-
* [SheetJS](https://sheetjs.com) (For original number format parsing and Excel import/export)
|
|
295
|
-
* [Papa Parse](https://www.papaparse.com) (For CSV parsing)
|
|
296
|
-
|
|
297
|
-
## 🔗 Community & Resources
|
|
298
|
-
|
|
299
|
-
Whether you're ready to build, need help, or just want to see more examples, here's where to go next.
|
|
300
|
-
|
|
301
|
-
* 📘 **[Developer Docs](https://www.sheetxl.com/docs)** - The official guides and tutorials.
|
|
302
|
-
* 🔌 **[API Reference](https://api.sheetxl.com)** - Detailed documentation for all packages.
|
|
303
|
-
* 🌐 **[Live Demo Gallery](https://www.sheetxl.com/demos)** - A showcase of interactive examples.
|
|
304
|
-
* ✨ **[Storybook](https://storybook.sheetxl.com)** - Explore and test individual UI components.
|
|
305
|
-
* 💬 **[Join our Discord Community](https://discord.gg/NTKdwUgK9p)** - Get help and connect with the team.
|
|
306
|
-
* ⭐ **[Star us on GitHub](https://github.com/sheetxl)** - If you find SheetXL useful, we'd appreciate a star!
|
|
307
|
-
* 🌐 **[Website](https://www.sheetxl.com)** - The official website for SheetXL.
|
|
308
|
-
|
|
309
|
-
---
|
|
1
|
+
# SheetXL — The Developer-First Spreadsheet Ecosystem
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
[](https://discord.gg/NTKdwUgK9p)
|
|
6
|
+
[](https://www.npmjs.com/package/@sheetxl/studio-mui)
|
|
7
|
+
[](https://www.npmjs.com/package/@sheetxl/studio-mui)
|
|
8
|
+
|
|
9
|
+
### The full spreadsheet stack — for developers
|
|
10
|
+
|
|
11
|
+
**SheetXL is the modern spreadsheet ecosystem** — modular, embeddable, and fully scriptable.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
Whether you're building a custom UI, adding live scripting, or integrating spreadsheet logic into your app, SheetXL gives you full control with zero platform lock-in.
|
|
16
|
+
|
|
17
|
+
### Try it now — Live Demo
|
|
18
|
+
|
|
19
|
+
👉 [See a full SheetXL demo](https://demo.sheetxl.com)
|
|
20
|
+
|
|
21
|
+
## 🚀 Getting Started
|
|
22
|
+
|
|
23
|
+
Get started in minutes with our production ready application.
|
|
24
|
+
|
|
25
|
+
### 1. Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Using npm
|
|
29
|
+
npm install @sheetxl/sdk @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled
|
|
30
|
+
|
|
31
|
+
# Using yarn
|
|
32
|
+
yarn add @sheetxl/sdk @sheetxl/studio-mui @mui/material @emotion/react @emotion/styled
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Basic Usage
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
import React from 'react';
|
|
39
|
+
import { Workbook } from '@sheetxl/studio-mui';
|
|
40
|
+
|
|
41
|
+
function App() {
|
|
42
|
+
// SheetXL will fill it's parent container.
|
|
43
|
+
return (
|
|
44
|
+
<div style={{ height: '600px', width: '100%' }}>
|
|
45
|
+
<Workbook />
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For more advanced setup options, check out our full
|
|
52
|
+
[Getting Started Guides](https://www.sheetxl.com/docs/category/getting-started).
|
|
53
|
+
|
|
54
|
+
### 📚 Ecosystem Overview
|
|
55
|
+
|
|
56
|
+
The SheetXL ecosystem is modular by design. You can use only what you need — or compose it all together.
|
|
57
|
+
|
|
58
|
+
### SDK
|
|
59
|
+
|
|
60
|
+
At the core of the ecosystem is a **headless, high-performance SDK** [`@sheetxl/sdk`](https://www.npmjs.com/package/@sheetxl/sdk),
|
|
61
|
+
built to power everything from lightweight grid widgets to massive enterprise-scale calculation engines
|
|
62
|
+
|
|
63
|
+
Key features:
|
|
64
|
+
|
|
65
|
+
* **Blazing Speed:** Executes 10M+ operations per second and handles spreadsheets with 17B+ cells.
|
|
66
|
+
* **Powerful API:** A modern, vectorized, range-based API for precise, scriptable control over data — independent of any UI.
|
|
67
|
+
|
|
68
|
+
### Applications and UI Toolkits
|
|
69
|
+
|
|
70
|
+
Build UIs your way — from plug-and-play dashboards to fully custom design systems.
|
|
71
|
+
|
|
72
|
+
* **Rapid Deployment** [`@sheetxl/studio-mui`](https://www.npmjs.com/package/@sheetxl/studio-mui): A complete, open-source spreadsheet UI with Excel-grade features. Ready to ship.
|
|
73
|
+
* **Custom Interface** [`@sheetxl/react`](https://www.npmjs.com/package/@sheetxl/react): A flexible component and hook library for deep customization.
|
|
74
|
+
|
|
75
|
+
### I/O Connectors
|
|
76
|
+
|
|
77
|
+
Easily load and save workbooks in popular formats:
|
|
78
|
+
|
|
79
|
+
* `xlsx` (Excel)
|
|
80
|
+
* `csv`
|
|
81
|
+
* `parquet` (in progress)
|
|
82
|
+
* `json` (native format)
|
|
83
|
+
|
|
84
|
+
`Items marked with 💎 are part of the premium licensing.`
|
|
85
|
+
|
|
86
|
+

|
|
87
|
+
|
|
88
|
+
| Category | Module | Description | License |
|
|
89
|
+
|--------------|-------------------------|-----------------------------|---------|
|
|
90
|
+
| Core | @sheetxl/sdk 💎 | Headless spreadsheet API | Commercial |
|
|
91
|
+
| | @sheetxl/formulas | Collection of 400+ formulas | MIT |
|
|
92
|
+
| | @sheetxl/primitives | Low level types (Scalar, IRange) | MIT |
|
|
93
|
+
| | @sheetxl/scripting 💎 | Scripting engine and compiler | Commercial |
|
|
94
|
+
| IO | @sheetxl/io | Import/export (xlsx, csv, json) | MIT |
|
|
95
|
+
| Applications | @sheetxl/studio-vanilla | Framework-agnostic spreadsheet app | MIT |
|
|
96
|
+
| | @sheetxl/studio-mui | Spreadsheet app powered by React/MUI | MIT |
|
|
97
|
+
| UI Toolkits | @sheetxl/react 💎 | Spreadsheet React UI components and hooks | Commercial |
|
|
98
|
+
| | @sheetxl/grid-react 💎 | Lightweight, standalone React data grid | Commercial |
|
|
99
|
+
| Utils | @sheetxl/utils | Headless utilities (math, ranges, etc) | MIT |
|
|
100
|
+
| | @sheetxl/utils-react | React UI helpers | MIT |
|
|
101
|
+
| | @sheetxl/utils-mui | MUI UI helpers (color picker, dialogs, etc) | MIT |
|
|
102
|
+
|
|
103
|
+
## Key Features
|
|
104
|
+
|
|
105
|
+
SheetXL is built on four core pillars: extreme performance, deep Excel compatibility, unparalleled developer power, and a modern, extensible architecture.
|
|
106
|
+
|
|
107
|
+
* **Performance & Scale**
|
|
108
|
+
|
|
109
|
+
* Process 10M+ ops/second and manage massive 17B+ cell workbooks, all in-browser.
|
|
110
|
+
|
|
111
|
+
* **True Excel Fidelity**
|
|
112
|
+
|
|
113
|
+
* Go beyond basic formulas. Get the Excel-grade features your users demand, from tables and charts to cross-sheet copy/paste.
|
|
114
|
+
|
|
115
|
+
* **Unmatched Developer Power**
|
|
116
|
+
|
|
117
|
+
* With a headless core, a powerful vectorized API, and a built-in scripting engine, you have the ultimate control to build any experience.
|
|
118
|
+
|
|
119
|
+
* **Modern, Open Architecture**
|
|
120
|
+
|
|
121
|
+
* Built with TypeScript and a flexible plugin model, including a fully open-sourced MIT-licensed MUI design system.
|
|
122
|
+
|
|
123
|
+
### ✨ User Features
|
|
124
|
+
|
|
125
|
+
* 17+ billion cells (The same as Excel)
|
|
126
|
+
* 400+ Formulas
|
|
127
|
+
* Scripting Engine
|
|
128
|
+
* Full fidelity Import / Export to Excel
|
|
129
|
+
|
|
130
|
+
<details>
|
|
131
|
+
<summary><b>Click to see the full list of User Features...</b></summary>
|
|
132
|
+
|
|
133
|
+
* Formatted Copy/Paste (Compatible with Microsoft Excel and Google Sheet)
|
|
134
|
+
* Hidden Rows/Columns
|
|
135
|
+
* Frozen Rows/Columns
|
|
136
|
+
* Resizable, Auto-fit Rows/Columns
|
|
137
|
+
* Office Theme (Color Picker, Theme Selector)
|
|
138
|
+
* Cell Styles (Themes and Formatting)
|
|
139
|
+
* Preset Cell Style Selector
|
|
140
|
+
* Overflow, Word-wrap
|
|
141
|
+
* Borders
|
|
142
|
+
* Tables
|
|
143
|
+
* Drawings
|
|
144
|
+
* Multi-range selection
|
|
145
|
+
* Merged Cells
|
|
146
|
+
* Autofill
|
|
147
|
+
* Keyboard Accessible Support for all Excel shortcut keys
|
|
148
|
+
* Undo/Redo
|
|
149
|
+
* Find/Replace
|
|
150
|
+
* Sort
|
|
151
|
+
* Zoom
|
|
152
|
+
* Hyperlinks
|
|
153
|
+
* Mobile Friendly (Touch / Small screen accommodation)
|
|
154
|
+
|
|
155
|
+
</details>
|
|
156
|
+
|
|
157
|
+
### 🛠️ Developer Features
|
|
158
|
+
|
|
159
|
+
* Typescript
|
|
160
|
+
* Easy Integration
|
|
161
|
+
|
|
162
|
+
<details>
|
|
163
|
+
<summary><b>Click to see the full list of Developer Features...</b></summary>
|
|
164
|
+
* Built in scripting & Formula support.
|
|
165
|
+
* Built from the ground up using React and CSS-in-JS components.
|
|
166
|
+
* Fully functional MIT Open-sourced Material-UI Application.
|
|
167
|
+
* Headless spreadsheet API can be used without UI and on server or as library.
|
|
168
|
+
* Easily extend functions with simple registration.
|
|
169
|
+
|
|
170
|
+
</details>
|
|
171
|
+
|
|
172
|
+
## Roadmap
|
|
173
|
+
|
|
174
|
+
* Table Filtering (in progress)
|
|
175
|
+
|
|
176
|
+
<details>
|
|
177
|
+
<summary><b>🧭 Click to see the full Roadmap...</b></summary>
|
|
178
|
+
|
|
179
|
+
### 2025 Roadmap
|
|
180
|
+
|
|
181
|
+
* Conditional formatting
|
|
182
|
+
* Full Styling in Excel Export
|
|
183
|
+
* Full Charting (nearly complete)
|
|
184
|
+
* Multi-key shortcuts
|
|
185
|
+
* Pivot
|
|
186
|
+
* Sparklines
|
|
187
|
+
* Slicer/Timeline
|
|
188
|
+
* Accessibility <https://www.w3.org/TR/WCAG21/>
|
|
189
|
+
* Printing
|
|
190
|
+
|
|
191
|
+
### 2026 Roadmap
|
|
192
|
+
|
|
193
|
+
* Google Sheets Interop
|
|
194
|
+
* Collaboration
|
|
195
|
+
|
|
196
|
+
</details>
|
|
197
|
+
|
|
198
|
+
## 🤔 Why SheetXL?
|
|
199
|
+
|
|
200
|
+
We believe developers have been forced to compromise between powerful but closed spreadsheet apps and flexible but limited data grids for too long. SheetXL was built to end that compromise.
|
|
201
|
+
|
|
202
|
+
### Why not just a spreadsheet app?
|
|
203
|
+
|
|
204
|
+
Importing and Exporting data from a spreadsheet is a broken part of nearly every business workflow. Instead of
|
|
205
|
+
importing/exporting data, just import the spreadsheet.
|
|
206
|
+
|
|
207
|
+
* Reduce errors on data due to import/export copying of data.
|
|
208
|
+
* Real time integration/validation of your data.
|
|
209
|
+
* Complete control of data as your data never leaves your systems.
|
|
210
|
+
* Improved user productivity.
|
|
211
|
+
* Combine custom user enhancements with flexible data manipulation.
|
|
212
|
+
|
|
213
|
+
### Why not just a spreadsheet component?
|
|
214
|
+
|
|
215
|
+
As a Microsoft Excel user and a React developer I have always wanted a solution that combines the
|
|
216
|
+
flexibility and ease of use of Excel with the control and specific capabilities of my custom application.
|
|
217
|
+
|
|
218
|
+
I wanted my custom applications to have spreadsheet features!
|
|
219
|
+
|
|
220
|
+
Several great spreadsheet components exists but none of them have:
|
|
221
|
+
|
|
222
|
+
* Excel compatibility and features.
|
|
223
|
+
* Simple integration.
|
|
224
|
+
* Billions of cells.
|
|
225
|
+
* Comprehensive support for keyboard shortcuts (e.g. tabbing within multi-selected ranges, arrow-keys within cells).
|
|
226
|
+
* Enable advanced copy / paste between Excel/Excel Online/Google Sheets.
|
|
227
|
+
* Easily extendable libraries that use open-source and modern design patterns.
|
|
228
|
+
* Real-time integration to data providing a single source of truth; no copying data between systems using complex APIs.
|
|
229
|
+
|
|
230
|
+
### Why Now?
|
|
231
|
+
|
|
232
|
+
* TypeScript became the new “default scripting language.”
|
|
233
|
+
* Post-VBA fatigue is real.
|
|
234
|
+
* Excel is powerful but closed.
|
|
235
|
+
* Data grids are customizable but are limited.
|
|
236
|
+
* SaaS is full of spreadsheet imposters.
|
|
237
|
+
|
|
238
|
+
## The Competitive Landscape
|
|
239
|
+
|
|
240
|
+
We encourage you to explore the landscape. We're confident you'll see why we built SheetXL.
|
|
241
|
+
|
|
242
|
+
<details>
|
|
243
|
+
<summary><b>👐 Open-source Spreadsheets Components...</b></summary>
|
|
244
|
+
|
|
245
|
+
* <https://dream-num.github.io/LuckysheetDemo/> <https://github.com/dream-num/Luckysheet> (14,500 :star:)
|
|
246
|
+
* <https://github.com/jspreadsheet/ce> <https://jspreadsheet.com/v8> (6,400 :star:)
|
|
247
|
+
* <https://github.com/myliang/x-spreadsheet> <https://myliang.github.io/x-spreadsheet> (13,500 :star:)
|
|
248
|
+
* <https://github.com/nadbm/react-datasheet> <https://nadbm.github.io/react-datasheet> (5,300 :star:)
|
|
249
|
+
* <https://github.com/adazzle/react-data-grid> (6,200 :star:)
|
|
250
|
+
* <https://iddan.github.io/react-spreadsheet> (1,000 :star:)
|
|
251
|
+
|
|
252
|
+
</details>
|
|
253
|
+
|
|
254
|
+
<details>
|
|
255
|
+
<summary><b>💲 Paid Spreadsheets Components...</b></summary>
|
|
256
|
+
|
|
257
|
+
* <https://demos.devexpress.com/ASPxSpreadSheetDemos/Features/Charts.aspx>
|
|
258
|
+
* <https://www.igniteui.com/spreadsheet/overview> <https://www.infragistics.com/products/ignite-ui-jquery/grids-and-lists/spreadsheet>
|
|
259
|
+
* <https://ej2.syncfusion.com/react/demos/#/bootstrap5/spreadsheet/default>
|
|
260
|
+
* <https://webix.com/demos/spreadsheet>
|
|
261
|
+
|
|
262
|
+
</details>
|
|
263
|
+
|
|
264
|
+
<details>
|
|
265
|
+
<summary><b>💲 Paid Data-grids...</b></summary>
|
|
266
|
+
|
|
267
|
+
A data-grid is a sub-component within a spreadsheet that provides base grid-level rendering but without many of the
|
|
268
|
+
spreadsheet features (user styling, formulas, excel compatibility, etc). Features vary by product but generally
|
|
269
|
+
include sorting, filtering, grouping, and basic cell editing.
|
|
270
|
+
|
|
271
|
+
* <https://handsontable.com/demo> (18,100 :star:)
|
|
272
|
+
* <https://www.ag-grid.com/example> (10,500 :star:)
|
|
273
|
+
* <https://mui.com/x/react-data-grid> (6,100 :star:)
|
|
274
|
+
* <https://www.datagridxl.com/>
|
|
275
|
+
|
|
276
|
+
</details>
|
|
277
|
+
|
|
278
|
+
<details>
|
|
279
|
+
<summary><b>💲 SAAS Spreadsheets...</b></summary>
|
|
280
|
+
|
|
281
|
+
I tried SAAS spreadsheets but these “next-gen spreadsheets” were just mediocre web UIs pretending to be Excel.
|
|
282
|
+
|
|
283
|
+
* <https://www.equals.app>
|
|
284
|
+
* <https://www.rows.com>
|
|
285
|
+
* <https://www.quadratichq.com/>
|
|
286
|
+
* <https://sourcetable.com//>
|
|
287
|
+
|
|
288
|
+
</details>
|
|
289
|
+
|
|
290
|
+
## 🙏 Credits / 🎉 Special Thanks
|
|
291
|
+
|
|
292
|
+
* [Formula.js](https://formulajs.info) (For function references)
|
|
293
|
+
* [Fast Formula Parser](https://github.com/LesterLyu/fast-formula-parser) (For grammar support)
|
|
294
|
+
* [SheetJS](https://sheetjs.com) (For original number format parsing and Excel import/export)
|
|
295
|
+
* [Papa Parse](https://www.papaparse.com) (For CSV parsing)
|
|
296
|
+
|
|
297
|
+
## 🔗 Community & Resources
|
|
298
|
+
|
|
299
|
+
Whether you're ready to build, need help, or just want to see more examples, here's where to go next.
|
|
300
|
+
|
|
301
|
+
* 📘 **[Developer Docs](https://www.sheetxl.com/docs)** - The official guides and tutorials.
|
|
302
|
+
* 🔌 **[API Reference](https://api.sheetxl.com)** - Detailed documentation for all packages.
|
|
303
|
+
* 🌐 **[Live Demo Gallery](https://www.sheetxl.com/demos)** - A showcase of interactive examples.
|
|
304
|
+
* ✨ **[Storybook](https://storybook.sheetxl.com)** - Explore and test individual UI components.
|
|
305
|
+
* 💬 **[Join our Discord Community](https://discord.gg/NTKdwUgK9p)** - Get help and connect with the team.
|
|
306
|
+
* ⭐ **[Star us on GitHub](https://github.com/sheetxl)** - If you find SheetXL useful, we'd appreciate a star!
|
|
307
|
+
* 🌐 **[Website](https://www.sheetxl.com)** - The official website for SheetXL.
|
|
308
|
+
|
|
309
|
+
---
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./C63zqj1OgMQB9L6-.cjs"),ie="n",ge="s",we="b",Ce="e",ae="z";var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,o,L,q){super(L,q),this._label=o,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class C extends a{constructor(n,o){super(e.Code.Parse,e.Label.Parse,n,o)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=C;class p extends a{constructor(n,o){super(e.Code.Null,e.Label.Null,n,o)}static{this.code=e.Code.Null}}e.Null=p;class F extends a{constructor(n,o){super(e.Code.Div0,e.Label.Div0,n,o)}static{this.code=e.Code.Div0}}e.Div0=F;class R extends a{constructor(n,o){super(e.Code.Value,e.Label.Value,n,o)}static{this.code=e.Code.Value}}e.Value=R;class s extends a{constructor(n,o){super(e.Code.Ref,e.Label.Ref,n,o)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,o){super(e.Code.Name,e.Label.Name,n,o)}static{this.code=e.Code.Name}}e.Name=K;class k extends a{constructor(n,o){super(e.Code.Num,e.Label.Num,n,o)}static{this.code=e.Code.Num}}e.Num=k;class b extends a{constructor(n,o){super(e.Code.NA,e.Label.NA,n,o)}static{this.code=e.Code.NA}}e.NA=b;class N extends a{constructor(n,o){super(e.Code.GettingData,e.Label.GettingData,n,o)}static{this.code=e.Code.GettingData}}e.GettingData=N;class d extends a{constructor(n,o){super(e.Code.Spill,e.Label.Spill,n,o)}static{this.code=e.Code.Spill}}e.Spill=d;class S extends a{constructor(n,o){super(e.Code.Connect,e.Label.Connect,n,o)}static{this.code=e.Code.Connect}}e.Connect=S;class G extends a{constructor(n,o){super(e.Code.Blocked,e.Label.Blocked,n,o)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,o){super(e.Code.Unknown,e.Label.Unknown,n,o)}static{this.code=e.Code.Unknown}}e.Unknown=_;class B extends a{constructor(n,o){super(e.Code.Field,e.Label.Field,n,o)}static{this.code=e.Code.Field}}e.Field=B;class W extends a{constructor(n,o){super(e.Code.Calc,e.Label.Calc,n,o)}static{this.code=e.Code.Calc}}e.Calc=W;class I extends a{constructor(n,o){super(e.Code.Busy,e.Label.Busy,n,o)}static{this.code=e.Code.Busy}}e.Busy=I;class A extends a{constructor(n,o){super(e.Code.Python,e.Label.Python,n,o)}static{this.code=e.Code.Python}}e.Python=A;class X extends a{constructor(n,o){super(e.Code.Timeout,e.Label.Timeout,n,o)}static{this.code=e.Code.Timeout}}e.Timeout=X})(r||(r={}));const y={};y[r.Code.Parse]=r.Parse,y[r.Code.Null]=r.Null,y[r.Code.Div0]=r.Div0,y[r.Code.Value]=r.Value,y[r.Code.Ref]=r.Ref,y[r.Code.Name]=r.Name,y[r.Code.Num]=r.Num,y[r.Code.NA]=r.NA,y[r.Code.GettingData]=r.GettingData,y[r.Code.Spill]=r.Spill,y[r.Code.Connect]=r.Connect,y[r.Code.Blocked]=r.Blocked,y[r.Code.Unknown]=r.Unknown,y[r.Code.Field]=r.Field,y[r.Code.Calc]=r.Calc,y[r.Code.Busy]=r.Busy,y[r.Code.Python]=r.Python,y[r.Code.Timeout]=r.Timeout;const ce=new Map,ne=new Map,de=new Map,ue=new Map,le=Object.keys(y);for(let e=0;e<le.length;e++){const a=le[e],C=y[a];de.set(r.Label[a],C),ue.set(r.Code[a],C);const p=new C;ce.set(p.getLabel(),p),ne.set(p.getCode(),p)}const xe=ne.get(r.Code.Unknown);var u;(u=r||(r={})).BuiltIn={Parse:new u.Parse,Null:new u.Null,Div0:new u.Div0,Value:new u.Value,Ref:new u.Ref,Name:new u.Name,Num:new u.Num,NA:new u.NA,GettingData:new u.GettingData,Spill:new u.Spill,Connect:new u.Connect,Blocked:new u.Blocked,Unknown:new u.Unknown,Field:new u.Field,Calc:new u.Calc,Busy:new u.Busy,Python:new u.Python,Timeout:new u.Timeout},u.getBuiltInByLabel=e=>ce.get(e),u.newTypedError=(e,a,C)=>{let p;return p=typeof e=="string"?de.get(e):ue.get(e),p||(p=u.Unknown),new p(a,C)},u.getBuiltInById=e=>ne.get(e)||xe;let z=null,Y=null;const be={compilerOptions:{target:"esnext"}};async function Te(e,a,C="/script.js",p="__SHEETXL"){try{const F=await async function(){if(z)return z;if(Y){if(await Y,!z)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return z}let b,N;Y=new Promise((d,S)=>{b=d,N=S});try{const{initialize:d}=await Promise.resolve().then(()=>require("./D5P2hHB9f9EDaK9k.cjs"));return z=await d(),b(),z}catch(d){throw console.error("Failed to import or initialize esbuild:",d),Y=null,N(d),d}}(),R="@sheetxl/primitives",s=`
|
|
7
7
|
export const FormulaContext = globalThis.${p}?.FormulaContext;
|
|
8
8
|
export const ScalarType = globalThis.${p}?.ScalarType;
|
|
9
9
|
export const Observable = globalThis.${p}?.Observable;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
interface FirstTest {
|
|
16
16
|
isTrue?: boolean;
|
|
17
17
|
}
|
|
18
|
-
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ee=(e,a)=>{Array.from(a.keys()).forEach(C=>{const p=a.get(C);a.set(`${e}.${C}`,p)})},Ne=new Map([["Scalar","*"],["FormulaError.Known",Ce],["Date","Date"],["JSON","JSON"]]),Se=new Map([]),te="SheetXL";ee(te,pe),ee(te,me),ee(te,Se);const Ee=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let H=null;async function Le(){if(H)return H;try{return await(await Promise.resolve().then(()=>require("./
|
|
18
|
+
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ee=(e,a)=>{Array.from(a.keys()).forEach(C=>{const p=a.get(C);a.set(`${e}.${C}`,p)})},Ne=new Map([["Scalar","*"],["FormulaError.Known",Ce],["Date","Date"],["JSON","JSON"]]),Se=new Map([]),te="SheetXL";ee(te,pe),ee(te,me),ee(te,Se);const Ee=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let H=null;async function Le(){if(H)return H;try{return await(await Promise.resolve().then(()=>require("./COwdptZkEeOOV8oT.cjs"))).initialize()}catch(e){throw H=null,e}finally{H=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const C=(e.disableBundle||e.declarationsOnly)??!1,p=[ke(),Le()],F=await Promise.all(p),R=F[0],s=F[1];let K="",k=null;const b=[],N={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},d="script",S=`${d}.ts`,G="lib.d.ts",_="global.d.ts",B={[S]:a,[G]:`
|
|
19
19
|
/**
|
|
20
20
|
* Represents the completion of an asynchronous operation
|
|
21
21
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -10,4 +10,4 @@ Please use Chrome or Edge if external copy and paste is required.`,k=`You do not
|
|
|
10
10
|
All copy and paste operations will be limited to the browser tab.`,jt={Safari:`The Safari browser does not support advanced copy and paste.
|
|
11
11
|
Copy and paste will be limited to within the browser tab.
|
|
12
12
|
|
|
13
|
-
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=Ot(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${_t+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!(e?.source??null))return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./
|
|
13
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=Ot(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${_t+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!(e?.source??null))return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./DOzAvO_WVd49XPfh.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}});exports.ScriptingUtils=Vt,exports.Yt=xt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./Dr0Nig6bA1OfJBwR.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.3
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -223,7 +223,7 @@ var v;
|
|
|
223
223
|
return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
|
|
224
224
|
}, v.getBuiltInById = (e) => Te.get(e) || Et;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.3
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1498,4 +1498,4 @@ var or = /* @__PURE__ */ Object.freeze({
|
|
|
1498
1498
|
__proto__: null,
|
|
1499
1499
|
initialize: nr
|
|
1500
1500
|
});
|
|
1501
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1501
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./C4O8p1gaG_ffDI-C.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./C63zqj1OgMQB9L6-.cjs");exports.ScriptingUtils=t.ScriptingUtils;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -47,7 +47,7 @@ class u {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const s = `/**
|
|
50
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.3
|
|
51
51
|
*
|
|
52
52
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
53
53
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -266,7 +266,7 @@ var v;
|
|
|
266
266
|
return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
|
|
267
267
|
}, v.getBuiltInById = (e) => Te.get(e) || Et;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.3
|
|
270
270
|
*
|
|
271
271
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
272
272
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1568,7 +1568,7 @@ async function p() {
|
|
|
1568
1568
|
return await l();
|
|
1569
1569
|
}
|
|
1570
1570
|
const l = async () => {
|
|
1571
|
-
const { compileModule: e } = await import("./
|
|
1571
|
+
const { compileModule: e } = await import("./CTKEvpu_O0tkwlk2.mjs"), n = new u((t) => e(t));
|
|
1572
1572
|
return await n.start(), n;
|
|
1573
1573
|
};
|
|
1574
1574
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -809,7 +809,7 @@ const Vt = Object.freeze({ compileTypescript: async function(e) {
|
|
|
809
809
|
if (q && $t.deepEqual(q, e)) return ht;
|
|
810
810
|
const t = await async function() {
|
|
811
811
|
if (M) return M;
|
|
812
|
-
const { TypeScriptCompiler: r } = await import("./
|
|
812
|
+
const { TypeScriptCompiler: r } = await import("./D-fiiiym4UD3T5gV.mjs");
|
|
813
813
|
return M = new r(), M;
|
|
814
814
|
}(), n = await t.compileModule(e);
|
|
815
815
|
return ht = n, q = e, n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as he } from "./
|
|
1
|
+
import { Y as he } from "./C08R_fLZVcGz1xjL.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -233,7 +233,7 @@ async function Te(e, a, C = "/script.js", p = "__SHEETXL") {
|
|
|
233
233
|
b = d, N = S;
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
const { initialize: d } = await import("./
|
|
236
|
+
const { initialize: d } = await import("./DG3QA94Uha4mVPXt.mjs");
|
|
237
237
|
return I = await d(), b(), I;
|
|
238
238
|
} catch (d) {
|
|
239
239
|
throw console.error("Failed to import or initialize esbuild:", d), Y = null, N(d), d;
|
|
@@ -282,7 +282,7 @@ let H = null;
|
|
|
282
282
|
async function Le() {
|
|
283
283
|
if (H) return H;
|
|
284
284
|
try {
|
|
285
|
-
return await (await import("./
|
|
285
|
+
return await (await import("./DQbabas4EStQBtWx.mjs")).initialize();
|
|
286
286
|
} catch (e) {
|
|
287
287
|
throw H = null, e;
|
|
288
288
|
} finally {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -10,7 +10,7 @@ class o {
|
|
|
10
10
|
}
|
|
11
11
|
async getWorkerWrapper() {
|
|
12
12
|
if (this.workerWrapper) return this.workerWrapper;
|
|
13
|
-
const { createCompilerWorker: r } = await import("./
|
|
13
|
+
const { createCompilerWorker: r } = await import("./BufxZm9HDBS-4-Z2.mjs");
|
|
14
14
|
return this.workerWrapper = await r(), this.workerWrapper;
|
|
15
15
|
}
|
|
16
16
|
async compileModule(r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as t } from "./
|
|
1
|
+
import { S as t } from "./C08R_fLZVcGz1xjL.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
Name: @sheetxl/primitives
|
|
2
|
-
Version: 0.3.
|
|
2
|
+
Version: 0.3.3
|
|
3
3
|
License: SEE LICENSE IN <LICENSE>
|
|
4
4
|
Private: false
|
|
5
5
|
Description: Primitives - Base types for SheetXL functions.
|
|
6
6
|
License Copyright:
|
|
7
7
|
===
|
|
8
8
|
|
|
9
|
-
# Repository Licensing
|
|
10
|
-
|
|
11
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
12
|
-
|
|
13
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
14
|
-
|
|
15
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
16
|
-
|
|
17
|
-
For more details on commercial licensing, please visit our website:
|
|
18
|
-
|
|
9
|
+
# Repository Licensing
|
|
10
|
+
|
|
11
|
+
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
12
|
+
|
|
13
|
+
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
14
|
+
|
|
15
|
+
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
16
|
+
|
|
17
|
+
For more details on commercial licensing, please visit our website:
|
|
18
|
+
|
|
19
19
|
https://www.sheetxl.com/licensing-pricing
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
Name: @sheetxl/utils
|
|
24
|
-
Version: 0.3.
|
|
24
|
+
Version: 0.3.3
|
|
25
25
|
License: SEE LICENSE IN <LICENSE>
|
|
26
26
|
Private: false
|
|
27
27
|
Description: Utils - Utilities used by most SheetXL components.
|
|
28
28
|
License Copyright:
|
|
29
29
|
===
|
|
30
30
|
|
|
31
|
-
# Repository Licensing
|
|
32
|
-
|
|
33
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
34
|
-
|
|
35
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
36
|
-
|
|
37
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
38
|
-
|
|
39
|
-
For more details on commercial licensing, please visit our website:
|
|
40
|
-
|
|
31
|
+
# Repository Licensing
|
|
32
|
+
|
|
33
|
+
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
34
|
+
|
|
35
|
+
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
36
|
+
|
|
37
|
+
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
38
|
+
|
|
39
|
+
For more details on commercial licensing, please visit our website:
|
|
40
|
+
|
|
41
41
|
https://www.sheetxl.com/licensing-pricing
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -10,7 +10,7 @@ class o {
|
|
|
10
10
|
}
|
|
11
11
|
async getWorkerWrapper() {
|
|
12
12
|
if (this.workerWrapper) return this.workerWrapper;
|
|
13
|
-
const { createCompilerWorker: r } = await import("./
|
|
13
|
+
const { createCompilerWorker: r } = await import("./C6_QRJKC_Nt_ERUe.mjs");
|
|
14
14
|
return this.workerWrapper = await r(), this.workerWrapper;
|
|
15
15
|
}
|
|
16
16
|
async compileModule(r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -47,7 +47,7 @@ class u {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const s = `/**
|
|
50
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.3
|
|
51
51
|
*
|
|
52
52
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
53
53
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -266,7 +266,7 @@ var v;
|
|
|
266
266
|
return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
|
|
267
267
|
}, v.getBuiltInById = (e) => Te.get(e) || Et;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.3
|
|
270
270
|
*
|
|
271
271
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
272
272
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1568,7 +1568,7 @@ async function p() {
|
|
|
1568
1568
|
return await l();
|
|
1569
1569
|
}
|
|
1570
1570
|
const l = async () => {
|
|
1571
|
-
const { compileModule: e } = await import("./
|
|
1571
|
+
const { compileModule: e } = await import("./ouLmEocxXaiHFXlu.mjs"), n = new u((t) => e(t));
|
|
1572
1572
|
return await n.start(), n;
|
|
1573
1573
|
};
|
|
1574
1574
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as s from "esbuild-wasm";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
2
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
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.
|
|
@@ -811,7 +811,7 @@ const Vt = Object.freeze({ compileTypescript: async function(e) {
|
|
|
811
811
|
if (q && $t.deepEqual(q, e)) return ht;
|
|
812
812
|
const t = await async function() {
|
|
813
813
|
if (M) return M;
|
|
814
|
-
const { TypeScriptCompiler: r } = await import("./
|
|
814
|
+
const { TypeScriptCompiler: r } = await import("./04ESCVQzFiTXB9ss.mjs");
|
|
815
815
|
return M = new r(), M;
|
|
816
816
|
}(), n = await t.compileModule(e);
|
|
817
817
|
return ht = n, q = e, n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { e as he } from "./index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.
|
|
3
|
+
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.3
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -233,7 +233,7 @@ async function Te(e, a, C = "/script.js", p = "__SHEETXL") {
|
|
|
233
233
|
b = d, N = S;
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
const { initialize: d } = await import("./
|
|
236
|
+
const { initialize: d } = await import("./Cm_4SiGlvgoqqGnT.mjs");
|
|
237
237
|
return I = await d(), b(), I;
|
|
238
238
|
} catch (d) {
|
|
239
239
|
throw console.error("Failed to import or initialize esbuild:", d), H = null, N(d), d;
|
|
@@ -282,7 +282,7 @@ let W = null;
|
|
|
282
282
|
async function Le() {
|
|
283
283
|
if (W) return W;
|
|
284
284
|
try {
|
|
285
|
-
return await (await import("./
|
|
285
|
+
return await (await import("./DlLDrDLtw26ZO71r.mjs")).initialize();
|
|
286
286
|
} catch (e) {
|
|
287
287
|
throw W = null, e;
|
|
288
288
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/scripting",
|
|
3
3
|
"description": "Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"typescript"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sheetxl/primitives": "^0.3.
|
|
32
|
-
"@sheetxl/utils": "^0.3.
|
|
31
|
+
"@sheetxl/primitives": "^0.3.3",
|
|
32
|
+
"@sheetxl/utils": "^0.3.3",
|
|
33
33
|
"path-browserify": "^1.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|