@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
package/dist/index.d.ts
CHANGED
|
@@ -1,802 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
templates?: Template[];
|
|
37
|
-
/** Custom gradient color map for templates */
|
|
38
|
-
templateColorMap?: Map<string, ColorGradient>;
|
|
39
|
-
/** Whether the editor is editable */
|
|
40
|
-
isEditing?: boolean;
|
|
41
|
-
/** Placeholder text for the editor */
|
|
42
|
-
placeholder?: string;
|
|
43
|
-
/** Additional CSS classes for the editor container */
|
|
44
|
-
className?: string;
|
|
45
|
-
/** Callback fired when the Escape key is pressed */
|
|
46
|
-
onEscape?: () => void;
|
|
47
|
-
/** Custom keydown handler. Return true to prevent default behavior */
|
|
48
|
-
onKeyDown?: (event: KeyboardEvent) => boolean;
|
|
49
|
-
/** Callback fired when text selection changes */
|
|
50
|
-
onSelectionChange?: (selection: {
|
|
51
|
-
from: number;
|
|
52
|
-
to: number;
|
|
53
|
-
} | null) => void;
|
|
54
|
-
/** Callback fired when a slash command (e.g., /template) matches */
|
|
55
|
-
onSlashCommandMatch?: (match: RegExpMatchArray, from: number, to: number, coords: {
|
|
56
|
-
top: number;
|
|
57
|
-
left: number;
|
|
58
|
-
}) => void;
|
|
59
|
-
/** Callback to dismiss/clear the active slash command */
|
|
60
|
-
clearSlashCommand?: () => void;
|
|
61
|
-
/** Whether a slash command menu is currently active */
|
|
62
|
-
slashCommandActive?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Callback fired the first time each milestone is reached while the editor
|
|
65
|
-
* is mounted: `used_variable` ({variable}) and `used_magic` (__instruction__).
|
|
66
|
-
*/
|
|
67
|
-
onMilestone?: (milestone: string) => void;
|
|
68
|
-
/** DOM element ID of the container, used for positioning popovers */
|
|
69
|
-
containerId?: string;
|
|
70
|
-
/** Variable names originating from structured JSON output steps */
|
|
71
|
-
jsonVariables?: string[];
|
|
72
|
-
/** Animation speed for gradient decorations */
|
|
73
|
-
speed?: number;
|
|
74
|
-
/**
|
|
75
|
-
* Import text from .md, .html, .txt and .rtf files dropped onto the editor
|
|
76
|
-
* (opt-in). Content is always inserted as plain text. Pasting keeps the
|
|
77
|
-
* plain-text paste handler, so pasted files are not imported.
|
|
78
|
-
*/
|
|
79
|
-
fileImport?: Omit<FileImportOptions, "asPlainText"> | boolean;
|
|
80
|
-
}
|
|
81
|
-
declare function usePromptEditor({ content, onContentChange, templates, templateColorMap: userColorMap, isEditing, placeholder, className, onEscape, onKeyDown, onSelectionChange, onSlashCommandMatch, clearSlashCommand, slashCommandActive, onMilestone, containerId, jsonVariables, speed, fileImport, }: UsePromptEditorProps): _tiptap_core.Editor | null;
|
|
82
|
-
|
|
83
|
-
interface UseRichEditorProps extends UseEditorOptions {
|
|
84
|
-
richTextOptions?: RichTextPresetOptions;
|
|
85
|
-
/**
|
|
86
|
-
* Import .md, .html, .txt and .rtf files dropped or pasted into the editor
|
|
87
|
-
* at the drop position (opt-in; same as `richTextOptions.fileImport`).
|
|
88
|
-
*/
|
|
89
|
-
fileImport?: FileImportOptions | boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Copy/paste lossless ProseMirror slices between editors via the
|
|
92
|
-
* `application/x.pixerate.document+json` clipboard type (opt-in; same as
|
|
93
|
-
* `richTextOptions.richClipboard`).
|
|
94
|
-
*/
|
|
95
|
-
richClipboard?: RichClipboardOptions | boolean;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Hook to initialize a TipTap rich-text editor instance with pre-configured extensions.
|
|
99
|
-
*/
|
|
100
|
-
declare function useEditor(options?: UseRichEditorProps): _tiptap_core.Editor | null;
|
|
101
|
-
|
|
102
|
-
interface UseNavigationGuardOptions {
|
|
103
|
-
/** Whether the current form or editor has unsaved changes */
|
|
104
|
-
isDirty: boolean;
|
|
105
|
-
/** Whether guarding is enabled (defaults to true) */
|
|
106
|
-
enabled?: boolean;
|
|
107
|
-
/** Custom navigation function (e.g. router.push from next/navigation or react-router) */
|
|
108
|
-
onNavigate?: (url: string) => void;
|
|
109
|
-
/** Optional callback fired when an internal navigation attempt is intercepted */
|
|
110
|
-
onBlocked?: (url: string) => void;
|
|
111
|
-
}
|
|
112
|
-
interface UseNavigationGuardReturn {
|
|
113
|
-
/** Whether the unsaved changes confirmation dialog should be displayed */
|
|
114
|
-
showConfirm: boolean;
|
|
115
|
-
/** Setter to manually control the dialog visibility */
|
|
116
|
-
setShowConfirm: (show: boolean) => void;
|
|
117
|
-
/** The target URL that the user attempted to navigate to */
|
|
118
|
-
pendingUrl: string | null;
|
|
119
|
-
/** Proceeds with the blocked navigation and closes the dialog */
|
|
120
|
-
confirmLeave: () => void;
|
|
121
|
-
/** Cancels the navigation attempt and keeps the user on the current page */
|
|
122
|
-
cancelLeave: () => void;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Hook to guard against navigation when there are unsaved changes.
|
|
126
|
-
* Intercepts both external unloads (tab closing/refreshing) and internal link clicks.
|
|
127
|
-
*/
|
|
128
|
-
declare function useNavigationGuard({ isDirty, enabled, onNavigate, onBlocked, }: UseNavigationGuardOptions): UseNavigationGuardReturn;
|
|
129
|
-
|
|
130
|
-
interface UseDismissGuardOptions {
|
|
131
|
-
/** Whether there are unsaved changes */
|
|
132
|
-
isDirty: boolean;
|
|
133
|
-
/** Whether the dismissal guard is enabled (defaults to true) */
|
|
134
|
-
enabled?: boolean;
|
|
135
|
-
/** Callback fired when dismissal is confirmed or when clean dismissal occurs */
|
|
136
|
-
onDismiss?: () => void;
|
|
137
|
-
}
|
|
138
|
-
interface UseDismissGuardReturn {
|
|
139
|
-
/** Whether the discard confirmation modal should be shown */
|
|
140
|
-
showConfirm: boolean;
|
|
141
|
-
/** Manually update confirmation modal visibility */
|
|
142
|
-
setShowConfirm: (show: boolean) => void;
|
|
143
|
-
/** Request dismissal - checks isDirty and shows confirm or executes onDismiss */
|
|
144
|
-
requestDismiss: () => void;
|
|
145
|
-
/** Confirm discarding changes and dismiss */
|
|
146
|
-
confirmDismiss: () => void;
|
|
147
|
-
/** Cancel discarding and resume editing */
|
|
148
|
-
cancelDismiss: () => void;
|
|
149
|
-
/** Helper keydown handler intercepting Escape key */
|
|
150
|
-
handleKeyDown: (event: React.KeyboardEvent | KeyboardEvent) => boolean;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Hook to guard against closing or exiting an editor/dialog with uncommitted changes.
|
|
154
|
-
*/
|
|
155
|
-
declare function useDismissGuard({ isDirty, enabled, onDismiss, }: UseDismissGuardOptions): UseDismissGuardReturn;
|
|
156
|
-
|
|
157
|
-
interface UseHistoryResult extends HistoryState {
|
|
158
|
-
manager: HistoryManager;
|
|
159
|
-
/** History panel rows (undo steps, then redo steps). */
|
|
160
|
-
entries: HistoryEntry[];
|
|
161
|
-
undo: () => boolean;
|
|
162
|
-
redo: () => boolean;
|
|
163
|
-
clear: () => void;
|
|
164
|
-
execute: (command: Command) => void;
|
|
165
|
-
executeMerged: (command: Command, options?: MergedExecutionOptions) => void;
|
|
166
|
-
batch: (name: string, fn: () => void) => void;
|
|
167
|
-
/** Undoes / redoes until the entry at `index` is current (`-1` = before all). */
|
|
168
|
-
goTo: (index: number) => number;
|
|
169
|
-
/** Captures the current point, e.g. when a drag starts. */
|
|
170
|
-
mark: () => HistoryMark;
|
|
171
|
-
/** Takes back every step since `mark` without leaving redo (Escape-cancel). */
|
|
172
|
-
revertTo: (mark: HistoryMark) => number;
|
|
173
|
-
/** Joins every merged execute into one step until `endGesture`. */
|
|
174
|
-
beginGesture: (key: string) => void;
|
|
175
|
-
endGesture: () => void;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* React hook that subscribes to a HistoryManager instance.
|
|
179
|
-
* Accepts an existing HistoryManager or config options to create an instance
|
|
180
|
-
* (options are read on first render only).
|
|
181
|
-
*/
|
|
182
|
-
declare function useHistory(managerOrOptions?: HistoryManager | HistoryManagerOptions): UseHistoryResult;
|
|
183
|
-
|
|
184
|
-
interface UseHistoryDirtyOptions<T> extends DirtyTrackerOptions<T> {
|
|
185
|
-
/** The history whose changes re-check the document. */
|
|
186
|
-
history: HistoryManager;
|
|
187
|
-
/** Reads the current document value (the latest function is always used). */
|
|
188
|
-
getValue: () => T;
|
|
189
|
-
/** Existing tracker to drive (read on first render only). */
|
|
190
|
-
tracker?: DirtyTracker<T>;
|
|
191
|
-
}
|
|
192
|
-
interface UseHistoryDirtyResult<T> {
|
|
193
|
-
/** Whether the document differs from the saved state. Feed it to `useNavigationGuard`. */
|
|
194
|
-
isDirty: boolean;
|
|
195
|
-
/** Marks the current document as saved. */
|
|
196
|
-
markClean: () => void;
|
|
197
|
-
/** Runs a load / restore without marking the document dirty (re-entrant). */
|
|
198
|
-
suppress: <R>(fn: () => R) => R;
|
|
199
|
-
/** Re-checks after a change made outside the history. */
|
|
200
|
-
refresh: () => boolean;
|
|
201
|
-
tracker: DirtyTracker<T>;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Dirty-vs-saved tracking bound to a HistoryManager: undoing back to the saved
|
|
205
|
-
* state makes the document clean again, selection/viewport changes can be
|
|
206
|
-
* ignored with `normalize`, and programmatic loads can be wrapped in `suppress`.
|
|
207
|
-
* Options other than `getValue` and `history` are read on first render only.
|
|
208
|
-
*/
|
|
209
|
-
declare function useHistoryDirty<T>(options: UseHistoryDirtyOptions<T>): UseHistoryDirtyResult<T>;
|
|
210
|
-
|
|
211
|
-
interface HistoryShortcutsOptions {
|
|
212
|
-
/**
|
|
213
|
-
* Whether the keyboard shortcuts are enabled. Defaults to true.
|
|
214
|
-
*/
|
|
215
|
-
enabled?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Target element or window to listen on. Defaults to window.
|
|
218
|
-
*/
|
|
219
|
-
target?: Window | HTMLElement | null;
|
|
220
|
-
/**
|
|
221
|
-
* When true (default), shortcuts will not trigger if an <input>, <textarea>,
|
|
222
|
-
* or [contenteditable] element is currently active / focused.
|
|
223
|
-
*/
|
|
224
|
-
ignoreEditableElements?: boolean;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Attaches keyboard listeners for Undo (Mod+Z) and Redo (Mod+Shift+Z / Mod+Y).
|
|
228
|
-
* Automatically guards against active text inputs and contenteditable editors.
|
|
229
|
-
*/
|
|
230
|
-
declare function useHistoryShortcuts(manager: HistoryManager$1, options?: HistoryShortcutsOptions): void;
|
|
231
|
-
|
|
232
|
-
interface UseFileImportResult extends FileImportState {
|
|
233
|
-
/**
|
|
234
|
-
* Structures detected in the last import (headings, lists, tables, columns),
|
|
235
|
-
* or `null` when no adapter reported any (only structure-aware adapters such
|
|
236
|
-
* as PDF do). Turn PDF detection off with
|
|
237
|
-
* `useFileImport(editor, { adapterOptions: { pdf: { structure: false } } })`.
|
|
238
|
-
*/
|
|
239
|
-
structureSummary: ImportStructureSummary | null;
|
|
240
|
-
/** Value for `<input type="file" accept={…}>`. */
|
|
241
|
-
accept: string;
|
|
242
|
-
/** Opens the browser file picker and imports the chosen files at the selection. */
|
|
243
|
-
openFilePicker: FileImportController["openFilePicker"];
|
|
244
|
-
/** Imports files (e.g. from your own `<input>` or drop zone) at `at` or the selection. */
|
|
245
|
-
importFiles: FileImportController["importFiles"];
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Imports markdown, HTML, plain-text and RTF files (or anything registered
|
|
249
|
-
* with `registerImportAdapter` for the `document` target) into an editor.
|
|
250
|
-
* Pair it with `useEditor({ fileImport: true })` to also accept dropped files.
|
|
251
|
-
*/
|
|
252
|
-
declare function useFileImport(editor: Editor | null | undefined, options?: FileImportControllerOptions): UseFileImportResult;
|
|
253
|
-
|
|
254
|
-
interface UseDocxExportResult extends DocxExportState {
|
|
255
|
-
/** Exports the editor (with its comments, tracked changes and styles) and downloads the `.docx`. */
|
|
256
|
-
download: (fileName?: string) => Promise<DocxExportReport | null>;
|
|
257
|
-
/** Builds the `.docx` without downloading it. */
|
|
258
|
-
exportBlob: DocxExportController["exportBlob"];
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* "Export to Word": downloads the editor's document as a `.docx` with its
|
|
262
|
-
* comments (from the `Comments` store), tracked changes and paragraph styles.
|
|
263
|
-
* `lastReport` lists anything the export had to leave out.
|
|
264
|
-
*/
|
|
265
|
-
declare function useDocxExport(editor: Editor | null | undefined, options?: DocxExportControllerOptions): UseDocxExportResult;
|
|
266
|
-
|
|
267
|
-
interface ExportDocxButtonProps extends DocxExportControllerOptions {
|
|
268
|
-
editor: Editor | null;
|
|
269
|
-
className?: string;
|
|
270
|
-
children?: React__default.ReactNode;
|
|
271
|
-
/** Called after the download with the export report. */
|
|
272
|
-
onExported?: (report: DocxExportReport) => void;
|
|
273
|
-
}
|
|
274
|
-
/** A button that downloads the editor's document as a Word file (`.docx`). */
|
|
275
|
-
declare const ExportDocxButton: React__default.FC<ExportDocxButtonProps>;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Registers a tool provider with a `ToolRegistry` while the component is
|
|
279
|
-
* mounted and unregisters it on unmount (the registry then announces the
|
|
280
|
-
* change through `onListChanged`).
|
|
281
|
-
*
|
|
282
|
-
* Memoize the provider (e.g. `useMemo(() => createRichTextToolProvider(editor,
|
|
283
|
-
* { id }), [editor])`): a new provider object re-registers it. Pass `null`
|
|
284
|
-
* while it isn't ready.
|
|
285
|
-
*/
|
|
286
|
-
declare function useAgentToolProvider(registry: ToolRegistry | null | undefined, provider: AgentToolProvider | null | undefined): void;
|
|
287
|
-
|
|
288
|
-
interface UseToolBridgeResult {
|
|
289
|
-
status: ToolBridgeStatus | "off";
|
|
290
|
-
/** Why the last connection ended (e.g. "Bad token"), when the bridge said. */
|
|
291
|
-
detail?: string;
|
|
292
|
-
/** The id the bridge gave this editor (`list_editors`). */
|
|
293
|
-
editorId: string | null;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Connects a `ToolRegistry` to a local MCP bridge (`pixerate-mcp-bridge`) while mounted, so an
|
|
297
|
-
* MCP client can call the page's tools. Pass `null` options to stay disconnected. Memoize the
|
|
298
|
-
* options: changing `url`, `token` or `name` reconnects.
|
|
299
|
-
*/
|
|
300
|
-
declare function useToolBridge(registry: ToolRegistry | null | undefined, options: ConnectToolBridgeOptions | null): UseToolBridgeResult;
|
|
301
|
-
|
|
302
|
-
interface EditorContentProps extends EditorContentProps$1 {
|
|
303
|
-
className?: string;
|
|
304
|
-
}
|
|
305
|
-
declare const EditorContent: React__default.FC<EditorContentProps>;
|
|
306
|
-
|
|
307
|
-
interface BubbleMenuProps {
|
|
308
|
-
editor: Editor | null;
|
|
309
|
-
className?: string;
|
|
310
|
-
children: React__default.ReactNode;
|
|
311
|
-
tippyOptions?: BubbleMenuPluginProps["tippyOptions"];
|
|
312
|
-
shouldShow?: BubbleMenuPluginProps["shouldShow"];
|
|
313
|
-
pluginKey?: BubbleMenuPluginProps["pluginKey"];
|
|
314
|
-
updateDelay?: BubbleMenuPluginProps["updateDelay"];
|
|
315
|
-
}
|
|
316
|
-
declare const BubbleMenu: React__default.FC<BubbleMenuProps>;
|
|
317
|
-
|
|
318
|
-
interface TemplateRendererProps {
|
|
319
|
-
/** Raw prompt or text string to render */
|
|
320
|
-
content: string;
|
|
321
|
-
/** Available templates for recursive resolution and custom coloring */
|
|
322
|
-
templates?: Template[];
|
|
323
|
-
/** Custom gradient color map for templates */
|
|
324
|
-
templateColorMap?: Map<string, ColorGradient>;
|
|
325
|
-
/** Whether to resolve nested templates recursively before displaying */
|
|
326
|
-
resolve?: boolean;
|
|
327
|
-
/** Template version bindings used when `resolve` is set */
|
|
328
|
-
bindings?: Record<string, string>;
|
|
329
|
-
/**
|
|
330
|
-
* Variable values. When set, variables show their value (or default),
|
|
331
|
-
* sections whose condition fails are hidden, and section tags are dropped.
|
|
332
|
-
*/
|
|
333
|
-
values?: PromptValues;
|
|
334
|
-
/** Custom class name for the wrapper */
|
|
335
|
-
className?: string;
|
|
336
|
-
/** Click callback for template badges */
|
|
337
|
-
onTemplateClick?: (templateName: string) => void;
|
|
338
|
-
/** Click callback for variable badges */
|
|
339
|
-
onVariableClick?: (variableName: string) => void;
|
|
340
|
-
}
|
|
341
|
-
declare const TemplateRenderer: React__default.FC<TemplateRendererProps>;
|
|
342
|
-
|
|
343
|
-
interface VariableFormProps {
|
|
344
|
-
/** Prompt whose variables become form fields */
|
|
345
|
-
content: string;
|
|
346
|
-
/** Templates searched recursively for further variables */
|
|
347
|
-
templates?: Template[];
|
|
348
|
-
/** Template version bindings */
|
|
349
|
-
bindings?: Record<string, string>;
|
|
350
|
-
/** Entered text per variable (controlled). Omit to let the form keep its own state. */
|
|
351
|
-
values?: Record<string, string>;
|
|
352
|
-
/** Initial entered text when uncontrolled */
|
|
353
|
-
defaultValues?: Record<string, string>;
|
|
354
|
-
/**
|
|
355
|
-
* Called on every edit with the values to resolve with (blank fields
|
|
356
|
-
* dropped so defaults apply) and the raw entered text.
|
|
357
|
-
*/
|
|
358
|
-
onChange?: (values: PromptValues, entered: Record<string, string>) => void;
|
|
359
|
-
/** Custom class name for the wrapper */
|
|
360
|
-
className?: string;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Renders one input per prompt variable: labelled with its description,
|
|
364
|
-
* using its default as the placeholder. Variables only used by `{?name}`
|
|
365
|
-
* conditions render as checkboxes.
|
|
366
|
-
*/
|
|
367
|
-
declare const VariableForm: React__default.FC<VariableFormProps>;
|
|
368
|
-
|
|
369
|
-
interface MergePreviewProps {
|
|
370
|
-
/** The prompt merged with each record. */
|
|
371
|
-
content: string;
|
|
372
|
-
templates?: Template[];
|
|
373
|
-
bindings?: Record<string, string>;
|
|
374
|
-
templateColorMap?: Map<string, ColorGradient>;
|
|
375
|
-
/** Initial CSV / TSV / JSON data source text. */
|
|
376
|
-
defaultSource?: string;
|
|
377
|
-
parseOptions?: ParseDataSourceOptions;
|
|
378
|
-
/** Drop records matching this condition (e.g. `"status=void"`) when merging. */
|
|
379
|
-
skipIf?: MergeRecordsOptions["skipIf"];
|
|
380
|
-
/** Separator between merged outputs (default a blank line; `"none"` for nothing). */
|
|
381
|
-
separator?: string;
|
|
382
|
-
maxOutputs?: number;
|
|
383
|
-
/** Called after "Merge all". */
|
|
384
|
-
onMerge?: (result: MergeRecordsResult) => void;
|
|
385
|
-
/** Base file name for downloads (default `merged`). */
|
|
386
|
-
downloadName?: string;
|
|
387
|
-
className?: string;
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* Mail-merge preview: paste or pick a CSV / JSON data source, check the
|
|
391
|
-
* automatic field mapping, step through records with the resolved prompt
|
|
392
|
-
* shown by `TemplateRenderer`, and merge every record into text or JSON.
|
|
393
|
-
*/
|
|
394
|
-
declare const MergePreview: React__default.FC<MergePreviewProps>;
|
|
395
|
-
|
|
396
|
-
interface UseMergePreviewOptions {
|
|
397
|
-
/** The prompt merged with each record. */
|
|
398
|
-
template: string;
|
|
399
|
-
templates?: Template[];
|
|
400
|
-
bindings?: Record<string, string>;
|
|
401
|
-
/** Initial CSV / TSV / JSON text. */
|
|
402
|
-
initialSource?: string;
|
|
403
|
-
/** How to read the data source text. */
|
|
404
|
-
parseOptions?: ParseDataSourceOptions;
|
|
405
|
-
/** Passed to `mergeRecords` by `merge()`. */
|
|
406
|
-
skipIf?: MergeRecordsOptions["skipIf"];
|
|
407
|
-
separator?: string;
|
|
408
|
-
maxOutputs?: number;
|
|
409
|
-
}
|
|
410
|
-
interface MergePreviewState {
|
|
411
|
-
sourceText: string;
|
|
412
|
-
setSourceText: (text: string) => void;
|
|
413
|
-
/** Reads a picked file (CSV, TSV or JSON) into `sourceText`. */
|
|
414
|
-
loadFile: (file: Blob) => Promise<void>;
|
|
415
|
-
source: MergeDataSource;
|
|
416
|
-
/** Variable names the template uses, in order. */
|
|
417
|
-
variables: string[];
|
|
418
|
-
/** Variable → field: automatic matches with the user's overrides applied. */
|
|
419
|
-
mapping: Record<string, string | null>;
|
|
420
|
-
setFieldMapping: (variable: string, field: string | null) => void;
|
|
421
|
-
resetMapping: () => void;
|
|
422
|
-
/** 0-based index of the previewed record. */
|
|
423
|
-
index: number;
|
|
424
|
-
count: number;
|
|
425
|
-
setIndex: (index: number) => void;
|
|
426
|
-
next: () => void;
|
|
427
|
-
prev: () => void;
|
|
428
|
-
record: MergeRecord | undefined;
|
|
429
|
-
/** Prompt values for the previewed record. */
|
|
430
|
-
values: PromptValues;
|
|
431
|
-
/** Merges every record with the current mapping and stores the result. */
|
|
432
|
-
merge: () => MergeRecordsResult;
|
|
433
|
-
result: MergeRecordsResult | null;
|
|
434
|
-
/** The last merge's outputs as text or JSON. */
|
|
435
|
-
serialize: (format: "text" | "json") => string;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Headless state for a mail-merge preview (the counterpart of Svelte's
|
|
439
|
-
* `createMergePreview`): parses a pasted or loaded data source, matches its
|
|
440
|
-
* fields to the template's variables (editable), steps through records and
|
|
441
|
-
* merges them all with `mergeRecords`.
|
|
442
|
-
*/
|
|
443
|
-
declare function useMergePreview(options: UseMergePreviewOptions): MergePreviewState;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Subscribes to an editor's heading outline. Returns the headings (flat and
|
|
447
|
-
* nested) and the id of the heading whose section contains the selection.
|
|
448
|
-
* Re-renders only when the outline or the active heading changes.
|
|
449
|
-
*
|
|
450
|
-
* Install the `Outline` extension (`richTextOptions: { outline: true }`) for
|
|
451
|
-
* stable heading ids; without it, headings are still listed.
|
|
452
|
-
*/
|
|
453
|
-
declare function useOutline(editor: Editor | null | undefined): OutlineSnapshot;
|
|
454
|
-
|
|
455
|
-
interface OutlinePanelProps {
|
|
456
|
-
editor: Editor | null;
|
|
457
|
-
/** Heading shown above the list. Pass `null` to hide it. */
|
|
458
|
-
title?: React__default.ReactNode;
|
|
459
|
-
/** Content shown when the document has no headings. */
|
|
460
|
-
emptyState?: React__default.ReactNode;
|
|
461
|
-
/** Deepest heading level listed. Defaults to 6. */
|
|
462
|
-
maxLevel?: number;
|
|
463
|
-
/** Whether clicking an entry focuses the editor. Defaults to `true`. */
|
|
464
|
-
focusOnNavigate?: boolean;
|
|
465
|
-
/** Custom class name for the wrapper. */
|
|
466
|
-
className?: string;
|
|
467
|
-
/** Class name for each entry button. */
|
|
468
|
-
itemClassName?: string;
|
|
469
|
-
/** Class name added to the entry of the section containing the selection. */
|
|
470
|
-
activeItemClassName?: string;
|
|
471
|
-
/** Called after navigating to a heading. */
|
|
472
|
-
onNavigate?: (heading: OutlineHeading) => void;
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Navigation sidebar listing the document's headings (Word's Navigation pane).
|
|
476
|
-
* Clicking an entry moves the caret to that heading; the entry for the
|
|
477
|
-
* section containing the selection is highlighted.
|
|
478
|
-
*/
|
|
479
|
-
declare const OutlinePanel: React__default.FC<OutlinePanelProps>;
|
|
480
|
-
|
|
481
|
-
interface UseParagraphStylesResult extends ParagraphStylesSnapshot {
|
|
482
|
-
registry: StyleRegistry | null;
|
|
483
|
-
/** The style of the block at the selection. */
|
|
484
|
-
currentStyle: StyleDefinition | null;
|
|
485
|
-
/** Applies a paragraph style to the selected blocks. */
|
|
486
|
-
apply: (id: string) => boolean;
|
|
487
|
-
/** Resets the selected blocks to Normal. */
|
|
488
|
-
clear: () => boolean;
|
|
489
|
-
/** Updates a style (default: the current one) to the formatting at the selection. */
|
|
490
|
-
updateFromSelection: (id?: string) => boolean;
|
|
491
|
-
/** Creates (and applies) a style from the formatting at the selection; returns its id. */
|
|
492
|
-
createFromSelection: (name: string, options?: CreateStyleFromSelectionOptions) => string | null;
|
|
493
|
-
/** Applies a character style to the selection. */
|
|
494
|
-
applyCharacterStyle: (id: string) => boolean;
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Subscribes to an editor's paragraph styles (`ParagraphStyles` extension):
|
|
498
|
-
* the gallery, all styles and the style at the selection, with commands.
|
|
499
|
-
* Re-renders only when the styles or the current style change.
|
|
500
|
-
*/
|
|
501
|
-
declare function useParagraphStyles(editor: Editor | null | undefined): UseParagraphStylesResult;
|
|
502
|
-
|
|
503
|
-
interface StylesGalleryProps {
|
|
504
|
-
editor: Editor | null;
|
|
505
|
-
/**
|
|
506
|
-
* `dropdown` (default): a button showing the current style that opens the
|
|
507
|
-
* list. `gallery`: the styles are always shown, in a row.
|
|
508
|
-
*/
|
|
509
|
-
variant?: "dropdown" | "gallery";
|
|
510
|
-
/** List every available paragraph style instead of the gallery (quick) styles. */
|
|
511
|
-
showAllStyles?: boolean;
|
|
512
|
-
/** Show the "Update to match selection" and "New style from selection" actions. Defaults to `true`. */
|
|
513
|
-
showActions?: boolean;
|
|
514
|
-
/** Preview each style's font, weight, style and color in its entry. Defaults to `true`. */
|
|
515
|
-
preview?: boolean;
|
|
516
|
-
className?: string;
|
|
517
|
-
itemClassName?: string;
|
|
518
|
-
activeItemClassName?: string;
|
|
519
|
-
/** Called after a style is applied, updated or created. */
|
|
520
|
-
onChange?: (event: {
|
|
521
|
-
type: "apply" | "update" | "create";
|
|
522
|
-
id: string;
|
|
523
|
-
}) => void;
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* Paragraph styles picker (Word's Styles gallery): shows the style at the
|
|
527
|
-
* selection, applies a style on click, updates the current style to match
|
|
528
|
-
* the selection and creates a new style from the selection. Needs the
|
|
529
|
-
* `ParagraphStyles` extension (`richTextOptions: { paragraphStyles: true }`).
|
|
530
|
-
*/
|
|
531
|
-
declare const StylesGallery: React__default.FC<StylesGalleryProps>;
|
|
532
|
-
|
|
533
|
-
interface EditorSlotsProviderProps {
|
|
534
|
-
slots?: Partial<EditorSlotsMap>;
|
|
535
|
-
children: React__default.ReactNode;
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* Context provider allowing consumers to inject custom design system components into the editor.
|
|
539
|
-
*/
|
|
540
|
-
declare function EditorSlotsProvider({ slots, children }: EditorSlotsProviderProps): React__default.JSX.Element;
|
|
541
|
-
/**
|
|
542
|
-
* Hook to access injected design system slots.
|
|
543
|
-
*/
|
|
544
|
-
declare function useEditorSlots(): EditorSlotsMap;
|
|
545
|
-
|
|
546
|
-
interface UseCommentsResult extends CommentStoreSnapshot {
|
|
547
|
-
store: CommentStore | null;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Subscribes to a comment store: pass the store itself, or an editor using
|
|
551
|
-
* the `Comments` extension (`null` while the editor is being created).
|
|
552
|
-
*/
|
|
553
|
-
declare function useComments(source: Editor | CommentStore | null | undefined): UseCommentsResult;
|
|
554
|
-
interface UseTrackChangesResult extends TrackChangesSnapshot {
|
|
555
|
-
currentChange: TrackedChange | null;
|
|
556
|
-
setEnabled: (enabled: boolean) => void;
|
|
557
|
-
toggle: () => void;
|
|
558
|
-
accept: (id: string) => void;
|
|
559
|
-
reject: (id: string) => void;
|
|
560
|
-
acceptAll: () => void;
|
|
561
|
-
rejectAll: () => void;
|
|
562
|
-
next: () => void;
|
|
563
|
-
previous: () => void;
|
|
564
|
-
/** Selects a change in the editor. */
|
|
565
|
-
select: (id: string) => void;
|
|
566
|
-
/** Accepts a tracked move (both ends). */
|
|
567
|
-
acceptMove: (id: string) => void;
|
|
568
|
-
/** Rejects a tracked move (both ends). */
|
|
569
|
-
rejectMove: (id: string) => void;
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Subscribes to the tracked-change state of an editor using the
|
|
573
|
-
* `TrackChanges` extension and exposes its commands.
|
|
574
|
-
*/
|
|
575
|
-
declare function useTrackChanges(editor: Editor | null | undefined): UseTrackChangesResult;
|
|
576
|
-
|
|
577
|
-
interface CommentsPanelProps {
|
|
578
|
-
editor: Editor | null;
|
|
579
|
-
/** Defaults to the store of the editor's `Comments` extension. */
|
|
580
|
-
store?: CommentStore;
|
|
581
|
-
/** Author of replies. Defaults to the `Comments` extension's author. */
|
|
582
|
-
author?: ReviewAuthor;
|
|
583
|
-
/** Initially show resolved threads. */
|
|
584
|
-
showResolved?: boolean;
|
|
585
|
-
className?: string;
|
|
586
|
-
formatTime?: (timestamp: number) => string;
|
|
587
|
-
emptyMessage?: string;
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* Lists comment threads with reply, resolve and delete actions. Clicking a
|
|
591
|
-
* thread selects its text in the editor. Threads with an empty body are
|
|
592
|
-
* drafts (e.g. created by `CommentButton`) and show a compose box.
|
|
593
|
-
*/
|
|
594
|
-
declare const CommentsPanel: React__default.FC<CommentsPanelProps>;
|
|
595
|
-
|
|
596
|
-
interface ReviewToolbarProps {
|
|
597
|
-
editor: Editor | null;
|
|
598
|
-
className?: string;
|
|
599
|
-
/**
|
|
600
|
-
* Show the current change's author and description (e.g. "Alice: Formatted:
|
|
601
|
-
* Bold"). Defaults to `true`.
|
|
602
|
-
*/
|
|
603
|
-
showDescription?: boolean;
|
|
604
|
-
/** Class of the description label. */
|
|
605
|
-
descriptionClassName?: string;
|
|
606
|
-
}
|
|
607
|
-
/**
|
|
608
|
-
* Toolbar for tracked changes: toggle tracking, step through changes
|
|
609
|
-
* (insertions, deletions, formatting and block changes, with a description
|
|
610
|
-
* of the current one), and accept or reject the current change or all
|
|
611
|
-
* changes.
|
|
612
|
-
*/
|
|
613
|
-
declare const ReviewToolbar: React__default.FC<ReviewToolbarProps>;
|
|
614
|
-
|
|
615
|
-
interface CommentButtonProps {
|
|
616
|
-
editor: Editor | null;
|
|
617
|
-
className?: string;
|
|
618
|
-
children?: React__default.ReactNode;
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Adds a draft comment on the selection; drop it into a `BubbleMenu`. The
|
|
622
|
-
* draft is completed in `CommentsPanel`.
|
|
623
|
-
*/
|
|
624
|
-
declare const CommentButton: React__default.FC<CommentButtonProps>;
|
|
625
|
-
|
|
626
|
-
interface UseDocumentCompareResult {
|
|
627
|
-
/** Summary of the last comparison, or `null`. */
|
|
628
|
-
summary: CompareSummary | null;
|
|
629
|
-
/**
|
|
630
|
-
* Replaces the editor content with the comparison of two versions (nodes,
|
|
631
|
-
* JSON or HTML) as tracked changes, ready to review with `ReviewToolbar`.
|
|
632
|
-
* Returns the summary, or `null` without an editor.
|
|
633
|
-
*/
|
|
634
|
-
compare: (original: CompareSource, revised: CompareSource, options?: EditorCompareOptions) => CompareSummary | null;
|
|
635
|
-
/** Forgets the last summary. */
|
|
636
|
-
clear: () => void;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Compare two document versions into an editor using `TrackChanges`.
|
|
640
|
-
* `options` are defaults for every comparison.
|
|
641
|
-
*/
|
|
642
|
-
declare function useDocumentCompare(editor: Editor | null | undefined, options?: EditorCompareOptions): UseDocumentCompareResult;
|
|
643
|
-
|
|
644
|
-
interface TrackedChangesListProps {
|
|
645
|
-
editor: Editor | null;
|
|
646
|
-
className?: string;
|
|
647
|
-
itemClassName?: string;
|
|
648
|
-
activeItemClassName?: string;
|
|
649
|
-
/** Content shown when there are no changes. */
|
|
650
|
-
emptyState?: React__default.ReactNode;
|
|
651
|
-
}
|
|
652
|
-
/**
|
|
653
|
-
* Lists the document's tracked changes (insertions, deletions, moves,
|
|
654
|
-
* formatting and block changes) with their author and description, and
|
|
655
|
-
* accepts or rejects each one. A move is one entry: accepting or rejecting
|
|
656
|
-
* it resolves both its source and its destination. Clicking an entry
|
|
657
|
-
* selects the change in the editor.
|
|
658
|
-
*/
|
|
659
|
-
declare const TrackedChangesList: React__default.FC<TrackedChangesListProps>;
|
|
660
|
-
|
|
661
|
-
interface UseFindReplaceResult extends FindReplaceSnapshot {
|
|
662
|
-
/** Whether the editor has the `FindReplace` extension. */
|
|
663
|
-
available: boolean;
|
|
664
|
-
matchCount: number;
|
|
665
|
-
open: boolean;
|
|
666
|
-
show: (mode?: FindReplaceMode) => void;
|
|
667
|
-
close: () => void;
|
|
668
|
-
setQuery: (query: string) => void;
|
|
669
|
-
setReplacement: (replacement: string) => void;
|
|
670
|
-
setOptions: (options: Partial<FindOptions>) => void;
|
|
671
|
-
toggleOption: (option: keyof FindOptions) => void;
|
|
672
|
-
next: () => void;
|
|
673
|
-
previous: () => void;
|
|
674
|
-
replace: () => void;
|
|
675
|
-
replaceAll: () => void;
|
|
676
|
-
clear: () => void;
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Subscribes to an editor's Find and Replace state (`FindReplace` extension)
|
|
680
|
-
* and exposes its commands.
|
|
681
|
-
*/
|
|
682
|
-
declare function useFindReplace(editor: Editor | null | undefined): UseFindReplaceResult;
|
|
683
|
-
|
|
684
|
-
interface FindReplaceBarProps {
|
|
685
|
-
editor: Editor | null;
|
|
686
|
-
className?: string;
|
|
687
|
-
/** Render even while the find state is closed (default: only after Mod+F / Mod+H / `openFindReplace`). */
|
|
688
|
-
alwaysOpen?: boolean;
|
|
689
|
-
/** Show the "More options" toggle (prefix, suffix, ignore punctuation/white space, literal). Default `true`. */
|
|
690
|
-
showMoreOptions?: boolean;
|
|
691
|
-
/** Called after the bar closes (Escape or the close button). */
|
|
692
|
-
onClose?: () => void;
|
|
693
|
-
}
|
|
694
|
-
/**
|
|
695
|
-
* Word-style find bar for an editor using the `FindReplace` extension: find
|
|
696
|
-
* and replace fields, option toggles, "3 of 12" counter, previous/next,
|
|
697
|
-
* Replace and Replace All. Enter / Shift+Enter step through matches, Enter in
|
|
698
|
-
* the replace field replaces, Mod+Enter replaces all, Escape closes.
|
|
699
|
-
*/
|
|
700
|
-
declare const FindReplaceBar: React__default.FC<FindReplaceBarProps>;
|
|
701
|
-
|
|
702
|
-
interface UseTableMenuResult extends TableState {
|
|
703
|
-
/** Runs a table action (focusing the editor); `false` when it cannot run. */
|
|
704
|
-
run: (action: TableAction, params?: TableActionParams) => boolean;
|
|
705
|
-
/** `true`, or why the action cannot run with these params. */
|
|
706
|
-
check: (action: TableAction, params?: TableActionParams) => true | string;
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* Subscribes to the table at the editor's selection: whether the selection
|
|
710
|
-
* is in a table, its size, header state, the cell's alignment and
|
|
711
|
-
* background, and the enablement (with reasons) of every table action.
|
|
712
|
-
* Re-renders only when that state changes. The Svelte counterpart is
|
|
713
|
-
* `createTableMenu`.
|
|
714
|
-
*/
|
|
715
|
-
declare function useTableMenu(editor: Editor | null | undefined): UseTableMenuResult;
|
|
716
|
-
|
|
717
|
-
interface TableToolbarProps {
|
|
718
|
-
editor: Editor | null;
|
|
719
|
-
/** Buttons to show (default `DEFAULT_TABLE_TOOLBAR`). */
|
|
720
|
-
items?: readonly TableToolbarItem[];
|
|
721
|
-
/** Render (with disabled buttons) when the selection is not in a table. Default `false`. */
|
|
722
|
-
showWhenOutside?: boolean;
|
|
723
|
-
className?: string;
|
|
724
|
-
buttonClassName?: string;
|
|
725
|
-
activeButtonClassName?: string;
|
|
726
|
-
separatorClassName?: string;
|
|
727
|
-
/** Called after a button ran its action. */
|
|
728
|
-
onAction?: (item: TableToolbarItem) => void;
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Table toolbar: insert/delete rows and columns, merge/split cells, header
|
|
732
|
-
* toggles, cell alignment and delete table. Rendered only while the
|
|
733
|
-
* selection is in a table (unless `showWhenOutside`); disabled buttons say
|
|
734
|
-
* why in their tooltip. Use it inline, or inside `TableBubbleMenu`.
|
|
735
|
-
*/
|
|
736
|
-
declare const TableToolbar: React__default.FC<TableToolbarProps>;
|
|
737
|
-
|
|
738
|
-
interface InsertTableGridProps {
|
|
739
|
-
editor: Editor | null;
|
|
740
|
-
/** Grid size offered (default 8 × 8). */
|
|
741
|
-
rows?: number;
|
|
742
|
-
cols?: number;
|
|
743
|
-
/** Insert with a header row (default `true`). */
|
|
744
|
-
withHeaderRow?: boolean;
|
|
745
|
-
className?: string;
|
|
746
|
-
cellClassName?: string;
|
|
747
|
-
activeCellClassName?: string;
|
|
748
|
-
/** Called after a table was inserted. */
|
|
749
|
-
onInsert?: (size: {
|
|
750
|
-
rows: number;
|
|
751
|
-
cols: number;
|
|
752
|
-
}) => void;
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* Word-style insert-table picker: hover (or focus) a cell of the grid to
|
|
756
|
-
* choose the size, click to insert a table of that size at the cursor. The
|
|
757
|
-
* grid is disabled (with the reason as its title) where a table cannot be
|
|
758
|
-
* inserted, e.g. inside another table.
|
|
759
|
-
*/
|
|
760
|
-
declare const InsertTableGrid: React__default.FC<InsertTableGridProps>;
|
|
761
|
-
|
|
762
|
-
interface TableBubbleMenuProps extends Omit<BubbleMenuProps, "editor" | "children" | "shouldShow"> {
|
|
763
|
-
editor: Editor | null;
|
|
764
|
-
/** Custom content (default: a `TableToolbar`). */
|
|
765
|
-
children?: React__default.ReactNode;
|
|
766
|
-
/** Props for the default `TableToolbar`. */
|
|
767
|
-
toolbarProps?: Omit<TableToolbarProps, "editor">;
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* A bubble menu that follows the selection while it is in a table (even a
|
|
771
|
-
* collapsed cursor), with the table toolbar or your own `children`. It uses
|
|
772
|
-
* its own plugin key (`tableBubbleMenu`), so it can be combined with the
|
|
773
|
-
* formatting `BubbleMenu`.
|
|
774
|
-
*/
|
|
775
|
-
declare const TableBubbleMenu: React__default.FC<TableBubbleMenuProps>;
|
|
776
|
-
|
|
777
|
-
interface ChartNodeViewProps {
|
|
778
|
-
/** What the editor's `chart` node passes (see `ChartNodeViewState`). */
|
|
779
|
-
state: ChartNodeViewState;
|
|
780
|
-
/** Chart colours (default: the CSS-variable theme). */
|
|
781
|
-
theme?: Partial<ChartTheme>;
|
|
782
|
-
/** Show the data grid under the chart while editing (default `true`). */
|
|
783
|
-
showDataGrid?: boolean;
|
|
784
|
-
}
|
|
785
|
-
/**
|
|
786
|
-
* A chart inside a rich-text document: read-only until clicked, then editable on the canvas
|
|
787
|
-
* with the data grid and the inspector in a panel below (side by side when there is room). "Done", Escape or moving the
|
|
788
|
-
* selection away closes it. Edits are written back to the document as undo steps.
|
|
789
|
-
*/
|
|
790
|
-
declare function ChartNodeView({ state, theme, showDataGrid }: ChartNodeViewProps): React__default.JSX.Element;
|
|
791
|
-
interface ReactChartNodeViewOptions extends Omit<ChartNodeViewProps, 'state'> {
|
|
792
|
-
/** Draw something else for each chart (default `ChartNodeView`). */
|
|
793
|
-
component?: React__default.ComponentType<ChartNodeViewProps>;
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* The `nodeView` for the core `chart` node, drawing `ChartNodeView` in its own React root:
|
|
797
|
-
* `createRichTextPreset({ chart: { nodeView: createReactChartNodeView() } })`. Works with any
|
|
798
|
-
* TipTap editor (it does not need `EditorContent`); app context does not reach the chart.
|
|
799
|
-
*/
|
|
800
|
-
declare function createReactChartNodeView(options?: ReactChartNodeViewOptions): ChartNodeViewMount;
|
|
801
|
-
|
|
802
|
-
export { BubbleMenu, type BubbleMenuProps, ChartNodeView, type ChartNodeViewProps, CommentButton, type CommentButtonProps, CommentsPanel, type CommentsPanelProps, EditorContent, type EditorContentProps, EditorSlotsProvider, type EditorSlotsProviderProps, ExportDocxButton, type ExportDocxButtonProps, FindReplaceBar, type FindReplaceBarProps, type HistoryShortcutsOptions, InsertTableGrid, type InsertTableGridProps, MergePreview, type MergePreviewProps, type MergePreviewState, OutlinePanel, type OutlinePanelProps, type ReactChartNodeViewOptions, ReviewToolbar, type ReviewToolbarProps, StylesGallery, type StylesGalleryProps, TableBubbleMenu, type TableBubbleMenuProps, TableToolbar, type TableToolbarProps, TemplateRenderer, type TemplateRendererProps, TrackedChangesList, type TrackedChangesListProps, type UseCommentsResult, type UseDismissGuardOptions, type UseDismissGuardReturn, type UseDocumentCompareResult, type UseDocxExportResult, type UseFileImportResult, type UseFindReplaceResult, type UseHistoryDirtyOptions, type UseHistoryDirtyResult, type UseHistoryResult, type UseMergePreviewOptions, type UseNavigationGuardOptions, type UseNavigationGuardReturn, type UseParagraphStylesResult, type UsePromptEditorProps, type UseRichEditorProps, type UseTableMenuResult, type UseToolBridgeResult, type UseTrackChangesResult, VariableForm, type VariableFormProps, createReactChartNodeView, useAgentToolProvider, useComments, useDismissGuard, useDocumentCompare, useDocxExport, useEditor, useEditorSlots, useFileImport, useFindReplace, useHistory, useHistoryDirty, useHistoryShortcuts, useMergePreview, useNavigationGuard, useOutline, useParagraphStyles, usePromptEditor, useTableMenu, useToolBridge, useTrackChanges };
|
|
1
|
+
export * from "./hooks/usePromptEditor.js";
|
|
2
|
+
export * from "./hooks/useEditor.js";
|
|
3
|
+
export * from "./hooks/useNavigationGuard.js";
|
|
4
|
+
export * from "./hooks/useDismissGuard.js";
|
|
5
|
+
export * from "./hooks/useHistory.js";
|
|
6
|
+
export * from "./hooks/useHistoryDirty.js";
|
|
7
|
+
export * from "./hooks/useHistoryShortcuts.js";
|
|
8
|
+
export * from "./hooks/useFileImport.js";
|
|
9
|
+
export * from "./hooks/useDocxExport.js";
|
|
10
|
+
export * from "./components/ExportDocxButton.js";
|
|
11
|
+
export * from "./hooks/useAgentToolProvider.js";
|
|
12
|
+
export * from "./hooks/useToolBridge.js";
|
|
13
|
+
export * from "./components/EditorContent.js";
|
|
14
|
+
export * from "./components/BubbleMenu.js";
|
|
15
|
+
export * from "./components/TemplateRenderer.js";
|
|
16
|
+
export * from "./components/VariableForm.js";
|
|
17
|
+
export * from "./components/MergePreview.js";
|
|
18
|
+
export * from "./hooks/useMergePreview.js";
|
|
19
|
+
export * from "./hooks/useOutline.js";
|
|
20
|
+
export * from "./components/OutlinePanel.js";
|
|
21
|
+
export * from "./hooks/useParagraphStyles.js";
|
|
22
|
+
export * from "./components/StylesGallery.js";
|
|
23
|
+
export { DirtyTracker, createDirtyTracker, defaultIsEqual, HistoryManager, createHistoryManager, bindDirtyToHistory, withoutDirty, } from "@pixerate/editor";
|
|
24
|
+
export type { Template, TemplateVersion, Token, TokenType, ColorGradient, RichTextPresetOptions, DirtyTrackerOptions, Command, HistoryState, HistoryManagerOptions, HistoryEntry, HistoryMark, MergedExecutionOptions, HistoryDirtyBinding, BindDirtyToHistoryOptions, } from "@pixerate/editor";
|
|
25
|
+
export type { PromptValues, PromptDiagnostic, VariableFormField, MergeDataSource, MergeRecord, MergeRecordsResult, MergeOutput, } from "@pixerate/editor";
|
|
26
|
+
export * from "./spreadsheet/index.js";
|
|
27
|
+
export * from "./slots.js";
|
|
28
|
+
export * from "./image-editor/index.js";
|
|
29
|
+
export * from "./review/index.js";
|
|
30
|
+
export * from "./commands/index.js";
|
|
31
|
+
export * from "./persistence/index.js";
|
|
32
|
+
export * from "./generation/index.js";
|
|
33
|
+
export * from "./find-replace/index.js";
|
|
34
|
+
export * from "./tables/index.js";
|
|
35
|
+
export * from "./chart-node/index.js";
|