@elementor/editor-default-styles 4.3.0-1049 → 4.3.0-1051

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.
@@ -1,15 +0,0 @@
1
- import { type ActionProps } from '@elementor/editor-app-bar';
2
- import { TextIcon } from '@elementor/icons';
3
- import { __ } from '@wordpress/i18n';
4
-
5
- import { EVENT_REQUEST_OPEN_DEFAULT_STYLES } from '../default-styles-open-gate';
6
-
7
- export function useDefaultStylesActionProps(): ActionProps {
8
- return {
9
- title: __( 'Default Styles', 'elementor' ),
10
- icon: TextIcon,
11
- onClick: () => {
12
- window.dispatchEvent( new CustomEvent( EVENT_REQUEST_OPEN_DEFAULT_STYLES ) );
13
- },
14
- };
15
- }
@@ -1,24 +0,0 @@
1
- type ExtendedWindow = Window & {
2
- $e?: {
3
- components?: {
4
- get?: ( name: 'panel' ) =>
5
- | {
6
- blockUserInteractions?: () => void;
7
- unblockUserInteractions?: () => void;
8
- }
9
- | undefined;
10
- };
11
- };
12
- };
13
-
14
- export function blockPanelInteractions() {
15
- const extendedWindow = window as unknown as ExtendedWindow;
16
-
17
- extendedWindow.$e?.components?.get?.( 'panel' )?.blockUserInteractions?.();
18
- }
19
-
20
- export function unblockPanelInteractions() {
21
- const extendedWindow = window as unknown as ExtendedWindow;
22
-
23
- extendedWindow.$e?.components?.get?.( 'panel' )?.unblockUserInteractions?.();
24
- }