@puckeditor/plugin-pages 0.9.0-canary.52479cfe → 0.9.0-canary.53ee4e95
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/index.css +626 -275
- package/dist/index.d.mts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +2203 -17506
- package/dist/index.mjs +2202 -17502
- package/package.json +10 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import * as _puckeditor_core_dist_actions_Dgllwd_W from '@puckeditor/core/dist/actions-Dgllwd-W';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
type PagePluginOptions = {
|
|
6
|
+
/** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
|
|
5
7
|
host?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
/** Where the site renders pages, without a trailing slash, for "View page" links. Defaults to this origin. */
|
|
9
|
+
siteUrl?: string;
|
|
10
|
+
/** The page to open first. Defaults to the `path` search param. */
|
|
11
|
+
initialPath?: string;
|
|
8
12
|
};
|
|
9
13
|
|
|
10
14
|
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
@@ -13,10 +17,21 @@ declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
|
13
17
|
render: () => react_jsx_runtime.JSX.Element;
|
|
14
18
|
icon: react_jsx_runtime.JSX.Element;
|
|
15
19
|
overrides: {
|
|
16
|
-
headerActions: (
|
|
20
|
+
headerActions: ({ children }: {
|
|
21
|
+
children: react.ReactNode;
|
|
22
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
23
|
preview: ({ children }: {
|
|
18
24
|
children: react.ReactNode;
|
|
19
25
|
}) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
fields: ({ children }: {
|
|
27
|
+
children: react.ReactNode;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
itemSelector?: _puckeditor_core_dist_actions_Dgllwd_W.W | null;
|
|
30
|
+
fields: Partial<Record<string, react.ReactNode>>;
|
|
31
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
outline: ({ children }: {
|
|
33
|
+
children: react.ReactNode;
|
|
34
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
35
|
};
|
|
21
36
|
};
|
|
22
37
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import * as _puckeditor_core_dist_actions_Dgllwd_W from '@puckeditor/core/dist/actions-Dgllwd-W';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
type PagePluginOptions = {
|
|
6
|
+
/** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
|
|
5
7
|
host?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
/** Where the site renders pages, without a trailing slash, for "View page" links. Defaults to this origin. */
|
|
9
|
+
siteUrl?: string;
|
|
10
|
+
/** The page to open first. Defaults to the `path` search param. */
|
|
11
|
+
initialPath?: string;
|
|
8
12
|
};
|
|
9
13
|
|
|
10
14
|
declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
@@ -13,10 +17,21 @@ declare function createPagesPlugin(opts?: PagePluginOptions): {
|
|
|
13
17
|
render: () => react_jsx_runtime.JSX.Element;
|
|
14
18
|
icon: react_jsx_runtime.JSX.Element;
|
|
15
19
|
overrides: {
|
|
16
|
-
headerActions: (
|
|
20
|
+
headerActions: ({ children }: {
|
|
21
|
+
children: react.ReactNode;
|
|
22
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
23
|
preview: ({ children }: {
|
|
18
24
|
children: react.ReactNode;
|
|
19
25
|
}) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
fields: ({ children }: {
|
|
27
|
+
children: react.ReactNode;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
itemSelector?: _puckeditor_core_dist_actions_Dgllwd_W.W | null;
|
|
30
|
+
fields: Partial<Record<string, react.ReactNode>>;
|
|
31
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
outline: ({ children }: {
|
|
33
|
+
children: react.ReactNode;
|
|
34
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
35
|
};
|
|
21
36
|
};
|
|
22
37
|
|