datocms-plugin-sdk 2.1.0 → 2.1.5

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.
@@ -1,4 +1,4 @@
1
- export type Icon = AwesomeFontIconIdentifier | SvgDefinition | EmojiDefinition;
1
+ export type Icon = AwesomeFontIconIdentifier | SvgDefinition;
2
2
  export declare function isIcon(value: unknown): value is Icon;
3
3
  /**
4
4
  * Defines a custom SVG icon for use in DatoCMS plugins.
@@ -56,6 +56,12 @@ export type EmojiDefinition = {
56
56
  emoji: string;
57
57
  };
58
58
  export declare function isEmojiDefinition(value: unknown): value is EmojiDefinition;
59
+ /**
60
+ * Extended icon type that includes emoji support in addition to Font Awesome and SVG icons.
61
+ * This type is specifically used for content area sidebar items where emoji icons are supported.
62
+ */
63
+ export type IconWithEmoji = Icon | EmojiDefinition;
64
+ export declare function isIconWithEmoji(value: unknown): value is IconWithEmoji;
59
65
  /**
60
66
  * Font Awesome icon identifier for use in DatoCMS plugins.
61
67
  *
package/manifest.json CHANGED
@@ -3076,13 +3076,33 @@
3076
3076
  },
3077
3077
  "type": "boolean"
3078
3078
  },
3079
+ "cdaEndpointUrl": {
3080
+ "comment": {
3081
+ "markdownText": "The URL of the Content Delivery API (GraphQL) endpoint for the current\nproject and environment.\n\nIn the vast majority of cases you don't need this: the CDA endpoint is at a\nwell-known, stable URL. It's exposed here only to support DatoCMS internal\ntesting against non-production environments (e.g. staging)."
3082
+ },
3083
+ "location": {
3084
+ "filePath": "src/ctx/base.ts",
3085
+ "lineNumber": 74
3086
+ },
3087
+ "type": "string"
3088
+ },
3089
+ "cmaBaseUrl": {
3090
+ "comment": {
3091
+ "markdownText": "The base URL of the Content Management API.\n\nIn the vast majority of cases you don't need this: the CMA lives at a\nwell-known, stable URL. It's exposed here only to support DatoCMS internal\ntesting against non-production environments (e.g. staging)."
3092
+ },
3093
+ "location": {
3094
+ "filePath": "src/ctx/base.ts",
3095
+ "lineNumber": 83
3096
+ },
3097
+ "type": "string"
3098
+ },
3079
3099
  "owner": {
3080
3100
  "comment": {
3081
3101
  "markdownText": "The account/organization that is the project owner."
3082
3102
  },
3083
3103
  "location": {
3084
3104
  "filePath": "src/ctx/base.ts",
3085
- "lineNumber": 67
3105
+ "lineNumber": 86
3086
3106
  },
3087
3107
  "type": "Account | Organization"
3088
3108
  },
@@ -3093,7 +3113,7 @@
3093
3113
  },
3094
3114
  "location": {
3095
3115
  "filePath": "src/ctx/base.ts",
3096
- "lineNumber": 75
3116
+ "lineNumber": 94
3097
3117
  },
3098
3118
  "type": "Account | undefined"
3099
3119
  },
@@ -3103,7 +3123,7 @@
3103
3123
  },
3104
3124
  "location": {
3105
3125
  "filePath": "src/ctx/base.ts",
3106
- "lineNumber": 81
3126
+ "lineNumber": 100
3107
3127
  },
3108
3128
  "type": "{\n /** Preferred locale */\n locale: string;\n }"
3109
3129
  },
@@ -3113,7 +3133,7 @@
3113
3133
  },
3114
3134
  "location": {
3115
3135
  "filePath": "src/ctx/base.ts",
3116
- "lineNumber": 87
3136
+ "lineNumber": 106
3117
3137
  },
3118
3138
  "type": "Theme"
3119
3139
  }
@@ -3131,7 +3151,7 @@
3131
3151
  },
3132
3152
  "location": {
3133
3153
  "filePath": "src/ctx/base.ts",
3134
- "lineNumber": 97
3154
+ "lineNumber": 116
3135
3155
  },
