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

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.
@@ -62,8 +62,19 @@ type ProjectProperties = {
62
62
  /** Preferred locale */
63
63
  locale: string;
64
64
  };
65
- /** An object containing the theme colors for the current DatoCMS project */
65
+ /**
66
+ * An object containing the theme colors for the current DatoCMS project
67
+ *
68
+ * @deprecated Use `semanticColorTokensTheme` instead. This property is kept
69
+ * for backward compatibility with third-party plugins.
70
+ */
66
71
  theme: Theme;
72
+ /**
73
+ * Semantic color tokens for the current DatoCMS project, pre-computed by
74
+ * the host. Only available on DatoCMS hosts that support the new token
75
+ * system.
76
+ */
77
+ semanticColorTokensTheme: SemanticColorTokensTheme;
67
78
  };
68
79
  /**
69
80
  * These properties provide access to "entity repos", that is, the collection of
@@ -98,7 +109,12 @@ type EntityReposProperties = {
98
109
  */
99
110
  ssoUsers: Partial<Record<string, SsoUser>>;
100
111
  };
101
- /** An object containing the theme colors for the current DatoCMS project */
112
+ /**
113
+ * An object containing the theme colors for the current DatoCMS project
114
+ *
115
+ * @deprecated Use `SemanticColorTokensTheme` instead. This type is kept for
116
+ * backward compatibility with third-party plugins.
117
+ */
102
118
  export type Theme = {
103
119
  primaryColor: string;
104
120
  accentColor: string;
@@ -106,6 +122,114 @@ export type Theme = {
106
122
  lightColor: string;
107
123
  darkColor: string;
108
124
  };
125
+ /**
126
+ * Known semantic color tokens provided by the DatoCMS host.
127
+ * All properties are optional — the host may not send all of them.
128
+ *
129
+ * camelCase keys are converted to kebab-case CSS custom properties via
130
+ * `camelToDash`. For example, `colorRaisedSurface` becomes
131
+ * `--color-raised-surface`.
132
+ */
133
+ type KnownSemanticColorTokens = {
134
+ colorSurface?: string;
135
+ colorSurfaceHover?: string;
136
+ colorSurfaceMuted?: string;
137
+ colorInk?: string;
138
+ colorInkSubtle?: string;
139
+ colorInkHover?: string;
140
+ colorInkMuted?: string;
141
+ colorInkPlaceholder?: string;
142
+ colorInkPrimary?: string;
143
+ colorInkAccent?: string;
144
+ colorInkDisabled?: string;
145
+ colorBorder?: string;
146
+ colorBorderHover?: string;
147
+ colorRaisedSurface?: string;
148
+ colorRaisedSurfaceHover?: string;
149
+ colorRaisedSurfaceActive?: string;
150
+ colorPrimarySurface?: string;
151
+ colorPrimarySurfaceHover?: string;
152
+ colorPrimarySurfaceActive?: string;
153
+ colorPrimarySurfaceMuted?: string;
154
+ colorPrimaryInk?: string;
155
+ colorPrimaryBorder?: string;
156
+ colorTintedSurface?: string;
157
+ colorTintedSurfaceHover?: string;
158
+ colorTintedSurfaceActive?: string;
159
+ colorTintedInk?: string;
160
+ colorAccentSurface?: string;
161
+ colorAccentInk?: string;
162
+ colorSelectedSurface?: string;
163
+ colorSelectedInk?: string;
164
+ colorSelectedBorder?: string;
165
+ colorDisabledSurface?: string;
166
+ colorDisabledInk?: string;
167
+ colorDangerSurface?: string;
168
+ colorDangerInk?: string;
169
+ colorEnterpriseSurface?: string;
170
+ colorFocusBorder?: string;
171
+ colorFocusOutline?: string;
172
+ colorFeedbackFailInk?: string;
173
+ colorFeedbackFailBorder?: string;
174
+ colorFeedbackFailOutline?: string;
175
+ colorFeedbackWarningInk?: string;
176
+ colorFeedbackWarningSurface?: string;
177
+ colorFeedbackSuccessInk?: string;
178
+ colorFeedbackWarningBorder?: string;
179
+ colorFeedbackSuccessBorder?: string;
180
+ colorHighlightSurface?: string;
181
+ colorDiffAddedSurface?: string;
182
+ colorDiffRemovedSurface?: string;
183
+ colorDiffChangedSurface?: string;
184
+ colorDiffAddedSurfaceSubtle?: string;
185
+ colorDiffRemovedSurfaceSubtle?: string;
186
+ colorDiffChangedSurfaceSubtle?: string;
187
+ colorDiffAddedOutlineSubtle?: string;
188
+ colorDiffRemovedOutlineSubtle?: string;
189
+ colorDiffChangedOutlineSubtle?: string;
190
+ colorDiffChangedBorder?: string;
191
+ colorDiffChangedBorderNegative?: string;
192
+ colorStatusDraftInk?: string;
193
+ colorStatusOutdatedInk?: string;
194
+ colorStatusPublishedInk?: string;
195
+ colorBackdropSurface?: string;
196
+ colorBackdropInk?: string;
197
+ colorOverlaySurface?: string;
198
+ colorOverlaySurfaceSubtle?: string;
199
+ colorOverlayInk?: string;
200
+ colorStackedSurfaceBase?: string;
201
+ colorStackedSurface?: string;
202
+ colorStackedSurfaceRaised?: string;
203
+ colorStackedInk?: string;
204
+ colorStackedInkSubtle?: string;
205
+ colorStackedBorder?: string;
206
+ colorStackedSurfaceHover?: string;
207
+ colorStackedSurfaceTranslucent?: string;
208
+ colorStackedSurfaceButton?: string;
209
+ colorStackedSurfaceButtonActive?: string;
210
+ colorProgressTrack?: string;
211
+ colorProgressFill?: string;
212
+ colorProgressFillHover?: string;
213
+ colorTooltipSurface?: string;
214
+ colorTooltipSurfaceHover?: string;
215
+ colorTooltipInk?: string;
216
+ colorTooltipInkSubtle?: string;
217
+ colorCodeSurface?: string;
218
+ colorCodeInk?: string;
219
+ colorShadowSubtle?: string;
220
+ colorShadow?: string;
221
+ colorShadowStrong?: string;
222
+ colorScrollbar?: string;
223
+ shadowElevated?: string;
224
+ shadowFloat?: string;
225
+ shadowAmbient?: string;
226
+ };
227
+ /**
228
+ * Semantic color tokens for the current DatoCMS project, pre-computed by the
229
+ * host. Known tokens get autocomplete; unknown tokens are accepted via the
230
+ * index signature for forward compatibility.
231
+ */
232
+ export type SemanticColorTokensTheme = KnownSemanticColorTokens & Record<string, string>;
109
233
  export type BaseMethods = LoadDataMethods & UpdatePluginParametersMethods & ToastMethods & ItemDialogMethods & UploadDialogMethods & CustomDialogMethods & NavigateMethods;
110
234
  /**
111
235
  * These methods can be used to asyncronously load additional information your
@@ -1,5 +1,5 @@
1
1
  import { Ctx } from '../ctx/base';
2
- import { Icon } from '../icon';
2
+ import { IconWithEmoji } from '../icon';
3
3
  export type ContentAreaSidebarItemsHook = {
4
4
  /**
5
5
  * Use this function to declare new items in the content area sidebar
@@ -19,11 +19,11 @@ export type ContentAreaSidebarItem = {
19
19
  label: string;
20
20
  /**
21
21
  * Icon to be shown alongside the label. Can be a FontAwesome icon name (ie.
22
- * `"address-book"`) or a custom SVG definition. To maintain visual
22
+ * `"address-book"`), a custom SVG definition, or an emoji. To maintain visual
23
23
  * consistency with the rest of the interface, try to use FontAwesome icons
24
24
  * whenever possible.
25
25
  */
26
- icon: Icon;
26
+ icon: IconWithEmoji;
27
27
  /** ID of the page linked to the item */
28
28
  pointsTo: {
29
29
  pageId: string;
@@ -1,9 +1,9 @@
1
1
  import { isArray, isNullish, isNumber, isPlacement, isRecord, isString, } from '../guardUtils.js';
2
- import { isIcon } from '../icon';
2
+ import { isIconWithEmoji } from '../icon';
3
3
  export function isContentAreaSidebarItem(value) {
4
4
  return (isRecord(value) &&
5
5
  isString(value.label) &&
6
- isIcon(value.icon) &&
6
+ isIconWithEmoji(value.icon) &&
7
7
  isRecord(value.pointsTo) &&
8
8
  isString(value.pointsTo.pageId) &&
9
9
  (isNullish(value.placement) || isPlacement(value.placement)) &&
@@ -1 +1 @@
1
- {"version":3,"file":"contentAreaSidebarItems.js","sourceRoot":"","sources":["../../../src/hooks/contentAreaSidebarItems.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAQ,MAAM,EAAE,MAAM,SAAS,CAAC;AAkDvC,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,CACL,QAAQ,CAAC,KAAK,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;QACrB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QAClB,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC/B,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC5D,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yCAAyC,CACvD,KAAc;IAEd,OAAO,OAAO,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"contentAreaSidebarItems.js","sourceRoot":"","sources":["../../../src/hooks/contentAreaSidebarItems.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAiB,eAAe,EAAE,MAAM,SAAS,CAAC;AAkDzD,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,CACL,QAAQ,CAAC,KAAK,CAAC;QACf,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;QACrB,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3B,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxB,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC/B,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC5D,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yCAAyC,CACvD,KAAc;IAEd,OAAO,OAAO,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC;AAClD,CAAC"}
@@ -1,4 +1,4 @@
1
- export type Icon = AwesomeFontIconIdentifier | SvgDefinition | EmojiDefinition;
1
+ export type Icon = AwesomeFontIconIdentifier | SvgDefinition;
2
2
  export declare function isIcon(value: unknown): value is Icon;
3
3
  /**
4
4
  * Defines a custom SVG icon for use in DatoCMS plugins.
@@ -56,6 +56,12 @@ export type EmojiDefinition = {
56
56
  emoji: string;
57
57
  };
58
58
  export declare function isEmojiDefinition(value: unknown): value is EmojiDefinition;
59
+ /**
60
+ * Extended icon type that includes emoji support in addition to Font Awesome and SVG icons.
61
+ * This type is specifically used for content area sidebar items where emoji icons are supported.
62
+ */
63
+ export type IconWithEmoji = Icon | EmojiDefinition;
64
+ export declare function isIconWithEmoji(value: unknown): value is IconWithEmoji;
59
65
  /**
60
66
  * Font Awesome icon identifier for use in DatoCMS plugins.
61
67
  *
package/dist/esm/icon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isEmoji, isRecord, isString } from './guardUtils.js';
2
2
  export function isIcon(value) {
3
- return isString(value) || isSvgDefinition(value) || isEmojiDefinition(value);
3
+ return isString(value) || isSvgDefinition(value);
4
4
  }
5
5
  export function isSvgDefinition(value) {
6
6
  return (isRecord(value) &&
@@ -11,4 +11,7 @@ export function isSvgDefinition(value) {
11
11
  export function isEmojiDefinition(value) {
12
12
  return isRecord(value) && value.type === 'emoji' && isEmoji(value.emoji);
13
13
  }
14
+ export function isIconWithEmoji(value) {
15
+ return isIcon(value) || isEmojiDefinition(value);
16
+ }
14
17
  //# sourceMappingURL=icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI9D,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC/E,CAAC;AAwCD,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,CACL,QAAQ,CAAC,KAAK,CAAC;QACf,KAAK,CAAC,IAAI,KAAK,KAAK;QACpB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CACxB,CAAC;AACJ,CAAC;AAuBD,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC"}
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI9D,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AACnD,CAAC;AAwCD,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,CACL,QAAQ,CAAC,KAAK,CAAC;QACf,KAAK,CAAC,IAAI,KAAK,KAAK;QACpB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CACxB,CAAC;AACJ,CAAC;AAuBD,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC;AAQD,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACnD,CAAC"}
@@ -3110,13 +3110,24 @@ export var manifest = {
3110
3110
  theme: {
3111
3111
  comment: {
3112
3112
  markdownText: 'An object containing the theme colors for the current DatoCMS project.',
3113
+ deprecatedMarkdownText: 'Use `semanticColorTokensTheme` instead. This property is kept\nfor backward compatibility with third-party plugins.',
3113
3114
  },
3114
3115
  location: {
3115
3116
  filePath: 'src/ctx/base.ts',
3116
- lineNumber: 87,
3117
+ lineNumber: 92,
3117
3118
  },
3118
3119
  type: 'Theme',
3119
3120
  },
3121
+ semanticColorTokensTheme: {
3122
+ comment: {
3123
+ markdownText: 'Semantic color tokens for the current DatoCMS project, pre-computed by\nthe host. Only available on DatoCMS hosts that support the new token\nsystem.',
3124
+ },
3125
+ location: {
3126
+ filePath: 'src/ctx/base.ts',
3127
+ lineNumber: 99,
3128
+ },
3129
+ type: 'SemanticColorTokensTheme',
3130
+ },
3120
3131
  },
3121
3132
  },
3122
3133
  {
@@ -3131,7 +3142,7 @@ export var manifest = {
3131
3142
  },
3132
3143
  location: {
3133
3144
  filePath: 'src/ctx/base.ts',
3134
- lineNumber: 97,
3145
+ lineNumber: 109,
3135
3146
  },
3136
3147
  type: 'Partial<Record<string, ItemType>>',
3137
3148
  },
@@ -3141,7 +3152,7 @@ export var manifest = {
3141
3152
  },
3142
3153
  location: {
3143
3154
  filePath: 'src/ctx/base.ts',
3144
- lineNumber: 104,
3155
+ lineNumber: 116,
3145
3156
  },
3146
3157
  type: 'Partial<Record<string, Field>>',
3147
3158
  },
@@ -3151,7 +3162,7 @@ export var manifest = {
3151
3162
  },
3152
3163
  location: {
3153
3164
  filePath: 'src/ctx/base.ts',
3154
- lineNumber: 111,
3165
+ lineNumber: 123,
3155
3166
  },
3156
3167
  type: 'Partial<Record<string, Fieldset>>',
3157
3168
  },
@@ -3161,7 +3172,7 @@ export var manifest = {
3161
3172
  },
3162
3173
  location: {
3163
3174
  filePath: 'src/ctx/base.ts',
3164
- lineNumber: 118,
3175
+ lineNumber: 130,
3165
3176
  },
3166
3177
  type: 'Partial<Record<string, User>>',
3167
3178
  },
@@ -3171,7 +3182,7 @@ export var manifest = {
3171
3182
  },
3172
3183
  location: {
3173
3184
  filePath: 'src/ctx/base.ts',
3174
- lineNumber: 125,
3185
+ lineNumber: 137,
3175
3186
  },
3176
3187
  type: 'Partial<Record<string, SsoUser>>',
3177
3188
  },
@@ -3192,7 +3203,7 @@ export var manifest = {
3192
3203
  },
3193
3204
  location: {
3194
3205
  filePath: 'src/ctx/base.ts',
3195
- lineNumber: 168,
3206
+ lineNumber: 341,
3196
3207
  },
3197
3208
  type: '(itemTypeId: string) => Promise<Field[]>',
3198
3209
  },
@@ -3203,7 +3214,7 @@ export var manifest = {
3203
3214
  },
3204
3215
  location: {
3205
3216
  filePath: 'src/ctx/base.ts',
3206
- lineNumber: 187,
3217
+ lineNumber: 360,
3207
3218
  },
3208
3219
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3209
3220
  },
@@ -3214,7 +3225,7 @@ export var manifest = {
3214
3225
  },
3215
3226
  location: {
3216
3227
  filePath: 'src/ctx/base.ts',
3217
- lineNumber: 204,
3228
+ lineNumber: 377,
3218
3229
  },
3219
3230
  type: '() => Promise<Field[]>',
3220
3231
  },
@@ -3225,7 +3236,7 @@ export var manifest = {
3225
3236
  },
3226
3237
  location: {
3227
3238
  filePath: 'src/ctx/base.ts',
3228
- lineNumber: 217,
3239
+ lineNumber: 390,
3229
3240
  },
3230
3241
  type: '() => Promise<User[]>',
3231
3242
  },
@@ -3236,7 +3247,7 @@ export var manifest = {
3236
3247
  },
3237
3248
  location: {
3238
3249
  filePath: 'src/ctx/base.ts',
3239
- lineNumber: 230,
3250
+ lineNumber: 403,
3240
3251
  },
3241
3252
  type: '() => Promise<SsoUser[]>',
3242
3253
  },
@@ -3255,7 +3266,7 @@ export var manifest = {
3255
3266
  },
3256
3267
  location: {
3257
3268
  filePath: 'src/ctx/base.ts',
3258
- lineNumber: 252,
3269
+ lineNumber: 425,
3259
3270
  },
3260
3271
  type: '(params: Record<string, unknown>) => Promise<void>',
3261
3272
  },
@@ -3266,7 +3277,7 @@ export var manifest = {
3266
3277
  },
3267
3278
  location: {
3268
3279
  filePath: 'src/ctx/base.ts',
3269
- lineNumber: 303,
3280
+ lineNumber: 476,
3270
3281
  },
3271
3282
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3272
3283
  },
@@ -3285,7 +3296,7 @@ export var manifest = {
3285
3296
  },
3286
3297
  location: {
3287
3298
  filePath: 'src/ctx/base.ts',
3288
- lineNumber: 408,
3299
+ lineNumber: 581,
3289
3300
  },
3290
3301
  type: '(message: string) => Promise<void>',
3291
3302
  },
@@ -3296,7 +3307,7 @@ export var manifest = {
3296
3307
  },
3297
3308
  location: {
3298
3309
  filePath: 'src/ctx/base.ts',
3299
- lineNumber: 423,
3310
+ lineNumber: 596,
3300
3311
  },
3301
3312
  type: '(message: string) => Promise<void>',
3302
3313
  },
@@ -3307,7 +3318,7 @@ export var manifest = {
3307
3318
  },
3308
3319
  location: {
3309
3320
  filePath: 'src/ctx/base.ts',
3310
- lineNumber: 447,
3321
+ lineNumber: 620,
3311
3322
  },
3312
3323
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3313
3324
  },
@@ -3326,7 +3337,7 @@ export var manifest = {
3326
3337
  },
3327
3338
  location: {
3328
3339
  filePath: 'src/ctx/base.ts',
3329
- lineNumber: 333,
3340
+ lineNumber: 506,
3330
3341
  },
3331
3342
  type: '(itemTypeId: string) => Promise<Item | null>',
3332
3343
  },
@@ -3337,7 +3348,7 @@ export var manifest = {
3337
3348
  },
3338
3349
  location: {
3339
3350
  filePath: 'src/ctx/base.ts',
3340
- lineNumber: 354,
3351
+ lineNumber: 527,
3341
3352
  },
3342
3353
  type: '{\n (\n itemTypeId: string,\n options: { multiple: true; initialLocationQuery?: ItemListLocationQuery },\n ): Promise<Item[] | null>;\n (\n itemTypeId: string,\n options?: {\n multiple: false;\n initialLocationQuery?: ItemListLocationQuery;\n },\n ): Promise<Item | null>;\n }',
3343
3354
  },
@@ -3348,7 +3359,7 @@ export var manifest = {
3348
3359
  },
3349
3360
  location: {
3350
3361
  filePath: 'src/ctx/base.ts',
3351
- lineNumber: 386,
3362
+ lineNumber: 559,
3352
3363
  },
3353
3364
  type: '(itemId: string) => Promise<Item | null>',
3354
3365
  },
@@ -3367,7 +3378,7 @@ export var manifest = {
3367
3378
  },
3368
3379
  location: {
3369
3380
  filePath: 'src/ctx/base.ts',
3370
- lineNumber: 474,
3381
+ lineNumber: 647,
3371
3382
  },
3372
3383
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3373
3384
  },
@@ -3378,7 +3389,7 @@ export var manifest = {
3378
3389
  },
3379
3390
  location: {
3380
3391
  filePath: 'src/ctx/base.ts',
3381
- lineNumber: 502,
3392
+ lineNumber: 675,
3382
3393
  },
3383
3394
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3384
3395
  },
@@ -3389,7 +3400,7 @@ export var manifest = {
3389
3400
  },
3390
3401
  location: {
3391
3402
  filePath: 'src/ctx/base.ts',
3392
- lineNumber: 530,
3403
+ lineNumber: 703,
3393
3404
  },
3394
3405
  type: '(\n /** The "single asset" field structure */\n fileFieldValue: FileFieldValue,\n /** Shows metadata information for a specific locale */\n locale?: string,\n ) => Promise<FileFieldValue | null>',
3395
3406
  },
@@ -3408,7 +3419,7 @@ export var manifest = {
3408
3419
  },
3409
3420
  location: {
3410
3421
  filePath: 'src/ctx/base.ts',
3411
- lineNumber: 561,
3422
+ lineNumber: 734,
3412
3423
  },
3413
3424
  type: '(modal: Modal) => Promise<unknown>',
3414
3425
  },
@@ -3419,7 +3430,7 @@ export var manifest = {
3419
3430
  },
3420
3431
  location: {
3421
3432
  filePath: 'src/ctx/base.ts',
3422
- lineNumber: 598,
3433
+ lineNumber: 771,
3423
3434
  },
3424
3435
  type: '(options: ConfirmOptions) => Promise<unknown>',
3425
3436
  },
@@ -3438,7 +3449,7 @@ export var manifest = {
3438
3449
  },
3439
3450
  location: {
3440
3451
  filePath: 'src/ctx/base.ts',
3441
- lineNumber: 612,
3452
+ lineNumber: 785,
3442
3453
  },
3443
3454
  type: '(path: string) => Promise<void>',
3444
3455
  },