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

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 (81) hide show
  1. package/dist/cjs/connect.js +4 -0
  2. package/dist/cjs/connect.js.map +1 -1
  3. package/dist/cjs/guardUtils.js +12 -0
  4. package/dist/cjs/guardUtils.js.map +1 -1
  5. package/dist/cjs/hooks/executeSchemaItemTypeDropdownAction.js +3 -0
  6. package/dist/cjs/hooks/executeSchemaItemTypeDropdownAction.js.map +1 -0
  7. package/dist/cjs/hooks/mainNavigationTabs.js +4 -1
  8. package/dist/cjs/hooks/mainNavigationTabs.js.map +1 -1
  9. package/dist/cjs/hooks/renderInspector.js +11 -0
  10. package/dist/cjs/hooks/renderInspector.js.map +1 -0
  11. package/dist/cjs/hooks/renderInspectorPanel.js +11 -0
  12. package/dist/cjs/hooks/renderInspectorPanel.js.map +1 -0
  13. package/dist/cjs/hooks/renderPage.js.map +1 -1
  14. package/dist/cjs/hooks/schemaItemTypeDropdownActions.js +3 -0
  15. package/dist/cjs/hooks/schemaItemTypeDropdownActions.js.map +1 -0
  16. package/dist/cjs/icon.js +12 -5
  17. package/dist/cjs/icon.js.map +1 -1
  18. package/dist/cjs/index.js +4 -0
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/cjs/manifest.js +268 -32
  21. package/dist/cjs/manifest.js.map +1 -1
  22. package/dist/esm/connect.d.ts +5 -1
  23. package/dist/esm/connect.js +4 -0
  24. package/dist/esm/connect.js.map +1 -1
  25. package/dist/esm/ctx/base.d.ts +2 -0
  26. package/dist/esm/guardUtils.d.ts +4 -0
  27. package/dist/esm/guardUtils.js +8 -0
  28. package/dist/esm/guardUtils.js.map +1 -1
  29. package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.d.ts +20 -0
  30. package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.js +2 -0
  31. package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.js.map +1 -0
  32. package/dist/esm/hooks/mainNavigationTabs.d.ts +15 -1
  33. package/dist/esm/hooks/mainNavigationTabs.js +4 -1
  34. package/dist/esm/hooks/mainNavigationTabs.js.map +1 -1
  35. package/dist/esm/hooks/onBeforeItemUpsert.d.ts +28 -3
  36. package/dist/esm/hooks/renderInspector.d.ts +147 -0
  37. package/dist/esm/hooks/renderInspector.js +8 -0
  38. package/dist/esm/hooks/renderInspector.js.map +1 -0
  39. package/dist/esm/hooks/renderInspectorPanel.d.ts +20 -0
  40. package/dist/esm/hooks/renderInspectorPanel.js +8 -0
  41. package/dist/esm/hooks/renderInspectorPanel.js.map +1 -0
  42. package/dist/esm/hooks/renderPage.d.ts +6 -0
  43. package/dist/esm/hooks/renderPage.js.map +1 -1
  44. package/dist/esm/hooks/schemaItemTypeDropdownActions.d.ts +17 -0
  45. package/dist/esm/hooks/schemaItemTypeDropdownActions.js +2 -0
  46. package/dist/esm/hooks/schemaItemTypeDropdownActions.js.map +1 -0
  47. package/dist/esm/icon.d.ts +61 -2
  48. package/dist/esm/icon.js +11 -6
  49. package/dist/esm/icon.js.map +1 -1
  50. package/dist/esm/index.d.ts +4 -0
  51. package/dist/esm/index.js +4 -0
  52. package/dist/esm/index.js.map +1 -1
  53. package/dist/esm/manifest.js +268 -32
  54. package/dist/esm/manifest.js.map +1 -1
  55. package/dist/types/connect.d.ts +5 -1
  56. package/dist/types/ctx/base.d.ts +2 -0
  57. package/dist/types/guardUtils.d.ts +4 -0
  58. package/dist/types/hooks/executeSchemaItemTypeDropdownAction.d.ts +20 -0
  59. package/dist/types/hooks/mainNavigationTabs.d.ts +15 -1
  60. package/dist/types/hooks/onBeforeItemUpsert.d.ts +28 -3
  61. package/dist/types/hooks/renderInspector.d.ts +147 -0
  62. package/dist/types/hooks/renderInspectorPanel.d.ts +20 -0
  63. package/dist/types/hooks/renderPage.d.ts +6 -0
  64. package/dist/types/hooks/schemaItemTypeDropdownActions.d.ts +17 -0
  65. package/dist/types/icon.d.ts +61 -2
  66. package/dist/types/index.d.ts +4 -0
  67. package/manifest.json +268 -32
  68. package/package.json +4 -3
  69. package/src/connect.ts +16 -0
  70. package/src/ctx/base.ts +3 -0
  71. package/src/guardUtils.ts +13 -0
  72. package/src/hooks/executeSchemaItemTypeDropdownAction.ts +24 -0
  73. package/src/hooks/mainNavigationTabs.ts +24 -5
  74. package/src/hooks/onBeforeItemUpsert.ts +31 -3
  75. package/src/hooks/renderInspector.ts +176 -0
  76. package/src/hooks/renderInspectorPanel.ts +38 -0
  77. package/src/hooks/renderPage.ts +7 -0
  78. package/src/hooks/schemaItemTypeDropdownActions.ts +22 -0
  79. package/src/icon.ts +80 -9
  80. package/src/index.ts +4 -0
  81. package/src/manifest.ts +284 -32
