@prismicio/editor-fields 0.4.64-alpha.fix-simulator-issue.0 → 0.4.64-alpha.fix-simulator-issue.1

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 (27) hide show
  1. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +53 -53
  2. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  3. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +5 -5
  4. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
  5. package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
  6. package/dist/core/service/customType.d.ts +21 -21
  7. package/dist/core/service/document.d.ts +112 -112
  8. package/dist/core/service/documentSearch.d.ts +17 -17
  9. package/dist/core/service/onboarding.d.ts +3 -3
  10. package/dist/core/service/repository.d.ts +36 -36
  11. package/dist/core/service/role.d.ts +10 -10
  12. package/dist/fields/ImageField/useImageField.d.ts +5 -5
  13. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +5 -5
  14. package/dist/fields/LinkField/Documents/documentsData.d.ts +6 -6
  15. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  16. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  17. package/dist/fields/RichTextField/RichTextField.d.ts +5 -0
  18. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  19. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +5 -5
  20. package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +1 -1
  21. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts +2 -2
  22. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +2 -4
  23. package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +3 -1
  24. package/dist/fields/RichTextField/extensions/Table/utils.d.ts +2 -53
  25. package/dist/index.cjs.js +40 -40
  26. package/dist/index.es.js +17348 -17086
  27. package/package.json +4 -4
@@ -46,12 +46,12 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
46
46
  author: {
47
47
  id?: string | undefined;
48
48
  email?: string | undefined;
49
- uploadedAvatar?: string | undefined;
50
49
  first_name?: string | undefined;
51
50
  last_name?: string | undefined;
51
+ uploadedAvatar?: string | undefined;
52
52
  };
53
- uid?: string | undefined;
54
53
  preview_image?: string | undefined;
54
+ uid?: string | undefined;
55
55
  preview_summary?: string | undefined;
56
56
  })[];
57
57
  }[];
@@ -76,8 +76,8 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
76
76
  tags: string[];
77
77
  last_modified_date: Date;
78
78
  summary?: string | undefined;
79
- uid?: string | undefined;
80
79
  preview_image?: string | undefined;
80
+ uid?: string | undefined;
81
81
  custom_type_id?: string | undefined;
82
82
  author_ids?: string[] | undefined;
83
83
  highlights?: {
@@ -127,12 +127,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
127
127
  author: {
128
128
  id?: string | undefined;
129
129
  email?: string | undefined;
130
- uploadedAvatar?: string | undefined;
131
130
  first_name?: string | undefined;
132
131
  last_name?: string | undefined;
132
+ uploadedAvatar?: string | undefined;
133
133
  };
134
- uid?: string | undefined;
135
134
  preview_image?: string | undefined;
135
+ uid?: string | undefined;
136
136
  preview_summary?: string | undefined;
137
137
  })[];
138
138
  }[];
@@ -157,8 +157,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
157
157
  tags: string[];
158
158
  last_modified_date: Date;
159
159
  summary?: string | undefined;
160
- uid?: string | undefined;
161
160
  preview_image?: string | undefined;
161
+ uid?: string | undefined;
162
162
  custom_type_id?: string | undefined;
163
163
  author_ids?: string[] | undefined;
164
164
  highlights?: {
@@ -194,12 +194,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
194
194
  author: {
195
195
  id?: string | undefined;
196
196
  email?: string | undefined;
197
- uploadedAvatar?: string | undefined;
198
197
  first_name?: string | undefined;
199
198
  last_name?: string | undefined;
199
+ uploadedAvatar?: string | undefined;
200
200
  };
201
- uid?: string | undefined;
202
201
  preview_image?: string | undefined;
202
+ uid?: string | undefined;
203
203
  preview_summary?: string | undefined;
204
204
  })[];
205
205
  }[];
@@ -224,8 +224,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
224
224
  tags: string[];
225
225
  last_modified_date: Date;
226
226
  summary?: string | undefined;
227
- uid?: string | undefined;
228
227
  preview_image?: string | undefined;
228
+ uid?: string | undefined;
229
229
  custom_type_id?: string | undefined;
230
230
  author_ids?: string[] | undefined;
231
231
  highlights?: {
@@ -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: ("published" | "release" | "archived" | "unclassified")[] | undefined;
245
+ readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
246
246
  readonly locale: string | undefined;
247
247
  readonly storageVersion: {
248
248
  major: number;
@@ -277,12 +277,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
277
277
  author: {
278
278
  id?: string | undefined;
279
279
  email?: string | undefined;
280
- uploadedAvatar?: string | undefined;
281
280
  first_name?: string | undefined;
282
281
  last_name?: string | undefined;
282
+ uploadedAvatar?: string | undefined;
283
283
  };
284
- uid?: string | undefined;
285
284
  preview_image?: string | undefined;
285
+ uid?: string | undefined;
286
286
  preview_summary?: string | undefined;
287
287
  })[];
