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