@adyen/kyc-components 3.51.2 → 3.51.3
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-zicDXg2A.js → B4MFY5CR-UJrID1s2.js} +1 -1
- package/dist/es/{HO4MOOFI-cwSYvEW_.js → HO4MOOFI-CGublxkZ.js} +2 -2
- package/dist/es/{HUY7CZI3-Mle7w1qv.js → HUY7CZI3-I14bSv-8.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-C6O_j_lU.js → index-D3fRWeYh.js} +18 -9
- package/dist/types/components/Individual/rules.d.ts +1 -0
- 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-D3fRWeYh.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-UJrID1s2.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-D3fRWeYh.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-UJrID1s2.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-D3fRWeYh.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -19440,7 +19440,7 @@ function PersonalDetails(props) {
|
|
|
19440
19440
|
onBlur: handleFieldChange("jobTitle", "blur"),
|
|
19441
19441
|
"aria-required": true,
|
|
19442
19442
|
"aria-label": formUtils.getLabel("jobTitle"),
|
|
19443
|
-
"aria-invalid": !
|
|
19443
|
+
"aria-invalid": !(valid == null ? void 0 : valid.jobTitle)
|
|
19444
19444
|
}
|
|
19445
19445
|
)
|
|
19446
19446
|
}
|
|
@@ -29482,7 +29482,7 @@ const additionalIdentityInfo = {
|
|
|
29482
29482
|
rule: "issuerStateRequired"
|
|
29483
29483
|
},
|
|
29484
29484
|
licenseCardNumber: {
|
|
29485
|
-
rule: "
|
|
29485
|
+
rule: "licenseCardNumberRules"
|
|
29486
29486
|
},
|
|
29487
29487
|
expiryDate: {
|
|
29488
29488
|
rule: "expiryDateRequired"
|
|
@@ -33081,6 +33081,10 @@ const CONTACTS_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
|
33081
33081
|
const JOB_TITLE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
33082
33082
|
const ISSUER_REQUIRED_FOR_COUNTRIES = [CountryCodes.Australia];
|
|
33083
33083
|
const EXPIRY_DATE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
|
|
33084
|
+
const LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES = [
|
|
33085
|
+
CountryCodes.NewZealand,
|
|
33086
|
+
CountryCodes.Australia
|
|
33087
|
+
];
|
|
33084
33088
|
const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
|
|
33085
33089
|
DecisionMakerType.SIGNATORY,
|
|
33086
33090
|
DecisionMakerType.CONTROLLING_PERSON
|
|
@@ -33219,9 +33223,9 @@ const rules$2 = ({
|
|
|
33219
33223
|
return REQUIRED;
|
|
33220
33224
|
}
|
|
33221
33225
|
},
|
|
33222
|
-
|
|
33226
|
+
licenseCardNumberRules: () => {
|
|
33223
33227
|
var _a2;
|
|
33224
|
-
if (((_a2 = data.personalDetails) == null ? void 0 : _a2.typeOfIdentity) === "driversLicense") {
|
|
33228
|
+
if (((_a2 = data.personalDetails) == null ? void 0 : _a2.typeOfIdentity) === "driversLicense" && LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES.includes(country)) {
|
|
33225
33229
|
return REQUIRED;
|
|
33226
33230
|
}
|
|
33227
33231
|
},
|
|
@@ -33231,7 +33235,12 @@ const rules$2 = ({
|
|
|
33231
33235
|
return REQUIRED;
|
|
33232
33236
|
}
|
|
33233
33237
|
},
|
|
33234
|
-
expiryDateRequired: () =>
|
|
33238
|
+
expiryDateRequired: () => {
|
|
33239
|
+
var _a2;
|
|
33240
|
+
if (((_a2 = data.personalDetails) == null ? void 0 : _a2.typeOfIdentity) === "passport" && EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country)) {
|
|
33241
|
+
return REQUIRED;
|
|
33242
|
+
}
|
|
33243
|
+
},
|
|
33235
33244
|
legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
|
|
33236
33245
|
isProofOfRelationshipRequired: () => void 0,
|
|
33237
33246
|
// not required until more clarity from product
|
|
@@ -52183,7 +52192,7 @@ const ConfigurationApiProvider = ({
|
|
|
52183
52192
|
}) => {
|
|
52184
52193
|
const authContext = useAuthContext();
|
|
52185
52194
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
52186
|
-
const sdkVersion = "3.51.
|
|
52195
|
+
const sdkVersion = "3.51.3";
|
|
52187
52196
|
const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
|
|
52188
52197
|
useAnalytics({
|
|
52189
52198
|
onUserEvent,
|
|
@@ -52923,7 +52932,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
52923
52932
|
const [tab, setTab] = useState("metadata");
|
|
52924
52933
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
52925
52934
|
const metadata = {
|
|
52926
|
-
sdkVersion: "3.51.
|
|
52935
|
+
sdkVersion: "3.51.3",
|
|
52927
52936
|
locale: i18n.locale,
|
|
52928
52937
|
rootLegalEntityId: rootLegalEntity.id
|
|
52929
52938
|
};
|
|
@@ -55920,7 +55929,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
55920
55929
|
if (__privateGet(this, _Component)) {
|
|
55921
55930
|
Devtools = __privateGet(this, _Component);
|
|
55922
55931
|
} else {
|
|
55923
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
55932
|
+
Devtools = lazy(() => import("./HO4MOOFI-CGublxkZ.js"));
|
|
55924
55933
|
__privateSet(this, _Component, Devtools);
|
|
55925
55934
|
}
|
|
55926
55935
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -56042,7 +56051,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
56042
56051
|
if (__privateGet(this, _Component2)) {
|
|
56043
56052
|
Devtools = __privateGet(this, _Component2);
|
|
56044
56053
|
} else {
|
|
56045
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
56054
|
+
Devtools = lazy(() => import("./HUY7CZI3-I14bSv-8.js"));
|
|
56046
56055
|
__privateSet(this, _Component2, Devtools);
|
|
56047
56056
|
}
|
|
56048
56057
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -11,5 +11,6 @@ export declare const CONTACTS_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
|
11
11
|
export declare const JOB_TITLE_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
12
12
|
export declare const ISSUER_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
13
13
|
export declare const EXPIRY_DATE_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
14
|
+
export declare const LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
14
15
|
export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
|
|
15
16
|
export declare const rules: FormRules<IndividualSchema>;
|