@adyen/kyc-components 3.52.0 → 3.52.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/dist/es/{B4MFY5CR-BTCO71LZ.js → B4MFY5CR-DL72FZ98.js} +1 -1
- package/dist/es/{HO4MOOFI-JZ43isAO.js → HO4MOOFI-eQBj5hwH.js} +2 -2
- package/dist/es/{HUY7CZI3-C4TRNQze.js → HUY7CZI3-BUJijaDN.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-BlLbInPt.js → index-SiHtDC7u.js} +15 -16
- package/dist/types/components/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-
|
|
4
|
+
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-SiHtDC7u.js";
|
|
5
5
|
var isNonNullable = (i2) => i2 != null;
|
|
6
6
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
7
7
|
function chain(callbacks) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-DL72FZ98.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-SiHtDC7u.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-DL72FZ98.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-SiHtDC7u.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -26296,6 +26296,7 @@ const idNumberExemptDefaultConfig = {
|
|
|
26296
26296
|
};
|
|
26297
26297
|
const idNumberFields = ["idNumber", "idNumberExempt"];
|
|
26298
26298
|
function IdentityNumber(props) {
|
|
26299
|
+
var _a2;
|
|
26299
26300
|
const { i18n } = useI18nContext();
|
|
26300
26301
|
const {
|
|
26301
26302
|
country,
|
|
@@ -26347,7 +26348,7 @@ function IdentityNumber(props) {
|
|
|
26347
26348
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
26348
26349
|
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
26349
26350
|
errorMessage,
|
|
26350
|
-
shouldValidate:
|
|
26351
|
+
shouldValidate: (_a2 = errors == null ? void 0 : errors.idNumber) == null ? void 0 : _a2.hasError,
|
|
26351
26352
|
isValid: !!(valid == null ? void 0 : valid.idNumber),
|
|
26352
26353
|
"aria-required": formUtils.isRequiredField("idNumber"),
|
|
26353
26354
|
"aria-label": formUtils.getLabel("idNumber"),
|
|
@@ -27030,7 +27031,7 @@ var TrustedFieldsProvider = /* @__PURE__ */ ((TrustedFieldsProvider2) => {
|
|
|
27030
27031
|
function IndividualIdNumberTypeSelector({
|
|
27031
27032
|
country,
|
|
27032
27033
|
selected,
|
|
27033
|
-
|
|
27034
|
+
handleFieldChange
|
|
27034
27035
|
}) {
|
|
27035
27036
|
const { i18n } = useI18nContext();
|
|
27036
27037
|
const options = useMemo(
|
|
@@ -27039,9 +27040,9 @@ function IndividualIdNumberTypeSelector({
|
|
|
27039
27040
|
);
|
|
27040
27041
|
useEffect(() => {
|
|
27041
27042
|
if (!selected && options.length > 0) {
|
|
27042
|
-
|
|
27043
|
+
handleFieldChange(options[0].id);
|
|
27043
27044
|
}
|
|
27044
|
-
}, [options, selected,
|
|
27045
|
+
}, [options, selected, handleFieldChange]);
|
|
27045
27046
|
if (options.length <= 1) return null;
|
|
27046
27047
|
return /* @__PURE__ */ jsx(Field, { name: "individualIdNumberType", label: i18n.get("whichTypeOfIdNumberDoYouHave"), children: (childProps) => /* @__PURE__ */ jsx(
|
|
27047
27048
|
RadioGroup,
|
|
@@ -27050,7 +27051,7 @@ function IndividualIdNumberTypeSelector({
|
|
|
27050
27051
|
name: "individualIdNumberType",
|
|
27051
27052
|
items: options,
|
|
27052
27053
|
value: selected,
|
|
27053
|
-
onChange: (value) =>
|
|
27054
|
+
onChange: (value) => handleFieldChange(value)
|
|
27054
27055
|
}
|
|
27055
27056
|
) });
|
|
27056
27057
|
}
|
|
@@ -27728,7 +27729,7 @@ const relationshipOptions = [
|
|
|
27728
27729
|
];
|
|
27729
27730
|
const countriesRequiringNationality = [CountryCodes.HongKong, CountryCodes.Singapore];
|
|
27730
27731
|
function PersonalDetails(props) {
|
|
27731
|
-
var _a2
|
|
27732
|
+
var _a2;
|
|
27732
27733
|
const { i18n } = useI18nContext();
|
|
27733
27734
|
const { isSettingEnabled } = useSettingsContext();
|
|
27734
27735
|
const { allowedCountries } = useCoreContext();
|
|
@@ -27751,12 +27752,10 @@ function PersonalDetails(props) {
|
|
|
27751
27752
|
fieldValidationErrors,
|
|
27752
27753
|
errors
|
|
27753
27754
|
} = props;
|
|
27754
|
-
const defaultIdNumberType = (_a2 = individualIdNumberOptions == null ? void 0 : individualIdNumberOptions[data == null ? void 0 : data.residencyCountry]) == null ? void 0 : _a2[0].id;
|
|
27755
|
-
const [idNumberType, setIdNumberType] = useState(defaultIdNumberType);
|
|
27756
27755
|
const isDecisionMakerTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
27757
27756
|
const isTopLevelEntity = taskType === TaskTypes.INDIVIDUAL;
|
|
27758
27757
|
const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
27759
|
-
const countryRequiringNationality = ((
|
|
27758
|
+
const countryRequiringNationality = ((_a2 = parentLegalEntity == null ? void 0 : parentLegalEntity.organization) == null ? void 0 : _a2.registeredAddress.country) || (data == null ? void 0 : data.residencyCountry);
|
|
27760
27759
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
27761
27760
|
const formUtils = createFormUtils(props, i18n);
|
|
27762
27761
|
const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
|
|
@@ -27966,8 +27965,8 @@ function PersonalDetails(props) {
|
|
|
27966
27965
|
IndividualIdNumberTypeSelector,
|
|
27967
27966
|
{
|
|
27968
27967
|
country: data == null ? void 0 : data.residencyCountry,
|
|
27969
|
-
|
|
27970
|
-
|
|
27968
|
+
selected: data == null ? void 0 : data.typeOfIdentity,
|
|
27969
|
+
handleFieldChange: handleFieldChange("typeOfIdentity", "input")
|
|
27971
27970
|
}
|
|
27972
27971
|
),
|
|
27973
27972
|
/* @__PURE__ */ jsx(
|
|
@@ -27976,7 +27975,7 @@ function PersonalDetails(props) {
|
|
|
27976
27975
|
personalDetails: props,
|
|
27977
27976
|
country: data.residencyCountry,
|
|
27978
27977
|
errors,
|
|
27979
|
-
idNumberType,
|
|
27978
|
+
idNumberType: data == null ? void 0 : data.typeOfIdentity,
|
|
27980
27979
|
handleFieldChange
|
|
27981
27980
|
}
|
|
27982
27981
|
),
|
|
@@ -57812,7 +57811,7 @@ const ConfigurationApiProvider = ({
|
|
|
57812
57811
|
}) => {
|
|
57813
57812
|
const authContext = useAuthContext();
|
|
57814
57813
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
57815
|
-
const sdkVersion = "3.52.
|
|
57814
|
+
const sdkVersion = "3.52.1";
|
|
57816
57815
|
const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
|
|
57817
57816
|
useAnalytics({
|
|
57818
57817
|
onUserEvent,
|
|
@@ -58552,7 +58551,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
58552
58551
|
const [tab, setTab] = useState("metadata");
|
|
58553
58552
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
58554
58553
|
const metadata = {
|
|
58555
|
-
sdkVersion: "3.52.
|
|
58554
|
+
sdkVersion: "3.52.1",
|
|
58556
58555
|
locale: i18n.locale,
|
|
58557
58556
|
rootLegalEntityId: rootLegalEntity.id
|
|
58558
58557
|
};
|
|
@@ -61552,7 +61551,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
61552
61551
|
if (__privateGet(this, _Component)) {
|
|
61553
61552
|
Devtools = __privateGet(this, _Component);
|
|
61554
61553
|
} else {
|
|
61555
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
61554
|
+
Devtools = lazy(() => import("./HO4MOOFI-eQBj5hwH.js"));
|
|
61556
61555
|
__privateSet(this, _Component, Devtools);
|
|
61557
61556
|
}
|
|
61558
61557
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -61674,7 +61673,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
61674
61673
|
if (__privateGet(this, _Component2)) {
|
|
61675
61674
|
Devtools = __privateGet(this, _Component2);
|
|
61676
61675
|
} else {
|
|
61677
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
61676
|
+
Devtools = lazy(() => import("./HUY7CZI3-BUJijaDN.js"));
|
|
61678
61677
|
__privateSet(this, _Component2, Devtools);
|
|
61679
61678
|
}
|
|
61680
61679
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -3,7 +3,7 @@ import type { IndividualIdNumberType } from './countryIdNumberTypes';
|
|
|
3
3
|
interface IndividualIdNumberTypeSelectorProps {
|
|
4
4
|
country: CountryCode;
|
|
5
5
|
selected: IndividualIdNumberType;
|
|
6
|
-
|
|
6
|
+
handleFieldChange: (type: IndividualIdNumberType) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function IndividualIdNumberTypeSelector({ country, selected,
|
|
8
|
+
export declare function IndividualIdNumberTypeSelector({ country, selected, handleFieldChange, }: IndividualIdNumberTypeSelectorProps): import("preact").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -9,7 +9,7 @@ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types
|
|
|
9
9
|
import type { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
|
|
10
10
|
import type { DecisionMakerType } from '../../../../../core/models/api/decision-maker-type';
|
|
11
11
|
import type { ExistingLegalEntity } from '../../../../../core/models/api/legal-entity';
|
|
12
|
-
import type { ValidationRuleResults } from '../../../../../utils/validation/types';
|
|
12
|
+
import type { ValidationRuleResults, ValidatorMode } from '../../../../../utils/validation/types';
|
|
13
13
|
import type { IndividualIdNumberType } from '../../../../IdFieldTypeSelector/countryIdNumberTypes';
|
|
14
14
|
import type { TranslationKey } from '../../../../../language/types';
|
|
15
15
|
export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema, ContactDetailsSchema {
|
|
@@ -37,5 +37,5 @@ export interface IdentityProps {
|
|
|
37
37
|
errors: ValidationRuleResults<IdentityNumberSchema>;
|
|
38
38
|
idNumberType?: IndividualIdNumberType;
|
|
39
39
|
registrationNumberType?: TranslationKey;
|
|
40
|
-
handleFieldChange: any;
|
|
40
|
+
handleFieldChange?: (fieldName: keyof IdentityNumberSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
41
41
|
}
|