@prismicio/editor-fields 0.4.50-shared-onboarding-in-page-builder.1 → 0.4.51
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 +27 -27
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +3 -3
- package/dist/core/service/customType.d.ts +6 -6
- package/dist/core/service/document.d.ts +23 -23
- package/dist/core/service/onboarding.d.ts +1 -1
- package/dist/core/service/repository.d.ts +1 -1
- 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 +25 -26
- package/dist/index.es.js +5273 -5274
- package/package.json +4 -4
|
@@ -54,9 +54,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
id: string;
|
|
58
|
-
url: string;
|
|
59
|
-
size: number;
|
|
60
57
|
tags: {
|
|
61
58
|
id: string;
|
|
62
59
|
name: string;
|
|
@@ -65,6 +62,9 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
65
62
|
count: number;
|
|
66
63
|
uploader_id?: string | undefined;
|
|
67
64
|
}[];
|
|
65
|
+
id: string;
|
|
66
|
+
url: string;
|
|
67
|
+
size: number;
|
|
68
68
|
last_modified: number;
|
|
69
69
|
kind: string;
|
|
70
70
|
filename: string;
|
|
@@ -82,9 +82,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
82
82
|
credits?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
id: string;
|
|
86
|
-
url: string;
|
|
87
|
-
size: number;
|
|
88
85
|
tags: {
|
|
89
86
|
id: string;
|
|
90
87
|
name: string;
|
|
@@ -93,6 +90,9 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
93
90
|
uploader_id?: string | undefined;
|
|
94
91
|
count?: number | undefined;
|
|
95
92
|
}[];
|
|
93
|
+
id: string;
|
|
94
|
+
url: string;
|
|
95
|
+
size: number;
|
|
96
96
|
last_modified: number;
|
|
97
97
|
kind: string;
|
|
98
98
|
filename: string;
|
|
@@ -169,9 +169,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
id: string;
|
|
173
|
-
url: string;
|
|
174
|
-
size: number;
|
|
175
172
|
tags: {
|
|
176
173
|
id: string;
|
|
177
174
|
name: string;
|
|
@@ -180,6 +177,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
180
177
|
count: number;
|
|
181
178
|
uploader_id?: string | undefined;
|
|
182
179
|
}[];
|
|
180
|
+
id: string;
|
|
181
|
+
url: string;
|
|
182
|
+
size: number;
|
|
183
183
|
last_modified: number;
|
|
184
184
|
kind: string;
|
|
185
185
|
filename: string;
|
|
@@ -197,9 +197,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
197
197
|
credits?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
id: string;
|
|
201
|
-
url: string;
|
|
202
|
-
size: number;
|
|
203
200
|
tags: {
|
|
204
201
|
id: string;
|
|
205
202
|
name: string;
|
|
@@ -208,6 +205,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
208
205
|
uploader_id?: string | undefined;
|
|
209
206
|
count?: number | undefined;
|
|
210
207
|
}[];
|
|
208
|
+
id: string;
|
|
209
|
+
url: string;
|
|
210
|
+
size: number;
|
|
211
211
|
last_modified: number;
|
|
212
212
|
kind: string;
|
|
213
213
|
filename: string;
|
|
@@ -228,9 +228,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
-
id: string;
|
|
232
|
-
url: string;
|
|
233
|
-
size: number;
|
|
234
231
|
tags: {
|
|
235
232
|
id: string;
|
|
236
233
|
name: string;
|
|
@@ -239,6 +236,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
239
236
|
count: number;
|
|
240
237
|
uploader_id?: string | undefined;
|
|
241
238
|
}[];
|
|
239
|
+
id: string;
|
|
240
|
+
url: string;
|
|
241
|
+
size: number;
|
|
242
242
|
last_modified: number;
|
|
243
243
|
kind: string;
|
|
244
244
|
filename: string;
|
|
@@ -260,9 +260,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
-
id: string;
|
|
264
|
-
url: string;
|
|
265
|
-
size: number;
|
|
266
263
|
tags: {
|
|
267
264
|
id: string;
|
|
268
265
|
name: string;
|
|
@@ -271,6 +268,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
271
268
|
uploader_id?: string | undefined;
|
|
272
269
|
count?: number | undefined;
|
|
273
270
|
}[];
|
|
271
|
+
id: string;
|
|
272
|
+
url: string;
|
|
273
|
+
size: number;
|
|
274
274
|
last_modified: number;
|
|
275
275
|
kind: string;
|
|
276
276
|
filename: string;
|
|
@@ -308,9 +308,6 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
308
308
|
page: number;
|
|
309
309
|
total: number;
|
|
310
310
|
items: {
|
|
311
|
-
id: string;
|
|
312
|
-
url: string;
|
|
313
|
-
size: number;
|
|
314
311
|
tags: {
|
|
315
312
|
id: string;
|
|
316
313
|
name: string;
|
|
@@ -319,6 +316,9 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
319
316
|
count: number;
|
|
320
317
|
uploader_id?: string | undefined;
|
|
321
318
|
}[];
|
|
319
|
+
id: string;
|
|
320
|
+
url: string;
|
|
321
|
+
size: number;
|
|
322
322
|
last_modified: number;
|
|
323
323
|
kind: string;
|
|
324
324
|
filename: string;
|
|
@@ -357,9 +357,6 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
357
357
|
setFilters: (filters: Partial<MediaLibraryFilters>) => void;
|
|
358
358
|
resetFilters: () => void;
|
|
359
359
|
media: {
|
|
360
|
-
id: string;
|
|
361
|
-
url: string;
|
|
362
|
-
size: number;
|
|
363
360
|
tags: {
|
|
364
361
|
id: string;
|
|
365
362
|
name: string;
|
|
@@ -368,6 +365,9 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
368
365
|
count: number;
|
|
369
366
|
uploader_id?: string | undefined;
|
|
370
367
|
}[];
|
|
368
|
+
id: string;
|
|
369
|
+
url: string;
|
|
370
|
+
size: number;
|
|
371
371
|
last_modified: number;
|
|
372
372
|
kind: string;
|
|
373
373
|
filename: string;
|
|
@@ -407,9 +407,6 @@ 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
|
-
url: string;
|
|
412
|
-
size: number;
|
|
413
410
|
tags: {
|
|
414
411
|
id: string;
|
|
415
412
|
name: string;
|
|
@@ -418,6 +415,9 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
418
415
|
count: number;
|
|
419
416
|
uploader_id?: string | undefined;
|
|
420
417
|
}[];
|
|
418
|
+
id: string;
|
|
419
|
+
url: string;
|
|
420
|
+
size: number;
|
|
421
421
|
last_modified: number;
|
|
422
422
|
kind: string;
|
|
423
423
|
filename: string;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
-
id: string;
|
|
3
|
-
url: string;
|
|
4
|
-
size: number;
|
|
5
2
|
tags: {
|
|
6
3
|
id: string;
|
|
7
4
|
name: string;
|
|
@@ -10,6 +7,9 @@ export declare function useSelectedMedia(): {
|
|
|
10
7
|
count: number;
|
|
11
8
|
uploader_id?: string | undefined;
|
|
12
9
|
}[];
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
size: number;
|
|
13
13
|
last_modified: number;
|
|
14
14
|
kind: string;
|
|
15
15
|
filename: string;
|
|
@@ -6,21 +6,21 @@ declare const customTypeResponse: z.ZodObject<{
|
|
|
6
6
|
repeatable: z.ZodBoolean;
|
|
7
7
|
status: z.ZodBoolean;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status: boolean;
|
|
10
|
-
id: string;
|
|
11
9
|
label: string;
|
|
10
|
+
id: string;
|
|
11
|
+
status: boolean;
|
|
12
12
|
repeatable: boolean;
|
|
13
13
|
}, {
|
|
14
|
-
status: boolean;
|
|
15
|
-
id: string;
|
|
16
14
|
label: string;
|
|
15
|
+
id: string;
|
|
16
|
+
status: boolean;
|
|
17
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
|
-
status: boolean;
|
|
22
|
-
id: string;
|
|
23
21
|
label: string;
|
|
22
|
+
id: string;
|
|
23
|
+
status: boolean;
|
|
24
24
|
repeatable: boolean;
|
|
25
25
|
}[]>;
|
|
26
26
|
export {};
|
|
@@ -66,6 +66,7 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
|
|
|
66
66
|
}>;
|
|
67
67
|
uid: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
tags: string[];
|
|
69
70
|
author: {
|
|
70
71
|
first_name?: string | undefined;
|
|
71
72
|
last_name?: string | undefined;
|
|
@@ -73,13 +74,13 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
|
|
|
73
74
|
uploadedAvatar?: string | undefined;
|
|
74
75
|
};
|
|
75
76
|
version_id: string;
|
|
76
|
-
tags: string[];
|
|
77
77
|
custom_type_label: string;
|
|
78
78
|
last_modified_date: Date;
|
|
79
79
|
preview_summary?: string | undefined;
|
|
80
80
|
preview_image?: string | undefined;
|
|
81
81
|
uid?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
+
tags: string[];
|
|
83
84
|
author: {
|
|
84
85
|
first_name?: string | undefined;
|
|
85
86
|
last_name?: string | undefined;
|
|
@@ -87,7 +88,6 @@ declare const documentVersionOkType: z.ZodIntersection<z.ZodDiscriminatedUnion<"
|
|
|
87
88
|
uploadedAvatar?: string | undefined;
|
|
88
89
|
};
|
|
89
90
|
version_id: string;
|
|
90
|
-
tags: string[];
|
|
91
91
|
custom_type_label: string;
|
|
92
92
|
last_modified_date: Date;
|
|
93
93
|
preview_summary?: string | undefined;
|
|
@@ -164,6 +164,7 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
164
164
|
}>;
|
|
165
165
|
uid: z.ZodOptional<z.ZodString>;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
tags: string[];
|
|
167
168
|
author: {
|
|
168
169
|
first_name?: string | undefined;
|
|
169
170
|
last_name?: string | undefined;
|
|
@@ -171,13 +172,13 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
171
172
|
uploadedAvatar?: string | undefined;
|
|
172
173
|
};
|
|
173
174
|
version_id: string;
|
|
174
|
-
tags: string[];
|
|
175
175
|
custom_type_label: string;
|
|
176
176
|
last_modified_date: Date;
|
|
177
177
|
preview_summary?: string | undefined;
|
|
178
178
|
preview_image?: string | undefined;
|
|
179
179
|
uid?: string | undefined;
|
|
180
180
|
}, {
|
|
181
|
+
tags: string[];
|
|
181
182
|
author: {
|
|
182
183
|
first_name?: string | undefined;
|
|
183
184
|
last_name?: string | undefined;
|
|
@@ -185,7 +186,6 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
185
186
|
uploadedAvatar?: string | undefined;
|
|
186
187
|
};
|
|
187
188
|
version_id: string;
|
|
188
|
-
tags: string[];
|
|
189
189
|
custom_type_label: string;
|
|
190
190
|
last_modified_date: Date;
|
|
191
191
|
preview_summary?: string | undefined;
|
|
@@ -212,6 +212,7 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
212
212
|
} | {
|
|
213
213
|
status: "archived";
|
|
214
214
|
}) & {
|
|
215
|
+
tags: string[];
|
|
215
216
|
author: {
|
|
216
217
|
first_name?: string | undefined;
|
|
217
218
|
last_name?: string | undefined;
|
|
@@ -219,7 +220,6 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
219
220
|
uploadedAvatar?: string | undefined;
|
|
220
221
|
};
|
|
221
222
|
version_id: string;
|
|
222
|
-
tags: string[];
|
|
223
223
|
custom_type_label: string;
|
|
224
224
|
last_modified_date: Date;
|
|
225
225
|
preview_summary?: string | undefined;
|
|
@@ -245,6 +245,7 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
245
245
|
} | {
|
|
246
246
|
status: "archived";
|
|
247
247
|
}) & {
|
|
248
|
+
tags: string[];
|
|
248
249
|
author: {
|
|
249
250
|
first_name?: string | undefined;
|
|
250
251
|
last_name?: string | undefined;
|
|
@@ -252,7 +253,6 @@ export declare const documentMetaOkType: z.ZodObject<{
|
|
|
252
253
|
uploadedAvatar?: string | undefined;
|
|
253
254
|
};
|
|
254
255
|
version_id: string;
|
|
255
|
-
tags: string[];
|
|
256
256
|
custom_type_label: string;
|
|
257
257
|
last_modified_date: Date;
|
|
258
258
|
preview_summary?: string | undefined;
|
|
@@ -334,6 +334,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
334
334
|
}>;
|
|
335
335
|
uid: z.ZodOptional<z.ZodString>;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
tags: string[];
|
|
337
338
|
author: {
|
|
338
339
|
first_name?: string | undefined;
|
|
339
340
|
last_name?: string | undefined;
|
|
@@ -341,13 +342,13 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
341
342
|
uploadedAvatar?: string | undefined;
|
|
342
343
|
};
|
|
343
344
|
version_id: string;
|
|
344
|
-
tags: string[];
|
|
345
345
|
custom_type_label: string;
|
|
346
346
|
last_modified_date: Date;
|
|
347
347
|
preview_summary?: string | undefined;
|
|
348
348
|
preview_image?: string | undefined;
|
|
349
349
|
uid?: string | undefined;
|
|
350
350
|
}, {
|
|
351
|
+
tags: string[];
|
|
351
352
|
author: {
|
|
352
353
|
first_name?: string | undefined;
|
|
353
354
|
last_name?: string | undefined;
|
|
@@ -355,7 +356,6 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
355
356
|
uploadedAvatar?: string | undefined;
|
|
356
357
|
};
|
|
357
358
|
version_id: string;
|
|
358
|
-
tags: string[];
|
|
359
359
|
custom_type_label: string;
|
|
360
360
|
last_modified_date: Date;
|
|
361
361
|
preview_summary?: string | undefined;
|
|
@@ -382,6 +382,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
382
382
|
} | {
|
|
383
383
|
status: "archived";
|
|
384
384
|
}) & {
|
|
385
|
+
tags: string[];
|
|
385
386
|
author: {
|
|
386
387
|
first_name?: string | undefined;
|
|
387
388
|
last_name?: string | undefined;
|
|
@@ -389,7 +390,6 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
389
390
|
uploadedAvatar?: string | undefined;
|
|
390
391
|
};
|
|
391
392
|
version_id: string;
|
|
392
|
-
tags: string[];
|
|
393
393
|
custom_type_label: string;
|
|
394
394
|
last_modified_date: Date;
|
|
395
395
|
preview_summary?: string | undefined;
|
|
@@ -415,6 +415,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
415
415
|
} | {
|
|
416
416
|
status: "archived";
|
|
417
417
|
}) & {
|
|
418
|
+
tags: string[];
|
|
418
419
|
author: {
|
|
419
420
|
first_name?: string | undefined;
|
|
420
421
|
last_name?: string | undefined;
|
|
@@ -422,7 +423,6 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
422
423
|
uploadedAvatar?: string | undefined;
|
|
423
424
|
};
|
|
424
425
|
version_id: string;
|
|
425
|
-
tags: string[];
|
|
426
426
|
custom_type_label: string;
|
|
427
427
|
last_modified_date: Date;
|
|
428
428
|
preview_summary?: string | undefined;
|
|
@@ -453,6 +453,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
453
453
|
} | {
|
|
454
454
|
status: "archived";
|
|
455
455
|
}) & {
|
|
456
|
+
tags: string[];
|
|
456
457
|
author: {
|
|
457
458
|
first_name?: string | undefined;
|
|
458
459
|
last_name?: string | undefined;
|
|
@@ -460,7 +461,6 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
460
461
|
uploadedAvatar?: string | undefined;
|
|
461
462
|
};
|
|
462
463
|
version_id: string;
|
|
463
|
-
tags: string[];
|
|
464
464
|
custom_type_label: string;
|
|
465
465
|
last_modified_date: Date;
|
|
466
466
|
preview_summary?: string | undefined;
|
|
@@ -490,6 +490,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
490
490
|
} | {
|
|
491
491
|
status: "archived";
|
|
492
492
|
}) & {
|
|
493
|
+
tags: string[];
|
|
493
494
|
author: {
|
|
494
495
|
first_name?: string | undefined;
|
|
495
496
|
last_name?: string | undefined;
|
|
@@ -497,7 +498,6 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
497
498
|
uploadedAvatar?: string | undefined;
|
|
498
499
|
};
|
|
499
500
|
version_id: string;
|
|
500
|
-
tags: string[];
|
|
501
501
|
custom_type_label: string;
|
|
502
502
|
last_modified_date: Date;
|
|
503
503
|
preview_summary?: string | undefined;
|
|
@@ -854,7 +854,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
854
854
|
label?: string | null | undefined;
|
|
855
855
|
direction?: string | null | undefined;
|
|
856
856
|
}) | ({
|
|
857
|
-
type: "
|
|
857
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
858
858
|
content: {
|
|
859
859
|
text: string;
|
|
860
860
|
} & {
|
|
@@ -1201,7 +1201,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
1201
1201
|
label?: string | null | undefined;
|
|
1202
1202
|
direction?: string | null | undefined;
|
|
1203
1203
|
}) | ({
|
|
1204
|
-
type: "
|
|
1204
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
1205
1205
|
content: {
|
|
1206
1206
|
text: string;
|
|
1207
1207
|
} & {
|
|
@@ -1540,7 +1540,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
1540
1540
|
label?: string | null | undefined;
|
|
1541
1541
|
direction?: string | null | undefined;
|
|
1542
1542
|
}) | ({
|
|
1543
|
-
type: "
|
|
1543
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
1544
1544
|
content: {
|
|
1545
1545
|
text: string;
|
|
1546
1546
|
} & {
|
|
@@ -1881,7 +1881,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
1881
1881
|
label?: string | null | undefined;
|
|
1882
1882
|
direction?: string | null | undefined;
|
|
1883
1883
|
}) | ({
|
|
1884
|
-
type: "
|
|
1884
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
1885
1885
|
content: {
|
|
1886
1886
|
text: string;
|
|
1887
1887
|
} & {
|
|
@@ -2220,7 +2220,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2220
2220
|
label?: string | null | undefined;
|
|
2221
2221
|
direction?: string | null | undefined;
|
|
2222
2222
|
}) | ({
|
|
2223
|
-
type: "
|
|
2223
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
2224
2224
|
content: {
|
|
2225
2225
|
text: string;
|
|
2226
2226
|
} & {
|
|
@@ -2557,7 +2557,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2557
2557
|
label?: string | null | undefined;
|
|
2558
2558
|
direction?: string | null | undefined;
|
|
2559
2559
|
}) | ({
|
|
2560
|
-
type: "
|
|
2560
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
2561
2561
|
content: {
|
|
2562
2562
|
text: string;
|
|
2563
2563
|
} & {
|
|
@@ -2905,7 +2905,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
2905
2905
|
label?: string | null | undefined;
|
|
2906
2906
|
direction?: string | null | undefined;
|
|
2907
2907
|
}) | ({
|
|
2908
|
-
type: "
|
|
2908
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
2909
2909
|
content: {
|
|
2910
2910
|
text: string;
|
|
2911
2911
|
} & {
|
|
@@ -3244,7 +3244,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
3244
3244
|
label?: string | null | undefined;
|
|
3245
3245
|
direction?: string | null | undefined;
|
|
3246
3246
|
}) | ({
|
|
3247
|
-
type: "
|
|
3247
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
3248
3248
|
content: {
|
|
3249
3249
|
text: string;
|
|
3250
3250
|
} & {
|
|
@@ -3585,7 +3585,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
3585
3585
|
label?: string | null | undefined;
|
|
3586
3586
|
direction?: string | null | undefined;
|
|
3587
3587
|
}) | ({
|
|
3588
|
-
type: "
|
|
3588
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
3589
3589
|
content: {
|
|
3590
3590
|
text: string;
|
|
3591
3591
|
} & {
|
|
@@ -3924,7 +3924,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
3924
3924
|
label?: string | null | undefined;
|
|
3925
3925
|
direction?: string | null | undefined;
|
|
3926
3926
|
}) | ({
|
|
3927
|
-
type: "
|
|
3927
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
3928
3928
|
content: {
|
|
3929
3929
|
text: string;
|
|
3930
3930
|
} & {
|
|
@@ -4261,7 +4261,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
4261
4261
|
label?: string | null | undefined;
|
|
4262
4262
|
direction?: string | null | undefined;
|
|
4263
4263
|
}) | ({
|
|
4264
|
-
type: "
|
|
4264
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
4265
4265
|
content: {
|
|
4266
4266
|
text: string;
|
|
4267
4267
|
} & {
|
|
@@ -13,7 +13,7 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
13
13
|
completedSteps: z.ZodArray<z.ZodString, "many">;
|
|
14
14
|
isDismissed: z.ZodBoolean;
|
|
15
15
|
context: z.ZodObject<{
|
|
16
|
-
framework: z.
|
|
16
|
+
framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
|
|
17
17
|
starterId: z.ZodNullable<z.ZodString>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
@@ -93,7 +93,6 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
}>;
|
|
94
94
|
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
97
96
|
authors: {
|
|
98
97
|
id: string;
|
|
99
98
|
email: string;
|
|
@@ -109,6 +108,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
109
108
|
quotas: {
|
|
110
109
|
slicemachineEnabled: boolean;
|
|
111
110
|
};
|
|
111
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
112
112
|
storageVersion: {
|
|
113
113
|
major: number;
|
|
114
114
|
minor: number;
|
|
@@ -25,6 +25,7 @@ export declare function useDocuments(params: {
|
|
|
25
25
|
} | {
|
|
26
26
|
status: "archived";
|
|
27
27
|
}) & {
|
|
28
|
+
tags: string[];
|
|
28
29
|
author: {
|
|
29
30
|
first_name?: string | undefined;
|
|
30
31
|
last_name?: string | undefined;
|
|
@@ -32,7 +33,6 @@ export declare function useDocuments(params: {
|
|
|
32
33
|
uploadedAvatar?: string | undefined;
|
|
33
34
|
};
|
|
34
35
|
version_id: string;
|
|
35
|
-
tags: string[];
|
|
36
36
|
custom_type_label: string;
|
|
37
37
|
last_modified_date: Date;
|
|
38
38
|
preview_summary?: string | undefined;
|
|
@@ -52,6 +52,7 @@ export declare function useDocuments(params: {
|
|
|
52
52
|
} | {
|
|
53
53
|
status: "archived";
|
|
54
54
|
}) & {
|
|
55
|
+
tags: string[];
|
|
55
56
|
author: {
|
|
56
57
|
first_name?: string | undefined;
|
|
57
58
|
last_name?: string | undefined;
|
|
@@ -59,7 +60,6 @@ export declare function useDocuments(params: {
|
|
|
59
60
|
uploadedAvatar?: string | undefined;
|
|
60
61
|
};
|
|
61
62
|
version_id: string;
|
|
62
|
-
tags: string[];
|
|
63
63
|
custom_type_label: string;
|
|
64
64
|
last_modified_date: Date;
|
|
65
65
|
preview_summary?: string | undefined;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
|
|
4
4
|
converter: {
|
|
5
5
|
fromPrismic(schema: Schema<any, any>): (list: {
|
|
6
|
-
type: "
|
|
6
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
7
7
|
content: {
|
|
8
8
|
text: string;
|
|
9
9
|
} & {
|
|
@@ -64,7 +64,7 @@ declare const _default: {
|
|
|
64
64
|
direction?: string | undefined;
|
|
65
65
|
}) => ProsemirrorNode | undefined;
|
|
66
66
|
toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
|
|
67
|
-
type: "
|
|
67
|
+
type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
|
|
68
68
|
content: {
|
|
69
69
|
text: string;
|
|
70
70
|
} & {
|