@automattic/jetpack-shared-extension-utils 0.11.0 → 0.11.2

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
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.11.2] - 2023-08-21
9
+ ### Changed
10
+ - Use the new method to render Connection initial state. [#32499]
11
+
12
+ ### Fixed
13
+ - Add a stub module to avoid the native mobile editor importing incompatible web modules. [#32468]
14
+
15
+ ## [0.11.1] - 2023-08-09
16
+ ### Changed
17
+ - Updated package dependencies. [#32166]
18
+
8
19
  ## [0.11.0] - 2023-08-07
9
20
  ### Added
10
21
  - Add shared block editor logo component. [#32257]
@@ -225,6 +236,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
225
236
  ### Changed
226
237
  - Core: prepare utility for release
227
238
 
239
+ [0.11.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.1...0.11.2
240
+ [0.11.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.0...0.11.1
228
241
  [0.11.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.9...0.11.0
229
242
  [0.10.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.8...0.10.9
230
243
  [0.10.8]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.7...0.10.8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Utility functions used by the block editor extensions",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme",
6
6
  "bugs": {
@@ -17,15 +17,15 @@
17
17
  "test": "jest"
18
18
  },
19
19
  "dependencies": {
20
- "@automattic/jetpack-analytics": "workspace:*",
21
- "@automattic/jetpack-components": "^0.41.0",
22
- "@automattic/jetpack-connection": "workspace:*",
23
- "@wordpress/api-fetch": "6.34.0",
24
- "@wordpress/compose": "6.14.0",
25
- "@wordpress/element": "5.14.0",
26
- "@wordpress/i18n": "4.37.0",
27
- "@wordpress/plugins": "6.5.0",
28
- "@wordpress/url": "3.38.0",
20
+ "@automattic/jetpack-analytics": "^0.1.26",
21
+ "@automattic/jetpack-components": "^0.41.1",
22
+ "@automattic/jetpack-connection": "^0.29.8",
23
+ "@wordpress/api-fetch": "6.35.0",
24
+ "@wordpress/compose": "6.15.0",
25
+ "@wordpress/element": "5.15.0",
26
+ "@wordpress/i18n": "4.38.0",
27
+ "@wordpress/plugins": "6.6.0",
28
+ "@wordpress/url": "3.39.0",
29
29
  "lodash": "4.17.21"
30
30
  },
31
31
  "devDependencies": {
@@ -38,7 +38,7 @@
38
38
  "react-dom": "18.2.0",
39
39
  "jetpack-js-tools": "workspace:*",
40
40
  "@automattic/jetpack-webpack-config": "workspace:*",
41
- "@wordpress/babel-plugin-import-jsx-pragma": "4.20.0",
41
+ "@wordpress/babel-plugin-import-jsx-pragma": "4.21.0",
42
42
  "@testing-library/dom": "8.19.1",
43
43
  "@testing-library/react": "13.4.0",
44
44
  "@testing-library/user-event": "14.4.3",
@@ -0,0 +1,4 @@
1
+ // The native mobile editor does not implement or use this module, but importing
2
+ // the web module results in critical errors due to web-specific dependencies.
3
+ // Thus, we provide a stub module here to avoid those errors.
4
+ export default () => null;
@@ -7,7 +7,7 @@ This library is only useful when the logged in user is connected to WordPress.co
7
7
  ```php
8
8
  use Automattic\Jetpack\Connection\Initial_State as Connection_Initial_State;
9
9
  // Adds Connection package initial state.
10
- wp_add_inline_script( 'your-app-script-handle-in-editor', Connection_Initial_State::render(), 'before' );
10
+ Connection_Initial_State::render_script( 'your-app-script-handle-in-editor' );
11
11
  ```
12
12
 
13
13
  Adding Tracks related class and including the check function in your admin ui page: