@elementor/editor-editing-panel 3.33.0-116 → 3.33.0-117

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-editing-panel",
3
- "version": "3.33.0-116",
3
+ "version": "3.33.0-117",
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.33.0-116",
43
- "@elementor/editor-canvas": "3.33.0-116",
44
- "@elementor/editor-controls": "3.33.0-116",
45
- "@elementor/editor-documents": "3.33.0-116",
46
- "@elementor/editor-elements": "3.33.0-116",
47
- "@elementor/editor-panels": "3.33.0-116",
48
- "@elementor/editor-props": "3.33.0-116",
49
- "@elementor/editor-responsive": "3.33.0-116",
50
- "@elementor/editor-styles": "3.33.0-116",
51
- "@elementor/editor-styles-repository": "3.33.0-116",
52
- "@elementor/editor-ui": "3.33.0-116",
53
- "@elementor/editor-v1-adapters": "3.33.0-116",
42
+ "@elementor/editor": "3.33.0-117",
43
+ "@elementor/editor-canvas": "3.33.0-117",
44
+ "@elementor/editor-controls": "3.33.0-117",
45
+ "@elementor/editor-documents": "3.33.0-117",
46
+ "@elementor/editor-elements": "3.33.0-117",
47
+ "@elementor/editor-panels": "3.33.0-117",
48
+ "@elementor/editor-props": "3.33.0-117",
49
+ "@elementor/editor-responsive": "3.33.0-117",
50
+ "@elementor/editor-styles": "3.33.0-117",
51
+ "@elementor/editor-styles-repository": "3.33.0-117",
52
+ "@elementor/editor-ui": "3.33.0-117",
53
+ "@elementor/editor-v1-adapters": "3.33.0-117",
54
54
  "@elementor/icons": "1.46.0",
55
- "@elementor/locations": "3.33.0-116",
56
- "@elementor/menus": "3.33.0-116",
57
- "@elementor/schema": "3.33.0-116",
58
- "@elementor/session": "3.33.0-116",
55
+ "@elementor/locations": "3.33.0-117",
56
+ "@elementor/menus": "3.33.0-117",
57
+ "@elementor/schema": "3.33.0-117",
58
+ "@elementor/session": "3.33.0-117",
59
59
  "@elementor/ui": "1.36.12",
60
- "@elementor/utils": "3.33.0-116",
61
- "@elementor/wp-media": "3.33.0-116",
60
+ "@elementor/utils": "3.33.0-117",
61
+ "@elementor/wp-media": "3.33.0-117",
62
62
  "@wordpress/i18n": "^5.13.0"
63
63
  },
