@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.
Files changed (94) 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/feedback/feedback-comment-thread.d.ts +13 -6
  21. package/dist/feedback/feedback-comment-thread.js +10 -2
  22. package/dist/feedback/feedback-comment-thread.js.map +1 -1
  23. package/dist/feedback/feedback-labels.d.ts +11 -0
  24. package/dist/feedback/feedback-labels.js +4 -1
  25. package/dist/feedback/feedback-labels.js.map +1 -1
  26. package/dist/feedback/feedback-public-labels.d.ts +3 -0
  27. package/dist/feedback/feedback-public-labels.js +2 -1
  28. package/dist/feedback/feedback-public-labels.js.map +1 -1
  29. package/dist/feedback/feedback-public-list.d.ts +25 -4
  30. package/dist/feedback/feedback-public-list.js +54 -3
  31. package/dist/feedback/feedback-public-list.js.map +1 -1
  32. package/dist/feedback/feedback-public-switch.js +3 -3
  33. package/dist/feedback/feedback-public-switch.js.map +1 -1
  34. package/dist/feedback/feedback-record.d.ts +7 -7
  35. package/dist/feedback/feedback-record.js.map +1 -1
  36. package/dist/feedback/feedback-replies-context.d.ts +7 -0
  37. package/dist/feedback/feedback-replies-context.js +7 -0
  38. package/dist/feedback/feedback-replies-context.js.map +1 -0
  39. package/dist/feedback/feedback-row-detail.d.ts +12 -3
  40. package/dist/feedback/feedback-row-detail.js +2 -1
  41. package/dist/feedback/feedback-row-detail.js.map +1 -1
  42. package/dist/feedback/feedback-table.js +2 -2
  43. package/dist/feedback/feedback-table.js.map +1 -1
  44. package/dist/feedback/feedback-vote-button.d.ts +2 -1
  45. package/dist/feedback/feedback-vote-button.js.map +1 -1
  46. package/dist/i18n/german.js +19 -4
  47. package/dist/i18n/german.js.map +1 -1
  48. package/dist/i18n/locales/en.js +22 -6
  49. package/dist/i18n/locales/en.js.map +2 -2
  50. package/dist/i18n/locales/es.js +19 -4
  51. package/dist/i18n/locales/es.js.map +1 -1
  52. package/dist/i18n/locales/fr.js +19 -4
  53. package/dist/i18n/locales/fr.js.map +1 -1
  54. package/dist/i18n/locales/hu.js +19 -4
  55. package/dist/i18n/locales/hu.js.map +1 -1
  56. package/dist/i18n/locales/it.js +19 -4
  57. package/dist/i18n/locales/it.js.map +1 -1
  58. package/dist/i18n/locales/zh.js +19 -4
  59. package/dist/i18n/locales/zh.js.map +1 -1
  60. package/dist/i18n/review.js +4 -0
  61. package/dist/i18n/review.js.map +1 -1
  62. package/dist/index.d.ts +6 -1
  63. package/dist/index.js +4 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/lib/translation-review.d.ts +11 -0
  66. package/dist/lib/translation-review.js.map +1 -1
  67. package/dist/pay/pay.js +102 -40
  68. package/package.json +1 -1
  69. package/src/auth/auth-errors.ts +12 -3
  70. package/src/billing/billing-labels.ts +38 -3
  71. package/src/billing/billing-overview.ts +53 -1
  72. package/src/billing/checkout-processing.ts +17 -3
  73. package/src/billing/pay-page.ts +111 -27
  74. package/src/billing/plan-switch.tsx +201 -0
  75. package/src/feedback/feedback-comment-thread.tsx +29 -7
  76. package/src/feedback/feedback-labels.ts +14 -0
  77. package/src/feedback/feedback-public-labels.ts +4 -0
  78. package/src/feedback/feedback-public-list.tsx +88 -5
  79. package/src/feedback/feedback-public-switch.tsx +3 -3
  80. package/src/feedback/feedback-record.ts +7 -7
  81. package/src/feedback/feedback-replies-context.ts +9 -0
  82. package/src/feedback/feedback-row-detail.tsx +16 -4
  83. package/src/feedback/feedback-table.tsx +2 -2
  84. package/src/feedback/feedback-vote-button.tsx +2 -1
  85. package/src/i18n/german.ts +17 -1
  86. package/src/i18n/locales/en.ts +1 -0
  87. package/src/i18n/locales/es.ts +16 -1
  88. package/src/i18n/locales/fr.ts +16 -2
  89. package/src/i18n/locales/hu.ts +16 -1
  90. package/src/i18n/locales/it.ts +16 -1
  91. package/src/i18n/locales/zh.ts +16 -1
  92. package/src/i18n/review.ts +4 -0
  93. package/src/index.ts +8 -0
  94. package/src/lib/translation-review.ts +12 -0
@@ -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. To change your plan, go to \u201CPayment and invoices\u201D.",
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,