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
@@ -97,6 +97,29 @@ exports.manifest = {
97
97
  lineNumber: 19,
98
98
  },
99
99
  },
100
+ schemaItemTypeDropdownActions: {
101
+ name: 'schemaItemTypeDropdownActions',
102
+ comment: {
103
+ markdownText: '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.',
104
+ tag: 'dropdownActions',
105
+ },
106
+ nonCtxArguments: [
107
+ {
108
+ name: 'itemType',
109
+ typeName: 'ItemType',
110
+ },
111
+ ],
112
+ ctxArgument: {
113
+ type: 'Ctx',
114
+ additionalProperties: [],
115
+ additionalMethods: [],
116
+ },
117
+ returnType: 'Array<DropdownAction | DropdownActionGroup>',
118
+ location: {
119
+ filePath: 'src/hooks/schemaItemTypeDropdownActions.ts',
120
+ lineNumber: 16,
121
+ },
122
+ },
100
123
  renderUploadSidebarPanel: {
101
124
  name: 'renderUploadSidebarPanel',
102
125
  comment: {
@@ -240,6 +263,16 @@ exports.manifest = {
240
263
  },
241
264
  type: 'string',
242
265
  },
266
+ location: {
267
+ comment: {
268
+ markdownText: 'Current page location.',
269
+ },
270
+ location: {
271
+ filePath: 'src/hooks/renderPage.ts',
272
+ lineNumber: 22,
273
+ },
274
+ type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
275
+ },
243
276
  },
244
277
  },
245
278
  ],
@@ -1109,6 +1142,140 @@ exports.manifest = {
1109
1142
  lineNumber: 14,
1110
1143
  },
1111
1144
  },