288
288
  }[];
@@ -307,8 +307,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
307
307
  tags: string[];
308
308
  last_modified_date: Date;
309
309
  summary?: string | undefined;
310
- uid?: string | undefined;
311
310
  preview_image?: string | undefined;
311
+ uid?: string | undefined;
312
312
  custom_type_id?: string | undefined;
313
313
  author_ids?: string[] | undefined;
314
314
  highlights?: {
@@ -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: ("published" | "release" | "archived" | "unclassified")[] | undefined;
330
+ readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
331
331
  readonly locale: string | undefined;
332
332
  readonly storageVersion: {
333
333
  major: number;
@@ -361,12 +361,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
361
361
  author: {
362
362
  id?: string | undefined;
363
363
  email?: string | undefined;
364
- uploadedAvatar?: string | undefined;
365
364
  first_name?: string | undefined;
366
365
  last_name?: string | undefined;
366
+ uploadedAvatar?: string | undefined;
367
367
  };
368
- uid?: string | undefined;
369
368
  preview_image?: string | undefined;
369
+ uid?: string | undefined;
370
370
  preview_summary?: string | undefined;
371
371
  })[];
372
372
  }[];
@@ -391,8 +391,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
391
391
  tags: string[];
392
392
  last_modified_date: Date;
393
393
  summary?: string | undefined;
394
- uid?: string | undefined;
395
394
  preview_image?: string | undefined;
395
+ uid?: string | undefined;
396
396
  custom_type_id?: string | undefined;
397
397
  author_ids?: string[] | undefined;
398
398
  highlights?: {
@@ -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
  }, {
@@ -9,15 +9,15 @@ declare const repositoryAuthor: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  email: string;
12
+ uploadedAvatar?: string | undefined;
12
13
  firstname?: string | undefined;
13
14
  lastname?: string | undefined;
14
- uploadedAvatar?: string | undefined;
15
15
  }, {
16
16
  id: string;
17
17
  email: string;
18
+ uploadedAvatar?: string | undefined;
18
19
  firstname?: string | undefined;
19
20
  lastname?: string | undefined;
20
- uploadedAvatar?: string | undefined;
21
21
  }>;
22
22
  export type RepositoryAuthor = z.TypeOf<typeof repositoryAuthor>;
23
23
  declare const repositoryQuotas: z.ZodObject<{
@@ -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>>;
@@ -37,28 +37,28 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
37
37
  name: z.ZodString;
38
38
  is_master: z.ZodOptional<z.ZodBoolean>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- id: string;
41
40
  name: string;
41
+ id: string;
42
42
  is_master?: boolean | undefined;
43
43
  }, {
44
- id: string;
45
44
  name: string;
45
+ id: string;
46
46
  is_master?: boolean | undefined;
47
47
  }>, {
48
48
  isMaster?: boolean | undefined;
49
49
  id: string;
50
50
  label: string;
51
51
  }, {
52
- id: string;
53
52
  name: string;
53
+ id: string;
54
54
  is_master?: boolean | undefined;
55
55
  }>, "many">, {
56
56
  isMaster?: boolean | undefined;
57
57
  id: string;
58
58
  label: string;
59
59
  }[], {
60
- id: string;
61
60
  name: string;
61
+ id: string;
62
62
  is_master?: boolean | undefined;
63
63
  }[]>;
64
64
  authors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -70,15 +70,15 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  id: string;
72
72
  email: string;
73
+ uploadedAvatar?: string | undefined;
73
74
  firstname?: string | undefined;
74
75
  lastname?: string | undefined;
75
- uploadedAvatar?: string | undefined;
76
76
  }, {
77
77
  id: string;
78
78
  email: string;
79
+ uploadedAvatar?: string | undefined;
79
80
  firstname?: string | undefined;
80
81
  lastname?: string | undefined;
81
- uploadedAvatar?: string | undefined;
82
82
  }>, "many">>>;
83
83
  quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
84
84
  slicemachineEnabled: z.ZodBoolean;
@@ -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;
@@ -101,22 +101,22 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
101
101
  }>;
102
102
  uploadedAvatar: z.ZodOptional<z.ZodString>;
