@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/src/index.ts
CHANGED
|
@@ -79,6 +79,7 @@ export type {
|
|
|
79
79
|
ReviewStatus,
|
|
80
80
|
TranslationRow,
|
|
81
81
|
ApiTranslationReview,
|
|
82
|
+
ApiTranslationReviewsResponse,
|
|
82
83
|
ApiTranslationReviewWrite,
|
|
83
84
|
TranslationRowsInput,
|
|
84
85
|
TranslationSummary,
|
|
@@ -842,11 +843,18 @@ export type { CheckoutOverview, CheckoutProcessingOptions } from "./billing/chec
|
|
|
842
843
|
// The link to the pay page and Paddle's locale (§14.4); the page itself ships as dist/pay/.
|
|
843
844
|
export { PAY_PAGE_LANG_PARAM, paddleLocale, payPageUrl } from "./billing/pay-page";
|
|
844
845
|
export type { PaddleEnvironment } from "./billing/pay-page";
|
|
846
|
+
// 0.39 (§15.2.6): the apps every pay page serves, by their `billing_app` tag.
|
|
847
|
+
export { PAY_PAGE_APPS } from "./billing/pay-page";
|
|
848
|
+
export type { PayPageApp } from "./billing/pay-page";
|
|
845
849
|
// The API's shapes the parts read, server-kit 0.7's (§4, §14.5), and the plan limit as
|
|
846
850
|
// a toast (§14.11).
|
|
847
851
|
export type { BillingOverview, SubscriptionSource, PortalTarget, PortalRequest } from "./billing/billing-overview";
|
|
848
852
|
export { usePlanLimitToast } from "./billing/plan-limit-toast";
|
|
849
853
|
export type { PlanLimitToastOptions } from "./billing/plan-limit-toast";
|
|
854
|
+
// 0.39 (§15.2.10): the payer's plan switch, its shapes, and what the payer pays.
|
|
855
|
+
export { PlanSwitchConfirm } from "./billing/plan-switch";
|
|
856
|
+
export type { PlanSwitchConfirmProps, PlanSwitchSide } from "./billing/plan-switch";
|
|
857
|
+
export type { PaidPrice, PlanSwitchRequest, PlanSwitchPreview } from "./billing/billing-overview";
|
|
850
858
|
// The operator's plan parts (§14.12) are admin/plan-change, in the admin section.
|
|
851
859
|
|
|
852
860
|
// ── settings ─────────────────────────────────────────────────────────────────
|
|
@@ -117,9 +117,21 @@ export interface ApiTranslationReview {
|
|
|
117
117
|
note: string | null;
|
|
118
118
|
suggestion: string | null;
|
|
119
119
|
reviewer_name: string | null;
|
|
120
|
+
/** server-kit 0.10: the name's two parts (`reviewer_name` is them in the reader's order). */
|
|
121
|
+
reviewer_first_name?: string | null;
|
|
122
|
+
reviewer_last_name?: string | null;
|
|
120
123
|
reviewed_at: string;
|
|
121
124
|
}
|
|
122
125
|
|
|
126
|
+
/** `GET /translations/reviews` (server-kit `TranslationReviewsResponse`): the locales and
|
|
127
|
+
* areas the caller may review (`areas` null: every area; `["kit"]` for a review token)
|
|
128
|
+
* and every stored verdict in them. Typed structurally, as {@link ApiTranslationReview}. */
|
|
129
|
+
export interface ApiTranslationReviewsResponse {
|
|
130
|
+
locales: string[];
|
|
131
|
+
areas?: string[] | null;
|
|
132
|
+
reviews: ApiTranslationReview[];
|
|
133
|
+
}
|
|
134
|
+
|
|
123
135
|
/** One item of `PUT /translations/reviews`. */
|
|
124
136
|
export interface ApiTranslationReviewWrite {
|
|
125
137
|
locale: string;
|