@pixerate/editor-react 0.89.0 → 0.90.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.
- package/dist/animation-editor/AnimationEditor.d.cts +33 -0
- package/dist/animation-editor/AnimationEditor.d.ts +33 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
- package/dist/animation-editor/AnimationStage.d.cts +24 -0
- package/dist/animation-editor/AnimationStage.d.ts +24 -0
- package/dist/animation-editor/CommandInspector.d.cts +14 -0
- package/dist/animation-editor/CommandInspector.d.ts +14 -0
- package/dist/animation-editor/CommandList.d.cts +16 -0
- package/dist/animation-editor/CommandList.d.ts +16 -0
- package/dist/animation-editor/CommitInput.d.cts +6 -0
- package/dist/animation-editor/CommitInput.d.ts +6 -0
- package/dist/animation-editor/EasePicker.d.cts +18 -0
- package/dist/animation-editor/EasePicker.d.ts +18 -0
- package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
- package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
- package/dist/animation-editor/SceneSettings.d.cts +12 -0
- package/dist/animation-editor/SceneSettings.d.ts +12 -0
- package/dist/animation-editor/ShotInspector.d.cts +14 -0
- package/dist/animation-editor/ShotInspector.d.ts +14 -0
- package/dist/animation-editor/ShotTimeline.d.cts +11 -0
- package/dist/animation-editor/ShotTimeline.d.ts +11 -0
- package/dist/animation-editor/index.cjs +0 -1
- package/dist/animation-editor/index.d.cts +11 -195
- package/dist/animation-editor/index.d.ts +11 -195
- package/dist/animation-editor/index.js +2 -3
- package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
- package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
- package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
- package/dist/canvas/AnimationTimeline.d.cts +22 -0
- package/dist/canvas/AnimationTimeline.d.ts +22 -0
- package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
- package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
- package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
- package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
- package/dist/canvas/CanvasEffects.d.cts +52 -0
- package/dist/canvas/CanvasEffects.d.ts +52 -0
- package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
- package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
- package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
- package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
- package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
- package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
- package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
- package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
- package/dist/canvas/MermaidThumbnail.d.cts +15 -0
- package/dist/canvas/MermaidThumbnail.d.ts +15 -0
- package/dist/canvas/ShapeNode.d.cts +31 -0
- package/dist/canvas/ShapeNode.d.ts +31 -0
- package/dist/canvas/TokenBindingPicker.d.cts +37 -0
- package/dist/canvas/TokenBindingPicker.d.ts +37 -0
- package/dist/canvas/index.cjs +0 -1
- package/dist/canvas/index.d.cts +40 -1084
- package/dist/canvas/index.d.ts +40 -1084
- package/dist/canvas/index.js +2 -3
- package/dist/canvas/useCanvasAnimation.d.cts +97 -0
- package/dist/canvas/useCanvasAnimation.d.ts +97 -0
- package/dist/canvas/useCanvasArrange.d.cts +80 -0
- package/dist/canvas/useCanvasArrange.d.ts +80 -0
- package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
- package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
- package/dist/canvas/useCanvasCapture.d.cts +20 -0
- package/dist/canvas/useCanvasCapture.d.ts +20 -0
- package/dist/canvas/useCanvasClipboard.d.cts +14 -0
- package/dist/canvas/useCanvasClipboard.d.ts +14 -0
- package/dist/canvas/useCanvasComponents.d.cts +74 -0
- package/dist/canvas/useCanvasComponents.d.ts +74 -0
- package/dist/canvas/useCanvasDocking.d.cts +15 -0
- package/dist/canvas/useCanvasDocking.d.ts +15 -0
- package/dist/canvas/useCanvasDraw.d.cts +37 -0
- package/dist/canvas/useCanvasDraw.d.ts +37 -0
- package/dist/canvas/useCanvasExplosion.d.cts +16 -0
- package/dist/canvas/useCanvasExplosion.d.ts +16 -0
- package/dist/canvas/useCanvasGraph.d.cts +27 -0
- package/dist/canvas/useCanvasGraph.d.ts +27 -0
- package/dist/canvas/useCanvasLayout.d.cts +25 -0
- package/dist/canvas/useCanvasLayout.d.ts +25 -0
- package/dist/canvas/useCanvasMeasure.d.cts +41 -0
- package/dist/canvas/useCanvasMeasure.d.ts +41 -0
- package/dist/canvas/useCanvasScenes.d.cts +61 -0
- package/dist/canvas/useCanvasScenes.d.ts +61 -0
- package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
- package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
- package/dist/canvas/useCanvasTokens.d.cts +24 -0
- package/dist/canvas/useCanvasTokens.d.ts +24 -0
- package/dist/canvas/useDiagramDirector.d.cts +21 -0
- package/dist/canvas/useDiagramDirector.d.ts +21 -0
- package/dist/canvas/useMermaidDiagram.d.cts +79 -0
- package/dist/canvas/useMermaidDiagram.d.ts +79 -0
- package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
- package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
- package/dist/canvas/useStreamingCanvas.d.cts +17 -0
- package/dist/canvas/useStreamingCanvas.d.ts +17 -0
- package/dist/chart/ChartCanvas.d.cts +44 -0
- package/dist/chart/ChartCanvas.d.ts +44 -0
- package/dist/chart/ChartDataGrid.d.cts +24 -0
- package/dist/chart/ChartDataGrid.d.ts +24 -0
- package/dist/chart/ChartEditor.d.cts +20 -0
- package/dist/chart/ChartEditor.d.ts +20 -0
- package/dist/chart/ChartInspector.d.cts +14 -0
- package/dist/chart/ChartInspector.d.ts +14 -0
- package/dist/chart/ChartStreamingView.d.cts +40 -0
- package/dist/chart/ChartStreamingView.d.ts +40 -0
- package/dist/chart/index.cjs +0 -1
- package/dist/chart/index.d.cts +7 -212
- package/dist/chart/index.d.ts +7 -212
- package/dist/chart/index.js +1 -2
- package/dist/chart/styles.d.cts +7 -0
- package/dist/chart/styles.d.ts +7 -0
- package/dist/chart/useChartEditor.d.cts +64 -0
- package/dist/chart/useChartEditor.d.ts +64 -0
- package/dist/chart-node/ChartNodeView.d.cts +27 -0
- package/dist/chart-node/ChartNodeView.d.ts +27 -0
- package/dist/chart-node/index.d.cts +1 -0
- package/dist/chart-node/index.d.ts +1 -0
- package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
- package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
- package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
- package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
- package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
- package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
- package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
- package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
- package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
- package/dist/commands/CommandPalette.d.cts +16 -0
- package/dist/commands/CommandPalette.d.ts +16 -0
- package/dist/commands/index.cjs +0 -1
- package/dist/commands/index.d.cts +3 -69
- package/dist/commands/index.d.ts +3 -69
- package/dist/commands/index.js +1 -2
- package/dist/commands/useCommandPalette.d.cts +24 -0
- package/dist/commands/useCommandPalette.d.ts +24 -0
- package/dist/commands/useCommandShortcuts.d.cts +26 -0
- package/dist/commands/useCommandShortcuts.d.ts +26 -0
- package/dist/components/BubbleMenu.d.cts +13 -0
- package/dist/components/BubbleMenu.d.ts +13 -0
- package/dist/components/EditorContent.d.cts +6 -0
- package/dist/components/EditorContent.d.ts +6 -0
- package/dist/components/ExportDocxButton.d.cts +12 -0
- package/dist/components/ExportDocxButton.d.ts +12 -0
- package/dist/components/MergePreview.d.cts +28 -0
- package/dist/components/MergePreview.d.ts +28 -0
- package/dist/components/OutlinePanel.d.cts +28 -0
- package/dist/components/OutlinePanel.d.ts +28 -0
- package/dist/components/StylesGallery.d.cts +31 -0
- package/dist/components/StylesGallery.d.ts +31 -0
- package/dist/components/TemplateRenderer.d.cts +26 -0
- package/dist/components/TemplateRenderer.d.ts +26 -0
- package/dist/components/VariableForm.d.cts +27 -0
- package/dist/components/VariableForm.d.ts +27 -0
- package/dist/effects/EffectParameters.d.cts +28 -0
- package/dist/effects/EffectParameters.d.ts +28 -0
- package/dist/effects/EffectThumbnail.d.cts +15 -0
- package/dist/effects/EffectThumbnail.d.ts +15 -0
- package/dist/effects/EffectsBrowser.d.cts +22 -0
- package/dist/effects/EffectsBrowser.d.ts +22 -0
- package/dist/effects/index.cjs +0 -1
- package/dist/effects/index.d.cts +4 -82
- package/dist/effects/index.d.ts +4 -82
- package/dist/effects/index.js +2 -3
- package/dist/effects/useEffects.d.cts +16 -0
- package/dist/effects/useEffects.d.ts +16 -0
- package/dist/find-replace/FindReplaceBar.d.cts +19 -0
- package/dist/find-replace/FindReplaceBar.d.ts +19 -0
- package/dist/find-replace/index.d.cts +2 -0
- package/dist/find-replace/index.d.ts +2 -0
- package/dist/find-replace/useFindReplace.d.cts +24 -0
- package/dist/find-replace/useFindReplace.d.ts +24 -0
- package/dist/generation/AssetMentionChips.d.cts +24 -0
- package/dist/generation/AssetMentionChips.d.ts +24 -0
- package/dist/generation/GenerationHistory.d.cts +43 -0
- package/dist/generation/GenerationHistory.d.ts +43 -0
- package/dist/generation/GenerationSettings.d.cts +26 -0
- package/dist/generation/GenerationSettings.d.ts +26 -0
- package/dist/generation/JobProgress.d.cts +14 -0
- package/dist/generation/JobProgress.d.ts +14 -0
- package/dist/generation/index.cjs +0 -1
- package/dist/generation/index.d.cts +5 -124
- package/dist/generation/index.d.ts +5 -124
- package/dist/generation/index.js +1 -2
- package/dist/generation/useGenerationPlan.d.cts +18 -0
- package/dist/generation/useGenerationPlan.d.ts +18 -0
- package/dist/hooks/useAgentToolProvider.d.cts +11 -0
- package/dist/hooks/useAgentToolProvider.d.ts +11 -0
- package/dist/hooks/useDismissGuard.d.cts +26 -0
- package/dist/hooks/useDismissGuard.d.ts +26 -0
- package/dist/hooks/useDocxExport.d.cts +14 -0
- package/dist/hooks/useDocxExport.d.ts +14 -0
- package/dist/hooks/useEditor.d.cts +20 -0
- package/dist/hooks/useEditor.d.ts +20 -0
- package/dist/hooks/useFileImport.d.cts +23 -0
- package/dist/hooks/useFileImport.d.ts +23 -0
- package/dist/hooks/useHistory.d.cts +27 -0
- package/dist/hooks/useHistory.d.ts +27 -0
- package/dist/hooks/useHistoryDirty.d.cts +27 -0
- package/dist/hooks/useHistoryDirty.d.ts +27 -0
- package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
- package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
- package/dist/hooks/useMergePreview.d.cts +49 -0
- package/dist/hooks/useMergePreview.d.ts +49 -0
- package/dist/hooks/useNavigationGuard.d.cts +27 -0
- package/dist/hooks/useNavigationGuard.d.ts +27 -0
- package/dist/hooks/useOutline.d.cts +12 -0
- package/dist/hooks/useOutline.d.ts +12 -0
- package/dist/hooks/useParagraphStyles.d.cts +24 -0
- package/dist/hooks/useParagraphStyles.d.ts +24 -0
- package/dist/hooks/usePromptEditor.d.cts +57 -0
- package/dist/hooks/usePromptEditor.d.ts +57 -0
- package/dist/hooks/useToolBridge.d.cts +14 -0
- package/dist/hooks/useToolBridge.d.ts +14 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
- package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
- package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
- package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
- package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
- package/dist/image-editor/ControlSlider.d.cts +12 -0
- package/dist/image-editor/ControlSlider.d.ts +12 -0
- package/dist/image-editor/CurvesEditor.d.cts +15 -0
- package/dist/image-editor/CurvesEditor.d.ts +15 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
- package/dist/image-editor/Histogram.d.cts +14 -0
- package/dist/image-editor/Histogram.d.ts +14 -0
- package/dist/image-editor/ImageEditor.d.cts +22 -0
- package/dist/image-editor/ImageEditor.d.ts +22 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
- package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
- package/dist/image-editor/LayersPanel.d.cts +22 -0
- package/dist/image-editor/LayersPanel.d.ts +22 -0
- package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
- package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
- package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
- package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
- package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
- package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
- package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
- package/dist/image-editor/index.cjs +0 -1
- package/dist/image-editor/index.d.cts +17 -296
- package/dist/image-editor/index.d.ts +17 -296
- package/dist/image-editor/index.js +4 -5
- package/dist/image-editor/useImageEditor.d.cts +70 -0
- package/dist/image-editor/useImageEditor.d.ts +70 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +35 -802
- package/dist/index.d.ts +35 -802
- package/dist/index.js +9 -10
- package/dist/paint-editor/BrushPanel.d.cts +18 -0
- package/dist/paint-editor/BrushPanel.d.ts +18 -0
- package/dist/paint-editor/ColorPanel.d.cts +17 -0
- package/dist/paint-editor/ColorPanel.d.ts +17 -0
- package/dist/paint-editor/PaintCanvas.d.cts +40 -0
- package/dist/paint-editor/PaintCanvas.d.ts +40 -0
- package/dist/paint-editor/PaintEditor.d.cts +18 -0
- package/dist/paint-editor/PaintEditor.d.ts +18 -0
- package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
- package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
- package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
- package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
- package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
- package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
- package/dist/paint-editor/PaintToolbar.d.cts +17 -0
- package/dist/paint-editor/PaintToolbar.d.ts +17 -0
- package/dist/paint-editor/PaperPanel.d.cts +13 -0
- package/dist/paint-editor/PaperPanel.d.ts +13 -0
- package/dist/paint-editor/StickerPanel.d.cts +12 -0
- package/dist/paint-editor/StickerPanel.d.ts +12 -0
- package/dist/paint-editor/WetPanel.d.cts +14 -0
- package/dist/paint-editor/WetPanel.d.ts +14 -0
- package/dist/paint-editor/index.cjs +0 -1
- package/dist/paint-editor/index.d.cts +13 -211
- package/dist/paint-editor/index.d.ts +13 -211
- package/dist/paint-editor/index.js +3 -4
- package/dist/paint-editor/shared.d.cts +38 -0
- package/dist/paint-editor/shared.d.ts +38 -0
- package/dist/paint-editor/usePaintEditor.d.cts +22 -0
- package/dist/paint-editor/usePaintEditor.d.ts +22 -0
- package/dist/parameters/ParametersPanel.d.cts +27 -0
- package/dist/parameters/ParametersPanel.d.ts +27 -0
- package/dist/parameters/fields.d.cts +62 -0
- package/dist/parameters/fields.d.ts +62 -0
- package/dist/parameters/index.cjs +0 -1
- package/dist/parameters/index.d.cts +3 -121
- package/dist/parameters/index.d.ts +3 -121
- package/dist/parameters/index.js +1 -2
- package/dist/parameters/useParameters.d.cts +32 -0
- package/dist/parameters/useParameters.d.ts +32 -0
- package/dist/persistence/RecoveryPrompt.d.cts +20 -0
- package/dist/persistence/RecoveryPrompt.d.ts +20 -0
- package/dist/persistence/index.cjs +0 -1
- package/dist/persistence/index.d.cts +2 -77
- package/dist/persistence/index.d.ts +2 -77
- package/dist/persistence/index.js +1 -2
- package/dist/persistence/useAutosave.d.cts +54 -0
- package/dist/persistence/useAutosave.d.ts +54 -0
- package/dist/review/CommentButton.d.cts +12 -0
- package/dist/review/CommentButton.d.ts +12 -0
- package/dist/review/CommentsPanel.d.cts +21 -0
- package/dist/review/CommentsPanel.d.ts +21 -0
- package/dist/review/ReviewToolbar.d.cts +20 -0
- package/dist/review/ReviewToolbar.d.ts +20 -0
- package/dist/review/TrackedChangesList.d.cts +18 -0
- package/dist/review/TrackedChangesList.d.ts +18 -0
- package/dist/review/index.d.cts +6 -0
- package/dist/review/index.d.ts +6 -0
- package/dist/review/useDocumentCompare.d.cts +20 -0
- package/dist/review/useDocumentCompare.d.ts +20 -0
- package/dist/review/useReview.d.cts +32 -0
- package/dist/review/useReview.d.ts +32 -0
- package/dist/slots.d.cts +14 -0
- package/dist/slots.d.ts +14 -0
- package/dist/spreadsheet/FormulaHints.d.cts +24 -0
- package/dist/spreadsheet/FormulaHints.d.ts +24 -0
- package/dist/spreadsheet/NameManager.d.cts +14 -0
- package/dist/spreadsheet/NameManager.d.ts +14 -0
- package/dist/spreadsheet/SheetTabs.d.cts +13 -0
- package/dist/spreadsheet/SheetTabs.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
- package/dist/spreadsheet/index.cjs +0 -1
- package/dist/spreadsheet/index.d.cts +11 -309
- package/dist/spreadsheet/index.d.ts +11 -309
- package/dist/spreadsheet/index.js +1 -2
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
- package/dist/tables/InsertTableGrid.d.cts +25 -0
- package/dist/tables/InsertTableGrid.d.ts +25 -0
- package/dist/tables/TableBubbleMenu.d.cts +18 -0
- package/dist/tables/TableBubbleMenu.d.ts +18 -0
- package/dist/tables/TableToolbar.d.cts +23 -0
- package/dist/tables/TableToolbar.d.ts +23 -0
- package/dist/tables/index.d.cts +4 -0
- package/dist/tables/index.d.ts +4 -0
- package/dist/tables/useTableMenu.d.cts +17 -0
- package/dist/tables/useTableMenu.d.ts +17 -0
- package/dist/tokens/TokensPanel.d.cts +22 -0
- package/dist/tokens/TokensPanel.d.ts +22 -0
- package/dist/tokens/index.cjs +0 -1
- package/dist/tokens/index.d.cts +2 -54
- package/dist/tokens/index.d.ts +2 -54
- package/dist/tokens/index.js +0 -1
- package/dist/tokens/useTokens.d.cts +29 -0
- package/dist/tokens/useTokens.d.ts +29 -0
- package/dist/vector/VectorAppearancePanel.d.cts +14 -0
- package/dist/vector/VectorAppearancePanel.d.ts +14 -0
- package/dist/vector/VectorCanvas.d.cts +58 -0
- package/dist/vector/VectorCanvas.d.ts +58 -0
- package/dist/vector/VectorConnectorPanel.d.cts +12 -0
- package/dist/vector/VectorConnectorPanel.d.ts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
- package/dist/vector/VectorEditor.d.cts +23 -0
- package/dist/vector/VectorEditor.d.ts +23 -0
- package/dist/vector/VectorEffectsPanel.d.cts +13 -0
- package/dist/vector/VectorEffectsPanel.d.ts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
- package/dist/vector/VectorFramePanel.d.cts +12 -0
- package/dist/vector/VectorFramePanel.d.ts +12 -0
- package/dist/vector/VectorGeneratePanel.d.cts +15 -0
- package/dist/vector/VectorGeneratePanel.d.ts +15 -0
- package/dist/vector/VectorGradientEditor.d.cts +12 -0
- package/dist/vector/VectorGradientEditor.d.ts +12 -0
- package/dist/vector/VectorLensPanel.d.cts +12 -0
- package/dist/vector/VectorLensPanel.d.ts +12 -0
- package/dist/vector/VectorMaskPanel.d.cts +13 -0
- package/dist/vector/VectorMaskPanel.d.ts +13 -0
- package/dist/vector/VectorPagesPanel.d.cts +11 -0
- package/dist/vector/VectorPagesPanel.d.ts +11 -0
- package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
- package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
- package/dist/vector/VectorShadingPanel.d.cts +12 -0
- package/dist/vector/VectorShadingPanel.d.ts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
- package/dist/vector/VectorTextPanel.d.cts +14 -0
- package/dist/vector/VectorTextPanel.d.ts +14 -0
- package/dist/vector/VectorToolbar.d.cts +39 -0
- package/dist/vector/VectorToolbar.d.ts +39 -0
- package/dist/vector/VectorTracePanel.d.cts +12 -0
- package/dist/vector/VectorTracePanel.d.ts +12 -0
- package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
- package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
- package/dist/vector/index.cjs +14 -2
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +17 -4
- package/dist/vector/useVectorEditor.d.cts +40 -0
- package/dist/vector/useVectorEditor.d.ts +40 -0
- package/dist/video-editor/ClipInspector.d.cts +14 -0
- package/dist/video-editor/ClipInspector.d.ts +14 -0
- package/dist/video-editor/MediaBin.d.cts +18 -0
- package/dist/video-editor/MediaBin.d.ts +18 -0
- package/dist/video-editor/TranscriptPanel.d.cts +17 -0
- package/dist/video-editor/TranscriptPanel.d.ts +17 -0
- package/dist/video-editor/VideoEditor.d.cts +41 -0
- package/dist/video-editor/VideoEditor.d.ts +41 -0
- package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
- package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
- package/dist/video-editor/VideoPreview.d.cts +17 -0
- package/dist/video-editor/VideoPreview.d.ts +17 -0
- package/dist/video-editor/VideoScopes.d.cts +17 -0
- package/dist/video-editor/VideoScopes.d.ts +17 -0
- package/dist/video-editor/VideoTimeline.d.cts +15 -0
- package/dist/video-editor/VideoTimeline.d.ts +15 -0
- package/dist/video-editor/VideoTransport.d.cts +14 -0
- package/dist/video-editor/VideoTransport.d.ts +14 -0
- package/dist/video-editor/index.cjs +0 -1
- package/dist/video-editor/index.d.cts +10 -203
- package/dist/video-editor/index.d.ts +10 -203
- package/dist/video-editor/index.js +2 -3
- package/dist/video-editor/useVideoEditor.d.cts +42 -0
- package/dist/video-editor/useVideoEditor.d.ts +42 -0
- package/package.json +124 -49
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
- package/dist/animation-editor/index.cjs.map +0 -1
- package/dist/animation-editor/index.js.map +0 -1
- package/dist/canvas/index.cjs.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/chart/index.cjs.map +0 -1
- package/dist/chart/index.js.map +0 -1
- package/dist/chunk-34HEZX7J.js.map +0 -1
- package/dist/chunk-4FQXRPBN.js.map +0 -1
- package/dist/chunk-4ZC2WCUO.js.map +0 -1
- package/dist/chunk-I3E4KSA2.js.map +0 -1
- package/dist/chunk-MO354USR.js.map +0 -1
- package/dist/chunk-SIEOYRHX.js.map +0 -1
- package/dist/chunk-WOQ3H7KA.js.map +0 -1
- package/dist/chunk-XWFU2CSG.js.map +0 -1
- package/dist/chunk-ZQZAKUUM.js.map +0 -1
- package/dist/commands/index.cjs.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/effects/index.cjs.map +0 -1
- package/dist/effects/index.js.map +0 -1
- package/dist/generation/index.cjs.map +0 -1
- package/dist/generation/index.js.map +0 -1
- package/dist/image-editor/index.cjs.map +0 -1
- package/dist/image-editor/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/paint-editor/index.cjs.map +0 -1
- package/dist/paint-editor/index.js.map +0 -1
- package/dist/parameters/index.cjs.map +0 -1
- package/dist/parameters/index.js.map +0 -1
- package/dist/persistence/index.cjs.map +0 -1
- package/dist/persistence/index.js.map +0 -1
- package/dist/spreadsheet/index.cjs.map +0 -1
- package/dist/spreadsheet/index.js.map +0 -1
- package/dist/tokens/index.cjs.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/vector/index.cjs.map +0 -1
- package/dist/vector/index.js.map +0 -1
- package/dist/video-editor/index.cjs.map +0 -1
- package/dist/video-editor/index.js.map +0 -1
|
@@ -1,309 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
index?: number;
|
|
13
|
-
document?: Partial<SpreadsheetDocument>;
|
|
14
|
-
activate?: boolean;
|
|
15
|
-
}) => string;
|
|
16
|
-
renameSheet: (idOrName: string, newName: string) => void;
|
|
17
|
-
moveSheet: (idOrName: string, toIndex: number) => boolean;
|
|
18
|
-
deleteSheet: (idOrName: string) => boolean;
|
|
19
|
-
duplicateSheet: (idOrName: string, options?: {
|
|
20
|
-
name?: string;
|
|
21
|
-
index?: number;
|
|
22
|
-
activate?: boolean;
|
|
23
|
-
}) => string | null;
|
|
24
|
-
defineName: (name: string, refersTo: string, options?: SpreadsheetNameScope & {
|
|
25
|
-
comment?: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
renameName: (oldName: string, newName: string, options?: SpreadsheetNameScope) => void;
|
|
28
|
-
deleteName: (name: string, options?: SpreadsheetNameScope) => boolean;
|
|
29
|
-
viewModel: _pixerate_editor.SpreadsheetViewModel;
|
|
30
|
-
/** The sheets in tab order (see `SpreadsheetController.getSheets`). */
|
|
31
|
-
sheets: _pixerate_editor.SpreadsheetSheetInfo[];
|
|
32
|
-
activeSheetId: string;
|
|
33
|
-
/** Defined names (see `SpreadsheetController.getNames`). */
|
|
34
|
-
names: _pixerate_editor.SpreadsheetNameInfo[];
|
|
35
|
-
mergeCells: (range?: CellRange | null) => boolean;
|
|
36
|
-
sortRows: (keys: _pixerate_editor.SortKey[], options?: {
|
|
37
|
-
range?: CellRange | null;
|
|
38
|
-
}) => boolean;
|
|
39
|
-
getFilterState: () => _pixerate_editor.SpreadsheetFilterState;
|
|
40
|
-
setFilterRules: (rules: _pixerate_editor.NewFilterRule[]) => void;
|
|
41
|
-
addFilterRule: (rule: _pixerate_editor.NewFilterRule) => string;
|
|
42
|
-
updateFilterRule: (ruleId: string, changes: Partial<Omit<_pixerate_editor.FilterRule, "id">>) => void;
|
|
43
|
-
removeFilterRule: (ruleId: string) => void;
|
|
44
|
-
clearFilters: () => void;
|
|
45
|
-
setFiltersEnabled: (enabled: boolean) => void;
|
|
46
|
-
toggleFilters: () => void;
|
|
47
|
-
setHeaderRowCount: (count: number) => void;
|
|
48
|
-
setFooterRowCount: (count: number) => void;
|
|
49
|
-
setHeaderColumnCount: (count: number) => void;
|
|
50
|
-
setFrozenRowCount: (count: number) => void;
|
|
51
|
-
setFrozenColumnCount: (count: number) => void;
|
|
52
|
-
hideRows: (indices: number[]) => void;
|
|
53
|
-
unhideRows: (indices: number[]) => void;
|
|
54
|
-
hideColumns: (indices: number[]) => void;
|
|
55
|
-
unhideColumns: (indices: number[]) => void;
|
|
56
|
-
unhideAll: () => void;
|
|
57
|
-
getMerges: () => CellRange[];
|
|
58
|
-
getMergeAt: (row: number, col: number) => CellRange | null;
|
|
59
|
-
unmergeCells: (range?: CellRange | null) => boolean;
|
|
60
|
-
autofill: (source: CellRange, target: CellRange) => boolean;
|
|
61
|
-
groupRowsBy: (colId: string, summaries?: _pixerate_editor.GroupSummary[]) => void;
|
|
62
|
-
ungroupRows: () => void;
|
|
63
|
-
setGroupSummary: (colId: string, aggregate: _pixerate_editor.GroupAggregate | null) => void;
|
|
64
|
-
setGroupCollapsed: (key: string, collapsed: boolean) => void;
|
|
65
|
-
toggleGroupCollapsed: (key: string) => void;
|
|
66
|
-
getGroups: () => _pixerate_editor.SpreadsheetRowGroup[];
|
|
67
|
-
transposeRange: (range?: CellRange | null) => boolean;
|
|
68
|
-
setCellNumberFormat: (range: CellRange | null, code: string | null) => boolean;
|
|
69
|
-
setColumnNumberFormat: (colId: string, code: string | null) => void;
|
|
70
|
-
exportToCsv: (options?: _pixerate_editor.CsvExportOptions) => string;
|
|
71
|
-
importFromCsv: (csv: string, options?: _pixerate_editor.CsvImportOptions) => void;
|
|
72
|
-
copyToClipboardData: (range?: CellRange | null) => _pixerate_editor.SpreadsheetClipboardData;
|
|
73
|
-
pasteClipboardData: (source: _pixerate_editor.SpreadsheetClipboardSource, target?: _pixerate_editor.CellPosition) => boolean;
|
|
74
|
-
getConditionalFormats: () => _pixerate_editor.ConditionalFormatRule[];
|
|
75
|
-
addConditionalFormat: (rule: _pixerate_editor.NewConditionalFormatRule, options?: {
|
|
76
|
-
priority?: "first" | "last";
|
|
77
|
-
}) => string;
|
|
78
|
-
updateConditionalFormat: (id: string, changes: Partial<_pixerate_editor.NewConditionalFormatRule>) => boolean;
|
|
79
|
-
deleteConditionalFormat: (id: string) => boolean;
|
|
80
|
-
moveConditionalFormat: (id: string, to: number | {
|
|
81
|
-
by: number;
|
|
82
|
-
}) => boolean;
|
|
83
|
-
clearConditionalFormats: (range?: CellRange | null) => void;
|
|
84
|
-
getConditionalFormatOverlay: () => _pixerate_editor.ConditionalFormatOverlay;
|
|
85
|
-
getConditionalFormat: (row: number, col: number) => _pixerate_editor.ConditionalCellFormat | undefined;
|
|
86
|
-
getDataValidations: () => _pixerate_editor.DataValidationRule[];
|
|
87
|
-
getDataValidationAt: (row: number, col: number) => _pixerate_editor.DataValidationRule | undefined;
|
|
88
|
-
addDataValidation: (rule: _pixerate_editor.NewDataValidationRule) => string;
|
|
89
|
-
updateDataValidation: (id: string, changes: Partial<_pixerate_editor.NewDataValidationRule>) => boolean;
|
|
90
|
-
deleteDataValidation: (id: string) => boolean;
|
|
91
|
-
clearDataValidation: (range?: CellRange | null) => void;
|
|
92
|
-
validateCellInput: (row: number, col: number, raw: string) => _pixerate_editor.DataValidationResult;
|
|
93
|
-
getValidationListValues: (row: number, col: number) => string[] | null;
|
|
94
|
-
findInvalidCells: () => _pixerate_editor.CellPosition[];
|
|
95
|
-
setInvalidDataCircles: (show: boolean) => void;
|
|
96
|
-
getInvalidDataCircles: () => boolean;
|
|
97
|
-
isInvalidDataCircled: (row: number, col: number) => boolean;
|
|
98
|
-
document: SpreadsheetDocument;
|
|
99
|
-
activeCell: CellCoordinate | null;
|
|
100
|
-
selectedRange: CellRange | null;
|
|
101
|
-
editingCell: CellCoordinate | null;
|
|
102
|
-
draftValue: string;
|
|
103
|
-
setDraftValue: (value: string) => void;
|
|
104
|
-
validationPrompt: SpreadsheetValidationPrompt | null;
|
|
105
|
-
resolveValidationPrompt: (action: SpreadsheetValidationAction) => void;
|
|
106
|
-
commitCellInput: (rowId: string, colId: string, raw: string) => SpreadsheetCommitResult;
|
|
107
|
-
controller: SpreadsheetController;
|
|
108
|
-
getCell: (rowId: string, colId: string) => _pixerate_editor.CellData;
|
|
109
|
-
setCellValue: (rowId: string, colId: string, raw: string) => void;
|
|
110
|
-
selectCell: (row: number, col: number, extendSelection?: boolean) => void;
|
|
111
|
-
selectRange: (range: CellRange) => void;
|
|
112
|
-
startEditing: (row?: number, col?: number, initialVal?: string) => void;
|
|
113
|
-
commitEditing: (val?: string) => SpreadsheetCommitResult;
|
|
114
|
-
cancelEditing: () => void;
|
|
115
|
-
moveCursor: (dir: "up" | "down" | "left" | "right", extend?: boolean) => void;
|
|
116
|
-
insertColumn: (index: number, config?: Partial<SpreadsheetColumn>) => void;
|
|
117
|
-
deleteColumn: (colId: string) => void;
|
|
118
|
-
insertRow: (index: number, config?: Partial<SpreadsheetRow>) => void;
|
|
119
|
-
deleteRow: (rowId: string) => void;
|
|
120
|
-
setColumnWidth: (colId: string, width: number) => void;
|
|
121
|
-
autoFitColumnWidth: (colId: string, customWidth?: number) => void;
|
|
122
|
-
loadDocument: (document: SpreadsheetDocument) => void;
|
|
123
|
-
syncWithDataSource: () => void;
|
|
124
|
-
registerDataSource: (ds: SpreadsheetDataSource) => void;
|
|
125
|
-
setPrimaryDataSource: (id: string | undefined) => void;
|
|
126
|
-
recalculateAll: () => void;
|
|
127
|
-
exportToTsv: (range?: CellRange | null) => string;
|
|
128
|
-
importFromTsv: (data: string) => void;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
interface SpreadsheetEditorProps {
|
|
132
|
-
state?: ReturnType<typeof useSpreadsheetEditor>;
|
|
133
|
-
readOnly?: boolean;
|
|
134
|
-
customCellRenderer?: (props: {
|
|
135
|
-
row: SpreadsheetRow;
|
|
136
|
-
col: SpreadsheetColumn;
|
|
137
|
-
cell: CellData;
|
|
138
|
-
}) => React__default.ReactNode;
|
|
139
|
-
onAddColumnClick?: () => void;
|
|
140
|
-
onColumnHeaderClick?: (col: SpreadsheetColumn) => void;
|
|
141
|
-
onColumnResize?: (colId: string, width: number) => void;
|
|
142
|
-
/** Show the sheet tabs bar under the grid (add, switch, rename, reorder, delete sheets). */
|
|
143
|
-
showSheetTabs?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Render only the rows and columns in (or near) view. `'auto'` (default)
|
|
146
|
-
* virtualises sheets with more than 200 displayed rows or 60 columns;
|
|
147
|
-
* `true` / `false` force it.
|
|
148
|
-
*/
|
|
149
|
-
virtualize?: boolean | 'auto';
|
|
150
|
-
}
|
|
151
|
-
declare const SpreadsheetEditor: React__default.FC<SpreadsheetEditorProps>;
|
|
152
|
-
|
|
153
|
-
interface SpreadsheetContextMenuProps {
|
|
154
|
-
items: SpreadsheetMenuItem[];
|
|
155
|
-
x: number;
|
|
156
|
-
y: number;
|
|
157
|
-
onClose: () => void;
|
|
158
|
-
/** Accessible name of the menu (default "Table actions"). */
|
|
159
|
-
ariaLabel?: string;
|
|
160
|
-
/** Opens a panel for items with `panel` (conditional formatting, data validation). */
|
|
161
|
-
onOpenPanel?: (panel: SpreadsheetPanelId) => void;
|
|
162
|
-
}
|
|
163
|
-
/** The table context menu (sort, filter, freeze, hide, merge, categories, transpose). */
|
|
164
|
-
declare const SpreadsheetContextMenu: React__default.FC<SpreadsheetContextMenuProps>;
|
|
165
|
-
|
|
166
|
-
interface SpreadsheetGroupRowProps {
|
|
167
|
-
group: SpreadsheetRowGroup;
|
|
168
|
-
columns: SpreadsheetViewColumn[];
|
|
169
|
-
/** Column the rows are grouped by: shows the group label and toggle. */
|
|
170
|
-
groupColId: string;
|
|
171
|
-
onToggle: (key: string) => void;
|
|
172
|
-
/** Render a trailing cell for the "add column" column. */
|
|
173
|
-
trailingCell?: boolean;
|
|
174
|
-
/** Every displayed column, when `columns` is a virtualised window of them (picks the label column). */
|
|
175
|
-
labelColumns?: SpreadsheetViewColumn[];
|
|
176
|
-
/** Virtualised: columns before the left spacer (the frozen ones), and the spacers' widths. */
|
|
177
|
-
leadingColumns?: number;
|
|
178
|
-
leftSpace?: number;
|
|
179
|
-
rightSpace?: number;
|
|
180
|
-
}
|
|
181
|
-
/** A category header row: collapse toggle, label, row count and per-column summaries. */
|
|
182
|
-
declare const SpreadsheetGroupRow: React__default.FC<SpreadsheetGroupRowProps>;
|
|
183
|
-
|
|
184
|
-
type SpreadsheetState$1 = ReturnType<typeof useSpreadsheetEditor>;
|
|
185
|
-
/**
|
|
186
|
-
* Copy and paste for the grid. Copy writes TSV, an HTML table and the
|
|
187
|
-
* lossless `application/x.pixerate.spreadsheet+json` format; paste prefers
|
|
188
|
-
* that format, then HTML, then TSV.
|
|
189
|
-
*
|
|
190
|
-
* The listeners are on `document`: with no text selection the browser fires
|
|
191
|
-
* `copy`/`paste` at `<body>`, not at the focused grid. Text inputs inside the
|
|
192
|
-
* grid keep native copy/paste.
|
|
193
|
-
*/
|
|
194
|
-
declare function useSpreadsheetClipboard(gridRef: RefObject<HTMLElement | null>, state: SpreadsheetState$1, readOnly: boolean): {
|
|
195
|
-
copyShortcutFallback: () => void;
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* Fill handle dragging: press on the handle, move over cells, release to
|
|
199
|
-
* autofill from the selection into the dragged range (one undo step).
|
|
200
|
-
*/
|
|
201
|
-
declare function useFillHandle(state: SpreadsheetState$1): {
|
|
202
|
-
fillTarget: CellRange | null;
|
|
203
|
-
isFilling: boolean;
|
|
204
|
-
startFill: (e: {
|
|
205
|
-
preventDefault(): void;
|
|
206
|
-
stopPropagation(): void;
|
|
207
|
-
}) => void;
|
|
208
|
-
extendFill: (row: number, col: number) => void;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
interface FormulaHintsProps {
|
|
212
|
-
/** The input being edited (a cell editor or the formula bar). */
|
|
213
|
-
inputRef: React__default.RefObject<HTMLInputElement | null>;
|
|
214
|
-
/** The input's current value. */
|
|
215
|
-
value: string;
|
|
216
|
-
/** Called with the new value when a suggestion is accepted. */
|
|
217
|
-
onAccept: (value: string) => void;
|
|
218
|
-
/** Maximum number of function suggestions (default 8). */
|
|
219
|
-
limit?: number;
|
|
220
|
-
/** Defined names to suggest too (e.g. `controller.getNameSuggestions()`). */
|
|
221
|
-
names?: readonly FormulaNameSuggestionSource[];
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Formula autocomplete for an input: while the value starts with `=`, lists
|
|
225
|
-
* functions matching the name at the caret (name, signature, description) and,
|
|
226
|
-
* inside a call, shows the signature with the current argument highlighted.
|
|
227
|
-
*
|
|
228
|
-
* Keys are handled on the input itself, before the grid sees them: ArrowUp /
|
|
229
|
-
* ArrowDown move the selection, Tab accepts it, Escape closes the list.
|
|
230
|
-
* Enter is left alone so it still commits the cell.
|
|
231
|
-
*/
|
|
232
|
-
declare const FormulaHints: React__default.FC<FormulaHintsProps>;
|
|
233
|
-
|
|
234
|
-
interface SheetTabsProps {
|
|
235
|
-
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
236
|
-
readOnly?: boolean;
|
|
237
|
-
className?: string;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* The workbook's sheet tabs: click to switch, double-click to rename, drag
|
|
241
|
-
* to reorder, right-click for insert / rename / duplicate / move / delete
|
|
242
|
-
* (delete asks to confirm), and a `+` button to add a sheet.
|
|
243
|
-
*/
|
|
244
|
-
declare const SheetTabs: React__default.FC<SheetTabsProps>;
|
|
245
|
-
|
|
246
|
-
interface NameManagerProps {
|
|
247
|
-
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
248
|
-
readOnly?: boolean;
|
|
249
|
-
onClose?: () => void;
|
|
250
|
-
className?: string;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* A simple Name Manager: lists defined names (name, current value, formula,
|
|
254
|
-
* scope) and adds, edits, renames and deletes them. Renaming a name rewrites
|
|
255
|
-
* the formulas that use it; deleting one leaves them showing `#NAME?`.
|
|
256
|
-
*/
|
|
257
|
-
declare const NameManager: React__default.FC<NameManagerProps>;
|
|
258
|
-
|
|
259
|
-
interface SpreadsheetValidationDialogProps {
|
|
260
|
-
prompt: SpreadsheetValidationPrompt;
|
|
261
|
-
onResolve: (action: SpreadsheetValidationAction) => void;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* The data validation alert: Stop (Retry / Cancel), Warning ("Continue?"
|
|
265
|
-
* Yes / No / Cancel) or Information (OK / Cancel), as in Excel.
|
|
266
|
-
*/
|
|
267
|
-
declare const SpreadsheetValidationDialog: React__default.FC<SpreadsheetValidationDialogProps>;
|
|
268
|
-
|
|
269
|
-
type SpreadsheetState = ReturnType<typeof useSpreadsheetEditor>;
|
|
270
|
-
interface SpreadsheetRulePanelProps {
|
|
271
|
-
state: SpreadsheetState;
|
|
272
|
-
onClose: () => void;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Conditional formatting manager: the sheet's rules in priority order (move,
|
|
276
|
-
* stop if true, delete) and a form to add a rule to a range.
|
|
277
|
-
*/
|
|
278
|
-
declare const SpreadsheetConditionalFormatPanel: React__default.FC<SpreadsheetRulePanelProps>;
|
|
279
|
-
/**
|
|
280
|
-
* Data validation manager: the sheet's rules (delete), a form to validate a
|
|
281
|
-
* range, and "circle invalid data".
|
|
282
|
-
*/
|
|
283
|
-
declare const SpreadsheetDataValidationPanel: React__default.FC<SpreadsheetRulePanelProps>;
|
|
284
|
-
|
|
285
|
-
interface SpreadsheetViewportOptions {
|
|
286
|
-
/** `'auto'` (default): virtualise large views only; `true` / `false` force it. */
|
|
287
|
-
virtualize?: boolean | 'auto';
|
|
288
|
-
/** Merged ranges, rendered whole when they cross the window's edge. */
|
|
289
|
-
merges?: readonly CellRange[];
|
|
290
|
-
/** Scrolled into view when it changes (virtualised views only). */
|
|
291
|
-
activeCell?: CellCoordinate | null;
|
|
292
|
-
overscanRows?: number;
|
|
293
|
-
overscanColumns?: number;
|
|
294
|
-
}
|
|
295
|
-
interface SpreadsheetViewportState {
|
|
296
|
-
metrics: SpreadsheetViewMetrics;
|
|
297
|
-
/** What to render; `virtual: false` renders every row and column. */
|
|
298
|
-
window: SpreadsheetViewWindow;
|
|
299
|
-
/** Attach to the scroll container's `onScroll`. */
|
|
300
|
-
onScroll: () => void;
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Virtualised rendering for `SpreadsheetEditor`: tracks the scroll
|
|
304
|
-
* container (`scrollRef`), works out the window of rows and columns to
|
|
305
|
-
* render, and scrolls the active cell into view.
|
|
306
|
-
*/
|
|
307
|
-
declare function useSpreadsheetViewport(scrollRef: RefObject<HTMLElement | null>, view: SpreadsheetViewModel, options?: SpreadsheetViewportOptions): SpreadsheetViewportState;
|
|
308
|
-
|
|
309
|
-
export { FormulaHints, type FormulaHintsProps, NameManager, type NameManagerProps, SheetTabs, type SheetTabsProps, SpreadsheetConditionalFormatPanel, SpreadsheetContextMenu, type SpreadsheetContextMenuProps, SpreadsheetDataValidationPanel, SpreadsheetEditor, type SpreadsheetEditorProps, SpreadsheetGroupRow, type SpreadsheetGroupRowProps, type SpreadsheetRulePanelProps, SpreadsheetValidationDialog, type SpreadsheetValidationDialogProps, type SpreadsheetViewportOptions, type SpreadsheetViewportState, useFillHandle, useSpreadsheetClipboard, useSpreadsheetEditor, useSpreadsheetViewport };
|
|
1
|
+
export * from './useSpreadsheetEditor.js';
|
|
2
|
+
export * from './SpreadsheetEditor.js';
|
|
3
|
+
export * from './SpreadsheetContextMenu.js';
|
|
4
|
+
export * from './SpreadsheetGroupRow.js';
|
|
5
|
+
export * from './useSpreadsheetTableInteractions.js';
|
|
6
|
+
export * from './FormulaHints.js';
|
|
7
|
+
export * from './SheetTabs.js';
|
|
8
|
+
export * from './NameManager.js';
|
|
9
|
+
export * from './SpreadsheetValidationDialog.js';
|
|
10
|
+
export * from './SpreadsheetRulePanels.js';
|
|
11
|
+
export * from './useSpreadsheetViewport.js';
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useSpreadsheetClipboard,
|
|
13
13
|
useSpreadsheetEditor,
|
|
14
14
|
useSpreadsheetViewport
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-GML6BYCN.js";
|
|
16
16
|
export {
|
|
17
17
|
FormulaHints,
|
|
18
18
|
NameManager,
|
|
@@ -28,4 +28,3 @@ export {
|
|
|
28
28
|
useSpreadsheetEditor,
|
|
29
29
|
useSpreadsheetViewport
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { SpreadsheetController, type SpreadsheetControllerOptions, type SpreadsheetDocument, type CellCoordinate, type CellRange, type SpreadsheetColumn, type SpreadsheetRow, type SpreadsheetDataSource, type SpreadsheetDocument as SheetDocument, type SpreadsheetNameScope, type SpreadsheetCommitResult, type SpreadsheetValidationAction, type SpreadsheetValidationPrompt } from '@pixerate/editor/spreadsheet';
|
|
2
|
+
export declare function useSpreadsheetEditor(options?: SpreadsheetControllerOptions): {
|
|
3
|
+
conditionalFormatOverlay: import("@pixerate/editor").ConditionalFormatOverlay;
|
|
4
|
+
undo: () => void;
|
|
5
|
+
redo: () => void;
|
|
6
|
+
setActiveSheet: (idOrName: string) => boolean;
|
|
7
|
+
addSheet: (options?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
index?: number;
|
|
10
|
+
document?: Partial<SheetDocument>;
|
|
11
|
+
activate?: boolean;
|
|
12
|
+
}) => string;
|
|
13
|
+
renameSheet: (idOrName: string, newName: string) => void;
|
|
14
|
+
moveSheet: (idOrName: string, toIndex: number) => boolean;
|
|
15
|
+
deleteSheet: (idOrName: string) => boolean;
|
|
16
|
+
duplicateSheet: (idOrName: string, options?: {
|
|
17
|
+
name?: string;
|
|
18
|
+
index?: number;
|
|
19
|
+
activate?: boolean;
|
|
20
|
+
}) => string | null;
|
|
21
|
+
defineName: (name: string, refersTo: string, options?: SpreadsheetNameScope & {
|
|
22
|
+
comment?: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
renameName: (oldName: string, newName: string, options?: SpreadsheetNameScope) => void;
|
|
25
|
+
deleteName: (name: string, options?: SpreadsheetNameScope) => boolean;
|
|
26
|
+
viewModel: import("@pixerate/editor").SpreadsheetViewModel;
|
|
27
|
+
/** The sheets in tab order (see `SpreadsheetController.getSheets`). */
|
|
28
|
+
sheets: import("@pixerate/editor").SpreadsheetSheetInfo[];
|
|
29
|
+
activeSheetId: string;
|
|
30
|
+
/** Defined names (see `SpreadsheetController.getNames`). */
|
|
31
|
+
names: import("@pixerate/editor").SpreadsheetNameInfo[];
|
|
32
|
+
mergeCells: (range?: CellRange | null) => boolean;
|
|
33
|
+
sortRows: (keys: import("@pixerate/editor").SortKey[], options?: {
|
|
34
|
+
range?: CellRange | null;
|
|
35
|
+
}) => boolean;
|
|
36
|
+
getFilterState: () => import("@pixerate/editor").SpreadsheetFilterState;
|
|
37
|
+
setFilterRules: (rules: import("@pixerate/editor").NewFilterRule[]) => void;
|
|
38
|
+
addFilterRule: (rule: import("@pixerate/editor").NewFilterRule) => string;
|
|
39
|
+
updateFilterRule: (ruleId: string, changes: Partial<Omit<import("@pixerate/editor").FilterRule, "id">>) => void;
|
|
40
|
+
removeFilterRule: (ruleId: string) => void;
|
|
41
|
+
clearFilters: () => void;
|
|
42
|
+
setFiltersEnabled: (enabled: boolean) => void;
|
|
43
|
+
toggleFilters: () => void;
|
|
44
|
+
setHeaderRowCount: (count: number) => void;
|
|
45
|
+
setFooterRowCount: (count: number) => void;
|
|
46
|
+
setHeaderColumnCount: (count: number) => void;
|
|
47
|
+
setFrozenRowCount: (count: number) => void;
|
|
48
|
+
setFrozenColumnCount: (count: number) => void;
|
|
49
|
+
hideRows: (indices: number[]) => void;
|
|
50
|
+
unhideRows: (indices: number[]) => void;
|
|
51
|
+
hideColumns: (indices: number[]) => void;
|
|
52
|
+
unhideColumns: (indices: number[]) => void;
|
|
53
|
+
unhideAll: () => void;
|
|
54
|
+
getMerges: () => CellRange[];
|
|
55
|
+
getMergeAt: (row: number, col: number) => CellRange | null;
|
|
56
|
+
unmergeCells: (range?: CellRange | null) => boolean;
|
|
57
|
+
autofill: (source: CellRange, target: CellRange) => boolean;
|
|
58
|
+
groupRowsBy: (colId: string, summaries?: import("@pixerate/editor").GroupSummary[]) => void;
|
|
59
|
+
ungroupRows: () => void;
|
|
60
|
+
setGroupSummary: (colId: string, aggregate: import("@pixerate/editor").GroupAggregate | null) => void;
|
|
61
|
+
setGroupCollapsed: (key: string, collapsed: boolean) => void;
|
|
62
|
+
toggleGroupCollapsed: (key: string) => void;
|
|
63
|
+
getGroups: () => import("@pixerate/editor").SpreadsheetRowGroup[];
|
|
64
|
+
transposeRange: (range?: CellRange | null) => boolean;
|
|
65
|
+
setCellNumberFormat: (range: CellRange | null, code: string | null) => boolean;
|
|
66
|
+
setColumnNumberFormat: (colId: string, code: string | null) => void;
|
|
67
|
+
exportToCsv: (options?: import("@pixerate/editor").CsvExportOptions) => string;
|
|
68
|
+
importFromCsv: (csv: string, options?: import("@pixerate/editor").CsvImportOptions) => void;
|
|
69
|
+
copyToClipboardData: (range?: CellRange | null) => import("@pixerate/editor").SpreadsheetClipboardData;
|
|
70
|
+
pasteClipboardData: (source: import("@pixerate/editor").SpreadsheetClipboardSource, target?: import("@pixerate/editor").CellPosition) => boolean;
|
|
71
|
+
getConditionalFormats: () => import("@pixerate/editor").ConditionalFormatRule[];
|
|
72
|
+
addConditionalFormat: (rule: import("@pixerate/editor").NewConditionalFormatRule, options?: {
|
|
73
|
+
priority?: "first" | "last";
|
|
74
|
+
}) => string;
|
|
75
|
+
updateConditionalFormat: (id: string, changes: Partial<import("@pixerate/editor").NewConditionalFormatRule>) => boolean;
|
|
76
|
+
deleteConditionalFormat: (id: string) => boolean;
|
|
77
|
+
moveConditionalFormat: (id: string, to: number | {
|
|
78
|
+
by: number;
|
|
79
|
+
}) => boolean;
|
|
80
|
+
clearConditionalFormats: (range?: CellRange | null) => void;
|
|
81
|
+
getConditionalFormatOverlay: () => import("@pixerate/editor").ConditionalFormatOverlay;
|
|
82
|
+
getConditionalFormat: (row: number, col: number) => import("@pixerate/editor").ConditionalCellFormat | undefined;
|
|
83
|
+
getDataValidations: () => import("@pixerate/editor").DataValidationRule[];
|
|
84
|
+
getDataValidationAt: (row: number, col: number) => import("@pixerate/editor").DataValidationRule | undefined;
|
|
85
|
+
addDataValidation: (rule: import("@pixerate/editor").NewDataValidationRule) => string;
|
|
86
|
+
updateDataValidation: (id: string, changes: Partial<import("@pixerate/editor").NewDataValidationRule>) => boolean;
|
|
87
|
+
deleteDataValidation: (id: string) => boolean;
|
|
88
|
+
clearDataValidation: (range?: CellRange | null) => void;
|
|
89
|
+
validateCellInput: (row: number, col: number, raw: string) => import("@pixerate/editor").DataValidationResult;
|
|
90
|
+
getValidationListValues: (row: number, col: number) => string[] | null;
|
|
91
|
+
findInvalidCells: () => import("@pixerate/editor").CellPosition[];
|
|
92
|
+
setInvalidDataCircles: (show: boolean) => void;
|
|
93
|
+
getInvalidDataCircles: () => boolean;
|
|
94
|
+
isInvalidDataCircled: (row: number, col: number) => boolean;
|
|
95
|
+
document: SpreadsheetDocument;
|
|
96
|
+
activeCell: CellCoordinate | null;
|
|
97
|
+
selectedRange: CellRange | null;
|
|
98
|
+
editingCell: CellCoordinate | null;
|
|
99
|
+
draftValue: string;
|
|
100
|
+
setDraftValue: (value: string) => void;
|
|
101
|
+
validationPrompt: SpreadsheetValidationPrompt | null;
|
|
102
|
+
resolveValidationPrompt: (action: SpreadsheetValidationAction) => void;
|
|
103
|
+
commitCellInput: (rowId: string, colId: string, raw: string) => SpreadsheetCommitResult;
|
|
104
|
+
controller: SpreadsheetController;
|
|
105
|
+
getCell: (rowId: string, colId: string) => import("@pixerate/editor").CellData;
|
|
106
|
+
setCellValue: (rowId: string, colId: string, raw: string) => void;
|
|
107
|
+
selectCell: (row: number, col: number, extendSelection?: boolean) => void;
|
|
108
|
+
selectRange: (range: CellRange) => void;
|
|
109
|
+
startEditing: (row?: number, col?: number, initialVal?: string) => void;
|
|
110
|
+
commitEditing: (val?: string) => SpreadsheetCommitResult;
|
|
111
|
+
cancelEditing: () => void;
|
|
112
|
+
moveCursor: (dir: "up" | "down" | "left" | "right", extend?: boolean) => void;
|
|
113
|
+
insertColumn: (index: number, config?: Partial<SpreadsheetColumn>) => void;
|
|
114
|
+
deleteColumn: (colId: string) => void;
|
|
115
|
+
insertRow: (index: number, config?: Partial<SpreadsheetRow>) => void;
|
|
116
|
+
deleteRow: (rowId: string) => void;
|
|
117
|
+
setColumnWidth: (colId: string, width: number) => void;
|
|
118
|
+
autoFitColumnWidth: (colId: string, customWidth?: number) => void;
|
|
119
|
+
loadDocument: (document: SpreadsheetDocument) => void;
|
|
120
|
+
syncWithDataSource: () => void;
|
|
121
|
+
registerDataSource: (ds: SpreadsheetDataSource) => void;
|
|
122
|
+
setPrimaryDataSource: (id: string | undefined) => void;
|
|
123
|
+
recalculateAll: () => void;
|
|
124
|
+
exportToTsv: (range?: CellRange | null) => string;
|
|
125
|
+
importFromTsv: (data: string) => void;
|
|
126
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { SpreadsheetController, type SpreadsheetControllerOptions, type SpreadsheetDocument, type CellCoordinate, type CellRange, type SpreadsheetColumn, type SpreadsheetRow, type SpreadsheetDataSource, type SpreadsheetDocument as SheetDocument, type SpreadsheetNameScope, type SpreadsheetCommitResult, type SpreadsheetValidationAction, type SpreadsheetValidationPrompt } from '@pixerate/editor/spreadsheet';
|
|
2
|
+
export declare function useSpreadsheetEditor(options?: SpreadsheetControllerOptions): {
|
|
3
|
+
conditionalFormatOverlay: import("@pixerate/editor").ConditionalFormatOverlay;
|
|
4
|
+
undo: () => void;
|
|
5
|
+
redo: () => void;
|
|
6
|
+
setActiveSheet: (idOrName: string) => boolean;
|
|
7
|
+
addSheet: (options?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
index?: number;
|
|
10
|
+
document?: Partial<SheetDocument>;
|
|
11
|
+
activate?: boolean;
|
|
12
|
+
}) => string;
|
|
13
|
+
renameSheet: (idOrName: string, newName: string) => void;
|
|
14
|
+
moveSheet: (idOrName: string, toIndex: number) => boolean;
|
|
15
|
+
deleteSheet: (idOrName: string) => boolean;
|
|
16
|
+
duplicateSheet: (idOrName: string, options?: {
|
|
17
|
+
name?: string;
|
|
18
|
+
index?: number;
|
|
19
|
+
activate?: boolean;
|
|
20
|
+
}) => string | null;
|
|
21
|
+
defineName: (name: string, refersTo: string, options?: SpreadsheetNameScope & {
|
|
22
|
+
comment?: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
renameName: (oldName: string, newName: string, options?: SpreadsheetNameScope) => void;
|
|
25
|
+
deleteName: (name: string, options?: SpreadsheetNameScope) => boolean;
|
|
26
|
+
viewModel: import("@pixerate/editor").SpreadsheetViewModel;
|
|
27
|
+
/** The sheets in tab order (see `SpreadsheetController.getSheets`). */
|
|
28
|
+
sheets: import("@pixerate/editor").SpreadsheetSheetInfo[];
|
|
29
|
+
activeSheetId: string;
|
|
30
|
+
/** Defined names (see `SpreadsheetController.getNames`). */
|
|
31
|
+
names: import("@pixerate/editor").SpreadsheetNameInfo[];
|
|
32
|
+
mergeCells: (range?: CellRange | null) => boolean;
|
|
33
|
+
sortRows: (keys: import("@pixerate/editor").SortKey[], options?: {
|
|
34
|
+
range?: CellRange | null;
|
|
35
|
+
}) => boolean;
|
|
36
|
+
getFilterState: () => import("@pixerate/editor").SpreadsheetFilterState;
|
|
37
|
+
setFilterRules: (rules: import("@pixerate/editor").NewFilterRule[]) => void;
|
|
38
|
+
addFilterRule: (rule: import("@pixerate/editor").NewFilterRule) => string;
|
|
39
|
+
updateFilterRule: (ruleId: string, changes: Partial<Omit<import("@pixerate/editor").FilterRule, "id">>) => void;
|
|
40
|
+
removeFilterRule: (ruleId: string) => void;
|
|
41
|
+
clearFilters: () => void;
|
|
42
|
+
setFiltersEnabled: (enabled: boolean) => void;
|
|
43
|
+
toggleFilters: () => void;
|
|
44
|
+
setHeaderRowCount: (count: number) => void;
|
|
45
|
+
setFooterRowCount: (count: number) => void;
|
|
46
|
+
setHeaderColumnCount: (count: number) => void;
|
|
47
|
+
setFrozenRowCount: (count: number) => void;
|
|
48
|
+
setFrozenColumnCount: (count: number) => void;
|
|
49
|
+
hideRows: (indices: number[]) => void;
|
|
50
|
+
unhideRows: (indices: number[]) => void;
|
|
51
|
+
hideColumns: (indices: number[]) => void;
|
|
52
|
+
unhideColumns: (indices: number[]) => void;
|
|
53
|
+
unhideAll: () => void;
|
|
54
|
+
getMerges: () => CellRange[];
|
|
55
|
+
getMergeAt: (row: number, col: number) => CellRange | null;
|
|
56
|
+
unmergeCells: (range?: CellRange | null) => boolean;
|
|
57
|
+
autofill: (source: CellRange, target: CellRange) => boolean;
|
|
58
|
+
groupRowsBy: (colId: string, summaries?: import("@pixerate/editor").GroupSummary[]) => void;
|
|
59
|
+
ungroupRows: () => void;
|
|
60
|
+
setGroupSummary: (colId: string, aggregate: import("@pixerate/editor").GroupAggregate | null) => void;
|
|
61
|
+
setGroupCollapsed: (key: string, collapsed: boolean) => void;
|
|
62
|
+
toggleGroupCollapsed: (key: string) => void;
|
|
63
|
+
getGroups: () => import("@pixerate/editor").SpreadsheetRowGroup[];
|
|
64
|
+
transposeRange: (range?: CellRange | null) => boolean;
|
|
65
|
+
setCellNumberFormat: (range: CellRange | null, code: string | null) => boolean;
|
|
66
|
+
setColumnNumberFormat: (colId: string, code: string | null) => void;
|
|
67
|
+
exportToCsv: (options?: import("@pixerate/editor").CsvExportOptions) => string;
|
|
68
|
+
importFromCsv: (csv: string, options?: import("@pixerate/editor").CsvImportOptions) => void;
|
|
69
|
+
copyToClipboardData: (range?: CellRange | null) => import("@pixerate/editor").SpreadsheetClipboardData;
|
|
70
|
+
pasteClipboardData: (source: import("@pixerate/editor").SpreadsheetClipboardSource, target?: import("@pixerate/editor").CellPosition) => boolean;
|
|
71
|
+
getConditionalFormats: () => import("@pixerate/editor").ConditionalFormatRule[];
|
|
72
|
+
addConditionalFormat: (rule: import("@pixerate/editor").NewConditionalFormatRule, options?: {
|
|
73
|
+
priority?: "first" | "last";
|
|
74
|
+
}) => string;
|
|
75
|
+
updateConditionalFormat: (id: string, changes: Partial<import("@pixerate/editor").NewConditionalFormatRule>) => boolean;
|
|
76
|
+
deleteConditionalFormat: (id: string) => boolean;
|
|
77
|
+
moveConditionalFormat: (id: string, to: number | {
|
|
78
|
+
by: number;
|
|
79
|
+
}) => boolean;
|
|
80
|
+
clearConditionalFormats: (range?: CellRange | null) => void;
|
|
81
|
+
getConditionalFormatOverlay: () => import("@pixerate/editor").ConditionalFormatOverlay;
|
|
82
|
+
getConditionalFormat: (row: number, col: number) => import("@pixerate/editor").ConditionalCellFormat | undefined;
|
|
83
|
+
getDataValidations: () => import("@pixerate/editor").DataValidationRule[];
|
|
84
|
+
getDataValidationAt: (row: number, col: number) => import("@pixerate/editor").DataValidationRule | undefined;
|
|
85
|
+
addDataValidation: (rule: import("@pixerate/editor").NewDataValidationRule) => string;
|
|
86
|
+
updateDataValidation: (id: string, changes: Partial<import("@pixerate/editor").NewDataValidationRule>) => boolean;
|
|
87
|
+
deleteDataValidation: (id: string) => boolean;
|
|
88
|
+
clearDataValidation: (range?: CellRange | null) => void;
|
|
89
|
+
validateCellInput: (row: number, col: number, raw: string) => import("@pixerate/editor").DataValidationResult;
|
|
90
|
+
getValidationListValues: (row: number, col: number) => string[] | null;
|
|
91
|
+
findInvalidCells: () => import("@pixerate/editor").CellPosition[];
|
|
92
|
+
setInvalidDataCircles: (show: boolean) => void;
|
|
93
|
+
getInvalidDataCircles: () => boolean;
|
|
94
|
+
isInvalidDataCircled: (row: number, col: number) => boolean;
|
|
95
|
+
document: SpreadsheetDocument;
|
|
96
|
+
activeCell: CellCoordinate | null;
|
|
97
|
+
selectedRange: CellRange | null;
|
|
98
|
+
editingCell: CellCoordinate | null;
|
|
99
|
+
draftValue: string;
|
|
100
|
+
setDraftValue: (value: string) => void;
|
|
101
|
+
validationPrompt: SpreadsheetValidationPrompt | null;
|
|
102
|
+
resolveValidationPrompt: (action: SpreadsheetValidationAction) => void;
|
|
103
|
+
commitCellInput: (rowId: string, colId: string, raw: string) => SpreadsheetCommitResult;
|
|
104
|
+
controller: SpreadsheetController;
|
|
105
|
+
getCell: (rowId: string, colId: string) => import("@pixerate/editor").CellData;
|
|
106
|
+
setCellValue: (rowId: string, colId: string, raw: string) => void;
|
|
107
|
+
selectCell: (row: number, col: number, extendSelection?: boolean) => void;
|
|
108
|
+
selectRange: (range: CellRange) => void;
|
|
109
|
+
startEditing: (row?: number, col?: number, initialVal?: string) => void;
|
|
110
|
+
commitEditing: (val?: string) => SpreadsheetCommitResult;
|
|
111
|
+
cancelEditing: () => void;
|
|
112
|
+
moveCursor: (dir: "up" | "down" | "left" | "right", extend?: boolean) => void;
|
|
113
|
+
insertColumn: (index: number, config?: Partial<SpreadsheetColumn>) => void;
|
|
114
|
+
deleteColumn: (colId: string) => void;
|
|
115
|
+
insertRow: (index: number, config?: Partial<SpreadsheetRow>) => void;
|
|
116
|
+
deleteRow: (rowId: string) => void;
|
|
117
|
+
setColumnWidth: (colId: string, width: number) => void;
|
|
118
|
+
autoFitColumnWidth: (colId: string, customWidth?: number) => void;
|
|
119
|
+
loadDocument: (document: SpreadsheetDocument) => void;
|
|
120
|
+
syncWithDataSource: () => void;
|
|
121
|
+
registerDataSource: (ds: SpreadsheetDataSource) => void;
|
|
122
|
+
setPrimaryDataSource: (id: string | undefined) => void;
|
|
123
|
+
recalculateAll: () => void;
|
|
124
|
+
exportToTsv: (range?: CellRange | null) => string;
|
|
125
|
+
importFromTsv: (data: string) => void;
|
|
126
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type CellRange } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.cjs';
|
|
4
|
+
type SpreadsheetState = ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
/**
|
|
6
|
+
* Copy and paste for the grid. Copy writes TSV, an HTML table and the
|
|
7
|
+
* lossless `application/x.pixerate.spreadsheet+json` format; paste prefers
|
|
8
|
+
* that format, then HTML, then TSV.
|
|
9
|
+
*
|
|
10
|
+
* The listeners are on `document`: with no text selection the browser fires
|
|
11
|
+
* `copy`/`paste` at `<body>`, not at the focused grid. Text inputs inside the
|
|
12
|
+
* grid keep native copy/paste.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useSpreadsheetClipboard(gridRef: RefObject<HTMLElement | null>, state: SpreadsheetState, readOnly: boolean): {
|
|
15
|
+
copyShortcutFallback: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Fill handle dragging: press on the handle, move over cells, release to
|
|
19
|
+
* autofill from the selection into the dragged range (one undo step).
|
|
20
|
+
*/
|
|
21
|
+
export declare function useFillHandle(state: SpreadsheetState): {
|
|
22
|
+
fillTarget: CellRange | null;
|
|
23
|
+
isFilling: boolean;
|
|
24
|
+
startFill: (e: {
|
|
25
|
+
preventDefault(): void;
|
|
26
|
+
stopPropagation(): void;
|
|
27
|
+
}) => void;
|
|
28
|
+
extendFill: (row: number, col: number) => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type CellRange } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.js';
|
|
4
|
+
type SpreadsheetState = ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
/**
|
|
6
|
+
* Copy and paste for the grid. Copy writes TSV, an HTML table and the
|
|
7
|
+
* lossless `application/x.pixerate.spreadsheet+json` format; paste prefers
|
|
8
|
+
* that format, then HTML, then TSV.
|
|
9
|
+
*
|
|
10
|
+
* The listeners are on `document`: with no text selection the browser fires
|
|
11
|
+
* `copy`/`paste` at `<body>`, not at the focused grid. Text inputs inside the
|
|
12
|
+
* grid keep native copy/paste.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useSpreadsheetClipboard(gridRef: RefObject<HTMLElement | null>, state: SpreadsheetState, readOnly: boolean): {
|
|
15
|
+
copyShortcutFallback: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Fill handle dragging: press on the handle, move over cells, release to
|
|
19
|
+
* autofill from the selection into the dragged range (one undo step).
|
|
20
|
+
*/
|
|
21
|
+
export declare function useFillHandle(state: SpreadsheetState): {
|
|
22
|
+
fillTarget: CellRange | null;
|
|
23
|
+
isFilling: boolean;
|
|
24
|
+
startFill: (e: {
|
|
25
|
+
preventDefault(): void;
|
|
26
|
+
stopPropagation(): void;
|
|
27
|
+
}) => void;
|
|
28
|
+
extendFill: (row: number, col: number) => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|