Skip to content

Commit

Permalink
Release Blaze package to 0.21.8
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoca authored and matticbot committed Dec 4, 2024
1 parent 107f0d0 commit 7a7d96c
Show file tree
Hide file tree
Showing 30 changed files with 182 additions and 378 deletions.
148 changes: 2 additions & 146 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,124 +2,6 @@

### 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 @@ -287,7 +169,8 @@

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

## [0.29.8] - 2023-08-21
### Added
Expand Down Expand Up @@ -906,33 +789,6 @@
- `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.
* @return {React.Component} The RNA connection component.
* @returns {React.Component} The RNA connection component.
*/
const ConnectButton = props => {
const {
apiRoot,
apiNonce,
connectLabel = __( 'Connect', 'jetpack-connection-js' ),
connectLabel = __( 'Connect', 'jetpack' ),
registrationNonce,
redirectUri = null,
from,
Expand Down
9 changes: 2 additions & 7 deletions components/connect-screen/basic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ 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 @@ -56,7 +54,6 @@ const ConnectScreen: React.FC< Props > = ( {
autoTrigger,
footer,
skipUserConnection,
skipPricingPage,
logo,
} ) => {
const {
Expand All @@ -73,7 +70,6 @@ const ConnectScreen: React.FC< Props > = ( {
autoTrigger,
from,
skipUserConnection,
skipPricingPage,
} );

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

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

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

{ footer && <div className="jp-connection__connect-screen__footer">{ footer }</div> }
Expand Down
9 changes: 3 additions & 6 deletions components/connect-screen/required-plan/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ import ConnectScreenRequiredPlanVisual from './visual';
* The Connection Screen Visual component for consumers that require a Plan.
*
* @param {object} props -- The properties.
* @return {React.Component} The `ConnectScreenForRequiredPlan` component.
* @returns {React.Component} The `ConnectScreenForRequiredPlan` component.
*/
const ConnectScreenRequiredPlan = props => {
const {
title = __(
'Over 5 million WordPress sites are faster and more secure',
'jetpack-connection-js'
),
title = __( 'Over 5 million WordPress sites are faster and more secure', 'jetpack' ),
autoTrigger = false,
buttonLabel = __( 'Set up Jetpack', 'jetpack-connection-js' ),
buttonLabel = __( 'Set up Jetpack', 'jetpack' ),
apiRoot,
apiNonce,
registrationNonce,
Expand Down
27 changes: 12 additions & 15 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.
* @return {React.Component} The `ConnectScreenRequiredPlanVisual` component.
* @returns {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-connection-js' ),
__( 'Already have a subscription? <connectButton/>', 'jetpack' ),
{
connectButton: (
<ActionButton
label={ __( 'Log in to get started', 'jetpack-connection-js' ) }
label={ __( 'Log in to get started', 'jetpack' ) }
onClick={ handleButtonClick }
isLoading={ buttonIsLoading }
/>
Expand All @@ -56,18 +56,15 @@ const ConnectScreenRequiredPlanVisual = props => {
);

const errorMessage = isOfflineMode
? createInterpolateElement(
__( 'Unavailable in <a>Offline Mode</a>', 'jetpack-connection-js' ),
{
a: (
<a
href={ getRedirectUrl( 'jetpack-support-development-mode' ) }
target="_blank"
rel="noopener noreferrer"
/>
),
}
)
? createInterpolateElement( __( 'Unavailable in <a>Offline Mode</a>', 'jetpack' ), {
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.
* @return {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.
* @returns {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
* @return {React.Component} - The ConnectedPlugins React component
* @returns {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-connection-js'
'jetpack'
) }
</p>
</div>
Expand Down
Loading

0 comments on commit 7a7d96c

Please sign in to comment.