1145
+ renderInspectorPanel: {
1146
+ name: 'renderInspectorPanel',
1147
+ comment: {
1148
+ markdownText: 'This function will be called when an inspector needs to render a specific\npanel (see the `renderInspector` and `setInspectorMode` functions).',
1149
+ tag: 'inspector',
1150
+ },
1151
+ nonCtxArguments: [
1152
+ {
1153
+ name: 'panelId',
1154
+ typeName: 'string',
1155
+ },
1156
+ ],
1157
+ ctxArgument: {
1158
+ type: 'ImposedSizePluginFrameCtx',
1159
+ additionalProperties: [
1160
+ {
1161
+ items: {
1162
+ panelId: {
1163
+ comment: {
1164
+ markdownText: 'The ID of the inspector panel that needs to be rendered.',
1165
+ },
1166
+ location: {
1167
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1168
+ lineNumber: 18,
1169
+ },
1170
+ type: 'string',
1171
+ },
1172
+ parameters: {
1173
+ comment: {
1174
+ markdownText: 'The arbitrary `parameters` of the modal declared in the `setInspectorMode`\nfunction.',
1175
+ },
1176
+ location: {
1177
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1178
+ lineNumber: 24,
1179
+ },
1180
+ type: 'Record<string, unknown>',
1181
+ },
1182
+ },
1183
+ },
1184
+ ],
1185
+ additionalMethods: [],
1186
+ },
1187
+ returnType: 'void',
1188
+ location: {
1189
+ filePath: 'src/hooks/renderInspectorPanel.ts',
1190
+ lineNumber: 11,
1191
+ },
1192
+ },
1193
+ renderInspector: {
1194
+ name: 'renderInspector',
1195
+ comment: {
1196
+ markdownText: '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.',
1197
+ tag: 'inspector',
1198
+ example: "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});",
1199
+ },
1200
+ nonCtxArguments: [
1201
+ {
1202
+ name: 'inspectorId',
1203
+ typeName: 'string',
1204
+ },
1205
+ ],
1206
+ ctxArgument: {
1207
+ type: 'ImposedSizePluginFrameCtx',
1208
+ additionalProperties: [
1209
+ {
1210
+ items: {
1211
+ inspectorId: {
1212
+ comment: {
1213
+ markdownText: 'The ID of the inspector that needs to be rendered.',
1214
+ },
1215
+ location: {
1216
+ filePath: 'src/hooks/renderInspector.ts',
1217
+ lineNumber: 80,
1218
+ },
1219
+ type: 'string',
1220
+ },
1221
+ highlightedItemId: {
1222
+ comment: {
1223
+ markdownText: 'The ID of the record the currently is highlighted by the user.',
1224
+ },
1225
+ location: {
1226
+ filePath: 'src/hooks/renderInspector.ts',
1227
+ lineNumber: 83,
1228
+ },
1229
+ type: 'string | undefined',
1230
+ },
1231
+ location: {
1232
+ comment: {
1233
+ markdownText: 'Current page location.',
1234
+ },
1235
+ location: {
1236
+ filePath: 'src/hooks/renderInspector.ts',
1237
+ lineNumber: 86,
1238
+ },
1239
+ type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
1240
+ },
1241
+ },
1242
+ },
1243
+ ],
1244
+ additionalMethods: [
1245
+ {
1246
+ items: {
1247
+ setInspectorMode: {
1248
+ comment: {
1249
+ markdownText: '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.',
1250
+ example: "// 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);",
1251
+ },
1252
+ location: {
1253
+ filePath: 'src/hooks/renderInspector.ts',
1254
+ lineNumber: 136,
1255
+ },
1256
+ type: '(\n mode: InspectorMode,\n options?: SetInspectorModeOptions,\n ) => Promise<void>',
1257
+ },
1258
+ setInspectorItemListData: {
1259
+ comment: {
1260
+ markdownText: 'Sets the data for the item list inspector mode.',
1261
+ example: "// 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' });",
1262
+ },
1263
+ location: {
1264
+ filePath: 'src/hooks/renderInspector.ts',
1265
+ lineNumber: 157,
1266
+ },
1267
+ 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>',
1268
+ },
1269
+ },
1270
+ },
1271
+ ],
1272
+ },
1273
+ returnType: 'void',
1274
+ location: {
1275
+ filePath: 'src/hooks/renderInspector.ts',
1276
+ lineNumber: 73,
1277
+ },
1278
+ },
1112
1279
  renderFieldExtension: {
1113
1280
  name: 'renderFieldExtension',
1114
1281
  comment: {
@@ -1586,7 +1753,7 @@ exports.manifest = {
1586
1753
  onBeforeItemUpsert: {
1587
1754
  name: 'onBeforeItemUpsert',
1588
1755
  comment: {
1589
- markdownText: 'This function will be called before saving a new version of a record. You\ncan stop the action by returning `false`.',
1756
+ markdownText: '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.',
1590
1757
  tag: 'beforeHooks',
1591
1758
  },
1592
1759
  nonCtxArguments: [
@@ -1597,13 +1764,33 @@ exports.manifest = {
1597
1764
  ],
1598
1765
  ctxArgument: {
1599
1766
  type: 'Ctx',
1600
- additionalProperties: [],
1601
- additionalMethods: [],
1767
+ additionalProperties: [
1768
+ {
1769
+ items: {},
1770
+ },
1771
+ ],
1772
+ additionalMethods: [
1773
+ {
1774
+ items: {
1775
+ scrollToField: {
1776
+ comment: {
1777
+ markdownText: '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.',
1778
+ example: "const fieldPath = prompt(\n 'Please insert the path of a field in the form',\n ctx.fieldPath,\n);\n\nawait ctx.scrollToField(fieldPath);",
1779
+ },
1780
+ location: {
1781
+ filePath: 'src/hooks/onBeforeItemUpsert.ts',
1782
+ lineNumber: 47,
1783
+ },
1784
+ type: '(path: string, locale?: string) => Promise<void>',
1785
+ },
1786
+ },
1787
+ },
1788
+ ],
1602
1789
  },
1603
1790
  returnType: 'MaybePromise<boolean>',
1604
1791
  location: {
1605
1792
  filePath: 'src/hooks/onBeforeItemUpsert.ts',
1606
- lineNumber: 15,
1793
+ lineNumber: 22,
1607
1794
  },
1608
1795
  },
1609
1796
  manualFieldExtensions: {
@@ -2117,6 +2304,45 @@ exports.manifest = {
2117
2304
  lineNumber: 13,
2118
2305
  },
2119
2306
  },
2307
+ executeSchemaItemTypeDropdownAction: {
2308
+ name: 'executeSchemaItemTypeDropdownAction',
2309
+ comment: {
2310
+ markdownText: 'Use this function to execute a particular dropdown action defined via\nthe `schemaItemTypeDropdownActions()` hook.',
2311
+ tag: 'dropdownActions',
2312
+ },
2313
+ nonCtxArguments: [
2314
+ {
2315
+ name: 'actionId',
2316
+ typeName: 'string',
2317
+ },
2318
+ {
2319
+ name: 'itemType',
2320
+ typeName: 'ItemType',
2321
+ },
2322
+ ],
2323
+ ctxArgument: {
2324
+ type: 'Ctx',
2325
+ additionalProperties: [
2326
+ {
2327
+ items: {
2328
+ parameters: {
2329
+ location: {
2330
+ filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
2331
+ lineNumber: 23,
2332
+ },
2333
+ type: 'Record<string, unknown> | undefined',
2334
+ },
2335
+ },
2336
+ },
2337
+ ],
2338
+ additionalMethods: [],
2339
+ },
2340
+ returnType: 'Promise<void>',
2341
+ location: {
2342
+ filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
2343
+ lineNumber: 13,
2344
+ },
2345
+ },
2120
2346
  executeItemsDropdownAction: {
2121
2347
  name: 'executeItemsDropdownAction',
2122
2348
  comment: {
@@ -2843,13 +3069,23 @@ exports.manifest = {
2843
3069
  },
2844
3070
  type: 'string',
2845
3071
  },
3072
+ isEnvironmentPrimary: {
3073
+ comment: {
3074
+ markdownText: 'Whether the current environment is the primary one.',
3075
+ },
3076
+ location: {
3077
+ filePath: 'src/ctx/base.ts',
3078
+ lineNumber: 64,
3079
+ },
3080
+ type: 'boolean',
3081
+ },
2846
3082
  owner: {
2847
3083
  comment: {
2848
3084
  markdownText: 'The account/organization that is the project owner.',
2849
3085
  },
2850
3086
  location: {
2851
3087
  filePath: 'src/ctx/base.ts',
2852
- lineNumber: 64,
3088
+ lineNumber: 67,
2853
3089
  },
2854
3090
  type: 'Account | Organization',
2855
3091
  },
@@ -2860,7 +3096,7 @@ exports.manifest = {
2860
3096
  },
2861
3097
  location: {
2862
3098
  filePath: 'src/ctx/base.ts',
2863
- lineNumber: 72,
3099
+ lineNumber: 75,
2864
3100
  },
2865
3101
  type: 'Account | undefined',
2866
3102
  },
@@ -2870,7 +3106,7 @@ exports.manifest = {
2870
3106
  },
2871
3107
  location: {
2872
3108
  filePath: 'src/ctx/base.ts',
2873
- lineNumber: 78,
3109
+ lineNumber: 81,
2874
3110
  },
2875
3111
  type: '{\n /** Preferred locale */\n locale: string;\n }',
2876
3112
  },
@@ -2880,7 +3116,7 @@ exports.manifest = {
2880
3116
  },
2881
3117
  location: {
2882
3118
  filePath: 'src/ctx/base.ts',
2883
- lineNumber: 84,
3119
+ lineNumber: 87,
2884
3120
  },
2885
3121
  type: 'Theme',
2886
3122
  },
@@ -2898,7 +3134,7 @@ exports.manifest = {
2898
3134
  },
2899
3135
  location: {
2900
3136
  filePath: 'src/ctx/base.ts',
2901
- lineNumber: 94,
3137
+ lineNumber: 97,
2902
3138
  },
2903
3139
  type: 'Partial<Record<string, ItemType>>',
2904
3140
  },
@@ -2908,7 +3144,7 @@ exports.manifest = {
2908
3144
  },
2909
3145
  location: {
2910
3146
  filePath: 'src/ctx/base.ts',
2911
- lineNumber: 101,
3147
+ lineNumber: 104,
2912
3148
  },
2913
3149
  type: 'Partial<Record<string, Field>>',
2914
3150
  },
@@ -2918,7 +3154,7 @@ exports.manifest = {
2918
3154
  },
2919
3155
  location: {
2920
3156
  filePath: 'src/ctx/base.ts',
2921
- lineNumber: 108,
3157
+ lineNumber: 111,
2922
3158
  },
2923
3159
  type: 'Partial<Record<string, Fieldset>>',
2924
3160
  },
@@ -2928,7 +3164,7 @@ exports.manifest = {
2928
3164
  },
2929
3165
  location: {
2930
3166
  filePath: 'src/ctx/base.ts',
2931
- lineNumber: 115,
3167
+ lineNumber: 118,
2932
3168
  },
2933
3169
  type: 'Partial<Record<string, User>>',
2934
3170
  },
@@ -2938,7 +3174,7 @@ exports.manifest = {
2938
3174
  },
2939
3175
  location: {
2940
3176
  filePath: 'src/ctx/base.ts',
2941
- lineNumber: 122,
3177
+ lineNumber: 125,
2942
3178
  },
2943
3179
  type: 'Partial<Record<string, SsoUser>>',
2944
3180
  },
@@ -2959,7 +3195,7 @@ exports.manifest = {
2959
3195
  },
2960
3196
  location: {
2961
3197
  filePath: 'src/ctx/base.ts',
2962
- lineNumber: 165,
3198
+ lineNumber: 168,
2963
3199
  },
