@elementor/editor-editing-panel 1.8.1 → 1.10.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 +74 -0
- package/dist/index.d.mts +10 -32
- package/dist/index.d.ts +10 -32
- package/dist/index.js +789 -824
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +772 -808
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -13
- package/src/components/css-class-menu.tsx +30 -54
- package/src/components/css-class-selector.tsx +35 -22
- package/src/components/editable-field.tsx +10 -2
- package/src/components/style-sections/layout-section/flex-size-field.tsx +3 -2
- package/src/components/style-tab.tsx +2 -2
- package/src/contexts/style-context.tsx +38 -7
- package/src/controls-registry/control.tsx +3 -12
- package/src/controls-registry/settings-field.tsx +2 -2
- package/src/errors.ts +22 -0
- package/src/hooks/use-styles-fields.ts +62 -14
- package/src/hooks/use-unapply-class.ts +7 -3
- package/src/index.ts +2 -1
- package/src/init.ts +0 -2
- package/src/components/conditional-tooltip-wrapper.tsx +0 -58
- package/src/contexts/css-class-item-context.tsx +0 -31
- package/src/css-classes.ts +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c042725: Create `@elementor/editor-ui` package.
|
|
8
|
+
- 2b3f888: Show list of global classes in manager panel.
|
|
9
|
+
- 4fbe12c: Update `@elementor/icons` version.
|
|
10
|
+
- 19b0381: Change styles repository API
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 65d6ac7: Ignore base styles in the editing panel css selector
|
|
15
|
+
- 6c4d4a7: refactored CSS class menu and fix it's keyboard navigation
|
|
16
|
+
- b34f498: Fix global class styles not updating
|
|
17
|
+
- 68efdb1: Show long classes with ellipsis and tooltip.
|
|
18
|
+
- Updated dependencies [d61b1bc]
|
|
19
|
+
- Updated dependencies [c042725]
|
|
20
|
+
- Updated dependencies [6c4d4a7]
|
|
21
|
+
- Updated dependencies [a8b60c9]
|
|
22
|
+
- Updated dependencies [4fbe12c]
|
|
23
|
+
- Updated dependencies [b34f498]
|
|
24
|
+
- Updated dependencies [19b0381]
|
|
25
|
+
- @elementor/editor-styles-repository@0.6.0
|
|
26
|
+
- @elementor/editor-elements@0.5.1
|
|
27
|
+
- @elementor/editor-ui@0.1.0
|
|
28
|
+
- @elementor/editor-controls@0.8.0
|
|
29
|
+
- @elementor/editor-panels@0.10.5
|
|
30
|
+
- @elementor/editor@0.17.5
|
|
31
|
+
- @elementor/editor-v1-adapters@0.9.1
|
|
32
|
+
- @elementor/editor-styles@0.5.4
|
|
33
|
+
- @elementor/editor-responsive@0.12.6
|
|
34
|
+
|
|
35
|
+
## 1.9.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- e3c4a37: Update the order of background repeater image controls.
|
|
40
|
+
- 99fccc1: Updated icons in background repeater image overlay size control and elementor-icons version
|
|
41
|
+
- 005d737: Register new css class manager panel.
|
|
42
|
+
- 7b499aa: Add Background Position control.
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- cfbd198: Update `@elementor/ui` version
|
|
47
|
+
- a13a209: Refactor editor-elements to not use the commands
|
|
48
|
+
- c9de3e2: Prevent `EditableField` blur on click in edit mode.
|
|
49
|
+
- Updated dependencies [b8b2053]
|
|
50
|
+
- Updated dependencies [d90521a]
|
|
51
|
+
- Updated dependencies [a2f5096]
|
|
52
|
+
- Updated dependencies [51a5ab9]
|
|
53
|
+
- Updated dependencies [27f5860]
|
|
54
|
+
- Updated dependencies [e3c4a37]
|
|
55
|
+
- Updated dependencies [aa5ab2b]
|
|
56
|
+
- Updated dependencies [f691712]
|
|
57
|
+
- Updated dependencies [cfbd198]
|
|
58
|
+
- Updated dependencies [f1a2ffb]
|
|
59
|
+
- Updated dependencies [a13a209]
|
|
60
|
+
- Updated dependencies [4d1fd00]
|
|
61
|
+
- Updated dependencies [1bec508]
|
|
62
|
+
- Updated dependencies [99fccc1]
|
|
63
|
+
- Updated dependencies [5829b05]
|
|
64
|
+
- Updated dependencies [554a6ce]
|
|
65
|
+
- Updated dependencies [f25fc07]
|
|
66
|
+
- Updated dependencies [92a8c22]
|
|
67
|
+
- Updated dependencies [7b499aa]
|
|
68
|
+
- @elementor/editor-styles-repository@0.5.0
|
|
69
|
+
- @elementor/editor-elements@0.5.0
|
|
70
|
+
- @elementor/editor-controls@0.7.0
|
|
71
|
+
- @elementor/editor-panels@0.10.4
|
|
72
|
+
- @elementor/editor@0.17.4
|
|
73
|
+
- @elementor/editor-props@0.8.0
|
|
74
|
+
- @elementor/editor-styles@0.5.3
|
|
75
|
+
- @elementor/menus@0.1.3
|
|
76
|
+
|
|
3
77
|
## 1.8.1
|
|
4
78
|
|
|
5
79
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
import * as _elementor_locations from '@elementor/locations';
|
|
6
6
|
|
|
7
7
|
type PopoverActionProps = {
|
|
8
8
|
title: string;
|
|
@@ -20,37 +20,15 @@ declare const replaceControl: ({ component, condition }: {
|
|
|
20
20
|
}) => boolean;
|
|
21
21
|
}) => void;
|
|
22
22
|
|
|
23
|
-
declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} & ({
|
|
29
|
-
props: StateMenuItemProps;
|
|
30
|
-
useProps?: never;
|
|
31
|
-
} | {
|
|
32
|
-
useProps: () => StateMenuItemProps;
|
|
33
|
-
props?: never;
|
|
34
|
-
})) => void;
|
|
35
|
-
declare const registerGlobalClassMenuItem: (args: {
|
|
36
|
-
id: string;
|
|
37
|
-
group?: "default" | undefined;
|
|
38
|
-
priority?: number;
|
|
39
|
-
overwrite?: boolean;
|
|
40
|
-
} & ({
|
|
41
|
-
props: GlobalClassMenuItemProps;
|
|
42
|
-
useProps?: never;
|
|
43
|
-
} | {
|
|
44
|
-
useProps: () => GlobalClassMenuItemProps;
|
|
45
|
-
props?: never;
|
|
46
|
-
})) => void;
|
|
47
|
-
type StateMenuItemProps = {
|
|
48
|
-
state: StyleState;
|
|
49
|
-
disabled?: boolean;
|
|
23
|
+
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
24
|
+
|
|
25
|
+
declare const usePanelActions: () => {
|
|
26
|
+
open: () => Promise<void>;
|
|
27
|
+
close: () => Promise<void>;
|
|
50
28
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
declare const usePanelStatus: () => {
|
|
30
|
+
isOpen: boolean;
|
|
31
|
+
isBlocked: boolean;
|
|
54
32
|
};
|
|
55
33
|
|
|
56
|
-
export { type PopoverActionProps,
|
|
34
|
+
export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
import * as _elementor_locations from '@elementor/locations';
|
|
6
6
|
|
|
7
7
|
type PopoverActionProps = {
|
|
8
8
|
title: string;
|
|
@@ -20,37 +20,15 @@ declare const replaceControl: ({ component, condition }: {
|
|
|
20
20
|
}) => boolean;
|
|
21
21
|
}) => void;
|
|
22
22
|
|
|
23
|
-
declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} & ({
|
|
29
|
-
props: StateMenuItemProps;
|
|
30
|
-
useProps?: never;
|
|
31
|
-
} | {
|
|
32
|
-
useProps: () => StateMenuItemProps;
|
|
33
|
-
props?: never;
|
|
34
|
-
})) => void;
|
|
35
|
-
declare const registerGlobalClassMenuItem: (args: {
|
|
36
|
-
id: string;
|
|
37
|
-
group?: "default" | undefined;
|
|
38
|
-
priority?: number;
|
|
39
|
-
overwrite?: boolean;
|
|
40
|
-
} & ({
|
|
41
|
-
props: GlobalClassMenuItemProps;
|
|
42
|
-
useProps?: never;
|
|
43
|
-
} | {
|
|
44
|
-
useProps: () => GlobalClassMenuItemProps;
|
|
45
|
-
props?: never;
|
|
46
|
-
})) => void;
|
|
47
|
-
type StateMenuItemProps = {
|
|
48
|
-
state: StyleState;
|
|
49
|
-
disabled?: boolean;
|
|
23
|
+
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
24
|
+
|
|
25
|
+
declare const usePanelActions: () => {
|
|
26
|
+
open: () => Promise<void>;
|
|
27
|
+
close: () => Promise<void>;
|
|
50
28
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
declare const usePanelStatus: () => {
|
|
30
|
+
isOpen: boolean;
|
|
31
|
+
isBlocked: boolean;
|
|
54
32
|
};
|
|
55
33
|
|
|
56
|
-
export { type PopoverActionProps,
|
|
34
|
+
export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
|