3136
3156
  "type": "Partial<Record<string, ItemType>>"
3137
3157
  },
@@ -3141,7 +3161,7 @@
3141
3161
  },
3142
3162
  "location": {
3143
3163
  "filePath": "src/ctx/base.ts",
3144
- "lineNumber": 104
3164
+ "lineNumber": 123
3145
3165
  },
3146
3166
  "type": "Partial<Record<string, Field>>"
3147
3167
  },
@@ -3151,7 +3171,7 @@
3151
3171
  },
3152
3172
  "location": {
3153
3173
  "filePath": "src/ctx/base.ts",
3154
- "lineNumber": 111
3174
+ "lineNumber": 130
3155
3175
  },
3156
3176
  "type": "Partial<Record<string, Fieldset>>"
3157
3177
  },
@@ -3161,7 +3181,7 @@
3161
3181
  },
3162
3182
  "location": {
3163
3183
  "filePath": "src/ctx/base.ts",
3164
- "lineNumber": 118
3184
+ "lineNumber": 137
3165
3185
  },
3166
3186
  "type": "Partial<Record<string, User>>"
3167
3187
  },
@@ -3171,7 +3191,7 @@
3171
3191
  },
3172
3192
  "location": {
3173
3193
  "filePath": "src/ctx/base.ts",
3174
- "lineNumber": 125
3194
+ "lineNumber": 144
3175
3195
  },
3176
3196
  "type": "Partial<Record<string, SsoUser>>"
3177
3197
  }
@@ -3192,7 +3212,7 @@
3192
3212
  },
3193
3213
  "location": {
3194
3214
  "filePath": "src/ctx/base.ts",
3195
- "lineNumber": 168
3215
+ "lineNumber": 187
3196
3216
  },
3197
3217
  "type": "(itemTypeId: string) => Promise<Field[]>"
3198
3218
  },
@@ -3203,7 +3223,7 @@
3203
3223
  },
3204
3224
  "location": {
3205
3225
  "filePath": "src/ctx/base.ts",
3206
- "lineNumber": 187
3226
+ "lineNumber": 206
3207
3227
  },
3208
3228
  "type": "(itemTypeId: string) => Promise<Fieldset[]>"
3209
3229
  },
@@ -3214,7 +3234,7 @@
3214
3234
  },
3215
3235
  "location": {
3216
3236
  "filePath": "src/ctx/base.ts",
3217
- "lineNumber": 204
3237
+ "lineNumber": 223
3218
3238
  },
3219
3239
  "type": "() => Promise<Field[]>"
3220
3240
  },
@@ -3225,7 +3245,7 @@
3225
3245
  },
3226
3246
  "location": {
3227
3247
  "filePath": "src/ctx/base.ts",
3228
- "lineNumber": 217
3248
+ "lineNumber": 236
3229
3249
  },
3230
3250
  "type": "() => Promise<User[]>"
3231
3251
  },
@@ -3236,7 +3256,7 @@
3236
3256
  },
3237
3257
  "location": {
3238
3258
  "filePath": "src/ctx/base.ts",
3239
- "lineNumber": 230
3259
+ "lineNumber": 249
3240
3260
  },
3241
3261
  "type": "() => Promise<SsoUser[]>"
3242
3262
  }
@@ -3255,7 +3275,7 @@
3255
3275
  },
3256
3276
  "location": {
3257
3277
  "filePath": "src/ctx/base.ts",
3258
- "lineNumber": 252
3278
+ "lineNumber": 271
3259
3279
  },
3260
3280
  "type": "(params: Record<string, unknown>) => Promise<void>"
3261
3281
  },
@@ -3266,7 +3286,7 @@
3266
3286
  },
3267
3287
  "location": {
3268
3288
  "filePath": "src/ctx/base.ts",
3269
- "lineNumber": 303
3289
+ "lineNumber": 322
3270
3290
  },
3271
3291
  "type": "(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>"
3272
3292
  }
@@ -3285,7 +3305,7 @@
3285
3305
  },
