Skip to content

Commit

Permalink
Merge branch 'trunk' into update/unbundle-publicize-from-jetpack
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Aug 6, 2024
2 parents 205f2c3 + 5654d68 commit 21414d5
Show file tree
Hide file tree
Showing 217 changed files with 1,324 additions and 1,142 deletions.
99 changes: 0 additions & 99 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 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,17 @@ 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.16.1] - 2024-08-05
### Changed
- AI Logo Generator: fix UI issues. [#38590]
- Fixup versions [#38612]

### Fixed
- AI Logo Generator: fix multiple feature requests error + retry handling. [#38630]
- AI Logo Generator: fix small UI issues. [#38676]
- AI Logo Generator: fix upgrade URLs so they work on any site type. [#38598]
- AI Logo Generator: update upgrade message. [#38690]

## [0.16.0] - 2024-07-29
### Added
- AI Logo Generator: support placement property on the generator modal, for tracking purposes. [#38574]
Expand Down Expand Up @@ -366,6 +377,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies. [#31659]
- Updated package dependencies. [#31785]

[0.16.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.16.0...v0.16.1
[0.16.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.15.0...v0.16.0
[0.15.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.14.6...v0.15.0
[0.14.6]: https://github.com/Automattic/jetpack-ai-client/compare/v0.14.5...v0.14.6
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

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.16.1-alpha",
"version": "0.16.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/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.5] - 2024-08-05
### Fixed
- Fixed TS types for Notice components by marking optional props as such [#38686]

## [0.55.4] - 2024-08-01
### Added
- Update Welcome Banner and set async site-only connection [#38534]
Expand Down Expand Up @@ -1110,6 +1114,7 @@
### Changed
- Update node version requirement to 14.16.1

[0.55.5]: https://github.com/Automattic/jetpack-components/compare/0.55.4...0.55.5
[0.55.4]: https://github.com/Automattic/jetpack-components/compare/0.55.3...0.55.4
[0.55.3]: https://github.com/Automattic/jetpack-components/compare/0.55.2...0.55.3
[0.55.2]: https://github.com/Automattic/jetpack-components/compare/0.55.1...0.55.2
Expand Down
4 changes: 2 additions & 2 deletions projects/js-packages/components/components/notice/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import styles from './style.module.scss';

type NoticeProps = {
/** The severity of the alert. */
level: 'error' | 'warning' | 'info' | 'success';
level?: 'error' | 'warning' | 'info' | 'success';

/** The title of the notice */
title: string;
title?: string;

/** A list of action elements to show across the bottom */
actions?: React.ReactNode[];
Expand Down
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.4",
"version": "0.55.5",
"description": "Jetpack Components Package",
"author": "Automattic",
"license": "GPL-2.0-or-later",
Expand Down
13 changes: 13 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,18 @@ 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.59.0] - 2024-08-05
### Added
- Added connection toggle to social post preview [#38686]
- Added feature flag management for social [#38669]
- Added preview section to the social post modal [#38686]
- Added Social post UI modal and trigger [#38666]
- Added tracking for the publicize settings changes [#38714]
- Social: Added settings section to the social post modal [#38683]

### Fixed
- Fix the media validation notice for Instagram when SIG is enabled [#38689]

## [0.58.0] - 2024-08-01
### Changed
- Fixup versions [#38612]
Expand Down Expand Up @@ -807,6 +819,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#24470]

[0.59.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.58.0...v0.59.0
[0.58.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.57.0...v0.58.0
[0.57.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.56.2...v0.57.0
[0.56.2]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.56.1...v0.56.2
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

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.59.0-alpha",
"version": "0.59.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 @@ -7,7 +7,7 @@ import clsx from 'clsx';
import useSocialMediaConnections from '../../hooks/use-social-media-connections';
import { store } from '../../social-store';
import { ThemedConnectionsModal as ManageConnectionsModal } from '../manage-connections-modal';
import { SupportedService, useSupportedServices } from '../services/use-supported-services';
import { useService } from '../services/use-service';
import { ConnectionInfo } from './connection-info';
import styles from './style.module.scss';

Expand Down Expand Up @@ -35,14 +35,7 @@ const ConnectionManagement = ( { className = null } ) => {
refresh();
}, [ refresh ] );

const supportedServices = useSupportedServices();
const servicesByName = supportedServices.reduce< Record< string, SupportedService > >(
( acc, service ) => {
acc[ service.ID ] = service;
return acc;
},
{}
);
const getService = useService();

const { openConnectionsModal } = useDispatch( store );

Expand All @@ -62,7 +55,7 @@ const ConnectionManagement = ( { className = null } ) => {
<Disabled isDisabled={ isUpdatingOrDeleting }>
<ConnectionInfo
connection={ connection }
service={ servicesByName[ connection.service_name ] }
service={ getService( connection.service_name ) }
/>
</Disabled>
</li>
Expand Down
Loading

0 comments on commit 21414d5

Please sign in to comment.