@shoppexio/storefront-react 0.3.0 → 0.4.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 (36) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/account.css +4 -8
  3. package/dist/account.js +1257 -778
  4. package/dist/account.js.map +1 -1
  5. package/dist/index.d.ts +92 -8
  6. package/dist/index.js +15 -16
  7. package/dist/index.js.map +1 -1
  8. package/eject/account/account-downloads.ts +89 -1
  9. package/eject/account/account-referrals.ts +70 -1
  10. package/eject/account/account-reseller.ts +6 -140
  11. package/eject/account/downloads.tsx +73 -4
  12. package/eject/account/hosted-page.ts +45 -0
  13. package/eject/account/messages/ar.json +55 -29
  14. package/eject/account/messages/de.json +55 -29
  15. package/eject/account/messages/en.json +55 -29
  16. package/eject/account/messages/es.json +55 -29
  17. package/eject/account/messages/fi.json +55 -29
  18. package/eject/account/messages/fr.json +55 -29
  19. package/eject/account/messages/hi.json +55 -29
  20. package/eject/account/messages/it.json +55 -29
  21. package/eject/account/messages/lt.json +55 -29
  22. package/eject/account/messages/nl.json +55 -29
  23. package/eject/account/messages/pl.json +55 -29
  24. package/eject/account/messages/pt.json +55 -29
  25. package/eject/account/messages/ru.json +55 -29
  26. package/eject/account/messages/tr.json +55 -29
  27. package/eject/account/messages/uk.json +55 -29
  28. package/eject/account/messages/zh.json +55 -29
  29. package/eject/account/orders.tsx +88 -0
  30. package/eject/account/overview.tsx +6 -0
  31. package/eject/account/referrals.tsx +47 -5
  32. package/eject/account/reseller.tsx +59 -306
  33. package/eject/account/rewards.tsx +5 -0
  34. package/eject/account/shared.tsx +39 -1
  35. package/eject/account/subscriptions.tsx +75 -16
  36. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Account: adding funds, changing a card and handing out reseller keys move to
6
+ the hosted buyer pages on the checkout host (`/topup`, `/billing`,
7
+ `/reseller`), behind their own email code. The account links there through
8
+ `hostedPageUrl`; the "Top up" link shows only when the wallet summary's new
9
+ `topups_allowed` is true. Removed: the reseller wholesale basket, its quote
10
+ and the quantity steppers, and `quoteResellerOrder` from the SDK type. An
11
+ ejected account takes `overview.tsx`, `reseller.tsx`, `rewards.tsx`,
12
+ `subscriptions.tsx`, `shared.tsx`, `hosted-page.ts` and the message catalogs
13
+ from `eject/account` again.
14
+ - Referrals: "Your rates" replaces the single "{n}% commission" figure: the
15
+ rate on most products and the products that earn nothing, the cap and the
16
+ minimum per order, and how long a referred buyer stays. A link names its
17
+ commission only when it earns another rate. `SdkCustomerAffiliateSummary`
18
+ carries `rates` (`SdkCustomerAffiliateRates`, null until the main link is
19
+ approved and active); its `custom_rate_product_count` counts the products
20
+ that pay their own rate, so the row says "most products" while any does. An ejected account takes `referrals.tsx`,
21
+ `account-referrals.ts` and the message catalogs from `eject/account` again.
22
+ - Reviews: `ShopReview.reply` carries the shop's reply under a review (null
23
+ when the shop has not replied), from the feed's `reply`; `SdkShopReview`
24
+ declares it.
25
+
3
26
  ## 0.3.0
4
27
 
5
28
  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
  }
@@ -667,6 +663,10 @@
667
663
  word-break: break-all;
668
664
  }
669
665
 
666
+ .sxa\:whitespace-pre-line {
667
+ white-space: pre-line;
668
+ }
669
+
670
670
  .sxa\:whitespace-pre-wrap {
671
671
  white-space: pre-wrap;
672
672
  }
@@ -738,10 +738,6 @@
738
738
  background-color: var(--sx-surface-raised);
739
739
  }
740
740
 
741
- .sxa\:hover\:text-error:hover {
742
- color: var(--sx-error);
743
- }
744
-
745
741
  .sxa\:hover\:opacity-80:hover {
746
742
  opacity: .8;
747
743
  }