@open-mercato/checkout 0.10.1-develop.7874.1.67e097d23a → 0.10.1-develop.7883.1.44ac2125f5
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/.turbo/turbo-build.log +1 -1
- package/build.mjs +1 -0
- package/dist/modules/checkout/components/LinkTemplateForm.js +3 -0
- package/dist/modules/checkout/components/LinkTemplateForm.js.map +2 -2
- package/dist/modules/checkout/i18n/de.json +485 -0
- package/dist/modules/checkout/i18n/en.json +485 -0
- package/dist/modules/checkout/i18n/es.json +485 -0
- package/dist/modules/checkout/i18n/ko.json +485 -0
- package/dist/modules/checkout/i18n/pl.json +485 -0
- package/dist/modules/checkout/lib/customFieldTranslations.js +15 -0
- package/dist/modules/checkout/lib/customFieldTranslations.js.map +7 -0
- package/package.json +5 -5
- package/src/modules/checkout/components/LinkTemplateForm.tsx +3 -0
- package/src/modules/checkout/i18n/de.json +16 -0
- package/src/modules/checkout/i18n/en.json +16 -0
- package/src/modules/checkout/i18n/es.json +16 -0
- package/src/modules/checkout/i18n/ko.json +16 -0
- package/src/modules/checkout/i18n/pl.json +16 -0
- package/src/modules/checkout/lib/__tests__/customFieldTranslations.test.ts +38 -0
- package/src/modules/checkout/lib/__tests__/customFields.test.ts +41 -1
- package/src/modules/checkout/lib/customFieldTranslations.ts +16 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[build:checkout] found
|
|
1
|
+
[build:checkout] found 169 entry points
|
|
2
2
|
[build:checkout] built successfully
|
package/build.mjs
CHANGED
|
@@ -39,6 +39,7 @@ import { Label } from "@open-mercato/ui/primitives/label";
|
|
|
39
39
|
import { Alert, AlertDescription, AlertTitle } from "@open-mercato/ui/primitives/alert";
|
|
40
40
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@open-mercato/ui/primitives/tabs";
|
|
41
41
|
import { CHECKOUT_ENTITY_IDS } from "../lib/constants.js";
|
|
42
|
+
import { createCheckoutCustomFieldTextResolver } from "../lib/customFieldTranslations.js";
|
|
42
43
|
import { getLocalizedDefaultCheckoutCustomerFields } from "../lib/defaults.js";
|
|
43
44
|
import { getGatewayProviderConfigurationMessageKey } from "../lib/gatewayProviderAvailability.js";
|
|
44
45
|
import { findUncollectedPayerFields, PAYER_FIELD_CUSTOMER_FIELD_KEYS } from "../lib/payerFieldRequirements.js";
|
|
@@ -1179,6 +1180,7 @@ function LinkTemplateForm({ mode, recordId }) {
|
|
|
1179
1180
|
const locale = useLocale();
|
|
1180
1181
|
const searchParams = useSearchParams();
|
|
1181
1182
|
const entityId = mode === "link" ? CHECKOUT_ENTITY_IDS.link : CHECKOUT_ENTITY_IDS.template;
|
|
1183
|
+
const resolveCustomFieldText = React.useMemo(() => createCheckoutCustomFieldTextResolver(t), [t]);
|
|
1182
1184
|
const templateId = React.useMemo(() => {
|
|
1183
1185
|
const raw = searchParams.get("templateId");
|
|
1184
1186
|
return raw && raw.trim().length > 0 ? raw : null;
|
|
@@ -1466,6 +1468,7 @@ function LinkTemplateForm({ mode, recordId }) {
|
|
|
1466
1468
|
) : null
|
|
1467
1469
|
] }) : null,
|
|
1468
1470
|
entityId,
|
|
1471
|
+
resolveCustomFieldText,
|
|
1469
1472
|
customFieldsetBindings: { [entityId]: { valueKey: "customFieldsetCode" } },
|
|
1470
1473
|
initialValues,
|
|
1471
1474
|
contentHeader: lockedNotice,
|