@elementor/editor-canvas 4.0.0-494 → 4.0.0-496
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
|
@@ -1813,7 +1813,6 @@ var getInitialPopoverPosition = () => {
|
|
|
1813
1813
|
};
|
|
1814
1814
|
|
|
1815
1815
|
// src/legacy/replacements/inline-editing/inline-editing-elements.tsx
|
|
1816
|
-
var EXPERIMENT_KEY = "v4-inline-text-editing";
|
|
1817
1816
|
var HISTORY_DEBOUNCE_WAIT = 800;
|
|
1818
1817
|
var TOP_BAR_SELECTOR = "#elementor-editor-wrapper-v2";
|
|
1819
1818
|
var NAVIGATOR_SELECTOR = "#elementor-navigator";
|
|
@@ -1833,7 +1832,7 @@ var InlineEditingReplacement = class extends ReplacementBase {
|
|
|
1833
1832
|
return !!this.inlineEditorRoot;
|
|
1834
1833
|
}
|
|
1835
1834
|
shouldRenderReplacement() {
|
|
1836
|
-
return
|
|
1835
|
+
return this.isInlineEditingEligible();
|
|
1837
1836
|
}
|
|
1838
1837
|
handleRenderInlineEditor = () => {
|
|
1839
1838
|
if (this.isEditingModeActive() || !this.isInlineEditingEligible()) {
|
package/dist/index.mjs
CHANGED
|
@@ -1693,7 +1693,7 @@ import { createRoot } from "react-dom/client";
|
|
|
1693
1693
|
import { InlineEditor } from "@elementor/editor-controls";
|
|
1694
1694
|
import { getContainer, getElementLabel, getElementType } from "@elementor/editor-elements";
|
|
1695
1695
|
import { htmlPropTypeUtil as htmlPropTypeUtil2, stringPropTypeUtil as stringPropTypeUtil2 } from "@elementor/editor-props";
|
|
1696
|
-
import { __privateRunCommandSync as runCommandSync,
|
|
1696
|
+
import { __privateRunCommandSync as runCommandSync, undoable } from "@elementor/editor-v1-adapters";
|
|
1697
1697
|
import { Box as Box2, ThemeProvider } from "@elementor/ui";
|
|
1698
1698
|
import { __ } from "@wordpress/i18n";
|
|
1699
1699
|
|
|
@@ -1784,7 +1784,6 @@ var getInitialPopoverPosition = () => {
|
|
|
1784
1784
|
};
|
|
1785
1785
|
|
|
1786
1786
|
// src/legacy/replacements/inline-editing/inline-editing-elements.tsx
|
|
1787
|
-
var EXPERIMENT_KEY = "v4-inline-text-editing";
|
|
1788
1787
|
var HISTORY_DEBOUNCE_WAIT = 800;
|
|
1789
1788
|
var TOP_BAR_SELECTOR = "#elementor-editor-wrapper-v2";
|
|
1790
1789
|
var NAVIGATOR_SELECTOR = "#elementor-navigator";
|
|
@@ -1804,7 +1803,7 @@ var InlineEditingReplacement = class extends ReplacementBase {
|
|
|
1804
1803
|
return !!this.inlineEditorRoot;
|
|
1805
1804
|
}
|
|
1806
1805
|
shouldRenderReplacement() {
|
|
1807
|
-
return
|
|
1806
|
+
return this.isInlineEditingEligible();
|
|
1808
1807
|
}
|
|
1809
1808
|
handleRenderInlineEditor = () => {
|
|
1810
1809
|
if (this.isEditingModeActive() || !this.isInlineEditingEligible()) {
|
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.0.0-
|
|
4
|
+
"version": "4.0.0-496",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,24 +37,24 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.0.0-
|
|
41
|
-
"@elementor/editor-controls": "4.0.0-
|
|
42
|
-
"@elementor/editor-documents": "4.0.0-
|
|
43
|
-
"@elementor/editor-elements": "4.0.0-
|
|
44
|
-
"@elementor/editor-interactions": "4.0.0-
|
|
45
|
-
"@elementor/editor-mcp": "4.0.0-
|
|
46
|
-
"@elementor/editor-notifications": "4.0.0-
|
|
47
|
-
"@elementor/editor-props": "4.0.0-
|
|
48
|
-
"@elementor/editor-responsive": "4.0.0-
|
|
49
|
-
"@elementor/editor-styles": "4.0.0-
|
|
50
|
-
"@elementor/editor-styles-repository": "4.0.0-
|
|
51
|
-
"@elementor/editor-ui": "4.0.0-
|
|
52
|
-
"@elementor/editor-v1-adapters": "4.0.0-
|
|
53
|
-
"@elementor/schema": "4.0.0-
|
|
54
|
-
"@elementor/twing": "4.0.0-
|
|
40
|
+
"@elementor/editor": "4.0.0-496",
|
|
41
|
+
"@elementor/editor-controls": "4.0.0-496",
|
|
42
|
+
"@elementor/editor-documents": "4.0.0-496",
|
|
43
|
+
"@elementor/editor-elements": "4.0.0-496",
|
|
44
|
+
"@elementor/editor-interactions": "4.0.0-496",
|
|
45
|
+
"@elementor/editor-mcp": "4.0.0-496",
|
|
46
|
+
"@elementor/editor-notifications": "4.0.0-496",
|
|
47
|
+
"@elementor/editor-props": "4.0.0-496",
|
|
48
|
+
"@elementor/editor-responsive": "4.0.0-496",
|
|
49
|
+
"@elementor/editor-styles": "4.0.0-496",
|
|
50
|
+
"@elementor/editor-styles-repository": "4.0.0-496",
|
|
51
|
+
"@elementor/editor-ui": "4.0.0-496",
|
|
52
|
+
"@elementor/editor-v1-adapters": "4.0.0-496",
|
|
53
|
+
"@elementor/schema": "4.0.0-496",
|
|
54
|
+
"@elementor/twing": "4.0.0-496",
|
|
55
55
|
"@elementor/ui": "1.36.17",
|
|
56
|
-
"@elementor/utils": "4.0.0-
|
|
57
|
-
"@elementor/wp-media": "4.0.0-
|
|
56
|
+
"@elementor/utils": "4.0.0-496",
|
|
57
|
+
"@elementor/wp-media": "4.0.0-496",
|
|
58
58
|
"@floating-ui/react": "^0.27.5",
|
|
59
59
|
"@wordpress/i18n": "^5.13.0"
|
|
60
60
|
},
|
|
@@ -4,7 +4,7 @@ import { createRoot, type Root } from 'react-dom/client';
|
|
|
4
4
|
import { InlineEditor } from '@elementor/editor-controls';
|
|
5
5
|
import { getContainer, getElementLabel, getElementType } from '@elementor/editor-elements';
|
|
6
6
|
import { htmlPropTypeUtil, type PropType, type PropValue, stringPropTypeUtil } from '@elementor/editor-props';
|
|
7
|
-
import { __privateRunCommandSync as runCommandSync,
|
|
7
|
+
import { __privateRunCommandSync as runCommandSync, undoable } from '@elementor/editor-v1-adapters';
|
|
8
8
|
import { Box, ThemeProvider } from '@elementor/ui';
|
|
9
9
|
import { __ } from '@wordpress/i18n';
|
|
10
10
|
|
|
@@ -13,8 +13,6 @@ import { ReplacementBase, TRIGGER_TIMING } from '../base';
|
|
|
13
13
|
import { isInlineEditingAllowed } from './inline-editing-eligibility';
|
|
14
14
|
import { getInitialPopoverPosition, INLINE_EDITING_PROPERTY_PER_TYPE } from './inline-editing-utils';
|
|
15
15
|
|
|
16
|
-
const EXPERIMENT_KEY = 'v4-inline-text-editing';
|
|
17
|
-
|
|
18
16
|
type TagPropType = PropType< 'tag' > & {
|
|
19
17
|
settings?: {
|
|
20
18
|
enum?: string[];
|
|
@@ -47,7 +45,7 @@ export default class InlineEditingReplacement extends ReplacementBase {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
shouldRenderReplacement() {
|
|
50
|
-
return
|
|
48
|
+
return this.isInlineEditingEligible();
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
handleRenderInlineEditor = () => {
|