@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
+ 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
+ }
243
+
244
+ .es-bounded-content {
245
+ min-width: 0px;
246
+ max-width: 90%;
247
+ margin: 0px auto;
248
+ }
249
+
250
+ .es-fullpage-hero {
251
+ font-family: system-ui, sans-serif;
252
+ background-color: #fff;
253
+ color: #333;
254
+ }
255
+
256
+ .es-fullpage-hero__image {
257
+ max-width: 100%;
258
+ height: auto;
259
+ align-self: center;
260
+ }
261
+
262
+ .es-fullpage-hero__image--left > div:first-child {
263
+ order: 1;
264
+ }
265
+
266
+ .es-fullpage-hero__image--left > div:nth-child(2) {
267
+ order: 2;
268
+ }
269
+
270
+ .es-fullpage-hero__image--right > div:first-child {
271
+ order: 2;
272
+ }
273
+
274
+ .es-fullpage-hero__image--right > div:nth-child(2) {
275
+ order: 1;
276
+ }
277
+
278
+ .es-fullpage-hero__content {
279
+ display: flex;
280
+ flex-direction: column;
281
+ gap: 2rem;
282
+ }
283
+
284
+ .es-fullpage-hero__content-right {
285
+ display: flex;
286
+ flex-direction: column;
287
+ justify-content: space-around;
288
+ padding: 1.5rem;
289
+ }
290
+
291
+ @media (min-width: 1080px) {
292
+ .es-fullpage-hero__content {
293
+ flex-direction: row;
294
+ }
295
+
296
+ .es-fullpage-hero__content > div {
297
+ width: 50%;
298
+ }
299
+ }
300
+
301
+ .es-fullpage-hero__content-right__intro {
302
+ margin-top: -2rem;
303
+ display: grid;
304
+ gap: 0.5rem;
305
+ }
306
+
307
+ .es-fullpage-hero__content__intro {
308
+ display: grid;
309
+ gap: 1rem;
310
+ }
311
+
312
+ .es-fullpage-hero__content__intro__eyebrow {
313
+ color: #47C1AF;
314
+ font-size: 1.15rem;
315
+ font-weight: 500;
316
+ margin: 0;
317
+ }
318
+
319
+ .es-fullpage-hero__content__intro__headline {
320
+ font-size: 1.625rem;
321
+ font-weight: 700;
322
+ }
323
+
324
+ .es-fullpage-hero__content__intro__headline > * {
325
+ margin: 0;
326
+ }
327
+
328
+ @media (min-width: 640px) {
329
+ .es-fullpage-hero__content__intro__headline {
330
+ font-size: 2rem;
331
+ }
332
+ }
333
+
334
+ @media (min-width: 1024px) {
335
+ .es-fullpage-hero__content__intro__headline {
336
+ font-size: 2.5rem;
337
+ }
338
+ }
339
+
340
+ @media (min-width: 1200px) {
341
+ .es-fullpage-hero__content__intro__headline {
342
+ font-size: 2.75rem;
343
+ }
344
+ }
345
+
346
+ .es-fullpage-hero__content__intro__description {
347
+ font-size: 1.15rem;
348
+ max-width: 38rem;
349
+ }
350
+
351
+ .es-fullpage-hero__content__intro__description > p {
352
+ margin: 0;
353
+ }
354
+
355
+ @media (min-width: 1200px) {
356
+ .es-fullpage-hero__content__intro__description {
357
+ font-size: 1.4rem;
358
+ }
359
+ }
360
+
361
+ .es-fullpage-hero__content__items {
362
+ display: grid;
363
+ gap: 2rem;
364
+ }
365
+
366
+ @media (min-width: 640px) {
367
+ .es-fullpage-hero__content__items {
368
+ grid-template-columns: repeat(2, 1fr);
369
+ }
370
+ }
371
+
372
+ .es-fullpage-hero__item {
373
+ display: grid;
374
+ align-content: start;
375
+ }
376
+
377
+ .es-fullpage-hero__item__icon {
378
+ max-height: 3rem;
379
+ }
380
+
381
+ .es-fullpage-hero__item__heading {
382
+ font-weight: 700;
383
+ font-size: 1.17rem;
384
+ margin-top: 0;
385
+ margin-bottom: .5rem;
386
+ }
387
+
388
+ .es-fullpage-hero__item__heading > * {
389
+ margin: 0;
390
+ }
391
+
392
+ .es-fullpage-hero__item__description {
393
+ font-size: 0.9rem;
394
+ }
395
+
396
+ .es-fullpage-hero__item__description > * {
397
+ margin: 0;
398
+ }
399
+
400
+ .es-call-to-action__link {
401
+ justify-self: flex-start;
402
+ border-radius: 0.25rem;
403
+ font-size: 0.875rem;
404
+ line-height: 1.3;
405
+ padding: 1rem 2.625rem;
406
+ transition: background-color 100ms linear;
407
+ background-color: #16745f;
408
+ color: #fff;
409
+ }
410
+
411
+ .es-call-to-action__link:hover {
412
+ background-color: #0d5e4c;
413
+ }
414
+ \`}
415
+ </style>
416
+ </section>
417
+ );
418
+ };
419
+
420
+ export default ${pascalName};
421
+
422
+ `;
423
+ }
424
+ return stripIndent`
425
+ import { isFilled } from "@prismicio/client";
426
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
427
+ import { PrismicRichText } from "@prismicio/react";
428
+
429
+ /**
430
+ * @typedef {import("@prismicio/client").Content.${pascalName}Slice} ${pascalName}Slice
431
+ * @typedef {import("@prismicio/react").SliceComponentProps<${pascalName}Slice>} ${pascalName}Props
432
+ * @param {${pascalName}Props}
433
+ */
434
+ const ${pascalName} = ({ slice }) => {
435
+ return (
436
+ <section
437
+ data-slice-type={slice.slice_type}
438
+ data-slice-variation={slice.variation}
439
+ className="es-bounded es-fullpage-hero"
440
+ >
441
+ <div
442
+ className={\`
443
+ es-bounded__content
444
+ es-fullpage-hero__content
445
+ \${slice.variation === "imageRight"
446
+ ? "es-fullpage-hero__image--right"
447
+ : "es-fullpage-hero__image--left"
448
+ }
449
+ \`}
450
+ >
451
+ <div>
452
+ {isFilled.image(slice.primary.image) && (
453
+ <PrismicNextImage
454
+ field={slice.primary.image}
455
+ className="es-fullpage-hero__image"
456
+ />
457
+ )}
458
+ </div>
459
+
460
+ <div className="es-fullpage-hero__content-right">
461
+ <div className="es-fullpage-hero__content__intro">
462
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
463
+ <p className="es-fullpage-hero__content__intro__eyebrow">
464
+ {slice.primary.eyebrowHeadline}
465
+ </p>
466
+ )}
467
+ {isFilled.richText(slice.primary.title) && (
468
+ <div className="es-fullpage-hero__content__intro__headline">
469
+ <PrismicRichText field={slice.primary.title} />
470
+ </div>
471
+ )}
472
+ {isFilled.richText(slice.primary.description) && (
473
+ <div className="es-fullpage-hero__content__intro__description">
474
+ <PrismicRichText field={slice.primary.description} />
475
+ </div>
476
+ )}
477
+ {isFilled.link(slice.primary.callToActionLink) && (
478
+ <PrismicNextLink
479
+ className="es-call-to-action__link"
480
+ field={slice.primary.callToActionLink}
481
+ >
482
+ {slice.primary.callToActionLabel || "Learn more…"}
483
+ </PrismicNextLink>
484
+ )}
485
+ </div>
486
+ </div>
487
+ </div>
488
+ <style>
489
+ {\`
490
+ .es-bounded {
491
+ margin: 0px;
492
+ min-width: 0px;
493
+ position: relative;
494
+ }
495
+
496
+ .es-bounded-content {
497
+ min-width: 0px;
498
+ max-width: 90%;
499
+ margin: 0px auto;
500
+ }
501
+
502
+ .es-fullpage-hero {
503
+ font-family: system-ui, sans-serif;
504
+ background-color: #fff;
505
+ color: #333;
506
+ }
507
+
508
+ .es-fullpage-hero__image {
509
+ max-width: 100%;
510
+ height: auto;
511
+ align-self: center;
512
+ }
513
+
514
+ .es-fullpage-hero__image--left > div:first-child {
515
+ order: 1;
516
+ }
517
+
518
+ .es-fullpage-hero__image--left > div:nth-child(2) {
519
+ order: 2;
520
+ }
521
+
522
+ .es-fullpage-hero__image--right > div:first-child {
523
+ order: 2;
524
+ }
525
+
526
+ .es-fullpage-hero__image--right > div:nth-child(2) {
527
+ order: 1;
528
+ }
529
+
530
+ .es-fullpage-hero__content {
531
+ display: flex;
532
+ flex-direction: column;
533
+ gap: 2rem;
534
+ }
535
+
536
+ .es-fullpage-hero__content-right {
537
+ display: flex;
538
+ flex-direction: column;
539
+ justify-content: space-around;
540
+ padding: 1.5rem;
541
+ }
542
+
543
+ @media (min-width: 1080px) {
544
+ .es-fullpage-hero__content {
545
+ flex-direction: row;
546
+ }
547
+
548
+ .es-fullpage-hero__content > div {
549
+ width: 50%;
550
+ }
551
+ }
552
+
553
+ .es-fullpage-hero__content-right__intro {
554
+ margin-top: -2rem;
555
+ display: grid;
556
+ gap: 0.5rem;
557
+ }
558
+
559
+ .es-fullpage-hero__content__intro {
560
+ display: grid;
561
+ gap: 1rem;
562
+ }
563
+
564
+ .es-fullpage-hero__content__intro__eyebrow {
565
+ color: #47C1AF;
566
+ font-size: 1.15rem;
567
+ font-weight: 500;
568
+ margin: 0;
569
+ }
570
+
571
+ .es-fullpage-hero__content__intro__headline {
572
+ font-size: 1.625rem;
573
+ font-weight: 700;
574
+ }
575
+
576
+ .es-fullpage-hero__content__intro__headline > * {
577
+ margin: 0;
578
+ }
579
+
580
+ @media (min-width: 640px) {
581
+ .es-fullpage-hero__content__intro__headline {
582
+ font-size: 2rem;
583
+ }
584
+ }
585
+
586
+ @media (min-width: 1024px) {
587
+ .es-fullpage-hero__content__intro__headline {
588
+ font-size: 2.5rem;
589
+ }
590
+ }
591
+
592
+ @media (min-width: 1200px) {
593
+ .es-fullpage-hero__content__intro__headline {
594
+ font-size: 2.75rem;
595
+ }
596
+ }
597
+
598
+ .es-fullpage-hero__content__intro__description {
599
+ font-size: 1.15rem;
600
+ max-width: 38rem;
601
+ }
602
+
603
+ .es-fullpage-hero__content__intro__description > p {
604
+ margin: 0;
605
+ }
606
+
607
+ @media (min-width: 1200px) {
608
+ .es-fullpage-hero__content__intro__description {
609
+ font-size: 1.4rem;
610
+ }
611
+ }
612
+
613
+ .es-fullpage-hero__content__items {
614
+ display: grid;
615
+ gap: 2rem;
616
+ }
617
+
618
+ @media (min-width: 640px) {
619
+ .es-fullpage-hero__content__items {
620
+ grid-template-columns: repeat(2, 1fr);
621
+ }
622
+ }
623
+
624
+ .es-fullpage-hero__item {
625
+ display: grid;
626
+ align-content: start;
627
+ }
628
+
629
+ .es-fullpage-hero__item__icon {
630
+ max-height: 3rem;
631
+ }
632
+
633
+ .es-fullpage-hero__item__heading {
634
+ font-weight: 700;
635
+ font-size: 1.17rem;
636
+ margin-top: 0;
637
+ margin-bottom: .5rem;
638
+ }
639
+
640
+ .es-fullpage-hero__item__heading > * {
641
+ margin: 0;
642
+ }
643
+
644
+ .es-fullpage-hero__item__description {
645
+ font-size: 0.9rem;
646
+ }
647
+
648
+ .es-fullpage-hero__item__description > * {
649
+ margin: 0;
650
+ }
651
+
652
+ .es-call-to-action__link {
653
+ justify-self: flex-start;
654
+ border-radius: 0.25rem;
655
+ font-size: 0.875rem;
656
+ line-height: 1.3;
657
+ padding: 1rem 2.625rem;
658
+ transition: background-color 100ms linear;
659
+ background-color: #16745f;
660
+ color: #fff;
661
+ }
662
+
663
+ .es-call-to-action__link:hover {
664
+ background-color: #0d5e4c;
665
+ }
666
+ \`}
667
+ </style>
668
+ </section>
669
+ );
670
+ };
671
+
672
+ export default ${pascalName};
673
+
674
+ `;
675
+ };
676
+ const model = {
677
+ id: "hero",
678
+ type: "SharedSlice",
679
+ name: "Hero",
680
+ description: "Hero",
681
+ variations: [
682
+ {
683
+ id: "default",
684
+ name: "Default",
685
+ docURL: "...",
686
+ version: "initial",
687
+ description: "Default",
688
+ imageUrl: "",
689
+ primary: {
690
+ eyebrowHeadline: {
691
+ type: "Text",
692
+ config: {
693
+ label: "eyebrowHeadline",
694
+ placeholder: "Eyebrow"
695
+ }
696
+ },
697
+ title: {
698
+ type: "StructuredText",
699
+ config: {
700
+ label: "title",
701
+ placeholder: "",
702
+ allowTargetBlank: true,
703
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
704
+ }
705
+ },
706
+ description: {
707
+ type: "StructuredText",
708
+ config: {
709
+ label: "description",
710
+ placeholder: "",
711
+ allowTargetBlank: true,
712
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
713
+ }
714
+ },
715
+ image: {
716
+ type: "Image",
717
+ config: {
718
+ label: "image",
719
+ constraint: {},
720
+ thumbnails: []
721
+ }
722
+ },
723
+ callToActionLabel: {
724
+ type: "Text",
725
+ config: {
726
+ label: "callToActionLabel",
727
+ placeholder: ""
728
+ }
729
+ },
730
+ callToActionLink: {
731
+ type: "Link",
732
+ config: {
733
+ label: "callToActionLink",
734
+ placeholder: "",
735
+ select: null
736
+ }
737
+ }
738
+ },
739
+ items: {}
740
+ },
741
+ {
742
+ id: "imageRight",
743
+ name: "Image Right",
744
+ docURL: "...",
745
+ version: "initial",
746
+ description: "Default",
747
+ imageUrl: "",
748
+ primary: {
749
+ eyebrowHeadline: {
750
+ type: "Text",
751
+ config: {
752
+ label: "eyebrowHeadline",
753
+ placeholder: "Eyebrow"
754
+ }
755
+ },
756
+ title: {
757
+ type: "StructuredText",
758
+ config: {
759
+ label: "title",
760
+ placeholder: "",
761
+ allowTargetBlank: true,
762
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
763
+ }
764
+ },
765
+ description: {
766
+ type: "StructuredText",
767
+ config: {
768
+ label: "description",
769
+ placeholder: "",
770
+ allowTargetBlank: true,
771
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
772
+ }
773
+ },
774
+ image: {
775
+ type: "Image",
776
+ config: {
777
+ label: "image",
778
+ constraint: {},
779
+ thumbnails: []
780
+ }
781
+ },
782
+ callToActionLabel: {
783
+ type: "Text",
784
+ config: {
785
+ label: "callToActionLabel",
786
+ placeholder: ""
787
+ }
788
+ },
789
+ callToActionLink: {
790
+ type: "Link",
791
+ config: {
792
+ label: "callToActionLink",
793
+ placeholder: "",
794
+ select: null
795
+ }
796
+ }
797
+ },
798
+ items: {}
799
+ }
800
+ ]
801
+ };
802
+ const screenshotPaths = {
803
+ default: "Hero/screenshot-default.png",
804
+ imageRight: "Hero/screenshot-imageRight.png"
805
+ };
806
+ export {
807
+ createComponentContents,
808
+ mocks,
809
+ model,
810
+ screenshotPaths
811
+ };
812
+ //# sourceMappingURL=index.js.map