@contentrain/astro-kit 0.5.0 → 0.6.0

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 (66) hide show
  1. package/catalog.json +1512 -167
  2. package/components/_shared/KitImage.astro +10 -4
  3. package/components/_shared/image.ts +14 -0
  4. package/components/_shared/types.ts +2 -1
  5. package/components/announcement/Announcement.astro +53 -0
  6. package/components/announcement/fixtures.json +6 -0
  7. package/components/announcement/meta.json +53 -0
  8. package/components/card-grid/CardGrid.astro +5 -3
  9. package/components/card-grid/meta.json +25 -11
  10. package/components/consent/Consent.astro +87 -0
  11. package/components/consent/fixtures.json +4 -0
  12. package/components/consent/meta.json +67 -0
  13. package/components/contact-details/ContactDetails.astro +74 -0
  14. package/components/contact-details/fixtures.json +4 -0
  15. package/components/contact-details/meta.json +105 -0
  16. package/components/contact-form/ContactForm.astro +22 -6
  17. package/components/contact-form/fixtures.json +2 -1
  18. package/components/contact-form/meta.json +7 -6
  19. package/components/cta/meta.json +4 -4
  20. package/components/faq/meta.json +6 -6
  21. package/components/feature-list/FeatureList.astro +85 -0
  22. package/components/feature-list/fixtures.json +129 -0
  23. package/components/feature-list/meta.json +118 -0
  24. package/components/footer/Footer.astro +14 -6
  25. package/components/footer/fixtures.json +3 -1
  26. package/components/footer/meta.json +12 -0
  27. package/components/gallery/Gallery.astro +7 -3
  28. package/components/gallery/meta.json +6 -6
  29. package/components/header/Header.astro +19 -8
  30. package/components/header/fixtures.json +2 -1
  31. package/components/hero/meta.json +30 -8
  32. package/components/logo-cloud/LogoCloud.astro +69 -0
  33. package/components/logo-cloud/fixtures.json +139 -0
  34. package/components/logo-cloud/meta.json +107 -0
  35. package/components/newsletter/meta.json +12 -0
  36. package/components/pricing/Pricing.astro +94 -0
  37. package/components/pricing/fixtures.json +6 -0
  38. package/components/pricing/meta.json +133 -0
  39. package/components/prose/Prose.astro +7 -3
  40. package/components/prose/fixtures.json +2 -1
  41. package/components/prose/meta.json +5 -2
  42. package/components/slider/Slider.astro +15 -3
  43. package/components/slider/meta.json +8 -8
  44. package/components/split/Split.astro +64 -0
  45. package/components/split/fixtures.json +6 -0
  46. package/components/split/meta.json +154 -0
  47. package/components/stats/Stats.astro +66 -0
  48. package/components/stats/fixtures.json +98 -0
  49. package/components/stats/meta.json +113 -0
  50. package/components/steps/Steps.astro +77 -0
  51. package/components/steps/fixtures.json +5 -0
  52. package/components/steps/meta.json +105 -0
  53. package/components/team/Team.astro +82 -0
  54. package/components/team/fixtures.json +5 -0
  55. package/components/team/meta.json +116 -0
  56. package/components/testimonial/Testimonial.astro +5 -3
  57. package/components/testimonial/meta.json +21 -20
  58. package/dist/index.d.mts +115 -2
  59. package/dist/index.d.mts.map +1 -1
  60. package/dist/index.mjs +175 -3
  61. package/dist/index.mjs.map +1 -1
  62. package/mapping/classic.json +51 -6
  63. package/mapping/divi.json +359 -9
  64. package/mapping/elementor.json +581 -8
  65. package/mapping/gutenberg.json +420 -4
  66. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "astro-kit-mapping@1",
3
3
  "builder": "classic",
4
- "version": "4",
4
+ "version": "5",
5
5
  "fallback": "prose",
6
6
  "rules": [
7
7
  {
@@ -107,7 +107,8 @@
107
107
  "into": "slides",
108
108
  "each": "rs-slide, .tp-revslider-slidesli",
109
109
  "item": {
110
- "image": "img:img",
110
+ "image": "img:img@src",
111
+ "imageAlt": "img:img@alt",
111
112
  "title": "dom:rs-layer"
112
113
  }
113
114
  },
@@ -124,7 +125,8 @@
124
125
  "into": "slides",
125
126
  "each": ".slides > li",
126
127
  "item": {
127
- "image": "img:img",
128
+ "image": "img:img@src",
129
+ "imageAlt": "img:img@alt",
128
130
  "text": "dom:.caption"
129
131
  }
130
132
  },
