datocms-plugin-sdk 2.1.0 → 3.0.0-alpha.0

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.
package/src/manifest.ts CHANGED
@@ -3340,13 +3340,26 @@ export const manifest: Manifest = {
3340
3340
  comment: {
3341
3341
  markdownText:
3342
3342
  'An object containing the theme colors for the current DatoCMS project.',
3343
+ deprecatedMarkdownText:
3344
+ 'Use `semanticColorTokensTheme` instead. This property is kept\nfor backward compatibility with third-party plugins.',
3343
3345
  },
3344
3346
  location: {
3345
3347
  filePath: 'src/ctx/base.ts',
3346
- lineNumber: 87,
3348
+ lineNumber: 92,
3347
3349
  },
3348
3350
  type: 'Theme',
3349
3351
  },
3352
+ semanticColorTokensTheme: {
3353
+ comment: {
3354
+ markdownText:
3355
+ 'Semantic color tokens for the current DatoCMS project, pre-computed by\nthe host. Only available on DatoCMS hosts that support the new token\nsystem.',
3356
+ },
3357
+ location: {
3358
+ filePath: 'src/ctx/base.ts',
3359
+ lineNumber: 99,
3360
+ },
3361
+ type: 'SemanticColorTokensTheme',
3362
+ },
3350
3363
  },
3351
3364
  },
3352
3365
  {
@@ -3363,7 +3376,7 @@ export const manifest: Manifest = {
3363
3376
  },
3364
3377
  location: {
3365
3378
  filePath: 'src/ctx/base.ts',
3366
- lineNumber: 97,
3379
+ lineNumber: 109,
3367
3380
  },
3368
3381
  type: 'Partial<Record<string, ItemType>>',
3369
3382
  },
@@ -3374,7 +3387,7 @@ export const manifest: Manifest = {
3374
3387
  },
3375
3388
  location: {
3376
3389
  filePath: 'src/ctx/base.ts',
3377
- lineNumber: 104,
3390
+ lineNumber: 116,
3378
3391
  },
3379
3392
  type: 'Partial<Record<string, Field>>',
3380
3393
  },
@@ -3385,7 +3398,7 @@ export const manifest: Manifest = {
3385
3398
  },
3386
3399
  location: {
3387
3400
  filePath: 'src/ctx/base.ts',
3388
- lineNumber: 111,
3401
+ lineNumber: 123,
3389
3402
  },
3390
3403
  type: 'Partial<Record<string, Fieldset>>',
3391
3404
  },
@@ -3396,7 +3409,7 @@ export const manifest: Manifest = {
3396
3409
  },
3397
3410
  location: {
3398
3411
  filePath: 'src/ctx/base.ts',
3399
- lineNumber: 118,
3412
+ lineNumber: 130,
3400
3413
  },
3401
3414
  type: 'Partial<Record<string, User>>',
3402
3415
  },
@@ -3407,7 +3420,7 @@ export const manifest: Manifest = {
3407
3420
  },
3408
3421
  location: {
3409
3422
  filePath: 'src/ctx/base.ts',
3410
- lineNumber: 125,
3423
+ lineNumber: 137,
3411
3424
  },
3412
3425
  type: 'Partial<Record<string, SsoUser>>',
3413
3426
  },
@@ -3431,7 +3444,7 @@ export const manifest: Manifest = {
3431
3444
  },
3432
3445
  location: {
3433
3446
  filePath: 'src/ctx/base.ts',
3434
- lineNumber: 168,
3447
+ lineNumber: 341,
3435
3448
  },
3436
3449
  type: '(itemTypeId: string) => Promise<Field[]>',
3437
3450
  },
@@ -3444,7 +3457,7 @@ export const manifest: Manifest = {
3444
3457
  },
3445
3458
  location: {
3446
3459
  filePath: 'src/ctx/base.ts',
3447
- lineNumber: 187,
3460
+ lineNumber: 360,
3448
3461
  },
3449
3462
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3450
3463
  },
@@ -3457,7 +3470,7 @@ export const manifest: Manifest = {
3457
3470
  },
3458
3471
  location: {
3459
3472
  filePath: 'src/ctx/base.ts',
3460
- lineNumber: 204,
3473
+ lineNumber: 377,
3461
3474
  },
3462
3475
  type: '() => Promise<Field[]>',
3463
3476
  },
@@ -3470,7 +3483,7 @@ export const manifest: Manifest = {
3470
3483
  },
3471
3484
  location: {
3472
3485
  filePath: 'src/ctx/base.ts',
3473
- lineNumber: 217,
3486
+ lineNumber: 390,
3474
3487
  },
3475
3488
  type: '() => Promise<User[]>',
3476
3489
  },
@@ -3483,7 +3496,7 @@ export const manifest: Manifest = {
3483
3496
  },
3484
3497
  location: {
3485
3498
  filePath: 'src/ctx/base.ts',
3486
- lineNumber: 230,
3499
+ lineNumber: 403,
3487
3500
  },
3488
3501
  type: '() => Promise<SsoUser[]>',
3489
3502
  },
@@ -3505,7 +3518,7 @@ export const manifest: Manifest = {
3505
3518
  },
3506
3519
  location: {
3507
3520
  filePath: 'src/ctx/base.ts',
3508
- lineNumber: 252,
3521
+ lineNumber: 425,
3509
3522
  },
