@gridsheet/react-dev 3.4.0 → 3.4.1

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/dist/index.js CHANGED
@@ -3380,7 +3380,7 @@ class ee {
3380
3380
  if (!ke.is(this._stripped))
3381
3381
  return this._stripped;
3382
3382
  let i = this;
3383
- for (; i instanceof ee; )
3383
+ for (; ee.is(i); )
3384
3384
  i = (s = Ot({ sheet: i, raise: e, at: t })[0]) == null ? void 0 : s[0];
3385
3385
  return this._stripped = i, this._stripped;
3386
3386
  }
@@ -3769,7 +3769,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3769
3769
  throw e.finishSolvedCache(t, c), c;
3770
3770
  return c;
3771
3771
  }
3772
- return re.is(h) ? h = e.spill(t, h.matrix) : e.finishSolvedCache(t, h), i === "RESOLVED" && h instanceof ee && (h = Ee({ value: h, raise: s, at: r })), Q.is(h) && e.finishSolvedCache(t, h), h;
3772
+ return re.is(h) ? h = e.spill(t, h.matrix) : e.finishSolvedCache(t, h), i === "RESOLVED" && ee.is(h) && (h = Ee({ value: h, raise: s, at: r })), Q.is(h) && e.finishSolvedCache(t, h), h;
3773
3773
  }, Ot = ({ sheet: o, raise: e = !0, at: t }) => {
3774
3774
  const s = o.area;
3775
3775
  return o._toValueMatrix({ area: s, at: t, resolution: "SYSTEM" }).map((i, r) => {
@@ -3795,7 +3795,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3795
3795
  }
3796
3796
  });
3797
3797
  });
3798
- }, Ee = ({ value: o, at: e, raise: t = !0 }) => o instanceof ee ? o.strip({ raise: t, at: e }) : o, mt = new Re("asyncCacheMiss"), xi = (o) => o.some((e) => Q.is(e)), Gt = (o) => (o == null ? void 0 : o.__gsType) === "Sheet", Be = (o, e) => {
3798
+ }, Ee = ({ value: o, at: e, raise: t = !0 }) => ee.is(o) ? o.strip({ raise: t, at: e }) : o, mt = new Re("asyncCacheMiss"), xi = (o) => o.some((e) => Q.is(e)), Gt = (o) => (o == null ? void 0 : o.__gsType) === "Sheet", Be = (o, e) => {
3799
3799
  for (const t of o)
3800
3800
  if (Q.is(t) || Array.isArray(t) && Be(t, e) || re.is(t) && Be(t.matrix, e) || Gt(t) && Be(t._toValueMatrix({ at: e }), e))
3801
3801
  return !0;
@@ -3874,7 +3874,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3874
3874
  return t;
3875
3875
  if (!o)
3876
3876
  return 0;
3877
- if (o instanceof ee) {
3877
+ if (ee.is(o)) {
3878
3878
  const r = Ee({ value: o });
3879
3879
  return V(r, { alternative: t });
3880
3880
  }
@@ -3898,7 +3898,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3898
3898
  return "0";
3899
3899
  if (!o)
3900
3900
  return "";
3901
- if (o instanceof ee) {
3901
+ if (ee.is(o)) {
3902
3902
  const e = Ee({ value: o });
3903
3903
  return he(e);
3904
3904
  }
@@ -3916,7 +3916,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3916
3916
  return t;
3917
3917
  if (o === null)
3918
3918
  return !1;
3919
- if (o instanceof ee) {
3919
+ if (ee.is(o)) {
3920
3920
  const i = Ee({ value: o });
3921
3921
  return je(i, e);
3922
3922
  }
@@ -3931,7 +3931,7 @@ const pt = ({ value: o, sheet: e, point: t, raise: s = !0, resolution: i = "RESO
3931
3931
  }
3932
3932
  return !!o;
3933
3933
  }, Ie = (o, e, t) => {
3934
- if (o instanceof ee) {
3934
+ if (ee.is(o)) {
3935
3935
  const s = o.solve({ at: t });
3936
3936
  for (let i = 0; i < s.length; i++)
3937
3937
  for (let r = 0; r < s[i].length; r++)
@@ -4741,7 +4741,7 @@ class Ar extends U {
4741
4741
  ], this.category = "logical", this.broadcastDisabled = !0;
4742
4742
  }
4743
4743
  main(e) {
4744
- return re.is(e) ? e : e instanceof ee ? e._toValueMatrix() : Array.isArray(e) ? e : [[e]];
4744
+ return re.is(e) ? e : ee.is(e) ? e._toValueMatrix() : Array.isArray(e) ? e : [[e]];
4745
4745
  }
4746
4746
  }
4747
4747
  const $r = {