Ghost/ghost
Ronald Langeveld 9339364dce
Added Unsplash selector to AdminX (#18216)
no issue

- Copied over the Unsplash Component from Koenig to AdminX and converted
it to Typescript.
- Changed the business logic to follow a bit of dependency injection to
make it more testable and easier to maintain.
- Ideally we move this out of Admin X Settings and perhaps into it's own
library so we don't need to deal with a duplicate code between Koenig
and Admin X.

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at a40bf5b</samp>

This pull request adds support for selecting images from Unsplash in the
admin settings UI. It introduces a new `UnsplashService` class that
handles the Unsplash API requests and a new `MasonryService` class that
handles the masonry layout of the images. It also adds several new
custom components, such as `UnsplashButton`, `UnsplashGallery`,
`UnsplashImage`, `UnsplashSelector`, `UnsplashZoomed`, and
`UnsplashSearchModal`, that render the Unsplash modal and its elements.
It modifies the existing `ImageUpload`, `App`, `ServicesProvider`, and
`BrandSettings` components to integrate the Unsplash feature and pass
the necessary props. It also adds some new types, constants, and assets
related to the Unsplash data and UI. Finally, it adds some unit tests
for the `UnsplashService` and `MasonryService` classes.
2023-09-21 02:23:45 +00:00
..
adapter-cache-memory-ttl Updated linting and testing packages 2023-09-01 15:51:17 +02:00
adapter-cache-redis Fixed test coverage checks in adapter-cache-redis package 2023-09-07 13:32:00 +08:00
adapter-manager Updated @tryghost/errors 1.2.21 to 1.2.24 2023-09-12 12:56:14 +02:00
admin Added Unsplash selector to AdminX (#18216) 2023-09-21 02:23:45 +00:00
announcement-bar-settings Updated linting and testing packages 2023-09-01 15:51:17 +02:00
api-framework Added support for custom cache key generation 2023-09-19 12:39:50 +07:00
api-version-compatibility-service Updated linting and testing packages 2023-09-01 15:51:17 +02:00
audience-feedback Updated linting and testing packages 2023-09-01 15:51:17 +02:00
bookshelf-repository Added stats to recommendations endpoints 2023-09-15 15:57:27 +02:00
bootstrap-socket Updated linting and testing packages 2023-09-01 15:51:17 +02:00
collections Removed post delete related event handling 2023-09-15 13:50:25 +08:00
constants Updated linting and testing packages 2023-09-01 15:51:17 +02:00
core Updated uniqueness validation for the Recommendations URL (#18253) 2023-09-20 16:53:10 +00:00
custom-theme-settings-service Ensure hidden settings return falsy when used with the @custom helper (#17920) 2023-09-13 08:38:31 +01:00
data-generator Updated linting and testing packages 2023-09-01 15:51:17 +02:00
domain-events Fixed @tryghost/domain-events relying on NODE_ENV 2023-09-02 16:58:48 +07:00
donations Re-enabled general eslint rules in TS config 2023-09-08 13:47:42 +02:00
dynamic-routing-events Updated linting and testing packages 2023-09-01 15:51:17 +02:00
email-analytics-provider-mailgun Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-analytics-service Update Test & linting packages 2023-07-11 15:26:07 +02:00
email-content-generator Updated linting and testing packages 2023-09-01 15:51:17 +02:00
email-events Updated linting and testing packages 2023-09-01 15:51:17 +02:00
email-service Update dependency html-validate to v8.4.0 2023-09-11 17:31:03 +02:00
email-suppression-list Updated linting and testing packages 2023-09-01 15:51:17 +02:00
event-aware-cache-wrapper Updated linting and testing packages 2023-09-01 15:51:17 +02:00
express-dynamic-redirects Updated linting and testing packages 2023-09-01 15:51:17 +02:00
external-media-inliner Updated linting and testing packages 2023-09-01 15:51:17 +02:00
extract-api-key Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00
html-to-plaintext Updated linting and testing packages 2023-09-01 15:51:17 +02:00
i18n Improved webmention stability in case of slow external servers (#18242) 2023-09-20 13:09:47 +02:00
importer-handler-content-files Updated linting and testing packages 2023-09-01 15:51:17 +02:00
importer-revue 📦 Updated koenig dependencies (#17728) 2023-08-15 11:38:41 -05:00
in-memory-repository Updated linting and testing packages 2023-09-01 15:51:17 +02:00
job-manager Updated linting and testing packages 2023-09-01 15:51:17 +02:00
link-redirects Updated linting and testing packages 2023-09-01 15:51:17 +02:00
link-replacer Updated linting and testing packages 2023-09-01 15:51:17 +02:00
link-tracking Updated linting and testing packages 2023-09-01 15:51:17 +02:00
magic-link Update dependency @types/jsonwebtoken to v9.0.3 2023-09-18 08:51:04 +02:00
mail-events Re-enabled general eslint rules in TS config 2023-09-08 13:47:42 +02:00
mailgun-client Update dependency mailgun.js to v9.3.0 2023-09-18 14:01:45 +00:00
member-attribution Updated linting and testing packages 2023-09-01 15:51:17 +02:00
member-events Updated linting and testing packages 2023-09-01 15:51:17 +02:00
members-api Update dependency @types/jsonwebtoken to v9.0.3 2023-09-18 08:51:04 +02:00
members-csv Updated linting and testing packages 2023-09-01 15:51:17 +02:00
members-events-service Updated linting and testing packages 2023-09-01 15:51:17 +02:00
members-importer Updated linting and testing packages 2023-09-01 15:51:17 +02:00
members-ssr Update dependency @types/cookies to v0.7.8 2023-09-12 12:31:23 +02:00
mentions-email-report Updated linting and testing packages 2023-09-01 15:51:17 +02:00
milestones Updated linting and testing packages 2023-09-01 15:51:17 +02:00
minifier Update dependency terser to v5.20.0 2023-09-20 14:55:27 +00:00
model-to-domain-event-interceptor Removed post delete related event handling 2023-09-15 13:50:25 +08:00
mw-api-version-mismatch Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-cache-control Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-error-handler Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-session-from-token Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-update-user-last-seen Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-version-match Updated linting and testing packages 2023-09-01 15:51:17 +02:00
mw-vhost Updated linting and testing packages 2023-09-01 15:51:17 +02:00
nql-filter-expansions Updated linting and testing packages 2023-09-01 15:51:17 +02:00
oembed-service Improved webmention stability in case of slow external servers (#18242) 2023-09-20 13:09:47 +02:00
offers Moved OfferRepository to core 2023-09-02 16:58:48 +07:00
package-json Updated linting and testing packages 2023-09-01 15:51:17 +02:00
payments Updated linting and testing packages 2023-09-01 15:51:17 +02:00
post-events Removed post delete related event handling 2023-09-15 13:50:25 +08:00
post-revisions Updated linting and testing packages 2023-09-01 15:51:17 +02:00
posts-service Fixed transaction errors using PostsService inside of Post model's onSaving hook (#18148) 2023-09-14 17:22:10 +00:00
recommendations Updated uniqueness validation for the Recommendations URL (#18253) 2023-09-20 16:53:10 +00:00
referrers Updated linting and testing packages 2023-09-01 15:51:17 +02:00
security Update dependency uuid to v9.0.1 2023-09-12 12:29:51 +02:00
session-service Updated @tryghost/errors 1.2.21 to 1.2.24 2023-09-12 12:56:14 +02:00
settings-path-manager Updated linting and testing packages 2023-09-01 15:51:17 +02:00
slack-notifications Updated linting and testing packages 2023-09-01 15:51:17 +02:00
staff-service Update dependency handlebars to v4.7.8 2023-08-31 13:26:36 +00:00
stats-service Update dependency luxon to v3.4.3 2023-09-12 09:02:09 +02:00
stripe Updated linting and testing packages 2023-09-01 15:51:17 +02:00
tiers Updated linting and testing packages 2023-09-01 15:51:17 +02:00
update-check-service Update dependency uuid to v9.0.1 2023-09-12 12:29:51 +02:00
verification-trigger Updated linting and testing packages 2023-09-01 15:51:17 +02:00
version-notifications-data-service Updated linting and testing packages 2023-09-01 15:51:17 +02:00
webmentions Improved webmention stability in case of slow external servers (#18242) 2023-09-20 13:09:47 +02:00
tsconfig.json Disabled TypeScript incremental building 2023-08-09 18:27:56 +02:00