Jacob Fletcher
60edd35671
more docs
2024-10-01 17:52:34 -04:00
Jacob Fletcher
bca9aece06
cleanup
2024-10-01 17:16:51 -04:00
Jacob Fletcher
e43a03d0ff
scaffolds docs
2024-10-01 17:13:07 -04:00
Jacob Fletcher
4424904f58
excludes examples until released
2024-10-01 16:48:50 -04:00
Jacob Fletcher
5150a5a30f
lints
2024-10-01 16:44:32 -04:00
Jacob Fletcher
b6d829acd8
updates all app dirs
2024-10-01 16:33:29 -04:00
Jacob Fletcher
41d622f613
adds temp log to test ci
2024-10-01 16:11:18 -04:00
Jacob Fletcher
c32c7d50ef
builds
2024-10-01 14:42:47 -04:00
Jacob Fletcher
d59c1c01c9
cleanup
2024-10-01 14:32:15 -04:00
Jacob Fletcher
e5ce24eafb
Merge branch 'beta' into feat/server-actions
2024-10-01 14:07:04 -04:00
Jacob Fletcher
0de81afa92
aborts server function results in docinfoprovider
2024-10-01 14:06:31 -04:00
Sasha
fa59d4c0b2
feat!: update next@15.0.0-canary.173, react@19.0.0-rc-3edc000d-20240926 ( #8489 )
...
Updates the minimal supported versions of next.js to
[`15.0.0-canary.173`](https://github.com/vercel/next.js/releases/tag/v15.0.0-canary.173 )
and react to `19.0.0-rc-3edc000d-20240926`.
Adds neccessary awaits according to this breaking change
https://github.com/vercel/next.js/pull/68812
## Breaking Changes
The `params` and `searchParams` types in
`app/(payload)/admin/[[...segments]]/page.tsx` and
`app/(payload)/admin/[[...segments]]/not-found.tsx` must be changed to
promises:
```diff
- type Args = {
- params: {
- segments: string[]
- }
- searchParams: {
- [key: string]: string | string[]
- }
- }
+ type Args = {
+ params: Promise<{
+ segments: string[]
+ }>
+ searchParams: Promise<{
+ [key: string]: string | string[]
+ }>
+ }
```
2024-10-01 13:16:11 -04:00
Jacob Fletcher
0f5fe98a1b
renames BaseServerFunctionArgs to DefaultServerFunctionArgs
2024-10-01 12:32:00 -04:00
Jacob Fletcher
e330f1756f
renames RootServerFunction type to ServerFunctionHandler
2024-10-01 12:30:33 -04:00
Jacob Fletcher
c353a0f296
renames serverFunction to plural
2024-10-01 12:27:39 -04:00
Jacob Fletcher
a7c1dd057d
properly inits req
2024-10-01 12:02:30 -04:00
Jacob Fletcher
3cbf7b2603
gets language from action itself and properly drills user into local req
2024-10-01 11:27:30 -04:00
Jacob Fletcher
a4135e5975
renames function property to fn
2024-10-01 10:49:04 -04:00
Jacob Fletcher
7fb860f15b
removes unnecessary useAuth hooks
2024-10-01 10:43:52 -04:00
Jacob Fletcher
e684f3ac2e
adds test for custom server functions
2024-10-01 10:23:06 -04:00
Jacob Fletcher
ac25118945
sanitizes server functions from client config
2024-10-01 00:47:42 -04:00
Jacob Fletcher
9a859a453e
cleanup
2024-09-30 23:25:38 -04:00
Jacob Fletcher
dc46f18af9
epxoses in config and renames server actions to server function in preparation for react v19-beta
2024-09-30 22:20:53 -04:00
Germán Jabloñski
d80410b228
fix(ui): admin.allowCreate in upload field ( #8484 )
...
The admin.allowCreate property on the upload field was not doing what it
was supposed to do. In fact, it was doing nothing.
From now on, when set to false, the option to create a new upload from
the UI disappears.



The tests cover:
- the create new button disappears.
- the option to create one by drag and drop disappears.
- the create new button inside the drawer disappears.
2024-09-30 18:54:34 -03:00
Jacob Fletcher
271a8c7191
cleanup
2024-09-30 17:51:15 -04:00
Jacob Fletcher
0dbc3bad57
passing tests
2024-09-30 17:46:46 -04:00
Dan Ribbens
27b1629927
fix(db-postgres, db-sqlite): joins relation name ( #8491 )
...
A join field on a relationship with a camelCase name would cause an
error from drizzle due to the relation name not matching.
2024-09-30 16:47:21 -04:00
Jacob Fletcher
4f0cb93204
creates local req
2024-09-30 15:54:57 -04:00
Jacob Fletcher
b035afe4e3
adds auth
2024-09-30 15:36:24 -04:00
Paul
dfdea0d4eb
chore: update vscode launch settings for debugging test suites ( #8399 )
2024-09-30 15:18:03 -04:00
Elliot DeNolf
96d99cb361
chore(release): v3.0.0-beta.110 [skip ci]
v3.0.0-beta.110
2024-09-30 13:19:32 -04:00
Dan Ribbens
3f375cc6ee
feat: join field on upload fields ( #8379 )
...
This PR makes it possible to use the new `join` field in connection with
an `upload` field. Previously `join` was reserved only for
relationships.
2024-09-30 13:12:30 -04:00
Dan Ribbens
3847428f0a
fix(db-*): make db.begintransactions required ( #8419 )
...
Changing the transcations functions on the db so that projects using
typescript `strict: true` do not need to type narrow before using it.
2024-09-30 13:12:07 -04:00
Sasha
7b6a760e97
fix(db-mongodb): duplicate versions with parent string ids ( #8487 )
...
Fixes https://github.com/payloadcms/payload/issues/8441
we may want to add a predifined migration that changes all what's needed
to ObjectIDs @DanRibbens
2024-09-30 13:06:48 -04:00
James Mikrut
0c1004537d
fix: draft status access control checks ( #8486 )
2024-09-30 16:41:54 +00:00
Sasha
e765a5e866
fix: reset password link extra slash and thread admin.routes.reset property ( #8448 )
...
Removes extra slash
from:
`http://host/admin//reset/token `
to:
`http://host/admin/reset/token `
Threads `admin.routes.reset`:
```ts
const config: Config = {
admin: {
routes: {
reset: '/custom-reset',
},
},
}
```
2024-09-30 19:06:19 +03:00
Ante
f543e8963e
chore(translations): croatian translation improvements ( #7413 )
...
Croatian translation is improved for better choice of words in given
context, typos, extra whitespaces and consistency of formal pronouns
use.
2024-09-30 12:04:34 -04:00
Jacob Fletcher
d33f9f5a1c
feat!: server actions
2024-09-30 10:06:33 -04:00
Alessio Gravili
163f3c0692
feat(richtext-lexical): export $createInlineBlockNode, $isInlineBlockNode and InlineBlockNode ( #8480 )
2024-09-30 13:42:49 +00:00
Dan Ribbens
4241811fa9
fix: sorting by id incorrectly orders by version.id ( #8442 )
...
fixes #7187
2024-09-30 09:16:41 -04:00
Patrik
8110cb9956
fix(db-mongodb): properly filters out number field values with the exists operator filter ( #8416 )
...
V2 PR [here](https://github.com/payloadcms/payload/pull/8415 )
2024-09-30 08:59:58 -04:00
Paul
e5ca476d7f
fix(ui): RTL not applying for localised textarea fields ( #8474 )
2024-09-29 19:25:09 +00:00
Alessio Gravili
161749bde9
chore: fix build by adding missing translation keys ( #8471 )
2024-09-29 10:56:36 +00:00
Mike Bailey
22f120dc85
feat(translations): add danish translations ( #7809 )
...
Added Danish (da-DK) translations for Beta
2024-09-28 18:13:31 -04:00
Alessio Gravili
e7b44dc545
chore: add workaround for unsettled top-level await script failures ( #8467 )
...
currently only for pnpm dev
2024-09-28 17:53:45 +00:00
Germán Jabloñski
8b44676b0d
feat(richtext-lexical)!: upgrade lexical from 0.17.0 to 0.18.0, make tables more reliable ( #8444 )
...
This PR
- Introduces multiline markdown transformers / mdx support
- Introduce `shouldMergeAdjacentLines` option in
`$convertFromMarkdownString`. If true, merges adjacent lines as per
commonmark spec. This would allow to close:
https://github.com/payloadcms/payload/issues/8049
- Many new features and bug fixes!
- Ports over changes from the lexical playground. Most notably:
- add support for enabling table row stripping
- make table resizing & table cell selection more reliable
**BREAKING**: This upgrades lexical from 0.17.0 to 0.18.0. If you have
any lexical packages installed in your project, please update them
accordingly. Additionally, if you depend on the lexical APIs, please
consult their changelog, as lexical may introduce breaking changes:
https://github.com/facebook/lexical/releases/tag/v0.18.0
---------
Co-authored-by: Alessio Gravili <alessio@gravili.de >
2024-09-28 13:10:44 -04:00
Sasha
613d3b090e
fix(drizzle): hasMany / poly relationships nested to localized fields / nested blocks to localized fields ( #8456 )
...
fixes https://github.com/payloadcms/payload/issues/8455 and
https://github.com/payloadcms/payload/issues/8462
- Builds the `_locale` column for the `_rels` when it's inside of a
localized group / tab
- Properly builds `sanitizedPath` for blocks in the transform-read
function when it's inside of a localized field. This fixes with fields
inside that have its own table (like `_rels`, select `hasMany: true`
etc)
Adds _more_ tests!
2024-09-28 17:33:50 +03:00
Paul
fb603448d8
feat(templates): add search functionality to the website template ( #8454 )
...
- adds a /search and search plugin example to website template
- adds an additional check for valid paths on /preview
- fixes a few bugs around the site
2024-09-27 18:01:58 -06:00
Germán Jabloñski
f50174f5b8
fix(richtext-lexical): match the indentation spacing of paragraphs and lists ( #8437 )
...
Before this, indented paragraphs, un/ordered list-items, and checkbox
list-items had 3 different sizes.
This PR unifies all 3 to match.
Related:
- https://github.com/payloadcms/payload/pull/8138
- https://github.com/facebook/lexical/pull/4025
List-items were using a custom indentation size, instead of the
browser's default. The reason I'm adapting list-items to this default
size and not the paragraphs to list-items, is because when
importing/exporting html in contexts where our CSS isn't present, visual
consistency is maintained.
Also, the browsers' default looks fine to me.
Note: Lexical's detection of whether the checkbox is clicked is a bit
hacky. I've made sure it doesn't break and added an explanatory comment
to prevent anyone from breaking it in the future.
## Before

## After

2024-09-27 13:28:36 -03:00
Germán Jabloñski
17e0547db3
feat(payload, ui): add admin.allowEdit relationship field ( #8398 )
...
This PR adds a new property `allowEdit` to the admin of the relationship
field. It is very similar to the existing `allowCreate`, only in this
case it hides the edit icon:
<img width="796" alt="image"
src="https://github.com/user-attachments/assets/bbe79bb2-db06-4ec4-b023-2f1c53330fcb ">
2024-09-27 09:22:03 -04:00