@prismicio/editor-fields 0.4.7 → 0.4.8
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.
|
@@ -8,6 +8,7 @@ export declare const mediaLibraryImageOkType: import("zod").ZodObject<{
|
|
|
8
8
|
height: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
9
|
last_modified: import("zod").ZodNumber;
|
|
10
10
|
url: import("zod").ZodString;
|
|
11
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
12
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
13
|
id: string;
|
|
13
14
|
url: string;
|
|
@@ -17,6 +18,7 @@ export declare const mediaLibraryImageOkType: import("zod").ZodObject<{
|
|
|
17
18
|
last_modified: number;
|
|
18
19
|
width?: number | undefined;
|
|
19
20
|
height?: number | undefined;
|
|
21
|
+
alt?: string | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
id: string;
|
|
22
24
|
url: string;
|
|
@@ -26,6 +28,7 @@ export declare const mediaLibraryImageOkType: import("zod").ZodObject<{
|
|
|
26
28
|
last_modified: number;
|
|
27
29
|
width?: number | undefined;
|
|
28
30
|
height?: number | undefined;
|
|
31
|
+
alt?: string | undefined;
|
|
29
32
|
}>;
|
|
30
33
|
export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<{
|
|
31
34
|
total: import("zod").ZodNumber;
|
|
@@ -39,6 +42,7 @@ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<
|
|
|
39
42
|
height: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
40
43
|
last_modified: import("zod").ZodNumber;
|
|
41
44
|
url: import("zod").ZodString;
|
|
45
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
46
|
}, "strip", import("zod").ZodTypeAny, {
|
|
43
47
|
id: string;
|
|
44
48
|
url: string;
|
|
@@ -48,6 +52,7 @@ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<
|
|
|
48
52
|
last_modified: number;
|
|
49
53
|
width?: number | undefined;
|
|
50
54
|
height?: number | undefined;
|
|
55
|
+
alt?: string | undefined;
|
|
51
56
|
}, {
|
|
52
57
|
id: string;
|
|
53
58
|
url: string;
|
|
@@ -57,6 +62,7 @@ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<
|
|
|
57
62
|
last_modified: number;
|
|
58
63
|
width?: number | undefined;
|
|
59
64
|
height?: number | undefined;
|
|
65
|
+
alt?: string | undefined;
|
|
60
66
|
}>, "many">;
|
|
61
67
|
}, "strip", import("zod").ZodTypeAny, {
|
|
62
68
|
total: number;
|
|
@@ -69,6 +75,7 @@ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<
|
|
|
69
75
|
last_modified: number;
|
|
70
76
|
width?: number | undefined;
|
|
71
77
|
height?: number | undefined;
|
|
78
|
+
alt?: string | undefined;
|
|
72
79
|
}[];
|
|
73
80
|
cursor?: string | undefined;
|
|
74
81
|
}, {
|
|
@@ -82,6 +89,7 @@ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<
|
|
|
82
89
|
last_modified: number;
|
|
83
90
|
width?: number | undefined;
|
|
84
91
|
height?: number | undefined;
|
|
92
|
+
alt?: string | undefined;
|
|
85
93
|
}[];
|
|
86
94
|
cursor?: string | undefined;
|
|
87
95
|
}>;
|
|
@@ -97,6 +105,7 @@ export declare function useMediaLibrarySearch(): {
|
|
|
97
105
|
last_modified: number;
|
|
98
106
|
width?: number | undefined;
|
|
99
107
|
height?: number | undefined;
|
|
108
|
+
alt?: string | undefined;
|
|
100
109
|
}[];
|
|
101
110
|
limit: number;
|
|
102
111
|
onHasReachedBottom: () => void;
|
|
@@ -111,6 +120,7 @@ export declare function useMediaLibrarySearch(): {
|
|
|
111
120
|
last_modified: number;
|
|
112
121
|
width?: number | undefined;
|
|
113
122
|
height?: number | undefined;
|
|
123
|
+
alt?: string | undefined;
|
|
114
124
|
}[];
|
|
115
125
|
cursor?: string | undefined;
|
|
116
126
|
};
|
|
@@ -5,6 +5,7 @@ export interface ExternalImage {
|
|
|
5
5
|
url: string;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
|
+
alt?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare function replaceImage(thumbnailName: string, field: Image, content: ImageContent | undefined, extImage: ExternalImage): ImageContent;
|
|
10
11
|
export declare function createContentView(extImage: ExternalImage, constraints?: ImageConstraint): ImageContentView;
|