@contentful/experiences-validators 3.7.0-dev-20250917T1515-4c340b9.0 → 3.7.0-dev-20250918T1641-6da833a.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/dist/types.d.ts +0 -1083
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-validators",
3
- "version": "3.7.0-dev-20250917T1515-4c340b9.0",
3
+ "version": "3.7.0-dev-20250918T1641-6da833a.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "registry": "https://npm.pkg.github.com/"
53
53
  },
54
- "gitHead": "501c6e882ff6912e658e607cc42debeecd6037fa"
54
+ "gitHead": "c4cf6beb0e472e5438b6bf57ade204a8ba137e5d"
55
55
  }
package/dist/types.d.ts DELETED
@@ -1,1083 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const DefinitionPropertyTypeSchema: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
4
- declare const PrimitiveValueSchema: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
5
- declare const UsedComponentsSchema: z.ZodArray<z.ZodObject<{
6
- sys: z.ZodObject<{
7
- type: z.ZodLiteral<"Link">;
8
- id: z.ZodString;
9
- linkType: z.ZodLiteral<"Entry">;
10
- }, "strip", z.ZodTypeAny, {
11
- type: "Link";
12
- id: string;
13
- linkType: "Entry";
14
- }, {
15
- type: "Link";
16
- id: string;
17
- linkType: "Entry";
18
- }>;
19
- }, "strip", z.ZodTypeAny, {
20
- sys: {
21
- type: "Link";
22
- id: string;
23
- linkType: "Entry";
24
- };
25
- }, {
26
- sys: {
27
- type: "Link";
28
- id: string;
29
- linkType: "Entry";
30
- };
31
- }>, "many">;
32
- declare const DataSourceSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
33
- sys: z.ZodObject<{
34
- type: z.ZodLiteral<"Link">;
35
- id: z.ZodString;
36
- linkType: z.ZodEnum<["Entry", "Asset"]>;
37
- }, "strip", z.ZodTypeAny, {
38
- type: "Link";
39
- id: string;
40
- linkType: "Entry" | "Asset";
41
- }, {
42
- type: "Link";
43
- id: string;
44
- linkType: "Entry" | "Asset";
45
- }>;
46
- }, "strip", z.ZodTypeAny, {
47
- sys: {
48
- type: "Link";
49
- id: string;
50
- linkType: "Entry" | "Asset";
51
- };
52
- }, {
53
- sys: {
54
- type: "Link";
55
- id: string;
56
- linkType: "Entry" | "Asset";
57
- };
58
- }>>;
59
- declare const UnboundValuesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
60
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>;
61
- }, "strip", z.ZodTypeAny, {
62
- value?: string | number | boolean | Record<any, any> | undefined;
63
- }, {
64
- value?: string | number | boolean | Record<any, any> | undefined;
65
- }>>;
66
- declare const ValuesByBreakpointSchema: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
67
- declare const DesignValueSchema: z.ZodObject<{
68
- type: z.ZodLiteral<"DesignValue">;
69
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
70
- }, "strict", z.ZodTypeAny, {
71
- type: "DesignValue";
72
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
73
- }, {
74
- type: "DesignValue";
75
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
76
- }>;
77
- declare const BoundValueSchema: z.ZodObject<{
78
- type: z.ZodLiteral<"BoundValue">;
79
- path: z.ZodString;
80
- }, "strict", z.ZodTypeAny, {
81
- path: string;
82
- type: "BoundValue";
83
- }, {
84
- path: string;
85
- type: "BoundValue";
86
- }>;
87
- declare const UnboundValueSchema: z.ZodObject<{
88
- type: z.ZodLiteral<"UnboundValue">;
89
- key: z.ZodString;
90
- }, "strict", z.ZodTypeAny, {
91
- type: "UnboundValue";
92
- key: string;
93
- }, {
94
- type: "UnboundValue";
95
- key: string;
96
- }>;
97
- declare const ComponentValueSchema: z.ZodObject<{
98
- type: z.ZodLiteral<"ComponentValue">;
99
- key: z.ZodString;
100
- }, "strict", z.ZodTypeAny, {
101
- type: "ComponentValue";
102
- key: string;
103
- }, {
104
- type: "ComponentValue";
105
- key: string;
106
- }>;
107
- declare const NoValueSchema: z.ZodObject<{
108
- type: z.ZodLiteral<"NoValue">;
109
- }, "strict", z.ZodTypeAny, {
110
- type: "NoValue";
111
- }, {
112
- type: "NoValue";
113
- }>;
114
- declare const ComponentPropertyValueSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
115
- type: z.ZodLiteral<"DesignValue">;
116
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
117
- }, "strict", z.ZodTypeAny, {
118
- type: "DesignValue";
119
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
120
- }, {
121
- type: "DesignValue";
122
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
123
- }>, z.ZodObject<{
124
- type: z.ZodLiteral<"BoundValue">;
125
- path: z.ZodString;
126
- }, "strict", z.ZodTypeAny, {
127
- path: string;
128
- type: "BoundValue";
129
- }, {
130
- path: string;
131
- type: "BoundValue";
132
- }>, z.ZodObject<{
133
- type: z.ZodLiteral<"UnboundValue">;
134
- key: z.ZodString;
135
- }, "strict", z.ZodTypeAny, {
136
- type: "UnboundValue";
137
- key: string;
138
- }, {
139
- type: "UnboundValue";
140
- key: string;
141
- }>, z.ZodObject<{
142
- type: z.ZodLiteral<"HyperlinkValue">;
143
- linkTargetKey: z.ZodString;
144
- /** Allows to override parts of the URL, e.g. the locale */
145
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
146
- }, "strict", z.ZodTypeAny, {
147
- type: "HyperlinkValue";
148
- linkTargetKey: string;
149
- overrides?: {} | undefined;
150
- }, {
151
- type: "HyperlinkValue";
152
- linkTargetKey: string;
153
- overrides?: {} | undefined;
154
- }>, z.ZodObject<{
155
- type: z.ZodLiteral<"ComponentValue">;
156
- key: z.ZodString;
157
- }, "strict", z.ZodTypeAny, {
158
- type: "ComponentValue";
159
- key: string;
160
- }, {
161
- type: "ComponentValue";
162
- key: string;
163
- }>, z.ZodObject<{
164
- type: z.ZodLiteral<"NoValue">;
165
- }, "strict", z.ZodTypeAny, {
166
- type: "NoValue";
167
- }, {
168
- type: "NoValue";
169
- }>]>;
170
- type ComponentPropertyValue = z.infer<typeof ComponentPropertyValueSchema>;
171
- declare const ParameterSchema: z.ZodObject<{
172
- type: z.ZodLiteral<"BoundValue">;
173
- path: z.ZodString;
174
- }, "strip", z.ZodTypeAny, {
175
- path: string;
176
- type: "BoundValue";
177
- }, {
178
- path: string;
179
- type: "BoundValue";
180
- }>;
181
- type BreakpointQuery = '*' | `>${number}px` | `<${number}px`;
182
- declare const BreakpointSchema: z.ZodObject<{
183
- id: z.ZodString;
184
- query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
185
- previewSize: z.ZodString;
186
- displayName: z.ZodString;
187
- displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
188
- }, "strict", z.ZodTypeAny, {
189
- id: string;
190
- query: BreakpointQuery;
191
- previewSize: string;
192
- displayName: string;
193
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
194
- }, {
195
- id: string;
196
- query: string;
197
- previewSize: string;
198
- displayName: string;
199
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
200
- }>;
201
- declare const BaseComponentTreeNodeSchema: z.ZodObject<{
202
- id: z.ZodOptional<z.ZodString>;
203
- definitionId: z.ZodString;
204
- prebindingId: z.ZodOptional<z.ZodString>;
205
- displayName: z.ZodOptional<z.ZodString>;
206
- slotId: z.ZodOptional<z.ZodString>;
207
- variables: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
208
- type: z.ZodLiteral<"DesignValue">;
209
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
210
- }, "strict", z.ZodTypeAny, {
211
- type: "DesignValue";
212
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
213
- }, {
214
- type: "DesignValue";
215
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
216
- }>, z.ZodObject<{
217
- type: z.ZodLiteral<"BoundValue">;
218
- path: z.ZodString;
219
- }, "strict", z.ZodTypeAny, {
220
- path: string;
221
- type: "BoundValue";
222
- }, {
223
- path: string;
224
- type: "BoundValue";
225
- }>, z.ZodObject<{
226
- type: z.ZodLiteral<"UnboundValue">;
227
- key: z.ZodString;
228
- }, "strict", z.ZodTypeAny, {
229
- type: "UnboundValue";
230
- key: string;
231
- }, {
232
- type: "UnboundValue";
233
- key: string;
234
- }>, z.ZodObject<{
235
- type: z.ZodLiteral<"HyperlinkValue">;
236
- linkTargetKey: z.ZodString;
237
- /** Allows to override parts of the URL, e.g. the locale */
238
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
239
- }, "strict", z.ZodTypeAny, {
240
- type: "HyperlinkValue";
241
- linkTargetKey: string;
242
- overrides?: {} | undefined;
243
- }, {
244
- type: "HyperlinkValue";
245
- linkTargetKey: string;
246
- overrides?: {} | undefined;
247
- }>, z.ZodObject<{
248
- type: z.ZodLiteral<"ComponentValue">;
249
- key: z.ZodString;
250
- }, "strict", z.ZodTypeAny, {
251
- type: "ComponentValue";
252
- key: string;
253
- }, {
254
- type: "ComponentValue";
255
- key: string;
256
- }>, z.ZodObject<{
257
- type: z.ZodLiteral<"NoValue">;
258
- }, "strict", z.ZodTypeAny, {
259
- type: "NoValue";
260
- }, {
261
- type: "NoValue";
262
- }>]>>;
263
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
264
- type: z.ZodLiteral<"BoundValue">;
265
- path: z.ZodString;
266
- }, "strip", z.ZodTypeAny, {
267
- path: string;
268
- type: "BoundValue";
269
- }, {
270
- path: string;
271
- type: "BoundValue";
272
- }>>>;
273
- }, "strip", z.ZodTypeAny, {
274
- definitionId: string;
275
- variables: Record<string, {
276
- type: "DesignValue";
277
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
278
- } | {
279
- path: string;
280
- type: "BoundValue";
281
- } | {
282
- type: "HyperlinkValue";
283
- linkTargetKey: string;
284
- overrides?: {} | undefined;
285
- } | {
286
- type: "UnboundValue";
287
- key: string;
288
- } | {
289
- type: "ComponentValue";
290
- key: string;
291
- } | {
292
- type: "NoValue";
293
- }>;
294
- id?: string | undefined;
295
- displayName?: string | undefined;
296
- prebindingId?: string | undefined;
297
- slotId?: string | undefined;
298
- parameters?: Record<string, {
299
- path: string;
300
- type: "BoundValue";
301
- }> | undefined;
302
- }, {
303
- definitionId: string;
304
- variables: Record<string, {
305
- type: "DesignValue";
306
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
307
- } | {
308
- path: string;
309
- type: "BoundValue";
310
- } | {
311
- type: "HyperlinkValue";
312
- linkTargetKey: string;
313
- overrides?: {} | undefined;
314
- } | {
315
- type: "UnboundValue";
316
- key: string;
317
- } | {
318
- type: "ComponentValue";
319
- key: string;
320
- } | {
321
- type: "NoValue";
322
- }>;
323
- id?: string | undefined;
324
- displayName?: string | undefined;
325
- prebindingId?: string | undefined;
326
- slotId?: string | undefined;
327
- parameters?: Record<string, {
328
- path: string;
329
- type: "BoundValue";
330
- }> | undefined;
331
- }>;
332
- type ComponentTreeNode = z.infer<typeof BaseComponentTreeNodeSchema> & {
333
- children: ComponentTreeNode[];
334
- };
335
- declare const ComponentTreeSchema: z.ZodObject<{
336
- breakpoints: z.ZodEffects<z.ZodArray<z.ZodObject<{
337
- id: z.ZodString;
338
- query: z.ZodEffects<z.ZodString, BreakpointQuery, string>;
339
- previewSize: z.ZodString;
340
- displayName: z.ZodString;
341
- displayIcon: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
342
- }, "strict", z.ZodTypeAny, {
343
- id: string;
344
- query: BreakpointQuery;
345
- previewSize: string;
346
- displayName: string;
347
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
348
- }, {
349
- id: string;
350
- query: string;
351
- previewSize: string;
352
- displayName: string;
353
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
354
- }>, "many">, {
355
- id: string;
356
- query: BreakpointQuery;
357
- previewSize: string;
358
- displayName: string;
359
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
360
- }[], {
361
- id: string;
362
- query: string;
363
- previewSize: string;
364
- displayName: string;
365
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
366
- }[]>;
367
- children: z.ZodArray<z.ZodType<ComponentTreeNode, z.ZodTypeDef, ComponentTreeNode>, "many">;
368
- schemaVersion: z.ZodLiteral<"2023-09-28">;
369
- }, "strict", z.ZodTypeAny, {
370
- children: ComponentTreeNode[];
371
- breakpoints: {
372
- id: string;
373
- query: BreakpointQuery;
374
- previewSize: string;
375
- displayName: string;
376
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
377
- }[];
378
- schemaVersion: "2023-09-28";
379
- }, {
380
- children: ComponentTreeNode[];
381
- breakpoints: {
382
- id: string;
383
- query: string;
384
- previewSize: string;
385
- displayName: string;
386
- displayIcon?: "desktop" | "tablet" | "mobile" | undefined;
387
- }[];
388
- schemaVersion: "2023-09-28";
389
- }>;
390
-
391
- declare const ExperienceFieldsCMAShapeSchema: z.ZodObject<{
392
- componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
393
- dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
394
- unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
395
- usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
396
- }, "strip", z.ZodTypeAny, {
397
- componentTree: Record<string, any>;
398
- dataSource: Record<string, any>;
399
- unboundValues: Record<string, any>;
400
- usedComponents?: Record<string, any> | undefined;
401
- }, {
402
- componentTree: Record<string, any>;
403
- dataSource: Record<string, any>;
404
- unboundValues: Record<string, any>;
405
- usedComponents?: Record<string, any> | undefined;
406
- }>;
407
- type ExperienceFields = z.infer<typeof ExperienceFieldsCMAShapeSchema>;
408
- type ExperienceDataSource = z.infer<typeof DataSourceSchema>;
409
- type ExperienceUnboundValues = z.infer<typeof UnboundValuesSchema>;
410
- type ExperienceUsedComponents = z.infer<typeof UsedComponentsSchema>;
411
- type ExperienceComponentTree = z.infer<typeof ComponentTreeSchema>;
412
- type ValuesByBreakpoint = z.infer<typeof ValuesByBreakpointSchema>;
413
- type Breakpoint = z.infer<typeof BreakpointSchema>;
414
- type PrimitiveValue = z.infer<typeof PrimitiveValueSchema>;
415
- type DesignValue = z.infer<typeof DesignValueSchema>;
416
- type BoundValue = z.infer<typeof BoundValueSchema>;
417
- type NoValue = z.infer<typeof NoValueSchema>;
418
- type UnboundValue = z.infer<typeof UnboundValueSchema>;
419
- type ComponentValue = z.infer<typeof ComponentValueSchema>;
420
- type Parameter = z.infer<typeof ParameterSchema>;
421
-
422
- declare const ComponentSettingsSchema: z.ZodEffects<z.ZodObject<{
423
- variableDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
424
- displayName: z.ZodOptional<z.ZodString>;
425
- type: z.ZodEnum<["Text", "RichText", "Number", "Date", "Boolean", "Location", "Media", "Object", "Hyperlink", "Array", "Link"]>;
426
- description: z.ZodOptional<z.ZodString>;
427
- group: z.ZodOptional<z.ZodString>;
428
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
429
- type: z.ZodLiteral<"DesignValue">;
430
- valuesByBreakpoint: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodRecord<z.ZodAny, z.ZodAny>, z.ZodUndefined]>>>;
431
- }, "strict", z.ZodTypeAny, {
432
- type: "DesignValue";
433
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
434
- }, {
435
- type: "DesignValue";
436
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
437
- }>, z.ZodObject<{
438
- type: z.ZodLiteral<"BoundValue">;
439
- path: z.ZodString;
440
- }, "strict", z.ZodTypeAny, {
441
- path: string;
442
- type: "BoundValue";
443
- }, {
444
- path: string;
445
- type: "BoundValue";
446
- }>, z.ZodObject<{
447
- type: z.ZodLiteral<"UnboundValue">;
448
- key: z.ZodString;
449
- }, "strict", z.ZodTypeAny, {
450
- type: "UnboundValue";
451
- key: string;
452
- }, {
453
- type: "UnboundValue";
454
- key: string;
455
- }>, z.ZodObject<{
456
- type: z.ZodLiteral<"HyperlinkValue">;
457
- linkTargetKey: z.ZodString;
458
- overrides: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
459
- }, "strict", z.ZodTypeAny, {
460
- type: "HyperlinkValue";
461
- linkTargetKey: string;
462
- overrides?: {} | undefined;
463
- }, {
464
- type: "HyperlinkValue";
465
- linkTargetKey: string;
466
- overrides?: {} | undefined;
467
- }>, z.ZodObject<{
468
- type: z.ZodLiteral<"ComponentValue">;
469
- key: z.ZodString;
470
- }, "strict", z.ZodTypeAny, {
471
- type: "ComponentValue";
472
- key: string;
473
- }, {
474
- type: "ComponentValue";
475
- key: string;
476
- }>, z.ZodObject<{
477
- type: z.ZodLiteral<"NoValue">;
478
- }, "strict", z.ZodTypeAny, {
479
- type: "NoValue";
480
- }, {
481
- type: "NoValue";
482
- }>]>]>>;
483
- validations: z.ZodOptional<z.ZodObject<{
484
- bindingSourceType: z.ZodOptional<z.ZodArray<z.ZodEnum<["entry", "asset", "manual", "experience"]>, "atleastone">>;
485
- required: z.ZodOptional<z.ZodBoolean>;
486
- format: z.ZodOptional<z.ZodLiteral<"URL">>;
487
- in: z.ZodOptional<z.ZodArray<z.ZodObject<{
488
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
489
- displayName: z.ZodOptional<z.ZodString>;
490
- }, "strip", z.ZodTypeAny, {
491
- value: string | number;
492
- displayName?: string | undefined;
493
- }, {
494
- value: string | number;
495
- displayName?: string | undefined;
496
- }>, "many">>;
497
- }, "strip", z.ZodTypeAny, {
498
- required?: boolean | undefined;
499
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
500
- format?: "URL" | undefined;
501
- in?: {
502
- value: string | number;
503
- displayName?: string | undefined;
504
- }[] | undefined;
505
- }, {
506
- required?: boolean | undefined;
507
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
508
- format?: "URL" | undefined;
509
- in?: {
510
- value: string | number;
511
- displayName?: string | undefined;
512
- }[] | undefined;
513
- }>>;
514
- }, "strip", z.ZodTypeAny, {
515
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
516
- displayName?: string | undefined;
517
- description?: string | undefined;
518
- group?: string | undefined;
519
- defaultValue?: string | number | boolean | Record<any, any> | {
520
- type: "DesignValue";
521
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
522
- } | {
523
- path: string;
524
- type: "BoundValue";
525
- } | {
526
- type: "HyperlinkValue";
527
- linkTargetKey: string;
528
- overrides?: {} | undefined;
529
- } | {
530
- type: "UnboundValue";
531
- key: string;
532
- } | {
533
- type: "ComponentValue";
534
- key: string;
535
- } | {
536
- type: "NoValue";
537
- } | undefined;
538
- validations?: {
539
- required?: boolean | undefined;
540
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
541
- format?: "URL" | undefined;
542
- in?: {
543
- value: string | number;
544
- displayName?: string | undefined;
545
- }[] | undefined;
546
- } | undefined;
547
- }, {
548
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
549
- displayName?: string | undefined;
550
- description?: string | undefined;
551
- group?: string | undefined;
552
- defaultValue?: string | number | boolean | Record<any, any> | {
553
- type: "DesignValue";
554
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
555
- } | {
556
- path: string;
557
- type: "BoundValue";
558
- } | {
559
- type: "HyperlinkValue";
560
- linkTargetKey: string;
561
- overrides?: {} | undefined;
562
- } | {
563
- type: "UnboundValue";
564
- key: string;
565
- } | {
566
- type: "ComponentValue";
567
- key: string;
568
- } | {
569
- type: "NoValue";
570
- } | undefined;
571
- validations?: {
572
- required?: boolean | undefined;
573
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
574
- format?: "URL" | undefined;
575
- in?: {
576
- value: string | number;
577
- displayName?: string | undefined;
578
- }[] | undefined;
579
- } | undefined;
580
- }>>;
581
- thumbnailId: z.ZodOptional<z.ZodEnum<["columns", "columnsPlusRight", "imagesSquare", "subtitles", "rowsPlusBottom", "userRectangle", "textbox", "monitorPlay", "article", "table", "star", "heartStraight", "frameCorners", "rows", "dotsThreeOutline", "listDashes", "checkerBoard", "gridFour", "slideshow", "diamondsFour", "cards", "textColumns", "duplex"]>>;
582
- category: z.ZodOptional<z.ZodString>;
583
- prebindingDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
584
- id: z.ZodString;
585
- parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
586
- defaultSource: z.ZodOptional<z.ZodObject<{
587
- type: z.ZodEnum<["Entry"]>;
588
- contentTypeId: z.ZodString;
589
- link: z.ZodObject<{
590
- sys: z.ZodObject<{
591
- type: z.ZodLiteral<"Link">;
592
- id: z.ZodString;
593
- linkType: z.ZodEnum<["Entry"]>;
594
- }, "strict", z.ZodTypeAny, {
595
- type: "Link";
596
- id: string;
597
- linkType: "Entry";
598
- }, {
599
- type: "Link";
600
- id: string;
601
- linkType: "Entry";
602
- }>;
603
- }, "strict", z.ZodTypeAny, {
604
- sys: {
605
- type: "Link";
606
- id: string;
607
- linkType: "Entry";
608
- };
609
- }, {
610
- sys: {
611
- type: "Link";
612
- id: string;
613
- linkType: "Entry";
614
- };
615
- }>;
616
- }, "strict", z.ZodTypeAny, {
617
- type: "Entry";
618
- contentTypeId: string;
619
- link: {
620
- sys: {
621
- type: "Link";
622
- id: string;
623
- linkType: "Entry";
624
- };
625
- };
626
- }, {
627
- type: "Entry";
628
- contentTypeId: string;
629
- link: {
630
- sys: {
631
- type: "Link";
632
- id: string;
633
- linkType: "Entry";
634
- };
635
- };
636
- }>>;
637
- contentTypes: z.ZodArray<z.ZodString, "many">;
638
- passToNodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
- nodeId: z.ZodString;
640
- parameterId: z.ZodString;
641
- prebindingId: z.ZodString;
642
- }, "strict", z.ZodTypeAny, {
643
- prebindingId: string;
644
- parameterId: string;
645
- nodeId: string;
646
- }, {
647
- prebindingId: string;
648
- parameterId: string;
649
- nodeId: string;
650
- }>, "many">>;
651
- }, "strip", z.ZodTypeAny, {
652
- contentTypes: string[];
653
- defaultSource?: {
654
- type: "Entry";
655
- contentTypeId: string;
656
- link: {
657
- sys: {
658
- type: "Link";
659
- id: string;
660
- linkType: "Entry";
661
- };
662
- };
663
- } | undefined;
664
- passToNodes?: {
665
- prebindingId: string;
666
- parameterId: string;
667
- nodeId: string;
668
- }[] | undefined;
669
- }, {
670
- contentTypes: string[];
671
- defaultSource?: {
672
- type: "Entry";
673
- contentTypeId: string;
674
- link: {
675
- sys: {
676
- type: "Link";
677
- id: string;
678
- linkType: "Entry";
679
- };
680
- };
681
- } | undefined;
682
- passToNodes?: {
683
- prebindingId: string;
684
- parameterId: string;
685
- nodeId: string;
686
- }[] | undefined;
687
- }>>;
688
- variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
689
- parameterId: z.ZodString;
690
- type: z.ZodLiteral<"ContentTypeMapping">;
691
- pathsByContentType: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
692
- path: z.ZodString;
693
- }, "strip", z.ZodTypeAny, {
694
- path: string;
695
- }, {
696
- path: string;
697
- }>>, Record<string, {
698
- path: string;
699
- }>, Record<string, {
700
- path: string;
701
- }>>;
702
- }, "strip", z.ZodTypeAny, {
703
- type: "ContentTypeMapping";
704
- parameterId: string;
705
- pathsByContentType: Record<string, {
706
- path: string;
707
- }>;
708
- }, {
709
- type: "ContentTypeMapping";
710
- parameterId: string;
711
- pathsByContentType: Record<string, {
712
- path: string;
713
- }>;
714
- }>>>;
715
- allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
716
- }, "strict", z.ZodTypeAny, {
717
- id: string;
718
- parameterDefinitions: Record<string, {
719
- contentTypes: string[];
720
- defaultSource?: {
721
- type: "Entry";
722
- contentTypeId: string;
723
- link: {
724
- sys: {
725
- type: "Link";
726
- id: string;
727
- linkType: "Entry";
728
- };
729
- };
730
- } | undefined;
731
- passToNodes?: {
732
- prebindingId: string;
733
- parameterId: string;
734
- nodeId: string;
735
- }[] | undefined;
736
- }>;
737
- variableMappings?: Record<string, {
738
- type: "ContentTypeMapping";
739
- parameterId: string;
740
- pathsByContentType: Record<string, {
741
- path: string;
742
- }>;
743
- }> | undefined;
744
- allowedVariableOverrides?: string[] | undefined;
745
- }, {
746
- id: string;
747
- parameterDefinitions: Record<string, {
748
- contentTypes: string[];
749
- defaultSource?: {
750
- type: "Entry";
751
- contentTypeId: string;
752
- link: {
753
- sys: {
754
- type: "Link";
755
- id: string;
756
- linkType: "Entry";
757
- };
758
- };
759
- } | undefined;
760
- passToNodes?: {
761
- prebindingId: string;
762
- parameterId: string;
763
- nodeId: string;
764
- }[] | undefined;
765
- }>;
766
- variableMappings?: Record<string, {
767
- type: "ContentTypeMapping";
768
- parameterId: string;
769
- pathsByContentType: Record<string, {
770
- path: string;
771
- }>;
772
- }> | undefined;
773
- allowedVariableOverrides?: string[] | undefined;
774
- }>, "many">>;
775
- }, "strict", z.ZodTypeAny, {
776
- variableDefinitions: Record<string, {
777
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
778
- displayName?: string | undefined;
779
- description?: string | undefined;
780
- group?: string | undefined;
781
- defaultValue?: string | number | boolean | Record<any, any> | {
782
- type: "DesignValue";
783
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
784
- } | {
785
- path: string;
786
- type: "BoundValue";
787
- } | {
788
- type: "HyperlinkValue";
789
- linkTargetKey: string;
790
- overrides?: {} | undefined;
791
- } | {
792
- type: "UnboundValue";
793
- key: string;
794
- } | {
795
- type: "ComponentValue";
796
- key: string;
797
- } | {
798
- type: "NoValue";
799
- } | undefined;
800
- validations?: {
801
- required?: boolean | undefined;
802
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
803
- format?: "URL" | undefined;
804
- in?: {
805
- value: string | number;
806
- displayName?: string | undefined;
807
- }[] | undefined;
808
- } | undefined;
809
- }>;
810
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
811
- category?: string | undefined;
812
- prebindingDefinitions?: {
813
- id: string;
814
- parameterDefinitions: Record<string, {
815
- contentTypes: string[];
816
- defaultSource?: {
817
- type: "Entry";
818
- contentTypeId: string;
819
- link: {
820
- sys: {
821
- type: "Link";
822
- id: string;
823
- linkType: "Entry";
824
- };
825
- };
826
- } | undefined;
827
- passToNodes?: {
828
- prebindingId: string;
829
- parameterId: string;
830
- nodeId: string;
831
- }[] | undefined;
832
- }>;
833
- variableMappings?: Record<string, {
834
- type: "ContentTypeMapping";
835
- parameterId: string;
836
- pathsByContentType: Record<string, {
837
- path: string;
838
- }>;
839
- }> | undefined;
840
- allowedVariableOverrides?: string[] | undefined;
841
- }[] | undefined;
842
- }, {
843
- variableDefinitions: Record<string, {
844
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
845
- displayName?: string | undefined;
846
- description?: string | undefined;
847
- group?: string | undefined;
848
- defaultValue?: string | number | boolean | Record<any, any> | {
849
- type: "DesignValue";
850
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
851
- } | {
852
- path: string;
853
- type: "BoundValue";
854
- } | {
855
- type: "HyperlinkValue";
856
- linkTargetKey: string;
857
- overrides?: {} | undefined;
858
- } | {
859
- type: "UnboundValue";
860
- key: string;
861
- } | {
862
- type: "ComponentValue";
863
- key: string;
864
- } | {
865
- type: "NoValue";
866
- } | undefined;
867
- validations?: {
868
- required?: boolean | undefined;
869
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
870
- format?: "URL" | undefined;
871
- in?: {
872
- value: string | number;
873
- displayName?: string | undefined;
874
- }[] | undefined;
875
- } | undefined;
876
- }>;
877
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
878
- category?: string | undefined;
879
- prebindingDefinitions?: {
880
- id: string;
881
- parameterDefinitions: Record<string, {
882
- contentTypes: string[];
883
- defaultSource?: {
884
- type: "Entry";
885
- contentTypeId: string;
886
- link: {
887
- sys: {
888
- type: "Link";
889
- id: string;
890
- linkType: "Entry";
891
- };
892
- };
893
- } | undefined;
894
- passToNodes?: {
895
- prebindingId: string;
896
- parameterId: string;
897
- nodeId: string;
898
- }[] | undefined;
899
- }>;
900
- variableMappings?: Record<string, {
901
- type: "ContentTypeMapping";
902
- parameterId: string;
903
- pathsByContentType: Record<string, {
904
- path: string;
905
- }>;
906
- }> | undefined;
907
- allowedVariableOverrides?: string[] | undefined;
908
- }[] | undefined;
909
- }>, {
910
- variableDefinitions: Record<string, {
911
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
912
- displayName?: string | undefined;
913
- description?: string | undefined;
914
- group?: string | undefined;
915
- defaultValue?: string | number | boolean | Record<any, any> | {
916
- type: "DesignValue";
917
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
918
- } | {
919
- path: string;
920
- type: "BoundValue";
921
- } | {
922
- type: "HyperlinkValue";
923
- linkTargetKey: string;
924
- overrides?: {} | undefined;
925
- } | {
926
- type: "UnboundValue";
927
- key: string;
928
- } | {
929
- type: "ComponentValue";
930
- key: string;
931
- } | {
932
- type: "NoValue";
933
- } | undefined;
934
- validations?: {
935
- required?: boolean | undefined;
936
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
937
- format?: "URL" | undefined;
938
- in?: {
939
- value: string | number;
940
- displayName?: string | undefined;
941
- }[] | undefined;
942
- } | undefined;
943
- }>;
944
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
945
- category?: string | undefined;
946
- prebindingDefinitions?: {
947
- id: string;
948
- parameterDefinitions: Record<string, {
949
- contentTypes: string[];
950
- defaultSource?: {
951
- type: "Entry";
952
- contentTypeId: string;
953
- link: {
954
- sys: {
955
- type: "Link";
956
- id: string;
957
- linkType: "Entry";
958
- };
959
- };
960
- } | undefined;
961
- passToNodes?: {
962
- prebindingId: string;
963
- parameterId: string;
964
- nodeId: string;
965
- }[] | undefined;
966
- }>;
967
- variableMappings?: Record<string, {
968
- type: "ContentTypeMapping";
969
- parameterId: string;
970
- pathsByContentType: Record<string, {
971
- path: string;
972
- }>;
973
- }> | undefined;
974
- allowedVariableOverrides?: string[] | undefined;
975
- }[] | undefined;
976
- }, {
977
- variableDefinitions: Record<string, {
978
- type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
979
- displayName?: string | undefined;
980
- description?: string | undefined;
981
- group?: string | undefined;
982
- defaultValue?: string | number | boolean | Record<any, any> | {
983
- type: "DesignValue";
984
- valuesByBreakpoint: Record<string, string | number | boolean | Record<any, any> | undefined>;
985
- } | {
986
- path: string;
987
- type: "BoundValue";
988
- } | {
989
- type: "HyperlinkValue";
990
- linkTargetKey: string;
991
- overrides?: {} | undefined;
992
- } | {
993
- type: "UnboundValue";
994
- key: string;
995
- } | {
996
- type: "ComponentValue";
997
- key: string;
998
- } | {
999
- type: "NoValue";
1000
- } | undefined;
1001
- validations?: {
1002
- required?: boolean | undefined;
1003
- bindingSourceType?: ["entry" | "asset" | "manual" | "experience", ...("entry" | "asset" | "manual" | "experience")[]] | undefined;
1004
- format?: "URL" | undefined;
1005
- in?: {
1006
- value: string | number;
1007
- displayName?: string | undefined;
1008
- }[] | undefined;
1009
- } | undefined;
1010
- }>;
1011
- thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
1012
- category?: string | undefined;
1013
- prebindingDefinitions?: {
1014
- id: string;
1015
- parameterDefinitions: Record<string, {
1016
- contentTypes: string[];
1017
- defaultSource?: {
1018
- type: "Entry";
1019
- contentTypeId: string;
1020
- link: {
1021
- sys: {
1022
- type: "Link";
1023
- id: string;
1024
- linkType: "Entry";
1025
- };
1026
- };
1027
- } | undefined;
1028
- passToNodes?: {
1029
- prebindingId: string;
1030
- parameterId: string;
1031
- nodeId: string;
1032
- }[] | undefined;
1033
- }>;
1034
- variableMappings?: Record<string, {
1035
- type: "ContentTypeMapping";
1036
- parameterId: string;
1037
- pathsByContentType: Record<string, {
1038
- path: string;
1039
- }>;
1040
- }> | undefined;
1041
- allowedVariableOverrides?: string[] | undefined;
1042
- }[] | undefined;
1043
- }>;
1044
- declare const PatternFieldsCMAShapeSchema: z.ZodEffects<z.ZodObject<{
1045
- componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1046
- dataSource: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1047
- unboundValues: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1048
- usedComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodTypeAny>>;
1049
- componentSettings: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
1050
- }, "strip", z.ZodTypeAny, {
1051
- componentTree: Record<string, any>;
1052
- dataSource: Record<string, any>;
1053
- unboundValues: Record<string, any>;
1054
- componentSettings: Record<string, any>;
1055
- usedComponents?: Record<string, any> | undefined;
1056
- }, {
1057
- componentTree: Record<string, any>;
1058
- dataSource: Record<string, any>;
1059
- unboundValues: Record<string, any>;
1060
- componentSettings: Record<string, any>;
1061
- usedComponents?: Record<string, any> | undefined;
1062
- }>, {
1063
- componentTree: Record<string, any>;
1064
- dataSource: Record<string, any>;
1065
- unboundValues: Record<string, any>;
1066
- componentSettings: Record<string, any>;
1067
- usedComponents?: Record<string, any> | undefined;
1068
- }, {
1069
- componentTree: Record<string, any>;
1070
- dataSource: Record<string, any>;
1071
- unboundValues: Record<string, any>;
1072
- componentSettings: Record<string, any>;
1073
- usedComponents?: Record<string, any> | undefined;
1074
- }>;
1075
- type PatternFields = z.infer<typeof PatternFieldsCMAShapeSchema>;
1076
- type PatternComponentSettings = z.infer<typeof ComponentSettingsSchema>;
1077
-
1078
- type ComponentDefinitionPropertyType = z.infer<typeof DefinitionPropertyTypeSchema>;
1079
-
1080
- declare const SchemaVersions: z.ZodLiteral<"2023-09-28">;
1081
- type SchemaVersions = z.infer<typeof SchemaVersions>;
1082
-
1083
- export { type BoundValue, type Breakpoint, type ComponentDefinitionPropertyType, type ComponentPropertyValue, type ComponentTreeNode, type ComponentValue, type DesignValue, type PatternComponentSettings as ExperienceComponentSettings, type ExperienceComponentTree, type ExperienceDataSource, type ExperienceFields, type ExperienceUnboundValues, type ExperienceUsedComponents, type NoValue, type Parameter, type PatternFields, type PrimitiveValue, SchemaVersions, type UnboundValue, type ValuesByBreakpoint };