@sheetxl/react 0.7.28-beta.4 → 0.8.0-beta.10
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.
- package/browser/esm/BHjeSMaycUkS5dVL.mjs +66 -0
- package/browser/esm/BZcQ-KYwS62Ut45c.mjs +20 -0
- package/browser/esm/Bow9CzRJrYxak2i5.mjs +318 -0
- package/browser/esm/BuvXl14hs-1CvjeA.mjs +2706 -0
- package/browser/esm/BwRduT8FTrk5n72r.mjs +32 -0
- package/browser/esm/C6urN77szrYwODXF.mjs +134 -0
- package/browser/esm/CYMRbtPIr6SklGpp.mjs +775 -0
- package/browser/esm/CYoUd5KIl7W3AsxH.mjs +196 -0
- package/browser/esm/Cfe0kofqVKGxLqO6.mjs +31 -0
- package/browser/esm/CiRN-woJZWYOgTn4.mjs +36 -0
- package/browser/esm/Dd-ZybXAgoq9pgGv.mjs +45 -0
- package/browser/esm/DjiBz4H74I6nPUY6.mjs +79 -0
- package/browser/esm/DyU9UInRnfkPYYlR.mjs +63 -0
- package/browser/esm/J8cPagZBeXz86Lnd.mjs +777 -0
- package/browser/esm/Sp6PJavGKpF8SJzA.mjs +75 -0
- package/browser/esm/cYjYjqEsyd63x8t4.mjs +67 -0
- package/browser/esm/chart.mjs +60 -0
- package/browser/esm/control.mjs +216 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +14122 -8944
- package/browser/esm/note.mjs +86 -0
- package/browser/esm/picture.mjs +86 -0
- package/{node/esm/Ban9guHVB-Vxa-tq.mjs → browser/esm/shape.mjs} +2 -4
- package/browser/esm/slicer.mjs +276 -0
- package/licenses/dependencies.txt +6 -599
- package/node/esm/BJ7ZZm63j5O6cvrB.mjs +134 -0
- package/node/esm/BfRn5S5V4X8xIAEa.mjs +20 -0
- package/node/esm/BpwE3HqTnrLLzE3C.mjs +775 -0
- package/node/esm/Buw-VKYJy3y5dbaJ.mjs +197 -0
- package/node/esm/CFFlJxNwgyInjEnh.mjs +45 -0
- package/node/esm/CM5BT7h-hMtST2bE.mjs +2706 -0
- package/node/esm/CV3bT3Hql74GcHoU.mjs +37 -0
- package/node/esm/C_ANM4feA1xV-pri.mjs +32 -0
- package/node/esm/D3YXHeOyFp00Xk3m.mjs +323 -0
- package/node/esm/DPN0n6MGYQ9vZ2KO.mjs +80 -0
- package/node/esm/DYosMUJKp-3MSO4q.mjs +76 -0
- package/node/esm/DhSq680c5tgMFFbj.mjs +68 -0
- package/node/esm/Dxbm6ryIDCEi26RO.mjs +66 -0
- package/node/esm/GkmuxU7OwRZtm2Rf.mjs +63 -0
- package/node/esm/chart.mjs +60 -0
- package/node/esm/control.mjs +216 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +16649 -11320
- package/node/esm/note.mjs +87 -0
- package/node/esm/picture.mjs +86 -0
- package/node/esm/shape.mjs +783 -0
- package/node/esm/slicer.mjs +278 -0
- package/package.json +53 -14
- package/resources/contents.json +18 -0
- package/resources/locales/contents.json +42 -0
- package/resources/locales/de/movable.cmd.json +154 -0
- package/resources/locales/de/picture.cmd.json +31 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +328 -21
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/table.cmd.json +9 -1
- package/resources/locales/de/ui.msg.json +309 -3
- package/resources/locales/de/workbook.cmd.json +10 -6
- package/resources/locales/en/movable.cmd.json +154 -0
- package/resources/locales/en/picture.cmd.json +31 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +342 -22
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/table.cmd.json +9 -1
- package/resources/locales/en/ui.msg.json +309 -3
- package/resources/locales/en/workbook.cmd.json +11 -7
- package/types/chart.d.ts +2 -0
- package/types/control.d.ts +2 -0
- package/types/group.d.ts +2 -0
- package/types/note.d.ts +2 -0
- package/types/picture.d.ts +2 -0
- package/types/shape.d.ts +2 -0
- package/types/slicer.d.ts +2 -0
- package/types/src/annotation/RangeAnnotations.d.ts +119 -0
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +2 -2
- package/types/src/border/useBorders.d.ts +7 -7
- package/types/src/cell/CornerTriangle.d.ts +6 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +1 -1
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/SheetCellRenderer.d.ts +17 -2
- package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +2 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
- package/types/src/chart/index.d.ts +0 -1
- package/types/src/checklist/ValueChecklist.d.ts +112 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/commands/ContextualToolbar.d.ts +19 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
- package/types/src/commands/index.d.ts +1 -0
- package/types/src/comment/CommentCardRequest.d.ts +94 -0
- package/types/src/comment/CommentUtils.d.ts +43 -0
- package/types/src/comment/NoteEditor.d.ts +20 -0
- package/types/src/comment/index.d.ts +5 -0
- package/types/src/comment/useCommentThread.d.ts +37 -0
- package/types/src/comment/useSheetComments.d.ts +28 -0
- package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/control/FormControlRenderers.d.ts +22 -0
- package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +3 -7
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +44 -0
- package/types/src/editor/SheetCellInput.d.ts +26 -2
- package/types/src/editor/SheetEditable.d.ts +8 -2
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +4 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +93 -3
- package/types/src/editor/useFormulaInput.d.ts +30 -4
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +18 -2
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/form/useEditCommit.d.ts +23 -3
- package/types/src/form/useInputField.d.ts +2 -3
- package/types/src/frame/CommandContext.d.ts +188 -6
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +12 -1
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/CellErrorLayer.d.ts +24 -7
- package/types/src/layer/CommentCardLayer.d.ts +43 -0
- package/types/src/layer/CommentsLayer.d.ts +35 -0
- package/types/src/layer/ConditionalIcons.d.ts +4 -4
- package/types/src/layer/FreezeDragLines.d.ts +17 -0
- package/types/src/layer/GridFreezeLayer.d.ts +11 -0
- package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
- package/types/src/layer/HyperlinkLayer.d.ts +109 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
- package/types/src/layer/ResizeIndicator.d.ts +9 -8
- package/types/src/layer/ResizeTooltip.d.ts +13 -0
- package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/TableLayer.d.ts +5 -4
- package/types/src/layer/TableToolbar.d.ts +42 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +61 -0
- package/types/src/layer/ValidationIndicatorLayer.d.ts +14 -21
- package/types/src/layer/ValidationPromptLayer.d.ts +64 -0
- package/types/src/layer/_tableColor.d.ts +4 -0
- package/types/src/layer/cellTip.d.ts +13 -0
- package/types/src/layer/freezeDragState.d.ts +21 -0
- package/types/src/layer/index.d.ts +14 -0
- package/types/src/layer/resizeIndicatorState.d.ts +3 -1
- package/types/src/layer/useFreezeDrag.d.ts +22 -0
- package/types/src/layer/useValidationPicker.d.ts +54 -0
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/listener/useModelListener.d.ts +4 -4
- package/types/src/movable/ConnectionSites.d.ts +18 -0
- package/types/src/movable/IMovableArea.d.ts +56 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- package/types/src/movable/MovableCommandGroups.d.ts +40 -0
- package/types/src/movable/MovableCommands.d.ts +6 -1
- package/types/src/movable/MovableControl.d.ts +78 -0
- package/types/src/movable/MovableEdit.d.ts +22 -0
- package/types/src/movable/MovableFrame.d.ts +16 -13
- package/types/src/movable/MovableLayer.d.ts +25 -7
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/TextBox.d.ts +34 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +10 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +95 -0
- package/types/src/picture/PictureCommands.d.ts +12 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/richText/RichTextEditor.d.ts +41 -0
- package/types/src/richText/index.d.ts +2 -0
- package/types/src/selection/SheetSelectionLayer.d.ts +14 -10
- package/types/src/shape/ConnectorControl.d.ts +46 -0
- package/types/src/shape/ShapeCommands.d.ts +11 -0
- package/types/src/shape/ShapeControl.d.ts +8 -0
- package/types/src/shape/ShapeEditor.d.ts +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetElement.d.ts +62 -65
- package/types/src/sheet/SheetCommandProvider.d.ts +9 -4
- package/types/src/sheet/SheetCommands.d.ts +21 -6
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/sheet/SheetScrollbar.d.ts +1 -10
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +9 -1
- package/types/src/sheet/index.d.ts +1 -1
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/slicer/SlicerCommands.d.ts +10 -0
- package/types/src/slicer/SlicerEditor.d.ts +8 -2
- package/types/src/slicer/SlicerKind.d.ts +7 -0
- package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
- package/types/src/slicer/index.d.ts +2 -1
- package/types/src/slicer/slicerStyles.d.ts +32 -0
- package/types/src/tabStrip/TabStrip.d.ts +7 -0
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/taskPane/MovablePane.d.ts +17 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +14 -1
- package/types/src/theme/useGridColorScheme.d.ts +1 -1
- package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
- package/types/src/workbook/IWorkbookElement.d.ts +24 -0
- package/types/src/workbook/WorkbookCommands.d.ts +2 -4
- package/types/src/workbook/WorkbookStrip.d.ts +9 -0
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -35
- package/browser/esm/BdJpSdwyWuh-Te5p.mjs +0 -6286
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/movable/MoveableBundle.d.ts +0 -4
|
@@ -4,7 +4,7 @@ import { ThemeMode } from '@sheetxl/utils-react';
|
|
|
4
4
|
*
|
|
5
5
|
* Derived from the shared appearance preference: the user's light/dark override
|
|
6
6
|
* (`ThemeStateKey.Mode`, resolved via `prefers-color-scheme` when unset), gated by *Enable Dark Grid*
|
|
7
|
-
* (`ThemeStateKey.DarkGrid`,
|
|
7
|
+
* (`ThemeStateKey.DarkGrid`, off unless a host or the user turns it on) so the grid stays light in a dark app unless opted in.
|
|
8
8
|
*
|
|
9
9
|
* Because it reads the shared (module-singleton) preference store, every caller — the grid surface
|
|
10
10
|
* (`SheetElement`) **and** chrome that must match the grid but renders outside its DOM (the table-style
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { registerBuiltInMovableRenderer } from '../movable/MovableRenderers';
|
|
2
|
+
/**
|
|
3
|
+
* Registers the built-in renderer for each kind of movable content. Called by the renderer
|
|
4
|
+
* registry before its first use; a host replaces any of them with `registerMovableRenderer`.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A call, not an import for its effect: the package declares only its CSS as side effects, so a
|
|
8
|
+
* bundler drops a module imported only for one, and every built-in renderer with it.
|
|
9
|
+
*
|
|
10
|
+
* Every one is loaded the first time a movable of its kind is drawn, or ahead of use by a prefetch,
|
|
11
|
+
* so a workbook with no charts does not wait on the chart editor to show. For that to hold in a
|
|
12
|
+
* bundle, the editor must not also be reached statically: the package's index does not re-export
|
|
13
|
+
* the editors, which hosts that render one directly import from its subpath
|
|
14
|
+
* (`@sheetxl/react/chart`, `/shape`, ...; see vite.config.ts).
|
|
15
|
+
*
|
|
16
|
+
* Each is one `import()` with its export picked by `select`, so a failed fetch can be imported
|
|
17
|
+
* again.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registerDefaultMovableRenderers(register: typeof registerBuiltInMovableRenderer): void;
|
|
20
|
+
//# sourceMappingURL=DefaultMovableRenderers.d.ts.map
|
|
@@ -74,6 +74,25 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
|
|
|
74
74
|
* loading panels.
|
|
75
75
|
*/
|
|
76
76
|
onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether features that load on first use (charts, shapes, form controls, file formats, dialogs)
|
|
79
|
+
* are loaded ahead of use once the workbook has shown, so their first use does not wait on the
|
|
80
|
+
* network.
|
|
81
|
+
*
|
|
82
|
+
* - `'auto'` - only while the browser reports a fast connection. Browsers that report none
|
|
83
|
+
* (Firefox, Safari) load each feature on first use.
|
|
84
|
+
* - `true` - on any connection but a 2g one.
|
|
85
|
+
* - `false` - each feature on first use.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Loads every module defined with `defineLazyModule` from `@sheetxl/utils` that has not opted out,
|
|
89
|
+
* including every kind registered with `MovableContentRegistry` and `registerMovableRenderer`.
|
|
90
|
+
* Nothing is loaded while offline or when the connection asks to save data; it resumes when the
|
|
91
|
+
* connection changes.
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue 'auto'
|
|
94
|
+
*/
|
|
95
|
+
prefetch?: boolean | 'auto';
|
|
77
96
|
/**
|
|
78
97
|
* A custom undo manager.
|
|
79
98
|
*
|
|
@@ -116,6 +135,11 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
|
|
|
116
135
|
* Render custom movable menu. (chrome - no default)
|
|
117
136
|
*/
|
|
118
137
|
renderMovableMenu?: (props: any) => React.ReactElement;
|
|
138
|
+
/**
|
|
139
|
+
* Render the fill menu a right-drag of the fill handle ends in. (chrome - no default; without it
|
|
140
|
+
* the right-drag is inert)
|
|
141
|
+
*/
|
|
142
|
+
renderFillMenu?: (props: any) => React.ReactElement;
|
|
119
143
|
/**
|
|
120
144
|
* Allow for customizations on the floating surface used for the workbook's popups.
|
|
121
145
|
*/
|
|
@@ -21,8 +21,6 @@ import { SheetEditable } from '../editor';
|
|
|
21
21
|
* as an embedded component.
|
|
22
22
|
* - `createNamedReferenceFromSelection` (Ctrl+Shift+F3) — auto-generate names from the selected
|
|
23
23
|
* cells (Excel's Create-from-Selection).
|
|
24
|
-
* - `showFormat` (Ctrl+Shift+F) — open the format pane. Should also be available in the status bar.
|
|
25
|
-
|
|
26
24
|
* - `workbookViewToggleExpandFormulaBar` (Ctrl+Shift+U) — expand or collapse the formula bar.
|
|
27
25
|
* F6 - Move focus through primary workbook elements (we can implement this by check each workbook element and moving through)
|
|
28
26
|
* F8 - Extend Selection
|
|
@@ -47,7 +45,7 @@ export interface FindMemory {
|
|
|
47
45
|
scope?: CommandContext.FindScopeOptions;
|
|
48
46
|
}
|
|
49
47
|
/**
|
|
50
|
-
* The last-search memory handle — **live getter/setter** over the bridge's `
|
|
48
|
+
* The last-search memory handle — **live getter/setter** over the bridge's `usePersistentState`, exactly
|
|
51
49
|
* like {@link PickerMemory} for the style pickers. A getter (not the value) so recording a search doesn't
|
|
52
50
|
* change the `data` identity and re-run this whole contributor.
|
|
53
51
|
*/
|
|
@@ -79,7 +77,7 @@ export interface ContributeWorkbookCommandsOptions {
|
|
|
79
77
|
*/
|
|
80
78
|
editable?: SheetEditable | null;
|
|
81
79
|
/**
|
|
82
|
-
* Persisted last-search memory (`workbook.lastFind`), owned by the bridge's `
|
|
80
|
+
* Persisted last-search memory (`workbook.lastFind`), owned by the bridge's `usePersistentState`. Feeds
|
|
83
81
|
* `findNext` / `findPrevious` and the find window's seed. Omit ⇒ those two stay disabled and the window
|
|
84
82
|
* always seeds from the active cell.
|
|
85
83
|
*/
|
|
@@ -38,6 +38,15 @@ export interface WorkbookStripProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
38
38
|
* @defaultValue false
|
|
39
39
|
*/
|
|
40
40
|
condensed?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Draw the strip's segment of the seam framing the grid along its top edge. Off when the row
|
|
43
|
+
* above already draws that seam and nothing visible sits between them: the stacked layout on a
|
|
44
|
+
* touch device, where the scrollbar track is invisible and the tabs would get a second line 2px
|
|
45
|
+
* under the first.
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue true
|
|
48
|
+
*/
|
|
49
|
+
seam?: boolean;
|
|
41
50
|
/**
|
|
42
51
|
* Override how each sheet tab renders. Defaults to a plain {@link SheetTab}. A host with its
|
|
43
52
|
* own tab chrome (e.g. the MUI strip's ripple surface) supplies this rather than re-forking
|
|
@@ -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
|
|
14
|
-
* status bar) updates the moment a Save As
|
|
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 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(o,s,c)=>(c=o==null?{}:e(i(o)),((e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c,l=r(i),u=0,d=l.length;u<d;u++)c=l[u],a.call(e,c)||c===o||t(e,c,{get:(e=>i[e]).bind(null,c),enumerable:!(s=n(i,c))||s.enumerable});return e})(!s&&o&&o.__esModule?c:t(c,`default`,{value:o,enumerable:!0}),o));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|