@elementor/editor-editing-panel 1.9.0 → 1.11.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/index.d.mts +1 -35
  3. package/dist/index.d.ts +1 -35
  4. package/dist/index.js +996 -1059
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +905 -970
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +18 -14
  9. package/src/components/css-classes/css-class-item.tsx +130 -0
  10. package/src/components/css-classes/css-class-menu.tsx +151 -0
  11. package/src/components/{css-class-selector.tsx → css-classes/css-class-selector.tsx} +34 -160
  12. package/src/components/style-sections/layout-section/display-field.tsx +9 -1
  13. package/src/components/style-sections/layout-section/flex-order-field.tsx +5 -5
  14. package/src/components/style-sections/layout-section/flex-size-field.tsx +1 -1
  15. package/src/components/style-sections/layout-section/gap-control-field.tsx +0 -2
  16. package/src/components/style-sections/position-section/dimensions-field.tsx +1 -1
  17. package/src/components/style-sections/position-section/position-section.tsx +1 -1
  18. package/src/components/style-sections/typography-section/font-weight-field.tsx +9 -5
  19. package/src/components/style-sections/typography-section/text-alignment-field.tsx +16 -8
  20. package/src/components/style-sections/typography-section/transform-field.tsx +12 -3
  21. package/src/components/style-tab.tsx +1 -1
  22. package/src/contexts/style-context.tsx +36 -5
  23. package/src/controls-registry/control.tsx +3 -12
  24. package/src/controls-registry/controls-registry.tsx +3 -1
  25. package/src/controls-registry/settings-field.tsx +8 -1
  26. package/src/dynamics/components/dynamic-selection.tsx +1 -1
  27. package/src/dynamics/dynamic-control.tsx +1 -1
  28. package/src/dynamics/types.ts +2 -2
  29. package/src/dynamics/utils.ts +2 -2
  30. package/src/errors.ts +22 -0
  31. package/src/hooks/use-persist-dynamic-value.ts +1 -1
  32. package/src/hooks/use-styles-fields.ts +151 -9
  33. package/src/hooks/use-unapply-class.ts +4 -0
  34. package/src/index.ts +1 -2
  35. package/src/init.ts +2 -4
  36. package/src/sync/types.ts +4 -3
  37. package/src/components/collapsible-field.tsx +0 -36
  38. package/src/components/conditional-tooltip-wrapper.tsx +0 -58
  39. package/src/components/css-class-menu.tsx +0 -125
  40. package/src/components/editable-field.tsx +0 -166
  41. package/src/contexts/css-class-item-context.tsx +0 -31
  42. package/src/css-classes.ts +0 -45
  43. package/src/hooks/use-session-storage.ts +0 -46
  44. package/src/sync/enqueue-font.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,110 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 910044c: update `@elementor/icons` and `@elementor/ui` packages.
