@eifi1/ui-kit 0.38.1 → 0.39.1
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/README.md +6 -5
- package/dist/auth/auth-errors.d.ts +8 -3
- package/dist/auth/auth-errors.js +3 -1
- package/dist/auth/auth-errors.js.map +1 -1
- package/dist/billing/billing-labels.d.ts +25 -2
- package/dist/billing/billing-labels.js +11 -2
- package/dist/billing/billing-labels.js.map +1 -1
- package/dist/billing/billing-overview.d.ts +50 -1
- package/dist/billing/checkout-processing.d.ts +15 -3
- package/dist/billing/checkout-processing.js +3 -1
- package/dist/billing/checkout-processing.js.map +1 -1
- package/dist/billing/pay-page.d.ts +55 -18
- package/dist/billing/pay-page.js +44 -10
- package/dist/billing/pay-page.js.map +1 -1
- package/dist/billing/plan-switch.d.ts +79 -0
- package/dist/billing/plan-switch.js +93 -0
- package/dist/billing/plan-switch.js.map +1 -0
- package/dist/bin/eifi1-pay-page.mjs +109 -21
- package/dist/eslint/index.js +1 -1
- package/dist/i18n/german.js +13 -2
- package/dist/i18n/german.js.map +1 -1
- package/dist/i18n/locales/en.js +14 -3
- package/dist/i18n/locales/en.js.map +2 -2
- package/dist/i18n/locales/es.js +13 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.js +13 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hu.js +13 -2
- package/dist/i18n/locales/hu.js.map +1 -1
- package/dist/i18n/locales/it.js +13 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/zh.js +13 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/i18n/review.js +3 -0
- package/dist/i18n/review.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/translation-review.d.ts +11 -0
- package/dist/lib/translation-review.js.map +1 -1
- package/dist/pay/pay.js +102 -40
- package/package.json +1 -1
- package/src/auth/auth-errors.ts +12 -3
- package/src/billing/billing-labels.ts +38 -3
- package/src/billing/billing-overview.ts +53 -1
- package/src/billing/checkout-processing.ts +17 -3
- package/src/billing/pay-page.ts +111 -27
- package/src/billing/plan-switch.tsx +201 -0
- package/src/i18n/german.ts +13 -1
- package/src/i18n/locales/es.ts +12 -1
- package/src/i18n/locales/fr.ts +12 -2
- package/src/i18n/locales/hu.ts +12 -1
- package/src/i18n/locales/it.ts +12 -1
- package/src/i18n/locales/zh.ts +12 -1
- package/src/i18n/review.ts +3 -0
- package/src/index.ts +8 -0
- package/src/lib/translation-review.ts +12 -0
package/dist/i18n/locales/en.js
CHANGED
|
@@ -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.
|
|
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
|