3510
3523
  type: '(params: Record<string, unknown>) => Promise<void>',
3511
3524
  },
@@ -3518,7 +3531,7 @@ export const manifest: Manifest = {
3518
3531
  },
3519
3532
  location: {
3520
3533
  filePath: 'src/ctx/base.ts',
3521
- lineNumber: 303,
3534
+ lineNumber: 476,
3522
3535
  },
3523
3536
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3524
3537
  },
@@ -3540,7 +3553,7 @@ export const manifest: Manifest = {
3540
3553
  },
3541
3554
  location: {
3542
3555
  filePath: 'src/ctx/base.ts',
3543
- lineNumber: 408,
3556
+ lineNumber: 581,
3544
3557
  },
3545
3558
  type: '(message: string) => Promise<void>',
3546
3559
  },
@@ -3553,7 +3566,7 @@ export const manifest: Manifest = {
3553
3566
  },
3554
3567
  location: {
3555
3568
  filePath: 'src/ctx/base.ts',
3556
- lineNumber: 423,
3569
+ lineNumber: 596,
3557
3570
  },
3558
3571
  type: '(message: string) => Promise<void>',
3559
3572
  },
@@ -3566,7 +3579,7 @@ export const manifest: Manifest = {
3566
3579
  },
3567
3580
  location: {
3568
3581
  filePath: 'src/ctx/base.ts',
3569
- lineNumber: 447,
3582
+ lineNumber: 620,
3570
3583
  },
3571
3584
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3572
3585
  },
@@ -3588,7 +3601,7 @@ export const manifest: Manifest = {
3588
3601
  },
3589
3602
  location: {
3590
3603
  filePath: 'src/ctx/base.ts',
3591
- lineNumber: 333,
3604
+ lineNumber: 506,
3592
3605
  },
3593
3606
  type: '(itemTypeId: string) => Promise<Item | null>',
3594
3607
  },
@@ -3601,7 +3614,7 @@ export const manifest: Manifest = {
3601
3614
  },
3602
3615
  location: {
3603
3616
  filePath: 'src/ctx/base.ts',
3604
- lineNumber: 354,
3617
+ lineNumber: 527,
3605
3618
  },
3606
3619
  type: '{\n (\n itemTypeId: string,\n options: { multiple: true; initialLocationQuery?: ItemListLocationQuery },\n ): Promise<Item[] | null>;\n (\n itemTypeId: string,\n options?: {\n multiple: false;\n initialLocationQuery?: ItemListLocationQuery;\n },\n ): Promise<Item | null>;\n }',
3607
3620
  },
@@ -3614,7 +3627,7 @@ export const manifest: Manifest = {
3614
3627
  },
3615
3628
  location: {
3616
3629
  filePath: 'src/ctx/base.ts',
3617
- lineNumber: 386,
3630
+ lineNumber: 559,
3618
3631
  },
3619
3632
  type: '(itemId: string) => Promise<Item | null>',
3620
3633
  },
@@ -3636,7 +3649,7 @@ export const manifest: Manifest = {
3636
3649
  },
3637
3650
  location: {
3638
3651
  filePath: 'src/ctx/base.ts',
3639
- lineNumber: 474,
3652
+ lineNumber: 647,
3640
3653
  },
3641
3654
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3642
3655
  },
@@ -3649,7 +3662,7 @@ export const manifest: Manifest = {
3649
3662
  },
3650
3663
  location: {
3651
3664
  filePath: 'src/ctx/base.ts',
3652
- lineNumber: 502,
3665
+ lineNumber: 675,
3653
3666
  },
3654
3667
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3655
3668
  },
@@ -3662,7 +3675,7 @@ export const manifest: Manifest = {
3662
3675
  },
3663
3676
  location: {
3664
3677
  filePath: 'src/ctx/base.ts',
3665
- lineNumber: 530,
3678
+ lineNumber: 703,
3666
3679
  },
3667
3680
  type: '(\n /** The "single asset" field structure */\n fileFieldValue: FileFieldValue,\n /** Shows metadata information for a specific locale */\n locale?: string,\n ) => Promise<FileFieldValue | null>',
3668
3681
  },
@@ -3684,7 +3697,7 @@ export const manifest: Manifest = {
3684
3697
  },
3685
3698
  location: {
3686
3699
  filePath: 'src/ctx/base.ts',
3687
- lineNumber: 561,
3700
+ lineNumber: 734,
3688
3701
  },
3689
3702
  type: '(modal: Modal) => Promise<unknown>',
3690
3703
  },
@@ -3697,7 +3710,7 @@ export const manifest: Manifest = {
3697
3710
  },
3698
3711
  location: {
3699
3712
  filePath: 'src/ctx/base.ts',
3700
- lineNumber: 598,
3713
+ lineNumber: 771,
3701
3714
  },
3702
3715
  type: '(options: ConfirmOptions) => Promise<unknown>',
3703
3716
  },
@@ -3718,7 +3731,7 @@ export const manifest: Manifest = {
3718
3731
  },
3719
3732
  location: {
3720
3733
  filePath: 'src/ctx/base.ts',
3721
- lineNumber: 612,
3734
+ lineNumber: 785,
3722
3735
  },
3723
3736
  type: '(path: string) => Promise<void>',
3724
3737
  },