@sheetxl/react 0.7.23-beta.1 → 0.7.23-beta.2

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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.1
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.2
3
3
  *
4
4
  * (C) 2026-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
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._header_9ooz5_7{background:var(--sxl-color-base-100,#f5f5f5);color:color-mix(in srgb, var(--sxl-color-base-content,#000) 87%, transparent);line-height:1.2;font-family:var(--sxl-doc-font-minor,"Calibri", sans-serif);align-items:end;display:flex;overflow:hidden}._header_9ooz5_7._hover_9ooz5_18{background:var(--sxl-color-base-hover,#ececec)}._header_9ooz5_7._selected_9ooz5_26{background:var(--sxl-color-base-selected,color-mix(in srgb, var(--sxl-color-primary,#1976d2) 20%, transparent));color:var(--sxl-color-base-selected-content,var(--sxl-color-primary,#1976d2))}._header_9ooz5_7._selectedAll_9ooz5_35{background:var(--sxl-color-base-emphasis,color-mix(in srgb, var(--sxl-color-primary,#1976d2) 75%, var(--sxl-color-base-100,#f5f5f5)));color:var(--sxl-color-base-emphasis-content,var(--sxl-color-primary-content,#fff))}._movable-area_r4xkr_5{& .moveable-control-box{& .dragging{opacity:0}& .moveable-control{background-color:var(--sxl-color-base-100,white);background-image:var(--sxl-image-background);border:2px solid color-mix(in srgb, var(--sxl-color-primary) 70%, black);width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px}& .moveable-line{background:var(--sxl-color-neutral,grey)}}}@media (pointer:coarse){._movable-area_r4xkr_5{& .moveable-control-box{& .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}}}._TaskPaneArea_1m8hz_5{flex-direction:row;width:100%;height:100%;display:flex;position:absolute}._TaskPaneTitle_1m8hz_13{box-sizing:border-box;border-bottom:1px solid #0003;flex-direction:row;flex:1 1 0;align-items:center;width:100%;height:100%;padding:8px 16px;font-size:1.25rem;display:flex;& .title{opacity:.87}&.focused{& .title{opacity:1}}}._TaskPaneFrame_1m8hz_36{box-sizing:border-box;border-radius:4px;outline:none;flex-direction:column;flex:1 1 0;justify-content:stretch;align-items:stretch;width:100%;min-height:0;margin-bottom:4px;display:flex;position:relative;overflow:hidden}._TaskPaneAreaFrames_1m8hz_55{flex:100%;min-width:0;min-height:0;display:flex;position:relative}._TaskPaneAreaFrameHost_1m8hz_63{flex:100%;min-width:0;min-height:0;display:flex}._TaskPaneAreaFrameHidden_1m8hz_71{display:none}._TaskPaneStrip_1m8hz_75{scrollbar-width:thin;flex-direction:column;gap:4px;min-height:0;margin-top:4px;margin-bottom:4px;margin-left:2px;display:flex;overflow:hidden auto}._TaskPaneStripItem_1m8hz_88{writing-mode:vertical-rl;text-orientation:mixed;cursor:pointer;user-select:none;opacity:.75;border:1px solid #0000;border-radius:4px;flex-direction:row;flex:none;align-items:center;min-width:0;padding:4px;transition:opacity .12s,background-color .12s;display:flex;&:hover{opacity:1;background-color:#8080801f}&.selected{opacity:1;border-color:gray;font-weight:700}}._TaskPaneStripItemIcon_1m8hz_117{transform-origin:50%;display:inline-block;transform:rotate(90deg)}._TaskPaneStripItemLabel_1m8hz_127{opacity:0;grid-template-columns:0fr;transition:grid-template-columns .2s,opacity .15s;display:grid}._TaskPaneStripItemLabelOpen_1m8hz_134{opacity:1;grid-template-columns:1fr}._TaskPaneStripItemLabelClip_1m8hz_139{white-space:nowrap;min-width:0;min-height:0;overflow:hidden}._TaskPaneStripItemLabelText_1m8hz_146{padding-top:4px;display:inline-block}:root{--sxl-cf-bar-fade:20%}._track_1426b_17{pointer-events:none;position:absolute}._bar_1426b_22{box-sizing:border-box;position:absolute;top:0;bottom:0}._axis_1426b_30{width:1px;position:absolute;top:0;bottom:0}:root{--sxl-cf-icon-bad:#ec5753;--sxl-cf-icon-light-bad:#fc9f6e;--sxl-cf-icon-neutral:#f8cd3d;--sxl-cf-icon-light-good:#b4d67e;--sxl-cf-icon-good:#8cb354;--sxl-cf-icon-pink:#ff888a;--sxl-cf-icon-gold:#ffc000;--sxl-cf-icon-gray:light-dark(#a6a6a6,#8a8a8a);--sxl-cf-icon-black:light-dark(#333,#d9d9d9)}._clip_x7ihh_36{overflow:hidden}._clip_x7ihh_36:has(._box_x7ihh_40:hover){z-index:1;overflow:visible}._box_x7ihh_40{pointer-events:auto;cursor:default;justify-content:center;align-items:flex-end;display:flex;position:absolute;bottom:0}._glyph_x7ihh_79{transition:transform .12s ease-out,filter .12s ease-out}._box_x7ihh_40:hover ._glyph_x7ihh_79{filter:drop-shadow(0 1px 2px #00000059);transform:scale(1.18)}@media (prefers-reduced-motion:reduce){._glyph_x7ihh_79{transition:none}._box_x7ihh_40:hover ._glyph_x7ihh_79{transform:none}}._dropdown_2r2ao_8{pointer-events:auto;cursor:pointer;user-select:none;color:light-dark(#444,#ccc);background:light-dark(#f4f4f4,#3a3a3a);border:1px solid light-dark(#b8b8b8,#5a5a5a);border-radius:2px;justify-content:center;align-items:center;transition:background-color .1s ease-out;display:flex;position:absolute;top:0;bottom:0}._dropdown_2r2ao_8:hover{background:light-dark(#e4e4e4,#4a4a4a)}._dropdown_2r2ao_8:active{background:light-dark(#d4d4d4,#565656)}@media (prefers-reduced-motion:reduce){._dropdown_2r2ao_8{transition:none}}._sheet-scrollbar_104cg_1{align-items:center;margin-bottom:1px;margin-left:2px}._sheetxl-sheet_3nny_5{& ._viewport-overlay_3nny_6{pointer-events:none;& *{pointer-events:initial}}& .tile{& .text-box{position:absolute}& .text-line{text-rendering:optimizespeed;vertical-align:baseline;white-space:pre;position:absolute}& .column-button{flex-direction:row;justify-content:center;align-items:center;margin-bottom:4px;display:flex;position:absolute}& .text-debug-bounds{pointer-events:none;opacity:.2;background:green;position:absolute}& .fill{position:absolute}& .pending{border:color-mix(in srgb, var(--sxl-color-primary) 70%, black) .5px;background-color:var(--sxl-color-base-200,grey);opacity:1;border-style:double;border-radius:50%;width:6px;height:6px;animation:1.5s infinite alternate _pulse_3nny_1;position:absolute;top:5px;left:4px}& .slider{opacity:0;width:130%;height:2px;animation:0s .5s forwards _fadeIn_3nny_1;position:absolute;bottom:1px;overflow-x:hidden}& .line{opacity:.3;background:color-mix(in srgb, var(--sxl-color-primary) 80%, white) .5px;width:100%;height:2px;position:absolute}& .subline{background:var(--sxl-color-primary,#4d4d4d) .5px;opacity:.9;height:3px;position:absolute}& .inc{animation:3s infinite _increase_3nny_1}}}@keyframes _pulse_3nny_1{0%{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}@keyframes _fadeIn_3nny_1{0%{opacity:0;height:0}to{opacity:1;height:2px}}@keyframes _increase_3nny_1{0%{width:30%;animation-timing-function:ease;left:-150%}to{width:30%;left:100%}}._themed_f2asj_9{--chart-icon-size:var(--icon-size,var(--icon-size-md,1rem));vertical-align:middle;width:var(--chart-icon-size);height:var(--chart-icon-size);fill:currentColor;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._themed_f2asj_9>svg{width:var(--chart-icon-size);height:var(--chart-icon-size)}._small_f2asj_36{--chart-icon-size:calc(var(--icon-size-sm,.875rem) * .875)}._medium_f2asj_37{--chart-icon-size:var(--icon-size,var(--icon-size-md,1rem))}._large_f2asj_38{--chart-icon-size:calc(var(--icon-size-lg,1.25rem) * 1.5)}._themed_f2asj_9 .current_color{fill:currentColor}._themed_f2asj_9 .background{fill:var(--sxl-color-base-100,#fff)}._themed_f2asj_9 .high_contrast{fill:var(--sxl-color-primary,#595b5e)}._themed_f2asj_9 .info{fill:var(--sxl-color-info,#3b82f6)}._themed_f2asj_9 .info_tint{fill:color-mix(in srgb, var(--sxl-color-info,#3b82f6) 80%, white)}._themed_f2asj_9 .info_shade{fill:color-mix(in srgb, var(--sxl-color-info,#3b82f6) 70%, black)}._themed_f2asj_9 .accent_tint{fill:color-mix(in srgb, var(--sxl-color-accent,#9c27b0) 80%, white)}._themed_f2asj_9 .accent_shade{fill:color-mix(in srgb, var(--sxl-color-accent,#9c27b0) 70%, black)}._editable-input_1u3oj_6{width:100%;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;background:0 0;border:none;outline:none;padding:0;line-height:1.2;position:absolute;top:50%;left:0;transform:translateY(-50%)}@keyframes _pop_10yib_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_10yib_29{0%{opacity:0}to{opacity:1}}._Wrapper_10yib_21{box-sizing:border-box;transform:translate3d(var(--translate-x,0), var(--translate-y,0), 0) scaleX(var(--scale-x,1)) scaleY(var(--scale-y,1));transform-origin:0 0;touch-action:manipulation;display:flex;&._dragOverlay_10yib_33{z-index:999}}._Item_10yib_43{box-sizing:border-box;transform-origin:50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale,1));outline:none;align-items:center;display:flex;position:relative;&:not(._withHandle_10yib_57){touch-action:manipulation}&._dragging_10yib_62:not(._dragOverlay_10yib_33){opacity:var(--dragging-opacity,0);z-index:999}&._dragOverlay_10yib_33{cursor:inherit;transform:scale(var(--scale));opacity:1;animation:.2s cubic-bezier(.18,.67,.6,1.22) _pop_10yib_1}}._Row_1kr10_1{box-sizing:border-box;display:flex}._TabStrip_3x0dp_1{&::-webkit-scrollbar{height:0;display:none}position:relative;overflow:hidden auto}._sheet-tab_1cbiv_2 input{color:var(--sxl-sheet-tab-input-color,inherit);text-align:center;font-weight:500}._ghost_1cbiv_18{border:1px solid #0000;transition:background-color .12s,border-color .12s}._sheet-tab_1cbiv_2:hover ._ghost_1cbiv_18{background-color:var(--sxl-tab-hover-bg);border-color:var(--sxl-tab-hover-border)}._add-button_1b4ig_1{cursor:pointer;color:color-mix(in srgb, var(--sxl-color-base-content) 70%, transparent);background:0 0;border:none;justify-content:center;align-items:center;margin:0 2px;padding:0;display:flex}._add-button_1b4ig_1:hover:not(:disabled){color:var(--sxl-color-primary,#1976d2)}._add-button_1b4ig_1:disabled{cursor:default;opacity:.6}._loading-panel_bjv3h_1{box-sizing:border-box;justify-content:center;align-items:center;width:100%;height:100%;display:flex}._loading-spinner_bjv3h_10{border:3px solid color-mix(in srgb, var(--sxl-color-base-content) 44%, transparent);border-top-color:var(--sxl-color-primary,#1976d2);border-radius:50%;width:28px;height:28px;animation:.9s linear infinite _sxl-spin_bjv3h_1}@keyframes _sxl-spin_bjv3h_1{to{transform:rotate(360deg)}}:root{--icon-size:1.25rem}@media (pointer:coarse){:root{--icon-size:1.75rem}}._sheetxl-workbook_r60qk_11{outline:none;flex-direction:column;flex:100%;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}._sheetxl-workbook_r60qk_11 *{font-weight:400}._sheetxl-workbook_r60qk_11 .viewport-overlay{outline:none}._sheetxl-reset_r60qk_36{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_r60qk_36 table,._sheetxl-reset_r60qk_36 thead,._sheetxl-reset_r60qk_36 tbody,._sheetxl-reset_r60qk_36 tfoot,._sheetxl-reset_r60qk_36 tr,._sheetxl-reset_r60qk_36 th,._sheetxl-reset_r60qk_36 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_r60qk_36 th,._sheetxl-reset_r60qk_36 td{display:inline}._viewport_r60qk_30>:first-child{position:relative}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.1
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.2
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -5751,7 +5751,7 @@ var Pa = Object.freeze({
5751
5751
  Ne.current = !0;
5752
5752
  let e = ae(async () => {
5753
5753
  try {
5754
- let e = await import("./E9rKWgbrtweBguqR.mjs");
5754
+ let e = await import("./B5ln1NAKVNy0DKUy.mjs");
5755
5755
  return Ne.current = !1, Pe.current = !0, w([...C]), e;
5756
5756
  } catch (e) {
5757
5757
  throw console.warn(e), ue.current?.(!1), e;
@@ -11512,21 +11512,27 @@ function yl(e, t, n) {
11512
11512
  });
11513
11513
  } });
11514
11514
  let r = async (e, r, i, a) => {
11515
- let o = r, s = t.getSelectedRange(), c = t.getSelectedCell(), l = c.getCoords();
11516
- if (!o) {
11517
- let e = t.getTables().getItems({ address: t.getSelectedCell().getCoords() })[0] ?? t.getAutoTable();
11518
- if (e) {
11519
- let t = e.getRange();
11520
- t.getIntersect(l) && (o = e.getSortAt(l.colIndex - t.getCoords().colStart));
11521
- }
11515
+ let o = r, s = t.getSelectedRange(), c = t.getSelectedCell(), l = c.getCoords(), u, d = null;
11516
+ if (o) {
11517
+ let e = o.getRange().getCoords();
11518
+ d = t.getTables().getItems({ address: {
11519
+ colIndex: e.colStart,
11520
+ rowIndex: e.rowStart
11521
+ } })[0] ?? t.getAutoTable(), d && !d.getRange().getIntersect(e) && (d = null);
11522
+ } else if (d = t.getTables().getItems({ address: t.getSelectedCell().getCoords() })[0] ?? t.getAutoTable(), d) {
11523
+ let e = d.getRange();
11524
+ e.getIntersect(l) ? o = d.getSortAt(l.colIndex - e.getCoords().colStart) : d = null;
11522
11525
  }
11523
- let u;
11524
11526
  if (o) {
11525
- let e = o;
11526
- u = (t) => {
11527
- let n = { ...t };
11528
- delete n.sorts, e.setCriteria(n);
11529
- }, s = e.getRange(), c = s.getCell();
11527
+ let e = o, t = d;
11528
+ u = (n) => {
11529
+ if (i && t) return void t.sort({
11530
+ ...n,
11531
+ description: a
11532
+ });
11533
+ let r = { ...n };
11534
+ delete r.sorts, e.setCriteria(r);
11535
+ }, c = e.getRange().getCell(), s = t ? t.getRange() : e.getRange();
11530
11536
  } else {
11531
11537
  let n = t.getSelectedRanges();
11532
11538
  if (n.getCount() > 1) throw new xe(Z("error.sort.multipleRanges"));
@@ -11545,7 +11551,7 @@ function yl(e, t, n) {
11545
11551
  }, a);
11546
11552
  };
11547
11553
  }
11548
- let d = async (e) => {
11554
+ let f = async (e) => {
11549
11555
  if (!e) return;
11550
11556
  let t = await Promise.resolve(n?.showBusy?.(Z(a)) ?? null);
11551
11557
  try {
@@ -11555,28 +11561,28 @@ function yl(e, t, n) {
11555
11561
  return;
11556
11562
  }
11557
11563
  t?.();
11558
- }, f = s.getDefaultSortCriteria(g.Axis.Row, c);
11559
- if (!f) {
11564
+ }, p = s.getDefaultSortCriteria(g.Axis.Row, c);
11565
+ if (!p) {
11560
11566
  if (i) throw new xe(Z("error.sort.invalidSelection"));
11561
11567
  return;
11562
11568
  }
11563
- if (!i) return void await d({
11564
- ...f.options,
11569
+ if (!i) return void await f({
11570
+ ...p.options,
11565
11571
  ...e
11566
11572
  });
11567
- let p = s, m = f.options;
11568
- m.hasHeader && (p = s.getIntersect(f.sortCoords)), p.select();
11569
- let h = {
11573
+ let m = s, h = p.options;
11574
+ h.hasHeader && (m = s.getIntersect(p.sortCoords)), m.select();
11575
+ let _ = {
11570
11576
  range: s,
11571
11577
  cell: c
11572
- }, _ = {
11573
- initialValue: m,
11574
- context: () => h,
11578
+ }, v = {
11579
+ initialValue: h,
11580
+ context: () => _,
11575
11581
  onInput: (e) => {
11576
- e && d(e);
11582
+ e && f(e);
11577
11583
  }
11578
11584
  };
11579
- n?.showWindow?.("sort", _);
11585
+ n?.showWindow?.("sort", v);
11580
11586
  };
11581
11587
  return e.updateCommand("sortAscending", {
11582
11588
  tags: ["noTransaction"],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.1
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.2
3
3
  *
4
4
  * (C) 2026-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/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.1
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.23-beta.2
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -5751,7 +5751,7 @@ var $l = Object.freeze({
5751
5751
  Fe.current = !0;
5752
5752
  const e = Z(async () => {
5753
5753
  try {
5754
- const e = await import("./CmChqiPvaotX5mCV.mjs");
5754
+ const e = await import("./h7d3ckrxRK_JlmsZ.mjs");
5755
5755
  return Fe.current = !1, De.current = !0, q([...x]), e;
5756
5756
  } catch (e) {
5757
5757
  throw console.warn(e), re.current?.(!1), e;
@@ -11564,20 +11564,27 @@ function Tc(e, t, o) {
11564
11564
  const n = async (e, n, r, l) => {
11565
11565
  let a = n, i = t.getSelectedRange(), s = t.getSelectedCell();
11566
11566
  const c = s.getCoords();
11567
- if (!a) {
11568
- const e = t.getTables().getItems({ address: t.getSelectedCell().getCoords() })[0] ?? t.getAutoTable();
11569
- if (e) {
11570
- const t = e.getRange();
11571
- t.getIntersect(c) && (a = e.getSortAt(c.colIndex - t.getCoords().colStart));
11572
- }
11567
+ let d, u = null;
11568
+ if (a) {
11569
+ const e = a.getRange().getCoords();
11570
+ u = t.getTables().getItems({ address: {
11571
+ colIndex: e.colStart,
11572
+ rowIndex: e.rowStart
11573
+ } })[0] ?? t.getAutoTable(), u && !u.getRange().getIntersect(e) && (u = null);
11574
+ } else if (u = t.getTables().getItems({ address: t.getSelectedCell().getCoords() })[0] ?? t.getAutoTable(), u) {
11575
+ const e = u.getRange();
11576
+ e.getIntersect(c) ? a = u.getSortAt(c.colIndex - e.getCoords().colStart) : u = null;
11573
11577
  }
11574
- let d;
11575
11578
  if (a) {
11576
- const e = a;
11577
- d = (t) => {
11578
- const o = { ...t };
11579
- delete o.sorts, e.setCriteria(o);
11580
- }, i = e.getRange(), s = i.getCell();
11579
+ const e = a, t = u;
11580
+ d = (o) => {
11581
+ if (r && t) return void t.sort({
11582
+ ...o,
11583
+ description: l
11584
+ });
11585
+ const n = { ...o };
11586
+ delete n.sorts, e.setCriteria(n);
11587
+ }, s = e.getRange().getCell(), i = t ? t.getRange() : e.getRange();
11581
11588
  } else {
11582
11589
  const o = t.getSelectedRanges();
11583
11590
  if (o.getCount() > 1) throw new fe(xe("error.sort.multipleRanges"));
@@ -11596,7 +11603,7 @@ function Tc(e, t, o) {
11596
11603
  }, l);
11597
11604
  };
11598
11605
  }
11599
- const u = async (e) => {
11606
+ const g = async (e) => {
11600
11607
  if (!e) return;
11601
11608
  const t = await Promise.resolve(o?.showBusy?.(xe(l)) ?? null);
11602
11609
  try {
@@ -11606,29 +11613,29 @@ function Tc(e, t, o) {
11606
11613
  return;
11607
11614
  }
11608
11615
  t?.();
11609
- }, g = i.getDefaultSortCriteria(f.Axis.Row, s);
11610
- if (!g) {
11616
+ }, h = i.getDefaultSortCriteria(f.Axis.Row, s);
11617
+ if (!h) {
11611
11618
  if (r) throw new fe(xe("error.sort.invalidSelection"));
11612
11619
  return;
11613
11620
  }
11614
- if (!r) return void await u({
11615
- ...g.options,
11621
+ if (!r) return void await g({
11622
+ ...h.options,
11616
11623
  ...e
11617
11624
  });
11618
- let h = i;
11619
- const m = g.options;
11620
- m.hasHeader && (h = i.getIntersect(g.sortCoords)), h.select();
11621
- const p = {
11625
+ let m = i;
11626
+ const p = h.options;
11627
+ p.hasHeader && (m = i.getIntersect(h.sortCoords)), m.select();
11628
+ const v = {
11622
11629
  range: i,
11623
11630
  cell: s
11624
- }, v = {
11625
- initialValue: m,
11626
- context: () => p,
11631
+ }, b = {
11632
+ initialValue: p,
11633
+ context: () => v,
11627
11634
  onInput: (e) => {
11628
- e && u(e);
11635
+ e && g(e);
11629
11636
  }
11630
11637
  };
11631
- o?.showWindow?.("sort", v);
11638
+ o?.showWindow?.("sort", b);
11632
11639
  };
11633
11640
  return e.updateCommand("sortAscending", {
11634
11641
  tags: ["noTransaction"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/react",
3
3
  "description": "React - React components needed to build advanced grid and spreadsheet UIs.",
4
- "version": "0.7.23-beta.1",
4
+ "version": "0.7.23-beta.2",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -48,11 +48,11 @@
48
48
  "@dnd-kit/modifiers": "^9.0.0",
49
49
  "@dnd-kit/sortable": "^10.0.0",
50
50
  "@dnd-kit/utilities": "^3.2.2",
51
- "@sheetxl/grid-react": "^0.7.23-beta.1",
52
- "@sheetxl/io": "^0.7.23-beta.1",
53
- "@sheetxl/sdk": "^0.7.23-beta.1",
54
- "@sheetxl/utils": "^0.7.23-beta.1",
55
- "@sheetxl/utils-react": "^0.7.23-beta.1",
51
+ "@sheetxl/grid-react": "^0.7.23-beta.2",
52
+ "@sheetxl/io": "^0.7.23-beta.2",
53
+ "@sheetxl/sdk": "^0.7.23-beta.2",
54
+ "@sheetxl/utils": "^0.7.23-beta.2",
55
+ "@sheetxl/utils-react": "^0.7.23-beta.2",
56
56
  "clsx": "^2.1.1",
57
57
  "react-merge-refs": "^3.0.2",
58
58
  "react-moveable": "^0.56.0",
@@ -1 +1 @@
1
- {"version":3,"file":"SheetCommands.d.ts","sourceRoot":"","sources":["../../../../src/sheet/SheetCommands.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EACzF,MAAM,gBA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