@fileverse-dev/dsheet 2.1.5 → 3.0.1-formula-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 (132) hide show
  1. package/dist/{constants-yStXQJiK.js → constants-Cdz6oSCq.js} +5 -7
  2. package/dist/constants.js +1 -1
  3. package/dist/editor/components/api-key-modal/api-key-input.d.ts +5 -0
  4. package/dist/editor/components/api-key-modal/api-key-modal.d.ts +7 -0
  5. package/dist/editor/components/api-key-modal/rate-limit-info.d.ts +4 -0
  6. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +19 -0
  7. package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
  8. package/dist/editor/components/comments/comment-input.d.ts +4 -0
  9. package/dist/editor/components/comments/comment-item.d.ts +4 -0
  10. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
  11. package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
  12. package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
  13. package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
  14. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
  15. package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
  16. package/dist/editor/components/editor-workbook-sync.d.ts +1 -1
  17. package/dist/editor/components/editor-workbook.d.ts +11 -17
  18. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
  19. package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
  20. package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
  21. package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +20 -0
  22. package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
  23. package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
  24. package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
  25. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
  26. package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
  27. package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
  28. package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
  29. package/dist/editor/components/sidebars/function/types.d.ts +24 -0
  30. package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
  31. package/dist/editor/components/sidebars/function-content.d.ts +8 -0
  32. package/dist/editor/components/sidebars/named-ranges.d.ts +2 -0
  33. package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
  34. package/dist/editor/components/sidebars/templates.d.ts +9 -0
  35. package/dist/editor/components/smart-contract/error-toast.d.ts +11 -0
  36. package/dist/editor/components/smart-contract/modal/abi-input-section.d.ts +11 -0
  37. package/dist/editor/components/smart-contract/modal/contract-name-section.d.ts +13 -0
  38. package/dist/editor/components/smart-contract/modal/file-upload-section.d.ts +12 -0
  39. package/dist/editor/components/smart-contract/modal/import-section.d.ts +8 -0
  40. package/dist/editor/components/smart-contract/modal/modal-header.d.ts +17 -0
  41. package/dist/editor/components/smart-contract/smart-contract-list-item.d.ts +8 -0
  42. package/dist/editor/components/smart-contract/smart-contract-modal-ui.d.ts +33 -0
  43. package/dist/editor/components/smart-contract/smart-contract-modal.d.ts +12 -0
  44. package/dist/editor/components/smart-contract/smart-contract-reading-intro.d.ts +4 -0
  45. package/dist/editor/components/smart-contract/smart-contract-view-list.d.ts +6 -0
  46. package/dist/editor/components/smart-contract/use-address-validation.d.ts +5 -0
  47. package/dist/editor/components/smart-contract/use-modal-outside-click.d.ts +18 -0
  48. package/dist/editor/components/smart-contract/use-smart-contract-modal.d.ts +38 -0
  49. package/dist/editor/constants/shared-constants.d.ts +0 -2
  50. package/dist/editor/contexts/editor-context.d.ts +20 -5
  51. package/dist/editor/dsheet-editor.d.ts +1 -1
  52. package/dist/editor/hooks/live-query/use-live-query.d.ts +4 -2
  53. package/dist/editor/hooks/use-celldata-compaction.d.ts +23 -0
  54. package/dist/editor/hooks/use-editor-data.d.ts +4 -2
  55. package/dist/editor/hooks/use-smart-contract.d.ts +26 -0
  56. package/dist/editor/hooks/use-xlsx-import-impl.d.ts +8 -1
  57. package/dist/editor/hooks/use-xlsx-import.d.ts +2 -1
  58. package/dist/editor/types/comments.d.ts +134 -0
  59. package/dist/editor/types/smart-contract.d.ts +88 -0
  60. package/dist/editor/types.d.ts +39 -32
  61. package/dist/editor/utils/after-update-cell.d.ts +13 -8
  62. package/dist/editor/utils/api-key-storage.d.ts +6 -0
  63. package/dist/editor/utils/api-keys-local-storage.d.ts +19 -0
  64. package/dist/editor/utils/cell-comment-marker.d.ts +30 -0
  65. package/dist/editor/utils/comment-key-utils.d.ts +7 -0
  66. package/dist/editor/utils/compact-committed-celldata.d.ts +28 -0
  67. package/dist/editor/utils/config-ydoc-update.d.ts +20 -0
  68. package/dist/editor/utils/csv-import.d.ts +3 -1
  69. package/dist/editor/utils/data-block-error-handler.d.ts +21 -0
  70. package/dist/editor/utils/datablock-error-utils.d.ts +1 -0
  71. package/dist/editor/utils/defined-names-ydoc.d.ts +31 -0
  72. package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
  73. package/dist/editor/utils/smart-contract/constants.d.ts +488 -0
  74. package/dist/editor/utils/smart-contract/error-helper.d.ts +20 -0
  75. package/dist/editor/utils/smart-contract/helpers.d.ts +4 -0
  76. package/dist/editor/utils/smart-contract/reading-utils.d.ts +34 -0
  77. package/dist/editor/utils/smart-contract/signature-utils.d.ts +9 -0
  78. package/dist/editor/utils/spreadsheet-import.d.ts +12 -0
  79. package/dist/editor/utils/update-ydoc.d.ts +2 -2
  80. package/dist/editor/utils/xlsx-defined-names.d.ts +41 -0
  81. package/dist/executeStringFunction-DMPoSj5F.js +32826 -0
  82. package/dist/formula.js +1 -1
  83. package/dist/index-DAVuAF9T.js +55303 -0
  84. package/dist/index.d.ts +11 -1
  85. package/dist/index.es.js +55 -49
  86. package/dist/jszip.min-CEyB-71x.js +2319 -0
  87. package/dist/sheet-engine/core/api/cell.d.ts +0 -20
  88. package/dist/sheet-engine/core/api/common.d.ts +2 -1
  89. package/dist/sheet-engine/core/api/index.d.ts +1 -0
  90. package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.d.ts +17 -0
  91. package/dist/sheet-engine/core/api/sheet.d.ts +5 -0
  92. package/dist/sheet-engine/core/context.d.ts +8 -1
  93. package/dist/sheet-engine/core/index.d.ts +2 -2
  94. package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +53 -0
  95. package/dist/sheet-engine/core/modules/formula-eval.worker.d.ts +1 -0
  96. package/dist/sheet-engine/core/modules/formula-range-cache.d.ts +20 -0
  97. package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +51 -0
  98. package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +7 -0
  99. package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +17 -0
  100. package/dist/sheet-engine/core/modules/formula-worker-types.d.ts +24 -0
  101. package/dist/sheet-engine/core/modules/formula.d.ts +53 -1
  102. package/dist/sheet-engine/core/modules/index.d.ts +5 -2
  103. package/dist/sheet-engine/core/modules/namedRanges.d.ts +53 -0
  104. package/dist/sheet-engine/core/modules/sheet-metadata-hooks.d.ts +4 -0
  105. package/dist/sheet-engine/core/modules/sheet.d.ts +17 -1
  106. package/dist/sheet-engine/core/paste/paste-border-utils.d.ts +23 -0
  107. package/dist/sheet-engine/core/settings.d.ts +3 -1
  108. package/dist/sheet-engine/core/theme.d.ts +67 -0
  109. package/dist/sheet-engine/core/types.d.ts +20 -0
  110. package/dist/sheet-engine/core/utils/border-config-utils.d.ts +16 -0
  111. package/dist/sheet-engine/core/utils/cell-persist-utils.d.ts +10 -0
  112. package/dist/sheet-engine/core/utils/range-format.d.ts +71 -0
  113. package/dist/sheet-engine/core/utils/ydoc-celldata-changes.d.ts +40 -0
  114. package/dist/sheet-engine/react/components/NamedRanges/index.d.ts +4 -0
  115. package/dist/sheet-engine/react/components/SheetOverlay/Icon.d.ts +5 -4
  116. package/dist/sheet-engine/react/components/SheetOverlay/LucideIcon.d.ts +4 -4
  117. package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +17 -0
  118. package/dist/sheet-engine/react/components/Workbook/api.d.ts +8 -1
  119. package/dist/sheet-engine/react/components/Workbook/index.d.ts +11 -1
  120. package/dist/sheet-engine/react/components/index.d.ts +1 -0
  121. package/dist/sheet-engine/react/utils/datepickerStyles.d.ts +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/use-xlsx-import-impl-DzthrhwA.js +1595 -0
  124. package/dist/xlsx-defined-names-D2KoICbm.js +117 -0
  125. package/dist/xlsx-export-impl-b2z4De4f.js +818 -0
  126. package/package.json +6 -4
  127. package/dist/executeStringFunction-BkmJj04p.js +0 -27295
  128. package/dist/index-Drl8OuI3.js +0 -52659
  129. package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +0 -7
  130. package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +0 -6
  131. package/dist/use-xlsx-import-impl-DC_BfAcT.js +0 -1527
  132. package/dist/xlsx-export-impl-DP_eK3zS.js +0 -3126
