@fileverse-dev/dsheet 4.1.22 → 4.1.23

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 (31) hide show
  1. package/dist/editor/components/editor-workbook.d.ts +6 -0
  2. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +3 -1
  3. package/dist/editor/components/sidebar/sidebar-offsets.d.ts +12 -0
  4. package/dist/editor/components/sidebar/sidebar-offsets.test.d.ts +1 -0
  5. package/dist/editor/types.d.ts +13 -0
  6. package/dist/editor/utils/activate-sheet-for-link.d.ts +3 -0
  7. package/dist/editor/utils/active-sheet-keeper.d.ts +21 -0
  8. package/dist/editor/utils/editor-handle.d.ts +1 -1
  9. package/dist/editor/utils/navigate-to-sheet.d.ts +22 -0
  10. package/dist/{es-S4GKlN-t.js → es-BlDQ6jCL.js} +1 -0
  11. package/dist/{executeStringFunction-CQ922vEp.js → executeStringFunction-ZHYCWIpK.js} +5 -4
  12. package/dist/formula.js +1 -1
  13. package/dist/{hi-DMMTDTxZ.js → hi-CP0ta0Yk.js} +1 -0
  14. package/dist/{index-DhQTrCQd.js → index-8_qnUyMl.js} +14853 -14693
  15. package/dist/index.es.js +2 -2
  16. package/dist/sheet-engine/core/locale/en.d.ts +1 -0
  17. package/dist/sheet-engine/core/locale/es.d.ts +1 -0
  18. package/dist/sheet-engine/core/locale/hi.d.ts +1 -0
  19. package/dist/sheet-engine/core/locale/zh.d.ts +1 -0
  20. package/dist/sheet-engine/core/locale/zh_tw.d.ts +1 -0
  21. package/dist/sheet-engine/core/settings.d.ts +4 -0
  22. package/dist/sheet-engine/react/components/ContextMenu/sheet-tab-menu-items.d.ts +15 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{template-data-list-BYOIK_Nd.js → template-data-list-apgmwRAT.js} +18 -10
  25. package/dist/{use-xlsx-import-impl-xphBNZu3.js → use-xlsx-import-impl-cgDH14_y.js} +4 -4
  26. package/dist/{xlsx-defined-names-3g5n40BA.js → xlsx-defined-names-DCK7aKIO.js} +2 -2
  27. package/dist/{xlsx-export-impl-DXyQpmMi.js → xlsx-export-impl-BHDWz0aW.js} +4 -4
  28. package/dist/{xlsx-hyperlink-inline-Cl9CbP5N.js → xlsx-hyperlink-inline-T4GsXFm7.js} +2 -2
  29. package/dist/{zh-Bv4KIDiJ.js → zh-CmOCFd5t.js} +1 -0
  30. package/dist/{zh_tw-BdpsK45h.js → zh_tw-BqyRw1gX.js} +1 -0
  31. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
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, B as f, 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-DhQTrCQd.js";
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 J, dj as N, dk as q, bb as Y, dl as Z, dm as Q, dr as W, ds as $, du as ee, I as ae, dJ as se, eg as oe, b4 as te } from "./executeStringFunction-CQ922vEp.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, B as f, 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-8_qnUyMl.js";
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 J, dj as N, dk as q, bb as Y, dl as Z, dm as Q, dr as W, ds as $, du as ee, I as ae, dJ as se, eg as oe, b4 as te } from "./executeStringFunction-ZHYCWIpK.js";
3
3
  import { FLVURL as le } from "@fileverse-dev/formulajs";
4
4
  import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
5
5
  export {
@@ -548,6 +548,7 @@ declare const _default: {
548
548
  cancelText: string;
549
549
  chooseText: string;
550
550
  focus: string;
551
+ copyLink: string;
551
552
  tipNameRepeat: string;
552
553
  noMoreSheet: string;
553
554
  confirmDelete: string;
@@ -700,6 +700,7 @@ declare const _default: {
700
700
  cancelText: string;
701
701
  chooseText: string;
702
702
  focus: string;
703
+ copyLink: string;
703
704
  tipNameRepeat: string;
704
705
  noMoreSheet: string;
705
706
  confirmDelete: string;
@@ -575,6 +575,7 @@ declare const _default: {
575
575
  cancelText: string;
576
576
  chooseText: string;
577
577
  focus: string;
578
+ copyLink: string;
578
579
  tipNameRepeat: string;
579
580
  noMoreSheet: string;
580
581
  confirmDelete: string;
@@ -593,6 +593,7 @@ declare const _default: {
593
593
  cancelText: string;
594
594
  chooseText: string;
595
595
  focus: string;
596
+ copyLink: string;
596
597
  tipNameRepeat: string;
597
598
  noMoreSheet: string;
598
599
  confirmDelete: string;
@@ -738,6 +738,7 @@ declare const _default: {
738
738
  cancelText: string;
739
739
  chooseText: string;
740
740
  focus: string;
741
+ copyLink: string;
741
742
  tipNameRepeat: string;
742
743
  noMoreSheet: string;
743
744
  confirmDelete: string;
@@ -83,6 +83,10 @@ export type Hooks = {
83
83
  afterDeleteSheet?: (id: string) => void;
84
84
  beforeUpdateSheetName?: (id: string, oldName: string, newName: string) => boolean;
85
85
  afterUpdateSheetName?: (id: string, oldName: string, newName: string) => void;
86
+ onCopySheetLink?: (args: {
87
+ sheetId: string;
88
+ sheetName: string;
89
+ }) => void;
86
90
  afterImagesChange?: () => void;
87
91
  afterIframesChange?: () => void;
88
92
  afterFrozenChange?: () => void;
@@ -0,0 +1,15 @@
1
+ export declare const COPY_SHEET_LINK_ITEM = "copy-link";
2
+ type ReadOnlyFlags = {
3
+ isFlvReadOnly?: boolean;
4
+ allowEdit?: boolean;
5
+ };
6
+ type CopyLinkHooks = {
7
+ onCopySheetLink?: unknown;
8
+ };
9
+ export declare function isSheetTabReadOnly(ctx: ReadOnlyFlags): boolean;
10
+ export declare function canOpenSheetTabMenu(ctx: ReadOnlyFlags, hooks: CopyLinkHooks): boolean;
11
+ export declare function getVisibleSheetTabMenuItems(items: string[], opts: {
12
+ readOnly: boolean;
13
+ hasCopyLink: boolean;
14
+ }): string[];
15
+ export {};