@pixerate/editor-react 0.100.1 → 0.102.0
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/index.cjs +3 -1
- package/dist/animation-editor/index.js +5 -2
- package/dist/animation-editor/useAnimationEditor.d.cts +4 -1
- package/dist/animation-editor/useAnimationEditor.d.ts +4 -1
- package/dist/chart/index.cjs +3 -1
- package/dist/chart/index.js +1 -1
- package/dist/chart/useChartEditor.d.cts +4 -1
- package/dist/chart/useChartEditor.d.ts +4 -1
- package/dist/{chunk-EP6MSQN4.js → chunk-VZ7HBWKL.js} +22 -17
- package/dist/{chunk-GDPWLGPD.js → chunk-ZHMATFBB.js} +5 -2
- package/dist/hooks/useRichTextEditorDocument.d.cts +8 -0
- package/dist/hooks/useRichTextEditorDocument.d.ts +8 -0
- package/dist/index.cjs +649 -634
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +49 -39
- package/dist/parameters/index.cjs +3 -1
- package/dist/parameters/index.js +5 -2
- package/dist/parameters/useParameters.d.cts +4 -1
- package/dist/parameters/useParameters.d.ts +4 -1
- package/dist/spreadsheet/index.cjs +4 -0
- package/dist/spreadsheet/index.js +1 -1
- package/dist/spreadsheet/useSpreadsheetEditor.d.cts +2 -0
- package/dist/spreadsheet/useSpreadsheetEditor.d.ts +2 -0
- package/dist/tokens/index.cjs +3 -1
- package/dist/tokens/index.js +5 -2
- package/dist/tokens/useTokens.d.cts +3 -0
- package/dist/tokens/useTokens.d.ts +3 -0
- package/dist/vector/index.cjs +3 -1
- package/dist/vector/index.js +5 -2
- package/dist/vector/useVectorEditor.d.cts +4 -1
- package/dist/vector/useVectorEditor.d.ts +4 -1
- package/dist/video-editor/index.cjs +3 -1
- package/dist/video-editor/index.js +5 -2
- package/dist/video-editor/useVideoEditor.d.cts +4 -1
- package/dist/video-editor/useVideoEditor.d.ts +4 -1
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions } from '@pixerate/editor/video-editor';
|
|
1
|
+
import { VideoEditorController, type VideoEffectsToolProviderOptions, type VideoEditResult, type VideoEditorOptions, type VideoEditorState, type VideoEditorToolProviderOptions, type VideoProject } from '@pixerate/editor/video-editor';
|
|
2
|
+
import type { EditorDocument } from '@pixerate/editor/persistence';
|
|
2
3
|
import type { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
4
|
/** A `VideoEditorController` created once for the component's lifetime (destroyed on unmount). */
|
|
4
5
|
export declare function useVideoEditorController(options?: VideoEditorOptions): VideoEditorController;
|
|
@@ -6,6 +7,8 @@ export declare function useVideoEditorController(options?: VideoEditorOptions):
|
|
|
6
7
|
export declare function useVideoEditorState(controller: VideoEditorController): VideoEditorState;
|
|
7
8
|
export interface UseVideoEditorResult {
|
|
8
9
|
controller: VideoEditorController;
|
|
10
|
+
/** The save / load / undo contract (for `useEditorAutosave` or `createDocumentToolProvider`). */
|
|
11
|
+
editorDocument: EditorDocument<VideoProject>;
|
|
9
12
|
state: VideoEditorState;
|
|
10
13
|
play: () => void;
|
|
11
14
|
pause: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.102.0",
|
|
4
4
|
"description": "React bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
},
|
|
246
246
|
"peerDependencies": {
|
|
247
247
|
"@dagrejs/dagre": "^1.1.8",
|
|
248
|
-
"@pixerate/editor": ">=0.
|
|
248
|
+
"@pixerate/editor": ">=0.153.0 <1.0.0-0",
|
|
249
249
|
"@tiptap/core": "^2.27.3",
|
|
250
250
|
"@tiptap/pm": "^2.27.3",
|
|
251
251
|
"@tiptap/react": "^2.27.3",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"tsup": "^9.0.0",
|
|
273
273
|
"typescript": "^5.7.3",
|
|
274
274
|
"vitest": "^5.0.5",
|
|
275
|
-
"@pixerate/editor": "0.
|
|
275
|
+
"@pixerate/editor": "0.153.0"
|
|
276
276
|
},
|
|
277
277
|
"scripts": {
|
|
278
278
|
"build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",
|