Alessio Gravili
5a82f34801
feat(richtext-lexical)!: change link fields handling ( #6162 )
...
**BREAKING:**
- Drawer fields are no longer wrapped in a `fields` group. This might be breaking if you depend on them being in a field group in any way - potentially if you use custom link fields. This does not change how the data is saved
- If you pass in an array of custom fields to the link feature, those were previously added to the base fields. Now, they completely replace the base fields for consistency. If you want to ADD fields to the base fields now, you will have to pass in a function and spread `defaultFields` - similar to how adding your own features to lexical works
**Example Migration for ADDING fields to the link base fields:**
**Previous:**
```ts
LinkFeature({
fields: [
{
name: 'rel',
label: 'Rel Attribute',
type: 'select',
hasMany: true,
options: ['noopener', 'noreferrer', 'nofollow'],
admin: {
description:
'The rel attribute defines the relationship between a linked resource and the current document. This is a custom link field.',
},
},
],
}),
```
**Now:**
```ts
LinkFeature({
fields: ({ defaultFields }) => [
...defaultFields,
{
name: 'rel',
label: 'Rel Attribute',
type: 'select',
hasMany: true,
options: ['noopener', 'noreferrer', 'nofollow'],
admin: {
description:
'The rel attribute defines the relationship between a linked resource and the current document. This is a custom link field.',
},
},
],
}),
2024-04-30 23:01:08 -04:00
Alessio Gravili
d9bb51fdc7
feat(richtext-lexical)!: initialize lexical during sanitization ( #6119 )
...
BREAKING:
- sanitizeFields is now an async function
- the richText adapters now return a function instead of returning the adapter directly
2024-04-30 15:09:32 -04:00
Elliot DeNolf
2e77bdf11e
test: add test email adapter, use for all tests by default ( #6120 )
2024-04-29 14:38:35 -04:00
Jarrod Flesch
94af06466b
chore: re-exports languages in payload ( #5771 )
2024-04-10 15:55:01 -04:00
Jarrod Flesch
35f59a47cc
chore: corrects dateFNS keys, stricter types
2024-04-09 11:38:38 -04:00
James
69e884f5b7
chore: dynamically loads date-fns locales
2024-04-08 22:12:05 -04:00
Alessio Gravili
4ff7619356
chore: remove console logs
2024-04-02 12:29:38 -04:00
Alessio Gravili
6f323e379c
add console logs
2024-04-02 10:35:20 -04:00
Alessio Gravili
42212b409a
chore: remove console log
2024-04-02 10:19:24 -04:00
James
73a555788d
chore: uses globalSetup for starting memory db
2024-04-02 09:44:55 -04:00
Alessio Gravili
34fe6182c8
temp3
2024-04-01 23:05:54 -04:00
Alessio Gravili
ee3ae6025f
temp2
2024-04-01 22:41:24 -04:00
James
df9812b2a3
Merge branch 'temp38' of github.com:payloadcms/payload into temp38
2024-04-01 22:13:02 -04:00
James
113eea04cc
chore: seed endpoint
2024-04-01 22:12:45 -04:00
Alessio Gravili
57f9ebdb68
temp1
2024-04-01 22:04:45 -04:00
James
94d0e28ad7
chore: local api sdk for e2e tests
2024-04-01 21:53:30 -04:00
James
ec6bc8e36b
chore: removes old refs to startMemoryDB
2024-04-01 17:36:36 -04:00
James
abd404c57c
chore: adjusts playwright env used to trigger memory db
2024-04-01 17:30:18 -04:00
James
c461a7fa15
chore: renames mongoose db adapter refs to mongodb
2024-04-01 17:24:43 -04:00
James
2bc45e2b2e
chore: adds logging for ci
2024-04-01 17:12:16 -04:00
James
bb8a57d2e9
chore: better pattern to initialize memory server
2024-04-01 17:04:05 -04:00
James
a0f6018469
chore: better pattern for memory db
2024-04-01 14:36:08 -04:00
Paul
aba7c13a1d
chore: rename the DB strings in buildconfigwithdefaults to DATABASE_URI ( #5490 )
...
* chore: rename the DB strings in buildconfigwithdefaults to DATABASE_URI
* reverse name change for postgres strings
2024-03-27 12:34:10 -03:00
Paul
f59d3f36d1
chore: add process.env.MONGO_URL to buildconfigwithdefaults with fallback to string ( #5489 )
2024-03-27 12:00:42 -03:00
Elliot DeNolf
1ac76d7758
chore: more linting
2024-03-19 01:15:25 -04:00
Elliot DeNolf
c5ecf48d94
chore: add test/ to workspace, update most references
2024-03-19 00:59:56 -04:00
Elliot DeNolf
ae6c4b2ddf
test: remove typescript declare from test suite type output
2024-03-16 06:45:32 -04:00
Dan Ribbens
04fcf57d0a
Fix/alpha/int tests ( #5311 )
...
* chore: converts dynamic imports to esm require
* chore: adjusts require and import usage
* chore: reverts bin script change
* chore: adjust dataloaded tests to use slate editor
* fix: converts custom auth strategy
* chore: fixes to form builder int test config
* chore: adjusts plugin-stripe and int tests
---------
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2024-03-12 16:27:43 -04:00
Alessio Gravili
8895f6420f
chore: fix all esm test suite imports
2024-03-08 14:42:24 -05:00
Dan Ribbens
f01072eb11
chore: test drop db
2024-03-08 12:46:29 -05:00
Alessio Gravili
7880fb402a
chore: playwright support ( #5262 )
...
* working playwright
* chore: use zipped, local build of playwright instead of patching it
* chore: remove bloat
* chore: get playwright and lexical to work by fixing imports from cjs modules
2024-03-08 10:56:13 -05:00
James
fb7e671c26
chore: begins work to get playwright working with esm
2024-03-07 16:26:46 -05:00
Jarrod Flesch
5e368f486a
chore: esm fixes in _community test dir
2024-03-07 12:03:02 -05:00
James
c6c5b2e682
chore: safely uses deepMerge
2024-03-07 11:33:46 -05:00
James
5431a84f37
chore: safely accesses more dependencies
2024-03-07 11:04:27 -05:00
James
030ddbe12f
chore: move to lexical for local testing
2024-03-07 10:37:48 -05:00
James
694d5d92b7
chore: begins next / ui esm transform
2024-03-07 09:03:08 -05:00
James
e490f0bce6
chore: attempts to abstract sharp to optional dependency
2024-03-05 16:12:17 -05:00
Dan Ribbens
a08674f708
test: database int
2024-03-04 15:58:56 -05:00
Alessio Gravili
125e9312c1
chore: correctly import lexical stuff in test suite
2024-03-01 15:58:10 -05:00
Alessio Gravili
2c226a9c83
chore: _community test suite: remove rate limit config property
2024-03-01 15:11:58 -05:00
Alessio Gravili
9283e367b1
feat(richtext-lexical): uploads
2024-03-01 14:46:57 -05:00
Alessio Gravili
a3ffb80344
feat(richtext-lexical): relationships
2024-03-01 14:07:12 -05:00
Alessio Gravili
b6af5dcb3a
feat(richtext-lexical): paragraph feature
2024-03-01 13:44:57 -05:00
Alessio Gravili
27ea4f76f0
feat(richtext-lexical): slateToLexicalFeature
2024-03-01 13:38:39 -05:00
Alessio Gravili
cf14b32355
feat(richtext-lexical): lexicalPluginToLexical
2024-03-01 13:04:58 -05:00
Alessio Gravili
d38bbd9603
feat(richtext-lexical): lists
2024-03-01 09:54:02 -05:00
James
cbecd918fc
Merge branch 'feat/next-poc' of github.com:payloadcms/payload into feat/next-poc
2024-03-01 09:30:49 -05:00
James
ff0044229a
chore: merge
2024-03-01 09:30:37 -05:00
Alessio Gravili
175924d705
feat(richtext-lexical): indents
2024-03-01 09:29:52 -05:00