@shoppexio/storefront-react 0.3.0 → 0.5.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 (39) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/account.css +26 -8
  3. package/dist/account.js +3217 -1001
  4. package/dist/account.js.map +1 -1
  5. package/dist/index.d.ts +188 -14
  6. package/dist/index.js +43 -20
  7. package/dist/index.js.map +1 -1
  8. package/eject/account/account-downloads.ts +89 -1
  9. package/eject/account/account-payment-method.ts +1 -0
  10. package/eject/account/account-referrals.ts +70 -1
  11. package/eject/account/account-reseller.ts +6 -140
  12. package/eject/account/account-subscriptions.ts +158 -6
  13. package/eject/account/buyer-invoice-status.ts +100 -0
  14. package/eject/account/downloads.tsx +118 -17
  15. package/eject/account/hosted-page.ts +45 -0
  16. package/eject/account/messages/ar.json +150 -39
  17. package/eject/account/messages/de.json +150 -39
  18. package/eject/account/messages/en.json +150 -39
  19. package/eject/account/messages/es.json +150 -39
  20. package/eject/account/messages/fi.json +150 -39
  21. package/eject/account/messages/fr.json +150 -39
  22. package/eject/account/messages/hi.json +150 -39
  23. package/eject/account/messages/it.json +150 -39
  24. package/eject/account/messages/lt.json +150 -39
  25. package/eject/account/messages/nl.json +150 -39
  26. package/eject/account/messages/pl.json +150 -39
  27. package/eject/account/messages/pt.json +150 -39
  28. package/eject/account/messages/ru.json +150 -39
  29. package/eject/account/messages/tr.json +150 -39
  30. package/eject/account/messages/uk.json +150 -39
  31. package/eject/account/messages/zh.json +150 -39
  32. package/eject/account/orders.tsx +203 -41
  33. package/eject/account/overview.tsx +6 -0
  34. package/eject/account/referrals.tsx +47 -5
  35. package/eject/account/reseller.tsx +62 -308
  36. package/eject/account/rewards.tsx +5 -0
  37. package/eject/account/shared.tsx +60 -4
  38. package/eject/account/subscriptions.tsx +387 -50
  39. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0
4
+
5
+ - Account: every invoice chip (orders, overview, reseller orders, billing history) takes its word and tone from the shared buyer status table (`invoiceStatus.*`, 16 locales); the orders filter offers the table's groups and sends `statusGroup`.
6
+ - Account: billing rows show their kind and plan change and link to the order; the receipt follows the status table; signed-out and failed PDF errors are told apart, with a sign-in action; "nothing to download" and a waiting order in empty downloads.
7
+ - Account: an order waiting for stock shows the waiting notice, its lines read "Waiting", and a paid order's header reads "Paid {date}"; `order()` keeps `paidAt`; PayPal F&F shows as "PayPal F&F", not the gateway key.
8
+ - Subscriptions: "Ends" reads the dashboard's `ends_at` instead of `cancel_at_period_end`; on hold the row says "Pay by {hold_ends_at}" and lists the pause summary.
9
+ - Eject: the ejected account copies each contracts module it imports next to its importers, so an ejected project builds without workspace packages. An ejected account takes the `account` files and message catalogs from `eject/account` again.
10
+
11
+ ## 0.4.0
12
+
13
+ - Account: adding funds, changing a card and handing out reseller keys move to
14
+ the hosted buyer pages on the checkout host (`/topup`, `/billing`,
15
+ `/reseller`), behind their own email code. The account links there through
16
+ `hostedPageUrl`; the "Top up" link shows only when the wallet summary's new
17
+ `topups_allowed` is true. Removed: the reseller wholesale basket, its quote
18
+ and the quantity steppers, and `quoteResellerOrder` from the SDK type. An
19
+ ejected account takes `overview.tsx`, `reseller.tsx`, `rewards.tsx`,
20
+ `subscriptions.tsx`, `shared.tsx`, `hosted-page.ts` and the message catalogs
21
+ from `eject/account` again.
22
+ - Referrals: "Your rates" replaces the single "{n}% commission" figure: the
23
+ rate on most products and the products that earn nothing, the cap and the
24
+ minimum per order, and how long a referred buyer stays. A link names its
25
+ commission only when it earns another rate. `SdkCustomerAffiliateSummary`
26
+ carries `rates` (`SdkCustomerAffiliateRates`, null until the main link is
27
+ approved and active); its `custom_rate_product_count` counts the products
28
+ that pay their own rate, so the row says "most products" while any does. An ejected account takes `referrals.tsx`,
29
+ `account-referrals.ts` and the message catalogs from `eject/account` again.
30
+ - Reviews: `ShopReview.reply` carries the shop's reply under a review (null
31
+ when the shop has not replied), from the feed's `reply`; `SdkShopReview`
32
+ declares it.
33
+
3
34
  ## 0.3.0
