@sheetxl/react 0.7.28-beta.4 → 0.8.0-beta.2

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 (84) hide show
  1. package/browser/cjs/index.cjs +21 -15
  2. package/browser/esm/{BdJpSdwyWuh-Te5p.mjs → Dsn3z1hmkv-bWGVr.mjs} +1 -1
  3. package/browser/esm/index.mjs +8117 -5883
  4. package/node/esm/{Ban9guHVB-Vxa-tq.mjs → CyU4sKDpHyc6kF7j.mjs} +1 -1
  5. package/node/esm/index.mjs +8234 -5978
  6. package/package.json +6 -6
  7. package/resources/locales/de/movable.cmd.json +86 -0
  8. package/resources/locales/de/selection.cmd.json +8 -0
  9. package/resources/locales/de/sheet.cmd.json +170 -7
  10. package/resources/locales/de/ui.msg.json +48 -3
  11. package/resources/locales/de/workbook.cmd.json +9 -6
  12. package/resources/locales/en/movable.cmd.json +86 -0
  13. package/resources/locales/en/selection.cmd.json +8 -0
  14. package/resources/locales/en/sheet.cmd.json +171 -7
  15. package/resources/locales/en/ui.msg.json +48 -3
  16. package/resources/locales/en/workbook.cmd.json +10 -7
  17. package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
  18. package/types/src/autoFill/FillMenu.d.ts +36 -0
  19. package/types/src/autoFill/FillSeries.d.ts +38 -0
  20. package/types/src/autoFill/index.d.ts +4 -0
  21. package/types/src/border/StaticBorderRenderer.d.ts +2 -2
  22. package/types/src/border/useBorders.d.ts +7 -7
  23. package/types/src/cell/FormulaCellRenderer.d.ts +1 -1
  24. package/types/src/cell/SheetCellRenderer.d.ts +15 -0
  25. package/types/src/cell/StaticCellRenderer.d.ts +57 -0
  26. package/types/src/cell/index.d.ts +1 -0
  27. package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
  28. package/types/src/checklist/ValueChecklist.d.ts +71 -0
  29. package/types/src/checklist/index.d.ts +2 -0
  30. package/types/src/conditionalFormat/index.d.ts +1 -0
  31. package/types/src/editor/FunctionPreviewPanel.d.ts +14 -0
  32. package/types/src/editor/NamedItemLabel.d.ts +29 -0
  33. package/types/src/editor/NamedItemsPanel.d.ts +13 -2
  34. package/types/src/editor/SheetCellEditorLayer.d.ts +8 -4
  35. package/types/src/editor/SheetCellInput.d.ts +12 -2
  36. package/types/src/editor/SheetEditable.d.ts +8 -2
  37. package/types/src/editor/formulaCaret.d.ts +39 -10
  38. package/types/src/editor/formulaEval.d.ts +9 -5
  39. package/types/src/editor/formulaLint.d.ts +36 -0
  40. package/types/src/editor/formulaPresentation.d.ts +7 -0
  41. package/types/src/editor/formulaText.d.ts +17 -5
  42. package/types/src/editor/functionArgs.d.ts +20 -0
  43. package/types/src/editor/index.d.ts +2 -1
  44. package/types/src/editor/pickedReference.d.ts +76 -0
  45. package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
  46. package/types/src/editor/useFormulaHints.d.ts +93 -3
  47. package/types/src/editor/useFormulaInput.d.ts +15 -1
  48. package/types/src/editor/useReferenceMode.d.ts +12 -0
  49. package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
  50. package/types/src/externalLink/index.d.ts +2 -0
  51. package/types/src/form/FormulaInput.d.ts +13 -0
  52. package/types/src/form/FormulaInputParts.d.ts +10 -1
  53. package/types/src/frame/CommandContext.d.ts +147 -5
  54. package/types/src/index.d.ts +5 -0
  55. package/types/src/io/WorkbookIO.d.ts +2 -0
  56. package/types/src/layer/CellErrorLayer.d.ts +10 -3
  57. package/types/src/layer/ProtectionLayer.d.ts +52 -0
  58. package/types/src/layer/ValidationDropdownLayer.d.ts +61 -0
  59. package/types/src/layer/ValidationIndicatorLayer.d.ts +14 -21
  60. package/types/src/layer/ValidationPromptLayer.d.ts +46 -0
  61. package/types/src/layer/index.d.ts +4 -0
  62. package/types/src/layer/useValidationPicker.d.ts +54 -0
  63. package/types/src/layer/validationMark.d.ts +63 -0
  64. package/types/src/movable/MovableLayer.d.ts +1 -5
  65. package/types/src/picker/PickerPanel.d.ts +52 -0
  66. package/types/src/picker/cellPickerOpen.d.ts +6 -0
  67. package/types/src/picker/index.d.ts +4 -0
  68. package/types/src/picker/useCellPicker.d.ts +93 -0
  69. package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
  70. package/types/src/protection/index.d.ts +3 -0
  71. package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
  72. package/types/src/selection/SheetSelectionLayer.d.ts +10 -0
  73. package/types/src/sheet/ISheetElement.d.ts +7 -0
  74. package/types/src/sheet/SheetCommands.d.ts +3 -3
  75. package/types/src/sheet/circularReferences.d.ts +9 -1
  76. package/types/src/sheet/index.d.ts +1 -1
  77. package/types/src/sheet/useCycleHighlight.d.ts +21 -0
  78. package/types/src/taskPane/ITaskPane.d.ts +12 -1
  79. package/types/src/workbook/IWorkbookElement.d.ts +5 -0
  80. package/types/src/workbook/WorkbookCommands.d.ts +0 -2
  81. package/types/src/workbook/_followOrigin.d.ts +9 -0
  82. package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
  83. package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
  84. /package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import { IListener, IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
2
+ /**
3
+ * Calls `sync` with the workbook's current origin now, whenever that origin changes in place (a
4
+ * rename, a new size), and whenever the workbook moves to another origin (a first save, a Save As).
5
+ *
6
+ * @returns Removes every listener.
7
+ */
8
+ export declare const followOrigin: (workbook: IWorkbook, sync: (origin: IWorkbookIO.Origin | null) => void) => IListener.Remove;
9
+ //# sourceMappingURL=_followOrigin.d.ts.map
@@ -10,9 +10,9 @@ import { IWorkbook } from '@sheetxl/sdk';
10
10
  * A format KEY, not a full format type — resolving one to the other needs the registry
11
11
  * (`getWriteFormats({ search: key })`), which is async and a concern of whoever is asking.
12
12
  *
13
- * Follows the handle's `onChange`, so chrome that names the current format (a Save As menu, a
14
- * status bar) updates the moment a Save As re-targets the workbook rather than going stale until
15
- * the next mount.
13
+ * Follows the workbook to whichever origin it lives in, so chrome that names the current format (a
14
+ * Save As menu, a status bar) updates the moment a Save As moves the workbook rather than going
15
+ * stale until the next mount.
16
16
  */
17
17
  export declare const useWorkbookFormat: (workbook: IWorkbook | null) => string | null;
18
18
  //# sourceMappingURL=useWorkbookFormat.d.ts.map
@@ -1,14 +0,0 @@
1
- import { ISheet } from '@sheetxl/sdk';
2
- /**
3
- * The Excel-style "sheet is protected" heads-up for a rejected edit attempt (`IEditable.startEdit`
4
- * returning `false`). Returns the callback a host invokes on each rejection; the notice shows once
5
- * per **visit** to `sheet` — Excel re-warns each time you come (back) to a tab, so the once-flag
6
- * resets on a `sheet` identity change (and naturally on remount). The `isLocked()` guard keeps the
7
- * message protection-specific: any other non-editable reason stays silent.
8
- *
9
- * One instance should serve one visit scope — `SheetElement` creates it and threads the callback to
10
- * every consumer it hosts (its imperative `startEdit` and each pane's editor layer), so four frozen
11
- * panes never warn four times.
12
- */
13
- export declare const useProtectedEditNotice: (sheet: ISheet) => (() => void);
14
- //# sourceMappingURL=useProtectedEditNotice.d.ts.map