@automattic/jetpack-shared-extension-utils 1.2.2 → 1.2.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,10 @@ 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
+ ## [1.2.3] - 2025-07-01
9
+ ### Changed
10
+ - Internal updates.
11
+
8
12
  ## [1.2.2] - 2025-06-30
9
13
  ### Changed
10
14
  - Data store: Expose the store object for better auto completion. [#43870]
@@ -688,6 +692,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
688
692
  ### Changed
689
693
  - Core: prepare utility for release
690
694
 
695
+ [1.2.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.2...1.2.3
691
696
  [1.2.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.1...1.2.2
692
697
  [1.2.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.0...1.2.1
693
698
  [1.2.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.1.3...1.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "1.2.2",
3
+ "version": "1.2.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,10 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@automattic/color-studio": "4.1.0",
22
- "@automattic/jetpack-analytics": "^1.0.1",
23
- "@automattic/jetpack-base-styles": "^1.0.1",
24
- "@automattic/jetpack-components": "^1.1.7",
25
- "@automattic/jetpack-connection": "^1.2.7",
22
+ "@automattic/jetpack-analytics": "^1.0.2",
23
+ "@automattic/jetpack-base-styles": "^1.0.2",
24
+ "@automattic/jetpack-components": "^1.1.8",
25
+ "@automattic/jetpack-connection": "^1.2.8",
26
26
  "@automattic/jetpack-script-data": "^0.4.4",
27
27
  "@wordpress/api-fetch": "7.25.0",
28
28
  "@wordpress/block-editor": "14.20.0",
@@ -1,12 +1,11 @@
1
1
  import { JetpackLogo } from '@automattic/jetpack-components';
2
- import React from 'react';
3
2
 
4
3
  import './style.scss';
5
4
 
6
5
  /**
7
6
  * The Jetpack logo used for block editor panels
8
7
  *
9
- * @return {React.Component} Jetpack logo component
8
+ * @return {import('react').Component} Jetpack logo component
10
9
  */
11
10
  const JetpackEditorPanelLogo = () => (
12
11
  <JetpackLogo
@@ -1,7 +1,6 @@
1
1
  import { Button } from '@wordpress/components';
2
2
  import { __ } from '@wordpress/i18n';
3
3
  import clsx from 'clsx';
4
- import React from 'react';
5
4
 
6
5
  import './style.scss';
7
6
 
@@ -1,17 +1,17 @@
1
1
  import { ExternalLink } from '@wordpress/components';
2
2
  import { useDispatch } from '@wordpress/data';
3
- import React, { forwardRef } from 'react';
3
+ import { forwardRef } from 'react';
4
4
 
5
5
  /**
6
6
  * Renders a link that opens a WP.com support article in the Help Center.
7
7
  *
8
- * @param {object} props - The component props.
9
- * @param {string} props.supportLink - Support link URL.
10
- * @param {number} props.supportPostId - Support post ID.
11
- * @param {React.Component} props.children - Support link content.
12
- * @param {Function} [props.onClick] - Callback function to be called when the link is clicked.
13
- * @param {object} [props.style] - CSS properties to be applied to the link.
14
- * @return {React.JSX.Element} The component to render.
8
+ * @param {object} props - The component props.
9
+ * @param {string} props.supportLink - Support link URL.
10
+ * @param {number} props.supportPostId - Support post ID.
11
+ * @param {import('react').Component} props.children - Support link content.
12
+ * @param {Function} [props.onClick] - Callback function to be called when the link is clicked.
13
+ * @param {object} [props.style] - CSS properties to be applied to the link.
14
+ * @return {import('react').JSX.Element} The component to render.
15
15
  */
16
16
  export const WpcomSupportLink = forwardRef(
17
17
  ( { supportLink, supportPostId, children, onClick, style }, ref ) => {
@@ -1,4 +1,3 @@
1
- /* eslint-disable jsdoc/no-undefined-types */
2
1
  import { createElement } from '@wordpress/element';
3
2
  import getIconColor from './get-icon-color';
4
3
 
@@ -10,7 +9,7 @@ import getIconColor from './get-icon-color';
10
9
  * dynamically set the icon color later on.
11
10
  *
12
11
  * @param {object} metadata - Block.json content
13
- * @return {React.Component} Icon component
12
+ * @return {import('react').Component} Icon component
14
13
  */
15
14
  export function getBlockIconComponent( metadata ) {
16
15
  // Set default values
@@ -1,4 +1,3 @@
1
- /* eslint-disable jsdoc/no-undefined-types */
2
1
  import { SvgXml } from '@wordpress/primitives';
3
2
  import getIconColor from './get-icon-color';
4
3
 
@@ -10,7 +9,7 @@ import getIconColor from './get-icon-color';
10
9
  * dynamically set the icon color later on.
11
10
  *
12
11
  * @param {object} metadata - Block.json content
13
- * @return {React.JSX.Element|string} Icon component
12
+ * @return {import('react').JSX.Element|string} Icon component
14
13
  */
15
14
  export function getBlockIconComponent( metadata ) {
16
15
  // If the SVG has been passed as a string, use SvgXml to correctly parse it.
package/src/icons.js CHANGED
@@ -1,7 +1,6 @@
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 React from 'react';
5
4
  import { getIconColor } from './block-icons';
6
5
 
7
6
  import './icons.scss';