4
35
 
5
36
  Added, in the customer account (`@shoppexio/storefront-react/account`). Each
package/dist/account.css CHANGED
@@ -256,10 +256,6 @@
256
256
  width: calc(var(--sxa-spacing) * 16);
257
257
  }
258
258
 
259
- .sxa\:w-24 {
260
- width: calc(var(--sxa-spacing) * 24);
261
- }
262
-
263
259
  .sxa\:w-36 {
264
260
  width: calc(var(--sxa-spacing) * 36);
265
261
  }
@@ -300,6 +296,10 @@
300
296
  resize: none;
301
297
  }
302
298
 
299
+ .sxa\:list-disc {
300
+ list-style-type: disc;
301
+ }
302
+
303
303
  .sxa\:appearance-none {
304
304
  appearance: none;
305
305
  }
@@ -368,6 +368,12 @@
368
368
  gap: calc(var(--sxa-spacing) * 4);
369
369
  }
370
370
 
371
+ :where(.sxa\:space-y-1 > :not(:last-child)) {
372
+ --tw-space-y-reverse: 0;
373
+ margin-block-start: calc(calc(var(--sxa-spacing) * 1) * var(--tw-space-y-reverse));
374
+ margin-block-end: calc(calc(var(--sxa-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
375
+ }
376
+
371
377
  :where(.sxa\:space-y-1\.5 > :not(:last-child)) {
372
378
  --tw-space-y-reverse: 0;
373
379
  margin-block-start: calc(calc(var(--sxa-spacing) * 1.5) * var(--tw-space-y-reverse));
@@ -571,6 +577,10 @@
571
577
  padding-left: calc(var(--sxa-spacing) * 4);
572
578
  }
573
579
 
580
+ .sxa\:pl-5 {
581
+ padding-left: calc(var(--sxa-spacing) * 5);
582
+ }
583
+
574
584
  .sxa\:text-center {
575
585
  text-align: center;
576
586
  }
@@ -667,6 +677,10 @@
667
677
  word-break: break-all;
668
678
  }
669
679
 
680
+ .sxa\:whitespace-pre-line {
681
+ white-space: pre-line;
682
+ }
683
+
670
684
  .sxa\:whitespace-pre-wrap {
671
685
  white-space: pre-wrap;
672
686
  }
@@ -738,10 +752,6 @@
738
752
  background-color: var(--sx-surface-raised);
739
753
  }
740
754
 
741
- .sxa\:hover\:text-error:hover {
742
- color: var(--sx-error);
743
- }
744
-
745
755
  .sxa\:hover\:opacity-80:hover {
746
756
  opacity: .8;
747
757
  }
@@ -809,6 +819,14 @@
809
819
  flex-direction: row;
810
820
  }
811
821
 
822
+ .sxa\:sm\:items-center {
823
+ align-items: center;
824
+ }
825
+
826
+ .sxa\:sm\:gap-3 {
827
+ gap: calc(var(--sxa-spacing) * 3);
828
+ }
829
+
812
830
  .sxa\:sm\:px-8 {
813
831
  padding-inline: calc(var(--sxa-spacing) * 8);
814
832
  }