@slicemachine/adapter-next 0.3.15-dev-next-release.7 → 0.3.15-dev-next-release.9

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