package/src/manifest.ts CHANGED
@@ -101,6 +101,30 @@ export const manifest: Manifest = {
101
101
  lineNumber: 19,
102
102
  },
103
103
  },
104
+ schemaItemTypeDropdownActions: {
105
+ name: 'schemaItemTypeDropdownActions',
106
+ comment: {
107
+ markdownText:
108
+ 'Use this function to define custom actions (or groups of actions) for a model/block model in the Schema section.\n\nThe `executeSchemaItemTypeDropdownAction()` hook will be triggered once the user\nclicks on one of the defined actions.',
109
+ tag: 'dropdownActions',
110
+ },
111
+ nonCtxArguments: [
112
+ {
113
+ name: 'itemType',
114
+ typeName: 'ItemType',
115
+ },
116
+ ],
117
+ ctxArgument: {
118
+ type: 'Ctx',
119
+ additionalProperties: [],
120
+ additionalMethods: [],
121
+ },
122
+ returnType: 'Array<DropdownAction | DropdownActionGroup>',
123
+ location: {
124
+ filePath: 'src/hooks/schemaItemTypeDropdownActions.ts',
125
+ lineNumber: 16,
126
+ },
127
+ },
104
128
  renderUploadSidebarPanel: {
105
129
  name: 'renderUploadSidebarPanel',
106
130
  comment: {
@@ -251,6 +275,16 @@ export const manifest: Manifest = {
251
275
  },
252
276
  type: 'string',
253
277
  },
278
+ location: {
279
+ comment: {
280
+ markdownText: 'Current page location.',
281
+ },
282
+ location: {
283
+ filePath: 'src/hooks/renderPage.ts',
284
+ lineNumber: 22,
285
+ },
286
+ type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
287
+ },
254
288
  },
255
289
  },
256
290
  ],
@@ -1197,6 +1231,151 @@ export const manifest: Manifest = {
1197
1231
  lineNumber: 14,
1198
1232
  },
1199
1233
  },
