@sheetxl/utils-react 0.8.0-beta.1 → 0.8.0-beta.11

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.
Files changed (65) hide show
  1. package/browser/esm/{CKvLZo8keTi4hdRr.mjs → 3j_xcvx6bFQsulwT.mjs} +1 -1
  2. package/browser/esm/{BIb3Fag4wDs4Gro1.mjs → DmyXYEmBOLQfUC3S.mjs} +19 -18
  3. package/browser/esm/IqQLdwJk1VA8hpDI.mjs +100 -0
  4. package/browser/esm/index.mjs +2572 -2057
  5. package/licenses/dependencies.txt +1 -39
  6. package/node/esm/{TlOKuBGsozMYzzBC.mjs → B7T-c_PH7rtDuiLF.mjs} +1 -1
  7. package/node/esm/DHJ2cDJlYQ1rBfYF.mjs +100 -0
  8. package/node/esm/index.mjs +2294 -1788
  9. package/package.json +8 -11
  10. package/types/src/animation/useAnimatedMeasure.d.ts +2 -3
  11. package/types/src/command/CommandCatalog.d.ts +2 -2
  12. package/types/src/command/CommandScope.d.ts +23 -2
  13. package/types/src/command/index.d.ts +1 -0
  14. package/types/src/command/tags.d.ts +19 -0
  15. package/types/src/components/index.d.ts +0 -1
  16. package/types/src/float/FloatPanel.d.ts +20 -1
  17. package/types/src/float/FloatPopper.d.ts +84 -10
  18. package/types/src/float/index.d.ts +0 -1
  19. package/types/src/hooks/LanguageState.d.ts +1 -1
  20. package/types/src/hooks/index.d.ts +4 -0
  21. package/types/src/hooks/useCallbackRef.d.ts +19 -6
  22. package/types/src/hooks/useEditMode.d.ts +24 -4
  23. package/types/src/hooks/useImperativeElement.d.ts +1 -1
  24. package/types/src/hooks/useInputModality.d.ts +26 -0
  25. package/types/src/hooks/useLocationSearch.d.ts +9 -0
  26. package/types/src/hooks/useMeasure.d.ts +32 -0
  27. package/types/src/hooks/useNotifier.d.ts +32 -36
  28. package/types/src/hooks/useSynchronizedPointerHandler.d.ts +3 -7
  29. package/types/src/hooks/useVisualViewportRect.d.ts +39 -0
  30. package/types/src/icons/packs/Base.json.d.ts +3406 -0
  31. package/types/src/index.d.ts +2 -0
  32. package/types/src/lazy/index.d.ts +2 -0
  33. package/types/src/lazy/lazyComponent.d.ts +43 -0
  34. package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
  35. package/types/src/persistence/Types.d.ts +18 -4
  36. package/types/src/persistence/_Context.d.ts +3 -2
  37. package/types/src/persistence/index.d.ts +2 -2
  38. package/types/src/persistence/usePersistentState.d.ts +39 -0
  39. package/types/src/scroll/AxisViewport.d.ts +6 -2
  40. package/types/src/scroll/IScrollPane.d.ts +10 -1
  41. package/types/src/scroll/Utils.d.ts +1 -0
  42. package/types/src/scroll/Viewport.d.ts +50 -2
  43. package/types/src/scroll/touchOwner.d.ts +19 -0
  44. package/types/src/scroll/useWheelScroll.d.ts +15 -2
  45. package/types/src/scroll/wheelOwner.d.ts +18 -0
  46. package/types/src/scroller/Scroller.d.ts +44 -5
  47. package/types/src/theme/TokenTheme.d.ts +14 -5
  48. package/types/src/theme/index.d.ts +1 -0
  49. package/types/src/theme/zIndex.d.ts +24 -0
  50. package/types/src/utils/index.d.ts +2 -0
  51. package/types/src/utils/measureUIText.d.ts +24 -0
  52. package/types/src/utils/textSelectionDrag.d.ts +52 -0
  53. package/types/src/virtualKeyboard/VirtualKeyboard.d.ts +122 -0
  54. package/types/src/virtualKeyboard/index.d.ts +2 -0
  55. package/browser/cjs/D02anPwyfYZxlZmG.cjs +0 -1
  56. package/browser/cjs/DZSvmqU8nRas1uz6.cjs +0 -1
  57. package/browser/cjs/Dc-AA0ooFLVdAhbT.cjs +0 -1
  58. package/browser/cjs/index.cjs +0 -5
  59. package/browser/esm/BT6JG-bEtM8ou0Xr.mjs +0 -2179
  60. package/node/esm/CdJ0O_khlsS4DqVj.mjs +0 -2179
  61. package/types/src/components/ITooltip.d.ts +0 -38
  62. package/types/src/float/FloatTooltip.d.ts +0 -22
  63. package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
  64. package/types/src/persistence/usePersistenceState.d.ts +0 -33
  65. package/types/src/utils/PinchZoom.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.1
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.11
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/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.1
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.11
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.
@@ -277,7 +277,7 @@ function d() {
277
277
  };
