Skip to content

Commit 833be49

Browse files
samiffmatticbot
authored andcommitted
Release backup-helper-script-manager 0.2.1.1
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7978563791
1 parent acfc3f0 commit 833be49

File tree

4 files changed

+25
-46
lines changed

4 files changed

+25
-46
lines changed

CHANGELOG.md

-10
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.47.1] - 2024-02-13
9-
### Changed
10-
- Updated package dependencies. [#35608]
11-
12-
## [0.47.0] - 2024-02-12
13-
### Changed
14-
- Change editor layout for social notes [#35536]
15-
168
## [0.46.0] - 2024-02-05
179
### Added
1810
- Add blog ID to the initial state. [#35006]
@@ -590,8 +582,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
590582
### Changed
591583
- Updated package dependencies. [#24470]
592584

593-
[0.47.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.47.0...v0.47.1
594-
[0.47.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.46.0...v0.47.0
595585
[0.46.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.45.2...v0.46.0
596586
[0.45.2]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.45.1...v0.45.2
597587
[0.45.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.45.0...v0.45.1

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@automattic/jetpack-publicize-components",
4-
"version": "0.47.1",
4+
"version": "0.46.0",
55
"description": "A library of JS components required by the Publicize editor plugin",
66
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme",
77
"bugs": {
@@ -19,33 +19,33 @@
1919
},
2020
"dependencies": {
2121
"@automattic/jetpack-analytics": "^0.1.29",
22-
"@automattic/jetpack-components": "^0.48.3",
23-
"@automattic/jetpack-connection": "^0.32.2",
24-
"@automattic/jetpack-shared-extension-utils": "^0.14.2",
22+
"@automattic/jetpack-components": "^0.48.1",
23+
"@automattic/jetpack-connection": "^0.32.0",
24+
"@automattic/jetpack-shared-extension-utils": "^0.14.1",
2525
"@automattic/social-previews": "2.0.1-beta.10",
26-
"@wordpress/annotations": "2.51.0",
27-
"@wordpress/api-fetch": "6.48.0",
28-
"@wordpress/block-editor": "12.19.0",
29-
"@wordpress/blocks": "12.28.0",
30-
"@wordpress/components": "26.0.0",
31-
"@wordpress/compose": "6.28.0",
32-
"@wordpress/data": "9.21.0",
33-
"@wordpress/edit-post": "7.28.0",
34-
"@wordpress/editor": "13.28.0",
35-
"@wordpress/element": "5.28.0",
36-
"@wordpress/hooks": "3.51.0",
37-
"@wordpress/html-entities": "3.51.0",
38-
"@wordpress/i18n": "4.51.0",
39-
"@wordpress/icons": "9.42.0",
40-
"@wordpress/notices": "4.19.0",
26+
"@wordpress/annotations": "2.50.0",
27+
"@wordpress/api-fetch": "6.47.0",
28+
"@wordpress/block-editor": "12.18.2",
29+
"@wordpress/blocks": "12.27.1",
30+
"@wordpress/components": "25.16.0",
31+
"@wordpress/compose": "6.27.0",
32+
"@wordpress/data": "9.20.0",
33+
"@wordpress/edit-post": "7.27.2",
34+
"@wordpress/editor": "13.27.2",
35+
"@wordpress/element": "5.27.0",
36+
"@wordpress/hooks": "3.50.0",
37+
"@wordpress/html-entities": "3.50.0",
38+
"@wordpress/i18n": "4.50.0",
39+
"@wordpress/icons": "9.41.0",
40+
"@wordpress/notices": "4.18.0",
4141
"classnames": "2.3.2",
4242
"prop-types": "15.8.1",
4343
"react-page-visibility": "7.0.0",
4444
"rememo": "4.0.1"
4545
},
4646
"devDependencies": {
4747
"@automattic/color-studio": "2.5.0",
48-
"@automattic/jetpack-base-styles": "^0.6.17",
48+
"@automattic/jetpack-base-styles": "^0.6.16",
4949
"@automattic/jetpack-webpack-config": "workspace:*",
5050
"@babel/core": "7.23.5",
5151
"@babel/plugin-transform-react-jsx": "7.23.4",
@@ -56,8 +56,8 @@
5656
"@testing-library/user-event": "14.5.2",
5757
"@types/jest": "29.5.12",
5858
"@types/react": "18.2.33",
59-
"@wordpress/babel-plugin-import-jsx-pragma": "4.34.0",
60-
"@wordpress/core-data": "6.28.0",
59+
"@wordpress/babel-plugin-import-jsx-pragma": "4.33.0",
60+
"@wordpress/core-data": "6.27.2",
6161
"babel-jest": "29.4.3",
6262
"jest": "29.7.0",
6363
"jest-environment-jsdom": "29.7.0",

src/components/form/share-post-form.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ export const SharePostForm: React.FC = () => {
1111
const { message, updateMessage, maxLength } = useSocialMediaMessage();
1212
const { isEnabled: isSocialImageGeneratorEnabledForPost } = useImageGeneratorConfig();
1313

14-
const { isEnhancedPublishingEnabled, isSocialImageGeneratorAvailable, isJetpackSocialNote } =
15-
usePublicizeConfig();
14+
const { isEnhancedPublishingEnabled, isSocialImageGeneratorAvailable } = usePublicizeConfig();
1615

1716
const shouldDisableMediaPicker =
1817
isSocialImageGeneratorAvailable && isSocialImageGeneratorEnabledForPost;
@@ -23,9 +22,7 @@ export const SharePostForm: React.FC = () => {
2322

2423
return (
2524
<>
26-
{ ! isJetpackSocialNote && (
27-
<MessageBoxControl maxLength={ maxLength } onChange={ updateMessage } message={ message } />
28-
) }
25+
<MessageBoxControl maxLength={ maxLength } onChange={ updateMessage } message={ message } />
2926
{ isEnhancedPublishingEnabled && (
3027
<MediaSection
3128
disabled={ shouldDisableMediaPicker }

src/hooks/use-publicize-config/index.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default function usePublicizeConfig() {
2424
const isRePublicizeFeatureAvailable =
2525
getJetpackExtensionAvailability( republicizeFeatureName )?.available || isShareLimitEnabled;
2626
const isPostPublished = useSelect( select => select( editorStore ).isCurrentPostPublished(), [] );
27-
const currentPostType = useSelect( select => select( editorStore ).getCurrentPostType(), [] );
2827

2928
const connectionsRootUrl =
3029
getJetpackData()?.social?.publicizeConnectionsUrl ??
@@ -100,11 +99,6 @@ export default function usePublicizeConfig() {
10099
*/
101100
const isAutoConversionEnabled = !! getJetpackData()?.social?.isAutoConversionEnabled;
102101

103-
/**\
104-
* Returns true if the post type is a Jetpack Social Note.
105-
*/
106-
const isJetpackSocialNote = 'jetpack-social-note' === currentPostType;
107-
108102
return {
109103
isPublicizeEnabledMeta,
110104
isPublicizeEnabled,
@@ -119,13 +113,11 @@ export default function usePublicizeConfig() {
119113
shouldShowAdvancedPlanNudge: sharesData.show_advanced_plan_upgrade_nudge,
120114
hasPaidPlan,
121115
isEnhancedPublishingEnabled,
122-
isSocialImageGeneratorAvailable:
123-
!! getJetpackData()?.social?.isSocialImageGeneratorAvailable && ! isJetpackSocialNote,
116+
isSocialImageGeneratorAvailable: !! getJetpackData()?.social?.isSocialImageGeneratorAvailable,
124117
isSocialImageGeneratorEnabled: !! getJetpackData()?.social?.isSocialImageGeneratorEnabled,
125118
connectionsAdminUrl: connectionsRootUrl + ( blogID ?? getSiteFragment() ),
126119
adminUrl: getJetpackData()?.social?.adminUrl,
127120
isAutoConversionEnabled,
128121
jetpackSharingSettingsUrl: getJetpackData()?.social?.jetpackSharingSettingsUrl,
129-
isJetpackSocialNote,
130122
};
131123
}

0 commit comments

Comments
 (0)