@elementor/editor-controls 3.35.0-334 → 3.35.0-335

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-334",
4
+ "version": "3.35.0-335",
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-334",
44
- "@elementor/editor-elements": "3.35.0-334",
45
- "@elementor/editor-props": "3.35.0-334",
46
- "@elementor/editor-responsive": "3.35.0-334",
47
- "@elementor/editor-ui": "3.35.0-334",
48
- "@elementor/editor-v1-adapters": "3.35.0-334",
49
- "@elementor/env": "3.35.0-334",
50
- "@elementor/http-client": "3.35.0-334",
43
+ "@elementor/editor-current-user": "3.35.0-335",
44
+ "@elementor/editor-elements": "3.35.0-335",
45
+ "@elementor/editor-props": "3.35.0-335",
46
+ "@elementor/editor-responsive": "3.35.0-335",
47
+ "@elementor/editor-ui": "3.35.0-335",
48
+ "@elementor/editor-v1-adapters": "3.35.0-335",
49
+ "@elementor/env": "3.35.0-335",
50
+ "@elementor/http-client": "3.35.0-335",
51
51
  "@elementor/icons": "^1.62.0",
52
- "@elementor/locations": "3.35.0-334",
53
- "@elementor/mixpanel": "3.35.0-334",
54
- "@elementor/query": "3.35.0-334",
55
- "@elementor/session": "3.35.0-334",
52
+ "@elementor/locations": "3.35.0-335",
53
+ "@elementor/mixpanel": "3.35.0-335",
54
+ "@elementor/query": "3.35.0-335",
55
+ "@elementor/session": "3.35.0-335",
56
56
  "@elementor/ui": "1.36.17",
57
- "@elementor/utils": "3.35.0-334",
58
- "@elementor/wp-media": "3.35.0-334",
57
+ "@elementor/utils": "3.35.0-335",
58
+ "@elementor/wp-media": "3.35.0-335",
59
59
  "@wordpress/i18n": "^5.13.0",
60
60
  "@monaco-editor/react": "^4.7.0",
61
61
  "dayjs": "^1.11.18",
@@ -21,6 +21,8 @@ type InlineEditorProps = {
21
21
  attributes?: Record< string, string >;
22
22
  sx?: SxProps< Theme >;
23
23
  showToolbar?: boolean;
24
+ // UnstableFloatingActionBar sends props to be used for event handling for floating actions.
25
+ props?: React.ComponentProps< 'div' >;
24
26
  };
25
27
 
26
28
  const useOnUpdate = ( callback: () => void, dependencies: DependencyList ): void => {
@@ -38,7 +40,7 @@ const useOnUpdate = ( callback: () => void, dependencies: DependencyList ): void
38
40
 
39
41
  export const InlineEditor = React.forwardRef(
40
42
  (
41
- { value, setValue, attributes = {}, showToolbar = false, sx }: InlineEditorProps,
43
+ { value, setValue, attributes = {}, showToolbar = false, sx, ...props }: InlineEditorProps,
42
44
  ref: ForwardedRef< HTMLDivElement >
43
45
  ) => {
44
46
  const editor = useEditor( {
@@ -109,6 +111,7 @@ export const InlineEditor = React.forwardRef(
109
111
  ...sx,
110
112
  } }
111
113
  { ...attributes }
114
+ { ...props }
112
115
  >
113
116
  { showToolbar && <InlineEditorToolbar editor={ editor } /> }
114
117
  <EditorContent editor={ editor } />