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

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
@@ -3130,7 +3130,7 @@
3130
3130
  "theme": {
3131
3131
  "comment": {
3132
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
+ "deprecatedMarkdownText": "Use `cssDesignTokens` instead. This property is kept\nfor backward compatibility with third-party plugins."
3134
3134
  },
3135
3135
  "location": {
3136
3136
  "filePath": "src/ctx/base.ts",
@@ -3138,7 +3138,7 @@
3138
3138
  },
3139
3139
  "type": "Theme"
3140
3140
  },
3141
- "semanticColorTokensTheme": {
3141
+ "cssDesignTokens": {
3142
3142
  "comment": {
3143
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
3144
  },
@@ -3146,15 +3146,15 @@
3146
3146
  "filePath": "src/ctx/base.ts",
3147
3147
  "lineNumber": 119
3148
3148
  },
3149
- "type": "SemanticColorTokensTheme"
3149
+ "type": "CssDesignTokens"
3150
3150
  },
3151
3151
  "colorScheme": {
3152
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."
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` two ways:\nthe `data-color-scheme=\"light\"` / `data-color-scheme=\"dark\"` attribute,\nso plugin CSS can branch with `[data-color-scheme=\"dark\"] { … }`\nselectors; and the actual `color-scheme` CSS property, so `light-dark()`\nresolves to the correct branch (and native form controls / scrollbars\nmatch) everywhere in the plugin frame. For non-CSS decisions (choosing a\nlogo asset, a syntax-highlighting preset, …) branch on `ctx.colorScheme`\ndirectly."
3154
3154
  },
3155
3155
  "location": {
3156
3156
  "filePath": "src/ctx/base.ts",
3157
- "lineNumber": 131
3157
+ "lineNumber": 134
3158
3158
  },
3159
3159
  "type": "'light' | 'dark'"
3160
3160
  }
@@ -3172,7 +3172,7 @@
3172
3172
  },
3173
3173
  "location": {
3174
3174
  "filePath": "src/ctx/base.ts",
3175
- "lineNumber": 141
3175
+ "lineNumber": 144
3176
3176
  },
3177
3177
  "type": "Partial<Record<string, ItemType>>"
3178
3178
  },
@@ -3182,7 +3182,7 @@
3182
3182
  },
3183
3183
  "location": {
3184
3184
  "filePath": "src/ctx/base.ts",
3185
- "lineNumber": 148
3185
+ "lineNumber": 151
3186
3186
  },
3187
3187
  "type": "Partial<Record<string, Field>>"
3188
3188
  },
@@ -3192,7 +3192,7 @@
3192
3192
  },
3193
3193
  "location": {
3194
3194
  "filePath": "src/ctx/base.ts",
3195
- "lineNumber": 155
3195
+ "lineNumber": 158
3196
3196
  },
3197
3197
  "type": "Partial<Record<string, Fieldset>>"
3198
3198
  },
@@ -3202,7 +3202,7 @@
3202
3202
  },
3203
3203
  "location": {
3204
3204
  "filePath": "src/ctx/base.ts",
3205
- "lineNumber": 162
3205
+ "lineNumber": 165
3206
3206
  },
3207
3207
  "type": "Partial<Record<string, User>>"
3208
3208
  },
@@ -3212,7 +3212,7 @@
3212
3212
  },
3213
3213
  "location": {
3214
3214
  "filePath": "src/ctx/base.ts",
3215
- "lineNumber": 169
3215
+ "lineNumber": 172
3216
3216
  },
3217
3217
  "type": "Partial<Record<string, SsoUser>>"
3218
3218
  }
@@ -3233,7 +3233,7 @@
3233
3233
  },
3234
3234
  "location": {
3235
3235
  "filePath": "src/ctx/base.ts",
3236
- "lineNumber": 232
3236
+ "lineNumber": 235
3237
3237
  },
3238
3238
  "type": "(itemTypeId: string) => Promise<Field[]>"
3239
3239
  },
@@ -3244,7 +3244,7 @@
3244
3244
  },
3245
3245
  "location": {
3246
3246
  "filePath": "src/ctx/base.ts",
3247
- "lineNumber": 251
3247
+ "lineNumber": 254
3248
3248
  },
3249
3249
  "type": "(itemTypeId: string) => Promise<Fieldset[]>"
3250
3250
  },
@@ -3255,7 +3255,7 @@
3255
3255
  },
