@@ -367,7 +367,7 @@ export const seed = async (_payload: Payload) => {
367
367
collection : lexicalLocalizedFieldsSlug ,
368
368
data : {
369
369
title : 'Localized Lexical en' ,
370
- lexicalBlocksLocalized : textToLexicalJSON ( { text : 'English text' } ) as any ,
370
+ lexicalBlocksLocalized : textToLexicalJSON ( { text : 'English text' } ) ,
371
371
lexicalBlocksSubLocalized : generateLexicalLocalizedRichText (
372
372
'Shared text' ,
373
373
'English text in block' ,
@@ -381,7 +381,7 @@ export const seed = async (_payload: Payload) => {
381
381
await _payload . create ( {
382
382
collection : lexicalRelationshipFieldsSlug ,
383
383
data : {
384
- richText : textToLexicalJSON ( { text : 'English text' } ) as any ,
384
+ richText : textToLexicalJSON ( { text : 'English text' } ) ,
385
385
} ,
386
386
depth : 0 ,
387
387
overrideAccess : true ,
@@ -392,7 +392,7 @@ export const seed = async (_payload: Payload) => {
392
392
id : lexicalLocalizedDoc1 . id ,
393
393
data : {
394
394
title : 'Localized Lexical es' ,
395
- lexicalBlocksLocalized : textToLexicalJSON ( { text : 'Spanish text' } ) as any ,
395
+ lexicalBlocksLocalized : textToLexicalJSON ( { text : 'Spanish text' } ) ,
396
396
lexicalBlocksSubLocalized : generateLexicalLocalizedRichText (
397
397
'Shared text' ,
398
398
'Spanish text in block' ,
@@ -408,10 +408,7 @@ export const seed = async (_payload: Payload) => {
408
408
collection : lexicalLocalizedFieldsSlug ,
409
409
data : {
410
410
title : 'Localized Lexical en 2' ,
411
- lexicalSimple : textToLexicalJSON ( {
412
- text : 'English text 2' ,
413
- lexicalLocalizedRelID : lexicalLocalizedDoc1 . id ,
414
- } ) ,
411
+
415
412
lexicalBlocksLocalized : textToLexicalJSON ( {
416
413
text : 'English text 2' ,
417
414
lexicalLocalizedRelID : lexicalLocalizedDoc1 . id ,
@@ -431,10 +428,7 @@ export const seed = async (_payload: Payload) => {
431
428
id : lexicalLocalizedDoc2 . id ,
432
429
data : {
433
430
title : 'Localized Lexical es 2' ,
434
- lexicalSimple : textToLexicalJSON ( {
435
- text : 'Spanish text 2' ,
436
- lexicalLocalizedRelID : lexicalLocalizedDoc1 . id ,
437
- } ) ,
431
+
438
432
lexicalBlocksLocalized : textToLexicalJSON ( {
439
433
text : 'Spanish text 2' ,
440
434
lexicalLocalizedRelID : lexicalLocalizedDoc1 . id ,
@@ -479,6 +473,24 @@ export const seed = async (_payload: Payload) => {
479
473
text : 'text' ,
480
474
} ,
481
475
} )
476
+
477
+ await _payload . create ( {
478
+ collection : 'LexicalInBlock' ,
479
+ data : {
480
+ blocks : [
481
+ {
482
+ blockType : 'lexicalInBlock2' ,
483
+ blockName : '1' ,
484
+ lexical : textToLexicalJSON ( { text : '1' } ) ,
485
+ } ,
486
+ {
487
+ blockType : 'lexicalInBlock2' ,
488
+ blockName : '2' ,
489
+ lexical : textToLexicalJSON ( { text : '2' } ) ,
490
+ } ,
491
+ ] ,
492
+ } ,
493
+ } )
482
494
}
483
495
484
496
export async function clearAndSeedEverything ( _payload : Payload ) {
0 commit comments