package/dist/index.d.ts CHANGED
@@ -4,12 +4,22 @@ export { formulaResponseUiSync } from './editor/utils/formula-ui-sync';
4
4
  export { executeStringFunction } from './editor/utils/executeStringFunction';
5
5
  export { FLVURL } from '@fileverse-dev/formulajs';
6
6
  export { loadLocale } from './sheet-engine/core';
7
- export type { ErrorMessageHandlerReturnType } from './editor/types';
7
+ export type { ErrorMessageHandlerReturnType, DataBlockEvent, DataBlockEventType, ApiKeyStorage } from './editor/types';
8
+ export type { PanelConfig, PanelId, BuiltInPanelType } from './editor/types';
9
+ export type { CommentThread, CommentReply, CommentActionParams, CommentsConfig, } from './editor/types/comments';
10
+ export { CommentAction } from './editor/types/comments';
11
+ export { CommentsContent } from './editor/components/comments/comment-sidebar';
12
+ export { CommentCellUI } from './editor/components/comments/comment-cell-popup';
13
+ export { useEnsStatus } from './editor/components/comments/ens/use-ens-status';
14
+ export type { EnsStatus } from './editor/components/comments/ens/ens-cache';
15
+ export type { SmartContractConfig, SmartContractEvent, SmartContractEventType, ContractConfig, ContractRegistry, NewContractInput, } from './editor/types/smart-contract';
16
+ export { SupportedChain } from './editor/types/smart-contract';
8
17
  export type { WorkbookInstance } from './sheet-engine/react';