103
103
  }, "strip", z.ZodTypeAny, {
104
- languages: {
105
- isMaster?: boolean | undefined;
106
- id: string;
107
- label: string;
108
- }[];
109
104
  authors: {
110
105
  id: string;
111
106
  email: string;
107
+ uploadedAvatar?: string | undefined;
112
108
  firstname?: string | undefined;
113
109
  lastname?: string | undefined;
114
- uploadedAvatar?: string | undefined;
110
+ }[];
111
+ languages: {
112
+ isMaster?: boolean | undefined;
113
+ id: string;
114
+ label: string;
115
115
  }[];
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;
@@ -126,8 +126,8 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
126
126
  starterId?: string | undefined;
127
127
  }, {
128
128
  languages: {
129
- id: string;
130
129
  name: string;
130
+ id: string;
131
131
  is_master?: boolean | undefined;
132
132
  }[];
133
133
  storageVersion: {
@@ -135,34 +135,34 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
135
135
  minor: number;
136
136
  };
137
137
  uploadedAvatar?: string | undefined;
138
- simulator_url?: string | null | undefined;
139
138
  authors?: {
140
139
  id: string;
141
140
  email: string;
141
+ uploadedAvatar?: string | undefined;
142
142
  firstname?: string | undefined;
143
143
  lastname?: string | undefined;
144
- uploadedAvatar?: string | undefined;
145
144
  }[] | undefined;
145
+ simulator_url?: string | null | undefined;
146
146
  quotas?: {
147
147
  slicemachineEnabled: boolean;
148
148
  } | undefined;
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
- languages: {
156
- isMaster?: boolean | undefined;
157
- id: string;
158
- label: string;
159
- }[];
160
155
  authors: {
161
156
  id: string;
162
157
  email: string;
158
+ uploadedAvatar?: string | undefined;
163
159
  firstname?: string | undefined;
164
160
  lastname?: string | undefined;
165
- uploadedAvatar?: string | undefined;
161
+ }[];
162
+ languages: {
163
+ isMaster?: boolean | undefined;
164
+ id: string;
165
+ label: string;
166
166
  }[];
167
167
  quotas: {
168
168
  slicemachineEnabled: boolean;
@@ -175,8 +175,8 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
175
175
  starterId?: string | undefined;
176
176
  }, {
177
177
  languages: {
178
- id: string;
179
178
  name: string;
179
+ id: string;
180
180
  is_master?: boolean | undefined;
181
181
  }[];
182
182
  storageVersion: {
@@ -184,14 +184,14 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
184
184
  minor: number;
185
185
  };
186
186
  uploadedAvatar?: string | undefined;
187
- simulator_url?: string | null | undefined;
188
187
  authors?: {
189
188
  id: string;
190
189
  email: string;
190
+ uploadedAvatar?: string | undefined;
191
191
  firstname?: string | undefined;
192
192
  lastname?: string | undefined;
193
- uploadedAvatar?: string | undefined;
194
193
  }[] | undefined;
194
+ simulator_url?: string | null | undefined;
195
195
  quotas?: {
196
196
  slicemachineEnabled: boolean;
197
197
  } | undefined;
@@ -240,7 +240,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
240
240
  completedSteps: string[];
241
241
  isDismissed: boolean;
242
242
  }>;
243
- framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
243
+ framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>>>;
244
244
  quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
245
245
  maxNbEnvironments: z.ZodNumber;
246
246
  integrationFieldsEnabled: z.ZodBoolean;
@@ -276,24 +276,24 @@ export declare const repositorySchemaV2: z.ZodObject<{
276
276
  }, "strip", z.ZodTypeAny, {
277
277
  id: string;
278
278
  email: string;
279
+ uploadedAvatar?: string | undefined;
279
280
  firstname?: string | undefined;
280
281
  lastname?: string | undefined;
281
- uploadedAvatar?: string | undefined;
282
282
  }, {
283
283
  id: string;
284
284
  email: string;
285
+ uploadedAvatar?: string | undefined;
285
286
  firstname?: string | undefined;
286
287
  lastname?: string | undefined;
287
- uploadedAvatar?: string | undefined;
288
288
  }>, "many">>>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  name: string;
291
291
  authors: {
292
292
  id: string;
293
293
  email: string;
294
+ uploadedAvatar?: string | undefined;
294
295
  firstname?: string | undefined;
295
296
  lastname?: string | undefined;
296
- uploadedAvatar?: string | undefined;
297
297
  }[];
298
298
  quotas: {
299
299
  maxNbEnvironments: number;
@@ -301,7 +301,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
301
301
  personalEnvironmentsEnabled: boolean;
302
302
  sliceMachineEnabled: 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;
@@ -325,9 +325,9 @@ export declare const repositorySchemaV2: z.ZodObject<{
325
325
  authors?: {
326
326
  id: string;
327
327
  email: string;
328
+ uploadedAvatar?: string | undefined;
328
329
  firstname?: string | undefined;
329
330
  lastname?: string | undefined;
330
- uploadedAvatar?: string | undefined;
331
331
  }[] | undefined;
332
332
  quotas?: {
333
333
  maxNbEnvironments: number;
@@ -262,12 +262,12 @@ export declare const TeamSpace: z.ZodObject<{
262
262
  name: z.ZodString;
263
263
  customTypes: z.ZodArray<z.ZodString, "many">;
264
264
  }, "strip", z.ZodTypeAny, {
265
- id: string;
266
265
  name: string;
266
+ id: string;
267
267
  customTypes: string[];
268
268
  }, {
269
- id: string;
270
269
  name: string;
270
+ id: string;
271
271
  customTypes: string[];
272
272
  }>;
273
273
  export type TeamSpace = z.infer<typeof TeamSpace>;
@@ -288,24 +288,24 @@ declare const TeamSpacesResponse: z.ZodObject<{
288
288
  name: z.ZodString;
289
289
  customTypes: z.ZodArray<z.ZodString, "many">;
290
290
  }, "strip", z.ZodTypeAny, {
291
- id: string;
292
291
  name: string;
292
+ id: string;
293
293
  customTypes: string[];
294
294
  }, {
295
- id: string;
296
295
  name: string;
296
+ id: string;
297
297
  customTypes: string[];
298
298
  }>, "many">;
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  results: {
301
- id: string;
302
301
  name: string;
302
+ id: string;
303
303
  customTypes: string[];
304
304
  }[];
305
305
  }, {
306
306
  results: {
307
- id: string;
308
307
  name: string;
308
+ id: string;
309
309
  customTypes: string[];
310
310
  }[];
311
311
  }>;
@@ -318,27 +318,27 @@ interface GetTeamSpacesArgs {
318
318
  export declare function getTeamSpaces(args: GetTeamSpacesArgs): Promise<TeamSpacesResponse>;
319
319
  export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
320
320
  results: {
321
- id: string;
322
321
  name: string;
322
+ id: string;
323
323
  customTypes: string[];
324
324
  }[];
325
325
  }, Error, {
326
- id: string;
327
326
  name: string;
327
+ id: string;
328
328
  customTypes: string[];
329
329
  }[], (string | GetTeamSpacesArgs)[]> & {
330
330
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
331
331
  results: {
332
- id: string;
333
332
  name: string;
333
+ id: string;
334
334
  customTypes: string[];
335
335
  }[];
336
336
  }> | undefined;
337
337
  } & {
338
338
  queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<(string | GetTeamSpacesArgs)[], {
339
339
  results: {
340
- id: string;
341
340
  name: string;
341
+ id: string;
342
342
  customTypes: string[];
343
343
  }[];
344
344
  }>;
@@ -88,13 +88,13 @@ export declare function useImageField(props: useImageFieldProps): {
88
88
  }) | undefined;
89
89
  onClear: () => void;
90
90
  uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
91
- id: string;
92
- size: number;
93
91
  kind: string;
92
+ id: string;
94
93
  url: string;
94
+ size: number;
95
95
  tags: {
96
- id: string;
97
96
  name: string;
97
+ id: string;
98
98
  created_at: number;
99
99
  last_modified: number;
100
100
  count: number;
@@ -102,17 +102,17 @@ export declare function useImageField(props: useImageFieldProps): {
102
102
  }[];
103
103
  last_modified: number;
104
104
  filename: string;
105
- notes?: string | undefined;
106
105
  height?: number | undefined;
107
106
  width?: number | undefined;
108
107
  credits?: string | undefined;
109
108
  alt?: string | undefined;
109
+ notes?: string | undefined;
110
110
  uploader_id?: string | undefined;
111
111
  extension?: string | undefined;
112
112
  search_highlight?: {
113
- notes?: string | undefined;
114
113
  credits?: string | undefined;
115
114
  alt?: string | undefined;
115
+ notes?: string | undefined;
116
116
  filename?: string | undefined;
117
117
  } | undefined;
118
118
  }, Error, File, unknown>;
@@ -4,13 +4,13 @@ interface UseImageFieldImageUploadArgs {
4
4
  }
5
5
  export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadArgs): {
6
6
  uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
7
- id: string;
8
- size: number;
9
7
  kind: string;
8
+ id: string;
10
9
  url: string;
10
+ size: number;
11
11
  tags: {
12
- id: string;
13
12
  name: string;
13
+ id: string;
14
14
  created_at: number;
15
15
  last_modified: number;
16
16
  count: number;
@@ -18,17 +18,17 @@ export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadA
18
18
  }[];
19
19
  last_modified: number;
20
20
  filename: string;
21
- notes?: string | undefined;
22
21
  height?: number | undefined;
23
22
  width?: number | undefined;
24
23
  credits?: string | undefined;
25
24
  alt?: string | undefined;
25
+ notes?: string | undefined;
26
26
  uploader_id?: string | undefined;
27
27
  extension?: string | undefined;
28
28
  search_highlight?: {
29
- notes?: string | undefined;
30
29
  credits?: string | undefined;
31
30
  alt?: string | undefined;
31
+ notes?: string | undefined;
32
32
  filename?: string | undefined;
33
33
  } | undefined;
34
34
  }, Error, File, unknown>;
@@ -23,12 +23,12 @@ export declare function useDocuments(params: {
23
23
  author: {
24
24
  id?: string | undefined;
25
25
  email?: string | undefined;
26
- uploadedAvatar?: string | undefined;
27
26
  first_name?: string | undefined;
28
27
  last_name?: string | undefined;
28
+ uploadedAvatar?: string | undefined;
29
29
  };
30
- uid?: string | undefined;
31
30
  preview_image?: string | undefined;
31
+ uid?: string | undefined;
32
32
  preview_summary?: string | undefined;
33
33
  }) | (({
34
34
  status: "unclassified";
@@ -44,8 +44,8 @@ export declare function useDocuments(params: {
44
44
  tags: string[];
45
45
  last_modified_date: Date;
46
46
  summary?: string | undefined;
47
- uid?: string | undefined;
48
47
  preview_image?: string | undefined;
48
+ uid?: string | undefined;
49
49
  custom_type_id?: string | undefined;
50
50
  author_ids?: string[] | undefined;
51
51
  highlights?: {
@@ -79,12 +79,12 @@ export declare function useDocuments(params: {
79
79
  author: {
80
80
  id?: string | undefined;
81
81
  email?: string | undefined;
82
- uploadedAvatar?: string | undefined;
83
82
  first_name?: string | undefined;
84
83
  last_name?: string | undefined;
84
+ uploadedAvatar?: string | undefined;
85
85
  };
86
- uid?: string | undefined;
87
86
  preview_image?: string | undefined;
87
+ uid?: string | undefined;
88
88
  preview_summary?: string | undefined;
89
89
  }) | (({
90
90
  status: "unclassified";
@@ -100,8 +100,8 @@ export declare function useDocuments(params: {
100
100
  tags: string[];
101
101
  last_modified_date: Date;
102
102
  summary?: string | undefined;
103
- uid?: string | undefined;
104
103
  preview_image?: string | undefined;
104
+ uid?: string | undefined;
105
105
  custom_type_id?: string | undefined;
106
106
  author_ids?: string[] | undefined;
107
107
  highlights?: {
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
16
16
  selectType?: FieldSelectType;
17
17
  displayTextEnabled?: boolean;
18
18
  }
19
- export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "link" | "notes" | "public";
19
+ export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "link" | "description" | "notes" | "public";
20
20
  interface FilledLinkFieldProps {
21
21
  id?: string;
22
22
  appearance?: LinkFieldAppearance;
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
11
11
  }
12
12
  export declare function useLinkField(params: useLinkFieldParams): {
13
13
  contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
14
- selectType: "document" | "web" | "media" | "any" | undefined;
14
+ selectType: "web" | "document" | "media" | "any" | undefined;
15
15
  fieldValue: string;
16
16
  onDisplayTextChange: (displayText: string) => void;
17
17
  onValueChange: (value: string, options?: {
@@ -9,6 +9,11 @@ interface Props<TContent extends ExtendedRichTextContent> {
9
9
  onContentChange: (content: TContent | undefined) => void;
10
10
  padding?: "normal" | "zero";
11
11
  scroll?: "hidden" | "x-auto";
12
+ /** Checks `editor.isEmpty` before calling `onContentChange`.
13
+ * - When `true`, the current structure of the document will be returned, even if it has no content.
14
+ * - When `false`, `undefined` will be returned.
15
+ * @default false */
16
+ shouldReturnEmptyContent?: boolean;
12
17
  }
13
18
  export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element;
14
19
  export {};