2964
3200
  type: '(itemTypeId: string) => Promise<Field[]>',
2965
3201
  },
@@ -2970,7 +3206,7 @@ exports.manifest = {
2970
3206
  },
2971
3207
  location: {
2972
3208
  filePath: 'src/ctx/base.ts',
2973
- lineNumber: 184,
3209
+ lineNumber: 187,
2974
3210
  },
2975
3211
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
2976
3212
  },
@@ -2981,7 +3217,7 @@ exports.manifest = {
2981
3217
  },
2982
3218
  location: {
2983
3219
  filePath: 'src/ctx/base.ts',
2984
- lineNumber: 201,
3220
+ lineNumber: 204,
2985
3221
  },
2986
3222
  type: '() => Promise<Field[]>',
2987
3223
  },
@@ -2992,7 +3228,7 @@ exports.manifest = {
2992
3228
  },
2993
3229
  location: {
2994
3230
  filePath: 'src/ctx/base.ts',
2995
- lineNumber: 214,
3231
+ lineNumber: 217,
2996
3232
  },
2997
3233
  type: '() => Promise<User[]>',
2998
3234
  },
@@ -3003,7 +3239,7 @@ exports.manifest = {
3003
3239
  },
3004
3240
  location: {
3005
3241
  filePath: 'src/ctx/base.ts',
3006
- lineNumber: 227,
3242
+ lineNumber: 230,
3007
3243
  },
3008
3244
  type: '() => Promise<SsoUser[]>',
3009
3245
  },
@@ -3022,7 +3258,7 @@ exports.manifest = {
3022
3258
  },
3023
3259
  location: {
3024
3260
  filePath: 'src/ctx/base.ts',
3025
- lineNumber: 249,
3261
+ lineNumber: 252,
3026
3262
  },
3027
3263
  type: '(params: Record<string, unknown>) => Promise<void>',
3028
3264
  },
@@ -3033,7 +3269,7 @@ exports.manifest = {
3033
3269
  },
3034
3270
  location: {
3035
3271
  filePath: 'src/ctx/base.ts',
3036
- lineNumber: 300,
3272
+ lineNumber: 303,
3037
3273
  },
3038
3274
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3039
3275
  },
@@ -3052,7 +3288,7 @@ exports.manifest = {
3052
3288
  },
