@cntrl-site/sdk 1.27.1 → 1.28.0-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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemStateParamsSchema = exports.ComponentStateParamsSchema = exports.CodeEmbedStateParamsSchema = exports.CompoundStateParamsSchema = exports.GroupStateParamsSchema = exports.RichTextStateParamsSchema = exports.EmbedStateParamsSchema = exports.CustomItemStateParamsSchema = exports.RectangleStateParamsSchema = exports.MediaStateParamsSchema = exports.ItemStateBaseSchema = exports.getStateParamsSchema = void 0;
3
+ exports.ItemStateParamsSchema = exports.VideoEmbedBlockStateParamsSchema = exports.ComponentBlockStateParamsSchema = exports.MediaBlockStateParamsSchema = exports.RichTextBlockStateParamsSchema = exports.ComponentStateParamsSchema = exports.CodeEmbedStateParamsSchema = exports.CompoundStateParamsSchema = exports.GroupStateParamsSchema = exports.RichTextStateParamsSchema = exports.EmbedStateParamsSchema = exports.CustomItemStateParamsSchema = exports.RectangleStateParamsSchema = exports.MediaStateParamsSchema = exports.ItemStateBaseSchema = exports.getStateParamsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const FillLayer_schema_1 = require("./FillLayer.schema");
6
6
  const TransitionSchema = zod_1.z.object({
@@ -62,6 +62,24 @@ exports.CodeEmbedStateParamsSchema = zod_1.z.object({
62
62
  exports.ComponentStateParamsSchema = zod_1.z.object({
63
63
  opacity: (0, exports.getStateParamsSchema)(zod_1.z.number().nonnegative())
64
64
  }).merge(exports.ItemStateBaseSchema);
65
+ exports.RichTextBlockStateParamsSchema = zod_1.z.object({
66
+ color: (0, exports.getStateParamsSchema)(zod_1.z.string()),
67
+ letterSpacing: (0, exports.getStateParamsSchema)(zod_1.z.number()),
68
+ wordSpacing: (0, exports.getStateParamsSchema)(zod_1.z.number())
69
+ });
70
+ exports.MediaBlockStateParamsSchema = zod_1.z.object({
71
+ opacity: (0, exports.getStateParamsSchema)(zod_1.z.number().nonnegative()),
72
+ radius: (0, exports.getStateParamsSchema)(zod_1.z.number()),
73
+ strokeWidth: (0, exports.getStateParamsSchema)(zod_1.z.number()),
74
+ strokeFill: (0, exports.getStateParamsSchema)(zod_1.z.array(FillLayer_schema_1.FillLayerSchema))
75
+ });
76
+ exports.ComponentBlockStateParamsSchema = zod_1.z.object({
77
+ opacity: (0, exports.getStateParamsSchema)(zod_1.z.number().nonnegative())
78
+ });
79
+ exports.VideoEmbedBlockStateParamsSchema = zod_1.z.object({
80
+ radius: (0, exports.getStateParamsSchema)(zod_1.z.number()),
81
+ opacity: (0, exports.getStateParamsSchema)(zod_1.z.number().nonnegative())
82
+ });
65
83
  exports.ItemStateParamsSchema = zod_1.z.union([
66
84
  exports.EmbedStateParamsSchema,
67
85
  exports.MediaStateParamsSchema,
@@ -71,5 +89,9 @@ exports.ItemStateParamsSchema = zod_1.z.union([
71
89
  exports.GroupStateParamsSchema,
72
90
  exports.CompoundStateParamsSchema,
73
91
  exports.CodeEmbedStateParamsSchema,
74
- exports.ComponentStateParamsSchema
92
+ exports.ComponentStateParamsSchema,
93
+ exports.RichTextBlockStateParamsSchema,
94
+ exports.MediaBlockStateParamsSchema,
95
+ exports.ComponentBlockStateParamsSchema,
96
+ exports.VideoEmbedBlockStateParamsSchema
75
97
  ]);
@@ -1,5 +1,5 @@
1
- import { SectionHeightMode } from '../../types/article/Section';
2
- import { z } from 'zod';
1
+ import { Section, SectionHeightMode } from '../../types/article/Section';
2
+ import { z, ZodType } from 'zod';
3
3
  export declare const SectionHeightSchema: z.ZodObject<{
4
4
  mode: z.ZodNativeEnum<typeof SectionHeightMode>;
5
5
  units: z.ZodNumber;
@@ -13,6 +13,23 @@ export declare const SectionHeightSchema: z.ZodObject<{
13
13
  units: number;
14
14
  vhUnits?: number | undefined;
15
15
  }>;
16
+ export declare const ContentBasedSectionSettingsSchema: z.ZodObject<{
17
+ defaultWidth: z.ZodRecord<z.ZodString, z.ZodNumber>;
18
+ paddingBottom: z.ZodRecord<z.ZodString, z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ defaultWidth: Record<string, number>;
21
+ paddingBottom: Record<string, number>;
22
+ }, {
23
+ defaultWidth: Record<string, number>;
24
+ paddingBottom: Record<string, number>;
25
+ }>;
26
+ export declare const ComponentBasedSectionSettingsSchema: z.ZodObject<{
27
+ paddingBottom: z.ZodRecord<z.ZodString, z.ZodNumber>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ paddingBottom: Record<string, number>;
30
+ }, {
31
+ paddingBottom: Record<string, number>;
32
+ }>;
16
33
  export declare const SectionMediaSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
34
  url: z.ZodString;
18
35
  size: z.ZodString;
@@ -56,121 +73,4 @@ export declare const SectionMediaSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
56
73
  size: string;
57
74
  offsetX: number | null;
58
75
  }>]>;
59
- export declare const SectionSchema: z.ZodObject<{
60
- id: z.ZodString;
61
- items: z.ZodArray<z.ZodType<import("../..").ItemAny, z.ZodTypeDef, import("../..").ItemAny>, "many">;
62
- name: z.ZodOptional<z.ZodString>;
63
- height: z.ZodRecord<z.ZodString, z.ZodObject<{
64
- mode: z.ZodNativeEnum<typeof SectionHeightMode>;
65
- units: z.ZodNumber;
66
- vhUnits: z.ZodOptional<z.ZodNumber>;
67
- }, "strip", z.ZodTypeAny, {
68
- mode: SectionHeightMode;
69
- units: number;
70
- vhUnits?: number | undefined;
71
- }, {
72
- mode: SectionHeightMode;
73
- units: number;
74
- vhUnits?: number | undefined;
75
- }>>;
76
- position: z.ZodRecord<z.ZodString, z.ZodNumber>;
77
- hidden: z.ZodRecord<z.ZodString, z.ZodBoolean>;
78
- color: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
79
- media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
80
- url: z.ZodString;
81
- size: z.ZodString;
82
- type: z.ZodLiteral<"video">;
83
- play: z.ZodEnum<["on-click", "auto"]>;
84
- coverUrl: z.ZodNullable<z.ZodString>;
85
- position: z.ZodString;
86
- offsetX: z.ZodNullable<z.ZodNumber>;
87
- }, "strip", z.ZodTypeAny, {
88
- url: string;
89
- coverUrl: string | null;
90
- play: "on-click" | "auto";
91
- position: string;
92
- type: "video";
93
- size: string;
94
- offsetX: number | null;
95
- }, {
96
- url: string;
97
- coverUrl: string | null;
98
- play: "on-click" | "auto";
99
- position: string;
100
- type: "video";
101
- size: string;
102
- offsetX: number | null;
103
- }>, z.ZodObject<{
104
- url: z.ZodString;
105
- type: z.ZodLiteral<"image">;
106
- size: z.ZodString;
107
- position: z.ZodString;
108
- offsetX: z.ZodNullable<z.ZodNumber>;
109
- }, "strip", z.ZodTypeAny, {
110
- url: string;
111
- position: string;
112
- type: "image";
113
- size: string;
114
- offsetX: number | null;
115
- }, {
116
- url: string;
117
- position: string;
118
- type: "image";
119
- size: string;
120
- offsetX: number | null;
121
- }>]>>>;
122
- }, "strip", z.ZodTypeAny, {
123
- color: Record<string, string | null>;
124
- hidden: Record<string, boolean>;
125
- position: Record<string, number>;
126
- id: string;
127
- height: Record<string, {
128
- mode: SectionHeightMode;
129
- units: number;
130
- vhUnits?: number | undefined;
131
- }>;
132
- items: import("../..").ItemAny[];
133
- name?: string | undefined;
134
- media?: Record<string, {
135
- url: string;
136
- coverUrl: string | null;
137
- play: "on-click" | "auto";
138
- position: string;
139
- type: "video";
140
- size: string;
141
- offsetX: number | null;
142
- } | {
143
- url: string;
144
- position: string;
145
- type: "image";
146
- size: string;
147
- offsetX: number | null;
148
- }> | undefined;
149
- }, {
150
- color: Record<string, string | null>;
151
- hidden: Record<string, boolean>;
152
- position: Record<string, number>;
153
- id: string;
154
- height: Record<string, {
155
- mode: SectionHeightMode;
156
- units: number;
157
- vhUnits?: number | undefined;
158
- }>;
159
- items: import("../..").ItemAny[];
160
- name?: string | undefined;
161
- media?: Record<string, {
162
- url: string;
163
- coverUrl: string | null;
164
- play: "on-click" | "auto";
165
- position: string;
166
- type: "video";
167
- size: string;
168
- offsetX: number | null;
169
- } | {
170
- url: string;
171
- position: string;
172
- type: "image";
173
- size: string;
174
- offsetX: number | null;
175
- }> | undefined;
176
- }>;
76
+ export declare const SectionSchema: ZodType<Section>;
@@ -1,14 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SectionSchema = exports.SectionMediaSchema = exports.SectionHeightSchema = void 0;
3
+ exports.SectionSchema = exports.SectionMediaSchema = exports.ComponentBasedSectionSettingsSchema = exports.ContentBasedSectionSettingsSchema = exports.SectionHeightSchema = void 0;
4
4
  const Section_1 = require("../../types/article/Section");
5
5
  const zod_1 = require("zod");
6
6
  const Item_schema_1 = require("./Item.schema");
7
+ const StructuredBlock_schema_1 = require("./StructuredBlock.schema");
7
8
  exports.SectionHeightSchema = zod_1.z.object({
8
9
  mode: zod_1.z.nativeEnum(Section_1.SectionHeightMode),
9
10
  units: zod_1.z.number().nonnegative(),
10
11
  vhUnits: zod_1.z.number().nonnegative().optional()
11
12
  });
13
+ exports.ContentBasedSectionSettingsSchema = zod_1.z.object({
14
+ defaultWidth: zod_1.z.record(zod_1.z.number().nonnegative()),
15
+ paddingBottom: zod_1.z.record(zod_1.z.number().nonnegative()),
16
+ });
17
+ exports.ComponentBasedSectionSettingsSchema = zod_1.z.object({
18
+ paddingBottom: zod_1.z.record(zod_1.z.number().nonnegative()),
19
+ });
12
20
  const SectionVideoSchema = zod_1.z.object({
13
21
  url: zod_1.z.string(),
14
22
  size: zod_1.z.string(),
@@ -26,13 +34,33 @@ const SectionImageSchema = zod_1.z.object({
26
34
  offsetX: zod_1.z.number().nullable()
27
35
  });
28
36
  exports.SectionMediaSchema = zod_1.z.discriminatedUnion('type', [SectionVideoSchema, SectionImageSchema]);
29
- exports.SectionSchema = zod_1.z.object({
37
+ const SectionBaseSchema = zod_1.z.object({
30
38
  id: zod_1.z.string().min(1),
31
- items: zod_1.z.array(Item_schema_1.ItemSchema),
32
39
  name: zod_1.z.string().optional(),
33
- height: zod_1.z.record(exports.SectionHeightSchema),
40
+ items: zod_1.z.array(Item_schema_1.ItemSchema),
34
41
  position: zod_1.z.record(zod_1.z.number()),
35
- hidden: zod_1.z.record(zod_1.z.boolean()),
36
42
  color: zod_1.z.record(zod_1.z.nullable(zod_1.z.string())),
43
+ hidden: zod_1.z.record(zod_1.z.boolean()),
37
44
  media: zod_1.z.record(exports.SectionMediaSchema).optional()
38
45
  });
46
+ const FreehandSectionSchema = SectionBaseSchema.extend({
47
+ type: zod_1.z.literal('freehand'),
48
+ height: zod_1.z.record(exports.SectionHeightSchema),
49
+ });
50
+ const ComponentBasedSectionSchema = SectionBaseSchema.extend({
51
+ type: zod_1.z.literal('component-based'),
52
+ minHeight: zod_1.z.record(exports.SectionHeightSchema),
53
+ structuredContent: zod_1.z.array(StructuredBlock_schema_1.StructuredBlockSchema),
54
+ structuredContentSettings: exports.ComponentBasedSectionSettingsSchema
55
+ });
56
+ const ContentBasedSectionSchema = SectionBaseSchema.extend({
57
+ type: zod_1.z.literal('content-based'),
58
+ minHeight: zod_1.z.record(exports.SectionHeightSchema),
59
+ structuredContent: zod_1.z.array(StructuredBlock_schema_1.StructuredBlockSchema),
60
+ structuredContentSettings: exports.ContentBasedSectionSettingsSchema
61
+ });
62
+ exports.SectionSchema = zod_1.z.discriminatedUnion('type', [
63
+ FreehandSectionSchema,
64
+ ComponentBasedSectionSchema,
65
+ ContentBasedSectionSchema
66
+ ]);
@@ -0,0 +1,443 @@
1
+ import { z, ZodType } from 'zod';
2
+ import { StructuredBlockAny, StructuredBlockCommonParamsMap, StructuredBlockLayoutParamsMap } from '../../types/article/StructuredBlock';
3
+ import { StructuredBlockType } from '../../types/article/StructuredBlockType';
4
+ export declare const StructuredBlockAreaSchema: z.ZodObject<{
5
+ width: z.ZodOptional<z.ZodNumber>;
6
+ height: z.ZodOptional<z.ZodNumber>;
7
+ paddingTop: z.ZodOptional<z.ZodNumber>;
8
+ zIndex: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ zIndex: number;
11
+ width?: number | undefined;
12
+ height?: number | undefined;
13
+ paddingTop?: number | undefined;
14
+ }, {
15
+ zIndex: number;
16
+ width?: number | undefined;
17
+ height?: number | undefined;
18
+ paddingTop?: number | undefined;
19
+ }>;
20
+ export declare const StructuredBlockComponentCommonParamsSchema: z.ZodObject<{
21
+ componentId: z.ZodString;
22
+ content: z.ZodOptional<z.ZodAny>;
23
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ componentId: string;
26
+ content?: any;
27
+ parameters?: Record<string, any> | undefined;
28
+ }, {
29
+ componentId: string;
30
+ content?: any;
31
+ parameters?: Record<string, any> | undefined;
32
+ }>;
33
+ export declare const StructuredBlockRichTextCommonParamsSchema: z.ZodObject<{
34
+ text: z.ZodString;
35
+ preset: z.ZodString;
36
+ blocks: z.ZodArray<z.ZodType<import("../..").RichTextBlock, z.ZodTypeDef, import("../..").RichTextBlock>, "many">;
37
+ }, "strip", z.ZodTypeAny, {
38
+ text: string;
39
+ blocks: import("../..").RichTextBlock[];
40
+ preset: string;
41
+ }, {
42
+ text: string;
43
+ blocks: import("../..").RichTextBlock[];
44
+ preset: string;
45
+ }>;
46
+ export declare const StructuredBlockImageCommonParamsSchema: z.ZodObject<{
47
+ url: z.ZodString;
48
+ ratioLock: z.ZodBoolean;
49
+ pointerEvents: z.ZodOptional<z.ZodEnum<["never", "when_visible", "always"]>>;
50
+ isPlaceholder: z.ZodOptional<z.ZodBoolean>;
51
+ altText: z.ZodString;
52
+ caption: z.ZodOptional<z.ZodString>;
53
+ hasGLEffect: z.ZodBoolean;
54
+ fragmentShader: z.ZodNullable<z.ZodString>;
55
+ shaderName: z.ZodNullable<z.ZodString>;
56
+ FXControls: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
57
+ type: z.ZodLiteral<"float">;
58
+ shaderParam: z.ZodString;
59
+ value: z.ZodNumber;
60
+ }, "strip", z.ZodTypeAny, {
61
+ value: number;
62
+ type: "float";
63
+ shaderParam: string;
64
+ }, {
65
+ value: number;
66
+ type: "float";
67
+ shaderParam: string;
68
+ }>, z.ZodObject<{
69
+ type: z.ZodLiteral<"int">;
70
+ shaderParam: z.ZodString;
71
+ value: z.ZodNumber;
72
+ }, "strip", z.ZodTypeAny, {
73
+ value: number;
74
+ type: "int";
75
+ shaderParam: string;
76
+ }, {
77
+ value: number;
78
+ type: "int";
79
+ shaderParam: string;
80
+ }>, z.ZodObject<{
81
+ type: z.ZodLiteral<"vec2">;
82
+ shaderParam: z.ZodString;
83
+ value: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ value: [number, number];
86
+ type: "vec2";
87
+ shaderParam: string;
88
+ }, {
89
+ value: [number, number];
90
+ type: "vec2";
91
+ shaderParam: string;
92
+ }>]>, "many">;
93
+ }, "strip", z.ZodTypeAny, {
94
+ url: string;
95
+ hasGLEffect: boolean;
96
+ fragmentShader: string | null;
97
+ FXControls: ({
98
+ value: number;
99
+ type: "float";
100
+ shaderParam: string;
101
+ } | {
102
+ value: number;
103
+ type: "int";
104
+ shaderParam: string;
105
+ } | {
106
+ value: [number, number];
107
+ type: "vec2";
108
+ shaderParam: string;
109
+ })[];
110
+ ratioLock: boolean;
111
+ shaderName: string | null;
112
+ altText: string;
113
+ pointerEvents?: "never" | "when_visible" | "always" | undefined;
114
+ isPlaceholder?: boolean | undefined;
115
+ caption?: string | undefined;
116
+ }, {
117
+ url: string;
118
+ hasGLEffect: boolean;
119
+ fragmentShader: string | null;
120
+ FXControls: ({
121
+ value: number;
122
+ type: "float";
123
+ shaderParam: string;
124
+ } | {
125
+ value: number;
126
+ type: "int";
127
+ shaderParam: string;
128
+ } | {
129
+ value: [number, number];
130
+ type: "vec2";
131
+ shaderParam: string;
132
+ })[];
133
+ ratioLock: boolean;
134
+ shaderName: string | null;
135
+ altText: string;
136
+ pointerEvents?: "never" | "when_visible" | "always" | undefined;
137
+ isPlaceholder?: boolean | undefined;
138
+ caption?: string | undefined;
139
+ }>;
140
+ export declare const StructuredBlockRichTextLayoutParamsSchema: z.ZodObject<{
141
+ rangeStyles: z.ZodArray<z.ZodObject<{
142
+ start: z.ZodNumber;
143
+ end: z.ZodNumber;
144
+ style: z.ZodString;
145
+ value: z.ZodOptional<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ start: number;
148
+ end: number;
149
+ style: string;
150
+ value?: string | undefined;
151
+ }, {
152
+ start: number;
153
+ end: number;
154
+ style: string;
155
+ value?: string | undefined;
156
+ }>, "many">;
157
+ }, "strip", z.ZodTypeAny, {
158
+ rangeStyles: {
159
+ start: number;
160
+ end: number;
161
+ style: string;
162
+ value?: string | undefined;
163
+ }[];
164
+ }, {
165
+ rangeStyles: {
166
+ start: number;
167
+ end: number;
168
+ style: string;
169
+ value?: string | undefined;
170
+ }[];
171
+ }>;
172
+ export declare const StructuredBlockImageLayoutParamsSchema: z.ZodObject<{
173
+ opacity: z.ZodNumber;
174
+ radius: z.ZodNumber;
175
+ strokeWidth: z.ZodNumber;
176
+ strokeFill: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
+ id: z.ZodString;
178
+ type: z.ZodLiteral<"solid">;
179
+ value: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string;
182
+ value: string;
183
+ type: "solid";
184
+ }, {
185
+ id: string;
186
+ value: string;
187
+ type: "solid";
188
+ }>, z.ZodObject<{
189
+ id: z.ZodString;
190
+ type: z.ZodLiteral<"linear-gradient">;
191
+ colors: z.ZodArray<z.ZodObject<{
192
+ id: z.ZodString;
193
+ value: z.ZodString;
194
+ position: z.ZodNumber;
195
+ }, "strip", z.ZodTypeAny, {
196
+ position: number;
197
+ id: string;
198
+ value: string;
199
+ }, {
200
+ position: number;
201
+ id: string;
202
+ value: string;
203
+ }>, "many">;
204
+ start: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
205
+ end: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
206
+ angle: z.ZodNumber;
207
+ }, "strip", z.ZodTypeAny, {
208
+ id: string;
209
+ type: "linear-gradient";
210
+ colors: {
211
+ position: number;
212
+ id: string;
213
+ value: string;
214
+ }[];
215
+ start: [number, number];
216
+ end: [number, number];
217
+ angle: number;
218
+ }, {
219
+ id: string;
220
+ type: "linear-gradient";
221
+ colors: {
222
+ position: number;
223
+ id: string;
224
+ value: string;
225
+ }[];
226
+ start: [number, number];
227
+ end: [number, number];
228
+ angle: number;
229
+ }>, z.ZodObject<{
230
+ id: z.ZodString;
231
+ type: z.ZodLiteral<"radial-gradient">;
232
+ colors: z.ZodArray<z.ZodObject<{
233
+ id: z.ZodString;
234
+ value: z.ZodString;
235
+ position: z.ZodNumber;
236
+ }, "strip", z.ZodTypeAny, {
237
+ position: number;
238
+ id: string;
239
+ value: string;
240
+ }, {
241
+ position: number;
242
+ id: string;
243
+ value: string;
244
+ }>, "many">;
245
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
246
+ diameter: z.ZodNumber;
247
+ angle: z.ZodNumber;
248
+ }, "strip", z.ZodTypeAny, {
249
+ center: [number, number];
250
+ id: string;
251
+ type: "radial-gradient";
252
+ colors: {
253
+ position: number;
254
+ id: string;
255
+ value: string;
256
+ }[];
257
+ angle: number;
258
+ diameter: number;
259
+ }, {
260
+ center: [number, number];
261
+ id: string;
262
+ type: "radial-gradient";
263
+ colors: {
264
+ position: number;
265
+ id: string;
266
+ value: string;
267
+ }[];
268
+ angle: number;
269
+ diameter: number;
270
+ }>, z.ZodObject<{
271
+ id: z.ZodString;
272
+ type: z.ZodLiteral<"conic-gradient">;
273
+ colors: z.ZodArray<z.ZodObject<{
274
+ id: z.ZodString;
275
+ value: z.ZodString;
276
+ position: z.ZodNumber;
277
+ }, "strip", z.ZodTypeAny, {
278
+ position: number;
279
+ id: string;
280
+ value: string;
281
+ }, {
282
+ position: number;
283
+ id: string;
284
+ value: string;
285
+ }>, "many">;
286
+ center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
287
+ angle: z.ZodNumber;
288
+ }, "strip", z.ZodTypeAny, {
289
+ center: [number, number];
290
+ id: string;
291
+ type: "conic-gradient";
292
+ colors: {
293
+ position: number;
294
+ id: string;
295
+ value: string;
296
+ }[];
297
+ angle: number;
298
+ }, {
299
+ center: [number, number];
300
+ id: string;
301
+ type: "conic-gradient";
302
+ colors: {
303
+ position: number;
304
+ id: string;
305
+ value: string;
306
+ }[];
307
+ angle: number;
308
+ }>, z.ZodObject<{
309
+ id: z.ZodString;
310
+ type: z.ZodLiteral<"image">;
311
+ src: z.ZodString;
312
+ behavior: z.ZodString;
313
+ backgroundSize: z.ZodNumber;
314
+ opacity: z.ZodNumber;
315
+ rotation: z.ZodOptional<z.ZodNumber>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ opacity: number;
318
+ id: string;
319
+ type: "image";
320
+ src: string;
321
+ behavior: string;
322
+ backgroundSize: number;
323
+ rotation?: number | undefined;
324
+ }, {
325
+ opacity: number;
326
+ id: string;
327
+ type: "image";
328
+ src: string;
329
+ behavior: string;
330
+ backgroundSize: number;
331
+ rotation?: number | undefined;
332
+ }>]>, "many">;
333
+ blur: z.ZodNumber;
334
+ isDraggable: z.ZodOptional<z.ZodBoolean>;
335
+ blendMode: z.ZodOptional<z.ZodString>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ opacity: number;
338
+ radius: number;
339
+ strokeWidth: number;
340
+ strokeFill: ({
341
+ id: string;
342
+ value: string;
343
+ type: "solid";
344
+ } | {
345
+ id: string;
346
+ type: "linear-gradient";
347
+ colors: {
348
+ position: number;
349
+ id: string;
350
+ value: string;
351
+ }[];
352
+ start: [number, number];
353
+ end: [number, number];
354
+ angle: number;
355
+ } | {
356
+ center: [number, number];
357
+ id: string;
358
+ type: "radial-gradient";
359
+ colors: {
360
+ position: number;
361
+ id: string;
362
+ value: string;
363
+ }[];
364
+ angle: number;
365
+ diameter: number;
366
+ } | {
367
+ center: [number, number];
368
+ id: string;
369
+ type: "conic-gradient";
370
+ colors: {
371
+ position: number;
372
+ id: string;
373
+ value: string;
374
+ }[];
375
+ angle: number;
376
+ } | {
377
+ opacity: number;
378
+ id: string;
379
+ type: "image";
380
+ src: string;
381
+ behavior: string;
382
+ backgroundSize: number;
383
+ rotation?: number | undefined;
384
+ })[];
385
+ blur: number;
386
+ isDraggable?: boolean | undefined;
387
+ blendMode?: string | undefined;
388
+ }, {
389
+ opacity: number;
390
+ radius: number;
391
+ strokeWidth: number;
392
+ strokeFill: ({
393
+ id: string;
394
+ value: string;
395
+ type: "solid";
396
+ } | {
397
+ id: string;
398
+ type: "linear-gradient";
399
+ colors: {
400
+ position: number;
401
+ id: string;
402
+ value: string;
403
+ }[];
404
+ start: [number, number];
405
+ end: [number, number];
406
+ angle: number;
407
+ } | {
408
+ center: [number, number];
409
+ id: string;
410
+ type: "radial-gradient";
411
+ colors: {
412
+ position: number;
413
+ id: string;
414
+ value: string;
415
+ }[];
416
+ angle: number;
417
+ diameter: number;
418
+ } | {
419
+ center: [number, number];
420
+ id: string;
421
+ type: "conic-gradient";
422
+ colors: {
423
+ position: number;
424
+ id: string;
425
+ value: string;
426
+ }[];
427
+ angle: number;
428
+ } | {
429
+ opacity: number;
430
+ id: string;
431
+ type: "image";
432
+ src: string;
433
+ behavior: string;
434
+ backgroundSize: number;
435
+ rotation?: number | undefined;
436
+ })[];
437
+ blur: number;
438
+ isDraggable?: boolean | undefined;
439
+ blendMode?: string | undefined;
440
+ }>;
441
+ export declare const StructuredBlockCommonParamsSchema: ZodType<StructuredBlockCommonParamsMap[StructuredBlockType]>;
442
+ export declare const StructuredBlockLayoutParamsSchema: ZodType<StructuredBlockLayoutParamsMap[StructuredBlockType]>;
443
+ export declare const StructuredBlockSchema: ZodType<StructuredBlockAny>;