@incodetech/web 0.0.0-dev-20260427-0672a89 → 0.0.0-dev-20260427-7dc009f
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/flow/flow.es.js +2 -0
- package/dist/types/flow.d.ts +11 -0
- package/package.json +2 -2
package/dist/flow/flow.es.js
CHANGED
|
@@ -244,6 +244,8 @@ var W = n(() => import("../homeScreen-CEiEx-YX.js").then((e) => ({ default: e.Ho
|
|
|
244
244
|
});
|
|
245
245
|
let x = v.status === "loaded", w = n.enableHome === !0 && d.status === "ready" && d.flow.disableLaunchScreen !== !0 && d.currentStepIndex === 0 && d.homeScreen.visible === !1 && v.status === "loading", E = O(d.presentation.isAwaitingReady === !0, 150), D = O(d.status === "ready" && (v.status === "idle" || v.status === "loading" || v.status === "error"), 150);
|
|
246
246
|
b(d?.status === "ready" ? d.steps : [], d?.status === "ready" ? d.currentStepIndex : -1, f, x), t(() => {
|
|
247
|
+
if (n.onFlowEvent) return p.subscribeFlowEvent(n.onFlowEvent);
|
|
248
|
+
}, [p, n.onFlowEvent]), t(() => {
|
|
247
249
|
d.presentation.shouldPrefetchHome && C();
|
|
248
250
|
}, [d.presentation.shouldPrefetchHome]), t(() => {
|
|
249
251
|
n.lang && s.language !== n.lang && s.changeLanguage(n.lang);
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreateSessionOptions } from '@incodetech/core/session';
|
|
2
2
|
import { FC } from 'preact/compat';
|
|
3
3
|
import { FinishStatus } from '@incodetech/core/flow';
|
|
4
|
+
import { FlowEvent } from '@incodetech/core/flow-events';
|
|
4
5
|
import { WasmConfig } from '@incodetech/core/wasm';
|
|
5
6
|
|
|
6
7
|
declare type ApiKeySessionBootstrap = {
|
|
@@ -28,6 +29,16 @@ declare type FlowRuntimeConfig = TokenFlowRuntimeConfig | SelfLoadingFlowRuntime
|
|
|
28
29
|
declare type FlowUiConfig = {
|
|
29
30
|
onModuleLoading?: (moduleKey: string) => void;
|
|
30
31
|
onModuleLoaded?: (moduleKey: string) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Receives curated flow milestones from this flow instance.
|
|
34
|
+
*
|
|
35
|
+
* Use this local-only stream for integration milestones such as
|
|
36
|
+
* `flow.started`, `flow.ready`, `flow.module.started`,
|
|
37
|
+
* `flow.module.completed`, `flow.completed`, and `flow.error`.
|
|
38
|
+
* For raw analytics events, use `subscribeEvent` from
|
|
39
|
+
* `@incodetech/core/events`.
|
|
40
|
+
*/
|
|
41
|
+
onFlowEvent?: (event: FlowEvent) => void;
|
|
31
42
|
onWasmWarmup?: (pipelines: string[]) => void;
|
|
32
43
|
onUrlUuidRefreshed?: (urlUuid: string) => void;
|
|
33
44
|
spinnerConfig?: SpinnerConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260427-
|
|
3
|
+
"version": "0.0.0-dev-20260427-7dc009f",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"qrcode": "^1.5.4",
|
|
231
231
|
"signature_pad": "^5.1.3",
|
|
232
232
|
"tailwindcss": "^4.1.17",
|
|
233
|
-
"@incodetech/core": "0.0.0-dev-20260427-
|
|
233
|
+
"@incodetech/core": "0.0.0-dev-20260427-7dc009f"
|
|
234
234
|
},
|
|
235
235
|
"devDependencies": {
|
|
236
236
|
"@microsoft/api-extractor": "^7.53.3",
|