@elementor/editor-editing-panel 0.18.0 → 0.19.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 +13 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +381 -330
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +291 -240
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/editing-panel-error-fallback.tsx +12 -0
- package/src/components/editing-panel.tsx +23 -12
- package/src/components/settings-tab.tsx +3 -3
- package/src/components/style-sections/background-section/background-color-control.tsx +20 -0
- package/src/components/style-sections/background-section/background-section.tsx +15 -0
- package/src/components/style-sections/effects-section/box-shadow-repeater.tsx +1 -1
- package/src/components/style-sections/spacing-section/linked-dimensions-control.tsx +1 -1
- package/src/components/style-sections/typography-section/text-alignment-control.tsx +1 -1
- package/src/components/style-sections/typography-section/text-direction-control.tsx +1 -1
- package/src/components/style-sections/typography-section/text-style-control.tsx +1 -1
- package/src/components/style-sections/typography-section/transform-control.tsx +1 -1
- package/src/components/style-tab.tsx +5 -3
- package/src/control-replacement.tsx +3 -0
- package/src/controls/components/text-field-inner-selection.tsx +2 -2
- package/src/controls/control-context.tsx +1 -1
- package/src/controls/control-replacement.ts +1 -1
- package/src/controls/control-types/color-control.tsx +1 -1
- package/src/controls/control-types/image-control.tsx +1 -1
- package/src/controls/control-types/image-media-control.tsx +2 -2
- package/src/controls/control-types/select-control.tsx +1 -1
- package/src/controls/control-types/size-control.tsx +1 -1
- package/src/controls/control-types/toggle-control.tsx +1 -1
- package/src/controls/create-control-replacement.tsx +53 -0
- package/src/controls/create-control.tsx +12 -3
- package/src/controls/hooks/use-style-control.ts +3 -3
- package/src/{hooks → controls/hooks}/use-widget-settings.ts +1 -1
- package/src/{props → controls/props}/is-transformable.ts +1 -2
- package/src/{types.ts → controls/props/types.ts} +0 -38
- package/src/{contexts/element-context.tsx → controls/providers/element-provider.tsx} +4 -4
- package/src/controls/settings-control.tsx +5 -5
- package/src/controls/style-control.tsx +1 -1
- package/src/{sync → controls/sync}/get-container.ts +1 -1
- package/src/{sync → controls/sync}/update-settings.ts +1 -1
- package/src/controls/types.ts +39 -0
- package/src/dynamics/components/dynamic-selection-control.tsx +1 -1
- package/src/dynamics/components/dynamic-selection.tsx +5 -5
- package/src/dynamics/dynamic-control.tsx +1 -1
- package/src/dynamics/hooks/use-dynamic-tag.ts +2 -2
- package/src/dynamics/hooks/use-prop-dynamic-action.tsx +2 -2
- package/src/dynamics/hooks/use-prop-dynamic-tags.ts +3 -3
- package/src/dynamics/hooks/use-prop-value-history.ts +3 -3
- package/src/dynamics/init.ts +1 -1
- package/src/dynamics/types.ts +2 -1
- package/src/dynamics/utils.ts +2 -2
- package/src/hooks/use-element-style-prop.ts +3 -2
- package/src/hooks/use-element-styles.ts +1 -1
- package/src/hooks/use-element-type.ts +1 -1
- package/src/index.ts +1 -1
- package/src/sync/get-element-styles.ts +2 -2
- package/src/sync/get-selected-elements.ts +1 -1
- package/src/sync/types.ts +2 -1
- package/src/sync/update-style.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e5a2a79: Add error handling
|
|
8
|
+
- 08bc1c0: Moved the element provider and types into controls
|
|
9
|
+
- d68e4df: Add background section with background-color control
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a4b1789: Add `CreateControlReplacement` util
|
|
14
|
+
- b9d3b21: Fix typography section controls alignment
|
|
15
|
+
|
|
3
16
|
## 0.18.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -25,11 +25,12 @@ type PropKey = string;
|
|
|
25
25
|
type ReplaceWhenParams = {
|
|
26
26
|
value: PropValue;
|
|
27
27
|
};
|
|
28
|
-
type
|
|
28
|
+
type CreateControlReplacement = {
|
|
29
29
|
component: ComponentType;
|
|
30
30
|
condition: ({ value }: ReplaceWhenParams) => boolean;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
declare const replaceControl: ({ component, condition }: CreateControlReplacement) => void;
|
|
33
34
|
|
|
34
35
|
type ControlContext<T extends PropValue> = {
|
|
35
36
|
bind: PropKey;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,11 +25,12 @@ type PropKey = string;
|
|
|
25
25
|
type ReplaceWhenParams = {
|
|
26
26
|
value: PropValue;
|
|
27
27
|
};
|
|
28
|
-
type
|
|
28
|
+
type CreateControlReplacement = {
|
|
29
29
|
component: ComponentType;
|
|
30
30
|
condition: ({ value }: ReplaceWhenParams) => boolean;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
declare const replaceControl: ({ component, condition }: CreateControlReplacement) => void;
|
|
33
34
|
|
|
34
35
|
type ControlContext<T extends PropValue> = {
|
|
35
36
|
bind: PropKey;
|