@prismicio/editor-fields 0.4.43 → 0.4.44-new-codeblock-re-release.2
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/components/EmptyMediaList.d.ts +1 -0
- package/dist/core/service/document.d.ts +1 -0
- package/dist/core/service/repository.d.ts +26 -0
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/utils.d.ts +2 -2
- package/dist/index.cjs.js +26 -26
- package/dist/index.es.js +8546 -8507
- package/package.json +3 -3
|
@@ -2449,4 +2449,5 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2449
2449
|
};
|
|
2450
2450
|
}, unknown>;
|
|
2451
2451
|
export declare function makeGetDocumentsQueryString(searchDocumentParams: SearchDocumentParams): string;
|
|
2452
|
+
export declare function getEnrichedSearchDocuments(baseUrl: URL, authStrategy: AuthStrategy, searchDocuments: DocumentFullTextSearchApi["results"]): Promise<DocumentMeta[]>;
|
|
2452
2453
|
export {};
|
|
@@ -74,6 +74,16 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
74
74
|
slicemachineEnabled: boolean;
|
|
75
75
|
}>>>;
|
|
76
76
|
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
77
|
+
storageVersion: z.ZodObject<{
|
|
78
|
+
major: z.ZodNumber;
|
|
79
|
+
minor: z.ZodNumber;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
major: number;
|
|
82
|
+
minor: number;
|
|
83
|
+
}, {
|
|
84
|
+
major: number;
|
|
85
|
+
minor: number;
|
|
86
|
+
}>;
|
|
77
87
|
}, "strip", z.ZodTypeAny, {
|
|
78
88
|
authors: {
|
|
79
89
|
id: string;
|
|
@@ -90,6 +100,10 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
90
100
|
slicemachineEnabled: boolean;
|
|
91
101
|
};
|
|
92
102
|
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
103
|
+
storageVersion: {
|
|
104
|
+
major: number;
|
|
105
|
+
minor: number;
|
|
106
|
+
};
|
|
93
107
|
simulator_url?: string | null | undefined;
|
|
94
108
|
}, {
|
|
95
109
|
languages: {
|
|
@@ -97,6 +111,10 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
97
111
|
name: string;
|
|
98
112
|
is_master?: boolean | undefined;
|
|
99
113
|
}[];
|
|
114
|
+
storageVersion: {
|
|
115
|
+
major: number;
|
|
116
|
+
minor: number;
|
|
117
|
+
};
|
|
100
118
|
simulator_url?: string | null | undefined;
|
|
101
119
|
authors?: {
|
|
102
120
|
id: string;
|
|
@@ -125,12 +143,20 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
125
143
|
quotas: {
|
|
126
144
|
slicemachineEnabled: boolean;
|
|
127
145
|
};
|
|
146
|
+
storageVersion: {
|
|
147
|
+
major: number;
|
|
148
|
+
minor: number;
|
|
149
|
+
};
|
|
128
150
|
}, {
|
|
129
151
|
languages: {
|
|
130
152
|
id: string;
|
|
131
153
|
name: string;
|
|
132
154
|
is_master?: boolean | undefined;
|
|
133
155
|
}[];
|
|
156
|
+
storageVersion: {
|
|
157
|
+
major: number;
|
|
158
|
+
minor: number;
|
|
159
|
+
};
|
|
134
160
|
simulator_url?: string | null | undefined;
|
|
135
161
|
authors?: {
|
|
136
162
|
id: string;
|
|
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function useLinkField(params: useLinkFieldParams): {
|
|
13
13
|
contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | undefined;
|
|
14
|
-
selectType: "
|
|
14
|
+
selectType: "media" | "web" | "document" | undefined;
|
|
15
15
|
fieldValue: string;
|
|
16
16
|
onValueChange: (value: string) => void;
|
|
17
17
|
onTypeChange: (newValue: FieldSelectTypes) => void;
|
package/dist/fields/utils.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ type Widgets = NestableWidget | UID;
|
|
|
3
3
|
type Field = Exclude<Widgets, Separator | GeoPoint>;
|
|
4
4
|
export declare function getFieldLabel(field: Widgets): string;
|
|
5
5
|
export declare const DEFAULT_PLACEHOLDER = "...";
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function getFieldPlaceholder(field:
|
|
6
|
+
export declare function getBooleanFieldPlaceholder(field: BooleanField, value: boolean, defaultPlaceholder?: string): string;
|
|
7
|
+
export declare function getFieldPlaceholder(field: Exclude<Field, BooleanField>, defaultPlaceholder?: string): string;
|
|
8
8
|
export {};
|