@eifi1/ui-kit 0.38.0 → 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.
- 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/feedback/feedback-comment-thread.d.ts +13 -6
- package/dist/feedback/feedback-comment-thread.js +10 -2
- package/dist/feedback/feedback-comment-thread.js.map +1 -1
- package/dist/feedback/feedback-labels.d.ts +11 -0
- package/dist/feedback/feedback-labels.js +4 -1
- package/dist/feedback/feedback-labels.js.map +1 -1
- package/dist/feedback/feedback-public-labels.d.ts +3 -0
- package/dist/feedback/feedback-public-labels.js +2 -1
- package/dist/feedback/feedback-public-labels.js.map +1 -1
- package/dist/feedback/feedback-public-list.d.ts +25 -4
- package/dist/feedback/feedback-public-list.js +54 -3
- package/dist/feedback/feedback-public-list.js.map +1 -1
- package/dist/feedback/feedback-public-switch.js +3 -3
- package/dist/feedback/feedback-public-switch.js.map +1 -1
- package/dist/feedback/feedback-record.d.ts +7 -7
- package/dist/feedback/feedback-record.js.map +1 -1
- package/dist/feedback/feedback-replies-context.d.ts +7 -0
- package/dist/feedback/feedback-replies-context.js +7 -0
- package/dist/feedback/feedback-replies-context.js.map +1 -0
- package/dist/feedback/feedback-row-detail.d.ts +12 -3
- package/dist/feedback/feedback-row-detail.js +2 -1
- package/dist/feedback/feedback-row-detail.js.map +1 -1
- package/dist/feedback/feedback-table.js +2 -2
- package/dist/feedback/feedback-table.js.map +1 -1
- package/dist/feedback/feedback-vote-button.d.ts +2 -1
- package/dist/feedback/feedback-vote-button.js.map +1 -1
- package/dist/i18n/german.js +19 -4
- package/dist/i18n/german.js.map +1 -1
- package/dist/i18n/locales/en.js +22 -6
- package/dist/i18n/locales/en.js.map +2 -2
- package/dist/i18n/locales/es.js +19 -4
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.js +19 -4
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hu.js +19 -4
- package/dist/i18n/locales/hu.js.map +1 -1
- package/dist/i18n/locales/it.js +19 -4
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/zh.js +19 -4
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/i18n/review.js +4 -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/feedback/feedback-comment-thread.tsx +29 -7
- package/src/feedback/feedback-labels.ts +14 -0
- package/src/feedback/feedback-public-labels.ts +4 -0
- package/src/feedback/feedback-public-list.tsx +88 -5
- package/src/feedback/feedback-public-switch.tsx +3 -3
- package/src/feedback/feedback-record.ts +7 -7
- package/src/feedback/feedback-replies-context.ts +9 -0
- package/src/feedback/feedback-row-detail.tsx +16 -4
- package/src/feedback/feedback-table.tsx +2 -2
- package/src/feedback/feedback-vote-button.tsx +2 -1
- package/src/i18n/german.ts +17 -1
- package/src/i18n/locales/en.ts +1 -0
- package/src/i18n/locales/es.ts +16 -1
- package/src/i18n/locales/fr.ts +16 -2
- package/src/i18n/locales/hu.ts +16 -1
- package/src/i18n/locales/it.ts +16 -1
- package/src/i18n/locales/zh.ts +16 -1
- package/src/i18n/review.ts +4 -0
- package/src/index.ts +8 -0
- package/src/lib/translation-review.ts +12 -0
package/dist/i18n/locales/en.js
CHANGED
|
@@ -438,7 +438,10 @@ var DEFAULT_FEEDBACK_TOAST_LABELS = {
|
|
|
438
438
|
updateFailed: "Could not save that change.",
|
|
439
439
|
statusChanged: (status, title) => `Set to \u201C${status}\u201D: ${title}`,
|
|
440
440
|
statusUndo: "Undo",
|
|
441
|
-
statusRestored: (status, title) => `Back to \u201C${status}\u201D: ${title}
|
|
441
|
+
statusRestored: (status, title) => `Back to \u201C${status}\u201D: ${title}`,
|
|
442
|
+
commentFailed: "Could not post the comment.",
|
|
443
|
+
voteFailed: "Could not save your vote.",
|
|
444
|
+
replyFailed: "Could not send the reply."
|
|
442
445
|
};
|
|
443
446
|
|
|
444
447
|
// src/feedback/feedback-menu-labels.ts
|
|
@@ -469,7 +472,8 @@ var DEFAULT_FEEDBACK_PUBLIC_LABELS = {
|
|
|
469
472
|
empty: "No reports yet",
|
|
470
473
|
visibleToOthers: "Visible to others",
|
|
471
474
|
visibleHint: "Other users see the title and text, never your screenshots or files.",
|
|
472
|
-
visibleLocked: "Only while the report is still open."
|
|
475
|
+
visibleLocked: "Only while the report is still open.",
|
|
476
|
+
page: (page) => `Page ${page}`
|
|
473
477
|
};
|
|
474
478
|
|
|
475
479
|
// src/notifications/feedback-notification-types-labels.ts
|
|
@@ -863,7 +867,9 @@ var BILLING_CODES = /* @__PURE__ */ new Set([
|
|
|
863
867
|
"billing_provider_unavailable",
|
|
864
868
|
"billing_not_at_provider",
|
|
865
869
|
"billing_already_subscribed",
|
|
866
|
-
"billing_plan_not_sold"
|
|
870
|
+
"billing_plan_not_sold",
|
|
871
|
+
"billing_not_subscribed",
|
|
872
|
+
"billing_plan_unchanged"
|
|
867
873
|
]);
|
|
868
874
|
var CODES = /* @__PURE__ */ new Set([
|
|
869
875
|
"invalid_credentials",
|
|
@@ -1430,13 +1436,22 @@ var DEFAULT_BILLING_LABELS = {
|
|
|
1430
1436
|
payNothing: "There\u2019s no payment to make here. To choose a plan, go back to the app.",
|
|
1431
1437
|
payFailed: "The checkout couldn\u2019t be opened. Please go back and try again in a moment.",
|
|
1432
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",
|
|
1433
1446
|
waitingChanges: (count) => count === 1 ? "1 change waiting for a plan" : `${count} changes waiting for a plan`,
|
|
1434
1447
|
discardWaiting: "Discard waiting changes",
|
|
1435
1448
|
notConfigured: "Payments aren't set up yet. Please try again later.",
|
|
1436
1449
|
disabled: "Subscriptions aren't available here.",
|
|
1437
1450
|
providerUnavailable: "The payment provider can\u2019t be reached right now. Please try again in a moment.",
|
|
1438
|
-
alreadySubscribed: "You already have a subscription.
|
|
1439
|
-
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."
|
|
1440
1455
|
};
|
|
1441
1456
|
|
|
1442
1457
|
// src/admin/plan-change-labels.ts
|
|
@@ -1992,7 +2007,8 @@ function uiKitLabelsEn(numberLocale = "en-US") {
|
|
|
1992
2007
|
...d.feedbackPublic,
|
|
1993
2008
|
total: (count) => count === 1 ? "1 report" : `${n(count)} reports`,
|
|
1994
2009
|
comments: (count) => count === 1 ? "1 comment" : `${n(count)} comments`,
|
|
1995
|
-
votes: (count) => count === 1 ? "1 vote" : `${n(count)} votes
|
|
2010
|
+
votes: (count) => count === 1 ? "1 vote" : `${n(count)} votes`,
|
|
2011
|
+
page: (page) => `Page ${n(page)}`
|
|
1996
2012
|
},
|
|
1997
2013
|
measuredGrid: {
|
|
1998
2014
|
...d.measuredGrid,
|