0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00
Commit graph

2343 commits

Author SHA1 Message Date
renovate[bot]
9594feb4e8
Update dependency @uiw/react-codemirror to v4.23.10 (#22345)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@uiw/react-codemirror](https://uiwjs.github.io/react-codemirror)
([source](https://redirect.github.com/uiwjs/react-codemirror)) |
[`4.23.9` ->
`4.23.10`](https://renovatebot.com/diffs/npm/@uiw%2freact-codemirror/4.23.9/4.23.10)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2freact-codemirror/4.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2freact-codemirror/4.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2freact-codemirror/4.23.9/4.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2freact-codemirror/4.23.9/4.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror (@&#8203;uiw/react-codemirror)</summary>

###
[`v4.23.10`](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.9...c4a0a5ade7fe51e4484af82c86cbb42723ed51ac)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.9...c4a0a5ade7fe51e4484af82c86cbb42723ed51ac)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 04:04:43 +00:00
Sodbileg Gansukh
065c113a99
Adjusted spacing of activity items in ActivityPub (#22343)
no issues

- the spacing is tighter in areas that contain activity items such as
suggested accounts and following/followers tab
- no more layout shift when switching tabs
2025-03-04 02:46:42 +00:00
Sag
453cf69c87
Released @tryghost/portal v2.50.1 (#22329)
Changelog for v2.50.0 -> 2.50.1:
  - Updated i18n translations
  - https://github.com/TryGhost/Ghost/commit/43ce44ce73
2025-03-03 21:50:27 +05:30
Ronald Langeveld
43ce44ce73
🐛 Fixed email domain blocklist not being checked when a member updates their email address (#22320)
closes https://linear.app/ghost/issue/ONC-797/spam-filter-not-applied-when-updating-an-email-address

With this change, we extend the email domain blocklist to the member's email
update feature (previously: only on signups)

- Added logic in `MemberController.js` to validate email domains against
a list of blocked domains from`settingsCache
(all_blocked_email_domains)` before allowing updates.
- Enhanced error messaging in `api.js` and `actions.js` in Portal to
return a specific error ("Memberships from this email domain are
currently restricted.") when a blocked domain error from API is
detected.
- Added a new E2E test to verify that changing an email to a blocked
domain is prevented (status 400 with appropriate error message) and that
changing an email to a allowed domain is still allowed (status 201)
- Added the new error message to localisation files (portal.json) across
multiple languages for consistent user feedback.

---------

Co-authored-by: Sag <guptazy@gmail.com>
2025-03-03 21:37:18 +05:30
Sodbileg Gansukh
f3e94039f0
Fixed search modal not closing when avatar is clicked (#22319)
ref AP-815

- added `onClick` prop to APAvatar component, so that we can run
additional function when avatars are clicked
- passed search modal closing function to the new prop
2025-03-03 10:52:02 +00:00
Sodbileg Gansukh
ec99fd037d
Refined ActivityPub search (#22297)
ref AP-769

- displays the search in a modal when the search input is clicked
- uses the Dialog component from Shade
2025-03-03 16:21:53 +08:00
Daniel Lockyer
80aa9a6108 Updated nock dependency to latest patch
- this version fixes a typings issue with URL
2025-03-03 09:04:55 +01:00
renovate[bot]
0f1eda3838
Update dependency @uiw/react-codemirror to v4.23.9 (#22307)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@uiw/react-codemirror](https://uiwjs.github.io/react-codemirror)
([source](https://redirect.github.com/uiwjs/react-codemirror)) |
[`4.23.8` ->
`4.23.9`](https://renovatebot.com/diffs/npm/@uiw%2freact-codemirror/4.23.8/4.23.9)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2freact-codemirror/4.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2freact-codemirror/4.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2freact-codemirror/4.23.8/4.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2freact-codemirror/4.23.8/4.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror (@&#8203;uiw/react-codemirror)</summary>

###
[`v4.23.9`](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.8...a5a2ab862dadd09a97d9ff3b595fffdf0216f970)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.8...v4.23.9)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-28 08:40:01 +00:00
Michael Barrett
1b12ed24df
Bumped admin-x-activitypub to 0.4.5 (#22303)
no refs

Bumped `admin-x-activitypub` to 0.4.5
2025-02-27 20:53:24 +00:00
Michael Barrett
b1c496f46d
Updated thread implementation to work with posts in admin-x-activitypub (#22301)
refs
[AP-721](https://linear.app/ghost/issue/AP-721/update-getactivitythread-to-work-with-posts-instead-of-activities)

Updated thread implementation to work with posts instead of activities
in `admin-x-activitypub` as part of the posts migration
2025-02-27 20:13:37 +00:00
Sag
a1b6f2eca1
Released @tryghost/portal v2.50.0 (#22300)
Changelog for v2.49.3 -> 2.50.0:
- Updated i18n translations
- 5aa4019d96
- 0c295864ab
- d37520cdcd
2025-02-27 17:17:33 +00:00
Cathy Sarisky
d37520cdcd
🌐 Added translation logic for "Add a personal note" in Tips & Donations
closes #21766 

- added "Add a personal note" string to portal's API request for Tips and Donations
2025-02-27 22:35:26 +05:30
Princi Vershwal
0893db466b
Updated mapPostToActivity to add attachments (#22296)
refs
https://linear.app/ghost/issue/AP-795/update-feed-service-to-fetch-attachments-for-posts

- Mapped the posts from new feeds API to UI so the we can show the attachments on the feed's UI
- Added tests to verify the mapping
2025-02-27 17:17:18 +05:30
Peter Zimon
a8fa52f8dd
Loading message in ActivityPub notifications (#22288)
closes AP-783

- Notifications load quite slow in ActivityPub. We're working on
improving it but until it gets faster we'll display a short message
after 3 seconds of loading to reassure users that the app is not broken.
2025-02-26 22:09:05 +01:00
Michael Barrett
bd71b8b522
Tweaked Inbox / Feed view infinite loading in admin-x-activitypub (#22281)
refs
[AP-794](https://linear.app/ghost/issue/AP-794/tweak-infinite-loading-to-fetch-the-next-page-of-data-before-reaching)

Tweaked `Inbox` / `Feed` view infinite loading in `admin-x-activitypub`
to fetch the next page of data before reaching the end of the current
page. This happens when the user is around 75% of the way through the
current page.
2025-02-26 14:09:02 +00:00
renovate[bot]
0c295864ab
Update dependency @hcaptcha/react-hcaptcha to v1.12.0 (#22283)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@hcaptcha/react-hcaptcha](https://redirect.github.com/hCaptcha/react-hcaptcha)
| [`1.11.3` ->
`1.12.0`](https://renovatebot.com/diffs/npm/@hcaptcha%2freact-hcaptcha/1.11.3/1.12.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@hcaptcha%2freact-hcaptcha/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hcaptcha%2freact-hcaptcha/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hcaptcha%2freact-hcaptcha/1.11.3/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hcaptcha%2freact-hcaptcha/1.11.3/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hCaptcha/react-hcaptcha
(@&#8203;hcaptcha/react-hcaptcha)</summary>

###
[`v1.12.0`](https://redirect.github.com/hCaptcha/react-hcaptcha/releases/tag/1.12.0)

[Compare
Source](https://redirect.github.com/hCaptcha/react-hcaptcha/compare/1.11.3...1.12.0)

#### What's Changed

- chore(loader): update loader package to v2 by
[@&#8203;faris-imi](https://redirect.github.com/faris-imi) in
[https://github.com/hCaptcha/react-hcaptcha/pull/254](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/254)

**Full Changelog**:
https://github.com/hCaptcha/react-hcaptcha/compare/1.11.3...1.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 14:07:33 +00:00
renovate[bot]
5aa4019d96
Update dependency @hcaptcha/react-hcaptcha to v1.11.3 (#22276)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@hcaptcha/react-hcaptcha](https://redirect.github.com/hCaptcha/react-hcaptcha)
| [`1.11.2` ->
`1.11.3`](https://renovatebot.com/diffs/npm/@hcaptcha%2freact-hcaptcha/1.11.2/1.11.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@hcaptcha%2freact-hcaptcha/1.11.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hcaptcha%2freact-hcaptcha/1.11.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hcaptcha%2freact-hcaptcha/1.11.2/1.11.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hcaptcha%2freact-hcaptcha/1.11.2/1.11.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hCaptcha/react-hcaptcha
(@&#8203;hcaptcha/react-hcaptcha)</summary>

###
[`v1.11.3`](https://redirect.github.com/hCaptcha/react-hcaptcha/releases/tag/1.11.3)

[Compare
Source](https://redirect.github.com/hCaptcha/react-hcaptcha/compare/1.11.2...1.11.3)

#### What's Changed

- fix: Fix hCaptcha updates and add Change Theme demo example by
[@&#8203;zoryana94](https://redirect.github.com/zoryana94) in
[https://github.com/hCaptcha/react-hcaptcha/pull/255](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/255)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 12:54:00 +00:00
Sag
15e6f9860e
Released @tryghost/comments-ui v1.0.8 (#22280)
Changelog for v1.0.7 -> 1.0.8:
- bc37f87074
- c4d60193f4
- fb0f9a2cf8
2025-02-26 17:45:53 +05:30
Sanne de Vries
fb0f9a2cf8
🐛 Fixed comment reference snippet overflowing (#22275)
Ref
https://linear.app/ghost/issue/DES-1106/support-escalation-re-ghostpro-comments-formatting-bug
- The `Replied to: comment..` snippet can contain links that can
overflow their container when they span multiple lines. Added
`break-all` CSS to force text wrapping, ensuring links stay within
boundaries.
2025-02-25 12:08:02 +00:00
Sam Lord
e76ee9169f
Released @tryghost/portal v2.49.3
Changelog for v2.49.2 -> 2.49.3:
-
268b1da456
-
2740686d53
2025-02-24 16:33:58 +00:00
Peter Zimon
ec46fa112d
Integrating React Router in ActivityPub (#22234)
ref AP-701

- ATM we're using our in-house routing solution in ActivityPub. On the
mid/long term (ie. Public Beta / GA) it's beneficial to switch to an
existing third-party solution which handles certain use cases that we'd
need out of the box. One of the most popular of these tools is React
Router, for which we've already put together a spike in the Posts app
prototype. This PR is replacing our in-house router with React Router
for ActivityPub and all new React apps.
2025-02-24 13:20:23 +01:00
renovate[bot]
60e7c08c59
Pin dependency @radix-ui/react-popover to 1.1.6 (#22267)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@radix-ui/react-popover](https://radix-ui.com/primitives)
([source](https://redirect.github.com/radix-ui/primitives)) |
dependencies | pin | [`^1.1.6` ->
`1.1.6`](https://renovatebot.com/diffs/npm/@radix-ui%2freact-popover/1.1.6/1.1.6)
|

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 10:05:22 +00:00
Sodbileg Gansukh
7e4a02f2b5
Reader improvements in ActivityPub (#22264)
ref AP-751

- Fixed the close button not working after typography settings opened
- Show table of contents only when there's more than one heading
- Added skeleton loader to the article to make it consistent with the
main screens
- Added `randomize` property to Skeleton component for easier random
placeholders
- Added Popover component to Shade and replaced the current one with
that
2025-02-24 17:47:40 +08:00
Peter Zimon
4b2f5fc358
Bumped ActivityPub version (#22256)
no ref.

- Bumping ActivityPub version to deploy frontend updates
2025-02-20 20:22:37 +00:00
renovate[bot]
467e31c084
Update dependency react-router to v7.2.0 (#22098)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router))
| [`7.1.4` ->
`7.2.0`](https://renovatebot.com/diffs/npm/react-router/7.1.4/7.2.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/7.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router/7.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router/7.1.4/7.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/7.1.4/7.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v7.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#720)

[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.5...react-router@7.2.0)

##### Minor Changes

- New type-safe `href` utility that guarantees links point to actual
paths in your app
([#&#8203;13012](https://redirect.github.com/remix-run/react-router/pull/13012))

    ```tsx
    import { href } from "react-router";

    export default function Component() {
      const link = href("/blog/:slug", { slug: "my-first-post" });
      return (
        <main>
          <Link to={href("/products/:id", { id: "asdf" })} />
          <NavLink to={href("/:lang?/about", { lang: "en" })} />
        </main>
      );
    }
    ```

##### Patch Changes

- Fix typegen for repeated params
([#&#8203;13012](https://redirect.github.com/remix-run/react-router/pull/13012))

    In React Router, path parameters are keyed by their name.
So for a path pattern like `/a/:id/b/:id?/c/:id`, the last `:id` will
set the value for `id` in `useParams` and the `params` prop.
For example, `/a/1/b/2/c/3` will result in the value `{ id: 3 }` at
runtime.

Previously, generated types for params incorrectly modeled repeated
params with an array.
    So `/a/1/b/2/c/3` generated a type like `{ id: [1,2,3] }`.

To be consistent with runtime behavior, the generated types now
correctly model the "last one wins" semantics of path parameters.
    So `/a/1/b/2/c/3` now generates a type like `{ id: 3 }`.

- Don't apply Single Fetch revalidation de-optimization when in SPA mode
since there is no server HTTP request
([#&#8203;12948](https://redirect.github.com/remix-run/react-router/pull/12948))

- Properly handle revalidations to across a prerender/SPA boundary
([#&#8203;13021](https://redirect.github.com/remix-run/react-router/pull/13021))

- In "hybrid" applications where some routes are pre-rendered and some
are served from a SPA fallback, we need to avoid making `.data` requests
if the path wasn't pre-rendered because the request will 404
    -   We don't know all the pre-rendered paths client-side, however:
- All `loader` data in `ssr:false` mode is static because it's generated
at build time
        -   A route must use a `clientLoader` to do anything dynamic
- Therefore, if a route only has a `loader` and not a `clientLoader`, we
disable revalidation by default because there is no new data to retrieve
- We short circuit and skip single fetch `.data` request logic if there
are no server loaders with `shouldLoad=true` in our single fetch
`dataStrategy`
- This ensures that the route doesn't cause a `.data` request that would
404 after a submission

- Error at build time in `ssr:false` + `prerender` apps for the edge
case scenario of:
([#&#8203;13021](https://redirect.github.com/remix-run/react-router/pull/13021))

- A parent route has only a `loader` (does not have a `clientLoader`)
    -   The parent route is pre-rendered
    -   The parent route has children routes which are not prerendered
- This means that when the child paths are loaded via the SPA fallback,
the parent won't have any `loaderData` because there is no server on
which to run the `loader`
- This can be resolved by either adding a parent `clientLoader` or
pre-rendering the child paths
- If you add a `clientLoader`, calling the `serverLoader()` on
non-prerendered paths will throw a 404

- Add unstable support for splitting route modules in framework mode via
`future.unstable_splitRouteModules`
([#&#8203;11871](https://redirect.github.com/remix-run/react-router/pull/11871))

- Add `unstable_SerializesTo` brand type for library authors to register
types serializable by React Router's streaming format (`turbo-stream`)
([`ab5b05b02`](ab5b05b02f))

- Align dev server behavior with static file server behavior when
`ssr:false` is set
([#&#8203;12948](https://redirect.github.com/remix-run/react-router/pull/12948))

- When no `prerender` config exists, only SSR down to the root
`HydrateFallback` (SPA Mode)
- When a `prerender` config exists but the current path is not
prerendered, only SSR down to the root `HydrateFallback` (SPA Fallback)
    -   Return a 404 on `.data` requests to non-pre-rendered paths

- Improve prefetch performance of CSS side effects in framework mode
([#&#8203;12889](https://redirect.github.com/remix-run/react-router/pull/12889))

- Disable Lazy Route Discovery for all `ssr:false` apps and not just
"SPA Mode" because there is no runtime server to serve the
search-param-configured `__manifest` requests
([#&#8203;12894](https://redirect.github.com/remix-run/react-router/pull/12894))

- We previously only disabled this for "SPA Mode" which is `ssr:false`
and no `prerender` config but we realized it should apply to all
`ssr:false` apps, including those prerendering multiple pages
- In those `prerender` scenarios we would prerender the `/__manifest`
file assuming the static file server would serve it but that makes some
unneccesary assumptions about the static file server behaviors

- Properly handle interrupted manifest requests in lazy route discovery
([#&#8203;12915](https://redirect.github.com/remix-run/react-router/pull/12915))

###
[`v7.1.5`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#715)

[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.4...react-router@7.1.5)

##### Patch Changes

- Fix regression introduced in `7.1.4` via
[#&#8203;12800](https://redirect.github.com/remix-run/react-router/pull/12800)
that caused issues navigating to hash routes inside splat routes for
applications using Lazy Route Discovery (`patchRoutesOnNavigation`)
([#&#8203;12927](https://redirect.github.com/remix-run/react-router/pull/12927))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-20 16:20:16 +00:00
Peter Zimon
2914108819
ActivityPub profile view UI update (#22253)
ref AP-748

- The visuals of the Profile view of ActivityPub had to be updated to be
more coherent with the overall design
2025-02-20 16:13:08 +01:00
renovate[bot]
268b1da456 Update dependency cross-fetch to v4.1.0 2025-02-20 15:47:59 +01:00
Sodbileg Gansukh
52fbcd2678
Fixed dark mode in ActivityPub article view (#22249)
no issues

- the dark mode used to be applied only when refreshed — now it doesn't
require a refresh anymore
- also added dark mode support to the table of contents
2025-02-20 17:04:04 +08:00
Peter Zimon
4d36d0b754
ActivityPub UI design refinements (#22242)
ref AP-748

- Some minor design details have had to be updated for a more consistent and solid UX/visual.
2025-02-20 08:27:37 +01:00
Sodbileg Gansukh
e337c266bb
Added dark mode class to the root element of the Admin (#22239)
ref AP-755

- this adds `dark` class to the root <html> element, so it acts as the
source of truth for the apps embedded in the admin
- this also gets rid of the `dark` class from the current design system
and Shade, so the apps wrapped within the corresponding providers don't
output nested `dark` classes
2025-02-20 10:25:49 +08:00
Peter Zimon
3dfc275241
ActivityPub UI restructure (#22209)
ref AP-748

- The current structure of the AcitivyPub app makes it hard to scale and
extend, and it also lacks basic design heuristics. This PR adds a new header
and right sidebar for clear orientation and navigation.
2025-02-19 09:29:15 +01:00
renovate[bot]
6d2151b8d0 Update dependency @doist/react-interpolate to v2 2025-02-19 07:44:57 +01:00
Sodbileg Gansukh
d984140f6b
Added dark mode support to ActivityPub (#22228)
ref AP-755
2025-02-19 14:29:46 +08:00
Daniel Lockyer
7967c43a19 Improved Node 22 compatibility by bumping Koenig packages
ref https://linear.app/ghost/issue/ENG-2014/add-node-22-support-to-koenig

- we're working on adding support for Node 22 and part of that involves
  bumping the Koenig packages because they have version ranges we need
  updating in Ghost
- this commit bumps the packages so they have support for Node 22
2025-02-17 13:51:23 +01:00
Peter Zimon
c0179b4704
ActivityPub typography fix (#22202)
ref
https://linear.app/ghost/issue/AP-750/visual-designfrontend-regressions

- Default font-family is not set properly in local storage
2025-02-17 13:19:37 +01:00
Sodbileg Gansukh
db8b0c289d
Updated naming convention for hooks in ActivityPub (#22200)
ref AP-744

- we're using kebab case for non-component files for ActivitiPub
- updated the imports with path aliases while doing that
2025-02-17 09:47:07 +00:00
Sam Lord
2740686d53
Refactored Captcha to simplify usage
ref BAE-397

Moved the hCaptcha component outside of the page level, since it was
complicating the logic within the pages with no good reason.

The hCaptcha component is now attached to the pop-up modal. Since it's
invisible, this doesn't impact layout anyway, but means that any action
can trigger Captcha to run, and use the result within that same action.

This simplifies the flow by having the action itself confirm that
Captcha is enabled, then grabbing the token by running either a
challenge (for self-hosters) or using their enterprise heuristics system
(for Ghost Pro).

This also fixes issues where sites with multiple tiers wouldn't work
with Captcha, since the page had changed and the hCaptcha component was
unloaded.
2025-02-17 08:17:58 +00:00
Sodbileg Gansukh
13c5c5ff17
Moved NewPostModal component to the Feed page (#22199)
ref AP-744

- NewPostModal component is only used in Feed
- For that reason, this should be placed with the Feed component itself
in view directory
- Inbox and Feed components are still in a single file at the moment as
the separation isn't in the context of file structure updates
- Once componets are separated into smaller ones, Feed directory will be
populated with the corresponding files
2025-02-17 05:51:47 +00:00
Sodbileg Gansukh
0476bb1cb9
Moved the rest of the page components to views directory in ActivityPub (#22198)
ref AP-744

- moved Notifications, Profile, and Search components to views directory
as they're all page components
- updated the imports with path aliases
2025-02-17 13:37:54 +08:00
Sodbileg Gansukh
95efa15d18
Moved the Inbox component to views directory in ActivityPub (#22197)
ref AP-744

- according to the new file structure, moved the Inbox component to
views directory as it's a page
- added path aliases to minimize the changes for imports
2025-02-17 12:31:36 +08:00
renovate[bot]
ca67c0fd93
Update dependency react-hot-toast to v2.5.2 (#22196)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-hot-toast](https://redirect.github.com/timolins/react-hot-toast)
| [`2.5.1` ->
`2.5.2`](https://renovatebot.com/diffs/npm/react-hot-toast/2.5.1/2.5.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-hot-toast/2.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-hot-toast/2.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-hot-toast/2.5.1/2.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-hot-toast/2.5.1/2.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>timolins/react-hot-toast (react-hot-toast)</summary>

###
[`v2.5.2`](https://redirect.github.com/timolins/react-hot-toast/releases/tag/v2.5.2)

[Compare
Source](https://redirect.github.com/timolins/react-hot-toast/compare/v2.5.1...v2.5.2)

- Fix race condition in backwards compatible way – fixes
[#&#8203;101](https://redirect.github.com/timolins/react-hot-toast/issues/101)
[`1556d28`](https://redirect.github.com/timolins/react-hot-toast/commit/1556d28)
- Replace JSX.Element type with React.ReactElement
[`87c7a52`](https://redirect.github.com/timolins/react-hot-toast/commit/87c7a52)

***

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 01:12:47 +00:00
Paul Davis
76ddb9611f
Add WordPress to migration tools (#22152)
no issue

This PR adds WordPress to the migration options, related tests, and
adjusts the close button to more closely match that of the Settings
screen under it.
2025-02-13 11:54:09 +00:00
Sodbileg Gansukh
784baa1fba
Fixed skeleton loader on ActivityPub inbox and feed screens (#22171)
no issues
2025-02-12 08:01:39 +00:00
Michael Barrett
ec327badf9
Used new feed and inbox endpoints for feed and inbox view
refs https://linear.app/ghost/issue/AP-704

We also update the mutations to make sure that the query cache is correctly updated.

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2025-02-11 21:36:47 +07:00
renovate[bot]
8f28205042
Update dependency @hcaptcha/react-hcaptcha to v1.11.2 (#22161)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@hcaptcha/react-hcaptcha](https://redirect.github.com/hCaptcha/react-hcaptcha)
| [`1.11.1` ->
`1.11.2`](https://renovatebot.com/diffs/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@hcaptcha%2freact-hcaptcha/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hcaptcha%2freact-hcaptcha/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hCaptcha/react-hcaptcha
(@&#8203;hcaptcha/react-hcaptcha)</summary>

###
[`v1.11.2`](https://redirect.github.com/hCaptcha/react-hcaptcha/releases/tag/1.11.2)

[Compare
Source](https://redirect.github.com/hCaptcha/react-hcaptcha/compare/1.11.1...1.11.2)

#### What's Changed

- fix: Fix one captcha per container issue by
[@&#8203;zoryana94](https://redirect.github.com/zoryana94) in
[https://github.com/hCaptcha/react-hcaptcha/pull/251](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/251)
- chore: Update Sentry docs by
[@&#8203;zoryana94](https://redirect.github.com/zoryana94) in
[https://github.com/hCaptcha/react-hcaptcha/pull/249](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/249)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 12:24:40 +00:00
Sodbileg Gansukh
d253d1ce32
Bumped ActivityPub version (#22159) 2025-02-11 09:27:39 +00:00
Sodbileg Gansukh
c36ab82325
Improved loading state of main screens in ActivityPub (#22158)
ref AP-654

- Improved the skeleton component of shadcn
- Used the skeleton component in the main five screens
- It minimizes the layout shift
2025-02-11 16:00:01 +08:00
Peter Zimon
cf2ceb1aa3
Remove on load animation in ActivityPub (#22151)
ref https://linear.app/ghost/issue/AP-700/explore-ui-development-in-ap

Fixes a small style regression related to the [ActivityPub Shade
integration](2170ee8da3),
that adds an unnecessary animation on load
2025-02-10 16:30:27 +00:00
Peter Zimon
2170ee8da3
ActivityPub Shade integration (#22150)
ref https://linear.app/ghost/issue/AP-700/explore-ui-development-in-ap

This PR is about integrating ActivityPub with the new design system, so that we can start using Shade in a real world application. In this early version the TailwindCSS config is taken from Shade but the custom styles of Shade and the AdminX Design System are merged. This is needed so that we can keep using the old components without breaking functionality.
2025-02-10 17:05:15 +01:00
Djordje Vlaisavljevic
1b789a476a Fixed certain images on Threads not showing
close https://linear.app/ghost/issue/AP-640/image-attachments-on-notes-from-threads-are-not-rendered

- Covered the case when `attachment.type` is `Image` and there is no `mediaType` set
- Made code easier to read.
2025-02-10 16:07:05 +01:00