@@ -141,7 +143,8 @@
141
143
  "into": "slides",
142
144
  "each": ".n2-ss-slide",
143
145
  "item": {
144
- "image": "img:img",
146
+ "image": "img:img@src",
147
+ "imageAlt": "img:img@alt",
145
148
  "title": "dom:.n2-ss-item-content"
146
149
  }
147
150
  },
@@ -202,7 +205,8 @@
202
205
  "item": {
203
206
  "quote": "dom:blockquote, .testimonial-text",
204
207
  "name": "dom:cite, .testimonial-name",
205
- "avatar": "img:img"
208
+ "avatar": "img:img@src",
209
+ "avatarAlt": "img:img@alt"
206
210
  }
207
211
  },
208
212
  {
@@ -214,7 +218,8 @@
214
218
  "into": "items",
215
219
  "each": ".gallery-item",
216
220
  "item": {
217
- "image": "img:img",
221
+ "image": "img:img@src",
222
+ "imageAlt": "img:img@alt",
218
223
  "caption": "dom:.gallery-caption, .wp-caption-text"
219
224
  }
220
225
  },
@@ -346,6 +351,46 @@
346
351
  "provider": "const:buttondown",
347
352
  "heading": "dom:h2,h3"
348
353
  }
354
+ },
355
+ {
356
+ "match": "classic/cookie-notice",
357
+ "component": "consent",
358
+ "props": {
359
+ "message": "dom:#cn-notice-text",
360
+ "acceptLabel": "dom:#cn-accept-cookie",
361
+ "declineLabel": "dom:#cn-refuse-cookie",
362
+ "policyHref": "dom:#cn-more-info@href"
363
+ }
364
+ },
365
+ {
366
+ "match": "classic/complianz",
367
+ "component": "consent",
368
+ "props": {
369
+ "message": "dom:.cmplz-message",
370
+ "acceptLabel": "dom:.cmplz-accept",
371
+ "declineLabel": "dom:.cmplz-deny",
372
+ "policyHref": "dom:.cmplz-link.cookie-statement@href"
373
+ }
374
+ },
375
+ {
376
+ "match": "classic/cookieyes",
377
+ "component": "consent",
378
+ "props": {
379
+ "message": "dom:.cky-notice-des",
380
+ "acceptLabel": "dom:.cky-btn-accept",
381
+ "declineLabel": "dom:.cky-btn-reject",
382
+ "policyHref": "dom:.cky-policy@href"
383
+ }
384
+ },
385
+ {
386
+ "match": "classic/cookiebot",
387
+ "component": "consent",
388
+ "props": {
389
+ "message": "dom:#CybotCookiebotDialogBodyText",
390
+ "acceptLabel": "dom:#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll",
391
+ "declineLabel": "dom:#CybotCookiebotDialogBodyButtonDecline",
392
+ "policyHref": "dom:#CybotCookiebotDialogBodyText a@href"
393
+ }
349
394
  }
350
395
  ]
351
396
  }
package/mapping/divi.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "astro-kit-mapping@1",
3
3
  "builder": "divi",
4
- "version": "4",
4
+ "version": "5",
5
5
  "fallback": "prose",
6
6
  "rules": [
7
7
  {
@@ -48,7 +48,8 @@
48
48
  "title": "dom:.et_pb_module_header",
49
49
  "text": "dom:.et_pb_blurb_description",
50
50
  "href": "dom:.et_pb_module_header a@href",
51
- "image": "img:.et_pb_main_blurb_image img"
51
+ "image": "img:.et_pb_main_blurb_image img@src",
52
+ "imageAlt": "img:.et_pb_main_blurb_image img@alt"
52
53
  }
53
54
  },
54
55
  {
@@ -60,7 +61,8 @@
60
61
  "title": "dom:.et_pb_module_header",
61
62
  "eyebrow": "dom:.et_pb_member_position",
62
63
  "text": "dom:.et_pb_team_member_description",
63
- "image": "img:.et_pb_team_member_image img"
64
+ "image": "img:.et_pb_team_member_image img@src",
65
+ "imageAlt": "img:.et_pb_team_member_image img@alt"
64
66
  }
65
67
  },