3286
3306
  "location": {
3287
3307
  "filePath": "src/ctx/base.ts",
3288
- "lineNumber": 408
3308
+ "lineNumber": 427
3289
3309
  },
3290
3310
  "type": "(message: string) => Promise<void>"
3291
3311
  },
@@ -3296,7 +3316,7 @@
3296
3316
  },
3297
3317
  "location": {
3298
3318
  "filePath": "src/ctx/base.ts",
3299
- "lineNumber": 423
3319
+ "lineNumber": 442
3300
3320
  },
3301
3321
  "type": "(message: string) => Promise<void>"
3302
3322
  },
@@ -3307,7 +3327,7 @@
3307
3327
  },
3308
3328
  "location": {
3309
3329
  "filePath": "src/ctx/base.ts",
3310
- "lineNumber": 447
3330
+ "lineNumber": 466
3311
3331
  },
3312
3332
  "type": "<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>"
3313
3333
  }
@@ -3326,7 +3346,7 @@
3326
3346
  },
3327
3347
  "location": {
3328
3348
  "filePath": "src/ctx/base.ts",
3329
- "lineNumber": 333
3349
+ "lineNumber": 352
3330
3350
  },
3331
3351
  "type": "(itemTypeId: string) => Promise<Item | null>"
3332
3352
  },
@@ -3337,7 +3357,7 @@
3337
3357
  },
3338
3358
  "location": {
3339
3359
  "filePath": "src/ctx/base.ts",
3340
- "lineNumber": 354
3360
+ "lineNumber": 373
3341
3361
  },
3342
3362
  "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 }"
3343
3363
  },
@@ -3348,7 +3368,7 @@
3348
3368
  },
3349
3369
  "location": {
3350
3370
  "filePath": "src/ctx/base.ts",
3351
- "lineNumber": 386
3371
+ "lineNumber": 405
3352
3372
  },
3353
3373
  "type": "(itemId: string) => Promise<Item | null>"
3354
3374
  }
@@ -3367,7 +3387,7 @@
3367
3387
  },
3368
3388
  "location": {
3369
3389
  "filePath": "src/ctx/base.ts",
3370
- "lineNumber": 474
3390
+ "lineNumber": 493
3371
3391
  },
3372
3392
  "type": "{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }"
3373
3393
  },
@@ -3378,7 +3398,7 @@
3378
3398
  },
3379
3399
  "location": {
3380
3400
  "filePath": "src/ctx/base.ts",
3381
- "lineNumber": 502
3401
+ "lineNumber": 521
3382
3402
  },
3383
3403
  "type": "(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>"
3384
3404
  },
@@ -3389,7 +3409,7 @@
3389
3409
  },
3390
3410
  "location": {
3391
3411
  "filePath": "src/ctx/base.ts",
3392
- "lineNumber": 530
3412
+ "lineNumber": 549
3393
3413
  },
3394
3414
  "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>"
3395
3415
  }
@@ -3408,7 +3428,7 @@
3408
3428
  },
3409
3429
  "location": {
3410
3430
  "filePath": "src/ctx/base.ts",
3411
- "lineNumber": 561
3431
+ "lineNumber": 580
3412
3432
  },
3413
3433
  "type": "(modal: Modal) => Promise<unknown>"
3414
3434
  },
@@ -3419,7 +3439,7 @@
3419
3439
  },
3420
3440
  "location": {
3421
3441
  "filePath": "src/ctx/base.ts",
3422
- "lineNumber": 598
3442
+ "lineNumber": 617
3423
3443
  },
3424
3444
  "type": "(options: ConfirmOptions) => Promise<unknown>"
3425
3445
  }
@@ -3438,7 +3458,7 @@
3438
3458
  },
3439
3459
  "location": {
3440
3460
  "filePath": "src/ctx/base.ts",
3441
- "lineNumber": 612
3461
+ "lineNumber": 631
3442
3462
  },
3443
3463
  "type": "(path: string) => Promise<void>"
3444
3464
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.5",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@datocms/cma-client": "*",
40
40
  "@types/react": "^17.0.3",