3053
3289
  location: {
3054
3290
  filePath: 'src/ctx/base.ts',
3055
- lineNumber: 405,
3291
+ lineNumber: 408,
3056
3292
  },
3057
3293
  type: '(message: string) => Promise<void>',
3058
3294
  },
@@ -3063,7 +3299,7 @@ exports.manifest = {
3063
3299
  },
3064
3300
  location: {
3065
3301
  filePath: 'src/ctx/base.ts',
3066
- lineNumber: 420,
3302
+ lineNumber: 423,
3067
3303
  },
3068
3304
  type: '(message: string) => Promise<void>',
3069
3305
  },
@@ -3074,7 +3310,7 @@ exports.manifest = {
3074
3310
  },
3075
3311
  location: {
3076
3312
  filePath: 'src/ctx/base.ts',
3077
- lineNumber: 444,
3313
+ lineNumber: 447,
3078
3314
  },
3079
3315
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3080
3316
  },
@@ -3093,7 +3329,7 @@ exports.manifest = {
3093
3329
  },
3094
3330
  location: {
3095
3331
  filePath: 'src/ctx/base.ts',
3096
- lineNumber: 330,
3332
+ lineNumber: 333,
3097
3333
  },
3098
3334
  type: '(itemTypeId: string) => Promise<Item | null>',
3099
3335
  },
@@ -3104,7 +3340,7 @@ exports.manifest = {
3104
3340
  },
3105
3341
  location: {
3106
3342
  filePath: 'src/ctx/base.ts',
3107
- lineNumber: 351,
3343
+ lineNumber: 354,
3108
3344
  },
3109
3345
  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 }',
3110
3346
  },
@@ -3115,7 +3351,7 @@ exports.manifest = {
3115
3351
  },
3116
3352
  location: {
3117
3353
  filePath: 'src/ctx/base.ts',
3118
- lineNumber: 383,
3354
+ lineNumber: 386,
3119
3355
  },
3120
3356
  type: '(itemId: string) => Promise<Item | null>',
3121
3357
  },
@@ -3134,7 +3370,7 @@ exports.manifest = {
3134
3370
  },
3135
3371
  location: {
3136
3372
  filePath: 'src/ctx/base.ts',
3137
- lineNumber: 471,
3373
+ lineNumber: 474,
3138
3374
  },
3139
3375
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3140
3376
  },
@@ -3145,7 +3381,7 @@ exports.manifest = {
3145
3381
  },
3146
3382
  location: {
3147
3383
  filePath: 'src/ctx/base.ts',
3148
- lineNumber: 499,
3384
+ lineNumber: 502,
3149
3385
  },
3150
3386
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3151
3387
  },
@@ -3156,7 +3392,7 @@ exports.manifest = {
3156
3392
  },
3157
3393
  location: {
3158
3394
  filePath: 'src/ctx/base.ts',
3159
- lineNumber: 527,
3395
+ lineNumber: 530,
3160
3396
  },
3161
3397
  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>',
3162
3398
  },
@@ -3175,7 +3411,7 @@ exports.manifest = {
3175
3411
  },
3176
3412
  location: {
3177
3413
  filePath: 'src/ctx/base.ts',
3178
- lineNumber: 558,
3414
+ lineNumber: 561,
3179
3415
  },
3180
3416
  type: '(modal: Modal) => Promise<unknown>',
3181
3417
  },
@@ -3186,7 +3422,7 @@ exports.manifest = {
3186
3422
  },
3187
3423
  location: {
3188
3424
  filePath: 'src/ctx/base.ts',
3189
- lineNumber: 595,
3425
+ lineNumber: 598,
3190
3426
  },
3191
3427
  type: '(options: ConfirmOptions) => Promise<unknown>',
3192
3428
  },
@@ -3205,7 +3441,7 @@ exports.manifest = {
3205
3441
  },
3206
3442
  location: {
3207
3443
  filePath: 'src/ctx/base.ts',
3208
- lineNumber: 609,
3444
+ lineNumber: 612,
3209
3445
  },
3210
3446
  type: '(path: string) => Promise<void>',
3211
3447
  },