1234
+ renderInspectorPanel: {
1235
+ name: 'renderInspectorPanel',
1236
+ comment: {
1237
+ markdownText:
1238
+ 'This function will be called when an inspector needs to render a specific\npanel (see the `renderInspector` and `setInspectorMode` functions).',
1239
+ tag: 'inspector',
1240
+ },
1241
+ nonCtxArguments: [
1242
+ {
1243
+ name: 'panelId',
1244
+ typeName: 'string',
1245
+ },
1246
+ ],
1247
+ ctxArgument: {
1248
+ type: 'ImposedSizePluginFrameCtx',
1249
+ additionalProperties: [
1250
+ {
1251
+ items: {
1252
+ panelId: {
1253
+ comment: {
1254
+ markdownText:
1255
+ 'The ID of the inspector panel that needs to be rendered.',
1256
+ },
1257
+ location: {
1258
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1259
+ lineNumber: 18,
1260
+ },
1261
+ type: 'string',
1262
+ },
1263
+ parameters: {
1264
+ comment: {
1265
+ markdownText:
1266
+ 'The arbitrary `parameters` of the modal declared in the `setInspectorMode`\nfunction.',
1267
+ },
1268
+ location: {
1269
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1270
+ lineNumber: 24,
1271
+ },
1272
+ type: 'Record<string, unknown>',
1273
+ },
1274
+ },
1275
+ },
1276
+ ],
1277
+ additionalMethods: [],
1278
+ },
1279
+ returnType: 'void',
1280
+ location: {
1281
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1282
+ lineNumber: 11,
1283
+ },
1284
+ },
1285
+ renderInspector: {
1286
+ name: 'renderInspector',
1287
+ comment: {
1288
+ markdownText:
1289
+ 'This function will be called when the plugin needs to render a specific\ninspector. Inspectors provide a side panel interface for displaying and\ninteracting with content alongside a custom interface.',
1290
+ tag: 'inspector',
1291
+ example:
1292
+ "connect({\n renderInspector(inspectorId, ctx) {\n render(\n <div>\n <h1>Inspector: {inspectorId}</h1>\n <button onClick={() => ctx.setInspectorMode({\n type: 'itemEditor',\n itemId: 'some-item-id'\n })}>\n Show Item Editor\n </button>\n </div>\n );\n }\n});",
1293
+ },
1294
+ nonCtxArguments: [
1295
+ {
1296
+ name: 'inspectorId',
1297
+ typeName: 'string',
1298
+ },
1299
+ ],
1300
+ ctxArgument: {
1301
+ type: 'ImposedSizePluginFrameCtx',
1302
+ additionalProperties: [
1303
+ {
1304
+ items: {
1305
+ inspectorId: {
1306
+ comment: {
1307
+ markdownText:
1308
+ 'The ID of the inspector that needs to be rendered.',
1309
+ },
1310
+ location: {
1311
+ filePath: 'src/hooks/renderInspector.ts',
1312
+ lineNumber: 80,
1313
+ },
1314
+ type: 'string',
1315
+ },
1316
+ highlightedItemId: {
1317
+ comment: {
1318
+ markdownText:
1319
+ 'The ID of the record the currently is highlighted by the user.',
1320
+ },
1321
+ location: {
1322
+ filePath: 'src/hooks/renderInspector.ts',
1323
+ lineNumber: 83,
1324
+ },
1325
+ type: 'string | undefined',
1326
+ },
1327
+ location: {
1328
+ comment: {
1329
+ markdownText: 'Current page location.',
1330
+ },
1331
+ location: {
1332
+ filePath: 'src/hooks/renderInspector.ts',
1333
+ lineNumber: 86,
1334
+ },
1335
+ type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
1336
+ },
1337
+ },
1338
+ },
1339
+ ],
1340
+ additionalMethods: [
1341
+ {
1342
+ items: {
1343
+ setInspectorMode: {
1344
+ comment: {
1345
+ markdownText:
1346
+ 'Changes the current display mode of the inspector. This allows the plugin\nto dynamically switch between showing a record list, record editor, or custom\npanel within the inspector interface.',
1347
+ example:
1348
+ "// Switch to record editor mode\nawait ctx.setInspectorMode({\n type: 'itemEditor',\n itemId: 'item-123',\n fieldPath: 'title'\n});\n\n// Switch to record list mode\nawait ctx.setInspectorMode({ type: 'itemList' });\nawait ctx.setInspectorItemListData({\n title: 'Related Records',\n itemIds: ['item-1', 'item-2', 'item-3']\n});\n\n// Switch to custom panel mode\nawait ctx.setInspectorMode({\n type: 'customPanel',\n panelId: 'my-custom-panel',\n parameters: { filter: 'active' }\n});\n\n// Low intent mode change - won't interrupt editing with unsaved changes\nawait ctx.setInspectorMode(\n { type: 'itemList' },\n { ignoreIfUnsavedChanges: true }\n);",
1349
+ },
1350
+ location: {
1351
+ filePath: 'src/hooks/renderInspector.ts',
1352
+ lineNumber: 136,
1353
+ },
1354
+ type: '(\n mode: InspectorMode,\n options?: SetInspectorModeOptions,\n ) => Promise<void>',
1355
+ },
1356
+ setInspectorItemListData: {
1357
+ comment: {
1358
+ markdownText:
1359
+ 'Sets the data for the item list inspector mode.',
1360
+ example:
1361
+ "// Set the item list data\nawait ctx.setInspectorItemListData({\n title: 'Related Records',\n itemIds: ['item-1', 'item-2', 'item-3']\n});\n\n// Switch to item list mode\nawait ctx.setInspectorMode({ type: 'itemList' });",
1362
+ },
1363
+ location: {
1364
+ filePath: 'src/hooks/renderInspector.ts',
1365
+ lineNumber: 157,
1366
+ },
1367
+ type: '(data: {\n /** The title to show in the inspector header */\n title: string;\n /** Array of record IDs to display in the list */\n itemIds: string[];\n }) => Promise<void>',
1368
+ },
1369
+ },
1370
+ },
1371
+ ],
1372
+ },
1373
+ returnType: 'void',
1374
+ location: {
1375
+ filePath: 'src/hooks/renderInspector.ts',
1376
+ lineNumber: 73,
1377
+ },
1378
+ },
1200
1379
  renderFieldExtension: {
1201
1380
  name: 'renderFieldExtension',
1202
1381
  comment: {
@@ -1711,7 +1890,7 @@ export const manifest: Manifest = {
1711
1890
  name: 'onBeforeItemUpsert',
1712
1891
  comment: {
1713
1892
  markdownText:
1714
- 'This function will be called before saving a new version of a record. You\ncan stop the action by returning `false`.',
1893
+ 'This hook is called when the user attempts to save a record. You can use it to block record saving.\n\nIf you return `false`, the record will NOT be saved. A small on-page error will say "A plugin blocked the action".\nHowever, for better UX, consider also using `ctx.alert()` to better explain to the user why their save was blocked.\n\nIf you return `true`, the save will proceed as normal.\n\nThis hook runs BEFORE serverside validation. You can use it to do your own additional validation before returning.\nClientside validations are not affected by this hook, since those occur on individual fields\' `onBlur()` events.',
1715
1894
  tag: 'beforeHooks',
1716
1895
  },
1717
1896
  nonCtxArguments: [
@@ -1722,13 +1901,35 @@ export const manifest: Manifest = {
1722
1901
  ],
1723
1902
  ctxArgument: {
1724
1903
  type: 'Ctx',
1725
- additionalProperties: [],
1726
- additionalMethods: [],
1904
+ additionalProperties: [
1905
+ {
1906
+ items: {},
1907
+ },
1908
+ ],
1909
+ additionalMethods: [
1910
+ {
1911
+ items: {
1912
+ scrollToField: {
1913
+ comment: {
1914
+ markdownText:
1915
+ 'Smoothly navigates to a specific field in the form. If the field is\nlocalized it will switch language tab and then navigate to the chosen\nfield.',
1916
+ example:
1917
+ "const fieldPath = prompt(\n 'Please insert the path of a field in the form',\n ctx.fieldPath,\n);\n\nawait ctx.scrollToField(fieldPath);",
1918
+ },
1919
+ location: {
1920
+ filePath: 'src/hooks/onBeforeItemUpsert.ts',
1921
+ lineNumber: 47,
1922
+ },
1923
+ type: '(path: string, locale?: string) => Promise<void>',
1924
+ },
1925
+ },
1926
+ },
1927
+ ],
1727
1928
  },
1728
1929
  returnType: 'MaybePromise<boolean>',
1729
1930
  location: {
1730
1931
  filePath: 'src/hooks/onBeforeItemUpsert.ts',
1731
- lineNumber: 15,
1932
+ lineNumber: 22,
1732
1933
  },
1733
1934
  },
1734
1935
  manualFieldExtensions: {
@@ -2272,6 +2473,46 @@ export const manifest: Manifest = {
2272
2473
  lineNumber: 13,
2273
2474
  },
2274
2475
  },
2476
+ executeSchemaItemTypeDropdownAction: {
2477
+ name: 'executeSchemaItemTypeDropdownAction',
2478
+ comment: {
2479
+ markdownText:
2480
+ 'Use this function to execute a particular dropdown action defined via\nthe `schemaItemTypeDropdownActions()` hook.',
2481
+ tag: 'dropdownActions',
2482
+ },
2483
+ nonCtxArguments: [
2484
+ {
2485
+ name: 'actionId',
2486
+ typeName: 'string',
2487
+ },
2488
+ {
2489
+ name: 'itemType',
2490
+ typeName: 'ItemType',
2491
+ },
2492
+ ],
2493
+ ctxArgument: {
2494
+ type: 'Ctx',
2495
+ additionalProperties: [
2496
+ {
2497
+ items: {
2498
+ parameters: {
2499
+ location: {
2500
+ filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
2501
+ lineNumber: 23,
2502
+ },
2503
+ type: 'Record<string, unknown> | undefined',
2504
+ },
2505
+ },
2506
+ },
2507
+ ],
2508
+ additionalMethods: [],
2509
+ },
2510
+ returnType: 'Promise<void>',
2511
+ location: {
2512
+ filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
2513
+ lineNumber: 13,
2514
+ },
2515
+ },
2275
2516
  executeItemsDropdownAction: {
2276
2517
  name: 'executeItemsDropdownAction',
2277
2518
  comment: {
@@ -3050,6 +3291,17 @@ export const manifest: Manifest = {
3050
3291
  },
3051
3292
  type: 'string',
3052
3293
  },
3294
+ isEnvironmentPrimary: {
3295
+ comment: {
3296
+ markdownText:
3297
+ 'Whether the current environment is the primary one.',
3298
+ },
3299
+ location: {
3300
+ filePath: 'src/ctx/base.ts',
3301
+ lineNumber: 64,
3302
+ },
3303
+ type: 'boolean',
3304
+ },
3053
3305
  owner: {
3054
3306
  comment: {
3055
3307
  markdownText:
@@ -3057,7 +3309,7 @@ export const manifest: Manifest = {
3057
3309
  },
3058
3310
  location: {
3059
3311
  filePath: 'src/ctx/base.ts',
3060
- lineNumber: 64,
3312
+ lineNumber: 67,
3061
3313
  },
3062
3314
  type: 'Account | Organization',
3063
3315
  },
@@ -3069,7 +3321,7 @@ export const manifest: Manifest = {
3069
3321
  },
3070
3322
  location: {
3071
3323
  filePath: 'src/ctx/base.ts',
3072
- lineNumber: 72,
3324
+ lineNumber: 75,
3073
3325
  },
3074
3326
  type: 'Account | undefined',
3075
3327
  },
@@ -3080,7 +3332,7 @@ export const manifest: Manifest = {
3080
3332
  },
3081
3333
  location: {
3082
3334
  filePath: 'src/ctx/base.ts',
3083
- lineNumber: 78,
3335
+ lineNumber: 81,
3084
3336
  },
3085
3337
  type: '{\n /** Preferred locale */\n locale: string;\n }',
3086
3338
  },
@@ -3091,7 +3343,7 @@ export const manifest: Manifest = {
3091
3343
  },
3092
3344
  location: {
3093
3345
  filePath: 'src/ctx/base.ts',
3094
- lineNumber: 84,
3346
+ lineNumber: 87,
3095
3347
  },
3096
3348
  type: 'Theme',
3097
3349
  },
@@ -3111,7 +3363,7 @@ export const manifest: Manifest = {
3111
3363
  },
3112
3364
  location: {
3113
3365
  filePath: 'src/ctx/base.ts',
3114
- lineNumber: 94,
3366
+ lineNumber: 97,
3115
3367
  },
3116
3368
  type: 'Partial<Record<string, ItemType>>',
3117
3369
  },
@@ -3122,7 +3374,7 @@ export const manifest: Manifest = {
3122
3374
  },
3123
3375
  location: {
3124
3376
  filePath: 'src/ctx/base.ts',
3125
- lineNumber: 101,
3377
+ lineNumber: 104,
3126
3378
  },
3127
3379
  type: 'Partial<Record<string, Field>>',
3128
3380
  },