41
- "datocms-structured-text-utils": "^2.0.0",
41
+ "datocms-structured-text-utils": "^5.1.16",
42
42
  "emoji-regex-xs": "*",
43
43
  "penpal": "^4.1.1"
44
44
  },
@@ -46,5 +46,5 @@
46
46
  "glob": "^11.0.0",
47
47
  "typescript": "^5.6.2"
48
48
  },
49
- "gitHead": "42fea5d307d19f45233586a41f3aad273f58a577"
49
+ "gitHead": "1fc2f5b9c06a8bac49bd0e2cf731e599415ce010"
50
50
  }
package/src/ctx/base.ts CHANGED
@@ -63,6 +63,25 @@ type ProjectProperties = {
63
63
  /** Whether the current environment is the primary one */
64
64
  isEnvironmentPrimary: boolean;
65
65
 
66
+ /**
67
+ * The URL of the Content Delivery API (GraphQL) endpoint for the current
68
+ * project and environment.
69
+ *
70
+ * In the vast majority of cases you don't need this: the CDA endpoint is at a
71
+ * well-known, stable URL. It's exposed here only to support DatoCMS internal
72
+ * testing against non-production environments (e.g. staging).
73
+ */
74
+ cdaEndpointUrl: string;
75
+
76
+ /**
77
+ * The base URL of the Content Management API.
78
+ *
79
+ * In the vast majority of cases you don't need this: the CMA lives at a
80
+ * well-known, stable URL. It's exposed here only to support DatoCMS internal
81
+ * testing against non-production environments (e.g. staging).
82
+ */
83
+ cmaBaseUrl: string;
84
+
66
85
  /** The account/organization that is the project owner */
67
86
  owner: Account | Organization;
68
87
 
@@ -7,7 +7,7 @@ import {
7
7
  isRecord,
8
8
  isString,
9
9
  } from '../guardUtils.js';
10
- import { Icon, isIcon } from '../icon';
10
+ import { IconWithEmoji, isIconWithEmoji } from '../icon';
11
11
 
12
12
  export type ContentAreaSidebarItemsHook = {
13
13
  /**
@@ -32,11 +32,11 @@ export type ContentAreaSidebarItem = {
32
32
  label: string;
33
33
  /**
34
34
  * Icon to be shown alongside the label. Can be a FontAwesome icon name (ie.
35
- * `"address-book"`) or a custom SVG definition. To maintain visual
35
+ * `"address-book"`), a custom SVG definition, or an emoji. To maintain visual
36
36
  * consistency with the rest of the interface, try to use FontAwesome icons
37
37
  * whenever possible.
38
38
  */
39
- icon: Icon;
39
+ icon: IconWithEmoji;
40
40
  /** ID of the page linked to the item */
41
41
  pointsTo: {
42
42
  pageId: string;
@@ -63,7 +63,7 @@ export function isContentAreaSidebarItem(
63
63
  return (
64
64
  isRecord(value) &&
65
65
  isString(value.label) &&
66
- isIcon(value.icon) &&
66
+ isIconWithEmoji(value.icon) &&
67
67
  isRecord(value.pointsTo) &&
68
68
  isString(value.pointsTo.pageId) &&
69
69
  (isNullish(value.placement) || isPlacement(value.placement)) &&
package/src/icon.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { isEmoji, isRecord, isString } from './guardUtils.js';
2
2
 
3
- export type Icon = AwesomeFontIconIdentifier | SvgDefinition | EmojiDefinition;
3
+ export type Icon = AwesomeFontIconIdentifier | SvgDefinition;
4
4
 
5
5
  export function isIcon(value: unknown): value is Icon {
6
- return isString(value) || isSvgDefinition(value) || isEmojiDefinition(value);
6
+ return isString(value) || isSvgDefinition(value);
7
7
  }
8
8
 
9
9
  /**
@@ -78,6 +78,16 @@ export function isEmojiDefinition(value: unknown): value is EmojiDefinition {
78
78
  return isRecord(value) && value.type === 'emoji' && isEmoji(value.emoji);
79
79
  }
80
80
 
81
+ /**
82
+ * Extended icon type that includes emoji support in addition to Font Awesome and SVG icons.
83
+ * This type is specifically used for content area sidebar items where emoji icons are supported.
84
+ */
85
+ export type IconWithEmoji = Icon | EmojiDefinition;
86
+
87
+ export function isIconWithEmoji(value: unknown): value is IconWithEmoji {
88
+ return isIcon(value) || isEmojiDefinition(value);
89
+ }
90
+
81
91
  /**
82
92
  * Font Awesome icon identifier for use in DatoCMS plugins.
83
93
  *
package/src/manifest.ts CHANGED
@@ -3302,6 +3302,28 @@ export const manifest: Manifest = {
3302
3302
  },
3303
3303
  type: 'boolean',
3304
3304
  },
3305
+ cdaEndpointUrl: {
3306
+ comment: {
3307
+ markdownText:
3308
+ "The URL of the Content Delivery API (GraphQL) endpoint for the current\nproject and environment.\n\nIn the vast majority of cases you don't need this: the CDA endpoint is at a\nwell-known, stable URL. It's exposed here only to support DatoCMS internal\ntesting against non-production environments (e.g. staging).",
3309
+ },
3310
+ location: {
3311
+ filePath: 'src/ctx/base.ts',
3312
+ lineNumber: 74,
3313
+ },
3314
+ type: 'string',
3315
+ },
3316
+ cmaBaseUrl: {
3317
+ comment: {
3318
+ markdownText:
3319
+ "The base URL of the Content Management API.\n\nIn the vast majority of cases you don't need this: the CMA lives at a\nwell-known, stable URL. It's exposed here only to support DatoCMS internal\ntesting against non-production environments (e.g. staging).",
3320
+ },
3321
+ location: {
3322
+ filePath: 'src/ctx/base.ts',
3323
+ lineNumber: 83,
3324
+ },
3325
+ type: 'string',
3326
+ },
3305
3327
  owner: {
3306
3328
  comment: {
3307
3329
  markdownText:
@@ -3309,7 +3331,7 @@ export const manifest: Manifest = {
3309
3331
  },
3310
3332
  location: {
3311
3333
  filePath: 'src/ctx/base.ts',
3312
- lineNumber: 67,
3334
+ lineNumber: 86,
3313
3335
  },
3314
3336
  type: 'Account | Organization',
3315
3337
  },
@@ -3321,7 +3343,7 @@ export const manifest: Manifest = {
3321
3343
  },
3322
3344
  location: {
3323
3345
  filePath: 'src/ctx/base.ts',
3324
- lineNumber: 75,
3346
+ lineNumber: 94,
3325
3347
  },
3326
3348
  type: 'Account | undefined',
3327
3349
  },
@@ -3332,7 +3354,7 @@ export const manifest: Manifest = {
3332
3354
  },
3333
3355
  location: {
3334
3356
  filePath: 'src/ctx/base.ts',
3335
- lineNumber: 81,
3357
+ lineNumber: 100,
3336
3358
  },
3337
3359
  type: '{\n /** Preferred locale */\n locale: string;\n }',
3338
3360
  },
@@ -3343,7 +3365,7 @@ export const manifest: Manifest = {
3343
3365
  },
3344
3366
  location: {
3345
3367
  filePath: 'src/ctx/base.ts',
3346
- lineNumber: 87,
3368
+ lineNumber: 106,
3347
3369
  },
3348
3370
  type: 'Theme',
3349
3371
  },
@@ -3363,7 +3385,7 @@ export const manifest: Manifest = {
3363
3385
  },
3364
3386
  location: {
3365
3387
  filePath: 'src/ctx/base.ts',
3366
- lineNumber: 97,
3388
+ lineNumber: 116,
3367
3389
  },
3368
3390
  type: 'Partial<Record<string, ItemType>>',
3369
3391
  },
@@ -3374,7 +3396,7 @@ export const manifest: Manifest = {
3374
3396
  },
3375
3397
  location: {
3376
3398
  filePath: 'src/ctx/base.ts',
3377
- lineNumber: 104,
3399
+ lineNumber: 123,
3378
3400
  },
3379
3401
  type: 'Partial<Record<string, Field>>',
3380
3402
  },
