@nok-integration/storefront-react 0.19.7 → 0.19.8

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/dist/index.d.ts CHANGED
@@ -3693,11 +3693,20 @@ declare const OrderDetail: z.ZodObject<{
3693
3693
  currency: string;
3694
3694
  }>;
3695
3695
  /**
3696
- * The undiscounted per-unit price, echoed from intake. Display only.
3696
+ * The undiscounted per-unit price. Display only.
3697
3697
  *
3698
- * Drawn as a struck-through price with a saving badge beside what was paid. Absent
3699
- * means the line was sold at full price, which is the ordinary case; see `OrderLine`
3700
- * for why this is DAZN's figure and not our catalogue's.
3698
+ * Drawn as a struck-through price with a saving badge beside what was paid. Absent means
3699
+ * the line was sold at full price.
3700
+ *
3701
+ * **Two possible sources, and the screen cannot tell them apart.** It is the
3702
+ * `compare_at_unit_price` stated on the order where one was sent, and the catalogue's
3703
+ * current compare-at for the order's currency where it was not. The second exists
3704
+ * because the first is not yet populated, and it carries a caveat the first does not: a
3705
+ * catalogue price moves with merchandising, so this figure can differ between two reads
3706
+ * of the same order. What was *paid* never moves.
3707
+ *
3708
+ * Always strictly greater than `unit_price` when present — a compare-at at or below what
3709
+ * was paid is dropped rather than drawn as a saving of zero or less.
3701
3710
  */
3702
3711
  compare_at_unit_price: z.ZodOptional<z.ZodObject<{
3703
3712
  amount: z.ZodNumber;
package/dist/index.mjs CHANGED
@@ -6473,22 +6473,23 @@ function renderValue(key, pricing, format, t) {
6473
6473
  }
6474
6474
  return key === "discount" ? null : format(pricing[key]);
6475
6475
  }
