@ai-stack/payloadcms 3.2.9-beta → 3.2.11-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +36 -21
  2. package/dist/ai/models/anthropic/generateRichText.d.ts +1 -1
  3. package/dist/ai/models/anthropic/generateRichText.d.ts.map +1 -1
  4. package/dist/ai/models/anthropic/generateRichText.js +5 -6
  5. package/dist/ai/models/anthropic/generateRichText.js.map +1 -1
  6. package/dist/ai/models/anthropic/index.js +15 -12
  7. package/dist/ai/models/anthropic/index.js.map +1 -1
  8. package/dist/ai/models/openai/generateImage.d.ts +2 -6
  9. package/dist/ai/models/openai/generateImage.d.ts.map +1 -1
  10. package/dist/ai/models/openai/generateImage.js +19 -9
  11. package/dist/ai/models/openai/generateImage.js.map +1 -1
  12. package/dist/ai/models/openai/generateRichText.d.ts +1 -1
  13. package/dist/ai/models/openai/generateRichText.d.ts.map +1 -1
  14. package/dist/ai/models/openai/generateRichText.js +5 -6
  15. package/dist/ai/models/openai/generateRichText.js.map +1 -1
  16. package/dist/ai/models/openai/index.d.ts.map +1 -1
  17. package/dist/ai/models/openai/index.js +133 -4
  18. package/dist/ai/models/openai/index.js.map +1 -1
  19. package/dist/ai/prompts.js +6 -6
  20. package/dist/ai/prompts.js.map +1 -1
  21. package/dist/ai/schemas/lexicalJsonSchema.d.ts +19 -741
  22. package/dist/ai/schemas/lexicalJsonSchema.d.ts.map +1 -1
  23. package/dist/ai/schemas/lexicalJsonSchema.js +72 -4
  24. package/dist/ai/schemas/lexicalJsonSchema.js.map +1 -1
  25. package/dist/ai/utils/editImagesWithOpenAI.d.ts +11 -0
  26. package/dist/ai/utils/editImagesWithOpenAI.d.ts.map +1 -0
  27. package/dist/ai/utils/editImagesWithOpenAI.js +37 -0
  28. package/dist/ai/utils/editImagesWithOpenAI.js.map +1 -0
  29. package/dist/ai/utils/filterEditorSchemaByNodes.d.ts +72 -0
  30. package/dist/ai/utils/filterEditorSchemaByNodes.d.ts.map +1 -0
  31. package/dist/ai/utils/filterEditorSchemaByNodes.js +43 -0
  32. package/dist/ai/utils/filterEditorSchemaByNodes.js.map +1 -0
  33. package/dist/ai/utils/isObjectSchema.d.ts +3 -0
  34. package/dist/ai/utils/isObjectSchema.d.ts.map +1 -0
  35. package/dist/ai/utils/isObjectSchema.js +5 -0
  36. package/dist/ai/utils/isObjectSchema.js.map +1 -0
  37. package/dist/collections/Instructions.d.ts.map +1 -1
  38. package/dist/collections/Instructions.js +26 -1
  39. package/dist/collections/Instructions.js.map +1 -1
  40. package/dist/defaults.d.ts +1 -1
  41. package/dist/defaults.js +1 -1
  42. package/dist/defaults.js.map +1 -1
  43. package/dist/endpoints/index.d.ts.map +1 -1
  44. package/dist/endpoints/index.js +65 -15
  45. package/dist/endpoints/index.js.map +1 -1
  46. package/dist/fields/PromptEditorField/PromptEditorField.d.ts.map +1 -1
  47. package/dist/fields/PromptEditorField/PromptEditorField.js +46 -16
  48. package/dist/fields/PromptEditorField/PromptEditorField.js.map +1 -1
  49. package/dist/fields/PromptEditorField/defaultStyle.d.ts +50 -0
  50. package/dist/fields/PromptEditorField/defaultStyle.d.ts.map +1 -0
  51. package/dist/fields/PromptEditorField/defaultStyle.js +51 -0
  52. package/dist/fields/PromptEditorField/defaultStyle.js.map +1 -0
  53. package/dist/providers/InstructionsProvider/InstructionsProvider.d.ts +2 -0
  54. package/dist/providers/InstructionsProvider/InstructionsProvider.d.ts.map +1 -1
  55. package/dist/providers/InstructionsProvider/InstructionsProvider.js +4 -1
  56. package/dist/providers/InstructionsProvider/InstructionsProvider.js.map +1 -1
  57. package/dist/providers/InstructionsProvider/useInstructions.d.ts.map +1 -1
  58. package/dist/providers/InstructionsProvider/useInstructions.js +54 -29
  59. package/dist/providers/InstructionsProvider/useInstructions.js.map +1 -1
  60. package/dist/types.d.ts +18 -1
  61. package/dist/types.d.ts.map +1 -1
  62. package/dist/types.js.map +1 -1
  63. package/dist/ui/Compose/Compose.js +2 -2
  64. package/dist/ui/Compose/Compose.js.map +1 -1
  65. package/dist/ui/Compose/hooks/menu/useMenu.d.ts +1 -1
  66. package/dist/ui/Compose/hooks/menu/useMenu.d.ts.map +1 -1
  67. package/dist/ui/Compose/hooks/menu/useMenu.js +2 -1
  68. package/dist/ui/Compose/hooks/menu/useMenu.js.map +1 -1
  69. package/dist/ui/Compose/hooks/useGenerate.d.ts.map +1 -1
  70. package/dist/ui/Compose/hooks/useGenerate.js +11 -4
  71. package/dist/ui/Compose/hooks/useGenerate.js.map +1 -1
  72. package/dist/utilities/extractImageData.d.ts +10 -0
  73. package/dist/utilities/extractImageData.d.ts.map +1 -0
  74. package/dist/utilities/extractImageData.js +22 -0
  75. package/dist/utilities/extractImageData.js.map +1 -0
  76. package/dist/utilities/setSafeLexicalState.js +5 -2
  77. package/dist/utilities/setSafeLexicalState.js.map +1 -1
  78. package/package.json +14 -9
  79. package/dist/ai/models/example-prompt-rich-text.md +0 -47
  80. package/dist/ai/models/example.d.ts +0 -73
  81. package/dist/ai/models/example.d.ts.map +0 -1
  82. package/dist/ai/models/example.js +0 -126
  83. package/dist/ai/models/example.js.map +0 -1
  84. package/dist/libraries/autocomplete/AutocompleteTextArea.d.ts +0 -8
  85. package/dist/libraries/autocomplete/AutocompleteTextArea.d.ts.map +0 -1
  86. package/dist/libraries/autocomplete/AutocompleteTextArea.js +0 -437
  87. package/dist/libraries/autocomplete/AutocompleteTextArea.js.map +0 -1
  88. package/dist/libraries/autocomplete/AutocompleteTextArea.module.scss +0 -35
