@elementor/editor-canvas 4.4.0-1141 → 4.4.0-1143
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.js
CHANGED
|
@@ -798,7 +798,7 @@ var OverlayBox = (0, import_ui.styled)(import_ui.Box, {
|
|
|
798
798
|
shouldForwardProp: (prop) => prop !== "isSelected" && prop !== "isSmallerOffset" && prop !== "isGlobal"
|
|
799
799
|
})(
|
|
800
800
|
({ theme, isSelected, isSmallerOffset, isGlobal }) => ({
|
|
801
|
-
outline: `${isSelected ? "2px" : "1px"} solid ${isGlobal ? theme.palette.global.main : theme.palette.
|
|
801
|
+
outline: `${isSelected ? "2px" : "1px"} solid ${isGlobal ? theme.palette.global.main : theme.palette.accent.light}`,
|
|
802
802
|
outlineOffset: isSelected && !isSmallerOffset ? "-2px" : "-1px",
|
|
803
803
|
pointerEvents: "none"
|
|
804
804
|
})
|
|
@@ -3608,6 +3608,7 @@ var ReplacementBase = class {
|
|
|
3608
3608
|
var React10 = __toESM(require("react"));
|
|
3609
3609
|
var import_react18 = require("react");
|
|
3610
3610
|
var import_editor_controls3 = require("@elementor/editor-controls");
|
|
3611
|
+
var import_editor_ui = require("@elementor/editor-ui");
|
|
3611
3612
|
var import_ui5 = require("@elementor/ui");
|
|
3612
3613
|
var import_react19 = require("@floating-ui/react");
|
|
3613
3614
|
|
|
@@ -3777,7 +3778,7 @@ var CanvasInlineEditor = ({
|
|
|
3777
3778
|
if (!active) {
|
|
3778
3779
|
return null;
|
|
3779
3780
|
}
|
|
3780
|
-
return /* @__PURE__ */ React10.createElement(
|
|
3781
|
+
return /* @__PURE__ */ React10.createElement(import_editor_ui.ThemeProvider, null, /* @__PURE__ */ React10.createElement(InlineEditingOverlay, { expectedTag, rootElement, id }), /* @__PURE__ */ React10.createElement(
|
|
3781
3782
|
import_editor_controls3.InlineEditor,
|
|
3782
3783
|
{
|
|
3783
3784
|
onEditorCreate: setEditor,
|
package/dist/index.mjs
CHANGED
|
@@ -734,7 +734,7 @@ var OverlayBox = styled(Box, {
|
|
|
734
734
|
shouldForwardProp: (prop) => prop !== "isSelected" && prop !== "isSmallerOffset" && prop !== "isGlobal"
|
|
735
735
|
})(
|
|
736
736
|
({ theme, isSelected, isSmallerOffset, isGlobal }) => ({
|
|
737
|
-
outline: `${isSelected ? "2px" : "1px"} solid ${isGlobal ? theme.palette.global.main : theme.palette.
|
|
737
|
+
outline: `${isSelected ? "2px" : "1px"} solid ${isGlobal ? theme.palette.global.main : theme.palette.accent.light}`,
|
|
738
738
|
outlineOffset: isSelected && !isSmallerOffset ? "-2px" : "-1px",
|
|
739
739
|
pointerEvents: "none"
|
|
740
740
|
})
|
|
@@ -3574,7 +3574,8 @@ var ReplacementBase = class {
|
|
|
3574
3574
|
import * as React10 from "react";
|
|
3575
3575
|
import { useCallback as useCallback2, useEffect as useEffect12, useLayoutEffect, useState as useState8 } from "react";
|
|
3576
3576
|
import { InlineEditor, InlineEditorToolbar } from "@elementor/editor-controls";
|
|
3577
|
-
import {
|
|
3577
|
+
import { ThemeProvider } from "@elementor/editor-ui";
|
|
3578
|
+
import { Box as Box3 } from "@elementor/ui";
|
|
3578
3579
|
import { autoUpdate as autoUpdate2, flip, FloatingPortal as FloatingPortal3, useFloating as useFloating2 } from "@floating-ui/react";
|
|
3579
3580
|
|
|
3580
3581
|
// src/legacy/replacements/inline-editing/inline-editing-utils.ts
|
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.4.0-
|
|
4
|
+
"version": "4.4.0-1143",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.4.0-
|
|
41
|
-
"@elementor/editor-controls": "4.4.0-
|
|
42
|
-
"@elementor/editor-documents": "4.4.0-
|
|
43
|
-
"@elementor/editor-elements": "4.4.0-
|
|
44
|
-
"@elementor/editor-interactions": "4.4.0-
|
|
45
|
-
"@elementor/editor-mcp": "4.4.0-
|
|
46
|
-
"@elementor/editor-notifications": "4.4.0-
|
|
47
|
-
"@elementor/editor-props": "4.4.0-
|
|
48
|
-
"@elementor/editor-responsive": "4.4.0-
|
|
49
|
-
"@elementor/editor-styles": "4.4.0-
|
|
50
|
-
"@elementor/editor-styles-repository": "4.4.0-
|
|
51
|
-
"@elementor/editor-ui": "4.4.0-
|
|
52
|
-
"@elementor/editor-v1-adapters": "4.4.0-
|
|
53
|
-
"@elementor/events": "4.4.0-
|
|
54
|
-
"@elementor/http-client": "4.4.0-
|
|
55
|
-
"@elementor/schema": "4.4.0-
|
|
56
|
-
"@elementor/twing": "4.4.0-
|
|
57
|
-
"@elementor/ui": "1.41.
|
|
58
|
-
"@elementor/utils": "4.4.0-
|
|
59
|
-
"@elementor/wp-media": "4.4.0-
|
|
40
|
+
"@elementor/editor": "4.4.0-1143",
|
|
41
|
+
"@elementor/editor-controls": "4.4.0-1143",
|
|
42
|
+
"@elementor/editor-documents": "4.4.0-1143",
|
|
43
|
+
"@elementor/editor-elements": "4.4.0-1143",
|
|
44
|
+
"@elementor/editor-interactions": "4.4.0-1143",
|
|
45
|
+
"@elementor/editor-mcp": "4.4.0-1143",
|
|
46
|
+
"@elementor/editor-notifications": "4.4.0-1143",
|
|
47
|
+
"@elementor/editor-props": "4.4.0-1143",
|
|
48
|
+
"@elementor/editor-responsive": "4.4.0-1143",
|
|
49
|
+
"@elementor/editor-styles": "4.4.0-1143",
|
|
50
|
+
"@elementor/editor-styles-repository": "4.4.0-1143",
|
|
51
|
+
"@elementor/editor-ui": "4.4.0-1143",
|
|
52
|
+
"@elementor/editor-v1-adapters": "4.4.0-1143",
|
|
53
|
+
"@elementor/events": "4.4.0-1143",
|
|
54
|
+
"@elementor/http-client": "4.4.0-1143",
|
|
55
|
+
"@elementor/schema": "4.4.0-1143",
|
|
56
|
+
"@elementor/twing": "4.4.0-1143",
|
|
57
|
+
"@elementor/ui": "1.41.4",
|
|
58
|
+
"@elementor/utils": "4.4.0-1143",
|
|
59
|
+
"@elementor/wp-media": "4.4.0-1143",
|
|
60
60
|
"@floating-ui/react": "^0.27.5",
|
|
61
61
|
"@wordpress/i18n": "^5.13.0",
|
|
62
62
|
"dompurify": "^3.2.6"
|
|
@@ -19,7 +19,7 @@ const OverlayBox = styled( Box, {
|
|
|
19
19
|
} )< Pick< Props, 'isSelected' | 'isSmallerOffset' | 'isGlobal' > >(
|
|
20
20
|
( { theme, isSelected, isSmallerOffset, isGlobal } ) => ( {
|
|
21
21
|
outline: `${ isSelected ? '2px' : '1px' } solid ${
|
|
22
|
-
isGlobal ? theme.palette.global.main : theme.palette.
|
|
22
|
+
isGlobal ? theme.palette.global.main : theme.palette.accent.light
|
|
23
23
|
}`,
|
|
24
24
|
outlineOffset: isSelected && ! isSmallerOffset ? '-2px' : '-1px',
|
|
25
25
|
pointerEvents: 'none',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useCallback, useEffect, useLayoutEffect, useState } from 'react';
|
|
3
3
|
import { InlineEditor, InlineEditorToolbar } from '@elementor/editor-controls';
|
|
4
|
-
import {
|
|
4
|
+
import { ThemeProvider } from '@elementor/editor-ui';
|
|
5
|
+
import { Box } from '@elementor/ui';
|
|
5
6
|
import { autoUpdate, flip, FloatingPortal, useFloating } from '@floating-ui/react';
|
|
6
7
|
|
|
7
8
|
import { CANVAS_WRAPPER_ID, OutlineOverlay } from '../../../components/outline-overlay';
|