3256
3256
  "location": {
3257
3257
  "filePath": "src/ctx/base.ts",
3258
- "lineNumber": 268
3258
+ "lineNumber": 271
3259
3259
  },
3260
3260
  "type": "() => Promise<Field[]>"
3261
3261
  },
@@ -3266,7 +3266,7 @@
3266
3266
  },
3267
3267
  "location": {
3268
3268
  "filePath": "src/ctx/base.ts",
3269
- "lineNumber": 281
3269
+ "lineNumber": 284
3270
3270
  },
3271
3271
  "type": "() => Promise<User[]>"
3272
3272
  },
@@ -3277,7 +3277,7 @@
3277
3277
  },
3278
3278
  "location": {
3279
3279
  "filePath": "src/ctx/base.ts",
3280
- "lineNumber": 294
3280
+ "lineNumber": 297
3281
3281
  },
3282
3282
  "type": "() => Promise<SsoUser[]>"
3283
3283
  }
@@ -3296,7 +3296,7 @@
3296
3296
  },
3297
3297
  "location": {
3298
3298
  "filePath": "src/ctx/base.ts",
3299
- "lineNumber": 316
3299
+ "lineNumber": 319
3300
3300
  },
3301
3301
  "type": "(params: Record<string, unknown>) => Promise<void>"
3302
3302
  },
@@ -3307,7 +3307,7 @@
3307
3307
  },
3308
3308
  "location": {
3309
3309
  "filePath": "src/ctx/base.ts",
3310
- "lineNumber": 367
3310
+ "lineNumber": 370
3311
3311
  },
3312
3312
  "type": "(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>"
3313
3313
  }
@@ -3326,7 +3326,7 @@
3326
3326
  },
3327
3327
  "location": {
3328
3328
  "filePath": "src/ctx/base.ts",
3329
- "lineNumber": 472
3329
+ "lineNumber": 475
3330
3330
  },
3331
3331
  "type": "(message: string) => Promise<void>"
3332
3332
  },
@@ -3337,7 +3337,7 @@
3337
3337
  },
3338
3338
  "location": {
3339
3339
  "filePath": "src/ctx/base.ts",
3340
- "lineNumber": 487
3340
+ "lineNumber": 490
3341
3341
  },
3342
3342
  "type": "(message: string) => Promise<void>"
3343
3343
  },
@@ -3348,7 +3348,7 @@
3348
3348
  },
3349
3349
  "location": {
3350
3350
  "filePath": "src/ctx/base.ts",
3351
- "lineNumber": 511
3351
+ "lineNumber": 514
3352
3352
  },
3353
3353
  "type": "<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>"
3354
3354
  }
@@ -3367,7 +3367,7 @@
3367
3367
  },
3368
3368
  "location": {
3369
3369
  "filePath": "src/ctx/base.ts",
3370
- "lineNumber": 397
3370
+ "lineNumber": 400
3371
3371
  },
3372
3372
  "type": "(itemTypeId: string) => Promise<Item | null>"
3373
3373
  },
@@ -3378,7 +3378,7 @@
3378
3378
  },
3379
3379
  "location": {
3380
3380
  "filePath": "src/ctx/base.ts",
3381
- "lineNumber": 418
3381
+ "lineNumber": 421
3382
3382
  },
3383
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 }"
3384
3384
  },
@@ -3389,7 +3389,7 @@
3389
3389
  },
3390
3390
  "location": {
3391
3391
  "filePath": "src/ctx/base.ts",
3392
- "lineNumber": 450
3392
+ "lineNumber": 453
3393
3393
  },
3394
3394
  "type": "(itemId: string) => Promise<Item | null>"
3395
3395
  }
@@ -3408,7 +3408,7 @@
3408
3408
  },
3409
3409
  "location": {
3410
3410
  "filePath": "src/ctx/base.ts",
3411
- "lineNumber": 538
3411
+ "lineNumber": 541
3412
3412
  },
3413
3413
  "type": "{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }"
3414
3414
  },
@@ -3419,7 +3419,7 @@
3419
3419
  },
3420
3420
  "location": {
3421
3421
  "filePath": "src/ctx/base.ts",
3422
- "lineNumber": 566
3422
+ "lineNumber": 569
3423
3423
  },
3424
3424
  "type": "(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>"
3425
3425
  },
@@ -3430,7 +3430,7 @@
3430
3430
  },
