@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
@@ -21,14 +21,14 @@ export declare const mediaAssetType: z.ZodObject<{
21
21
  notes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
22
22
  credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- notes?: string | undefined;
25
24
  credits?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  filename?: string | undefined;
28
28
  }, {
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
  }>>;
34
34
  tags: z.ZodArray<z.ZodObject<{
@@ -39,28 +39,28 @@ export declare const mediaAssetType: z.ZodObject<{
39
39
  last_modified: z.ZodNumber;
40
40
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- id: string;
43
42
  name: string;
43
+ id: string;
44
44
  created_at: number;
45
45
  last_modified: number;
46
46
  count: number;
47
47
  uploader_id?: string | undefined;
48
48
  }, {
49
- id: string;
50
49
  name: string;
50
+ id: string;
51
51
  created_at: number;
52
52
  last_modified: number;
53
53
  uploader_id?: string | undefined;
54
54
  count?: number | undefined;
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- size: number;
59
57
  kind: string;
58
+ id: string;
60
59
  url: string;
60
+ size: number;
61
61
  tags: {
62
- id: string;
63
62
  name: string;
63
+ id: string;
64
64
  created_at: number;
65
65
  last_modified: number;
66
66
  count: number;
@@ -68,27 +68,27 @@ export declare const mediaAssetType: z.ZodObject<{
68
68
  }[];
69
69
  last_modified: number;
70
70
  filename: string;
71
- notes?: string | undefined;
72
71
  height?: number | undefined;
73
72
  width?: number | undefined;
74
73
  credits?: string | undefined;
75
74
  alt?: string | undefined;
75
+ notes?: string | undefined;
76
76
  uploader_id?: string | undefined;
77
77
  extension?: string | undefined;
78
78
  search_highlight?: {
79
- notes?: string | undefined;
80
79
  credits?: string | undefined;
81
80
  alt?: string | undefined;
81
+ notes?: string | undefined;
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
- id: string;
86
- size: number;
87
85
  kind: string;
86
+ id: string;
88
87
  url: string;
88
+ size: number;
89
89
  tags: {
90
- id: string;
91
90
  name: string;
91
+ id: string;
92
92
  created_at: number;
93
93
  last_modified: number;
94
94
  uploader_id?: string | undefined;
@@ -96,17 +96,17 @@ export declare const mediaAssetType: z.ZodObject<{
96
96
  }[];
97
97
  last_modified: number;
98
98
  filename: string;
99
- notes?: string | undefined;
100
99
  height?: number | undefined;
101
100
  width?: number | undefined;
102
101
  credits?: string | undefined;
103
102
  alt?: string | undefined;
103
+ notes?: string | undefined;
104
104
  uploader_id?: string | undefined;
105
105
  extension?: string | undefined;
106
106
  search_highlight?: {
107
- notes?: string[] | undefined;
108
107
  credits?: string[] | undefined;
109
108
  alt?: string[] | undefined;
109
+ notes?: string[] | undefined;
110
110
  filename?: string[] | undefined;
111
111
  } | undefined;
112
112
  }>;
@@ -136,14 +136,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
136
136
  notes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
137
137
  credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
138
138
  }, "strip", z.ZodTypeAny, {
139
- notes?: string | undefined;
140
139
  credits?: string | undefined;
141
140
  alt?: string | undefined;
141
+ notes?: string | undefined;
142
142
  filename?: string | undefined;
143
143
  }, {
144
- notes?: string[] | undefined;
145
144
  credits?: string[] | undefined;
146
145
  alt?: string[] | undefined;
146
+ notes?: string[] | undefined;
147
147
  filename?: string[] | undefined;
148
148
  }>>;
149
149
  tags: z.ZodArray<z.ZodObject<{
@@ -154,28 +154,28 @@ export declare const mediaSearchResponse: z.ZodObject<{
154
154
  last_modified: z.ZodNumber;
155
155
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
- id: string;
158
157
  name: string;
158
+ id: string;
159
159
  created_at: number;
160
160
  last_modified: number;
161
161
  count: number;
162
162
  uploader_id?: string | undefined;
163
163
  }, {
164
- id: string;
165
164
  name: string;
165
+ id: string;
166
166
  created_at: number;
167
167
  last_modified: number;
168
168
  uploader_id?: string | undefined;
169
169
  count?: number | undefined;
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
- id: string;
173
- size: number;
174
172
  kind: string;
173
+ id: string;
175
174
  url: string;
175
+ size: number;
176
176
  tags: {
177
- id: string;
178
177
  name: string;
178
+ id: string;
179
179
  created_at: number;
180
180
  last_modified: number;
181
181
  count: number;
@@ -183,27 +183,27 @@ export declare const mediaSearchResponse: z.ZodObject<{
183
183
  }[];
184
184
  last_modified: number;
185
185
  filename: string;
186
- notes?: string | undefined;
187
186
  height?: number | undefined;
188
187
  width?: number | undefined;
189
188
  credits?: string | undefined;
190
189
  alt?: string | undefined;
190
+ notes?: string | undefined;
191
191
  uploader_id?: string | undefined;
192
192
  extension?: string | undefined;
193
193
  search_highlight?: {
194
- notes?: string | undefined;
195
194
  credits?: string | undefined;
196
195
  alt?: string | undefined;
196
+ notes?: string | undefined;
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
- id: string;
201
- size: number;
202
200
  kind: string;
201
+ id: string;
203
202
  url: string;
203
+ size: number;
204
204
  tags: {
205
- id: string;
206
205
  name: string;
206
+ id: string;
207
207
  created_at: number;
208
208
  last_modified: number;
209
209
  uploader_id?: string | undefined;
@@ -211,30 +211,30 @@ export declare const mediaSearchResponse: z.ZodObject<{
211
211
  }[];
212
212
  last_modified: number;
213
213
  filename: string;
214
- notes?: string | undefined;
215
214
  height?: number | undefined;
216
215
  width?: number | undefined;
217
216
  credits?: string | undefined;
218
217
  alt?: string | undefined;
218
+ notes?: string | undefined;
219
219
  uploader_id?: string | undefined;
220
220
  extension?: string | undefined;
221
221
  search_highlight?: {
222
- notes?: string[] | undefined;
223
222
  credits?: string[] | undefined;
224
223
  alt?: string[] | undefined;
224
+ notes?: string[] | undefined;
225
225
  filename?: string[] | undefined;
226
226
  } | undefined;
227
227
  }>, "many">;
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  total: number;
230
230
  items: {
231
- id: string;
232
- size: number;
233
231
  kind: string;
232
+ id: string;
234
233
  url: string;
234
+ size: number;
235
235
  tags: {
236
- id: string;
237
236
  name: string;
237
+ id: string;
238
238
  created_at: number;
239
239
  last_modified: number;
240
240
  count: number;
@@ -242,17 +242,17 @@ export declare const mediaSearchResponse: z.ZodObject<{
242
242
  }[];
243
243
  last_modified: number;
244
244
  filename: string;
245
- notes?: string | undefined;
246
245
  height?: number | undefined;
247
246
  width?: number | undefined;
248
247
  credits?: string | undefined;
249
248
  alt?: string | undefined;
249
+ notes?: string | undefined;
250
250
  uploader_id?: string | undefined;
251
251
  extension?: string | undefined;
252
252
  search_highlight?: {
253
- notes?: string | undefined;
254
253
  credits?: string | undefined;
255
254
  alt?: string | undefined;
255
+ notes?: string | undefined;
256
256
  filename?: string | undefined;
257
257
  } | undefined;
258
258
  }[];
@@ -260,13 +260,13 @@ export declare const mediaSearchResponse: z.ZodObject<{
260
260
  }, {
261
261
  total: number;
262
262
  items: {
263
- id: string;
264
- size: number;
265
263
  kind: string;
264
+ id: string;
266
265
  url: string;
266
+ size: number;
267
267
  tags: {
268
- id: string;
269
268
  name: string;
269
+ id: string;
270
270
  created_at: number;
271
271
  last_modified: number;
272
272
  uploader_id?: string | undefined;
@@ -274,17 +274,17 @@ export declare const mediaSearchResponse: z.ZodObject<{
274
274
  }[];
275
275
  last_modified: number;
276
276
  filename: string;
277
- notes?: string | undefined;
278
277
  height?: number | undefined;
279
278
  width?: number | undefined;
280
279
  credits?: string | undefined;
281
280
  alt?: string | undefined;
281
+ notes?: string | undefined;
282
282
  uploader_id?: string | undefined;
283
283
  extension?: string | undefined;
284
284
  search_highlight?: {
285
- notes?: string[] | undefined;
286
285
  credits?: string[] | undefined;
287
286
  alt?: string[] | undefined;
287
+ notes?: string[] | undefined;
288
288
  filename?: string[] | undefined;
289
289
  } | undefined;
290
290
  }[];
@@ -308,13 +308,13 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
308
308
  page: number;
309
309
  total: number;
310
310
  items: {
311
- id: string;
312
- size: number;
313
311
  kind: string;
312
+ id: string;
314
313
  url: string;
314
+ size: number;
315
315
  tags: {
316
- id: string;
317
316
  name: string;
317
+ id: string;
318
318
  created_at: number;
319
319
  last_modified: number;
320
320
  count: number;
@@ -322,17 +322,17 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
322
322
  }[];
323
323
  last_modified: number;
324
324
  filename: string;
325
- notes?: string | undefined;
326
325
  height?: number | undefined;
327
326
  width?: number | undefined;
328
327
  credits?: string | undefined;
329
328
  alt?: string | undefined;
329
+ notes?: string | undefined;
330
330
  uploader_id?: string | undefined;
331
331
  extension?: string | undefined;
332
332
  search_highlight?: {
333
- notes?: string | undefined;
334
333
  credits?: string | undefined;
335
334
  alt?: string | undefined;
335
+ notes?: string | undefined;
336
336
  filename?: string | undefined;
337
337
  } | undefined;
338
338
  }[];
@@ -357,13 +357,13 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
357
357
  setFilters: (filters: Partial<MediaLibraryFilters>) => void;
358
358
  resetFilters: () => void;
359
359
  media: {
360
- id: string;
361
- size: number;
362
360
  kind: string;
361
+ id: string;
363
362
  url: string;
363
+ size: number;
364
364
  tags: {
365
- id: string;
366
365
  name: string;
366
+ id: string;
367
367
  created_at: number;
368
368
  last_modified: number;
369
369
  count: number;
@@ -371,17 +371,17 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
371
371
  }[];
372
372
  last_modified: number;
373
373
  filename: string;
374
- notes?: string | undefined;
375
374
  height?: number | undefined;
376
375
  width?: number | undefined;
377
376
  credits?: string | undefined;
378
377
  alt?: string | undefined;
378
+ notes?: string | undefined;
379
379
  uploader_id?: string | undefined;
380
380
  extension?: string | undefined;
381
381
  search_highlight?: {
382
- notes?: string | undefined;
383
382
  credits?: string | undefined;
384
383
  alt?: string | undefined;
384
+ notes?: string | undefined;
385
385
  filename?: string | undefined;
386
386
  } | undefined;
387
387
  }[];
@@ -407,13 +407,13 @@ declare function deleteMedia(mediaIds: string[]): void;
407
407
  declare function deleteSearchData(args: MediaLibraryFilters): void;
408
408
  type MediaPage = Awaited<ReturnType<typeof searchMedia>>;
409
409
  export declare function getMedia(allPages: MediaPage[], keyword: string, assetType: MediaAssetType, uploaderId: string | undefined, tags: string): {
410
- id: string;
411
- size: number;
412
410
  kind: string;
411
+ id: string;
413
412
  url: string;
413
+ size: number;
414
414
  tags: {
415
- id: string;
416
415
  name: string;
416
+ id: string;
417
417
  created_at: number;
418
418
  last_modified: number;
419
419
  count: number;
@@ -421,17 +421,17 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
421
421
  }[];
422
422
  last_modified: number;
423
423
  filename: string;
424
- notes?: string | undefined;
425
424
  height?: number | undefined;
426
425
  width?: number | undefined;
427
426
  credits?: string | undefined;
428
427
  alt?: string | undefined;
428
+ notes?: string | undefined;
429
429
  uploader_id?: string | undefined;
430
430
  extension?: string | undefined;
431
431
  search_highlight?: {
432
- notes?: string | undefined;
433
432
  credits?: string | undefined;
434
433
  alt?: string | undefined;
434
+ notes?: string | undefined;
435
435
  filename?: string | undefined;
436
436
  } | undefined;
437
437
  }[];
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare function useTagSearch(): {
3
3
  tags: {
4
- id: string;
5
4
  name: string;
5
+ id: string;
6
6
  created_at: number;
7
7
  last_modified: number;
8
8
  count: number;
@@ -20,15 +20,15 @@ export declare const tagSchema: z.ZodObject<{
20
20
  last_modified: z.ZodNumber;
21
21
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- id: string;
24
23
  name: string;
24
+ id: string;
25
25
  created_at: number;
26
26
  last_modified: number;
27
27
  count: number;
28
28
  uploader_id?: string | undefined;
29
29
  }, {
30
- id: string;
31
30
  name: string;
31
+ id: string;
32
32
  created_at: number;
33
33
  last_modified: number;
34
34
  uploader_id?: string | undefined;
@@ -37,13 +37,13 @@ export declare function uploadMedia(params: {
37
37
  file: File;
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
- id: string;
41
- size: number;
42
40
  kind: string;
41
+ id: string;
43
42
  url: string;
43
+ size: number;
44
44
  tags: {
45
- id: string;
46
45
  name: string;
46
+ id: string;
47
47
  created_at: number;
48
48
  last_modified: number;
49
49
  count: number;
@@ -51,17 +51,17 @@ export declare function uploadMedia(params: {
51
51
  }[];
52
52
  last_modified: number;
53
53
  filename: string;
54
- notes?: string | undefined;
55
54
  height?: number | undefined;
56
55
  width?: number | undefined;
57
56
  credits?: string | undefined;
58
57
  alt?: string | undefined;
58
+ notes?: string | undefined;
59
59
  uploader_id?: string | undefined;
60
60
  extension?: string | undefined;
61
61
  search_highlight?: {
62
- notes?: string | undefined;
63
62
  credits?: string | undefined;
64
63
  alt?: string | undefined;
64
+ notes?: string | undefined;
65
65
  filename?: string | undefined;
66
66
  } | undefined;
67
67
  }>;
@@ -1,11 +1,11 @@
1
1
  export declare function useSelectedMedia(): {
2
- id: string;
3
- size: number;
4
2
  kind: string;
3
+ id: string;
5
4
  url: string;
5
+ size: number;
6
6
  tags: {
7
- id: string;
8
7
  name: string;
8
+ id: string;
9
9
  created_at: number;
10
10
  last_modified: number;
11
11
  count: number;
@@ -13,17 +13,17 @@ export declare function useSelectedMedia(): {
13
13
  }[];
14
14
  last_modified: number;
15
15
  filename: string;
16
- notes?: string | undefined;
17
16
  height?: number | undefined;
18
17
  width?: number | undefined;
19
18
  credits?: string | undefined;
20
19
  alt?: string | undefined;
20
+ notes?: string | undefined;
21
21
  uploader_id?: string | undefined;
22
22
  extension?: string | undefined;
23
23
  search_highlight?: {
24
- notes?: string | undefined;
25
24
  credits?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  filename?: string | undefined;
28
28
  } | undefined;
29
29
  }[];
@@ -17,9 +17,9 @@ declare const unsplashImage: import("zod").ZodObject<{
17
17
  description: import("zod").ZodNullable<import("zod").ZodString>;
18
18
  }, "strip", import("zod").ZodTypeAny, {
19
19
  id: string;
20
- description: string | null;
21
20
  height: number;
22
21
  width: number;
22
+ description: string | null;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
@@ -27,9 +27,9 @@ declare const unsplashImage: import("zod").ZodObject<{
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
29
  id: string;
30
- description: string | null;
31
30
  height: number;
32
31
  width: number;
32
+ description: string | null;
33
33
  urls: {
34
34
  small: string;
35
35
  full: string;
@@ -55,9 +55,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
55
55
  description: import("zod").ZodNullable<import("zod").ZodString>;
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
57
  id: string;
58
- description: string | null;
59
58
  height: number;
60
59
  width: number;
60
+ description: string | null;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
@@ -65,9 +65,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
67
  id: string;
68
- description: string | null;
69
68
  height: number;
70
69
  width: number;
70
+ description: string | null;
71
71
  urls: {
72
72
  small: string;
73
73
  full: string;
@@ -77,9 +77,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
77
77
  }, "strip", import("zod").ZodTypeAny, {
78
78
  results: {
79
79
  id: string;
80
- description: string | null;
81
80
  height: number;
82
81
  width: number;
82
+ description: string | null;
83
83
  urls: {
84
84
  small: string;
85
85
  full: string;
@@ -89,9 +89,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
89
89
  }, {
90
90
  results: {
91
91
  id: string;
92
- description: string | null;
93
92
  height: number;
94
93
  width: number;
94
+ description: string | null;
95
95
  urls: {
96
96
  small: string;
97
97
  full: string;
@@ -100,9 +100,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
100
100
  }[];
101
101
  }>, {
102
102
  id: string;
103
- description: string | null;
104
103
  height: number;
105
104
  width: number;
105
+ description: string | null;
106
106
  urls: {
107
107
  small: string;
108
108
  full: string;
@@ -111,9 +111,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
111
111
  }[], {
112
112
  results: {
113
113
  id: string;
114
- description: string | null;
115
114
  height: number;
116
115
  width: number;
116
+ description: string | null;
117
117
  urls: {
118
118
  small: string;
119
119
  full: string;
@@ -125,9 +125,9 @@ export type UnplashSearchApi = TypeOf<typeof unsplashSearchApiType>;
125
125
  export type UnsplashImage = TypeOf<typeof unsplashImage>;
126
126
  export declare function useUnsplashSearch(baseUrl: URL, term: string): {
127
127
  id: string;
128
- description: string | null;
129
128
  height: number;
130
129
  width: number;
130
+ description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;