@fileverse-dev/dsheet 4.1.10 → 4.1.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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as A, D as I, E as L, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as k, N as z, O, P } from "./index-St21sGrj.js";
1
+ import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as A, D as I, E as L, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as k, N as z, O, P } from "./index-Ex9wf8Hz.js";
2
2
  import { cy as G, cz as K, cA as U, cG as X, bs as _, e as j, f as B, l as H, a as q, di as J, dj as N, bb as Y, dk as Z, dl as Q, dq as W, dr as $, dt as ee, I as ae, dI as se, ef as oe, b4 as te } from "./executeStringFunction-DMMvpc-I.js";
3
3
  import { FLVURL as le } from "@fileverse-dev/formulajs";
4
4
  import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
@@ -59,5 +59,26 @@ export declare function isBrowserZoomShortcut(e: KeyboardEvent): boolean;
59
59
  * Win: Ctrl+/. Mac/AZERTY: Option+/ or Option+: (WY). US fallback: Cmd+/.
60
60
  */
61
61
  export declare function isOpenShortcutsModalShortcut(e: KeyboardEvent): boolean;
62
+ /**
63
+ * The Latin letter a chord resolves to, layout-aware.
64
+ *
65
+ * `code` is the *US physical slot*, so it is wrong on non-QWERTY layouts:
66
+ * on AZERTY the key labelled Z is `KeyW` (and `KeyZ` types "w"); on QWERTZ
67
+ * `KeyZ` types "y" and `KeyY` types "z". `key` carries the character the
68
+ * user actually typed, so prefer it, and fall back to the physical slot only
69
+ * for layouts whose `key` is not a Latin letter (Cyrillic, Greek, …).
70
+ */
71
+ export declare function letterForShortcut(e: KeyboardEvent): string | null;
72
+ /**
73
+ * Undo / redo — Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z (redo), Ctrl/Cmd+Y (redo).
74
+ * Returns which action the chord means, or null. AZERTY/QWERTZ safe.
75
+ */
76
+ export declare function matchUndoRedoShortcut(e: KeyboardEvent): 'undo' | 'redo' | null;
77
+ /** Cmd/Ctrl+Z — undo (AZERTY/QWERTZ safe). */
78
+ export declare function isUndoShortcut(e: KeyboardEvent): boolean;
79
+ /** Cmd/Ctrl+Shift+Z or Ctrl/Cmd+Y — redo (AZERTY/QWERTZ safe). */
80
+ export declare function isRedoShortcut(e: KeyboardEvent): boolean;
81
+ /** True for any undo/redo chord, regardless of direction. */
82
+ export declare function isUndoRedoShortcut(e: KeyboardEvent): boolean;
62
83
  /** Label which engine shortcut would match (best-effort; for host debug tooling). */
63
84
  export declare function describeMatchedShortcut(e: KeyboardEvent): string | null;
@@ -1,10 +1,10 @@
1
1
  import * as BZ from "yjs";
2
- import { i as Yl, a as ul, s as eZ, r as hl, y as Il, b as pl, m as Rl } from "./index-St21sGrj.js";
2
+ import { i as Yl, a as ul, s as eZ, r as hl, y as Il, b as pl, m as Rl } from "./index-Ex9wf8Hz.js";
3
3
  import { g as sl } from "./executeStringFunction-DMMvpc-I.js";
4
4
  import { Workbook as al } from "exceljs";
5
5
  import Kl from "luckyexcel";
6
- import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-ClX3ufS1.js";
7
- import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-ZTTkqk7o.js";
6
+ import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-CKjiWoz2.js";
7
+ import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-s7Y2sgfW.js";
8
8
  import { toast as fZ } from "@fileverse/ui";
9
9
  var Zl = { exports: {} };
10
10
  (function(c) {
@@ -1,5 +1,5 @@
1
1
  import { i as w } from "./executeStringFunction-DMMvpc-I.js";
2
- import { J as x } from "./xlsx-hyperlink-inline-ClX3ufS1.js";
2
+ import { J as x } from "./xlsx-hyperlink-inline-CKjiWoz2.js";
3
3
  function g(o) {
4
4
  return o.startsWith("_xlnm.");
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { utils as S, write as nt } from "xlsx-js-style";
2
2
  import { Workbook as pt } from "exceljs";
3
3
  import { toast as rt } from "@fileverse/ui";
4
- import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-ClX3ufS1.js";
4
+ import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-CKjiWoz2.js";
5
5
  import { b as gt } from "./executeStringFunction-DMMvpc-I.js";
6
- import { e as bt } from "./index-St21sGrj.js";
6
+ import { e as bt } from "./index-Ex9wf8Hz.js";
7
7
  const xt = {
8
8
  1: "thin",
9
9
  2: "hair",
@@ -854,7 +854,7 @@ const Z = (t) => {
854
854
  O
855
855
  );
856
856
  });
857
- const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-ZTTkqk7o.js");
857
+ const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-s7Y2sgfW.js");
858
858
  ct(
859
859
  B,
860
860
  (k = (C = (s = t.current).getWorkbookContext) == null ? void 0 : C.call(s)) == null ? void 0 : k.definedNames,
@@ -1,5 +1,5 @@
1
1
  import { g as Rt, c as yt } from "./executeStringFunction-DMMvpc-I.js";
2
- import { c as wt } from "./index-St21sGrj.js";
2
+ import { c as wt } from "./index-Ex9wf8Hz.js";
3
3
  function jt(J, nt) {
4
4
  const g = J.getImages();
5
5
  if (!g.length) return [];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "4.1.10",
5
+ "version": "4.1.11",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fileverse/fileverse-dsheets.git"