@prismicio/editor-fields 0.4.72 → 0.4.74

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 (50) hide show
  1. package/dist/EditorConfig.d.ts +2 -10
  2. package/dist/core/APIExplorer/APIExplorer.d.ts +4 -1
  3. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +40 -12
  4. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -1
  5. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +12 -3
  6. package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
  8. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +6 -0
  9. package/dist/core/APIExplorer/hooks/useRequestRepository.d.ts +1 -1
  10. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +93 -93
  11. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  12. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +9 -9
  13. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +9 -9
  14. package/dist/core/service/customType.d.ts +12 -12
  15. package/dist/core/service/document.d.ts +201 -201
  16. package/dist/core/service/documentSearch.d.ts +47 -47
  17. package/dist/core/service/onboarding.d.ts +3 -3
  18. package/dist/core/service/repository.d.ts +6 -6
  19. package/dist/core/service/role.d.ts +64 -64
  20. package/dist/core/service/user.d.ts +8 -8
  21. package/dist/fields/ImageField/useImageField.d.ts +9 -9
  22. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +9 -9
  23. package/dist/fields/LinkField/Documents/documentsData.d.ts +16 -16
  24. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  25. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  26. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  27. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +9 -9
  28. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
  29. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
  30. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
  31. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +23 -0
  32. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
  33. package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +1 -0
  34. package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
  35. package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +5 -8
  36. package/dist/fields/RichTextField/extensions/Table/menus/PassthroughTrigger.d.ts +12 -0
  37. package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +6 -4
  38. package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +6 -4
  39. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +8 -0
  40. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
  41. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +34 -0
  42. package/dist/index.cjs.js +42 -42
  43. package/dist/index.es.js +12885 -12780
  44. package/dist/slices/utils.d.ts +1 -1
  45. package/package.json +4 -4
  46. package/dist/core/APIExplorer/hooks/useRequestRepositoryCustomTypes.d.ts +0 -6
  47. /package/dist/fields/RichTextField/extensions/Table/{plugins/tableHandles/tableHandlesPluginView.d.ts → TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts} +0 -0
  48. /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles/tableHandlesPlugin.d.ts → TableHandles/TableHandlesPlugin.d.ts} +0 -0
  49. /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/index.d.ts +0 -0
  50. /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/utils.d.ts +0 -0
@@ -22,13 +22,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
22
22
  results: {
23
23
  id: string;
24
24
  title: string;
25
- custom_type_id: string;
26
- group_lang_id: string;
27
25
  language: {
28
26
  isMaster?: boolean | undefined;
29
27
  id: string;
30
28
  label: string;
31
29
  };
30
+ custom_type_id: string;
31
+ group_lang_id: string;
32
32
  versions: (({
33
33
  status: "unclassified";
34
34
  } | {
@@ -39,19 +39,19 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
39
39
  } | {
40
40
  status: "archived";
41
41
  }) & {
42
- version_id: string;
43
42
  tags: string[];
43
+ version_id: string;
44
44
  last_modified_date: Date;
45
45
  custom_type_label: string;
46
46
  author: {
47
47
  id?: string | undefined;
48
- first_name?: string | undefined;
49
- last_name?: string | undefined;
50
48
  email?: string | undefined;
51
49
  uploadedAvatar?: string | undefined;
50
+ first_name?: string | undefined;
51
+ last_name?: string | undefined;
52
52
  };
53
- preview_image?: string | undefined;
54
53
  uid?: string | undefined;
54
+ preview_image?: string | undefined;
55
55
  preview_summary?: string | undefined;
56
56
  })[];
57
57
  }[];