278
278
  }
279
279
  var f = d();
280
- f.register("base", () => import("./BT6JG-bEtM8ou0Xr.mjs")), f.register("cf", () => import("./CKvLZo8keTi4hdRr.mjs"));
280
+ f.register("base", () => import("./IqQLdwJk1VA8hpDI.mjs")), f.register("cf", () => import("./3j_xcvx6bFQsulwT.mjs"));
281
281
  var p = (e) => a("svg", {
282
282
  ...e,
283
283
  children: a("path", {})
@@ -288,24 +288,25 @@ var p = (e) => a("svg", {
288
288
  let { iconKey: o, packKey: s, className: c, style: l, role: u, title: d, size: h, ariaHidden: g, propsSource: _, children: v, ...y } = t, [b, x] = i(null);
289
289
  n(() => {
290
290
  let t = !0, n = s, r = o;
291
- if (!r) {
291
+ if (r) {
292
+ if (r.includes(":")) {
293
+ let [e, t] = r.split(":");
294
+ n = e, r = t;
295
+ }
296
+ return f.resolve(r, { packKey: n }).then((e) => {
297
+ t && x(e);
298
+ }).catch(() => {}), () => {
299
+ t = !1;
300
+ };
301
+ }
302
+ {
292
303
  let t = f.getPack(n);
293
304
  x({
294
305
  glyph: t ? { svg: e.EmptyArray } : void 0,
295
306
  pack: t ?? void 0,
296
307
  packKey: n ?? f.getActive()
297
308
  });
298
- return;
299
309
  }
300
- if (r.includes(":")) {
301
- let [e, t] = r.split(":");
302
- n = e, r = t;
303
- }
304
- return f.resolve(r, { packKey: n }).then((e) => {
305
- t && x(e);
306
- }), () => {
307
- t = !1;
308
- };
309
310
  }, [o, s]);
310
311
  let S = b?.pack, C = b?.glyph, w = b?.packKey, T = C ? C.svg : void 0, E = C && !T ? C.url : void 0, D = !C || T || E ? void 0 : C.emoji, O = h == null ? void 0 : typeof h == "number" ? `${h}px` : h, k = r(() => [
311
312
  m.Icon,
@@ -332,8 +333,7 @@ var p = (e) => a("svg", {
332
333
  alt: d ?? ""
333
334
  }));
334
335
  if (C && "react" in C) {
335
- let e = C.react;
336
- return N(a(e, {
336
+ let e = C.react, t = {
337
337
  className: k,
338
338
  style: A,
339
339
  role: j,
@@ -341,7 +341,8 @@ var p = (e) => a("svg", {
341
341
  title: d,
342
342
  ...y,
343
343
  ..._
344
- }));
344
+ };
345
+ return N(a(e, { ...t }));
345
346
  }
346
347
  let P = { viewBox: T?.viewBox ?? S?.meta.defaultViewBox ?? "0 0 24 24" };
347
348
  if (typeof T == "function") return N(T(P) ?? a(p, { ...P }));
@@ -375,11 +376,11 @@ function g(e) {
375
376
  o,
376
377
  s,
377
378
  n
378
- ]);
379
+ ]), m = r(() => t ? d + " walking" : d, [t, d]);
379
380
  return a(h, {
380
381
  iconKey: c,
381
382
  packKey: l,
382
- className: r(() => t ? d + " walking" : d, [t, d]),
383
+ className: m,
383
384
  style: {
384
385
  ...u,
385
386
  ...p