@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/slices.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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 { SliceContent } from "./slice.js";
|
|
4
5
|
import { z } from "zod/mini";
|
|
5
6
|
|
|
@@ -8,7 +9,175 @@ declare const LegacySliceItemContentSchema: z.ZodMiniObject<{
|
|
|
8
9
|
key: z.ZodMiniString<string>;
|
|
9
10
|
name: z.ZodMiniString<string>;
|
|
10
11
|
maybeLabel: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
|
-
widget: z.
|
|
12
|
+
widget: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
13
|
+
type: z.ZodMiniString<string>;
|
|
14
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
15
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
16
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
17
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
18
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
19
|
+
embed_url: z.ZodMiniString<string>;
|
|
20
|
+
type: z.ZodMiniString<string>;
|
|
21
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
22
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
23
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
24
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
25
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
26
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
27
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
28
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
29
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
30
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
31
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
32
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
33
|
+
all: z.ZodMiniUnknown;
|
|
34
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
35
|
+
position: z.ZodMiniObject<{
|
|
36
|
+
lat: z.ZodMiniNumber<number>;
|
|
37
|
+
lng: z.ZodMiniNumber<number>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
40
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
41
|
+
origin: z.ZodMiniObject<{
|
|
42
|
+
id: z.ZodMiniString<string>;
|
|
43
|
+
url: z.ZodMiniString<string>;
|
|
44
|
+
width: z.ZodMiniNumber<number>;
|
|
45
|
+
height: z.ZodMiniNumber<number>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
width: z.ZodMiniNumber<number>;
|
|
48
|
+
height: z.ZodMiniNumber<number>;
|
|
49
|
+
edit: z.ZodMiniObject<{
|
|
50
|
+
zoom: z.ZodMiniNumber<number>;
|
|
51
|
+
crop: z.ZodMiniObject<{
|
|
52
|
+
x: z.ZodMiniNumber<number>;
|
|
53
|
+
y: z.ZodMiniNumber<number>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
background: z.ZodMiniString<string>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
58
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
59
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
60
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
61
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
62
|
+
origin: z.ZodMiniObject<{
|
|
63
|
+
id: z.ZodMiniString<string>;
|
|
64
|
+
url: z.ZodMiniString<string>;
|
|
65
|
+
width: z.ZodMiniNumber<number>;
|
|
66
|
+
height: z.ZodMiniNumber<number>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
width: z.ZodMiniNumber<number>;
|
|
69
|
+
height: z.ZodMiniNumber<number>;
|
|
70
|
+
edit: z.ZodMiniObject<{
|
|
71
|
+
zoom: z.ZodMiniNumber<number>;
|
|
72
|
+
crop: z.ZodMiniObject<{
|
|
73
|
+
x: z.ZodMiniNumber<number>;
|
|
74
|
+
y: z.ZodMiniNumber<number>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
background: z.ZodMiniString<string>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
80
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
81
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
84
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
85
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
86
|
+
value: z.ZodMiniString<string>;
|
|
87
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
88
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
89
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
90
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
91
|
+
text?: unknown;
|
|
92
|
+
variant?: unknown;
|
|
93
|
+
value: Record<string, unknown>;
|
|
94
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
95
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
97
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
98
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
99
|
+
variant?: string | undefined;
|
|
100
|
+
text?: string | undefined;
|
|
101
|
+
} & LinkContentValue, {
|
|
102
|
+
value: LinkContentValue;
|
|
103
|
+
text?: string | undefined;
|
|
104
|
+
variant?: string | undefined;
|
|
105
|
+
}>>;
|
|
106
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
107
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
108
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
109
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
110
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
111
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
112
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
113
|
+
text?: unknown;
|
|
114
|
+
variant?: unknown;
|
|
115
|
+
value: Record<string, unknown>;
|
|
116
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
117
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
118
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
119
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
120
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
121
|
+
variant?: string | undefined;
|
|
122
|
+
text?: string | undefined;
|
|
123
|
+
} & LinkContentValue, {
|
|
124
|
+
value: LinkContentValue;
|
|
125
|
+
text?: string | undefined;
|
|
126
|
+
variant?: string | undefined;
|
|
127
|
+
}>>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
130
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
131
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
132
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
133
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
134
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
135
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
136
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
137
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
138
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
139
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
140
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
141
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
142
|
+
content: z.ZodMiniObject<{
|
|
143
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
144
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
}, z.core.$strict>>;
|
|
149
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
150
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
151
|
+
value: z.ZodMiniString<string>;
|
|
152
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
153
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
154
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
155
|
+
value: z.ZodMiniString<string>;
|
|
156
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
157
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
158
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
159
|
+
value: z.ZodMiniString<string>;
|
|
160
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
161
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
162
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
163
|
+
value: z.ZodMiniString<string>;
|
|
164
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
165
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
166
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
167
|
+
value: z.ZodMiniString<string>;
|
|
168
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
169
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
170
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
171
|
+
value: z.ZodMiniString<string>;
|
|
172
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
173
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
174
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
175
|
+
value: z.ZodMiniString<string>;
|
|
176
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
177
|
+
}, z.core.$strip>], "type">], "__TYPE__">, z.ZodMiniObject<{
|
|
178
|
+
__TYPE__: z.ZodMiniLiteral<"GroupContentType">;
|
|
179
|
+
value: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
180
|
+
}, z.core.$strip>], "__TYPE__">;
|
|
12
181
|
}, z.core.$strip>;
|
|
13
182
|
type LegacySliceItemContent = z.infer<typeof LegacySliceItemContentSchema>;
|
|
14
183
|
declare const CompositeSliceItemContentSchema: z.ZodMiniObject<{
|
|
@@ -17,7 +186,172 @@ declare const CompositeSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
17
186
|
maybeLabel: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
18
187
|
widget: z.ZodMiniObject<{
|
|
19
188
|
__TYPE__: z.ZodMiniLiteral<"CompositeSliceContent">;
|
|
20
|
-
nonRepeat: z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
189
|
+
nonRepeat: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
190
|
+
type: z.ZodMiniString<string>;
|
|
191
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
192
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
193
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
194
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
195
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
196
|
+
embed_url: z.ZodMiniString<string>;
|
|
197
|
+
type: z.ZodMiniString<string>;
|
|
198
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
199
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
200
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
201
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
202
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
203
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
204
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
205
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
206
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
207
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
208
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
209
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
210
|
+
all: z.ZodMiniUnknown;
|
|
211
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
212
|
+
position: z.ZodMiniObject<{
|
|
213
|
+
lat: z.ZodMiniNumber<number>;
|
|
214
|
+
lng: z.ZodMiniNumber<number>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
217
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
218
|
+
origin: z.ZodMiniObject<{
|
|
219
|
+
id: z.ZodMiniString<string>;
|
|
220
|
+
url: z.ZodMiniString<string>;
|
|
221
|
+
width: z.ZodMiniNumber<number>;
|
|
222
|
+
height: z.ZodMiniNumber<number>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
width: z.ZodMiniNumber<number>;
|
|
225
|
+
height: z.ZodMiniNumber<number>;
|
|
226
|
+
edit: z.ZodMiniObject<{
|
|
227
|
+
zoom: z.ZodMiniNumber<number>;
|
|
228
|
+
crop: z.ZodMiniObject<{
|
|
229
|
+
x: z.ZodMiniNumber<number>;
|
|
230
|
+
y: z.ZodMiniNumber<number>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
background: z.ZodMiniString<string>;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
235
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
236
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
237
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
238
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
239
|
+
origin: z.ZodMiniObject<{
|
|
240
|
+
id: z.ZodMiniString<string>;
|
|
241
|
+
url: z.ZodMiniString<string>;
|
|
242
|
+
width: z.ZodMiniNumber<number>;
|
|
243
|
+
height: z.ZodMiniNumber<number>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
width: z.ZodMiniNumber<number>;
|
|
246
|
+
height: z.ZodMiniNumber<number>;
|
|
247
|
+
edit: z.ZodMiniObject<{
|
|
248
|
+
zoom: z.ZodMiniNumber<number>;
|
|
249
|
+
crop: z.ZodMiniObject<{
|
|
250
|
+
x: z.ZodMiniNumber<number>;
|
|
251
|
+
y: z.ZodMiniNumber<number>;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
background: z.ZodMiniString<string>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
256
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
257
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
258
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
261
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
262
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
263
|
+
value: z.ZodMiniString<string>;
|
|
264
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
265
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
266
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
267
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
268
|
+
text?: unknown;
|
|
269
|
+
variant?: unknown;
|
|
270
|
+
value: Record<string, unknown>;
|
|
271
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
272
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
273
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
274
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
275
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
276
|
+
variant?: string | undefined;
|
|
277
|
+
text?: string | undefined;
|
|
278
|
+
} & LinkContentValue, {
|
|
279
|
+
value: LinkContentValue;
|
|
280
|
+
text?: string | undefined;
|
|
281
|
+
variant?: string | undefined;
|
|
282
|
+
}>>;
|
|
283
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
284
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
285
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
286
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
287
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
288
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
289
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
290
|
+
text?: unknown;
|
|
291
|
+
variant?: unknown;
|
|
292
|
+
value: Record<string, unknown>;
|
|
293
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
294
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
295
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
296
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
297
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
298
|
+
variant?: string | undefined;
|
|
299
|
+
text?: string | undefined;
|
|
300
|
+
} & LinkContentValue, {
|
|
301
|
+
value: LinkContentValue;
|
|
302
|
+
text?: string | undefined;
|
|
303
|
+
variant?: string | undefined;
|
|
304
|
+
}>>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
307
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
308
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
309
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
310
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
311
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
312
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
313
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
314
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
315
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
316
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
317
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
318
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
319
|
+
content: z.ZodMiniObject<{
|
|
320
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
321
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
327
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
328
|
+
value: z.ZodMiniString<string>;
|
|
329
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
330
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
331
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
332
|
+
value: z.ZodMiniString<string>;
|
|
333
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
334
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
335
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
336
|
+
value: z.ZodMiniString<string>;
|
|
337
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
338
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
339
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
340
|
+
value: z.ZodMiniString<string>;
|
|
341
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
342
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
343
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
344
|
+
value: z.ZodMiniString<string>;
|
|
345
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
346
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
347
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
348
|
+
value: z.ZodMiniString<string>;
|
|
349
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
350
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
351
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
352
|
+
value: z.ZodMiniString<string>;
|
|
353
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
354
|
+
}, z.core.$strip>], "type">], "__TYPE__">>;
|
|
21
355
|
repeat: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
22
356
|
}, z.core.$strip>;
|
|
23
357
|
}, z.core.$strip>;
|
|
@@ -29,7 +363,175 @@ declare const SharedSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
29
363
|
widget: z.ZodMiniObject<{
|
|
30
364
|
__TYPE__: z.ZodMiniLiteral<"SharedSliceContent">;
|
|
31
365
|
variation: z.ZodMiniString<string>;
|
|
32
|
-
primary: z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
366
|
+
primary: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
367
|
+
type: z.ZodMiniString<string>;
|
|
368
|
+
__TYPE__: z.ZodMiniLiteral<"EmptyContent">;
|
|
369
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
370
|
+
__TYPE__: z.ZodMiniLiteral<"BooleanContent">;
|
|
371
|
+
value: z.ZodMiniBoolean<boolean>;
|
|
372
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
373
|
+
embed_url: z.ZodMiniString<string>;
|
|
374
|
+
type: z.ZodMiniString<string>;
|
|
375
|
+
version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
376
|
+
title: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
377
|
+
author_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
378
|
+
author_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
379
|
+
provider_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
380
|
+
provider_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
381
|
+
cache_age: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
382
|
+
thumbnail_url: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
383
|
+
thumbnail_width: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
384
|
+
thumbnail_height: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
385
|
+
html: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
386
|
+
__TYPE__: z.ZodMiniLiteral<"EmbedContent">;
|
|
387
|
+
all: z.ZodMiniUnknown;
|
|
388
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
389
|
+
position: z.ZodMiniObject<{
|
|
390
|
+
lat: z.ZodMiniNumber<number>;
|
|
391
|
+
lng: z.ZodMiniNumber<number>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
__TYPE__: z.ZodMiniLiteral<"GeoPointContent">;
|
|
394
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
395
|
+
origin: z.ZodMiniObject<{
|
|
396
|
+
id: z.ZodMiniString<string>;
|
|
397
|
+
url: z.ZodMiniString<string>;
|
|
398
|
+
width: z.ZodMiniNumber<number>;
|
|
399
|
+
height: z.ZodMiniNumber<number>;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
width: z.ZodMiniNumber<number>;
|
|
402
|
+
height: z.ZodMiniNumber<number>;
|
|
403
|
+
edit: z.ZodMiniObject<{
|
|
404
|
+
zoom: z.ZodMiniNumber<number>;
|
|
405
|
+
crop: z.ZodMiniObject<{
|
|
406
|
+
x: z.ZodMiniNumber<number>;
|
|
407
|
+
y: z.ZodMiniNumber<number>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
background: z.ZodMiniString<string>;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
412
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
413
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
414
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
415
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
416
|
+
origin: z.ZodMiniObject<{
|
|
417
|
+
id: z.ZodMiniString<string>;
|
|
418
|
+
url: z.ZodMiniString<string>;
|
|
419
|
+
width: z.ZodMiniNumber<number>;
|
|
420
|
+
height: z.ZodMiniNumber<number>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
width: z.ZodMiniNumber<number>;
|
|
423
|
+
height: z.ZodMiniNumber<number>;
|
|
424
|
+
edit: z.ZodMiniObject<{
|
|
425
|
+
zoom: z.ZodMiniNumber<number>;
|
|
426
|
+
crop: z.ZodMiniObject<{
|
|
427
|
+
x: z.ZodMiniNumber<number>;
|
|
428
|
+
y: z.ZodMiniNumber<number>;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
background: z.ZodMiniString<string>;
|
|
431
|
+
}, z.core.$strip>;
|
|
432
|
+
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
433
|
+
credits: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
434
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>, z.ZodMiniTransform<string | null, string | null | undefined>>>;
|
|
435
|
+
provider: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
436
|
+
}, z.core.$strip>>>;
|
|
437
|
+
__TYPE__: z.ZodMiniLiteral<"ImageContent">;
|
|
438
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
439
|
+
__TYPE__: z.ZodMiniLiteral<"IntegrationFieldsContent">;
|
|
440
|
+
value: z.ZodMiniString<string>;
|
|
441
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
442
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
443
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
444
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
445
|
+
text?: unknown;
|
|
446
|
+
variant?: unknown;
|
|
447
|
+
value: Record<string, unknown>;
|
|
448
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
449
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
450
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
451
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
452
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
453
|
+
variant?: string | undefined;
|
|
454
|
+
text?: string | undefined;
|
|
455
|
+
} & LinkContentValue, {
|
|
456
|
+
value: LinkContentValue;
|
|
457
|
+
text?: string | undefined;
|
|
458
|
+
variant?: string | undefined;
|
|
459
|
+
}>>;
|
|
460
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
461
|
+
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
462
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
463
|
+
value: z.ZodMiniArray<z.ZodMiniObject<{
|
|
464
|
+
__TYPE__: z.ZodMiniLiteral<"LinkContent">;
|
|
465
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
466
|
+
value: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniTransform<{
|
|
467
|
+
text?: unknown;
|
|
468
|
+
variant?: unknown;
|
|
469
|
+
value: Record<string, unknown>;
|
|
470
|
+
}, Record<string, unknown>>>, z.ZodMiniObject<{
|
|
471
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
472
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
473
|
+
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
474
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
475
|
+
variant?: string | undefined;
|
|
476
|
+
text?: string | undefined;
|
|
477
|
+
} & LinkContentValue, {
|
|
478
|
+
value: LinkContentValue;
|
|
479
|
+
text?: string | undefined;
|
|
480
|
+
variant?: string | undefined;
|
|
481
|
+
}>>;
|
|
482
|
+
}, z.core.$strip>>;
|
|
483
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
484
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
485
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
486
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
487
|
+
__TYPE__: z.ZodMiniLiteral<"SeparatorContent">;
|
|
488
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
489
|
+
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
490
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
491
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
492
|
+
type: z.ZodMiniLiteral<"tableRow">;
|
|
493
|
+
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
494
|
+
key: z.ZodMiniTransform<string, unknown>;
|
|
495
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
496
|
+
content: z.ZodMiniObject<{
|
|
497
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
498
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
}, z.core.$strict>>;
|
|
503
|
+
}, z.core.$strip>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
504
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
505
|
+
value: z.ZodMiniString<string>;
|
|
506
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
507
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
508
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
509
|
+
value: z.ZodMiniString<string>;
|
|
510
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
511
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
512
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
513
|
+
value: z.ZodMiniString<string>;
|
|
514
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
515
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
516
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
517
|
+
value: z.ZodMiniString<string>;
|
|
518
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
519
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
520
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
521
|
+
value: z.ZodMiniString<string>;
|
|
522
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
523
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
524
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
525
|
+
value: z.ZodMiniString<string>;
|
|
526
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
527
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
528
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
529
|
+
value: z.ZodMiniString<string>;
|
|
530
|
+
__TYPE__: z.ZodMiniLiteral<"FieldContent">;
|
|
531
|
+
}, z.core.$strip>], "type">], "__TYPE__">, z.ZodMiniObject<{
|
|
532
|
+
__TYPE__: z.ZodMiniLiteral<"GroupContentType">;
|
|
533
|
+
value: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
534
|
+
}, z.core.$strip>], "__TYPE__">>;
|
|
33
535
|
items: z.ZodMiniArray<z.ZodMiniType<GroupItemContent, unknown, z.core.$ZodTypeInternals<GroupItemContent, unknown>>>;
|
|
34
536
|
}, z.core.$strip>;
|
|
35
537
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slices.d.ts","names":[],"sources":["../../src/content/slices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slices.d.ts","names":[],"sources":["../../src/content/slices.ts"],"mappings":";;;;;;;cA2Ba,4BAAA,EAA4B,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAE7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;AAAA,cAEvC,+BAAA,EAA+B,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIhC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QAAa,+BAAA;AAAA,cAE1C,4BAAA,EAA4B,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAE7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;AAAA,cAGvC,sBAAA,EAAsB,CAAA,CAAA,aAAA;;;;;;KAEvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,cAOjC,mBAAA,EAAmB,CAAA,CAAA,aAAA;;;;;;;;;KAKpB,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA"}
|
package/dist/content/table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RichTextContentBlock } from "./richText.js";
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
|
|
4
4
|
//#region src/content/table.d.ts
|
|
@@ -10,7 +10,10 @@ declare const TableContentSchema: z.ZodMiniObject<{
|
|
|
10
10
|
content: z.ZodMiniArray<z.ZodMiniObject<{
|
|
11
11
|
key: z.ZodMiniTransform<string, unknown>;
|
|
12
12
|
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tableHeader">, z.ZodMiniLiteral<"tableCell">]>;
|
|
13
|
-
content: z.
|
|
13
|
+
content: z.ZodMiniObject<{
|
|
14
|
+
__TYPE__: z.ZodMiniLiteral<"StructuredTextContent">;
|
|
15
|
+
value: z.ZodMiniArray<z.ZodMiniType<RichTextContentBlock, unknown, z.core.$ZodTypeInternals<RichTextContentBlock, unknown>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
14
17
|
columnWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
15
18
|
}, z.core.$strip>>;
|
|
16
19
|
}, z.core.$strict>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/content/table.ts"],"mappings":";;;;cAQa,kBAAA,EAAkB,CAAA,CAAA,aAAA
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/content/table.ts"],"mappings":";;;;cAQa,kBAAA,EAAkB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;KAKnB,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA"}
|
package/dist/content/widget.js
CHANGED
|
@@ -4,7 +4,7 @@ import { SlicesContentSchema } from "./slices.js";
|
|
|
4
4
|
import { UIDContentSchema } from "./uid.js";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
6
|
//#region src/content/widget.ts
|
|
7
|
-
const WidgetContentSchema = z.
|
|
7
|
+
const WidgetContentSchema = z.discriminatedUnion("__TYPE__", [
|
|
8
8
|
GroupContentSchema,
|
|
9
9
|
NestableContentSchema,
|
|
10
10
|
UIDContentSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","names":[],"sources":["../../src/content/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupContent } from \"./group\"\nimport { GroupContentSchema } from \"./group\"\nimport type { NestableContent } from \"./nestable\"\nimport { NestableContentSchema } from \"./nestable\"\nimport type { SlicesContent } from \"./slices\"\nimport { SlicesContentSchema } from \"./slices\"\nimport type { UIDContent } from \"./uid\"\nimport { UIDContentSchema } from \"./uid\"\n\nexport const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.
|
|
1
|
+
{"version":3,"file":"widget.js","names":[],"sources":["../../src/content/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupContent } from \"./group\"\nimport { GroupContentSchema } from \"./group\"\nimport type { NestableContent } from \"./nestable\"\nimport { NestableContentSchema } from \"./nestable\"\nimport type { SlicesContent } from \"./slices\"\nimport { SlicesContentSchema } from \"./slices\"\nimport type { UIDContent } from \"./uid\"\nimport { UIDContentSchema } from \"./uid\"\n\nexport const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tGroupContentSchema,\n\tNestableContentSchema,\n\tUIDContentSchema,\n\tSlicesContentSchema,\n])\n\nexport type WidgetContent = GroupContent | NestableContent | UIDContent | SlicesContent\n\nexport type ContentType = WidgetContent[\"__TYPE__\"]\n"],"mappings":";;;;;;AAWA,MAAa,sBAAoD,EAAE,mBAAmB,YAAY;CACjG;CACA;CACA;CACA;CACA,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { SharedSliceModel } from "../model/slice.js";
|
|
2
|
-
import {
|
|
3
|
-
import { StaticSectionModel } from "../model/section.js";
|
|
2
|
+
import { DynamicCustomTypeModel, StaticCustomTypeModel, StaticCustomTypeModelTab } from "../model/customType.js";
|
|
4
3
|
|
|
5
4
|
//#region src/helpers/customTypeModel.d.ts
|
|
6
5
|
declare namespace customTypeModel_d_exports {
|
|
7
6
|
export { collectSharedSlices, filterMissingSharedSlices, flatten, toStatic };
|
|
8
7
|
}
|
|
9
|
-
declare function toStatic(customType:
|
|
10
|
-
declare function flatten(customType: StaticCustomTypeModel):
|
|
8
|
+
declare function toStatic(customType: DynamicCustomTypeModel, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): StaticCustomTypeModel;
|
|
9
|
+
declare function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab;
|
|
11
10
|
declare function collectSharedSlices(customType: StaticCustomTypeModel): Record<string, SharedSliceModel>;
|
|
12
|
-
declare function filterMissingSharedSlices<TCustomType extends StaticCustomTypeModel |
|
|
11
|
+
declare function filterMissingSharedSlices<TCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel>(customType: TCustomType, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): TCustomType;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { customTypeModel_d_exports };
|
|
15
14
|
//# sourceMappingURL=customTypeModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":";;;;;;;iBAOgB,QAAA,CACf,UAAA,EAAY,sBAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,qBAAA;AAAA,iBAwCa,OAAA,CAAQ,UAAA,EAAY,qBAAA,GAAwB,wBAAA;AAAA,iBAI5C,mBAAA,CACf,UAAA,EAAY,qBAAA,GACV,MAAA,SAAe,gBAAA;AAAA,iBAiBF,yBAAA,qBACK,qBAAA,GAAwB,sBAAA,CAAA,CAE5C,UAAA,EAAY,WAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,WAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type {\n\tDynamicCustomTypeModel,\n\tStaticCustomTypeModel,\n\tStaticCustomTypeModelTab,\n} from \"../model/customType\"\nimport type { SharedSliceModel, StaticSliceModel } from \"../model/slice\"\n\nexport function toStatic(\n\tcustomType: DynamicCustomTypeModel,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): StaticCustomTypeModel {\n\tconst json: StaticCustomTypeModel[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: StaticCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, StaticSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tconst sharedSlice = sharedSlicesMap.get(id)\n\t\t\t\t\t\t\tif (sharedSlice) {\n\t\t\t\t\t\t\t\tchoices[id] = sharedSlice\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab {\n\treturn Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})\n}\n\nexport function collectSharedSlices(\n\tcustomType: StaticCustomTypeModel,\n): Record<string, SharedSliceModel> {\n\tconst sharedSlices: Record<string, SharedSliceModel> = {}\n\n\tconst flattened = flatten(customType)\n\tfor (const widget of Object.values(flattened)) {\n\t\tif (widget.type === \"Slices\" || widget.type === \"Choice\") {\n\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\tsharedSlices[id] = model\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn sharedSlices\n}\n\nexport function filterMissingSharedSlices<\n\tTCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel,\n>(\n\tcustomType: TCustomType,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): TCustomType {\n\tconst json: TCustomType[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: typeof tab = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Required<typeof widget>[\"config\"][\"choices\"] = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tif (sharedSlicesMap.get(id)) {\n\t\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,SACf,YACA,cACwB;CACxB,MAAM,OAAsC,EAAE;CAE9C,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,aAAa,CAAC;AAEnF,MAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,KAAK,EAAE;EAC5D,MAAM,UAAiD,EAAE;AACzD,OAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,IAAI,CAC9C,SAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAA4C,EAAE;AACpD,SAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,EAAE,CAAC,CACrE,KAAI,MAAM,SAAS,eAAe;KACjC,MAAM,cAAc,gBAAgB,IAAI,GAAG;AAC3C,SAAI,YACH,SAAQ,MAAM;UAGf,SAAQ,MAAM;AAIhB,YAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;MAAS;KACrC;AACD;GACD,QACC,SAAQ,OAAO;;AAIlB,OAAK,UAAU;;AAGhB,QAAO;EAAE,GAAG;EAAY;EAAM;;AAG/B,SAAgB,QAAQ,YAA6D;AACpF,QAAO,OAAO,OAAO,WAAW,KAAK,CAAC,QAAQ,KAAK,YAAY;EAAE,GAAG;EAAK,GAAG;EAAQ,GAAG,EAAE,CAAC;;AAG3F,SAAgB,oBACf,YACmC;CACnC,MAAM,eAAiD,EAAE;CAEzD,MAAM,YAAY,QAAQ,WAAW;AACrC,MAAK,MAAM,UAAU,OAAO,OAAO,UAAU,CAC5C,KAAI,OAAO,SAAS,YAAY,OAAO,SAAS;OAC1C,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,EAAE,CAAC,CACrE,KAAI,MAAM,SAAS,cAClB,cAAa,MAAM;;AAMvB,QAAO;;AAGR,SAAgB,0BAGf,YACA,cACc;CACd,MAAM,OAA4B,EAAE;CAEpC,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,aAAa,CAAC;AAEnF,MAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,KAAK,EAAE;EAC5D,MAAM,UAAsB,EAAE;AAC9B,OAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,IAAI,CAC9C,SAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAAwD,EAAE;AAChE,SAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,EAAE,CAAC,CACrE,KAAI,MAAM,SAAS;SACd,gBAAgB,IAAI,GAAG,CAC1B,SAAQ,MAAM;UAGf,SAAQ,MAAM;AAIhB,YAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;MAAS;KACrC;AACD;GACD,QACC,SAAQ,OAAO;;AAIlB,OAAK,UAAU;;AAGhB,QAAO;EAAE,GAAG;EAAY;EAAM"}
|