@elementor/editor-variables 3.33.0-120 → 3.33.0-121

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-variables",
3
- "version": "3.33.0-120",
3
+ "version": "3.33.0-121",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,18 +39,18 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor": "3.33.0-120",
43
- "@elementor/editor-canvas": "3.33.0-120",
44
- "@elementor/editor-controls": "3.33.0-120",
45
- "@elementor/editor-current-user": "3.33.0-120",
46
- "@elementor/editor-editing-panel": "3.33.0-120",
47
- "@elementor/editor-panels": "3.33.0-120",
48
- "@elementor/editor-props": "3.33.0-120",
49
- "@elementor/editor-ui": "3.33.0-120",
50
- "@elementor/editor-v1-adapters": "3.33.0-120",
51
- "@elementor/http-client": "3.33.0-120",
42
+ "@elementor/editor": "3.33.0-121",
43
+ "@elementor/editor-canvas": "3.33.0-121",
44
+ "@elementor/editor-controls": "3.33.0-121",
45
+ "@elementor/editor-current-user": "3.33.0-121",
46
+ "@elementor/editor-editing-panel": "3.33.0-121",
47
+ "@elementor/editor-panels": "3.33.0-121",
48
+ "@elementor/editor-props": "3.33.0-121",
49
+ "@elementor/editor-ui": "3.33.0-121",
50
+ "@elementor/editor-v1-adapters": "3.33.0-121",
51
+ "@elementor/http-client": "3.33.0-121",
52
52
  "@elementor/icons": "1.46.0",
53
- "@elementor/schema": "3.33.0-120",
53
+ "@elementor/schema": "3.33.0-121",
54
54
  "@elementor/ui": "1.36.12",
55
55
  "@wordpress/i18n": "^5.13.0"
56
56
  },
@@ -30,6 +30,7 @@ export const ColorField = ( { value, onChange, onValidationChange }: ColorFieldP
30
30
 
31
31
  return (
32
32
  <UnstableColorField
33
+ id="color-variable-field"
33
34
  size="tiny"
34
35
  fullWidth
35
36
  value={ color }
@@ -68,6 +68,7 @@ export const FontField = ( { value, onChange, onValidationChange }: FontFieldPro
68
68
  { ...bindPopover( fontPopoverState ) }
69
69
  >
70
70
  <ItemSelector
71
+ id="font-family-variables-selector"
71
72
  itemsList={ mapFontSubs }
72
73
  selectedItem={ fontFamily }
73
74
  onItemChange={ handleFontFamilyChange }
@@ -141,7 +141,7 @@ export const VariableCreation = ( { onGoBack, onClose }: Props ) => {
141
141
  />
142
142
  </FormField>
143
143
  <FormField errorMsg={ valueFieldError } label={ __( 'Value', 'elementor' ) }>
144
- <Typography variant="h5">
144
+ <Typography variant="h5" id="variable-value-wrapper">
145
145
  <ValueField
146
146
  value={ value }
147
147
  onChange={ ( newValue ) => {
@@ -159,7 +159,13 @@ export const VariableCreation = ( { onGoBack, onClose }: Props ) => {
159
159
  </PopoverContent>
160
160
 
161
161
  <CardActions sx={ { pt: 0.5, pb: 1 } }>
162
- <Button size="small" variant="contained" disabled={ isSubmitDisabled } onClick={ handleCreateAndTrack }>
162
+ <Button
163
+ id="create-variable-button"
164
+ size="small"
165
+ variant="contained"
166
+ disabled={ isSubmitDisabled }
167
+ onClick={ handleCreateAndTrack }
168
+ >
163
169
  { __( 'Create', 'elementor' ) }
164
170
  </Button>
165
171
  </CardActions>
@@ -61,7 +61,7 @@ export const VariablesSelection = ( { closePopover, onAdd, onEdit, onSettings }:
61
61
 
62
62
  if ( onAdd ) {
63
63
  actions.push(
64
- <IconButton key="add" size={ SIZE } onClick={ onAddAndTrack }>
64
+ <IconButton id="add-variable-button" key="add" size={ SIZE } onClick={ onAddAndTrack }>
65
65
  <PlusIcon fontSize={ SIZE } />
66
66
  </IconButton>
67
67
  );
@@ -69,7 +69,7 @@ export const VariablesSelection = ( { closePopover, onAdd, onEdit, onSettings }:
69
69
 
70
70
  if ( onSettings ) {
71
71
  actions.push(
72
- <IconButton key="settings" size={ SIZE } onClick={ onSettings }>
72
+ <IconButton id="variables-manager-button" key="settings" size={ SIZE } onClick={ onSettings }>
73
73
  <SettingsIcon fontSize={ SIZE } />
74
74
  </IconButton>
75
75
  );