@automattic/jetpack-shared-extension-utils 0.10.9 → 0.11.1
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,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
|
+
## [0.11.1] - 2023-08-09
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#32166]
|
|
11
|
+
|
|
12
|
+
## [0.11.0] - 2023-08-07
|
|
13
|
+
### Added
|
|
14
|
+
- Add shared block editor logo component. [#32257]
|
|
15
|
+
|
|
8
16
|
## [0.10.9] - 2023-07-17
|
|
9
17
|
### Changed
|
|
10
18
|
- Updated package dependencies. [#31872]
|
|
@@ -221,6 +229,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
221
229
|
### Changed
|
|
222
230
|
- Core: prepare utility for release
|
|
223
231
|
|
|
232
|
+
[0.11.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.0...0.11.1
|
|
233
|
+
[0.11.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.9...0.11.0
|
|
224
234
|
[0.10.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.8...0.10.9
|
|
225
235
|
[0.10.8]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.7...0.10.8
|
|
226
236
|
[0.10.7]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.6...0.10.7
|
package/index.js
CHANGED
|
@@ -16,3 +16,4 @@ export {
|
|
|
16
16
|
export { default as isCurrentUserConnected } from './src/is-current-user-connected';
|
|
17
17
|
export { default as useAnalytics } from './src/hooks/use-analytics';
|
|
18
18
|
export { default as useModuleStatus } from './src/hooks/use-module-status';
|
|
19
|
+
export { default as JetpackEditorPanelLogo } from './src/components/jetpack-editor-panel-logo';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-shared-extension-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
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": {
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@automattic/jetpack-analytics": "workspace:*",
|
|
21
|
+
"@automattic/jetpack-components": "^0.41.1",
|
|
21
22
|
"@automattic/jetpack-connection": "workspace:*",
|
|
22
|
-
"@wordpress/api-fetch": "6.
|
|
23
|
-
"@wordpress/compose": "6.
|
|
24
|
-
"@wordpress/element": "5.
|
|
25
|
-
"@wordpress/i18n": "4.
|
|
26
|
-
"@wordpress/plugins": "6.
|
|
27
|
-
"@wordpress/url": "3.
|
|
23
|
+
"@wordpress/api-fetch": "6.35.0",
|
|
24
|
+
"@wordpress/compose": "6.15.0",
|
|
25
|
+
"@wordpress/element": "5.15.0",
|
|
26
|
+
"@wordpress/i18n": "4.38.0",
|
|
27
|
+
"@wordpress/plugins": "6.6.0",
|
|
28
|
+
"@wordpress/url": "3.39.0",
|
|
28
29
|
"lodash": "4.17.21"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"react-dom": "18.2.0",
|
|
38
39
|
"jetpack-js-tools": "workspace:*",
|
|
39
40
|
"@automattic/jetpack-webpack-config": "workspace:*",
|
|
40
|
-
"@wordpress/babel-plugin-import-jsx-pragma": "4.
|
|
41
|
+
"@wordpress/babel-plugin-import-jsx-pragma": "4.21.0",
|
|
41
42
|
"@testing-library/dom": "8.19.1",
|
|
42
43
|
"@testing-library/react": "13.4.0",
|
|
43
44
|
"@testing-library/user-event": "14.4.3",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JetpackLogo } from '@automattic/jetpack-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import './style.scss';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Jetpack logo used for block editor panels
|
|
8
|
+
*
|
|
9
|
+
* @returns {React.Component} Jetpack logo component
|
|
10
|
+
*/
|
|
11
|
+
const JetpackEditorPanelLogo = () => (
|
|
12
|
+
<JetpackLogo
|
|
13
|
+
className="jetpack-editor-panel-logo"
|
|
14
|
+
height={ 16 }
|
|
15
|
+
logoColor="#1E1E1E"
|
|
16
|
+
showText={ false }
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
export default JetpackEditorPanelLogo;
|