@prismicio/editor-fields 0.4.63 → 0.4.64-alpha.fix-simulator-issue.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 +12 -3
- package/dist/core/APIExplorer/APIExplorer.d.ts +2 -0
- package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +54 -0
- package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +2 -0
- package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +2 -0
- package/dist/core/APIExplorer/components/Request/GetByTypeRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByUIDRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetRepositoryRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetSingleRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +4 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +6 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +4 -0
- package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +7 -0
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +3 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +20 -0
- package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/types.d.ts +14 -0
- package/dist/core/APIExplorer/index.d.ts +1 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +45 -45
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +5 -5
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/aiSeoMetadata.d.ts +2 -6
- package/dist/core/service/customType.d.ts +19 -19
- package/dist/core/service/document.d.ts +101 -101
- package/dist/core/service/documentSearch.d.ts +30 -30
- package/dist/core/service/onboarding.d.ts +3 -3
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +257 -36
- package/dist/core/service/user.d.ts +11 -7
- package/dist/fields/ImageField/useImageField.d.ts +5 -5
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +10 -10
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/RichTextField/RichTextField.d.ts +7 -0
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +5 -5
- package/dist/fields/RichTextField/extensions/Table/Table.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +10 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +10 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/index.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +21 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/types.d.ts +17 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +15 -0
- package/dist/fields/RichTextField/extensions/Table/TableEvent.d.ts +31 -0
- package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +7 -0
- package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +9 -0
- package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +22 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +11 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +7 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +10 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TriggerAnchor.d.ts +11 -0
- package/dist/fields/RichTextField/extensions/Table/menus/index.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Table/menus/utils.d.ts +23 -0
- package/dist/fields/RichTextField/extensions/Table/utils.d.ts +9 -0
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +138 -38
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +59273 -10833
- package/dist/slices/utils.d.ts +4 -4
- package/package.json +6 -6
|
@@ -22,13 +22,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
22
22
|
results: {
|
|
23
23
|
id: string;
|
|
24
24
|
title: string;
|
|
25
|
-
custom_type_id: string;
|
|
26
|
-
group_lang_id: string;
|
|
27
25
|
language: {
|
|
28
26
|
isMaster?: boolean | undefined;
|
|
29
27
|
id: string;
|
|
30
28
|
label: string;
|
|
31
29
|
};
|
|
30
|
+
custom_type_id: string;
|
|
31
|
+
group_lang_id: string;
|
|
32
32
|
versions: (({
|
|
33
33
|
status: "unclassified";
|
|
34
34
|
} | {
|
|
@@ -39,15 +39,15 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
39
39
|
} | {
|
|
40
40
|
status: "archived";
|
|
41
41
|
}) & {
|
|
42
|
-
tags: string[];
|
|
43
42
|
version_id: string;
|
|
43
|
+
tags: string[];
|
|
44
44
|
last_modified_date: Date;
|
|
45
45
|
custom_type_label: string;
|
|
46
46
|
author: {
|
|
47
47
|
id?: string | undefined;
|
|
48
|
+
email?: string | undefined;
|
|
48
49
|
first_name?: string | undefined;
|
|
49
50
|
last_name?: string | undefined;
|
|
50
|
-
email?: string | undefined;
|
|
51
51
|
uploadedAvatar?: string | undefined;
|
|
52
52
|
};
|
|
53
53
|
preview_image?: string | undefined;
|
|
@@ -72,13 +72,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
72
72
|
} | {
|
|
73
73
|
status: "archived";
|
|
74
74
|
}) & {
|
|
75
|
-
tags: string[];
|
|
76
75
|
version_id: string;
|
|
76
|
+
tags: string[];
|
|
77
77
|
last_modified_date: Date;
|
|
78
|
+
summary?: string | undefined;
|
|
78
79
|
preview_image?: string | undefined;
|
|
79
80
|
uid?: string | undefined;
|
|
80
81
|
custom_type_id?: string | undefined;
|
|
81
|
-
summary?: string | undefined;
|
|
82
82
|
author_ids?: string[] | undefined;
|
|
83
83
|
highlights?: {
|
|
84
84
|
uid?: string | undefined;
|
|
@@ -103,13 +103,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
103
103
|
results: {
|
|
104
104
|
id: string;
|
|
105
105
|
title: string;
|
|
106
|
-
custom_type_id: string;
|
|
107
|
-
group_lang_id: string;
|
|
108
106
|
language: {
|
|
109
107
|
isMaster?: boolean | undefined;
|
|
110
108
|
id: string;
|
|
111
109
|
label: string;
|
|
112
110
|
};
|
|
111
|
+
custom_type_id: string;
|
|
112
|
+
group_lang_id: string;
|
|
113
113
|
versions: (({
|
|
114
114
|
status: "unclassified";
|
|
115
115
|
} | {
|
|
@@ -120,15 +120,15 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
120
120
|
} | {
|
|
121
121
|
status: "archived";
|
|
122
122
|
}) & {
|
|
123
|
-
tags: string[];
|
|
124
123
|
version_id: string;
|
|
124
|
+
tags: string[];
|
|
125
125
|
last_modified_date: Date;
|
|
126
126
|
custom_type_label: string;
|
|
127
127
|
author: {
|
|
128
128
|
id?: string | undefined;
|
|
129
|
+
email?: string | undefined;
|
|
129
130
|
first_name?: string | undefined;
|
|
130
131
|
last_name?: string | undefined;
|
|
131
|
-
email?: string | undefined;
|
|
132
132
|
uploadedAvatar?: string | undefined;
|
|
133
133
|
};
|
|
134
134
|
preview_image?: string | undefined;
|
|
@@ -153,13 +153,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
153
153
|
} | {
|
|
154
154
|
status: "archived";
|
|
155
155
|
}) & {
|
|
156
|
-
tags: string[];
|
|
157
156
|
version_id: string;
|
|
157
|
+
tags: string[];
|
|
158
158
|
last_modified_date: Date;
|
|
159
|
+
summary?: string | undefined;
|
|
159
160
|
preview_image?: string | undefined;
|
|
160
161
|
uid?: string | undefined;
|
|
161
162
|
custom_type_id?: string | undefined;
|
|
162
|
-
summary?: string | undefined;
|
|
163
163
|
author_ids?: string[] | undefined;
|
|
164
164
|
highlights?: {
|
|
165
165
|
uid?: string | undefined;
|
|
@@ -170,13 +170,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
170
170
|
results: {
|
|
171
171
|
id: string;
|
|
172
172
|
title: string;
|
|
173
|
-
custom_type_id: string;
|
|
174
|
-
group_lang_id: string;
|
|
175
173
|
language: {
|
|
176
174
|
isMaster?: boolean | undefined;
|
|
177
175
|
id: string;
|
|
178
176
|
label: string;
|
|
179
177
|
};
|
|
178
|
+
custom_type_id: string;
|
|
179
|
+
group_lang_id: string;
|
|
180
180
|
versions: (({
|
|
181
181
|
status: "unclassified";
|
|
182
182
|
} | {
|
|
@@ -187,15 +187,15 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
187
187
|
} | {
|
|
188
188
|
status: "archived";
|
|
189
189
|
}) & {
|
|
190
|
-
tags: string[];
|
|
191
190
|
version_id: string;
|
|
191
|
+
tags: string[];
|
|
192
192
|
last_modified_date: Date;
|
|
193
193
|
custom_type_label: string;
|
|
194
194
|
author: {
|
|
195
195
|
id?: string | undefined;
|
|
196
|
+
email?: string | undefined;
|
|
196
197
|
first_name?: string | undefined;
|
|
197
198
|
last_name?: string | undefined;
|
|
198
|
-
email?: string | undefined;
|
|
199
199
|
uploadedAvatar?: string | undefined;
|
|
200
200
|
};
|
|
201
201
|
preview_image?: string | undefined;
|
|
@@ -220,13 +220,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
220
220
|
} | {
|
|
221
221
|
status: "archived";
|
|
222
222
|
}) & {
|
|
223
|
-
tags: string[];
|
|
224
223
|
version_id: string;
|
|
224
|
+
tags: string[];
|
|
225
225
|
last_modified_date: Date;
|
|
226
|
+
summary?: string | undefined;
|
|
226
227
|
preview_image?: string | undefined;
|
|
227
228
|
uid?: string | undefined;
|
|
228
229
|
custom_type_id?: string | undefined;
|
|
229
|
-
summary?: string | undefined;
|
|
230
230
|
author_ids?: string[] | undefined;
|
|
231
231
|
highlights?: {
|
|
232
232
|
uid?: string | undefined;
|
|
@@ -253,13 +253,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
253
253
|
results: {
|
|
254
254
|
id: string;
|
|
255
255
|
title: string;
|
|
256
|
-
custom_type_id: string;
|
|
257
|
-
group_lang_id: string;
|
|
258
256
|
language: {
|
|
259
257
|
isMaster?: boolean | undefined;
|
|
260
258
|
id: string;
|
|
261
259
|
label: string;
|
|
262
260
|
};
|
|
261
|
+
custom_type_id: string;
|
|
262
|
+
group_lang_id: string;
|
|
263
263
|
versions: (({
|
|
264
264
|
status: "unclassified";
|
|
265
265
|
} | {
|
|
@@ -270,15 +270,15 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
270
270
|
} | {
|
|
271
271
|
status: "archived";
|
|
272
272
|
}) & {
|
|
273
|
-
tags: string[];
|
|
274
273
|
version_id: string;
|
|
274
|
+
tags: string[];
|
|
275
275
|
last_modified_date: Date;
|
|
276
276
|
custom_type_label: string;
|
|
277
277
|
author: {
|
|
278
278
|
id?: string | undefined;
|
|
279
|
+
email?: string | undefined;
|
|
279
280
|
first_name?: string | undefined;
|
|
280
281
|
last_name?: string | undefined;
|
|
281
|
-
email?: string | undefined;
|
|
282
282
|
uploadedAvatar?: string | undefined;
|
|
283
283
|
};
|
|
284
284
|
preview_image?: string | undefined;
|
|
@@ -303,13 +303,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
303
303
|
} | {
|
|
304
304
|
status: "archived";
|
|
305
305
|
}) & {
|
|
306
|
-
tags: string[];
|
|
307
306
|
version_id: string;
|
|
307
|
+
tags: string[];
|
|
308
308
|
last_modified_date: Date;
|
|
309
|
+
summary?: string | undefined;
|
|
309
310
|
preview_image?: string | undefined;
|
|
310
311
|
uid?: string | undefined;
|
|
311
312
|
custom_type_id?: string | undefined;
|
|
312
|
-
summary?: string | undefined;
|
|
313
313
|
author_ids?: string[] | undefined;
|
|
314
314
|
highlights?: {
|
|
315
315
|
uid?: string | undefined;
|
|
@@ -337,13 +337,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
337
337
|
results: {
|
|
338
338
|
id: string;
|
|
339
339
|
title: string;
|
|
340
|
-
custom_type_id: string;
|
|
341
|
-
group_lang_id: string;
|
|
342
340
|
language: {
|
|
343
341
|
isMaster?: boolean | undefined;
|
|
344
342
|
id: string;
|
|
345
343
|
label: string;
|
|
346
344
|
};
|
|
345
|
+
custom_type_id: string;
|
|
346
|
+
group_lang_id: string;
|
|
347
347
|
versions: (({
|
|
348
348
|
status: "unclassified";
|
|
349
349
|
} | {
|
|
@@ -354,15 +354,15 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
354
354
|
} | {
|
|
355
355
|
status: "archived";
|
|
356
356
|
}) & {
|
|
357
|
-
tags: string[];
|
|
358
357
|
version_id: string;
|
|
358
|
+
tags: string[];
|
|
359
359
|
last_modified_date: Date;
|
|
360
360
|
custom_type_label: string;
|
|
361
361
|
author: {
|
|
362
362
|
id?: string | undefined;
|
|
363
|
+
email?: string | undefined;
|
|
363
364
|
first_name?: string | undefined;
|
|
364
365
|
last_name?: string | undefined;
|
|
365
|
-
email?: string | undefined;
|
|
366
366
|
uploadedAvatar?: string | undefined;
|
|
367
367
|
};
|
|
368
368
|
preview_image?: string | undefined;
|
|
@@ -387,13 +387,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
387
387
|
} | {
|
|
388
388
|
status: "archived";
|
|
389
389
|
}) & {
|
|
390
|
-
tags: string[];
|
|
391
390
|
version_id: string;
|
|
391
|
+
tags: string[];
|
|
392
392
|
last_modified_date: Date;
|
|
393
|
+
summary?: string | undefined;
|
|
393
394
|
preview_image?: string | undefined;
|
|
394
395
|
uid?: string | undefined;
|
|
395
396
|
custom_type_id?: string | undefined;
|
|
396
|
-
summary?: string | undefined;
|
|
397
397
|
author_ids?: string[] | undefined;
|
|
398
398
|
highlights?: {
|
|
399
399
|
uid?: string | undefined;
|
|
@@ -15,10 +15,10 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
15
15
|
completedSteps: z.ZodArray<z.ZodString, "many">;
|
|
16
16
|
isDismissed: z.ZodBoolean;
|
|
17
17
|
context: z.ZodObject<{
|
|
18
|
-
framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
18
|
+
framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>;
|
|
19
19
|
starterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
framework: "
|
|
21
|
+
framework: "other" | "next" | "nuxt" | "sveltekit";
|
|
22
22
|
starterId?: string | null | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
framework?: unknown;
|
|
@@ -28,7 +28,7 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
28
28
|
completedSteps: string[];
|
|
29
29
|
isDismissed: boolean;
|
|
30
30
|
context: {
|
|
31
|
-
framework: "
|
|
31
|
+
framework: "other" | "next" | "nuxt" | "sveltekit";
|
|
32
32
|
starterId?: string | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
@@ -28,7 +28,7 @@ declare const repositoryQuotas: z.ZodObject<{
|
|
|
28
28
|
slicemachineEnabled: boolean;
|
|
29
29
|
}>;
|
|
30
30
|
export type RepositoryQuotas = z.TypeOf<typeof repositoryQuotas>;
|
|
31
|
-
export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
31
|
+
export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>;
|
|
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>>;
|
|
@@ -87,7 +87,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
87
87
|
}, {
|
|
88
88
|
slicemachineEnabled: boolean;
|
|
89
89
|
}>>>;
|
|
90
|
-
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
90
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>>>;
|
|
91
91
|
starterId: z.ZodOptional<z.ZodString>;
|
|
92
92
|
storageVersion: z.ZodObject<{
|
|
93
93
|
major: z.ZodNumber;
|
|
@@ -116,7 +116,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
116
|
quotas: {
|
|
117
117
|
slicemachineEnabled: boolean;
|
|
118
118
|
};
|
|
119
|
-
framework: "
|
|
119
|
+
framework: "other" | "next" | "nuxt" | "sveltekit";
|
|
120
120
|
storageVersion: {
|
|
121
121
|
major: number;
|
|
122
122
|
minor: number;
|
|
@@ -149,7 +149,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
framework?: unknown;
|
|
150
150
|
starterId?: string | undefined;
|
|
151
151
|
}>, {
|
|
152
|
-
framework: "
|
|
152
|
+
framework: "other" | "next" | "nuxt" | "sveltekit";
|
|
153
153
|
simulatorUrl: string | undefined;
|
|
154
154
|
isSupportedFramework: boolean;
|
|
155
155
|
authors: {
|
|
@@ -240,7 +240,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
|
|
|
240
240
|
completedSteps: string[];
|
|
241
241
|
isDismissed: boolean;
|
|
242
242
|
}>;
|
|
243
|
-
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
243
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "other" | "next" | "nuxt" | "sveltekit", unknown>>>;
|
|
244
244
|
quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
245
245
|
maxNbEnvironments: z.ZodNumber;
|
|
246
246
|
integrationFieldsEnabled: z.ZodBoolean;
|
|
@@ -301,7 +301,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
|
|
|
301
301
|
personalEnvironmentsEnabled: boolean;
|
|
302
302
|
sliceMachineEnabled: boolean;
|
|
303
303
|
};
|
|
304
|
-
framework: "
|
|
304
|
+
framework: "other" | "next" | "nuxt" | "sveltekit";
|
|
305
305
|
storageVersion: {
|
|
306
306
|
major: number;
|
|
307
307
|
minor: number;
|