3431
3431
  "location": {
3432
3432
  "filePath": "src/ctx/base.ts",
3433
- "lineNumber": 594
3433
+ "lineNumber": 597
3434
3434
  },
3435
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>"
3436
3436
  }
@@ -3449,7 +3449,7 @@
3449
3449
  },
3450
3450
  "location": {
3451
3451
  "filePath": "src/ctx/base.ts",
3452
- "lineNumber": 625
3452
+ "lineNumber": 628
3453
3453
  },
3454
3454
  "type": "(modal: Modal) => Promise<unknown>"
3455
3455
  },
@@ -3460,7 +3460,7 @@
3460
3460
  },
3461
3461
  "location": {
3462
3462
  "filePath": "src/ctx/base.ts",
3463
- "lineNumber": 662
3463
+ "lineNumber": 665
3464
3464
  },
3465
3465
  "type": "(options: ConfirmOptions) => Promise<unknown>"
3466
3466
  }
@@ -3479,7 +3479,7 @@
3479
3479
  },
3480
3480
  "location": {
3481
3481
  "filePath": "src/ctx/base.ts",
3482
- "lineNumber": 676
3482
+ "lineNumber": 679
3483
3483
  },
3484
3484
  "type": "(path: string) => Promise<void>"
3485
3485
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "2.2.0-alpha.1",
3
+ "version": "2.2.0-alpha.3",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -30,7 +30,8 @@
30
30
  "scripts": {
31
31
  "build": "npm run generate-manifest && tsc && tsc --project ./tsconfig.esnext.json",
32
32
  "generate-manifest": "tsx generateManifest.ts && biome format --write src/manifest.ts",
33
- "prebuild": "rimraf dist"
33
+ "prebuild": "rimraf dist",
34
+ "install-in-place": "npm run build && rm -rf $INSTALL_PATH/node_modules/datocms-plugin-sdk/dist && cp -rf dist manifest.json $INSTALL_PATH/node_modules/datocms-plugin-sdk"
34
35
  },
35
36
  "bugs": {
36
37
  "url": "https://github.com/datocms/plugins-sdk/issues"
@@ -46,5 +47,5 @@
46
47
  "glob": "^11.0.0",
47
48
  "typescript": "^5.6.2"
48
49
  },
49
- "gitHead": "998ccd009a2babbc49d883ea4b0ef6539937271c"
50
+ "gitHead": "3e057045b71d96aaa00ee613c86b6421d5b1c93e"
50
51
  }
package/src/connect.ts CHANGED
@@ -141,8 +141,14 @@ function applyColorScheme(properties: unknown): void {
141
141
  const next = (properties as { colorScheme?: 'light' | 'dark' } | null)
142
142
  ?.colorScheme;
143
143
  if (next !== 'light' && next !== 'dark') return;
144
- if (document.documentElement.dataset.theme === next) return;
145
- document.documentElement.dataset.theme = next;
144
+ if (document.documentElement.dataset.colorScheme === next) return;
145
+ document.documentElement.dataset.colorScheme = next;
146
+ // Also set the actual `color-scheme` CSS property on the root so that
147
+ // `light-dark()` resolves to the correct branch and native form controls /
148
+ // scrollbars match — everywhere in the plugin frame, including DOM rendered
149
+ // outside any `Canvas`/portal. The `data-color-scheme` attribute above is
150
+ // just a hook for explicit CSS branching; it doesn't drive `light-dark()`.
151
+ document.documentElement.style.colorScheme = next;
146
152
  }
147
153
 
