@particle-academy/fancy-cms-ui 0.0.1-dev.13 → 0.0.1-dev.15
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/chunk-IXPYY4S2.js +93 -0
- package/dist/chunk-IXPYY4S2.js.map +1 -0
- package/dist/editor.cjs +129 -43
- package/dist/editor.cjs.map +1 -1
- package/dist/editor.d.cts +4 -2
- package/dist/editor.d.ts +4 -2
- package/dist/editor.js +94 -15
- package/dist/editor.js.map +1 -1
- package/dist/react.cjs +37 -30
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +12 -4
- package/dist/react.d.ts +12 -4
- package/dist/react.js +2 -2
- package/dist/registry-C3PioMnL.d.ts +27 -0
- package/dist/registry-ni9y0dSw.d.cts +27 -0
- package/package.json +1 -1
- package/dist/chunk-E5AAQX7P.js +0 -86
- package/dist/chunk-E5AAQX7P.js.map +0 -1
- package/dist/registry-Bk7GN1rA.d.cts +0 -19
- package/dist/registry-Dht9JBLU.d.ts +0 -19
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { N as Node, P as PageDoc } from './types-CpfPEq3V.cjs';
|
|
3
|
-
|
|
4
|
-
interface ElementContext {
|
|
5
|
-
node: Node;
|
|
6
|
-
doc: PageDoc;
|
|
7
|
-
/** Pre-rendered child nodes, in order. */
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders the INNER content of a node. The outer `[data-cms]` wrapper is added
|
|
12
|
-
* by {@link RenderNode}, so a renderer only returns what goes inside.
|
|
13
|
-
*/
|
|
14
|
-
type ElementRenderer = (ctx: ElementContext) => ReactNode;
|
|
15
|
-
type ElementRegistry = Record<string, ElementRenderer>;
|
|
16
|
-
/** Built-in native elements. Containers render their children; leaves render content. */
|
|
17
|
-
declare const defaultRegistry: ElementRegistry;
|
|
18
|
-
|
|
19
|
-
export { type ElementContext as E, type ElementRegistry as a, type ElementRenderer as b, defaultRegistry as d };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { N as Node, P as PageDoc } from './types-CpfPEq3V.js';
|
|
3
|
-
|
|
4
|
-
interface ElementContext {
|
|
5
|
-
node: Node;
|
|
6
|
-
doc: PageDoc;
|
|
7
|
-
/** Pre-rendered child nodes, in order. */
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders the INNER content of a node. The outer `[data-cms]` wrapper is added
|
|
12
|
-
* by {@link RenderNode}, so a renderer only returns what goes inside.
|
|
13
|
-
*/
|
|
14
|
-
type ElementRenderer = (ctx: ElementContext) => ReactNode;
|
|
15
|
-
type ElementRegistry = Record<string, ElementRenderer>;
|
|
16
|
-
/** Built-in native elements. Containers render their children; leaves render content. */
|
|
17
|
-
declare const defaultRegistry: ElementRegistry;
|
|
18
|
-
|
|
19
|
-
export { type ElementContext as E, type ElementRegistry as a, type ElementRenderer as b, defaultRegistry as d };
|