@elementor/editor-components 4.0.0-541 → 4.0.0-543

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-components",
3
3
  "description": "Elementor editor components",
4
- "version": "4.0.0-541",
4
+ "version": "4.0.0-543",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,30 +40,30 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor": "4.0.0-541",
44
- "@elementor/editor-canvas": "4.0.0-541",
45
- "@elementor/editor-controls": "4.0.0-541",
46
- "@elementor/editor-documents": "4.0.0-541",
47
- "@elementor/editor-editing-panel": "4.0.0-541",
48
- "@elementor/editor-elements": "4.0.0-541",
49
- "@elementor/editor-elements-panel": "4.0.0-541",
50
- "@elementor/editor-mcp": "4.0.0-541",
51
- "@elementor/editor-panels": "4.0.0-541",
52
- "@elementor/editor-props": "4.0.0-541",
53
- "@elementor/editor-styles-repository": "4.0.0-541",
54
- "@elementor/editor-ui": "4.0.0-541",
55
- "@elementor/editor-v1-adapters": "4.0.0-541",
56
- "@elementor/http-client": "4.0.0-541",
43
+ "@elementor/editor": "4.0.0-543",
44
+ "@elementor/editor-canvas": "4.0.0-543",
45
+ "@elementor/editor-controls": "4.0.0-543",
46
+ "@elementor/editor-documents": "4.0.0-543",
47
+ "@elementor/editor-editing-panel": "4.0.0-543",
48
+ "@elementor/editor-elements": "4.0.0-543",
49
+ "@elementor/editor-elements-panel": "4.0.0-543",
50
+ "@elementor/editor-mcp": "4.0.0-543",
51
+ "@elementor/editor-panels": "4.0.0-543",
52
+ "@elementor/editor-props": "4.0.0-543",
53
+ "@elementor/editor-styles-repository": "4.0.0-543",
54
+ "@elementor/editor-ui": "4.0.0-543",
55
+ "@elementor/editor-v1-adapters": "4.0.0-543",
56
+ "@elementor/http-client": "4.0.0-543",
57
57
  "@elementor/icons": "^1.63.0",
58
- "@elementor/mixpanel": "4.0.0-541",
59
- "@elementor/query": "4.0.0-541",
60
- "@elementor/schema": "4.0.0-541",
61
- "@elementor/store": "4.0.0-541",
58
+ "@elementor/events": "4.0.0-543",
59
+ "@elementor/query": "4.0.0-543",
60
+ "@elementor/schema": "4.0.0-543",
61
+ "@elementor/store": "4.0.0-543",
62
62
  "@elementor/ui": "1.36.17",
63
- "@elementor/utils": "4.0.0-541",
63
+ "@elementor/utils": "4.0.0-543",
64
64
  "@wordpress/i18n": "^5.13.0",
65
- "@elementor/editor-notifications": "4.0.0-541",
66
- "@elementor/editor-current-user": "4.0.0-541"
65
+ "@elementor/editor-notifications": "4.0.0-543",
66
+ "@elementor/editor-current-user": "4.0.0-543"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": "^18.3.1",
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { getElementLabel, type V1ElementData } from '@elementor/editor-elements';
4
4
  import { type NotificationData, notify } from '@elementor/editor-notifications';
5
- import { Form as FormElement, ThemeProvider } from '@elementor/editor-ui';
5
+ import { Form as FormElement, ThemeProvider, useTextFieldAutoSelect } from '@elementor/editor-ui';
6
6
  import { ComponentsIcon } from '@elementor/icons';
7
7
  import { __getState as getState } from '@elementor/store';
8
8
  import { Button, FormLabel, Grid, Popover, Stack, TextField, Typography } from '@elementor/ui';
@@ -196,6 +196,7 @@ const Form = ( {
196
196
  closePopup: () => void;
197
197
  } ) => {
198
198
  const { values, errors, isValid, handleChange, validateForm } = useForm< ComponentFormValues >( initialValues );
199
+ const nameInputRef = useTextFieldAutoSelect();
199
200
 
200
201
  const { components } = useComponents();
201
202
 
@@ -262,6 +263,7 @@ const Form = ( {
262
263
  inputProps={ { style: { color: 'text.primary', fontWeight: '600' } } }
263
264
  error={ Boolean( errors.componentName ) }
264
265
  helperText={ errors.componentName }
266
+ inputRef={ nameInputRef }
265
267
  />
266
268
  </Grid>
267
269
  </Grid>
@@ -1,5 +1,5 @@
1
1
  import { type V1Element } from '@elementor/editor-elements';
2
- import { getMixpanel } from '@elementor/mixpanel';
2
+ import { getMixpanel } from '@elementor/events';
3
3
  import { __getState as getState } from '@elementor/store';
4
4
 
5
5
  import { selectCreatedThisSession } from '../store/store';