6476
- const lines$1 = "_lines_7mr8w_19";
6477
- const line$2 = "_line_7mr8w_19";
6478
- const thumb$2 = "_thumb_7mr8w_34";
6479
- const image$9 = "_image_7mr8w_44";
6480
- const placeholder$8 = "_placeholder_7mr8w_48";
6481
- const lineBody = "_lineBody_7mr8w_53";
6482
- const lineText = "_lineText_7mr8w_62";
6483
- const lineTitle = "_lineTitle_7mr8w_72";
6484
- const lineMeta = "_lineMeta_7mr8w_91";
6485
- const linePrice = "_linePrice_7mr8w_106";
6486
- const paid$3 = "_paid_7mr8w_118";
6487
- const was$4 = "_was_7mr8w_124";
6488
- const card$4 = "_card_7mr8w_144";
6489
- const cardTitle = "_cardTitle_7mr8w_152";
6490
- const cardBody = "_cardBody_7mr8w_164";
6491
- const summaryCard = "_summaryCard_7mr8w_136";
6476
+ const lines$1 = "_lines_1vmnm_19";
6477
+ const line$2 = "_line_1vmnm_19";
6478
+ const thumb$2 = "_thumb_1vmnm_34";
6479
+ const image$9 = "_image_1vmnm_44";
6480
+ const placeholder$8 = "_placeholder_1vmnm_48";
6481
+ const lineBody = "_lineBody_1vmnm_53";
6482
+ const lineText = "_lineText_1vmnm_62";
6483
+ const lineTitle = "_lineTitle_1vmnm_72";
6484
+ const lineMeta = "_lineMeta_1vmnm_104";
6485
+ const detail$1 = "_detail_1vmnm_101";
6486
+ const linePrice = "_linePrice_1vmnm_125";
6487
+ const paid$3 = "_paid_1vmnm_137";
6488
+ const was$4 = "_was_1vmnm_150";
6489
+ const card$4 = "_card_1vmnm_173";
6490
+ const cardTitle = "_cardTitle_1vmnm_181";
6491
+ const cardBody = "_cardBody_1vmnm_193";
6492
+ const summaryCard = "_summaryCard_1vmnm_165";
6492
6493
  const styles$D = {
6493
6494
  lines: lines$1,
6494
6495
  line: line$2,
@@ -6499,6 +6500,7 @@ const styles$D = {
6499
6500
  lineText,
6500
6501
  lineTitle,
6501
6502
  lineMeta,
6503
+ detail: detail$1,
6502
6504
  linePrice,
6503
6505
  paid: paid$3,
6504
6506
  was: was$4,
@@ -6550,6 +6552,7 @@ function OrderLine({ item: item2 }) {
6550
6552
  }), jsxs("span", {
6551
6553
  className: styles$D.lineMeta,
6552
6554
  children: [details2.map((detail2) => jsx("span", {
6555
+ className: styles$D.detail,
6553
6556
  children: detail2
6554
6557
  }, detail2)), pct !== void 0 && jsx(SaleBadge, {
6555
6558
  pct
@@ -6473,22 +6473,23 @@ function renderValue(key, pricing, format, t) {
6473
6473
  }
6474
6474
  return key === "discount" ? null : format(pricing[key]);
6475
6475
  }
6476
- const lines$1 = "_lines_7mr8w_19";
6477
- const line$2 = "_line_7mr8w_19";
6478
- const thumb$2 = "_thumb_7mr8w_34";
6479
- const image$9 = "_image_7mr8w_44";
6480
- const placeholder$8 = "_placeholder_7mr8w_48";
6481
- const lineBody = "_lineBody_7mr8w_53";
6482
- const lineText = "_lineText_7mr8w_62";
6483
- const lineTitle = "_lineTitle_7mr8w_72";
6484
- const lineMeta = "_lineMeta_7mr8w_91";
6485
- const linePrice = "_linePrice_7mr8w_106";
6486
- const paid$3 = "_paid_7mr8w_118";
6487
- const was$4 = "_was_7mr8w_124";
6488
- const card$4 = "_card_7mr8w_144";
6489
- const cardTitle = "_cardTitle_7mr8w_152";
6490
- const cardBody = "_cardBody_7mr8w_164";
6491
- const summaryCard = "_summaryCard_7mr8w_136";
6476
+ const lines$1 = "_lines_1vmnm_19";
6477
+ const line$2 = "_line_1vmnm_19";
6478
+ const thumb$2 = "_thumb_1vmnm_34";
6479
+ const image$9 = "_image_1vmnm_44";
6480
+ const placeholder$8 = "_placeholder_1vmnm_48";
6481
+ const lineBody = "_lineBody_1vmnm_53";
6482
+ const lineText = "_lineText_1vmnm_62";
6483
+ const lineTitle = "_lineTitle_1vmnm_72";
6484
+ const lineMeta = "_lineMeta_1vmnm_104";
6485
+ const detail$1 = "_detail_1vmnm_101";
6486
+ const linePrice = "_linePrice_1vmnm_125";
6487
+ const paid$3 = "_paid_1vmnm_137";
6488
+ const was$4 = "_was_1vmnm_150";
6489
+ const card$4 = "_card_1vmnm_173";
6490
+ const cardTitle = "_cardTitle_1vmnm_181";
6491
+ const cardBody = "_cardBody_1vmnm_193";
6492
+ const summaryCard = "_summaryCard_1vmnm_165";
6492
6493
  const styles$D = {
6493
6494
  lines: lines$1,
6494
6495
  line: line$2,
@@ -6499,6 +6500,7 @@ const styles$D = {
6499
6500
  lineText,
6500
6501
  lineTitle,
6501
6502
  lineMeta,
6503
+ detail: detail$1,
6502
6504
  linePrice,
6503
6505
  paid: paid$3,
6504
6506
  was: was$4,
@@ -6550,6 +6552,7 @@ function OrderLine({ item: item2 }) {
6550
6552
  }), jsxs("span", {
6551
6553
  className: styles$D.lineMeta,
6552
6554
  children: [details2.map((detail2) => jsx("span", {
6555
+ className: styles$D.detail,
6553
6556
  children: detail2
6554
6557
  }, detail2)), pct !== void 0 && jsx(SaleBadge, {
6555
6558
  pct
@@ -683,7 +683,7 @@
683
683
  ._row_1hsxt_16._discount_1hsxt_69 dd {
684
684
  color: var(--color-state-text-success);
685
685
  }
686
- ._lines_7mr8w_19 {
686
+ ._lines_1vmnm_19 {
687
687
  list-style: none;
688
688
  margin: 0;
689
689
  padding: 0;
@@ -691,12 +691,12 @@
691
691
  flex-direction: column;
692
692
  gap: var(--space-16);
693
693
  }
694
- ._line_7mr8w_19 {
694
+ ._line_1vmnm_19 {
695
695
  display: flex;
696
696
  align-items: center;
697
697
  gap: var(--space-12);
698
698
  }
699
- ._thumb_7mr8w_34 {
699
+ ._thumb_1vmnm_34 {
700
700
  position: relative;
701
701
  flex-shrink: 0;
702
702
  width: 48px;
@@ -705,14 +705,14 @@
705
705
  overflow: hidden;
706
706
  background: var(--color-surface-soft);
707
707
  }
708
- ._image_7mr8w_44 {
708
+ ._image_1vmnm_44 {
709
709
  object-fit: cover;
710
710
  }
711
- ._placeholder_7mr8w_48 {
711
+ ._placeholder_1vmnm_48 {
712
712
  width: 100%;
713
713
  height: 100%;
714
714
  }
715
- ._lineBody_7mr8w_53 {
715
+ ._lineBody_1vmnm_53 {
716
716
  display: flex;
717
717
  align-items: flex-start;
718
718
  justify-content: space-between;
@@ -720,14 +720,14 @@
720
720
  flex: 1 1 0;
721
721
  min-width: 0;
722
722
  }
723
- ._lineText_7mr8w_62 {
723
+ ._lineText_1vmnm_62 {
724
724
  display: flex;
725
725
  flex-direction: column;
726
726
  gap: var(--space-12);
727
727
  flex: 1 1 0;
728
728
  min-width: 0;
729
729
  }
730
- ._lineTitle_7mr8w_72 {
730
+ ._lineTitle_1vmnm_72 {
731
731
  margin: -6px 0;
732
732
  padding: 6px 0;
733
733
  font-size: var(--type-trimmed-sm-size);
@@ -737,16 +737,20 @@
737
737
  overflow: hidden;
738
738
  text-overflow: ellipsis;
739
739
  }
740
- ._lineMeta_7mr8w_91 {
740
+ ._lineMeta_1vmnm_104 {
741
741
  display: flex;
742
742
  align-items: center;
743
- gap: var(--space-12);
743
+ flex-wrap: wrap;
744
+ gap: var(--space-6);
744
745
  min-width: 0;
745
746
  font-size: var(--type-trimmed-sm-size);
746
747
  line-height: 11px;
747
748
  color: var(--color-text-subtle);
748
749
  }
749
- ._linePrice_7mr8w_106 {
750
+ ._detail_1vmnm_101 {
751
+ white-space: nowrap;
752
+ }
753
+ ._linePrice_1vmnm_125 {
750
754
  display: flex;
751
755
  flex-direction: column;
752
756
  align-items: flex-end;
@@ -755,26 +759,29 @@
755
759
  white-space: nowrap;
756
760
  font-variant-numeric: tabular-nums;
757
761
  }
758
- ._paid_7mr8w_118 {
762
+ ._paid_1vmnm_137 {
759
763
  font-size: var(--type-trimmed-md-size);
760
764
  line-height: 11px;
761
765
  font-weight: var(--font-weight-bold);
762
766
  }
763
- ._was_7mr8w_124 {
767
+ ._was_1vmnm_150 {
768
+ display: flex;
769
+ align-items: center;
770
+ justify-content: flex-end;
764
771
  font-size: var(--type-trimmed-sm-size);
765
772
  line-height: 10px;
766
773
  font-weight: var(--font-weight-regular);
767
774
  color: var(--color-text-disabled);
768
775
  text-decoration: line-through;
769
776
  }
770
- ._card_7mr8w_144 {
777
+ ._card_1vmnm_173 {
771
778
  display: flex;
772
779
  flex-direction: column;
773
780
  box-shadow: inset 0 0 0 1px var(--color-border-default);
774
781
  border-radius: var(--radius-18);
775
782
  overflow: hidden;
776
783
  }
777
- ._cardTitle_7mr8w_152 {
784
+ ._cardTitle_1vmnm_181 {
778
785
  display: flex;
779
786
  align-items: center;
780
787
  margin: 0;
@@ -785,16 +792,16 @@
785
792
  line-height: 1.38;
786
793
  font-weight: var(--font-weight-bold);
787
794
  }
788
- ._cardBody_7mr8w_164 {
795
+ ._cardBody_1vmnm_193 {
789
796
  margin: 0;
790
797
  padding: var(--space-16);
791
798
  font-size: var(--type-trimmed-sm-size);
792
799
  line-height: 1.5;
793
800
  }
794
- ._summaryCard_7mr8w_136 {
801
+ ._summaryCard_1vmnm_165 {
795
802
  background: var(--color-surface-soft);
796
803
  }
797
- ._summaryCard_7mr8w_136 > :last-child {
804
+ ._summaryCard_1vmnm_165 > :last-child {
798
805
  padding: 0 var(--space-16);
799
806
  }
800
807
  ._header_1f3nh_7 {
package/dist/styles.css CHANGED
@@ -683,7 +683,7 @@
683
683
  ._row_1hsxt_16._discount_1hsxt_69 dd {
684
684
  color: var(--color-state-text-success);
685
685
  }
686
- ._lines_7mr8w_19 {
686
+ ._lines_1vmnm_19 {
687
687
  list-style: none;
688
688
  margin: 0;
689
689
  padding: 0;
@@ -691,12 +691,12 @@
691
691
  flex-direction: column;
692
692
  gap: var(--space-16);
693
693
  }
694
- ._line_7mr8w_19 {
694
+ ._line_1vmnm_19 {
695
695
  display: flex;
696
696
  align-items: center;
697
697
  gap: var(--space-12);
698
698
  }
699
- ._thumb_7mr8w_34 {
699
+ ._thumb_1vmnm_34 {
700
700
  position: relative;
701
701
  flex-shrink: 0;
702
702
  width: 48px;
@@ -705,14 +705,14 @@
705
705
  overflow: hidden;
706
706
  background: var(--color-surface-soft);
707
707
  }
708
- ._image_7mr8w_44 {
708
+ ._image_1vmnm_44 {
709
709
  object-fit: cover;
710
710
  }
711
- ._placeholder_7mr8w_48 {
711
+ ._placeholder_1vmnm_48 {
712
712
  width: 100%;
713
713
  height: 100%;
714
714
  }
715
- ._lineBody_7mr8w_53 {
715
+ ._lineBody_1vmnm_53 {
716
716
  display: flex;
717
717
  align-items: flex-start;
718
718
  justify-content: space-between;
@@ -720,14 +720,14 @@
720
720
  flex: 1 1 0;
721
721
  min-width: 0;
722
722
  }
723
- ._lineText_7mr8w_62 {
723
+ ._lineText_1vmnm_62 {
724
724
  display: flex;
725
725
  flex-direction: column;
726
726
  gap: var(--space-12);
727
727
  flex: 1 1 0;
728
728
  min-width: 0;
729
729
  }
730
- ._lineTitle_7mr8w_72 {
730
+ ._lineTitle_1vmnm_72 {
731
731
  margin: -6px 0;
732
732
  padding: 6px 0;
733
733
  font-size: var(--type-trimmed-sm-size);
@@ -737,16 +737,20 @@
737
737
  overflow: hidden;
738
738
  text-overflow: ellipsis;
739
739
  }
740
- ._lineMeta_7mr8w_91 {
740
+ ._lineMeta_1vmnm_104 {
741
741
  display: flex;
742
742
  align-items: center;
743
- gap: var(--space-12);
743
+ flex-wrap: wrap;
744
+ gap: var(--space-6);
744
745
  min-width: 0;
745
746
  font-size: var(--type-trimmed-sm-size);
746
747
  line-height: 11px;
747
748
  color: var(--color-text-subtle);
748
749
  }
749
- ._linePrice_7mr8w_106 {
750
+ ._detail_1vmnm_101 {
751
+ white-space: nowrap;
752
+ }
753
+ ._linePrice_1vmnm_125 {
750
754
  display: flex;
751
755
  flex-direction: column;
752
756
  align-items: flex-end;
@@ -755,26 +759,29 @@
755
759
  white-space: nowrap;
756
760
  font-variant-numeric: tabular-nums;
757
761
  }
758
- ._paid_7mr8w_118 {
762
+ ._paid_1vmnm_137 {
759
763
  font-size: var(--type-trimmed-md-size);
760
764
  line-height: 11px;
761
765
  font-weight: var(--font-weight-bold);
762
766
  }
763
- ._was_7mr8w_124 {
767
+ ._was_1vmnm_150 {
768
+ display: flex;
769
+ align-items: center;
770
+ justify-content: flex-end;
764
771
  font-size: var(--type-trimmed-sm-size);
765
772
  line-height: 10px;
766
773
  font-weight: var(--font-weight-regular);
767
774
  color: var(--color-text-disabled);
768
775
  text-decoration: line-through;
769
776
  }
770
- ._card_7mr8w_144 {
777
+ ._card_1vmnm_173 {
771
778
  display: flex;
772
779
  flex-direction: column;
773
780
  box-shadow: inset 0 0 0 1px var(--color-border-default);
774
781
  border-radius: var(--radius-18);
775
782
  overflow: hidden;
776
783
  }
777
- ._cardTitle_7mr8w_152 {
784
+ ._cardTitle_1vmnm_181 {
778
785
  display: flex;
779
786
  align-items: center;
780
787
  margin: 0;
@@ -785,16 +792,16 @@
785
792
  line-height: 1.38;
786
793
  font-weight: var(--font-weight-bold);
787
794
  }
788
- ._cardBody_7mr8w_164 {
795
+ ._cardBody_1vmnm_193 {
789
796
  margin: 0;
790
797
  padding: var(--space-16);
791
798
  font-size: var(--type-trimmed-sm-size);
792
799
  line-height: 1.5;
793
800
  }
794
- ._summaryCard_7mr8w_136 {
801
+ ._summaryCard_1vmnm_165 {
795
802
  background: var(--color-surface-soft);
796
803
  }
797
- ._summaryCard_7mr8w_136 > :last-child {
804
+ ._summaryCard_1vmnm_165 > :last-child {
798
805
  padding: 0 var(--space-16);
799
806
  }
800
807
  ._header_1f3nh_7 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.19.7",
3
+ "version": "0.19.8",
4
4
  "description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {