@automattic/jetpack-shared-extension-utils 0.10.8 → 0.11.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,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.0] - 2023-08-07
9
+ ### Added
10
+ - Add shared block editor logo component. [#32257]
11
+
12
+ ## [0.10.9] - 2023-07-17
13
+ ### Changed
14
+ - Updated package dependencies. [#31872]
15
+
8
16
  ## [0.10.8] - 2023-07-11
9
17
  ### Changed
10
18
  - Updated package dependencies. [#31785]
@@ -217,6 +225,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
217
225
  ### Changed
218
226
  - Core: prepare utility for release
219
227
 
228
+ [0.11.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.9...0.11.0
229
+ [0.10.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.8...0.10.9
220
230
  [0.10.8]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.7...0.10.8
221
231
  [0.10.7]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.6...0.10.7
222
232
  [0.10.6]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.5...0.10.6
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.10.8",
3
+ "version": "0.11.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": {
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@automattic/jetpack-analytics": "workspace:*",
21
+ "@automattic/jetpack-components": "^0.41.0",
21
22
  "@automattic/jetpack-connection": "workspace:*",
22
23
  "@wordpress/api-fetch": "6.34.0",
23
24
  "@wordpress/compose": "6.14.0",
@@ -28,8 +29,8 @@
28
29
  "lodash": "4.17.21"
29
30
  },
30
31
  "devDependencies": {
31
- "@babel/core": "7.21.5",
32
- "@babel/preset-react": "7.18.6",
32
+ "@babel/core": "7.22.9",
33
+ "@babel/preset-react": "7.22.5",
33
34
  "babel-jest": "29.3.1",
34
35
  "jest": "29.3.1",
35
36
  "jest-environment-jsdom": "29.3.1",
@@ -41,7 +42,7 @@
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",
44
- "@babel/plugin-transform-react-jsx": "7.21.5"
45
+ "@babel/plugin-transform-react-jsx": "7.22.5"
45
46
  },
46
47
  "exports": {
47
48
  ".": "./index.js"
@@ -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;
@@ -0,0 +1,3 @@
1
+ .jetpack-editor-panel-logo {
2
+ margin-left: 0.5em;
3
+ }