@@ -3385,7 +3407,7 @@ export const manifest: Manifest = {
3385
3407
  },
3386
3408
  location: {
3387
3409
  filePath: 'src/ctx/base.ts',
3388
- lineNumber: 111,
3410
+ lineNumber: 130,
3389
3411
  },
3390
3412
  type: 'Partial<Record<string, Fieldset>>',
3391
3413
  },
@@ -3396,7 +3418,7 @@ export const manifest: Manifest = {
3396
3418
  },
3397
3419
  location: {
3398
3420
  filePath: 'src/ctx/base.ts',
3399
- lineNumber: 118,
3421
+ lineNumber: 137,
3400
3422
  },
3401
3423
  type: 'Partial<Record<string, User>>',
3402
3424
  },
@@ -3407,7 +3429,7 @@ export const manifest: Manifest = {
3407
3429
  },
3408
3430
  location: {
3409
3431
  filePath: 'src/ctx/base.ts',
3410
- lineNumber: 125,
3432
+ lineNumber: 144,
3411
3433
  },
3412
3434
  type: 'Partial<Record<string, SsoUser>>',
3413
3435
  },
@@ -3431,7 +3453,7 @@ export const manifest: Manifest = {
3431
3453
  },
3432
3454
  location: {
3433
3455
  filePath: 'src/ctx/base.ts',
3434
- lineNumber: 168,
3456
+ lineNumber: 187,
3435
3457
  },
