Skip to content

Commit

Permalink
Changelog and readme.txt edits. (#40461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha authored and matticbot committed Dec 4, 2024
1 parent 67f66d2 commit 67c7900
Show file tree
Hide file tree
Showing 30 changed files with 378 additions and 182 deletions.
148 changes: 146 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,124 @@

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

## [0.36.0] - 2024-12-04
### Changed
- Changed text domain from 'jetpack' to 'jetpack-connection-js'. [#40368]
- Updated package dependencies. [#40363]

## [0.35.20] - 2024-11-26
### Changed
- Update dependencies.

## [0.35.19] - 2024-11-25
### Changed
- Updated package dependencies. [#40288]

## [0.35.18] - 2024-11-18
### Changed
- Update dependencies.

## [0.35.17] - 2024-11-14
### Changed
- Update dependencies.

## [0.35.16] - 2024-11-11
### Changed
- Updated package dependencies. [#39999] [#40000] [#40060]

## [0.35.15] - 2024-11-04
### Added
- Enable test coverage. [#39961]

### Changed
- Skip pricing page when connecting via block editor. [#39865]

## [0.35.14] - 2024-10-15
### Changed
- Update dependencies.

## [0.35.13] - 2024-10-14
### Changed
- Internal updates.

## [0.35.12] - 2024-10-10
### Changed
- Updated package dependencies.

## [0.35.11] - 2024-10-07
### Changed
- Updated package dependencies. [#39594]

## [0.35.10] - 2024-09-30
### Changed
- Fetch adminUrl current value on function run [#39578]

## [0.35.9] - 2024-09-25
### Changed
- Update dependencies.

## [0.35.8] - 2024-09-16
### Changed
- Updated package dependencies. [#39332]

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

## [0.35.6] - 2024-09-09
### Changed
- Updated package dependencies. [#39278]

## [0.35.5] - 2024-09-05
### Changed
- Internal updates.

## [0.35.4] - 2024-09-05
### Changed
- Updated package dependencies. [#39176]

## [0.35.3] - 2024-08-21
### Changed
- Internal updates.

## [0.35.2] - 2024-08-19
### Changed
- Updated package dependencies. [#38893]

### Fixed
- Lossless image optimization for images (should improve performance with no visible changes). [#38750]

## [0.35.1] - 2024-08-15
### Changed
- Updated package dependencies. [#38665]

## [0.35.0] - 2024-08-13
### Added
- Updated the connection initial state to fallback on the new consolidated Jetpack script data [#38825]

## [0.34.2] - 2024-08-09
### Added
- React 19 compatibility: Making sure useRef includes an argument. [#38765]

### Removed
- Tests: Removed react-test-renderer. [#38755]

## [0.34.1] - 2024-07-22
### Added
- Display the proper error message for suspended sites on site registration. [#38359]

## [0.34.0] - 2024-07-18
### Changed
- Connection Screen: remove mention of Stats from the list of available free features. [#38328]

## [0.33.19] - 2024-07-03
### Changed
- Updated package dependencies. [#38132]

## [0.33.18] - 2024-06-21
### Changed
- Update dependencies.

## [0.33.17] - 2024-06-17
### Changed
- Update type to enable JSX use [#37802]
Expand Down Expand Up @@ -169,8 +287,7 @@

## [0.29.9] - 2023-09-04
### Changed
- Updated package dependencies. [#32803]
- Updated package dependencies. [#32804]
- Updated package dependencies. [#32803] [#32804]

## [0.29.8] - 2023-08-21
### Added
Expand Down Expand Up @@ -789,6 +906,33 @@
- `Main` and `ConnectUser` components added.
- `JetpackRestApiClient` API client added.

[0.36.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.20...v0.36.0
[0.35.20]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.19...v0.35.20
[0.35.19]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.18...v0.35.19
[0.35.18]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.17...v0.35.18
[0.35.17]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.16...v0.35.17
[0.35.16]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.15...v0.35.16
[0.35.15]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.14...v0.35.15
[0.35.14]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.13...v0.35.14
[0.35.13]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.12...v0.35.13
[0.35.12]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.11...v0.35.12
[0.35.11]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.10...v0.35.11
[0.35.10]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.9...v0.35.10
[0.35.9]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.8...v0.35.9
[0.35.8]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.7...v0.35.8
[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
[0.35.3]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.2...v0.35.3
[0.35.2]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.1...v0.35.2
[0.35.1]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.0...v0.35.1
[0.35.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.34.2...v0.35.0
[0.34.2]: https://github.com/Automattic/jetpack-connection-js/compare/v0.34.1...v0.34.2
[0.34.1]: https://github.com/Automattic/jetpack-connection-js/compare/v0.34.0...v0.34.1
[0.34.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.19...v0.34.0
[0.33.19]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.18...v0.33.19
[0.33.18]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.17...v0.33.18
[0.33.17]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.16...v0.33.17
[0.33.16]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.15...v0.33.16
[0.33.15]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.14...v0.33.15
Expand Down
4 changes: 2 additions & 2 deletions components/connect-button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import useConnection from '../use-connection';
* The RNA connection component.
*
* @param {object} props -- The properties.
* @returns {React.Component} The RNA connection component.
* @return {React.Component} The RNA connection component.
*/
const ConnectButton = props => {
const {
apiRoot,
apiNonce,
connectLabel = __( 'Connect', 'jetpack' ),
connectLabel = __( 'Connect', 'jetpack-connection-js' ),
registrationNonce,
redirectUri = null,
from,
Expand Down
9 changes: 7 additions & 2 deletions components/connect-screen/basic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export type Props = {
assetBaseUrl?: string;
// Whether to not require a user connection and just redirect after site connection
skipUserConnection?: boolean;
// Whether to skip the pricing page after the connection screen
skipPricingPage?: boolean;
// Additional page elements to show after the call to action
footer?: React.ReactNode;
// The logo to display at the top of the component
Expand All @@ -54,6 +56,7 @@ const ConnectScreen: React.FC< Props > = ( {
autoTrigger,
footer,
skipUserConnection,
skipPricingPage,
logo,
} ) => {
const {
Expand All @@ -70,6 +73,7 @@ const ConnectScreen: React.FC< Props > = ( {
autoTrigger,
from,
skipUserConnection,
skipPricingPage,
} );

const displayButtonError = Boolean( registrationError );
Expand All @@ -79,11 +83,12 @@ const ConnectScreen: React.FC< Props > = ( {
return (
<ConnectScreenVisual
title={
title || __( 'Over 5 million WordPress sites are faster and more secure', 'jetpack' )
title ||
__( 'Over 5 million WordPress sites are faster and more secure', 'jetpack-connection-js' )
}
images={ images || [] }
assetBaseUrl={ assetBaseUrl }
buttonLabel={ buttonLabel || __( 'Set up Jetpack', 'jetpack' ) }
buttonLabel={ buttonLabel || __( 'Set up Jetpack', 'jetpack-connection-js' ) }
loadingLabel={ loadingLabel }
handleButtonClick={ handleRegisterSite }
displayButtonError={ displayButtonError }
Expand Down
27 changes: 16 additions & 11 deletions components/connect-screen/basic/visual.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,25 @@ const getErrorMessage = ( errorCode, isOfflineMode ) => {
case 'siteurl_private_ip':
return __(
'Your site host is on a private network. Jetpack can only connect to public sites.',
'jetpack'
'jetpack-connection-js'
);
case 'connection_disabled':
return __( 'This site has been suspended.', 'jetpack-connection-js' );
}

if ( isOfflineMode ) {
return createInterpolateElement( __( 'Unavailable in <a>Offline Mode</a>', 'jetpack' ), {
a: (
<a
href={ getRedirectUrl( 'jetpack-support-development-mode' ) }
target="_blank"
rel="noopener noreferrer"
/>
),
} );
return createInterpolateElement(
__( 'Unavailable in <a>Offline Mode</a>', 'jetpack-connection-js' ),
{
a: (
<a
href={ getRedirectUrl( 'jetpack-support-development-mode' ) }
target="_blank"
rel="noopener noreferrer"
/>
),
}
);
}
};

Expand Down Expand Up @@ -107,7 +112,7 @@ const ConnectScreenVisual: React.FC< Props > = ( {
isDisabled={ isOfflineMode }
/>
<span className="jp-connection__connect-screen__loading-message" role="status">
{ buttonIsLoading ? loadingLabel || __( 'Loading', 'jetpack' ) : '' }
{ buttonIsLoading ? loadingLabel || __( 'Loading', 'jetpack-connection-js' ) : '' }
</span>

{ footer && <div className="jp-connection__connect-screen__footer">{ footer }</div> }
Expand Down
9 changes: 6 additions & 3 deletions components/connect-screen/required-plan/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ import ConnectScreenRequiredPlanVisual from './visual';
* The Connection Screen Visual component for consumers that require a Plan.
*
* @param {object} props -- The properties.
* @returns {React.Component} The `ConnectScreenForRequiredPlan` component.
* @return {React.Component} The `ConnectScreenForRequiredPlan` component.
*/
const ConnectScreenRequiredPlan = props => {
const {
title = __( 'Over 5 million WordPress sites are faster and more secure', 'jetpack' ),
title = __(
'Over 5 million WordPress sites are faster and more secure',
'jetpack-connection-js'
),
autoTrigger = false,
buttonLabel = __( 'Set up Jetpack', 'jetpack' ),
buttonLabel = __( 'Set up Jetpack', 'jetpack-connection-js' ),
apiRoot,
apiNonce,
registrationNonce,
Expand Down
27 changes: 15 additions & 12 deletions components/connect-screen/required-plan/visual.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const debug = debugFactory( 'jetpack:connection:ConnectScreenRequiredPlanVisual'
* The Connection Screen Visual component for consumers that require a Plan.
*
* @param {object} props -- The properties.
* @returns {React.Component} The `ConnectScreenRequiredPlanVisual` component.
* @return {React.Component} The `ConnectScreenRequiredPlanVisual` component.
*/
const ConnectScreenRequiredPlanVisual = props => {
const {
Expand All @@ -43,11 +43,11 @@ const ConnectScreenRequiredPlanVisual = props => {
debug( 'props are %o', props );

const withSubscription = createInterpolateElement(
__( 'Already have a subscription? <connectButton/>', 'jetpack' ),
__( 'Already have a subscription? <connectButton/>', 'jetpack-connection-js' ),
{
connectButton: (
<ActionButton
label={ __( 'Log in to get started', 'jetpack' ) }
label={ __( 'Log in to get started', 'jetpack-connection-js' ) }
onClick={ handleButtonClick }
isLoading={ buttonIsLoading }
/>
Expand All @@ -56,15 +56,18 @@ const ConnectScreenRequiredPlanVisual = props => {
);

const errorMessage = isOfflineMode
? createInterpolateElement( __( 'Unavailable in <a>Offline Mode</a>', 'jetpack' ), {
a: (
<a
href={ getRedirectUrl( 'jetpack-support-development-mode' ) }
target="_blank"
rel="noopener noreferrer"
/>
),
} )
? createInterpolateElement(
__( 'Unavailable in <a>Offline Mode</a>', 'jetpack-connection-js' ),
{
a: (
<a
href={ getRedirectUrl( 'jetpack-support-development-mode' ) }
target="_blank"
rel="noopener noreferrer"
/>
),
}
)
: undefined;

return (
Expand Down
10 changes: 5 additions & 5 deletions components/connect-user/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { useState, useEffect } from 'react';
/**
* The user connection component.
*
* @param {object} props -- The properties.
* @param {object} props -- The properties.
* @param {Function} props.redirectFunc -- The redirect function (`window.location.assign()` by default).
* @param {string} props.connectUrl -- The authorization URL (no-iframe).
* @param {string} props.redirectUri -- The redirect admin URI.
* @param {string} props.from -- Where the connection request is coming from.
* @returns {null} -- Nothing to return.
* @param {string} props.connectUrl -- The authorization URL (no-iframe).
* @param {string} props.redirectUri -- The redirect admin URI.
* @param {string} props.from -- Where the connection request is coming from.
* @return {null} -- Nothing to return.
*/
const ConnectUser = props => {
const {
Expand Down
4 changes: 2 additions & 2 deletions components/connected-plugins/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DisconnectCard from '../disconnect-card';
* Render a list of connected plugins.
*
* @param {object} props - The properties
* @returns {React.Component} - The ConnectedPlugins React component
* @return {React.Component} - The ConnectedPlugins React component
*/

const ConnectedPlugins = props => {
Expand Down Expand Up @@ -40,7 +40,7 @@ const ConnectedPlugins = props => {
<p className="jp-connection__disconnect-dialog__large-text">
{ __(
'Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.',
'jetpack'
'jetpack-connection-js'
) }
</p>
</div>
Expand Down
Loading

0 comments on commit 67c7900

Please sign in to comment.