8
+ - 9a41a86: Added condition to hide select control for tag bind when link is enabled
9
+ - 4ed562a: Support renaming label in classes manager.
10
+ - 95bde2a: Re-arranged CSS class selector code
11
+ - 6680c92: added svg widget
12
+ - 5caf78d: update `@elementor/ui` package.
13
+ - c162e6c: Update '@elementor/icons' version
14
+ - ad6fde0: Support history actions in style changes
15
+ - ddd8631: Changed text control layout to full
16
+ - ced00aa: Added display inline-block option to layout section
17
+
18
+ ### Patch Changes
19
+
20
+ - e6c904a: Make global classes state changes synchronous
21
+ - efdadea: Create validation utils in style repository
22
+ - da38fa9: Remove unused exports and add missing dependencies.
23
+ - c2466b8: Update transform control to add 'none' option
24
+ - 14cbb1f: Fix Font Weight control
25
+ - 749da01: Text and sizes UI changes.
26
+ - fbd809b: Refactor provider-based actions in CSS class menu
27
+ - 9ca4eab: Deleted '@elementor/utils/session-storage' and replaced it with '@elementor/session'
28
+ - a738627: Added rename action to the global classes menu
29
+ - 21e888e: Update text align control to use logical properties
30
+ - b8e2a85: Add data hooks support
31
+ - Updated dependencies [9fd9bae]
32
+ - Updated dependencies [c9133d7]
33
+ - Updated dependencies [86863c1]
34
+ - Updated dependencies [e6c904a]
35
+ - Updated dependencies [188069d]
36
+ - Updated dependencies [e441663]
37
+ - Updated dependencies [efdadea]
38
+ - Updated dependencies [da38fa9]
39
+ - Updated dependencies [910044c]
40
+ - Updated dependencies [9a41a86]
41
+ - Updated dependencies [9de8ba7]
42
+ - Updated dependencies [35f9714]
43
+ - Updated dependencies [2bf6b34]
44
+ - Updated dependencies [4ed562a]
45
+ - Updated dependencies [0953b40]
46
+ - Updated dependencies [6680c92]
47
+ - Updated dependencies [9ca4eab]
48
+ - Updated dependencies [15c964f]
49
+ - Updated dependencies [5caf78d]
50
+ - Updated dependencies [625448d]
51
+ - Updated dependencies [c162e6c]
52
+ - Updated dependencies [b4a6ac6]
53
+ - Updated dependencies [ffad70a]
54
+ - Updated dependencies [ad6fde0]
55
+ - Updated dependencies [d39b70b]
56
+ - Updated dependencies [ebd9676]
57
+ - Updated dependencies [9cc8def]
58
+ - Updated dependencies [e76d970]
59
+ - Updated dependencies [d99471a]
60
+ - Updated dependencies [baee3f3]
61
+ - Updated dependencies [b8e2a85]
62
+ - Updated dependencies [fbf6203]
63
+ - Updated dependencies [ceb1211]
64
+ - @elementor/editor-controls@0.9.0
65
+ - @elementor/editor-props@0.9.0
66
+ - @elementor/editor-styles-repository@0.7.0
67
+ - @elementor/editor-elements@0.5.2
68
+ - @elementor/editor-v1-adapters@0.10.0
69
+ - @elementor/editor-responsive@0.13.0
70
+ - @elementor/editor-panels@0.11.0
71
+ - @elementor/editor-ui@0.2.0
72
+ - @elementor/editor@0.18.0
73
+ - @elementor/utils@0.3.1
74
+ - @elementor/editor-styles@0.5.5
75
+
76
+ ## 1.10.0
77
+
78
+ ### Minor Changes
79
+
80
+ - c042725: Create `@elementor/editor-ui` package.
81
+ - 2b3f888: Show list of global classes in manager panel.
82
+ - 4fbe12c: Update `@elementor/icons` version.
83
+ - 19b0381: Change styles repository API
84
+
85
+ ### Patch Changes
86
+
87
+ - 65d6ac7: Ignore base styles in the editing panel css selector
88
+ - 6c4d4a7: refactored CSS class menu and fix it's keyboard navigation
89
+ - b34f498: Fix global class styles not updating
90
+ - 68efdb1: Show long classes with ellipsis and tooltip.
91
+ - Updated dependencies [d61b1bc]
92
+ - Updated dependencies [c042725]
93
+ - Updated dependencies [6c4d4a7]
94
+ - Updated dependencies [a8b60c9]
95
+ - Updated dependencies [4fbe12c]
96
+ - Updated dependencies [b34f498]
97
+ - Updated dependencies [19b0381]
98
+ - @elementor/editor-styles-repository@0.6.0
99
+ - @elementor/editor-elements@0.5.1
100
+ - @elementor/editor-ui@0.1.0
101
+ - @elementor/editor-controls@0.8.0
102
+ - @elementor/editor-panels@0.10.5
103
+ - @elementor/editor@0.17.5
104
+ - @elementor/editor-v1-adapters@0.9.1
105
+ - @elementor/editor-styles@0.5.4
106
+ - @elementor/editor-responsive@0.12.6
107
+
3
108
  ## 1.9.0
4
109
 
5
110
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -2,7 +2,6 @@ export { useBoundProp } from '@elementor/editor-controls';
2
2
  import * as React from 'react';
