@pixerate/editor-react 0.90.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 +0 -1
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +2 -3
- 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,77 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface UseAutosaveOptions<T> {
|
|
5
|
-
storage: StorageAdapter;
|
|
6
|
-
/** Snapshot key (the meta lives at `<key>:meta`). */
|
|
7
|
-
key: string;
|
|
8
|
-
/** Reads the current document (the latest function is always used). */
|
|
9
|
-
getSnapshot: () => T;
|
|
10
|
-
serialize?: (snapshot: T) => string;
|
|
11
|
-
deserialize?: (text: string) => T;
|
|
12
|
-
/** Document name stored with the snapshot. */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** Change notifications, e.g. a `HistoryManager`. */
|
|
15
|
-
history?: RevisionChangeSource;
|
|
16
|
-
/** Saved-vs-current flag, e.g. `useHistoryDirty().tracker` or a `bindDirtyToHistory` binding. */
|
|
17
|
-
dirty?: DirtyFlagSource;
|
|
18
|
-
interval?: number;
|
|
19
|
-
debounceMs?: number;
|
|
20
|
-
retryBaseMs?: number;
|
|
21
|
-
retryMaxMs?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Whether the document has finished loading (default `true`). Snapshots start
|
|
24
|
-
* once this is true and any recovered snapshot was restored or discarded.
|
|
25
|
-
*/
|
|
26
|
-
ready?: boolean;
|
|
27
|
-
/** Look for an earlier session's snapshot on mount (default `true`). */
|
|
28
|
-
recover?: boolean;
|
|
29
|
-
/** Write pending changes on `pagehide` and when the tab is hidden (default `true`). */
|
|
30
|
-
flushOnHide?: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface UseAutosaveResult<T> {
|
|
33
|
-
status: AutosaveStatusInfo;
|
|
34
|
-
/** An earlier session's unsaved snapshot, until restored or discarded. */
|
|
35
|
-
recovery: AutosaveRecovery<T> | null;
|
|
36
|
-
/** True while the recovery check runs or a recovered snapshot awaits a decision. */
|
|
37
|
-
pendingRecovery: boolean;
|
|
38
|
-
/** Takes the recovered snapshot (apply it to the editor) and starts autosaving. */
|
|
39
|
-
restore: () => T | undefined;
|
|
40
|
-
/** Deletes the recovered snapshot and starts autosaving. */
|
|
41
|
-
discard: () => Promise<void>;
|
|
42
|
-
/** Writes pending changes now. */
|
|
43
|
-
flushNow: () => Promise<void>;
|
|
44
|
-
/** Call after an explicit save: marks the current revision saved and retires this session's snapshot. */
|
|
45
|
-
markClean: () => Promise<void>;
|
|
46
|
-
/** Records a change made outside `history`. */
|
|
47
|
-
notifyChange: () => void;
|
|
48
|
-
controller: AutosaveController<T> | null;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Crash-recovery autosave bound to a history and dirty flag, with page
|
|
52
|
-
* lifecycle flushing and a recovery check on mount (see
|
|
53
|
-
* `createAutosaveController` in `@pixerate/editor/persistence`). Render
|
|
54
|
-
* `<RecoveryPrompt>` with `recovery`, `restore` and `discard`.
|
|
55
|
-
*/
|
|
56
|
-
declare function useAutosave<T>(options: UseAutosaveOptions<T>): UseAutosaveResult<T>;
|
|
57
|
-
|
|
58
|
-
interface RecoveryPromptProps {
|
|
59
|
-
/** `useAutosave().recovery`; nothing renders while it is `null`. */
|
|
60
|
-
recovery: {
|
|
61
|
-
meta: RecoveryMeta;
|
|
62
|
-
} | null;
|
|
63
|
-
onRestore: () => void;
|
|
64
|
-
onDiscard: () => void;
|
|
65
|
-
/** Formats the snapshot time (default `toLocaleString`). */
|
|
66
|
-
formatTime?: (time: number) => string;
|
|
67
|
-
restoreLabel?: string;
|
|
68
|
-
discardLabel?: string;
|
|
69
|
-
className?: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* "Restore unsaved changes from <time>?" banner with Restore / Discard buttons
|
|
73
|
-
* (Tailwind + theme tokens).
|
|
74
|
-
*/
|
|
75
|
-
declare const RecoveryPrompt: React__default.FC<RecoveryPromptProps>;
|
|
76
|
-
|
|
77
|
-
export { RecoveryPrompt, type RecoveryPromptProps, type UseAutosaveOptions, type UseAutosaveResult, useAutosave };
|
|
1
|
+
export * from './useAutosave.js';
|
|
2
|
+
export * from './RecoveryPrompt.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type AutosaveController, type AutosaveRecovery, type AutosaveStatusInfo, type DirtyFlagSource, type RevisionChangeSource, type StorageAdapter } from '@pixerate/editor/persistence';
|
|
2
|
+
export interface UseAutosaveOptions<T> {
|
|
3
|
+
storage: StorageAdapter;
|
|
4
|
+
/** Snapshot key (the meta lives at `<key>:meta`). */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Reads the current document (the latest function is always used). */
|
|
7
|
+
getSnapshot: () => T;
|
|
8
|
+
serialize?: (snapshot: T) => string;
|
|
9
|
+
deserialize?: (text: string) => T;
|
|
10
|
+
/** Document name stored with the snapshot. */
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Change notifications, e.g. a `HistoryManager`. */
|
|
13
|
+
history?: RevisionChangeSource;
|
|
14
|
+
/** Saved-vs-current flag, e.g. `useHistoryDirty().tracker` or a `bindDirtyToHistory` binding. */
|
|
15
|
+
dirty?: DirtyFlagSource;
|
|
16
|
+
interval?: number;
|
|
17
|
+
debounceMs?: number;
|
|
18
|
+
retryBaseMs?: number;
|
|
19
|
+
retryMaxMs?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the document has finished loading (default `true`). Snapshots start
|
|
22
|
+
* once this is true and any recovered snapshot was restored or discarded.
|
|
23
|
+
*/
|
|
24
|
+
ready?: boolean;
|
|
25
|
+
/** Look for an earlier session's snapshot on mount (default `true`). */
|
|
26
|
+
recover?: boolean;
|
|
27
|
+
/** Write pending changes on `pagehide` and when the tab is hidden (default `true`). */
|
|
28
|
+
flushOnHide?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface UseAutosaveResult<T> {
|
|
31
|
+
status: AutosaveStatusInfo;
|
|
32
|
+
/** An earlier session's unsaved snapshot, until restored or discarded. */
|
|
33
|
+
recovery: AutosaveRecovery<T> | null;
|
|
34
|
+
/** True while the recovery check runs or a recovered snapshot awaits a decision. */
|
|
35
|
+
pendingRecovery: boolean;
|
|
36
|
+
/** Takes the recovered snapshot (apply it to the editor) and starts autosaving. */
|
|
37
|
+
restore: () => T | undefined;
|
|
38
|
+
/** Deletes the recovered snapshot and starts autosaving. */
|
|
39
|
+
discard: () => Promise<void>;
|
|
40
|
+
/** Writes pending changes now. */
|
|
41
|
+
flushNow: () => Promise<void>;
|
|
42
|
+
/** Call after an explicit save: marks the current revision saved and retires this session's snapshot. */
|
|
43
|
+
markClean: () => Promise<void>;
|
|
44
|
+
/** Records a change made outside `history`. */
|
|
45
|
+
notifyChange: () => void;
|
|
46
|
+
controller: AutosaveController<T> | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Crash-recovery autosave bound to a history and dirty flag, with page
|
|
50
|
+
* lifecycle flushing and a recovery check on mount (see
|
|
51
|
+
* `createAutosaveController` in `@pixerate/editor/persistence`). Render
|
|
52
|
+
* `<RecoveryPrompt>` with `recovery`, `restore` and `discard`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function useAutosave<T>(options: UseAutosaveOptions<T>): UseAutosaveResult<T>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type AutosaveController, type AutosaveRecovery, type AutosaveStatusInfo, type DirtyFlagSource, type RevisionChangeSource, type StorageAdapter } from '@pixerate/editor/persistence';
|
|
2
|
+
export interface UseAutosaveOptions<T> {
|
|
3
|
+
storage: StorageAdapter;
|
|
4
|
+
/** Snapshot key (the meta lives at `<key>:meta`). */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Reads the current document (the latest function is always used). */
|
|
7
|
+
getSnapshot: () => T;
|
|
8
|
+
serialize?: (snapshot: T) => string;
|
|
9
|
+
deserialize?: (text: string) => T;
|
|
10
|
+
/** Document name stored with the snapshot. */
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Change notifications, e.g. a `HistoryManager`. */
|
|
13
|
+
history?: RevisionChangeSource;
|
|
14
|
+
/** Saved-vs-current flag, e.g. `useHistoryDirty().tracker` or a `bindDirtyToHistory` binding. */
|
|
15
|
+
dirty?: DirtyFlagSource;
|
|
16
|
+
interval?: number;
|
|
17
|
+
debounceMs?: number;
|
|
18
|
+
retryBaseMs?: number;
|
|
19
|
+
retryMaxMs?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the document has finished loading (default `true`). Snapshots start
|
|
22
|
+
* once this is true and any recovered snapshot was restored or discarded.
|
|
23
|
+
*/
|
|
24
|
+
ready?: boolean;
|
|
25
|
+
/** Look for an earlier session's snapshot on mount (default `true`). */
|
|
26
|
+
recover?: boolean;
|
|
27
|
+
/** Write pending changes on `pagehide` and when the tab is hidden (default `true`). */
|
|
28
|
+
flushOnHide?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface UseAutosaveResult<T> {
|
|
31
|
+
status: AutosaveStatusInfo;
|
|
32
|
+
/** An earlier session's unsaved snapshot, until restored or discarded. */
|
|
33
|
+
recovery: AutosaveRecovery<T> | null;
|
|
34
|
+
/** True while the recovery check runs or a recovered snapshot awaits a decision. */
|
|
35
|
+
pendingRecovery: boolean;
|
|
36
|
+
/** Takes the recovered snapshot (apply it to the editor) and starts autosaving. */
|
|
37
|
+
restore: () => T | undefined;
|
|
38
|
+
/** Deletes the recovered snapshot and starts autosaving. */
|
|
39
|
+
discard: () => Promise<void>;
|
|
40
|
+
/** Writes pending changes now. */
|
|
41
|
+
flushNow: () => Promise<void>;
|
|
42
|
+
/** Call after an explicit save: marks the current revision saved and retires this session's snapshot. */
|
|
43
|
+
markClean: () => Promise<void>;
|
|
44
|
+
/** Records a change made outside `history`. */
|
|
45
|
+
notifyChange: () => void;
|
|
46
|
+
controller: AutosaveController<T> | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Crash-recovery autosave bound to a history and dirty flag, with page
|
|
50
|
+
* lifecycle flushing and a recovery check on mount (see
|
|
51
|
+
* `createAutosaveController` in `@pixerate/editor/persistence`). Render
|
|
52
|
+
* `<RecoveryPrompt>` with `recovery`, `restore` and `discard`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function useAutosave<T>(options: UseAutosaveOptions<T>): UseAutosaveResult<T>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface CommentButtonProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Adds a draft comment on the selection; drop it into a `BubbleMenu`. The
|
|
10
|
+
* draft is completed in `CommentsPanel`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CommentButton: React.FC<CommentButtonProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface CommentButtonProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Adds a draft comment on the selection; drop it into a `BubbleMenu`. The
|
|
10
|
+
* draft is completed in `CommentsPanel`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CommentButton: React.FC<CommentButtonProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type CommentStore, type ReviewAuthor } from "@pixerate/editor";
|
|
4
|
+
export interface CommentsPanelProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Defaults to the store of the editor's `Comments` extension. */
|
|
7
|
+
store?: CommentStore;
|
|
8
|
+
/** Author of replies. Defaults to the `Comments` extension's author. */
|
|
9
|
+
author?: ReviewAuthor;
|
|
10
|
+
/** Initially show resolved threads. */
|
|
11
|
+
showResolved?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
formatTime?: (timestamp: number) => string;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Lists comment threads with reply, resolve and delete actions. Clicking a
|
|
18
|
+
* thread selects its text in the editor. Threads with an empty body are
|
|
19
|
+
* drafts (e.g. created by `CommentButton`) and show a compose box.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CommentsPanel: React.FC<CommentsPanelProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type CommentStore, type ReviewAuthor } from "@pixerate/editor";
|
|
4
|
+
export interface CommentsPanelProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Defaults to the store of the editor's `Comments` extension. */
|
|
7
|
+
store?: CommentStore;
|
|
8
|
+
/** Author of replies. Defaults to the `Comments` extension's author. */
|
|
9
|
+
author?: ReviewAuthor;
|
|
10
|
+
/** Initially show resolved threads. */
|
|
11
|
+
showResolved?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
formatTime?: (timestamp: number) => string;
|
|
14
|
+
emptyMessage?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Lists comment threads with reply, resolve and delete actions. Clicking a
|
|
18
|
+
* thread selects its text in the editor. Threads with an empty body are
|
|
19
|
+
* drafts (e.g. created by `CommentButton`) and show a compose box.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CommentsPanel: React.FC<CommentsPanelProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface ReviewToolbarProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Show the current change's author and description (e.g. "Alice: Formatted:
|
|
8
|
+
* Bold"). Defaults to `true`.
|
|
9
|
+
*/
|
|
10
|
+
showDescription?: boolean;
|
|
11
|
+
/** Class of the description label. */
|
|
12
|
+
descriptionClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Toolbar for tracked changes: toggle tracking, step through changes
|
|
16
|
+
* (insertions, deletions, formatting and block changes, with a description
|
|
17
|
+
* of the current one), and accept or reject the current change or all
|
|
18
|
+
* changes.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ReviewToolbar: React.FC<ReviewToolbarProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface ReviewToolbarProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Show the current change's author and description (e.g. "Alice: Formatted:
|
|
8
|
+
* Bold"). Defaults to `true`.
|
|
9
|
+
*/
|
|
10
|
+
showDescription?: boolean;
|
|
11
|
+
/** Class of the description label. */
|
|
12
|
+
descriptionClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Toolbar for tracked changes: toggle tracking, step through changes
|
|
16
|
+
* (insertions, deletions, formatting and block changes, with a description
|
|
17
|
+
* of the current one), and accept or reject the current change or all
|
|
18
|
+
* changes.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ReviewToolbar: React.FC<ReviewToolbarProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface TrackedChangesListProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
itemClassName?: string;
|
|
7
|
+
activeItemClassName?: string;
|
|
8
|
+
/** Content shown when there are no changes. */
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Lists the document's tracked changes (insertions, deletions, moves,
|
|
13
|
+
* formatting and block changes) with their author and description, and
|
|
14
|
+
* accepts or rejects each one. A move is one entry: accepting or rejecting
|
|
15
|
+
* it resolves both its source and its destination. Clicking an entry
|
|
16
|
+
* selects the change in the editor.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TrackedChangesList: React.FC<TrackedChangesListProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface TrackedChangesListProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
itemClassName?: string;
|
|
7
|
+
activeItemClassName?: string;
|
|
8
|
+
/** Content shown when there are no changes. */
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Lists the document's tracked changes (insertions, deletions, moves,
|
|
13
|
+
* formatting and block changes) with their author and description, and
|
|
14
|
+
* accepts or rejects each one. A move is one entry: accepting or rejecting
|
|
15
|
+
* it resolves both its source and its destination. Clicking an entry
|
|
16
|
+
* selects the change in the editor.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TrackedChangesList: React.FC<TrackedChangesListProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type CompareSource, type CompareSummary, type EditorCompareOptions } from "@pixerate/editor";
|
|
3
|
+
export type { CompareSource, CompareSummary, EditorCompareOptions } from "@pixerate/editor";
|
|
4
|
+
export interface UseDocumentCompareResult {
|
|
5
|
+
/** Summary of the last comparison, or `null`. */
|
|
6
|
+
summary: CompareSummary | null;
|
|
7
|
+
/**
|
|
8
|
+
* Replaces the editor content with the comparison of two versions (nodes,
|
|
9
|
+
* JSON or HTML) as tracked changes, ready to review with `ReviewToolbar`.
|
|
10
|
+
* Returns the summary, or `null` without an editor.
|
|
11
|
+
*/
|
|
12
|
+
compare: (original: CompareSource, revised: CompareSource, options?: EditorCompareOptions) => CompareSummary | null;
|
|
13
|
+
/** Forgets the last summary. */
|
|
14
|
+
clear: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Compare two document versions into an editor using `TrackChanges`.
|
|
18
|
+
* `options` are defaults for every comparison.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDocumentCompare(editor: Editor | null | undefined, options?: EditorCompareOptions): UseDocumentCompareResult;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type CompareSource, type CompareSummary, type EditorCompareOptions } from "@pixerate/editor";
|
|
3
|
+
export type { CompareSource, CompareSummary, EditorCompareOptions } from "@pixerate/editor";
|
|
4
|
+
export interface UseDocumentCompareResult {
|
|
5
|
+
/** Summary of the last comparison, or `null`. */
|
|
6
|
+
summary: CompareSummary | null;
|
|
7
|
+
/**
|
|
8
|
+
* Replaces the editor content with the comparison of two versions (nodes,
|
|
9
|
+
* JSON or HTML) as tracked changes, ready to review with `ReviewToolbar`.
|
|
10
|
+
* Returns the summary, or `null` without an editor.
|
|
11
|
+
*/
|
|
12
|
+
compare: (original: CompareSource, revised: CompareSource, options?: EditorCompareOptions) => CompareSummary | null;
|
|
13
|
+
/** Forgets the last summary. */
|
|
14
|
+
clear: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Compare two document versions into an editor using `TrackChanges`.
|
|
18
|
+
* `options` are defaults for every comparison.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDocumentCompare(editor: Editor | null | undefined, options?: EditorCompareOptions): UseDocumentCompareResult;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type CommentStore, type CommentStoreSnapshot, type TrackChangesSnapshot, type TrackedChange } from "@pixerate/editor";
|
|
3
|
+
export interface UseCommentsResult extends CommentStoreSnapshot {
|
|
4
|
+
store: CommentStore | null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Subscribes to a comment store: pass the store itself, or an editor using
|
|
8
|
+
* the `Comments` extension (`null` while the editor is being created).
|
|
9
|
+
*/
|
|
10
|
+
export declare function useComments(source: Editor | CommentStore | null | undefined): UseCommentsResult;
|
|
11
|
+
export interface UseTrackChangesResult extends TrackChangesSnapshot {
|
|
12
|
+
currentChange: TrackedChange | null;
|
|
13
|
+
setEnabled: (enabled: boolean) => void;
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
accept: (id: string) => void;
|
|
16
|
+
reject: (id: string) => void;
|
|
17
|
+
acceptAll: () => void;
|
|
18
|
+
rejectAll: () => void;
|
|
19
|
+
next: () => void;
|
|
20
|
+
previous: () => void;
|
|
21
|
+
/** Selects a change in the editor. */
|
|
22
|
+
select: (id: string) => void;
|
|
23
|
+
/** Accepts a tracked move (both ends). */
|
|
24
|
+
acceptMove: (id: string) => void;
|
|
25
|
+
/** Rejects a tracked move (both ends). */
|
|
26
|
+
rejectMove: (id: string) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Subscribes to the tracked-change state of an editor using the
|
|
30
|
+
* `TrackChanges` extension and exposes its commands.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useTrackChanges(editor: Editor | null | undefined): UseTrackChangesResult;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type CommentStore, type CommentStoreSnapshot, type TrackChangesSnapshot, type TrackedChange } from "@pixerate/editor";
|
|
3
|
+
export interface UseCommentsResult extends CommentStoreSnapshot {
|
|
4
|
+
store: CommentStore | null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Subscribes to a comment store: pass the store itself, or an editor using
|
|
8
|
+
* the `Comments` extension (`null` while the editor is being created).
|
|
9
|
+
*/
|
|
10
|
+
export declare function useComments(source: Editor | CommentStore | null | undefined): UseCommentsResult;
|
|
11
|
+
export interface UseTrackChangesResult extends TrackChangesSnapshot {
|
|
12
|
+
currentChange: TrackedChange | null;
|
|
13
|
+
setEnabled: (enabled: boolean) => void;
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
accept: (id: string) => void;
|
|
16
|
+
reject: (id: string) => void;
|
|
17
|
+
acceptAll: () => void;
|
|
18
|
+
rejectAll: () => void;
|
|
19
|
+
next: () => void;
|
|
20
|
+
previous: () => void;
|
|
21
|
+
/** Selects a change in the editor. */
|
|
22
|
+
select: (id: string) => void;
|
|
23
|
+
/** Accepts a tracked move (both ends). */
|
|
24
|
+
acceptMove: (id: string) => void;
|
|
25
|
+
/** Rejects a tracked move (both ends). */
|
|
26
|
+
rejectMove: (id: string) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Subscribes to the tracked-change state of an editor using the
|
|
30
|
+
* `TrackChanges` extension and exposes its commands.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useTrackChanges(editor: Editor | null | undefined): UseTrackChangesResult;
|
package/dist/slots.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditorSlotsMap } from '@pixerate/editor';
|
|
3
|
+
export interface EditorSlotsProviderProps {
|
|
4
|
+
slots?: Partial<EditorSlotsMap>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Context provider allowing consumers to inject custom design system components into the editor.
|
|
9
|
+
*/
|
|
10
|
+
export declare function EditorSlotsProvider({ slots, children }: EditorSlotsProviderProps): React.JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Hook to access injected design system slots.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useEditorSlots(): EditorSlotsMap;
|
package/dist/slots.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditorSlotsMap } from '@pixerate/editor';
|
|
3
|
+
export interface EditorSlotsProviderProps {
|
|
4
|
+
slots?: Partial<EditorSlotsMap>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Context provider allowing consumers to inject custom design system components into the editor.
|
|
9
|
+
*/
|
|
10
|
+
export declare function EditorSlotsProvider({ slots, children }: EditorSlotsProviderProps): React.JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Hook to access injected design system slots.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useEditorSlots(): EditorSlotsMap;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormulaNameSuggestionSource } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface FormulaHintsProps {
|
|
4
|
+
/** The input being edited (a cell editor or the formula bar). */
|
|
5
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
6
|
+
/** The input's current value. */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Called with the new value when a suggestion is accepted. */
|
|
9
|
+
onAccept: (value: string) => void;
|
|
10
|
+
/** Maximum number of function suggestions (default 8). */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Defined names to suggest too (e.g. `controller.getNameSuggestions()`). */
|
|
13
|
+
names?: readonly FormulaNameSuggestionSource[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Formula autocomplete for an input: while the value starts with `=`, lists
|
|
17
|
+
* functions matching the name at the caret (name, signature, description) and,
|
|
18
|
+
* inside a call, shows the signature with the current argument highlighted.
|
|
19
|
+
*
|
|
20
|
+
* Keys are handled on the input itself, before the grid sees them: ArrowUp /
|
|
21
|
+
* ArrowDown move the selection, Tab accepts it, Escape closes the list.
|
|
22
|
+
* Enter is left alone so it still commits the cell.
|
|
23
|
+
*/
|
|
24
|
+
export declare const FormulaHints: React.FC<FormulaHintsProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormulaNameSuggestionSource } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface FormulaHintsProps {
|
|
4
|
+
/** The input being edited (a cell editor or the formula bar). */
|
|
5
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
6
|
+
/** The input's current value. */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Called with the new value when a suggestion is accepted. */
|
|
9
|
+
onAccept: (value: string) => void;
|
|
10
|
+
/** Maximum number of function suggestions (default 8). */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Defined names to suggest too (e.g. `controller.getNameSuggestions()`). */
|
|
13
|
+
names?: readonly FormulaNameSuggestionSource[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Formula autocomplete for an input: while the value starts with `=`, lists
|
|
17
|
+
* functions matching the name at the caret (name, signature, description) and,
|
|
18
|
+
* inside a call, shows the signature with the current argument highlighted.
|
|
19
|
+
*
|
|
20
|
+
* Keys are handled on the input itself, before the grid sees them: ArrowUp /
|
|
21
|
+
* ArrowDown move the selection, Tab accepts it, Escape closes the list.
|
|
22
|
+
* Enter is left alone so it still commits the cell.
|
|
23
|
+
*/
|
|
24
|
+
export declare const FormulaHints: React.FC<FormulaHintsProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.cjs';
|
|
3
|
+
export interface NameManagerProps {
|
|
4
|
+
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A simple Name Manager: lists defined names (name, current value, formula,
|
|
11
|
+
* scope) and adds, edits, renames and deletes them. Renaming a name rewrites
|
|
12
|
+
* the formulas that use it; deleting one leaves them showing `#NAME?`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const NameManager: React.FC<NameManagerProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.js';
|
|
3
|
+
export interface NameManagerProps {
|
|
4
|
+
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A simple Name Manager: lists defined names (name, current value, formula,
|
|
11
|
+
* scope) and adds, edits, renames and deletes them. Renaming a name rewrites
|
|
12
|
+
* the formulas that use it; deleting one leaves them showing `#NAME?`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const NameManager: React.FC<NameManagerProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.cjs';
|
|
3
|
+
export interface SheetTabsProps {
|
|
4
|
+
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The workbook's sheet tabs: click to switch, double-click to rename, drag
|
|
10
|
+
* to reorder, right-click for insert / rename / duplicate / move / delete
|
|
11
|
+
* (delete asks to confirm), and a `+` button to add a sheet.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SheetTabs: React.FC<SheetTabsProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { useSpreadsheetEditor } from './useSpreadsheetEditor.js';
|
|
3
|
+
export interface SheetTabsProps {
|
|
4
|
+
state: ReturnType<typeof useSpreadsheetEditor>;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The workbook's sheet tabs: click to switch, double-click to rename, drag
|
|
10
|
+
* to reorder, right-click for insert / rename / duplicate / move / delete
|
|
11
|
+
* (delete asks to confirm), and a `+` button to add a sheet.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SheetTabs: React.FC<SheetTabsProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SpreadsheetMenuItem, type SpreadsheetPanelId } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface SpreadsheetContextMenuProps {
|
|
4
|
+
items: SpreadsheetMenuItem[];
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
/** Accessible name of the menu (default "Table actions"). */
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/** Opens a panel for items with `panel` (conditional formatting, data validation). */
|
|
11
|
+
onOpenPanel?: (panel: SpreadsheetPanelId) => void;
|
|
12
|
+
}
|
|
13
|
+
/** The table context menu (sort, filter, freeze, hide, merge, categories, transpose). */
|
|
14
|
+
export declare const SpreadsheetContextMenu: React.FC<SpreadsheetContextMenuProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SpreadsheetMenuItem, type SpreadsheetPanelId } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface SpreadsheetContextMenuProps {
|
|
4
|
+
items: SpreadsheetMenuItem[];
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
/** Accessible name of the menu (default "Table actions"). */
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/** Opens a panel for items with `panel` (conditional formatting, data validation). */
|
|
11
|
+
onOpenPanel?: (panel: SpreadsheetPanelId) => void;
|
|
12
|
+
}
|
|
13
|
+
/** The table context menu (sort, filter, freeze, hide, merge, categories, transpose). */
|
|
14
|
+
export declare const SpreadsheetContextMenu: React.FC<SpreadsheetContextMenuProps>;
|