66
68
  {
@@ -129,8 +131,10 @@
129
131
  "item": {
130
132
  "title": "dom:.et_pb_slide_title",
131
133
  "text": "dom:.et_pb_slide_content",
132
- "action": "link:.et_pb_more_button",
133
- "image": "img:.et_pb_slide_image img"
134
+ "ctaLabel": "dom:.et_pb_more_button",
135
+ "ctaHref": "dom:.et_pb_more_button@href",
136
+ "image": "img:.et_pb_slide_image img@src",
137
+ "imageAlt": "img:.et_pb_slide_image img@alt"
134
138
  }
135
139
  },
136
140
  {
@@ -148,8 +152,10 @@
148
152
  "item": {
149
153
  "title": "dom:.et_pb_slide_title",
150
154
  "text": "dom:.et_pb_slide_content",
151
- "action": "link:.et_pb_more_button",
152
- "image": "img:.et_pb_slide_image img"
155
+ "ctaLabel": "dom:.et_pb_more_button",
156
+ "ctaHref": "dom:.et_pb_more_button@href",
157
+ "image": "img:.et_pb_slide_image img@src",
158
+ "imageAlt": "img:.et_pb_slide_image img@alt"
153
159
  }
154
160
  },
155
161
  {
@@ -253,7 +259,8 @@
253
259
  "quote": "dom:.et_pb_testimonial_content",
254
260
  "name": "dom:.et_pb_testimonial_author",
255
261
  "role": "dom:.et_pb_testimonial_position",
256
- "avatar": "img:.et_pb_testimonial_portrait img"
262
+ "avatar": "img:.et_pb_testimonial_portrait img@src",
263
+ "avatarAlt": "img:.et_pb_testimonial_portrait img@alt"
257
264
  }
258
265
  },
259
266
  {
@@ -265,7 +272,8 @@
265
272
  "into": "items",
266
273
  "each": ".et_pb_gallery_item",
267
274
  "item": {
268
- "image": "img:img",
275
+ "image": "img:img@src",
276
+ "imageAlt": "img:img@alt",
269
277
  "caption": "dom:.et_pb_gallery_caption"
270
278
  }
271
279
  },
@@ -312,5 +320,347 @@
312
320
  "showLabel": "ui:embed.show"
313
321
  }
314
322
  }
