@adyen/kyc-components 3.62.1 → 3.62.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/{CPIOZS5X-D4aG7Wlk.js → CPIOZS5X-KB2Fkln9.js} +2 -2
- package/dist/{DebugModal-B-HJDkDf.js → DebugModal-DOXNVb2i.js} +6 -6
- package/dist/{Introduction-Dq5o9PHJ.js → Introduction-B5HBUbVx.js} +1 -1
- package/dist/{OKF6E45R-B9F4XGpa.js → OKF6E45R-DXIRgbLr.js} +2 -2
- package/dist/{WXAWMS3D-CKkDzBK4.js → WXAWMS3D-Cxaz1w8Y.js} +1 -1
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-CGoSPr9N.js → core-CixeVdm9.js} +51 -21
- package/dist/{css-BXooEX7C.js → css-C4zB4Coz.js} +1 -1
- package/dist/{json-BrjkCUSC.js → json-DWUfL6uL.js} +1 -1
- package/dist/{plaintext-IwCZX_U2.js → plaintext-BuYfu9Y-.js} +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +5 -1
- package/dist/types/core/models/api/get-scenarios.d.ts +2 -1
- package/dist/{yaml-DGd-xcKY.js → yaml-CrNAjUf2.js} +1 -1
- package/package.json +1 -1
|
@@ -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 "./WXAWMS3D-
|
|
2
|
-
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-Cxaz1w8Y.js";
|
|
2
|
+
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-CixeVdm9.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "preact/hooks";
|
|
3
|
-
import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-
|
|
3
|
+
import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-CixeVdm9.js";
|
|
4
4
|
const tabs = "adyen-kyc-tabs";
|
|
5
5
|
const styles$1 = {
|
|
6
6
|
tabs
|
|
@@ -135,10 +135,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
135
135
|
};
|
|
136
136
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
137
137
|
const moduleMap = {
|
|
138
|
-
plaintext: () => import("./plaintext-
|
|
139
|
-
json: () => import("./json-
|
|
140
|
-
yaml: () => import("./yaml-
|
|
141
|
-
css: () => import("./css-
|
|
138
|
+
plaintext: () => import("./plaintext-BuYfu9Y-.js"),
|
|
139
|
+
json: () => import("./json-DWUfL6uL.js"),
|
|
140
|
+
yaml: () => import("./yaml-CrNAjUf2.js"),
|
|
141
|
+
css: () => import("./css-C4zB4Coz.js")
|
|
142
142
|
};
|
|
143
143
|
const getModule = async (name) => {
|
|
144
144
|
if (!supportedModules.includes(name)) {
|
|
@@ -429,7 +429,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
429
429
|
const [tab, setTab] = useState("metadata");
|
|
430
430
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
431
431
|
const metadata = {
|
|
432
|
-
sdkVersion: "3.62.
|
|
432
|
+
sdkVersion: "3.62.3",
|
|
433
433
|
locale: i18n.locale,
|
|
434
434
|
rootLegalEntityId: rootLegalEntity.id
|
|
435
435
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
3
|
-
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-
|
|
3
|
+
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-CixeVdm9.js";
|
|
4
4
|
import { useMemo } from "preact/compat";
|
|
5
5
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
6
6
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -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 "./WXAWMS3D-
|
|
2
|
-
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-
|
|
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 "./WXAWMS3D-Cxaz1w8Y.js";
|
|
2
|
+
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-CixeVdm9.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -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 { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-
|
|
4
|
+
import { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-CixeVdm9.js";
|
|
5
5
|
var isNonNullable = (i2) => i2 != null;
|
|
6
6
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
7
7
|
function chain(callbacks) {
|
package/dist/adyenConfig.js
CHANGED
|
@@ -23727,18 +23727,42 @@ function useFormContext() {
|
|
|
23727
23727
|
}
|
|
23728
23728
|
return context;
|
|
23729
23729
|
}
|
|
23730
|
+
var Scenarios = /* @__PURE__ */ ((Scenarios2) => {
|
|
23731
|
+
Scenarios2["L"] = "L";
|
|
23732
|
+
Scenarios2["L0"] = "L0";
|
|
23733
|
+
Scenarios2["L1"] = "L1";
|
|
23734
|
+
Scenarios2["L1_ID"] = "L1_ID";
|
|
23735
|
+
Scenarios2["L1_IDO"] = "L1_IDO";
|
|
23736
|
+
Scenarios2["L1_NAT"] = "L1_NAT";
|
|
23737
|
+
Scenarios2["L1_IDDOC"] = "L1_IDDOC";
|
|
23738
|
+
Scenarios2["L2"] = "L2";
|
|
23739
|
+
Scenarios2["L_REGDOC"] = "L_REGDOC";
|
|
23740
|
+
Scenarios2["L_TAXDOC"] = "L_TAXDOC";
|
|
23741
|
+
Scenarios2["L_PROOFOFADDRESS"] = "L_PROOFOFADDRESS";
|
|
23742
|
+
Scenarios2["L_PH"] = "L_PH";
|
|
23743
|
+
Scenarios2["L_MOTION"] = "L_MOTION";
|
|
23744
|
+
return Scenarios2;
|
|
23745
|
+
})(Scenarios || {});
|
|
23730
23746
|
const showIndividualMotionCapture = signal(void 0);
|
|
23731
23747
|
const setShowIndividualMotionCapture = (showMotionCapture) => {
|
|
23732
23748
|
showIndividualMotionCapture.value = showMotionCapture;
|
|
23733
23749
|
};
|
|
23750
|
+
const hasMotionCaptureScenario = signal(void 0);
|
|
23751
|
+
const setHasMotionCaptureScenario = (scenarios) => {
|
|
23752
|
+
hasMotionCaptureScenario.value = scenarios == null ? void 0 : scenarios.includes(Scenarios.L_MOTION);
|
|
23753
|
+
};
|
|
23734
23754
|
const allowedRolesForMotionCapture = [DecisionMakerType.SIGNATORY];
|
|
23735
23755
|
const shouldShowMotionCapture = ({
|
|
23736
23756
|
parentLegalEntityCapabilities,
|
|
23737
23757
|
userRoles,
|
|
23738
23758
|
taskType,
|
|
23739
|
-
capabilities
|
|
23759
|
+
capabilities,
|
|
23760
|
+
hasMotionScenario
|
|
23740
23761
|
}) => {
|
|
23741
23762
|
var _a2;
|
|
23763
|
+
if (!hasMotionScenario) {
|
|
23764
|
+
return false;
|
|
23765
|
+
}
|
|
23742
23766
|
const isIndividual = taskType === TaskTypes.INDIVIDUAL;
|
|
23743
23767
|
const hasRequiredRole = userRoles == null ? void 0 : userRoles.some((role) => allowedRolesForMotionCapture.includes(role));
|
|
23744
23768
|
const hasRequiredCapability = parentLegalEntityCapabilities ? (_a2 = parentLegalEntityCapabilities == null ? void 0 : parentLegalEntityCapabilities.issueBankAccount) == null ? void 0 : _a2.requested : capabilities == null ? void 0 : capabilities.includes("issueBankAccount");
|
|
@@ -26795,7 +26819,8 @@ function Individual(props) {
|
|
|
26795
26819
|
parentLegalEntityCapabilities: parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities,
|
|
26796
26820
|
userRoles: (_a3 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _a3.role,
|
|
26797
26821
|
taskType,
|
|
26798
|
-
capabilities
|
|
26822
|
+
capabilities,
|
|
26823
|
+
hasMotionScenario: hasMotionCaptureScenario == null ? void 0 : hasMotionCaptureScenario.value
|
|
26799
26824
|
})
|
|
26800
26825
|
);
|
|
26801
26826
|
}, [(_i2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _i2.role, parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities, taskType, capabilities]);
|
|
@@ -41743,14 +41768,16 @@ function IndividualDropin({
|
|
|
41743
41768
|
var _a3;
|
|
41744
41769
|
setCountry(((_a3 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _a3.residencyCountry) ?? parentCountry);
|
|
41745
41770
|
}, [(_b2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _b2.residencyCountry, parentCountry]);
|
|
41746
|
-
const getConfigurationData = useCallback(
|
|
41747
|
-
|
|
41771
|
+
const getConfigurationData = useCallback(async () => {
|
|
41772
|
+
var _a3;
|
|
41773
|
+
const configurations = await getConfiguration({
|
|
41748
41774
|
legalEntityType: LegalEntityType.INDIVIDUAL,
|
|
41749
41775
|
capabilities,
|
|
41750
41776
|
country
|
|
41751
|
-
})
|
|
41752
|
-
|
|
41753
|
-
|
|
41777
|
+
});
|
|
41778
|
+
setHasMotionCaptureScenario((_a3 = configurations == null ? void 0 : configurations.matchingScenario) == null ? void 0 : _a3.individual);
|
|
41779
|
+
return configurations;
|
|
41780
|
+
}, [country, capabilities]);
|
|
41754
41781
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
41755
41782
|
parseConfiguration: parseConfiguration$4,
|
|
41756
41783
|
getConfigurationData,
|
|
@@ -44484,7 +44511,7 @@ function TaskList({
|
|
|
44484
44511
|
const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
|
|
44485
44512
|
const handleOnNavigateToBusinessFinancing = () => onNavigateToTask(TaskTypes.BUSINESS_FINANCING);
|
|
44486
44513
|
const handleOnNavigateToTaxReporting = () => onNavigateToTask(TaskTypes.TAX_REPORTING);
|
|
44487
|
-
const hasFinancingTasks = tasks.includes(TaskTypes.
|
|
44514
|
+
const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
|
|
44488
44515
|
const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
44489
44516
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
44490
44517
|
const onEditBusinessSetupClick = () => {
|
|
@@ -48336,7 +48363,8 @@ function IndividualOnfido(props) {
|
|
|
48336
48363
|
parentLegalEntityCapabilities: parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities,
|
|
48337
48364
|
userRoles: (_a3 = data == null ? void 0 : data.basicDetails) == null ? void 0 : _a3.role,
|
|
48338
48365
|
taskType,
|
|
48339
|
-
capabilities
|
|
48366
|
+
capabilities,
|
|
48367
|
+
hasMotionScenario: hasMotionCaptureScenario == null ? void 0 : hasMotionCaptureScenario.value
|
|
48340
48368
|
})
|
|
48341
48369
|
);
|
|
48342
48370
|
}, [(_b2 = data == null ? void 0 : data.basicDetails) == null ? void 0 : _b2.role, parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities, taskType, capabilities]);
|
|
@@ -48875,14 +48903,16 @@ function IndividualOnfidoDropin({
|
|
|
48875
48903
|
var _a3;
|
|
48876
48904
|
setCountry(((_a3 = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _a3.country) ?? parentCountry);
|
|
48877
48905
|
}, [(_d2 = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _d2.country, parentCountry]);
|
|
48878
|
-
const getConfigurationData = useCallback(
|
|
48879
|
-
|
|
48906
|
+
const getConfigurationData = useCallback(async () => {
|
|
48907
|
+
var _a3;
|
|
48908
|
+
const configurations = await getConfiguration({
|
|
48880
48909
|
legalEntityType: LegalEntityType.INDIVIDUAL,
|
|
48881
48910
|
capabilities,
|
|
48882
48911
|
country
|
|
48883
|
-
})
|
|
48884
|
-
|
|
48885
|
-
|
|
48912
|
+
});
|
|
48913
|
+
setHasMotionCaptureScenario((_a3 = configurations == null ? void 0 : configurations.matchingScenario) == null ? void 0 : _a3.individual);
|
|
48914
|
+
return configurations;
|
|
48915
|
+
}, [getConfiguration, capabilities, country]);
|
|
48886
48916
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
48887
48917
|
parseConfiguration: parseConfiguration$2,
|
|
48888
48918
|
getConfigurationData,
|
|
@@ -52909,7 +52939,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
52909
52939
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
52910
52940
|
};
|
|
52911
52941
|
const Introduction = lazy$1(
|
|
52912
|
-
async () => (await import("./Introduction-
|
|
52942
|
+
async () => (await import("./Introduction-B5HBUbVx.js")).Introduction
|
|
52913
52943
|
);
|
|
52914
52944
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
52915
52945
|
const logger$8 = createLogger();
|
|
@@ -57630,7 +57660,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
57630
57660
|
if (__privateGet(this, _Component)) {
|
|
57631
57661
|
Devtools = __privateGet(this, _Component);
|
|
57632
57662
|
} else {
|
|
57633
|
-
Devtools = lazy(() => import("./CPIOZS5X-
|
|
57663
|
+
Devtools = lazy(() => import("./CPIOZS5X-KB2Fkln9.js"));
|
|
57634
57664
|
__privateSet(this, _Component, Devtools);
|
|
57635
57665
|
}
|
|
57636
57666
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -57752,7 +57782,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
57752
57782
|
if (__privateGet(this, _Component2)) {
|
|
57753
57783
|
Devtools = __privateGet(this, _Component2);
|
|
57754
57784
|
} else {
|
|
57755
|
-
Devtools = lazy(() => import("./OKF6E45R-
|
|
57785
|
+
Devtools = lazy(() => import("./OKF6E45R-DXIRgbLr.js"));
|
|
57756
57786
|
__privateSet(this, _Component2, Devtools);
|
|
57757
57787
|
}
|
|
57758
57788
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -57971,7 +58001,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
57971
58001
|
};
|
|
57972
58002
|
};
|
|
57973
58003
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
57974
|
-
const sdkVersion = "3.62.
|
|
58004
|
+
const sdkVersion = "3.62.3";
|
|
57975
58005
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
57976
58006
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
57977
58007
|
const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
|
|
@@ -58045,7 +58075,7 @@ const AnalyticsProvider = ({
|
|
|
58045
58075
|
const { onboardingVersion } = useVersion();
|
|
58046
58076
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
58047
58077
|
const sessionData = {
|
|
58048
|
-
sdkVersion: "3.62.
|
|
58078
|
+
sdkVersion: "3.62.3",
|
|
58049
58079
|
componentName,
|
|
58050
58080
|
userAgent: navigator.userAgent,
|
|
58051
58081
|
legalEntityId,
|
|
@@ -58230,7 +58260,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
|
|
|
58230
58260
|
[baseUrl, rootLegalEntityId]
|
|
58231
58261
|
);
|
|
58232
58262
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
58233
|
-
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.
|
|
58263
|
+
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.3" }),
|
|
58234
58264
|
children2
|
|
58235
58265
|
] });
|
|
58236
58266
|
};
|
|
@@ -58705,7 +58735,7 @@ function StateProvider({
|
|
|
58705
58735
|
);
|
|
58706
58736
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
58707
58737
|
}
|
|
58708
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
58738
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-DOXNVb2i.js").then((n) => n.D)).DebugModal);
|
|
58709
58739
|
const DebugListener = () => {
|
|
58710
58740
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
58711
58741
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Capability, CapabilityName } from '#core/models/api/capability';
|
|
2
2
|
import { DecisionMakerType } from '#core/models/api/decision-maker-type';
|
|
3
|
+
import type { Scenario } from '#models/api/get-scenarios';
|
|
3
4
|
import { TaskTypes } from '#stores/globalStore/taskTypes';
|
|
4
5
|
export declare const showIndividualMotionCapture: import("@preact/signals-core").Signal<boolean>;
|
|
5
6
|
export declare const setShowIndividualMotionCapture: (showMotionCapture: boolean | undefined) => void;
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const hasMotionCaptureScenario: import("@preact/signals-core").Signal<boolean>;
|
|
8
|
+
export declare const setHasMotionCaptureScenario: (scenarios: Scenario[] | undefined) => void;
|
|
9
|
+
export declare const shouldShowMotionCapture: ({ parentLegalEntityCapabilities, userRoles, taskType, capabilities, hasMotionScenario, }: {
|
|
7
10
|
parentLegalEntityCapabilities?: Partial<Record<CapabilityName, Capability>>;
|
|
8
11
|
userRoles?: DecisionMakerType[];
|
|
9
12
|
taskType?: TaskTypes;
|
|
10
13
|
capabilities?: CapabilityName[];
|
|
14
|
+
hasMotionScenario?: boolean;
|
|
11
15
|
}) => boolean | undefined;
|
|
@@ -14,7 +14,8 @@ export declare const enum Scenarios {
|
|
|
14
14
|
L_REGDOC = "L_REGDOC",
|
|
15
15
|
L_TAXDOC = "L_TAXDOC",
|
|
16
16
|
L_PROOFOFADDRESS = "L_PROOFOFADDRESS",
|
|
17
|
-
L_PH = "L_PH"
|
|
17
|
+
L_PH = "L_PH",
|
|
18
|
+
L_MOTION = "L_MOTION"
|
|
18
19
|
}
|
|
19
20
|
export type Scenario = `${Scenarios}`;
|
|
20
21
|
export interface GetScenariosResponse {
|