@fileverse-dev/dsheet 2.1.1 → 2.1.2-dropIn-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.
Files changed (49) hide show
  1. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +19 -0
  2. package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
  3. package/dist/editor/components/comments/comment-input.d.ts +4 -0
  4. package/dist/editor/components/comments/comment-item.d.ts +4 -0
  5. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
  6. package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
  7. package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
  8. package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
  9. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
  10. package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
  11. package/dist/editor/components/editor-workbook.d.ts +4 -9
  12. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
  13. package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
  14. package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
  15. package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
  16. package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
  17. package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
  18. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
  19. package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
  20. package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
  21. package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
  22. package/dist/editor/components/sidebars/function/types.d.ts +24 -0
  23. package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
  24. package/dist/editor/components/sidebars/function-content.d.ts +8 -0
  25. package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
  26. package/dist/editor/components/sidebars/templates.d.ts +9 -0
  27. package/dist/editor/contexts/editor-context.d.ts +2 -2
  28. package/dist/editor/dsheet-editor.d.ts +1 -1
  29. package/dist/editor/types/comments.d.ts +128 -0
  30. package/dist/editor/types.d.ts +19 -5
  31. package/dist/editor/utils/api-keys-local-storage.d.ts +17 -0
  32. package/dist/editor/utils/cell-comment-marker.d.ts +29 -0
  33. package/dist/editor/utils/comment-key-utils.d.ts +7 -0
  34. package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
  35. package/dist/{executeStringFunction-tdvZ0KTi.js → executeStringFunction-CGbxAbbw.js} +436 -423
  36. package/dist/formula.js +1 -1
  37. package/dist/{index-D_IxoHMJ.js → index-5D_WjAlq.js} +22073 -19526
  38. package/dist/index.d.ts +8 -1
  39. package/dist/index.es.js +55 -48
  40. package/dist/sheet-engine/core/events/keyboard-shortcut-utils.d.ts +2 -0
  41. package/dist/sheet-engine/core/index.d.ts +2 -1
  42. package/dist/sheet-engine/core/locale/en.d.ts +13 -0
  43. package/dist/sheet-engine/core/modules/index.d.ts +2 -0
  44. package/dist/sheet-engine/core/modules/removeDuplicates.d.ts +29 -0
  45. package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{use-xlsx-import-impl-AI2QDZt1.js → use-xlsx-import-impl-Dr0Yvje-.js} +2 -2
  48. package/dist/{xlsx-export-impl-Buly1jC6.js → xlsx-export-impl-D5W76OCB.js} +2 -2
  49. package/package.json +3 -2
@@ -0,0 +1,26 @@
1
+ import { RefObject } from 'react';
2
+ import { SheetEditorRef } from '../types/comments';
3
+
4
+ type SheetEditorRefLike = RefObject<SheetEditorRef | null> | null | undefined;
5
+ type WorkbookSheetLike = {
6
+ id?: string;
7
+ order?: number;
8
+ name?: string;
9
+ };
10
+ export declare function isWorkbookReady(ref: SheetEditorRefLike): boolean;
11
+ export declare function getCurrentSheetSafe(ref: SheetEditorRefLike): WorkbookSheetLike | null;
12
+ export declare function getCurrentSheetOrderSafe(ref: SheetEditorRefLike): number;
13
+ export declare function getCurrentSheetIdSafe(ref: SheetEditorRefLike): string;
14
+ export declare function getAllSheetsSafe(ref: SheetEditorRefLike): WorkbookSheetLike[];
15
+ export declare function buildSheetOrderNameMap(ref: SheetEditorRefLike): Map<number, string>;
16
+ /**
17
+ * Returns a map keyed by BOTH the sheet's immutable id AND its numeric
18
+ * order-as-string so that both new (UUID) and legacy (order) comment keys
19
+ * resolve to the correct display name in a single lookup.
20
+ */
21
+ export declare function buildSheetIdNameMap(ref: SheetEditorRefLike): Map<string, string>;
22
+ export declare function findSheetById(ref: SheetEditorRefLike, id: string): WorkbookSheetLike | null;
23
+ export declare function activateSheetById(ref: SheetEditorRefLike, id: string): boolean;
24
+ export declare function findSheetByOrder(ref: SheetEditorRefLike, order: number): WorkbookSheetLike | null;
25
+ export declare function activateSheetByOrder(ref: SheetEditorRefLike, order: number): boolean;
26
+ export {};