64
64
  "peerDependencies": {
@@ -3,7 +3,6 @@ import { useState } from 'react';
3
3
  import { CLASSES_PROP_KEY } from '@elementor/editor-props';
4
4
  import { useActiveBreakpoint } from '@elementor/editor-responsive';
5
5
  import { type StyleDefinitionID, type StyleDefinitionState } from '@elementor/editor-styles';
6
- import { EXPERIMENTAL_FEATURES, isExperimentActive } from '@elementor/editor-v1-adapters';
7
6
  import { createLocation } from '@elementor/locations';
8
7
  import { SessionStorageProvider } from '@elementor/session';
9
8
  import { Box, Divider, Stack } from '@elementor/ui';
@@ -16,7 +15,6 @@ import { StyleProvider } from '../contexts/style-context';
16
15
  import { StyleInheritanceProvider } from '../contexts/styles-inheritance-context';
17
16
  import { useActiveStyleDefId } from '../hooks/use-active-style-def-id';
18
17
  import { CssClassSelector } from './css-classes/css-class-selector';
19
- import { CustomCss } from './custom-css';
20
18
  import { SectionsList } from './sections-list';
21
19
  import { BackgroundSection } from './style-sections/background-section/background-section';
22
20
  import { BorderSection } from './style-sections/border-section/border-section';
@@ -45,7 +43,6 @@ export const StyleTab = () => {
45
43
  const [ activeStyleDefId, setActiveStyleDefId ] = useActiveStyleDefId( currentClassesProp );
46
44
  const [ activeStyleState, setActiveStyleState ] = useState< StyleDefinitionState | null >( null );
47
45
  const breakpoint = useActiveBreakpoint();
48
- const shouldRenderCustomCss = isExperimentActive( EXPERIMENTAL_FEATURES.CUSTOM_CSS );
49
46
 
50
47
  return (
51
48
  <ClassesPropProvider prop={ currentClassesProp }>
@@ -171,17 +168,6 @@ export const StyleTab = () => {
171
168
  'transition',
172
169
  ] }
173
170
  />
174
- { shouldRenderCustomCss && (
175
- <StyleTabSection
176
- section={ {
177
- component: CustomCss,
178
- name: 'Custom CSS',
179
- title: __( 'Custom CSS', 'elementor' ),
180
- } }
181
- fields={ [ 'custom_css' ] }
182
- unmountOnExit={ false }
183
- />
184
- ) }
185
171
  <StyleTabSlot />
186
172
  </SectionsList>
187
173
  <Box sx={ { height: '150px' } } />
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@ export { injectIntoCssClassConvert } from './components/css-classes/css-class-co
4
4
  export { injectIntoClassSelectorActions } from './components/css-classes/css-class-selector';
5
5
  export { PopoverBody } from './components/popover-body';
6
6
  export { SectionContent } from './components/section-content';
7
- export { CustomCss } from './components/custom-css';
8
7
  export { useFontFamilies } from './components/style-sections/typography-section/hooks/use-font-families';
9
8
  export { useCustomCss } from './hooks/use-custom-css';
10
9
  export { useSectionWidth } from './contexts/section-context';
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import { type PropsWithChildren } from 'react';
3
- import { ControlAdornmentsProvider } from '@elementor/editor-controls';
4
-
5
- import { CustomCssIndicator } from './custom-css-indicator';
6
-
7
- export const CustomCssField = ( { children }: PropsWithChildren< object > ) => {
8
- return (
9
- <ControlAdornmentsProvider
10
- items={ [
11
- {
12
- id: 'custom-css-indicator',
13
- Adornment: CustomCssIndicator,
14
- },
15
- ] }
16
- >
17
- { children }
18
- </ControlAdornmentsProvider>
19
- );
20
- };
@@ -1,36 +0,0 @@
1
- import * as React from 'react';
2
- import { ControlAdornments, ControlFormLabel, CssEditor } from '@elementor/editor-controls';
3
- import { Stack } from '@elementor/ui';
4
- import { __ } from '@wordpress/i18n';
5
-
6
- import { useCustomCss } from '../hooks/use-custom-css';
7
- import { CustomCssField } from './custom-css-field';
8
- import { SectionContent } from './section-content';
9
-
10
- export const CustomCss = () => {
11
- const { customCss, setCustomCss } = useCustomCss();
12
- const [ localState, setLocalState ] = React.useState( {
13
- value: customCss?.raw || '',
14
- isValid: true,
15
- } );
16
-
17
- const handleChange = ( value: string, isValid: boolean ) => {
18
- setLocalState( { value, isValid } );
19
-
20
- if ( isValid ) {
21
- setCustomCss( value, { history: { propDisplayName: 'Custom CSS' } } );
22
- }
23
- };
24
-
25
- return (
26
- <SectionContent>
27
- <CustomCssField>
28
- <Stack direction="row" alignItems="center" gap={ 1 }>
29
- <ControlFormLabel>{ __( 'CSS code', 'elementor' ) }</ControlFormLabel>
30
- <ControlAdornments />
31
- </Stack>
32
- </CustomCssField>
33
- <CssEditor value={ localState.value } onChange={ handleChange } />
34
- </SectionContent>
35
- );
36
- };