@slicemachine/adapter-next 0.3.15-dev-next-release.8 → 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,814 @@
1
+ import { pascalCase } from "../../lib/pascalCase.js";
2
+ import { stripIndent } from "common-tags";
3
+ const mocks = [
4
+ {
5
+ __TYPE__: "SharedSliceContent",
6
+ variation: "default",
7
+ primary: {
8
+ title: {
9
+ __TYPE__: "StructuredTextContent",
10
+ value: [
11
+ {
12
+ type: "heading2",
13
+ content: {
14
+ text: "Build a website that keeps getting better",
15
+ spans: []
16
+ },
17
+ direction: "ltr"
18
+ }
19
+ ]
20
+ },
21
+ eyebrowHeadline: {
22
+ __TYPE__: "FieldContent",
23
+ type: "Text",
24
+ value: "Hero"
25
+ },
26
+ description: {
27
+ __TYPE__: "StructuredTextContent",
28
+ value: [
29
+ {
30
+ type: "paragraph",
31
+ content: {
32
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases",
33
+ spans: []
34
+ },
35
+ direction: "ltr"
36
+ }
37
+ ]
38
+ },
39
+ image: {
40
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
41
+ origin: {
42
+ id: "h5yMpgOI5nI",
43
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
44
+ width: 3710,
45
+ height: 3710
46
+ },
47
+ width: 3710,
48
+ height: 3710,
49
+ edit: {
50
+ background: "transparent",
51
+ zoom: 1,
52
+ crop: {
53
+ x: 0,
54
+ y: 0
55
+ }
56
+ },
57
+ credits: null,
58
+ alt: "Image Content",
59
+ __TYPE__: "ImageContent",
60
+ thumbnails: {}
61
+ },
62
+ callToActionLabel: {
63
+ __TYPE__: "FieldContent",
64
+ type: "Text",
65
+ value: "Call to Action"
66
+ },
67
+ callToActionLink: {
68
+ __TYPE__: "LinkContent",
69
+ value: {
70
+ __TYPE__: "ExternalLink",
71
+ url: "https://prismic.io",
72
+ target: ""
73
+ }
74
+ }
75
+ },
76
+ items: []
77
+ },
78
+ {
79
+ __TYPE__: "SharedSliceContent",
80
+ variation: "imageRight",
81
+ primary: {
82
+ eyebrowHeadline: {
83
+ __TYPE__: "FieldContent",
84
+ type: "Text",
85
+ value: "Image Right"
86
+ },
87
+ title: {
88
+ __TYPE__: "StructuredTextContent",
89
+ value: [
90
+ {
91
+ type: "heading1",
92
+ content: {
93
+ text: "Build a website",
94
+ spans: []
95
+ },
96
+ direction: "ltr"
97
+ }
98
+ ]
99
+ },
100
+ description: {
101
+ __TYPE__: "StructuredTextContent",
102
+ value: [
103
+ {
104
+ type: "paragraph",
105
+ content: {
106
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases, including Image Right slice variations!",
107
+ spans: []
108
+ },
109
+ direction: "ltr"
110
+ },
111
+ {
112
+ type: "paragraph",
113
+ content: {
114
+ text: "\nBy the way: this RichText field supports multi-paragraph!",
115
+ spans: []
116
+ },
117
+ direction: "ltr"
118
+ }
119
+ ]
120
+ },
121
+ image: {
122
+ origin: {
123
+ id: "euqiHwS38Rw",
124
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
125
+ width: 2500,
126
+ height: 2500
127
+ },
128
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
129
+ width: 2500,
130
+ height: 2500,
131
+ edit: {
132
+ background: "transparent",
133
+ zoom: 1,
134
+ crop: {
135
+ x: 0,
136
+ y: 0
137
+ }
138
+ },
139
+ credits: null,
140
+ alt: "Image Content",
141
+ __TYPE__: "ImageContent",
142
+ thumbnails: {}
143
+ },
144
+ callToActionLabel: {
145
+ __TYPE__: "FieldContent",
146
+ type: "Text",
147
+ value: "Call to Action"
148
+ },
149
+ callToActionLink: {
150
+ __TYPE__: "LinkContent",
151
+ value: {
152
+ __TYPE__: "ExternalLink",
153
+ url: "https://prismic.io",
154
+ target: ""
155
+ }
156
+ }
157
+ },
158
+ items: [
159
+ {
160
+ __TYPE__: "GroupItemContent",
161
+ value: []
162
+ }
163
+ ]
164
+ }
165
+ ];
166
+ const createComponentContents = (model2, isTypeScriptProject) => {
167
+ const pascalName = pascalCase(model2.name);
168
+ if (isTypeScriptProject) {
169
+ return stripIndent`
170
+ import { Content, isFilled } from "@prismicio/client";
171
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
172
+ import { SliceComponentProps, PrismicRichText } from "@prismicio/react";
173
+
174
+ /**
175
+ * Props for \`${pascalName}\`.
176
+ */
177
+ export type ${pascalName}Props = SliceComponentProps<Content.${pascalName}Slice>;
178
+
179
+ /**
180
+ * Component for "${model2.name}" Slices.
181
+ */
182
+ const ${pascalName} = ({ slice }: ${pascalName}Props): JSX.Element => {
183
+ return (
184
+ <section
185
+ data-slice-type={slice.slice_type}
186
+ data-slice-variation={slice.variation}
187
+ className="es-bounded es-fullpage-hero"
188
+ >
189
+ <div
190
+ className={\`
191
+ es-bounded__content
192
+ es-fullpage-hero__content
193
+ \${slice.variation === "imageRight"
194
+ ? "es-fullpage-hero__image--right"
195
+ : "es-fullpage-hero__image--left"
196
+ }
197
+ \`}
198
+ >
199
+ <div>
200
+ {isFilled.image(slice.primary.image) && (
201
+ <PrismicNextImage
202
+ field={slice.primary.image}
203
+ className="es-fullpage-hero__image"
204
+ />
205
+ )}
206
+ </div>
207
+
208
+ <div className="es-fullpage-hero__content-right">
209
+ <div className="es-fullpage-hero__content__intro">
210
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
211
+ <p className="es-fullpage-hero__content__intro__eyebrow">
212
+ {slice.primary.eyebrowHeadline}
213
+ </p>
214
+ )}
215
+ {isFilled.richText(slice.primary.title) && (
216
+ <div className="es-fullpage-hero__content__intro__headline">
217
+ <PrismicRichText field={slice.primary.title} />
218
+ </div>
219
+ )}
220
+ {isFilled.richText(slice.primary.description) && (
221
+ <div className="es-fullpage-hero__content__intro__description">
222
+ <PrismicRichText field={slice.primary.description} />
223
+ </div>
224
+ )}
225
+ {isFilled.link(slice.primary.callToActionLink) && (
226
+ <PrismicNextLink
227
+ className="es-call-to-action__link"
228
+ field={slice.primary.callToActionLink}
229
+ >
230
+ {slice.primary.callToActionLabel || "Learn more…"}
231
+ </PrismicNextLink>
232
+ )}
233
+ </div>
234
+ </div>
235
+ </div>
236
+ <style>
237
+ {\`
238
+ .es-bounded {
239
+ margin: 0px;
240
+ min-width: 0px;
241
+ position: relative;
242
+ height: 100vh;
243
+ }
244
+
245
+ .es-bounded-content {
246
+ min-width: 0px;
247
+ max-width: 90%;
248
+ margin: 0px auto;
249
+ }
250
+
251
+ .es-fullpage-hero {
252
+ font-family: system-ui, sans-serif;
253
+ background-color: #fff;
254
+ color: #333;
255
+ }
256
+
257
+ .es-fullpage-hero__image {
258
+ max-width: 100%;
259
+ max-height: 100vh;
260
+ align-self: center;
261
+ }
262
+
263
+ .es-fullpage-hero__image--left > div:first-child {
264
+ order: 1;
265
+ }
266
+
267
+ .es-fullpage-hero__image--left > div:nth-child(2) {
268
+ order: 2;
269
+ }
270
+
271
+ .es-fullpage-hero__image--right > div:first-child {
272
+ order: 2;
273
+ }
274
+
275
+ .es-fullpage-hero__image--right > div:nth-child(2) {
276
+ order: 1;
277
+ }
278
+
279
+ .es-fullpage-hero__content {
280
+ display: flex;
281
+ flex-direction: column;
282
+ gap: 2rem;
283
+ }
284
+
285
+ .es-fullpage-hero__content-right {
286
+ display: flex;
287
+ flex-direction: column;
288
+ justify-content: space-around;
289
+ padding: 1.5rem;
290
+ }
291
+
292
+ @media (min-width: 1080px) {
293
+ .es-fullpage-hero__content {
294
+ flex-direction: row;
295
+ }
296
+
297
+ .es-fullpage-hero__content > div {
298
+ width: 50%;
299
+ }
300
+ }
301
+
302
+ .es-fullpage-hero__content-right__intro {
303
+ margin-top: -2rem;
304
+ display: grid;
305
+ gap: 0.5rem;
306
+ }
307
+
308
+ .es-fullpage-hero__content__intro {
309
+ display: grid;
310
+ gap: 1rem;
311
+ }
312
+
313
+ .es-fullpage-hero__content__intro__eyebrow {
314
+ color: #47C1AF;
315
+ font-size: 1.15rem;
316
+ font-weight: 500;
317
+ margin: 0;
318
+ }
319
+
320
+ .es-fullpage-hero__content__intro__headline {
321
+ font-size: 1.625rem;
322
+ font-weight: 700;
323
+ }
324
+
325
+ .es-fullpage-hero__content__intro__headline > * {
326
+ margin: 0;
327
+ }
328
+
329
+ @media (min-width: 640px) {
330
+ .es-fullpage-hero__content__intro__headline {
331
+ font-size: 2rem;
332
+ }
333
+ }
334
+
335
+ @media (min-width: 1024px) {
336
+ .es-fullpage-hero__content__intro__headline {
337
+ font-size: 2.5rem;
338
+ }
339
+ }
340
+
341
+ @media (min-width: 1200px) {
342
+ .es-fullpage-hero__content__intro__headline {
343
+ font-size: 2.75rem;
344
+ }
345
+ }
346
+
347
+ .es-fullpage-hero__content__intro__description {
348
+ font-size: 1.15rem;
349
+ max-width: 38rem;
350
+ }
351
+
352
+ .es-fullpage-hero__content__intro__description > p {
353
+ margin: 0;
354
+ }
355
+
356
+ @media (min-width: 1200px) {
357
+ .es-fullpage-hero__content__intro__description {
358
+ font-size: 1.4rem;
359
+ }
360
+ }
361
+
362
+ .es-fullpage-hero__content__items {
363
+ display: grid;
364
+ gap: 2rem;
365
+ }
366
+
367
+ @media (min-width: 640px) {
368
+ .es-fullpage-hero__content__items {
369
+ grid-template-columns: repeat(2, 1fr);
370
+ }
371
+ }
372
+
373
+ .es-fullpage-hero__item {
374
+ display: grid;
375
+ align-content: start;
376
+ }
377
+
378
+ .es-fullpage-hero__item__icon {
379
+ max-height: 3rem;
380
+ }
381
+
382
+ .es-fullpage-hero__item__heading {
383
+ font-weight: 700;
384
+ font-size: 1.17rem;
385
+ margin-top: 0;
386
+ margin-bottom: .5rem;
387
+ }
388
+
389
+ .es-fullpage-hero__item__heading > * {
390
+ margin: 0;
391
+ }
392
+
393
+ .es-fullpage-hero__item__description {
394
+ font-size: 0.9rem;
395
+ }
396
+
397
+ .es-fullpage-hero__item__description > * {
398
+ margin: 0;
399
+ }
400
+
401
+ .es-call-to-action__link {
402
+ justify-self: flex-start;
403
+ border-radius: 0.25rem;
404
+ font-size: 0.875rem;
405
+ line-height: 1.3;
406
+ padding: 1rem 2.625rem;
407
+ transition: background-color 100ms linear;
408
+ background-color: #16745f;
409
+ color: #fff;
410
+ }
411
+
412
+ .es-call-to-action__link:hover {
413
+ background-color: #0d5e4c;
414
+ }
415
+ \`}
416
+ </style>
417
+ </section>
418
+ );
419
+ };
420
+
421
+ export default ${pascalName};
422
+
423
+ `;
424
+ }
425
+ return stripIndent`
426
+ import { isFilled } from "@prismicio/client";
427
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
428
+ import { PrismicRichText } from "@prismicio/react";
429
+
430
+ /**
431
+ * @typedef {import("@prismicio/client").Content.${pascalName}Slice} ${pascalName}Slice
432
+ * @typedef {import("@prismicio/react").SliceComponentProps<${pascalName}Slice>} ${pascalName}Props
433
+ * @param {${pascalName}Props}
434
+ */
435
+ const ${pascalName} = ({ slice }) => {
436
+ return (
437
+ <section
438
+ data-slice-type={slice.slice_type}
439
+ data-slice-variation={slice.variation}
440
+ className="es-bounded es-fullpage-hero"
441
+ >
442
+ <div
443
+ className={\`
444
+ es-bounded__content
445
+ es-fullpage-hero__content
446
+ \${slice.variation === "imageRight"
447
+ ? "es-fullpage-hero__image--right"
448
+ : "es-fullpage-hero__image--left"
449
+ }
450
+ \`}
451
+ >
452
+ <div>
453
+ {isFilled.image(slice.primary.image) && (
454
+ <PrismicNextImage
455
+ field={slice.primary.image}
456
+ className="es-fullpage-hero__image"
457
+ />
458
+ )}
459
+ </div>
460
+
461
+ <div className="es-fullpage-hero__content-right">
462
+ <div className="es-fullpage-hero__content__intro">
463
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
464
+ <p className="es-fullpage-hero__content__intro__eyebrow">
465
+ {slice.primary.eyebrowHeadline}
466
+ </p>
467
+ )}
468
+ {isFilled.richText(slice.primary.title) && (
469
+ <div className="es-fullpage-hero__content__intro__headline">
470
+ <PrismicRichText field={slice.primary.title} />
471
+ </div>
472
+ )}
473
+ {isFilled.richText(slice.primary.description) && (
474
+ <div className="es-fullpage-hero__content__intro__description">
475
+ <PrismicRichText field={slice.primary.description} />
476
+ </div>
477
+ )}
478
+ {isFilled.link(slice.primary.callToActionLink) && (
479
+ <PrismicNextLink
480
+ className="es-call-to-action__link"
481
+ field={slice.primary.callToActionLink}
482
+ >
483
+ {slice.primary.callToActionLabel || "Learn more…"}
484
+ </PrismicNextLink>
485
+ )}
486
+ </div>
487
+ </div>
488
+ </div>
489
+ <style>
490
+ {\`
491
+ .es-bounded {
492
+ margin: 0px;
493
+ min-width: 0px;
494
+ position: relative;
495
+ height: 100vh;
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
+ max-height: 100vh;
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
+ export {
809
+ createComponentContents,
810
+ mocks,
811
+ model,
812
+ screenshotPaths
813
+ };
814
+ //# sourceMappingURL=index.js.map