@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
|
@@ -9,15 +9,15 @@ declare const repositoryAuthor: z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
11
|
email: string;
|
|
12
|
+
uploadedAvatar?: string | undefined;
|
|
12
13
|
firstname?: string | undefined;
|
|
13
14
|
lastname?: string | undefined;
|
|
14
|
-
uploadedAvatar?: string | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
id: string;
|
|
17
17
|
email: string;
|
|
18
|
+
uploadedAvatar?: string | undefined;
|
|
18
19
|
firstname?: string | undefined;
|
|
19
20
|
lastname?: string | undefined;
|
|
20
|
-
uploadedAvatar?: string | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
export type RepositoryAuthor = z.TypeOf<typeof repositoryAuthor>;
|
|
23
23
|
declare const repositoryQuotas: z.ZodObject<{
|
|
@@ -32,7 +32,7 @@ export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt"
|
|
|
32
32
|
export type RepositoryFramework = z.TypeOf<typeof repositoryFramework>;
|
|
33
33
|
declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
34
34
|
simulator_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
languages: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
35
|
+
languages: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
36
36
|
id: z.ZodString;
|
|
37
37
|
name: z.ZodString;
|
|
38
38
|
is_master: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -44,10 +44,18 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
46
|
is_master?: boolean | undefined;
|
|
47
|
-
}>,
|
|
47
|
+
}>, {
|
|
48
|
+
isMaster?: boolean | undefined;
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
}, {
|
|
48
52
|
id: string;
|
|
49
53
|
name: string;
|
|
50
54
|
is_master?: boolean | undefined;
|
|
55
|
+
}>, "many">, {
|
|
56
|
+
isMaster?: boolean | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
label: string;
|
|
51
59
|
}[], {
|
|
52
60
|
id: string;
|
|
53
61
|
name: string;
|
|
@@ -62,15 +70,15 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
62
70
|
}, "strip", z.ZodTypeAny, {
|
|
63
71
|
id: string;
|
|
64
72
|
email: string;
|
|
73
|
+
uploadedAvatar?: string | undefined;
|
|
65
74
|
firstname?: string | undefined;
|
|
66
75
|
lastname?: string | undefined;
|
|
67
|
-
uploadedAvatar?: string | undefined;
|
|
68
76
|
}, {
|
|
69
77
|
id: string;
|
|
70
78
|
email: string;
|
|
79
|
+
uploadedAvatar?: string | undefined;
|
|
71
80
|
firstname?: string | undefined;
|
|
72
81
|
lastname?: string | undefined;
|
|
73
|
-
uploadedAvatar?: string | undefined;
|
|
74
82
|
}>, "many">>>;
|
|
75
83
|
quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
76
84
|
slicemachineEnabled: z.ZodBoolean;
|
|
@@ -96,26 +104,26 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
96
104
|
authors: {
|
|
97
105
|
id: string;
|
|
98
106
|
email: string;
|
|
107
|
+
uploadedAvatar?: string | undefined;
|
|
99
108
|
firstname?: string | undefined;
|
|
100
109
|
lastname?: string | undefined;
|
|
101
|
-
uploadedAvatar?: string | undefined;
|
|
102
110
|
}[];
|
|
103
|
-
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
104
111
|
languages: {
|
|
112
|
+
isMaster?: boolean | undefined;
|
|
105
113
|
id: string;
|
|
106
|
-
|
|
107
|
-
is_master?: boolean | undefined;
|
|
114
|
+
label: string;
|
|
108
115
|
}[];
|
|
109
116
|
quotas: {
|
|
110
117
|
slicemachineEnabled: boolean;
|
|
111
118
|
};
|
|
119
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
112
120
|
storageVersion: {
|
|
113
121
|
major: number;
|
|
114
122
|
minor: number;
|
|
115
123
|
};
|
|
124
|
+
uploadedAvatar?: string | undefined;
|
|
116
125
|
simulator_url?: string | null | undefined;
|
|
117
126
|
starterId?: string | undefined;
|
|
118
|
-
uploadedAvatar?: string | undefined;
|
|
119
127
|
}, {
|
|
120
128
|
languages: {
|
|
121
129
|
id: string;
|
|
@@ -126,20 +134,20 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
126
134
|
major: number;
|
|
127
135
|
minor: number;
|
|
128
136
|
};
|
|
129
|
-
|
|
137
|
+
uploadedAvatar?: string | undefined;
|
|
130
138
|
authors?: {
|
|
131
139
|
id: string;
|
|
132
140
|
email: string;
|
|
141
|
+
uploadedAvatar?: string | undefined;
|
|
133
142
|
firstname?: string | undefined;
|
|
134
143
|
lastname?: string | undefined;
|
|
135
|
-
uploadedAvatar?: string | undefined;
|
|
136
144
|
}[] | undefined;
|
|
145
|
+
simulator_url?: string | null | undefined;
|
|
137
146
|
quotas?: {
|
|
138
147
|
slicemachineEnabled: boolean;
|
|
139
148
|
} | undefined;
|
|
140
149
|
framework?: unknown;
|
|
141
150
|
starterId?: string | undefined;
|
|
142
|
-
uploadedAvatar?: string | undefined;
|
|
143
151
|
}>, {
|
|
144
152
|
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
145
153
|
simulatorUrl: string | undefined;
|
|
@@ -147,14 +155,14 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
147
155
|
authors: {
|
|
148
156
|
id: string;
|
|
149
157
|
email: string;
|
|
158
|
+
uploadedAvatar?: string | undefined;
|
|
150
159
|
firstname?: string | undefined;
|
|
151
160
|
lastname?: string | undefined;
|
|
152
|
-
uploadedAvatar?: string | undefined;
|
|
153
161
|
}[];
|
|
154
162
|
languages: {
|
|
163
|
+
isMaster?: boolean | undefined;
|
|
155
164
|
id: string;
|
|
156
|
-
|
|
157
|
-
is_master?: boolean | undefined;
|
|
165
|
+
label: string;
|
|
158
166
|
}[];
|
|
159
167
|
quotas: {
|
|
160
168
|
slicemachineEnabled: boolean;
|
|
@@ -163,8 +171,8 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
163
171
|
major: number;
|
|
164
172
|
minor: number;
|
|
165
173
|
};
|
|
166
|
-
starterId?: string | undefined;
|
|
167
174
|
uploadedAvatar?: string | undefined;
|
|
175
|
+
starterId?: string | undefined;
|
|
168
176
|
}, {
|
|
169
177
|
languages: {
|
|
170
178
|
id: string;
|
|
@@ -175,20 +183,20 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
183
|
major: number;
|
|
176
184
|
minor: number;
|
|
177
185
|
};
|
|
178
|
-
|
|
186
|
+
uploadedAvatar?: string | undefined;
|
|
179
187
|
authors?: {
|
|
180
188
|
id: string;
|
|
181
189
|
email: string;
|
|
190
|
+
uploadedAvatar?: string | undefined;
|
|
182
191
|
firstname?: string | undefined;
|
|
183
192
|
lastname?: string | undefined;
|
|
184
|
-
uploadedAvatar?: string | undefined;
|
|
185
193
|
}[] | undefined;
|
|
194
|
+
simulator_url?: string | null | undefined;
|
|
186
195
|
quotas?: {
|
|
187
196
|
slicemachineEnabled: boolean;
|
|
188
197
|
} | undefined;
|
|
189
198
|
framework?: unknown;
|
|
190
199
|
starterId?: string | undefined;
|
|
191
|
-
uploadedAvatar?: string | undefined;
|
|
192
200
|
}>;
|
|
193
201
|
export type Repository = z.TypeOf<typeof repositorySchema>;
|
|
194
202
|
export declare function getRepository(baseUrl: URL, authStrategy: AuthStrategy): Promise<Repository>;
|
|
@@ -202,4 +210,133 @@ declare const repositoryTagsResponse: z.ZodObject<{
|
|
|
202
210
|
}>;
|
|
203
211
|
type RepositoryTags = z.TypeOf<typeof repositoryTagsResponse>;
|
|
204
212
|
export declare function getRepositoryTags(baseUrl: URL, authStrategy: AuthStrategy): Promise<RepositoryTags>;
|
|
213
|
+
declare const repositoryQuotasV2: z.ZodObject<{
|
|
214
|
+
maxNbEnvironments: z.ZodNumber;
|
|
215
|
+
integrationFieldsEnabled: z.ZodBoolean;
|
|
216
|
+
personalEnvironmentsEnabled: z.ZodBoolean;
|
|
217
|
+
sliceMachineEnabled: z.ZodBoolean;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
maxNbEnvironments: number;
|
|
220
|
+
integrationFieldsEnabled: boolean;
|
|
221
|
+
personalEnvironmentsEnabled: boolean;
|
|
222
|
+
sliceMachineEnabled: boolean;
|
|
223
|
+
}, {
|
|
224
|
+
maxNbEnvironments: number;
|
|
225
|
+
integrationFieldsEnabled: boolean;
|
|
226
|
+
personalEnvironmentsEnabled: boolean;
|
|
227
|
+
sliceMachineEnabled: boolean;
|
|
228
|
+
}>;
|
|
229
|
+
export type RepositoryQuotasV2 = z.TypeOf<typeof repositoryQuotasV2>;
|
|
230
|
+
export declare const repositorySchemaV2: z.ZodObject<{
|
|
231
|
+
_id: z.ZodString;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
onboarding: z.ZodObject<{
|
|
234
|
+
completedSteps: z.ZodArray<z.ZodString, "many">;
|
|
235
|
+
isDismissed: z.ZodBoolean;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
completedSteps: string[];
|
|
238
|
+
isDismissed: boolean;
|
|
239
|
+
}, {
|
|
240
|
+
completedSteps: string[];
|
|
241
|
+
isDismissed: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
244
|
+
quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
245
|
+
maxNbEnvironments: z.ZodNumber;
|
|
246
|
+
integrationFieldsEnabled: z.ZodBoolean;
|
|
247
|
+
personalEnvironmentsEnabled: z.ZodBoolean;
|
|
248
|
+
sliceMachineEnabled: z.ZodBoolean;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
maxNbEnvironments: number;
|
|
251
|
+
integrationFieldsEnabled: boolean;
|
|
252
|
+
personalEnvironmentsEnabled: boolean;
|
|
253
|
+
sliceMachineEnabled: boolean;
|
|
254
|
+
}, {
|
|
255
|
+
maxNbEnvironments: number;
|
|
256
|
+
integrationFieldsEnabled: boolean;
|
|
257
|
+
personalEnvironmentsEnabled: boolean;
|
|
258
|
+
sliceMachineEnabled: boolean;
|
|
259
|
+
}>>>;
|
|
260
|
+
storageVersion: z.ZodObject<{
|
|
261
|
+
major: z.ZodNumber;
|
|
262
|
+
minor: z.ZodNumber;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
major: number;
|
|
265
|
+
minor: number;
|
|
266
|
+
}, {
|
|
267
|
+
major: number;
|
|
268
|
+
minor: number;
|
|
269
|
+
}>;
|
|
270
|
+
authors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
firstname: z.ZodOptional<z.ZodString>;
|
|
273
|
+
lastname: z.ZodOptional<z.ZodString>;
|
|
274
|
+
email: z.ZodString;
|
|
275
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
id: string;
|
|
278
|
+
email: string;
|
|
279
|
+
uploadedAvatar?: string | undefined;
|
|
280
|
+
firstname?: string | undefined;
|
|
281
|
+
lastname?: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
id: string;
|
|
284
|
+
email: string;
|
|
285
|
+
uploadedAvatar?: string | undefined;
|
|
286
|
+
firstname?: string | undefined;
|
|
287
|
+
lastname?: string | undefined;
|
|
288
|
+
}>, "many">>>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
name: string;
|
|
291
|
+
authors: {
|
|
292
|
+
id: string;
|
|
293
|
+
email: string;
|
|
294
|
+
uploadedAvatar?: string | undefined;
|
|
295
|
+
firstname?: string | undefined;
|
|
296
|
+
lastname?: string | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
quotas: {
|
|
299
|
+
maxNbEnvironments: number;
|
|
300
|
+
integrationFieldsEnabled: boolean;
|
|
301
|
+
personalEnvironmentsEnabled: boolean;
|
|
302
|
+
sliceMachineEnabled: boolean;
|
|
303
|
+
};
|
|
304
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
305
|
+
storageVersion: {
|
|
306
|
+
major: number;
|
|
307
|
+
minor: number;
|
|
308
|
+
};
|
|
309
|
+
_id: string;
|
|
310
|
+
onboarding: {
|
|
311
|
+
completedSteps: string[];
|
|
312
|
+
isDismissed: boolean;
|
|
313
|
+
};
|
|
314
|
+
}, {
|
|
315
|
+
name: string;
|
|
316
|
+
storageVersion: {
|
|
317
|
+
major: number;
|
|
318
|
+
minor: number;
|
|
319
|
+
};
|
|
320
|
+
_id: string;
|
|
321
|
+
onboarding: {
|
|
322
|
+
completedSteps: string[];
|
|
323
|
+
isDismissed: boolean;
|
|
324
|
+
};
|
|
325
|
+
authors?: {
|
|
326
|
+
id: string;
|
|
327
|
+
email: string;
|
|
328
|
+
uploadedAvatar?: string | undefined;
|
|
329
|
+
firstname?: string | undefined;
|
|
330
|
+
lastname?: string | undefined;
|
|
331
|
+
}[] | undefined;
|
|
332
|
+
quotas?: {
|
|
333
|
+
maxNbEnvironments: number;
|
|
334
|
+
integrationFieldsEnabled: boolean;
|
|
335
|
+
personalEnvironmentsEnabled: boolean;
|
|
336
|
+
sliceMachineEnabled: boolean;
|
|
337
|
+
} | undefined;
|
|
338
|
+
framework?: unknown;
|
|
339
|
+
}>;
|
|
340
|
+
export type RepositoryV2 = z.infer<typeof repositorySchemaV2>;
|
|
341
|
+
export declare function getRepositoryV2(baseUrl: URL, repository: string, authStrategy: AuthStrategy): Promise<RepositoryV2>;
|
|
205
342
|
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
|
+
export declare const LocaleId: z.ZodString;
|
|
4
|
+
export declare const BasicRole: z.ZodEnum<["Manager", "Writer", "Readonly"]>;
|
|
5
|
+
export declare const RolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>;
|
|
6
|
+
export type RolesPerLocale = z.infer<typeof RolesPerLocale>;
|
|
7
|
+
export declare const RolesPerLocaleByUser: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
8
|
+
export type RolesPerLocaleByUser = z.infer<typeof RolesPerLocaleByUser>;
|
|
9
|
+
export declare const TeamSpace: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
14
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
customTypes: string[];
|
|
19
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
20
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
customTypes: string[];
|
|
25
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
26
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type TeamSpace = z.infer<typeof TeamSpace>;
|
|
29
|
+
declare const TeamSpaceUpsert: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
33
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
customTypes: string[];
|
|
37
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
38
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
customTypes: string[];
|
|
42
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
43
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type TeamSpaceUpsert = z.infer<typeof TeamSpaceUpsert>;
|
|
46
|
+
declare const TeamSpacesResponse: z.ZodObject<{
|
|
47
|
+
results: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
51
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
52
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
customTypes: string[];
|
|
57
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
58
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
customTypes: string[];
|
|
63
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
64
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
65
|
+
}>, "many">;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
results: {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
customTypes: string[];
|
|
71
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
72
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
}, {
|
|
75
|
+
results: {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
customTypes: string[];
|
|
79
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
80
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
}>;
|
|
83
|
+
export type TeamSpacesResponse = z.infer<typeof TeamSpacesResponse>;
|
|
84
|
+
interface GetTeamSpacesArgs {
|
|
85
|
+
baseUrl: URL;
|
|
86
|
+
repository: string;
|
|
87
|
+
authStrategy: AuthStrategy;
|
|
88
|
+
fetchEnabled: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare function getTeamSpaces(args: GetTeamSpacesArgs): Promise<TeamSpacesResponse>;
|
|
91
|
+
export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
92
|
+
results: {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
customTypes: string[];
|
|
96
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
97
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
}, Error, {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
customTypes: string[];
|
|
103
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
104
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
105
|
+
}[], string[]> & {
|
|
106
|
+
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
107
|
+
results: {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
customTypes: string[];
|
|
111
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
112
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
113
|
+
}[];
|
|
114
|
+
}> | undefined;
|
|
115
|
+
} & {
|
|
116
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
117
|
+
results: {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
customTypes: string[];
|
|
121
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
122
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
123
|
+
}[];
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
interface CreateTeamSpaceArgs {
|
|
127
|
+
baseUrl: URL;
|
|
128
|
+
repository: string;
|
|
129
|
+
authStrategy: AuthStrategy;
|
|
130
|
+
payload: TeamSpaceUpsert;
|
|
131
|
+
}
|
|
132
|
+
export declare function createTeamSpace(args: CreateTeamSpaceArgs): Promise<TeamSpace>;
|
|
133
|
+
interface UpdateTeamSpaceArgs {
|
|
134
|
+
baseUrl: URL;
|
|
135
|
+
repository: string;
|
|
136
|
+
authStrategy: AuthStrategy;
|
|
137
|
+
payload: TeamSpaceUpsert;
|
|
138
|
+
teamSpaceId: string;
|
|
139
|
+
}
|
|
140
|
+
export declare function updateTeamSpace(args: UpdateTeamSpaceArgs): Promise<TeamSpace>;
|
|
141
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
|
+
export declare const LocaleId: z.ZodString;
|
|
4
|
+
export declare const BasicRole: z.ZodEnum<["Manager", "Writer", "Readonly"]>;
|
|
5
|
+
export declare const RolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>;
|
|
6
|
+
export type RolesPerLocale = z.infer<typeof RolesPerLocale>;
|
|
7
|
+
export declare const RolesPerLocaleByUser: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
8
|
+
export type RolesPerLocaleByUser = z.infer<typeof RolesPerLocaleByUser>;
|
|
9
|
+
export declare const TeamSpace: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
14
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
customTypes: string[];
|
|
19
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
20
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
customTypes: string[];
|
|
25
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
26
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type TeamSpace = z.infer<typeof TeamSpace>;
|
|
29
|
+
declare const TeamSpaceUpsert: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
33
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
customTypes: string[];
|
|
37
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
38
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
customTypes: string[];
|
|
42
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
43
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type TeamSpaceUpsert = z.infer<typeof TeamSpaceUpsert>;
|
|
46
|
+
export declare function createTeamSpace(baseUrl: URL, repository: string, authStrategy: AuthStrategy, payload: TeamSpaceUpsert): Promise<TeamSpace>;
|
|
47
|
+
export declare function updateTeamSpace(baseUrl: URL, repository: string, authStrategy: AuthStrategy, payload: TeamSpaceUpsert, teamSpaceId: string): Promise<TeamSpace>;
|
|
48
|
+
export {};
|
|
@@ -20,13 +20,16 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
20
20
|
superPower: z.ZodBoolean;
|
|
21
21
|
repositories: z.ZodArray<z.ZodObject<{
|
|
22
22
|
domain: z.ZodString;
|
|
23
|
+
name: z.ZodOptional<z.ZodString>;
|
|
23
24
|
role: z.ZodUnion<[z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>>>]>;
|
|
24
25
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
role: ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined>) & ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined> | undefined);
|
|
26
26
|
domain: string;
|
|
27
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
28
|
+
name?: string | undefined;
|
|
27
29
|
}, {
|
|
28
|
-
role: ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined>) & ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined> | undefined);
|
|
29
30
|
domain: string;
|
|
31
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
32
|
+
name?: string | undefined;
|
|
30
33
|
}>, "many">;
|
|
31
34
|
}, "strip", z.ZodTypeAny, {
|
|
32
35
|
email: string;
|
|
@@ -36,8 +39,9 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
36
39
|
lastName: string;
|
|
37
40
|
superPower: boolean;
|
|
38
41
|
repositories: {
|
|
39
|
-
role: ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined>) & ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined> | undefined);
|
|
40
42
|
domain: string;
|
|
43
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
44
|
+
name?: string | undefined;
|
|
41
45
|
}[];
|
|
42
46
|
}, {
|
|
43
47
|
email: string;
|
|
@@ -47,8 +51,9 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
47
51
|
lastName: string;
|
|
48
52
|
superPower: boolean;
|
|
49
53
|
repositories: {
|
|
50
|
-
role: ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined>) & ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined> | undefined);
|
|
51
54
|
domain: string;
|
|
55
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
56
|
+
name?: string | undefined;
|
|
52
57
|
}[];
|
|
53
58
|
}>;
|
|
54
59
|
export type Profile = z.infer<typeof profileResponse>;
|
|
@@ -61,8 +66,9 @@ export declare function useProfile(): {
|
|
|
61
66
|
lastName: string;
|
|
62
67
|
superPower: boolean;
|
|
63
68
|
repositories: {
|
|
64
|
-
role: ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined>) & ("Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | Record<string, "Owner" | "Administrator" | "Writer" | "Manager" | "Readonly" | undefined> | undefined);
|
|
65
69
|
domain: string;
|
|
70
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
71
|
+
name?: string | undefined;
|
|
66
72
|
}[];
|
|
67
73
|
};
|
|
68
74
|
export {};
|
|
@@ -8,7 +8,7 @@ interface useImageFieldProps {
|
|
|
8
8
|
onContentChange: (content: ImageContent | undefined) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare function useImageField(props: useImageFieldProps): {
|
|
11
|
-
onCropperDialogClose: ({ option, croppedImages }: {
|
|
11
|
+
onCropperDialogClose: ({ option, croppedImages, }: {
|
|
12
12
|
option: number;
|
|
13
13
|
croppedImages: CroppedImages;
|
|
14
14
|
}) => void;
|
|
@@ -7,16 +7,16 @@ export declare function useIntegrationCatalogSearch(args: IntegrationCatalogSear
|
|
|
7
7
|
items: {
|
|
8
8
|
id: string;
|
|
9
9
|
title: string;
|
|
10
|
-
imageURL?: string | undefined;
|
|
11
10
|
description?: string | undefined;
|
|
11
|
+
imageURL?: string | undefined;
|
|
12
12
|
}[];
|
|
13
13
|
response: {
|
|
14
14
|
page: number;
|
|
15
15
|
items: {
|
|
16
16
|
id: string;
|
|
17
17
|
title: string;
|
|
18
|
-
imageURL?: string | undefined;
|
|
19
18
|
description?: string | undefined;
|
|
19
|
+
imageURL?: string | undefined;
|
|
20
20
|
}[];
|
|
21
21
|
totalPages: number;
|
|
22
22
|
};
|
|
@@ -31,13 +31,13 @@ declare const integrationItem: z.ZodObject<{
|
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
id: string;
|
|
33
33
|
title: string;
|
|
34
|
-
imageURL?: string | undefined;
|
|
35
34
|
description?: string | undefined;
|
|
35
|
+
imageURL?: string | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
id: string;
|
|
38
38
|
title: string;
|
|
39
|
-
imageURL?: string | undefined;
|
|
40
39
|
description?: string | undefined;
|
|
40
|
+
imageURL?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type IntegrationItem = z.TypeOf<typeof integrationItem>;
|
|
43
43
|
interface IntegrationCatalogReadArgs {
|
|
@@ -48,8 +48,8 @@ export declare function useIntegrationCatalogRead(args: IntegrationCatalogReadAr
|
|
|
48
48
|
item: {
|
|
49
49
|
id: string;
|
|
50
50
|
title: string;
|
|
51
|
-
imageURL?: string | undefined;
|
|
52
51
|
description?: string | undefined;
|
|
52
|
+
imageURL?: string | undefined;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FilterOption } from "@prismicio/editor-ui";
|
|
3
3
|
export interface DocumentCardProps {
|
|
4
|
-
|
|
4
|
+
documentTypeId: string;
|
|
5
5
|
documentUrl: URL;
|
|
6
6
|
title: string;
|
|
7
7
|
statusColor: "grey" | "green" | "amber" | "purple";
|