9
18
  export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabStatus, CollabError, CollabErrorCode, CollabUser, } from './sync-local/types';
10
19
  export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from './editor/constants/shared-constants';
11
20
  export { TEMPLATES } from '@fileverse-dev/dsheets-templates/template-metadata-list';
12
21
  export { handleCSVUpload } from './editor/utils/csv-import';
22
+ export { importSpreadsheetFile, type ImportSpreadsheetFileOptions, type ImportSpreadsheetFileResult, type SpreadsheetImportFileType, } from './editor/utils/spreadsheet-import';
13
23
  export { handleExportToXLSX } from './editor/utils/xlsx-export';
14
24
  export { handleExportToCSV } from './editor/utils/csv-export';
15
25
  export { handleExportToJSON } from './editor/utils/json-export';
package/dist/index.es.js CHANGED
@@ -1,53 +1,59 @@
1
- import { S as s, a as o, i as t, T as r, b as l, d as n, e as d, f as i, g as S, h as c, j as h, k as m, l as p, n as u, o as C, p as E, q as g, r as F, s as x, t as R, u as f, v as L, w as b, x as w, z as A, A as T, B as v, C as I, D, E as M, F as V, G as k } from "./index-Drl8OuI3.js";
2
- import { bP as z, bQ as X, bR as _, bV as y, bg as B, e as G, f as O, h as U, a as j, cf as q, aq as H, cm as J } from "./executeStringFunction-BkmJj04p.js";
3
- import { FLVURL as N } from "@fileverse-dev/formulajs";
4
- import { E as Y, S as Z } from "./constants-yStXQJiK.js";
1
+ import { C as s, a as t, b as o, S as l, d as r, i as d, e as n, T as i, f as S, g as c, h, j as m, k as p, l as C, n as u, o as E, p as F, q as g, s as x, t as R, u as f, v as A, w as L, x as v, z as w, A as I, B as T, D, E as M } from "./index-DAVuAF9T.js";
2
+ import { cn as k, co as V, cp as z, cv as P, bi as U, e as X, f as _, l as y, a as B, d7 as O, d8 as j, b1 as G, d9 as H, da as q, de as J, df as K, dh as N, D as W, dx as Y, e4 as Z, aW as Q } from "./executeStringFunction-DMPoSj5F.js";
3
+ import { FLVURL as ee } from "@fileverse-dev/formulajs";
4
+ import { E as se, S as te } from "./constants-Cdz6oSCq.js";
5
5
  export {
6
- s as DSheetEditor,
7
- o as DSheetSkeleton,
8
- Y as ERROR_MESSAGES_FLAG,
9
- N as FLVURL,
10
- t as FortuneCore,
11
- Z as SERVICES_API_KEY,
12
- r as TEMPLATES,
13
- l as api,
14
- z as clearColumnsCellsFormat,
15
- n as clearFilter,
16
- X as clearRowsCellsFormat,
17
- _ as clearSelectedCellFormat,
18
- d as createFilter,
19
- y as deleteRowCol,
20
- B as deleteSelectedCellText,
21
- i as describeMatchedShortcut,
22
- G as executeStringFunction,
23
- O as formulaResponseUiSync,
24
- U as getFlowdata,
25
- S as getRemoveDuplicatesErrorMessage,
26
- c as getRemoveDuplicatesPreview,
27
- j as getSheetIndex,
28
- h as handleCSVUpload,
29
- m as handleCopy,
30
- p as handleExportToCSV,
31
- u as handleExportToJSON,
32
- C as handleExportToXLSX,
33
- E as handleFreeze,
34
- g as handleHorizontalAlign,
35
- F as handleLink,
36
- x as handleMerge,
6
+ s as CommentAction,
7
+ t as CommentCellUI,
8
+ o as CommentsContent,
9
+ l as DSheetEditor,
10
+ r as DSheetSkeleton,
11
+ se as ERROR_MESSAGES_FLAG,
12
+ ee as FLVURL,
13
+ d as FortuneCore,
14
+ te as SERVICES_API_KEY,
15
+ n as SupportedChain,
16
+ i as TEMPLATES,
17
+ S as api,
18
+ k as clearColumnsCellsFormat,
19
+ c as clearFilter,
20
+ V as clearRowsCellsFormat,
21
+ z as clearSelectedCellFormat,
22
+ h as createFilter,
23
+ P as deleteRowCol,
24
+ U as deleteSelectedCellText,
25
+ m as describeMatchedShortcut,
26
+ X as executeStringFunction,
27
+ _ as formulaResponseUiSync,
28
+ y as getFlowdata,
29
+ p as getRemoveDuplicatesErrorMessage,
30
+ C as getRemoveDuplicatesPreview,
31
+ B as getSheetIndex,
32
+ u as handleCSVUpload,
33
+ E as handleCopy,
34
+ F as handleExportToCSV,
35
+ g as handleExportToJSON,
36
+ x as handleExportToXLSX,
37
+ O as handleFreeze,
38
+ j as handleHorizontalAlign,
39
+ G as handleLink,
40
+ H as handleMerge,
37
41
  R as handlePasteByClick,
38
- f as handleSort,
39
- L as handleTextSize,
40
- b as handleVerticalAlign,
41
- q as insertRowCol,
42
- w as isBrowserZoomShortcut,
43
- A as isFormulaListShortcut,
44
- T as isOpenShortcutsModalShortcut,
45
- H as jfrefreshgrid,
46
- J as loadLocale,
47
- v as removeActiveImage,
42
+ q as handleSort,
43
+ J as handleTextSize,
44
+ K as handleVerticalAlign,
45
+ f as importSpreadsheetFile,
46
+ N as insertRowCol,
47
+ A as isBrowserZoomShortcut,
48
+ L as isFormulaListShortcut,
49
+ v as isOpenShortcutsModalShortcut,
50
+ W as jfrefreshgrid,
51
+ Y as loadLocale,
52
+ w as removeActiveImage,
48
53
  I as removeDuplicates,
49
- D as showImgChooser,
50
- M as toolbarItemClickHandler,
51
- V as updateFormat,
52
- k as useXLSXImport
54
+ T as showImgChooser,
55
+ Z as toolbarItemClickHandler,
56
+ Q as updateFormat,
57
+ D as useEnsStatus,
58
+ M as useXLSXImport
53
59
  };