@fileverse-dev/dsheet 2.0.0-text → 2.0.1-search-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 (33) hide show
  1. package/dist/editor/components/import-button-ui.d.ts +1 -1
  2. package/dist/editor/open-find-and-replace.d.ts +11 -0
  3. package/dist/editor/utils/csv-import.d.ts +1 -1
  4. package/dist/editor/utils/custom-toolbar-item.d.ts +1 -1
  5. package/dist/editor/utils/export-filename.d.ts +1 -0
  6. package/dist/{es-DqFXH9BK.js → es-BJ3y6kL2.js} +29 -4
  7. package/dist/{hi-cBN4FoX2.js → hi-BLJfbm0w.js} +29 -4
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.es.js +22196 -20665
  10. package/dist/sheet-engine/core/api/cell.d.ts +1 -1
  11. package/dist/sheet-engine/core/context.d.ts +36 -0
  12. package/dist/sheet-engine/core/events/mouse.d.ts +1 -1
  13. package/dist/sheet-engine/core/index.d.ts +2 -1
  14. package/dist/sheet-engine/core/locale/en.d.ts +25 -0
  15. package/dist/sheet-engine/core/locale/es.d.ts +25 -0
  16. package/dist/sheet-engine/core/locale/hi.d.ts +25 -0
  17. package/dist/sheet-engine/core/locale/zh.d.ts +25 -0
  18. package/dist/sheet-engine/core/locale/zh_tw.d.ts +25 -0
  19. package/dist/sheet-engine/core/modules/formula.d.ts +13 -4
  20. package/dist/sheet-engine/core/modules/index.d.ts +4 -3
  21. package/dist/sheet-engine/core/modules/inline-string.d.ts +6 -6
  22. package/dist/sheet-engine/core/modules/rowcol.d.ts +3 -3
  23. package/dist/sheet-engine/core/modules/searchReplace.d.ts +118 -26
  24. package/dist/sheet-engine/core/modules/selection.d.ts +12 -6
  25. package/dist/sheet-engine/core/types.d.ts +4 -2
  26. package/dist/sheet-engine/react/components/QuickSearch/index.d.ts +4 -0
  27. package/dist/sheet-engine/react/components/Workbook/api.d.ts +6 -0
  28. package/dist/sheet-engine/react/components/Workbook/index.d.ts +4 -0
  29. package/dist/sheet-engine/react/hooks/useFormulaEditorHistory.d.ts +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/{zh-UJov73Dl.js → zh-DNw41bZD.js} +29 -4
  32. package/dist/{zh_tw-DTGOcDTq.js → zh_tw-MZjDyZzy.js} +29 -4
  33. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const QuickSearchBar: React.FC;
4
+ export default QuickSearchBar;
@@ -6,6 +6,8 @@ import { useDialog } from '../../hooks/useDialog';
6
6
  export declare function generateAPIs(context: Context, setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void, handleUndo: () => void, handleRedo: () => void, settings: Required<Settings>, cellInput: HTMLDivElement | null, scrollbarX: HTMLDivElement | null, scrollbarY: HTMLDivElement | null, globalCache: GlobalCache | null, refs: any): {
7
7
  applyOp: (ops: Op[]) => void;
8
8
  getCryptoPrice: typeof getCryptoPrice;
9
+ /** Runs the formula engine on every cell in calcChain (all sheets). Use after XLSX import so values are computed, not cached from the file. */
10
+ recalculateAllFormulas: () => void;
9
11
  getCellValue: (row: number, column: number, options?: api.CommonOptions & {
10
12
  type?: keyof Cell;
11
13
  }) => any;
@@ -155,4 +157,8 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
155
157
  getConditionalFormatComponent: () => import('react').FC<{
156
158
  context?: any;
157
159
  }>;
160
+ /** Opens the Find and Replace dialog (same UI as Ctrl+H / context menu). */
161
+ openFindAndReplace: (options?: {
162
+ prefill?: string;
163
+ }) => void;
158
164
  };
@@ -12,6 +12,7 @@ type AdditionalProps = {
12
12
  declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
13
13
  applyOp: (ops: Op[]) => void;
14
14
  getCryptoPrice: typeof getCryptoPrice;
15
+ recalculateAllFormulas: () => void;
15
16
  getCellValue: (row: number, column: number, options?: api.CommonOptions & {
16
17
  type?: keyof import('../../../core').Cell;
17
18
  }) => any;
@@ -161,5 +162,8 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
161
162
  getConditionalFormatComponent: () => React.FC<{
162
163
  context?: any;
163
164
  }>;
165
+ openFindAndReplace: (options?: {
166
+ prefill?: string;
167
+ }) => void;
164
168
  }>>;
165
169
  export default Workbook;
@@ -7,7 +7,7 @@ export type FormulaHistoryEntry = {
7
7
  caret: number;
8
8
  };
9
9
  /** Which editor receives caret placement and drives history snapshots. */
10
- export type FormulaEditorHistoryPrimary = "cell" | "fx";
10
+ export type FormulaEditorHistoryPrimary = 'cell' | 'fx';
11
11
  type SetContext = (recipe: (ctx: Context) => void, options?: SetContextOptions) => void;
12
12
  /**
13
13
  * Custom undo/redo for the cell overlay and Fx bar — **one code path** for