@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.
@@ -1,2 +1,2 @@
1
- [build:checkout] found 168 entry points
1
+ [build:checkout] found 169 entry points
2
2
  [build:checkout] built successfully
package/build.mjs CHANGED
@@ -8,5 +8,6 @@ const watch = process.argv.includes('--watch')
8
8
  await buildPackage(packageDir, {
9
9
  name: 'checkout',
10
10
  clearDist: true,
11
+ copyJson: true,
11
12
  watch,
12
13
  })
@@ -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,