@eifi1/ui-kit 0.38.1 → 0.39.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 (57) hide show
  1. package/README.md +6 -5
  2. package/dist/auth/auth-errors.d.ts +8 -3
  3. package/dist/auth/auth-errors.js +3 -1
  4. package/dist/auth/auth-errors.js.map +1 -1
  5. package/dist/billing/billing-labels.d.ts +25 -2
  6. package/dist/billing/billing-labels.js +11 -2
  7. package/dist/billing/billing-labels.js.map +1 -1
  8. package/dist/billing/billing-overview.d.ts +50 -1
  9. package/dist/billing/checkout-processing.d.ts +15 -3
  10. package/dist/billing/checkout-processing.js +3 -1
  11. package/dist/billing/checkout-processing.js.map +1 -1
  12. package/dist/billing/pay-page.d.ts +55 -18
  13. package/dist/billing/pay-page.js +44 -10
  14. package/dist/billing/pay-page.js.map +1 -1
  15. package/dist/billing/plan-switch.d.ts +79 -0
  16. package/dist/billing/plan-switch.js +93 -0
  17. package/dist/billing/plan-switch.js.map +1 -0
  18. package/dist/bin/eifi1-pay-page.mjs +109 -21
  19. package/dist/eslint/index.js +1 -1
  20. package/dist/i18n/german.js +13 -2
  21. package/dist/i18n/german.js.map +1 -1
  22. package/dist/i18n/locales/en.js +14 -3
  23. package/dist/i18n/locales/en.js.map +2 -2
  24. package/dist/i18n/locales/es.js +13 -2
  25. package/dist/i18n/locales/es.js.map +1 -1
  26. package/dist/i18n/locales/fr.js +13 -2
  27. package/dist/i18n/locales/fr.js.map +1 -1
  28. package/dist/i18n/locales/hu.js +13 -2
  29. package/dist/i18n/locales/hu.js.map +1 -1
  30. package/dist/i18n/locales/it.js +13 -2
  31. package/dist/i18n/locales/it.js.map +1 -1
  32. package/dist/i18n/locales/zh.js +13 -2
  33. package/dist/i18n/locales/zh.js.map +1 -1
  34. package/dist/i18n/review.js +3 -0
  35. package/dist/i18n/review.js.map +1 -1
  36. package/dist/index.d.ts +6 -1
  37. package/dist/index.js +4 -0
  38. package/dist/index.js.map +1 -1
  39. package/dist/lib/translation-review.d.ts +11 -0
  40. package/dist/lib/translation-review.js.map +1 -1
  41. package/dist/pay/pay.js +102 -40
  42. package/package.json +1 -1
  43. package/src/auth/auth-errors.ts +12 -3
  44. package/src/billing/billing-labels.ts +38 -3
  45. package/src/billing/billing-overview.ts +53 -1
  46. package/src/billing/checkout-processing.ts +17 -3
  47. package/src/billing/pay-page.ts +111 -27
  48. package/src/billing/plan-switch.tsx +201 -0
  49. package/src/i18n/german.ts +13 -1
  50. package/src/i18n/locales/es.ts +12 -1
  51. package/src/i18n/locales/fr.ts +12 -2
  52. package/src/i18n/locales/hu.ts +12 -1
  53. package/src/i18n/locales/it.ts +12 -1
  54. package/src/i18n/locales/zh.ts +12 -1
  55. package/src/i18n/review.ts +3 -0
  56. package/src/index.ts +8 -0
  57. package/src/lib/translation-review.ts +12 -0
@@ -867,7 +867,9 @@ var BILLING_CODES = /* @__PURE__ */ new Set([
867
867
  "billing_provider_unavailable",
868
868
  "billing_not_at_provider",
869
869
  "billing_already_subscribed",
870
- "billing_plan_not_sold"
870
+ "billing_plan_not_sold",
871
+ "billing_not_subscribed",
872
+ "billing_plan_unchanged"
871
873
  ]);
872
874
  var CODES = /* @__PURE__ */ new Set([
873
875
  "invalid_credentials",
@@ -1434,13 +1436,22 @@ var DEFAULT_BILLING_LABELS = {
1434
1436
  payNothing: "There\u2019s no payment to make here. To choose a plan, go back to the app.",
1435
1437
  payFailed: "The checkout couldn\u2019t be opened. Please go back and try again in a moment.",
1436
1438
  payBack: "The checkout was closed. You can go back, or reload this page to open it again.",
1439
+ payDone: "Payment complete. You can close this page.",
1440
+ switchTitle: "Change plan",
1441
+ switchFromTo: (from, to) => `From ${from} to ${to}`,
1442
+ switchChargedNow: "Charged now",
1443
+ switchCredited: "Credited towards your next charges",
1444
+ switchNextCharge: (date) => `Next charge on ${date}`,
1445
+ switchConfirm: "Change plan",
1437
1446
  waitingChanges: (count) => count === 1 ? "1 change waiting for a plan" : `${count} changes waiting for a plan`,
1438
1447
  discardWaiting: "Discard waiting changes",
1439
1448
  notConfigured: "Payments aren't set up yet. Please try again later.",
1440
1449
  disabled: "Subscriptions aren't available here.",
1441
1450
  providerUnavailable: "The payment provider can\u2019t be reached right now. Please try again in a moment.",
1442
- alreadySubscribed: "You already have a subscription. To change your plan, go to \u201CPayment and invoices\u201D.",
1443
- planNotSold: "This plan isn\u2019t offered for that billing period or currency. Please choose another."
1451
+ alreadySubscribed: "You already have a subscription. Change your plan above.",
1452
+ planNotSold: "This plan isn\u2019t offered for that billing period or currency. Please choose another.",
1453
+ notSubscribed: "There\u2019s no running subscription to change. Choose a plan to subscribe.",
1454
+ planUnchanged: "That\u2019s already your plan. Pick another plan or billing period."
1444
1455
  };
1445
1456
 
1446
1457
  // src/admin/plan-change-labels.ts