Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into update/wordpress-esl…
Browse files Browse the repository at this point in the history
…int-plugin
  • Loading branch information
anomiex committed Sep 10, 2024
2 parents 0065fb6 + 8c91e8d commit b4d5e44
Show file tree
Hide file tree
Showing 180 changed files with 420 additions and 1,224 deletions.
14 changes: 13 additions & 1 deletion .phan/stubs/wpcom-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* `bin/teamcity-builds/jetpack-stubs/stub-defs.php` and regenerate the stubs
* by triggering the Jetpack Staging → Update WPCOM Stubs job in TeamCity.
*
* Stubs automatically generated from WordPress.com commit 02203431cbf90f588596be49598db6819cd93427.
* Stubs automatically generated from WordPress.com commit a64dc4c8302d07cdb2c6f67e03d7414f923a0b21.
*/

namespace {
Expand Down Expand Up @@ -160,6 +160,18 @@ public static function get_subscriptions($blog_ids = 0, $user_ids = 0, $product_
{
}
}
class Store_Shopping_Cart
{
/**
* @return string[]
*/
public function get_product_slugs(): array
{
}
public static function get_existing_cart(?array $args = []): self
{
}
}
class Store_Product_List
{
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Check description task: Update timing for Jetpack, wpcomsh, and mu-wpcom-plugin releases.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ async function getMilestoneDates( plugin, nextMilestone ) {
codeFreezeDate = moment( freezeDateDescription[ 1 ] ).format( 'LL' );
}
} else if ( plugin === 'wpcomsh' ) {
releaseDate = 'on demand (usually Mondays if not sooner)';
releaseDate = 'Atomic deploys happen twice daily on weekdays (p9o2xV-2EN-p2)';
} else if ( plugin === 'mu-wpcom' ) {
releaseDate = 'WordPress.com Simple releases happen daily';
releaseDate = 'WordPress.com Simple releases happen semi-continuously (PCYsg-Jjm-p2)';
}

const capitalizedName = plugin
Expand All @@ -100,7 +100,7 @@ ${
'Jetpack' === capitalizedName
? `The Jetpack plugin has different release cadences depending on the platform:
- WordPress.com Simple releases happen daily.
- WordPress.com Simple releases happen semi-continuously (PCYsg-Jjm-p2).
- WoA releases happen weekly.
- Releases to self-hosted sites happen monthly. The next release is scheduled for _${ releaseDate }_ (scheduled code freeze on _${ codeFreezeDate }_).`
: `
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/ai-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.18.1] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.18.0] - 2024-09-09
### Added
- AI Client: add placeholders for Logo Generator modal commponents [#39244]
Expand Down Expand Up @@ -405,6 +409,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies. [#31659]
- Updated package dependencies. [#31785]

[0.18.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.18.0...v0.18.1
[0.18.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.17.0...v0.18.0
[0.17.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.16.4...v0.17.0
[0.16.4]: https://github.com/Automattic/jetpack-ai-client/compare/v0.16.3...v0.16.4
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/ai-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "@automattic/jetpack-ai-client",
"version": "0.18.0",
"version": "0.18.1",
"description": "A JS client for consuming Jetpack AI services",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Components package releases.

## [0.17.13] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.17.12] - 2024-09-05
### Changed
- Updated package dependencies. [#39176]
Expand Down Expand Up @@ -350,6 +354,7 @@
- Add the API methods left behind by the previous PR.
- Initial release of jetpack-api package

[0.17.13]: https://github.com/Automattic/jetpack-api/compare/v0.17.12...v0.17.13
[0.17.12]: https://github.com/Automattic/jetpack-api/compare/v0.17.11...v0.17.12
[0.17.11]: https://github.com/Automattic/jetpack-api/compare/v0.17.10...v0.17.11
[0.17.10]: https://github.com/Automattic/jetpack-api/compare/v0.17.9...v0.17.10
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-api",
"version": "0.17.12",
"version": "0.17.13",
"description": "Jetpack Api Package",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/api/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/base-styles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.32] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.6.31] - 2024-09-05
### Changed
- Updated package dependencies. [#39176]
Expand Down Expand Up @@ -309,6 +313,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies.
- Use Node 16.7.0 in tooling. This shouldn't change the behavior of the code itself.

[0.6.32]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.31...0.6.32
[0.6.31]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.30...0.6.31
[0.6.30]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.29...0.6.30
[0.6.29]: https://github.com/Automattic/jetpack-base-styles/compare/0.6.28...0.6.29
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/base-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-base-styles",
"version": "0.6.31",
"version": "0.6.32",
"description": "Jetpack components base styles",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/base-styles/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/boost-score-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.40] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.1.39] - 2024-09-05
### Changed
- Internal updates.
Expand Down Expand Up @@ -171,6 +175,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Create package for the boost score bar API [#30781]

[0.1.40]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.39...v0.1.40
[0.1.39]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.38...v0.1.39
[0.1.38]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.37...v0.1.38
[0.1.37]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.36...v0.1.37
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/boost-score-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-boost-score-api",
"version": "0.1.39",
"version": "0.1.40",
"description": "A package to get the Jetpack Boost score of a site",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/boost-score-api/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Components package releases.

## [0.55.15] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.55.14] - 2024-09-09
### Changed
- Updated package dependencies. [#39278]
Expand Down Expand Up @@ -1156,6 +1160,7 @@
### Changed
- Update node version requirement to 14.16.1

[0.55.15]: https://github.com/Automattic/jetpack-components/compare/0.55.14...0.55.15
[0.55.14]: https://github.com/Automattic/jetpack-components/compare/0.55.13...0.55.14
[0.55.13]: https://github.com/Automattic/jetpack-components/compare/0.55.12...0.55.13
[0.55.12]: https://github.com/Automattic/jetpack-components/compare/0.55.11...0.55.12
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-components",
"version": "0.55.14",
"version": "0.55.15",
"description": "Jetpack Components Package",
"author": "Automattic",
"license": "GPL-2.0-or-later",
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/connection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Connection Component releases.

## [0.35.7] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [0.35.6] - 2024-09-09
### Changed
- Updated package dependencies. [#39278]
Expand Down Expand Up @@ -843,6 +847,7 @@
- `Main` and `ConnectUser` components added.
- `JetpackRestApiClient` API client added.

[0.35.7]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.6...v0.35.7
[0.35.6]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.5...v0.35.6
[0.35.5]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.4...v0.35.5
[0.35.4]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.3...v0.35.4
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/connection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-connection",
"version": "0.35.6",
"version": "0.35.7",
"description": "Jetpack Connection Component",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/i18n-loader-webpack-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

## [2.0.58] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## [2.0.57] - 2024-09-05
### Changed
- Updated package dependencies. [#39176]
Expand Down Expand Up @@ -257,6 +261,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release.

[2.0.58]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.57...v2.0.58
[2.0.57]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.56...v2.0.57
[2.0.56]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.55...v2.0.56
[2.0.55]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.54...v2.0.55
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/i18n-loader-webpack-plugin",
"version": "2.0.57",
"version": "2.0.58",
"description": "A Webpack plugin to load WordPress i18n when Webpack lazy-loads a bundle.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/i18n-loader-webpack-plugin/#readme",
"bugs": {
Expand Down
4 changes: 4 additions & 0 deletions projects/js-packages/idc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA IDC package releases.

## 0.11.12 - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## 0.11.11 - 2024-09-05
### Changed
- Internal updates.
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/idc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-idc",
"version": "0.11.11",
"version": "0.11.12",
"description": "Jetpack Connection Component",
"author": "Automattic",
"license": "GPL-2.0-or-later",
Expand Down
4 changes: 4 additions & 0 deletions projects/js-packages/licensing/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.12.30 - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## 0.12.29 - 2024-09-09
### Changed
- Updated package dependencies. [#39278]
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/licensing/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-licensing",
"version": "0.12.29",
"version": "0.12.30",
"description": "Jetpack licensing flow",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/licensing/#readme",
"bugs": {
Expand Down
4 changes: 4 additions & 0 deletions projects/js-packages/partner-coupon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.88 - 2024-09-10
### Changed
- Updated package dependencies. [#39302]

## 0.2.87 - 2024-09-09
### Changed
- Updated package dependencies. [#39176] [#39278]
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/partner-coupon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-partner-coupon",
"version": "0.2.87",
"version": "0.2.88",
"description": "This package aims to add components to make it easier to redeem partner coupons",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/partner-coupon/#readme",
"bugs": {
Expand Down
8 changes: 8 additions & 0 deletions projects/js-packages/publicize-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.68.0] - 2024-09-10
### Added
- Added share status feedback to resharing [#39294]

### Changed
- Updated package dependencies. [#39302]

## [0.67.0] - 2024-09-09
### Added
- Added tracking for the share status modal [#39198]
Expand Down Expand Up @@ -914,6 +921,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#24470]

[0.68.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.67.0...v0.68.0
[0.67.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.66.1...v0.67.0
[0.66.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.66.0...v0.66.1
[0.66.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.65.0...v0.66.0
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/publicize-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize-components",
"version": "0.67.0",
"version": "0.68.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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ import usePublicizeConfig from '../../hooks/use-publicize-config';
import useRefreshConnections from '../../hooks/use-refresh-connections';
import { usePostJustPublished } from '../../hooks/use-saving-post';
import useSelectSocialMediaConnections from '../../hooks/use-social-media-connections';
import { store as socialStore } from '../../social-store';
import PublicizeForm from '../form';
import { ManualSharing } from '../manual-sharing';
import { ReSharingPanel } from '../resharing-panel';
import { SharePostRow } from '../share-post';
import { ShareStatusModalTrigger } from '../share-status';
import styles from './styles.module.scss';
import './global.scss';

const PublicizePanel = ( { prePublish, children } ) => {
const { refresh, hasConnections, hasEnabledConnections } = useSelectSocialMediaConnections();
const isPostPublished = useSelect( select => select( editorStore ).isCurrentPostPublished(), [] );
const featureFlags = useSelect( select => select( socialStore ).featureFlags(), [] );

const refreshConnections = useRefreshConnections();

const { isPublicizeEnabled, hidePublicizeFeature, togglePublicizeFeature } = usePublicizeConfig();
Expand Down Expand Up @@ -74,7 +77,7 @@ const PublicizePanel = ( { prePublish, children } ) => {
) }
{ isPostPublished && (
<>
<ShareStatusModalTrigger withWrapper analyticsData={ { location: 'editor' } } />
{ featureFlags.useShareStatus ? <ReSharingPanel /> : null }
<ManualSharing />
</>
) }
Expand Down
Loading

0 comments on commit b4d5e44

Please sign in to comment.