@incodetech/core 2.0.0-alpha.9 → 2.0.0-rc.0
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/Actor-CI32dTbG.d.ts +2 -0
- package/dist/BaseWasmProvider-C_DLEI40.esm.js +1118 -0
- package/dist/BrowserStorageProvider-CuOW1Er2.esm.js +55 -0
- package/dist/BrowserTimerProvider-DhNc_x02.esm.js +22 -0
- package/dist/ITimerCapability-C67ZRskg.esm.js +7 -0
- package/dist/IpifyProvider-D7jx52AL.esm.js +139 -0
- package/dist/MotionSensorProvider-4v7xkqAp.esm.js +254 -0
- package/dist/OpenViduRecordingProvider-CMu6XVdc.esm.js +87 -0
- package/dist/StateMachine-BCQrZJhf.d.ts +2 -0
- package/dist/WasmUtilProvider-j98OJf-S.esm.js +114 -0
- package/dist/addressSearch-BpTbTWCa.esm.js +430 -0
- package/dist/ae-signature-DDDZmWXj.esm.js +12 -0
- package/dist/ae-signature.d.ts +25 -0
- package/dist/ae-signature.esm.js +8 -0
- package/dist/antifraud.d.ts +57 -0
- package/dist/antifraud.esm.js +45 -0
- package/dist/antifraudStateMachine-O0TMf6yc.esm.js +39 -0
- package/dist/api-CESGtpbH.esm.js +53 -0
- package/dist/authentication.d.ts +12 -0
- package/dist/authentication.esm.js +25 -0
- package/dist/authenticationManager-5M-fKzXx.esm.js +67 -0
- package/dist/authenticationManager-C83GNIhl.d.ts +66 -0
- package/dist/authenticationStateMachine-BMZqatiF.esm.js +139 -0
- package/dist/backCameraStream-DMdMeGk2.esm.js +346 -0
- package/dist/browserSimulation-gxD8cSpM.esm.js +20 -0
- package/dist/camera-DBSxa6ML.d.ts +4 -0
- package/dist/camera-PA2Ljri3.esm.js +22 -0
- package/dist/camera.d.ts +15 -0
- package/dist/camera.esm.js +5 -0
- package/dist/consent.d.ts +398 -0
- package/dist/consent.esm.js +79 -0
- package/dist/consentStateMachine-CCT-B60O.esm.js +151 -0
- package/dist/cpf-PPz2Njto.esm.js +38 -0
- package/dist/cpf-ocr.d.ts +204 -0
- package/dist/cpf-ocr.esm.js +177 -0
- package/dist/cross-document-data-match.d.ts +34 -0
- package/dist/cross-document-data-match.esm.js +71 -0
- package/dist/curp-validation.d.ts +188 -0
- package/dist/curp-validation.esm.js +110 -0
- package/dist/curpValidationStateMachine-CitWLr2c.esm.js +595 -0
- package/dist/custom-fields.d.ts +115 -0
- package/dist/custom-fields.esm.js +177 -0
- package/dist/custom-watchlist.d.ts +66 -0
- package/dist/custom-watchlist.esm.js +86 -0
- package/dist/dateUtils-UoN5xswP.esm.js +23 -0
- package/dist/deepsightLoader-Cm4JIT_z.esm.js +52 -0
- package/dist/deepsightService-CEVxzehb.d.ts +412 -0
- package/dist/deepsightService-O74l4Y__.esm.js +489 -0
- package/dist/device.d.ts +46 -0
- package/dist/device.esm.js +106 -0
- package/dist/displayErrors-DqJ_IbsG.d.ts +39 -0
- package/dist/document-capture.d.ts +906 -0
- package/dist/document-capture.esm.js +156 -0
- package/dist/document-upload.d.ts +331 -0
- package/dist/document-upload.esm.js +203 -0
- package/dist/documentCaptureStateMachine-BqzTDy9k.esm.js +394 -0
- package/dist/dynamic-forms.d.ts +178 -0
- package/dist/dynamic-forms.esm.js +323 -0
- package/dist/ekyb.d.ts +148 -0
- package/dist/ekyb.esm.js +127 -0
- package/dist/ekybStateMachine-B59rQjgj.esm.js +674 -0
- package/dist/ekyc.d.ts +164 -0
- package/dist/ekyc.esm.js +104 -0
- package/dist/ekycStateMachine-oeO0Iekd.esm.js +10626 -0
- package/dist/electronic-signature.d.ts +4 -0
- package/dist/electronic-signature.esm.js +7 -0
- package/dist/electronicSignatureManager-D9OHzTpG.esm.js +428 -0
- package/dist/email.d.ts +3 -263
- package/dist/email.esm.js +7 -477
- package/dist/emailManager-DIfnS5g1.d.ts +352 -0
- package/dist/emailManager-wAV0LE-H.esm.js +238 -0
- package/dist/emailStateMachine-DOf4j58N.esm.js +292 -0
- package/dist/endpoints-CnN3SyDa.esm.js +87 -0
- package/dist/events-D6-e4vok.esm.js +596 -0
- package/dist/events.d.ts +265 -0
- package/dist/events.esm.js +4 -0
- package/dist/extensibility.d.ts +122 -0
- package/dist/extensibility.esm.js +43 -0
- package/dist/face-match.d.ts +228 -0
- package/dist/face-match.esm.js +173 -0
- package/dist/faceCaptureManagerFactory-Dh2PdGlF.esm.js +290 -0
- package/dist/faceCaptureManagerFactory-yqtpxjnN.d.ts +690 -0
- package/dist/faceCaptureSetup-B3faSpYA.esm.js +873 -0
- package/dist/faceMatchStateMachine-DNFrxTFS.esm.js +127 -0
- package/dist/flow-events.d.ts +6 -0
- package/dist/flow-events.esm.js +0 -0
- package/dist/flow.d.ts +101 -321
- package/dist/flow.esm.js +370 -173
- package/dist/flowCompletionService-DhkT4SRY.d.ts +10 -0
- package/dist/flowCompletionService-P54yzGvA.esm.js +13 -0
- package/dist/flowServices-DTsm-Vf1.esm.js +188 -0
- package/dist/geolocation.d.ts +127 -0
- package/dist/geolocation.esm.js +89 -0
- package/dist/geolocationStateMachine-asasuHY2.esm.js +105 -0
- package/dist/getBrowser-BSXUTWXw.esm.js +41 -0
- package/dist/getDeviceClass-BSntT9_j.esm.js +14 -0
- package/dist/government-validation.d.ts +67 -0
- package/dist/government-validation.esm.js +81 -0
- package/dist/governmentValidationStateMachine-BDDYrJTo.esm.js +271 -0
- package/dist/home.d.ts +99 -0
- package/dist/home.esm.js +61 -0
- package/dist/http.d.ts +68 -0
- package/dist/http.esm.js +3 -0
- package/dist/id-ocr.d.ts +635 -0
- package/dist/id-ocr.esm.js +86 -0
- package/dist/id-verification.d.ts +190 -0
- package/dist/id-verification.esm.js +43 -0
- package/dist/id.d.ts +24 -0
- package/dist/id.esm.js +164 -0
- package/dist/idCaptureManager-B9TGA5dq.d.ts +956 -0
- package/dist/idCaptureManager-DMK0GIt3.esm.js +581 -0
- package/dist/idCaptureStateMachine-Bq0fVZXl.esm.js +2954 -0
- package/dist/idOcrStateMachine-YbjjC_Gg.esm.js +388 -0
- package/dist/idVerificationStateMachine-xbw9HP1Z.esm.js +71 -0
- package/dist/identity-reuse.d.ts +530 -0
- package/dist/identity-reuse.esm.js +274 -0
- package/dist/index-BLKtMA0g.d.ts +1177 -0
- package/dist/index-BcRG8rtJ.d.ts +97 -0
- package/dist/index.d.ts +3 -226
- package/dist/index.esm.js +11 -154
- package/dist/invokeOnCaptureCallback-rc6kBHo5.esm.js +30 -0
- package/dist/{lib-Bu9XGMBW.esm.js → lib-BB0B_qQX.esm.js} +801 -2
- package/dist/mandatory-consent.d.ts +412 -0
- package/dist/mandatory-consent.esm.js +78 -0
- package/dist/mandatoryConsentStateMachine-Cnco1jvn.esm.js +126 -0
- package/dist/openviduLazy-Cm0XFh_v.esm.js +3 -0
- package/dist/openviduLazy-Cok70ZSg.esm.js +12 -0
- package/dist/permissionServices-D_i6nzEw.esm.js +50 -0
- package/dist/phone.d.ts +3 -291
- package/dist/phone.esm.js +7 -548
- package/dist/phoneManager-B6M30hKE.d.ts +397 -0
- package/dist/phoneManager-DAJbGhlY.esm.js +256 -0
- package/dist/phoneStateMachine-CuPARRaT.esm.js +351 -0
- package/dist/platform-CfrjKhmi.esm.js +83 -0
- package/dist/qe-signature-DFo_Cc-I.esm.js +12 -0
- package/dist/qe-signature.d.ts +25 -0
- package/dist/qe-signature.esm.js +8 -0
- package/dist/recordingService-Ig2UgbLv.esm.js +1003 -0
- package/dist/redirect-to-mobile.d.ts +107 -0
- package/dist/redirect-to-mobile.esm.js +102 -0
- package/dist/redirectToMobileStateMachine-BOEqe46A.esm.js +249 -0
- package/dist/runChildModule-CqqwqAkW.esm.js +219 -0
- package/dist/selfie.d.ts +21 -754
- package/dist/selfie.esm.js +113 -962
- package/dist/selfieManager-D0lSgd-J.d.ts +68 -0
- package/dist/selfieManager-Duisl7qN.esm.js +60 -0
- package/dist/selfieStateMachine-D76whWEf.esm.js +68 -0
- package/dist/session-BS-d_vuE.esm.js +3206 -0
- package/dist/session.d.ts +217 -0
- package/dist/session.esm.js +9 -0
- package/dist/setup-Buy-hyj4.esm.js +887 -0
- package/dist/setup-C5AITV8m.d.ts +254 -0
- package/dist/signature.d.ts +94 -0
- package/dist/signature.esm.js +66 -0
- package/dist/signatureStateMachine-B5-QVUve.esm.js +132 -0
- package/dist/stats-CIfiPzb1.esm.js +16 -0
- package/dist/stats.d.ts +16 -0
- package/dist/stats.esm.js +4 -0
- package/dist/trust-graph.d.ts +54 -0
- package/dist/trust-graph.esm.js +56 -0
- package/dist/types-B06Ypu2F.d.ts +49 -0
- package/dist/types-BP1m8VRw.d.ts +340 -0
- package/dist/types-CFV9G_7j.d.ts +24 -0
- package/dist/{warmup-CEJTfxQr.d.ts → warmup-CEcppFiS.d.ts} +11 -3
- package/dist/wasm.d.ts +15 -0
- package/dist/wasm.esm.js +12 -0
- package/dist/watchlist-for-business.d.ts +79 -0
- package/dist/watchlist-for-business.esm.js +148 -0
- package/dist/watchlist.d.ts +62 -0
- package/dist/watchlist.esm.js +86 -0
- package/dist/watchlistServices-DMbUhkBX.esm.js +12 -0
- package/dist/workflow.d.ts +907 -0
- package/dist/workflow.esm.js +702 -0
- package/dist/{xstate.esm-B_rda9yU.esm.js → xstate.esm-B70JrNqo.esm.js} +144 -1
- package/package.json +203 -6
- package/dist/OpenViduLogger-BdPfiZO6.esm.js +0 -3
- package/dist/OpenViduLogger-CQyDxBvM.esm.js +0 -803
- package/dist/StateMachine-DRE1oH2B.d.ts +0 -2
- package/dist/addEvent-W0ORK0jT.esm.js +0 -16
- package/dist/endpoints-BSTFaHYo.esm.js +0 -1706
- package/dist/permissionServices-I6vX6DBy.esm.js +0 -72
- /package/dist/{Manager-BGfxEmyv.d.ts → Manager-C8PrhBOx.d.ts} +0 -0
- /package/dist/{chunk-C_Yo44FK.esm.js → chunk-CRF6K_H_.esm.js} +0 -0
- /package/dist/{types-iZi2rawo.d.ts → types-CAD4va6a.d.ts} +0 -0
|
@@ -1,3 +1,106 @@
|
|
|
1
|
+
//#region ../infra/src/manager/Manager.ts
|
|
2
|
+
/**
|
|
3
|
+
* Creates a manager that wraps a state machine actor with a clean public API.
|
|
4
|
+
*
|
|
5
|
+
* The manager provides:
|
|
6
|
+
* - `getState()` - Returns the mapped public stateinstrumentation
|
|
7
|
+
* - `subscribe()` - Listen to state changes
|
|
8
|
+
* - `stop()` - Stop the actor
|
|
9
|
+
* - Plus any custom API methods from `createApi`
|
|
10
|
+
*
|
|
11
|
+
* @template TMachine - The state machine type
|
|
12
|
+
* @template TMapState - Function type that maps raw snapshot to public state
|
|
13
|
+
* @template TCreateApi - Function type that creates the custom API
|
|
14
|
+
*
|
|
15
|
+
* @param options - Configuration options
|
|
16
|
+
* @param options.actor - The started actor instance
|
|
17
|
+
* @param options.mapState - Function to transform raw snapshot into public state
|
|
18
|
+
* @param options.createApi - Factory function to create custom API methods
|
|
19
|
+
*
|
|
20
|
+
* @returns Combined manager with base methods and custom API
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const manager = createManager({
|
|
25
|
+
* actor: createActor(myMachine).start(),
|
|
26
|
+
* mapState: (snapshot) => ({ status: snapshot.value }),
|
|
27
|
+
* createApi: ({ actor }) => ({
|
|
28
|
+
* doSomething() { actor.send({ type: 'DO_IT' }); }
|
|
29
|
+
* }),
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function createManager(options) {
|
|
34
|
+
const { actor, mapState, createApi, instrumentation } = options;
|
|
35
|
+
function getSnapshot() {
|
|
36
|
+
return actor.getSnapshot();
|
|
37
|
+
}
|
|
38
|
+
function getState() {
|
|
39
|
+
return mapState(getSnapshot());
|
|
40
|
+
}
|
|
41
|
+
function subscribe(listener) {
|
|
42
|
+
const subscription = actor.subscribe(() => {
|
|
43
|
+
listener(getState());
|
|
44
|
+
});
|
|
45
|
+
return () => subscription.unsubscribe();
|
|
46
|
+
}
|
|
47
|
+
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
+
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
49
|
+
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
50
|
+
const api = createApi({
|
|
51
|
+
actor,
|
|
52
|
+
getSnapshot,
|
|
53
|
+
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
54
|
+
instrumentation.onElementClicked?.(instrumentation.moduleName, currentScreenName, {
|
|
55
|
+
element: elementName,
|
|
56
|
+
action: payload?.action,
|
|
57
|
+
metadata: payload?.metadata
|
|
58
|
+
});
|
|
59
|
+
} : void 0,
|
|
60
|
+
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
61
|
+
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentScreenName, { logs: payload.logs });
|
|
62
|
+
} : void 0
|
|
63
|
+
});
|
|
64
|
+
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
65
|
+
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
66
|
+
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentErrorPayload);
|
|
67
|
+
const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
|
|
68
|
+
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
69
|
+
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
70
|
+
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
71
|
+
if (currentScreenName === nextScreenName) {
|
|
72
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
73
|
+
currentErrorName = nextErrorName;
|
|
74
|
+
currentErrorPayload = nextErrorPayload;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
78
|
+
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
79
|
+
currentScreenName = nextScreenName;
|
|
80
|
+
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextErrorPayload);
|
|
81
|
+
currentErrorName = nextErrorName;
|
|
82
|
+
currentErrorPayload = nextErrorPayload;
|
|
83
|
+
}) : void 0;
|
|
84
|
+
let isStopped = false;
|
|
85
|
+
const base = {
|
|
86
|
+
getState,
|
|
87
|
+
subscribe,
|
|
88
|
+
stop() {
|
|
89
|
+
if (isStopped) return;
|
|
90
|
+
isStopped = true;
|
|
91
|
+
actorSubscription?.unsubscribe();
|
|
92
|
+
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
93
|
+
currentScreenName = void 0;
|
|
94
|
+
currentErrorName = void 0;
|
|
95
|
+
currentErrorPayload = void 0;
|
|
96
|
+
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
|
97
|
+
actor.stop();
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
return Object.defineProperties(base, Object.getOwnPropertyDescriptors(api));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
1
104
|
//#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
2
105
|
function getGlobal() {
|
|
3
106
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -1021,6 +1124,46 @@ function stopChild(actorRef) {
|
|
|
1021
1124
|
stop$1.execute = executeStop;
|
|
1022
1125
|
return stop$1;
|
|
1023
1126
|
}
|
|
1127
|
+
function checkAnd(snapshot, { context, event }, { guards }) {
|
|
1128
|
+
return guards.every((guard) => evaluateGuard(guard, context, event, snapshot));
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Higher-order guard that evaluates to `true` if all `guards` passed to it
|
|
1132
|
+
* evaluate to `true`.
|
|
1133
|
+
*
|
|
1134
|
+
* @category Guards
|
|
1135
|
+
* @example
|
|
1136
|
+
*
|
|
1137
|
+
* ```ts
|
|
1138
|
+
* import { setup, and } from 'xstate';
|
|
1139
|
+
*
|
|
1140
|
+
* const machine = setup({
|
|
1141
|
+
* guards: {
|
|
1142
|
+
* someNamedGuard: () => true
|
|
1143
|
+
* }
|
|
1144
|
+
* }).createMachine({
|
|
1145
|
+
* on: {
|
|
1146
|
+
* someEvent: {
|
|
1147
|
+
* guard: and([({ context }) => context.value > 0, 'someNamedGuard']),
|
|
1148
|
+
* actions: () => {
|
|
1149
|
+
* // will be executed if all guards in `and(...)`
|
|
1150
|
+
* // evaluate to true
|
|
1151
|
+
* }
|
|
1152
|
+
* }
|
|
1153
|
+
* }
|
|
1154
|
+
* });
|
|
1155
|
+
* ```
|
|
1156
|
+
*
|
|
1157
|
+
* @returns A guard action object
|
|
1158
|
+
*/
|
|
1159
|
+
function and(guards) {
|
|
1160
|
+
function and$1(_args, _params) {
|
|
1161
|
+
return false;
|
|
1162
|
+
}
|
|
1163
|
+
and$1.check = checkAnd;
|
|
1164
|
+
and$1.guards = guards;
|
|
1165
|
+
return and$1;
|
|
1166
|
+
}
|
|
1024
1167
|
function evaluateGuard(guard, context, event, snapshot) {
|
|
1025
1168
|
const { machine } = snapshot;
|
|
1026
1169
|
const isInline = typeof guard === "function";
|
|
@@ -3258,4 +3401,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
3258
3401
|
}
|
|
3259
3402
|
|
|
3260
3403
|
//#endregion
|
|
3261
|
-
export {
|
|
3404
|
+
export { fromPromise as a, createManager as c, fromCallback as i, sendTo as n, and as o, assign as r, createActor as s, setup as t };
|
package/package.json
CHANGED
|
@@ -1,40 +1,235 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
+
"source": "./src/index.ts",
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.esm.js"
|
|
11
12
|
},
|
|
12
13
|
"./flow": {
|
|
14
|
+
"source": "./src/modules/flow/index.ts",
|
|
13
15
|
"types": "./dist/flow.d.ts",
|
|
14
16
|
"import": "./dist/flow.esm.js"
|
|
15
17
|
},
|
|
18
|
+
"./flow-events": {
|
|
19
|
+
"source": "./src/modules/flow-events/index.ts",
|
|
20
|
+
"types": "./dist/flow-events.d.ts",
|
|
21
|
+
"import": "./dist/flow-events.esm.js"
|
|
22
|
+
},
|
|
16
23
|
"./selfie": {
|
|
24
|
+
"source": "./src/modules/selfie/index.ts",
|
|
17
25
|
"types": "./dist/selfie.d.ts",
|
|
18
26
|
"import": "./dist/selfie.esm.js"
|
|
19
27
|
},
|
|
28
|
+
"./authentication": {
|
|
29
|
+
"source": "./src/modules/authentication/index.ts",
|
|
30
|
+
"types": "./dist/authentication.d.ts",
|
|
31
|
+
"import": "./dist/authentication.esm.js"
|
|
32
|
+
},
|
|
20
33
|
"./phone": {
|
|
34
|
+
"source": "./src/modules/phone/index.ts",
|
|
21
35
|
"types": "./dist/phone.d.ts",
|
|
22
36
|
"import": "./dist/phone.esm.js"
|
|
23
37
|
},
|
|
24
38
|
"./email": {
|
|
39
|
+
"source": "./src/modules/email/index.ts",
|
|
25
40
|
"types": "./dist/email.d.ts",
|
|
26
41
|
"import": "./dist/email.esm.js"
|
|
27
42
|
},
|
|
43
|
+
"./consent": {
|
|
44
|
+
"source": "./src/modules/consent/index.ts",
|
|
45
|
+
"types": "./dist/consent.d.ts",
|
|
46
|
+
"import": "./dist/consent.esm.js"
|
|
47
|
+
},
|
|
48
|
+
"./mandatory-consent": {
|
|
49
|
+
"source": "./src/modules/mandatory-consent/index.ts",
|
|
50
|
+
"types": "./dist/mandatory-consent.d.ts",
|
|
51
|
+
"import": "./dist/mandatory-consent.esm.js"
|
|
52
|
+
},
|
|
53
|
+
"./id": {
|
|
54
|
+
"source": "./src/modules/id/index.ts",
|
|
55
|
+
"types": "./dist/id.d.ts",
|
|
56
|
+
"import": "./dist/id.esm.js"
|
|
57
|
+
},
|
|
58
|
+
"./id-verification": {
|
|
59
|
+
"source": "./src/modules/id-verification/index.ts",
|
|
60
|
+
"types": "./dist/id-verification.d.ts",
|
|
61
|
+
"import": "./dist/id-verification.esm.js"
|
|
62
|
+
},
|
|
63
|
+
"./id-ocr": {
|
|
64
|
+
"source": "./src/modules/id-ocr/index.ts",
|
|
65
|
+
"types": "./dist/id-ocr.d.ts",
|
|
66
|
+
"import": "./dist/id-ocr.esm.js"
|
|
67
|
+
},
|
|
68
|
+
"./face-match": {
|
|
69
|
+
"source": "./src/modules/face-match/index.ts",
|
|
70
|
+
"types": "./dist/face-match.d.ts",
|
|
71
|
+
"import": "./dist/face-match.esm.js"
|
|
72
|
+
},
|
|
73
|
+
"./curp-validation": {
|
|
74
|
+
"source": "./src/modules/curp-validation/index.ts",
|
|
75
|
+
"types": "./dist/curp-validation.d.ts",
|
|
76
|
+
"import": "./dist/curp-validation.esm.js"
|
|
77
|
+
},
|
|
78
|
+
"./cpf-ocr": {
|
|
79
|
+
"source": "./src/modules/cpf-ocr/index.ts",
|
|
80
|
+
"types": "./dist/cpf-ocr.d.ts",
|
|
81
|
+
"import": "./dist/cpf-ocr.esm.js"
|
|
82
|
+
},
|
|
83
|
+
"./government-validation": {
|
|
84
|
+
"source": "./src/modules/government-validation/index.ts",
|
|
85
|
+
"types": "./dist/government-validation.d.ts",
|
|
86
|
+
"import": "./dist/government-validation.esm.js"
|
|
87
|
+
},
|
|
28
88
|
"./camera": {
|
|
89
|
+
"source": "./src/modules/camera/index.ts",
|
|
29
90
|
"types": "./dist/camera.d.ts",
|
|
30
91
|
"import": "./dist/camera.esm.js"
|
|
92
|
+
},
|
|
93
|
+
"./geolocation": {
|
|
94
|
+
"source": "./src/modules/geolocation/index.ts",
|
|
95
|
+
"types": "./dist/geolocation.d.ts",
|
|
96
|
+
"import": "./dist/geolocation.esm.js"
|
|
97
|
+
},
|
|
98
|
+
"./identity-reuse": {
|
|
99
|
+
"source": "./src/modules/identity-reuse/index.ts",
|
|
100
|
+
"types": "./dist/identity-reuse.d.ts",
|
|
101
|
+
"import": "./dist/identity-reuse.esm.js"
|
|
102
|
+
},
|
|
103
|
+
"./ekyc": {
|
|
104
|
+
"source": "./src/modules/ekyc/index.ts",
|
|
105
|
+
"types": "./dist/ekyc.d.ts",
|
|
106
|
+
"import": "./dist/ekyc.esm.js"
|
|
107
|
+
},
|
|
108
|
+
"./ekyb": {
|
|
109
|
+
"source": "./src/modules/ekyb/index.ts",
|
|
110
|
+
"types": "./dist/ekyb.d.ts",
|
|
111
|
+
"import": "./dist/ekyb.esm.js"
|
|
112
|
+
},
|
|
113
|
+
"./home": {
|
|
114
|
+
"source": "./src/modules/home/index.ts",
|
|
115
|
+
"types": "./dist/home.d.ts",
|
|
116
|
+
"import": "./dist/home.esm.js"
|
|
117
|
+
},
|
|
118
|
+
"./document-upload": {
|
|
119
|
+
"source": "./src/modules/document-upload/index.ts",
|
|
120
|
+
"types": "./dist/document-upload.d.ts",
|
|
121
|
+
"import": "./dist/document-upload.esm.js"
|
|
122
|
+
},
|
|
123
|
+
"./document-capture": {
|
|
124
|
+
"source": "./src/modules/document-capture/index.ts",
|
|
125
|
+
"types": "./dist/document-capture.d.ts",
|
|
126
|
+
"import": "./dist/document-capture.esm.js"
|
|
127
|
+
},
|
|
128
|
+
"./session": {
|
|
129
|
+
"source": "./src/modules/session/index.ts",
|
|
130
|
+
"types": "./dist/session.d.ts",
|
|
131
|
+
"import": "./dist/session.esm.js"
|
|
132
|
+
},
|
|
133
|
+
"./wasm": {
|
|
134
|
+
"source": "./src/modules/wasm/index.ts",
|
|
135
|
+
"types": "./dist/wasm.d.ts",
|
|
136
|
+
"import": "./dist/wasm.esm.js"
|
|
137
|
+
},
|
|
138
|
+
"./device": {
|
|
139
|
+
"source": "./src/modules/device/index.ts",
|
|
140
|
+
"types": "./dist/device.d.ts",
|
|
141
|
+
"import": "./dist/device.esm.js"
|
|
142
|
+
},
|
|
143
|
+
"./events": {
|
|
144
|
+
"source": "./src/modules/events/index.ts",
|
|
145
|
+
"types": "./dist/events.d.ts",
|
|
146
|
+
"import": "./dist/events.esm.js"
|
|
147
|
+
},
|
|
148
|
+
"./http": {
|
|
149
|
+
"source": "./src/modules/http/index.ts",
|
|
150
|
+
"types": "./dist/http.d.ts",
|
|
151
|
+
"import": "./dist/http.esm.js"
|
|
152
|
+
},
|
|
153
|
+
"./extensibility": {
|
|
154
|
+
"source": "./src/modules/extensibility/index.ts",
|
|
155
|
+
"types": "./dist/extensibility.d.ts",
|
|
156
|
+
"import": "./dist/extensibility.esm.js"
|
|
157
|
+
},
|
|
158
|
+
"./redirect-to-mobile": {
|
|
159
|
+
"source": "./src/modules/redirect-to-mobile/index.ts",
|
|
160
|
+
"types": "./dist/redirect-to-mobile.d.ts",
|
|
161
|
+
"import": "./dist/redirect-to-mobile.esm.js"
|
|
162
|
+
},
|
|
163
|
+
"./signature": {
|
|
164
|
+
"source": "./src/modules/signature/index.ts",
|
|
165
|
+
"types": "./dist/signature.d.ts",
|
|
166
|
+
"import": "./dist/signature.esm.js"
|
|
167
|
+
},
|
|
168
|
+
"./antifraud": {
|
|
169
|
+
"source": "./src/modules/antifraud/index.ts",
|
|
170
|
+
"types": "./dist/antifraud.d.ts",
|
|
171
|
+
"import": "./dist/antifraud.esm.js"
|
|
172
|
+
},
|
|
173
|
+
"./watchlist": {
|
|
174
|
+
"source": "./src/modules/watchlist/index.ts",
|
|
175
|
+
"types": "./dist/watchlist.d.ts",
|
|
176
|
+
"import": "./dist/watchlist.esm.js"
|
|
177
|
+
},
|
|
178
|
+
"./custom-watchlist": {
|
|
179
|
+
"source": "./src/modules/custom-watchlist/index.ts",
|
|
180
|
+
"types": "./dist/custom-watchlist.d.ts",
|
|
181
|
+
"import": "./dist/custom-watchlist.esm.js"
|
|
182
|
+
},
|
|
183
|
+
"./electronic-signature": {
|
|
184
|
+
"source": "./src/modules/electronic-signature/index.ts",
|
|
185
|
+
"types": "./dist/electronic-signature.d.ts",
|
|
186
|
+
"import": "./dist/electronic-signature.esm.js"
|
|
187
|
+
},
|
|
188
|
+
"./ae-signature": {
|
|
189
|
+
"source": "./src/modules/ae-signature/index.ts",
|
|
190
|
+
"types": "./dist/ae-signature.d.ts",
|
|
191
|
+
"import": "./dist/ae-signature.esm.js"
|
|
192
|
+
},
|
|
193
|
+
"./qe-signature": {
|
|
194
|
+
"source": "./src/modules/qe-signature/index.ts",
|
|
195
|
+
"types": "./dist/qe-signature.d.ts",
|
|
196
|
+
"import": "./dist/qe-signature.esm.js"
|
|
197
|
+
},
|
|
198
|
+
"./workflow": {
|
|
199
|
+
"source": "./src/modules/workflow/index.ts",
|
|
200
|
+
"types": "./dist/workflow.d.ts",
|
|
201
|
+
"import": "./dist/workflow.esm.js"
|
|
202
|
+
},
|
|
203
|
+
"./cross-document-data-match": {
|
|
204
|
+
"source": "./src/modules/cross-document-data-match/index.ts",
|
|
205
|
+
"types": "./dist/cross-document-data-match.d.ts",
|
|
206
|
+
"import": "./dist/cross-document-data-match.esm.js"
|
|
207
|
+
},
|
|
208
|
+
"./custom-fields": {
|
|
209
|
+
"source": "./src/modules/custom-fields/index.ts",
|
|
210
|
+
"types": "./dist/custom-fields.d.ts",
|
|
211
|
+
"import": "./dist/custom-fields.esm.js"
|
|
212
|
+
},
|
|
213
|
+
"./watchlist-for-business": {
|
|
214
|
+
"source": "./src/modules/watchlist-for-business/index.ts",
|
|
215
|
+
"types": "./dist/watchlist-for-business.d.ts",
|
|
216
|
+
"import": "./dist/watchlist-for-business.esm.js"
|
|
217
|
+
},
|
|
218
|
+
"./trust-graph": {
|
|
219
|
+
"source": "./src/modules/trust-graph/index.ts",
|
|
220
|
+
"types": "./dist/trust-graph.d.ts",
|
|
221
|
+
"import": "./dist/trust-graph.esm.js"
|
|
222
|
+
},
|
|
223
|
+
"./dynamic-forms": {
|
|
224
|
+
"source": "./src/modules/dynamic-forms/index.ts",
|
|
225
|
+
"types": "./dist/dynamic-forms.d.ts",
|
|
226
|
+
"import": "./dist/dynamic-forms.esm.js"
|
|
31
227
|
}
|
|
32
228
|
},
|
|
33
229
|
"files": [
|
|
34
230
|
"dist"
|
|
35
231
|
],
|
|
36
232
|
"devDependencies": {
|
|
37
|
-
"@biomejs/biome": "^2.3.7",
|
|
38
233
|
"@vitest/coverage-v8": "^4.0.13",
|
|
39
234
|
"tsdown": "^0.16.6",
|
|
40
235
|
"typescript": "^5.9.3",
|
|
@@ -44,11 +239,13 @@
|
|
|
44
239
|
},
|
|
45
240
|
"scripts": {
|
|
46
241
|
"build": "tsdown -c tsdown.config.ts",
|
|
47
|
-
"dev": "tsdown -c tsdown.config.ts
|
|
242
|
+
"build:dev": "tsdown -c tsdown.config.ts",
|
|
48
243
|
"test": "vitest run",
|
|
49
244
|
"coverage": "vitest run --coverage",
|
|
50
|
-
"lint": "
|
|
51
|
-
"
|
|
52
|
-
"
|
|
245
|
+
"lint": "eslint .",
|
|
246
|
+
"lint:fix": "eslint . --fix",
|
|
247
|
+
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
248
|
+
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
249
|
+
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
|
53
250
|
}
|
|
54
251
|
}
|