@elementor/editor-canvas 4.2.0-946 → 4.2.0-beta1
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 +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +287 -195
- package/dist/index.mjs +253 -162
- package/package.json +20 -19
- package/src/components/elements-overlays.tsx +10 -2
- package/src/components/grid-outline/grid-empty-cell-positioner.tsx +46 -0
- package/src/components/grid-outline/grid-outline.tsx +11 -1
- package/src/components/grid-outline/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/mcp/tools/build-composition/tool.ts +49 -0
- package/src/mcp/tools/configure-element/tool.ts +3 -0
- package/src/utils/tracking.ts +14 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
2
2
|
import { PropValue, Props, PropType, PropTypeKey, PropsSchema, AnyTransformable } from '@elementor/editor-props';
|
|
3
|
-
import { V1Element, V1ElementModelProps, V1ElementConfig } from '@elementor/editor-elements';
|
|
3
|
+
import { V1Element, V1ElementModelProps, V1ElementConfig, V1ElementData } from '@elementor/editor-elements';
|
|
4
4
|
import { TwingArrayLoader, TwingEnvironment } from '@elementor/twing';
|
|
5
5
|
import { Root } from 'react-dom/client';
|
|
6
6
|
import { StyleVariables, StyleDefinitionsMap, StyleDefinitionID, StyleDefinitionState } from '@elementor/editor-styles';
|
|
@@ -405,4 +405,10 @@ declare function useEscapeOnCanvas(canvasDocument: Document | null | undefined,
|
|
|
405
405
|
|
|
406
406
|
declare function doAfterRender(elementIds: string[], callback: (elementIds: string[]) => void): void;
|
|
407
407
|
|
|
408
|
-
|
|
408
|
+
type ElementAddedEvent = {
|
|
409
|
+
element: V1ElementData;
|
|
410
|
+
executedBy: 'mcp_tool' | 'user';
|
|
411
|
+
};
|
|
412
|
+
declare const ELEMENT_ADDED_EVENT = "elementor/canvas/element-added";
|
|
413
|
+
|
|
414
|
+
export { type AnyTransformer, BREAKPOINTS_SCHEMA_FULL_URI, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type ContextMenuGroup, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, type CssConversionResult, DOCUMENT_STRUCTURE_URI, ELEMENT_ADDED_EVENT, type ElementAddedEvent, type ElementModel, ElementType, ElementView, GLOBAL_STYLES_IMPORTED_EVENT, type ImportedGlobalStylesPayload, type LegacyWindow, type MarionetteExtendable, type NamespacedRenderContext, type NestedTemplatedElementConfig, type NestedTemplatedElementViewClass, type PropsResolver, type RenderContext, type ReplacementSettings, SpotlightBackdrop, type StyleBlock, type StyleDeclarations, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_FULL_URI, WIDGET_SCHEMA_URI, canBeNestedTemplated, convertCssToAtomic, convertStyleBlocksToAtomic, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, formatGridTrackRepeat, init, isAtomicWidget, isGridTrackProperty, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry, useCanvasDocument, useEscapeOnCanvas, waitForChildrenToComplete };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
2
2
|
import { PropValue, Props, PropType, PropTypeKey, PropsSchema, AnyTransformable } from '@elementor/editor-props';
|
|
3
|
-
import { V1Element, V1ElementModelProps, V1ElementConfig } from '@elementor/editor-elements';
|
|
3
|
+
import { V1Element, V1ElementModelProps, V1ElementConfig, V1ElementData } from '@elementor/editor-elements';
|
|
4
4
|
import { TwingArrayLoader, TwingEnvironment } from '@elementor/twing';
|
|
5
5
|
import { Root } from 'react-dom/client';
|
|
6
6
|
import { StyleVariables, StyleDefinitionsMap, StyleDefinitionID, StyleDefinitionState } from '@elementor/editor-styles';
|
|
@@ -405,4 +405,10 @@ declare function useEscapeOnCanvas(canvasDocument: Document | null | undefined,
|
|
|
405
405
|
|
|
406
406
|
declare function doAfterRender(elementIds: string[], callback: (elementIds: string[]) => void): void;
|
|
407
407
|
|
|
408
|
-
|
|
408
|
+
type ElementAddedEvent = {
|
|
409
|
+
element: V1ElementData;
|
|
410
|
+
executedBy: 'mcp_tool' | 'user';
|
|
411
|
+
};
|
|
412
|
+
declare const ELEMENT_ADDED_EVENT = "elementor/canvas/element-added";
|
|
413
|
+
|
|
414
|
+
export { type AnyTransformer, BREAKPOINTS_SCHEMA_FULL_URI, BREAKPOINTS_SCHEMA_URI, type BackboneModel, type BackboneModelConstructor, type ContextMenuAction, type ContextMenuEventData, type ContextMenuGroup, type CreateNestedTemplatedElementTypeOptions, type CreateTemplatedElementTypeOptions, type CssConversionResult, DOCUMENT_STRUCTURE_URI, ELEMENT_ADDED_EVENT, type ElementAddedEvent, type ElementModel, ElementType, ElementView, GLOBAL_STYLES_IMPORTED_EVENT, type ImportedGlobalStylesPayload, type LegacyWindow, type MarionetteExtendable, type NamespacedRenderContext, type NestedTemplatedElementConfig, type NestedTemplatedElementViewClass, type PropsResolver, type RenderContext, type ReplacementSettings, SpotlightBackdrop, type StyleBlock, type StyleDeclarations, TemplatedElementView, type TransformerOptions, UnknownStyleStateError, UnknownStyleTypeError, WIDGET_SCHEMA_FULL_URI, WIDGET_SCHEMA_URI, canBeNestedTemplated, convertCssToAtomic, convertStyleBlocksToAtomic, createNestedTemplatedElementType, createNestedTemplatedElementView, createPropsResolver, createTemplatedElementView, createTransformer, createTransformersRegistry, doAfterRender, endDragElementFromPanel, formatGridTrackRepeat, init, isAtomicWidget, isGridTrackProperty, registerElementType, registerModelExtensions, settingsTransformersRegistry, startDragElementFromPanel, styleTransformersRegistry, stylesInheritanceTransformersRegistry, useCanvasDocument, useEscapeOnCanvas, waitForChildrenToComplete };
|