@prismicio/editor-fields 0.4.57 → 0.4.58-alpha.repeatable-link-base.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.
- package/dist/EditorConfig.d.ts +2 -0
- package/dist/FieldContext.d.ts +5 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +75 -75
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +7 -7
- package/dist/core/repeatable.d.ts +3 -0
- package/dist/core/service/customType.d.ts +38 -0
- package/dist/core/service/document.d.ts +1674 -422
- package/dist/core/service/documentSearch.d.ts +415 -0
- package/dist/core/service/index.d.ts +2 -0
- package/dist/core/service/repository.d.ts +158 -21
- package/dist/core/service/role.d.ts +141 -0
- package/dist/core/service/teamSpace.d.ts +48 -0
- package/dist/core/service/user.d.ts +11 -5
- package/dist/fields/ImageField/useImageField.d.ts +1 -1
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +73 -44
- package/dist/fields/LinkField/LinkField.d.ts +4 -3
- package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +12 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +11 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +11 -0
- package/dist/fields/LinkField/RepeatableLinkField/index.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/useRepeatableLinkField.d.ts +84 -0
- package/dist/fields/LinkField/index.d.ts +1 -0
- package/dist/fields/LinkField/useLinkField.d.ts +5 -2
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +6 -6
- package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/ImageLinkControl.d.ts +0 -9
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +37 -39
- package/dist/index.d.ts +8 -8
- package/dist/index.es.js +25739 -22410
- package/dist/slices/utils.d.ts +101 -27
- package/package.json +25 -24
- package/dist/fields/LinkField/RepeatableLinkField.d.ts +0 -12
package/dist/EditorConfig.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ type SearchDocuments = {
|
|
|
39
39
|
localeId?: string;
|
|
40
40
|
customTypeId?: string;
|
|
41
41
|
documentSearchBaseUrl: URL;
|
|
42
|
+
searchDocumentsWithInterestingVersions: boolean;
|
|
42
43
|
};
|
|
43
44
|
type IntegrationFields = {
|
|
44
45
|
integrationFields?: never;
|
|
@@ -77,6 +78,7 @@ interface OnAnalyticsEvent {
|
|
|
77
78
|
type: "web" | "media" | "document";
|
|
78
79
|
isInSlice: string;
|
|
79
80
|
isInGroup: string;
|
|
81
|
+
isInRepeatable: string;
|
|
80
82
|
customTypeFormat: "page" | "custom";
|
|
81
83
|
}): void;
|
|
82
84
|
(event: "Unsplash Image Searched" | "Unsplash Image Added"): void;
|
package/dist/FieldContext.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface FieldContextValue {
|
|
|
5
5
|
customTypeFormat: CustomTypeFormat;
|
|
6
6
|
isInSlice: boolean;
|
|
7
7
|
isInGroup: boolean;
|
|
8
|
+
isInRepeatable: boolean;
|
|
8
9
|
}
|
|
9
10
|
interface RootFieldContextProviderProps {
|
|
10
11
|
customTypeFormat: CustomTypeFormat;
|
|
@@ -23,5 +24,9 @@ export declare function FieldInSliceContextProvider(props: PropsWithChildren): J
|
|
|
23
24
|
* Overrides the field context to indicate that the field is in a group.
|
|
24
25
|
*/
|
|
25
26
|
export declare function FieldInGroupContextProvider(props: PropsWithChildren): JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Overrides the field context to indicate that the field is repeatable.
|
|
29
|
+
*/
|
|
30
|
+
export declare function FieldInRepeatableContextProvider(props: PropsWithChildren): JSX.Element;
|
|
26
31
|
export declare function useFieldContext(): FieldContextValue | undefined;
|
|
27
32
|
export {};
|
|
@@ -21,15 +21,15 @@ 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
|
-
filename?: string | undefined;
|
|
25
|
-
alt?: string | undefined;
|
|
26
24
|
notes?: string | undefined;
|
|
27
25
|
credits?: string | undefined;
|
|
26
|
+
alt?: string | undefined;
|
|
27
|
+
filename?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
filename?: string[] | undefined;
|
|
30
|
-
alt?: string[] | undefined;
|
|
31
29
|
notes?: string[] | undefined;
|
|
32
30
|
credits?: string[] | undefined;
|
|
31
|
+
alt?: string[] | undefined;
|
|
32
|
+
filename?: string[] | undefined;
|
|
33
33
|
}>>;
|
|
34
34
|
tags: z.ZodArray<z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
@@ -41,15 +41,15 @@ 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">;
|
|
@@ -58,56 +58,56 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
58
58
|
tags: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
|
-
last_modified: number;
|
|
62
61
|
created_at: number;
|
|
62
|
+
last_modified: number;
|
|
63
63
|
count: number;
|
|
64
64
|
uploader_id?: string | undefined;
|
|
65
65
|
}[];
|
|
66
66
|
url: string;
|
|
67
67
|
size: number;
|
|
68
68
|
kind: string;
|
|
69
|
-
filename: string;
|
|
70
69
|
last_modified: number;
|
|
71
|
-
|
|
70
|
+
filename: string;
|
|
71
|
+
notes?: string | undefined;
|
|
72
72
|
width?: number | undefined;
|
|
73
73
|
height?: number | undefined;
|
|
74
|
+
credits?: string | undefined;
|
|
74
75
|
alt?: string | undefined;
|
|
75
76
|
uploader_id?: string | undefined;
|
|
76
|
-
|
|
77
|
-
credits?: string | undefined;
|
|
77
|
+
extension?: string | undefined;
|
|
78
78
|
search_highlight?: {
|
|
79
|
-
filename?: string | undefined;
|
|
80
|
-
alt?: string | undefined;
|
|
81
79
|
notes?: string | undefined;
|
|
82
80
|
credits?: string | undefined;
|
|
81
|
+
alt?: string | undefined;
|
|
82
|
+
filename?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
id: string;
|
|
86
86
|
tags: {
|
|
87
87
|
id: string;
|
|
88
88
|
name: string;
|
|
89
|
-
last_modified: number;
|
|
90
89
|
created_at: number;
|
|
90
|
+
last_modified: number;
|
|
91
91
|
uploader_id?: string | undefined;
|
|
92
92
|
count?: number | undefined;
|
|
93
93
|
}[];
|
|
94
94
|
url: string;
|
|
95
95
|
size: number;
|
|
96
96
|
kind: string;
|
|
97
|
-
filename: string;
|
|
98
97
|
last_modified: number;
|
|
99
|
-
|
|
98
|
+
filename: string;
|
|
99
|
+
notes?: string | undefined;
|
|
100
100
|
width?: number | undefined;
|
|
101
101
|
height?: number | undefined;
|
|
102
|
+
credits?: string | undefined;
|
|
102
103
|
alt?: string | undefined;
|
|
103
104
|
uploader_id?: string | undefined;
|
|
104
|
-
|
|
105
|
-
credits?: string | undefined;
|
|
105
|
+
extension?: string | undefined;
|
|
106
106
|
search_highlight?: {
|
|
107
|
-
filename?: string[] | undefined;
|
|
108
|
-
alt?: string[] | undefined;
|
|
109
107
|
notes?: string[] | undefined;
|
|
110
108
|
credits?: string[] | undefined;
|
|
109
|
+
alt?: string[] | undefined;
|
|
110
|
+
filename?: string[] | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const assetApiHeaders: {
|
|
@@ -136,15 +136,15 @@ 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
|
-
filename?: string | undefined;
|
|
140
|
-
alt?: string | undefined;
|
|
141
139
|
notes?: string | undefined;
|
|
142
140
|
credits?: string | undefined;
|
|
141
|
+
alt?: string | undefined;
|
|
142
|
+
filename?: string | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
filename?: string[] | undefined;
|
|
145
|
-
alt?: string[] | undefined;
|
|
146
144
|
notes?: string[] | undefined;
|
|
147
145
|
credits?: string[] | undefined;
|
|
146
|
+
alt?: string[] | undefined;
|
|
147
|
+
filename?: string[] | undefined;
|
|
148
148
|
}>>;
|
|
149
149
|
tags: z.ZodArray<z.ZodObject<{
|
|
150
150
|
id: z.ZodString;
|
|
@@ -156,15 +156,15 @@ 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">;
|
|
@@ -173,56 +173,56 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
173
173
|
tags: {
|
|
174
174
|
id: string;
|
|
175
175
|
name: string;
|
|
176
|
-
last_modified: number;
|
|
177
176
|
created_at: number;
|
|
177
|
+
last_modified: number;
|
|
178
178
|
count: number;
|
|
179
179
|
uploader_id?: string | undefined;
|
|
180
180
|
}[];
|
|
181
181
|
url: string;
|
|
182
182
|
size: number;
|
|
183
183
|
kind: string;
|
|
184
|
-
filename: string;
|
|
185
184
|
last_modified: number;
|
|
186
|
-
|
|
185
|
+
filename: string;
|
|
186
|
+
notes?: string | undefined;
|
|
187
187
|
width?: number | undefined;
|
|
188
188
|
height?: number | undefined;
|
|
189
|
+
credits?: string | undefined;
|
|
189
190
|
alt?: string | undefined;
|
|
190
191
|
uploader_id?: string | undefined;
|
|
191
|
-
|
|
192
|
-
credits?: string | undefined;
|
|
192
|
+
extension?: string | undefined;
|
|
193
193
|
search_highlight?: {
|
|
194
|
-
filename?: string | undefined;
|
|
195
|
-
alt?: string | undefined;
|
|
196
194
|
notes?: string | undefined;
|
|
197
195
|
credits?: string | undefined;
|
|
196
|
+
alt?: string | undefined;
|
|
197
|
+
filename?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
200
|
id: string;
|
|
201
201
|
tags: {
|
|
202
202
|
id: string;
|
|
203
203
|
name: string;
|
|
204
|
-
last_modified: number;
|
|
205
204
|
created_at: number;
|
|
205
|
+
last_modified: number;
|
|
206
206
|
uploader_id?: string | undefined;
|
|
207
207
|
count?: number | undefined;
|
|
208
208
|
}[];
|
|
209
209
|
url: string;
|
|
210
210
|
size: number;
|
|
211
211
|
kind: string;
|
|
212
|
-
filename: string;
|
|
213
212
|
last_modified: number;
|
|
214
|
-
|
|
213
|
+
filename: string;
|
|
214
|
+
notes?: string | undefined;
|
|
215
215
|
width?: number | undefined;
|
|
216
216
|
height?: number | undefined;
|
|
217
|
+
credits?: string | undefined;
|
|
217
218
|
alt?: string | undefined;
|
|
218
219
|
uploader_id?: string | undefined;
|
|
219
|
-
|
|
220
|
-
credits?: string | undefined;
|
|
220
|
+
extension?: string | undefined;
|
|
221
221
|
search_highlight?: {
|
|
222
|
-
filename?: string[] | undefined;
|
|
223
|
-
alt?: string[] | undefined;
|
|
224
222
|
notes?: string[] | undefined;
|
|
225
223
|
credits?: string[] | undefined;
|
|
224
|
+
alt?: string[] | undefined;
|
|
225
|
+
filename?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -232,28 +232,28 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
232
232
|
tags: {
|
|
233
233
|
id: string;
|
|
234
234
|
name: string;
|
|
235
|
-
last_modified: number;
|
|
236
235
|
created_at: number;
|
|
236
|
+
last_modified: number;
|
|
237
237
|
count: number;
|
|
238
238
|
uploader_id?: string | undefined;
|
|
239
239
|
}[];
|
|
240
240
|
url: string;
|
|
241
241
|
size: number;
|
|
242
242
|
kind: string;
|
|
243
|
-
filename: string;
|
|
244
243
|
last_modified: number;
|
|
245
|
-
|
|
244
|
+
filename: string;
|
|
245
|
+
notes?: string | undefined;
|
|
246
246
|
width?: number | undefined;
|
|
247
247
|
height?: number | undefined;
|
|
248
|
+
credits?: string | undefined;
|
|
248
249
|
alt?: string | undefined;
|
|
249
250
|
uploader_id?: string | undefined;
|
|
250
|
-
|
|
251
|
-
credits?: string | undefined;
|
|
251
|
+
extension?: string | undefined;
|
|
252
252
|
search_highlight?: {
|
|
253
|
-
filename?: string | undefined;
|
|
254
|
-
alt?: string | undefined;
|
|
255
253
|
notes?: string | undefined;
|
|
256
254
|
credits?: string | undefined;
|
|
255
|
+
alt?: string | undefined;
|
|
256
|
+
filename?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
cursor?: string | undefined;
|
|
@@ -264,28 +264,28 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
264
264
|
tags: {
|
|
265
265
|
id: string;
|
|
266
266
|
name: string;
|
|
267
|
-
last_modified: number;
|
|
268
267
|
created_at: number;
|
|
268
|
+
last_modified: number;
|
|
269
269
|
uploader_id?: string | undefined;
|
|
270
270
|
count?: number | undefined;
|
|
271
271
|
}[];
|
|
272
272
|
url: string;
|
|
273
273
|
size: number;
|
|
274
274
|
kind: string;
|
|
275
|
-
filename: string;
|
|
276
275
|
last_modified: number;
|
|
277
|
-
|
|
276
|
+
filename: string;
|
|
277
|
+
notes?: string | undefined;
|
|
278
278
|
width?: number | undefined;
|
|
279
279
|
height?: number | undefined;
|
|
280
|
+
credits?: string | undefined;
|
|
280
281
|
alt?: string | undefined;
|
|
281
282
|
uploader_id?: string | undefined;
|
|
282
|
-
|
|
283
|
-
credits?: string | undefined;
|
|
283
|
+
extension?: string | undefined;
|
|
284
284
|
search_highlight?: {
|
|
285
|
-
filename?: string[] | undefined;
|
|
286
|
-
alt?: string[] | undefined;
|
|
287
285
|
notes?: string[] | undefined;
|
|
288
286
|
credits?: string[] | undefined;
|
|
287
|
+
alt?: string[] | undefined;
|
|
288
|
+
filename?: string[] | undefined;
|
|
289
289
|
} | undefined;
|
|
290
290
|
}[];
|
|
291
291
|
cursor?: string | undefined;
|
|
@@ -312,28 +312,28 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
312
312
|
tags: {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
315
|
-
last_modified: number;
|
|
316
315
|
created_at: number;
|
|
316
|
+
last_modified: number;
|
|
317
317
|
count: number;
|
|
318
318
|
uploader_id?: string | undefined;
|
|
319
319
|
}[];
|
|
320
320
|
url: string;
|
|
321
321
|
size: number;
|
|
322
322
|
kind: string;
|
|
323
|
-
filename: string;
|
|
324
323
|
last_modified: number;
|
|
325
|
-
|
|
324
|
+
filename: string;
|
|
325
|
+
notes?: string | undefined;
|
|
326
326
|
width?: number | undefined;
|
|
327
327
|
height?: number | undefined;
|
|
328
|
+
credits?: string | undefined;
|
|
328
329
|
alt?: string | undefined;
|
|
329
330
|
uploader_id?: string | undefined;
|
|
330
|
-
|
|
331
|
-
credits?: string | undefined;
|
|
331
|
+
extension?: string | undefined;
|
|
332
332
|
search_highlight?: {
|
|
333
|
-
filename?: string | undefined;
|
|
334
|
-
alt?: string | undefined;
|
|
335
333
|
notes?: string | undefined;
|
|
336
334
|
credits?: string | undefined;
|
|
335
|
+
alt?: string | undefined;
|
|
336
|
+
filename?: string | undefined;
|
|
337
337
|
} | undefined;
|
|
338
338
|
}[];
|
|
339
339
|
cursor?: string | undefined;
|
|
@@ -361,28 +361,28 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
361
361
|
tags: {
|
|
362
362
|
id: string;
|
|
363
363
|
name: string;
|
|
364
|
-
last_modified: number;
|
|
365
364
|
created_at: number;
|
|
365
|
+
last_modified: number;
|
|
366
366
|
count: number;
|
|
367
367
|
uploader_id?: string | undefined;
|
|
368
368
|
}[];
|
|
369
369
|
url: string;
|
|
370
370
|
size: number;
|
|
371
371
|
kind: string;
|
|
372
|
-
filename: string;
|
|
373
372
|
last_modified: number;
|
|
374
|
-
|
|
373
|
+
filename: string;
|
|
374
|
+
notes?: string | undefined;
|
|
375
375
|
width?: number | undefined;
|
|
376
376
|
height?: number | undefined;
|
|
377
|
+
credits?: string | undefined;
|
|
377
378
|
alt?: string | undefined;
|
|
378
379
|
uploader_id?: string | undefined;
|
|
379
|
-
|
|
380
|
-
credits?: string | undefined;
|
|
380
|
+
extension?: string | undefined;
|
|
381
381
|
search_highlight?: {
|
|
382
|
-
filename?: string | undefined;
|
|
383
|
-
alt?: string | undefined;
|
|
384
382
|
notes?: string | undefined;
|
|
385
383
|
credits?: string | undefined;
|
|
384
|
+
alt?: string | undefined;
|
|
385
|
+
filename?: string | undefined;
|
|
386
386
|
} | undefined;
|
|
387
387
|
}[];
|
|
388
388
|
mediaTotal: number;
|
|
@@ -411,28 +411,28 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
411
411
|
tags: {
|
|
412
412
|
id: string;
|
|
413
413
|
name: string;
|
|
414
|
-
last_modified: number;
|
|
415
414
|
created_at: number;
|
|
415
|
+
last_modified: number;
|
|
416
416
|
count: number;
|
|
417
417
|
uploader_id?: string | undefined;
|
|
418
418
|
}[];
|
|
419
419
|
url: string;
|
|
420
420
|
size: number;
|
|
421
421
|
kind: string;
|
|
422
|
-
filename: string;
|
|
423
422
|
last_modified: number;
|
|
424
|
-
|
|
423
|
+
filename: string;
|
|
424
|
+
notes?: string | undefined;
|
|
425
425
|
width?: number | undefined;
|
|
426
426
|
height?: number | undefined;
|
|
427
|
+
credits?: string | undefined;
|
|
427
428
|
alt?: string | undefined;
|
|
428
429
|
uploader_id?: string | undefined;
|
|
429
|
-
|
|
430
|
-
credits?: string | undefined;
|
|
430
|
+
extension?: string | undefined;
|
|
431
431
|
search_highlight?: {
|
|
432
|
-
filename?: string | undefined;
|
|
433
|
-
alt?: string | undefined;
|
|
434
432
|
notes?: string | undefined;
|
|
435
433
|
credits?: string | undefined;
|
|
434
|
+
alt?: string | undefined;
|
|
435
|
+
filename?: string | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}[];
|
|
438
438
|
interface PageMetadata {
|
|
@@ -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
|
}>;
|
|
@@ -3,27 +3,27 @@ export declare function useSelectedMedia(): {
|
|
|
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
|
}[];
|
|
11
11
|
url: string;
|
|
12
12
|
size: number;
|
|
13
13
|
kind: string;
|
|
14
|
-
filename: string;
|
|
15
14
|
last_modified: number;
|
|
16
|
-
|
|
15
|
+
filename: string;
|
|
16
|
+
notes?: string | undefined;
|
|
17
17
|
width?: number | undefined;
|
|
18
18
|
height?: number | undefined;
|
|
19
|
+
credits?: string | undefined;
|
|
19
20
|
alt?: string | undefined;
|
|
20
21
|
uploader_id?: string | undefined;
|
|
21
|
-
|
|
22
|
-
credits?: string | undefined;
|
|
22
|
+
extension?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
|
-
filename?: string | undefined;
|
|
25
|
-
alt?: string | undefined;
|
|
26
24
|
notes?: string | undefined;
|
|
27
25
|
credits?: string | undefined;
|
|
26
|
+
alt?: string | undefined;
|
|
27
|
+
filename?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LinkContent, type NestableContent, type RepeatableContent } from "@prismicio/types-internal/lib/content";
|
|
2
|
+
export declare function getRepeatableContent(content: NestableContent | undefined): RepeatableContent | undefined;
|
|
3
|
+
export declare function getLinkContent(content: NestableContent | undefined): LinkContent | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
4
|
declare const customTypeResponse: z.ZodObject<{
|
|
@@ -23,4 +24,41 @@ export declare function getRepositoryCustomTypes(baseUrl: URL, repository: strin
|
|
|
23
24
|
repeatable: boolean;
|
|
24
25
|
status: boolean;
|
|
25
26
|
}[]>;
|
|
27
|
+
interface CustomTypesOptionsArgs {
|
|
28
|
+
baseUrl: URL;
|
|
29
|
+
repository: string;
|
|
30
|
+
authStrategy: AuthStrategy;
|
|
31
|
+
}
|
|
32
|
+
export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
repeatable: boolean;
|
|
36
|
+
status: boolean;
|
|
37
|
+
}[], Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
repeatable: boolean;
|
|
41
|
+
status: boolean;
|
|
42
|
+
}[], string[]> & {
|
|
43
|
+
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
44
|
+
id: string;
|
|
45
|
+
label: string;
|
|
46
|
+
repeatable: boolean;
|
|
47
|
+
status: boolean;
|
|
48
|
+
}[]> | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string;
|
|
53
|
+
repeatable: boolean;
|
|
54
|
+
status: boolean;
|
|
55
|
+
}[]>;
|
|
56
|
+
};
|
|
57
|
+
export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
|
|
58
|
+
export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
|
|
59
|
+
id: string;
|
|
60
|
+
label: string;
|
|
61
|
+
repeatable: boolean;
|
|
62
|
+
status: boolean;
|
|
63
|
+
}[]>;
|
|
26
64
|
export {};
|