@elementor/editor-canvas 4.1.0-823 → 4.1.0-824
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 +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +5 -0
- package/dist/index.mjs +4 -0
- package/package.json +18 -18
- package/src/index.ts +1 -0
- package/src/sync/global-styles-imported-event.ts +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { TwingArrayLoader, TwingEnvironment } from '@elementor/twing';
|
|
|
3
3
|
import { Root } from 'react-dom/client';
|
|
4
4
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
5
5
|
import { Props, PropValue, PropType, PropTypeKey, PropsSchema, AnyTransformable } from '@elementor/editor-props';
|
|
6
|
+
import { StyleVariables, StyleDefinitionsMap, StyleDefinitionID, StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
7
|
import * as _elementor_utils from '@elementor/utils';
|
|
7
|
-
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
8
8
|
|
|
9
9
|
declare const BREAKPOINTS_SCHEMA_URI = "elementor://breakpoints/list";
|
|
10
10
|
|
|
@@ -313,6 +313,17 @@ declare const styleTransformersRegistry: {
|
|
|
313
313
|
declare const endDragElementFromPanel: () => void;
|
|
314
314
|
declare const startDragElementFromPanel: (props: Omit<V1ElementModelProps, "id">, event: React.DragEvent) => void;
|
|
315
315
|
|
|
316
|
+
declare const GLOBAL_STYLES_IMPORTED_EVENT = "elementor/global-styles/imported";
|
|
317
|
+
type ImportedGlobalStylesPayload = {
|
|
318
|
+
global_variables?: {
|
|
319
|
+
data: StyleVariables;
|
|
320
|
+
};
|
|
321
|
+
global_classes?: {
|
|
322
|
+
items: StyleDefinitionsMap;
|
|
323
|
+
order: StyleDefinitionID[];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
316
327
|
declare const DOCUMENT_STRUCTURE_URI = "elementor://document/structure";
|
|
317
328
|
|
|
318
329
|
declare function createTransformer<TValue = never>(cb: TValue extends AnyTransformable ? 'Transformable values are invalid, use the actual value instead.' : UnbrandedTransformer<TValue>): Transformer<NoInfer<TValue>>;
|
|
@@ -352,4 +363,4 @@ declare const UnknownStyleStateError: {
|
|
|
352
363
|
|
|
353
364
|
declare function doAfterRender(elementIds: string[], callback: (elementIds: string[]) => void): void;
|
|
354
365
|
|
|
355
|
-
export { type AnyTransformer, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, DOCUMENT_STRUCTURE_URI, type ElementModel, ElementType, ElementView, type LegacyWindow, type NamespacedRenderContext, type NestedTemplatedElementConfig, type PropsResolver, type RenderContext, type ReplacementSettings, STYLE_SCHEMA_URI, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_URI, canBeNestedTemplated, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, init, isAtomicWidget, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry };
|
|
366
|
+
export { type AnyTransformer, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, DOCUMENT_STRUCTURE_URI, type ElementModel, ElementType, ElementView, GLOBAL_STYLES_IMPORTED_EVENT, type ImportedGlobalStylesPayload, type LegacyWindow, type NamespacedRenderContext, type NestedTemplatedElementConfig, type PropsResolver, type RenderContext, type ReplacementSettings, STYLE_SCHEMA_URI, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_URI, canBeNestedTemplated, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, init, isAtomicWidget, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { TwingArrayLoader, TwingEnvironment } from '@elementor/twing';
|
|
|
3
3
|
import { Root } from 'react-dom/client';
|
|
4
4
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
5
5
|
import { Props, PropValue, PropType, PropTypeKey, PropsSchema, AnyTransformable } from '@elementor/editor-props';
|
|
6
|
+
import { StyleVariables, StyleDefinitionsMap, StyleDefinitionID, StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
7
|
import * as _elementor_utils from '@elementor/utils';
|
|
7
|
-
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
8
8
|
|
|
9
9
|
declare const BREAKPOINTS_SCHEMA_URI = "elementor://breakpoints/list";
|
|
10
10
|
|
|
@@ -313,6 +313,17 @@ declare const styleTransformersRegistry: {
|
|
|
313
313
|
declare const endDragElementFromPanel: () => void;
|
|
314
314
|
declare const startDragElementFromPanel: (props: Omit<V1ElementModelProps, "id">, event: React.DragEvent) => void;
|
|
315
315
|
|
|
316
|
+
declare const GLOBAL_STYLES_IMPORTED_EVENT = "elementor/global-styles/imported";
|
|
317
|
+
type ImportedGlobalStylesPayload = {
|
|
318
|
+
global_variables?: {
|
|
319
|
+
data: StyleVariables;
|
|
320
|
+
};
|
|
321
|
+
global_classes?: {
|
|
322
|
+
items: StyleDefinitionsMap;
|
|
323
|
+
order: StyleDefinitionID[];
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
316
327
|
declare const DOCUMENT_STRUCTURE_URI = "elementor://document/structure";
|
|
317
328
|
|
|
318
329
|
declare function createTransformer<TValue = never>(cb: TValue extends AnyTransformable ? 'Transformable values are invalid, use the actual value instead.' : UnbrandedTransformer<TValue>): Transformer<NoInfer<TValue>>;
|
|
@@ -352,4 +363,4 @@ declare const UnknownStyleStateError: {
|
|
|
352
363
|
|
|
353
364
|
declare function doAfterRender(elementIds: string[], callback: (elementIds: string[]) => void): void;
|
|
354
365
|
|
|
355
|
-
export { type AnyTransformer, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, DOCUMENT_STRUCTURE_URI, type ElementModel, ElementType, ElementView, type LegacyWindow, type NamespacedRenderContext, type NestedTemplatedElementConfig, type PropsResolver, type RenderContext, type ReplacementSettings, STYLE_SCHEMA_URI, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_URI, canBeNestedTemplated, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, init, isAtomicWidget, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry };
|
|
366
|
+
export { type AnyTransformer, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, DOCUMENT_STRUCTURE_URI, type ElementModel, ElementType, ElementView, GLOBAL_STYLES_IMPORTED_EVENT, type ImportedGlobalStylesPayload, type LegacyWindow, type NamespacedRenderContext, type NestedTemplatedElementConfig, type PropsResolver, type RenderContext, type ReplacementSettings, STYLE_SCHEMA_URI, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_URI, canBeNestedTemplated, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, init, isAtomicWidget, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry };
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
BREAKPOINTS_SCHEMA_URI: () => BREAKPOINTS_SCHEMA_URI,
|
|
34
34
|
DOCUMENT_STRUCTURE_URI: () => DOCUMENT_STRUCTURE_URI,
|
|
35
|
+
GLOBAL_STYLES_IMPORTED_EVENT: () => GLOBAL_STYLES_IMPORTED_EVENT,
|
|
35
36
|
STYLE_SCHEMA_URI: () => STYLE_SCHEMA_URI,
|
|
36
37
|
UnknownStyleStateError: () => UnknownStyleStateError,
|
|
37
38
|
UnknownStyleTypeError: () => UnknownStyleTypeError,
|
|
@@ -5511,6 +5512,9 @@ var getLegacyPanelElementView = ({ settings, ...rest }) => {
|
|
|
5511
5512
|
return { model: elementModel };
|
|
5512
5513
|
};
|
|
5513
5514
|
|
|
5515
|
+
// src/sync/global-styles-imported-event.ts
|
|
5516
|
+
var GLOBAL_STYLES_IMPORTED_EVENT = "elementor/global-styles/imported";
|
|
5517
|
+
|
|
5514
5518
|
// src/utils/after-render.ts
|
|
5515
5519
|
var import_editor_elements22 = require("@elementor/editor-elements");
|
|
5516
5520
|
function doAfterRender(elementIds, callback) {
|
|
@@ -5534,6 +5538,7 @@ function hasDoAfterRender(view) {
|
|
|
5534
5538
|
0 && (module.exports = {
|
|
5535
5539
|
BREAKPOINTS_SCHEMA_URI,
|
|
5536
5540
|
DOCUMENT_STRUCTURE_URI,
|
|
5541
|
+
GLOBAL_STYLES_IMPORTED_EVENT,
|
|
5537
5542
|
STYLE_SCHEMA_URI,
|
|
5538
5543
|
UnknownStyleStateError,
|
|
5539
5544
|
UnknownStyleTypeError,
|
package/dist/index.mjs
CHANGED
|
@@ -5523,6 +5523,9 @@ var getLegacyPanelElementView = ({ settings, ...rest }) => {
|
|
|
5523
5523
|
return { model: elementModel };
|
|
5524
5524
|
};
|
|
5525
5525
|
|
|
5526
|
+
// src/sync/global-styles-imported-event.ts
|
|
5527
|
+
var GLOBAL_STYLES_IMPORTED_EVENT = "elementor/global-styles/imported";
|
|
5528
|
+
|
|
5526
5529
|
// src/utils/after-render.ts
|
|
5527
5530
|
import { getContainer as getContainer8 } from "@elementor/editor-elements";
|
|
5528
5531
|
function doAfterRender(elementIds, callback) {
|
|
@@ -5545,6 +5548,7 @@ function hasDoAfterRender(view) {
|
|
|
5545
5548
|
export {
|
|
5546
5549
|
BREAKPOINTS_SCHEMA_URI,
|
|
5547
5550
|
DOCUMENT_STRUCTURE_URI,
|
|
5551
|
+
GLOBAL_STYLES_IMPORTED_EVENT,
|
|
5548
5552
|
STYLE_SCHEMA_URI,
|
|
5549
5553
|
UnknownStyleStateError,
|
|
5550
5554
|
UnknownStyleTypeError,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-canvas",
|
|
3
3
|
"description": "Elementor Editor Canvas",
|
|
4
|
-
"version": "4.1.0-
|
|
4
|
+
"version": "4.1.0-824",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.1.0-
|
|
40
|
+
"@elementor/editor": "4.1.0-824",
|
|
41
41
|
"dompurify": "^3.2.6",
|
|
42
|
-
"@elementor/editor-controls": "4.1.0-
|
|
43
|
-
"@elementor/editor-documents": "4.1.0-
|
|
44
|
-
"@elementor/editor-elements": "4.1.0-
|
|
45
|
-
"@elementor/editor-interactions": "4.1.0-
|
|
46
|
-
"@elementor/editor-mcp": "4.1.0-
|
|
47
|
-
"@elementor/editor-notifications": "4.1.0-
|
|
48
|
-
"@elementor/editor-props": "4.1.0-
|
|
49
|
-
"@elementor/editor-responsive": "4.1.0-
|
|
50
|
-
"@elementor/editor-styles": "4.1.0-
|
|
51
|
-
"@elementor/editor-styles-repository": "4.1.0-
|
|
52
|
-
"@elementor/editor-ui": "4.1.0-
|
|
53
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
54
|
-
"@elementor/schema": "4.1.0-
|
|
55
|
-
"@elementor/twing": "4.1.0-
|
|
42
|
+
"@elementor/editor-controls": "4.1.0-824",
|
|
43
|
+
"@elementor/editor-documents": "4.1.0-824",
|
|
44
|
+
"@elementor/editor-elements": "4.1.0-824",
|
|
45
|
+
"@elementor/editor-interactions": "4.1.0-824",
|
|
46
|
+
"@elementor/editor-mcp": "4.1.0-824",
|
|
47
|
+
"@elementor/editor-notifications": "4.1.0-824",
|
|
48
|
+
"@elementor/editor-props": "4.1.0-824",
|
|
49
|
+
"@elementor/editor-responsive": "4.1.0-824",
|
|
50
|
+
"@elementor/editor-styles": "4.1.0-824",
|
|
51
|
+
"@elementor/editor-styles-repository": "4.1.0-824",
|
|
52
|
+
"@elementor/editor-ui": "4.1.0-824",
|
|
53
|
+
"@elementor/editor-v1-adapters": "4.1.0-824",
|
|
54
|
+
"@elementor/schema": "4.1.0-824",
|
|
55
|
+
"@elementor/twing": "4.1.0-824",
|
|
56
56
|
"@elementor/ui": "1.37.5",
|
|
57
|
-
"@elementor/utils": "4.1.0-
|
|
58
|
-
"@elementor/wp-media": "4.1.0-
|
|
57
|
+
"@elementor/utils": "4.1.0-824",
|
|
58
|
+
"@elementor/wp-media": "4.1.0-824",
|
|
59
59
|
"@floating-ui/react": "^0.27.5",
|
|
60
60
|
"@wordpress/i18n": "^5.13.0"
|
|
61
61
|
},
|
package/src/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { createPropsResolver, type PropsResolver } from './renderers/create-prop
|
|
|
21
21
|
export { settingsTransformersRegistry } from './settings-transformers-registry';
|
|
22
22
|
export { styleTransformersRegistry } from './style-transformers-registry';
|
|
23
23
|
export { endDragElementFromPanel, startDragElementFromPanel } from './sync/drag-element-from-panel';
|
|
24
|
+
export { GLOBAL_STYLES_IMPORTED_EVENT, type ImportedGlobalStylesPayload } from './sync/global-styles-imported-event';
|
|
24
25
|
export { DOCUMENT_STRUCTURE_URI } from './mcp/resources/document-structure-resource';
|
|
25
26
|
export { WIDGET_SCHEMA_URI } from './mcp/resources/widgets-schema-resource';
|
|
26
27
|
export * from './legacy/types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type StyleDefinitionID, type StyleDefinitionsMap, type StyleVariables } from '@elementor/editor-styles';
|
|
2
|
+
|
|
3
|
+
export const GLOBAL_STYLES_IMPORTED_EVENT = 'elementor/global-styles/imported';
|
|
4
|
+
|
|
5
|
+
export type ImportedGlobalStylesPayload = {
|
|
6
|
+
global_variables?: { data: StyleVariables };
|
|
7
|
+
global_classes?: { items: StyleDefinitionsMap; order: StyleDefinitionID[] };
|
|
8
|
+
};
|