@pixerate/editor-react 0.90.0 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/AnimationEditor.d.cts +33 -0
- package/dist/animation-editor/AnimationEditor.d.ts +33 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
- package/dist/animation-editor/AnimationStage.d.cts +24 -0
- package/dist/animation-editor/AnimationStage.d.ts +24 -0
- package/dist/animation-editor/CommandInspector.d.cts +14 -0
- package/dist/animation-editor/CommandInspector.d.ts +14 -0
- package/dist/animation-editor/CommandList.d.cts +16 -0
- package/dist/animation-editor/CommandList.d.ts +16 -0
- package/dist/animation-editor/CommitInput.d.cts +6 -0
- package/dist/animation-editor/CommitInput.d.ts +6 -0
- package/dist/animation-editor/EasePicker.d.cts +18 -0
- package/dist/animation-editor/EasePicker.d.ts +18 -0
- package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
- package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
- package/dist/animation-editor/SceneSettings.d.cts +12 -0
- package/dist/animation-editor/SceneSettings.d.ts +12 -0
- package/dist/animation-editor/ShotInspector.d.cts +14 -0
- package/dist/animation-editor/ShotInspector.d.ts +14 -0
- package/dist/animation-editor/ShotTimeline.d.cts +11 -0
- package/dist/animation-editor/ShotTimeline.d.ts +11 -0
- package/dist/animation-editor/index.cjs +0 -1
- package/dist/animation-editor/index.d.cts +11 -195
- package/dist/animation-editor/index.d.ts +11 -195
- package/dist/animation-editor/index.js +2 -3
- package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
- package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
- package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
- package/dist/canvas/AnimationTimeline.d.cts +22 -0
- package/dist/canvas/AnimationTimeline.d.ts +22 -0
- package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
- package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
- package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
- package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
- package/dist/canvas/CanvasEffects.d.cts +52 -0
- package/dist/canvas/CanvasEffects.d.ts +52 -0
- package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
- package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
- package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
- package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
- package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
- package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
- package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
- package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
- package/dist/canvas/MermaidThumbnail.d.cts +15 -0
- package/dist/canvas/MermaidThumbnail.d.ts +15 -0
- package/dist/canvas/ShapeNode.d.cts +31 -0
- package/dist/canvas/ShapeNode.d.ts +31 -0
- package/dist/canvas/TokenBindingPicker.d.cts +37 -0
- package/dist/canvas/TokenBindingPicker.d.ts +37 -0
- package/dist/canvas/index.cjs +0 -1
- package/dist/canvas/index.d.cts +40 -1084
- package/dist/canvas/index.d.ts +40 -1084
- package/dist/canvas/index.js +2 -3
- package/dist/canvas/useCanvasAnimation.d.cts +97 -0
- package/dist/canvas/useCanvasAnimation.d.ts +97 -0
- package/dist/canvas/useCanvasArrange.d.cts +80 -0
- package/dist/canvas/useCanvasArrange.d.ts +80 -0
- package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
- package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
- package/dist/canvas/useCanvasCapture.d.cts +20 -0
- package/dist/canvas/useCanvasCapture.d.ts +20 -0
- package/dist/canvas/useCanvasClipboard.d.cts +14 -0
- package/dist/canvas/useCanvasClipboard.d.ts +14 -0
- package/dist/canvas/useCanvasComponents.d.cts +74 -0
- package/dist/canvas/useCanvasComponents.d.ts +74 -0
- package/dist/canvas/useCanvasDocking.d.cts +15 -0
- package/dist/canvas/useCanvasDocking.d.ts +15 -0
- package/dist/canvas/useCanvasDraw.d.cts +37 -0
- package/dist/canvas/useCanvasDraw.d.ts +37 -0
- package/dist/canvas/useCanvasExplosion.d.cts +16 -0
- package/dist/canvas/useCanvasExplosion.d.ts +16 -0
- package/dist/canvas/useCanvasGraph.d.cts +27 -0
- package/dist/canvas/useCanvasGraph.d.ts +27 -0
- package/dist/canvas/useCanvasLayout.d.cts +25 -0
- package/dist/canvas/useCanvasLayout.d.ts +25 -0
- package/dist/canvas/useCanvasMeasure.d.cts +41 -0
- package/dist/canvas/useCanvasMeasure.d.ts +41 -0
- package/dist/canvas/useCanvasScenes.d.cts +61 -0
- package/dist/canvas/useCanvasScenes.d.ts +61 -0
- package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
- package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
- package/dist/canvas/useCanvasTokens.d.cts +24 -0
- package/dist/canvas/useCanvasTokens.d.ts +24 -0
- package/dist/canvas/useDiagramDirector.d.cts +21 -0
- package/dist/canvas/useDiagramDirector.d.ts +21 -0
- package/dist/canvas/useMermaidDiagram.d.cts +79 -0
- package/dist/canvas/useMermaidDiagram.d.ts +79 -0
- package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
- package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
- package/dist/canvas/useStreamingCanvas.d.cts +17 -0
- package/dist/canvas/useStreamingCanvas.d.ts +17 -0
- package/dist/chart/ChartCanvas.d.cts +44 -0
- package/dist/chart/ChartCanvas.d.ts +44 -0
- package/dist/chart/ChartDataGrid.d.cts +24 -0
- package/dist/chart/ChartDataGrid.d.ts +24 -0
- package/dist/chart/ChartEditor.d.cts +20 -0
- package/dist/chart/ChartEditor.d.ts +20 -0
- package/dist/chart/ChartInspector.d.cts +14 -0
- package/dist/chart/ChartInspector.d.ts +14 -0
- package/dist/chart/ChartStreamingView.d.cts +40 -0
- package/dist/chart/ChartStreamingView.d.ts +40 -0
- package/dist/chart/index.cjs +0 -1
- package/dist/chart/index.d.cts +7 -212
- package/dist/chart/index.d.ts +7 -212
- package/dist/chart/index.js +1 -2
- package/dist/chart/styles.d.cts +7 -0
- package/dist/chart/styles.d.ts +7 -0
- package/dist/chart/useChartEditor.d.cts +64 -0
- package/dist/chart/useChartEditor.d.ts +64 -0
- package/dist/chart-node/ChartNodeView.d.cts +27 -0
- package/dist/chart-node/ChartNodeView.d.ts +27 -0
- package/dist/chart-node/index.d.cts +1 -0
- package/dist/chart-node/index.d.ts +1 -0
- package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
- package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
- package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
- package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
- package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
- package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
- package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
- package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
- package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
- package/dist/commands/CommandPalette.d.cts +16 -0
- package/dist/commands/CommandPalette.d.ts +16 -0
- package/dist/commands/index.cjs +0 -1
- package/dist/commands/index.d.cts +3 -69
- package/dist/commands/index.d.ts +3 -69
- package/dist/commands/index.js +1 -2
- package/dist/commands/useCommandPalette.d.cts +24 -0
- package/dist/commands/useCommandPalette.d.ts +24 -0
- package/dist/commands/useCommandShortcuts.d.cts +26 -0
- package/dist/commands/useCommandShortcuts.d.ts +26 -0
- package/dist/components/BubbleMenu.d.cts +13 -0
- package/dist/components/BubbleMenu.d.ts +13 -0
- package/dist/components/EditorContent.d.cts +6 -0
- package/dist/components/EditorContent.d.ts +6 -0
- package/dist/components/ExportDocxButton.d.cts +12 -0
- package/dist/components/ExportDocxButton.d.ts +12 -0
- package/dist/components/MergePreview.d.cts +28 -0
- package/dist/components/MergePreview.d.ts +28 -0
- package/dist/components/OutlinePanel.d.cts +28 -0
- package/dist/components/OutlinePanel.d.ts +28 -0
- package/dist/components/StylesGallery.d.cts +31 -0
- package/dist/components/StylesGallery.d.ts +31 -0
- package/dist/components/TemplateRenderer.d.cts +26 -0
- package/dist/components/TemplateRenderer.d.ts +26 -0
- package/dist/components/VariableForm.d.cts +27 -0
- package/dist/components/VariableForm.d.ts +27 -0
- package/dist/effects/EffectParameters.d.cts +28 -0
- package/dist/effects/EffectParameters.d.ts +28 -0
- package/dist/effects/EffectThumbnail.d.cts +15 -0
- package/dist/effects/EffectThumbnail.d.ts +15 -0
- package/dist/effects/EffectsBrowser.d.cts +22 -0
- package/dist/effects/EffectsBrowser.d.ts +22 -0
- package/dist/effects/index.cjs +0 -1
- package/dist/effects/index.d.cts +4 -82
- package/dist/effects/index.d.ts +4 -82
- package/dist/effects/index.js +2 -3
- package/dist/effects/useEffects.d.cts +16 -0
- package/dist/effects/useEffects.d.ts +16 -0
- package/dist/find-replace/FindReplaceBar.d.cts +19 -0
- package/dist/find-replace/FindReplaceBar.d.ts +19 -0
- package/dist/find-replace/index.d.cts +2 -0
- package/dist/find-replace/index.d.ts +2 -0
- package/dist/find-replace/useFindReplace.d.cts +24 -0
- package/dist/find-replace/useFindReplace.d.ts +24 -0
- package/dist/generation/AssetMentionChips.d.cts +24 -0
- package/dist/generation/AssetMentionChips.d.ts +24 -0
- package/dist/generation/GenerationHistory.d.cts +43 -0
- package/dist/generation/GenerationHistory.d.ts +43 -0
- package/dist/generation/GenerationSettings.d.cts +26 -0
- package/dist/generation/GenerationSettings.d.ts +26 -0
- package/dist/generation/JobProgress.d.cts +14 -0
- package/dist/generation/JobProgress.d.ts +14 -0
- package/dist/generation/index.cjs +0 -1
- package/dist/generation/index.d.cts +5 -124
- package/dist/generation/index.d.ts +5 -124
- package/dist/generation/index.js +1 -2
- package/dist/generation/useGenerationPlan.d.cts +18 -0
- package/dist/generation/useGenerationPlan.d.ts +18 -0
- package/dist/hooks/useAgentToolProvider.d.cts +11 -0
- package/dist/hooks/useAgentToolProvider.d.ts +11 -0
- package/dist/hooks/useDismissGuard.d.cts +26 -0
- package/dist/hooks/useDismissGuard.d.ts +26 -0
- package/dist/hooks/useDocxExport.d.cts +14 -0
- package/dist/hooks/useDocxExport.d.ts +14 -0
- package/dist/hooks/useEditor.d.cts +20 -0
- package/dist/hooks/useEditor.d.ts +20 -0
- package/dist/hooks/useFileImport.d.cts +23 -0
- package/dist/hooks/useFileImport.d.ts +23 -0
- package/dist/hooks/useHistory.d.cts +27 -0
- package/dist/hooks/useHistory.d.ts +27 -0
- package/dist/hooks/useHistoryDirty.d.cts +27 -0
- package/dist/hooks/useHistoryDirty.d.ts +27 -0
- package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
- package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
- package/dist/hooks/useMergePreview.d.cts +49 -0
- package/dist/hooks/useMergePreview.d.ts +49 -0
- package/dist/hooks/useNavigationGuard.d.cts +27 -0
- package/dist/hooks/useNavigationGuard.d.ts +27 -0
- package/dist/hooks/useOutline.d.cts +12 -0
- package/dist/hooks/useOutline.d.ts +12 -0
- package/dist/hooks/useParagraphStyles.d.cts +24 -0
- package/dist/hooks/useParagraphStyles.d.ts +24 -0
- package/dist/hooks/usePromptEditor.d.cts +57 -0
- package/dist/hooks/usePromptEditor.d.ts +57 -0
- package/dist/hooks/useToolBridge.d.cts +14 -0
- package/dist/hooks/useToolBridge.d.ts +14 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
- package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
- package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
- package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
- package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
- package/dist/image-editor/ControlSlider.d.cts +12 -0
- package/dist/image-editor/ControlSlider.d.ts +12 -0
- package/dist/image-editor/CurvesEditor.d.cts +15 -0
- package/dist/image-editor/CurvesEditor.d.ts +15 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
- package/dist/image-editor/Histogram.d.cts +14 -0
- package/dist/image-editor/Histogram.d.ts +14 -0
- package/dist/image-editor/ImageEditor.d.cts +22 -0
- package/dist/image-editor/ImageEditor.d.ts +22 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
- package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
- package/dist/image-editor/LayersPanel.d.cts +22 -0
- package/dist/image-editor/LayersPanel.d.ts +22 -0
- package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
- package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
- package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
- package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
- package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
- package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
- package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
- package/dist/image-editor/index.cjs +0 -1
- package/dist/image-editor/index.d.cts +17 -296
- package/dist/image-editor/index.d.ts +17 -296
- package/dist/image-editor/index.js +4 -5
- package/dist/image-editor/useImageEditor.d.cts +70 -0
- package/dist/image-editor/useImageEditor.d.ts +70 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +35 -802
- package/dist/index.d.ts +35 -802
- package/dist/index.js +9 -10
- package/dist/paint-editor/BrushPanel.d.cts +18 -0
- package/dist/paint-editor/BrushPanel.d.ts +18 -0
- package/dist/paint-editor/ColorPanel.d.cts +17 -0
- package/dist/paint-editor/ColorPanel.d.ts +17 -0
- package/dist/paint-editor/PaintCanvas.d.cts +40 -0
- package/dist/paint-editor/PaintCanvas.d.ts +40 -0
- package/dist/paint-editor/PaintEditor.d.cts +18 -0
- package/dist/paint-editor/PaintEditor.d.ts +18 -0
- package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
- package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
- package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
- package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
- package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
- package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
- package/dist/paint-editor/PaintToolbar.d.cts +17 -0
- package/dist/paint-editor/PaintToolbar.d.ts +17 -0
- package/dist/paint-editor/PaperPanel.d.cts +13 -0
- package/dist/paint-editor/PaperPanel.d.ts +13 -0
- package/dist/paint-editor/StickerPanel.d.cts +12 -0
- package/dist/paint-editor/StickerPanel.d.ts +12 -0
- package/dist/paint-editor/WetPanel.d.cts +14 -0
- package/dist/paint-editor/WetPanel.d.ts +14 -0
- package/dist/paint-editor/index.cjs +0 -1
- package/dist/paint-editor/index.d.cts +13 -211
- package/dist/paint-editor/index.d.ts +13 -211
- package/dist/paint-editor/index.js +3 -4
- package/dist/paint-editor/shared.d.cts +38 -0
- package/dist/paint-editor/shared.d.ts +38 -0
- package/dist/paint-editor/usePaintEditor.d.cts +22 -0
- package/dist/paint-editor/usePaintEditor.d.ts +22 -0
- package/dist/parameters/ParametersPanel.d.cts +27 -0
- package/dist/parameters/ParametersPanel.d.ts +27 -0
- package/dist/parameters/fields.d.cts +62 -0
- package/dist/parameters/fields.d.ts +62 -0
- package/dist/parameters/index.cjs +0 -1
- package/dist/parameters/index.d.cts +3 -121
- package/dist/parameters/index.d.ts +3 -121
- package/dist/parameters/index.js +1 -2
- package/dist/parameters/useParameters.d.cts +32 -0
- package/dist/parameters/useParameters.d.ts +32 -0
- package/dist/persistence/RecoveryPrompt.d.cts +20 -0
- package/dist/persistence/RecoveryPrompt.d.ts +20 -0
- package/dist/persistence/index.cjs +0 -1
- package/dist/persistence/index.d.cts +2 -77
- package/dist/persistence/index.d.ts +2 -77
- package/dist/persistence/index.js +1 -2
- package/dist/persistence/useAutosave.d.cts +54 -0
- package/dist/persistence/useAutosave.d.ts +54 -0
- package/dist/review/CommentButton.d.cts +12 -0
- package/dist/review/CommentButton.d.ts +12 -0
- package/dist/review/CommentsPanel.d.cts +21 -0
- package/dist/review/CommentsPanel.d.ts +21 -0
- package/dist/review/ReviewToolbar.d.cts +20 -0
- package/dist/review/ReviewToolbar.d.ts +20 -0
- package/dist/review/TrackedChangesList.d.cts +18 -0
- package/dist/review/TrackedChangesList.d.ts +18 -0
- package/dist/review/index.d.cts +6 -0
- package/dist/review/index.d.ts +6 -0
- package/dist/review/useDocumentCompare.d.cts +20 -0
- package/dist/review/useDocumentCompare.d.ts +20 -0
- package/dist/review/useReview.d.cts +32 -0
- package/dist/review/useReview.d.ts +32 -0
- package/dist/slots.d.cts +14 -0
- package/dist/slots.d.ts +14 -0
- package/dist/spreadsheet/FormulaHints.d.cts +24 -0
- package/dist/spreadsheet/FormulaHints.d.ts +24 -0
- package/dist/spreadsheet/NameManager.d.cts +14 -0
- package/dist/spreadsheet/NameManager.d.ts +14 -0
- package/dist/spreadsheet/SheetTabs.d.cts +13 -0
- package/dist/spreadsheet/SheetTabs.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
- package/dist/spreadsheet/index.cjs +0 -1
- package/dist/spreadsheet/index.d.cts +11 -309
- package/dist/spreadsheet/index.d.ts +11 -309
- package/dist/spreadsheet/index.js +1 -2
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
- package/dist/tables/InsertTableGrid.d.cts +25 -0
- package/dist/tables/InsertTableGrid.d.ts +25 -0
- package/dist/tables/TableBubbleMenu.d.cts +18 -0
- package/dist/tables/TableBubbleMenu.d.ts +18 -0
- package/dist/tables/TableToolbar.d.cts +23 -0
- package/dist/tables/TableToolbar.d.ts +23 -0
- package/dist/tables/index.d.cts +4 -0
- package/dist/tables/index.d.ts +4 -0
- package/dist/tables/useTableMenu.d.cts +17 -0
- package/dist/tables/useTableMenu.d.ts +17 -0
- package/dist/tokens/TokensPanel.d.cts +22 -0
- package/dist/tokens/TokensPanel.d.ts +22 -0
- package/dist/tokens/index.cjs +0 -1
- package/dist/tokens/index.d.cts +2 -54
- package/dist/tokens/index.d.ts +2 -54
- package/dist/tokens/index.js +0 -1
- package/dist/tokens/useTokens.d.cts +29 -0
- package/dist/tokens/useTokens.d.ts +29 -0
- package/dist/vector/VectorAppearancePanel.d.cts +14 -0
- package/dist/vector/VectorAppearancePanel.d.ts +14 -0
- package/dist/vector/VectorCanvas.d.cts +58 -0
- package/dist/vector/VectorCanvas.d.ts +58 -0
- package/dist/vector/VectorConnectorPanel.d.cts +12 -0
- package/dist/vector/VectorConnectorPanel.d.ts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
- package/dist/vector/VectorEditor.d.cts +23 -0
- package/dist/vector/VectorEditor.d.ts +23 -0
- package/dist/vector/VectorEffectsPanel.d.cts +13 -0
- package/dist/vector/VectorEffectsPanel.d.ts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
- package/dist/vector/VectorFramePanel.d.cts +12 -0
- package/dist/vector/VectorFramePanel.d.ts +12 -0
- package/dist/vector/VectorGeneratePanel.d.cts +15 -0
- package/dist/vector/VectorGeneratePanel.d.ts +15 -0
- package/dist/vector/VectorGradientEditor.d.cts +12 -0
- package/dist/vector/VectorGradientEditor.d.ts +12 -0
- package/dist/vector/VectorLensPanel.d.cts +12 -0
- package/dist/vector/VectorLensPanel.d.ts +12 -0
- package/dist/vector/VectorMaskPanel.d.cts +13 -0
- package/dist/vector/VectorMaskPanel.d.ts +13 -0
- package/dist/vector/VectorPagesPanel.d.cts +11 -0
- package/dist/vector/VectorPagesPanel.d.ts +11 -0
- package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
- package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
- package/dist/vector/VectorShadingPanel.d.cts +12 -0
- package/dist/vector/VectorShadingPanel.d.ts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
- package/dist/vector/VectorTextPanel.d.cts +14 -0
- package/dist/vector/VectorTextPanel.d.ts +14 -0
- package/dist/vector/VectorToolbar.d.cts +39 -0
- package/dist/vector/VectorToolbar.d.ts +39 -0
- package/dist/vector/VectorTracePanel.d.cts +12 -0
- package/dist/vector/VectorTracePanel.d.ts +12 -0
- package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
- package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
- package/dist/vector/index.cjs +0 -1
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +2 -3
- package/dist/vector/useVectorEditor.d.cts +40 -0
- package/dist/vector/useVectorEditor.d.ts +40 -0
- package/dist/video-editor/ClipInspector.d.cts +14 -0
- package/dist/video-editor/ClipInspector.d.ts +14 -0
- package/dist/video-editor/MediaBin.d.cts +18 -0
- package/dist/video-editor/MediaBin.d.ts +18 -0
- package/dist/video-editor/TranscriptPanel.d.cts +17 -0
- package/dist/video-editor/TranscriptPanel.d.ts +17 -0
- package/dist/video-editor/VideoEditor.d.cts +41 -0
- package/dist/video-editor/VideoEditor.d.ts +41 -0
- package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
- package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
- package/dist/video-editor/VideoPreview.d.cts +17 -0
- package/dist/video-editor/VideoPreview.d.ts +17 -0
- package/dist/video-editor/VideoScopes.d.cts +17 -0
- package/dist/video-editor/VideoScopes.d.ts +17 -0
- package/dist/video-editor/VideoTimeline.d.cts +15 -0
- package/dist/video-editor/VideoTimeline.d.ts +15 -0
- package/dist/video-editor/VideoTransport.d.cts +14 -0
- package/dist/video-editor/VideoTransport.d.ts +14 -0
- package/dist/video-editor/index.cjs +0 -1
- package/dist/video-editor/index.d.cts +10 -203
- package/dist/video-editor/index.d.ts +10 -203
- package/dist/video-editor/index.js +2 -3
- package/dist/video-editor/useVideoEditor.d.cts +42 -0
- package/dist/video-editor/useVideoEditor.d.ts +42 -0
- package/package.json +124 -49
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
- package/dist/animation-editor/index.cjs.map +0 -1
- package/dist/animation-editor/index.js.map +0 -1
- package/dist/canvas/index.cjs.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/chart/index.cjs.map +0 -1
- package/dist/chart/index.js.map +0 -1
- package/dist/chunk-34HEZX7J.js.map +0 -1
- package/dist/chunk-4FQXRPBN.js.map +0 -1
- package/dist/chunk-4ZC2WCUO.js.map +0 -1
- package/dist/chunk-I3E4KSA2.js.map +0 -1
- package/dist/chunk-MO354USR.js.map +0 -1
- package/dist/chunk-SIEOYRHX.js.map +0 -1
- package/dist/chunk-WOQ3H7KA.js.map +0 -1
- package/dist/chunk-XWFU2CSG.js.map +0 -1
- package/dist/chunk-ZQZAKUUM.js.map +0 -1
- package/dist/commands/index.cjs.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/effects/index.cjs.map +0 -1
- package/dist/effects/index.js.map +0 -1
- package/dist/generation/index.cjs.map +0 -1
- package/dist/generation/index.js.map +0 -1
- package/dist/image-editor/index.cjs.map +0 -1
- package/dist/image-editor/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/paint-editor/index.cjs.map +0 -1
- package/dist/paint-editor/index.js.map +0 -1
- package/dist/parameters/index.cjs.map +0 -1
- package/dist/parameters/index.js.map +0 -1
- package/dist/persistence/index.cjs.map +0 -1
- package/dist/persistence/index.js.map +0 -1
- package/dist/spreadsheet/index.cjs.map +0 -1
- package/dist/spreadsheet/index.js.map +0 -1
- package/dist/tokens/index.cjs.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/vector/index.cjs.map +0 -1
- package/dist/vector/index.js.map +0 -1
- package/dist/video-editor/index.cjs.map +0 -1
- package/dist/video-editor/index.js.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type CellCoordinate, type CellRange, type SpreadsheetViewMetrics, type SpreadsheetViewModel, type SpreadsheetViewWindow } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface SpreadsheetViewportOptions {
|
|
4
|
+
/** `'auto'` (default): virtualise large views only; `true` / `false` force it. */
|
|
5
|
+
virtualize?: boolean | 'auto';
|
|
6
|
+
/** Merged ranges, rendered whole when they cross the window's edge. */
|
|
7
|
+
merges?: readonly CellRange[];
|
|
8
|
+
/** Scrolled into view when it changes (virtualised views only). */
|
|
9
|
+
activeCell?: CellCoordinate | null;
|
|
10
|
+
overscanRows?: number;
|
|
11
|
+
overscanColumns?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface SpreadsheetViewportState {
|
|
14
|
+
metrics: SpreadsheetViewMetrics;
|
|
15
|
+
/** What to render; `virtual: false` renders every row and column. */
|
|
16
|
+
window: SpreadsheetViewWindow;
|
|
17
|
+
/** Attach to the scroll container's `onScroll`. */
|
|
18
|
+
onScroll: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Virtualised rendering for `SpreadsheetEditor`: tracks the scroll
|
|
22
|
+
* container (`scrollRef`), works out the window of rows and columns to
|
|
23
|
+
* render, and scrolls the active cell into view.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useSpreadsheetViewport(scrollRef: RefObject<HTMLElement | null>, view: SpreadsheetViewModel, options?: SpreadsheetViewportOptions): SpreadsheetViewportState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type CellCoordinate, type CellRange, type SpreadsheetViewMetrics, type SpreadsheetViewModel, type SpreadsheetViewWindow } from '@pixerate/editor/spreadsheet';
|
|
3
|
+
export interface SpreadsheetViewportOptions {
|
|
4
|
+
/** `'auto'` (default): virtualise large views only; `true` / `false` force it. */
|
|
5
|
+
virtualize?: boolean | 'auto';
|
|
6
|
+
/** Merged ranges, rendered whole when they cross the window's edge. */
|
|
7
|
+
merges?: readonly CellRange[];
|
|
8
|
+
/** Scrolled into view when it changes (virtualised views only). */
|
|
9
|
+
activeCell?: CellCoordinate | null;
|
|
10
|
+
overscanRows?: number;
|
|
11
|
+
overscanColumns?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface SpreadsheetViewportState {
|
|
14
|
+
metrics: SpreadsheetViewMetrics;
|
|
15
|
+
/** What to render; `virtual: false` renders every row and column. */
|
|
16
|
+
window: SpreadsheetViewWindow;
|
|
17
|
+
/** Attach to the scroll container's `onScroll`. */
|
|
18
|
+
onScroll: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Virtualised rendering for `SpreadsheetEditor`: tracks the scroll
|
|
22
|
+
* container (`scrollRef`), works out the window of rows and columns to
|
|
23
|
+
* render, and scrolls the active cell into view.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useSpreadsheetViewport(scrollRef: RefObject<HTMLElement | null>, view: SpreadsheetViewModel, options?: SpreadsheetViewportOptions): SpreadsheetViewportState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface InsertTableGridProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
/** Grid size offered (default 8 × 8). */
|
|
6
|
+
rows?: number;
|
|
7
|
+
cols?: number;
|
|
8
|
+
/** Insert with a header row (default `true`). */
|
|
9
|
+
withHeaderRow?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
cellClassName?: string;
|
|
12
|
+
activeCellClassName?: string;
|
|
13
|
+
/** Called after a table was inserted. */
|
|
14
|
+
onInsert?: (size: {
|
|
15
|
+
rows: number;
|
|
16
|
+
cols: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Word-style insert-table picker: hover (or focus) a cell of the grid to
|
|
21
|
+
* choose the size, click to insert a table of that size at the cursor. The
|
|
22
|
+
* grid is disabled (with the reason as its title) where a table cannot be
|
|
23
|
+
* inserted, e.g. inside another table.
|
|
24
|
+
*/
|
|
25
|
+
export declare const InsertTableGrid: React.FC<InsertTableGridProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
export interface InsertTableGridProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
/** Grid size offered (default 8 × 8). */
|
|
6
|
+
rows?: number;
|
|
7
|
+
cols?: number;
|
|
8
|
+
/** Insert with a header row (default `true`). */
|
|
9
|
+
withHeaderRow?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
cellClassName?: string;
|
|
12
|
+
activeCellClassName?: string;
|
|
13
|
+
/** Called after a table was inserted. */
|
|
14
|
+
onInsert?: (size: {
|
|
15
|
+
rows: number;
|
|
16
|
+
cols: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Word-style insert-table picker: hover (or focus) a cell of the grid to
|
|
21
|
+
* choose the size, click to insert a table of that size at the cursor. The
|
|
22
|
+
* grid is disabled (with the reason as its title) where a table cannot be
|
|
23
|
+
* inserted, e.g. inside another table.
|
|
24
|
+
*/
|
|
25
|
+
export declare const InsertTableGrid: React.FC<InsertTableGridProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type BubbleMenuProps } from "../components/BubbleMenu.cjs";
|
|
4
|
+
import { type TableToolbarProps } from "./TableToolbar.cjs";
|
|
5
|
+
export interface TableBubbleMenuProps extends Omit<BubbleMenuProps, "editor" | "children" | "shouldShow"> {
|
|
6
|
+
editor: Editor | null;
|
|
7
|
+
/** Custom content (default: a `TableToolbar`). */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Props for the default `TableToolbar`. */
|
|
10
|
+
toolbarProps?: Omit<TableToolbarProps, "editor">;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A bubble menu that follows the selection while it is in a table (even a
|
|
14
|
+
* collapsed cursor), with the table toolbar or your own `children`. It uses
|
|
15
|
+
* its own plugin key (`tableBubbleMenu`), so it can be combined with the
|
|
16
|
+
* formatting `BubbleMenu`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TableBubbleMenu: React.FC<TableBubbleMenuProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type BubbleMenuProps } from "../components/BubbleMenu.js";
|
|
4
|
+
import { type TableToolbarProps } from "./TableToolbar.js";
|
|
5
|
+
export interface TableBubbleMenuProps extends Omit<BubbleMenuProps, "editor" | "children" | "shouldShow"> {
|
|
6
|
+
editor: Editor | null;
|
|
7
|
+
/** Custom content (default: a `TableToolbar`). */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Props for the default `TableToolbar`. */
|
|
10
|
+
toolbarProps?: Omit<TableToolbarProps, "editor">;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A bubble menu that follows the selection while it is in a table (even a
|
|
14
|
+
* collapsed cursor), with the table toolbar or your own `children`. It uses
|
|
15
|
+
* its own plugin key (`tableBubbleMenu`), so it can be combined with the
|
|
16
|
+
* formatting `BubbleMenu`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TableBubbleMenu: React.FC<TableBubbleMenuProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type TableToolbarItem } from "@pixerate/editor";
|
|
4
|
+
export interface TableToolbarProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Buttons to show (default `DEFAULT_TABLE_TOOLBAR`). */
|
|
7
|
+
items?: readonly TableToolbarItem[];
|
|
8
|
+
/** Render (with disabled buttons) when the selection is not in a table. Default `false`. */
|
|
9
|
+
showWhenOutside?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
buttonClassName?: string;
|
|
12
|
+
activeButtonClassName?: string;
|
|
13
|
+
separatorClassName?: string;
|
|
14
|
+
/** Called after a button ran its action. */
|
|
15
|
+
onAction?: (item: TableToolbarItem) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Table toolbar: insert/delete rows and columns, merge/split cells, header
|
|
19
|
+
* toggles, cell alignment and delete table. Rendered only while the
|
|
20
|
+
* selection is in a table (unless `showWhenOutside`); disabled buttons say
|
|
21
|
+
* why in their tooltip. Use it inline, or inside `TableBubbleMenu`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const TableToolbar: React.FC<TableToolbarProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import { type TableToolbarItem } from "@pixerate/editor";
|
|
4
|
+
export interface TableToolbarProps {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
/** Buttons to show (default `DEFAULT_TABLE_TOOLBAR`). */
|
|
7
|
+
items?: readonly TableToolbarItem[];
|
|
8
|
+
/** Render (with disabled buttons) when the selection is not in a table. Default `false`. */
|
|
9
|
+
showWhenOutside?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
buttonClassName?: string;
|
|
12
|
+
activeButtonClassName?: string;
|
|
13
|
+
separatorClassName?: string;
|
|
14
|
+
/** Called after a button ran its action. */
|
|
15
|
+
onAction?: (item: TableToolbarItem) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Table toolbar: insert/delete rows and columns, merge/split cells, header
|
|
19
|
+
* toggles, cell alignment and delete table. Rendered only while the
|
|
20
|
+
* selection is in a table (unless `showWhenOutside`); disabled buttons say
|
|
21
|
+
* why in their tooltip. Use it inline, or inside `TableBubbleMenu`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const TableToolbar: React.FC<TableToolbarProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type TableAction, type TableActionParams, type TableState } from "@pixerate/editor";
|
|
3
|
+
export type { TableAction, TableActionParams, TableState } from "@pixerate/editor";
|
|
4
|
+
export interface UseTableMenuResult extends TableState {
|
|
5
|
+
/** Runs a table action (focusing the editor); `false` when it cannot run. */
|
|
6
|
+
run: (action: TableAction, params?: TableActionParams) => boolean;
|
|
7
|
+
/** `true`, or why the action cannot run with these params. */
|
|
8
|
+
check: (action: TableAction, params?: TableActionParams) => true | string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Subscribes to the table at the editor's selection: whether the selection
|
|
12
|
+
* is in a table, its size, header state, the cell's alignment and
|
|
13
|
+
* background, and the enablement (with reasons) of every table action.
|
|
14
|
+
* Re-renders only when that state changes. The Svelte counterpart is
|
|
15
|
+
* `createTableMenu`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useTableMenu(editor: Editor | null | undefined): UseTableMenuResult;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type TableAction, type TableActionParams, type TableState } from "@pixerate/editor";
|
|
3
|
+
export type { TableAction, TableActionParams, TableState } from "@pixerate/editor";
|
|
4
|
+
export interface UseTableMenuResult extends TableState {
|
|
5
|
+
/** Runs a table action (focusing the editor); `false` when it cannot run. */
|
|
6
|
+
run: (action: TableAction, params?: TableActionParams) => boolean;
|
|
7
|
+
/** `true`, or why the action cannot run with these params. */
|
|
8
|
+
check: (action: TableAction, params?: TableActionParams) => true | string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Subscribes to the table at the editor's selection: whether the selection
|
|
12
|
+
* is in a table, its size, header state, the cell's alignment and
|
|
13
|
+
* background, and the enablement (with reasons) of every table action.
|
|
14
|
+
* Re-renders only when that state changes. The Svelte counterpart is
|
|
15
|
+
* `createTableMenu`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useTableMenu(editor: Editor | null | undefined): UseTableMenuResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TokenStore } from '@pixerate/editor/tokens';
|
|
3
|
+
export interface TokensPanelProps {
|
|
4
|
+
store: TokenStore;
|
|
5
|
+
/** Selected collection (controlled); defaults to the first. */
|
|
6
|
+
collectionId?: string;
|
|
7
|
+
onCollectionChange?: (collectionId: string) => void;
|
|
8
|
+
/** Called with refused edits (also shown in the panel). */
|
|
9
|
+
onError?: (error: Error) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** A colour swatch (checkered under translucent colours). */
|
|
13
|
+
export declare function TokenSwatch({ color, className }: {
|
|
14
|
+
color: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Figma-style variables panel: collections, modes as columns, typed values with colour
|
|
19
|
+
* swatches, aliases (→), add / rename / delete, undo / redo. Edits go through the store, so
|
|
20
|
+
* each is one undo step; refused edits (cycles, duplicate names) show as an alert.
|
|
21
|
+
*/
|
|
22
|
+
export declare function TokensPanel({ store, collectionId, onCollectionChange, onError, className }: TokensPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TokenStore } from '@pixerate/editor/tokens';
|
|
3
|
+
export interface TokensPanelProps {
|
|
4
|
+
store: TokenStore;
|
|
5
|
+
/** Selected collection (controlled); defaults to the first. */
|
|
6
|
+
collectionId?: string;
|
|
7
|
+
onCollectionChange?: (collectionId: string) => void;
|
|
8
|
+
/** Called with refused edits (also shown in the panel). */
|
|
9
|
+
onError?: (error: Error) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** A colour swatch (checkered under translucent colours). */
|
|
13
|
+
export declare function TokenSwatch({ color, className }: {
|
|
14
|
+
color: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Figma-style variables panel: collections, modes as columns, typed values with colour
|
|
19
|
+
* swatches, aliases (→), add / rename / delete, undo / redo. Edits go through the store, so
|
|
20
|
+
* each is one undo step; refused edits (cycles, duplicate names) show as an alert.
|
|
21
|
+
*/
|
|
22
|
+
export declare function TokensPanel({ store, collectionId, onCollectionChange, onError, className }: TokensPanelProps): React.JSX.Element;
|
package/dist/tokens/index.cjs
CHANGED
package/dist/tokens/index.d.cts
CHANGED
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** A `TokenStore` created once for the component's lifetime. */
|
|
5
|
-
declare function useTokenStore(options?: TokenStoreOptions): TokenStore;
|
|
6
|
-
/** The store's current state (re-renders on every change). */
|
|
7
|
-
declare function useTokenState(store: TokenStore): TokenState;
|
|
8
|
-
interface UseTokensOptions {
|
|
9
|
-
/** Modes for `cssVariables` (collection id → mode id; default modes otherwise). */
|
|
10
|
-
modes?: TokenModeContext;
|
|
11
|
-
/** Options for `css` and `cssVariables` (prefix, attribute, …). */
|
|
12
|
-
css?: TokenCssOptions;
|
|
13
|
-
}
|
|
14
|
-
interface UseTokensResult {
|
|
15
|
-
store: TokenStore;
|
|
16
|
-
state: TokenState;
|
|
17
|
-
/** Resolved custom properties for `modes`, e.g. `<div style={cssVariables}>`. */
|
|
18
|
-
cssVariables: Record<string, string>;
|
|
19
|
-
/** A stylesheet with every mode (`:root { … } :root[data-mode="dark"] { … }`). */
|
|
20
|
-
css: string;
|
|
21
|
-
canUndo: boolean;
|
|
22
|
-
canRedo: boolean;
|
|
23
|
-
undo: () => void;
|
|
24
|
-
redo: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Subscribes to a token store and exposes its state plus CSS custom properties for app
|
|
28
|
-
* theming: apply `cssVariables` as an inline style, or inject `css` and switch modes with the
|
|
29
|
-
* `data-mode` attribute.
|
|
30
|
-
*/
|
|
31
|
-
declare function useTokens(store: TokenStore, options?: UseTokensOptions): UseTokensResult;
|
|
32
|
-
|
|
33
|
-
interface TokensPanelProps {
|
|
34
|
-
store: TokenStore;
|
|
35
|
-
/** Selected collection (controlled); defaults to the first. */
|
|
36
|
-
collectionId?: string;
|
|
37
|
-
onCollectionChange?: (collectionId: string) => void;
|
|
38
|
-
/** Called with refused edits (also shown in the panel). */
|
|
39
|
-
onError?: (error: Error) => void;
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
42
|
-
/** A colour swatch (checkered under translucent colours). */
|
|
43
|
-
declare function TokenSwatch({ color, className }: {
|
|
44
|
-
color: string;
|
|
45
|
-
className?: string;
|
|
46
|
-
}): React__default.JSX.Element;
|
|
47
|
-
/**
|
|
48
|
-
* Figma-style variables panel: collections, modes as columns, typed values with colour
|
|
49
|
-
* swatches, aliases (→), add / rename / delete, undo / redo. Edits go through the store, so
|
|
50
|
-
* each is one undo step; refused edits (cycles, duplicate names) show as an alert.
|
|
51
|
-
*/
|
|
52
|
-
declare function TokensPanel({ store, collectionId, onCollectionChange, onError, className }: TokensPanelProps): React__default.JSX.Element;
|
|
53
|
-
|
|
54
|
-
export { TokenSwatch, TokensPanel, type TokensPanelProps, type UseTokensOptions, type UseTokensResult, useTokenState, useTokenStore, useTokens };
|
|
1
|
+
export * from './useTokens.cjs';
|
|
2
|
+
export * from './TokensPanel.cjs';
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** A `TokenStore` created once for the component's lifetime. */
|
|
5
|
-
declare function useTokenStore(options?: TokenStoreOptions): TokenStore;
|
|
6
|
-
/** The store's current state (re-renders on every change). */
|
|
7
|
-
declare function useTokenState(store: TokenStore): TokenState;
|
|
8
|
-
interface UseTokensOptions {
|
|
9
|
-
/** Modes for `cssVariables` (collection id → mode id; default modes otherwise). */
|
|
10
|
-
modes?: TokenModeContext;
|
|
11
|
-
/** Options for `css` and `cssVariables` (prefix, attribute, …). */
|
|
12
|
-
css?: TokenCssOptions;
|
|
13
|
-
}
|
|
14
|
-
interface UseTokensResult {
|
|
15
|
-
store: TokenStore;
|
|
16
|
-
state: TokenState;
|
|
17
|
-
/** Resolved custom properties for `modes`, e.g. `<div style={cssVariables}>`. */
|
|
18
|
-
cssVariables: Record<string, string>;
|
|
19
|
-
/** A stylesheet with every mode (`:root { … } :root[data-mode="dark"] { … }`). */
|
|
20
|
-
css: string;
|
|
21
|
-
canUndo: boolean;
|
|
22
|
-
canRedo: boolean;
|
|
23
|
-
undo: () => void;
|
|
24
|
-
redo: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Subscribes to a token store and exposes its state plus CSS custom properties for app
|
|
28
|
-
* theming: apply `cssVariables` as an inline style, or inject `css` and switch modes with the
|
|
29
|
-
* `data-mode` attribute.
|
|
30
|
-
*/
|
|
31
|
-
declare function useTokens(store: TokenStore, options?: UseTokensOptions): UseTokensResult;
|
|
32
|
-
|
|
33
|
-
interface TokensPanelProps {
|
|
34
|
-
store: TokenStore;
|
|
35
|
-
/** Selected collection (controlled); defaults to the first. */
|
|
36
|
-
collectionId?: string;
|
|
37
|
-
onCollectionChange?: (collectionId: string) => void;
|
|
38
|
-
/** Called with refused edits (also shown in the panel). */
|
|
39
|
-
onError?: (error: Error) => void;
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
42
|
-
/** A colour swatch (checkered under translucent colours). */
|
|
43
|
-
declare function TokenSwatch({ color, className }: {
|
|
44
|
-
color: string;
|
|
45
|
-
className?: string;
|
|
46
|
-
}): React__default.JSX.Element;
|
|
47
|
-
/**
|
|
48
|
-
* Figma-style variables panel: collections, modes as columns, typed values with colour
|
|
49
|
-
* swatches, aliases (→), add / rename / delete, undo / redo. Edits go through the store, so
|
|
50
|
-
* each is one undo step; refused edits (cycles, duplicate names) show as an alert.
|
|
51
|
-
*/
|
|
52
|
-
declare function TokensPanel({ store, collectionId, onCollectionChange, onError, className }: TokensPanelProps): React__default.JSX.Element;
|
|
53
|
-
|
|
54
|
-
export { TokenSwatch, TokensPanel, type TokensPanelProps, type UseTokensOptions, type UseTokensResult, useTokenState, useTokenStore, useTokens };
|
|
1
|
+
export * from './useTokens.js';
|
|
2
|
+
export * from './TokensPanel.js';
|
package/dist/tokens/index.js
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TokenStore, type TokenCssOptions, type TokenModeContext, type TokenState, type TokenStoreOptions } from '@pixerate/editor/tokens';
|
|
2
|
+
/** A `TokenStore` created once for the component's lifetime. */
|
|
3
|
+
export declare function useTokenStore(options?: TokenStoreOptions): TokenStore;
|
|
4
|
+
/** The store's current state (re-renders on every change). */
|
|
5
|
+
export declare function useTokenState(store: TokenStore): TokenState;
|
|
6
|
+
export interface UseTokensOptions {
|
|
7
|
+
/** Modes for `cssVariables` (collection id → mode id; default modes otherwise). */
|
|
8
|
+
modes?: TokenModeContext;
|
|
9
|
+
/** Options for `css` and `cssVariables` (prefix, attribute, …). */
|
|
10
|
+
css?: TokenCssOptions;
|
|
11
|
+
}
|
|
12
|
+
export interface UseTokensResult {
|
|
13
|
+
store: TokenStore;
|
|
14
|
+
state: TokenState;
|
|
15
|
+
/** Resolved custom properties for `modes`, e.g. `<div style={cssVariables}>`. */
|
|
16
|
+
cssVariables: Record<string, string>;
|
|
17
|
+
/** A stylesheet with every mode (`:root { … } :root[data-mode="dark"] { … }`). */
|
|
18
|
+
css: string;
|
|
19
|
+
canUndo: boolean;
|
|
20
|
+
canRedo: boolean;
|
|
21
|
+
undo: () => void;
|
|
22
|
+
redo: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Subscribes to a token store and exposes its state plus CSS custom properties for app
|
|
26
|
+
* theming: apply `cssVariables` as an inline style, or inject `css` and switch modes with the
|
|
27
|
+
* `data-mode` attribute.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useTokens(store: TokenStore, options?: UseTokensOptions): UseTokensResult;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TokenStore, type TokenCssOptions, type TokenModeContext, type TokenState, type TokenStoreOptions } from '@pixerate/editor/tokens';
|
|
2
|
+
/** A `TokenStore` created once for the component's lifetime. */
|
|
3
|
+
export declare function useTokenStore(options?: TokenStoreOptions): TokenStore;
|
|
4
|
+
/** The store's current state (re-renders on every change). */
|
|
5
|
+
export declare function useTokenState(store: TokenStore): TokenState;
|
|
6
|
+
export interface UseTokensOptions {
|
|
7
|
+
/** Modes for `cssVariables` (collection id → mode id; default modes otherwise). */
|
|
8
|
+
modes?: TokenModeContext;
|
|
9
|
+
/** Options for `css` and `cssVariables` (prefix, attribute, …). */
|
|
10
|
+
css?: TokenCssOptions;
|
|
11
|
+
}
|
|
12
|
+
export interface UseTokensResult {
|
|
13
|
+
store: TokenStore;
|
|
14
|
+
state: TokenState;
|
|
15
|
+
/** Resolved custom properties for `modes`, e.g. `<div style={cssVariables}>`. */
|
|
16
|
+
cssVariables: Record<string, string>;
|
|
17
|
+
/** A stylesheet with every mode (`:root { … } :root[data-mode="dark"] { … }`). */
|
|
18
|
+
css: string;
|
|
19
|
+
canUndo: boolean;
|
|
20
|
+
canRedo: boolean;
|
|
21
|
+
undo: () => void;
|
|
22
|
+
redo: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Subscribes to a token store and exposes its state plus CSS custom properties for app
|
|
26
|
+
* theming: apply `cssVariables` as an inline style, or inject `css` and switch modes with the
|
|
27
|
+
* `data-mode` attribute.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useTokens(store: TokenStore, options?: UseTokensOptions): UseTokensResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VectorEditorController } from '@pixerate/editor/vector';
|
|
3
|
+
export interface VectorAppearancePanelProps {
|
|
4
|
+
controller: VectorEditorController;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
|
|
9
|
+
* reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
|
|
10
|
+
* stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
|
|
11
|
+
* glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
|
|
12
|
+
* Slider drags and typing are one undo step each.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VectorEditorController } from '@pixerate/editor/vector';
|
|
3
|
+
export interface VectorAppearancePanelProps {
|
|
4
|
+
controller: VectorEditorController;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The appearance of the selection: its fill and stroke stacks (listed top first; add, remove,
|
|
9
|
+
* reorder, show / hide, paint, opacity and blend mode per layer, width and alignment per
|
|
10
|
+
* stroke), the node blend mode, and for one selected node its filters (drop and inner shadows,
|
|
11
|
+
* glows, blurs, feather). The pencil on a layer points the gradient editor and tool at it.
|
|
12
|
+
* Slider drags and typing are one undo step each.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VectorAppearancePanel({ controller, className }: VectorAppearancePanelProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VectorEditorController, type VectorRenderNode, type VectorRenderMask, type VectorRenderFilter, type VectorPaintDef, type VectorRenderGradientAnnotator, type VectorRenderText } from '@pixerate/editor/vector';
|
|
3
|
+
export interface VectorCanvasProps {
|
|
4
|
+
controller: VectorEditorController;
|
|
5
|
+
/** Fit the artboard into the canvas when it first gets a size (default `true`). */
|
|
6
|
+
fitOnMount?: boolean;
|
|
7
|
+
/** Draw a checkerboard behind a transparent artboard (default `true`). */
|
|
8
|
+
checkerboard?: boolean;
|
|
9
|
+
/** Overlay accent colour (default sky blue). */
|
|
10
|
+
accentColor?: string;
|
|
11
|
+
/** Smart guide colour (default magenta). */
|
|
12
|
+
guideColor?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
/** Accessible label (default "Vector canvas"). */
|
|
16
|
+
'aria-label'?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders paint servers: `<linearGradient>` / `<radialGradient>` descriptors and patterns of
|
|
20
|
+
* gradient tiles (conic, diamond and stroke-mode gradients).
|
|
21
|
+
*/
|
|
22
|
+
export declare function VectorGradientDefs({ defs }: {
|
|
23
|
+
defs: readonly VectorPaintDef[];
|
|
24
|
+
}): React.JSX.Element | null;
|
|
25
|
+
/** The gradient tool's annotator (screen space): extent, bar, handles, stop chips and midpoints. */
|
|
26
|
+
export declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
27
|
+
annotator: VectorRenderGradientAnnotator;
|
|
28
|
+
accentColor?: string;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
/** SVG `<filter>` elements for `getVectorSceneRenderData(...).filters` (shadows, glows, blurs, feather). */
|
|
31
|
+
export declare function VectorFilterDefs({ filters }: {
|
|
32
|
+
filters: readonly VectorRenderFilter[];
|
|
33
|
+
}): React.JSX.Element | null;
|
|
34
|
+
/**
|
|
35
|
+
* Text drawn as SVG text: one `<text>` per paint layer, every span a `<tspan>` placed character by
|
|
36
|
+
* character (the layout is the editor's, not the browser's).
|
|
37
|
+
*/
|
|
38
|
+
export declare function VectorTextElement({ node }: {
|
|
39
|
+
node: VectorRenderText;
|
|
40
|
+
}): React.JSX.Element;
|
|
41
|
+
/** Renders scene nodes (paths, text and groups) from `getVectorSceneRenderData`. */
|
|
42
|
+
export declare function VectorSceneNodes({ nodes }: {
|
|
43
|
+
nodes: readonly VectorRenderNode[];
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* A mask group's contents under its mask: the `<clipPath>` (clip) or `<mask>` (alpha, luminance;
|
|
47
|
+
* the mask drawn inside, through the inverting filter when inverted), and an inner `<g>` that
|
|
48
|
+
* references it. The group's own transform, opacity, blend mode and filter are on the outer `<g>`.
|
|
49
|
+
*/
|
|
50
|
+
export declare function VectorMaskedNodes({ mask, nodes }: {
|
|
51
|
+
mask: VectorRenderMask;
|
|
52
|
+
nodes: readonly VectorRenderNode[];
|
|
53
|
+
}): React.JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
|
|
56
|
+
* and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
|
|
57
|
+
*/
|
|
58
|
+
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, }: VectorCanvasProps): React.JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VectorEditorController, type VectorRenderNode, type VectorRenderMask, type VectorRenderFilter, type VectorPaintDef, type VectorRenderGradientAnnotator, type VectorRenderText } from '@pixerate/editor/vector';
|
|
3
|
+
export interface VectorCanvasProps {
|
|
4
|
+
controller: VectorEditorController;
|
|
5
|
+
/** Fit the artboard into the canvas when it first gets a size (default `true`). */
|
|
6
|
+
fitOnMount?: boolean;
|
|
7
|
+
/** Draw a checkerboard behind a transparent artboard (default `true`). */
|
|
8
|
+
checkerboard?: boolean;
|
|
9
|
+
/** Overlay accent colour (default sky blue). */
|
|
10
|
+
accentColor?: string;
|
|
11
|
+
/** Smart guide colour (default magenta). */
|
|
12
|
+
guideColor?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
/** Accessible label (default "Vector canvas"). */
|
|
16
|
+
'aria-label'?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders paint servers: `<linearGradient>` / `<radialGradient>` descriptors and patterns of
|
|
20
|
+
* gradient tiles (conic, diamond and stroke-mode gradients).
|
|
21
|
+
*/
|
|
22
|
+
export declare function VectorGradientDefs({ defs }: {
|
|
23
|
+
defs: readonly VectorPaintDef[];
|
|
24
|
+
}): React.JSX.Element | null;
|
|
25
|
+
/** The gradient tool's annotator (screen space): extent, bar, handles, stop chips and midpoints. */
|
|
26
|
+
export declare function VectorGradientAnnotator({ annotator: g, accentColor }: {
|
|
27
|
+
annotator: VectorRenderGradientAnnotator;
|
|
28
|
+
accentColor?: string;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
/** SVG `<filter>` elements for `getVectorSceneRenderData(...).filters` (shadows, glows, blurs, feather). */
|
|
31
|
+
export declare function VectorFilterDefs({ filters }: {
|
|
32
|
+
filters: readonly VectorRenderFilter[];
|
|
33
|
+
}): React.JSX.Element | null;
|
|
34
|
+
/**
|
|
35
|
+
* Text drawn as SVG text: one `<text>` per paint layer, every span a `<tspan>` placed character by
|
|
36
|
+
* character (the layout is the editor's, not the browser's).
|
|
37
|
+
*/
|
|
38
|
+
export declare function VectorTextElement({ node }: {
|
|
39
|
+
node: VectorRenderText;
|
|
40
|
+
}): React.JSX.Element;
|
|
41
|
+
/** Renders scene nodes (paths, text and groups) from `getVectorSceneRenderData`. */
|
|
42
|
+
export declare function VectorSceneNodes({ nodes }: {
|
|
43
|
+
nodes: readonly VectorRenderNode[];
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* A mask group's contents under its mask: the `<clipPath>` (clip) or `<mask>` (alpha, luminance;
|
|
47
|
+
* the mask drawn inside, through the inverting filter when inverted), and an inner `<g>` that
|
|
48
|
+
* references it. The group's own transform, opacity, blend mode and filter are on the outer `<g>`.
|
|
49
|
+
*/
|
|
50
|
+
export declare function VectorMaskedNodes({ mask, nodes }: {
|
|
51
|
+
mask: VectorRenderMask;
|
|
52
|
+
nodes: readonly VectorRenderNode[];
|
|
53
|
+
}): React.JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
|
|
56
|
+
* and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
|
|
57
|
+
*/
|
|
58
|
+
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, }: VectorCanvasProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VectorEditorController } from '@pixerate/editor/vector';
|
|
3
|
+
export interface VectorConnectorPanelProps {
|
|
4
|
+
controller: VectorEditorController;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The selected connector: its route (straight, elbow, curved), the elbow corner radius, and for
|
|
9
|
+
* each glued end the side it meets (Auto: the side facing the other end) and Unglue. Each change is
|
|
10
|
+
* one undo step.
|
|
11
|
+
*/
|
|
12
|
+
export declare function VectorConnectorPanel({ controller, className }: VectorConnectorPanelProps): React.JSX.Element | null;
|