@automattic/jetpack-shared-extension-utils 1.2.2 → 1.2.4
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 +10 -0
- package/package.json +18 -18
- package/src/components/jetpack-editor-panel-logo/index.jsx +1 -2
- package/src/components/upgrade-nudge/index.jsx +0 -1
- package/src/components/wpcom-support-link.jsx +8 -8
- package/src/get-block-icon-from-metadata.js +1 -2
- package/src/get-block-icon-from-metadata.native.js +1 -2
- package/src/icons.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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.4] - 2025-07-03
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#44151]
|
|
11
|
+
|
|
12
|
+
## [1.2.3] - 2025-07-01
|
|
13
|
+
### Changed
|
|
14
|
+
- Internal updates.
|
|
15
|
+
|
|
8
16
|
## [1.2.2] - 2025-06-30
|
|
9
17
|
### Changed
|
|
10
18
|
- Data store: Expose the store object for better auto completion. [#43870]
|
|
@@ -688,6 +696,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
688
696
|
### Changed
|
|
689
697
|
- Core: prepare utility for release
|
|
690
698
|
|
|
699
|
+
[1.2.4]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.3...1.2.4
|
|
700
|
+
[1.2.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.2...1.2.3
|
|
691
701
|
[1.2.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.1...1.2.2
|
|
692
702
|
[1.2.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.0...1.2.1
|
|
693
703
|
[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.
|
|
3
|
+
"version": "1.2.4",
|
|
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,32 +19,32 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@automattic/color-studio": "4.1.0",
|
|
22
|
-
"@automattic/jetpack-analytics": "^1.0.
|
|
23
|
-
"@automattic/jetpack-base-styles": "^1.0.
|
|
24
|
-
"@automattic/jetpack-components": "^1.1.
|
|
25
|
-
"@automattic/jetpack-connection": "^1.2.
|
|
22
|
+
"@automattic/jetpack-analytics": "^1.0.2",
|
|
23
|
+
"@automattic/jetpack-base-styles": "^1.0.3",
|
|
24
|
+
"@automattic/jetpack-components": "^1.1.9",
|
|
25
|
+
"@automattic/jetpack-connection": "^1.2.9",
|
|
26
26
|
"@automattic/jetpack-script-data": "^0.4.4",
|
|
27
|
-
"@wordpress/api-fetch": "7.
|
|
28
|
-
"@wordpress/block-editor": "14.
|
|
29
|
-
"@wordpress/components": "29.
|
|
30
|
-
"@wordpress/compose": "7.
|
|
31
|
-
"@wordpress/data": "10.
|
|
32
|
-
"@wordpress/dom-ready": "4.
|
|
33
|
-
"@wordpress/element": "6.
|
|
34
|
-
"@wordpress/hooks": "4.
|
|
35
|
-
"@wordpress/i18n": "5.
|
|
36
|
-
"@wordpress/plugins": "7.
|
|
37
|
-
"@wordpress/url": "4.
|
|
27
|
+
"@wordpress/api-fetch": "7.26.0",
|
|
28
|
+
"@wordpress/block-editor": "14.21.0",
|
|
29
|
+
"@wordpress/components": "29.12.0",
|
|
30
|
+
"@wordpress/compose": "7.26.0",
|
|
31
|
+
"@wordpress/data": "10.26.0",
|
|
32
|
+
"@wordpress/dom-ready": "4.26.0",
|
|
33
|
+
"@wordpress/element": "6.26.0",
|
|
34
|
+
"@wordpress/hooks": "4.26.0",
|
|
35
|
+
"@wordpress/i18n": "5.26.0",
|
|
36
|
+
"@wordpress/plugins": "7.26.0",
|
|
37
|
+
"@wordpress/url": "4.26.0",
|
|
38
38
|
"clsx": "2.1.1",
|
|
39
39
|
"debug": "4.4.1",
|
|
40
40
|
"lodash": "4.17.21"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@automattic/jetpack-webpack-config": "workspace:*",
|
|
44
|
-
"@babel/core": "7.27.
|
|
44
|
+
"@babel/core": "7.27.7",
|
|
45
45
|
"@babel/plugin-transform-react-jsx": "7.27.1",
|
|
46
46
|
"@babel/preset-react": "7.27.1",
|
|
47
|
-
"@babel/runtime": "7.27.
|
|
47
|
+
"@babel/runtime": "7.27.6",
|
|
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",
|
|
@@ -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 {
|
|
8
|
+
* @return {import('react').Component} Jetpack logo component
|
|
10
9
|
*/
|
|
11
10
|
const JetpackEditorPanelLogo = () => (
|
|
12
11
|
<JetpackLogo
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ExternalLink } from '@wordpress/components';
|
|
2
2
|
import { useDispatch } from '@wordpress/data';
|
|
3
|
-
import
|
|
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}
|
|
9
|
-
* @param {string}
|
|
10
|
-
* @param {number}
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {Function}
|
|
13
|
-
* @param {object}
|
|
14
|
-
* @return {
|
|
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 {
|
|
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 {
|
|
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