@prismicio/editor-fields 0.4.42-alpha.dialog-key-up.0 → 0.4.42
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/service/document.d.ts +0 -38
- package/dist/core/service/repository.d.ts +7 -0
- package/dist/index.cjs.js +21 -21
- package/dist/index.es.js +1551 -1553
- package/package.json +3 -3
|
@@ -542,44 +542,6 @@ export declare function createSearchParams<T extends string>(params: {
|
|
|
542
542
|
values: string[];
|
|
543
543
|
}[]): [string, string][];
|
|
544
544
|
export declare function getDocumentByDocumentId(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
|
|
545
|
-
export declare function getDocumentsByReleaseId(baseUrl: URL, authStrategy: AuthStrategy, releaseId: string, limit?: number): Promise<{
|
|
546
|
-
total: number;
|
|
547
|
-
results: {
|
|
548
|
-
id: string;
|
|
549
|
-
title: string;
|
|
550
|
-
custom_type_id: string;
|
|
551
|
-
group_lang_id: string;
|
|
552
|
-
language: {
|
|
553
|
-
id: string;
|
|
554
|
-
name: string;
|
|
555
|
-
is_master?: boolean | undefined;
|
|
556
|
-
};
|
|
557
|
-
versions: (({
|
|
558
|
-
status: "unclassified";
|
|
559
|
-
} | {
|
|
560
|
-
status: "published";
|
|
561
|
-
} | {
|
|
562
|
-
status: "release";
|
|
563
|
-
release_id: string;
|
|
564
|
-
} | {
|
|
565
|
-
status: "archived";
|
|
566
|
-
}) & {
|
|
567
|
-
version_id: string;
|
|
568
|
-
tags: string[];
|
|
569
|
-
custom_type_label: string;
|
|
570
|
-
last_modified_date: Date;
|
|
571
|
-
author: {
|
|
572
|
-
first_name?: string | undefined;
|
|
573
|
-
last_name?: string | undefined;
|
|
574
|
-
email?: string | undefined;
|
|
575
|
-
};
|
|
576
|
-
preview_summary?: string | undefined;
|
|
577
|
-
preview_image?: string | undefined;
|
|
578
|
-
uid?: string | undefined;
|
|
579
|
-
})[];
|
|
580
|
-
}[];
|
|
581
|
-
cursor?: string | undefined;
|
|
582
|
-
}>;
|
|
583
545
|
export declare function getDocumentsById(baseUrl: URL, authStrategy: AuthStrategy, ids: string[]): Promise<GetsDocumentApi>;
|
|
584
546
|
export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDef, unknown>, {
|
|
585
547
|
[x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
@@ -25,6 +25,8 @@ declare const repositoryQuotas: z.ZodObject<{
|
|
|
25
25
|
slicemachineEnabled: boolean;
|
|
26
26
|
}>;
|
|
27
27
|
export type RepositoryQuotas = z.TypeOf<typeof repositoryQuotas>;
|
|
28
|
+
declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
|
|
29
|
+
export type RepositoryFramework = z.TypeOf<typeof repositoryFramework>;
|
|
28
30
|
declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
29
31
|
simulator_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
32
|
languages: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
@@ -71,6 +73,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
71
73
|
}, {
|
|
72
74
|
slicemachineEnabled: boolean;
|
|
73
75
|
}>>>;
|
|
76
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
74
77
|
}, "strip", z.ZodTypeAny, {
|
|
75
78
|
authors: {
|
|
76
79
|
id: string;
|
|
@@ -86,6 +89,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
86
89
|
quotas: {
|
|
87
90
|
slicemachineEnabled: boolean;
|
|
88
91
|
};
|
|
92
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
89
93
|
simulator_url?: string | null | undefined;
|
|
90
94
|
}, {
|
|
91
95
|
languages: {
|
|
@@ -103,8 +107,10 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
107
|
quotas?: {
|
|
104
108
|
slicemachineEnabled: boolean;
|
|
105
109
|
} | undefined;
|
|
110
|
+
framework?: unknown;
|
|
106
111
|
}>, {
|
|
107
112
|
simulatorUrl: string | undefined;
|
|
113
|
+
isSupportedFramework: boolean;
|
|
108
114
|
authors: {
|
|
109
115
|
id: string;
|
|
110
116
|
email: string;
|
|
@@ -135,6 +141,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
135
141
|
quotas?: {
|
|
136
142
|
slicemachineEnabled: boolean;
|
|
137
143
|
} | undefined;
|
|
144
|
+
framework?: unknown;
|
|
138
145
|
}>;
|
|
139
146
|
export type Repository = z.TypeOf<typeof repositorySchema>;
|
|
140
147
|
export declare function getRepository(baseUrl: URL, authStrategy: AuthStrategy): Promise<Repository>;
|