148
154
  export async function connect(
@@ -176,7 +182,7 @@ export async function connect(
176
182
 
177
183
  const penpalConnection = connectToParent({
178
184
  methods: {
179
- sdkVersion: () => '0.3.0',
185
+ sdkVersion: () => '0.3.1',
180
186
  implementedHooks: () =>
181
187
  Object.fromEntries(
182
188
  Object.keys(rawConfiguration).map((hook) => {
package/src/ctx/base.ts CHANGED
@@ -105,7 +105,7 @@ type ProjectProperties = {
105
105
  /**
106
106
  * An object containing the theme colors for the current DatoCMS project
107
107
  *
108
- * @deprecated Use `semanticColorTokensTheme` instead. This property is kept
108
+ * @deprecated Use `cssDesignTokens` instead. This property is kept
109
109
  * for backward compatibility with third-party plugins.
110
110
  */
111
111
  theme: Theme;
@@ -116,17 +116,20 @@ type ProjectProperties = {
116
116
  * `--color--raised--surface`) to their resolved values for the current
117
117
  * color scheme.
118
118
  */
119
- semanticColorTokensTheme: SemanticColorTokensTheme;
119
+ cssDesignTokens: CssDesignTokens;
120
120
 
121
121
  /**
122
122
  * The appearance color scheme the host CMS is currently using. Resolved —
123
123
  * `'system'` is already expanded to `'light'` or `'dark'` by the host.
124
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.
125
+ * The SDK runtime reflects this onto `document.documentElement` two ways:
126
+ * the `data-color-scheme="light"` / `data-color-scheme="dark"` attribute,
127
+ * so plugin CSS can branch with `[data-color-scheme="dark"] { … }`
128
+ * selectors; and the actual `color-scheme` CSS property, so `light-dark()`
129
+ * resolves to the correct branch (and native form controls / scrollbars
130
+ * match) everywhere in the plugin frame. For non-CSS decisions (choosing a
131
+ * logo asset, a syntax-highlighting preset, …) branch on `ctx.colorScheme`
132
+ * directly.
130
133
  */
131
134
  colorScheme: 'light' | 'dark';
132
135
  };
@@ -172,7 +175,7 @@ type EntityReposProperties = {
172
175
  /**
173
176
  * An object containing the theme colors for the current DatoCMS project
174
177
  *
175
- * @deprecated Use `SemanticColorTokensTheme` instead. This type is kept for
178
+ * @deprecated Use `cssDesignTokens` instead. This type is kept for
176
179
  * backward compatibility with third-party plugins.
177
180
  */
178
181
  export type Theme = {
@@ -196,7 +199,7 @@ export type Theme = {
196
199
  * The token set is whatever the host sends; it is intentionally untyped so it
197
200
  * can evolve on the host without an SDK release.
198
201
  */
199
- export type SemanticColorTokensTheme = Record<string, string>;
202
+ export type CssDesignTokens = Record<string, string>;
200
203
 
201
204
  export type BaseMethods = LoadDataMethods &
202
205
  UpdatePluginParametersMethods &
package/src/manifest.ts CHANGED
@@ -3363,7 +3363,7 @@ export const manifest: Manifest = {
3363
3363
  markdownText:
3364
3364
  'An object containing the theme colors for the current DatoCMS project.',
3365
3365
  deprecatedMarkdownText:
3366
- 'Use `semanticColorTokensTheme` instead. This property is kept\nfor backward compatibility with third-party plugins.',
3366
+ 'Use `cssDesignTokens` instead. This property is kept\nfor backward compatibility with third-party plugins.',
3367
3367
  },
3368
3368
  location: {
3369
3369
  filePath: 'src/ctx/base.ts',
@@ -3371,7 +3371,7 @@ export const manifest: Manifest = {
3371
3371
  },
3372
3372
  type: 'Theme',
3373
3373
  },
3374
- semanticColorTokensTheme: {
3374
+ cssDesignTokens: {
3375
3375
  comment: {
3376
3376
  markdownText:
3377
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.',
@@ -3380,16 +3380,16 @@ export const manifest: Manifest = {
3380
3380
  filePath: 'src/ctx/base.ts',
3381
3381
  lineNumber: 119,
3382
3382
  },
3383
- type: 'SemanticColorTokensTheme',
3383
+ type: 'CssDesignTokens',
3384
3384
  },
3385
3385
  colorScheme: {
3386
3386
  comment: {
3387
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.',
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` two ways:\nthe `data-color-scheme="light"` / `data-color-scheme="dark"` attribute,\nso plugin CSS can branch with `[data-color-scheme="dark"] { … }`\nselectors; and the actual `color-scheme` CSS property, so `light-dark()`\nresolves to the correct branch (and native form controls / scrollbars\nmatch) everywhere in the plugin frame. For non-CSS decisions (choosing a\nlogo asset, a syntax-highlighting preset, …) branch on `ctx.colorScheme`\ndirectly.',
3389
3389
  },
3390
3390
  location: {
3391
3391
  filePath: 'src/ctx/base.ts',
3392
- lineNumber: 131,
3392
+ lineNumber: 134,
3393
3393
  },
3394
3394
  type: "'light' | 'dark'",
3395
3395
  },
@@ -3409,7 +3409,7 @@ export const manifest: Manifest = {
3409
3409
  },
3410
3410
  location: {
3411
3411
  filePath: 'src/ctx/base.ts',
3412
- lineNumber: 141,
3412
+ lineNumber: 144,
3413
3413
  },
3414
3414
  type: 'Partial<Record<string, ItemType>>',
3415
3415
  },
@@ -3420,7 +3420,7 @@ export const manifest: Manifest = {
3420
3420
  },
3421
3421
  location: {
3422
3422
  filePath: 'src/ctx/base.ts',
3423
- lineNumber: 148,
3423
+ lineNumber: 151,
3424
3424
  },
3425
3425
  type: 'Partial<Record<string, Field>>',
3426
3426
  },
@@ -3431,7 +3431,7 @@ export const manifest: Manifest = {
3431
3431
  },
3432
3432
  location: {
3433
3433
  filePath: 'src/ctx/base.ts',
3434
- lineNumber: 155,
3434
+ lineNumber: 158,
3435
3435
  },
3436
3436
  type: 'Partial<Record<string, Fieldset>>',
3437
3437
  },
@@ -3442,7 +3442,7 @@ export const manifest: Manifest = {
3442
3442
  },
3443
3443
  location: {
3444
3444
  filePath: 'src/ctx/base.ts',
3445
- lineNumber: 162,
3445
+ lineNumber: 165,
3446
3446
  },
3447
3447
  type: 'Partial<Record<string, User>>',
3448
3448
  },
@@ -3453,7 +3453,7 @@ export const manifest: Manifest = {
3453
3453
  },
3454
3454
  location: {
3455
3455
  filePath: 'src/ctx/base.ts',
3456
- lineNumber: 169,
3456
+ lineNumber: 172,
3457
3457
  },
3458
3458
  type: 'Partial<Record<string, SsoUser>>',
3459
3459
  },
@@ -3477,7 +3477,7 @@ export const manifest: Manifest = {
3477
3477
  },
3478
3478
  location: {
3479
3479
  filePath: 'src/ctx/base.ts',
3480
- lineNumber: 232,
3480
+ lineNumber: 235,
3481
3481
  },
3482
3482
  type: '(itemTypeId: string) => Promise<Field[]>',
3483
3483
  },
@@ -3490,7 +3490,7 @@ export const manifest: Manifest = {
3490
3490
  },
3491
3491
  location: {
3492
3492
  filePath: 'src/ctx/base.ts',
3493
- lineNumber: 251,
3493
+ lineNumber: 254,
3494
3494
  },
3495
3495
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3496
3496
  },
@@ -3503,7 +3503,7 @@ export const manifest: Manifest = {
3503
3503
  },
3504
3504
  location: {
3505
3505
  filePath: 'src/ctx/base.ts',
3506
- lineNumber: 268,
3506
+ lineNumber: 271,
3507
3507
  },
3508
3508
  type: '() => Promise<Field[]>',
3509
3509
  },
@@ -3516,7 +3516,7 @@ export const manifest: Manifest = {
3516
3516
  },
3517
3517
  location: {
3518
3518
  filePath: 'src/ctx/base.ts',
3519
- lineNumber: 281,
3519
+ lineNumber: 284,
3520
3520
  },
3521
3521
  type: '() => Promise<User[]>',
3522
3522
  },
@@ -3529,7 +3529,7 @@ export const manifest: Manifest = {
3529
3529
  },
3530
3530
  location: {
3531
3531
  filePath: 'src/ctx/base.ts',
3532
- lineNumber: 294,
3532
+ lineNumber: 297,
3533
3533
  },
3534
3534
  type: '() => Promise<SsoUser[]>',
3535
3535
  },
@@ -3551,7 +3551,7 @@ export const manifest: Manifest = {
3551
3551
  },
3552
3552
  location: {
3553
3553
  filePath: 'src/ctx/base.ts',
3554
- lineNumber: 316,
3554
+ lineNumber: 319,
3555
3555
  },
3556
3556
  type: '(params: Record<string, unknown>) => Promise<void>',
3557
3557
  },
@@ -3564,7 +3564,7 @@ export const manifest: Manifest = {
3564
3564
  },
3565
3565
  location: {
3566
3566
  filePath: 'src/ctx/base.ts',
3567
- lineNumber: 367,
3567
+ lineNumber: 370,
3568
3568
  },
3569
3569
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3570
3570
  },
@@ -3586,7 +3586,7 @@ export const manifest: Manifest = {
3586
3586
  },
3587
3587
  location: {
3588
3588
  filePath: 'src/ctx/base.ts',
3589
- lineNumber: 472,
3589
+ lineNumber: 475,
3590
3590
  },
3591
3591
  type: '(message: string) => Promise<void>',
3592
3592
  },
@@ -3599,7 +3599,7 @@ export const manifest: Manifest = {
3599
3599
  },
3600
3600
  location: {
3601
3601
  filePath: 'src/ctx/base.ts',
3602
- lineNumber: 487,
3602
+ lineNumber: 490,
3603
3603
  },
3604
3604
  type: '(message: string) => Promise<void>',
3605
3605
  },
@@ -3612,7 +3612,7 @@ export const manifest: Manifest = {
3612
3612
  },
3613
3613
  location: {
3614
3614
  filePath: 'src/ctx/base.ts',
3615
- lineNumber: 511,
3615
+ lineNumber: 514,
3616
3616
  },
3617
3617
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3618
3618
  },
@@ -3634,7 +3634,7 @@ export const manifest: Manifest = {
3634
3634
  },
3635
3635
  location: {
3636
3636
  filePath: 'src/ctx/base.ts',
3637
- lineNumber: 397,
3637
+ lineNumber: 400,
3638
3638
  },
3639
3639
  type: '(itemTypeId: string) => Promise<Item | null>',
3640
3640
  },
@@ -3647,7 +3647,7 @@ export const manifest: Manifest = {
3647
3647
  },
3648
3648
  location: {
3649
3649
  filePath: 'src/ctx/base.ts',
3650
- lineNumber: 418,
3650
+ lineNumber: 421,
3651
3651
  },
3652
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 }',
3653
3653
  },
@@ -3660,7 +3660,7 @@ export const manifest: Manifest = {
3660
3660
  },
3661
3661
  location: {
3662
3662
  filePath: 'src/ctx/base.ts',
3663
- lineNumber: 450,
3663
+ lineNumber: 453,
3664
3664
  },
3665
3665
  type: '(itemId: string) => Promise<Item | null>',
3666
3666
  },
@@ -3682,7 +3682,7 @@ export const manifest: Manifest = {
3682
3682
  },
3683
3683
  location: {
3684
3684
  filePath: 'src/ctx/base.ts',
3685
- lineNumber: 538,
3685
+ lineNumber: 541,
3686
3686
  },
3687
3687
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3688
3688
  },
@@ -3695,7 +3695,7 @@ export const manifest: Manifest = {
3695
3695
  },
3696
3696
  location: {
3697
3697
  filePath: 'src/ctx/base.ts',
3698
- lineNumber: 566,
3698
+ lineNumber: 569,
3699
3699
  },
3700
3700
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3701
3701
  },
@@ -3708,7 +3708,7 @@ export const manifest: Manifest = {
3708
3708
  },
3709
3709
  location: {
3710
3710
  filePath: 'src/ctx/base.ts',
3711
- lineNumber: 594,
3711
+ lineNumber: 597,
3712
3712
  },
3713
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>',
3714
3714
  },
@@ -3730,7 +3730,7 @@ export const manifest: Manifest = {
3730
3730
  },
3731
3731
  location: {
3732
3732
  filePath: 'src/ctx/base.ts',
3733
- lineNumber: 625,
3733
+ lineNumber: 628,
3734
3734
  },
3735
3735
  type: '(modal: Modal) => Promise<unknown>',
3736
3736
  },
@@ -3743,7 +3743,7 @@ export const manifest: Manifest = {
3743
3743
  },
3744
3744
  location: {
3745
3745
  filePath: 'src/ctx/base.ts',
3746
- lineNumber: 662,
3746
+ lineNumber: 665,
3747
3747
  },
3748
3748
  type: '(options: ConfirmOptions) => Promise<unknown>',
3749
3749
  },
@@ -3764,7 +3764,7 @@ export const manifest: Manifest = {
3764
3764
  },
3765
3765
  location: {
3766
3766
  filePath: 'src/ctx/base.ts',
3767
- lineNumber: 676,
3767
+ lineNumber: 679,
3768
3768
  },
3769
3769
  type: '(path: string) => Promise<void>',
3770
3770
  },