323
+ ],
324
+ "sections": [
325
+ {
326
+ "id": "hero.fullwidth-header",
327
+ "component": "hero",
328
+ "variant": {
329
+ "layout": "centered"
330
+ },
331
+ "when": {
332
+ "position": "first"
333
+ },
334
+ "slots": {
335
+ "header": {
336
+ "match": "divi/et_pb_fullwidth_header",
337
+ "min": 1,
338
+ "max": 1
339
+ }
340
+ },
341
+ "props": {
342
+ "heading": "@header attr:title || @header dom:h1",
343
+ "lead": "@header attr:subhead || @header dom:.et_pb_header_content_wrapper"
344
+ },
345
+ "into": "actions",
346
+ "each": "@header .et_pb_button",
347
+ "item": {
348
+ "label": "dom:",
349
+ "href": "dom:@href"
350
+ }
351
+ },
352
+ {
353
+ "id": "split.image-text",
354
+ "component": "split",
355
+ "when": {
356
+ "columns": 2
357
+ },
358
+ "slots": {
359
+ "media": {
360
+ "match": "divi/et_pb_image",
361
+ "min": 1,
362
+ "max": 1
363
+ },
364
+ "text": {
365
+ "match": "divi/et_pb_text",
366
+ "max": 1,
367
+ "min": 1
368
+ },
369
+ "button": {
370
+ "match": "divi/et_pb_button",
371
+ "max": 2
372
+ }
373
+ },
374
+ "props": {
375
+ "heading": "@text dom:h1,h2,h3,h4",
376
+ "body": "@text html:",
377
+ "image": "@media img:img"
378
+ },
379
+ "into": "actions",
380
+ "each": "@button",
381
+ "item": {
382
+ "label": "attr:button_text || dom:",
383
+ "href": "attr:button_url || dom:@href"
384
+ }
385
+ },
386
+ {
387
+ "id": "card-grid.blurb",
388
+ "component": "card-grid",
389
+ "slots": {
390
+ "intro": {
391
+ "match": "divi/et_pb_text",
392
+ "max": 1
393
+ },
394
+ "box": {
395
+ "match": "divi/et_pb_blurb",
396
+ "min": 2
397
+ }
398
+ },
399
+ "props": {
400
+ "title": "@intro dom:h1,h2,h3,h4",
401
+ "intro": "@intro dom:p"
402
+ },
403
+ "into": "items",
404
+ "each": "@box",
405
+ "item": {
406
+ "title": "attr:title || dom:.et_pb_module_header",
407
+ "text": "dom:.et_pb_blurb_description",
408
+ "href": "attr:url || dom:.et_pb_module_header a@href",
409
+ "image": "attr:image || img:.et_pb_main_blurb_image img@src",
410
+ "imageAlt": "attr:alt || img:.et_pb_main_blurb_image img@alt"
411
+ }
412
+ },
413
+ {
414
+ "id": "stats.counter",
415
+ "component": "stats",
416
+ "slots": {
417
+ "intro": {
418
+ "match": "divi/et_pb_text",
419
+ "max": 1
420
+ },
421
+ "counter": {
422
+ "match": [
423
+ "divi/et_pb_number_counter",
424
+ "divi/et_pb_circle_counter"
425
+ ],
426
+ "min": 2
427
+ }
428
+ },
429
+ "props": {
430
+ "heading": "@intro dom:h1,h2,h3,h4",
431
+ "intro": "@intro dom:p"
432
+ },
433
+ "into": "items",
434
+ "each": "@counter",
435
+ "item": {
436
+ "value": "attr:number || dom:.percent-value",
437
+ "label": "attr:title || dom:h3",
438
+ "suffix": "dom:.percent-sign"
439
+ }
440
+ },
441
+ {
442
+ "id": "pricing.tables",
443
+ "component": "pricing",
444
+ "slots": {
445
+ "intro": {
446
+ "match": "divi/et_pb_text",
447
+ "max": 1
448
+ },
449
+ "tables": {
450
+ "match": "divi/et_pb_pricing_tables",
451
+ "min": 1,
452
+ "max": 1
453
+ }
454
+ },
455
+ "props": {
456
+ "heading": "@intro dom:h1,h2,h3,h4",
457
+ "intro": "@intro dom:p"
458
+ },
459
+ "into": "plans",
460
+ "each": "@tables .et_pb_pricing_table",
461
+ "item": {
462
+ "name": "dom:.et_pb_pricing_title",
463
+ "price": "dom:.et_pb_sum",
464
+ "period": "dom:.et_pb_frequency",
465
+ "description": "dom:.et_pb_best_value",
466
+ "features": "html:.et_pb_pricing_content",
467
+ "ctaLabel": "dom:a.et_pb_pricing_table_button",
468
+ "ctaHref": "dom:a.et_pb_pricing_table_button@href"
469
+ }
470
+ },
471
+ {
472
+ "id": "team.members",
473
+ "component": "team",
474
+ "slots": {
475
+ "intro": {
476
+ "match": "divi/et_pb_text",
477
+ "max": 1
478
+ },
479
+ "member": {
480
+ "match": "divi/et_pb_team_member",
481
+ "min": 1
482
+ }
483
+ },
484
+ "props": {
485
+ "heading": "@intro dom:h1,h2,h3,h4",
486
+ "intro": "@intro dom:p"
487
+ },
488
+ "into": "items",
489
+ "each": "@member",
490
+ "item": {
491
+ "name": "attr:name || dom:.et_pb_module_header",
492
+ "role": "attr:position || dom:.et_pb_member_position",
493
+ "bio": "dom:.et_pb_team_member_description > :not(.et_pb_module_header, .et_pb_member_position, .et_pb_member_social_links)",
494
+ "image": "attr:image_url || img:.et_pb_team_member_image img@src",
495
+ "imageAlt": "img:.et_pb_team_member_image img@alt"
496
+ }
497
+ },
498
+ {
499
+ "id": "testimonial.quotes",
500
+ "component": "testimonial",
501
+ "slots": {
502
+ "intro": {
503
+ "match": "divi/et_pb_text",
504
+ "max": 1
505
+ },
506
+ "quote": {
507
+ "match": "divi/et_pb_testimonial",
508
+ "min": 1
509
+ }
510
+ },
511
+ "props": {
512
+ "heading": "@intro dom:h1,h2,h3,h4"
513
+ },
514
+ "into": "items",
515
+ "each": "@quote",
516
+ "item": {
517
+ "quote": "dom:.et_pb_testimonial_content",
518
+ "name": "attr:author || dom:.et_pb_testimonial_author",
519
+ "role": "attr:job_title || dom:.et_pb_testimonial_position",
520
+ "avatar": "attr:portrait_url || img:.et_pb_testimonial_portrait img@src",
521
+ "avatarAlt": "img:.et_pb_testimonial_portrait img@alt"
522
+ }
523
+ },
524
+ {
525
+ "id": "faq.accordion",
526
+ "component": "faq",
527
+ "slots": {
528
+ "intro": {
529
+ "match": "divi/et_pb_text",
530
+ "max": 1
531
+ },
532
+ "faq": {
533
+ "match": "divi/et_pb_accordion",
534
+ "min": 1,
535
+ "max": 1
536
+ }
537
+ },
538
+ "props": {
539
+ "heading": "@intro dom:h1,h2,h3,h4"
540
+ },
541
+ "into": "items",
542
+ "each": "@faq .et_pb_accordion_item",
543
+ "item": {
544
+ "question": "dom:.et_pb_toggle_title",
545
+ "answer": "html:.et_pb_toggle_content"
546
+ }
547
+ },
548
+ {
549
+ "id": "faq.toggles",
550
+ "component": "faq",
551
+ "slots": {
552
+ "intro": {
553
+ "match": "divi/et_pb_text",
554
+ "max": 1
555
+ },
556
+ "faq": {
557
+ "match": "divi/et_pb_toggle",
558
+ "min": 2
559
+ }
560
+ },
561
+ "props": {
562
+ "heading": "@intro dom:h1,h2,h3,h4",
563
+ "exclusive": "const:false"
564
+ },
565
+ "into": "items",
566
+ "each": "@faq",
567
+ "item": {
568
+ "question": "attr:title || dom:.et_pb_toggle_title",
569
+ "answer": "html:.et_pb_toggle_content"
570
+ }
571
+ },
572
+ {
573
+ "id": "gallery.grid",
574
+ "component": "gallery",
575
+ "slots": {
576
+ "intro": {
577
+ "match": "divi/et_pb_text",
578
+ "max": 1
579
+ },
580
+ "images": {
581
+ "match": "divi/et_pb_gallery",
582
+ "min": 1,
583
+ "max": 1
584
+ }
585
+ },
586
+ "props": {
587
+ "heading": "@intro dom:h1,h2,h3,h4",
588
+ "closeLabel": "ui:gallery.close"
589
+ },
590
+ "into": "items",
591
+ "each": "@images .et_pb_gallery_item",
592
+ "item": {
593
+ "image": "img:img@src",
594
+ "imageAlt": "img:img@alt",
595
+ "caption": "dom:.et_pb_gallery_caption"
596
+ }
597
+ },
598
+ {
599
+ "id": "contact-form.form",
600
+ "component": "contact-form",
601
+ "slots": {
602
+ "intro": {
603
+ "match": "divi/et_pb_text",
604
+ "max": 1
605
+ },
606
+ "form": {
607
+ "match": "divi/et_pb_contact_form",
608
+ "min": 1,
609
+ "max": 1
610
+ }
611
+ },
612
+ "props": {
613
+ "model": "const:contact",
614
+ "heading": "@form attr:title || @intro dom:h1,h2,h3,h4",
615
+ "intro": "@intro dom:p"
616
+ }
617
+ },
618
+ {
619
+ "id": "cta.module",
620
+ "component": "cta",
621
+ "slots": {
622
+ "cta": {
623
+ "match": "divi/et_pb_cta",
624
+ "min": 1,
625
+ "max": 1
626
+ }
627
+ },
628
+ "props": {
629
+ "heading": "@cta attr:title || @cta dom:.et_pb_module_header",
630
+ "body": "@cta dom:.et_pb_promo_description > :not(.et_pb_module_header)"
631
+ },
632
+ "into": "actions",
633
+ "each": "@cta .et_pb_promo_button",
634
+ "item": {
635
+ "label": "dom:",
636
+ "href": "dom:@href"
637
+ }
638
+ },
639
+ {
640
+ "id": "cta.text-button",
641
+ "component": "cta",
642
+ "slots": {
643
+ "text": {
644
+ "match": "divi/et_pb_text",
645
+ "max": 1,
646
+ "min": 1
647
+ },
648
+ "button": {
649
+ "match": "divi/et_pb_button",
650
+ "min": 1,
651
+ "max": 2
652
+ }
653
+ },
654
+ "props": {
655
+ "heading": "@text dom:h1,h2,h3,h4",
656
+ "body": "@text dom:p"
657
+ },
658
+ "into": "actions",
659
+ "each": "@button",
660
+ "item": {
661
+ "label": "attr:button_text || dom:",
662
+ "href": "attr:button_url || dom:@href"
663
+ }
664
+ }
315
665
  ]
316
666
  }