@elementor/editor-editing-panel 3.32.0-23 → 3.32.0-25
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/dist/index.d.mts +23 -2
- package/dist/index.d.ts +23 -2
- package/dist/index.js +858 -854
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +772 -771
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/components/custom-css.tsx +6 -8
- package/src/components/style-sections/layout-section/flex-order-field.tsx +2 -2
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-editing-panel",
|
|
3
|
-
"version": "3.32.0-
|
|
3
|
+
"version": "3.32.0-25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "3.32.0-
|
|
43
|
-
"@elementor/editor-canvas": "3.32.0-
|
|
44
|
-
"@elementor/editor-controls": "3.32.0-
|
|
45
|
-
"@elementor/editor-documents": "3.32.0-
|
|
46
|
-
"@elementor/editor-elements": "3.32.0-
|
|
47
|
-
"@elementor/editor-panels": "3.32.0-
|
|
48
|
-
"@elementor/editor-props": "3.32.0-
|
|
49
|
-
"@elementor/editor-responsive": "3.32.0-
|
|
50
|
-
"@elementor/editor-styles": "3.32.0-
|
|
51
|
-
"@elementor/editor-styles-repository": "3.32.0-
|
|
52
|
-
"@elementor/editor-ui": "3.32.0-
|
|
53
|
-
"@elementor/editor-v1-adapters": "3.32.0-
|
|
42
|
+
"@elementor/editor": "3.32.0-25",
|
|
43
|
+
"@elementor/editor-canvas": "3.32.0-25",
|
|
44
|
+
"@elementor/editor-controls": "3.32.0-25",
|
|
45
|
+
"@elementor/editor-documents": "3.32.0-25",
|
|
46
|
+
"@elementor/editor-elements": "3.32.0-25",
|
|
47
|
+
"@elementor/editor-panels": "3.32.0-25",
|
|
48
|
+
"@elementor/editor-props": "3.32.0-25",
|
|
49
|
+
"@elementor/editor-responsive": "3.32.0-25",
|
|
50
|
+
"@elementor/editor-styles": "3.32.0-25",
|
|
51
|
+
"@elementor/editor-styles-repository": "3.32.0-25",
|
|
52
|
+
"@elementor/editor-ui": "3.32.0-25",
|
|
53
|
+
"@elementor/editor-v1-adapters": "3.32.0-25",
|
|
54
54
|
"@elementor/icons": "1.46.0",
|
|
55
|
-
"@elementor/locations": "3.32.0-
|
|
56
|
-
"@elementor/menus": "3.32.0-
|
|
57
|
-
"@elementor/schema": "3.32.0-
|
|
58
|
-
"@elementor/session": "3.32.0-
|
|
55
|
+
"@elementor/locations": "3.32.0-25",
|
|
56
|
+
"@elementor/menus": "3.32.0-25",
|
|
57
|
+
"@elementor/schema": "3.32.0-25",
|
|
58
|
+
"@elementor/session": "3.32.0-25",
|
|
59
59
|
"@elementor/ui": "1.36.2",
|
|
60
|
-
"@elementor/utils": "3.32.0-
|
|
61
|
-
"@elementor/wp-media": "3.32.0-
|
|
60
|
+
"@elementor/utils": "3.32.0-25",
|
|
61
|
+
"@elementor/wp-media": "3.32.0-25",
|
|
62
62
|
"@wordpress/i18n": "^5.13.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CssEditor } from '@elementor/editor-controls';
|
|
3
3
|
|
|
4
4
|
import { useCustomCss } from '../hooks/use-custom-css';
|
|
5
5
|
import { SectionContent } from './section-content';
|
|
@@ -7,15 +7,13 @@ import { SectionContent } from './section-content';
|
|
|
7
7
|
export const CustomCss = () => {
|
|
8
8
|
const { customCss, setCustomCss } = useCustomCss();
|
|
9
9
|
|
|
10
|
+
const handleChange = ( value: string ) => {
|
|
11
|
+
setCustomCss( value, { history: { propDisplayName: 'Custom CSS' } } );
|
|
12
|
+
};
|
|
13
|
+
|
|
10
14
|
return (
|
|
11
15
|
<SectionContent>
|
|
12
|
-
<
|
|
13
|
-
value={ customCss?.raw || '' }
|
|
14
|
-
onChange={ ( ev: React.ChangeEvent< HTMLInputElement > ) =>
|
|
15
|
-
setCustomCss( ev.target.value, { history: { propDisplayName: 'Custom CSS' } } )
|
|
16
|
-
}
|
|
17
|
-
multiline
|
|
18
|
-
/>
|
|
16
|
+
<CssEditor value={ customCss?.raw || '' } onChange={ handleChange } />
|
|
19
17
|
</SectionContent>
|
|
20
18
|
);
|
|
21
19
|
};
|
|
@@ -58,10 +58,10 @@ export const FlexOrderField = () => {
|
|
|
58
58
|
history: { propDisplayName: ORDER_LABEL },
|
|
59
59
|
} );
|
|
60
60
|
|
|
61
|
-
const [ groupControlValue, setGroupControlValue ] = useState( getGroupControlValue( order?.value
|
|
61
|
+
const [ groupControlValue, setGroupControlValue ] = useState( getGroupControlValue( order?.value ?? null ) );
|
|
62
62
|
|
|
63
63
|
useEffect( () => {
|
|
64
|
-
const newGroupControlValue = getGroupControlValue( order?.value
|
|
64
|
+
const newGroupControlValue = getGroupControlValue( order?.value ?? null );
|
|
65
65
|
setGroupControlValue( newGroupControlValue );
|
|
66
66
|
}, [ order?.value ] );
|
|
67
67
|
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,10 @@ export { type ValidationEvent, type ValidationResult } from './components/creata
|
|
|
3
3
|
export { injectIntoCssClassConvert } from './components/css-classes/css-class-convert-local';
|
|
4
4
|
export { injectIntoClassSelectorActions } from './components/css-classes/css-class-selector';
|
|
5
5
|
export { PopoverBody } from './components/popover-body';
|
|
6
|
+
export { SectionContent } from './components/section-content';
|
|
7
|
+
export { CustomCss } from './components/custom-css';
|
|
6
8
|
export { useFontFamilies } from './components/style-sections/typography-section/hooks/use-font-families';
|
|
9
|
+
export { useCustomCss } from './hooks/use-custom-css';
|
|
7
10
|
export { useSectionWidth } from './contexts/section-context';
|
|
8
11
|
export { registerControlReplacement } from './control-replacement';
|
|
9
12
|
export { controlActionsMenu } from './controls-actions';
|