@@ -1,747 +1,25 @@
1
- export declare const documentSchema: {
2
- type: string;
3
- $schema: string;
4
- additionalProperties: boolean;
5
- definitions: {
6
- TextNode: {
7
- type: string;
8
- additionalProperties: boolean;
9
- properties: {
10
- type: {
11
- type: string;
12
- enum: string[];
13
- };
14
- detail: {
15
- type: string;
16
- description: string;
17
- enum: number[];
18
- examples: {
19
- description: string;
20
- value: number;
21
- }[];
22
- };
23
- direction: {
24
- type: string[];
25
- enum: string[];
26
- };
27
- format: {
28
- type: string;
29
- description: string;
30
- };
31
- indent: {
32
- type: string;
33
- };
34
- mode: {
35
- type: string;
36
- description: string;
37
- enum: number[];
38
- examples: {
39
- description: string;
40
- value: number;
41
- }[];
42
- };
43
- style: {
44
- type: string;
45
- description: string;
46
- };
47
- text: {
48
- type: string;
49
- };
50
- version: {
51
- type: string;
52
- };
53
- };
54
- required: string[];
55
- };
56
- TableCellNode: {
57
- type: string;
58
- additionalProperties: boolean;
59
- properties: {
60
- type: {
61
- type: string;
62
- enum: string[];
63
- };
64
- children: {
65
- type: string;
66
- items: {
67
- $ref: string;
68
- };
69
- };
70
- colSpan: {
71
- type: string;
72
- };
73
- direction: {
74
- type: string[];
75
- enum: string[];
76
- };
77
- headerState: {
78
- type: string;
79
- };
80
- indent: {
81
- type: string;
82
- };
83
- version: {
84
- type: string;
85
- };
86
- width: {
87
- type: string[];
88
- enum: any[];
89
- };
90
- };
91
- required: string[];
92
- };
93
- TableRowNode: {
94
- type: string;
95
- additionalProperties: boolean;
96
- properties: {
97
- type: {
98
- type: string;
99
- enum: string[];
100
- };
101
- children: {
102
- type: string;
103
- items: {
104
- $ref: string;
105
- };
106
- };
107
- height: {
108
- type: string;
109
- };
110
- };
111
- required: string[];
112
- };
113
- TableNode: {
114
- type: string;
115
- additionalProperties: boolean;
116
- properties: {
117
- type: {
118
- type: string;
119
- enum: string[];
120
- };
121
- children: {
122
- type: string;
123
- items: {
124
- $ref: string;
125
- };
126
- };
127
- };
128
- required: string[];
129
- };
130
- HeadingNode: {
131
- type: string;
132
- additionalProperties: boolean;
133
- properties: {
134
- type: {
135
- type: string;
136
- enum: string[];
137
- };
138
- children: {
139
- type: string;
140
- items: {
141
- anyOf: {
142
- $ref: string;
143
- }[];
144
- };
145
- };
146
- direction: {
147
- type: string[];
148
- enum: string[];
149
- };
150
- indent: {
151
- type: string;
152
- };
153
- tag: {
154
- type: string;
155
- enum: string[];
156
- };
157
- version: {
158
- type: string;
159
- };
160
- };
161
- required: string[];
162
- };
163
- ParagraphNode: {
164
- type: string;
165
- additionalProperties: boolean;
166
- properties: {
167
- type: {
168
- type: string;
169
- enum: string[];
170
- };
171
- children: {
172
- type: string;
173
- items: {
174
- anyOf: {
175
- $ref: string;
176
- }[];
177
- };
178
- };
179
- direction: {
180
- type: string[];
181
- enum: string[];
182
- };
183
- format: {
184
- type: string;
185
- enum: string[];
186
- };
187
- indent: {
188
- type: string;
189
- };
190
- textFormat: {
191
- type: string;
192
- };
193
- textStyle: {
194
- type: string;
195
- description: string;
196
- };
197
- version: {
198
- type: string;
199
- };
200
- };
201
- required: string[];
202
- };
203
- LinkNode: {
204
- type: string;
205
- additionalProperties: boolean;
206
- properties: {
207
- type: {
208
- type: string;
209
- enum: string[];
210
- };
211
- children: {
212
- type: string;
213
- items: {
214
- $ref: string;
215
- };
216
- };
217
- url: {
218
- type: string;
219
- };
220
- };
221
- required: string[];
222
- };
223
- ListItemNode: {
224
- type: string;
225
- additionalProperties: boolean;
226
- properties: {
227
- indent: {
228
- type: string;
229
- enum: number[];
230
- };
231
- type: {
232
- type: string;
233
- enum: string[];
234
- };
235
- children: {
236
- type: string;
237
- items: {
238
- anyOf: {
239
- $ref: string;
240
- }[];
241
- };
242
- };
243
- };
244
- required: string[];
245
- };
246
- ListNode: {
247
- type: string;
248
- additionalProperties: boolean;
249
- properties: {
250
- type: {
251
- type: string;
252
- enum: string[];
253
- };
254
- children: {
255
- type: string;
256
- items: {
257
- $ref: string;
258
- };
259
- };
260
- listType: {
261
- type: string;
262
- enum: string[];
263
- };
264
- };
265
- required: string[];
266
- };
267
- QuoteNode: {
268
- type: string;
269
- additionalProperties: boolean;
270
- properties: {
271
- type: {
272
- type: string;
273
- enum: string[];
274
- };
275
- children: {
276
- type: string;
277
- items: {
278
- anyOf: {
279
- $ref: string;
280
- }[];
281
- };
282
- };
283
- };
284
- required: string[];
285
- };
286
- CodeNode: {
287
- type: string;
288
- additionalProperties: boolean;
289
- properties: {
290
- type: {
291
- type: string;
292
- enum: string[];
293
- };
294
- code: {
295
- type: string;
296
- };
297
- language: {
298
- type: string;
299
- };
300
- };
301
- required: string[];
302
- };
303
- HorizontalRuleNode: {
304
- type: string;
305
- additionalProperties: boolean;
306
- properties: {
307
- type: {
308
- type: string;
309
- enum: string[];
310
- };
311
- };
312
- required: string[];
313
- };
314
- ImageNode: {
315
- type: string;
316
- additionalProperties: boolean;
317
- properties: {
318
- type: {
319
- type: string;
320
- enum: string[];
321
- };
322
- alt: {
323
- type: string;
324
- };
325
- caption: {
326
- type: string;
327
- items: {
328
- $ref: string;
329
- };
330
- };
331
- src: {
332
- type: string;
333
- };
334
- };
335
- required: string[];
336
- };
337
- RootNode: {
338
- type: string;
339
- additionalProperties: boolean;
340
- properties: {
341
- type: {
342
- type: string;
343
- enum: string[];
344
- };
345
- children: {
346
- type: string;
347
- items: {
348
- anyOf: {
349
- $ref: string;
350
- }[];
351
- };
352
- };
353
- direction: {
354
- type: string[];
355
- enum: string[];
356
- };
357
- indent: {
358
- type: string;
359
- };
360
- version: {
361
- type: string;
362
- };
363
- };
364
- required: string[];
365
- };
366
- };
1
+ import type { JSONSchema7 } from 'json-schema';
2
+ export interface LexicalNodeSchema extends JSONSchema7 {
3
+ additionalProperties?: boolean;
367
4
  properties: {
368
- root: {
369
- $ref: string;
370
- };
371
- };
372
- required: string[];
373
- };
374
- export declare const lexicalJsonSchema: (customNodes?: any[]) => {
375
- type: string;
376
- $schema: string;
377
- additionalProperties: boolean;
378
- definitions: {
379
- TextNode: {
380
- type: string;
381
- additionalProperties: boolean;
382
- properties: {
383
- type: {
384
- type: string;
385
- enum: string[];
386
- };
387
- detail: {
388
- type: string;
389
- description: string;
390
- enum: number[];
391
- examples: {
392
- description: string;
393
- value: number;
394
- }[];
395
- };
396
- direction: {
397
- type: string[];
398
- enum: string[];
399
- };
400
- format: {
401
- type: string;
402
- description: string;
403
- };
404
- indent: {
405
- type: string;
406
- };
407
- mode: {
408
- type: string;
409
- description: string;
410
- enum: number[];
411
- examples: {
412
- description: string;
413
- value: number;
414
- }[];
415
- };
416
- style: {
417
- type: string;
418
- description: string;
419
- };
420
- text: {
421
- type: string;
422
- };
423
- version: {
424
- type: string;
425
- };
426
- };
427
- required: string[];
428
- };
429
- TableCellNode: {
430
- type: string;
431
- additionalProperties: boolean;
432
- properties: {
433
- type: {
434
- type: string;
435
- enum: string[];
436
- };
437
- children: {
438
- type: string;
439
- items: {
440
- $ref: string;
441
- };
442
- };
443
- colSpan: {
444
- type: string;
445
- };
446
- direction: {
447
- type: string[];
448
- enum: string[];
449
- };
450
- headerState: {
451
- type: string;
452
- };
453
- indent: {
454
- type: string;
455
- };
456
- version: {
457
- type: string;
458
- };
459
- width: {
460
- type: string[];
461
- enum: any[];
462
- };
463
- };
464
- required: string[];
465
- };
466
- TableRowNode: {
467
- type: string;
468
- additionalProperties: boolean;
469
- properties: {
470
- type: {
471
- type: string;
472
- enum: string[];
473
- };
474
- children: {
475
- type: string;
476
- items: {
477
- $ref: string;
478
- };
479
- };
480
- height: {
481
- type: string;
482
- };
483
- };
484
- required: string[];
485
- };
486
- TableNode: {
487
- type: string;
488
- additionalProperties: boolean;
489
- properties: {
490
- type: {
491
- type: string;
492
- enum: string[];
493
- };
494
- children: {
495
- type: string;
496
- items: {
497
- $ref: string;
498
- };
499
- };
500
- };
501
- required: string[];
502
- };
503
- HeadingNode: {
504
- type: string;
505
- additionalProperties: boolean;
506
- properties: {
507
- type: {
508
- type: string;
509
- enum: string[];
510
- };
511
- children: {
512
- type: string;
513
- items: {
514
- anyOf: {
515
- $ref: string;
516
- }[];
517
- };
518
- };
519
- direction: {
520
- type: string[];
521
- enum: string[];
522
- };
523
- indent: {
524
- type: string;
525
- };
526
- tag: {
527
- type: string;
528
- enum: string[];
529
- };
530
- version: {
531
- type: string;
532
- };
533
- };
534
- required: string[];
535
- };
536
- ParagraphNode: {
537
- type: string;
538
- additionalProperties: boolean;
539
- properties: {
540
- type: {
541
- type: string;
542
- enum: string[];
543
- };
544
- children: {
545
- type: string;
546
- items: {
547
- anyOf: {
548
- $ref: string;
549
- }[];
550
- };
551
- };
552
- direction: {
553
- type: string[];
554
- enum: string[];
555
- };
556
- format: {
557
- type: string;
558
- enum: string[];
559
- };
560
- indent: {
561
- type: string;
562
- };
563
- textFormat: {
564
- type: string;
565
- };
566
- textStyle: {
567
- type: string;
568
- description: string;
569
- };
570
- version: {
571
- type: string;
572
- };
573
- };
574
- required: string[];
575
- };
576
- LinkNode: {
577
- type: string;
578
- additionalProperties: boolean;
579
- properties: {
580
- type: {
581
- type: string;
582
- enum: string[];
583
- };
584
- children: {
585
- type: string;
586
- items: {
587
- $ref: string;
588
- };
589
- };
590
- url: {
591
- type: string;
592
- };
593
- };
594
- required: string[];
595
- };
596
- ListItemNode: {
597
- type: string;
598
- additionalProperties: boolean;
599
- properties: {
600
- indent: {
601
- type: string;
602
- enum: number[];
603
- };
604
- type: {
605
- type: string;
606
- enum: string[];
607
- };
608
- children: {
609
- type: string;
610
- items: {
611
- anyOf: {
612
- $ref: string;
613
- }[];
614
- };
615
- };
5
+ [key: string]: any;
6
+ children?: {
7
+ items: {
8
+ $ref?: string;
9
+ anyOf?: {
10
+ $ref: string;
11
+ }[];
616
12
  };
617
- required: string[];
13
+ type: 'array';
618
14
  };
619
- ListNode: {
620
- type: string;
621
- additionalProperties: boolean;
622
- properties: {
623
- type: {
624
- type: string;
625
- enum: string[];
626
- };
627
- children: {
628
- type: string;
629
- items: {
630
- $ref: string;
631
- };
632
- };
633
- listType: {
634
- type: string;
635
- enum: string[];
636
- };
637
- };
638
- required: string[];
639
- };
640
- QuoteNode: {
641
- type: string;
642
- additionalProperties: boolean;
643
- properties: {
644
- type: {
645
- type: string;
646
- enum: string[];
647
- };
648
- children: {
649
- type: string;
650
- items: {
651
- anyOf: {
652
- $ref: string;
653
- }[];
654
- };
655
- };
656
- };
657
- required: string[];
658
- };
659
- CodeNode: {
660
- type: string;
661
- additionalProperties: boolean;
662
- properties: {
663
- type: {
664
- type: string;
665
- enum: string[];
666
- };
667
- code: {
668
- type: string;
669
- };
670
- language: {
671
- type: string;
672
- };
673
- };
674
- required: string[];
675
- };
676
- HorizontalRuleNode: {
677
- type: string;
678
- additionalProperties: boolean;
679
- properties: {
680
- type: {
681
- type: string;
682
- enum: string[];
683
- };
684
- };
685
- required: string[];
686
- };
687
- ImageNode: {
688
- type: string;
689
- additionalProperties: boolean;
690
- properties: {
691
- type: {
692
- type: string;
693
- enum: string[];
694
- };
695
- alt: {
696
- type: string;
697
- };
698
- caption: {
699
- type: string;
700
- items: {
701
- $ref: string;
702
- };
703
- };
704
- src: {
705
- type: string;
706
- };
707
- };
708
- required: string[];
709
- };
710
- RootNode: {
711
- type: string;
712
- additionalProperties: boolean;
713
- properties: {
714
- type: {
715
- type: string;
716
- enum: string[];
717
- };
718
- children: {
719
- type: string;
720
- items: {
721
- anyOf: {
722
- $ref: string;
723
- }[];
724
- };
725
- };
726
- direction: {
727
- type: string[];
728
- enum: string[];
729
- };
730
- indent: {
731
- type: string;
732
- };
733
- version: {
734
- type: string;
735
- };
736
- };
737
- required: string[];
738
- };
739
- };
740
- properties: {
741
- root: {
742
- $ref: string;
15
+ type?: {
16
+ enum: string[];
17
+ type: 'string';
743
18
  };
744
19
  };
745
- required: string[];
746
- };
20
+ required?: string[];
21
+ type: 'object';
22
+ }
23
+ export declare const documentSchema: LexicalNodeSchema;
24
+ export declare const lexicalJsonSchema: (customNodes?: any[]) => LexicalNodeSchema;
747
25
  //# sourceMappingURL=lexicalJsonSchema.d.ts.map