@elementor/editor-editing-panel 3.32.0-23 → 3.32.0-24

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 CHANGED
@@ -3,7 +3,7 @@ export { useBoundProp } from '@elementor/editor-controls';
3
3
  import * as _elementor_locations from '@elementor/locations';
4
4
  import { StyleDefinition } from '@elementor/editor-styles';
5
5
  import * as React from 'react';
6
- import { ElementType, ComponentType } from 'react';
6
+ import { FC, PropsWithChildren, ElementType, ComponentType } from 'react';
7
7
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
8
8
  import * as _elementor_editor_props from '@elementor/editor-props';
9
9
  import * as _elementor_menus from '@elementor/menus';
@@ -29,8 +29,29 @@ declare const injectIntoClassSelectorActions: (args: _elementor_locations.Inject
29
29
  type Props = React.ComponentProps<typeof PopoverBody$1>;
30
30
  declare const PopoverBody: (props: Props) => React.JSX.Element;
31
31
 
32
+ type SectionContentProps = PropsWithChildren<{
33
+ gap?: number;
34
+ sx?: {
35
+ pt?: number;
36
+ };
37
+ }>;
38
+ declare const SectionContent: FC<SectionContentProps>;
39
+
40
+ declare const CustomCss: () => React.JSX.Element;
41
+
32
42
  declare const useFontFamilies: () => FontCategory[];
33
43
 
44
+ declare const useCustomCss: () => {
45
+ customCss: {
46
+ raw: string;
47
+ } | null;
48
+ setCustomCss: (raw: string, { history: { propDisplayName } }: {
49
+ history: {
50
+ propDisplayName: string;
51
+ };
52
+ }) => void;
53
+ };
54
+
34
55
  declare const useSectionWidth: () => number;
35
56
 
36
57
  declare const registerControlReplacement: (replacement: {
@@ -109,4 +130,4 @@ declare const stylesInheritanceTransformersRegistry: {
109
130
  };
110
131
  };
111
132
 
112
- export { type PopoverActionProps, PopoverBody, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
133
+ export { CustomCss, type PopoverActionProps, PopoverBody, SectionContent, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useCustomCss, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { useBoundProp } from '@elementor/editor-controls';
3
3
  import * as _elementor_locations from '@elementor/locations';
4
4
  import { StyleDefinition } from '@elementor/editor-styles';
5
5
  import * as React from 'react';
6
- import { ElementType, ComponentType } from 'react';
6
+ import { FC, PropsWithChildren, ElementType, ComponentType } from 'react';
7
7
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
8
8
  import * as _elementor_editor_props from '@elementor/editor-props';
9
9
  import * as _elementor_menus from '@elementor/menus';
@@ -29,8 +29,29 @@ declare const injectIntoClassSelectorActions: (args: _elementor_locations.Inject
29
29
  type Props = React.ComponentProps<typeof PopoverBody$1>;
30
30
  declare const PopoverBody: (props: Props) => React.JSX.Element;
31
31
 
32
+ type SectionContentProps = PropsWithChildren<{
33
+ gap?: number;
34
+ sx?: {
35
+ pt?: number;
36
+ };
37
+ }>;
38
+ declare const SectionContent: FC<SectionContentProps>;
39
+
40
+ declare const CustomCss: () => React.JSX.Element;
41
+
32
42
  declare const useFontFamilies: () => FontCategory[];
33
43
 
44
+ declare const useCustomCss: () => {
45
+ customCss: {
46
+ raw: string;
47
+ } | null;
48
+ setCustomCss: (raw: string, { history: { propDisplayName } }: {
49
+ history: {
50
+ propDisplayName: string;
51
+ };
52
+ }) => void;
53
+ };
54
+
34
55
  declare const useSectionWidth: () => number;
35
56
 
36
57
  declare const registerControlReplacement: (replacement: {
@@ -109,4 +130,4 @@ declare const stylesInheritanceTransformersRegistry: {
109
130
  };
110
131
  };
111
132
 
112
- export { type PopoverActionProps, PopoverBody, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
133
+ export { CustomCss, type PopoverActionProps, PopoverBody, SectionContent, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useCustomCss, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };