@elementor/editor-editing-panel 1.9.0 → 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 +32 -0
- package/dist/index.d.mts +1 -35
- package/dist/index.d.ts +1 -35
- package/dist/index.js +577 -635
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +490 -546
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -11
- package/src/components/css-class-menu.tsx +28 -52
- package/src/components/css-class-selector.tsx +23 -18
- package/src/contexts/style-context.tsx +36 -5
- package/src/controls-registry/control.tsx +3 -12
- package/src/errors.ts +22 -0
- package/src/hooks/use-styles-fields.ts +49 -11
- package/src/hooks/use-unapply-class.ts +4 -0
- package/src/index.ts +0 -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,37 @@
|
|
|
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
|
+
|
|
3
35
|
## 1.9.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ 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 { StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
5
|
import * as _elementor_locations from '@elementor/locations';
|
|
7
6
|
|
|
8
7
|
type PopoverActionProps = {
|
|
@@ -21,39 +20,6 @@ declare const replaceControl: ({ component, condition }: {
|
|
|
21
20
|
}) => boolean;
|
|
22
21
|
}) => void;
|
|
23
22
|
|
|
24
|
-
declare const registerStateMenuItem: (args: {
|
|
25
|
-
id: string;
|
|
26
|
-
group?: "default" | undefined;
|
|
27
|
-
priority?: number;
|
|
28
|
-
overwrite?: boolean;
|
|
29
|
-
} & ({
|
|
30
|
-
props: StateMenuItemProps;
|
|
31
|
-
useProps?: never;
|
|
32
|
-
} | {
|
|
33
|
-
useProps: () => StateMenuItemProps;
|
|
34
|
-
props?: never;
|
|
35
|
-
})) => void;
|
|
36
|
-
declare const registerGlobalClassMenuItem: (args: {
|
|
37
|
-
id: string;
|
|
38
|
-
group?: "default" | undefined;
|
|
39
|
-
priority?: number;
|
|
40
|
-
overwrite?: boolean;
|
|
41
|
-
} & ({
|
|
42
|
-
props: GlobalClassMenuItemProps;
|
|
43
|
-
useProps?: never;
|
|
44
|
-
} | {
|
|
45
|
-
useProps: () => GlobalClassMenuItemProps;
|
|
46
|
-
props?: never;
|
|
47
|
-
})) => void;
|
|
48
|
-
type StateMenuItemProps = {
|
|
49
|
-
state: StyleDefinitionState;
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
};
|
|
52
|
-
type GlobalClassMenuItemProps = {
|
|
53
|
-
text: string;
|
|
54
|
-
onClick: () => void;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
23
|
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
58
24
|
|
|
59
25
|
declare const usePanelActions: () => {
|
|
@@ -65,4 +31,4 @@ declare const usePanelStatus: () => {
|
|
|
65
31
|
isBlocked: boolean;
|
|
66
32
|
};
|
|
67
33
|
|
|
68
|
-
export { type PopoverActionProps, injectIntoClassSelectorActions,
|
|
34
|
+
export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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 { StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
5
|
import * as _elementor_locations from '@elementor/locations';
|
|
7
6
|
|
|
8
7
|
type PopoverActionProps = {
|
|
@@ -21,39 +20,6 @@ declare const replaceControl: ({ component, condition }: {
|
|
|
21
20
|
}) => boolean;
|
|
22
21
|
}) => void;
|
|
23
22
|
|
|
24
|
-
declare const registerStateMenuItem: (args: {
|
|
25
|
-
id: string;
|
|
26
|
-
group?: "default" | undefined;
|
|
27
|
-
priority?: number;
|
|
28
|
-
overwrite?: boolean;
|
|
29
|
-
} & ({
|
|
30
|
-
props: StateMenuItemProps;
|
|
31
|
-
useProps?: never;
|
|
32
|
-
} | {
|
|
33
|
-
useProps: () => StateMenuItemProps;
|
|
34
|
-
props?: never;
|
|
35
|
-
})) => void;
|
|
36
|
-
declare const registerGlobalClassMenuItem: (args: {
|
|
37
|
-
id: string;
|
|
38
|
-
group?: "default" | undefined;
|
|
39
|
-
priority?: number;
|
|
40
|
-
overwrite?: boolean;
|
|
41
|
-
} & ({
|
|
42
|
-
props: GlobalClassMenuItemProps;
|
|
43
|
-
useProps?: never;
|
|
44
|
-
} | {
|
|
45
|
-
useProps: () => GlobalClassMenuItemProps;
|
|
46
|
-
props?: never;
|
|
47
|
-
})) => void;
|
|
48
|
-
type StateMenuItemProps = {
|
|
49
|
-
state: StyleDefinitionState;
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
};
|
|
52
|
-
type GlobalClassMenuItemProps = {
|
|
53
|
-
text: string;
|
|
54
|
-
onClick: () => void;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
23
|
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
58
24
|
|
|
59
25
|
declare const usePanelActions: () => {
|
|
@@ -65,4 +31,4 @@ declare const usePanelStatus: () => {
|
|
|
65
31
|
isBlocked: boolean;
|
|
66
32
|
};
|
|
67
33
|
|
|
68
|
-
export { type PopoverActionProps, injectIntoClassSelectorActions,
|
|
34
|
+
export { type PopoverActionProps, injectIntoClassSelectorActions, replaceControl, usePanelActions, usePanelStatus };
|