@automattic/jetpack-shared-extension-utils 2.0.6 → 2.0.9

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,21 @@ 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
+ ## [2.0.9] - 2026-07-20
9
+ ### Changed
10
+ - Update package dependencies. [#50510] [#50529]
11
+
12
+ ### Fixed
13
+ - Upgrade nudge: Replace `.wp-block` CSS class with `.jetpack-nudge-canvas` to avoid Gutenberg iframe compatibility warnings in the block editor. [#50260]
14
+
15
+ ## [2.0.8] - 2026-07-13
16
+ ### Changed
17
+ - Internal updates.
18
+
19
+ ## [2.0.7] - 2026-07-09
20
+ ### Changed
21
+ - Update package dependencies. [#49272]
22
+
8
23
  ## [2.0.6] - 2026-07-06
9
24
  ### Changed
10
25
  - Use store objects instead of string IDs. [#49810]
@@ -1000,6 +1015,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1000
1015
  ### Changed
1001
1016
  - Core: prepare utility for release
1002
1017
 
1018
+ [2.0.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.8...2.0.9
1019
+ [2.0.8]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.7...2.0.8
1020
+ [2.0.7]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.6...2.0.7
1003
1021
  [2.0.6]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.5...2.0.6
1004
1022
  [2.0.5]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.4...2.0.5
1005
1023
  [2.0.4]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.3...2.0.4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "2.0.6",
3
+ "version": "2.0.9",
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": {
@@ -16,7 +16,7 @@
16
16
  ".": "./index.js",
17
17
  "./components": "./src/components/index.js",
18
18
  "./components/wpcom-support-link": "./src/components/wpcom-support-link.jsx",
19
- "./icons": "./src/icons.js",
19
+ "./icons": "./src/icons.jsx",
20
20
  "./site-type-utils": "./src/site-type-utils.js",
21
21
  "./store/wordpress-com": "./src/store/wordpress-com/index.ts",
22
22
  "./store/wordpress-com/types": "./src/store/wordpress-com/types.ts"
@@ -29,27 +29,28 @@
29
29
  "dependencies": {
30
30
  "@automattic/color-studio": "4.1.0",
31
31
  "@automattic/jetpack-analytics": "^1.0.15",
32
- "@automattic/jetpack-base-styles": "^1.2.8",
33
- "@automattic/jetpack-components": "^1.12.14",
34
- "@automattic/jetpack-connection": "^1.5.0",
35
- "@automattic/jetpack-script-data": "^0.6.5",
36
- "@automattic/jetpack-shared-stores": "^0.1.3",
32
+ "@automattic/jetpack-base-styles": "^1.2.10",
33
+ "@automattic/jetpack-components": "^1.12.17",
34
+ "@automattic/jetpack-connection": "^2.0.2",
35
+ "@automattic/jetpack-script-data": "^0.6.6",
36
+ "@automattic/jetpack-shared-stores": "^0.2.0",
37
37
  "@types/jest": "30.0.0",
38
- "@wordpress/api-fetch": "7.50.0",
39
- "@wordpress/block-editor": "15.23.0",
40
- "@wordpress/components": "36.1.0",
41
- "@wordpress/compose": "8.3.0",
42
- "@wordpress/data": "10.50.0",
43
- "@wordpress/dom-ready": "4.50.0",
44
- "@wordpress/element": "8.2.0",
45
- "@wordpress/hooks": "4.50.0",
46
- "@wordpress/i18n": "6.23.0",
47
- "@wordpress/plugins": "7.50.0",
48
- "@wordpress/primitives": "4.50.0",
49
- "@wordpress/ui": "0.13.0",
50
- "@wordpress/url": "4.50.0",
38
+ "@wordpress/api-fetch": "7.51.0",
39
+ "@wordpress/block-editor": "16.0.0",
40
+ "@wordpress/components": "37.0.0",
41
+ "@wordpress/compose": "8.4.0",
42
+ "@wordpress/data": "10.51.0",
43
+ "@wordpress/dom-ready": "4.51.0",
44
+ "@wordpress/element": "8.3.0",
45
+ "@wordpress/hooks": "4.51.0",
46
+ "@wordpress/i18n": "6.24.0",
47
+ "@wordpress/plugins": "7.51.0",
48
+ "@wordpress/primitives": "4.51.0",
49
+ "@wordpress/ui": "0.17.0",
50
+ "@wordpress/url": "4.51.0",
51
51
  "clsx": "2.1.1",
52
- "debug": "4.4.3"
52
+ "debug": "4.4.3",
53
+ "social-logos": "^3.3.18"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@automattic/jetpack-webpack-config": "workspace:*",
@@ -59,7 +60,7 @@
59
60
  "@testing-library/react": "16.3.2",
60
61
  "@testing-library/user-event": "14.6.1",
61
62
  "@types/react": "18.3.28",
62
- "@typescript/native-preview": "7.0.0-dev.20260225.1",
63
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
63
64
  "babel-jest": "30.4.1",
64
65
  "jest": "30.4.2",
65
66
  "jetpack-js-tools": "workspace:*",
@@ -19,7 +19,7 @@ export const Nudge = ( {
19
19
  target = '_top',
20
20
  } ) => {
21
21
  const cssClasses = clsx( className, 'jetpack-upgrade-plan-banner', {
22
- 'wp-block': context === 'editor-canvas',
22
+ 'jetpack-nudge-canvas': context === 'editor-canvas',
23
23
  'block-editor-block-list__block': context === 'editor-canvas',
24
24
  'jetpack-upgrade-plan__hidden': ! visible,
25
25
  } );
@@ -47,8 +47,8 @@
47
47
  margin-bottom: 0;
48
48
  }
49
49
 
50
- .jetpack-upgrade-plan-banner.wp-block[data-align="right"] .jetpack-upgrade-plan-banner__wrapper,
51
- .jetpack-upgrade-plan-banner.wp-block[data-align="left"] .jetpack-upgrade-plan-banner__wrapper {
50
+ .jetpack-upgrade-plan-banner.jetpack-nudge-canvas[data-align="right"] .jetpack-upgrade-plan-banner__wrapper,
51
+ .jetpack-upgrade-plan-banner.jetpack-nudge-canvas[data-align="left"] .jetpack-upgrade-plan-banner__wrapper {
52
52
  max-width: 580px;
53
53
  width: 100%;
54
54
  }
@@ -1,6 +1,7 @@
1
1
  import colorStudio from '@automattic/color-studio';
2
2
  import { G, Path, Polygon, Rect, SVG, Circle } from '@wordpress/components';
3
3
  import clsx from 'clsx';
4
+ import 'social-logos/colors.css';
4
5
 
5
6
  import './icons.scss';
6
7
 
package/src/icons.scss CHANGED
@@ -4,22 +4,22 @@
4
4
  fill: gb.$gray-700;
5
5
 
6
6
  &.is-facebook {
7
- fill: var(--color-facebook);
7
+ fill: var(--jetpack-social-logo-color-facebook);
8
8
  }
9
9
 
10
10
  &.is-twitter {
11
- fill: var(--color-twitter);
11
+ fill: var(--jetpack-social-logo-color-twitter);
12
12
  }
13
13
 
14
14
  &.is-linkedin {
15
- fill: var(--color-linkedin);
15
+ fill: var(--jetpack-social-logo-color-linkedin);
16
16
  }
17
17
 
18
18
  &.is-tumblr {
19
- fill: var(--color-tumblr);
19
+ fill: var(--jetpack-social-logo-color-tumblr);
20
20
  }
21
21
 
22
22
  &.is-google {
23
- fill: var(--color-gplus);
23
+ fill: var(--jetpack-social-logo-color-google-plus);
24
24
  }
25
25
  }