@elementor/editor-editing-panel 4.1.0-734 → 4.1.0-736

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-editing-panel",
3
- "version": "4.1.0-734",
3
+ "version": "4.1.0-736",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,28 +39,28 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor": "4.1.0-734",
43
- "@elementor/editor-canvas": "4.1.0-734",
44
- "@elementor/editor-controls": "4.1.0-734",
45
- "@elementor/editor-documents": "4.1.0-734",
46
- "@elementor/editor-elements": "4.1.0-734",
47
- "@elementor/editor-interactions": "4.1.0-734",
48
- "@elementor/editor-panels": "4.1.0-734",
49
- "@elementor/editor-props": "4.1.0-734",
50
- "@elementor/editor-responsive": "4.1.0-734",
51
- "@elementor/editor-styles": "4.1.0-734",
52
- "@elementor/editor-styles-repository": "4.1.0-734",
53
- "@elementor/editor-ui": "4.1.0-734",
54
- "@elementor/editor-v1-adapters": "4.1.0-734",
42
+ "@elementor/editor": "4.1.0-736",
43
+ "@elementor/editor-canvas": "4.1.0-736",
44
+ "@elementor/editor-controls": "4.1.0-736",
45
+ "@elementor/editor-documents": "4.1.0-736",
46
+ "@elementor/editor-elements": "4.1.0-736",
47
+ "@elementor/editor-interactions": "4.1.0-736",
48
+ "@elementor/editor-panels": "4.1.0-736",
49
+ "@elementor/editor-props": "4.1.0-736",
50
+ "@elementor/editor-responsive": "4.1.0-736",
51
+ "@elementor/editor-styles": "4.1.0-736",
52
+ "@elementor/editor-styles-repository": "4.1.0-736",
53
+ "@elementor/editor-ui": "4.1.0-736",
54
+ "@elementor/editor-v1-adapters": "4.1.0-736",
55
55
  "@elementor/icons": "^1.68.0",
56
- "@elementor/editor-variables": "4.1.0-734",
57
- "@elementor/locations": "4.1.0-734",
58
- "@elementor/menus": "4.1.0-734",
59
- "@elementor/schema": "4.1.0-734",
60
- "@elementor/session": "4.1.0-734",
56
+ "@elementor/editor-variables": "4.1.0-736",
57
+ "@elementor/locations": "4.1.0-736",
58
+ "@elementor/menus": "4.1.0-736",
59
+ "@elementor/schema": "4.1.0-736",
60
+ "@elementor/session": "4.1.0-736",
61
61
  "@elementor/ui": "1.36.17",
62
- "@elementor/utils": "4.1.0-734",
63
- "@elementor/wp-media": "4.1.0-734",
62
+ "@elementor/utils": "4.1.0-736",
63
+ "@elementor/wp-media": "4.1.0-736",
64
64
  "@wordpress/i18n": "^5.13.0"
65
65
  },
66
66
  "peerDependencies": {
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { type BreakpointId, type BreakpointNode, getBreakpointsTree } from '@elementor/editor-responsive';
3
4
  import { getVariantByMeta, type StyleDefinition, type StyleDefinitionVariant } from '@elementor/editor-styles';
4
5
 
@@ -15,14 +16,14 @@ export const CustomCssIndicator = () => {
15
16
  element: { id: elementId },
16
17
  } = useElement();
17
18
 
18
- const style = React.useMemo(
19
+ const style = useMemo(
19
20
  () => ( styleId && provider ? provider.actions.get( styleId, { elementId } ) : null ),
20
21
  [ styleId, provider, elementId ]
21
22
  );
22
23
 
23
24
  const hasContent = Boolean( customCss?.raw?.trim() );
24
25
 
25
- const hasInheritedContent = React.useMemo( () => {
26
+ const hasInheritedContent = useMemo( () => {
26
27
  if ( hasContent ) {
27
28
  return false;
28
29
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { isDependencyMet, type PropsSchema, type PropType, type PropValue } from '@elementor/editor-props';
3
4
 
4
5
  import { type DynamicPropValue } from '../types';
@@ -15,7 +16,7 @@ export const DynamicConditionalControl: React.FC< DynamicConditionalControlProps
15
16
  propsSchema,
16
17
  dynamicSettings,
17
18
  } ) => {
18
- const defaults = React.useMemo< Record< string, PropValue | null > >( () => {
19
+ const defaults = useMemo< Record< string, PropValue | null > >( () => {
19
20
  if ( ! propsSchema ) {
20
21
  return {};
21
22
  }
@@ -27,7 +28,7 @@ export const DynamicConditionalControl: React.FC< DynamicConditionalControlProps
27
28
  }, {} );
28
29
  }, [ propsSchema ] );
29
30
 
30
- const convertedSettings = React.useMemo( () => {
31
+ const convertedSettings = useMemo( () => {
31
32
  if ( ! dynamicSettings ) {
32
33
  return {};
33
34
  }
@@ -48,7 +49,7 @@ export const DynamicConditionalControl: React.FC< DynamicConditionalControlProps
48
49
  );
49
50
  }, [ dynamicSettings ] );
50
51
 
51
- const effectiveSettings = React.useMemo( () => {
52
+ const effectiveSettings = useMemo( () => {
52
53
  return { ...defaults, ...convertedSettings } as Record< string, PropValue >;
53
54
  }, [ defaults, convertedSettings ] );
54
55