3
3
  import { ElementType, ComponentType } from 'react';
4
4
  import * as _elementor_editor_props from '@elementor/editor-props';
5
- import { StyleDefinitionState } from '@elementor/editor-styles';
6
5
  import * as _elementor_locations from '@elementor/locations';
7
6
 
8
7
  type PopoverActionProps = {
@@ -21,39 +20,6 @@ declare const replaceControl: ({ component, condition }: {
21
20
  }) => boolean;
22
21
  }) => void;
23
22
 
24
- declare const registerStateMenuItem: (args: {
25
- id: string;
26
- group?: "default" | undefined;
27
- priority?: number;
28
- overwrite?: boolean;
29
- } & ({
30
- props: StateMenuItemProps;
31
- useProps?: never;
32
- } | {
33
- useProps: () => StateMenuItemProps;
34
- props?: never;
35
- })) => void;
36
- declare const registerGlobalClassMenuItem: (args: {
37
- id: string;
38
- group?: "default" | undefined;
39
- priority?: number;
40
- overwrite?: boolean;
41
- } & ({
42
- props: GlobalClassMenuItemProps;
43
- useProps?: never;
44
- } | {
45
- useProps: () => GlobalClassMenuItemProps;
46
- props?: never;
47
- })) => void;
48
- type StateMenuItemProps = {
49
- state: StyleDefinitionState;
50
- disabled?: boolean;
51
- };
52
- type GlobalClassMenuItemProps = {
53
- text: string;
54
- onClick: () => void;
55
- };
56
-
57
23
  declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
58
24
 
59
25
  declare const usePanelActions: () => {
@@ -65,4 +31,4 @@ declare const usePanelStatus: () => {
65
31
  isBlocked: boolean;
66
32
  };
67
33
 
68
- export { type PopoverActionProps, injectIntoClassSelectorActions, registerGlobalClassMenuItem, registerStateMenuItem, replaceControl, usePanelActions, usePanelStatus };
34
+ export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export { useBoundProp } from '@elementor/editor-controls';
2
2
  import * as React from 'react';
3
3
  import { ElementType, ComponentType } from 'react';
4
4
  import * as _elementor_editor_props from '@elementor/editor-props';
5
- import { StyleDefinitionState } from '@elementor/editor-styles';
6
5
  import * as _elementor_locations from '@elementor/locations';
7
6
 
8
7
  type PopoverActionProps = {
@@ -21,39 +20,6 @@ declare const replaceControl: ({ component, condition }: {
21
20
  }) => boolean;
22
21
  }) => void;
23
22
 
24
- declare const registerStateMenuItem: (args: {
25
- id: string;
26
- group?: "default" | undefined;
27
- priority?: number;
28
- overwrite?: boolean;
29
- } & ({
30
- props: StateMenuItemProps;
31
- useProps?: never;
32
- } | {
33
- useProps: () => StateMenuItemProps;
34
- props?: never;
35
- })) => void;
36
- declare const registerGlobalClassMenuItem: (args: {
37
- id: string;
38
- group?: "default" | undefined;
39
- priority?: number;
40
- overwrite?: boolean;
41
- } & ({
42
- props: GlobalClassMenuItemProps;
43
- useProps?: never;
44
- } | {
45
- useProps: () => GlobalClassMenuItemProps;
46
- props?: never;
47
- })) => void;
48
- type StateMenuItemProps = {
49
- state: StyleDefinitionState;
50
- disabled?: boolean;
51
- };
52
- type GlobalClassMenuItemProps = {
53
- text: string;
54
- onClick: () => void;
55
- };
56
-
57
23
  declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
58
24
 
59
25
  declare const usePanelActions: () => {
@@ -65,4 +31,4 @@ declare const usePanelStatus: () => {
65
31
  isBlocked: boolean;
66
32
  };
67
33
 
68
- export { type PopoverActionProps, injectIntoClassSelectorActions, registerGlobalClassMenuItem, registerStateMenuItem, replaceControl, usePanelActions, usePanelStatus };
34
+ export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };