datocms-plugin-sdk 2.1.5 → 2.2.0-alpha.1

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/manifest.json CHANGED
@@ -3129,13 +3129,34 @@
3129
3129
  },
3130
3130
  "theme": {
3131
3131
  "comment": {
3132
- "markdownText": "An object containing the theme colors for the current DatoCMS project."
3132
+ "markdownText": "An object containing the theme colors for the current DatoCMS project.",
3133
+ "deprecatedMarkdownText": "Use `semanticColorTokensTheme` instead. This property is kept\nfor backward compatibility with third-party plugins."
3133
3134
  },
3134
3135
  "location": {
3135
3136
  "filePath": "src/ctx/base.ts",
3136
- "lineNumber": 106
3137
+ "lineNumber": 111
3137
3138
  },
3138
3139
  "type": "Theme"
3140
+ },
3141
+ "semanticColorTokensTheme": {
3142
+ "comment": {
3143
+ "markdownText": "Semantic color tokens for the current DatoCMS project, pre-computed by\nthe host. A map of CSS custom property names (e.g.\n`--color--raised--surface`) to their resolved values for the current\ncolor scheme."
3144
+ },
3145
+ "location": {
3146
+ "filePath": "src/ctx/base.ts",
3147
+ "lineNumber": 119
3148
+ },
3149
+ "type": "SemanticColorTokensTheme"
3150
+ },
3151
+ "colorScheme": {
3152
+ "comment": {
3153
+ "markdownText": "The appearance color scheme the host CMS is currently using. Resolved —\n`'system'` is already expanded to `'light'` or `'dark'` by the host.\n\nThe SDK runtime reflects this onto `document.documentElement` as\n`data-theme=\"light\"` / `data-theme=\"dark\"` so plugin CSS can branch\nwith `[data-theme=\"dark\"] { … }` selectors. For non-CSS decisions\n(choosing a logo asset, a syntax-highlighting preset, …) branch on\n`ctx.colorScheme` directly."
3154
+ },
3155
+ "location": {
3156
+ "filePath": "src/ctx/base.ts",
3157
+ "lineNumber": 131
3158
+ },
3159
+ "type": "'light' | 'dark'"
3139
3160
  }
3140
3161
  }
3141
3162
  },
@@ -3151,7 +3172,7 @@
3151
3172
  },
3152
3173
  "location": {
3153
3174
  "filePath": "src/ctx/base.ts",
3154
- "lineNumber": 116
3175
+ "lineNumber": 141
3155
3176
  },
3156
3177
  "type": "Partial<Record<string, ItemType>>"
3157
3178
  },
@@ -3161,7 +3182,7 @@
3161
3182
  },
3162
3183
  "location": {
3163
3184
  "filePath": "src/ctx/base.ts",
3164
- "lineNumber": 123
3185
+ "lineNumber": 148
3165
3186
  },
3166
3187
  "type": "Partial<Record<string, Field>>"
3167
3188
  },
@@ -3171,7 +3192,7 @@
3171
3192
  },
3172
3193
  "location": {
3173
3194
  "filePath": "src/ctx/base.ts",
3174
- "lineNumber": 130
3195
+ "lineNumber": 155
3175
3196
  },
3176
3197
  "type": "Partial<Record<string, Fieldset>>"
3177
3198
  },
@@ -3181,7 +3202,7 @@
3181
3202
  },
3182
3203
  "location": {
3183
3204
  "filePath": "src/ctx/base.ts",
3184
- "lineNumber": 137
3205
+ "lineNumber": 162
3185
3206
  },
3186
3207
  "type": "Partial<Record<string, User>>"
3187
3208
  },
@@ -3191,7 +3212,7 @@
3191
3212
  },
3192
3213
  "location": {
3193
3214
  "filePath": "src/ctx/base.ts",
3194
- "lineNumber": 144
3215
+ "lineNumber": 169
3195
3216
  },
3196
3217
  "type": "Partial<Record<string, SsoUser>>"
3197
3218
  }
@@ -3212,7 +3233,7 @@
3212
3233
  },
3213
3234
  "location": {
3214
3235
  "filePath": "src/ctx/base.ts",
3215
- "lineNumber": 187
3236
+ "lineNumber": 232
3216
3237
  },
3217
3238
  "type": "(itemTypeId: string) => Promise<Field[]>"
3218
3239
  },
@@ -3223,7 +3244,7 @@
3223
3244
  },
3224
3245
  "location": {
3225
3246
  "filePath": "src/ctx/base.ts",
3226
- "lineNumber": 206
3247
+ "lineNumber": 251
3227
3248
  },
3228
3249
  "type": "(itemTypeId: string) => Promise<Fieldset[]>"
3229
3250
  },
@@ -3234,7 +3255,7 @@
3234
3255
  },
3235
3256
  "location": {
3236
3257
  "filePath": "src/ctx/base.ts",
3237
- "lineNumber": 223
3258
+ "lineNumber": 268
3238
3259
  },
3239
3260
  "type": "() => Promise<Field[]>"
3240
3261
  },
@@ -3245,7 +3266,7 @@
3245
3266
  },
3246
3267
  "location": {
3247
3268
  "filePath": "src/ctx/base.ts",
3248
- "lineNumber": 236
3269
+ "lineNumber": 281
3249
3270
  },
3250
3271
  "type": "() => Promise<User[]>"
3251
3272
  },
@@ -3256,7 +3277,7 @@
3256
3277
  },
3257
3278
  "location": {
3258
3279
  "filePath": "src/ctx/base.ts",
3259
- "lineNumber": 249
3280
+ "lineNumber": 294
3260
3281
  },
3261
3282
  "type": "() => Promise<SsoUser[]>"
3262
3283
  }
@@ -3275,7 +3296,7 @@
3275
3296
  },
3276
3297
  "location": {
3277
3298
  "filePath": "src/ctx/base.ts",
3278
- "lineNumber": 271
3299
+ "lineNumber": 316
3279
3300
  },
3280
3301
  "type": "(params: Record<string, unknown>) => Promise<void>"
3281
3302
  },
@@ -3286,7 +3307,7 @@
3286
3307
  },
3287
3308
  "location": {
3288
3309
  "filePath": "src/ctx/base.ts",
3289
- "lineNumber": 322
3310
+ "lineNumber": 367
3290
3311
  },
3291
3312
  "type": "(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>"
3292
3313
  }
@@ -3305,7 +3326,7 @@
3305
3326
  },
3306
3327
  "location": {
3307
3328
  "filePath": "src/ctx/base.ts",
3308
- "lineNumber": 427
3329
+ "lineNumber": 472
3309
3330
  },
3310
3331
  "type": "(message: string) => Promise<void>"
3311
3332
  },
@@ -3316,7 +3337,7 @@
3316
3337
  },
3317
3338
  "location": {
3318
3339
  "filePath": "src/ctx/base.ts",
3319
- "lineNumber": 442
3340
+ "lineNumber": 487
3320
3341
  },
3321
3342
  "type": "(message: string) => Promise<void>"
3322
3343
  },
@@ -3327,7 +3348,7 @@
3327
3348
  },
3328
3349
  "location": {
3329
3350
  "filePath": "src/ctx/base.ts",
3330
- "lineNumber": 466
3351
+ "lineNumber": 511
3331
3352
  },
3332
3353
  "type": "<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>"
3333
3354
  }
@@ -3346,7 +3367,7 @@
3346
3367
  },
3347
3368
  "location": {
3348
3369
  "filePath": "src/ctx/base.ts",
3349
- "lineNumber": 352
3370
+ "lineNumber": 397
3350
3371
  },
3351
3372
  "type": "(itemTypeId: string) => Promise<Item | null>"
3352
3373
  },
@@ -3357,7 +3378,7 @@
3357
3378
  },
3358
3379
  "location": {
3359
3380
  "filePath": "src/ctx/base.ts",
3360
- "lineNumber": 373
3381
+ "lineNumber": 418
3361
3382
  },
3362
3383
  "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 }"
3363
3384
  },
@@ -3368,7 +3389,7 @@
3368
3389
  },
3369
3390
  "location": {
3370
3391
  "filePath": "src/ctx/base.ts",
3371
- "lineNumber": 405
3392
+ "lineNumber": 450
3372
3393
  },
3373
3394
  "type": "(itemId: string) => Promise<Item | null>"
3374
3395
  }
@@ -3387,7 +3408,7 @@
3387
3408
  },
3388
3409
  "location": {
3389
3410
  "filePath": "src/ctx/base.ts",
3390
- "lineNumber": 493
3411
+ "lineNumber": 538
3391
3412
  },
3392
3413
  "type": "{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }"
3393
3414
  },
@@ -3398,7 +3419,7 @@
3398
3419
  },
3399
3420
  "location": {
3400
3421
  "filePath": "src/ctx/base.ts",
3401
- "lineNumber": 521
3422
+ "lineNumber": 566
3402
3423
  },
3403
3424
  "type": "(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>"
3404
3425
  },
@@ -3409,7 +3430,7 @@
3409
3430
  },
3410
3431
  "location": {
3411
3432
  "filePath": "src/ctx/base.ts",
3412
- "lineNumber": 549
3433
+ "lineNumber": 594
3413
3434
  },
3414
3435
  "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>"
3415
3436
  }
@@ -3428,7 +3449,7 @@
3428
3449
  },
3429
3450
  "location": {
3430
3451
  "filePath": "src/ctx/base.ts",
3431
- "lineNumber": 580
3452
+ "lineNumber": 625
3432
3453
  },
3433
3454
  "type": "(modal: Modal) => Promise<unknown>"
3434
3455
  },
@@ -3439,7 +3460,7 @@
3439
3460
  },
3440
3461
  "location": {
3441
3462
  "filePath": "src/ctx/base.ts",
3442
- "lineNumber": 617
3463
+ "lineNumber": 662
3443
3464
  },
3444
3465
  "type": "(options: ConfirmOptions) => Promise<unknown>"
3445
3466
  }
@@ -3458,7 +3479,7 @@
3458
3479
  },
3459
3480
  "location": {
3460
3481
  "filePath": "src/ctx/base.ts",
3461
- "lineNumber": 631
3482
+ "lineNumber": 676
3462
3483
  },
3463
3484
  "type": "(path: string) => Promise<void>"
3464
3485
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "2.1.5",
3
+ "version": "2.2.0-alpha.1",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -46,5 +46,5 @@
46
46
  "glob": "^11.0.0",
47
47
  "typescript": "^5.6.2"
48
48
  },
49
- "gitHead": "1fc2f5b9c06a8bac49bd0e2cf731e599415ce010"
49
+ "gitHead": "998ccd009a2babbc49d883ea4b0ef6539937271c"
50
50
  }
package/src/connect.ts CHANGED
@@ -136,6 +136,15 @@ export type FullConnectParameters = AssetSourcesHook &
136
136
  UploadSidebarsHook &
137
137
  ValidateManualFieldExtensionParametersHook;
138
138
 
139
+ function applyColorScheme(properties: unknown): void {
140
+ if (typeof document === 'undefined') return;
141
+ const next = (properties as { colorScheme?: 'light' | 'dark' } | null)
142
+ ?.colorScheme;
143
+ if (next !== 'light' && next !== 'dark') return;
144
+ if (document.documentElement.dataset.theme === next) return;
145
+ document.documentElement.dataset.theme = next;
146
+ }
147
+
139
148
  export async function connect(
140
149
  rawConfiguration: Partial<FullConnectParameters> = {},
141
150
  ): Promise<void> {
@@ -185,6 +194,7 @@ export async function connect(
185
194
  ),
186
195
  ),
187
196
  onChange(newSettings: unknown) {
197
+ applyColorScheme(newSettings);
188
198
  if (onChangeListener) {
189
199
  onChangeListener(newSettings);
190
200
  }
@@ -212,6 +222,7 @@ export async function connect(
212
222
 
213
223
  const methods = await penpalConnection.promise;
214
224
  const initialProperties = await methods.getSettings();
225
+ applyColorScheme(initialProperties);
215
226
 
216
227
  if (initialProperties.mode === 'onBoot') {
217
228
  let currentProperties = initialProperties;
package/src/ctx/base.ts CHANGED
@@ -102,8 +102,33 @@ type ProjectProperties = {
102
102
  locale: string;
103
103
  };
104
104
 
105
- /** An object containing the theme colors for the current DatoCMS project */
105
+ /**
106
+ * An object containing the theme colors for the current DatoCMS project
107
+ *
108
+ * @deprecated Use `semanticColorTokensTheme` instead. This property is kept
109
+ * for backward compatibility with third-party plugins.
110
+ */
106
111
  theme: Theme;
112
+
113
+ /**
114
+ * Semantic color tokens for the current DatoCMS project, pre-computed by
115
+ * the host. A map of CSS custom property names (e.g.
116
+ * `--color--raised--surface`) to their resolved values for the current
117
+ * color scheme.
118
+ */
119
+ semanticColorTokensTheme: SemanticColorTokensTheme;
120
+
121
+ /**
122
+ * The appearance color scheme the host CMS is currently using. Resolved —
123
+ * `'system'` is already expanded to `'light'` or `'dark'` by the host.
124
+ *
125
+ * The SDK runtime reflects this onto `document.documentElement` as
126
+ * `data-theme="light"` / `data-theme="dark"` so plugin CSS can branch
127
+ * with `[data-theme="dark"] { … }` selectors. For non-CSS decisions
128
+ * (choosing a logo asset, a syntax-highlighting preset, …) branch on
129
+ * `ctx.colorScheme` directly.
130
+ */
131
+ colorScheme: 'light' | 'dark';
107
132
  };
108
133
 
109
134
  /**
@@ -144,7 +169,12 @@ type EntityReposProperties = {
144
169
  ssoUsers: Partial<Record<string, SsoUser>>;
145
170
  };
146
171
 
147
- /** An object containing the theme colors for the current DatoCMS project */
172
+ /**
173
+ * An object containing the theme colors for the current DatoCMS project
174
+ *
175
+ * @deprecated Use `SemanticColorTokensTheme` instead. This type is kept for
176
+ * backward compatibility with third-party plugins.
177
+ */
148
178
  export type Theme = {
149
179
  primaryColor: string;
150
180
  accentColor: string;
@@ -153,6 +183,21 @@ export type Theme = {
153
183
  darkColor: string;
154
184
  };
155
185
 
186
+ /**
187
+ * Semantic color tokens for the current DatoCMS project, pre-computed by the
188
+ * host. Only available on DatoCMS hosts that support the new token system.
189
+ *
190
+ * Each key is a ready-to-use CSS custom property name (including the leading
191
+ * `--`), and each value is the resolved color for the host's current color
192
+ * scheme — e.g. `{ '--color--raised--surface': 'oklch(…)' }`. The SDK applies
193
+ * these verbatim onto the plugin canvas, so plugin CSS can reference them
194
+ * directly with `var(--color--raised--surface)`.
195
+ *
196
+ * The token set is whatever the host sends; it is intentionally untyped so it
197
+ * can evolve on the host without an SDK release.
198
+ */
199
+ export type SemanticColorTokensTheme = Record<string, string>;
200
+
156
201
  export type BaseMethods = LoadDataMethods &
157
202
  UpdatePluginParametersMethods &
158
203
  ToastMethods &
package/src/manifest.ts CHANGED
@@ -3362,13 +3362,37 @@ export const manifest: Manifest = {
3362
3362
  comment: {
3363
3363
  markdownText:
3364
3364
  'An object containing the theme colors for the current DatoCMS project.',
3365
+ deprecatedMarkdownText:
3366
+ 'Use `semanticColorTokensTheme` instead. This property is kept\nfor backward compatibility with third-party plugins.',
3365
3367
  },
3366
3368
  location: {
3367
3369
  filePath: 'src/ctx/base.ts',
3368
- lineNumber: 106,
3370
+ lineNumber: 111,
3369
3371
  },
3370
3372
  type: 'Theme',
3371
3373
  },
3374
+ semanticColorTokensTheme: {
3375
+ comment: {
3376
+ markdownText:
3377
+ 'Semantic color tokens for the current DatoCMS project, pre-computed by\nthe host. A map of CSS custom property names (e.g.\n`--color--raised--surface`) to their resolved values for the current\ncolor scheme.',
3378
+ },
3379
+ location: {
3380
+ filePath: 'src/ctx/base.ts',
3381
+ lineNumber: 119,
3382
+ },
3383
+ type: 'SemanticColorTokensTheme',
3384
+ },
3385
+ colorScheme: {
3386
+ comment: {
3387
+ markdownText:
3388
+ 'The appearance color scheme the host CMS is currently using. Resolved —\n`\'system\'` is already expanded to `\'light\'` or `\'dark\'` by the host.\n\nThe SDK runtime reflects this onto `document.documentElement` as\n`data-theme="light"` / `data-theme="dark"` so plugin CSS can branch\nwith `[data-theme="dark"] { … }` selectors. For non-CSS decisions\n(choosing a logo asset, a syntax-highlighting preset, …) branch on\n`ctx.colorScheme` directly.',
3389
+ },
3390
+ location: {
3391
+ filePath: 'src/ctx/base.ts',
3392
+ lineNumber: 131,
3393
+ },
3394
+ type: "'light' | 'dark'",
3395
+ },
3372
3396
  },
3373
3397
  },
3374
3398
  {
@@ -3385,7 +3409,7 @@ export const manifest: Manifest = {
3385
3409
  },
3386
3410
  location: {
3387
3411
  filePath: 'src/ctx/base.ts',
3388
- lineNumber: 116,
3412
+ lineNumber: 141,
3389
3413
  },
3390
3414
  type: 'Partial<Record<string, ItemType>>',
3391
3415
  },
@@ -3396,7 +3420,7 @@ export const manifest: Manifest = {
3396
3420
  },
3397
3421
  location: {
3398
3422
  filePath: 'src/ctx/base.ts',
3399
- lineNumber: 123,
3423
+ lineNumber: 148,
3400
3424
  },
3401
3425
  type: 'Partial<Record<string, Field>>',
3402
3426
  },
@@ -3407,7 +3431,7 @@ export const manifest: Manifest = {
3407
3431
  },
3408
3432
  location: {
3409
3433
  filePath: 'src/ctx/base.ts',
3410
- lineNumber: 130,
3434
+ lineNumber: 155,
3411
3435
  },
3412
3436
  type: 'Partial<Record<string, Fieldset>>',
3413
3437
  },
@@ -3418,7 +3442,7 @@ export const manifest: Manifest = {
3418
3442
  },
3419
3443
  location: {
3420
3444
  filePath: 'src/ctx/base.ts',
3421
- lineNumber: 137,
3445
+ lineNumber: 162,
3422
3446
  },
3423
3447
  type: 'Partial<Record<string, User>>',
3424
3448
  },
@@ -3429,7 +3453,7 @@ export const manifest: Manifest = {
3429
3453
  },
3430
3454
  location: {
3431
3455
  filePath: 'src/ctx/base.ts',
3432
- lineNumber: 144,
3456
+ lineNumber: 169,
3433
3457
  },
3434
3458
  type: 'Partial<Record<string, SsoUser>>',
3435
3459
  },
@@ -3453,7 +3477,7 @@ export const manifest: Manifest = {
3453
3477
  },
3454
3478
  location: {
3455
3479
  filePath: 'src/ctx/base.ts',
3456
- lineNumber: 187,
3480
+ lineNumber: 232,
3457
3481
  },
3458
3482
  type: '(itemTypeId: string) => Promise<Field[]>',
3459
3483
  },
@@ -3466,7 +3490,7 @@ export const manifest: Manifest = {
3466
3490
  },
3467
3491
  location: {
3468
3492
  filePath: 'src/ctx/base.ts',
3469
- lineNumber: 206,
3493
+ lineNumber: 251,
3470
3494
  },
3471
3495
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3472
3496
  },
@@ -3479,7 +3503,7 @@ export const manifest: Manifest = {
3479
3503
  },
3480
3504
  location: {
3481
3505
  filePath: 'src/ctx/base.ts',
3482
- lineNumber: 223,
3506
+ lineNumber: 268,
3483
3507
  },
3484
3508
  type: '() => Promise<Field[]>',
3485
3509
  },
@@ -3492,7 +3516,7 @@ export const manifest: Manifest = {
3492
3516
  },
3493
3517
  location: {
3494
3518
  filePath: 'src/ctx/base.ts',
3495
- lineNumber: 236,
3519
+ lineNumber: 281,
3496
3520
  },
3497
3521
  type: '() => Promise<User[]>',
3498
3522
  },
@@ -3505,7 +3529,7 @@ export const manifest: Manifest = {
3505
3529
  },
3506
3530
  location: {
3507
3531
  filePath: 'src/ctx/base.ts',
3508
- lineNumber: 249,
3532
+ lineNumber: 294,
3509
3533
  },
3510
3534
  type: '() => Promise<SsoUser[]>',
3511
3535
  },
@@ -3527,7 +3551,7 @@ export const manifest: Manifest = {
3527
3551
  },
3528
3552
  location: {
3529
3553
  filePath: 'src/ctx/base.ts',
3530
- lineNumber: 271,
3554
+ lineNumber: 316,
3531
3555
  },
3532
3556
  type: '(params: Record<string, unknown>) => Promise<void>',
3533
3557
  },
@@ -3540,7 +3564,7 @@ export const manifest: Manifest = {
3540
3564
  },
3541
3565
  location: {
3542
3566
  filePath: 'src/ctx/base.ts',
3543
- lineNumber: 322,
3567
+ lineNumber: 367,
3544
3568
  },
3545
3569
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3546
3570
  },
@@ -3562,7 +3586,7 @@ export const manifest: Manifest = {
3562
3586
  },
3563
3587
  location: {
3564
3588
  filePath: 'src/ctx/base.ts',
3565
- lineNumber: 427,
3589
+ lineNumber: 472,
3566
3590
  },
3567
3591
  type: '(message: string) => Promise<void>',
3568
3592
  },
@@ -3575,7 +3599,7 @@ export const manifest: Manifest = {
3575
3599
  },
3576
3600
  location: {
3577
3601
  filePath: 'src/ctx/base.ts',
3578
- lineNumber: 442,
3602
+ lineNumber: 487,
3579
3603
  },
3580
3604
  type: '(message: string) => Promise<void>',
3581
3605
  },
@@ -3588,7 +3612,7 @@ export const manifest: Manifest = {
3588
3612
  },
3589
3613
  location: {
3590
3614
  filePath: 'src/ctx/base.ts',
3591
- lineNumber: 466,
3615
+ lineNumber: 511,
3592
3616
  },
3593
3617
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3594
3618
  },
@@ -3610,7 +3634,7 @@ export const manifest: Manifest = {
3610
3634
  },
3611
3635
  location: {
3612
3636
  filePath: 'src/ctx/base.ts',
3613
- lineNumber: 352,
3637
+ lineNumber: 397,
3614
3638
  },
3615
3639
  type: '(itemTypeId: string) => Promise<Item | null>',
3616
3640
  },
@@ -3623,7 +3647,7 @@ export const manifest: Manifest = {
3623
3647
  },
3624
3648
  location: {
3625
3649
  filePath: 'src/ctx/base.ts',
3626
- lineNumber: 373,
3650
+ lineNumber: 418,
3627
3651
  },
3628
3652
  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 }',
3629
3653
  },
@@ -3636,7 +3660,7 @@ export const manifest: Manifest = {
3636
3660
  },
3637
3661
  location: {
3638
3662
  filePath: 'src/ctx/base.ts',
3639
- lineNumber: 405,
3663
+ lineNumber: 450,
3640
3664
  },
3641
3665
  type: '(itemId: string) => Promise<Item | null>',
3642
3666
  },
@@ -3658,7 +3682,7 @@ export const manifest: Manifest = {
3658
3682
  },
3659
3683
  location: {
3660
3684
  filePath: 'src/ctx/base.ts',
3661
- lineNumber: 493,
3685
+ lineNumber: 538,
3662
3686
  },
3663
3687
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3664
3688
  },
@@ -3671,7 +3695,7 @@ export const manifest: Manifest = {
3671
3695
  },
3672
3696
  location: {
3673
3697
  filePath: 'src/ctx/base.ts',
3674
- lineNumber: 521,
3698
+ lineNumber: 566,
3675
3699
  },
3676
3700
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3677
3701
  },
@@ -3684,7 +3708,7 @@ export const manifest: Manifest = {
3684
3708
  },
3685
3709
  location: {
3686
3710
  filePath: 'src/ctx/base.ts',
3687
- lineNumber: 549,
3711
+ lineNumber: 594,
3688
3712
  },
3689
3713
  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>',
3690
3714
  },
@@ -3706,7 +3730,7 @@ export const manifest: Manifest = {
3706
3730
  },
3707
3731
  location: {
3708
3732
  filePath: 'src/ctx/base.ts',
3709
- lineNumber: 580,
3733
+ lineNumber: 625,
3710
3734
  },
3711
3735
  type: '(modal: Modal) => Promise<unknown>',
3712
3736
  },
@@ -3719,7 +3743,7 @@ export const manifest: Manifest = {
3719
3743
  },
3720
3744
  location: {
3721
3745
  filePath: 'src/ctx/base.ts',
3722
- lineNumber: 617,
3746
+ lineNumber: 662,
3723
3747
  },
3724
3748
  type: '(options: ConfirmOptions) => Promise<unknown>',
3725
3749
  },
@@ -3740,7 +3764,7 @@ export const manifest: Manifest = {
3740
3764
  },
3741
3765
  location: {
3742
3766
  filePath: 'src/ctx/base.ts',
3743
- lineNumber: 631,
3767
+ lineNumber: 676,
3744
3768
  },
3745
3769
  type: '(path: string) => Promise<void>',
3746
3770
  },