@automattic/jetpack-shared-extension-utils 0.20.0 → 0.20.3

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,22 @@ 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.20.3] - 2025-06-02
9
+ ### Changed
10
+ - sass: `@use` rather than `@import` for `@automattic/jetpack-base-styles/gutenberg-base-styles`. [#43607]
11
+ - Update package dependencies. [#43711]
12
+
13
+ ## [0.20.2] - 2025-05-26
14
+ ### Added
15
+ - Janitorial: Ensure functionality related to WoA site checking is clearer. [#43481]
16
+
17
+ ### Changed
18
+ - Update package dependencies. [#43578]
19
+
20
+ ## [0.20.1] - 2025-05-22
21
+ ### Changed
22
+ - Update dependencies. [#43068]
23
+
8
24
  ## [0.20.0] - 2025-05-19
9
25
  ### Added
10
26
  - AI Assistant: Retrieve Chrome AI token from AI Features response and inject it from the frontend. [#43442]
@@ -629,6 +645,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
629
645
  ### Changed
630
646
  - Core: prepare utility for release
631
647
 
648
+ [0.20.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.20.2...0.20.3
649
+ [0.20.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.20.1...0.20.2
650
+ [0.20.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.20.0...0.20.1
632
651
  [0.20.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.3...0.20.0
633
652
  [0.19.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.2...0.19.3
634
653
  [0.19.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.1...0.19.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "0.20.0",
3
+ "version": "0.20.3",
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": {
@@ -19,24 +19,24 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@automattic/color-studio": "4.1.0",
22
- "@automattic/jetpack-analytics": "^0.1.36",
23
- "@automattic/jetpack-base-styles": "^0.7.4",
24
- "@automattic/jetpack-components": "^0.73.1",
25
- "@automattic/jetpack-connection": "^0.39.15",
26
- "@automattic/jetpack-script-data": "^0.4.1",
27
- "@wordpress/api-fetch": "7.22.0",
28
- "@wordpress/block-editor": "14.17.0",
29
- "@wordpress/components": "29.8.0",
30
- "@wordpress/compose": "7.22.0",
31
- "@wordpress/data": "10.22.0",
32
- "@wordpress/dom-ready": "4.22.0",
33
- "@wordpress/element": "6.22.0",
34
- "@wordpress/hooks": "4.22.0",
35
- "@wordpress/i18n": "5.22.0",
36
- "@wordpress/plugins": "7.22.0",
37
- "@wordpress/url": "4.22.0",
22
+ "@automattic/jetpack-analytics": "^0.1.37",
23
+ "@automattic/jetpack-base-styles": "^0.8.0",
24
+ "@automattic/jetpack-components": "^0.73.4",
25
+ "@automattic/jetpack-connection": "^0.39.18",
26
+ "@automattic/jetpack-script-data": "^0.4.2",
27
+ "@wordpress/api-fetch": "7.24.0",
28
+ "@wordpress/block-editor": "14.19.0",
29
+ "@wordpress/components": "29.10.0",
30
+ "@wordpress/compose": "7.24.0",
31
+ "@wordpress/data": "10.24.0",
32
+ "@wordpress/dom-ready": "4.24.0",
33
+ "@wordpress/element": "6.24.0",
34
+ "@wordpress/hooks": "4.24.0",
35
+ "@wordpress/i18n": "5.24.0",
36
+ "@wordpress/plugins": "7.24.0",
37
+ "@wordpress/url": "4.24.0",
38
38
  "clsx": "2.1.1",
39
- "debug": "4.4.0",
39
+ "debug": "4.4.1",
40
40
  "lodash": "4.17.21"
41
41
  },
42
42
  "devDependencies": {
@@ -48,7 +48,7 @@
48
48
  "@testing-library/dom": "10.4.0",
49
49
  "@testing-library/react": "16.2.0",
50
50
  "@testing-library/user-event": "14.6.1",
51
- "@wordpress/babel-plugin-import-jsx-pragma": "5.22.0",
51
+ "@wordpress/babel-plugin-import-jsx-pragma": "5.24.0",
52
52
  "babel-jest": "29.7.0",
53
53
  "jest": "29.7.0",
54
54
  "jest-environment-jsdom": "29.7.0",
@@ -1,19 +1,18 @@
1
- @import '@automattic/jetpack-base-styles/gutenberg-base-styles';
2
- @import "@automattic/color-studio/dist/color-variables";
1
+ @use "@automattic/color-studio/dist/color-variables" as studio;
3
2
 
4
3
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper {
5
4
  display: flex;
6
5
  justify-content: space-between;
7
6
  align-items: center;
8
7
  font-size: 14px;
9
- background: $studio-black;
8
+ background: studio.$studio-black;
10
9
  padding: 0 20px;
11
10
  border-radius: 2px;
12
- box-shadow: 0 0 1px inset $studio-white; }
11
+ box-shadow: 0 0 1px inset studio.$studio-white; }
13
12
 
14
13
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-title,
15
14
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-description {
16
- color: $studio-white; }
15
+ color: studio.$studio-white; }
17
16
 
18
17
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__title,
19
18
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__description {
@@ -26,15 +25,15 @@
26
25
  height: 28px; }
27
26
 
28
27
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary {
29
- background: $studio-pink-40;
30
- color: $studio-white; }
28
+ background: studio.$studio-pink-40;
29
+ color: studio.$studio-white; }
31
30
 
32
31
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary:hover {
33
- background: $studio-pink-30; }
32
+ background: studio.$studio-pink-30; }
34
33
 
35
34
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary.is-busy {
36
35
  background-size: 100px 100%;
37
- background-image: linear-gradient(-45deg, $studio-pink-40 28%, $studio-pink-60 28%, $studio-pink-60 72%, $studio-pink-40 72%); }
36
+ background-image: linear-gradient(-45deg, studio.$studio-pink-40 28%, studio.$studio-pink-60 28%, studio.$studio-pink-60 72%, studio.$studio-pink-40 72%); }
38
37
 
39
38
  .jetpack-upgrade-plan-banner.block-editor-block-list__block {
40
39
  margin-top: 0;
package/src/icons.scss CHANGED
@@ -1,7 +1,7 @@
1
- @import '@automattic/jetpack-base-styles/gutenberg-base-styles';
1
+ @use '@automattic/jetpack-base-styles/gutenberg-base-styles' as gb;
2
2
 
3
3
  .jetpack-gutenberg-social-icon {
4
- fill: $gray-700;
4
+ fill: gb.$gray-700;
5
5
 
6
6
  &.is-facebook {
7
7
  fill: var( --color-facebook );
@@ -29,6 +29,16 @@ export function isAtomicSite() {
29
29
  return getSiteType() === 'atomic';
30
30
  }
31
31
 
32
+ /**
33
+ * Check if environment is a WoA site.
34
+ * Replacement function for isAtomicSite.
35
+ *
36
+ * @return {boolean} True for WoA sites.
37
+ */
38
+ export function isWoASite() {
39
+ return getSiteType() === 'atomic';
40
+ }
41
+
32
42
  /**
33
43
  * Return whether the current blog is set to private. (if blog_public option is -1)
34
44
  *