@automattic/jetpack-shared-extension-utils 0.18.10 → 0.19.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
@@ -5,6 +5,18 @@ 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.19.0] - 2025-04-14
9
+ ### Changed
10
+ - Adjust relative imports in TypeScript sources to use correct extensions after enabling TypeScript's new `rewriteRelativeImportExtensions` option. [#42990]
11
+ - Update dependencies. [#43001]
12
+
13
+ ### Fixed
14
+ - Linting: Use double colon notation for pseudo-element selectors. [#43019]
15
+
16
+ ## [0.18.11] - 2025-04-07
17
+ ### Changed
18
+ - Linting: First pass of style coding standards. [#42734]
19
+
8
20
  ## [0.18.10] - 2025-04-02
9
21
  ### Changed
10
22
  - Update package dependencies. [#42809]
@@ -601,6 +613,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
601
613
  ### Changed
602
614
  - Core: prepare utility for release
603
615
 
616
+ [0.19.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.11...0.19.0
617
+ [0.18.11]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.10...0.18.11
604
618
  [0.18.10]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.9...0.18.10
605
619
  [0.18.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.8...0.18.9
606
620
  [0.18.8]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.7...0.18.8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "0.18.10",
3
+ "version": "0.19.0",
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": {
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@automattic/color-studio": "4.1.0",
22
22
  "@automattic/jetpack-analytics": "^0.1.36",
23
- "@automattic/jetpack-base-styles": "^0.6.45",
24
- "@automattic/jetpack-components": "^0.72.2",
25
- "@automattic/jetpack-connection": "^0.39.9",
26
- "@automattic/jetpack-script-data": "^0.3.0",
23
+ "@automattic/jetpack-base-styles": "^0.7.1",
24
+ "@automattic/jetpack-components": "^0.72.4",
25
+ "@automattic/jetpack-connection": "^0.39.11",
26
+ "@automattic/jetpack-script-data": "^0.4.0",
27
27
  "@wordpress/api-fetch": "7.21.0",
28
28
  "@wordpress/block-editor": "14.16.0",
29
29
  "@wordpress/components": "29.7.0",
@@ -10,22 +10,28 @@
10
10
  padding: 0 20px;
11
11
  border-radius: 2px;
12
12
  box-shadow: 0 0 1px inset $studio-white; }
13
+
13
14
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-title,
14
15
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .banner-description {
15
16
  color: $studio-white; }
17
+
16
18
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__title,
17
19
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .jetpack-upgrade-plan-banner__description {
18
20
  margin-right: 10px; }
21
+
19
22
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button {
20
23
  flex-shrink: 0;
21
24
  line-height: 1;
22
25
  margin-left: auto;
23
26
  height: 28px; }
27
+
24
28
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary {
25
29
  background: $studio-pink-40;
26
30
  color: $studio-white; }
31
+
27
32
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary:hover {
28
33
  background: $studio-pink-30; }
34
+
29
35
  .jetpack-upgrade-plan-banner .jetpack-upgrade-plan-banner__wrapper .components-button.is-primary.is-busy {
30
36
  background-size: 100px 100%;
31
37
  background-image: linear-gradient(-45deg, $studio-pink-40 28%, $studio-pink-60 28%, $studio-pink-60 72%, $studio-pink-40 72%); }
@@ -4,15 +4,19 @@
4
4
  &.is-facebook {
5
5
  fill: var( --color-facebook );
6
6
  }
7
+
7
8
  &.is-twitter {
8
9
  fill: var( --color-twitter );
9
10
  }
11
+
10
12
  &.is-linkedin {
11
13
  fill: var( --color-linkedin );
12
14
  }
15
+
13
16
  &.is-tumblr {
14
17
  fill: var( --color-tumblr );
15
18
  }
19
+
16
20
  &.is-google {
17
21
  fill: var( --color-gplus );
18
22
  }
package/src/icons.scss CHANGED
@@ -6,15 +6,19 @@
6
6
  &.is-facebook {
7
7
  fill: var( --color-facebook );
8
8
  }
9
+
9
10
  &.is-twitter {
10
11
  fill: var( --color-twitter );
11
12
  }
13
+
12
14
  &.is-linkedin {
13
15
  fill: var( --color-linkedin );
14
16
  }
17
+
15
18
  &.is-tumblr {
16
19
  fill: var( --color-tumblr );
17
20
  }
21
+
18
22
  &.is-google {
19
23
  fill: var( --color-gplus );
20
24
  }
@@ -18,8 +18,8 @@ import {
18
18
  ENDPOINT_AI_ASSISTANT_FEATURE,
19
19
  NEW_ASYNC_REQUEST_TIMER_INTERVAL,
20
20
  ACTION_SET_TIER_PLANS_ENABLED,
21
- } from './constants.js';
22
- import type { Plan, AiFeatureProps, SiteAIAssistantFeatureEndpointResponseProps } from './types.js';
21
+ } from './constants.ts';
22
+ import type { Plan, AiFeatureProps, SiteAIAssistantFeatureEndpointResponseProps } from './types.ts';
23
23
 
24
24
  /**
25
25
  * Map the response from the `sites/$site/ai-assistant-feature`
@@ -5,12 +5,12 @@ import { createReduxStore, register } from '@wordpress/data';
5
5
  /**
6
6
  * Internal dependencies
7
7
  */
8
- import actions from './actions.js';
9
- import reducer from './reducer.js';
8
+ import actions from './actions.ts';
9
+ import reducer from './reducer.ts';
10
10
  /**
11
11
  * Types
12
12
  */
13
- import type { AiFeatureProps, PlanStateProps } from './types.js';
13
+ import type { AiFeatureProps, PlanStateProps } from './types.ts';
14
14
 
15
15
  const store = 'wordpress-com/plans';
16
16
 
@@ -13,8 +13,8 @@ import {
13
13
  FREE_PLAN_REQUESTS_LIMIT,
14
14
  UNLIMITED_PLAN_REQUESTS_LIMIT,
15
15
  ACTION_SET_TIER_PLANS_ENABLED,
16
- } from './constants.js';
17
- import type { PlanStateProps, TierLimitProp } from './types.js';
16
+ } from './constants.ts';
17
+ import type { PlanStateProps, TierLimitProp } from './types.ts';
18
18
 
19
19
  const INITIAL_STATE: PlanStateProps = {
20
20
  plans: [],
@@ -2,12 +2,13 @@
2
2
  // Override core styles inherited from `.has-warning`:
3
3
  // we do want blocks with upgrade nudge warning to be interactive
4
4
  .block-editor-block-list__block.has-warning.is-interactive {
5
+
5
6
  > * {
6
7
  pointer-events: auto;
7
8
  user-select: auto;
8
9
  }
9
10
 
10
- &:after {
11
+ &::after {
11
12
  content: none;
12
13
  }
13
14
  }