@adyen/kyc-components 3.51.4 → 3.51.5
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-CrZErvT2.js → B4MFY5CR-B9BMoq9N.js} +1 -1
- package/dist/es/{HO4MOOFI-Dd48N8vS.js → HO4MOOFI-IN2K7Rdw.js} +2 -2
- package/dist/es/{HUY7CZI3-eTUqdkEW.js → HUY7CZI3-BVz9_75y.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-DXQ-eAl4.js → index-C1AggMVF.js} +15 -16
- package/dist/types/components/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/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-C1AggMVF.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-B9BMoq9N.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-C1AggMVF.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-B9BMoq9N.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-C1AggMVF.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -18229,6 +18229,7 @@ const idNumberExemptDefaultConfig = {
|
|
|
18229
18229
|
};
|
|
18230
18230
|
const idNumberFields = ["idNumber", "idNumberExempt"];
|
|
18231
18231
|
function IdentityNumber(props) {
|
|
18232
|
+
var _a2;
|
|
18232
18233
|
const { i18n } = useI18nContext();
|
|
18233
18234
|
const {
|
|
18234
18235
|
country,
|
|
@@ -18280,7 +18281,7 @@ function IdentityNumber(props) {
|
|
|
18280
18281
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
18281
18282
|
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
18282
18283
|
errorMessage,
|
|
18283
|
-
shouldValidate:
|
|
18284
|
+
shouldValidate: (_a2 = errors == null ? void 0 : errors.idNumber) == null ? void 0 : _a2.hasError,
|
|
18284
18285
|
isValid: !!(valid == null ? void 0 : valid.idNumber),
|
|
18285
18286
|
"aria-required": formUtils.isRequiredField("idNumber"),
|
|
18286
18287
|
"aria-label": formUtils.getLabel("idNumber"),
|
|
@@ -18655,7 +18656,7 @@ const NomineeDecisionMakerRole = (props) => {
|
|
|
18655
18656
|
function IndividualIdNumberTypeSelector({
|
|
18656
18657
|
country,
|
|
18657
18658
|
selected,
|
|
18658
|
-
|
|
18659
|
+
handleFieldChange
|
|
18659
18660
|
}) {
|
|
18660
18661
|
const { i18n } = useI18nContext();
|
|
18661
18662
|
const options = useMemo(
|
|
@@ -18664,9 +18665,9 @@ function IndividualIdNumberTypeSelector({
|
|
|
18664
18665
|
);
|
|
18665
18666
|
useEffect(() => {
|
|
18666
18667
|
if (!selected && options.length > 0) {
|
|
18667
|
-
|
|
18668
|
+
handleFieldChange(options[0].id);
|
|
18668
18669
|
}
|
|
18669
|
-
}, [options, selected,
|
|
18670
|
+
}, [options, selected, handleFieldChange]);
|
|
18670
18671
|
if (options.length <= 1) return null;
|
|
18671
18672
|
return /* @__PURE__ */ jsx(Field, { name: "individualIdNumberType", label: i18n.get("whichTypeOfIdNumberDoYouHave"), children: (childProps) => /* @__PURE__ */ jsx(
|
|
18672
18673
|
RadioGroup,
|
|
@@ -18675,7 +18676,7 @@ function IndividualIdNumberTypeSelector({
|
|
|
18675
18676
|
name: "individualIdNumberType",
|
|
18676
18677
|
items: options,
|
|
18677
18678
|
value: selected,
|
|
18678
|
-
onChange: (value) =>
|
|
18679
|
+
onChange: (value) => handleFieldChange(value)
|
|
18679
18680
|
}
|
|
18680
18681
|
) });
|
|
18681
18682
|
}
|
|
@@ -19446,7 +19447,7 @@ const relationshipOptions = [
|
|
|
19446
19447
|
];
|
|
19447
19448
|
const countriesRequiringNationality = [CountryCodes.HongKong, CountryCodes.Singapore];
|
|
19448
19449
|
function PersonalDetails(props) {
|
|
19449
|
-
var _a2
|
|
19450
|
+
var _a2;
|
|
19450
19451
|
const { i18n } = useI18nContext();
|
|
19451
19452
|
const { isSettingEnabled } = useSettingsContext();
|
|
19452
19453
|
const { allowedCountries } = useCoreContext();
|
|
@@ -19469,12 +19470,10 @@ function PersonalDetails(props) {
|
|
|
19469
19470
|
fieldValidationErrors,
|
|
19470
19471
|
errors
|
|
19471
19472
|
} = props;
|
|
19472
|
-
const defaultIdNumberType = (_a2 = individualIdNumberOptions == null ? void 0 : individualIdNumberOptions[data == null ? void 0 : data.residencyCountry]) == null ? void 0 : _a2[0].id;
|
|
19473
|
-
const [idNumberType, setIdNumberType] = useState(defaultIdNumberType);
|
|
19474
19473
|
const isDecisionMakerTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
19475
19474
|
const isTopLevelEntity = taskType === TaskTypes.INDIVIDUAL;
|
|
19476
19475
|
const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
19477
|
-
const countryRequiringNationality = ((
|
|
19476
|
+
const countryRequiringNationality = ((_a2 = parentLegalEntity == null ? void 0 : parentLegalEntity.organization) == null ? void 0 : _a2.registeredAddress.country) || (data == null ? void 0 : data.residencyCountry);
|
|
19478
19477
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
19479
19478
|
const formUtils = createFormUtils(props, i18n);
|
|
19480
19479
|
const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
|
|
@@ -19684,8 +19683,8 @@ function PersonalDetails(props) {
|
|
|
19684
19683
|
IndividualIdNumberTypeSelector,
|
|
19685
19684
|
{
|
|
19686
19685
|
country: data == null ? void 0 : data.residencyCountry,
|
|
19687
|
-
|
|
19688
|
-
|
|
19686
|
+
selected: data == null ? void 0 : data.typeOfIdentity,
|
|
19687
|
+
handleFieldChange: handleFieldChange("typeOfIdentity", "input")
|
|
19689
19688
|
}
|
|
19690
19689
|
),
|
|
19691
19690
|
/* @__PURE__ */ jsx(
|
|
@@ -19694,7 +19693,7 @@ function PersonalDetails(props) {
|
|
|
19694
19693
|
personalDetails: props,
|
|
19695
19694
|
country: data.residencyCountry,
|
|
19696
19695
|
errors,
|
|
19697
|
-
idNumberType,
|
|
19696
|
+
idNumberType: data == null ? void 0 : data.typeOfIdentity,
|
|
19698
19697
|
handleFieldChange
|
|
19699
19698
|
}
|
|
19700
19699
|
),
|
|
@@ -52199,7 +52198,7 @@ const ConfigurationApiProvider = ({
|
|
|
52199
52198
|
}) => {
|
|
52200
52199
|
const authContext = useAuthContext();
|
|
52201
52200
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
52202
|
-
const sdkVersion = "3.51.
|
|
52201
|
+
const sdkVersion = "3.51.5";
|
|
52203
52202
|
const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
|
|
52204
52203
|
useAnalytics({
|
|
52205
52204
|
onUserEvent,
|
|
@@ -52939,7 +52938,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
52939
52938
|
const [tab, setTab] = useState("metadata");
|
|
52940
52939
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
52941
52940
|
const metadata = {
|
|
52942
|
-
sdkVersion: "3.51.
|
|
52941
|
+
sdkVersion: "3.51.5",
|
|
52943
52942
|
locale: i18n.locale,
|
|
52944
52943
|
rootLegalEntityId: rootLegalEntity.id
|
|
52945
52944
|
};
|
|
@@ -55936,7 +55935,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
55936
55935
|
if (__privateGet(this, _Component)) {
|
|
55937
55936
|
Devtools = __privateGet(this, _Component);
|
|
55938
55937
|
} else {
|
|
55939
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
55938
|
+
Devtools = lazy(() => import("./HO4MOOFI-IN2K7Rdw.js"));
|
|
55940
55939
|
__privateSet(this, _Component, Devtools);
|
|
55941
55940
|
}
|
|
55942
55941
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -56058,7 +56057,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
56058
56057
|
if (__privateGet(this, _Component2)) {
|
|
56059
56058
|
Devtools = __privateGet(this, _Component2);
|
|
56060
56059
|
} else {
|
|
56061
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
56060
|
+
Devtools = lazy(() => import("./HUY7CZI3-BVz9_75y.js"));
|
|
56062
56061
|
__privateSet(this, _Component2, Devtools);
|
|
56063
56062
|
}
|
|
56064
56063
|
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 {};
|
|
@@ -4,7 +4,7 @@ import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
|
4
4
|
import type { LegalEntityAssociation, LegalRepresentativeRelationshipType } from '../../core/models/api/legal-entity-association';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
6
6
|
import type { TranslationKey } from '../../language/types';
|
|
7
|
-
import type { ValidationRuleResults } from '../../utils/validation/types';
|
|
7
|
+
import type { ValidationRuleResults, ValidatorMode } from '../../utils/validation/types';
|
|
8
8
|
import type { ContactDetailsSchema } from '../ContactDetails/types';
|
|
9
9
|
import type { IdentityNumberSchema } from '../IdentityNumber/type';
|
|
10
10
|
import type { DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema } from '../DecisionMakerRole/types';
|
|
@@ -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
|
}
|