@@ -3133,7 +3385,7 @@ export const manifest: Manifest = {
3133
3385
  },
3134
3386
  location: {
3135
3387
  filePath: 'src/ctx/base.ts',
3136
- lineNumber: 108,
3388
+ lineNumber: 111,
3137
3389
  },
3138
3390
  type: 'Partial<Record<string, Fieldset>>',
3139
3391
  },
@@ -3144,7 +3396,7 @@ export const manifest: Manifest = {
3144
3396
  },
3145
3397
  location: {
3146
3398
  filePath: 'src/ctx/base.ts',
3147
- lineNumber: 115,
3399
+ lineNumber: 118,
3148
3400
  },
3149
3401
  type: 'Partial<Record<string, User>>',
3150
3402
  },
@@ -3155,7 +3407,7 @@ export const manifest: Manifest = {
3155
3407
  },
3156
3408
  location: {
3157
3409
  filePath: 'src/ctx/base.ts',
3158
- lineNumber: 122,
3410
+ lineNumber: 125,
3159
3411
  },
3160
3412
  type: 'Partial<Record<string, SsoUser>>',
3161
3413
  },
@@ -3179,7 +3431,7 @@ export const manifest: Manifest = {
3179
3431
  },
3180
3432
  location: {
3181
3433
  filePath: 'src/ctx/base.ts',
3182
- lineNumber: 165,
3434
+ lineNumber: 168,
3183
3435
  },
3184
3436
  type: '(itemTypeId: string) => Promise<Field[]>',
3185
3437
  },
@@ -3192,7 +3444,7 @@ export const manifest: Manifest = {
3192
3444
  },
3193
3445
  location: {
3194
3446
  filePath: 'src/ctx/base.ts',
3195
- lineNumber: 184,
3447
+ lineNumber: 187,
3196
3448
  },
3197
3449
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3198
3450
  },
@@ -3205,7 +3457,7 @@ export const manifest: Manifest = {
3205
3457
  },
3206
3458
  location: {
3207
3459
  filePath: 'src/ctx/base.ts',
3208
- lineNumber: 201,
3460
+ lineNumber: 204,
3209
3461
  },
3210
3462
  type: '() => Promise<Field[]>',
3211
3463
  },
@@ -3218,7 +3470,7 @@ export const manifest: Manifest = {
3218
3470
  },
3219
3471
  location: {
3220
3472
  filePath: 'src/ctx/base.ts',
3221
- lineNumber: 214,
3473
+ lineNumber: 217,
3222
3474
  },
3223
3475
  type: '() => Promise<User[]>',
3224
3476
  },
@@ -3231,7 +3483,7 @@ export const manifest: Manifest = {
3231
3483
  },
3232
3484
  location: {
3233
3485
  filePath: 'src/ctx/base.ts',
3234
- lineNumber: 227,
3486
+ lineNumber: 230,
3235
3487
  },
