@htmlbricks/hb-checkout 0.67.1 → 0.68.2

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.
package/manifest.json CHANGED
@@ -422,13 +422,18 @@
422
422
  },
423
423
  {
424
424
  "name": "subtitle"
425
+ },
426
+ {
427
+ "name": "payment_terms_note",
428
+ "description": "Wrapper around the `payment_terms` slot (default notice + border). Style with `::part(payment_terms_note)`."
425
429
  }
426
430
  ]
427
431
  },
428
432
  "contributors": [],
429
433
  "htmlSlots": [
430
434
  {
431
- "name": "payment_terms"
435
+ "name": "payment_terms",
436
+ "description": "Optional legal / terms copy. Default: short line with a link-style control for terms and conditions."
432
437
  },
433
438
  {
434
439
  "name": "payment_completed"
@@ -444,6 +449,7 @@
444
449
  "examples": [
445
450
  {
446
451
  "name": "default",
452
+ "description": "Two shipping options and PayPal gateway.",
447
453
  "data": {
448
454
  "shipments": [
449
455
  {
@@ -478,9 +484,106 @@
478
484
  "type": "buy"
479
485
  }
480
486
  }
487
+ },
488
+ {
489
+ "name": "singleShipmentGoogle",
490
+ "description": "One delivery line and Google Pay as the only gateway.",
491
+ "data": {
492
+ "shipments": [
493
+ {
494
+ "price": 15,
495
+ "currency": "€",
496
+ "arriveDate": "2022-01-22T10:00:00.000Z",
497
+ "available": true,
498
+ "label": "Standard",
499
+ "id": "std"
500
+ }
501
+ ],
502
+ "gateways": [
503
+ {
504
+ "id": "google",
505
+ "label": "Google Pay"
506
+ }
507
+ ],
508
+ "payment": {
509
+ "merchantName": "testmerchant",
510
+ "countryCode": "it",
511
+ "currencyCode": "EUR",
512
+ "total": 45,
513
+ "type": "buy"
514
+ }
515
+ }
516
+ },
517
+ {
518
+ "name": "withBillingProfile",
519
+ "description": "Prefilled customer block for the embedded profile form.",
520
+ "data": {
521
+ "shipments": [
522
+ {
523
+ "price": 10,
524
+ "currency": "€",
525
+ "arriveDate": "2022-01-20T08:03:57.562Z",
526
+ "available": true,
527
+ "label": "zio barca",
528
+ "id": "ziobarca"
529
+ }
530
+ ],
531
+ "gateways": [
532
+ {
533
+ "id": "paypal",
534
+ "label": "bbbb",
535
+ "paypalid": "test"
536
+ }
537
+ ],
538
+ "payment": {
539
+ "merchantName": "testmerchant",
540
+ "countryCode": "it",
541
+ "currencyCode": "EUR",
542
+ "total": 45,
543
+ "type": "buy"
544
+ },
545
+ "user": {
546
+ "fullName": "Jane Example",
547
+ "addressWithNumber": "Via Roma 1",
548
+ "city": "Milan",
549
+ "zip": "20100",
550
+ "nationality": "IT"
551
+ }
552
+ }
553
+ },
554
+ {
555
+ "name": "completed",
556
+ "description": "Read-only confirmation state after a successful payment.",
557
+ "data": {
558
+ "shipments": [
559
+ {
560
+ "price": 10,
561
+ "currency": "€",
562
+ "arriveDate": "2022-01-20T08:03:57.562Z",
563
+ "available": true,
564
+ "label": "zio barca",
565
+ "id": "ziobarca"
566
+ }
567
+ ],
568
+ "gateways": [
569
+ {
570
+ "id": "paypal",
571
+ "label": "bbbb",
572
+ "paypalid": "test"
573
+ }
574
+ ],
575
+ "payment": {
576
+ "merchantName": "testmerchant",
577
+ "countryCode": "it",
578
+ "currencyCode": "EUR",
579
+ "total": 45,
580
+ "type": "buy"
581
+ },
582
+ "completed": "yes"
583
+ }
481
584
  }
482
585
  ],
483
- "iifeIntegrity": "sha384-2HUBxxzDYU6jeMCTr9aQ+i8QmnvL/nlUDfq/pXH2vgW2r7tONAr7eEys+CYQvTKp",
586
+ "iifeIntegrity": "sha384-2QK+KZyoqMgPA8ZHT25az/Z1xw0oBO/R5gaapvGzdBNEUzNifUEa0bxQYsSlGrVf",
484
587
  "dependencies": [
485
588
  {
486
589
  "name": "hb-form",
@@ -633,5 +736,5 @@
633
736
  "size": {},
634
737
  "iifePath": "main.iife.js",
635
738
  "repoName": "@htmlbricks/hb-checkout",
636
- "version": "0.67.1"
739
+ "version": "0.68.2"
637
740
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-checkout",
3
- "version": "0.67.1",
3
+ "version": "0.68.2",
4
4
  "contributors": [],
5
5
  "description": "End-to-end checkout flow: editable billing/shipping user profile (`hb-form`), shipment method choice, optional card form, Google Pay (`@google-pay/button-element`), and PayPal via `hb-payment-paypal` according to `gateways` and `payment` JSON. Parses string props into objects, merges card networks defaults, and tracks `completed` to switch between editable steps and a read-only confirmation summary with events for payment and form submissions.",
6
6
  "licenses": [