@prismicio/types-internal 4.1.0 → 4.2.0
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/content/field.js +1 -1
- package/dist/content/field.js.map +1 -1
- package/dist/content/group.d.ts +1 -2
- package/dist/content/group.d.ts.map +1 -1
- package/dist/content/group.js +1 -1
- package/dist/content/group.js.map +1 -1
- package/dist/content/legacy/link.d.ts +4 -4
- package/dist/content/legacy/link.js +4 -4
- package/dist/content/legacy/link.js.map +1 -1
- package/dist/content/legacy/richText.d.ts +23 -12
- package/dist/content/legacy/richText.d.ts.map +1 -1
- package/dist/content/legacy/richText.js +2 -2
- package/dist/content/legacy/richText.js.map +1 -1
- package/dist/content/link.d.ts +4 -4
- package/dist/content/nestable.d.ts +3 -3
- package/dist/content/nestable.d.ts.map +1 -1
- package/dist/content/nestable.js +3 -9
- package/dist/content/nestable.js.map +1 -1
- package/dist/content/richText.d.ts +1 -1
- package/dist/content/richText.d.ts.map +1 -1
- package/dist/content/richText.js +1 -1
- package/dist/content/richText.js.map +1 -1
- package/dist/content/slice.d.ts +507 -5
- package/dist/content/slice.d.ts.map +1 -1
- package/dist/content/slice.js +1 -1
- package/dist/content/slice.js.map +1 -1
- package/dist/content/slices.d.ts +507 -5
- package/dist/content/slices.d.ts.map +1 -1
- package/dist/content/table.d.ts +5 -2
- package/dist/content/table.d.ts.map +1 -1
- package/dist/content/widget.js +1 -1
- package/dist/content/widget.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +4 -5
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/io-ts.d.ts +5138 -1917
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +7 -6
- package/dist/io-ts.js.map +1 -1
- package/dist/model/customType.d.ts +9 -3
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js +7 -4
- package/dist/model/customType.js.map +1 -1
- package/dist/model/group.d.ts +2 -2
- package/dist/model/group.js +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/nestable.js +1 -1
- package/dist/model/nestable.js.map +1 -1
- package/dist/model/slice.d.ts +10 -10
- package/dist/model/slice.d.ts.map +1 -1
- package/dist/model/slice.js +5 -5
- package/dist/model/slice.js.map +1 -1
- package/dist/model/widget.d.ts.map +1 -1
- package/dist/model/widget.js +2 -2
- package/dist/model/widget.js.map +1 -1
- package/dist/zod4.d.ts +1814 -249
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +7 -6
- package/dist/zod4.js.map +1 -1
- package/package.json +9 -6
- package/src/content/field.ts +1 -1
- package/src/content/group.ts +1 -1
- package/src/content/legacy/link.ts +4 -4
- package/src/content/legacy/richText.ts +14 -21
- package/src/content/nestable.ts +3 -18
- package/src/content/richText.ts +9 -6
- package/src/content/slice.ts +1 -1
- package/src/content/widget.ts +1 -1
- package/src/helpers/customTypeModel.ts +8 -5
- package/src/index.ts +7 -2
- package/src/io-ts.ts +8 -8
- package/src/model/customType.ts +18 -7
- package/src/model/group.ts +1 -1
- package/src/model/nestable.ts +1 -1
- package/src/model/slice.ts +16 -17
- package/src/model/widget.ts +8 -12
- package/src/zod4.ts +8 -8
- package/dist/model/section.d.ts +0 -11
- package/dist/model/section.d.ts.map +0 -1
- package/dist/model/section.js +0 -10
- package/dist/model/section.js.map +0 -1
- package/src/model/section.ts +0 -12
package/dist/content/slice.d.ts
CHANGED
|
@@ -1,20 +1,522 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LinkContentValue } from "./link.js";
|
|
2
|
+
import { RichTextContentBlock } from "./richText.js";
|
|
3
|
+
import { GroupItemContent } from "./group.js";
|
|
3
4
|
import { z } from "zod/mini";
|
|
4
5
|
|
|
5
6
|
//#region src/content/slice.d.ts
|
|
6
|
-
declare const LegacySliceContentSchema: z.
|
|
7
|
+
declare const LegacySliceContentSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
8
|
+
type: z.ZodMiniString<string>;
|
|
9
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
10
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
11
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
12
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
13
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
14
|
+
embed_url: z.ZodMiniString<string>;
|
|
15
|
+
type: z.ZodMiniString<string>;
|
|
16
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
17
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
18
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
19
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
20
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
21
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
22
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
23
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
24
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
25
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
26
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
27
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
28
|
+
all: z.ZodMiniUnknown;
|
|
29
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
30
|
+
position: z.ZodMiniObject<{
|
|
31
|
+
lat: z.ZodMiniNumber<number>;
|
|
32
|
+
lng: z.ZodMiniNumber<number>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
35
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
36
|
+
origin: z.ZodMiniObject<{
|
|
37
|
+
id: z.ZodMiniString<string>;
|
|
38
|
+
url: z.ZodMiniString<string>;
|
|
39
|
+
width: z.ZodMiniNumber<number>;
|
|
40
|
+
height: z.ZodMiniNumber<number>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
width: z.ZodMiniNumber<number>;
|
|
43
|
+
height: z.ZodMiniNumber<number>;
|
|
44
|
+
edit: z.ZodMiniObject<{
|
|
45
|
+
zoom: z.ZodMiniNumber<number>;
|
|
46
|
+
crop: z.ZodMiniObject<{
|
|
47
|
+
x: z.ZodMiniNumber<number>;
|
|
48
|
+
y: z.ZodMiniNumber<number>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
background: z.ZodMiniString<string>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
54
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
55
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
56
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
57
|
+
origin: z.ZodMiniObject<{
|
|
58
|
+
id: z.ZodMiniString<string>;
|
|
59
|
+
url: z.ZodMiniString<string>;
|
|
60
|
+
width: z.ZodMiniNumber<number>;
|
|
61
|
+
height: z.ZodMiniNumber<number>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
width: z.ZodMiniNumber<number>;
|
|
64
|
+
height: z.ZodMiniNumber<number>;
|
|
65
|
+
edit: z.ZodMiniObject<{
|
|
66
|
+
zoom: z.ZodMiniNumber<number>;
|
|
67
|
+
crop: z.ZodMiniObject<{
|
|
68
|
+
x: z.ZodMiniNumber<number>;
|
|
69
|
+
y: z.ZodMiniNumber<number>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
background: z.ZodMiniString<string>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
74
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
75
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
76
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
79
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
80
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
81
|
+
value: z.ZodMiniString<string>;
|
|
82
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
83
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
84
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
85
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
86
|
+
text?: unknown;
|
|
87
|
+
variant?: unknown;
|
|
88
|
+
value: Record<string, unknown>;
|
|
89
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
90
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
92
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
93
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
94
|
+
variant?: string | undefined;
|
|
95
|
+
text?: string | undefined;
|
|
96
|
+
} & LinkContentValue, {
|
|
97
|
+
value: LinkContentValue;
|
|
98
|
+
text?: string | undefined;
|
|
99
|
+
variant?: string | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
102
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
103
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
104
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
105
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
106
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
107
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
108
|
+
text?: unknown;
|
|
109
|
+
variant?: unknown;
|
|
110
|
+
value: Record<string, unknown>;
|
|
111
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
112
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
113
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
115
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
116
|
+
variant?: string | undefined;
|
|
117
|
+
text?: string | undefined;
|
|
118
|
+
} & LinkContentValue, {
|
|
119
|
+
value: LinkContentValue;
|
|
120
|
+
text?: string | undefined;
|
|
121
|
+
variant?: string | undefined;
|
|
122
|
+
}>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
125
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
126
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
127
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
128
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
129
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
130
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
131
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
132
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
133
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
134
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
135
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
136
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
137
|
+
content: z.ZodMiniObject<{
|
|
138
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
139
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
145
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
146
|
+
value: z.ZodMiniString<string>;
|
|
147
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
148
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
149
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
150
|
+
value: z.ZodMiniString<string>;
|
|
151
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
152
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
153
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
154
|
+
value: z.ZodMiniString<string>;
|
|
155
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
156
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
157
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
158
|
+
value: z.ZodMiniString<string>;
|
|
159
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
160
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
161
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
162
|
+
value: z.ZodMiniString<string>;
|
|
163
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
164
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
165
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
166
|
+
value: z.ZodMiniString<string>;
|
|
167
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
168
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
169
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
170
|
+
value: z.ZodMiniString<string>;
|
|
171
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
172
|
+
}, z.core.$strip>], "type">], "__TYPE__">, z.ZodMiniObject<{
|
|
173
|
+
__TYPE__: z.ZodMiniLiteral<"GroupContentType">;
|
|
174
|
+
value: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
175
|
+
}, z.core.$strip>], "__TYPE__">;
|
|
7
176
|
type LegacySliceContent = z.infer<typeof LegacySliceContentSchema>;
|
|
8
177
|
declare const CompositeSliceContentSchema: z.ZodMiniObject<{
|
|
9
178
|
__TYPE__: z.ZodMiniLiteral<"CompositeSliceContent">;
|
|
10
|
-
nonRepeat: z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
179
|
+
nonRepeat: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
180
|
+
type: z.ZodMiniString<string>;
|
|
181
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
182
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
183
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
184
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
185
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
186
|
+
embed_url: z.ZodMiniString<string>;
|
|
187
|
+
type: z.ZodMiniString<string>;
|
|
188
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
189
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
190
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
191
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
192
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
193
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
194
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
195
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
196
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
197
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
198
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
199
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
200
|
+
all: z.ZodMiniUnknown;
|
|
201
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
202
|
+
position: z.ZodMiniObject<{
|
|
203
|
+
lat: z.ZodMiniNumber<number>;
|
|
204
|
+
lng: z.ZodMiniNumber<number>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
207
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
208
|
+
origin: z.ZodMiniObject<{
|
|
209
|
+
id: z.ZodMiniString<string>;
|
|
210
|
+
url: z.ZodMiniString<string>;
|
|
211
|
+
width: z.ZodMiniNumber<number>;
|
|
212
|
+
height: z.ZodMiniNumber<number>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
width: z.ZodMiniNumber<number>;
|
|
215
|
+
height: z.ZodMiniNumber<number>;
|
|
216
|
+
edit: z.ZodMiniObject<{
|
|
217
|
+
zoom: z.ZodMiniNumber<number>;
|
|
218
|
+
crop: z.ZodMiniObject<{
|
|
219
|
+
x: z.ZodMiniNumber<number>;
|
|
220
|
+
y: z.ZodMiniNumber<number>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
background: z.ZodMiniString<string>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
225
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
226
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
227
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
228
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
229
|
+
origin: z.ZodMiniObject<{
|
|
230
|
+
id: z.ZodMiniString<string>;
|
|
231
|
+
url: z.ZodMiniString<string>;
|
|
232
|
+
width: z.ZodMiniNumber<number>;
|
|
233
|
+
height: z.ZodMiniNumber<number>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
width: z.ZodMiniNumber<number>;
|
|
236
|
+
height: z.ZodMiniNumber<number>;
|
|
237
|
+
edit: z.ZodMiniObject<{
|
|
238
|
+
zoom: z.ZodMiniNumber<number>;
|
|
239
|
+
crop: z.ZodMiniObject<{
|
|
240
|
+
x: z.ZodMiniNumber<number>;
|
|
241
|
+
y: z.ZodMiniNumber<number>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
background: z.ZodMiniString<string>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
246
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
247
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
248
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
249
|
+
}, z.core.$strip>>>;
|
|
250
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
251
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
252
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
253
|
+
value: z.ZodMiniString<string>;
|
|
254
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
255
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
256
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
257
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
258
|
+
text?: unknown;
|
|
259
|
+
variant?: unknown;
|
|
260
|
+
value: Record<string, unknown>;
|
|
261
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
262
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
263
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
265
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
266
|
+
variant?: string | undefined;
|
|
267
|
+
text?: string | undefined;
|
|
268
|
+
} & LinkContentValue, {
|
|
269
|
+
value: LinkContentValue;
|
|
270
|
+
text?: string | undefined;
|
|
271
|
+
variant?: string | undefined;
|
|
272
|
+
}>>;
|
|
273
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
274
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
275
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
276
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
277
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
278
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
279
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
280
|
+
text?: unknown;
|
|
281
|
+
variant?: unknown;
|
|
282
|
+
value: Record<string, unknown>;
|
|
283
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
284
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
285
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
286
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
287
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
288
|
+
variant?: string | undefined;
|
|
289
|
+
text?: string | undefined;
|
|
290
|
+
} & LinkContentValue, {
|
|
291
|
+
value: LinkContentValue;
|
|
292
|
+
text?: string | undefined;
|
|
293
|
+
variant?: string | undefined;
|
|
294
|
+
}>>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
297
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
298
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
299
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
300
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
301
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
302
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
303
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
304
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
305
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
306
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
307
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
308
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
309
|
+
content: z.ZodMiniObject<{
|
|
310
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
311
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
}, z.core.$strict>>;
|
|
316
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
317
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
318
|
+
value: z.ZodMiniString<string>;
|
|
319
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
320
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
321
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
322
|
+
value: z.ZodMiniString<string>;
|
|
323
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
324
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
325
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
326
|
+
value: z.ZodMiniString<string>;
|
|
327
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
328
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
329
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
330
|
+
value: z.ZodMiniString<string>;
|
|
331
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
332
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
333
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
334
|
+
value: z.ZodMiniString<string>;
|
|
335
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
336
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
337
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
338
|
+
value: z.ZodMiniString<string>;
|
|
339
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
340
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
341
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
342
|
+
value: z.ZodMiniString<string>;
|
|
343
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
344
|
+
}, z.core.$strip>], "type">], "__TYPE__">>;
|
|
11
345
|
repeat: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
12
346
|
}, z.core.$strip>;
|
|
13
347
|
type CompositeSliceContent = z.infer<typeof CompositeSliceContentSchema>;
|
|
14
348
|
declare const SharedSliceContentSchema: z.ZodMiniObject<{
|
|
15
349
|
__TYPE__: z.ZodMiniLiteral<"SharedSliceContent">;
|
|
16
350
|
variation: z.ZodMiniString<string>;
|
|
17
|
-
primary: z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
351
|
+
primary: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
352
|
+
type: z.ZodMiniString<string>;
|
|
353
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
354
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
355
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
356
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
357
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
358
|
+
embed_url: z.ZodMiniString<string>;
|
|
359
|
+
type: z.ZodMiniString<string>;
|
|
360
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
361
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
362
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
363
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
364
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
365
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
366
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
367
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
368
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
369
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
370
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
371
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
372
|
+
all: z.ZodMiniUnknown;
|
|
373
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
374
|
+
position: z.ZodMiniObject<{
|
|
375
|
+
lat: z.ZodMiniNumber<number>;
|
|
376
|
+
lng: z.ZodMiniNumber<number>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
379
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
380
|
+
origin: z.ZodMiniObject<{
|
|
381
|
+
id: z.ZodMiniString<string>;
|
|
382
|
+
url: z.ZodMiniString<string>;
|
|
383
|
+
width: z.ZodMiniNumber<number>;
|
|
384
|
+
height: z.ZodMiniNumber<number>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
width: z.ZodMiniNumber<number>;
|
|
387
|
+
height: z.ZodMiniNumber<number>;
|
|
388
|
+
edit: z.ZodMiniObject<{
|
|
389
|
+
zoom: z.ZodMiniNumber<number>;
|
|
390
|
+
crop: z.ZodMiniObject<{
|
|
391
|
+
x: z.ZodMiniNumber<number>;
|
|
392
|
+
y: z.ZodMiniNumber<number>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
background: z.ZodMiniString<string>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
397
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
398
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
399
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
400
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
401
|
+
origin: z.ZodMiniObject<{
|
|
402
|
+
id: z.ZodMiniString<string>;
|
|
403
|
+
url: z.ZodMiniString<string>;
|
|
404
|
+
width: z.ZodMiniNumber<number>;
|
|
405
|
+
height: z.ZodMiniNumber<number>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
width: z.ZodMiniNumber<number>;
|
|
408
|
+
height: z.ZodMiniNumber<number>;
|
|
409
|
+
edit: z.ZodMiniObject<{
|
|
410
|
+
zoom: z.ZodMiniNumber<number>;
|
|
411
|
+
crop: z.ZodMiniObject<{
|
|
412
|
+
x: z.ZodMiniNumber<number>;
|
|
413
|
+
y: z.ZodMiniNumber<number>;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
background: z.ZodMiniString<string>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
418
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
419
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
420
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
421
|
+
}, z.core.$strip>>>;
|
|
422
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
423
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
424
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
425
|
+
value: z.ZodMiniString<string>;
|
|
426
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
427
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
428
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
429
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
430
|
+
text?: unknown;
|
|
431
|
+
variant?: unknown;
|
|
432
|
+
value: Record<string, unknown>;
|
|
433
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
434
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
435
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
436
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
437
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
438
|
+
variant?: string | undefined;
|
|
439
|
+
text?: string | undefined;
|
|
440
|
+
} & LinkContentValue, {
|
|
441
|
+
value: LinkContentValue;
|
|
442
|
+
text?: string | undefined;
|
|
443
|
+
variant?: string | undefined;
|
|
444
|
+
}>>;
|
|
445
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
446
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
447
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
448
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
449
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
450
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
451
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
452
|
+
text?: unknown;
|
|
453
|
+
variant?: unknown;
|
|
454
|
+
value: Record<string, unknown>;
|
|
455
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
456
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
457
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
458
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
459
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
460
|
+
variant?: string | undefined;
|
|
461
|
+
text?: string | undefined;
|
|
462
|
+
} & LinkContentValue, {
|
|
463
|
+
value: LinkContentValue;
|
|
464
|
+
text?: string | undefined;
|
|
465
|
+
variant?: string | undefined;
|
|
466
|
+
}>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
469
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
470
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
471
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
472
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
473
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
474
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
475
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
476
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
477
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
478
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
479
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
480
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
481
|
+
content: z.ZodMiniObject<{
|
|
482
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
483
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
487
|
+
}, z.core.$strict>>;
|
|
488
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
489
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
490
|
+
value: z.ZodMiniString<string>;
|
|
491
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
492
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
493
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
494
|
+
value: z.ZodMiniString<string>;
|
|
495
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
496
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
497
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
498
|
+
value: z.ZodMiniString<string>;
|
|
499
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
500
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
501
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
502
|
+
value: z.ZodMiniString<string>;
|
|
503
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
504
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
505
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
506
|
+
value: z.ZodMiniString<string>;
|
|
507
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
508
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
509
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
510
|
+
value: z.ZodMiniString<string>;
|
|
511
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
512
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
513
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
514
|
+
value: z.ZodMiniString<string>;
|
|
515
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
516
|
+
}, z.core.$strip>], "type">], "__TYPE__">, z.ZodMiniObject<{
|
|
517
|
+
__TYPE__: z.ZodMiniLiteral<"GroupContentType">;
|
|
518
|
+
value: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
519
|
+
}, z.core.$strip>], "__TYPE__">>;
|
|
18
520
|
items: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
19
521
|
}, z.core.$strip>;
|
|
20
522
|
type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/content/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/content/slice.ts"],"mappings":";;;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,yBAAA,EAAA,CAAA,CAAA,yBAAA,EAAA,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEzB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,cAKnC,2BAAA,EAA2B,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAKtC,wBAAA,EAAwB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOzB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,KASpC,YAAA,GAAe,kBAAA,GAAqB,qBAAA,GAAwB,kBAAA"}
|
package/dist/content/slice.js
CHANGED
|
@@ -16,7 +16,7 @@ const SharedSliceContentSchema = z.object({
|
|
|
16
16
|
primary: z.record(z.string(), NestableAndGroupContentSchema),
|
|
17
17
|
items: z.array(GroupItemContentSchema)
|
|
18
18
|
});
|
|
19
|
-
const SliceContentSchema = z.
|
|
19
|
+
const SliceContentSchema = z.discriminatedUnion("__TYPE__", [
|
|
20
20
|
LegacySliceContentSchema,
|
|
21
21
|
CompositeSliceContentSchema,
|
|
22
22
|
SharedSliceContentSchema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.js","names":[],"sources":["../../src/content/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { GroupItemContentSchema, NestableAndGroupContentSchema } from \"./group\"\nimport { NestableContentSchema } from \"./nestable\"\n\n// Legacy (before 2020)\nexport const LegacySliceContentSchema = NestableAndGroupContentSchema\n\nexport type LegacySliceContent = z.infer<typeof LegacySliceContentSchema>\n\n// Composite (2020 to 2021)\nexport const CompositeSliceContentType = \"CompositeSliceContent\" as const\n\nexport const CompositeSliceContentSchema = z.object({\n\t__TYPE__: z.literal(CompositeSliceContentType),\n\tnonRepeat: z.record(z.string(), NestableContentSchema),\n\trepeat: z.array(GroupItemContentSchema),\n})\n\nexport type CompositeSliceContent = z.infer<typeof CompositeSliceContentSchema>\n\n// Shared (2021 to present)\nexport const SharedSliceContentType = \"SharedSliceContent\" as const\n\nexport const SharedSliceContentSchema = z.object({\n\t__TYPE__: z.literal(SharedSliceContentType),\n\tvariation: z.string(),\n\tprimary: z.record(z.string(), NestableAndGroupContentSchema),\n\titems: z.array(GroupItemContentSchema),\n})\n\nexport type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>\n\n// All\nexport const SliceContentSchema: z.ZodMiniType<SliceContent> = z.
|
|
1
|
+
{"version":3,"file":"slice.js","names":[],"sources":["../../src/content/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { GroupItemContentSchema, NestableAndGroupContentSchema } from \"./group\"\nimport { NestableContentSchema } from \"./nestable\"\n\n// Legacy (before 2020)\nexport const LegacySliceContentSchema = NestableAndGroupContentSchema\n\nexport type LegacySliceContent = z.infer<typeof LegacySliceContentSchema>\n\n// Composite (2020 to 2021)\nexport const CompositeSliceContentType = \"CompositeSliceContent\" as const\n\nexport const CompositeSliceContentSchema = z.object({\n\t__TYPE__: z.literal(CompositeSliceContentType),\n\tnonRepeat: z.record(z.string(), NestableContentSchema),\n\trepeat: z.array(GroupItemContentSchema),\n})\n\nexport type CompositeSliceContent = z.infer<typeof CompositeSliceContentSchema>\n\n// Shared (2021 to present)\nexport const SharedSliceContentType = \"SharedSliceContent\" as const\n\nexport const SharedSliceContentSchema = z.object({\n\t__TYPE__: z.literal(SharedSliceContentType),\n\tvariation: z.string(),\n\tprimary: z.record(z.string(), NestableAndGroupContentSchema),\n\titems: z.array(GroupItemContentSchema),\n})\n\nexport type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>\n\n// All\nexport const SliceContentSchema: z.ZodMiniType<SliceContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tLegacySliceContentSchema,\n\tCompositeSliceContentSchema,\n\tSharedSliceContentSchema,\n])\n\nexport type SliceContent = LegacySliceContent | CompositeSliceContent | SharedSliceContent\n"],"mappings":";;;;AAMA,MAAa,2BAA2B;AAKxC,MAAa,4BAA4B;AAEzC,MAAa,8BAA8B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,0BAA0B;CAC9C,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB;CACtD,QAAQ,EAAE,MAAM,uBAAuB;CACvC,CAAC;AAKF,MAAa,yBAAyB;AAEtC,MAAa,2BAA2B,EAAE,OAAO;CAChD,UAAU,EAAE,QAAQ,uBAAuB;CAC3C,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,8BAA8B;CAC5D,OAAO,EAAE,MAAM,uBAAuB;CACtC,CAAC;AAKF,MAAa,qBAAkD,EAAE,mBAAmB,YAAY;CAC/F;CACA;CACA;CACA,CAAC"}
|