@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ChartNodeViewMount, ChartNodeViewState } from '@pixerate/editor';
|
|
3
|
+
import type { ChartTheme } from '@pixerate/editor/chart';
|
|
4
|
+
export interface ChartNodeViewProps {
|
|
5
|
+
/** What the editor's `chart` node passes (see `ChartNodeViewState`). */
|
|
6
|
+
state: ChartNodeViewState;
|
|
7
|
+
/** Chart colours (default: the CSS-variable theme). */
|
|
8
|
+
theme?: Partial<ChartTheme>;
|
|
9
|
+
/** Show the data grid under the chart while editing (default `true`). */
|
|
10
|
+
showDataGrid?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A chart inside a rich-text document: read-only until clicked, then editable on the canvas
|
|
14
|
+
* with the data grid and the inspector in a panel below (side by side when there is room). "Done", Escape or moving the
|
|
15
|
+
* selection away closes it. Edits are written back to the document as undo steps.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ChartNodeView({ state, theme, showDataGrid }: ChartNodeViewProps): React.JSX.Element;
|
|
18
|
+
export interface ReactChartNodeViewOptions extends Omit<ChartNodeViewProps, 'state'> {
|
|
19
|
+
/** Draw something else for each chart (default `ChartNodeView`). */
|
|
20
|
+
component?: React.ComponentType<ChartNodeViewProps>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The `nodeView` for the core `chart` node, drawing `ChartNodeView` in its own React root:
|
|
24
|
+
* `createRichTextPreset({ chart: { nodeView: createReactChartNodeView() } })`. Works with any
|
|
25
|
+
* TipTap editor (it does not need `EditorContent`); app context does not reach the chart.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createReactChartNodeView(options?: ReactChartNodeViewOptions): ChartNodeViewMount;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ChartNodeViewMount, ChartNodeViewState } from '@pixerate/editor';
|
|
3
|
+
import type { ChartTheme } from '@pixerate/editor/chart';
|
|
4
|
+
export interface ChartNodeViewProps {
|
|
5
|
+
/** What the editor's `chart` node passes (see `ChartNodeViewState`). */
|
|
6
|
+
state: ChartNodeViewState;
|
|
7
|
+
/** Chart colours (default: the CSS-variable theme). */
|
|
8
|
+
theme?: Partial<ChartTheme>;
|
|
9
|
+
/** Show the data grid under the chart while editing (default `true`). */
|
|
10
|
+
showDataGrid?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A chart inside a rich-text document: read-only until clicked, then editable on the canvas
|
|
14
|
+
* with the data grid and the inspector in a panel below (side by side when there is room). "Done", Escape or moving the
|
|
15
|
+
* selection away closes it. Edits are written back to the document as undo steps.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ChartNodeView({ state, theme, showDataGrid }: ChartNodeViewProps): React.JSX.Element;
|
|
18
|
+
export interface ReactChartNodeViewOptions extends Omit<ChartNodeViewProps, 'state'> {
|
|
19
|
+
/** Draw something else for each chart (default `ChartNodeView`). */
|
|
20
|
+
component?: React.ComponentType<ChartNodeViewProps>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The `nodeView` for the core `chart` node, drawing `ChartNodeView` in its own React root:
|
|
24
|
+
* `createRichTextPreset({ chart: { nodeView: createReactChartNodeView() } })`. Works with any
|
|
25
|
+
* TipTap editor (it does not need `EditorContent`); app context does not reach the chart.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createReactChartNodeView(options?: ReactChartNodeViewOptions): ChartNodeViewMount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChartNodeView.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChartNodeView.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ParameterFieldControl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OTGJEYHV.js";
|
|
4
4
|
|
|
5
5
|
// src/effects/useEffects.ts
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
@@ -203,4 +203,3 @@ export {
|
|
|
203
203
|
EffectsBrowser,
|
|
204
204
|
EffectParameters
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-WOQ3H7KA.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaintGradientEditorView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AJCWF6SN.js";
|
|
4
4
|
import {
|
|
5
5
|
EffectParameters,
|
|
6
6
|
EffectsBrowser,
|
|
7
7
|
useEffectDescription,
|
|
8
8
|
useEffects
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5R67YSSD.js";
|
|
10
10
|
|
|
11
11
|
// src/image-editor/useImageEditor.ts
|
|
12
12
|
import { useRef, useState, useEffect, useCallback, useMemo } from "react";
|
|
@@ -3978,4 +3978,3 @@ export {
|
|
|
3978
3978
|
TypeOptionsBar,
|
|
3979
3979
|
ImageEditor
|
|
3980
3980
|
};
|
|
3981
|
-
//# sourceMappingURL=chunk-4FQXRPBN.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UseCommandPaletteResult } from './useCommandPalette.cjs';
|
|
3
|
+
export interface CommandPaletteProps {
|
|
4
|
+
/** State from `useCommandPalette`. */
|
|
5
|
+
palette: UseCommandPaletteResult;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
emptyMessage?: string;
|
|
8
|
+
/** Extra classes for the dialog panel. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Headless-styled command palette (Tailwind + theme tokens): a search box over the
|
|
13
|
+
* registry's commands showing each command's group, shortcut and, for disabled
|
|
14
|
+
* commands, the reason. Arrow keys move, Enter runs, Escape or a backdrop click closes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CommandPalette: React.FC<CommandPaletteProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UseCommandPaletteResult } from './useCommandPalette.js';
|
|
3
|
+
export interface CommandPaletteProps {
|
|
4
|
+
/** State from `useCommandPalette`. */
|
|
5
|
+
palette: UseCommandPaletteResult;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
emptyMessage?: string;
|
|
8
|
+
/** Extra classes for the dialog panel. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Headless-styled command palette (Tailwind + theme tokens): a search box over the
|
|
13
|
+
* registry's commands showing each command's group, shortcut and, for disabled
|
|
14
|
+
* commands, the reason. Arrow keys move, Enter runs, Escape or a backdrop click closes.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CommandPalette: React.FC<CommandPaletteProps>;
|
package/dist/commands/index.cjs
CHANGED
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface UseCommandPaletteOptions<TContext = any> extends CommandPaletteOptions<TContext> {
|
|
5
|
-
/** Chord that toggles the palette from anywhere, also while typing (e.g. `Mod+K`). */
|
|
6
|
-
hotkey?: string;
|
|
7
|
-
/** Element or window the hotkey listens on (default: `window`). */
|
|
8
|
-
hotkeyTarget?: Window | HTMLElement | null;
|
|
9
|
-
}
|
|
10
|
-
interface UseCommandPaletteResult extends CommandPaletteState {
|
|
11
|
-
controller: CommandPaletteController;
|
|
12
|
-
setOpen: (open: boolean) => void;
|
|
13
|
-
toggle: () => void;
|
|
14
|
-
setQuery: (query: string) => void;
|
|
15
|
-
setActiveIndex: (index: number) => void;
|
|
16
|
-
move: (delta: number) => void;
|
|
17
|
-
run: CommandPaletteController['run'];
|
|
18
|
-
runActive: CommandPaletteController['runActive'];
|
|
19
|
-
handleKeyDown: CommandPaletteController['handleKeyDown'];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Command palette state over a `CommandRegistry` (ranked rows with shortcuts and
|
|
23
|
-
* disabled reasons, active row, recents). Render it with `<CommandPalette palette={…} />`
|
|
24
|
-
* or your own UI. Options are read live; the registry identity is the dependency.
|
|
25
|
-
*/
|
|
26
|
-
declare function useCommandPalette<TContext = any>(registry: CommandRegistry<TContext>, options?: UseCommandPaletteOptions<TContext>): UseCommandPaletteResult;
|
|
27
|
-
|
|
28
|
-
interface CommandPaletteProps {
|
|
29
|
-
/** State from `useCommandPalette`. */
|
|
30
|
-
palette: UseCommandPaletteResult;
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
emptyMessage?: string;
|
|
33
|
-
/** Extra classes for the dialog panel. */
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Headless-styled command palette (Tailwind + theme tokens): a search box over the
|
|
38
|
-
* registry's commands showing each command's group, shortcut and, for disabled
|
|
39
|
-
* commands, the reason. Arrow keys move, Enter runs, Escape or a backdrop click closes.
|
|
40
|
-
*/
|
|
41
|
-
declare const CommandPalette: React__default.FC<CommandPaletteProps>;
|
|
42
|
-
|
|
43
|
-
interface UseCommandShortcutsOptions<TContext = any> {
|
|
44
|
-
/** Default `true`. */
|
|
45
|
-
enabled?: boolean;
|
|
46
|
-
/** Element or window to listen on (default: `window`). */
|
|
47
|
-
target?: Window | HTMLElement | null;
|
|
48
|
-
/** Active scopes, most specific first (e.g. `'canvas'` while the canvas has focus). */
|
|
49
|
-
scopes?: string | readonly string[];
|
|
50
|
-
/** Context for the commands (default: the registry's). */
|
|
51
|
-
context?: TContext;
|
|
52
|
-
/** Fire even while typing in inputs / contenteditable (default: per binding). */
|
|
53
|
-
allowInEditable?: boolean;
|
|
54
|
-
/** Called after a shortcut ran a command. */
|
|
55
|
-
onRun?: (result: CommandResult) => void;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Runs the registry's commands from their keyboard shortcuts (`registry.handleKeyDown`).
|
|
59
|
-
* Typing in inputs and editors is never hijacked, and disabled commands leave the
|
|
60
|
-
* event alone. Options are read live.
|
|
61
|
-
*/
|
|
62
|
-
declare function useCommandShortcuts<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, options?: UseCommandShortcutsOptions<TContext>): void;
|
|
63
|
-
/**
|
|
64
|
-
* Registers commands while the component is mounted. Memoize `specs` (e.g. with
|
|
65
|
-
* `useMemo(() => createHistoryCommands(manager), [manager])`): a new array re-registers.
|
|
66
|
-
*/
|
|
67
|
-
declare function useRegisterCommands<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, specs: readonly CommandSpec<TContext>[] | null | undefined): void;
|
|
68
|
-
|
|
69
|
-
export { CommandPalette, type CommandPaletteProps, type UseCommandPaletteOptions, type UseCommandPaletteResult, type UseCommandShortcutsOptions, useCommandPalette, useCommandShortcuts, useRegisterCommands };
|
|
1
|
+
export * from './useCommandPalette.cjs';
|
|
2
|
+
export * from './CommandPalette.cjs';
|
|
3
|
+
export * from './useCommandShortcuts.cjs';
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface UseCommandPaletteOptions<TContext = any> extends CommandPaletteOptions<TContext> {
|
|
5
|
-
/** Chord that toggles the palette from anywhere, also while typing (e.g. `Mod+K`). */
|
|
6
|
-
hotkey?: string;
|
|
7
|
-
/** Element or window the hotkey listens on (default: `window`). */
|
|
8
|
-
hotkeyTarget?: Window | HTMLElement | null;
|
|
9
|
-
}
|
|
10
|
-
interface UseCommandPaletteResult extends CommandPaletteState {
|
|
11
|
-
controller: CommandPaletteController;
|
|
12
|
-
setOpen: (open: boolean) => void;
|
|
13
|
-
toggle: () => void;
|
|
14
|
-
setQuery: (query: string) => void;
|
|
15
|
-
setActiveIndex: (index: number) => void;
|
|
16
|
-
move: (delta: number) => void;
|
|
17
|
-
run: CommandPaletteController['run'];
|
|
18
|
-
runActive: CommandPaletteController['runActive'];
|
|
19
|
-
handleKeyDown: CommandPaletteController['handleKeyDown'];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Command palette state over a `CommandRegistry` (ranked rows with shortcuts and
|
|
23
|
-
* disabled reasons, active row, recents). Render it with `<CommandPalette palette={…} />`
|
|
24
|
-
* or your own UI. Options are read live; the registry identity is the dependency.
|
|
25
|
-
*/
|
|
26
|
-
declare function useCommandPalette<TContext = any>(registry: CommandRegistry<TContext>, options?: UseCommandPaletteOptions<TContext>): UseCommandPaletteResult;
|
|
27
|
-
|
|
28
|
-
interface CommandPaletteProps {
|
|
29
|
-
/** State from `useCommandPalette`. */
|
|
30
|
-
palette: UseCommandPaletteResult;
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
emptyMessage?: string;
|
|
33
|
-
/** Extra classes for the dialog panel. */
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Headless-styled command palette (Tailwind + theme tokens): a search box over the
|
|
38
|
-
* registry's commands showing each command's group, shortcut and, for disabled
|
|
39
|
-
* commands, the reason. Arrow keys move, Enter runs, Escape or a backdrop click closes.
|
|
40
|
-
*/
|
|
41
|
-
declare const CommandPalette: React__default.FC<CommandPaletteProps>;
|
|
42
|
-
|
|
43
|
-
interface UseCommandShortcutsOptions<TContext = any> {
|
|
44
|
-
/** Default `true`. */
|
|
45
|
-
enabled?: boolean;
|
|
46
|
-
/** Element or window to listen on (default: `window`). */
|
|
47
|
-
target?: Window | HTMLElement | null;
|
|
48
|
-
/** Active scopes, most specific first (e.g. `'canvas'` while the canvas has focus). */
|
|
49
|
-
scopes?: string | readonly string[];
|
|
50
|
-
/** Context for the commands (default: the registry's). */
|
|
51
|
-
context?: TContext;
|
|
52
|
-
/** Fire even while typing in inputs / contenteditable (default: per binding). */
|
|
53
|
-
allowInEditable?: boolean;
|
|
54
|
-
/** Called after a shortcut ran a command. */
|
|
55
|
-
onRun?: (result: CommandResult) => void;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Runs the registry's commands from their keyboard shortcuts (`registry.handleKeyDown`).
|
|
59
|
-
* Typing in inputs and editors is never hijacked, and disabled commands leave the
|
|
60
|
-
* event alone. Options are read live.
|
|
61
|
-
*/
|
|
62
|
-
declare function useCommandShortcuts<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, options?: UseCommandShortcutsOptions<TContext>): void;
|
|
63
|
-
/**
|
|
64
|
-
* Registers commands while the component is mounted. Memoize `specs` (e.g. with
|
|
65
|
-
* `useMemo(() => createHistoryCommands(manager), [manager])`): a new array re-registers.
|
|
66
|
-
*/
|
|
67
|
-
declare function useRegisterCommands<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, specs: readonly CommandSpec<TContext>[] | null | undefined): void;
|
|
68
|
-
|
|
69
|
-
export { CommandPalette, type CommandPaletteProps, type UseCommandPaletteOptions, type UseCommandPaletteResult, type UseCommandShortcutsOptions, useCommandPalette, useCommandShortcuts, useRegisterCommands };
|
|
1
|
+
export * from './useCommandPalette.js';
|
|
2
|
+
export * from './CommandPalette.js';
|
|
3
|
+
export * from './useCommandShortcuts.js';
|
package/dist/commands/index.js
CHANGED
|
@@ -3,11 +3,10 @@ import {
|
|
|
3
3
|
useCommandPalette,
|
|
4
4
|
useCommandShortcuts,
|
|
5
5
|
useRegisterCommands
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-SMLHUEEQ.js";
|
|
7
7
|
export {
|
|
8
8
|
CommandPalette,
|
|
9
9
|
useCommandPalette,
|
|
10
10
|
useCommandShortcuts,
|
|
11
11
|
useRegisterCommands
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CommandPaletteController, type CommandPaletteOptions, type CommandPaletteState, type CommandRegistry } from '@pixerate/editor/commands';
|
|
2
|
+
export interface UseCommandPaletteOptions<TContext = any> extends CommandPaletteOptions<TContext> {
|
|
3
|
+
/** Chord that toggles the palette from anywhere, also while typing (e.g. `Mod+K`). */
|
|
4
|
+
hotkey?: string;
|
|
5
|
+
/** Element or window the hotkey listens on (default: `window`). */
|
|
6
|
+
hotkeyTarget?: Window | HTMLElement | null;
|
|
7
|
+
}
|
|
8
|
+
export interface UseCommandPaletteResult extends CommandPaletteState {
|
|
9
|
+
controller: CommandPaletteController;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
setQuery: (query: string) => void;
|
|
13
|
+
setActiveIndex: (index: number) => void;
|
|
14
|
+
move: (delta: number) => void;
|
|
15
|
+
run: CommandPaletteController['run'];
|
|
16
|
+
runActive: CommandPaletteController['runActive'];
|
|
17
|
+
handleKeyDown: CommandPaletteController['handleKeyDown'];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Command palette state over a `CommandRegistry` (ranked rows with shortcuts and
|
|
21
|
+
* disabled reasons, active row, recents). Render it with `<CommandPalette palette={…} />`
|
|
22
|
+
* or your own UI. Options are read live; the registry identity is the dependency.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCommandPalette<TContext = any>(registry: CommandRegistry<TContext>, options?: UseCommandPaletteOptions<TContext>): UseCommandPaletteResult;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CommandPaletteController, type CommandPaletteOptions, type CommandPaletteState, type CommandRegistry } from '@pixerate/editor/commands';
|
|
2
|
+
export interface UseCommandPaletteOptions<TContext = any> extends CommandPaletteOptions<TContext> {
|
|
3
|
+
/** Chord that toggles the palette from anywhere, also while typing (e.g. `Mod+K`). */
|
|
4
|
+
hotkey?: string;
|
|
5
|
+
/** Element or window the hotkey listens on (default: `window`). */
|
|
6
|
+
hotkeyTarget?: Window | HTMLElement | null;
|
|
7
|
+
}
|
|
8
|
+
export interface UseCommandPaletteResult extends CommandPaletteState {
|
|
9
|
+
controller: CommandPaletteController;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
setQuery: (query: string) => void;
|
|
13
|
+
setActiveIndex: (index: number) => void;
|
|
14
|
+
move: (delta: number) => void;
|
|
15
|
+
run: CommandPaletteController['run'];
|
|
16
|
+
runActive: CommandPaletteController['runActive'];
|
|
17
|
+
handleKeyDown: CommandPaletteController['handleKeyDown'];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Command palette state over a `CommandRegistry` (ranked rows with shortcuts and
|
|
21
|
+
* disabled reasons, active row, recents). Render it with `<CommandPalette palette={…} />`
|
|
22
|
+
* or your own UI. Options are read live; the registry identity is the dependency.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCommandPalette<TContext = any>(registry: CommandRegistry<TContext>, options?: UseCommandPaletteOptions<TContext>): UseCommandPaletteResult;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CommandRegistry, CommandResult, CommandSpec } from '@pixerate/editor/commands';
|
|
2
|
+
export interface UseCommandShortcutsOptions<TContext = any> {
|
|
3
|
+
/** Default `true`. */
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
/** Element or window to listen on (default: `window`). */
|
|
6
|
+
target?: Window | HTMLElement | null;
|
|
7
|
+
/** Active scopes, most specific first (e.g. `'canvas'` while the canvas has focus). */
|
|
8
|
+
scopes?: string | readonly string[];
|
|
9
|
+
/** Context for the commands (default: the registry's). */
|
|
10
|
+
context?: TContext;
|
|
11
|
+
/** Fire even while typing in inputs / contenteditable (default: per binding). */
|
|
12
|
+
allowInEditable?: boolean;
|
|
13
|
+
/** Called after a shortcut ran a command. */
|
|
14
|
+
onRun?: (result: CommandResult) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Runs the registry's commands from their keyboard shortcuts (`registry.handleKeyDown`).
|
|
18
|
+
* Typing in inputs and editors is never hijacked, and disabled commands leave the
|
|
19
|
+
* event alone. Options are read live.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCommandShortcuts<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, options?: UseCommandShortcutsOptions<TContext>): void;
|
|
22
|
+
/**
|
|
23
|
+
* Registers commands while the component is mounted. Memoize `specs` (e.g. with
|
|
24
|
+
* `useMemo(() => createHistoryCommands(manager), [manager])`): a new array re-registers.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useRegisterCommands<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, specs: readonly CommandSpec<TContext>[] | null | undefined): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CommandRegistry, CommandResult, CommandSpec } from '@pixerate/editor/commands';
|
|
2
|
+
export interface UseCommandShortcutsOptions<TContext = any> {
|
|
3
|
+
/** Default `true`. */
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
/** Element or window to listen on (default: `window`). */
|
|
6
|
+
target?: Window | HTMLElement | null;
|
|
7
|
+
/** Active scopes, most specific first (e.g. `'canvas'` while the canvas has focus). */
|
|
8
|
+
scopes?: string | readonly string[];
|
|
9
|
+
/** Context for the commands (default: the registry's). */
|
|
10
|
+
context?: TContext;
|
|
11
|
+
/** Fire even while typing in inputs / contenteditable (default: per binding). */
|
|
12
|
+
allowInEditable?: boolean;
|
|
13
|
+
/** Called after a shortcut ran a command. */
|
|
14
|
+
onRun?: (result: CommandResult) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Runs the registry's commands from their keyboard shortcuts (`registry.handleKeyDown`).
|
|
18
|
+
* Typing in inputs and editors is never hijacked, and disabled commands leave the
|
|
19
|
+
* event alone. Options are read live.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCommandShortcuts<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, options?: UseCommandShortcutsOptions<TContext>): void;
|
|
22
|
+
/**
|
|
23
|
+
* Registers commands while the component is mounted. Memoize `specs` (e.g. with
|
|
24
|
+
* `useMemo(() => createHistoryCommands(manager), [manager])`): a new array re-registers.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useRegisterCommands<TContext = any>(registry: CommandRegistry<TContext> | null | undefined, specs: readonly CommandSpec<TContext>[] | null | undefined): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BubbleMenuPluginProps } from "@tiptap/extension-bubble-menu";
|
|
3
|
+
import type { Editor } from "@tiptap/core";
|
|
4
|
+
export interface BubbleMenuProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
tippyOptions?: BubbleMenuPluginProps["tippyOptions"];
|
|
9
|
+
shouldShow?: BubbleMenuPluginProps["shouldShow"];
|
|
10
|
+
pluginKey?: BubbleMenuPluginProps["pluginKey"];
|
|
11
|
+
updateDelay?: BubbleMenuPluginProps["updateDelay"];
|
|
12
|
+
}
|
|
13
|
+
export declare const BubbleMenu: React.FC<BubbleMenuProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BubbleMenuPluginProps } from "@tiptap/extension-bubble-menu";
|
|
3
|
+
import type { Editor } from "@tiptap/core";
|
|
4
|
+
export interface BubbleMenuProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
tippyOptions?: BubbleMenuPluginProps["tippyOptions"];
|
|
9
|
+
shouldShow?: BubbleMenuPluginProps["shouldShow"];
|
|
10
|
+
pluginKey?: BubbleMenuPluginProps["pluginKey"];
|
|
11
|
+
updateDelay?: BubbleMenuPluginProps["updateDelay"];
|
|
12
|
+
}
|
|
13
|
+
export declare const BubbleMenu: React.FC<BubbleMenuProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EditorContentProps as TipTapEditorContentProps } from "@tiptap/react";
|
|
3
|
+
export interface EditorContentProps extends TipTapEditorContentProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const EditorContent: React.FC<EditorContentProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EditorContentProps as TipTapEditorContentProps } from "@tiptap/react";
|
|
3
|
+
export interface EditorContentProps extends TipTapEditorContentProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const EditorContent: React.FC<EditorContentProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import type { DocxExportControllerOptions, DocxExportReport } from "@pixerate/editor/export";
|
|
4
|
+
export interface ExportDocxButtonProps extends DocxExportControllerOptions {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Called after the download with the export report. */
|
|
9
|
+
onExported?: (report: DocxExportReport) => void;
|
|
10
|
+
}
|
|
11
|
+
/** A button that downloads the editor's document as a Word file (`.docx`). */
|
|
12
|
+
export declare const ExportDocxButton: React.FC<ExportDocxButtonProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import type { DocxExportControllerOptions, DocxExportReport } from "@pixerate/editor/export";
|
|
4
|
+
export interface ExportDocxButtonProps extends DocxExportControllerOptions {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Called after the download with the export report. */
|
|
9
|
+
onExported?: (report: DocxExportReport) => void;
|
|
10
|
+
}
|
|
11
|
+
/** A button that downloads the editor's document as a Word file (`.docx`). */
|
|
12
|
+
export declare const ExportDocxButton: React.FC<ExportDocxButtonProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ColorGradient, MergeRecordsOptions, MergeRecordsResult, ParseDataSourceOptions, Template } from "@pixerate/editor";
|
|
3
|
+
export interface MergePreviewProps {
|
|
4
|
+
/** The prompt merged with each record. */
|
|
5
|
+
content: string;
|
|
6
|
+
templates?: Template[];
|
|
7
|
+
bindings?: Record<string, string>;
|
|
8
|
+
templateColorMap?: Map<string, ColorGradient>;
|
|
9
|
+
/** Initial CSV / TSV / JSON data source text. */
|
|
10
|
+
defaultSource?: string;
|
|
11
|
+
parseOptions?: ParseDataSourceOptions;
|
|
12
|
+
/** Drop records matching this condition (e.g. `"status=void"`) when merging. */
|
|
13
|
+
skipIf?: MergeRecordsOptions["skipIf"];
|
|
14
|
+
/** Separator between merged outputs (default a blank line; `"none"` for nothing). */
|
|
15
|
+
separator?: string;
|
|
16
|
+
maxOutputs?: number;
|
|
17
|
+
/** Called after "Merge all". */
|
|
18
|
+
onMerge?: (result: MergeRecordsResult) => void;
|
|
19
|
+
/** Base file name for downloads (default `merged`). */
|
|
20
|
+
downloadName?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Mail-merge preview: paste or pick a CSV / JSON data source, check the
|
|
25
|
+
* automatic field mapping, step through records with the resolved prompt
|
|
26
|
+
* shown by `TemplateRenderer`, and merge every record into text or JSON.
|
|
27
|
+
*/
|
|
28
|
+
export declare const MergePreview: React.FC<MergePreviewProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ColorGradient, MergeRecordsOptions, MergeRecordsResult, ParseDataSourceOptions, Template } from "@pixerate/editor";
|
|
3
|
+
export interface MergePreviewProps {
|
|
4
|
+
/** The prompt merged with each record. */
|
|
5
|
+
content: string;
|
|
6
|
+
templates?: Template[];
|
|
7
|
+
bindings?: Record<string, string>;
|
|
8
|
+
templateColorMap?: Map<string, ColorGradient>;
|
|
9
|
+
/** Initial CSV / TSV / JSON data source text. */
|
|
10
|
+
defaultSource?: string;
|
|
11
|
+
parseOptions?: ParseDataSourceOptions;
|
|
12
|
+
/** Drop records matching this condition (e.g. `"status=void"`) when merging. */
|
|
13
|
+
skipIf?: MergeRecordsOptions["skipIf"];
|
|
14
|
+
/** Separator between merged outputs (default a blank line; `"none"` for nothing). */
|
|
15
|
+
separator?: string;
|
|
16
|
+
maxOutputs?: number;
|
|
17
|
+
/** Called after "Merge all". */
|
|
18
|
+
onMerge?: (result: MergeRecordsResult) => void;
|
|
19
|
+
/** Base file name for downloads (default `merged`). */
|
|
20
|
+
downloadName?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Mail-merge preview: paste or pick a CSV / JSON data source, check the
|
|
25
|
+
* automatic field mapping, step through records with the resolved prompt
|
|
26
|
+
* shown by `TemplateRenderer`, and merge every record into text or JSON.
|
|
27
|
+
*/
|
|
28
|
+
export declare const MergePreview: React.FC<MergePreviewProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type OutlineHeading } from "@pixerate/editor";
|
|
4
|
+
export interface OutlinePanelProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Heading shown above the list. Pass `null` to hide it. */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Content shown when the document has no headings. */
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
/** Deepest heading level listed. Defaults to 6. */
|
|
11
|
+
maxLevel?: number;
|
|
12
|
+
/** Whether clicking an entry focuses the editor. Defaults to `true`. */
|
|
13
|
+
focusOnNavigate?: boolean;
|
|
14
|
+
/** Custom class name for the wrapper. */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Class name for each entry button. */
|
|
17
|
+
itemClassName?: string;
|
|
18
|
+
/** Class name added to the entry of the section containing the selection. */
|
|
19
|
+
activeItemClassName?: string;
|
|
20
|
+
/** Called after navigating to a heading. */
|
|
21
|
+
onNavigate?: (heading: OutlineHeading) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Navigation sidebar listing the document's headings (Word's Navigation pane).
|
|
25
|
+
* Clicking an entry moves the caret to that heading; the entry for the
|
|
26
|
+
* section containing the selection is highlighted.
|
|
27
|
+
*/
|
|
28
|
+
export declare const OutlinePanel: React.FC<OutlinePanelProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type OutlineHeading } from "@pixerate/editor";
|
|
4
|
+
export interface OutlinePanelProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Heading shown above the list. Pass `null` to hide it. */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Content shown when the document has no headings. */
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
/** Deepest heading level listed. Defaults to 6. */
|
|
11
|
+
maxLevel?: number;
|
|
12
|
+
/** Whether clicking an entry focuses the editor. Defaults to `true`. */
|
|
13
|
+
focusOnNavigate?: boolean;
|
|
14
|
+
/** Custom class name for the wrapper. */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Class name for each entry button. */
|
|
17
|
+
itemClassName?: string;
|
|
18
|
+
/** Class name added to the entry of the section containing the selection. */
|
|
19
|
+
activeItemClassName?: string;
|
|
20
|
+
/** Called after navigating to a heading. */
|
|
21
|
+
onNavigate?: (heading: OutlineHeading) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Navigation sidebar listing the document's headings (Word's Navigation pane).
|
|
25
|
+
* Clicking an entry moves the caret to that heading; the entry for the
|
|
26
|
+
* section containing the selection is highlighted.
|
|
27
|
+
*/
|
|
28
|
+
export declare const OutlinePanel: React.FC<OutlinePanelProps>;
|