@pixerate/editor-react 0.158.0 → 0.160.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 +336 -218
- package/dist/animation-editor/index.js +4 -2
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-W7455SH4.js → chunk-65EL63YS.js} +1 -1
- package/dist/{chunk-IDUWADYT.js → chunk-TOYSB4DK.js} +119 -1
- package/dist/effects/EffectTemplates.d.cts +26 -0
- package/dist/effects/EffectTemplates.d.ts +26 -0
- package/dist/effects/index.cjs +121 -2
- package/dist/effects/index.d.cts +1 -0
- package/dist/effects/index.d.ts +1 -0
- package/dist/effects/index.js +3 -1
- package/dist/hooks/usePromptEditor.d.cts +11 -1
- package/dist/hooks/usePromptEditor.d.ts +11 -1
- package/dist/image-editor/index.js +2 -2
- package/dist/index.cjs +1920 -1869
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +197 -147
- package/dist/loading-node/LoadingIndicator.d.cts +13 -0
- package/dist/loading-node/LoadingIndicator.d.ts +13 -0
- package/dist/loading-node/index.d.cts +1 -0
- package/dist/loading-node/index.d.ts +1 -0
- package/dist/paint-editor/index.js +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/index.cjs +401 -283
- package/dist/video-editor/index.js +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LoadingNodeViewMount, LoadingNodeViewState } from '@pixerate/editor';
|
|
3
|
+
export interface LoadingIndicatorProps {
|
|
4
|
+
/** What the editor's `loadingNode` passes (see `LoadingNodeViewState`). */
|
|
5
|
+
state: LoadingNodeViewState;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The `nodeView` for the core `loadingNode`, drawing `component` inside each placeholder in its
|
|
9
|
+
* own React root: `LoadingNode.configure({ nodeView: createReactLoadingNodeView(MyLoader) })`.
|
|
10
|
+
* The placeholder keeps `role="status"` and its `aria-label`, so the component can be decorative.
|
|
11
|
+
* Works with any TipTap editor (it does not need `EditorContent`); app context does not reach it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createReactLoadingNodeView(component: React.ComponentType<LoadingIndicatorProps>): LoadingNodeViewMount;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LoadingNodeViewMount, LoadingNodeViewState } from '@pixerate/editor';
|
|
3
|
+
export interface LoadingIndicatorProps {
|
|
4
|
+
/** What the editor's `loadingNode` passes (see `LoadingNodeViewState`). */
|
|
5
|
+
state: LoadingNodeViewState;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The `nodeView` for the core `loadingNode`, drawing `component` inside each placeholder in its
|
|
9
|
+
* own React root: `LoadingNode.configure({ nodeView: createReactLoadingNodeView(MyLoader) })`.
|
|
10
|
+
* The placeholder keeps `role="status"` and its `aria-label`, so the component can be decorative.
|
|
11
|
+
* Works with any TipTap editor (it does not need `EditorContent`); app context does not reach it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createReactLoadingNodeView(component: React.ComponentType<LoadingIndicatorProps>): LoadingNodeViewMount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoadingIndicator.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoadingIndicator.js';
|