@elementor/editor-editing-panel 1.39.0 → 1.41.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 (50) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/index.d.mts +9 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +1182 -735
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +1075 -617
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +7 -6
  9. package/src/action.tsx +26 -0
  10. package/src/components/add-or-remove-content.tsx +11 -3
  11. package/src/components/creatable-autocomplete/creatable-autocomplete.tsx +6 -2
  12. package/src/components/css-classes/css-class-item.tsx +3 -2
  13. package/src/components/css-classes/css-class-menu.tsx +15 -5
  14. package/src/components/css-classes/css-class-selector.tsx +2 -1
  15. package/src/components/css-classes/use-apply-and-unapply-class.ts +8 -4
  16. package/src/components/section-content.tsx +16 -6
  17. package/src/components/style-sections/background-section/background-section.tsx +6 -3
  18. package/src/components/style-sections/border-section/border-field.tsx +3 -0
  19. package/src/components/style-sections/layout-section/display-field.tsx +2 -1
  20. package/src/components/style-sections/layout-section/flex-order-field.tsx +5 -2
  21. package/src/components/style-sections/layout-section/flex-size-field.tsx +16 -12
  22. package/src/components/style-sections/size-section/object-fit-field.tsx +1 -1
  23. package/src/components/style-sections/size-section/object-position-field.tsx +1 -1
  24. package/src/components/style-sections/size-section/size-section.tsx +12 -11
  25. package/src/components/style-sections/typography-section/text-stroke-field.tsx +3 -0
  26. package/src/components/style-tab.tsx +1 -1
  27. package/src/contexts/style-context.tsx +11 -2
  28. package/src/contexts/styles-inheritance-context.tsx +9 -7
  29. package/src/controls-actions.ts +2 -0
  30. package/src/controls-registry/styles-field.tsx +3 -0
  31. package/src/init.ts +11 -1
  32. package/src/reset-style-props.tsx +31 -0
  33. package/src/styles-inheritance/components/action-icons.tsx +8 -0
  34. package/src/styles-inheritance/components/breakpoint-icon.tsx +47 -0
  35. package/src/styles-inheritance/components/index.ts +4 -0
  36. package/src/styles-inheritance/components/label-chip.tsx +43 -0
  37. package/src/styles-inheritance/components/value-component.tsx +25 -0
  38. package/src/styles-inheritance/consts.ts +17 -0
  39. package/src/styles-inheritance/create-styles-inheritance.ts +50 -12
  40. package/src/{hooks → styles-inheritance/hooks}/use-normalized-inheritance-chain-items.tsx +41 -11
  41. package/src/styles-inheritance/init-styles-inheritance-transformers.ts +38 -0
  42. package/src/styles-inheritance/init.ts +8 -0
  43. package/src/styles-inheritance/styles-inheritance-indicator.tsx +35 -32
  44. package/src/styles-inheritance/styles-inheritance-infotip.tsx +113 -19
  45. package/src/styles-inheritance/styles-inheritance-transformers-registry.tsx +3 -0
  46. package/src/styles-inheritance/transformers/background-color-overlay-transformer.tsx +27 -0
  47. package/src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx +50 -0
  48. package/src/styles-inheritance/transformers/background-image-overlay-transformer.tsx +79 -0
  49. package/src/styles-inheritance/transformers/background-overlay-transformer.tsx +20 -0
  50. package/src/styles-inheritance/types.ts +6 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3b2514c: update indication popover ui
8
+ - 34ec021: Update the clear icon in the reset floating action
9
+ - 0ed1947: Added control value reset functionality
10
+ - 2c5df45: Update `@elementor/icons` package.
11
+ - 010ba54: Disable style tab controls by user capability.
12
+
13
+ ### Patch Changes
14
+
15
+ - 71835ef: Support style inheritance indicators in nested props controls
16
+ - 5b20079: Fix is-modified status not updated on class apply/unapply
17
+ - 7b0d10d: Show complex control values in styles inheritance popover
18
+ - 3725856: Initial style sections to be closed by default
19
+ - 688d69e: Fix class item remove button condition.
20
+ - Updated dependencies [71835ef]
21
+ - Updated dependencies [7b0d10d]
22
+ - Updated dependencies [da38004]
23
+ - Updated dependencies [a8780f6]
24
+ - Updated dependencies [3b2514c]
25
+ - Updated dependencies [03df0ff]
26
+ - Updated dependencies [0957941]
27
+ - Updated dependencies [0ed1947]
28
+ - Updated dependencies [2c5df45]
29
+ - Updated dependencies [010ba54]
30
+ - @elementor/editor-controls@0.34.0
31
+ - @elementor/editor-canvas@0.22.2
32
+ - @elementor/editor-styles-repository@0.10.1
33
+ - @elementor/editor-ui@0.10.0
34
+
35
+ ## 1.40.0
36
+
37
+ ### Minor Changes
38
+
39
+ - 67248fc: Move Aspect Ratio control to Collapse menu
40
+
41
+ ### Patch Changes
42
+
43
+ - 120cc05: Fix css class selector empty state issues.
44
+ - Updated dependencies [67248fc]
45
+ - @elementor/editor-controls@0.33.0
46
+
3
47
  ## 1.39.0
4
48
 
5
49
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -42,7 +42,16 @@ type ValidationResult = {
42
42
  };
43
43
  type ValidationEvent = 'inputChange' | 'create';
44
44
 
45
+ type ActionProps = {
46
+ title: string;
47
+ visible?: boolean;
48
+ icon: ElementType;
49
+ onClick: () => void;
50
+ };
51
+ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): React.JSX.Element | null;
52
+
45
53
  declare const controlActionsMenu: _elementor_menus.Menu<{
54
+ Action: typeof Action;
46
55
  PopoverAction: typeof PopoverAction;
47
56
  }, "default">;
48
57
 
package/dist/index.d.ts CHANGED
@@ -42,7 +42,16 @@ type ValidationResult = {
42
42
  };
43
43
  type ValidationEvent = 'inputChange' | 'create';
44
44
 
45
+ type ActionProps = {
46
+ title: string;
47
+ visible?: boolean;
48
+ icon: ElementType;
49
+ onClick: () => void;
50
+ };
51
+ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): React.JSX.Element | null;
52
+
45
53
  declare const controlActionsMenu: _elementor_menus.Menu<{
54
+ Action: typeof Action;
46
55
  PopoverAction: typeof PopoverAction;
47
56
  }, "default">;
48
57