3436
3458
  type: '(itemTypeId: string) => Promise<Field[]>',
3437
3459
  },
@@ -3444,7 +3466,7 @@ export const manifest: Manifest = {
3444
3466
  },
3445
3467
  location: {
3446
3468
  filePath: 'src/ctx/base.ts',
3447
- lineNumber: 187,
3469
+ lineNumber: 206,
3448
3470
  },
3449
3471
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3450
3472
  },
@@ -3457,7 +3479,7 @@ export const manifest: Manifest = {
3457
3479
  },
3458
3480
  location: {
3459
3481
  filePath: 'src/ctx/base.ts',
3460
- lineNumber: 204,
3482
+ lineNumber: 223,
3461
3483
  },
3462
3484
  type: '() => Promise<Field[]>',
3463
3485
  },
@@ -3470,7 +3492,7 @@ export const manifest: Manifest = {
3470
3492
  },
3471
3493
  location: {
3472
3494
  filePath: 'src/ctx/base.ts',
3473
- lineNumber: 217,
3495
+ lineNumber: 236,
3474
3496
  },
3475
3497
  type: '() => Promise<User[]>',
3476
3498
  },
@@ -3483,7 +3505,7 @@ export const manifest: Manifest = {
3483
3505
  },
3484
3506
  location: {
3485
3507
  filePath: 'src/ctx/base.ts',
3486
- lineNumber: 230,
3508
+ lineNumber: 249,
3487
3509
  },
3488
3510
  type: '() => Promise<SsoUser[]>',
3489
3511
  },
@@ -3505,7 +3527,7 @@ export const manifest: Manifest = {
3505
3527
  },
3506
3528
  location: {
3507
3529
  filePath: 'src/ctx/base.ts',
3508
- lineNumber: 252,
3530
+ lineNumber: 271,
3509
3531
  },
3510
3532
  type: '(params: Record<string, unknown>) => Promise<void>',
3511
3533
  },
@@ -3518,7 +3540,7 @@ export const manifest: Manifest = {
3518
3540
  },
3519
3541
  location: {
3520
3542
  filePath: 'src/ctx/base.ts',
3521
- lineNumber: 303,
3543
+ lineNumber: 322,
3522
3544
  },
3523
3545
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3524
3546
  },
@@ -3540,7 +3562,7 @@ export const manifest: Manifest = {
3540
3562
  },
3541
3563
  location: {
3542
3564
  filePath: 'src/ctx/base.ts',
3543
- lineNumber: 408,
3565
+ lineNumber: 427,
3544
3566
  },
