Commit Graph

12067 Commits

Author SHA1 Message Date
Jacob Fletcher
0e328372ec Merge branch 'beta' into feat/on-demand-rsc 2024-11-05 11:59:47 -05:00
Jarrod Flesch
181d8a686b Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-05 11:27:58 -05:00
Jarrod Flesch
5d91a2e273 chore: adjusts field not rendering logic 2024-11-05 11:27:33 -05:00
Alessio Gravili
fbe4295497 add back commented out fields test suite stuff 2024-11-05 09:27:07 -07:00
Alessio Gravili
ca485bdc0e fix fields not rendering 2024-11-05 09:23:52 -07:00
Jarrod Flesch
aa5d1f52d8 Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-05 11:22:39 -05:00
Jarrod Flesch
4534b74e05 adds providers back in 2024-11-05 11:22:25 -05:00
Jacob Fletcher
d3c78deb08 safely accesses admin components 2024-11-05 11:12:45 -05:00
Jacob Fletcher
a96982597b enables relationship table sort 2024-11-05 11:08:51 -05:00
Jacob Fletcher
6952b751e9 poc linked cell overrides for relationship table 2024-11-05 11:08:25 -05:00
Jarrod Flesch
52ca879722 reuse Logo component 2024-11-05 11:03:23 -05:00
Jarrod Flesch
10570936bd feat: implements custom logout, avatar, Icon and Logo 2024-11-05 10:19:49 -05:00
Jarrod Flesch
f5e749f62f completes readOnly prop to custom components 2024-11-05 08:25:08 -05:00
Jarrod Flesch
15f485e10b Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-05 00:23:12 -05:00
Alessio Gravili
83712998c5 restore whole fields test suite 2024-11-04 20:13:43 -07:00
Alessio Gravili
0f1397815b working richtext-slate 2024-11-04 19:47:25 -07:00
Alessio Gravili
7e215f570e prevent error if array field does not receive permissions 2024-11-04 17:56:11 -07:00
Alessio Gravili
48523e1703 chore: fix jarrod 2024-11-04 17:49:55 -07:00
Alessio Gravili
560d5adf97 fix type errors 2024-11-04 17:46:11 -07:00
Alessio Gravili
a19a7235f1 misc fixes 2024-11-04 17:39:04 -07:00
Paul
ddc9d9731a feat: adds x-powered-by Payload header in next config (#9027)
Adds the `x-powered-by` header to include Payload alongside Next.js

End result looks like this
```
x-powered-by:
Next.js, Payload
```

It also respects the nextConfig `poweredBy: false` to completely disable
it
2024-11-04 18:11:51 -06:00
Jarrod Flesch
8fef77075c chore: swap useField out for useFormFields 2024-11-04 17:08:43 -05:00
Jacob Fletcher
4d5f06de86 fixes search 2024-11-04 17:06:24 -05:00
Jarrod Flesch
6e39d25604 chore: remove useForm from renderFields 2024-11-04 16:58:43 -05:00
Jesper We
3e31b7aec9 feat(plugin-seo): add Swedish translations (#9007)
### What?

Swedish text translations

### Why?

There was no Swedish before
2024-11-04 21:25:08 +00:00
Jarrod Flesch
9c11be879e Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-04 15:01:56 -05:00
Jarrod Flesch
503b94c7dc type cleanup inside RenderFields 2024-11-04 15:01:15 -05:00
Elliot DeNolf
e390835711 chore(release): v3.0.0-beta.124 [skip ci] v3.0.0-beta.124 2024-11-04 14:47:38 -05:00
James Mikrut
35b107a103 fix: prefetch causing stale data (#9020)
Potentially fixes #9012 by disabling prefetch for all Next.js `Link`
component usage.

With prefetch left as the default and _on_, there were cases where the
prefetch could fetch stale data for Edit routes. Then, when navigating
to the Edit route, the data could be stale.

In addition, I think there is some strangeness happening on the Next.js
side where prefetched data might still come from the router cache even
though router cache is disabled.

This fix should be done regardless, but I suspect it will solve for a
lot of stale data issues.
2024-11-04 19:24:28 +00:00
Paul
6b9f178fcb fix: graphql missing options route resulting in failed cors preflight checks in production (#8987)
GraphQL currently doesn't pass CORS checks as we don't expose an OPTIONS
endpoint which is used for browser preflights.

Should also fix situations like this
https://github.com/payloadcms/payload/issues/8974
2024-11-04 14:20:09 -05:00
Jacob Fletcher
af0d3564b2 wip join field 2024-11-04 14:12:47 -05:00
Alessio Gravili
3607e4bd94 fix: ensure tabs save data by making sure the path & schemaPath of children are correct 2024-11-04 12:11:51 -07:00
Alessio Gravili
a504b08965 add missing prop to hook array 2024-11-04 11:38:30 -07:00
Alessio Gravili
65d895d7f6 fix: ensure sidebar fields do not cause error in RenderFields 2024-11-04 11:38:03 -07:00
Alessio Gravili
54509033c6 fix: tab index paths being incorrectly prepended to named field's paths 2024-11-04 11:26:17 -07:00
Alessio Gravili
eba967df78 almost restore fields test suite to its full glory 2024-11-04 11:02:14 -07:00
vahacreative
cca6746e1e feat(plugin-seo): add Turkish translation v3 (#8993) 2024-11-04 11:54:57 -06:00
Alessio Gravili
968269aea9 fix: non-serializable formstate was being sent to onSubmit and beforeSubmit form hooks, leading to server action errors as client components were passed to the server action 2024-11-04 10:51:44 -07:00
Jarrod Flesch
6dd09679a5 Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-04 12:49:28 -05:00
Jarrod Flesch
67acbfde18 chore: move permissions to serverProps and only require on client for fields with subfields 2024-11-04 12:49:12 -05:00
Alessio Gravili
f70db1b818 fix(richtext-lexical): fix node.getPoint errors when working with drawers 2024-11-04 10:40:58 -07:00
Alessio Gravili
da0093610c lexical: get remaining features to work 2024-11-04 10:32:01 -07:00
Sasha
4349b78a2b fix: invalid select type with strictNullChecks: true (#8991)
### What?
Fixes type for the `select` property when having `strictNullChecks:
true` or `strict: true` in tsconfig.

### Why?
`select` should provide autocompletion for users, at this point it
doesn't work with this condtiion

### How?
Makes `collectionsSelect` and `globalsSelect` properties required in
`configToJSONSchema.ts`.

Fixes
https://github.com/payloadcms/payload/pull/8550#issuecomment-2452669237
2024-11-04 19:16:37 +02:00
Jarrod Flesch
f50f5d24f5 chore: delete blacklisted client-to-server keys instead of setting undefined 2024-11-04 11:34:31 -05:00
Jarrod Flesch
10ba80264e Merge remote-tracking branch 'refs/remotes/origin/feat/on-demand-rsc' into feat/on-demand-rsc 2024-11-04 11:29:20 -05:00
Jarrod Flesch
d3990d1108 fix: schema paths should not include _index in schema paths unless they are leaf fields 2024-11-04 11:29:09 -05:00
Sasha
5b97ac1a67 fix: querying relationships by id path with REST (#9013)
### What?
Fixes the issue with querying by `id` from REST / `overrideAccess:
false`.
For example, this didn't work:

`/api/loans?where[book.bibliography.id][equals]=67224d74257b3f2acddc75f4`
```
QueryError: The following path cannot be queried: id
```

### Why?
We support this syntax within the Local API.

### How?
Now, for simplicity we sanitize everything like
`relation.otherRelation.id` to `relation.otherRelation`

Fixes https://github.com/payloadcms/payload/issues/9008
2024-11-04 17:57:41 +02:00
Alessio Gravili
4c146776ab remove console.log 2024-11-04 08:52:16 -07:00
Alessio Gravili
cbafa720bd lexical: working blocks, working fields drawer 2024-11-04 08:51:44 -07:00
Jacob Fletcher
e81b3a8b35 fix list view filter options 2024-11-04 09:55:08 -05:00