@elementor/editor-editing-panel 1.5.1 → 1.6.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 +16 -0
- package/dist/index.d.mts +37 -3
- package/dist/index.d.ts +37 -3
- package/dist/index.js +708 -538
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +604 -420
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/css-class-menu.tsx +125 -0
- package/src/components/css-class-selector.tsx +71 -9
- package/src/components/style-tab.tsx +12 -3
- package/src/contexts/css-class-item-context.tsx +31 -0
- package/src/contexts/style-context.tsx +4 -3
- package/src/css-classes.ts +37 -0
- package/src/index.ts +1 -0
- package/src/init.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b18d1a6: Added pseudo selectors to css class selectors
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [6a3622a]
|
|
12
|
+
- Updated dependencies [b18d1a6]
|
|
13
|
+
- @elementor/editor-controls@0.4.1
|
|
14
|
+
- @elementor/editor-props@0.5.1
|
|
15
|
+
- @elementor/editor-styles@0.4.0
|
|
16
|
+
- @elementor/editor-elements@0.3.5
|
|
17
|
+
- @elementor/editor-styles-repository@0.3.2
|
|
18
|
+
|
|
3
19
|
## 1.5.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { useBoundProp } from '@elementor/editor-controls';
|
|
2
|
-
import * as
|
|
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 { StyleState } from '@elementor/editor-styles';
|
|
5
6
|
|
|
6
7
|
type PopoverActionProps = {
|
|
7
8
|
title: string;
|
|
@@ -13,10 +14,43 @@ type PopoverActionProps = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
declare const replaceControl: ({ component, condition }: {
|
|
16
|
-
component:
|
|
17
|
+
component: React.ComponentType;
|
|
17
18
|
condition: ({ value }: {
|
|
18
19
|
value: _elementor_editor_props.PropValue;
|
|
19
20
|
}) => boolean;
|
|
20
21
|
}) => void;
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
declare const registerStateMenuItem: (args: {
|
|
24
|
+
id: string;
|
|
25
|
+
group?: "default" | undefined;
|
|
26
|
+
priority?: number;
|
|
27
|
+
overwrite?: boolean;
|
|
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;
|
|
50
|
+
};
|
|
51
|
+
type GlobalClassMenuItemProps = {
|
|
52
|
+
text: string;
|
|
53
|
+
onClick: () => void;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { type PopoverActionProps, registerGlobalClassMenuItem, registerStateMenuItem, replaceControl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { useBoundProp } from '@elementor/editor-controls';
|
|
2
|
-
import * as
|
|
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 { StyleState } from '@elementor/editor-styles';
|
|
5
6
|
|
|
6
7
|
type PopoverActionProps = {
|
|
7
8
|
title: string;
|
|
@@ -13,10 +14,43 @@ type PopoverActionProps = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
declare const replaceControl: ({ component, condition }: {
|
|
16
|
-
component:
|
|
17
|
+
component: React.ComponentType;
|
|
17
18
|
condition: ({ value }: {
|
|
18
19
|
value: _elementor_editor_props.PropValue;
|
|
19
20
|
}) => boolean;
|
|
20
21
|
}) => void;
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
declare const registerStateMenuItem: (args: {
|
|
24
|
+
id: string;
|
|
25
|
+
group?: "default" | undefined;
|
|
26
|
+
priority?: number;
|
|
27
|
+
overwrite?: boolean;
|
|
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;
|
|
50
|
+
};
|
|
51
|
+
type GlobalClassMenuItemProps = {
|
|
52
|
+
text: string;
|
|
53
|
+
onClick: () => void;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { type PopoverActionProps, registerGlobalClassMenuItem, registerStateMenuItem, replaceControl };
|