@elementor/editor-elements 4.1.0-761 → 4.1.0-763
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.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +7 -7
- package/src/sync/types.ts +4 -1
package/dist/index.d.mts
CHANGED
|
@@ -199,6 +199,7 @@ type V1ElementModelProps = {
|
|
|
199
199
|
editor_settings?: V1ElementEditorSettingsProps;
|
|
200
200
|
interactions?: string | ElementInteractions;
|
|
201
201
|
isGlobal?: boolean;
|
|
202
|
+
skipDefaultChildren?: boolean;
|
|
202
203
|
};
|
|
203
204
|
type V1ElementData = Omit<V1ElementModelProps, 'elements'> & {
|
|
204
205
|
elements?: V1ElementData[];
|
|
@@ -209,7 +210,7 @@ type V1ElementEditorSettingsProps = {
|
|
|
209
210
|
component_uid?: string;
|
|
210
211
|
};
|
|
211
212
|
type V1ElementSettingsProps = Record<string, PropValue>;
|
|
212
|
-
type V1ElementConfig<T = object> = {
|
|
213
|
+
type V1ElementConfig<T = object, TChild = unknown> = {
|
|
213
214
|
icon?: string;
|
|
214
215
|
title: string;
|
|
215
216
|
widgetType?: string;
|
|
@@ -226,6 +227,8 @@ type V1ElementConfig<T = object> = {
|
|
|
226
227
|
atomic_style_states?: ClassState[];
|
|
227
228
|
atomic_pseudo_states?: PseudoState[];
|
|
228
229
|
show_in_panel?: boolean;
|
|
230
|
+
allowed_child_types?: string[];
|
|
231
|
+
default_children?: Array<Record<string, TChild>>;
|
|
229
232
|
meta?: {
|
|
230
233
|
[key: string]: string | number | boolean | null | NonNullable<V1ElementConfig['meta']>;
|
|
231
234
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ type V1ElementModelProps = {
|
|
|
199
199
|
editor_settings?: V1ElementEditorSettingsProps;
|
|
200
200
|
interactions?: string | ElementInteractions;
|
|
201
201
|
isGlobal?: boolean;
|
|
202
|
+
skipDefaultChildren?: boolean;
|
|
202
203
|
};
|
|
203
204
|
type V1ElementData = Omit<V1ElementModelProps, 'elements'> & {
|
|
204
205
|
elements?: V1ElementData[];
|
|
@@ -209,7 +210,7 @@ type V1ElementEditorSettingsProps = {
|
|
|
209
210
|
component_uid?: string;
|
|
210
211
|
};
|
|
211
212
|
type V1ElementSettingsProps = Record<string, PropValue>;
|
|
212
|
-
type V1ElementConfig<T = object> = {
|
|
213
|
+
type V1ElementConfig<T = object, TChild = unknown> = {
|
|
213
214
|
icon?: string;
|
|
214
215
|
title: string;
|
|
215
216
|
widgetType?: string;
|
|
@@ -226,6 +227,8 @@ type V1ElementConfig<T = object> = {
|
|
|
226
227
|
atomic_style_states?: ClassState[];
|
|
227
228
|
atomic_pseudo_states?: PseudoState[];
|
|
228
229
|
show_in_panel?: boolean;
|
|
230
|
+
allowed_child_types?: string[];
|
|
231
|
+
default_children?: Array<Record<string, TChild>>;
|
|
229
232
|
meta?: {
|
|
230
233
|
[key: string]: string | number | boolean | null | NonNullable<V1ElementConfig['meta']>;
|
|
231
234
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-elements",
|
|
3
3
|
"description": "This package contains the elements model for the Elementor editor",
|
|
4
|
-
"version": "4.1.0-
|
|
4
|
+
"version": "4.1.0-763",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elementor/editor-mcp": "4.1.0-
|
|
44
|
-
"@elementor/editor-props": "4.1.0-
|
|
45
|
-
"@elementor/editor-styles": "4.1.0-
|
|
46
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
47
|
-
"@elementor/schema": "4.1.0-
|
|
48
|
-
"@elementor/utils": "4.1.0-
|
|
43
|
+
"@elementor/editor-mcp": "4.1.0-763",
|
|
44
|
+
"@elementor/editor-props": "4.1.0-763",
|
|
45
|
+
"@elementor/editor-styles": "4.1.0-763",
|
|
46
|
+
"@elementor/editor-v1-adapters": "4.1.0-763",
|
|
47
|
+
"@elementor/schema": "4.1.0-763",
|
|
48
|
+
"@elementor/utils": "4.1.0-763",
|
|
49
49
|
"@wordpress/i18n": "^3.1.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
package/src/sync/types.ts
CHANGED
|
@@ -159,6 +159,7 @@ export type V1ElementModelProps = {
|
|
|
159
159
|
editor_settings?: V1ElementEditorSettingsProps;
|
|
160
160
|
interactions?: string | ElementInteractions;
|
|
161
161
|
isGlobal?: boolean;
|
|
162
|
+
skipDefaultChildren?: boolean;
|
|
162
163
|
};
|
|
163
164
|
|
|
164
165
|
export type V1ElementData = Omit< V1ElementModelProps, 'elements' > & {
|
|
@@ -173,7 +174,7 @@ export type V1ElementEditorSettingsProps = {
|
|
|
173
174
|
|
|
174
175
|
export type V1ElementSettingsProps = Record< string, PropValue >;
|
|
175
176
|
|
|
176
|
-
export type V1ElementConfig< T = object > = {
|
|
177
|
+
export type V1ElementConfig< T = object, TChild = unknown > = {
|
|
177
178
|
icon?: string;
|
|
178
179
|
title: string;
|
|
179
180
|
widgetType?: string;
|
|
@@ -190,6 +191,8 @@ export type V1ElementConfig< T = object > = {
|
|
|
190
191
|
atomic_style_states?: ClassState[];
|
|
191
192
|
atomic_pseudo_states?: PseudoState[];
|
|
192
193
|
show_in_panel?: boolean;
|
|
194
|
+
allowed_child_types?: string[];
|
|
195
|
+
default_children?: Array< Record< string, TChild > >;
|
|
193
196
|
meta?: { [ key: string ]: string | number | boolean | null | NonNullable< V1ElementConfig[ 'meta' ] > };
|
|
194
197
|
} & T;
|
|
195
198
|
|