@elementor/editor-controls 3.35.0-491 → 3.35.0-492

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-controls",
3
3
  "description": "This package contains the controls model and utils for the Elementor editor",
4
- "version": "3.35.0-491",
4
+ "version": "3.35.0-492",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,22 +40,22 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-current-user": "3.35.0-491",
44
- "@elementor/editor-elements": "3.35.0-491",
45
- "@elementor/editor-props": "3.35.0-491",
46
- "@elementor/editor-responsive": "3.35.0-491",
47
- "@elementor/editor-ui": "3.35.0-491",
48
- "@elementor/editor-v1-adapters": "3.35.0-491",
49
- "@elementor/env": "3.35.0-491",
50
- "@elementor/http-client": "3.35.0-491",
43
+ "@elementor/editor-current-user": "3.35.0-492",
44
+ "@elementor/editor-elements": "3.35.0-492",
45
+ "@elementor/editor-props": "3.35.0-492",
46
+ "@elementor/editor-responsive": "3.35.0-492",
47
+ "@elementor/editor-ui": "3.35.0-492",
48
+ "@elementor/editor-v1-adapters": "3.35.0-492",
49
+ "@elementor/env": "3.35.0-492",
50
+ "@elementor/http-client": "3.35.0-492",
51
51
  "@elementor/icons": "^1.63.0",
52
- "@elementor/locations": "3.35.0-491",
53
- "@elementor/mixpanel": "3.35.0-491",
54
- "@elementor/query": "3.35.0-491",
55
- "@elementor/session": "3.35.0-491",
52
+ "@elementor/locations": "3.35.0-492",
53
+ "@elementor/mixpanel": "3.35.0-492",
54
+ "@elementor/query": "3.35.0-492",
55
+ "@elementor/session": "3.35.0-492",
56
56
  "@elementor/ui": "1.36.17",
57
- "@elementor/utils": "3.35.0-491",
58
- "@elementor/wp-media": "3.35.0-491",
57
+ "@elementor/utils": "3.35.0-492",
58
+ "@elementor/wp-media": "3.35.0-492",
59
59
  "@wordpress/i18n": "^5.13.0",
60
60
  "@monaco-editor/react": "^4.7.0",
61
61
  "dayjs": "^1.11.18",
@@ -41,6 +41,10 @@ export const initialTransitionValue: TransitionValue = {
41
41
 
42
42
  const MIN_PRO_VERSION = '3.35';
43
43
 
44
+ const getIsSiteRtl = () => {
45
+ return !! window.elementorFrontend?.config?.is_rtl;
46
+ };
47
+
44
48
  // TODO: Remove this after version 4.01 is released
45
49
  const shouldExtendTransitionProperties = (): boolean => {
46
50
  const hasProInstalled = !! window.elementorPro;
@@ -59,6 +63,8 @@ const shouldExtendTransitionProperties = (): boolean => {
59
63
  };
60
64
 
61
65
  const createTransitionPropertiesList = (): TransitionCategory[] => {
66
+ const isSiteRtl = getIsSiteRtl();
67
+
62
68
  const baseProperties: TransitionCategory[] = [
63
69
  {
64
70
  label: __( 'Default', 'elementor' ),
@@ -71,8 +77,16 @@ const createTransitionPropertiesList = (): TransitionCategory[] => {
71
77
  properties: [
72
78
  { label: __( 'Margin (all)', 'elementor' ), value: 'margin', isDisabled: true },
73
79
  { label: __( 'Margin bottom', 'elementor' ), value: 'margin-block-end', isDisabled: true },
74
- { label: __( 'Margin left', 'elementor' ), value: 'margin-inline-start', isDisabled: true },
75
- { label: __( 'Margin right', 'elementor' ), value: 'margin-inline-end', isDisabled: true },
80
+ {
81
+ label: isSiteRtl ? __( 'Margin right', 'elementor' ) : __( 'Margin left', 'elementor' ),
82
+ value: 'margin-inline-start',
83
+ isDisabled: true,
84
+ },
85
+ {
86
+ label: isSiteRtl ? __( 'Margin left', 'elementor' ) : __( 'Margin right', 'elementor' ),
87
+ value: 'margin-inline-end',
88
+ isDisabled: true,
89
+ },
76
90
  { label: __( 'Margin top', 'elementor' ), value: 'margin-block-start', isDisabled: true },
77
91
  ],
78
92
  },
@@ -82,8 +96,16 @@ const createTransitionPropertiesList = (): TransitionCategory[] => {
82
96
  properties: [
83
97
  { label: __( 'Padding (all)', 'elementor' ), value: 'padding', isDisabled: true },
84
98
  { label: __( 'Padding bottom', 'elementor' ), value: 'padding-block-end', isDisabled: true },
85
- { label: __( 'Padding left', 'elementor' ), value: 'padding-inline-start', isDisabled: true },
86
- { label: __( 'Padding right', 'elementor' ), value: 'padding-inline-end', isDisabled: true },
99
+ {
100
+ label: isSiteRtl ? __( 'Padding right', 'elementor' ) : __( 'Padding left', 'elementor' ),
101
+ value: 'padding-inline-start',
102
+ isDisabled: true,
103
+ },
104
+ {
105
+ label: isSiteRtl ? __( 'Padding left', 'elementor' ) : __( 'Padding right', 'elementor' ),
106
+ value: 'padding-inline-end',
107
+ isDisabled: true,
108
+ },
87
109
  { label: __( 'Padding top', 'elementor' ), value: 'padding-block-start', isDisabled: true },
88
110
  ],
89
111
  },
@@ -114,8 +136,16 @@ const createTransitionPropertiesList = (): TransitionCategory[] => {
114
136
  type: 'category',
115
137
  properties: [
116
138
  { label: __( 'Top', 'elementor' ), value: 'inset-block-start', isDisabled: true },
117
- { label: __( 'Left', 'elementor' ), value: 'inset-inline-start', isDisabled: true },
118
- { label: __( 'Right', 'elementor' ), value: 'inset-inline-end', isDisabled: true },
139
+ {
140
+ label: isSiteRtl ? __( 'Right', 'elementor' ) : __( 'Left', 'elementor' ),
141
+ value: 'inset-inline-start',
142
+ isDisabled: true,
143
+ },
144
+ {
145
+ label: isSiteRtl ? __( 'Left', 'elementor' ) : __( 'Right', 'elementor' ),
146
+ value: 'inset-inline-end',
147
+ isDisabled: true,
148
+ },
119
149
  { label: __( 'Bottom', 'elementor' ), value: 'inset-block-end', isDisabled: true },
120
150
  { label: __( 'Z-index', 'elementor' ), value: 'z-index', isDisabled: true },
121
151
  ],