3545
3567
  type: '(message: string) => Promise<void>',
3546
3568
  },
@@ -3553,7 +3575,7 @@ export const manifest: Manifest = {
3553
3575
  },
3554
3576
  location: {
3555
3577
  filePath: 'src/ctx/base.ts',
3556
- lineNumber: 423,
3578
+ lineNumber: 442,
3557
3579
  },
3558
3580
  type: '(message: string) => Promise<void>',
3559
3581
  },
@@ -3566,7 +3588,7 @@ export const manifest: Manifest = {
3566
3588
  },
3567
3589
  location: {
3568
3590
  filePath: 'src/ctx/base.ts',
3569
- lineNumber: 447,
3591
+ lineNumber: 466,
3570
3592
  },
3571
3593
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3572
3594
  },
@@ -3588,7 +3610,7 @@ export const manifest: Manifest = {
3588
3610
  },
3589
3611
  location: {
3590
3612
  filePath: 'src/ctx/base.ts',
3591
- lineNumber: 333,
3613
+ lineNumber: 352,
3592
3614
  },
3593
3615
  type: '(itemTypeId: string) => Promise<Item | null>',
3594
3616
  },
@@ -3601,7 +3623,7 @@ export const manifest: Manifest = {
3601
3623
  },
3602
3624
  location: {
3603
3625
  filePath: 'src/ctx/base.ts',
3604
- lineNumber: 354,
3626
+ lineNumber: 373,
3605
3627
  },
3606
3628
  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
3629
  },
@@ -3614,7 +3636,7 @@ export const manifest: Manifest = {
3614
3636
  },
3615
3637
  location: {
3616
3638
  filePath: 'src/ctx/base.ts',
3617
- lineNumber: 386,
3639
+ lineNumber: 405,
3618
3640
  },
3619
3641
  type: '(itemId: string) => Promise<Item | null>',
3620
3642
  },
@@ -3636,7 +3658,7 @@ export const manifest: Manifest = {
3636
3658
  },
3637
3659
  location: {
3638
3660
  filePath: 'src/ctx/base.ts',
3639
- lineNumber: 474,
3661
+ lineNumber: 493,
3640
3662
  },
3641
3663
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3642
3664
  },
@@ -3649,7 +3671,7 @@ export const manifest: Manifest = {
3649
3671
  },
3650
3672
  location: {
3651
3673
  filePath: 'src/ctx/base.ts',
3652
- lineNumber: 502,
3674
+ lineNumber: 521,
3653
3675
  },
3654
3676
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3655
3677
  },
@@ -3662,7 +3684,7 @@ export const manifest: Manifest = {
3662
3684
  },
3663
3685
  location: {
3664
3686
  filePath: 'src/ctx/base.ts',
3665
- lineNumber: 530,
3687
+ lineNumber: 549,
3666
3688
  },
3667
3689
  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
3690
  },
@@ -3684,7 +3706,7 @@ export const manifest: Manifest = {
3684
3706
  },
3685
3707
  location: {
3686
3708
  filePath: 'src/ctx/base.ts',
3687
- lineNumber: 561,
3709
+ lineNumber: 580,
3688
3710
  },
3689
3711
  type: '(modal: Modal) => Promise<unknown>',
3690
3712
  },
@@ -3697,7 +3719,7 @@ export const manifest: Manifest = {
3697
3719
  },
3698
3720
  location: {
3699
3721
  filePath: 'src/ctx/base.ts',
3700
- lineNumber: 598,
3722
+ lineNumber: 617,
3701
3723
  },
3702
3724
  type: '(options: ConfirmOptions) => Promise<unknown>',
3703
3725
  },
@@ -3718,7 +3740,7 @@ export const manifest: Manifest = {
3718
3740
  },
3719
3741
  location: {
3720
3742
  filePath: 'src/ctx/base.ts',
3721
- lineNumber: 612,
3743
+ lineNumber: 631,
3722
3744
  },
3723
3745
  type: '(path: string) => Promise<void>',
3724
3746
  },