@slicemachine/adapter-next 0.3.15-dev-next-release.8 → 0.3.15-dev-next-release.10

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 (30) hide show
  1. package/dist/CustomerLogos/screenshot-default.png +0 -0
  2. package/dist/Hero/screenshot-default.png +0 -0
  3. package/dist/Hero/screenshot-imageRight.png +0 -0
  4. package/dist/hooks/sliceTemplateLibrary-read.cjs +5 -4
  5. package/dist/hooks/sliceTemplateLibrary-read.cjs.map +1 -1
  6. package/dist/hooks/sliceTemplateLibrary-read.js +5 -4
  7. package/dist/hooks/sliceTemplateLibrary-read.js.map +1 -1
  8. package/dist/sliceTemplates/AlternateGrid/index.cjs +433 -411
  9. package/dist/sliceTemplates/AlternateGrid/index.cjs.map +1 -1
  10. package/dist/sliceTemplates/AlternateGrid/index.js +433 -411
  11. package/dist/sliceTemplates/AlternateGrid/index.js.map +1 -1
  12. package/dist/sliceTemplates/CallToAction/index.cjs +2 -0
  13. package/dist/sliceTemplates/CallToAction/index.cjs.map +1 -1
  14. package/dist/sliceTemplates/CallToAction/index.js +2 -0
  15. package/dist/sliceTemplates/CallToAction/index.js.map +1 -1
  16. package/dist/sliceTemplates/CustomerLogos/index.cjs +258 -257
  17. package/dist/sliceTemplates/CustomerLogos/index.cjs.map +1 -1
  18. package/dist/sliceTemplates/CustomerLogos/index.js +258 -257
  19. package/dist/sliceTemplates/CustomerLogos/index.js.map +1 -1
  20. package/dist/sliceTemplates/Hero/index.cjs +812 -0
  21. package/dist/sliceTemplates/Hero/index.cjs.map +1 -0
  22. package/dist/sliceTemplates/Hero/index.d.ts +9 -0
  23. package/dist/sliceTemplates/Hero/index.js +812 -0
  24. package/dist/sliceTemplates/Hero/index.js.map +1 -0
  25. package/package.json +3 -3
  26. package/src/hooks/sliceTemplateLibrary-read.ts +2 -1
  27. package/src/sliceTemplates/AlternateGrid/index.ts +433 -411
  28. package/src/sliceTemplates/CallToAction/index.ts +2 -0
  29. package/src/sliceTemplates/CustomerLogos/index.ts +258 -257
  30. package/src/sliceTemplates/Hero/index.ts +822 -0
