@sheetxl/react 0.6.5 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import x, { memo as ce, useState as q, useRef as h, useCallback as ie, useEffect as M } from "react";
2
2
  /**
3
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.7
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.
@@ -31,12 +31,12 @@ function de(e) {
31
31
  }
32
32
  function Ee(e, t) {
33
33
  if (e == null) return {};
34
- var r, n, o = function(c, a) {
34
+ var r, n, o = (function(c, a) {
35
35
  if (c == null) return {};
36
36
  var s, g, j = {}, v = Object.keys(c);
37
37
  for (g = 0; g < v.length; g++) s = v[g], a.indexOf(s) >= 0 || (j[s] = c[s]);
38
38
  return j;
39
- }(e, t);
39
+ })(e, t);
40
40
  if (Object.getOwnPropertySymbols) {
41
41
  var i = Object.getOwnPropertySymbols(e);
42
42
  for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
@@ -172,9 +172,9 @@ function ee(e) {
172
172
  return t = !0;
173
173
  }, r;
174
174
  }
175
- var te, re, Ce = Ie.create({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: !1, resolve: null, reject: null, monaco: null }), be = (re = 2, function(e) {
175
+ var te, re, Ce = Ie.create({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: !1, resolve: null, reject: null, monaco: null }), be = (re = 2, (function(e) {
176
176
  if (Array.isArray(e)) return e;
177
- }(te = Ce) || function(e, t) {
177
+ })(te = Ce) || (function(e, t) {
178
178
  if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
179
179
  var r = [], n = !0, o = !1, i = void 0;
180
180
  try {
@@ -190,16 +190,16 @@ var te, re, Ce = Ie.create({ config: { paths: { vs: "https://cdn.jsdelivr.net/np
190
190
  }
191
191
  return r;
192
192
  }
193
- }(te, re) || function(e, t) {
193
+ })(te, re) || (function(e, t) {
194
194
  if (e) {
195
195
  if (typeof e == "string") return fe(e, t);
196
196
  var r = Object.prototype.toString.call(e).slice(8, -1);
197
197
  return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? fe(e, t) : void 0;
198
198
  }
199
- }(te, re) || function() {
199
+ })(te, re) || (function() {
200
200
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
201
201
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
202
- }()), z = be[0], W = be[1];
202
+ })()), z = be[0], W = be[1];
203
203
  function De(e) {
204
204
  return document.body.appendChild(e);
205
205
  }
@@ -267,11 +267,11 @@ var ne = new Promise(function(e, t) {
267
267
  function R() {
268
268
  }
269
269
  function k(e, t, r, n) {
270
- return function(o, i) {
270
+ return (function(o, i) {
271
271
  return o.editor.getModel(me(o, i));
272
- }(e, n) || function(o, i, c, a) {
272
+ })(e, n) || (function(o, i, c, a) {
273
273
  return o.editor.createModel(i, c, a ? me(o, a) : void 0);
274
- }(e, t, r, n);
274
+ })(e, t, r, n);
275
275
  }
276
276
  function me(e, t) {
277
277
  return e.Uri.parse(t);
@@ -280,10 +280,10 @@ var ze = function({ original: e, modified: t, language: r, originalLanguage: n,
280
280
  let [w, A] = q(!1), [C, p] = q(!0), m = h(null), d = h(null), D = h(null), y = h(J), u = h(H), S = h(!1);
281
281
  ae(() => {
282
282
  let l = Y.init();
283
- return l.then((f) => (d.current = f) && p(!1)).catch((f) => f?.type !== "cancelation" && console.error("Monaco initialization: error:", f)), () => m.current ? function() {
283
+ return l.then((f) => (d.current = f) && p(!1)).catch((f) => f?.type !== "cancelation" && console.error("Monaco initialization: error:", f)), () => m.current ? (function() {
284
284
  let f = m.current?.getModel();
285
285
  a || f?.original?.dispose(), s || f?.modified?.dispose(), m.current?.dispose();
286
- }() : l.cancel();
286
+ })() : l.cancel();
287
287
  }), O(() => {
288
288
  if (m.current && d.current) {
289
289
  let l = m.current.getOriginalEditor(), f = k(d.current, e || "", n || r || "text", i || "");