@elementor/editor-v1-adapters 0.7.0 → 0.8.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.
@@ -4,13 +4,13 @@ export type ExtendedWindow = Window & {
4
4
  $e: {
5
5
  routes: {
6
6
  isPartOf: ( route: string ) => boolean;
7
- }
8
- },
7
+ };
8
+ };
9
9
  elementor: {
10
10
  channels: {
11
11
  dataEditMode: {
12
12
  request: ( key: 'activeMode' ) => EditMode;
13
- }
14
- }
15
- }
16
- }
13
+ };
14
+ };
15
+ };
16
+ };
@@ -1,39 +0,0 @@
1
- export function dispatchCommandBefore( command: string ) {
2
- window.dispatchEvent( new CustomEvent( 'elementor/commands/run/before', {
3
- detail: {
4
- command,
5
- },
6
- } ) );
7
- }
8
-
9
- export function dispatchCommandAfter( command: string ) {
10
- window.dispatchEvent( new CustomEvent( 'elementor/commands/run/after', {
11
- detail: {
12
- command,
13
- },
14
- } ) );
15
- }
16
-
17
- export function dispatchRouteOpen( route: string ) {
18
- window.dispatchEvent( new CustomEvent( 'elementor/routes/open', {
19
- detail: {
20
- route,
21
- },
22
- } ) );
23
- }
24
-
25
- export function dispatchRouteClose( route: string ) {
26
- window.dispatchEvent( new CustomEvent( 'elementor/routes/close', {
27
- detail: {
28
- route,
29
- },
30
- } ) );
31
- }
32
-
33
- export function dispatchEditModeChange() {
34
- window.dispatchEvent( new CustomEvent( 'elementor/edit-mode/change' ) );
35
- }
36
-
37
- export function dispatchWindowEvent( event: string ) {
38
- window.dispatchEvent( new CustomEvent( event ) );
39
- }