@@ -0,0 +1,812 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const pascalCase = require("../../lib/pascalCase.cjs");
4
+ const commonTags = require("common-tags");
5
+ const mocks = [
6
+ {
7
+ __TYPE__: "SharedSliceContent",
8
+ variation: "default",
9
+ primary: {
10
+ title: {
11
+ __TYPE__: "StructuredTextContent",
12
+ value: [
13
+ {
14
+ type: "heading2",
15
+ content: {
16
+ text: "Build a website that keeps getting better",
17
+ spans: []
18
+ },
19
+ direction: "ltr"
20
+ }
21
+ ]
22
+ },
23
+ eyebrowHeadline: {
24
+ __TYPE__: "FieldContent",
25
+ type: "Text",
26
+ value: "Hero"
27
+ },
28
+ description: {
29
+ __TYPE__: "StructuredTextContent",
30
+ value: [
31
+ {
32
+ type: "paragraph",
33
+ content: {
34
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases",
35
+ spans: []
36
+ },
37
+ direction: "ltr"
38
+ }
39
+ ]
40
+ },
41
+ image: {
42
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
43
+ origin: {
44
+ id: "h5yMpgOI5nI",
45
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
46
+ width: 3710,
47
+ height: 3710
48
+ },
49
+ width: 3710,
50
+ height: 3710,
51
+ edit: {
52
+ background: "transparent",
53
+ zoom: 1,
54
+ crop: {
55
+ x: 0,
56
+ y: 0
57
+ }
58
+ },
59
+ credits: null,
60
+ alt: "Image Content",
61
+ __TYPE__: "ImageContent",
62
+ thumbnails: {}
63
+ },
64
+ callToActionLabel: {
65
+ __TYPE__: "FieldContent",
66
+ type: "Text",
67
+ value: "Call to Action"
68
+ },
69
+ callToActionLink: {
70
+ __TYPE__: "LinkContent",
71
+ value: {
72
+ __TYPE__: "ExternalLink",
73
+ url: "https://prismic.io",
74
+ target: ""
75
+ }
76
+ }
77
+ },
78
+ items: []
79
+ },
80
+ {
81
+ __TYPE__: "SharedSliceContent",
82
+ variation: "imageRight",
83
+ primary: {
84
+ eyebrowHeadline: {
85
+ __TYPE__: "FieldContent",
86
+ type: "Text",
87
+ value: "Image Right"
88
+ },
89
+ title: {
90
+ __TYPE__: "StructuredTextContent",
91
+ value: [
92
+ {
93
+ type: "heading1",
94
+ content: {
95
+ text: "Build a website",
96
+ spans: []
97
+ },
98
+ direction: "ltr"
99
+ }
100
+ ]
101
+ },
102
+ description: {
103
+ __TYPE__: "StructuredTextContent",
104
+ value: [
105
+ {
106
+ type: "paragraph",
107
+ content: {
108
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases, including Image Right slice variations!",
109
+ spans: []
110
+ },
111
+ direction: "ltr"
112
+ },
113
+ {
114
+ type: "paragraph",
115
+ content: {
116
+ text: "\nBy the way: this RichText field supports multi-paragraph!",
117
+ spans: []
118
+ },
119
+ direction: "ltr"
120
+ }
121
+ ]
122
+ },
123
+ image: {
124
+ origin: {
125
+ id: "euqiHwS38Rw",
126
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
127
+ width: 2500,
128
+ height: 2500
129
+ },
130
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
131
+ width: 2500,
132
+ height: 2500,
133
+ edit: {
134
+ background: "transparent",
135
+ zoom: 1,
136
+ crop: {
137
+ x: 0,
138
+ y: 0
139
+ }
140
+ },
141
+ credits: null,
142
+ alt: "Image Content",
143
+ __TYPE__: "ImageContent",
144
+ thumbnails: {}
145
+ },
146
+ callToActionLabel: {
147
+ __TYPE__: "FieldContent",
148
+ type: "Text",
149
+ value: "Call to Action"
150
+ },
151
+ callToActionLink: {
152
+ __TYPE__: "LinkContent",
153
+ value: {
154
+ __TYPE__: "ExternalLink",
155
+ url: "https://prismic.io",
156
+ target: ""
157
+ }
158
+ }
159
+ },
160
+ items: [
161
+ {
162
+ __TYPE__: "GroupItemContent",
163
+ value: []
164
+ }
165
+ ]
166
+ }
167
+ ];
168
+ const createComponentContents = (model2, isTypeScriptProject) => {
169
+ const pascalName = pascalCase.pascalCase(model2.name);
170
+ if (isTypeScriptProject) {
171
+ return commonTags.stripIndent`
172
+ import { Content, isFilled } from "@prismicio/client";
173
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
174
+ import { SliceComponentProps, PrismicRichText } from "@prismicio/react";
175
+
176
+ /**
177
+ * Props for \`${pascalName}\`.
178
+ */
179
+ export type ${pascalName}Props = SliceComponentProps<Content.${pascalName}Slice>;
180
+
181
+ /**
182
+ * Component for "${model2.name}" Slices.
183
+ */
184
+ const ${pascalName} = ({ slice }: ${pascalName}Props): JSX.Element => {
185
+ return (
186
+ <section
187
+ data-slice-type={slice.slice_type}
188
+ data-slice-variation={slice.variation}
189
+ className="es-bounded es-fullpage-hero"
190
+ >
191
+ <div
192
+ className={\`
193
+ es-bounded__content
194
+ es-fullpage-hero__content
195
+ \${slice.variation === "imageRight"
196
+ ? "es-fullpage-hero__image--right"
197
+ : "es-fullpage-hero__image--left"
198
+ }
199
+ \`}
200
+ >
201
+ <div>
202
+ {isFilled.image(slice.primary.image) && (
203
+ <PrismicNextImage
204
+ field={slice.primary.image}
205
+ className="es-fullpage-hero__image"
206
+ />
207
+ )}
208
+ </div>
209
+
210
+ <div className="es-fullpage-hero__content-right">
211
+ <div className="es-fullpage-hero__content__intro">
212
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
213
+ <p className="es-fullpage-hero__content__intro__eyebrow">
214
+ {slice.primary.eyebrowHeadline}
215
+ </p>
216
+ )}
217
+ {isFilled.richText(slice.primary.title) && (
218
+ <div className="es-fullpage-hero__content__intro__headline">
219
+ <PrismicRichText field={slice.primary.title} />
220
+ </div>
221
+ )}
222
+ {isFilled.richText(slice.primary.description) && (
223
+ <div className="es-fullpage-hero__content__intro__description">
224
+ <PrismicRichText field={slice.primary.description} />
225
+ </div>
226
+ )}
227
+ {isFilled.link(slice.primary.callToActionLink) && (
228
+ <PrismicNextLink
229
+ className="es-call-to-action__link"
230
+ field={slice.primary.callToActionLink}
231
+ >
232
+ {slice.primary.callToActionLabel || "Learn more…"}
233
+ </PrismicNextLink>
234
+ )}
235
+ </div>
236
+ </div>
237
+ </div>
238
+ <style>
239
+ {\`
240
+ .es-bounded {
241
+ margin: 0px;
242
+ min-width: 0px;
243
+ position: relative;
244
+ }
245
+
246
+ .es-bounded-content {
247
+ min-width: 0px;
248
+ max-width: 90%;
249
+ margin: 0px auto;
250
+ }
251
+
252
+ .es-fullpage-hero {
253
+ font-family: system-ui, sans-serif;
254
+ background-color: #fff;
255
+ color: #333;
256
+ }
257
+
258
+ .es-fullpage-hero__image {
259
+ max-width: 100%;
260
+ height: auto;
261
+ align-self: center;
262
+ }
263
+
264
+ .es-fullpage-hero__image--left > div:first-child {
265
+ order: 1;
266
+ }
267
+
268
+ .es-fullpage-hero__image--left > div:nth-child(2) {
269
+ order: 2;
270
+ }
271
+
272
+ .es-fullpage-hero__image--right > div:first-child {
273
+ order: 2;
274
+ }
275
+
276
+ .es-fullpage-hero__image--right > div:nth-child(2) {
277
+ order: 1;
278
+ }
279
+
280
+ .es-fullpage-hero__content {
281
+ display: flex;
282
+ flex-direction: column;
283
+ gap: 2rem;
284
+ }
285
+
286
+ .es-fullpage-hero__content-right {
287
+ display: flex;
288
+ flex-direction: column;
289
+ justify-content: space-around;
290
+ padding: 1.5rem;
291
+ }
292
+
293
+ @media (min-width: 1080px) {
294
+ .es-fullpage-hero__content {
295
+ flex-direction: row;
296
+ }
297
+
298
+ .es-fullpage-hero__content > div {
299
+ width: 50%;
300
+ }
301
+ }
302
+
303
+ .es-fullpage-hero__content-right__intro {
304
+ margin-top: -2rem;
305
+ display: grid;
306
+ gap: 0.5rem;
307
+ }
308
+
309
+ .es-fullpage-hero__content__intro {
310
+ display: grid;
311
+ gap: 1rem;
312
+ }
313
+
314
+ .es-fullpage-hero__content__intro__eyebrow {
315
+ color: #47C1AF;
316
+ font-size: 1.15rem;
317
+ font-weight: 500;
318
+ margin: 0;
319
+ }
320
+
321
+ .es-fullpage-hero__content__intro__headline {
322
+ font-size: 1.625rem;
323
+ font-weight: 700;
324
+ }
325
+
326
+ .es-fullpage-hero__content__intro__headline > * {
327
+ margin: 0;
328
+ }
329
+
330
+ @media (min-width: 640px) {
331
+ .es-fullpage-hero__content__intro__headline {
332
+ font-size: 2rem;
333
+ }
334
+ }
335
+
336
+ @media (min-width: 1024px) {
337
+ .es-fullpage-hero__content__intro__headline {
338
+ font-size: 2.5rem;
339
+ }
340
+ }
341
+
342
+ @media (min-width: 1200px) {
343
+ .es-fullpage-hero__content__intro__headline {
344
+ font-size: 2.75rem;
345
+ }
346
+ }
347
+
348
+ .es-fullpage-hero__content__intro__description {
349
+ font-size: 1.15rem;
350
+ max-width: 38rem;
351
+ }
352
+
353
+ .es-fullpage-hero__content__intro__description > p {
354
+ margin: 0;
355
+ }
356
+
357
+ @media (min-width: 1200px) {
358
+ .es-fullpage-hero__content__intro__description {
359
+ font-size: 1.4rem;
360
+ }
361
+ }
362
+
363
+ .es-fullpage-hero__content__items {
364
+ display: grid;
365
+ gap: 2rem;
366
+ }
367
+
368
+ @media (min-width: 640px) {
369
+ .es-fullpage-hero__content__items {
370
+ grid-template-columns: repeat(2, 1fr);
371
+ }
372
+ }
373
+
374
+ .es-fullpage-hero__item {
375
+ display: grid;
376
+ align-content: start;
377
+ }
378
+
379
+ .es-fullpage-hero__item__icon {
380
+ max-height: 3rem;
381
+ }
382
+
383
+ .es-fullpage-hero__item__heading {
384
+ font-weight: 700;
385
+ font-size: 1.17rem;
386
+ margin-top: 0;
387
+ margin-bottom: .5rem;
388
+ }
389
+
390
+ .es-fullpage-hero__item__heading > * {
391
+ margin: 0;
392
+ }
393
+
394
+ .es-fullpage-hero__item__description {
395
+ font-size: 0.9rem;
396
+ }
397
+
398
+ .es-fullpage-hero__item__description > * {
399
+ margin: 0;
400
+ }
401
+
402
+ .es-call-to-action__link {
403
+ justify-self: flex-start;
404
+ border-radius: 0.25rem;
405
+ font-size: 0.875rem;
406
+ line-height: 1.3;
407
+ padding: 1rem 2.625rem;
408
+ transition: background-color 100ms linear;
409
+ background-color: #16745f;
410
+ color: #fff;
411
+ }
412
+
413
+ .es-call-to-action__link:hover {
414
+ background-color: #0d5e4c;
415
+ }
416
+ \`}
417
+ </style>
418
+ </section>
419
+ );
420
+ };
421
+
422
+ export default ${pascalName};
423
+
424
+ `;
425
+ }
426
+ return commonTags.stripIndent`
427
+ import { isFilled } from "@prismicio/client";
428
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
429
+ import { PrismicRichText } from "@prismicio/react";
430
+
431
+ /**
432
+ * @typedef {import("@prismicio/client").Content.${pascalName}Slice} ${pascalName}Slice
433
+ * @typedef {import("@prismicio/react").SliceComponentProps<${pascalName}Slice>} ${pascalName}Props
434
+ * @param {${pascalName}Props}
435
+ */
436
+ const ${pascalName} = ({ slice }) => {
437
+ return (
438
+ <section
439
+ data-slice-type={slice.slice_type}
440
+ data-slice-variation={slice.variation}
441
+ className="es-bounded es-fullpage-hero"
442
+ >
443
+ <div
444
+ className={\`
445
+ es-bounded__content
446
+ es-fullpage-hero__content
447
+ \${slice.variation === "imageRight"
448
+ ? "es-fullpage-hero__image--right"
449
+ : "es-fullpage-hero__image--left"
450
+ }
451
+ \`}
452
+ >
453
+ <div>
454
+ {isFilled.image(slice.primary.image) && (
455
+ <PrismicNextImage
456
+ field={slice.primary.image}
457
+ className="es-fullpage-hero__image"
458
+ />
459
+ )}
460
+ </div>
461
+
462
+ <div className="es-fullpage-hero__content-right">
463
+ <div className="es-fullpage-hero__content__intro">
464
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
465
+ <p className="es-fullpage-hero__content__intro__eyebrow">
466
+ {slice.primary.eyebrowHeadline}
467
+ </p>
468
+ )}
469
+ {isFilled.richText(slice.primary.title) && (
470
+ <div className="es-fullpage-hero__content__intro__headline">
471
+ <PrismicRichText field={slice.primary.title} />
472
+ </div>
473
+ )}
474
+ {isFilled.richText(slice.primary.description) && (
475
+ <div className="es-fullpage-hero__content__intro__description">
476
+ <PrismicRichText field={slice.primary.description} />
477
+ </div>
478
+ )}
479
+ {isFilled.link(slice.primary.callToActionLink) && (
480
+ <PrismicNextLink
481
+ className="es-call-to-action__link"
482
+ field={slice.primary.callToActionLink}
483
+ >
484
+ {slice.primary.callToActionLabel || "Learn more…"}
485
+ </PrismicNextLink>
486
+ )}
487
+ </div>
488
+ </div>
489
+ </div>
490
+ <style>
491
+ {\`
492
+ .es-bounded {
493
+ margin: 0px;
494
+ min-width: 0px;
495
+ position: relative;
496
+ }
497
+
498
+ .es-bounded-content {
499
+ min-width: 0px;
500
+ max-width: 90%;
501
+ margin: 0px auto;
502
+ }
503
+
504
+ .es-fullpage-hero {
505
+ font-family: system-ui, sans-serif;
506
+ background-color: #fff;
507
+ color: #333;
508
+ }
509
+
510
+ .es-fullpage-hero__image {
511
+ max-width: 100%;
512
+ height: auto;
513
+ align-self: center;
514
+ }
515
+
516
+ .es-fullpage-hero__image--left > div:first-child {
517
+ order: 1;
518
+ }
519
+
520
+ .es-fullpage-hero__image--left > div:nth-child(2) {
521
+ order: 2;
522
+ }
523
+
524
+ .es-fullpage-hero__image--right > div:first-child {
525
+ order: 2;
526
+ }
527
+
528
+ .es-fullpage-hero__image--right > div:nth-child(2) {
529
+ order: 1;
530
+ }
531
+
532
+ .es-fullpage-hero__content {
533
+ display: flex;
534
+ flex-direction: column;
535
+ gap: 2rem;
536
+ }
537
+
538
+ .es-fullpage-hero__content-right {
539
+ display: flex;
540
+ flex-direction: column;
541
+ justify-content: space-around;
542
+ padding: 1.5rem;
543
+ }
544
+
545
+ @media (min-width: 1080px) {
546
+ .es-fullpage-hero__content {
547
+ flex-direction: row;
548
+ }
549
+
550
+ .es-fullpage-hero__content > div {
551
+ width: 50%;
552
+ }
553
+ }
554
+
555
+ .es-fullpage-hero__content-right__intro {
556
+ margin-top: -2rem;
557
+ display: grid;
558
+ gap: 0.5rem;
559
+ }
560
+
561
+ .es-fullpage-hero__content__intro {
562
+ display: grid;
563
+ gap: 1rem;
564
+ }
565
+
566
+ .es-fullpage-hero__content__intro__eyebrow {
567
+ color: #47C1AF;
568
+ font-size: 1.15rem;
569
+ font-weight: 500;
570
+ margin: 0;
571
+ }
572
+
573
+ .es-fullpage-hero__content__intro__headline {
574
+ font-size: 1.625rem;
575
+ font-weight: 700;
576
+ }
577
+
578
+ .es-fullpage-hero__content__intro__headline > * {
579
+ margin: 0;
580
+ }
581
+
582
+ @media (min-width: 640px) {
583
+ .es-fullpage-hero__content__intro__headline {
584
+ font-size: 2rem;
585
+ }
586
+ }
587
+
588
+ @media (min-width: 1024px) {
589
+ .es-fullpage-hero__content__intro__headline {
590
+ font-size: 2.5rem;
591
+ }
592
+ }
593
+
594
+ @media (min-width: 1200px) {
595
+ .es-fullpage-hero__content__intro__headline {
596
+ font-size: 2.75rem;
597
+ }
598
+ }
599
+
600
+ .es-fullpage-hero__content__intro__description {
601
+ font-size: 1.15rem;
602
+ max-width: 38rem;
603
+ }
604
+
605
+ .es-fullpage-hero__content__intro__description > p {
606
+ margin: 0;
607
+ }
608
+
609
+ @media (min-width: 1200px) {
610
+ .es-fullpage-hero__content__intro__description {
611
+ font-size: 1.4rem;
612
+ }
613
+ }
614
+
615
+ .es-fullpage-hero__content__items {
616
+ display: grid;
617
+ gap: 2rem;
618
+ }
619
+
620
+ @media (min-width: 640px) {
621
+ .es-fullpage-hero__content__items {
622
+ grid-template-columns: repeat(2, 1fr);
623
+ }
624
+ }
625
+
626
+ .es-fullpage-hero__item {
627
+ display: grid;
628
+ align-content: start;
629
+ }
630
+
631
+ .es-fullpage-hero__item__icon {
632
+ max-height: 3rem;
633
+ }
634
+
635
+ .es-fullpage-hero__item__heading {
636
+ font-weight: 700;
637
+ font-size: 1.17rem;
638
+ margin-top: 0;
639
+ margin-bottom: .5rem;
640
+ }
641
+
642
+ .es-fullpage-hero__item__heading > * {
643
+ margin: 0;
644
+ }
645
+
646
+ .es-fullpage-hero__item__description {
647
+ font-size: 0.9rem;
648
+ }
649
+
650
+ .es-fullpage-hero__item__description > * {
651
+ margin: 0;
652
+ }
653
+
654
+ .es-call-to-action__link {
655
+ justify-self: flex-start;
656
+ border-radius: 0.25rem;
657
+ font-size: 0.875rem;
658
+ line-height: 1.3;
659
+ padding: 1rem 2.625rem;
660
+ transition: background-color 100ms linear;
661
+ background-color: #16745f;
662
+ color: #fff;
663
+ }
664
+
665
+ .es-call-to-action__link:hover {
666
+ background-color: #0d5e4c;
667
+ }
668
+ \`}
669
+ </style>
670
+ </section>
671
+ );
672
+ };
673
+
674
+ export default ${pascalName};
675
+
676
+ `;
677
+ };
678
+ const model = {
679
+ id: "hero",
680
+ type: "SharedSlice",
681
+ name: "Hero",
682
+ description: "Hero",
683
+ variations: [
684
+ {
685
+ id: "default",
686
+ name: "Default",
687
+ docURL: "...",
688
+ version: "initial",
689
+ description: "Default",
690
+ imageUrl: "",
691
+ primary: {
692
+ eyebrowHeadline: {
693
+ type: "Text",
694
+ config: {
695
+ label: "eyebrowHeadline",
696
+ placeholder: "Eyebrow"
697
+ }
698
+ },
699
+ title: {
700
+ type: "StructuredText",
701
+ config: {
702
+ label: "title",
703
+ placeholder: "",
704
+ allowTargetBlank: true,
705
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
706
+ }
707
+ },
708
+ description: {
709
+ type: "StructuredText",
710
+ config: {
711
+ label: "description",
712
+ placeholder: "",
713
+ allowTargetBlank: true,
714
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
715
+ }
716
+ },
717
+ image: {
718
+ type: "Image",
719
+ config: {
720
+ label: "image",
721
+ constraint: {},
722
+ thumbnails: []
723
+ }
724
+ },
725
+ callToActionLabel: {
726
+ type: "Text",
727
+ config: {
728
+ label: "callToActionLabel",
729
+ placeholder: ""
730
+ }
731
+ },
732
+ callToActionLink: {
733
+ type: "Link",
734
+ config: {
735
+ label: "callToActionLink",
736
+ placeholder: "",
737
+ select: null
738
+ }
739
+ }
740
+ },
741
+ items: {}
742
+ },
743
+ {
744
+ id: "imageRight",
745
+ name: "Image Right",
746
+ docURL: "...",
747
+ version: "initial",
748
+ description: "Default",
749
+ imageUrl: "",
750
+ primary: {
751
+ eyebrowHeadline: {
752
+ type: "Text",
753
+ config: {
754
+ label: "eyebrowHeadline",
755
+ placeholder: "Eyebrow"
756
+ }
757
+ },
758
+ title: {
759
+ type: "StructuredText",
760
+ config: {
761
+ label: "title",
762
+ placeholder: "",
763
+ allowTargetBlank: true,
764
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
765
+ }
766
+ },
767
+ description: {
768
+ type: "StructuredText",
769
+ config: {
770
+ label: "description",
771
+ placeholder: "",
772
+ allowTargetBlank: true,
773
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
774
+ }
775
+ },
776
+ image: {
777
+ type: "Image",
778
+ config: {
779
+ label: "image",
780
+ constraint: {},
781
+ thumbnails: []
782
+ }
783
+ },
784
+ callToActionLabel: {
785
+ type: "Text",
786
+ config: {
787
+ label: "callToActionLabel",
788
+ placeholder: ""
789
+ }
790
+ },
791
+ callToActionLink: {
792
+ type: "Link",
793
+ config: {
794
+ label: "callToActionLink",
795
+ placeholder: "",
796
+ select: null
797
+ }
798
+ }
799
+ },
800
+ items: {}
801
+ }
802
+ ]
803
+ };
804
+ const screenshotPaths = {
805
+ default: "Hero/screenshot-default.png",
806
+ imageRight: "Hero/screenshot-imageRight.png"
807
+ };
808
+ exports.createComponentContents = createComponentContents;
809
+ exports.mocks = mocks;
810
+ exports.model = model;
811
+ exports.screenshotPaths = screenshotPaths;
812
+ //# sourceMappingURL=index.cjs.map