@prismicio/editor-fields 0.4.52-jp-onboarding-guide-triggers-highlight → 0.4.52
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.
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +34 -34
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +3 -3
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/customType.d.ts +3 -3
- package/dist/core/service/document.d.ts +24 -24
- package/dist/core/service/repository.d.ts +1 -1
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
- package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +5 -4
- package/dist/fields/LinkField/Documents/documentsData.d.ts +2 -2
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
- package/dist/index.cjs.js +34 -34
- package/dist/index.es.js +14108 -13998
- package/package.json +4 -4
|
@@ -41,33 +41,33 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
-
last_modified: number;
|
|
45
44
|
created_at: number;
|
|
45
|
+
last_modified: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
id: string;
|
|
50
50
|
name: string;
|
|
51
|
-
last_modified: number;
|
|
52
51
|
created_at: number;
|
|
52
|
+
last_modified: number;
|
|
53
53
|
uploader_id?: string | undefined;
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
|
-
kind: string;
|
|
59
58
|
url: string;
|
|
60
59
|
size: number;
|
|
61
60
|
tags: {
|
|
62
61
|
id: string;
|
|
63
62
|
name: string;
|
|
64
|
-
last_modified: number;
|
|
65
63
|
created_at: number;
|
|
64
|
+
last_modified: number;
|
|
66
65
|
count: number;
|
|
67
66
|
uploader_id?: string | undefined;
|
|
68
67
|
}[];
|
|
69
|
-
filename: string;
|
|
70
68
|
last_modified: number;
|
|
69
|
+
kind: string;
|
|
70
|
+
filename: string;
|
|
71
71
|
extension?: string | undefined;
|
|
72
72
|
width?: number | undefined;
|
|
73
73
|
height?: number | undefined;
|
|
@@ -83,19 +83,19 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
id: string;
|
|
86
|
-
kind: string;
|
|
87
86
|
url: string;
|
|
88
87
|
size: number;
|
|
89
88
|
tags: {
|
|
90
89
|
id: string;
|
|
91
90
|
name: string;
|
|
92
|
-
last_modified: number;
|
|
93
91
|
created_at: number;
|
|
92
|
+
last_modified: number;
|
|
94
93
|
uploader_id?: string | undefined;
|
|
95
94
|
count?: number | undefined;
|
|
96
95
|
}[];
|
|
97
|
-
filename: string;
|
|
98
96
|
last_modified: number;
|
|
97
|
+
kind: string;
|
|
98
|
+
filename: string;
|
|
99
99
|
extension?: string | undefined;
|
|
100
100
|
width?: number | undefined;
|
|
101
101
|
height?: number | undefined;
|
|
@@ -156,33 +156,33 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
id: string;
|
|
158
158
|
name: string;
|
|
159
|
-
last_modified: number;
|
|
160
159
|
created_at: number;
|
|
160
|
+
last_modified: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
166
|
-
last_modified: number;
|
|
167
166
|
created_at: number;
|
|
167
|
+
last_modified: number;
|
|
168
168
|
uploader_id?: string | undefined;
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
id: string;
|
|
173
|
-
kind: string;
|
|
174
173
|
url: string;
|
|
175
174
|
size: number;
|
|
176
175
|
tags: {
|
|
177
176
|
id: string;
|
|
178
177
|
name: string;
|
|
179
|
-
last_modified: number;
|
|
180
178
|
created_at: number;
|
|
179
|
+
last_modified: number;
|
|
181
180
|
count: number;
|
|
182
181
|
uploader_id?: string | undefined;
|
|
183
182
|
}[];
|
|
184
|
-
filename: string;
|
|
185
183
|
last_modified: number;
|
|
184
|
+
kind: string;
|
|
185
|
+
filename: string;
|
|
186
186
|
extension?: string | undefined;
|
|
187
187
|
width?: number | undefined;
|
|
188
188
|
height?: number | undefined;
|
|
@@ -198,19 +198,19 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
200
|
id: string;
|
|
201
|
-
kind: string;
|
|
202
201
|
url: string;
|
|
203
202
|
size: number;
|
|
204
203
|
tags: {
|
|
205
204
|
id: string;
|
|
206
205
|
name: string;
|
|
207
|
-
last_modified: number;
|
|
208
206
|
created_at: number;
|
|
207
|
+
last_modified: number;
|
|
209
208
|
uploader_id?: string | undefined;
|
|
210
209
|
count?: number | undefined;
|
|
211
210
|
}[];
|
|
212
|
-
filename: string;
|
|
213
211
|
last_modified: number;
|
|
212
|
+
kind: string;
|
|
213
|
+
filename: string;
|
|
214
214
|
extension?: string | undefined;
|
|
215
215
|
width?: number | undefined;
|
|
216
216
|
height?: number | undefined;
|
|
@@ -226,21 +226,22 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
total: number;
|
|
229
230
|
items: {
|
|
230
231
|
id: string;
|
|
231
|
-
kind: string;
|
|
232
232
|
url: string;
|
|
233
233
|
size: number;
|
|
234
234
|
tags: {
|
|
235
235
|
id: string;
|
|
236
236
|
name: string;
|
|
237
|
-
last_modified: number;
|
|
238
237
|
created_at: number;
|
|
238
|
+
last_modified: number;
|
|
239
239
|
count: number;
|
|
240
240
|
uploader_id?: string | undefined;
|
|
241
241
|
}[];
|
|
242
|
-
filename: string;
|
|
243
242
|
last_modified: number;
|
|
243
|
+
kind: string;
|
|
244
|
+
filename: string;
|
|
244
245
|
extension?: string | undefined;
|
|
245
246
|
width?: number | undefined;
|
|
246
247
|
height?: number | undefined;
|
|
@@ -255,24 +256,24 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
255
256
|
credits?: string | undefined;
|
|
256
257
|
} | undefined;
|
|
257
258
|
}[];
|
|
258
|
-
total: number;
|
|
259
259
|
cursor?: string | undefined;
|
|
260
260
|
}, {
|
|
261
|
+
total: number;
|
|
261
262
|
items: {
|
|
262
263
|
id: string;
|
|
263
|
-
kind: string;
|
|
264
264
|
url: string;
|
|
265
265
|
size: number;
|
|
266
266
|
tags: {
|
|
267
267
|
id: string;
|
|
268
268
|
name: string;
|
|
269
|
-
last_modified: number;
|
|
270
269
|
created_at: number;
|
|
270
|
+
last_modified: number;
|
|
271
271
|
uploader_id?: string | undefined;
|
|
272
272
|
count?: number | undefined;
|
|
273
273
|
}[];
|
|
274
|
-
filename: string;
|
|
275
274
|
last_modified: number;
|
|
275
|
+
kind: string;
|
|
276
|
+
filename: string;
|
|
276
277
|
extension?: string | undefined;
|
|
277
278
|
width?: number | undefined;
|
|
278
279
|
height?: number | undefined;
|
|
@@ -287,7 +288,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
287
288
|
credits?: string[] | undefined;
|
|
288
289
|
} | undefined;
|
|
289
290
|
}[];
|
|
290
|
-
total: number;
|
|
291
291
|
cursor?: string | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
export type MediaAsset = z.TypeOf<typeof mediaAssetType>;
|
|
@@ -306,21 +306,22 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
306
306
|
uploaderId: string | undefined;
|
|
307
307
|
tags: string;
|
|
308
308
|
page: number;
|
|
309
|
+
total: number;
|
|
309
310
|
items: {
|
|
310
311
|
id: string;
|
|
311
|
-
kind: string;
|
|
312
312
|
url: string;
|
|
313
313
|
size: number;
|
|
314
314
|
tags: {
|
|
315
315
|
id: string;
|
|
316
316
|
name: string;
|
|
317
|
-
last_modified: number;
|
|
318
317
|
created_at: number;
|
|
318
|
+
last_modified: number;
|
|
319
319
|
count: number;
|
|
320
320
|
uploader_id?: string | undefined;
|
|
321
321
|
}[];
|
|
322
|
-
filename: string;
|
|
323
322
|
last_modified: number;
|
|
323
|
+
kind: string;
|
|
324
|
+
filename: string;
|
|
324
325
|
extension?: string | undefined;
|
|
325
326
|
width?: number | undefined;
|
|
326
327
|
height?: number | undefined;
|
|
@@ -335,7 +336,6 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
335
336
|
credits?: string | undefined;
|
|
336
337
|
} | undefined;
|
|
337
338
|
}[];
|
|
338
|
-
total: number;
|
|
339
339
|
cursor?: string | undefined;
|
|
340
340
|
}>;
|
|
341
341
|
interface UseMediaLibrarySearchArgs {
|
|
@@ -358,19 +358,19 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
358
358
|
resetFilters: () => void;
|
|
359
359
|
media: {
|
|
360
360
|
id: string;
|
|
361
|
-
kind: string;
|
|
362
361
|
url: string;
|
|
363
362
|
size: number;
|
|
364
363
|
tags: {
|
|
365
364
|
id: string;
|
|
366
365
|
name: string;
|
|
367
|
-
last_modified: number;
|
|
368
366
|
created_at: number;
|
|
367
|
+
last_modified: number;
|
|
369
368
|
count: number;
|
|
370
369
|
uploader_id?: string | undefined;
|
|
371
370
|
}[];
|
|
372
|
-
filename: string;
|
|
373
371
|
last_modified: number;
|
|
372
|
+
kind: string;
|
|
373
|
+
filename: string;
|
|
374
374
|
extension?: string | undefined;
|
|
375
375
|
width?: number | undefined;
|
|
376
376
|
height?: number | undefined;
|
|
@@ -408,19 +408,19 @@ 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
410
|
id: string;
|
|
411
|
-
kind: string;
|
|
412
411
|
url: string;
|
|
413
412
|
size: number;
|
|
414
413
|
tags: {
|
|
415
414
|
id: string;
|
|
416
415
|
name: string;
|
|
417
|
-
last_modified: number;
|
|
418
416
|
created_at: number;
|
|
417
|
+
last_modified: number;
|
|
419
418
|
count: number;
|
|
420
419
|
uploader_id?: string | undefined;
|
|
421
420
|
}[];
|
|
422
|
-
filename: string;
|
|
423
421
|
last_modified: number;
|
|
422
|
+
kind: string;
|
|
423
|
+
filename: string;
|
|
424
424
|
extension?: string | undefined;
|
|
425
425
|
width?: number | undefined;
|
|
426
426
|
height?: number | undefined;
|
|
@@ -3,8 +3,8 @@ export declare function useTagSearch(): {
|
|
|
3
3
|
tags: {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
last_modified: number;
|
|
7
6
|
created_at: number;
|
|
7
|
+
last_modified: number;
|
|
8
8
|
count: number;
|
|
9
9
|
uploader_id?: string | undefined;
|
|
10
10
|
}[];
|
|
@@ -22,15 +22,15 @@ export declare const tagSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
last_modified: number;
|
|
26
25
|
created_at: number;
|
|
26
|
+
last_modified: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
|
-
last_modified: number;
|
|
33
32
|
created_at: number;
|
|
33
|
+
last_modified: number;
|
|
34
34
|
uploader_id?: string | undefined;
|
|
35
35
|
count?: number | undefined;
|
|
36
36
|
}>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
2
|
id: string;
|
|
3
|
-
kind: string;
|
|
4
3
|
url: string;
|
|
5
4
|
size: number;
|
|
6
5
|
tags: {
|
|
7
6
|
id: string;
|
|
8
7
|
name: string;
|
|
9
|
-
last_modified: number;
|
|
10
8
|
created_at: number;
|
|
9
|
+
last_modified: number;
|
|
11
10
|
count: number;
|
|
12
11
|
uploader_id?: string | undefined;
|
|
13
12
|
}[];
|
|
14
|
-
filename: string;
|
|
15
13
|
last_modified: number;
|
|
14
|
+
kind: string;
|
|
15
|
+
filename: string;
|
|
16
16
|
extension?: string | undefined;
|
|
17
17
|
width?: number | undefined;
|
|
18
18
|
height?: number | 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
|
-
height: number;
|
|
21
|
-
width: number;
|
|
22
20
|
description: string | null;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
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
|
-
height: number;
|
|
31
|
-
width: number;
|
|
32
30
|
description: string | null;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
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
|
-
height: number;
|
|
59
|
-
width: number;
|
|
60
58
|
description: string | null;
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
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
|
-
height: number;
|
|
69
|
-
width: number;
|
|
70
68
|
description: string | null;
|
|
69
|
+
width: number;
|
|
70
|
+
height: number;
|
|
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
|
-
height: number;
|
|
81
|
-
width: number;
|
|
82
80
|
description: string | null;
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
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
|
-
height: number;
|
|
93
|
-
width: number;
|
|
94
92
|
description: string | null;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
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
|
-
height: number;
|
|
104
|
-
width: number;
|
|
105
103
|
description: string | null;
|
|
104
|
+
width: number;
|
|
105
|
+
height: number;
|
|
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
|
-
height: number;
|
|
115
|
-
width: number;
|
|
116
114
|
description: string | null;
|
|
115
|
+
width: number;
|
|
116
|
+
height: number;
|
|
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
|
-
height: number;
|
|
129
|
-
width: number;
|
|
130
128
|
description: string | null;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
131
|
urls: {
|
|
132
132
|
small: string;
|
|
133
133
|
full: string;
|
|
@@ -8,19 +8,19 @@ declare const customTypeResponse: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
id: string;
|
|
10
10
|
label: string;
|
|
11
|
-
repeatable: boolean;
|
|
12
11
|
status: boolean;
|
|
12
|
+
repeatable: boolean;
|
|
13
13
|
}, {
|
|
14
14
|
id: string;
|
|
15
15
|
label: string;
|
|
16
|
-
repeatable: boolean;
|
|
17
16
|
status: boolean;
|
|
17
|
+
repeatable: boolean;
|
|
18
18
|
}>;
|
|
19
19
|
export type CustomTypeResponse = z.TypeOf<typeof customTypeResponse>;
|
|
20
20
|
export declare function getRepositoryCustomTypes(baseUrl: URL, repository: string, authStrategy: AuthStrategy): Promise<{
|
|
21
21
|
id: string;
|
|
22
22
|
label: string;
|
|
23
|
-
repeatable: boolean;
|
|
24
23
|
status: boolean;
|
|
24
|
+
repeatable: boolean;
|
|
25
25
|
}[]>;
|
|
26
26
|
export {};
|