@elementor/editor-editing-panel 1.24.0 → 1.28.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 (36) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/index.d.mts +3 -1
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.js +448 -309
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +426 -287
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +11 -10
  9. package/src/components/css-classes/css-class-item.tsx +8 -10
  10. package/src/components/css-classes/css-class-menu.tsx +60 -12
  11. package/src/components/css-classes/css-class-selector.tsx +28 -27
  12. package/src/components/editing-panel-tabs.tsx +1 -8
  13. package/src/components/multi-combobox.tsx +3 -0
  14. package/src/components/style-indicator.tsx +23 -0
  15. package/src/components/style-sections/border-section/border-radius-field.tsx +4 -5
  16. package/src/components/style-sections/border-section/border-width-field.tsx +2 -3
  17. package/src/components/style-sections/layout-section/display-field.tsx +34 -28
  18. package/src/components/style-sections/layout-section/flex-size-field.tsx +28 -18
  19. package/src/components/style-sections/layout-section/layout-section.tsx +14 -2
  20. package/src/components/style-sections/typography-section/text-alignment-field.tsx +5 -6
  21. package/src/components/style-tab.tsx +2 -19
  22. package/src/contexts/style-context.tsx +2 -2
  23. package/src/controls-registry/control-type-container.tsx +2 -2
  24. package/src/controls-registry/styles-field.tsx +9 -2
  25. package/src/dynamics/dynamic-transformer.ts +61 -0
  26. package/src/dynamics/errors.ts +6 -0
  27. package/src/dynamics/init.ts +6 -0
  28. package/src/dynamics/types.ts +17 -0
  29. package/src/hooks/use-active-style-def-id.ts +36 -0
  30. package/src/hooks/use-styles-fields.ts +7 -7
  31. package/src/index.ts +1 -3
  32. package/src/init.ts +1 -1
  33. package/src/styles-inheritance/create-snapshots-manager.ts +16 -9
  34. package/src/styles-inheritance/create-styles-inheritance.ts +8 -4
  35. package/src/styles-inheritance/styles-inheritance-indicator.tsx +13 -31
  36. package/src/styles-inheritance/types.ts +7 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,107 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a53f563: Remove spacing and fix the title of css classes
8
+ - 2125601: Fix editing panel is breaking on styles undo when style is empty
9
+ - a27cc75: Style tab layout section show correct display value
10
+ - fe0ab45: Filter empty values from props when constructing styles inheritance snapshots
11
+
12
+ ### Patch Changes
13
+
14
+ - 93d3e45: Fix css class menu focus-visible inconsistency
15
+ - 42c42ee: Remove side-effects
16
+ - 5fa575c: Fix when switching documents it removes all the previous document styles
17
+ - 03dad77: Rename "defaultValue" to "placeholder" on bound prop context
18
+ - 64574e3: Refactor styles provider as a preparation for header/footer styles not being rendered
19
+ - 14d8b08: Show placeholder in empty class selector.
20
+ - Updated dependencies [f9d5d33]
21
+ - Updated dependencies [bba6b02]
22
+ - Updated dependencies [42c42ee]
23
+ - Updated dependencies [5fa575c]
24
+ - Updated dependencies [03dad77]
25
+ - Updated dependencies [a27cc75]
26
+ - Updated dependencies [6a882a0]
27
+ - Updated dependencies [044815b]
28
+ - Updated dependencies [64574e3]
29
+ - Updated dependencies [fe0ab45]
30
+ - Updated dependencies [fd5251c]
31
+ - @elementor/editor-canvas@0.18.0
32
+ - @elementor/editor-controls@0.25.0
33
+ - @elementor/editor-styles-repository@0.8.4
34
+ - @elementor/editor-panels@0.14.1
35
+ - @elementor/editor@0.18.6
36
+ - @elementor/editor-elements@0.8.1
37
+ - @elementor/editor-ui@0.7.1
38
+ - @elementor/editor-props@0.12.0
39
+ - @elementor/editor-styles@0.6.6
40
+
41
+ ## 1.27.0
42
+
43
+ ### Minor Changes
44
+
45
+ - 9b5e475: border control icons are messed up when flex direction changes
46
+ - 94aa98c: text alignment icons are affected by flex direction
47
+
48
+ ### Patch Changes
49
+
50
+ - 02fd724: Remove styles inheritance indicator if all inherited values are from a base style provider
51
+ - 13cc0d0: Fixed overflow in general tab for image widget
52
+ - c6937f8: Flex size field creates multiple local classes
53
+ - Updated dependencies [f82191d]
54
+ - Updated dependencies [e1bbdf1]
55
+ - Updated dependencies [02fd724]
56
+ - Updated dependencies [3973dda]
57
+ - Updated dependencies [f045ee0]
58
+ - Updated dependencies [3822513]
59
+ - Updated dependencies [830012f]
60
+ - Updated dependencies [babfa1c]
61
+ - Updated dependencies [f644084]
62
+ - @elementor/editor-canvas@0.17.0
63
+ - @elementor/editor-controls@0.24.0
64
+ - @elementor/editor-styles-repository@0.8.3
65
+ - @elementor/editor-responsive@0.13.4
66
+ - @elementor/editor-elements@0.8.0
67
+ - @elementor/editor-ui@0.7.0
68
+ - @elementor/editor-styles@0.6.5
69
+
70
+ ## 1.26.1
71
+
72
+ ### Patch Changes
73
+
74
+ - 8b40d87: Editing panel tabs styles update
75
+ - Updated dependencies [ad1f2ff]
76
+ - @elementor/editor-controls@0.23.0
77
+
78
+ ## 1.26.0
79
+
80
+ ### Minor Changes
81
+
82
+ - b31a032: Add dynamic support in client dom rendering
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [b31a032]
87
+ - @elementor/editor-canvas@0.16.1
88
+
89
+ ## 1.25.0
90
+
91
+ ### Minor Changes
92
+
93
+ - fdfc87a: Classes and selector UI updates.
94
+
95
+ ### Patch Changes
96
+
97
+ - 33bc54d: Add indication on styled states in the css class menu
98
+ - Updated dependencies [fdfc87a]
99
+ - Updated dependencies [548209b]
100
+ - @elementor/editor-ui@0.6.0
101
+ - @elementor/editor-controls@0.22.0
102
+ - @elementor/editor-elements@0.7.1
103
+ - @elementor/editor-styles-repository@0.8.2
104
+
3
105
  ## 1.24.0
4
106
 
5
107
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -31,4 +31,6 @@ declare const usePanelStatus: () => {
31
31
  isBlocked: boolean;
32
32
  };
33
33
 
34
- export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
34
+ declare function init(): void;
35
+
36
+ export { type PopoverActionProps, init, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
package/dist/index.d.ts CHANGED
@@ -31,4 +31,6 @@ declare const usePanelStatus: () => {
31
31
  isBlocked: boolean;
32
32
  };
33
33
 
34
- export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
34
+ declare function init(): void;
35
+
36
+ export { type PopoverActionProps, init, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };