@pixerate/editor-react 0.89.0 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/AnimationEditor.d.cts +33 -0
- package/dist/animation-editor/AnimationEditor.d.ts +33 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
- package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
- package/dist/animation-editor/AnimationStage.d.cts +24 -0
- package/dist/animation-editor/AnimationStage.d.ts +24 -0
- package/dist/animation-editor/CommandInspector.d.cts +14 -0
- package/dist/animation-editor/CommandInspector.d.ts +14 -0
- package/dist/animation-editor/CommandList.d.cts +16 -0
- package/dist/animation-editor/CommandList.d.ts +16 -0
- package/dist/animation-editor/CommitInput.d.cts +6 -0
- package/dist/animation-editor/CommitInput.d.ts +6 -0
- package/dist/animation-editor/EasePicker.d.cts +18 -0
- package/dist/animation-editor/EasePicker.d.ts +18 -0
- package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
- package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
- package/dist/animation-editor/SceneSettings.d.cts +12 -0
- package/dist/animation-editor/SceneSettings.d.ts +12 -0
- package/dist/animation-editor/ShotInspector.d.cts +14 -0
- package/dist/animation-editor/ShotInspector.d.ts +14 -0
- package/dist/animation-editor/ShotTimeline.d.cts +11 -0
- package/dist/animation-editor/ShotTimeline.d.ts +11 -0
- package/dist/animation-editor/index.cjs +0 -1
- package/dist/animation-editor/index.d.cts +11 -195
- package/dist/animation-editor/index.d.ts +11 -195
- package/dist/animation-editor/index.js +2 -3
- package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
- package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
- package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
- package/dist/canvas/AnimationTimeline.d.cts +22 -0
- package/dist/canvas/AnimationTimeline.d.ts +22 -0
- package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
- package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
- package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
- package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
- package/dist/canvas/CanvasEffects.d.cts +52 -0
- package/dist/canvas/CanvasEffects.d.ts +52 -0
- package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
- package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
- package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
- package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
- package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
- package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
- package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
- package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
- package/dist/canvas/MermaidThumbnail.d.cts +15 -0
- package/dist/canvas/MermaidThumbnail.d.ts +15 -0
- package/dist/canvas/ShapeNode.d.cts +31 -0
- package/dist/canvas/ShapeNode.d.ts +31 -0
- package/dist/canvas/TokenBindingPicker.d.cts +37 -0
- package/dist/canvas/TokenBindingPicker.d.ts +37 -0
- package/dist/canvas/index.cjs +0 -1
- package/dist/canvas/index.d.cts +40 -1084
- package/dist/canvas/index.d.ts +40 -1084
- package/dist/canvas/index.js +2 -3
- package/dist/canvas/useCanvasAnimation.d.cts +97 -0
- package/dist/canvas/useCanvasAnimation.d.ts +97 -0
- package/dist/canvas/useCanvasArrange.d.cts +80 -0
- package/dist/canvas/useCanvasArrange.d.ts +80 -0
- package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
- package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
- package/dist/canvas/useCanvasCapture.d.cts +20 -0
- package/dist/canvas/useCanvasCapture.d.ts +20 -0
- package/dist/canvas/useCanvasClipboard.d.cts +14 -0
- package/dist/canvas/useCanvasClipboard.d.ts +14 -0
- package/dist/canvas/useCanvasComponents.d.cts +74 -0
- package/dist/canvas/useCanvasComponents.d.ts +74 -0
- package/dist/canvas/useCanvasDocking.d.cts +15 -0
- package/dist/canvas/useCanvasDocking.d.ts +15 -0
- package/dist/canvas/useCanvasDraw.d.cts +37 -0
- package/dist/canvas/useCanvasDraw.d.ts +37 -0
- package/dist/canvas/useCanvasExplosion.d.cts +16 -0
- package/dist/canvas/useCanvasExplosion.d.ts +16 -0
- package/dist/canvas/useCanvasGraph.d.cts +27 -0
- package/dist/canvas/useCanvasGraph.d.ts +27 -0
- package/dist/canvas/useCanvasLayout.d.cts +25 -0
- package/dist/canvas/useCanvasLayout.d.ts +25 -0
- package/dist/canvas/useCanvasMeasure.d.cts +41 -0
- package/dist/canvas/useCanvasMeasure.d.ts +41 -0
- package/dist/canvas/useCanvasScenes.d.cts +61 -0
- package/dist/canvas/useCanvasScenes.d.ts +61 -0
- package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
- package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
- package/dist/canvas/useCanvasTokens.d.cts +24 -0
- package/dist/canvas/useCanvasTokens.d.ts +24 -0
- package/dist/canvas/useDiagramDirector.d.cts +21 -0
- package/dist/canvas/useDiagramDirector.d.ts +21 -0
- package/dist/canvas/useMermaidDiagram.d.cts +79 -0
- package/dist/canvas/useMermaidDiagram.d.ts +79 -0
- package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
- package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
- package/dist/canvas/useStreamingCanvas.d.cts +17 -0
- package/dist/canvas/useStreamingCanvas.d.ts +17 -0
- package/dist/chart/ChartCanvas.d.cts +44 -0
- package/dist/chart/ChartCanvas.d.ts +44 -0
- package/dist/chart/ChartDataGrid.d.cts +24 -0
- package/dist/chart/ChartDataGrid.d.ts +24 -0
- package/dist/chart/ChartEditor.d.cts +20 -0
- package/dist/chart/ChartEditor.d.ts +20 -0
- package/dist/chart/ChartInspector.d.cts +14 -0
- package/dist/chart/ChartInspector.d.ts +14 -0
- package/dist/chart/ChartStreamingView.d.cts +40 -0
- package/dist/chart/ChartStreamingView.d.ts +40 -0
- package/dist/chart/index.cjs +0 -1
- package/dist/chart/index.d.cts +7 -212
- package/dist/chart/index.d.ts +7 -212
- package/dist/chart/index.js +1 -2
- package/dist/chart/styles.d.cts +7 -0
- package/dist/chart/styles.d.ts +7 -0
- package/dist/chart/useChartEditor.d.cts +64 -0
- package/dist/chart/useChartEditor.d.ts +64 -0
- package/dist/chart-node/ChartNodeView.d.cts +27 -0
- package/dist/chart-node/ChartNodeView.d.ts +27 -0
- package/dist/chart-node/index.d.cts +1 -0
- package/dist/chart-node/index.d.ts +1 -0
- package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
- package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
- package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
- package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
- package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
- package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
- package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
- package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
- package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
- package/dist/commands/CommandPalette.d.cts +16 -0
- package/dist/commands/CommandPalette.d.ts +16 -0
- package/dist/commands/index.cjs +0 -1
- package/dist/commands/index.d.cts +3 -69
- package/dist/commands/index.d.ts +3 -69
- package/dist/commands/index.js +1 -2
- package/dist/commands/useCommandPalette.d.cts +24 -0
- package/dist/commands/useCommandPalette.d.ts +24 -0
- package/dist/commands/useCommandShortcuts.d.cts +26 -0
- package/dist/commands/useCommandShortcuts.d.ts +26 -0
- package/dist/components/BubbleMenu.d.cts +13 -0
- package/dist/components/BubbleMenu.d.ts +13 -0
- package/dist/components/EditorContent.d.cts +6 -0
- package/dist/components/EditorContent.d.ts +6 -0
- package/dist/components/ExportDocxButton.d.cts +12 -0
- package/dist/components/ExportDocxButton.d.ts +12 -0
- package/dist/components/MergePreview.d.cts +28 -0
- package/dist/components/MergePreview.d.ts +28 -0
- package/dist/components/OutlinePanel.d.cts +28 -0
- package/dist/components/OutlinePanel.d.ts +28 -0
- package/dist/components/StylesGallery.d.cts +31 -0
- package/dist/components/StylesGallery.d.ts +31 -0
- package/dist/components/TemplateRenderer.d.cts +26 -0
- package/dist/components/TemplateRenderer.d.ts +26 -0
- package/dist/components/VariableForm.d.cts +27 -0
- package/dist/components/VariableForm.d.ts +27 -0
- package/dist/effects/EffectParameters.d.cts +28 -0
- package/dist/effects/EffectParameters.d.ts +28 -0
- package/dist/effects/EffectThumbnail.d.cts +15 -0
- package/dist/effects/EffectThumbnail.d.ts +15 -0
- package/dist/effects/EffectsBrowser.d.cts +22 -0
- package/dist/effects/EffectsBrowser.d.ts +22 -0
- package/dist/effects/index.cjs +0 -1
- package/dist/effects/index.d.cts +4 -82
- package/dist/effects/index.d.ts +4 -82
- package/dist/effects/index.js +2 -3
- package/dist/effects/useEffects.d.cts +16 -0
- package/dist/effects/useEffects.d.ts +16 -0
- package/dist/find-replace/FindReplaceBar.d.cts +19 -0
- package/dist/find-replace/FindReplaceBar.d.ts +19 -0
- package/dist/find-replace/index.d.cts +2 -0
- package/dist/find-replace/index.d.ts +2 -0
- package/dist/find-replace/useFindReplace.d.cts +24 -0
- package/dist/find-replace/useFindReplace.d.ts +24 -0
- package/dist/generation/AssetMentionChips.d.cts +24 -0
- package/dist/generation/AssetMentionChips.d.ts +24 -0
- package/dist/generation/GenerationHistory.d.cts +43 -0
- package/dist/generation/GenerationHistory.d.ts +43 -0
- package/dist/generation/GenerationSettings.d.cts +26 -0
- package/dist/generation/GenerationSettings.d.ts +26 -0
- package/dist/generation/JobProgress.d.cts +14 -0
- package/dist/generation/JobProgress.d.ts +14 -0
- package/dist/generation/index.cjs +0 -1
- package/dist/generation/index.d.cts +5 -124
- package/dist/generation/index.d.ts +5 -124
- package/dist/generation/index.js +1 -2
- package/dist/generation/useGenerationPlan.d.cts +18 -0
- package/dist/generation/useGenerationPlan.d.ts +18 -0
- package/dist/hooks/useAgentToolProvider.d.cts +11 -0
- package/dist/hooks/useAgentToolProvider.d.ts +11 -0
- package/dist/hooks/useDismissGuard.d.cts +26 -0
- package/dist/hooks/useDismissGuard.d.ts +26 -0
- package/dist/hooks/useDocxExport.d.cts +14 -0
- package/dist/hooks/useDocxExport.d.ts +14 -0
- package/dist/hooks/useEditor.d.cts +20 -0
- package/dist/hooks/useEditor.d.ts +20 -0
- package/dist/hooks/useFileImport.d.cts +23 -0
- package/dist/hooks/useFileImport.d.ts +23 -0
- package/dist/hooks/useHistory.d.cts +27 -0
- package/dist/hooks/useHistory.d.ts +27 -0
- package/dist/hooks/useHistoryDirty.d.cts +27 -0
- package/dist/hooks/useHistoryDirty.d.ts +27 -0
- package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
- package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
- package/dist/hooks/useMergePreview.d.cts +49 -0
- package/dist/hooks/useMergePreview.d.ts +49 -0
- package/dist/hooks/useNavigationGuard.d.cts +27 -0
- package/dist/hooks/useNavigationGuard.d.ts +27 -0
- package/dist/hooks/useOutline.d.cts +12 -0
- package/dist/hooks/useOutline.d.ts +12 -0
- package/dist/hooks/useParagraphStyles.d.cts +24 -0
- package/dist/hooks/useParagraphStyles.d.ts +24 -0
- package/dist/hooks/usePromptEditor.d.cts +57 -0
- package/dist/hooks/usePromptEditor.d.ts +57 -0
- package/dist/hooks/useToolBridge.d.cts +14 -0
- package/dist/hooks/useToolBridge.d.ts +14 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
- package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
- package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
- package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
- package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
- package/dist/image-editor/ControlSlider.d.cts +12 -0
- package/dist/image-editor/ControlSlider.d.ts +12 -0
- package/dist/image-editor/CurvesEditor.d.cts +15 -0
- package/dist/image-editor/CurvesEditor.d.ts +15 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
- package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
- package/dist/image-editor/Histogram.d.cts +14 -0
- package/dist/image-editor/Histogram.d.ts +14 -0
- package/dist/image-editor/ImageEditor.d.cts +22 -0
- package/dist/image-editor/ImageEditor.d.ts +22 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
- package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
- package/dist/image-editor/LayersPanel.d.cts +22 -0
- package/dist/image-editor/LayersPanel.d.ts +22 -0
- package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
- package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
- package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
- package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
- package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
- package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
- package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
- package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
- package/dist/image-editor/index.cjs +0 -1
- package/dist/image-editor/index.d.cts +17 -296
- package/dist/image-editor/index.d.ts +17 -296
- package/dist/image-editor/index.js +4 -5
- package/dist/image-editor/useImageEditor.d.cts +70 -0
- package/dist/image-editor/useImageEditor.d.ts +70 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +35 -802
- package/dist/index.d.ts +35 -802
- package/dist/index.js +9 -10
- package/dist/paint-editor/BrushPanel.d.cts +18 -0
- package/dist/paint-editor/BrushPanel.d.ts +18 -0
- package/dist/paint-editor/ColorPanel.d.cts +17 -0
- package/dist/paint-editor/ColorPanel.d.ts +17 -0
- package/dist/paint-editor/PaintCanvas.d.cts +40 -0
- package/dist/paint-editor/PaintCanvas.d.ts +40 -0
- package/dist/paint-editor/PaintEditor.d.cts +18 -0
- package/dist/paint-editor/PaintEditor.d.ts +18 -0
- package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
- package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
- package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
- package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
- package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
- package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
- package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
- package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
- package/dist/paint-editor/PaintToolbar.d.cts +17 -0
- package/dist/paint-editor/PaintToolbar.d.ts +17 -0
- package/dist/paint-editor/PaperPanel.d.cts +13 -0
- package/dist/paint-editor/PaperPanel.d.ts +13 -0
- package/dist/paint-editor/StickerPanel.d.cts +12 -0
- package/dist/paint-editor/StickerPanel.d.ts +12 -0
- package/dist/paint-editor/WetPanel.d.cts +14 -0
- package/dist/paint-editor/WetPanel.d.ts +14 -0
- package/dist/paint-editor/index.cjs +0 -1
- package/dist/paint-editor/index.d.cts +13 -211
- package/dist/paint-editor/index.d.ts +13 -211
- package/dist/paint-editor/index.js +3 -4
- package/dist/paint-editor/shared.d.cts +38 -0
- package/dist/paint-editor/shared.d.ts +38 -0
- package/dist/paint-editor/usePaintEditor.d.cts +22 -0
- package/dist/paint-editor/usePaintEditor.d.ts +22 -0
- package/dist/parameters/ParametersPanel.d.cts +27 -0
- package/dist/parameters/ParametersPanel.d.ts +27 -0
- package/dist/parameters/fields.d.cts +62 -0
- package/dist/parameters/fields.d.ts +62 -0
- package/dist/parameters/index.cjs +0 -1
- package/dist/parameters/index.d.cts +3 -121
- package/dist/parameters/index.d.ts +3 -121
- package/dist/parameters/index.js +1 -2
- package/dist/parameters/useParameters.d.cts +32 -0
- package/dist/parameters/useParameters.d.ts +32 -0
- package/dist/persistence/RecoveryPrompt.d.cts +20 -0
- package/dist/persistence/RecoveryPrompt.d.ts +20 -0
- package/dist/persistence/index.cjs +0 -1
- package/dist/persistence/index.d.cts +2 -77
- package/dist/persistence/index.d.ts +2 -77
- package/dist/persistence/index.js +1 -2
- package/dist/persistence/useAutosave.d.cts +54 -0
- package/dist/persistence/useAutosave.d.ts +54 -0
- package/dist/review/CommentButton.d.cts +12 -0
- package/dist/review/CommentButton.d.ts +12 -0
- package/dist/review/CommentsPanel.d.cts +21 -0
- package/dist/review/CommentsPanel.d.ts +21 -0
- package/dist/review/ReviewToolbar.d.cts +20 -0
- package/dist/review/ReviewToolbar.d.ts +20 -0
- package/dist/review/TrackedChangesList.d.cts +18 -0
- package/dist/review/TrackedChangesList.d.ts +18 -0
- package/dist/review/index.d.cts +6 -0
- package/dist/review/index.d.ts +6 -0
- package/dist/review/useDocumentCompare.d.cts +20 -0
- package/dist/review/useDocumentCompare.d.ts +20 -0
- package/dist/review/useReview.d.cts +32 -0
- package/dist/review/useReview.d.ts +32 -0
- package/dist/slots.d.cts +14 -0
- package/dist/slots.d.ts +14 -0
- package/dist/spreadsheet/FormulaHints.d.cts +24 -0
- package/dist/spreadsheet/FormulaHints.d.ts +24 -0
- package/dist/spreadsheet/NameManager.d.cts +14 -0
- package/dist/spreadsheet/NameManager.d.ts +14 -0
- package/dist/spreadsheet/SheetTabs.d.cts +13 -0
- package/dist/spreadsheet/SheetTabs.d.ts +13 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
- package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
- package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
- package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
- package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
- package/dist/spreadsheet/index.cjs +0 -1
- package/dist/spreadsheet/index.d.cts +11 -309
- package/dist/spreadsheet/index.d.ts +11 -309
- package/dist/spreadsheet/index.js +1 -2
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
- package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
- package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
- package/dist/tables/InsertTableGrid.d.cts +25 -0
- package/dist/tables/InsertTableGrid.d.ts +25 -0
- package/dist/tables/TableBubbleMenu.d.cts +18 -0
- package/dist/tables/TableBubbleMenu.d.ts +18 -0
- package/dist/tables/TableToolbar.d.cts +23 -0
- package/dist/tables/TableToolbar.d.ts +23 -0
- package/dist/tables/index.d.cts +4 -0
- package/dist/tables/index.d.ts +4 -0
- package/dist/tables/useTableMenu.d.cts +17 -0
- package/dist/tables/useTableMenu.d.ts +17 -0
- package/dist/tokens/TokensPanel.d.cts +22 -0
- package/dist/tokens/TokensPanel.d.ts +22 -0
- package/dist/tokens/index.cjs +0 -1
- package/dist/tokens/index.d.cts +2 -54
- package/dist/tokens/index.d.ts +2 -54
- package/dist/tokens/index.js +0 -1
- package/dist/tokens/useTokens.d.cts +29 -0
- package/dist/tokens/useTokens.d.ts +29 -0
- package/dist/vector/VectorAppearancePanel.d.cts +14 -0
- package/dist/vector/VectorAppearancePanel.d.ts +14 -0
- package/dist/vector/VectorCanvas.d.cts +58 -0
- package/dist/vector/VectorCanvas.d.ts +58 -0
- package/dist/vector/VectorConnectorPanel.d.cts +12 -0
- package/dist/vector/VectorConnectorPanel.d.ts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
- package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
- package/dist/vector/VectorEditor.d.cts +23 -0
- package/dist/vector/VectorEditor.d.ts +23 -0
- package/dist/vector/VectorEffectsPanel.d.cts +13 -0
- package/dist/vector/VectorEffectsPanel.d.ts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
- package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
- package/dist/vector/VectorFramePanel.d.cts +12 -0
- package/dist/vector/VectorFramePanel.d.ts +12 -0
- package/dist/vector/VectorGeneratePanel.d.cts +15 -0
- package/dist/vector/VectorGeneratePanel.d.ts +15 -0
- package/dist/vector/VectorGradientEditor.d.cts +12 -0
- package/dist/vector/VectorGradientEditor.d.ts +12 -0
- package/dist/vector/VectorLensPanel.d.cts +12 -0
- package/dist/vector/VectorLensPanel.d.ts +12 -0
- package/dist/vector/VectorMaskPanel.d.cts +13 -0
- package/dist/vector/VectorMaskPanel.d.ts +13 -0
- package/dist/vector/VectorPagesPanel.d.cts +11 -0
- package/dist/vector/VectorPagesPanel.d.ts +11 -0
- package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
- package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
- package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
- package/dist/vector/VectorShadingPanel.d.cts +12 -0
- package/dist/vector/VectorShadingPanel.d.ts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
- package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
- package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
- package/dist/vector/VectorTextPanel.d.cts +14 -0
- package/dist/vector/VectorTextPanel.d.ts +14 -0
- package/dist/vector/VectorToolbar.d.cts +39 -0
- package/dist/vector/VectorToolbar.d.ts +39 -0
- package/dist/vector/VectorTracePanel.d.cts +12 -0
- package/dist/vector/VectorTracePanel.d.ts +12 -0
- package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
- package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
- package/dist/vector/index.cjs +14 -2
- package/dist/vector/index.d.cts +23 -384
- package/dist/vector/index.d.ts +23 -384
- package/dist/vector/index.js +17 -4
- package/dist/vector/useVectorEditor.d.cts +40 -0
- package/dist/vector/useVectorEditor.d.ts +40 -0
- package/dist/video-editor/ClipInspector.d.cts +14 -0
- package/dist/video-editor/ClipInspector.d.ts +14 -0
- package/dist/video-editor/MediaBin.d.cts +18 -0
- package/dist/video-editor/MediaBin.d.ts +18 -0
- package/dist/video-editor/TranscriptPanel.d.cts +17 -0
- package/dist/video-editor/TranscriptPanel.d.ts +17 -0
- package/dist/video-editor/VideoEditor.d.cts +41 -0
- package/dist/video-editor/VideoEditor.d.ts +41 -0
- package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
- package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
- package/dist/video-editor/VideoPreview.d.cts +17 -0
- package/dist/video-editor/VideoPreview.d.ts +17 -0
- package/dist/video-editor/VideoScopes.d.cts +17 -0
- package/dist/video-editor/VideoScopes.d.ts +17 -0
- package/dist/video-editor/VideoTimeline.d.cts +15 -0
- package/dist/video-editor/VideoTimeline.d.ts +15 -0
- package/dist/video-editor/VideoTransport.d.cts +14 -0
- package/dist/video-editor/VideoTransport.d.ts +14 -0
- package/dist/video-editor/index.cjs +0 -1
- package/dist/video-editor/index.d.cts +10 -203
- package/dist/video-editor/index.d.ts +10 -203
- package/dist/video-editor/index.js +2 -3
- package/dist/video-editor/useVideoEditor.d.cts +42 -0
- package/dist/video-editor/useVideoEditor.d.ts +42 -0
- package/package.json +124 -49
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
- package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
- package/dist/animation-editor/index.cjs.map +0 -1
- package/dist/animation-editor/index.js.map +0 -1
- package/dist/canvas/index.cjs.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/chart/index.cjs.map +0 -1
- package/dist/chart/index.js.map +0 -1
- package/dist/chunk-34HEZX7J.js.map +0 -1
- package/dist/chunk-4FQXRPBN.js.map +0 -1
- package/dist/chunk-4ZC2WCUO.js.map +0 -1
- package/dist/chunk-I3E4KSA2.js.map +0 -1
- package/dist/chunk-MO354USR.js.map +0 -1
- package/dist/chunk-SIEOYRHX.js.map +0 -1
- package/dist/chunk-WOQ3H7KA.js.map +0 -1
- package/dist/chunk-XWFU2CSG.js.map +0 -1
- package/dist/chunk-ZQZAKUUM.js.map +0 -1
- package/dist/commands/index.cjs.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/effects/index.cjs.map +0 -1
- package/dist/effects/index.js.map +0 -1
- package/dist/generation/index.cjs.map +0 -1
- package/dist/generation/index.js.map +0 -1
- package/dist/image-editor/index.cjs.map +0 -1
- package/dist/image-editor/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/paint-editor/index.cjs.map +0 -1
- package/dist/paint-editor/index.js.map +0 -1
- package/dist/parameters/index.cjs.map +0 -1
- package/dist/parameters/index.js.map +0 -1
- package/dist/persistence/index.cjs.map +0 -1
- package/dist/persistence/index.js.map +0 -1
- package/dist/spreadsheet/index.cjs.map +0 -1
- package/dist/spreadsheet/index.js.map +0 -1
- package/dist/tokens/index.cjs.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/vector/index.cjs.map +0 -1
- package/dist/vector/index.js.map +0 -1
- package/dist/video-editor/index.cjs.map +0 -1
- package/dist/video-editor/index.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AssetInfo, type AssetMentionChip, type AssetRoleOption, type ModelCapabilities } from '@pixerate/editor/generation';
|
|
3
|
+
export interface AssetMentionChipsProps {
|
|
4
|
+
/** Prompt text containing `@asset` / `@asset:role` mentions. */
|
|
5
|
+
content: string;
|
|
6
|
+
/** Called with the text after a role is picked (`@fox` → `@fox:style_ref`). */
|
|
7
|
+
onChange: (next: string) => void;
|
|
8
|
+
/** Mentionable assets; mentions that match none (by id or label) are not shown. */
|
|
9
|
+
assets: readonly AssetInfo[];
|
|
10
|
+
/** The selected model: its roles are offered and mentions are checked against it. */
|
|
11
|
+
capabilities?: ModelCapabilities;
|
|
12
|
+
/** Role options (default: the model's roles, else the built-in roles). */
|
|
13
|
+
roles?: readonly AssetRoleOption[];
|
|
14
|
+
/** Custom chip content (default: the asset label). */
|
|
15
|
+
renderAsset?: (chip: AssetMentionChip) => React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The asset mentions of a prompt as chips with role badges. Clicking a chip
|
|
20
|
+
* opens a role picker popover; picking a role rewrites the mention's `:role`
|
|
21
|
+
* suffix in the text. Chips with problems for the model (unsupported role,
|
|
22
|
+
* wrong media type, too many for the role) are flagged.
|
|
23
|
+
*/
|
|
24
|
+
export declare const AssetMentionChips: React.FC<AssetMentionChipsProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AssetInfo, type AssetMentionChip, type AssetRoleOption, type ModelCapabilities } from '@pixerate/editor/generation';
|
|
3
|
+
export interface AssetMentionChipsProps {
|
|
4
|
+
/** Prompt text containing `@asset` / `@asset:role` mentions. */
|
|
5
|
+
content: string;
|
|
6
|
+
/** Called with the text after a role is picked (`@fox` → `@fox:style_ref`). */
|
|
7
|
+
onChange: (next: string) => void;
|
|
8
|
+
/** Mentionable assets; mentions that match none (by id or label) are not shown. */
|
|
9
|
+
assets: readonly AssetInfo[];
|
|
10
|
+
/** The selected model: its roles are offered and mentions are checked against it. */
|
|
11
|
+
capabilities?: ModelCapabilities;
|
|
12
|
+
/** Role options (default: the model's roles, else the built-in roles). */
|
|
13
|
+
roles?: readonly AssetRoleOption[];
|
|
14
|
+
/** Custom chip content (default: the asset label). */
|
|
15
|
+
renderAsset?: (chip: AssetMentionChip) => React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The asset mentions of a prompt as chips with role badges. Clicking a chip
|
|
20
|
+
* opens a role picker popover; picking a role rewrites the mention's `:role`
|
|
21
|
+
* suffix in the text. Chips with problems for the model (unsupported role,
|
|
22
|
+
* wrong media type, too many for the role) are flagged.
|
|
23
|
+
*/
|
|
24
|
+
export declare const AssetMentionChips: React.FC<AssetMentionChipsProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AssetLookup, type GenerationRecord, type GenerationRecordFilter, type GenerationRecordStore, type ModelCapabilities, type RecreateMode, type RecreateOptions, type RecreateResult } from '@pixerate/editor/generation';
|
|
3
|
+
type Template = NonNullable<RecreateOptions['templates']>[number];
|
|
4
|
+
export interface UseGenerationRecordsResult {
|
|
5
|
+
records: GenerationRecord[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: unknown;
|
|
8
|
+
refresh: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Loads records from a `GenerationRecordStore` (newest first) and reloads
|
|
12
|
+
* whenever the store changes. `filter` is compared by value.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useGenerationRecords(store: GenerationRecordStore | null | undefined, filter?: GenerationRecordFilter): UseGenerationRecordsResult;
|
|
15
|
+
export interface GenerationHistoryProps {
|
|
16
|
+
records: readonly GenerationRecord[];
|
|
17
|
+
/** Current templates (drift detection, and resolution in `latest` mode). */
|
|
18
|
+
templates?: readonly Template[];
|
|
19
|
+
/** Current models (capability drift and re-planning). */
|
|
20
|
+
capabilities?: ModelCapabilities | readonly ModelCapabilities[];
|
|
21
|
+
/** Current assets (missing / changed asset drift). */
|
|
22
|
+
assets?: AssetLookup;
|
|
23
|
+
/** Recreate mode (controlled); otherwise a toggle starting at `exact`. */
|
|
24
|
+
mode?: RecreateMode;
|
|
25
|
+
onModeChange?: (mode: RecreateMode) => void;
|
|
26
|
+
/** "Recreate": receives the rebuilt request and drift report. */
|
|
27
|
+
onRecreate?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
28
|
+
/** "Variation": same request with a new seed. */
|
|
29
|
+
onVariation?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
30
|
+
onRemove?: (record: GenerationRecord) => void;
|
|
31
|
+
/** Extra content per record (e.g. output thumbnails). */
|
|
32
|
+
renderPreview?: (record: GenerationRecord) => React.ReactNode;
|
|
33
|
+
emptyText?: string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generation history: one entry per record with its model, prompt, asset
|
|
38
|
+
* role badges and the drift since it was made (templates edited, model
|
|
39
|
+
* capabilities changed, settings no longer supported, assets missing), plus
|
|
40
|
+
* Recreate and Variation buttons. Recreate is disabled when drift blocks it.
|
|
41
|
+
*/
|
|
42
|
+
export declare const GenerationHistory: React.FC<GenerationHistoryProps>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AssetLookup, type GenerationRecord, type GenerationRecordFilter, type GenerationRecordStore, type ModelCapabilities, type RecreateMode, type RecreateOptions, type RecreateResult } from '@pixerate/editor/generation';
|
|
3
|
+
type Template = NonNullable<RecreateOptions['templates']>[number];
|
|
4
|
+
export interface UseGenerationRecordsResult {
|
|
5
|
+
records: GenerationRecord[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: unknown;
|
|
8
|
+
refresh: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Loads records from a `GenerationRecordStore` (newest first) and reloads
|
|
12
|
+
* whenever the store changes. `filter` is compared by value.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useGenerationRecords(store: GenerationRecordStore | null | undefined, filter?: GenerationRecordFilter): UseGenerationRecordsResult;
|
|
15
|
+
export interface GenerationHistoryProps {
|
|
16
|
+
records: readonly GenerationRecord[];
|
|
17
|
+
/** Current templates (drift detection, and resolution in `latest` mode). */
|
|
18
|
+
templates?: readonly Template[];
|
|
19
|
+
/** Current models (capability drift and re-planning). */
|
|
20
|
+
capabilities?: ModelCapabilities | readonly ModelCapabilities[];
|
|
21
|
+
/** Current assets (missing / changed asset drift). */
|
|
22
|
+
assets?: AssetLookup;
|
|
23
|
+
/** Recreate mode (controlled); otherwise a toggle starting at `exact`. */
|
|
24
|
+
mode?: RecreateMode;
|
|
25
|
+
onModeChange?: (mode: RecreateMode) => void;
|
|
26
|
+
/** "Recreate": receives the rebuilt request and drift report. */
|
|
27
|
+
onRecreate?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
28
|
+
/** "Variation": same request with a new seed. */
|
|
29
|
+
onVariation?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
30
|
+
onRemove?: (record: GenerationRecord) => void;
|
|
31
|
+
/** Extra content per record (e.g. output thumbnails). */
|
|
32
|
+
renderPreview?: (record: GenerationRecord) => React.ReactNode;
|
|
33
|
+
emptyText?: string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generation history: one entry per record with its model, prompt, asset
|
|
38
|
+
* role badges and the drift since it was made (templates edited, model
|
|
39
|
+
* capabilities changed, settings no longer supported, assets missing), plus
|
|
40
|
+
* Recreate and Variation buttons. Recreate is disabled when drift blocks it.
|
|
41
|
+
*/
|
|
42
|
+
export declare const GenerationHistory: React.FC<GenerationHistoryProps>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type GenerationPlan, type GenerationReference, type GenerationRequest, type ModelCapabilities, type PlanStrategy, type ReferenceRole } from '@pixerate/editor/generation';
|
|
3
|
+
export interface GenerationSettingsProps {
|
|
4
|
+
capabilities: ModelCapabilities;
|
|
5
|
+
/** The request being edited (controlled). */
|
|
6
|
+
value: GenerationRequest;
|
|
7
|
+
onChange: (next: GenerationRequest) => void;
|
|
8
|
+
/** A plan computed elsewhere; otherwise one is computed with `strategy`. */
|
|
9
|
+
plan?: GenerationPlan;
|
|
10
|
+
/** Strategy for the built-in plan (default `nearest`). */
|
|
11
|
+
strategy?: PlanStrategy;
|
|
12
|
+
/** List plan adjustments and errors under the controls (default `true`). */
|
|
13
|
+
showAdjustments?: boolean;
|
|
14
|
+
/** Shows an "Add" button per reference role; you pick the asset and call `onChange`. */
|
|
15
|
+
onAddReference?: (role: ReferenceRole) => void;
|
|
16
|
+
/** Custom rendering of a reference chip (default: its id). */
|
|
17
|
+
renderReference?: (reference: GenerationReference) => React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Headless-styled settings form generated from a model's capabilities:
|
|
22
|
+
* selects for choices, sliders/number inputs for ranges, text areas for
|
|
23
|
+
* negative/system prompts, checkboxes for boolean params, reference slots by
|
|
24
|
+
* role, and the plan's adjustments and errors. Controlled via `value` / `onChange`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const GenerationSettings: React.FC<GenerationSettingsProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type GenerationPlan, type GenerationReference, type GenerationRequest, type ModelCapabilities, type PlanStrategy, type ReferenceRole } from '@pixerate/editor/generation';
|
|
3
|
+
export interface GenerationSettingsProps {
|
|
4
|
+
capabilities: ModelCapabilities;
|
|
5
|
+
/** The request being edited (controlled). */
|
|
6
|
+
value: GenerationRequest;
|
|
7
|
+
onChange: (next: GenerationRequest) => void;
|
|
8
|
+
/** A plan computed elsewhere; otherwise one is computed with `strategy`. */
|
|
9
|
+
plan?: GenerationPlan;
|
|
10
|
+
/** Strategy for the built-in plan (default `nearest`). */
|
|
11
|
+
strategy?: PlanStrategy;
|
|
12
|
+
/** List plan adjustments and errors under the controls (default `true`). */
|
|
13
|
+
showAdjustments?: boolean;
|
|
14
|
+
/** Shows an "Add" button per reference role; you pick the asset and call `onChange`. */
|
|
15
|
+
onAddReference?: (role: ReferenceRole) => void;
|
|
16
|
+
/** Custom rendering of a reference chip (default: its id). */
|
|
17
|
+
renderReference?: (reference: GenerationReference) => React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Headless-styled settings form generated from a model's capabilities:
|
|
22
|
+
* selects for choices, sliders/number inputs for ranges, text areas for
|
|
23
|
+
* negative/system prompts, checkboxes for boolean params, reference slots by
|
|
24
|
+
* role, and the plan's adjustments and errors. Controlled via `value` / `onChange`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const GenerationSettings: React.FC<GenerationSettingsProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type UseJobProgressOptions } from './useGenerationPlan.cjs';
|
|
3
|
+
export interface JobProgressProps extends UseJobProgressOptions {
|
|
4
|
+
/** Text shown before the time label, e.g. the model name. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Extra classes for the root. */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Headless-styled progress bar for a generation job that reports no progress
|
|
11
|
+
* of its own: time-based percent (held at 95% until `done`) with a
|
|
12
|
+
* "~2m left" / "Almost done…" label. Exposes `role="progressbar"`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const JobProgress: React.FC<JobProgressProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type UseJobProgressOptions } from './useGenerationPlan.js';
|
|
3
|
+
export interface JobProgressProps extends UseJobProgressOptions {
|
|
4
|
+
/** Text shown before the time label, e.g. the model name. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Extra classes for the root. */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Headless-styled progress bar for a generation job that reports no progress
|
|
11
|
+
* of its own: time-based percent (held at 95% until `done`) with a
|
|
12
|
+
* "~2m left" / "Almost done…" label. Exposes `role="progressbar"`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const JobProgress: React.FC<JobProgressProps>;
|
|
@@ -1,124 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* returns the adjusted request, adjustments and errors. Recomputed only when
|
|
7
|
-
* the request, capabilities or options change by value, so inline objects are fine.
|
|
8
|
-
*/
|
|
9
|
-
declare function useGenerationPlan(request: GenerationRequest, capabilities: ModelCapabilities, options?: PlanOptions): GenerationPlan;
|
|
10
|
-
interface UseJobProgressOptions {
|
|
11
|
-
startedAt: number | Date | string;
|
|
12
|
-
expectedMs?: number;
|
|
13
|
-
done?: boolean;
|
|
14
|
-
/** Fixed current time (disables ticking; useful for SSR and tests). */
|
|
15
|
-
now?: number | Date | string;
|
|
16
|
-
/** Re-render interval while running in ms (default 1000). */
|
|
17
|
-
intervalMs?: number;
|
|
18
|
-
}
|
|
19
|
-
/** Ticking `estimateJobProgress` for a running job; stops ticking when `done`. */
|
|
20
|
-
declare function useJobProgress(options: UseJobProgressOptions): JobProgressEstimate;
|
|
21
|
-
|
|
22
|
-
interface GenerationSettingsProps {
|
|
23
|
-
capabilities: ModelCapabilities;
|
|
24
|
-
/** The request being edited (controlled). */
|
|
25
|
-
value: GenerationRequest;
|
|
26
|
-
onChange: (next: GenerationRequest) => void;
|
|
27
|
-
/** A plan computed elsewhere; otherwise one is computed with `strategy`. */
|
|
28
|
-
plan?: GenerationPlan;
|
|
29
|
-
/** Strategy for the built-in plan (default `nearest`). */
|
|
30
|
-
strategy?: PlanStrategy;
|
|
31
|
-
/** List plan adjustments and errors under the controls (default `true`). */
|
|
32
|
-
showAdjustments?: boolean;
|
|
33
|
-
/** Shows an "Add" button per reference role; you pick the asset and call `onChange`. */
|
|
34
|
-
onAddReference?: (role: ReferenceRole) => void;
|
|
35
|
-
/** Custom rendering of a reference chip (default: its id). */
|
|
36
|
-
renderReference?: (reference: GenerationReference) => React__default.ReactNode;
|
|
37
|
-
className?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Headless-styled settings form generated from a model's capabilities:
|
|
41
|
-
* selects for choices, sliders/number inputs for ranges, text areas for
|
|
42
|
-
* negative/system prompts, checkboxes for boolean params, reference slots by
|
|
43
|
-
* role, and the plan's adjustments and errors. Controlled via `value` / `onChange`.
|
|
44
|
-
*/
|
|
45
|
-
declare const GenerationSettings: React__default.FC<GenerationSettingsProps>;
|
|
46
|
-
|
|
47
|
-
interface JobProgressProps extends UseJobProgressOptions {
|
|
48
|
-
/** Text shown before the time label, e.g. the model name. */
|
|
49
|
-
title?: string;
|
|
50
|
-
/** Extra classes for the root. */
|
|
51
|
-
className?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Headless-styled progress bar for a generation job that reports no progress
|
|
55
|
-
* of its own: time-based percent (held at 95% until `done`) with a
|
|
56
|
-
* "~2m left" / "Almost done…" label. Exposes `role="progressbar"`.
|
|
57
|
-
*/
|
|
58
|
-
declare const JobProgress: React__default.FC<JobProgressProps>;
|
|
59
|
-
|
|
60
|
-
interface AssetMentionChipsProps {
|
|
61
|
-
/** Prompt text containing `@asset` / `@asset:role` mentions. */
|
|
62
|
-
content: string;
|
|
63
|
-
/** Called with the text after a role is picked (`@fox` → `@fox:style_ref`). */
|
|
64
|
-
onChange: (next: string) => void;
|
|
65
|
-
/** Mentionable assets; mentions that match none (by id or label) are not shown. */
|
|
66
|
-
assets: readonly AssetInfo[];
|
|
67
|
-
/** The selected model: its roles are offered and mentions are checked against it. */
|
|
68
|
-
capabilities?: ModelCapabilities;
|
|
69
|
-
/** Role options (default: the model's roles, else the built-in roles). */
|
|
70
|
-
roles?: readonly AssetRoleOption[];
|
|
71
|
-
/** Custom chip content (default: the asset label). */
|
|
72
|
-
renderAsset?: (chip: AssetMentionChip) => React__default.ReactNode;
|
|
73
|
-
className?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* The asset mentions of a prompt as chips with role badges. Clicking a chip
|
|
77
|
-
* opens a role picker popover; picking a role rewrites the mention's `:role`
|
|
78
|
-
* suffix in the text. Chips with problems for the model (unsupported role,
|
|
79
|
-
* wrong media type, too many for the role) are flagged.
|
|
80
|
-
*/
|
|
81
|
-
declare const AssetMentionChips: React__default.FC<AssetMentionChipsProps>;
|
|
82
|
-
|
|
83
|
-
type Template = NonNullable<RecreateOptions['templates']>[number];
|
|
84
|
-
interface UseGenerationRecordsResult {
|
|
85
|
-
records: GenerationRecord[];
|
|
86
|
-
loading: boolean;
|
|
87
|
-
error: unknown;
|
|
88
|
-
refresh: () => Promise<void>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Loads records from a `GenerationRecordStore` (newest first) and reloads
|
|
92
|
-
* whenever the store changes. `filter` is compared by value.
|
|
93
|
-
*/
|
|
94
|
-
declare function useGenerationRecords(store: GenerationRecordStore | null | undefined, filter?: GenerationRecordFilter): UseGenerationRecordsResult;
|
|
95
|
-
interface GenerationHistoryProps {
|
|
96
|
-
records: readonly GenerationRecord[];
|
|
97
|
-
/** Current templates (drift detection, and resolution in `latest` mode). */
|
|
98
|
-
templates?: readonly Template[];
|
|
99
|
-
/** Current models (capability drift and re-planning). */
|
|
100
|
-
capabilities?: ModelCapabilities | readonly ModelCapabilities[];
|
|
101
|
-
/** Current assets (missing / changed asset drift). */
|
|
102
|
-
assets?: AssetLookup;
|
|
103
|
-
/** Recreate mode (controlled); otherwise a toggle starting at `exact`. */
|
|
104
|
-
mode?: RecreateMode;
|
|
105
|
-
onModeChange?: (mode: RecreateMode) => void;
|
|
106
|
-
/** "Recreate": receives the rebuilt request and drift report. */
|
|
107
|
-
onRecreate?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
108
|
-
/** "Variation": same request with a new seed. */
|
|
109
|
-
onVariation?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
110
|
-
onRemove?: (record: GenerationRecord) => void;
|
|
111
|
-
/** Extra content per record (e.g. output thumbnails). */
|
|
112
|
-
renderPreview?: (record: GenerationRecord) => React__default.ReactNode;
|
|
113
|
-
emptyText?: string;
|
|
114
|
-
className?: string;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Generation history: one entry per record with its model, prompt, asset
|
|
118
|
-
* role badges and the drift since it was made (templates edited, model
|
|
119
|
-
* capabilities changed, settings no longer supported, assets missing), plus
|
|
120
|
-
* Recreate and Variation buttons. Recreate is disabled when drift blocks it.
|
|
121
|
-
*/
|
|
122
|
-
declare const GenerationHistory: React__default.FC<GenerationHistoryProps>;
|
|
123
|
-
|
|
124
|
-
export { AssetMentionChips, type AssetMentionChipsProps, GenerationHistory, type GenerationHistoryProps, GenerationSettings, type GenerationSettingsProps, JobProgress, type JobProgressProps, type UseGenerationRecordsResult, type UseJobProgressOptions, useGenerationPlan, useGenerationRecords, useJobProgress };
|
|
1
|
+
export * from './useGenerationPlan.cjs';
|
|
2
|
+
export * from './GenerationSettings.cjs';
|
|
3
|
+
export * from './JobProgress.cjs';
|
|
4
|
+
export * from './AssetMentionChips.cjs';
|
|
5
|
+
export * from './GenerationHistory.cjs';
|
|
@@ -1,124 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* returns the adjusted request, adjustments and errors. Recomputed only when
|
|
7
|
-
* the request, capabilities or options change by value, so inline objects are fine.
|
|
8
|
-
*/
|
|
9
|
-
declare function useGenerationPlan(request: GenerationRequest, capabilities: ModelCapabilities, options?: PlanOptions): GenerationPlan;
|
|
10
|
-
interface UseJobProgressOptions {
|
|
11
|
-
startedAt: number | Date | string;
|
|
12
|
-
expectedMs?: number;
|
|
13
|
-
done?: boolean;
|
|
14
|
-
/** Fixed current time (disables ticking; useful for SSR and tests). */
|
|
15
|
-
now?: number | Date | string;
|
|
16
|
-
/** Re-render interval while running in ms (default 1000). */
|
|
17
|
-
intervalMs?: number;
|
|
18
|
-
}
|
|
19
|
-
/** Ticking `estimateJobProgress` for a running job; stops ticking when `done`. */
|
|
20
|
-
declare function useJobProgress(options: UseJobProgressOptions): JobProgressEstimate;
|
|
21
|
-
|
|
22
|
-
interface GenerationSettingsProps {
|
|
23
|
-
capabilities: ModelCapabilities;
|
|
24
|
-
/** The request being edited (controlled). */
|
|
25
|
-
value: GenerationRequest;
|
|
26
|
-
onChange: (next: GenerationRequest) => void;
|
|
27
|
-
/** A plan computed elsewhere; otherwise one is computed with `strategy`. */
|
|
28
|
-
plan?: GenerationPlan;
|
|
29
|
-
/** Strategy for the built-in plan (default `nearest`). */
|
|
30
|
-
strategy?: PlanStrategy;
|
|
31
|
-
/** List plan adjustments and errors under the controls (default `true`). */
|
|
32
|
-
showAdjustments?: boolean;
|
|
33
|
-
/** Shows an "Add" button per reference role; you pick the asset and call `onChange`. */
|
|
34
|
-
onAddReference?: (role: ReferenceRole) => void;
|
|
35
|
-
/** Custom rendering of a reference chip (default: its id). */
|
|
36
|
-
renderReference?: (reference: GenerationReference) => React__default.ReactNode;
|
|
37
|
-
className?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Headless-styled settings form generated from a model's capabilities:
|
|
41
|
-
* selects for choices, sliders/number inputs for ranges, text areas for
|
|
42
|
-
* negative/system prompts, checkboxes for boolean params, reference slots by
|
|
43
|
-
* role, and the plan's adjustments and errors. Controlled via `value` / `onChange`.
|
|
44
|
-
*/
|
|
45
|
-
declare const GenerationSettings: React__default.FC<GenerationSettingsProps>;
|
|
46
|
-
|
|
47
|
-
interface JobProgressProps extends UseJobProgressOptions {
|
|
48
|
-
/** Text shown before the time label, e.g. the model name. */
|
|
49
|
-
title?: string;
|
|
50
|
-
/** Extra classes for the root. */
|
|
51
|
-
className?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Headless-styled progress bar for a generation job that reports no progress
|
|
55
|
-
* of its own: time-based percent (held at 95% until `done`) with a
|
|
56
|
-
* "~2m left" / "Almost done…" label. Exposes `role="progressbar"`.
|
|
57
|
-
*/
|
|
58
|
-
declare const JobProgress: React__default.FC<JobProgressProps>;
|
|
59
|
-
|
|
60
|
-
interface AssetMentionChipsProps {
|
|
61
|
-
/** Prompt text containing `@asset` / `@asset:role` mentions. */
|
|
62
|
-
content: string;
|
|
63
|
-
/** Called with the text after a role is picked (`@fox` → `@fox:style_ref`). */
|
|
64
|
-
onChange: (next: string) => void;
|
|
65
|
-
/** Mentionable assets; mentions that match none (by id or label) are not shown. */
|
|
66
|
-
assets: readonly AssetInfo[];
|
|
67
|
-
/** The selected model: its roles are offered and mentions are checked against it. */
|
|
68
|
-
capabilities?: ModelCapabilities;
|
|
69
|
-
/** Role options (default: the model's roles, else the built-in roles). */
|
|
70
|
-
roles?: readonly AssetRoleOption[];
|
|
71
|
-
/** Custom chip content (default: the asset label). */
|
|
72
|
-
renderAsset?: (chip: AssetMentionChip) => React__default.ReactNode;
|
|
73
|
-
className?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* The asset mentions of a prompt as chips with role badges. Clicking a chip
|
|
77
|
-
* opens a role picker popover; picking a role rewrites the mention's `:role`
|
|
78
|
-
* suffix in the text. Chips with problems for the model (unsupported role,
|
|
79
|
-
* wrong media type, too many for the role) are flagged.
|
|
80
|
-
*/
|
|
81
|
-
declare const AssetMentionChips: React__default.FC<AssetMentionChipsProps>;
|
|
82
|
-
|
|
83
|
-
type Template = NonNullable<RecreateOptions['templates']>[number];
|
|
84
|
-
interface UseGenerationRecordsResult {
|
|
85
|
-
records: GenerationRecord[];
|
|
86
|
-
loading: boolean;
|
|
87
|
-
error: unknown;
|
|
88
|
-
refresh: () => Promise<void>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Loads records from a `GenerationRecordStore` (newest first) and reloads
|
|
92
|
-
* whenever the store changes. `filter` is compared by value.
|
|
93
|
-
*/
|
|
94
|
-
declare function useGenerationRecords(store: GenerationRecordStore | null | undefined, filter?: GenerationRecordFilter): UseGenerationRecordsResult;
|
|
95
|
-
interface GenerationHistoryProps {
|
|
96
|
-
records: readonly GenerationRecord[];
|
|
97
|
-
/** Current templates (drift detection, and resolution in `latest` mode). */
|
|
98
|
-
templates?: readonly Template[];
|
|
99
|
-
/** Current models (capability drift and re-planning). */
|
|
100
|
-
capabilities?: ModelCapabilities | readonly ModelCapabilities[];
|
|
101
|
-
/** Current assets (missing / changed asset drift). */
|
|
102
|
-
assets?: AssetLookup;
|
|
103
|
-
/** Recreate mode (controlled); otherwise a toggle starting at `exact`. */
|
|
104
|
-
mode?: RecreateMode;
|
|
105
|
-
onModeChange?: (mode: RecreateMode) => void;
|
|
106
|
-
/** "Recreate": receives the rebuilt request and drift report. */
|
|
107
|
-
onRecreate?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
108
|
-
/** "Variation": same request with a new seed. */
|
|
109
|
-
onVariation?: (result: RecreateResult, record: GenerationRecord) => void;
|
|
110
|
-
onRemove?: (record: GenerationRecord) => void;
|
|
111
|
-
/** Extra content per record (e.g. output thumbnails). */
|
|
112
|
-
renderPreview?: (record: GenerationRecord) => React__default.ReactNode;
|
|
113
|
-
emptyText?: string;
|
|
114
|
-
className?: string;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Generation history: one entry per record with its model, prompt, asset
|
|
118
|
-
* role badges and the drift since it was made (templates edited, model
|
|
119
|
-
* capabilities changed, settings no longer supported, assets missing), plus
|
|
120
|
-
* Recreate and Variation buttons. Recreate is disabled when drift blocks it.
|
|
121
|
-
*/
|
|
122
|
-
declare const GenerationHistory: React__default.FC<GenerationHistoryProps>;
|
|
123
|
-
|
|
124
|
-
export { AssetMentionChips, type AssetMentionChipsProps, GenerationHistory, type GenerationHistoryProps, GenerationSettings, type GenerationSettingsProps, JobProgress, type JobProgressProps, type UseGenerationRecordsResult, type UseJobProgressOptions, useGenerationPlan, useGenerationRecords, useJobProgress };
|
|
1
|
+
export * from './useGenerationPlan.js';
|
|
2
|
+
export * from './GenerationSettings.js';
|
|
3
|
+
export * from './JobProgress.js';
|
|
4
|
+
export * from './AssetMentionChips.js';
|
|
5
|
+
export * from './GenerationHistory.js';
|
package/dist/generation/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useGenerationPlan,
|
|
7
7
|
useGenerationRecords,
|
|
8
8
|
useJobProgress
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-FLS7Q32M.js";
|
|
10
10
|
export {
|
|
11
11
|
AssetMentionChips,
|
|
12
12
|
GenerationHistory,
|
|
@@ -16,4 +16,3 @@ export {
|
|
|
16
16
|
useGenerationRecords,
|
|
17
17
|
useJobProgress
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type GenerationPlan, type GenerationRequest, type JobProgressEstimate, type ModelCapabilities, type PlanOptions } from '@pixerate/editor/generation';
|
|
2
|
+
/**
|
|
3
|
+
* Plans `request` against `capabilities` (see `planGenerationRequest`) and
|
|
4
|
+
* returns the adjusted request, adjustments and errors. Recomputed only when
|
|
5
|
+
* the request, capabilities or options change by value, so inline objects are fine.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useGenerationPlan(request: GenerationRequest, capabilities: ModelCapabilities, options?: PlanOptions): GenerationPlan;
|
|
8
|
+
export interface UseJobProgressOptions {
|
|
9
|
+
startedAt: number | Date | string;
|
|
10
|
+
expectedMs?: number;
|
|
11
|
+
done?: boolean;
|
|
12
|
+
/** Fixed current time (disables ticking; useful for SSR and tests). */
|
|
13
|
+
now?: number | Date | string;
|
|
14
|
+
/** Re-render interval while running in ms (default 1000). */
|
|
15
|
+
intervalMs?: number;
|
|
16
|
+
}
|
|
17
|
+
/** Ticking `estimateJobProgress` for a running job; stops ticking when `done`. */
|
|
18
|
+
export declare function useJobProgress(options: UseJobProgressOptions): JobProgressEstimate;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type GenerationPlan, type GenerationRequest, type JobProgressEstimate, type ModelCapabilities, type PlanOptions } from '@pixerate/editor/generation';
|
|
2
|
+
/**
|
|
3
|
+
* Plans `request` against `capabilities` (see `planGenerationRequest`) and
|
|
4
|
+
* returns the adjusted request, adjustments and errors. Recomputed only when
|
|
5
|
+
* the request, capabilities or options change by value, so inline objects are fine.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useGenerationPlan(request: GenerationRequest, capabilities: ModelCapabilities, options?: PlanOptions): GenerationPlan;
|
|
8
|
+
export interface UseJobProgressOptions {
|
|
9
|
+
startedAt: number | Date | string;
|
|
10
|
+
expectedMs?: number;
|
|
11
|
+
done?: boolean;
|
|
12
|
+
/** Fixed current time (disables ticking; useful for SSR and tests). */
|
|
13
|
+
now?: number | Date | string;
|
|
14
|
+
/** Re-render interval while running in ms (default 1000). */
|
|
15
|
+
intervalMs?: number;
|
|
16
|
+
}
|
|
17
|
+
/** Ticking `estimateJobProgress` for a running job; stops ticking when `done`. */
|
|
18
|
+
export declare function useJobProgress(options: UseJobProgressOptions): JobProgressEstimate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentToolProvider, ToolRegistry } from "@pixerate/editor/tools";
|
|
2
|
+
/**
|
|
3
|
+
* Registers a tool provider with a `ToolRegistry` while the component is
|
|
4
|
+
* mounted and unregisters it on unmount (the registry then announces the
|
|
5
|
+
* change through `onListChanged`).
|
|
6
|
+
*
|
|
7
|
+
* Memoize the provider (e.g. `useMemo(() => createRichTextToolProvider(editor,
|
|
8
|
+
* { id }), [editor])`): a new provider object re-registers it. Pass `null`
|
|
9
|
+
* while it isn't ready.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useAgentToolProvider(registry: ToolRegistry | null | undefined, provider: AgentToolProvider | null | undefined): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentToolProvider, ToolRegistry } from "@pixerate/editor/tools";
|
|
2
|
+
/**
|
|
3
|
+
* Registers a tool provider with a `ToolRegistry` while the component is
|
|
4
|
+
* mounted and unregisters it on unmount (the registry then announces the
|
|
5
|
+
* change through `onListChanged`).
|
|
6
|
+
*
|
|
7
|
+
* Memoize the provider (e.g. `useMemo(() => createRichTextToolProvider(editor,
|
|
8
|
+
* { id }), [editor])`): a new provider object re-registers it. Pass `null`
|
|
9
|
+
* while it isn't ready.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useAgentToolProvider(registry: ToolRegistry | null | undefined, provider: AgentToolProvider | null | undefined): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UseDismissGuardOptions {
|
|
2
|
+
/** Whether there are unsaved changes */
|
|
3
|
+
isDirty: boolean;
|
|
4
|
+
/** Whether the dismissal guard is enabled (defaults to true) */
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
/** Callback fired when dismissal is confirmed or when clean dismissal occurs */
|
|
7
|
+
onDismiss?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UseDismissGuardReturn {
|
|
10
|
+
/** Whether the discard confirmation modal should be shown */
|
|
11
|
+
showConfirm: boolean;
|
|
12
|
+
/** Manually update confirmation modal visibility */
|
|
13
|
+
setShowConfirm: (show: boolean) => void;
|
|
14
|
+
/** Request dismissal - checks isDirty and shows confirm or executes onDismiss */
|
|
15
|
+
requestDismiss: () => void;
|
|
16
|
+
/** Confirm discarding changes and dismiss */
|
|
17
|
+
confirmDismiss: () => void;
|
|
18
|
+
/** Cancel discarding and resume editing */
|
|
19
|
+
cancelDismiss: () => void;
|
|
20
|
+
/** Helper keydown handler intercepting Escape key */
|
|
21
|
+
handleKeyDown: (event: React.KeyboardEvent | KeyboardEvent) => boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook to guard against closing or exiting an editor/dialog with uncommitted changes.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDismissGuard({ isDirty, enabled, onDismiss, }: UseDismissGuardOptions): UseDismissGuardReturn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UseDismissGuardOptions {
|
|
2
|
+
/** Whether there are unsaved changes */
|
|
3
|
+
isDirty: boolean;
|
|
4
|
+
/** Whether the dismissal guard is enabled (defaults to true) */
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
/** Callback fired when dismissal is confirmed or when clean dismissal occurs */
|
|
7
|
+
onDismiss?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UseDismissGuardReturn {
|
|
10
|
+
/** Whether the discard confirmation modal should be shown */
|
|
11
|
+
showConfirm: boolean;
|
|
12
|
+
/** Manually update confirmation modal visibility */
|
|
13
|
+
setShowConfirm: (show: boolean) => void;
|
|
14
|
+
/** Request dismissal - checks isDirty and shows confirm or executes onDismiss */
|
|
15
|
+
requestDismiss: () => void;
|
|
16
|
+
/** Confirm discarding changes and dismiss */
|
|
17
|
+
confirmDismiss: () => void;
|
|
18
|
+
/** Cancel discarding and resume editing */
|
|
19
|
+
cancelDismiss: () => void;
|
|
20
|
+
/** Helper keydown handler intercepting Escape key */
|
|
21
|
+
handleKeyDown: (event: React.KeyboardEvent | KeyboardEvent) => boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook to guard against closing or exiting an editor/dialog with uncommitted changes.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDismissGuard({ isDirty, enabled, onDismiss, }: UseDismissGuardOptions): UseDismissGuardReturn;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { DocxExportController, type DocxExportControllerOptions, type DocxExportReport, type DocxExportState } from "@pixerate/editor/export";
|
|
3
|
+
export interface UseDocxExportResult extends DocxExportState {
|
|
4
|
+
/** Exports the editor (with its comments, tracked changes and styles) and downloads the `.docx`. */
|
|
5
|
+
download: (fileName?: string) => Promise<DocxExportReport | null>;
|
|
6
|
+
/** Builds the `.docx` without downloading it. */
|
|
7
|
+
exportBlob: DocxExportController["exportBlob"];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* "Export to Word": downloads the editor's document as a `.docx` with its
|
|
11
|
+
* comments (from the `Comments` store), tracked changes and paragraph styles.
|
|
12
|
+
* `lastReport` lists anything the export had to leave out.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useDocxExport(editor: Editor | null | undefined, options?: DocxExportControllerOptions): UseDocxExportResult;
|