@elementor/editor-responsive 0.3.0 → 0.4.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.4.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-responsive@0.3.1...@elementor/editor-responsive@0.4.0) (2023-06-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * add support for React 18 [ED-10905] ([#46](https://github.com/elementor/elementor-packages/issues/46)) ([c8915c6](https://github.com/elementor/elementor-packages/commit/c8915c6ea62550bcdeb5c8a576f311bedc35bcad))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.3.1](https://github.com/elementor/elementor-packages/compare/@elementor/editor-responsive@0.3.0...@elementor/editor-responsive@0.3.1) (2023-05-30)
18
+
19
+ **Note:** Version bump only for package @elementor/editor-responsive
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.3.0](https://github.com/elementor/elementor-packages/compare/@elementor/editor-responsive@0.2.2...@elementor/editor-responsive@0.3.0) (2023-05-21)
7
26
 
8
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-responsive",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -32,18 +32,18 @@
32
32
  "dev": "tsup --config=../../tsup.dev.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@elementor/editor-app-bar": "^0.4.0",
36
- "@elementor/editor-v1-adapters": "^0.2.0",
37
- "@elementor/icons": "^0.2.1",
38
- "@elementor/store": "^0.2.0",
35
+ "@elementor/editor-app-bar": "^0.5.0",
36
+ "@elementor/editor-v1-adapters": "^0.3.0",
37
+ "@elementor/icons": "^0.3.0",
38
+ "@elementor/store": "^0.3.0",
39
39
  "@elementor/ui": "^1.4.50",
40
40
  "@wordpress/i18n": "^4.31.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "react": "17.x"
43
+ "react": "17.x || 18.x"
44
44
  },
45
45
  "elementor": {
46
46
  "type": "extension"
47
47
  },
48
- "gitHead": "45afd449fda346eea0f8a431ebca7d6c1d518dd1"
48
+ "gitHead": "2ee431a07ec6af6ca2b9930c0b830e78696b194a"
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Breakpoint } from '../../types';
3
- import { render } from '@testing-library/react';
3
+ import { fireEvent, render } from '@testing-library/react';
4
4
  import useBreakpoints from '../../hooks/use-breakpoints';
5
5
  import BreakpointsSwitcher from '../breakpoints-switcher';
6
6
  import useBreakpointsActions from '../../hooks/use-breakpoints-actions';
@@ -112,7 +112,7 @@ describe( '@elementor/editor-responsive - Breakpoints Switcher', () => {
112
112
  selector: 'button',
113
113
  } );
114
114
 
115
- mobileTab.click();
115
+ fireEvent.click( mobileTab );
116
116
 
117
117
  // Assert.
118
118
  expect( activate ).toHaveBeenCalledWith( 'mobile' );
@@ -1,5 +1,5 @@
1
1
  import { runCommand } from '@elementor/editor-v1-adapters';
2
- import { renderHook } from '@testing-library/react-hooks';
2
+ import { renderHook } from '@testing-library/react';
3
3
  import useBreakpointsActions from '../use-breakpoints-actions';
4
4
 
5
5
  jest.mock( '@elementor/editor-v1-adapters', () => ( {
@@ -3,7 +3,7 @@ import { Slice } from '../../types';
3
3
  import { PropsWithChildren } from 'react';
4
4
  import { createSlice } from '../../store';
5
5
  import useBreakpoints from '../use-breakpoints';
6
- import { renderHook } from '@testing-library/react-hooks';
6
+ import { renderHook } from '@testing-library/react';
7
7
  import { createStore, dispatch, SliceState, Store, StoreProvider } from '@elementor/store';
8
8
 
9
9
  jest.mock( '@elementor/editor-v1-adapters', () => ( {