@@ -72,13 +72,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
72
72
  } | {
73
73
  status: "archived";
74
74
  }) & {
75
- version_id: string;
76
75
  tags: string[];
76
+ version_id: string;
77
77
  last_modified_date: Date;
78
- preview_image?: string | undefined;
79
78
  uid?: string | undefined;
80
- custom_type_id?: string | undefined;
81
79
  summary?: string | undefined;
80
+ preview_image?: string | undefined;
81
+ custom_type_id?: string | undefined;
82
82
  author_ids?: string[] | undefined;
83
83
  highlights?: {
84
84
  uid?: string | undefined;
@@ -103,13 +103,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
103
103
  results: {
104
104
  id: string;
105
105
  title: string;
106
- custom_type_id: string;
107
- group_lang_id: string;
108
106
  language: {
109
107
  isMaster?: boolean | undefined;
110
108
  id: string;
111
109
  label: string;
112
110
  };
111
+ custom_type_id: string;
112
+ group_lang_id: string;
113
113
  versions: (({
114
114
  status: "unclassified";
115
115
  } | {
@@ -120,19 +120,19 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
120
120
  } | {
121
121
  status: "archived";
122
122
  }) & {
123
- version_id: string;
124
123
  tags: string[];
124
+ version_id: string;
125
125
  last_modified_date: Date;
126
126
  custom_type_label: string;
127
127
  author: {
128
128
  id?: string | undefined;
129
- first_name?: string | undefined;
130
- last_name?: string | undefined;
131
129
  email?: string | undefined;
132
130
  uploadedAvatar?: string | undefined;
131
+ first_name?: string | undefined;
132
+ last_name?: string | undefined;
133
133
  };
134
- preview_image?: string | undefined;
135
134
  uid?: string | undefined;
135
+ preview_image?: string | undefined;
136
136
  preview_summary?: string | undefined;
137
137
  })[];
138
138
  }[];
@@ -153,13 +153,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
153
153
  } | {
154
154
  status: "archived";
155
155
  }) & {
156
- version_id: string;
157
156
  tags: string[];
157
+ version_id: string;
158
158
  last_modified_date: Date;
159
- preview_image?: string | undefined;
160
159
  uid?: string | undefined;
161
- custom_type_id?: string | undefined;
162
160
  summary?: string | undefined;
161
+ preview_image?: string | undefined;
162
+ custom_type_id?: string | undefined;
163
163
  author_ids?: string[] | undefined;
164
164
  highlights?: {
165
165
  uid?: string | undefined;
@@ -170,13 +170,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
170
170
  results: {
171
171
  id: string;
172
172
  title: string;
173
- custom_type_id: string;
174
- group_lang_id: string;
175
173
  language: {
176
174
  isMaster?: boolean | undefined;
177
175
  id: string;
178
176
  label: string;
179
177
  };
178
+ custom_type_id: string;
179
+ group_lang_id: string;
180
180
  versions: (({
181
181
  status: "unclassified";
182
182
  } | {
@@ -187,19 +187,19 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
187
187
  } | {
188
188
  status: "archived";
189
189
  }) & {
190
- version_id: string;
191
190
  tags: string[];
191
+ version_id: string;
192
192
  last_modified_date: Date;
193
193
  custom_type_label: string;
194
194
  author: {
195
195
  id?: string | undefined;
196
- first_name?: string | undefined;
197
- last_name?: string | undefined;
198
196
  email?: string | undefined;
199
197
  uploadedAvatar?: string | undefined;
198
+ first_name?: string | undefined;
199
+ last_name?: string | undefined;
200
200
  };
201
- preview_image?: string | undefined;
202
201
  uid?: string | undefined;
202
+ preview_image?: string | undefined;
203
203
  preview_summary?: string | undefined;
204
204
  })[];
205
205
  }[];
@@ -220,13 +220,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
220
220
  } | {
221
221
  status: "archived";
222
222
  }) & {
223
- version_id: string;
224
223
  tags: string[];
224
+ version_id: string;
225
225
  last_modified_date: Date;
226
- preview_image?: string | undefined;
227
226
  uid?: string | undefined;
228
- custom_type_id?: string | undefined;
229
227
  summary?: string | undefined;
228
+ preview_image?: string | undefined;
229
+ custom_type_id?: string | undefined;
230
230
  author_ids?: string[] | undefined;
231
231
  highlights?: {
232
232
  uid?: string | undefined;
@@ -242,7 +242,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
242
242
  readonly customTypes: string[] | undefined;
243
243
  readonly tags: string[] | undefined;
244
244
  readonly authors: string[] | undefined;
245
- readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
245
+ readonly status: ("published" | "release" | "archived" | "unclassified")[] | undefined;
246
246
  readonly locale: string | undefined;
247
247
  readonly storageVersion: {
248
248
  major: number;
@@ -253,13 +253,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
253
253
  results: {
254
254
  id: string;
255
255
  title: string;
256
- custom_type_id: string;
257
- group_lang_id: string;
258
256
  language: {
259
257
  isMaster?: boolean | undefined;
260
258
  id: string;
261
259
  label: string;
262
260
  };
261
+ custom_type_id: string;
262
+ group_lang_id: string;
263
263
  versions: (({
264
264
  status: "unclassified";
265
265
  } | {
@@ -270,19 +270,19 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
270
270
  } | {
271
271
  status: "archived";
272
272
  }) & {
273
- version_id: string;
274
273
  tags: string[];
274
+ version_id: string;
275
275
  last_modified_date: Date;
276
276
  custom_type_label: string;
277
277
  author: {
278
278
  id?: string | undefined;
279
- first_name?: string | undefined;
280
- last_name?: string | undefined;
281
279
  email?: string | undefined;
282
280
  uploadedAvatar?: string | undefined;
281
+ first_name?: string | undefined;
282
+ last_name?: string | undefined;
283
283
  };
284
- preview_image?: string | undefined;
285
284
  uid?: string | undefined;
285
+ preview_image?: string | undefined;
286
286
  preview_summary?: string | undefined;
287
287
  })[];
288
288
  }[];
@@ -303,13 +303,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
303
303
  } | {
304
304
  status: "archived";
305
305
  }) & {
306
- version_id: string;
307
306
  tags: string[];
307
+ version_id: string;
308
308
  last_modified_date: Date;
309
- preview_image?: string | undefined;
310
309
  uid?: string | undefined;
311
- custom_type_id?: string | undefined;
312
310
  summary?: string | undefined;
311
+ preview_image?: string | undefined;
312
+ custom_type_id?: string | undefined;
313
313
  author_ids?: string[] | undefined;
314
314
  highlights?: {
315
315
  uid?: string | undefined;
@@ -327,7 +327,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
327
327
  readonly customTypes: string[] | undefined;
328
328
  readonly tags: string[] | undefined;
329
329
  readonly authors: string[] | undefined;
330
- readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
330
+ readonly status: ("published" | "release" | "archived" | "unclassified")[] | undefined;
331
331
  readonly locale: string | undefined;
332
332
  readonly storageVersion: {
333
333
  major: number;
@@ -337,13 +337,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
337
337
  results: {
338
338
  id: string;
339
339
  title: string;
340
- custom_type_id: string;
341
- group_lang_id: string;
342
340
  language: {
343
341
  isMaster?: boolean | undefined;
344
342
  id: string;
345
343
  label: string;
346
344
  };
345
+ custom_type_id: string;
346
+ group_lang_id: string;
347
347
  versions: (({
348
348
  status: "unclassified";
349
349
  } | {
@@ -354,19 +354,19 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
354
354
  } | {
355
355
  status: "archived";
356
356
  }) & {
357
- version_id: string;
358
357
  tags: string[];
358
+ version_id: string;
359
359
  last_modified_date: Date;
360
360
  custom_type_label: string;
361
361
  author: {
362
362
  id?: string | undefined;
363
- first_name?: string | undefined;
364
- last_name?: string | undefined;
365
363
  email?: string | undefined;
366
364
  uploadedAvatar?: string | undefined;
365
+ first_name?: string | undefined;
366
+ last_name?: string | undefined;
367
367
  };
368
- preview_image?: string | undefined;
369
368
  uid?: string | undefined;
369
+ preview_image?: string | undefined;
370
370
  preview_summary?: string | undefined;
371
371
  })[];
372
372
  }[];
@@ -387,13 +387,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
387
387
  } | {
388
388
  status: "archived";
389
389
  }) & {
390
- version_id: string;
391
390
  tags: string[];
391
+ version_id: string;
392
392
  last_modified_date: Date;
393
- preview_image?: string | undefined;
394
393
  uid?: string | undefined;
395
- custom_type_id?: string | undefined;
396
394
  summary?: string | undefined;
395
+ preview_image?: string | undefined;
396
+ custom_type_id?: string | undefined;
397
397
  author_ids?: string[] | undefined;
398
398
  highlights?: {
399
399
  uid?: string | undefined;
@@ -15,10 +15,10 @@ export declare const onboardingStateSchema: z.ZodObject<{
15
15
  completedSteps: z.ZodArray<z.ZodString, "many">;
16
16
  isDismissed: z.ZodBoolean;
17
17
  context: z.ZodObject<{
18
- framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
18
+ framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>;
19
19
  starterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- framework: "next" | "nuxt" | "sveltekit" | "other";
21
+ framework: "other" | "next" | "nuxt" | "sveltekit";
22
22
  starterId?: string | null | undefined;
23
23
  }, {
24
24
  framework?: unknown;
@@ -28,7 +28,7 @@ export declare const onboardingStateSchema: z.ZodObject<{
28
28
  completedSteps: string[];
29
29
  isDismissed: boolean;
30
30
  context: {
31
- framework: "next" | "nuxt" | "sveltekit" | "other";
31
+ framework: "other" | "next" | "nuxt" | "sveltekit";
32
32
  starterId?: string | null | undefined;
33
33
  };
34
34
  }, {
@@ -28,7 +28,7 @@ declare const repositoryQuotas: z.ZodObject<{
28
28
  slicemachineEnabled: boolean;
29
29
  }>;
30
30
  export type RepositoryQuotas = z.TypeOf<typeof repositoryQuotas>;
31
- export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
31
+ export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>;
32
32
  export type RepositoryFramework = z.TypeOf<typeof repositoryFramework>;
33
33
  declare const repositorySchema: z.ZodEffects<z.ZodObject<{
34
34
  simulator_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -87,7 +87,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
87
87
  }, {
88
88
  slicemachineEnabled: boolean;
89
89
  }>>>;
90
- framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
90
+ framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>>>;
91
91
  starterId: z.ZodOptional<z.ZodString>;
92
92
  storageVersion: z.ZodObject<{
93
93
  major: z.ZodNumber;
@@ -116,7 +116,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
116
116
  quotas: {
117
117
  slicemachineEnabled: boolean;
118
118
  };
119
- framework: "next" | "nuxt" | "sveltekit" | "other";
119
+ framework: "other" | "next" | "nuxt" | "sveltekit";
120
120
  storageVersion: {
121
121
  major: number;
122
122
  minor: number;
@@ -149,7 +149,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
149
149
  framework?: unknown;
150
150
  starterId?: string | undefined;
151
151
  }>, {
152
- framework: "next" | "nuxt" | "sveltekit" | "other";
152
+ framework: "other" | "next" | "nuxt" | "sveltekit";
153
153
  simulatorUrl: string | undefined;
154
154
  isSupportedFramework: boolean;
155
155
  authors: {
@@ -243,7 +243,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
243
243
  completedSteps: string[];
244
244
  isDismissed: boolean;
245
245
  }>;
246
- framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
246
+ framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>>>;
247
247
  quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
248
248
  maxNbEnvironments: z.ZodNumber;
249
249
  integrationFieldsEnabled: z.ZodBoolean;
@@ -301,7 +301,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
301
301
  sliceMachineEnabled: boolean;
302
302
  customRolesEnabled: boolean;
303
303
  };
304
- framework: "next" | "nuxt" | "sveltekit" | "other";
304
+ framework: "other" | "next" | "nuxt" | "sveltekit";
305
305
  storageVersion: {
306
306
  major: number;
307
307
  minor: number;