@elementor/editor-variables 3.35.0-350 → 3.35.0-351
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 +30 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/components/variables-selection.tsx +30 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-variables",
|
|
3
|
-
"version": "3.35.0-
|
|
3
|
+
"version": "3.35.0-351",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "3.35.0-
|
|
43
|
-
"@elementor/editor-canvas": "3.35.0-
|
|
44
|
-
"@elementor/editor-controls": "3.35.0-
|
|
45
|
-
"@elementor/editor-current-user": "3.35.0-
|
|
46
|
-
"@elementor/editor-editing-panel": "3.35.0-
|
|
47
|
-
"@elementor/editor-mcp": "3.35.0-
|
|
48
|
-
"@elementor/editor-panels": "3.35.0-
|
|
49
|
-
"@elementor/editor-props": "3.35.0-
|
|
50
|
-
"@elementor/editor-ui": "3.35.0-
|
|
51
|
-
"@elementor/editor-v1-adapters": "3.35.0-
|
|
52
|
-
"@elementor/http-client": "3.35.0-
|
|
42
|
+
"@elementor/editor": "3.35.0-351",
|
|
43
|
+
"@elementor/editor-canvas": "3.35.0-351",
|
|
44
|
+
"@elementor/editor-controls": "3.35.0-351",
|
|
45
|
+
"@elementor/editor-current-user": "3.35.0-351",
|
|
46
|
+
"@elementor/editor-editing-panel": "3.35.0-351",
|
|
47
|
+
"@elementor/editor-mcp": "3.35.0-351",
|
|
48
|
+
"@elementor/editor-panels": "3.35.0-351",
|
|
49
|
+
"@elementor/editor-props": "3.35.0-351",
|
|
50
|
+
"@elementor/editor-ui": "3.35.0-351",
|
|
51
|
+
"@elementor/editor-v1-adapters": "3.35.0-351",
|
|
52
|
+
"@elementor/http-client": "3.35.0-351",
|
|
53
53
|
"@elementor/icons": "^1.62.0",
|
|
54
|
-
"@elementor/mixpanel": "3.35.0-
|
|
55
|
-
"@elementor/schema": "3.35.0-
|
|
54
|
+
"@elementor/mixpanel": "3.35.0-351",
|
|
55
|
+
"@elementor/schema": "3.35.0-351",
|
|
56
56
|
"@elementor/ui": "1.36.17",
|
|
57
57
|
"@wordpress/i18n": "^5.13.0"
|
|
58
58
|
},
|
|
@@ -123,29 +123,6 @@ export const VariablesSelection = ( { closePopover, onAdd, onEdit, onSettings, d
|
|
|
123
123
|
setSearchValue( '' );
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const noVariableTitle = disabled
|
|
127
|
-
? sprintf(
|
|
128
|
-
/* translators: %s: Variable Type. */
|
|
129
|
-
__( 'No %s variables yet', 'elementor' ),
|
|
130
|
-
variableType
|
|
131
|
-
)
|
|
132
|
-
: sprintf(
|
|
133
|
-
/* translators: %s: Variable Type. */
|
|
134
|
-
__( 'Create your first %s variable', 'elementor' ),
|
|
135
|
-
variableType
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
const noVariableMessage = disabled
|
|
139
|
-
? sprintf(
|
|
140
|
-
/* translators: %s: Variable Type. */
|
|
141
|
-
__(
|
|
142
|
-
'Start by creating your first %s variable to apply consistent sizing across elements.',
|
|
143
|
-
'elementor'
|
|
144
|
-
),
|
|
145
|
-
variableType
|
|
146
|
-
)
|
|
147
|
-
: __( 'Variables are saved attributes that you can apply anywhere on your site.', 'elementor' );
|
|
148
|
-
|
|
149
126
|
return (
|
|
150
127
|
<PopoverBody>
|
|
151
128
|
<PopoverHeader
|
|
@@ -187,18 +164,41 @@ export const VariablesSelection = ( { closePopover, onAdd, onEdit, onSettings, d
|
|
|
187
164
|
/>
|
|
188
165
|
) }
|
|
189
166
|
|
|
190
|
-
{
|
|
167
|
+
{ disabled && (
|
|
191
168
|
<EmptyState
|
|
192
|
-
title={
|
|
193
|
-
|
|
169
|
+
title={ sprintf(
|
|
170
|
+
/* translators: %s: Variable Type. */
|
|
171
|
+
__( 'No %s variables yet', 'elementor' ),
|
|
172
|
+
variableType
|
|
173
|
+
) }
|
|
174
|
+
message={ sprintf(
|
|
175
|
+
/* translators: %s: Variable Type. */
|
|
176
|
+
__( 'Upgrade to create %s variables and maintain consistent element sizing.', 'elementor' ),
|
|
177
|
+
variableType
|
|
178
|
+
) }
|
|
194
179
|
icon={ <VariableIcon fontSize="large" /> }
|
|
195
|
-
onAdd={ disabled ? undefined : onAdd }
|
|
196
180
|
>
|
|
197
181
|
{ emptyState }
|
|
198
182
|
</EmptyState>
|
|
199
183
|
) }
|
|
200
184
|
|
|
201
|
-
{ hasNoCompatibleVariables && (
|
|
185
|
+
{ ! hasVariables && ! hasNoCompatibleVariables && ! disabled && (
|
|
186
|
+
<EmptyState
|
|
187
|
+
title={ sprintf(
|
|
188
|
+
/* translators: %s: Variable Type. */
|
|
189
|
+
__( 'Create your first %s variable', 'elementor' ),
|
|
190
|
+
variableType
|
|
191
|
+
) }
|
|
192
|
+
message={ __(
|
|
193
|
+
'Variables are saved attributes that you can apply anywhere on your site.',
|
|
194
|
+
'elementor'
|
|
195
|
+
) }
|
|
196
|
+
icon={ <VariableIcon fontSize="large" /> }
|
|
197
|
+
onAdd={ onAdd }
|
|
198
|
+
/>
|
|
199
|
+
) }
|
|
200
|
+
|
|
201
|
+
{ hasNoCompatibleVariables && ! disabled && (
|
|
202
202
|
<EmptyState
|
|
203
203
|
title={ __( 'No compatible variables', 'elementor' ) }
|
|
204
204
|
message={ __(
|
|
@@ -206,10 +206,8 @@ export const VariablesSelection = ( { closePopover, onAdd, onEdit, onSettings, d
|
|
|
206
206
|
'elementor'
|
|
207
207
|
) }
|
|
208
208
|
icon={ <VariableIcon fontSize="large" /> }
|
|
209
|
-
onAdd={
|
|
210
|
-
|
|
211
|
-
{ emptyState }
|
|
212
|
-
</EmptyState>
|
|
209
|
+
onAdd={ onAdd }
|
|
210
|
+
/>
|
|
213
211
|
) }
|
|
214
212
|
</PopoverBody>
|
|
215
213
|
);
|