diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ded6421edce1..f6111e92e8f78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1886,9 +1886,6 @@ importers: '@wordpress/browserslist-config': specifier: 6.7.0 version: 6.7.0 - core-js: - specifier: 3.23.5 - version: 3.23.5 sass: specifier: 1.64.1 version: 1.64.1 @@ -1927,9 +1924,6 @@ importers: autoprefixer: specifier: 10.4.14 version: 10.4.14(postcss@8.4.31) - core-js: - specifier: 3.23.5 - version: 3.23.5 glob: specifier: 10.4.1 version: 10.4.1 @@ -2418,9 +2412,6 @@ importers: autoprefixer: specifier: 10.4.14 version: 10.4.14(postcss@8.4.31) - core-js: - specifier: 3.23.5 - version: 3.23.5 glob: specifier: 10.4.1 version: 10.4.1 @@ -2785,8 +2776,8 @@ importers: specifier: 7.6.0 version: 7.6.0 core-js: - specifier: 3.23.5 - version: 3.23.5 + specifier: 3.38.1 + version: 3.38.1 jest: specifier: 29.7.0 version: 29.7.0 @@ -3136,8 +3127,8 @@ importers: specifier: 7.6.0 version: 7.6.0 core-js: - specifier: 3.23.5 - version: 3.23.5 + specifier: 3.38.1 + version: 3.38.1 jest: specifier: 29.7.0 version: 29.7.0 @@ -8943,9 +8934,6 @@ packages: core-js-compat@3.38.1: resolution: {integrity: sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==} - core-js@3.23.5: - resolution: {integrity: sha512-7Vh11tujtAZy82da4duVreQysIoO2EvVrur7y6IzZkH1IHPSekuDi8Vuw1+YKjkbfWLRD7Nc9ICQ/sIUDutcyg==} - core-js@3.38.1: resolution: {integrity: sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==} @@ -20834,8 +20822,6 @@ snapshots: dependencies: browserslist: 4.23.3 - core-js@3.23.5: {} - core-js@3.38.1: {} cosmiconfig@7.1.0: diff --git a/projects/js-packages/publicize-components/CHANGELOG.md b/projects/js-packages/publicize-components/CHANGELOG.md index 3e2d193641976..00120d2df4155 100644 --- a/projects/js-packages/publicize-components/CHANGELOG.md +++ b/projects/js-packages/publicize-components/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.71.0] - 2024-10-01 +### Added +- Social: Added support for Bluesky [#39561] + ## [0.70.1] - 2024-09-30 ### Changed - Update dependencies. [#39528] @@ -948,6 +952,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Updated package dependencies. [#24470] +[0.71.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.70.1...v0.71.0 [0.70.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.70.0...v0.70.1 [0.70.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.69.0...v0.70.0 [0.69.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.68.0...v0.69.0 diff --git a/projects/js-packages/publicize-components/changelog/add-bluesky-connection-ui b/projects/js-packages/publicize-components/changelog/add-bluesky-connection-ui deleted file mode 100644 index f7abf12df99fb..0000000000000 --- a/projects/js-packages/publicize-components/changelog/add-bluesky-connection-ui +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Social: Added support for Bluesky diff --git a/projects/js-packages/publicize-components/package.json b/projects/js-packages/publicize-components/package.json index 6aa9870bf19dc..a429123a8324c 100644 --- a/projects/js-packages/publicize-components/package.json +++ b/projects/js-packages/publicize-components/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-publicize-components", - "version": "0.70.1", + "version": "0.71.0", "description": "A library of JS components required by the Publicize editor plugin", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme", "bugs": { diff --git a/projects/packages/blaze/changelog/update-blaze-post-not-ready-behavior b/projects/packages/blaze/changelog/update-blaze-post-not-ready-behavior new file mode 100644 index 0000000000000..2be9dad32f1db --- /dev/null +++ b/projects/packages/blaze/changelog/update-blaze-post-not-ready-behavior @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Changes the error Blaze shows during sync to be a warning diff --git a/projects/packages/blaze/src/class-dashboard-rest-controller.php b/projects/packages/blaze/src/class-dashboard-rest-controller.php index 826b13a6d6dbd..de30672bf3e98 100644 --- a/projects/packages/blaze/src/class-dashboard-rest-controller.php +++ b/projects/packages/blaze/src/class-dashboard-rest-controller.php @@ -329,10 +329,6 @@ public function get_blaze_posts( $req ) { return array(); } - if ( ! $this->are_posts_ready() ) { - return new WP_Error( 'posts_not_ready', 'Posts are not synced yet.' ); - } - // We don't use sub_path in the blaze posts, only query strings if ( isset( $req['sub_path'] ) ) { unset( $req['sub_path'] ); @@ -353,6 +349,24 @@ public function get_blaze_posts( $req ) { $response['posts'] = $this->add_prices_in_posts( $response['posts'] ); } + $response = $this->add_warnings_to_posts_response( $response ); + + return $response; + } + + /** + * Adds warning flags to the posts response. + * + * @param array $response The response object. + * @return array + */ + private function add_warnings_to_posts_response( $response ) { + if ( ! $this->are_posts_ready() && is_array( $response ) ) { + $response['warnings'] = array_merge( + array( 'sync_in_progress' ), + $response['warnings'] ?? array() + ); + } return $response; } @@ -392,10 +406,6 @@ public function get_dsp_blaze_posts( $req ) { return array(); } - if ( ! $this->are_posts_ready() ) { - return new WP_Error( 'posts_not_ready', 'Posts are not synced yet.' ); - } - // We don't use sub_path in the blaze posts, only query strings if ( isset( $req['sub_path'] ) ) { unset( $req['sub_path'] ); @@ -412,6 +422,8 @@ public function get_dsp_blaze_posts( $req ) { $response['results'] = $this->add_prices_in_posts( $response['results'] ); } + $response = $this->add_warnings_to_posts_response( $response ); + return $response; } diff --git a/projects/packages/calypsoify/changelog/renovate-core-js-3.x b/projects/packages/calypsoify/changelog/renovate-core-js-3.x new file mode 100644 index 0000000000000..390dbc579d13c --- /dev/null +++ b/projects/packages/calypsoify/changelog/renovate-core-js-3.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed +Comment: Remove unneeded `core-js` JS dep. + diff --git a/projects/packages/calypsoify/package.json b/projects/packages/calypsoify/package.json index 78380b303665c..d83beee2bf25d 100644 --- a/projects/packages/calypsoify/package.json +++ b/projects/packages/calypsoify/package.json @@ -29,7 +29,6 @@ "devDependencies": { "@automattic/jetpack-webpack-config": "workspace:*", "@wordpress/browserslist-config": "6.7.0", - "core-js": "3.23.5", "sass": "1.64.1", "sass-loader": "12.4.0", "webpack": "5.94.0", diff --git a/projects/packages/classic-theme-helper/changelog/renovate-core-js-3.x b/projects/packages/classic-theme-helper/changelog/renovate-core-js-3.x new file mode 100644 index 0000000000000..390dbc579d13c --- /dev/null +++ b/projects/packages/classic-theme-helper/changelog/renovate-core-js-3.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed +Comment: Remove unneeded `core-js` JS dep. + diff --git a/projects/packages/classic-theme-helper/package.json b/projects/packages/classic-theme-helper/package.json index 0ff5cd083be86..bda3fe63aa8fe 100644 --- a/projects/packages/classic-theme-helper/package.json +++ b/projects/packages/classic-theme-helper/package.json @@ -31,7 +31,6 @@ "@wordpress/browserslist-config": "6.7.0", "@wordpress/dependency-extraction-webpack-plugin": "6.7.0", "autoprefixer": "10.4.14", - "core-js": "3.23.5", "glob": "10.4.1", "postcss": "8.4.31", "postcss-loader": "6.2.0", diff --git a/projects/packages/masterbar/changelog/fix-submenu-jetpack-null b/projects/packages/masterbar/changelog/fix-submenu-jetpack-null new file mode 100644 index 0000000000000..6519110c5c524 --- /dev/null +++ b/projects/packages/masterbar/changelog/fix-submenu-jetpack-null @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: Fix for WP.com sites + + diff --git a/projects/packages/masterbar/changelog/renovate-core-js-3.x b/projects/packages/masterbar/changelog/renovate-core-js-3.x new file mode 100644 index 0000000000000..390dbc579d13c --- /dev/null +++ b/projects/packages/masterbar/changelog/renovate-core-js-3.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed +Comment: Remove unneeded `core-js` JS dep. + diff --git a/projects/packages/masterbar/package.json b/projects/packages/masterbar/package.json index b79156aedeacf..938a8ca607c2b 100644 --- a/projects/packages/masterbar/package.json +++ b/projects/packages/masterbar/package.json @@ -36,7 +36,6 @@ "@wordpress/browserslist-config": "6.7.0", "@wordpress/dependency-extraction-webpack-plugin": "6.7.0", "autoprefixer": "10.4.14", - "core-js": "3.23.5", "glob": "10.4.1", "postcss": "8.4.31", "postcss-loader": "6.2.0", diff --git a/projects/packages/masterbar/src/admin-menu/class-atomic-admin-menu.php b/projects/packages/masterbar/src/admin-menu/class-atomic-admin-menu.php index 7b81df2be6ee3..4a22f09c7d1af 100644 --- a/projects/packages/masterbar/src/admin-menu/class-atomic-admin-menu.php +++ b/projects/packages/masterbar/src/admin-menu/class-atomic-admin-menu.php @@ -328,11 +328,15 @@ public function add_jetpack_menu() { parent::add_jetpack_menu(); } + $scan_position = $this->get_submenu_item_count( 'jetpack' ) - 1; + global $submenu; - $backup_submenu_label = __( 'Backup', 'jetpack-masterbar' ); - $submenu_labels = array_column( $submenu['jetpack'], 3 ); - $backup_position = array_search( $backup_submenu_label, $submenu_labels, true ); - $scan_position = $backup_position !== false ? $backup_position + 1 : $this->get_submenu_item_count( 'jetpack' ) - 1; + if ( isset( $submenu['jetpack'] ) ) { + $backup_submenu_label = __( 'Backup', 'jetpack-masterbar' ); + $submenu_labels = array_column( $submenu['jetpack'], 3 ); + $backup_position = array_search( $backup_submenu_label, $submenu_labels, true ); + $scan_position = $backup_position !== false ? $backup_position + 1 : $this->get_submenu_item_count( 'jetpack' ) - 1; + } // @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal -- Core should ideally document null for no-callback arg. https://core.trac.wordpress.org/ticket/52539. add_submenu_page( 'jetpack', esc_attr__( 'Scan', 'jetpack-masterbar' ), __( 'Scan', 'jetpack-masterbar' ), 'manage_options', 'https://wordpress.com/scan/history/' . $this->domain, null, $scan_position ); diff --git a/projects/packages/publicize/changelog/fix-social-bluesky-does-not-show-up-on-load b/projects/packages/publicize/changelog/fix-social-bluesky-does-not-show-up-on-load new file mode 100644 index 0000000000000..3258f9cb1a7c6 --- /dev/null +++ b/projects/packages/publicize/changelog/fix-social-bluesky-does-not-show-up-on-load @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Social: Fixed Bluesky not showing up on page load diff --git a/projects/packages/publicize/src/class-publicize.php b/projects/packages/publicize/src/class-publicize.php index 715d6cd3f8495..b1e59b1582bc4 100644 --- a/projects/packages/publicize/src/class-publicize.php +++ b/projects/packages/publicize/src/class-publicize.php @@ -566,6 +566,7 @@ public function get_services( $filter = 'all', $_blog_id = false, $_user_id = fa 'instagram-business' => array(), 'nextdoor' => array(), 'threads' => array(), + 'bluesky' => array(), ); if ( 'all' === $filter ) { diff --git a/projects/plugins/social/changelog/renovate-js-unit-testing-packages b/projects/packages/search/changelog/renovate-core-js-3.x similarity index 100% rename from projects/plugins/social/changelog/renovate-js-unit-testing-packages rename to projects/packages/search/changelog/renovate-core-js-3.x diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index d406808196f30..33e056c37e893 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -81,7 +81,7 @@ "autoprefixer": "10.4.14", "babel-jest": "29.4.3", "concurrently": "7.6.0", - "core-js": "3.23.5", + "core-js": "3.38.1", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "postcss": "8.4.31", diff --git a/projects/plugins/social/changelog/renovate-lock-file-maintenance b/projects/packages/wordads/changelog/renovate-core-js-3.x similarity index 100% rename from projects/plugins/social/changelog/renovate-lock-file-maintenance rename to projects/packages/wordads/changelog/renovate-core-js-3.x diff --git a/projects/packages/wordads/package.json b/projects/packages/wordads/package.json index 6e7dd857ea24d..dcc9a688a495a 100644 --- a/projects/packages/wordads/package.json +++ b/projects/packages/wordads/package.json @@ -74,7 +74,7 @@ "@wordpress/dependency-extraction-webpack-plugin": "6.7.0", "babel-jest": "29.4.3", "concurrently": "7.6.0", - "core-js": "3.23.5", + "core-js": "3.38.1", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "prettier": "npm:wp-prettier@3.0.3", diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx index 812d536a8e5d1..75b497f5429fa 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/connections.jsx @@ -71,7 +71,6 @@ export class DashConnections extends Component { ) }
- { __( 'Your site is connected to WordPress.com.', 'jetpack' ) } { this.props.isConnectionOwner && ( { __( 'You are the Jetpack owner.', 'jetpack' ) } @@ -100,7 +99,7 @@ export class DashConnections extends Component { */ userConnection() { const maybeShowLinkUnlinkBtn = this.props.isConnectionOwner ? null : ( - + ); let cardContent = ''; @@ -131,14 +130,7 @@ export class DashConnections extends Component { } if ( ! this.props.isLinked ) { - cardContent = ( -
-
- { __( 'Get the most out of Jetpack.', 'jetpack' ) } -
-
{ maybeShowLinkUnlinkBtn }
-
- ); + cardContent =
{ maybeShowLinkUnlinkBtn }
; } else if ( this.props.isFetchingUserData ) { cardContent = __( 'Loading…', 'jetpack' ); } else if ( ! this.props.wpComConnectedUser?.email ) { diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx index 077da4c240e10..fbb2b5a1e08fd 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx @@ -3,9 +3,10 @@ import { createInterpolateElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import Button from 'components/button'; import DashItem from 'components/dash-item'; +import JetpackBanner from 'components/jetpack-banner'; import analytics from 'lib/analytics'; import PropTypes from 'prop-types'; -import React, { Component } from 'react'; +import { Component } from 'react'; import { connect } from 'react-redux'; import { isOfflineMode, hasConnectedOwner, connectUser } from 'state/connection'; import { isModuleAvailable } from 'state/modules'; @@ -78,26 +79,29 @@ class DashMonitor extends Component { support={ support } className="jp-dash-item__is-inactive" noToggle={ ! this.props.hasConnectedOwner } + overrideContent={ + ( ! this.props.hasConnectedOwner && ! this.props.isOfflineMode && ( + + ) ) || + null + } >

{ this.props.isOfflineMode ? __( 'Unavailable in Offline Mode.', 'jetpack' ) : activateMessage }

- - { ! this.props.isOfflineMode && ! this.props.hasConnectedOwner && ( -

- { createInterpolateElement( - __( - ' account to use this feature.', - 'jetpack' - ), - { - Button: + { refetchedOnError && ( +

+ { createInterpolateElement( + __( + 'If the issue persists, please contact support.', + 'jetpack' + ), + { + supportLink: , + } + ) } +

+ ) } + + ) } + { ! isLoading && ! isError && (