@incodetech/core 0.0.0-dev-20260409-09dfd52 → 0.0.0-dev-20260409-089e5c6
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/{OpenViduRecordingProvider-D_cVAwYQ.esm.js → OpenViduRecordingProvider-JatjSE3h.esm.js} +1 -1
- package/dist/{WasmUtilProvider-mWSXzp7b.esm.js → WasmUtilProvider-DRh0wrlm.esm.js} +1 -1
- package/dist/{addressSearch-C26OZIx0.esm.js → addressSearch-CDdN30un.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -4
- package/dist/{antifraudStateMachine-B74mO8vr.esm.js → antifraudStateMachine-C1AgS0nL.esm.js} +3 -3
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -22
- package/dist/{authenticationManager-DOTo1EYF.d.ts → authenticationManager-DYFYx68i.d.ts} +2 -2
- package/dist/{authenticationManager-BBQHippG.esm.js → authenticationManager-UaO9UTN7.esm.js} +6 -6
- package/dist/{authenticationStateMachine-DCJ0ArAt.esm.js → authenticationStateMachine-DWI65EwK.esm.js} +6 -6
- package/dist/{backCameraStream-D9g2wyil.esm.js → backCameraStream-BihRmMzc.esm.js} +3 -3
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +4 -4
- package/dist/{consentStateMachine-DIdJXJW0.esm.js → consentStateMachine-CpRu2hF0.esm.js} +3 -3
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{curpValidationStateMachine-Dp5WB6__.esm.js → curpValidationStateMachine-Czzgv2W1.esm.js} +3 -3
- package/dist/{deepsightLoader-CaULV07H.esm.js → deepsightLoader-jIgoauFK.esm.js} +10 -10
- package/dist/{deepsightService-rPGLH8Xp.esm.js → deepsightService-D4mM8yJ2.esm.js} +5 -5
- package/dist/{deepsightService-S-tU77m-.d.ts → deepsightService-DAeakjDd.d.ts} +2 -2
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +79 -79
- package/dist/document-capture.esm.js +8 -8
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-ByYOCKz5.esm.js → documentCaptureStateMachine-XbpsHzh5.esm.js} +5 -5
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -10
- package/dist/{ekybStateMachine-DRku_YmR.esm.js → ekybStateMachine-BDuCae6s.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +6 -6
- package/dist/{ekycStateMachine-CSWaaWVl.esm.js → ekycStateMachine-BN4KBDYY.esm.js} +4 -4
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -6
- package/dist/{emailManager-DByjyeY8.esm.js → emailManager-CAeo59lD.esm.js} +3 -3
- package/dist/{emailManager-D6CHM2QO.d.ts → emailManager-CZYfcu0n.d.ts} +2 -2
- package/dist/{emailStateMachine-BoIkeCw5.esm.js → emailStateMachine-Bqwe_sQS.esm.js} +4 -4
- package/dist/{events-W91zLpx4.esm.js → events-CZ2ka3pu.esm.js} +4 -1
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-Bspg2Tyf.esm.js → faceCaptureManagerFactory-D8zlMTvd.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-P2yy30KU.d.ts → faceCaptureManagerFactory-DS-6yCya.d.ts} +8 -8
- package/dist/{faceCaptureSetup-CQevz86q.esm.js → faceCaptureSetup-1M6uUEjK.esm.js} +4 -4
- package/dist/{faceMatchStateMachine-CLterVEC.esm.js → faceMatchStateMachine-D3DuP_ya.esm.js} +3 -3
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +9 -9
- package/dist/{flowCompletionService-DZSDUXus.esm.js → flowCompletionService-W6bj7Xd3.esm.js} +2 -2
- package/dist/{flowServices-YATk0fgY.esm.js → flowServices-C4tjBD8q.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +5 -5
- package/dist/{geolocationStateMachine-CRRUCl9K.esm.js → geolocationStateMachine-Bj2LkGwy.esm.js} +4 -4
- package/dist/{getDeviceClass-DBF-ExLR.esm.js → getDeviceClass-BoiWvKAc.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -5
- package/dist/{governmentValidationStateMachine-C_iPX9VE.esm.js → governmentValidationStateMachine-W1CzRjVw.esm.js} +4 -4
- package/dist/http.esm.js +1 -1
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -22
- package/dist/{idCaptureManager-CJfatzuY.esm.js → idCaptureManager-BcS8fgW4.esm.js} +4 -4
- package/dist/{idCaptureManager-CbZvdr9y.d.ts → idCaptureManager-oR6YPYHj.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-gf-Q9piu.esm.js → idCaptureStateMachine-MAzfM_2O.esm.js} +16 -16
- package/dist/identity-reuse.d.ts +530 -0
- package/dist/identity-reuse.esm.js +273 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-BzVJ-zxG.esm.js → lib-CxDxnzRd.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +58 -58
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/{mandatoryConsentStateMachine-BZNBJ1fK.esm.js → mandatoryConsentStateMachine-BMKi26Re.esm.js} +3 -3
- package/dist/{openviduLazy-CLg_-u0m.esm.js → openviduLazy-B8tinh9W.esm.js} +2 -2
- package/dist/openviduLazy-CItjpMfL.esm.js +3 -0
- package/dist/{permissionServices-Cisv73eQ.esm.js → permissionServices-Cj120WaT.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -6
- package/dist/{phoneManager-DhC4obPF.esm.js → phoneManager-Bvj6Jr4o.esm.js} +3 -3
- package/dist/{phoneManager-Zwr-qCnC.d.ts → phoneManager-CCMCkyYr.d.ts} +2 -2
- package/dist/{phoneStateMachine-Cc_w4tC0.esm.js → phoneStateMachine-B1t1Z-Dd.esm.js} +4 -4
- package/dist/{recordingService-CCfxUY7-.esm.js → recordingService-8I_-hhNI.esm.js} +13 -13
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -5
- package/dist/{redirectToMobileStateMachine-vOe27Ufw.esm.js → redirectToMobileStateMachine-BVP1KcoO.esm.js} +4 -4
- package/dist/{runChildModule-DVC4JEjp.esm.js → runChildModule-B5DEiOS7.esm.js} +1 -1
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -22
- package/dist/{selfieManager-CorEST5h.esm.js → selfieManager-B6x3O5Ns.esm.js} +6 -6
- package/dist/{selfieManager-DNwfxieF.d.ts → selfieManager-gizt3Zha.d.ts} +2 -2
- package/dist/{selfieStateMachine-3b19ON1z.esm.js → selfieStateMachine-DHPSBFj0.esm.js} +3 -3
- package/dist/{session-B_rKSRql.esm.js → session-DoI-X9FK.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-DLvhsDol.esm.js → setup-Bh2S53NT.esm.js} +5 -5
- package/dist/{setup-BYqwVLiv.d.ts → setup-Bz3Ffaoc.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-CU92zCXU.esm.js → signatureStateMachine-Cv7yPuEf.esm.js} +3 -3
- package/dist/{stats-gFD2351t.esm.js → stats-wkQyDFV3.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-CjsEZRcz.d.ts → types-BdEM5Jj7.d.ts} +1 -1
- package/dist/{types-CYJ0Ish6.d.ts → types-CdlQrTiZ.d.ts} +1 -1
- package/dist/{types-DU8HmI5U.d.ts → types-m43DfiSx.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/workflow.d.ts +116 -116
- package/dist/workflow.esm.js +41 -41
- package/package.json +5 -1
- package/dist/openviduLazy-rFXBtZVZ.esm.js +0 -3
- /package/dist/{Actor-DbWH1K6E.d.ts → Actor-BkPcZGke.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-DoYDYH1z.esm.js → BaseWasmProvider-C73c2nV9.esm.js} +0 -0
- /package/dist/{BrowserEnvironmentProvider-BtKLxTx4.esm.js → BrowserEnvironmentProvider-lxn4oxXn.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-CXaS5Ooj.esm.js → BrowserStorageProvider-ByxoNfxC.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-v7bpbrAk.esm.js → BrowserTimerProvider-CSdm7__S.esm.js} +0 -0
- /package/dist/{ITimerCapability-BZO_FsCo.esm.js → ITimerCapability-DAIaq369.esm.js} +0 -0
- /package/dist/{Manager-DcPMRgTm.d.ts → Manager-Bcnemkyi.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-D90R4qwV.esm.js → MotionSensorProvider-BLnFo6My.esm.js} +0 -0
- /package/dist/{StateMachine-BBuIgsHT.d.ts → StateMachine-DIeoDJ7r.d.ts} +0 -0
- /package/dist/{api-aa9Mx20l.esm.js → api-CqKwkjJ3.esm.js} +0 -0
- /package/dist/{browserSimulation-DFqGKQAD.esm.js → browserSimulation-7W5-A3RV.esm.js} +0 -0
- /package/dist/{camera-DpPQS_-5.esm.js → camera-B-5traWf.esm.js} +0 -0
- /package/dist/{camera-DATT31my.d.ts → camera-CgnuDuxy.d.ts} +0 -0
- /package/dist/{chunk-YGHKo4MY.esm.js → chunk-Qw4qVmMx.esm.js} +0 -0
- /package/dist/{displayErrors-xrg0ejaS.d.ts → displayErrors-C9-VaqmS.d.ts} +0 -0
- /package/dist/{flowCompletionService-gxt5reFV.d.ts → flowCompletionService-CPLdZxe-.d.ts} +0 -0
- /package/dist/{getBrowser-DCcD7H-M.esm.js → getBrowser-DJkbzQ5t.esm.js} +0 -0
- /package/dist/{platform-DctkySJU.esm.js → platform-BfoqeM61.esm.js} +0 -0
- /package/dist/{types-CIjb0FKu.d.ts → types-CxU9jTRl.d.ts} +0 -0
- /package/dist/{warmup-Ckb1hN85.d.ts → warmup-Cs0uqxUW.d.ts} +0 -0
- /package/dist/{xstate.esm-B7FPE6br.esm.js → xstate.esm-D7D6CGwY.esm.js} +0 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/identity-reuse/identityReuseServices.ts
|
|
6
|
+
/** Fetches candidate organizations for identity reuse. Throws on failure. */
|
|
7
|
+
async function fetchCandidates(signal) {
|
|
8
|
+
const res = await api.get(endpoints.identityReuseCandidates, { signal });
|
|
9
|
+
if (!res.ok) throw new Error(`GET ${endpoints.identityReuseCandidates} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
|
|
10
|
+
return res.data;
|
|
11
|
+
}
|
|
12
|
+
/** Submits the final reuse decision. Throws on failure. */
|
|
13
|
+
async function submitDecision(params, signal) {
|
|
14
|
+
const res = await api.post(endpoints.identityReuseSubmit, params, { signal });
|
|
15
|
+
if (!res.ok) throw new Error(`POST ${endpoints.identityReuseSubmit} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
|
|
16
|
+
return res.data;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/modules/identity-reuse/identityReuseStateMachine.ts
|
|
21
|
+
const identityReuseMachine = setup({
|
|
22
|
+
types: {
|
|
23
|
+
context: {},
|
|
24
|
+
events: {},
|
|
25
|
+
input: {}
|
|
26
|
+
},
|
|
27
|
+
actors: {
|
|
28
|
+
fetchCandidates: fromPromise(async ({ signal }) => {
|
|
29
|
+
return fetchCandidates(signal);
|
|
30
|
+
}),
|
|
31
|
+
submitContinue: fromPromise(async ({ signal }) => {
|
|
32
|
+
return submitDecision({ accepted: true }, signal);
|
|
33
|
+
}),
|
|
34
|
+
submitSkip: fromPromise(async ({ signal }) => {
|
|
35
|
+
return submitDecision({ accepted: false }, signal);
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
actions: {
|
|
39
|
+
setCandidates: assign(({ event }) => {
|
|
40
|
+
const output = event.output;
|
|
41
|
+
return {
|
|
42
|
+
currentOrganizationName: output.currentOrganizationName,
|
|
43
|
+
candidateOrganizationNames: output.candidateOrganizationNames
|
|
44
|
+
};
|
|
45
|
+
}),
|
|
46
|
+
setSelectedCandidate: assign(({ event }) => {
|
|
47
|
+
return { selectedOrganizationName: event.organizationName };
|
|
48
|
+
}),
|
|
49
|
+
autoSelectSingleCandidate: assign(({ context }) => ({ selectedOrganizationName: context.candidateOrganizationNames[0] })),
|
|
50
|
+
clearSelection: assign({ selectedOrganizationName: () => void 0 }),
|
|
51
|
+
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
52
|
+
clearError: assign({ error: () => void 0 })
|
|
53
|
+
},
|
|
54
|
+
guards: {
|
|
55
|
+
hasMultipleCandidates: ({ event }) => {
|
|
56
|
+
return event.output.candidateOrganizationNames.length > 1;
|
|
57
|
+
},
|
|
58
|
+
hasOneCandidate: ({ event }) => {
|
|
59
|
+
return event.output.candidateOrganizationNames.length === 1;
|
|
60
|
+
},
|
|
61
|
+
hasChosenCandidate: ({ context }) => context.selectedOrganizationName !== void 0 && context.selectedOrganizationName.length > 0
|
|
62
|
+
}
|
|
63
|
+
}).createMachine({
|
|
64
|
+
id: "identityReuse",
|
|
65
|
+
initial: "idle",
|
|
66
|
+
context: ({ input }) => ({
|
|
67
|
+
config: input.config,
|
|
68
|
+
currentOrganizationName: void 0,
|
|
69
|
+
candidateOrganizationNames: [],
|
|
70
|
+
selectedOrganizationName: void 0,
|
|
71
|
+
error: void 0
|
|
72
|
+
}),
|
|
73
|
+
states: {
|
|
74
|
+
idle: { on: { LOAD: { target: "loading" } } },
|
|
75
|
+
loading: { invoke: {
|
|
76
|
+
id: "fetchCandidates",
|
|
77
|
+
src: "fetchCandidates",
|
|
78
|
+
onDone: [
|
|
79
|
+
{
|
|
80
|
+
target: "multiCandidatesFound",
|
|
81
|
+
guard: "hasMultipleCandidates",
|
|
82
|
+
actions: "setCandidates"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
target: "oneCandidateFound",
|
|
86
|
+
guard: "hasOneCandidate",
|
|
87
|
+
actions: "setCandidates"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
target: "noCandidatesFound",
|
|
91
|
+
actions: "setCandidates"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
onError: {
|
|
95
|
+
target: "error",
|
|
96
|
+
actions: "setError"
|
|
97
|
+
}
|
|
98
|
+
} },
|
|
99
|
+
multiCandidatesFound: {
|
|
100
|
+
initial: "noCandidateSelected",
|
|
101
|
+
states: {
|
|
102
|
+
noCandidateSelected: { on: { START_SELECTION: { target: "choosingCandidate" } } },
|
|
103
|
+
choosingCandidate: { on: { CANDIDATE_CHOSEN: {
|
|
104
|
+
target: "candidateSelected",
|
|
105
|
+
actions: "setSelectedCandidate"
|
|
106
|
+
} } },
|
|
107
|
+
candidateSelected: { on: { CHANGE_CANDIDATE: {
|
|
108
|
+
target: "choosingCandidate",
|
|
109
|
+
actions: "clearSelection"
|
|
110
|
+
} } }
|
|
111
|
+
},
|
|
112
|
+
on: {
|
|
113
|
+
SUBMIT_CANDIDATE: {
|
|
114
|
+
target: "submitContinue",
|
|
115
|
+
guard: "hasChosenCandidate"
|
|
116
|
+
},
|
|
117
|
+
SKIP: { target: "submitSkip" }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
oneCandidateFound: {
|
|
121
|
+
entry: "autoSelectSingleCandidate",
|
|
122
|
+
on: {
|
|
123
|
+
SUBMIT_CANDIDATE: { target: "submitContinue" },
|
|
124
|
+
SKIP: { target: "submitSkip" }
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
noCandidatesFound: { on: { SKIP: { target: "submitSkip" } } },
|
|
128
|
+
submitContinue: { invoke: {
|
|
129
|
+
id: "submitContinue",
|
|
130
|
+
src: "submitContinue",
|
|
131
|
+
onDone: { target: "finished" },
|
|
132
|
+
onError: {
|
|
133
|
+
target: "error",
|
|
134
|
+
actions: "setError"
|
|
135
|
+
}
|
|
136
|
+
} },
|
|
137
|
+
submitSkip: { invoke: {
|
|
138
|
+
id: "submitSkip",
|
|
139
|
+
src: "submitSkip",
|
|
140
|
+
onDone: { target: "finished" },
|
|
141
|
+
onError: {
|
|
142
|
+
target: "error",
|
|
143
|
+
actions: "setError"
|
|
144
|
+
}
|
|
145
|
+
} },
|
|
146
|
+
finished: { type: "final" },
|
|
147
|
+
error: { on: {
|
|
148
|
+
RETRY: {
|
|
149
|
+
target: "loading",
|
|
150
|
+
actions: "clearError"
|
|
151
|
+
},
|
|
152
|
+
SKIP: { target: "submitSkip" }
|
|
153
|
+
} }
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
159
|
+
/**
|
|
160
|
+
* Creates and starts an IdentityReuse actor.
|
|
161
|
+
*
|
|
162
|
+
* The actor begins in 'idle' state, ready to receive events.
|
|
163
|
+
*/
|
|
164
|
+
function createIdentityReuseActor(options) {
|
|
165
|
+
return createActor(identityReuseMachine, { input: { config: options.config } }).start();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/modules/identity-reuse/identityReuseManager.ts
|
|
170
|
+
function mapState(snapshot) {
|
|
171
|
+
const { context } = snapshot;
|
|
172
|
+
if (snapshot.matches("idle")) return { status: "idle" };
|
|
173
|
+
if (snapshot.matches("loading")) return { status: "loading" };
|
|
174
|
+
if (snapshot.matches("multiCandidatesFound")) {
|
|
175
|
+
let selectionPhase = "noCandidateSelected";
|
|
176
|
+
if (snapshot.matches({ multiCandidatesFound: "candidateSelected" })) selectionPhase = "candidateSelected";
|
|
177
|
+
else if (snapshot.matches({ multiCandidatesFound: "choosingCandidate" })) selectionPhase = "choosingCandidate";
|
|
178
|
+
return {
|
|
179
|
+
status: "multiCandidatesFound",
|
|
180
|
+
currentOrganizationName: context.currentOrganizationName,
|
|
181
|
+
candidateOrganizationNames: context.candidateOrganizationNames,
|
|
182
|
+
selectedOrganizationName: context.selectedOrganizationName,
|
|
183
|
+
selectionPhase
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
if (snapshot.matches("oneCandidateFound")) return {
|
|
187
|
+
status: "oneCandidateFound",
|
|
188
|
+
currentOrganizationName: context.currentOrganizationName,
|
|
189
|
+
selectedOrganizationName: context.selectedOrganizationName
|
|
190
|
+
};
|
|
191
|
+
if (snapshot.matches("noCandidatesFound")) return {
|
|
192
|
+
status: "noCandidatesFound",
|
|
193
|
+
currentOrganizationName: context.currentOrganizationName
|
|
194
|
+
};
|
|
195
|
+
if (snapshot.matches("submitContinue")) return { status: "submitContinue" };
|
|
196
|
+
if (snapshot.matches("submitSkip")) return { status: "submitSkip" };
|
|
197
|
+
if (snapshot.matches("finished")) return { status: "finished" };
|
|
198
|
+
if (snapshot.matches("error")) return {
|
|
199
|
+
status: "error",
|
|
200
|
+
error: context.error ?? "An error occurred"
|
|
201
|
+
};
|
|
202
|
+
return { status: "idle" };
|
|
203
|
+
}
|
|
204
|
+
function createApi({ actor, trackElementClicked }) {
|
|
205
|
+
return {
|
|
206
|
+
load() {
|
|
207
|
+
actor.send({ type: "LOAD" });
|
|
208
|
+
},
|
|
209
|
+
startSelection() {
|
|
210
|
+
trackElementClicked?.("startSelection");
|
|
211
|
+
actor.send({ type: "START_SELECTION" });
|
|
212
|
+
},
|
|
213
|
+
chooseCandidate(organizationName) {
|
|
214
|
+
trackElementClicked?.("chooseCandidate");
|
|
215
|
+
actor.send({
|
|
216
|
+
type: "CANDIDATE_CHOSEN",
|
|
217
|
+
organizationName
|
|
218
|
+
});
|
|
219
|
+
},
|
|
220
|
+
changeCandidate() {
|
|
221
|
+
trackElementClicked?.("changeCandidate");
|
|
222
|
+
actor.send({ type: "CHANGE_CANDIDATE" });
|
|
223
|
+
},
|
|
224
|
+
submitCandidate() {
|
|
225
|
+
trackElementClicked?.("submitCandidate");
|
|
226
|
+
actor.send({ type: "SUBMIT_CANDIDATE" });
|
|
227
|
+
},
|
|
228
|
+
skip() {
|
|
229
|
+
trackElementClicked?.("skip");
|
|
230
|
+
actor.send({ type: "SKIP" });
|
|
231
|
+
},
|
|
232
|
+
retry() {
|
|
233
|
+
trackElementClicked?.("retry");
|
|
234
|
+
actor.send({ type: "RETRY" });
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Creates an IdentityReuse manager for headless or UI-driven usage.
|
|
240
|
+
*
|
|
241
|
+
* @example Headless usage
|
|
242
|
+
* ```typescript
|
|
243
|
+
* const manager = createIdentityReuseManager({ config: {} });
|
|
244
|
+
* manager.subscribe((state) => {
|
|
245
|
+
* if (state.status === 'oneCandidateFound') manager.submitCandidate();
|
|
246
|
+
* if (state.status === 'finished') console.log('Done!');
|
|
247
|
+
* });
|
|
248
|
+
* manager.load();
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
function createIdentityReuseManager(options) {
|
|
252
|
+
return createManager({
|
|
253
|
+
actor: createIdentityReuseActor(options),
|
|
254
|
+
mapState,
|
|
255
|
+
createApi,
|
|
256
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.identityReuse)
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Creates an IdentityReuse manager from a pre-built actor.
|
|
261
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
262
|
+
*/
|
|
263
|
+
function createIdentityReuseManagerFromActor(actor) {
|
|
264
|
+
return createManager({
|
|
265
|
+
actor,
|
|
266
|
+
mapState,
|
|
267
|
+
createApi,
|
|
268
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.identityReuse)
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
//#endregion
|
|
273
|
+
export { createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-
|
|
1
|
+
import "./warmup-Cs0uqxUW.js";
|
|
2
|
+
import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-Bz3Ffaoc.js";
|
|
3
3
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as setup, n as isConfigured, r as reset } from "./setup-
|
|
2
|
-
import "./BaseWasmProvider-
|
|
3
|
-
import "./WasmUtilProvider-
|
|
4
|
-
import "./api-
|
|
5
|
-
import "./events-
|
|
6
|
-
import "./session-
|
|
7
|
-
import "./BrowserEnvironmentProvider-
|
|
8
|
-
import "./browserSimulation-
|
|
1
|
+
import { a as setup, n as isConfigured, r as reset } from "./setup-Bh2S53NT.esm.js";
|
|
2
|
+
import "./BaseWasmProvider-C73c2nV9.esm.js";
|
|
3
|
+
import "./WasmUtilProvider-DRh0wrlm.esm.js";
|
|
4
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
5
|
+
import "./events-CZ2ka3pu.esm.js";
|
|
6
|
+
import "./session-DoI-X9FK.esm.js";
|
|
7
|
+
import "./BrowserEnvironmentProvider-lxn4oxXn.esm.js";
|
|
8
|
+
import "./browserSimulation-7W5-A3RV.esm.js";
|
|
9
9
|
|
|
10
10
|
export { isConfigured, reset, setup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-
|
|
1
|
+
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-Qw4qVmMx.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
|
|
4
4
|
var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { i as RegulationTypes } from "./types-
|
|
6
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import "./camera-CgnuDuxy.js";
|
|
4
|
+
import "./types-CdlQrTiZ.js";
|
|
5
|
+
import { i as RegulationTypes } from "./types-m43DfiSx.js";
|
|
6
|
+
import * as xstate535 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate535.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate535.ActorRefFromLogic<xstate535.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate535.EventObject>> | xstate535.ActorRefFromLogic<xstate535.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate535.EventObject>> | undefined;
|
|
52
|
+
}, xstate535.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate535.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate535.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate535.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate535.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
69
|
-
setError: {
|
|
70
|
-
type: "setError";
|
|
71
|
-
params: xstate63.NonReducibleUnknown;
|
|
72
|
-
};
|
|
68
|
+
}>, xstate535.Values<{
|
|
73
69
|
clearError: {
|
|
74
70
|
type: "clearError";
|
|
75
|
-
params:
|
|
71
|
+
params: xstate535.NonReducibleUnknown;
|
|
72
|
+
};
|
|
73
|
+
resetContext: {
|
|
74
|
+
type: "resetContext";
|
|
75
|
+
params: xstate535.NonReducibleUnknown;
|
|
76
|
+
};
|
|
77
|
+
setError: {
|
|
78
|
+
type: "setError";
|
|
79
|
+
params: xstate535.NonReducibleUnknown;
|
|
76
80
|
};
|
|
77
81
|
setConsent: {
|
|
78
82
|
type: "setConsent";
|
|
79
|
-
params:
|
|
83
|
+
params: xstate535.NonReducibleUnknown;
|
|
80
84
|
};
|
|
81
85
|
toggleSigned: {
|
|
82
86
|
type: "toggleSigned";
|
|
83
|
-
params:
|
|
84
|
-
};
|
|
85
|
-
resetContext: {
|
|
86
|
-
type: "resetContext";
|
|
87
|
-
params: xstate63.NonReducibleUnknown;
|
|
87
|
+
params: xstate535.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "
|
|
92
|
+
}, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate535.NonReducibleUnknown, xstate535.EventObject, xstate535.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate535.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate535.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate535.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate535.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate535.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate535.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate535.RequiredActorOptions<T>]: unknown }) | undefined], xstate535.IsNotNever<xstate535.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate535.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate535.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate535.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate535.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate535.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate535.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate535.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate535.IsNotNever<xstate535.RequiredActorOptions<T_1>>> : never : never : never)): xstate535.ActorRefFromLogic<xstate535.GetConcreteByKey<xstate535.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate535.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate535.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate535.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate535.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate535.AnyActorLogic>(src: TLogic, ...[options]: xstate535.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate535.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate535.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate535.IsNotNever<xstate535.RequiredLogicInput<TLogic>>>): xstate535.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate535.ActorRef<xstate535.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate535.AnyActorRef | undefined>, xstate535.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate535.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate535.ActorRef<xstate535.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate535.AnyActorRef>, xstate535.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate535.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate535.ActorRef<xstate535.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate535.AnyActorRef>, xstate535.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate535.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BMKi26Re.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
7
7
|
function createMandatoryConsentActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
6
|
async function fetchMandatoryConsent(regulationType, signal) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { a as __toDynamicImportESM } from "./chunk-Qw4qVmMx.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/providers/browser/openviduLazy.ts
|
|
4
4
|
let openViduImport;
|
|
5
5
|
async function loadOpenVidu() {
|
|
6
6
|
if (openViduImport) return openViduImport;
|
|
7
|
-
openViduImport = import("./lib-
|
|
7
|
+
openViduImport = import("./lib-CxDxnzRd.esm.js").then(__toDynamicImportESM(1));
|
|
8
8
|
return openViduImport;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-
|
|
2
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-
|
|
1
|
+
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-B-5traWf.esm.js";
|
|
2
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-BLnFo6My.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/media/permissions.ts
|
|
5
5
|
async function queryPermission(name) {
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-CCMCkyYr.js";
|
|
4
4
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./xstate.esm-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
6
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
5
|
+
import { t as phoneMachine } from "./phoneStateMachine-B1t1Z-Dd.esm.js";
|
|
6
|
+
import { t as createPhoneManager } from "./phoneManager-Bvj6Jr4o.esm.js";
|
|
7
7
|
|
|
8
8
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
2
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
3
|
+
import { t as phoneMachine } from "./phoneStateMachine-B1t1Z-Dd.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/phone/phoneActor.ts
|
|
6
6
|
function createPhoneActor(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-BkPcZGke.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/phone/types.d.ts
|
|
5
5
|
|