@prismicio/editor-fields 0.4.62-alpha.jp-table-render-default-layout.0 → 0.4.62-alpha.jp-table-render-default-layout.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.
@@ -54,6 +54,10 @@ export declare const mediaAssetType: z.ZodObject<{
54
54
  count?: number | undefined;
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
+ kind: string;
58
+ id: string;
59
+ url: string;
60
+ size: number;
57
61
  tags: {
58
62
  name: string;
59
63
  id: string;
@@ -62,14 +66,10 @@ export declare const mediaAssetType: z.ZodObject<{
62
66
  count: number;
63
67
  uploader_id?: string | undefined;
64
68
  }[];
65
- id: string;
66
- url: string;
67
- kind: string;
68
- size: number;
69
69
  last_modified: number;
70
70
  filename: string;
71
- width?: number | undefined;
72
71
  height?: number | undefined;
72
+ width?: number | undefined;
73
73
  credits?: string | undefined;
74
74
  alt?: string | undefined;
75
75
  notes?: string | undefined;
@@ -82,6 +82,10 @@ export declare const mediaAssetType: z.ZodObject<{
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
+ kind: string;
86
+ id: string;
87
+ url: string;
88
+ size: number;
85
89
  tags: {
86
90
  name: string;
87
91
  id: string;
@@ -90,14 +94,10 @@ export declare const mediaAssetType: z.ZodObject<{
90
94
  uploader_id?: string | undefined;
91
95
  count?: number | undefined;
92
96
  }[];
93
- id: string;
94
- url: string;
95
- kind: string;
96
- size: number;
97
97
  last_modified: number;
98
98
  filename: string;
99
- width?: number | undefined;
100
99
  height?: number | undefined;
100
+ width?: number | undefined;
101
101
  credits?: string | undefined;
102
102
  alt?: string | undefined;
103
103
  notes?: string | undefined;
@@ -169,6 +169,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
169
169
  count?: number | undefined;
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
+ kind: string;
173
+ id: string;
174
+ url: string;
175
+ size: number;
172
176
  tags: {
173
177
  name: string;
174
178
  id: string;
@@ -177,14 +181,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
177
181
  count: number;
178
182
  uploader_id?: string | undefined;
179
183
  }[];
180
- id: string;
181
- url: string;
182
- kind: string;
183
- size: number;
184
184
  last_modified: number;
185
185
  filename: string;
186
- width?: number | undefined;
187
186
  height?: number | undefined;
187
+ width?: number | undefined;
188
188
  credits?: string | undefined;
189
189
  alt?: string | undefined;
190
190
  notes?: string | undefined;
@@ -197,6 +197,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
+ kind: string;
201
+ id: string;
202
+ url: string;
203
+ size: number;
200
204
  tags: {
201
205
  name: string;
202
206
  id: string;
@@ -205,14 +209,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
205
209
  uploader_id?: string | undefined;
206
210
  count?: number | undefined;
207
211
  }[];
208
- id: string;
209
- url: string;
210
- kind: string;
211
- size: number;
212
212
  last_modified: number;
213
213
  filename: string;
214
- width?: number | undefined;
215
214
  height?: number | undefined;
215
+ width?: number | undefined;
216
216
  credits?: string | undefined;
217
217
  alt?: string | undefined;
218
218
  notes?: string | undefined;
@@ -228,6 +228,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  total: number;
230
230
  items: {
231
+ kind: string;
232
+ id: string;
233
+ url: string;
234
+ size: number;
231
235
  tags: {
232
236
  name: string;
233
237
  id: string;
@@ -236,14 +240,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
236
240
  count: number;
237
241
  uploader_id?: string | undefined;
238
242
  }[];
239
- id: string;
240
- url: string;
241
- kind: string;
242
- size: number;
243
243
  last_modified: number;
244
244
  filename: string;
245
- width?: number | undefined;
246
245
  height?: number | undefined;
246
+ width?: number | undefined;
247
247
  credits?: string | undefined;
248
248
  alt?: string | undefined;
249
249
  notes?: string | undefined;
@@ -260,6 +260,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
260
260
  }, {
261
261
  total: number;
262
262
  items: {
263
+ kind: string;
264
+ id: string;
265
+ url: string;
266
+ size: number;
263
267
  tags: {
264
268
  name: string;
265
269
  id: string;
@@ -268,14 +272,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
268
272
  uploader_id?: string | undefined;
269
273
  count?: number | undefined;
270
274
  }[];
271
- id: string;
272
- url: string;
273
- kind: string;
274
- size: number;
275
275
  last_modified: number;
276
276
  filename: string;
277
- width?: number | undefined;
278
277
  height?: number | undefined;
278
+ width?: number | undefined;
279
279
  credits?: string | undefined;
280
280
  alt?: string | undefined;
281
281
  notes?: string | undefined;
@@ -308,6 +308,10 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
308
308
  page: number;
309
309
  total: number;
310
310
  items: {
311
+ kind: string;
312
+ id: string;
313
+ url: string;
314
+ size: number;
311
315
  tags: {
312
316
  name: string;
313
317
  id: string;
@@ -316,14 +320,10 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
316
320
  count: number;
317
321
  uploader_id?: string | undefined;
318
322
  }[];
319
- id: string;
320
- url: string;
321
- kind: string;
322
- size: number;
323
323
  last_modified: number;
324
324
  filename: string;
325
- width?: number | undefined;
326
325
  height?: number | undefined;
326
+ width?: number | undefined;
327
327
  credits?: string | undefined;
328
328
  alt?: string | undefined;
329
329
  notes?: string | undefined;
@@ -357,6 +357,10 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
357
357
  setFilters: (filters: Partial<MediaLibraryFilters>) => void;
358
358
  resetFilters: () => void;
359
359
  media: {
360
+ kind: string;
361
+ id: string;
362
+ url: string;
363
+ size: number;
360
364
  tags: {
361
365
  name: string;
362
366
  id: string;
@@ -365,14 +369,10 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
365
369
  count: number;
366
370
  uploader_id?: string | undefined;
367
371
  }[];
368
- id: string;
369
- url: string;
370
- kind: string;
371
- size: number;
372
372
  last_modified: number;
373
373
  filename: string;
374
- width?: number | undefined;
375
374
  height?: number | undefined;
375
+ width?: number | undefined;
376
376
  credits?: string | undefined;
377
377
  alt?: string | undefined;
378
378
  notes?: string | undefined;
@@ -407,6 +407,10 @@ 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
+ kind: string;
411
+ id: string;
412
+ url: string;
413
+ size: number;
410
414
  tags: {
411
415
  name: string;
412
416
  id: string;
@@ -415,14 +419,10 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
415
419
  count: number;
416
420
  uploader_id?: string | undefined;
417
421
  }[];
418
- id: string;
419
- url: string;
420
- kind: string;
421
- size: number;
422
422
  last_modified: number;
423
423
  filename: string;
424
- width?: number | undefined;
425
424
  height?: number | undefined;
425
+ width?: number | undefined;
426
426
  credits?: string | undefined;
427
427
  alt?: string | undefined;
428
428
  notes?: string | undefined;
@@ -37,6 +37,10 @@ export declare function uploadMedia(params: {
37
37
  file: File;
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
+ kind: string;
41
+ id: string;
42
+ url: string;
43
+ size: number;
40
44
  tags: {
41
45
  name: string;
42
46
  id: string;
@@ -45,14 +49,10 @@ export declare function uploadMedia(params: {
45
49
  count: number;
46
50
  uploader_id?: string | undefined;
47
51
  }[];
48
- id: string;
49
- url: string;
50
- kind: string;
51
- size: number;
52
52
  last_modified: number;
53
53
  filename: string;
54
- width?: number | undefined;
55
54
  height?: number | undefined;
55
+ width?: number | undefined;
56
56
  credits?: string | undefined;
57
57
  alt?: string | undefined;
58
58
  notes?: string | undefined;
@@ -1,4 +1,8 @@
1
1
  export declare function useSelectedMedia(): {
2
+ kind: string;
3
+ id: string;
4
+ url: string;
5
+ size: number;
2
6
  tags: {
3
7
  name: string;
4
8
  id: string;
@@ -7,14 +11,10 @@ export declare function useSelectedMedia(): {
7
11
  count: number;
8
12
  uploader_id?: string | undefined;
9
13
  }[];
10
- id: string;
11
- url: string;
12
- kind: string;
13
- size: number;
14
14
  last_modified: number;
15
15
  filename: string;
16
- width?: number | undefined;
17
16
  height?: number | undefined;
17
+ width?: number | undefined;
18
18
  credits?: string | undefined;
19
19
  alt?: string | undefined;
20
20
  notes?: string | undefined;
@@ -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
- width: number;
22
20
  height: number;
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
- width: number;
32
30
  height: number;
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
- width: number;
60
58
  height: number;
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
- width: number;
70
68
  height: number;
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
- width: number;
82
80
  height: number;
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
- width: number;
94
92
  height: number;
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
- width: number;
105
103
  height: number;
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
- width: number;
116
114
  height: number;
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
- width: number;
130
128
  height: number;
129
+ width: number;
130
+ description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -7,15 +7,15 @@ declare const CustomType: z.ZodObject<{
7
7
  repeatable: z.ZodBoolean;
8
8
  status: z.ZodBoolean;
9
9
  }, "strip", z.ZodTypeAny, {
10
- status: boolean;
11
- id: string;
12
10
  label: string;
11
+ id: string;
13
12
  repeatable: boolean;
14
- }, {
15
13
  status: boolean;
16
- id: string;
14
+ }, {
17
15
  label: string;
16
+ id: string;
18
17
  repeatable: boolean;
18
+ status: boolean;
19
19
  }>;
20
20
  export type CustomType = z.TypeOf<typeof CustomType>;
21
21
  interface CustomTypesOptionsArgs {
@@ -24,51 +24,51 @@ interface CustomTypesOptionsArgs {
24
24
  authStrategy: AuthStrategy;
25
25
  }
26
26
  export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
27
- status: boolean;
28
- id: string;
29
27
  label: string;
28
+ id: string;
30
29
  repeatable: boolean;
31
- }[], Error, {
32
30
  status: boolean;
33
- id: string;
31
+ }[], Error, {
34
32
  label: string;
33
+ id: string;
35
34
  repeatable: boolean;
35
+ status: boolean;
36
36
  }[], string[]> & {
37
37
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
38
- status: boolean;
39
- id: string;
40
38
  label: string;
39
+ id: string;
41
40
  repeatable: boolean;
41
+ status: boolean;
42
42
  }[]> | undefined;
43
43
  } & {
44
44
  queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
45
- status: boolean;
46
- id: string;
47
45
  label: string;
46
+ id: string;
48
47
  repeatable: boolean;
48
+ status: boolean;
49
49
  }[]>;
50
50
  };
51
51
  export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
52
52
  export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
53
- status: boolean;
54
- id: string;
55
53
  label: string;
54
+ id: string;
56
55
  repeatable: boolean;
56
+ status: boolean;
57
57
  }[]>;
58
58
  export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
59
- status: boolean;
60
- id: string;
61
59
  label: string;
60
+ id: string;
62
61
  repeatable: boolean;
62
+ status: boolean;
63
63
  }[], Error>;
64
64
  interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
65
65
  id: string;
66
66
  }
67
67
  export declare function useCustomType(args: CustomTypeOptionsArgs): {
68
- status: boolean;
69
- id: string;
70
68
  label: string;
69
+ id: string;
71
70
  repeatable: boolean;
71
+ status: boolean;
72
72
  };
73
73
  export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
74
74
  export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{