@pixerate/editor-react 0.89.0 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/AnimationEditor.d.cts +33 -0
- package/dist/animation-editor/AnimationEditor.d.ts +33 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
- package/dist/animation-editor/AnimationStage.d.cts +24 -0
- package/dist/animation-editor/AnimationStage.d.ts +24 -0
- package/dist/animation-editor/CommandInspector.d.cts +14 -0
- package/dist/animation-editor/CommandInspector.d.ts +14 -0
- package/dist/animation-editor/CommandList.d.cts +16 -0
- package/dist/animation-editor/CommandList.d.ts +16 -0
- package/dist/animation-editor/CommitInput.d.cts +6 -0
- package/dist/animation-editor/CommitInput.d.ts +6 -0
- package/dist/animation-editor/EasePicker.d.cts +18 -0
- package/dist/animation-editor/EasePicker.d.ts +18 -0
- package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
- package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
- package/dist/animation-editor/SceneSettings.d.cts +12 -0
- package/dist/animation-editor/SceneSettings.d.ts +12 -0
- package/dist/animation-editor/ShotInspector.d.cts +14 -0
- package/dist/animation-editor/ShotInspector.d.ts +14 -0
- package/dist/animation-editor/ShotTimeline.d.cts +11 -0
- package/dist/animation-editor/ShotTimeline.d.ts +11 -0
- package/dist/animation-editor/index.cjs +0 -1
- package/dist/animation-editor/index.d.cts +11 -195
- package/dist/animation-editor/index.d.ts +11 -195
- package/dist/animation-editor/index.js +2 -3
- package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
- package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
- package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
- package/dist/canvas/AnimationTimeline.d.cts +22 -0
- package/dist/canvas/AnimationTimeline.d.ts +22 -0
- package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
- package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
- package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
- package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
- package/dist/canvas/CanvasEffects.d.cts +52 -0
- package/dist/canvas/CanvasEffects.d.ts +52 -0
- package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
- package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
- package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
- package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
- package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
- package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
- package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
- package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
- package/dist/canvas/MermaidThumbnail.d.cts +15 -0
- package/dist/canvas/MermaidThumbnail.d.ts +15 -0
- package/dist/canvas/ShapeNode.d.cts +31 -0
- package/dist/canvas/ShapeNode.d.ts +31 -0
- package/dist/canvas/TokenBindingPicker.d.cts +37 -0
- package/dist/canvas/TokenBindingPicker.d.ts +37 -0
- package/dist/canvas/index.cjs +0 -1
- package/dist/canvas/index.d.cts +40 -1084
- package/dist/canvas/index.d.ts +40 -1084
- package/dist/canvas/index.js +2 -3
- package/dist/canvas/useCanvasAnimation.d.cts +97 -0
- package/dist/canvas/useCanvasAnimation.d.ts +97 -0
- package/dist/canvas/useCanvasArrange.d.cts +80 -0
- package/dist/canvas/useCanvasArrange.d.ts +80 -0
- package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
- package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
- package/dist/canvas/useCanvasCapture.d.cts +20 -0
- package/dist/canvas/useCanvasCapture.d.ts +20 -0
- package/dist/canvas/useCanvasClipboard.d.cts +14 -0
- package/dist/canvas/useCanvasClipboard.d.ts +14 -0
- package/dist/canvas/useCanvasComponents.d.cts +74 -0
- package/dist/canvas/useCanvasComponents.d.ts +74 -0
- package/dist/canvas/useCanvasDocking.d.cts +15 -0
- package/dist/canvas/useCanvasDocking.d.ts +15 -0
- package/dist/canvas/useCanvasDraw.d.cts +37 -0
- package/dist/canvas/useCanvasDraw.d.ts +37 -0
- package/dist/canvas/useCanvasExplosion.d.cts +16 -0
- package/dist/canvas/useCanvasExplosion.d.ts +16 -0
- package/dist/canvas/useCanvasGraph.d.cts +27 -0
- package/dist/canvas/useCanvasGraph.d.ts +27 -0
- package/dist/canvas/useCanvasLayout.d.cts +25 -0
- package/dist/canvas/useCanvasLayout.d.ts +25 -0
- package/dist/canvas/useCanvasMeasure.d.cts +41 -0
- package/dist/canvas/useCanvasMeasure.d.ts +41 -0
- package/dist/canvas/useCanvasScenes.d.cts +61 -0
- package/dist/canvas/useCanvasScenes.d.ts +61 -0
- package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
- package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
- package/dist/canvas/useCanvasTokens.d.cts +24 -0
- package/dist/canvas/useCanvasTokens.d.ts +24 -0
- package/dist/canvas/useDiagramDirector.d.cts +21 -0
- package/dist/canvas/useDiagramDirector.d.ts +21 -0
- package/dist/canvas/useMermaidDiagram.d.cts +79 -0
- package/dist/canvas/useMermaidDiagram.d.ts +79 -0
- package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
- package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
- package/dist/canvas/useStreamingCanvas.d.cts +17 -0
- package/dist/canvas/useStreamingCanvas.d.ts +17 -0
- package/dist/chart/ChartCanvas.d.cts +44 -0
- package/dist/chart/ChartCanvas.d.ts +44 -0
- package/dist/chart/ChartDataGrid.d.cts +24 -0
- package/dist/chart/ChartDataGrid.d.ts +24 -0
- package/dist/chart/ChartEditor.d.cts +20 -0
- package/dist/chart/ChartEditor.d.ts +20 -0
- package/dist/chart/ChartInspector.d.cts +14 -0
- package/dist/chart/ChartInspector.d.ts +14 -0
- package/dist/chart/ChartStreamingView.d.cts +40 -0
- package/dist/chart/ChartStreamingView.d.ts +40 -0
- package/dist/chart/index.cjs +0 -1
- package/dist/chart/index.d.cts +7 -212
- package/dist/chart/index.d.ts +7 -212
- package/dist/chart/index.js +1 -2
- package/dist/chart/styles.d.cts +7 -0
- package/dist/chart/styles.d.ts +7 -0
- package/dist/chart/useChartEditor.d.cts +64 -0
- package/dist/chart/useChartEditor.d.ts +64 -0
- package/dist/chart-node/ChartNodeView.d.cts +27 -0
- package/dist/chart-node/ChartNodeView.d.ts +27 -0
- package/dist/chart-node/index.d.cts +1 -0
- package/dist/chart-node/index.d.ts +1 -0
- package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
- package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
- package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
- package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
- package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
- package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
- package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
- package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
- package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
- package/dist/commands/CommandPalette.d.cts +16 -0
- package/dist/commands/CommandPalette.d.ts +16 -0
- package/dist/commands/index.cjs +0 -1
- package/dist/commands/index.d.cts +3 -69
- package/dist/commands/index.d.ts +3 -69
- package/dist/commands/index.js +1 -2
- package/dist/commands/useCommandPalette.d.cts +24 -0
- package/dist/commands/useCommandPalette.d.ts +24 -0
- package/dist/commands/useCommandShortcuts.d.cts +26 -0
- package/dist/commands/useCommandShortcuts.d.ts +26 -0
- package/dist/components/BubbleMenu.d.cts +13 -0
- package/dist/components/BubbleMenu.d.ts +13 -0
- package/dist/components/EditorContent.d.cts +6 -0
- package/dist/components/EditorContent.d.ts +6 -0
- package/dist/components/ExportDocxButton.d.cts +12 -0
- package/dist/components/ExportDocxButton.d.ts +12 -0
- package/dist/components/MergePreview.d.cts +28 -0
- package/dist/components/MergePreview.d.ts +28 -0
- package/dist/components/OutlinePanel.d.cts +28 -0
- package/dist/components/OutlinePanel.d.ts +28 -0
- package/dist/components/StylesGallery.d.cts +31 -0
- package/dist/components/StylesGallery.d.ts +31 -0
- package/dist/components/TemplateRenderer.d.cts +26 -0
- package/dist/components/TemplateRenderer.d.ts +26 -0
- package/dist/components/VariableForm.d.cts +27 -0
- package/dist/components/VariableForm.d.ts +27 -0
- package/dist/effects/EffectParameters.d.cts +28 -0
- package/dist/effects/EffectParameters.d.ts +28 -0
- package/dist/effects/EffectThumbnail.d.cts +15 -0
- package/dist/effects/EffectThumbnail.d.ts +15 -0
- package/dist/effects/EffectsBrowser.d.cts +22 -0
- package/dist/effects/EffectsBrowser.d.ts +22 -0
- package/dist/effects/index.cjs +0 -1
- package/dist/effects/index.d.cts +4 -82
- package/dist/effects/index.d.ts +4 -82
- package/dist/effects/index.js +2 -3
- package/dist/effects/useEffects.d.cts +16 -0
- package/dist/effects/useEffects.d.ts +16 -0
- package/dist/find-replace/FindReplaceBar.d.cts +19 -0
- package/dist/find-replace/FindReplaceBar.d.ts +19 -0
- package/dist/find-replace/index.d.cts +2 -0
- package/dist/find-replace/index.d.ts +2 -0
- package/dist/find-replace/useFindReplace.d.cts +24 -0
- package/dist/find-replace/useFindReplace.d.ts +24 -0
- package/dist/generation/AssetMentionChips.d.cts +24 -0
- package/dist/generation/AssetMentionChips.d.ts +24 -0
- package/dist/generation/GenerationHistory.d.cts +43 -0
- package/dist/generation/GenerationHistory.d.ts +43 -0
- package/dist/generation/GenerationSettings.d.cts +26 -0
- package/dist/generation/GenerationSettings.d.ts +26 -0
- package/dist/generation/JobProgress.d.cts +14 -0
- package/dist/generation/JobProgress.d.ts +14 -0
- package/dist/generation/index.cjs +0 -1
- package/dist/generation/index.d.cts +5 -124
- package/dist/generation/index.d.ts +5 -124
- package/dist/generation/index.js +1 -2
- package/dist/generation/useGenerationPlan.d.cts +18 -0
- package/dist/generation/useGenerationPlan.d.ts +18 -0
- package/dist/hooks/useAgentToolProvider.d.cts +11 -0
- package/dist/hooks/useAgentToolProvider.d.ts +11 -0
- package/dist/hooks/useDismissGuard.d.cts +26 -0
- package/dist/hooks/useDismissGuard.d.ts +26 -0
- package/dist/hooks/useDocxExport.d.cts +14 -0
- package/dist/hooks/useDocxExport.d.ts +14 -0
- package/dist/hooks/useEditor.d.cts +20 -0
- package/dist/hooks/useEditor.d.ts +20 -0
- package/dist/hooks/useFileImport.d.cts +23 -0
- package/dist/hooks/useFileImport.d.ts +23 -0
- package/dist/hooks/useHistory.d.cts +27 -0
- package/dist/hooks/useHistory.d.ts +27 -0
- package/dist/hooks/useHistoryDirty.d.cts +27 -0
- package/dist/hooks/useHistoryDirty.d.ts +27 -0
- package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
- package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
- package/dist/hooks/useMergePreview.d.cts +49 -0
- package/dist/hooks/useMergePreview.d.ts +49 -0
- package/dist/hooks/useNavigationGuard.d.cts +27 -0
- package/dist/hooks/useNavigationGuard.d.ts +27 -0
- package/dist/hooks/useOutline.d.cts +12 -0
- package/dist/hooks/useOutline.d.ts +12 -0
- package/dist/hooks/useParagraphStyles.d.cts +24 -0
- package/dist/hooks/useParagraphStyles.d.ts +24 -0
- package/dist/hooks/usePromptEditor.d.cts +57 -0
- package/dist/hooks/usePromptEditor.d.ts +57 -0
- package/dist/hooks/useToolBridge.d.cts +14 -0
- package/dist/hooks/useToolBridge.d.ts +14 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
- package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
- package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
- package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
- package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
- package/dist/image-editor/ControlSlider.d.cts +12 -0
- package/dist/image-editor/ControlSlider.d.ts +12 -0
- package/dist/image-editor/CurvesEditor.d.cts +15 -0
- package/dist/image-editor/CurvesEditor.d.ts +15 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
- package/dist/image-editor/Histogram.d.cts +14 -0
- package/dist/image-editor/Histogram.d.ts +14 -0
- package/dist/image-editor/ImageEditor.d.cts +22 -0
- package/dist/image-editor/ImageEditor.d.ts +22 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
- package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
- package/dist/image-editor/LayersPanel.d.cts +22 -0
- package/dist/image-editor/LayersPanel.d.ts +22 -0
- package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
- package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
- package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
- package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
- package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
- package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
- package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
- package/dist/image-editor/index.cjs +0 -1
- package/dist/image-editor/index.d.cts +17 -296
- package/dist/image-editor/index.d.ts +17 -296
- package/dist/image-editor/index.js +4 -5
- package/dist/image-editor/useImageEditor.d.cts +70 -0
- package/dist/image-editor/useImageEditor.d.ts +70 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +35 -802
- package/dist/index.d.ts +35 -802
- package/dist/index.js +9 -10
- package/dist/paint-editor/BrushPanel.d.cts +18 -0
- package/dist/paint-editor/BrushPanel.d.ts +18 -0
- package/dist/paint-editor/ColorPanel.d.cts +17 -0
- package/dist/paint-editor/ColorPanel.d.ts +17 -0
- package/dist/paint-editor/PaintCanvas.d.cts +40 -0
- package/dist/paint-editor/PaintCanvas.d.ts +40 -0
- package/dist/paint-editor/PaintEditor.d.cts +18 -0
- package/dist/paint-editor/PaintEditor.d.ts +18 -0
- package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
- package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
- package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
- package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
- package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
- package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
- package/dist/paint-editor/PaintToolbar.d.cts +17 -0
- package/dist/paint-editor/PaintToolbar.d.ts +17 -0
- package/dist/paint-editor/PaperPanel.d.cts +13 -0
- package/dist/paint-editor/PaperPanel.d.ts +13 -0
- package/dist/paint-editor/StickerPanel.d.cts +12 -0
- package/dist/paint-editor/StickerPanel.d.ts +12 -0
- package/dist/paint-editor/WetPanel.d.cts +14 -0
- package/dist/paint-editor/WetPanel.d.ts +14 -0
- package/dist/paint-editor/index.cjs +0 -1
- package/dist/paint-editor/index.d.cts +13 -211
- package/dist/paint-editor/index.d.ts +13 -211
- package/dist/paint-editor/index.js +3 -4
- package/dist/paint-editor/shared.d.cts +38 -0
- package/dist/paint-editor/shared.d.ts +38 -0
- package/dist/paint-editor/usePaintEditor.d.cts +22 -0
- package/dist/paint-editor/usePaintEditor.d.ts +22 -0
- package/dist/parameters/ParametersPanel.d.cts +27 -0
- package/dist/parameters/ParametersPanel.d.ts +27 -0
- package/dist/parameters/fields.d.cts +62 -0
- package/dist/parameters/fields.d.ts +62 -0
- package/dist/parameters/index.cjs +0 -1
- package/dist/parameters/index.d.cts +3 -121
- package/dist/parameters/index.d.ts +3 -121
- package/dist/parameters/index.js +1 -2
- package/dist/parameters/useParameters.d.cts +32 -0
- package/dist/parameters/useParameters.d.ts +32 -0
- package/dist/persistence/RecoveryPrompt.d.cts +20 -0
- package/dist/persistence/RecoveryPrompt.d.ts +20 -0
- package/dist/persistence/index.cjs +0 -1
- package/dist/persistence/index.d.cts +2 -77
- package/dist/persistence/index.d.ts +2 -77
- package/dist/persistence/index.js +1 -2
- package/dist/persistence/useAutosave.d.cts +54 -0
- package/dist/persistence/useAutosave.d.ts +54 -0
- package/dist/review/CommentButton.d.cts +12 -0
- package/dist/review/CommentButton.d.ts +12 -0
- package/dist/review/CommentsPanel.d.cts +21 -0
- package/dist/review/CommentsPanel.d.ts +21 -0
- package/dist/review/ReviewToolbar.d.cts +20 -0
- package/dist/review/ReviewToolbar.d.ts +20 -0
- package/dist/review/TrackedChangesList.d.cts +18 -0
- package/dist/review/TrackedChangesList.d.ts +18 -0
- package/dist/review/index.d.cts +6 -0
- package/dist/review/index.d.ts +6 -0
- package/dist/review/useDocumentCompare.d.cts +20 -0
- package/dist/review/useDocumentCompare.d.ts +20 -0
- package/dist/review/useReview.d.cts +32 -0
- package/dist/review/useReview.d.ts +32 -0
- package/dist/slots.d.cts +14 -0
- package/dist/slots.d.ts +14 -0
- package/dist/spreadsheet/FormulaHints.d.cts +24 -0
- package/dist/spreadsheet/FormulaHints.d.ts +24 -0
- package/dist/spreadsheet/NameManager.d.cts +14 -0
- package/dist/spreadsheet/NameManager.d.ts +14 -0
- package/dist/spreadsheet/SheetTabs.d.cts +13 -0
- package/dist/spreadsheet/SheetTabs.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
- package/dist/spreadsheet/index.cjs +0 -1
- package/dist/spreadsheet/index.d.cts +11 -309
- package/dist/spreadsheet/index.d.ts +11 -309
- package/dist/spreadsheet/index.js +1 -2
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
- package/dist/tables/InsertTableGrid.d.cts +25 -0
- package/dist/tables/InsertTableGrid.d.ts +25 -0
- package/dist/tables/TableBubbleMenu.d.cts +18 -0
- package/dist/tables/TableBubbleMenu.d.ts +18 -0
- package/dist/tables/TableToolbar.d.cts +23 -0
- package/dist/tables/TableToolbar.d.ts +23 -0
- package/dist/tables/index.d.cts +4 -0
- package/dist/tables/index.d.ts +4 -0
- package/dist/tables/useTableMenu.d.cts +17 -0
- package/dist/tables/useTableMenu.d.ts +17 -0
- package/dist/tokens/TokensPanel.d.cts +22 -0
- package/dist/tokens/TokensPanel.d.ts +22 -0
- package/dist/tokens/index.cjs +0 -1
- package/dist/tokens/index.d.cts +2 -54
- package/dist/tokens/index.d.ts +2 -54
- package/dist/tokens/index.js +0 -1
- package/dist/tokens/useTokens.d.cts +29 -0
- package/dist/tokens/useTokens.d.ts +29 -0
- package/dist/vector/VectorAppearancePanel.d.cts +14 -0
- package/dist/vector/VectorAppearancePanel.d.ts +14 -0
- package/dist/vector/VectorCanvas.d.cts +58 -0
- package/dist/vector/VectorCanvas.d.ts +58 -0
- package/dist/vector/VectorConnectorPanel.d.cts +12 -0
- package/dist/vector/VectorConnectorPanel.d.ts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
- package/dist/vector/VectorEditor.d.cts +23 -0
- package/dist/vector/VectorEditor.d.ts +23 -0
- package/dist/vector/VectorEffectsPanel.d.cts +13 -0
- package/dist/vector/VectorEffectsPanel.d.ts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
- package/dist/vector/VectorFramePanel.d.cts +12 -0
- package/dist/vector/VectorFramePanel.d.ts +12 -0
- package/dist/vector/VectorGeneratePanel.d.cts +15 -0
- package/dist/vector/VectorGeneratePanel.d.ts +15 -0
- package/dist/vector/VectorGradientEditor.d.cts +12 -0
- package/dist/vector/VectorGradientEditor.d.ts +12 -0
- package/dist/vector/VectorLensPanel.d.cts +12 -0
- package/dist/vector/VectorLensPanel.d.ts +12 -0
- package/dist/vector/VectorMaskPanel.d.cts +13 -0
- package/dist/vector/VectorMaskPanel.d.ts +13 -0
- package/dist/vector/VectorPagesPanel.d.cts +11 -0
- package/dist/vector/VectorPagesPanel.d.ts +11 -0
- package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
- package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
- package/dist/vector/VectorShadingPanel.d.cts +12 -0
- package/dist/vector/VectorShadingPanel.d.ts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
- package/dist/vector/VectorTextPanel.d.cts +14 -0
- package/dist/vector/VectorTextPanel.d.ts +14 -0
- package/dist/vector/VectorToolbar.d.cts +39 -0
- package/dist/vector/VectorToolbar.d.ts +39 -0
- package/dist/vector/VectorTracePanel.d.cts +12 -0
- package/dist/vector/VectorTracePanel.d.ts +12 -0
- package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
- package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
- package/dist/vector/index.cjs +14 -2
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +17 -4
- package/dist/vector/useVectorEditor.d.cts +40 -0
- package/dist/vector/useVectorEditor.d.ts +40 -0
- package/dist/video-editor/ClipInspector.d.cts +14 -0
- package/dist/video-editor/ClipInspector.d.ts +14 -0
- package/dist/video-editor/MediaBin.d.cts +18 -0
- package/dist/video-editor/MediaBin.d.ts +18 -0
- package/dist/video-editor/TranscriptPanel.d.cts +17 -0
- package/dist/video-editor/TranscriptPanel.d.ts +17 -0
- package/dist/video-editor/VideoEditor.d.cts +41 -0
- package/dist/video-editor/VideoEditor.d.ts +41 -0
- package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
- package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
- package/dist/video-editor/VideoPreview.d.cts +17 -0
- package/dist/video-editor/VideoPreview.d.ts +17 -0
- package/dist/video-editor/VideoScopes.d.cts +17 -0
- package/dist/video-editor/VideoScopes.d.ts +17 -0
- package/dist/video-editor/VideoTimeline.d.cts +15 -0
- package/dist/video-editor/VideoTimeline.d.ts +15 -0
- package/dist/video-editor/VideoTransport.d.cts +14 -0
- package/dist/video-editor/VideoTransport.d.ts +14 -0
- package/dist/video-editor/index.cjs +0 -1
- package/dist/video-editor/index.d.cts +10 -203
- package/dist/video-editor/index.d.ts +10 -203
- package/dist/video-editor/index.js +2 -3
- package/dist/video-editor/useVideoEditor.d.cts +42 -0
- package/dist/video-editor/useVideoEditor.d.ts +42 -0
- package/package.json +124 -49
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
- package/dist/animation-editor/index.cjs.map +0 -1
- package/dist/animation-editor/index.js.map +0 -1
- package/dist/canvas/index.cjs.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/chart/index.cjs.map +0 -1
- package/dist/chart/index.js.map +0 -1
- package/dist/chunk-34HEZX7J.js.map +0 -1
- package/dist/chunk-4FQXRPBN.js.map +0 -1
- package/dist/chunk-4ZC2WCUO.js.map +0 -1
- package/dist/chunk-I3E4KSA2.js.map +0 -1
- package/dist/chunk-MO354USR.js.map +0 -1
- package/dist/chunk-SIEOYRHX.js.map +0 -1
- package/dist/chunk-WOQ3H7KA.js.map +0 -1
- package/dist/chunk-XWFU2CSG.js.map +0 -1
- package/dist/chunk-ZQZAKUUM.js.map +0 -1
- package/dist/commands/index.cjs.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/effects/index.cjs.map +0 -1
- package/dist/effects/index.js.map +0 -1
- package/dist/generation/index.cjs.map +0 -1
- package/dist/generation/index.js.map +0 -1
- package/dist/image-editor/index.cjs.map +0 -1
- package/dist/image-editor/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/paint-editor/index.cjs.map +0 -1
- package/dist/paint-editor/index.js.map +0 -1
- package/dist/parameters/index.cjs.map +0 -1
- package/dist/parameters/index.js.map +0 -1
- package/dist/persistence/index.cjs.map +0 -1
- package/dist/persistence/index.js.map +0 -1
- package/dist/spreadsheet/index.cjs.map +0 -1
- package/dist/spreadsheet/index.js.map +0 -1
- package/dist/tokens/index.cjs.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/vector/index.cjs.map +0 -1
- package/dist/vector/index.js.map +0 -1
- package/dist/video-editor/index.cjs.map +0 -1
- package/dist/video-editor/index.js.map +0 -1
|
@@ -1,203 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
controller: VideoEditorController;
|
|
12
|
-
state: VideoEditorState;
|
|
13
|
-
play: () => void;
|
|
14
|
-
pause: () => void;
|
|
15
|
-
toggle: () => void;
|
|
16
|
-
/** Moves the playhead (ms). */
|
|
17
|
-
seek: (time: number) => void;
|
|
18
|
-
/** Moves the playhead by whole frames (negative steps back), pausing. */
|
|
19
|
-
step: (frames: number) => void;
|
|
20
|
-
undo: () => void;
|
|
21
|
-
redo: () => void;
|
|
22
|
-
/** Splits the selected clips (or every clip) under the playhead, as one undo step. */
|
|
23
|
-
splitAtPlayhead: () => VideoEditResult;
|
|
24
|
-
/** Deletes the selected clips; `ripple` closes the gaps they leave. */
|
|
25
|
-
deleteSelection: (options?: {
|
|
26
|
-
ripple?: boolean;
|
|
27
|
-
}) => VideoEditResult;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Subscribes to a video editor controller and exposes its state with bound actions.
|
|
31
|
-
* Pass options instead of a controller to create one for the component's lifetime.
|
|
32
|
-
*/
|
|
33
|
-
declare function useVideoEditor(controllerOrOptions?: VideoEditorController | VideoEditorOptions): UseVideoEditorResult;
|
|
34
|
-
/**
|
|
35
|
-
* Registers the video editor's agent tools (`get_video_project`, `add_video_clip`,
|
|
36
|
-
* `trim_video_clip`, …) in `registry` while mounted.
|
|
37
|
-
*/
|
|
38
|
-
declare function useVideoEditorTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEditorToolProviderOptions): void;
|
|
39
|
-
/**
|
|
40
|
-
* Registers the video editor's effect tools (`search_effects`, `describe_effect`, `apply_effect`,
|
|
41
|
-
* `add_video_effect_clip`, `set_video_effect_transition`, …) in `registry` while mounted. They
|
|
42
|
-
* work once an effects provider is registered (see `useEffects`); before that the read tools say
|
|
43
|
-
* so and the write tools refuse.
|
|
44
|
-
*/
|
|
45
|
-
declare function useVideoEffectsTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEffectsToolProviderOptions): void;
|
|
46
|
-
|
|
47
|
-
interface VideoPreviewProps {
|
|
48
|
-
controller: VideoEditorController;
|
|
49
|
-
/** Canvas pixels per frame pixel (default: fits the displayed width at the device pixel ratio, at most 1). */
|
|
50
|
-
resolution?: number;
|
|
51
|
-
/** Called after each frame is drawn. */
|
|
52
|
-
onFrame?: VideoPreviewOptions['onFrame'];
|
|
53
|
-
className?: string;
|
|
54
|
-
style?: React__default.CSSProperties;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Plays the controller's project on a canvas the shape of its frame: a `VideoPreviewEngine` keeps
|
|
58
|
-
* one `<video>` / `<audio>` element per playing clip in step with the playhead and draws each frame.
|
|
59
|
-
* The engine is created when the canvas mounts and destroyed on unmount or when the controller changes.
|
|
60
|
-
*/
|
|
61
|
-
declare function VideoPreview({ controller, resolution, onFrame, className, style }: VideoPreviewProps): React__default.JSX.Element;
|
|
62
|
-
|
|
63
|
-
interface VideoScopesProps {
|
|
64
|
-
controller: VideoEditorController;
|
|
65
|
-
/** Which scopes to show, in order (default histogram, waveform and vectorscope). */
|
|
66
|
-
scopes?: readonly VideoScopeKind[];
|
|
67
|
-
/** Size of the histogram and waveform in pixels (default 256 × 128); the vectorscope is square, `height` a side. */
|
|
68
|
-
width?: number;
|
|
69
|
-
height?: number;
|
|
70
|
-
className?: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Colour scopes of what the controller's `<VideoPreview>` draws: a histogram, a luma waveform and a
|
|
74
|
-
* vectorscope, redrawn after each frame, with exposure and clipping figures and notes. Reads the
|
|
75
|
-
* preview through `controller.previewPixels`, so it needs a preview of the same controller.
|
|
76
|
-
*/
|
|
77
|
-
declare function VideoScopes({ controller, scopes, width, height, className }: VideoScopesProps): React__default.JSX.Element;
|
|
78
|
-
|
|
79
|
-
interface VideoTransportProps {
|
|
80
|
-
controller: VideoEditorController;
|
|
81
|
-
/** Show the editing buttons (split, delete, ripple delete, undo, redo; default true). */
|
|
82
|
-
editable?: boolean;
|
|
83
|
-
className?: string;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Play / pause, a frame back and forward, the playhead and total length as timecode, and the
|
|
87
|
-
* edits that work on the playhead and the selection: split, delete, ripple delete, undo and redo.
|
|
88
|
-
* When any asset has proxies, a preview-size control picks what the preview plays (a view setting).
|
|
89
|
-
*/
|
|
90
|
-
declare function VideoTransport({ controller, editable, className }: VideoTransportProps): React__default.JSX.Element;
|
|
91
|
-
|
|
92
|
-
interface VideoTimelineProps {
|
|
93
|
-
controller: VideoEditorController;
|
|
94
|
-
/** Zoom: pixels per second of timeline. With `onPxPerSecondChange` the host owns it; otherwise it is the starting zoom (default 100). */
|
|
95
|
-
pxPerSecond?: number;
|
|
96
|
-
/** Called when the zoom control changes. Without it the timeline keeps its own zoom and shows a zoom slider. */
|
|
97
|
-
onPxPerSecondChange?: (pxPerSecond: number) => void;
|
|
98
|
-
/** Allow selecting, dragging, trimming and the track toggles (default true). */
|
|
99
|
-
editable?: boolean;
|
|
100
|
-
/** Draw waveforms in audio clips (default), in every clip with sound (`all`), or not at all. Sound is decoded once per asset through `controller.audioPeaks`. */
|
|
101
|
-
waveforms?: VideoWaveformMode;
|
|
102
|
-
className?: string;
|
|
103
|
-
}
|
|
104
|
-
declare function VideoTimeline({ controller, pxPerSecond, onPxPerSecondChange, editable, waveforms, className }: VideoTimelineProps): React__default.JSX.Element;
|
|
105
|
-
|
|
106
|
-
interface ClipInspectorProps {
|
|
107
|
-
controller: VideoEditorController;
|
|
108
|
-
className?: string;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Edits the one selected clip: its name, fades, opacity, volume and transform (each with a keyframe
|
|
112
|
-
* toggle at the playhead: ◆ adds a key holding the value there or removes the one there; typing a
|
|
113
|
-
* value on a keyed property sets the key at the playhead); volume, speed and mute for media;
|
|
114
|
-
* text, colour, size and background for titles; colour for colour clips; and the transition into
|
|
115
|
-
* it. Each change is one undo step (`update_clip` / `set_transition`), committed on blur or change.
|
|
116
|
-
*/
|
|
117
|
-
declare function ClipInspector({ controller, className }: ClipInspectorProps): React__default.JSX.Element | null;
|
|
118
|
-
|
|
119
|
-
interface MediaBinProps {
|
|
120
|
-
controller: VideoEditorController;
|
|
121
|
-
/** Show the import controls and "Add to timeline" buttons (default true). */
|
|
122
|
-
editable?: boolean;
|
|
123
|
-
/** Turns a file into a URL the preview and exporter can open (default `URL.createObjectURL`). */
|
|
124
|
-
fileToUrl?: (file: File) => string;
|
|
125
|
-
/** Reads a source's length and size (default `probeVideoMedia`). */
|
|
126
|
-
probe?: typeof probeVideoMedia;
|
|
127
|
-
className?: string;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* The project's assets (name, kind, length), each with an "Add to timeline" button that puts it at
|
|
131
|
-
* the end of the first unlocked track of its kind. Import media by choosing or dropping files (read
|
|
132
|
-
* as object URLs and probed for their length and size) or by URL. Each import is one undo step.
|
|
133
|
-
*/
|
|
134
|
-
declare function MediaBin({ controller, editable, fileToUrl, probe, className }: MediaBinProps): React__default.JSX.Element;
|
|
135
|
-
|
|
136
|
-
interface TranscriptPanelProps {
|
|
137
|
-
controller: VideoEditorController;
|
|
138
|
-
/** Track whose words to show (default: the first audio track with a transcribed clip, else the first video track with one). */
|
|
139
|
-
track?: string;
|
|
140
|
-
/** Allow cutting by text and loading transcripts (default true). */
|
|
141
|
-
editable?: boolean;
|
|
142
|
-
className?: string;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Edit by text: the words the timeline plays, from its media's transcripts. Click a word to go to
|
|
146
|
-
* it, Shift-click to select a run of words, then delete them to cut that stretch out (closing it up
|
|
147
|
-
* on every sync-locked track). "Remove fillers" and "Tighten pauses" cut every um and every long gap
|
|
148
|
-
* at once. Each cut is one undo step. Transcripts (Whisper JSON, .srt, .vtt) load per asset below.
|
|
149
|
-
*/
|
|
150
|
-
declare function TranscriptPanel({ controller, track, editable, className }: TranscriptPanelProps): React__default.JSX.Element;
|
|
151
|
-
|
|
152
|
-
interface VideoEditorProps {
|
|
153
|
-
/** The controller to edit. Without it one is created from `options` for the component's lifetime. */
|
|
154
|
-
controller?: VideoEditorController;
|
|
155
|
-
/** Options for the controller created when `controller` is not given. */
|
|
156
|
-
options?: VideoEditorOptions;
|
|
157
|
-
/**
|
|
158
|
-
* Show the editing UI: the media bin's imports, the transport's edit buttons, timeline dragging
|
|
159
|
-
* and track toggles, and the clip inspector (default true). False also makes the project read-only
|
|
160
|
-
* while mounted.
|
|
161
|
-
*/
|
|
162
|
-
editable?: boolean;
|
|
163
|
-
/** Timeline zoom in pixels per second (with `onPxPerSecondChange` the host owns it). */
|
|
164
|
-
pxPerSecond?: number;
|
|
165
|
-
onPxPerSecondChange?: (pxPerSecond: number) => void;
|
|
166
|
-
/** Canvas pixels per frame pixel for the preview (see `<VideoPreview resolution>`). */
|
|
167
|
-
resolution?: number;
|
|
168
|
-
/** List the project's issues under the timeline (default true). */
|
|
169
|
-
showIssues?: boolean;
|
|
170
|
-
/** Show the transcript panel for editing by text (default true). */
|
|
171
|
-
showTranscript?: boolean;
|
|
172
|
-
/** Show colour scopes (histogram, luma waveform, vectorscope) of the preview under it (default false). */
|
|
173
|
-
showScopes?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* An effects provider (see `@pixerate/editor/effects`), registered with the controller while
|
|
176
|
-
* mounted: clip effects, effect transitions and effect clips, with the effects panel. Optional:
|
|
177
|
-
* without one the editor is as before (effects in a project show as placeholders).
|
|
178
|
-
*/
|
|
179
|
-
effects?: EffectProvider | null;
|
|
180
|
-
/** Show the effects panel (default: when a provider is given or the project has effects). */
|
|
181
|
-
showEffects?: boolean;
|
|
182
|
-
className?: string;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* A whole non-linear video editor for a `VideoEditorController`: the media bin, the preview, the
|
|
186
|
-
* transport, the timeline and the clip inspector, with the project's issues listed under the
|
|
187
|
-
* timeline. Every edit is one undo step; the controller's agent tools edit the same project.
|
|
188
|
-
*/
|
|
189
|
-
declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, showScopes, effects, showEffects, className }: VideoEditorProps): React__default.JSX.Element;
|
|
190
|
-
|
|
191
|
-
interface VideoEffectsPanelProps {
|
|
192
|
-
controller: VideoEditorController;
|
|
193
|
-
className?: string;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Provider effects for the selected clip: its effect stack (add, turn on and off, reorder, change
|
|
197
|
-
* controls, remove), its effect transition, and an effect clip's own controls; plus adding effect
|
|
198
|
-
* clips at the playhead. Every change is one undo step (a slider drag is one). Without a provider it
|
|
199
|
-
* lists what the project holds and says why nothing can be added.
|
|
200
|
-
*/
|
|
201
|
-
declare function VideoEffectsPanel({ controller, className }: VideoEffectsPanelProps): React__default.JSX.Element;
|
|
202
|
-
|
|
203
|
-
export { ClipInspector, type ClipInspectorProps, MediaBin, type MediaBinProps, TranscriptPanel, type TranscriptPanelProps, type UseVideoEditorResult, VideoEditor, type VideoEditorProps, VideoEffectsPanel, type VideoEffectsPanelProps, VideoPreview, type VideoPreviewProps, VideoScopes, type VideoScopesProps, VideoTimeline, type VideoTimelineProps, VideoTransport, type VideoTransportProps, useVideoEditor, useVideoEditorController, useVideoEditorState, useVideoEditorTools, useVideoEffectsTools };
|
|
1
|
+
export * from './useVideoEditor.js';
|
|
2
|
+
export * from './VideoPreview.js';
|
|
3
|
+
export * from './VideoScopes.js';
|
|
4
|
+
export * from './VideoTransport.js';
|
|
5
|
+
export * from './VideoTimeline.js';
|
|
6
|
+
export * from './ClipInspector.js';
|
|
7
|
+
export * from './MediaBin.js';
|
|
8
|
+
export * from './TranscriptPanel.js';
|
|
9
|
+
export * from './VideoEditor.js';
|
|
10
|
+
export * from './VideoEffectsPanel.js';
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
EffectsBrowser,
|
|
4
4
|
useEffectDescription,
|
|
5
5
|
useEffects
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-5R67YSSD.js";
|
|
7
|
+
import "../chunk-OTGJEYHV.js";
|
|
8
8
|
|
|
9
9
|
// src/video-editor/useVideoEditor.ts
|
|
10
10
|
import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
@@ -1362,4 +1362,3 @@ export {
|
|
|
1362
1362
|
useVideoEditorTools,
|
|
1363
1363
|
useVideoEffectsTools
|
|
1364
1364
|
};
|
|
1365
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions } from '@pixerate/editor/video-editor';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** A `VideoEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useVideoEditorController(options?: VideoEditorOptions): VideoEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change, including each played frame). */
|
|
6
|
+
export declare function useVideoEditorState(controller: VideoEditorController): VideoEditorState;
|
|
7
|
+
export interface UseVideoEditorResult {
|
|
8
|
+
controller: VideoEditorController;
|
|
9
|
+
state: VideoEditorState;
|
|
10
|
+
play: () => void;
|
|
11
|
+
pause: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
/** Moves the playhead (ms). */
|
|
14
|
+
seek: (time: number) => void;
|
|
15
|
+
/** Moves the playhead by whole frames (negative steps back), pausing. */
|
|
16
|
+
step: (frames: number) => void;
|
|
17
|
+
undo: () => void;
|
|
18
|
+
redo: () => void;
|
|
19
|
+
/** Splits the selected clips (or every clip) under the playhead, as one undo step. */
|
|
20
|
+
splitAtPlayhead: () => VideoEditResult;
|
|
21
|
+
/** Deletes the selected clips; `ripple` closes the gaps they leave. */
|
|
22
|
+
deleteSelection: (options?: {
|
|
23
|
+
ripple?: boolean;
|
|
24
|
+
}) => VideoEditResult;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Subscribes to a video editor controller and exposes its state with bound actions.
|
|
28
|
+
* Pass options instead of a controller to create one for the component's lifetime.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useVideoEditor(controllerOrOptions?: VideoEditorController | VideoEditorOptions): UseVideoEditorResult;
|
|
31
|
+
/**
|
|
32
|
+
* Registers the video editor's agent tools (`get_video_project`, `add_video_clip`,
|
|
33
|
+
* `trim_video_clip`, …) in `registry` while mounted.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useVideoEditorTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEditorToolProviderOptions): void;
|
|
36
|
+
/**
|
|
37
|
+
* Registers the video editor's effect tools (`search_effects`, `describe_effect`, `apply_effect`,
|
|
38
|
+
* `add_video_effect_clip`, `set_video_effect_transition`, …) in `registry` while mounted. They
|
|
39
|
+
* work once an effects provider is registered (see `useEffects`); before that the read tools say
|
|
40
|
+
* so and the write tools refuse.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useVideoEffectsTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEffectsToolProviderOptions): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions } from '@pixerate/editor/video-editor';
|
|
2
|
+
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
|
+
/** A `VideoEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
|
+
export declare function useVideoEditorController(options?: VideoEditorOptions): VideoEditorController;
|
|
5
|
+
/** The controller's state (re-renders on every change, including each played frame). */
|
|
6
|
+
export declare function useVideoEditorState(controller: VideoEditorController): VideoEditorState;
|
|
7
|
+
export interface UseVideoEditorResult {
|
|
8
|
+
controller: VideoEditorController;
|
|
9
|
+
state: VideoEditorState;
|
|
10
|
+
play: () => void;
|
|
11
|
+
pause: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
/** Moves the playhead (ms). */
|
|
14
|
+
seek: (time: number) => void;
|
|
15
|
+
/** Moves the playhead by whole frames (negative steps back), pausing. */
|
|
16
|
+
step: (frames: number) => void;
|
|
17
|
+
undo: () => void;
|
|
18
|
+
redo: () => void;
|
|
19
|
+
/** Splits the selected clips (or every clip) under the playhead, as one undo step. */
|
|
20
|
+
splitAtPlayhead: () => VideoEditResult;
|
|
21
|
+
/** Deletes the selected clips; `ripple` closes the gaps they leave. */
|
|
22
|
+
deleteSelection: (options?: {
|
|
23
|
+
ripple?: boolean;
|
|
24
|
+
}) => VideoEditResult;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Subscribes to a video editor controller and exposes its state with bound actions.
|
|
28
|
+
* Pass options instead of a controller to create one for the component's lifetime.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useVideoEditor(controllerOrOptions?: VideoEditorController | VideoEditorOptions): UseVideoEditorResult;
|
|
31
|
+
/**
|
|
32
|
+
* Registers the video editor's agent tools (`get_video_project`, `add_video_clip`,
|
|
33
|
+
* `trim_video_clip`, …) in `registry` while mounted.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useVideoEditorTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEditorToolProviderOptions): void;
|
|
36
|
+
/**
|
|
37
|
+
* Registers the video editor's effect tools (`search_effects`, `describe_effect`, `apply_effect`,
|
|
38
|
+
* `add_video_effect_clip`, `set_video_effect_transition`, …) in `registry` while mounted. They
|
|
39
|
+
* work once an effects provider is registered (see `useEffects`); before that the read tools say
|
|
40
|
+
* so and the write tools refuse.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useVideoEffectsTools(registry: ToolRegistry | null | undefined, controller: VideoEditorController, options?: VideoEffectsToolProviderOptions): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.1",
|
|
4
4
|
"description": "React bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,79 +15,154 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./dist/index.d.cts",
|
|
24
|
+
"default": "./dist/index.cjs"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"./effects": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/effects/index.d.ts",
|
|
30
|
+
"default": "./dist/effects/index.js"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/effects/index.d.cts",
|
|
34
|
+
"default": "./dist/effects/index.cjs"
|
|
35
|
+
}
|
|
26
36
|
},
|
|
27
37
|
"./spreadsheet": {
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/spreadsheet/index.d.ts",
|
|
40
|
+
"default": "./dist/spreadsheet/index.js"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/spreadsheet/index.d.cts",
|
|
44
|
+
"default": "./dist/spreadsheet/index.cjs"
|
|
45
|
+
}
|
|
31
46
|
},
|
|
32
47
|
"./canvas": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/canvas/index.d.ts",
|
|
50
|
+
"default": "./dist/canvas/index.js"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/canvas/index.d.cts",
|
|
54
|
+
"default": "./dist/canvas/index.cjs"
|
|
55
|
+
}
|
|
36
56
|
},
|
|
37
57
|
"./image-editor": {
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/image-editor/index.d.ts",
|
|
60
|
+
"default": "./dist/image-editor/index.js"
|
|
61
|
+
},
|
|
62
|
+
"require": {
|
|
63
|
+
"types": "./dist/image-editor/index.d.cts",
|
|
64
|
+
"default": "./dist/image-editor/index.cjs"
|
|
65
|
+
}
|
|
41
66
|
},
|
|
42
67
|
"./paint-editor": {
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./dist/paint-editor/index.d.ts",
|
|
70
|
+
"default": "./dist/paint-editor/index.js"
|
|
71
|
+
},
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./dist/paint-editor/index.d.cts",
|
|
74
|
+
"default": "./dist/paint-editor/index.cjs"
|
|
75
|
+
}
|
|
46
76
|
},
|
|
47
77
|
"./commands": {
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./dist/commands/index.d.ts",
|
|
80
|
+
"default": "./dist/commands/index.js"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./dist/commands/index.d.cts",
|
|
84
|
+
"default": "./dist/commands/index.cjs"
|
|
85
|
+
}
|
|
51
86
|
},
|
|
52
87
|
"./persistence": {
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/persistence/index.d.ts",
|
|
90
|
+
"default": "./dist/persistence/index.js"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./dist/persistence/index.d.cts",
|
|
94
|
+
"default": "./dist/persistence/index.cjs"
|
|
95
|
+
}
|
|
56
96
|
},
|
|
57
97
|
"./generation": {
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
98
|
+
"import": {
|
|
99
|
+
"types": "./dist/generation/index.d.ts",
|
|
100
|
+
"default": "./dist/generation/index.js"
|
|
101
|
+
},
|
|
102
|
+
"require": {
|
|
103
|
+
"types": "./dist/generation/index.d.cts",
|
|
104
|
+
"default": "./dist/generation/index.cjs"
|
|
105
|
+
}
|
|
61
106
|
},
|
|
62
107
|
"./tokens": {
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
108
|
+
"import": {
|
|
109
|
+
"types": "./dist/tokens/index.d.ts",
|
|
110
|
+
"default": "./dist/tokens/index.js"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./dist/tokens/index.d.cts",
|
|
114
|
+
"default": "./dist/tokens/index.cjs"
|
|
115
|
+
}
|
|
66
116
|
},
|
|
67
117
|
"./parameters": {
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./dist/parameters/index.d.ts",
|
|
120
|
+
"default": "./dist/parameters/index.js"
|
|
121
|
+
},
|
|
122
|
+
"require": {
|
|
123
|
+
"types": "./dist/parameters/index.d.cts",
|
|
124
|
+
"default": "./dist/parameters/index.cjs"
|
|
125
|
+
}
|
|
71
126
|
},
|
|
72
127
|
"./vector": {
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
128
|
+
"import": {
|
|
129
|
+
"types": "./dist/vector/index.d.ts",
|
|
130
|
+
"default": "./dist/vector/index.js"
|
|
131
|
+
},
|
|
132
|
+
"require": {
|
|
133
|
+
"types": "./dist/vector/index.d.cts",
|
|
134
|
+
"default": "./dist/vector/index.cjs"
|
|
135
|
+
}
|
|
76
136
|
},
|
|
77
137
|
"./animation-editor": {
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./dist/animation-editor/index.d.ts",
|
|
140
|
+
"default": "./dist/animation-editor/index.js"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./dist/animation-editor/index.d.cts",
|
|
144
|
+
"default": "./dist/animation-editor/index.cjs"
|
|
145
|
+
}
|
|
81
146
|
},
|
|
82
147
|
"./chart": {
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
148
|
+
"import": {
|
|
149
|
+
"types": "./dist/chart/index.d.ts",
|
|
150
|
+
"default": "./dist/chart/index.js"
|
|
151
|
+
},
|
|
152
|
+
"require": {
|
|
153
|
+
"types": "./dist/chart/index.d.cts",
|
|
154
|
+
"default": "./dist/chart/index.cjs"
|
|
155
|
+
}
|
|
86
156
|
},
|
|
87
157
|
"./video-editor": {
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
158
|
+
"import": {
|
|
159
|
+
"types": "./dist/video-editor/index.d.ts",
|
|
160
|
+
"default": "./dist/video-editor/index.js"
|
|
161
|
+
},
|
|
162
|
+
"require": {
|
|
163
|
+
"types": "./dist/video-editor/index.d.cts",
|
|
164
|
+
"default": "./dist/video-editor/index.cjs"
|
|
165
|
+
}
|
|
91
166
|
}
|
|
92
167
|
},
|
|
93
168
|
"typesVersions": {
|
|
@@ -144,7 +219,7 @@
|
|
|
144
219
|
},
|
|
145
220
|
"peerDependencies": {
|
|
146
221
|
"@dagrejs/dagre": "^1.1.8",
|
|
147
|
-
"@pixerate/editor": ">=0.
|
|
222
|
+
"@pixerate/editor": ">=0.139.1 <1.0.0-0",
|
|
148
223
|
"@tiptap/core": "^2.11.5",
|
|
149
224
|
"@tiptap/pm": "^2.11.5",
|
|
150
225
|
"@tiptap/react": "^2.11.5",
|
|
@@ -171,10 +246,10 @@
|
|
|
171
246
|
"tsup": "^8.4.0",
|
|
172
247
|
"typescript": "^5.7.3",
|
|
173
248
|
"vitest": "^5.0.5",
|
|
174
|
-
"@pixerate/editor": "0.
|
|
249
|
+
"@pixerate/editor": "0.139.1"
|
|
175
250
|
},
|
|
176
251
|
"scripts": {
|
|
177
|
-
"build": "tsup",
|
|
252
|
+
"build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",
|
|
178
253
|
"typecheck": "tsc --noEmit",
|
|
179
254
|
"test": "vitest run"
|
|
180
255
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PaintGradientSource } from '@pixerate/editor/paint-editor';
|
|
2
|
-
|
|
3
|
-
interface PaintGradientEditorProps {
|
|
4
|
-
value: PaintGradientSource;
|
|
5
|
-
onChange: (paint: PaintGradientSource) => void;
|
|
6
|
-
/** What `paint` / `secondary` stops show as (the editor's two colours). */
|
|
7
|
-
colors: {
|
|
8
|
-
paint: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { PaintGradientEditorProps as P };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PaintGradientSource } from '@pixerate/editor/paint-editor';
|
|
2
|
-
|
|
3
|
-
interface PaintGradientEditorProps {
|
|
4
|
-
value: PaintGradientSource;
|
|
5
|
-
onChange: (paint: PaintGradientSource) => void;
|
|
6
|
-
/** What `paint` / `secondary` stops show as (the editor's two colours). */
|
|
7
|
-
colors: {
|
|
8
|
-
paint: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
};
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { PaintGradientEditorProps as P };
|