@adyen/kyc-components 4.13.0-beta.0 → 4.13.0-beta.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/{AdaptiveWorkflow-D5FObJ-e.js → AdaptiveWorkflow-rw87nTVq.js} +26 -25
- package/dist/{AdaptiveWorkflowComponent-g2i8ubmD.js → AdaptiveWorkflowComponent-LGv3nI6L.js} +1 -1
- package/dist/{DebugModal-DqBSxQZ6.js → DebugModal-Bw1SyycN.js} +2 -2
- package/dist/{PayoutDetailsPage-CfWROkJA.js → PayoutDetailsPage-ChsSeEPB.js} +1 -1
- package/dist/adyen-business-financing.js +1 -1
- package/dist/adyen-individual-configuration.js +1 -1
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +1 -1
- package/dist/adyen-onboarding.js +4 -4
- package/dist/adyen-terms-of-service-management.js +1 -1
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +1 -1
- package/dist/adyen-transfer-instrument-management.js +1 -1
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{resolveEnvironment-VjuZ5n9n.js → resolveEnvironment-DFEOfLcA.js} +5 -5
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +6 -6
- package/dist/types/adaptiveWorkflow/components/types.d.ts +12 -6
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
- package/dist/{useNavigate-b9V7fbV8.js → useNavigate-Cux5bWjD.js} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9573aa94-cd25-4b2f-a649-b3692284b1e9", e._sentryDebugIdIdentifier = "sentry-dbid-9573aa94-cd25-4b2f-a649-b3692284b1e9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
6
|
import { n as IconButton, r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
@@ -120,14 +120,15 @@ var AdaptiveWorkflow_module_default = {
|
|
|
120
120
|
};
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region src/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.tsx
|
|
123
|
-
var AcceptTermsOfServiceWorkflow = ({ onComplete, onClose
|
|
124
|
-
|
|
123
|
+
var AcceptTermsOfServiceWorkflow = ({ onComplete, onClose }) => {
|
|
124
|
+
const { entity } = useWorkflowContext();
|
|
125
|
+
if (!entity.value?.id) return /* @__PURE__ */ jsx(EndStateLayout, {
|
|
125
126
|
variant: "error",
|
|
126
127
|
title: "Something went wrong",
|
|
127
128
|
description: "Please try again later"
|
|
128
129
|
});
|
|
129
130
|
return /* @__PURE__ */ jsx(AcceptTermsOfServiceComponent, {
|
|
130
|
-
legalEntityId:
|
|
131
|
+
legalEntityId: entity.value.id,
|
|
131
132
|
onComplete,
|
|
132
133
|
onClose
|
|
133
134
|
});
|
|
@@ -928,7 +929,7 @@ function mapFormValuesToPayload({ steps, globals, formValues }) {
|
|
|
928
929
|
data: {}
|
|
929
930
|
};
|
|
930
931
|
const apiValue = getNestedValue$3(formValues, component.path);
|
|
931
|
-
const resolvedProps = resolveComponentProps(globals.value, component.
|
|
932
|
+
const resolvedProps = resolveComponentProps(globals.value, component.properties);
|
|
932
933
|
domainPayloads[domain].id = resolvedProps?.resourceId;
|
|
933
934
|
if (subPath) setNestedValue(domainPayloads[domain].data, subPath, apiValue);
|
|
934
935
|
else Object.assign(domainPayloads[domain].data, apiValue);
|
|
@@ -1010,21 +1011,21 @@ function useCustomerData(steps) {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
//#endregion
|
|
1012
1013
|
//#region src/adaptiveWorkflow/components/DynamicForm/DynamicForm.tsx
|
|
1013
|
-
function renderSimpleField(
|
|
1014
|
-
const FieldComponent = simpleComponentMap[
|
|
1014
|
+
function renderSimpleField(component, field) {
|
|
1015
|
+
const FieldComponent = simpleComponentMap[component];
|
|
1015
1016
|
if (FieldComponent) return /* @__PURE__ */ jsx(FieldComponent, {
|
|
1016
|
-
name:
|
|
1017
|
+
name: component,
|
|
1017
1018
|
handleChangeFor: field.handleChange
|
|
1018
1019
|
});
|
|
1019
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", { children:
|
|
1020
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", { children: component }), /* @__PURE__ */ jsx(InputText, {
|
|
1020
1021
|
onInput: field.handleChange,
|
|
1021
1022
|
onBlur: field.handleChange,
|
|
1022
|
-
name:
|
|
1023
|
+
name: component
|
|
1023
1024
|
})] });
|
|
1024
1025
|
}
|
|
1025
1026
|
function renderCompoundField(compoundFieldProps) {
|
|
1026
|
-
const {
|
|
1027
|
-
const CompoundComponent = compoundComponentMap[
|
|
1027
|
+
const { component, form, basePath, props } = compoundFieldProps;
|
|
1028
|
+
const CompoundComponent = compoundComponentMap[component];
|
|
1028
1029
|
if (CompoundComponent) return /* @__PURE__ */ jsx(CompoundComponent, {
|
|
1029
1030
|
form,
|
|
1030
1031
|
basePath,
|
|
@@ -1081,16 +1082,16 @@ function DynamicForm({ onClose, onComplete, steps }) {
|
|
|
1081
1082
|
description: descriptionKey && t(($) => $[descriptionKey])
|
|
1082
1083
|
}), currentStep.componentGroups.map((componentGroup) => {
|
|
1083
1084
|
return componentGroup.components.map((component) => {
|
|
1084
|
-
const componentProps = resolveComponentProps(globals.value, component.
|
|
1085
|
-
if (component.componentType === "
|
|
1086
|
-
|
|
1085
|
+
const componentProps = resolveComponentProps(globals.value, component.properties);
|
|
1086
|
+
if (component.componentType === "COMPOUND") return renderCompoundField({
|
|
1087
|
+
component: component.component,
|
|
1087
1088
|
form,
|
|
1088
1089
|
basePath: component.path,
|
|
1089
1090
|
props: componentProps
|
|
1090
1091
|
});
|
|
1091
|
-
if (component.componentType === "
|
|
1092
|
+
if (component.componentType === "FIELD") return /* @__PURE__ */ jsx(form.Field, {
|
|
1092
1093
|
name: component.path,
|
|
1093
|
-
children: (field) => renderSimpleField(component.
|
|
1094
|
+
children: (field) => renderSimpleField(component.component, field)
|
|
1094
1095
|
}, component.path);
|
|
1095
1096
|
});
|
|
1096
1097
|
})] }, currentStep.id)
|
|
@@ -1152,20 +1153,20 @@ function DynamicForm({ onClose, onComplete, steps }) {
|
|
|
1152
1153
|
*
|
|
1153
1154
|
* Specialized components are self-contained units that handle their own field rendering,
|
|
1154
1155
|
* multi-step forms (if applicable), and data submission. They are looked up from the
|
|
1155
|
-
* {@link specializedComponentMap} registry using the `
|
|
1156
|
+
* {@link specializedComponentMap} registry using the `component` provided by the AWE manifest.
|
|
1156
1157
|
*
|
|
1157
|
-
* @param
|
|
1158
|
+
* @param component - name used to resolve the component from the registry
|
|
1158
1159
|
* @param onComplete - Forwarded to the resolved component; called when its flow finishes
|
|
1159
1160
|
* @param onClose - Forwarded to the resolved component; called to dismiss the modal
|
|
1160
|
-
* @param
|
|
1161
|
+
* @param properties - properties returned from AWE
|
|
1161
1162
|
* @returns The matched specialized component, or an error end-state if the component
|
|
1162
1163
|
* is not found in the registry or the `id` is missing
|
|
1163
1164
|
*/
|
|
1164
|
-
var SpecializedComponent = ({
|
|
1165
|
+
var SpecializedComponent = ({ component, onComplete, onClose, properties }) => {
|
|
1165
1166
|
const { globals } = useWorkflowContext();
|
|
1166
|
-
const Component = specializedComponentMap[
|
|
1167
|
+
const Component = specializedComponentMap[component];
|
|
1167
1168
|
const mappedProps = useComputed(() => {
|
|
1168
|
-
return resolveComponentProps(globals.value,
|
|
1169
|
+
return resolveComponentProps(globals.value, properties);
|
|
1169
1170
|
});
|
|
1170
1171
|
if (Component) return /* @__PURE__ */ jsx(Component, {
|
|
1171
1172
|
onComplete,
|
|
@@ -1265,8 +1266,8 @@ var contextMap$1 = {
|
|
|
1265
1266
|
//#region src/adaptiveWorkflow/components/Task/Task.tsx
|
|
1266
1267
|
var SpecializedTaskComponent = ({ taskItem, status, onClick }) => {
|
|
1267
1268
|
const { globals } = useWorkflowContext();
|
|
1268
|
-
const TaskComponent = specializedTaskComponentMap[taskItem.
|
|
1269
|
-
const mappedProps = resolveComponentProps(globals.value, taskItem.
|
|
1269
|
+
const TaskComponent = specializedTaskComponentMap[taskItem.component];
|
|
1270
|
+
const mappedProps = resolveComponentProps(globals.value, taskItem.properties) ?? {};
|
|
1270
1271
|
if (TaskComponent) return /* @__PURE__ */ jsx(TaskComponent, {
|
|
1271
1272
|
id: taskItem.id,
|
|
1272
1273
|
status,
|
package/dist/{AdaptiveWorkflowComponent-g2i8ubmD.js → AdaptiveWorkflowComponent-LGv3nI6L.js}
RENAMED
|
@@ -5,7 +5,7 @@ try {
|
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
6
|
import { r as Loader } from "./Button-BxfzWsRl.js";
|
|
7
7
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
8
|
-
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-
|
|
8
|
+
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-rw87nTVq.js";
|
|
9
9
|
import { useMemo } from "preact/hooks";
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { signal } from "@preact/signals";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "519fc59e-5d38-43b7-83da-8f41bb32675c", e._sentryDebugIdIdentifier = "sentry-dbid-519fc59e-5d38-43b7-83da-8f41bb32675c");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { a as Icon, o as createLogger, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
6
|
import { t as Button } from "./Button-BxfzWsRl.js";
|
|
@@ -349,7 +349,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
349
349
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
350
350
|
const formDebugAvailable = Object.keys(formDebugInfo.value).length > 0;
|
|
351
351
|
const metadata = {
|
|
352
|
-
sdkVersion: "4.13.0-beta.
|
|
352
|
+
sdkVersion: "4.13.0-beta.1",
|
|
353
353
|
locale: i18n.language,
|
|
354
354
|
rootLegalEntityId: rootLegalEntity.id
|
|
355
355
|
};
|
|
@@ -8,7 +8,7 @@ import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-k2lxoMzW.js"
|
|
|
8
8
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
9
9
|
import { C as EntityTypes } from "./processCapabilities-C3-DrzSD.js";
|
|
10
10
|
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-B9GOFyRX.js";
|
|
11
|
-
import { t as useNavigate } from "./useNavigate-
|
|
11
|
+
import { t as useNavigate } from "./useNavigate-Cux5bWjD.js";
|
|
12
12
|
import { t as PayoutDetailsDropinMultiForm } from "./PayoutDetailsDropinMultiForm-CFXh9XH3.js";
|
|
13
13
|
import { jsx } from "preact/jsx-runtime";
|
|
14
14
|
import { useParams } from "wouter-preact";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "49feeb75-cc51-4dd5-9379-4aec1de23eac", e._sentryDebugIdIdentifier = "sentry-dbid-49feeb75-cc51-4dd5-9379-4aec1de23eac");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { r as Loader } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-k2lxoMzW.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "35c42e9a-98d8-405a-9f6d-af389d2955da", e._sentryDebugIdIdentifier = "sentry-dbid-35c42e9a-98d8-405a-9f6d-af389d2955da");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { r as Loader } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-k2lxoMzW.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c54439ab-699d-426d-ae0e-6ec9d005de71", e._sentryDebugIdIdentifier = "sentry-dbid-c54439ab-699d-426d-ae0e-6ec9d005de71");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { s as useApiContext } from "./http-D5tz1jGD.js";
|
|
8
8
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-k2lxoMzW.js";
|
|
9
9
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c00fcf27-21d6-4d5e-bd83-0f3a75896e2a", e._sentryDebugIdIdentifier = "sentry-dbid-c00fcf27-21d6-4d5e-bd83-0f3a75896e2a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
5
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
6
6
|
import { t as InvitedDecisionMakerComponent } from "./InvitedDecisionMakerComponent-C1gqGJsQ.js";
|
|
7
7
|
import register from "preact-custom-element";
|
|
8
8
|
import { jsx } from "preact/jsx-runtime";
|
package/dist/adyen-onboarding.js
CHANGED
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d4fd6ebb-8558-4ba1-becf-5808f4ee67da", e._sentryDebugIdIdentifier = "sentry-dbid-d4fd6ebb-8558-4ba1-becf-5808f4ee67da");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { a as Icon, i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, r as useToggles, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, r as useToggles, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { n as IconButton, r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-D5tz1jGD.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-k2lxoMzW.js";
|
|
@@ -55,7 +55,7 @@ import { t as isNewEntity } from "./isNewEntity-BCb_oxKh.js";
|
|
|
55
55
|
import { a as idNowPostSubmit, n as isBafinSignatoryFlow, s as showIdNowModal } from "./bafinUtils-DJ5gJYKz.js";
|
|
56
56
|
import { t as useTrustMembers } from "./useTrustMembers-DYKQfH8R.js";
|
|
57
57
|
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-CtwHVLzp.js";
|
|
58
|
-
import { A as UnincorporatedPartnershipMembersOverview$1, C as TrustMemberCompanyPage$1, D as UnincorporatedPartnershipIndividualPage$1, E as TrustMembersOverview$1, M as getDefaultTask$1, O as UnincorporatedPartnershipMemberCompanyPage$1, S as TrustDetailsPage$1, T as TrustMemberRoleAndTypePage$1, _ as SignPCIComponent$1, a as BusinessTypeSelectionPage$1, b as SourceOfFundsPage$1, c as DecisionMakers$1, d as PayoutDetailsPage$1, f as ROUTE_PATHS, g as RootIndividualDetailsPage$1, h as RootBusinessLinesPage$1, i as BusinessFinancingPage$1, j as detectBasePath, k as UnincorporatedPartnershipMemberRoleAndTypePage$1, l as Introduction$1, m as RootBusinessDetailsPage$1, n as AcceptTermsOfService$1, o as CustomerSupport$1, p as Review$1, r as AccountSetupRejected$1, s as DecisionMakerDetailsPage$1, t as useNavigate, u as LegalRepresentativeDetailsPage$1, v as SingpassSelection$1, w as TrustMemberIndividualPage$1, x as TaxReportingDropin$1, y as SoleProprietorshipPage$1 } from "./useNavigate-
|
|
58
|
+
import { A as UnincorporatedPartnershipMembersOverview$1, C as TrustMemberCompanyPage$1, D as UnincorporatedPartnershipIndividualPage$1, E as TrustMembersOverview$1, M as getDefaultTask$1, O as UnincorporatedPartnershipMemberCompanyPage$1, S as TrustDetailsPage$1, T as TrustMemberRoleAndTypePage$1, _ as SignPCIComponent$1, a as BusinessTypeSelectionPage$1, b as SourceOfFundsPage$1, c as DecisionMakers$1, d as PayoutDetailsPage$1, f as ROUTE_PATHS, g as RootIndividualDetailsPage$1, h as RootBusinessLinesPage$1, i as BusinessFinancingPage$1, j as detectBasePath, k as UnincorporatedPartnershipMemberRoleAndTypePage$1, l as Introduction$1, m as RootBusinessDetailsPage$1, n as AcceptTermsOfService$1, o as CustomerSupport$1, p as Review$1, r as AccountSetupRejected$1, s as DecisionMakerDetailsPage$1, t as useNavigate, u as LegalRepresentativeDetailsPage$1, v as SingpassSelection$1, w as TrustMemberIndividualPage$1, x as TaxReportingDropin$1, y as SoleProprietorshipPage$1 } from "./useNavigate-Cux5bWjD.js";
|
|
59
59
|
import register from "preact-custom-element";
|
|
60
60
|
import { Suspense, lazy } from "preact/compat";
|
|
61
61
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
@@ -1763,7 +1763,7 @@ var Review = lazy(async () => (await import("./Review-GGx4T5lx.js")).Review);
|
|
|
1763
1763
|
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-CPjxKwUt.js").then((n) => n.n)).SignPCIComponent);
|
|
1764
1764
|
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-Bdb6OG0V.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
|
|
1765
1765
|
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-Xjf5BXjR.js").then((n) => n.n)).TaxReportingDropin);
|
|
1766
|
-
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-
|
|
1766
|
+
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-ChsSeEPB.js")).PayoutDetailsPage);
|
|
1767
1767
|
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-DONnHveK.js")).RootBusinessDetailsPage);
|
|
1768
1768
|
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-B-zkaI6w.js")).RootBusinessLinesPage);
|
|
1769
1769
|
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-BqX-btX5.js")).SoleProprietorshipPage);
|
|
@@ -2287,7 +2287,7 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
|
|
|
2287
2287
|
}
|
|
2288
2288
|
//#endregion
|
|
2289
2289
|
//#region src/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.tsx
|
|
2290
|
-
var AdaptiveWorkflowComponent = lazy(async () => (await import("./AdaptiveWorkflowComponent-
|
|
2290
|
+
var AdaptiveWorkflowComponent = lazy(async () => (await import("./AdaptiveWorkflowComponent-LGv3nI6L.js")).AdaptiveWorkflowComponent);
|
|
2291
2291
|
function OnboardingDropinComponent({ legalEntityId, openBankingPartnerConfigId }) {
|
|
2292
2292
|
const { isFeatureEnabled } = useToggleContext();
|
|
2293
2293
|
if (!legalEntityId) throw new Error("Must provide at-least legalEntityId");
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "29ba5771-76f7-4d6a-a86b-5c7cebed1d6a", e._sentryDebugIdIdentifier = "sentry-dbid-29ba5771-76f7-4d6a-a86b-5c7cebed1d6a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
5
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
6
6
|
import { t as emitAdyenSdkEvent } from "./emitEvent-B8K0cb1F.js";
|
|
7
7
|
import { t as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-Bdb6OG0V.js";
|
|
8
8
|
import register from "preact-custom-element";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9eb9b18f-08a7-43b9-90a8-5baa086132c9", e._sentryDebugIdIdentifier = "sentry-dbid-9eb9b18f-08a7-43b9-90a8-5baa086132c9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { s as useApiContext } from "./http-D5tz1jGD.js";
|
|
8
8
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
9
9
|
import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-C04Xyc0M.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e16c0bff-4908-4f1d-951a-033197a39131", e._sentryDebugIdIdentifier = "sentry-dbid-e16c0bff-4908-4f1d-951a-033197a39131");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { r as Loader } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-k2lxoMzW.js";
|
|
9
9
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b7647edc-1ae0-4963-b80e-0df77a8f362c", e._sentryDebugIdIdentifier = "sentry-dbid-b7647edc-1ae0-4963-b80e-0df77a8f362c");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { n as httpGet, s as useApiContext } from "./http-D5tz1jGD.js";
|
|
9
9
|
import { c as entriesOf, n as cloneObject } from "./AnalyticsContext-CbM5V7Nw.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ef0d7d7c-e62d-4ac2-a35d-d158376c8ca1", e._sentryDebugIdIdentifier = "sentry-dbid-ef0d7d7c-e62d-4ac2-a35d-d158376c8ca1");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BHUZ_WP7.js";
|
|
6
|
-
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-
|
|
6
|
+
import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DFEOfLcA.js";
|
|
7
7
|
import { r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
8
8
|
import { r as httpPost, s as useApiContext } from "./http-D5tz1jGD.js";
|
|
9
9
|
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-C4ugHLZT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0738b8f6-3ca6-4db8-9ae0-0fcdf4f67b2f", e._sentryDebugIdIdentifier = "sentry-dbid-0738b8f6-3ca6-4db8-9ae0-0fcdf4f67b2f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, o as createLogger, r as useTranslation, s as initReactI18next } from "./translation-BHUZ_WP7.js";
|
|
6
6
|
import { r as Loader, t as Button } from "./Button-BxfzWsRl.js";
|
|
@@ -302,7 +302,7 @@ var getAnalyticsAssociatedEntityDetails = (rootLegalEntity, accountHolderType) =
|
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region src/hooks/useAnalytics/useAnalytics.ts
|
|
304
304
|
var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
|
|
305
|
-
const sdkVersion = "4.13.0-beta.
|
|
305
|
+
const sdkVersion = "4.13.0-beta.1";
|
|
306
306
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
307
307
|
const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
|
|
308
308
|
const { accountHolder } = useAccountHolder();
|
|
@@ -397,7 +397,7 @@ var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale })
|
|
|
397
397
|
const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
|
|
398
398
|
const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
|
|
399
399
|
const sessionData = {
|
|
400
|
-
sdkVersion: "4.13.0-beta.
|
|
400
|
+
sdkVersion: "4.13.0-beta.1",
|
|
401
401
|
componentName,
|
|
402
402
|
userAgent: navigator.userAgent,
|
|
403
403
|
legalEntityId: rootLegalEntityId,
|
|
@@ -853,7 +853,7 @@ var AllowedCountryGate = ({ children }) => {
|
|
|
853
853
|
};
|
|
854
854
|
//#endregion
|
|
855
855
|
//#region src/components/Shared/devex/DebugListener/DebugListener.tsx
|
|
856
|
-
var DebugModal = lazy(async () => (await import("./DebugModal-
|
|
856
|
+
var DebugModal = lazy(async () => (await import("./DebugModal-Bw1SyycN.js")).DebugModal);
|
|
857
857
|
/**
|
|
858
858
|
* Adds a listener on the page to open the debug modal when the
|
|
859
859
|
* debug modal key combination is pressed to open it
|
|
@@ -951,7 +951,7 @@ var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExpe
|
|
|
951
951
|
children: /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
|
|
952
952
|
id: "sdk-version",
|
|
953
953
|
hidden: true,
|
|
954
|
-
children: "4.13.0-beta.
|
|
954
|
+
children: "4.13.0-beta.1"
|
|
955
955
|
}), /* @__PURE__ */ jsx(AnalyticsProvider, {
|
|
956
956
|
componentName,
|
|
957
957
|
locale,
|
|
@@ -34,7 +34,7 @@ export declare const specializedComponentMap: {
|
|
|
34
34
|
SourceOfFunds: ({ onComplete, onClose, resourceId, }: import("./components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow").SourceOfFundsWorkflowProps) => import("preact/jsx-runtime").JSX.Element;
|
|
35
35
|
IdentityScreening: (props: import("../components/Individual/tasks/DecisionMakers/types").DecisionMakersProps) => import("preact/jsx-runtime").JSX.Element;
|
|
36
36
|
TaxReporting: ({ onComplete, onClose, resourceId, }: import("./components/Fields/TaxReportingWorkflow/TaxReportingWorkflow").TaxReportingWorkflowProps) => import("preact/jsx-runtime").JSX.Element;
|
|
37
|
-
AcceptTermsOfService: ({ onComplete, onClose,
|
|
37
|
+
AcceptTermsOfService: ({ onComplete, onClose, }: import("./components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow").AcceptTermsOfServiceWorkflowProps) => import("preact/jsx-runtime").JSX.Element;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Registry for specialized components used for rendering tasks in the UI which replace the default component used to represent tasks.
|
|
@@ -2,4 +2,4 @@ import type { SpecializedComponentBaseProps } from '../../SpecializedComponent/S
|
|
|
2
2
|
export interface AcceptTermsOfServiceWorkflowProps extends SpecializedComponentBaseProps {
|
|
3
3
|
resourceId: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const AcceptTermsOfServiceWorkflow: ({ onComplete, onClose,
|
|
5
|
+
export declare const AcceptTermsOfServiceWorkflow: ({ onComplete, onClose, }: AcceptTermsOfServiceWorkflowProps) => import("preact/jsx-runtime").JSX.Element;
|
package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import type { ComponentConfig } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Base props shared by all specialized components.
|
|
4
4
|
* Each specialized component receives these props from the {@link SpecializedComponent} wrapper.
|
|
5
|
-
* @param id The entity ID associated with this workflow task
|
|
6
5
|
* @param onComplete callback when the component's data collection is completed
|
|
7
6
|
* @param onClose callback for handling close action
|
|
7
|
+
* @param properties properties returend from AWE
|
|
8
8
|
*/
|
|
9
9
|
export interface SpecializedComponentBaseProps {
|
|
10
10
|
onComplete: () => void;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
|
|
12
|
+
properties?: ComponentConfig['properties'];
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Props for the {@link SpecializedComponent} wrapper, combining the component
|
|
@@ -22,13 +22,13 @@ export interface SpecializedComponentProps extends ComponentConfig, SpecializedC
|
|
|
22
22
|
*
|
|
23
23
|
* Specialized components are self-contained units that handle their own field rendering,
|
|
24
24
|
* multi-step forms (if applicable), and data submission. They are looked up from the
|
|
25
|
-
* {@link specializedComponentMap} registry using the `
|
|
25
|
+
* {@link specializedComponentMap} registry using the `component` provided by the AWE manifest.
|
|
26
26
|
*
|
|
27
|
-
* @param
|
|
27
|
+
* @param component - name used to resolve the component from the registry
|
|
28
28
|
* @param onComplete - Forwarded to the resolved component; called when its flow finishes
|
|
29
29
|
* @param onClose - Forwarded to the resolved component; called to dismiss the modal
|
|
30
|
-
* @param
|
|
30
|
+
* @param properties - properties returned from AWE
|
|
31
31
|
* @returns The matched specialized component, or an error end-state if the component
|
|
32
32
|
* is not found in the registry or the `id` is missing
|
|
33
33
|
*/
|
|
34
|
-
export declare const SpecializedComponent: ({
|
|
34
|
+
export declare const SpecializedComponent: ({ component, onComplete, onClose, properties, }: SpecializedComponentProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -60,26 +60,32 @@ export type PropValue = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Config for an individual UI component.
|
|
62
62
|
* @param id used for context mapping
|
|
63
|
-
* @param
|
|
63
|
+
* @param component name of component to map to in component registry
|
|
64
64
|
* @param componentType determines how the component is rendered:
|
|
65
65
|
* - `field` — a simple form field wrapped in a single `form.Field` and mapped to a single data point.
|
|
66
66
|
* - `compound` — a compound component that links several related fields (ex. data points nested in one object) associated with one base requirement path.
|
|
67
67
|
* - `specialized` — a self-contained component handling its own rendering, form steps, and submission.
|
|
68
68
|
* @param path path to a data point as returned from requirements engine, which will be used for data submission
|
|
69
69
|
* @param value value of a field
|
|
70
|
-
* @param
|
|
70
|
+
* @param properties props passed into rendered components
|
|
71
71
|
*/
|
|
72
72
|
export interface ComponentConfig {
|
|
73
73
|
id: string;
|
|
74
|
-
|
|
75
|
-
componentType: '
|
|
74
|
+
component: ComponentName;
|
|
75
|
+
componentType: 'FIELD' | 'COMPOUND' | 'SPECIALIZED';
|
|
76
76
|
path: string;
|
|
77
77
|
status: WorkflowStatus;
|
|
78
78
|
value?: unknown;
|
|
79
|
-
|
|
79
|
+
properties?: Record<string, PropValue> & Partial<ReservedProps>;
|
|
80
|
+
remediations?: {
|
|
81
|
+
remediationsContext: {
|
|
82
|
+
reasonCode: string;
|
|
83
|
+
userMessage: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
80
86
|
}
|
|
81
87
|
export interface TaskItemConfig extends Omit<ComponentConfig, 'path'> {
|
|
82
|
-
|
|
88
|
+
component: SpecializedTaskComponentName;
|
|
83
89
|
}
|
|
84
90
|
export type ReservedProps = {
|
|
85
91
|
resourceId: {
|
|
@@ -11,7 +11,7 @@ export declare function setNestedValue(obj: Record<string, unknown>, path: strin
|
|
|
11
11
|
* @param globals
|
|
12
12
|
* @param componentProps
|
|
13
13
|
*/
|
|
14
|
-
export declare function resolveComponentProps(globals: AweWorkflowResponse['globals'], componentProps: ComponentConfig['
|
|
14
|
+
export declare function resolveComponentProps(globals: AweWorkflowResponse['globals'], componentProps: ComponentConfig['properties']): Record<string, unknown> | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Check if adaptive POC can be shown
|
|
17
17
|
* @param isPocEnabled feature toggle
|
|
@@ -26,7 +26,7 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/router/routeConfig.ts
|
|
28
28
|
var Introduction = lazy(async () => (await import("./Introduction-p7SxkPvq.js")).Introduction);
|
|
29
|
-
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-
|
|
29
|
+
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-rw87nTVq.js")).AdaptiveWorkflow);
|
|
30
30
|
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-D0jjyKgo.js")).BusinessTypeSelectionPage);
|
|
31
31
|
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-c3hLW3jo.js")).SingpassSelection);
|
|
32
32
|
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-MS5ucnkH.js")).AccountSetupRejected);
|
|
@@ -36,7 +36,7 @@ var Review = lazy(async () => (await import("./Review-GGx4T5lx.js")).Review);
|
|
|
36
36
|
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-CPjxKwUt.js").then((n) => n.n)).SignPCIComponent);
|
|
37
37
|
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-Bdb6OG0V.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
|
|
38
38
|
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-Xjf5BXjR.js").then((n) => n.n)).TaxReportingDropin);
|
|
39
|
-
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-
|
|
39
|
+
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-ChsSeEPB.js")).PayoutDetailsPage);
|
|
40
40
|
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-DONnHveK.js")).RootBusinessDetailsPage);
|
|
41
41
|
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-B-zkaI6w.js")).RootBusinessLinesPage);
|
|
42
42
|
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-BqX-btX5.js")).SoleProprietorshipPage);
|