3236
3488
  type: '() => Promise<SsoUser[]>',
3237
3489
  },
@@ -3253,7 +3505,7 @@ export const manifest: Manifest = {
3253
3505
  },
3254
3506
  location: {
3255
3507
  filePath: 'src/ctx/base.ts',
3256
- lineNumber: 249,
3508
+ lineNumber: 252,
3257
3509
  },
3258
3510
  type: '(params: Record<string, unknown>) => Promise<void>',
3259
3511
  },
@@ -3266,7 +3518,7 @@ export const manifest: Manifest = {
3266
3518
  },
3267
3519
  location: {
3268
3520
  filePath: 'src/ctx/base.ts',
3269
- lineNumber: 300,
3521
+ lineNumber: 303,
3270
3522
  },
3271
3523
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3272
3524
  },
@@ -3288,7 +3540,7 @@ export const manifest: Manifest = {
3288
3540
  },
3289
3541
  location: {
3290
3542
  filePath: 'src/ctx/base.ts',
3291
- lineNumber: 405,
3543
+ lineNumber: 408,
3292
3544
  },
3293
3545
  type: '(message: string) => Promise<void>',
3294
3546
  },
@@ -3301,7 +3553,7 @@ export const manifest: Manifest = {
3301
3553
  },
3302
3554
  location: {
3303
3555
  filePath: 'src/ctx/base.ts',
3304
- lineNumber: 420,
3556
+ lineNumber: 423,
3305
3557
  },
