@adyen/kyc-components 3.46.0 → 3.46.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.
@@ -17478,6 +17478,11 @@ const validatePhoneCountryCodeNotEmptyOnBlur = {
17478
17478
  validate: (phone) => !isEmpty$1(phone == null ? void 0 : phone.phoneCountryCode),
17479
17479
  errorMessage: "missingPhoneCountryCode"
17480
17480
  };
17481
+ const validatePhoneNumberNotEmpty = {
17482
+ modes: ["blur"],
17483
+ validate: (phone) => !isEmpty$1(phone == null ? void 0 : phone.number),
17484
+ errorMessage: "invalidPhoneNumber"
17485
+ };
17481
17486
  const useAsyncPhoneValidationRules = () => {
17482
17487
  const { validatePhoneNumber: validatePhoneNumber2 } = useConfigurationApi();
17483
17488
  return useMemo(
@@ -17494,7 +17499,7 @@ const useAsyncPhoneValidationRules = () => {
17494
17499
  [validatePhoneNumber2]
17495
17500
  );
17496
17501
  };
17497
- const defaultValidators = [validatePhoneCountryCodeNotEmptyOnBlur];
17502
+ const defaultValidators = [validatePhoneCountryCodeNotEmptyOnBlur, validatePhoneNumberNotEmpty];
17498
17503
  const defaultFieldMetadata$6 = {
17499
17504
  label: "phoneNumber",
17500
17505
  validators: defaultValidators
@@ -32295,7 +32300,6 @@ const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
32295
32300
  const logger$t = createLogger("CustomerSupport");
32296
32301
  function CustomerSupport({
32297
32302
  country,
32298
- onNavigateBack,
32299
32303
  onSubmit,
32300
32304
  legalEntityResponse,
32301
32305
  handleUpdateLegalEntity
@@ -32353,15 +32357,7 @@ function CustomerSupport({
32353
32357
  shouldValidate
32354
32358
  }
32355
32359
  ),
32356
- /* @__PURE__ */ jsx(
32357
- ActionBar,
32358
- {
32359
- onBack: onNavigateBack,
32360
- onNext: submitForm,
32361
- backButtonLabel: i18n.get("saveAndGoToOverview"),
32362
- nextButtonLabel: i18n.get("submit")
32363
- }
32364
- )
32360
+ /* @__PURE__ */ jsx(ActionBar, { onNext: submitForm, nextButtonLabel: i18n.get("submit") })
32365
32361
  ] });
32366
32362
  }
32367
32363
  function useDataMissingRemediations({
@@ -41113,7 +41109,6 @@ function DropinComposer({
41113
41109
  {
41114
41110
  legalEntityResponse: rootLegalEntity,
41115
41111
  country: rootLegalEntityCountry,
41116
- onNavigateBack: navigateBack,
41117
41112
  onSubmit: async () => {
41118
41113
  await refreshLegalEntity();
41119
41114
  navigateTo(TaskTypes.TASKS_OVERVIEW);
@@ -45785,7 +45780,7 @@ const ConfigurationApiProvider = ({
45785
45780
  }) => {
45786
45781
  const authContext = useAuthContext();
45787
45782
  const { isEmbeddedDropin, loadingContext } = authContext;
45788
- const sdkVersion = "3.46.0";
45783
+ const sdkVersion = "3.46.1";
45789
45784
  const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
45790
45785
  useAnalytics({
45791
45786
  onUserEvent,
@@ -46632,7 +46627,7 @@ const DebugModal = ({ onExit }) => {
46632
46627
  const [tab, setTab] = useState("metadata");
46633
46628
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
46634
46629
  const metadata = {
46635
- sdkVersion: "3.46.0",
46630
+ sdkVersion: "3.46.1",
46636
46631
  locale: i18n.locale,
46637
46632
  rootLegalEntityId: rootLegalEntity.id
46638
46633
  };
@@ -1,2 +1,2 @@
1
1
  import type { CustomerSupportProps } from './types';
2
- export declare function CustomerSupport({ country, onNavigateBack, onSubmit, legalEntityResponse, handleUpdateLegalEntity, }: CustomerSupportProps): import("preact").JSX.Element;
2
+ export declare function CustomerSupport({ country, onSubmit, legalEntityResponse, handleUpdateLegalEntity, }: CustomerSupportProps): import("preact").JSX.Element;
@@ -13,7 +13,6 @@ export interface CustomerSupportSchema {
13
13
  export interface CustomerSupportProps extends BaseInnerFormProps<CustomerSupportSchema> {
14
14
  country: CountryCode;
15
15
  legalEntityResponse: ExistingLegalEntity;
16
- onNavigateBack(): void;
17
16
  onSubmit(): void;
18
17
  handleUpdateLegalEntity: DropinAPIHandlers['handleUpdateLegalEntity'];
19
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.46.0",
3
+ "version": "3.46.1",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",