@xwadex/fesd-next 0.3.4-7.21 → 0.3.4-7.23
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/components/content-builders/article4/article4cora/article4cora-roots.d.ts +4 -0
- package/dist/components/content-builders/article4/article4cora/article4cora-roots.js +79 -0
- package/dist/components/content-builders/article4/article4cora/media-base/index.d.ts +2 -0
- package/dist/components/content-builders/article4/article4cora/media-base/index.js +2 -0
- package/dist/components/content-builders/article4/article4cora/media-base/media-base-root.d.ts +15 -0
- package/dist/components/content-builders/article4/article4cora/media-base/media-base-root.js +52 -0
- package/dist/components/content-builders/article4/article4cora/media-cover/index.d.ts +2 -0
- package/dist/components/content-builders/article4/article4cora/media-cover/index.js +2 -0
- package/dist/components/content-builders/article4/article4cora/media-cover/media-cover-root.d.ts +15 -0
- package/dist/components/content-builders/article4/article4cora/media-cover/media-cover-root.js +23 -0
- package/dist/components/content-builders/article4/article4cora/media-embla/index.d.ts +2 -0
- package/dist/components/content-builders/article4/article4cora/media-embla/index.js +2 -0
- package/dist/components/content-builders/article4/article4cora/media-embla/media-embla-root.d.ts +25 -0
- package/dist/components/content-builders/article4/article4cora/media-embla/media-embla-root.js +107 -0
- package/dist/components/content-builders/article4/baseBlock.d.ts +17 -0
- package/dist/components/content-builders/article4/baseBlock.js +115 -0
- package/dist/components/content-builders/article4/commonComponents.d.ts +53 -0
- package/dist/components/content-builders/article4/commonComponents.js +81 -0
- package/dist/components/content-builders/article4/config.d.ts +4 -0
- package/dist/components/content-builders/article4/config.js +6 -0
- package/dist/components/content-builders/article4/index.d.ts +12 -0
- package/dist/components/content-builders/article4/index.js +12 -0
- package/dist/components/content-builders/article4/type10Block.d.ts +14 -0
- package/dist/components/content-builders/article4/type10Block.js +24 -0
- package/dist/components/content-builders/article4/type1Block.d.ts +9 -0
- package/dist/components/content-builders/article4/type1Block.js +12 -0
- package/dist/components/content-builders/article4/type2Block.d.ts +9 -0
- package/dist/components/content-builders/article4/type2Block.js +17 -0
- package/dist/components/content-builders/article4/type3Block.d.ts +8 -0
- package/dist/components/content-builders/article4/type3Block.js +12 -0
- package/dist/components/content-builders/article4/type4Block.d.ts +27 -0
- package/dist/components/content-builders/article4/type4Block.js +53 -0
- package/dist/components/content-builders/article4/type5Block.d.ts +24 -0
- package/dist/components/content-builders/article4/type5Block.js +43 -0
- package/dist/components/content-builders/article4/type6Block.d.ts +24 -0
- package/dist/components/content-builders/article4/type6Block.js +43 -0
- package/dist/components/content-builders/article4/type7Block.d.ts +12 -0
- package/dist/components/content-builders/article4/type7Block.js +19 -0
- package/dist/components/content-builders/article4/type8Block.d.ts +11 -0
- package/dist/components/content-builders/article4/type8Block.js +14 -0
- package/dist/components/content-builders/article4/type9Block.d.ts +11 -0
- package/dist/components/content-builders/article4/type9Block.js +19 -0
- package/dist/components/content-builders/blocks/base-block.d.ts +12 -0
- package/dist/components/content-builders/blocks/base-block.js +91 -0
- package/dist/components/content-builders/blocks/headers-block.d.ts +20 -0
- package/dist/components/content-builders/blocks/headers-block.js +49 -0
- package/dist/components/content-builders/blocks/index.d.ts +4 -0
- package/dist/components/content-builders/blocks/index.js +4 -0
- package/dist/components/content-builders/blocks/media-content.d.ts +7 -0
- package/dist/components/content-builders/blocks/media-content.js +23 -0
- package/dist/components/content-builders/blocks/root-header.d.ts +11 -0
- package/dist/components/content-builders/blocks/root-header.js +14 -0
- package/dist/components/content-builders/blocks/roots.d.ts +8 -0
- package/dist/components/content-builders/blocks/roots.js +23 -0
- package/dist/components/content-builders/blocks/text-content.d.ts +20 -0
- package/dist/components/content-builders/blocks/text-content.js +190 -0
- package/dist/components/content-builders/content-builder-actionbar.d.ts +1 -0
- package/dist/components/content-builders/content-builder-actionbar.js +64 -0
- package/dist/components/content-builders/content-builder-blocks-dialogs.d.ts +4 -0
- package/dist/components/content-builders/content-builder-blocks-dialogs.js +45 -0
- package/dist/components/content-builders/content-builder-blocks.d.ts +15 -0
- package/dist/components/content-builders/content-builder-blocks.js +40 -0
- package/dist/components/content-builders/content-builder-builder.d.ts +13 -0
- package/dist/components/content-builders/content-builder-builder.js +17 -0
- package/dist/components/content-builders/content-builder-configs.d.ts +203 -0
- package/dist/components/content-builders/content-builder-configs.js +125 -0
- package/dist/components/content-builders/content-builder-context.d.ts +24 -0
- package/dist/components/content-builders/content-builder-context.js +47 -0
- package/dist/components/content-builders/content-builder-fields.d.ts +1 -0
- package/dist/components/content-builders/content-builder-fields.js +5 -0
- package/dist/components/content-builders/content-builder-functionbar.d.ts +1 -0
- package/dist/components/content-builders/content-builder-functionbar.js +37 -0
- package/dist/components/content-builders/content-builder-helpers.d.ts +9 -0
- package/dist/components/content-builders/content-builder-helpers.js +43 -0
- package/dist/components/content-builders/content-builder-hooks.d.ts +39 -0
- package/dist/components/content-builders/content-builder-hooks.js +129 -0
- package/dist/components/content-builders/content-builder-iframe.d.ts +5 -0
- package/dist/components/content-builders/content-builder-iframe.js +15 -0
- package/dist/components/content-builders/content-builder-overlay.d.ts +1 -0
- package/dist/components/content-builders/content-builder-overlay.js +22 -0
- package/dist/components/content-builders/content-builder-panels.d.ts +10 -0
- package/dist/components/content-builders/content-builder-panels.js +165 -0
- package/dist/components/content-builders/content-builder-preview.d.ts +4 -0
- package/dist/components/content-builders/content-builder-preview.js +22 -0
- package/dist/components/content-builders/content-builder-pucks-context.d.ts +13 -0
- package/dist/components/content-builders/content-builder-pucks-context.js +17 -0
- package/dist/components/content-builders/content-builder-pucks-hooks.d.ts +17 -0
- package/dist/components/content-builders/content-builder-pucks-hooks.js +119 -0
- package/dist/components/content-builders/content-builder-render.d.ts +6 -0
- package/dist/components/content-builders/content-builder-render.js +6 -0
- package/dist/components/content-builders/content-builder.d.ts +7 -0
- package/dist/components/content-builders/content-builder.js +24 -0
- package/dist/components/content-builders/fields/fields-tabs.d.ts +5 -0
- package/dist/components/content-builders/fields/fields-tabs.js +9 -0
- package/dist/components/content-builders/index.d.ts +5 -0
- package/dist/components/content-builders/index.js +5 -0
- package/dist/components/content-builders/initial-datas.d.ts +56 -0
- package/dist/components/content-builders/initial-datas.js +818 -0
- package/dist/components/emblas/embla-container.d.ts +8 -0
- package/dist/components/emblas/embla-container.js +13 -0
- package/dist/components/emblas/embla-context.d.ts +21 -0
- package/dist/components/emblas/embla-context.js +13 -0
- package/dist/components/emblas/embla.d.ts +20 -0
- package/dist/components/emblas/embla.js +125 -0
- package/dist/components/emblas/emblas-pagination.d.ts +11 -0
- package/dist/components/emblas/emblas-pagination.js +90 -0
- package/dist/components/emblas/index.d.ts +4 -0
- package/dist/components/emblas/index.js +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { Config } from "@puckeditor/core";
|
|
2
|
+
export declare const components: {
|
|
3
|
+
BaseBlock: {
|
|
4
|
+
render: import("@puckeditor/core").PuckComponent<import("@puckeditor/core").DefaultComponentProps>;
|
|
5
|
+
label?: string;
|
|
6
|
+
defaultProps?: import("@puckeditor/core").DefaultComponentProps | undefined;
|
|
7
|
+
fields?: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | undefined;
|
|
8
|
+
permissions?: Partial<import("@puckeditor/core").Permissions>;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
resolveFields?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
11
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
12
|
+
id: string;
|
|
13
|
+
}>;
|
|
14
|
+
fields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
15
|
+
lastFields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
16
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
17
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
18
|
+
appState: import("@puckeditor/core").AppState;
|
|
19
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
20
|
+
}) => import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | Promise<import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>>) | undefined;
|
|
21
|
+
resolveData?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
22
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
23
|
+
id: string;
|
|
24
|
+
}>;
|
|
25
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
26
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
27
|
+
trigger: import("@puckeditor/core").ResolveDataTrigger;
|
|
28
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
29
|
+
}) => (Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
30
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
31
|
+
}) | Promise<Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
32
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
33
|
+
}>) | undefined;
|
|
34
|
+
resolvePermissions?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
35
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
36
|
+
id: string;
|
|
37
|
+
}>;
|
|
38
|
+
lastPermissions: Partial<import("@puckeditor/core").Permissions>;
|
|
39
|
+
permissions: Partial<import("@puckeditor/core").Permissions>;
|
|
40
|
+
appState: import("@puckeditor/core").AppState;
|
|
41
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
42
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
43
|
+
}) => Promise<Partial<import("@puckeditor/core").Permissions>> | Partial<import("@puckeditor/core").Permissions>) | undefined;
|
|
44
|
+
metadata?: import("@puckeditor/core").ComponentMetadata;
|
|
45
|
+
} & import("@puckeditor/core").ComponentConfigExtensions;
|
|
46
|
+
BaseBlockSue: {
|
|
47
|
+
render: import("@puckeditor/core").PuckComponent<import("@puckeditor/core").DefaultComponentProps>;
|
|
48
|
+
label?: string;
|
|
49
|
+
defaultProps?: import("@puckeditor/core").DefaultComponentProps | undefined;
|
|
50
|
+
fields?: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | undefined;
|
|
51
|
+
permissions?: Partial<import("@puckeditor/core").Permissions>;
|
|
52
|
+
inline?: boolean;
|
|
53
|
+
resolveFields?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
54
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
55
|
+
id: string;
|
|
56
|
+
}>;
|
|
57
|
+
fields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
58
|
+
lastFields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
59
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
60
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
61
|
+
appState: import("@puckeditor/core").AppState;
|
|
62
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
63
|
+
}) => import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | Promise<import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>>) | undefined;
|
|
64
|
+
resolveData?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
65
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
66
|
+
id: string;
|
|
67
|
+
}>;
|
|
68
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
69
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
70
|
+
trigger: import("@puckeditor/core").ResolveDataTrigger;
|
|
71
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
72
|
+
}) => (Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
73
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
74
|
+
}) | Promise<Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
75
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
76
|
+
}>) | undefined;
|
|
77
|
+
resolvePermissions?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
78
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
79
|
+
id: string;
|
|
80
|
+
}>;
|
|
81
|
+
lastPermissions: Partial<import("@puckeditor/core").Permissions>;
|
|
82
|
+
permissions: Partial<import("@puckeditor/core").Permissions>;
|
|
83
|
+
appState: import("@puckeditor/core").AppState;
|
|
84
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
85
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
86
|
+
}) => Promise<Partial<import("@puckeditor/core").Permissions>> | Partial<import("@puckeditor/core").Permissions>) | undefined;
|
|
87
|
+
metadata?: import("@puckeditor/core").ComponentMetadata;
|
|
88
|
+
} & import("@puckeditor/core").ComponentConfigExtensions;
|
|
89
|
+
MediaContent: {
|
|
90
|
+
render: import("@puckeditor/core").PuckComponent<import("@puckeditor/core").DefaultComponentProps>;
|
|
91
|
+
label?: string;
|
|
92
|
+
defaultProps?: import("@puckeditor/core").DefaultComponentProps | undefined;
|
|
93
|
+
fields?: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | undefined;
|
|
94
|
+
permissions?: Partial<import("@puckeditor/core").Permissions>;
|
|
95
|
+
inline?: boolean;
|
|
96
|
+
resolveFields?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
97
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
98
|
+
id: string;
|
|
99
|
+
}>;
|
|
100
|
+
fields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
101
|
+
lastFields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
102
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
103
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
104
|
+
appState: import("@puckeditor/core").AppState;
|
|
105
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
106
|
+
}) => import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | Promise<import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>>) | undefined;
|
|
107
|
+
resolveData?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
108
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
109
|
+
id: string;
|
|
110
|
+
}>;
|
|
111
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
112
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
113
|
+
trigger: import("@puckeditor/core").ResolveDataTrigger;
|
|
114
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
115
|
+
}) => (Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
116
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
117
|
+
}) | Promise<Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
118
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
119
|
+
}>) | undefined;
|
|
120
|
+
resolvePermissions?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
121
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
122
|
+
id: string;
|
|
123
|
+
}>;
|
|
124
|
+
lastPermissions: Partial<import("@puckeditor/core").Permissions>;
|
|
125
|
+
permissions: Partial<import("@puckeditor/core").Permissions>;
|
|
126
|
+
appState: import("@puckeditor/core").AppState;
|
|
127
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
128
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
129
|
+
}) => Promise<Partial<import("@puckeditor/core").Permissions>> | Partial<import("@puckeditor/core").Permissions>) | undefined;
|
|
130
|
+
metadata?: import("@puckeditor/core").ComponentMetadata;
|
|
131
|
+
} & import("@puckeditor/core").ComponentConfigExtensions;
|
|
132
|
+
TextContent: {
|
|
133
|
+
render: import("@puckeditor/core").PuckComponent<import("@puckeditor/core").DefaultComponentProps>;
|
|
134
|
+
label?: string;
|
|
135
|
+
defaultProps?: import("@puckeditor/core").DefaultComponentProps | undefined;
|
|
136
|
+
fields?: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | undefined;
|
|
137
|
+
permissions?: Partial<import("@puckeditor/core").Permissions>;
|
|
138
|
+
inline?: boolean;
|
|
139
|
+
resolveFields?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
140
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
141
|
+
id: string;
|
|
142
|
+
}>;
|
|
143
|
+
fields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
144
|
+
lastFields: import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>;
|
|
145
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
146
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
147
|
+
appState: import("@puckeditor/core").AppState;
|
|
148
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
149
|
+
}) => import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}> | Promise<import("@puckeditor/core").Fields<import("@puckeditor/core").DefaultComponentProps, {}>>) | undefined;
|
|
150
|
+
resolveData?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
151
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
152
|
+
id: string;
|
|
153
|
+
}>;
|
|
154
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
155
|
+
metadata: import("@puckeditor/core").ComponentMetadata;
|
|
156
|
+
trigger: import("@puckeditor/core").ResolveDataTrigger;
|
|
157
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
158
|
+
}) => (Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
159
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
160
|
+
}) | Promise<Omit<Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, "props"> & {
|
|
161
|
+
props?: Partial<import("@puckeditor/core").DefaultComponentProps> | undefined;
|
|
162
|
+
}>) | undefined;
|
|
163
|
+
resolvePermissions?: ((data: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type">, params: {
|
|
164
|
+
changed: Partial<Record<string | number, boolean> & {
|
|
165
|
+
id: string;
|
|
166
|
+
}>;
|
|
167
|
+
lastPermissions: Partial<import("@puckeditor/core").Permissions>;
|
|
168
|
+
permissions: Partial<import("@puckeditor/core").Permissions>;
|
|
169
|
+
appState: import("@puckeditor/core").AppState;
|
|
170
|
+
lastData: Omit<import("@puckeditor/core").ComponentData<import("@puckeditor/core").DefaultComponentProps, string, Record<string, import("@puckeditor/core").DefaultComponentProps>>, "type"> | null;
|
|
171
|
+
parent: import("@puckeditor/core").ComponentData | null;
|
|
172
|
+
}) => Promise<Partial<import("@puckeditor/core").Permissions>> | Partial<import("@puckeditor/core").Permissions>) | undefined;
|
|
173
|
+
metadata?: import("@puckeditor/core").ComponentMetadata;
|
|
174
|
+
} & import("@puckeditor/core").ComponentConfigExtensions;
|
|
175
|
+
};
|
|
176
|
+
export declare const categories: {
|
|
177
|
+
base: {
|
|
178
|
+
title: string;
|
|
179
|
+
components: string[];
|
|
180
|
+
};
|
|
181
|
+
base2: {
|
|
182
|
+
title: string;
|
|
183
|
+
components: string[];
|
|
184
|
+
};
|
|
185
|
+
base3: {
|
|
186
|
+
title: string;
|
|
187
|
+
components: string[];
|
|
188
|
+
};
|
|
189
|
+
other: {
|
|
190
|
+
visible: boolean;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export declare const builderConfigs: Config;
|
|
194
|
+
export declare const builderOverrides: {
|
|
195
|
+
iframe: import("react").MemoExoticComponent<({ document, children }: import("./content-builder-iframe").BuilderIframeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
196
|
+
actionBar: import("react").MemoExoticComponent<({ children, label }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
197
|
+
componentOverlay: import("react").MemoExoticComponent<({ children, componentType, isSelected }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
198
|
+
};
|
|
199
|
+
export declare const renderConfigs: Config;
|
|
200
|
+
export declare const blacksConfigs: Config;
|
|
201
|
+
export declare const blacksOverrides: {
|
|
202
|
+
iframe: import("react").MemoExoticComponent<({ document, children }: import("./content-builder-iframe").BuilderIframeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
203
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { BuilderActionBar } from "./content-builder-actionbar";
|
|
3
|
+
import { BuilderIframe } from "./content-builder-iframe";
|
|
4
|
+
import { BuilderComponentOverlay } from "./content-builder-overlay";
|
|
5
|
+
import { BuilderBlocksRootsConfigs } from "./content-builder-blocks";
|
|
6
|
+
import { BuilderRootsConfigs, } from "./blocks";
|
|
7
|
+
import { BaseBlockConfigs } from "./blocks/base-block";
|
|
8
|
+
import { MediaContentConfigs } from "./blocks/media-content";
|
|
9
|
+
import { TextContentConfigs } from "./blocks/text-content";
|
|
10
|
+
import { BaseBlockSueConfigs } from "./article4/baseBlock";
|
|
11
|
+
export const components = {
|
|
12
|
+
BaseBlock: BaseBlockConfigs,
|
|
13
|
+
BaseBlockSue: BaseBlockSueConfigs,
|
|
14
|
+
MediaContent: MediaContentConfigs,
|
|
15
|
+
TextContent: TextContentConfigs,
|
|
16
|
+
};
|
|
17
|
+
export const categories = {
|
|
18
|
+
base: {
|
|
19
|
+
title: "Base",
|
|
20
|
+
components: [
|
|
21
|
+
"BaseBlock",
|
|
22
|
+
"BaseBlock",
|
|
23
|
+
"BaseBlock",
|
|
24
|
+
"BaseBlock",
|
|
25
|
+
"BaseBlock",
|
|
26
|
+
"BaseBlock",
|
|
27
|
+
"BaseBlock",
|
|
28
|
+
"BaseBlock",
|
|
29
|
+
"BaseBlock",
|
|
30
|
+
"BaseBlock",
|
|
31
|
+
"BaseBlock",
|
|
32
|
+
"BaseBlock",
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
base2: {
|
|
36
|
+
title: "Base2",
|
|
37
|
+
components: [
|
|
38
|
+
"BaseBlock",
|
|
39
|
+
"BaseBlockSue",
|
|
40
|
+
"BaseBlock",
|
|
41
|
+
"BaseBlock",
|
|
42
|
+
"BaseBlock",
|
|
43
|
+
"BaseBlock",
|
|
44
|
+
"BaseBlock",
|
|
45
|
+
"BaseBlock",
|
|
46
|
+
"BaseBlock",
|
|
47
|
+
"BaseBlock",
|
|
48
|
+
"BaseBlock",
|
|
49
|
+
"BaseBlock",
|
|
50
|
+
"BaseBlock",
|
|
51
|
+
"BaseBlock",
|
|
52
|
+
"BaseBlock",
|
|
53
|
+
"BaseBlock",
|
|
54
|
+
"BaseBlock",
|
|
55
|
+
"BaseBlock",
|
|
56
|
+
"BaseBlock",
|
|
57
|
+
"BaseBlock",
|
|
58
|
+
"BaseBlock",
|
|
59
|
+
"BaseBlock",
|
|
60
|
+
"BaseBlock",
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
base3: {
|
|
64
|
+
title: "Base3",
|
|
65
|
+
components: [
|
|
66
|
+
"BaseBlock",
|
|
67
|
+
"BaseBlock",
|
|
68
|
+
"BaseBlock",
|
|
69
|
+
"BaseBlock",
|
|
70
|
+
"BaseBlock",
|
|
71
|
+
"BaseBlock",
|
|
72
|
+
"BaseBlock",
|
|
73
|
+
"BaseBlock",
|
|
74
|
+
"BaseBlock",
|
|
75
|
+
"BaseBlock",
|
|
76
|
+
"BaseBlock",
|
|
77
|
+
"BaseBlock",
|
|
78
|
+
"BaseBlock",
|
|
79
|
+
"BaseBlock",
|
|
80
|
+
"BaseBlock",
|
|
81
|
+
"BaseBlock",
|
|
82
|
+
"BaseBlock",
|
|
83
|
+
"BaseBlock",
|
|
84
|
+
"BaseBlock",
|
|
85
|
+
"BaseBlock",
|
|
86
|
+
"BaseBlock",
|
|
87
|
+
"BaseBlock",
|
|
88
|
+
"BaseBlock",
|
|
89
|
+
"BaseBlock",
|
|
90
|
+
"BaseBlock",
|
|
91
|
+
"BaseBlock",
|
|
92
|
+
"BaseBlock",
|
|
93
|
+
"BaseBlock",
|
|
94
|
+
"BaseBlock",
|
|
95
|
+
"BaseBlock",
|
|
96
|
+
"BaseBlock",
|
|
97
|
+
"BaseBlock",
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
other: {
|
|
101
|
+
visible: false,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
export const builderConfigs = {
|
|
105
|
+
root: BuilderRootsConfigs,
|
|
106
|
+
components,
|
|
107
|
+
categories
|
|
108
|
+
};
|
|
109
|
+
export const builderOverrides = {
|
|
110
|
+
iframe: BuilderIframe,
|
|
111
|
+
actionBar: BuilderActionBar,
|
|
112
|
+
componentOverlay: BuilderComponentOverlay
|
|
113
|
+
};
|
|
114
|
+
export const renderConfigs = {
|
|
115
|
+
root: BuilderRootsConfigs,
|
|
116
|
+
components,
|
|
117
|
+
};
|
|
118
|
+
export const blacksConfigs = {
|
|
119
|
+
root: BuilderBlocksRootsConfigs,
|
|
120
|
+
components,
|
|
121
|
+
categories
|
|
122
|
+
};
|
|
123
|
+
export const blacksOverrides = {
|
|
124
|
+
iframe: BuilderIframe,
|
|
125
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ContentBuilderProps } from "./content-builder";
|
|
2
|
+
import type { BlocksViews, BuildersPanels, BuildersViewport } from "./content-builder-hooks";
|
|
3
|
+
import type { Config } from "@puckeditor/core";
|
|
4
|
+
export interface BuilderContextValue {
|
|
5
|
+
config: Config;
|
|
6
|
+
builderProps: ContentBuilderProps;
|
|
7
|
+
builderRef?: React.RefObject<HTMLDivElement | null>;
|
|
8
|
+
blocksViews: BlocksViews;
|
|
9
|
+
viewport: BuildersViewport;
|
|
10
|
+
panels: BuildersPanels;
|
|
11
|
+
selectBuilderBlocks: () => Promise<string | boolean>;
|
|
12
|
+
setBuilderViewport: (viewport: BuildersViewport) => void;
|
|
13
|
+
setBuilderBlockView: React.Dispatch<React.SetStateAction<BlocksViews>>;
|
|
14
|
+
setBuilderPanels: React.Dispatch<React.SetStateAction<BuildersPanels>>;
|
|
15
|
+
setBuilderPanelsActive: (id: string, active?: boolean) => void;
|
|
16
|
+
setBuilderDragging: (state: boolean) => void;
|
|
17
|
+
setBuilderNewBlocks: (block: string | boolean) => void;
|
|
18
|
+
saveBuilderData: (data: any) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface BuilderContextProps extends ContentBuilderProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const BuilderContextProviders: ({ children, ...builderProps }: BuilderContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const useBuilderContext: () => BuilderContextValue;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, use, useMemo } from "react";
|
|
4
|
+
import { useBuilder, } from "./content-builder-hooks";
|
|
5
|
+
const BuilderContext = createContext(null);
|
|
6
|
+
export const BuilderContextProviders = ({ children, ...builderProps }) => {
|
|
7
|
+
const { config, builderRef, viewport, blocksViews, panels, setBuilderBlockView, selectBuilderBlocks, setBuilderPanels, setBuilderPanelsActive, setBuilderViewport, setBuilderDragging, setBuilderNewBlocks, saveBuilderData, } = useBuilder({
|
|
8
|
+
builderProps
|
|
9
|
+
});
|
|
10
|
+
const contextValue = useMemo(() => ({
|
|
11
|
+
config,
|
|
12
|
+
builderProps,
|
|
13
|
+
builderRef,
|
|
14
|
+
viewport,
|
|
15
|
+
blocksViews,
|
|
16
|
+
panels,
|
|
17
|
+
setBuilderBlockView,
|
|
18
|
+
selectBuilderBlocks,
|
|
19
|
+
setBuilderPanels,
|
|
20
|
+
setBuilderPanelsActive,
|
|
21
|
+
setBuilderViewport,
|
|
22
|
+
setBuilderDragging,
|
|
23
|
+
setBuilderNewBlocks,
|
|
24
|
+
saveBuilderData,
|
|
25
|
+
}), [
|
|
26
|
+
builderProps,
|
|
27
|
+
builderRef,
|
|
28
|
+
viewport,
|
|
29
|
+
blocksViews,
|
|
30
|
+
panels,
|
|
31
|
+
setBuilderBlockView,
|
|
32
|
+
selectBuilderBlocks,
|
|
33
|
+
setBuilderPanels,
|
|
34
|
+
setBuilderPanelsActive,
|
|
35
|
+
setBuilderViewport,
|
|
36
|
+
setBuilderDragging,
|
|
37
|
+
setBuilderNewBlocks,
|
|
38
|
+
saveBuilderData,
|
|
39
|
+
]);
|
|
40
|
+
return _jsx(BuilderContext, { value: contextValue, children: children });
|
|
41
|
+
};
|
|
42
|
+
export const useBuilderContext = () => {
|
|
43
|
+
const context = use(BuilderContext);
|
|
44
|
+
if (!context)
|
|
45
|
+
throw new Error("BuilderContext must be used inside BuilderContextProviders");
|
|
46
|
+
return context;
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BuilderFields: import("react").MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BuilderFunctionBar: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Expand, Eye, LaptopMinimal, Maximize, Minus, Monitor, Plus, Shrink, Smartphone, Tablet } from "lucide-react";
|
|
4
|
+
import { useBuilderContext } from "./content-builder-context";
|
|
5
|
+
import { useBuilderPucksContext } from "./content-builder-pucks-context";
|
|
6
|
+
import { usePuckPreviewMode } from "./content-builder-pucks-hooks";
|
|
7
|
+
import { cn } from "../../shadcns/index.js";
|
|
8
|
+
export const BuilderFunctionBar = () => {
|
|
9
|
+
const { blocksViews, builderRef, viewport, setBuilderViewport } = useBuilderContext();
|
|
10
|
+
const { insterBlock, setPreviewMode } = useBuilderPucksContext();
|
|
11
|
+
const previewMode = usePuckPreviewMode();
|
|
12
|
+
// const resizeScaleBuilder = () => {
|
|
13
|
+
// if (!builderRef?.current) return
|
|
14
|
+
// const { width } = builderRef?.current.getBoundingClientRect()
|
|
15
|
+
// const scale = Math.min(1, width / 1920)
|
|
16
|
+
// if (width <= 1920) {
|
|
17
|
+
// console.log("builderRef", width, scale);
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
// useEffect(() => {
|
|
21
|
+
// if (!builderRef?.current) return
|
|
22
|
+
// window.addEventListener("resize", resizeScaleBuilder)
|
|
23
|
+
// return () => window.removeEventListener("resize", resizeScaleBuilder)
|
|
24
|
+
// }, [builderRef?.current])
|
|
25
|
+
return (_jsxs("div", { className: cn("text-black", "absolute", "w-full", "h-10", "flex", "justify-between", "items-center", "gap-5", "px-5", "**: select-none"), style: { display: "flex", gap: 8 }, children: [_jsx("div", { className: "flex-1 flex", children: _jsxs("button", { className: cn("cursor-pointer flex flex-rows gap-1 items-center font-semibold text-md"), onClick: () => {
|
|
26
|
+
if (previewMode == "interactive")
|
|
27
|
+
return;
|
|
28
|
+
insterBlock();
|
|
29
|
+
}, children: [_jsx(Plus, { size: 18 }), _jsxs("div", { children: ["Add Block, ", JSON.stringify(blocksViews)] })] }) }), _jsxs("div", { className: "flex-1 flex gap-5 justify-center", children: [_jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({ view: "360" }), children: _jsx(Smartphone, { size: 15, strokeWidth: 2.5 }) }), _jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({ view: "768" }), children: _jsx(Tablet, { size: 15, strokeWidth: 2.5 }) }), _jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({ view: "1400" }), children: _jsx(LaptopMinimal, { size: 17, strokeWidth: 2.2 }) }), _jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({ view: "1920" }), children: _jsx(Monitor, { size: 16, strokeWidth: 2.2 }) }), _jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({ view: "screen", zoom: 1 }), children: _jsx(Maximize, { size: 16, strokeWidth: 2.6 }) }), _jsx("button", { className: "cursor-pointer", onClick: () => setBuilderViewport({
|
|
30
|
+
view: viewport.view == "fullscreen" ? "screen" : "fullscreen",
|
|
31
|
+
zoom: 1
|
|
32
|
+
}), children: viewport.view == "fullscreen"
|
|
33
|
+
? _jsx(Shrink, { size: 15, strokeWidth: 1.7 })
|
|
34
|
+
: _jsx(Expand, { size: 15, strokeWidth: 1.7 }) }), _jsxs("div", { className: "flex gap-2 justify-center items-center", children: [_jsx("button", { onClick: () => setBuilderViewport({ zoom: Math.max(0.5, (viewport?.zoom ?? 1) - 0.1) }), children: _jsx(Minus, { size: 15, strokeWidth: 1.7 }) }), _jsx("button", { onClick: () => setBuilderViewport({ zoom: Math.min(1, (viewport?.zoom ?? 1) + 0.1) }), children: _jsx(Plus, { size: 15, strokeWidth: 1.7 }) }), _jsx("button", { className: "font-semibold text-xs", onClick: () => setBuilderViewport({ zoom: 1 }), children: `${Math.floor((viewport?.zoom ?? 1) * 100)}%` })] })] }), _jsx("div", { className: "flex-1 flex justify-end", children: _jsxs("button", { className: "cursor-pointer flex flex-rows gap-1 items-center font-semibold text-md", onClick: () => {
|
|
35
|
+
setPreviewMode(previewMode == "edit" ? "interactive" : "edit");
|
|
36
|
+
}, children: [_jsx("div", { children: previewMode == "edit" ? "Builder Mode" : "Preview Mode" }), _jsx(Eye, { size: 18 })] }) })] }));
|
|
37
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function scrollToBlock(id: string): void;
|
|
2
|
+
export declare function createComponentId(type: string): string;
|
|
3
|
+
export declare const getSlotsKey: (zone?: string) => {
|
|
4
|
+
parentId?: undefined;
|
|
5
|
+
slotName?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
parentId: string;
|
|
8
|
+
slotName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export function scrollToBlock(id) {
|
|
3
|
+
const iframe = document.querySelector(`#preview-frame`);
|
|
4
|
+
if (!iframe)
|
|
5
|
+
return;
|
|
6
|
+
const iframeBody = (iframe.contentDocument)?.body;
|
|
7
|
+
const el = iframeBody?.querySelector(`[data-puck-component="${id}"]`);
|
|
8
|
+
el?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
9
|
+
}
|
|
10
|
+
export function createComponentId(type) {
|
|
11
|
+
const now = new Date();
|
|
12
|
+
const date = now.getFullYear().toString() +
|
|
13
|
+
String(now.getMonth() + 1).padStart(2, "0") +
|
|
14
|
+
String(now.getDate()).padStart(2, "0");
|
|
15
|
+
const time = String(now.getHours()).padStart(2, "0") +
|
|
16
|
+
String(now.getMinutes()).padStart(2, "0") +
|
|
17
|
+
String(now.getSeconds()).padStart(2, "0");
|
|
18
|
+
const random = Math.random().toString(36).slice(2, 8);
|
|
19
|
+
return `${type}-${date}-${time}-${random}`;
|
|
20
|
+
}
|
|
21
|
+
// export function createSlotsId(props: any) {
|
|
22
|
+
// if (!props) return
|
|
23
|
+
// for (const [key, value] of Object.entries(props)) {
|
|
24
|
+
// if (key.startsWith("slot") && Array.isArray(value))
|
|
25
|
+
// value.forEach((item) => {
|
|
26
|
+
// if (!item?.type || !item?.props) return
|
|
27
|
+
// item.props["id"] = createComponentId(item.type)
|
|
28
|
+
// createSlotsId(item.props)
|
|
29
|
+
// })
|
|
30
|
+
// }
|
|
31
|
+
// }
|
|
32
|
+
// export function createComponentProps(config: any) {
|
|
33
|
+
// const { defaultProps: props, label } = config
|
|
34
|
+
// props["id"] = createComponentId(label)
|
|
35
|
+
// createSlotsId(props)
|
|
36
|
+
// return { type: label, props }
|
|
37
|
+
// }
|
|
38
|
+
export const getSlotsKey = (zone) => {
|
|
39
|
+
if (!zone)
|
|
40
|
+
return {};
|
|
41
|
+
const [parentId, slotName] = zone.split(":");
|
|
42
|
+
return { parentId, slotName };
|
|
43
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ContentBuilderProps } from "./content-builder";
|
|
2
|
+
export interface BlocksViews {
|
|
3
|
+
active: boolean;
|
|
4
|
+
callback?: (value: string | boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface BuildersViewport {
|
|
7
|
+
view?: "360" | "768" | "1400" | "1920" | "screen" | "fullscreen";
|
|
8
|
+
zoom?: number;
|
|
9
|
+
}
|
|
10
|
+
export type BuildersPanels = Record<string, {
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
z?: number;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export interface useBuilderOptions {
|
|
17
|
+
builderProps: ContentBuilderProps;
|
|
18
|
+
}
|
|
19
|
+
export declare function useBuilder({ builderProps }: useBuilderOptions): {
|
|
20
|
+
config: import("@puckeditor/core").Config;
|
|
21
|
+
builderRef: import("react").RefObject<HTMLDivElement | null>;
|
|
22
|
+
viewport: BuildersViewport;
|
|
23
|
+
blocksViews: BlocksViews;
|
|
24
|
+
panels: BuildersPanels;
|
|
25
|
+
selectBuilderBlocks: () => Promise<string | boolean>;
|
|
26
|
+
setBuilderBlockView: import("react").Dispatch<import("react").SetStateAction<BlocksViews>>;
|
|
27
|
+
setBuilderPanels: import("react").Dispatch<import("react").SetStateAction<BuildersPanels>>;
|
|
28
|
+
setBuilderPanelsActive: (id: string, active?: boolean) => void;
|
|
29
|
+
setBuilderViewport: (viewport: BuildersViewport) => void;
|
|
30
|
+
setBuilderDragging: (state: boolean) => void;
|
|
31
|
+
setBuilderNewBlocks: (block: string | boolean) => void;
|
|
32
|
+
saveBuilderData: (data: any) => void;
|
|
33
|
+
};
|
|
34
|
+
export interface IframeHooksOptions {
|
|
35
|
+
iframeDocument?: Document;
|
|
36
|
+
callback?: (iframe?: Document) => void;
|
|
37
|
+
isPreviewKeyDown?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const useBuilderIframe: ({ iframeDocument, callback, isPreviewKeyDown, }: IframeHooksOptions) => void;
|