3306
3558
  type: '(message: string) => Promise<void>',
3307
3559
  },
@@ -3314,7 +3566,7 @@ export const manifest: Manifest = {
3314
3566
  },
3315
3567
  location: {
3316
3568
  filePath: 'src/ctx/base.ts',
3317
- lineNumber: 444,
3569
+ lineNumber: 447,
3318
3570
  },
3319
3571
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3320
3572
  },
@@ -3336,7 +3588,7 @@ export const manifest: Manifest = {
3336
3588
  },
3337
3589
  location: {
3338
3590
  filePath: 'src/ctx/base.ts',
3339
- lineNumber: 330,
3591
+ lineNumber: 333,
3340
3592
  },
3341
3593
  type: '(itemTypeId: string) => Promise<Item | null>',
3342
3594
  },
@@ -3349,7 +3601,7 @@ export const manifest: Manifest = {
3349
3601
  },
3350
3602
  location: {
3351
3603
  filePath: 'src/ctx/base.ts',
3352
- lineNumber: 351,
3604
+ lineNumber: 354,
3353
3605
  },
3354
3606
  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 }',
3355
3607
  },
@@ -3362,7 +3614,7 @@ export const manifest: Manifest = {
3362
3614
  },
3363
3615
  location: {
3364
3616
  filePath: 'src/ctx/base.ts',
3365
- lineNumber: 383,
3617
+ lineNumber: 386,
3366
3618
  },
3367
3619
  type: '(itemId: string) => Promise<Item | null>',
3368
3620
  },
@@ -3384,7 +3636,7 @@ export const manifest: Manifest = {
3384
3636
  },
3385
3637
  location: {
3386
3638
  filePath: 'src/ctx/base.ts',
3387
- lineNumber: 471,
3639
+ lineNumber: 474,
3388
3640
  },
3389
3641
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3390
3642
  },
@@ -3397,7 +3649,7 @@ export const manifest: Manifest = {
3397
3649
  },
3398
3650
  location: {
3399
3651
  filePath: 'src/ctx/base.ts',
3400
- lineNumber: 499,
3652
+ lineNumber: 502,
3401
3653
  },
3402
3654
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3403
3655
  },
@@ -3410,7 +3662,7 @@ export const manifest: Manifest = {
3410
3662
  },
3411
3663
  location: {
3412
3664
  filePath: 'src/ctx/base.ts',
3413
- lineNumber: 527,
3665
+ lineNumber: 530,
3414
3666
  },
3415
3667
  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>',
3416
3668
  },
@@ -3432,7 +3684,7 @@ export const manifest: Manifest = {
3432
3684
  },
3433
3685
  location: {
3434
3686
  filePath: 'src/ctx/base.ts',
3435
- lineNumber: 558,
3687
+ lineNumber: 561,
3436
3688
  },
3437
3689
  type: '(modal: Modal) => Promise<unknown>',
3438
3690
  },
@@ -3445,7 +3697,7 @@ export const manifest: Manifest = {
3445
3697
  },
3446
3698
  location: {
3447
3699
  filePath: 'src/ctx/base.ts',
3448
- lineNumber: 595,
3700
+ lineNumber: 598,
3449
3701
  },
3450
3702
  type: '(options: ConfirmOptions) => Promise<unknown>',
3451
3703
  },
@@ -3466,7 +3718,7 @@ export const manifest: Manifest = {
3466
3718
  },
3467
3719
  location: {
3468
3720
  filePath: 'src/ctx/base.ts',
3469
- lineNumber: 609,
3721
+ lineNumber: 612,
3470
3722
  },
3471
3723
  type: '(path: string) => Promise<void>',
3472
3724
  },