@elementor/editor-editing-panel 1.40.0 → 1.42.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.
- package/CHANGELOG.md +46 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1227 -745
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1133 -628
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -6
- package/src/action.tsx +26 -0
- package/src/components/add-or-remove-content.tsx +11 -3
- package/src/components/css-classes/css-class-item.tsx +3 -2
- package/src/components/css-classes/css-class-menu.tsx +15 -5
- package/src/components/css-classes/css-class-selector.tsx +1 -0
- package/src/components/css-classes/use-apply-and-unapply-class.ts +8 -4
- package/src/components/section-content.tsx +16 -6
- package/src/components/style-sections/background-section/background-section.tsx +6 -3
- package/src/components/style-sections/border-section/border-field.tsx +3 -0
- package/src/components/style-sections/layout-section/display-field.tsx +2 -1
- package/src/components/style-sections/layout-section/flex-order-field.tsx +5 -2
- package/src/components/style-sections/layout-section/flex-size-field.tsx +16 -12
- package/src/components/style-sections/size-section/object-fit-field.tsx +2 -6
- package/src/components/style-sections/size-section/object-position-field.tsx +2 -6
- package/src/components/style-sections/size-section/size-section.tsx +4 -10
- package/src/components/style-sections/typography-section/text-stroke-field.tsx +3 -0
- package/src/components/style-tab.tsx +1 -1
- package/src/contexts/style-context.tsx +11 -2
- package/src/contexts/styles-inheritance-context.tsx +9 -7
- package/src/controls-actions.ts +2 -0
- package/src/controls-registry/styles-field.tsx +3 -0
- package/src/init.ts +11 -1
- package/src/reset-style-props.tsx +31 -0
- package/src/styles-inheritance/components/action-icons.tsx +8 -0
- package/src/styles-inheritance/components/breakpoint-icon.tsx +47 -0
- package/src/styles-inheritance/components/index.ts +4 -0
- package/src/styles-inheritance/components/label-chip.tsx +48 -0
- package/src/styles-inheritance/components/value-component.tsx +25 -0
- package/src/styles-inheritance/consts.ts +17 -0
- package/src/styles-inheritance/create-styles-inheritance.ts +50 -12
- package/src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx +121 -0
- package/src/styles-inheritance/init-styles-inheritance-transformers.ts +38 -0
- package/src/styles-inheritance/init.ts +8 -0
- package/src/styles-inheritance/styles-inheritance-indicator.tsx +35 -32
- package/src/styles-inheritance/styles-inheritance-infotip.tsx +169 -20
- package/src/styles-inheritance/styles-inheritance-transformers-registry.tsx +3 -0
- package/src/styles-inheritance/transformers/background-color-overlay-transformer.tsx +27 -0
- package/src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx +50 -0
- package/src/styles-inheritance/transformers/background-image-overlay-transformer.tsx +79 -0
- package/src/styles-inheritance/transformers/background-overlay-transformer.tsx +20 -0
- package/src/styles-inheritance/types.ts +8 -2
- package/src/hooks/use-normalized-inheritance-chain-items.tsx +0 -75
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.42.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e732d81: Show Tooltip on hover and Infotip on click for style indicator.
|
|
8
|
+
- 8dca168: Prevent scrolling when the Indication Popover has been opened.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- cd4c3fe: Remove duplicated object fit set value.
|
|
13
|
+
- b7369f2: Update the chip color inside the Indication Popover.
|
|
14
|
+
- Updated dependencies [8f3a61b]
|
|
15
|
+
- @elementor/editor-controls@0.34.1
|
|
16
|
+
|
|
17
|
+
## 1.41.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 3b2514c: update indication popover ui
|
|
22
|
+
- 34ec021: Update the clear icon in the reset floating action
|
|
23
|
+
- 0ed1947: Added control value reset functionality
|
|
24
|
+
- 2c5df45: Update `@elementor/icons` package.
|
|
25
|
+
- 010ba54: Disable style tab controls by user capability.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 71835ef: Support style inheritance indicators in nested props controls
|
|
30
|
+
- 5b20079: Fix is-modified status not updated on class apply/unapply
|
|
31
|
+
- 7b0d10d: Show complex control values in styles inheritance popover
|
|
32
|
+
- 3725856: Initial style sections to be closed by default
|
|
33
|
+
- 688d69e: Fix class item remove button condition.
|
|
34
|
+
- Updated dependencies [71835ef]
|
|
35
|
+
- Updated dependencies [7b0d10d]
|
|
36
|
+
- Updated dependencies [da38004]
|
|
37
|
+
- Updated dependencies [a8780f6]
|
|
38
|
+
- Updated dependencies [3b2514c]
|
|
39
|
+
- Updated dependencies [03df0ff]
|
|
40
|
+
- Updated dependencies [0957941]
|
|
41
|
+
- Updated dependencies [0ed1947]
|
|
42
|
+
- Updated dependencies [2c5df45]
|
|
43
|
+
- Updated dependencies [010ba54]
|
|
44
|
+
- @elementor/editor-controls@0.34.0
|
|
45
|
+
- @elementor/editor-canvas@0.22.2
|
|
46
|
+
- @elementor/editor-styles-repository@0.10.1
|
|
47
|
+
- @elementor/editor-ui@0.10.0
|
|
48
|
+
|
|
3
49
|
## 1.40.0
|
|
4
50
|
|
|
5
51
|
### 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
|
|