@incodetech/web 0.0.0-dev-20260427-c244d1d → 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.
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { n as t } from "../electronic-signature-ClvRf-us.js";
2
+ import { n as t } from "../electronic-signature-GJJ9ym6W.js";
3
3
  import { t as n } from "../incodeModule-BH9gV7jI.js";
4
4
  //#region src/modules/ae-signature/ae-signature.tsx
5
5
  var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
@@ -29,11 +29,13 @@
29
29
  }
30
30
 
31
31
  .IncodeElectronicSignatureUploadBody {
32
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
32
33
  flex-direction: column;
33
34
  flex: 1;
34
35
  justify-content: center;
35
36
  align-items: center;
36
37
  display: flex;
38
+ container-type: size;
37
39
  }
38
40
 
39
41
  .IncodeElectronicSignatureIllustration {
@@ -42,8 +44,7 @@
42
44
  background-color: var(--color-surface-brand-50, var(--surface-brand-50));
43
45
  justify-content: center;
44
46
  align-items: center;
45
- width: 100%;
46
- max-width: 297px;
47
+ width: min(100cqw, 100cqh - 32px, 297px);
47
48
  display: flex;
48
49
  overflow: visible;
49
50
  }
@@ -64,6 +65,7 @@
64
65
  }
65
66
 
66
67
  .IncodeElectronicSignatureReviewBody {
68
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
67
69
  justify-content: center;
68
70
  align-items: center;
69
71
  gap: var(--spacing-16, var(--spacing-16, 16px));
@@ -77,6 +79,7 @@
77
79
  }
78
80
 
79
81
  .IncodeElectronicSignatureReviewCard {
82
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
80
83
  align-items: center;
81
84
  gap: var(--spacing-24, var(--spacing-24, 24px));
82
85
  border-radius: var(--radius-large, var(--border-radius-large));
@@ -93,13 +96,15 @@
93
96
 
94
97
  .IncodeElectronicSignatureDocPreview {
95
98
  pointer-events: none;
99
+ aspect-ratio: 113 / 150;
96
100
  border-style: var(--tw-border-style);
97
101
  border-width: 1px;
98
102
  border-color: var(--color-border-neutral-100, var(--border-neutral-100));
99
103
  background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
100
104
  border-radius: 6px;
101
- width: 113px;
102
- height: 150px;
105
+ flex-grow: 0;
106
+ flex-basis: 150px;
107
+ min-height: 64px;
103
108
  position: relative;
104
109
  overflow: hidden;
105
110
  }
@@ -141,18 +146,20 @@
141
146
  }
142
147
 
143
148
  .IncodeElectronicSignatureSigningTop {
144
- min-height: var(--spacing-0, var(--spacing-none, 0px));
145
149
  flex-direction: column;
150
+ flex-shrink: 0;
146
151
  align-items: center;
147
152
  display: flex;
148
153
  }
149
154
 
150
155
  .IncodeElectronicSignatureSigningBottom {
151
156
  min-height: var(--spacing-0, var(--spacing-none, 0px));
157
+ justify-content: flex-end;
152
158
  align-items: center;
153
159
  gap: var(--spacing-12, var(--spacing-12, 12px));
154
160
  padding-top: var(--spacing-16, var(--spacing-16, 16px));
155
161
  flex-direction: column;
162
+ flex: 1;
156
163
  display: flex;
157
164
  }
158
165
 
@@ -214,6 +221,7 @@
214
221
  }
215
222
 
216
223
  .IncodeElectronicSignatureConsents {
224
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
217
225
  gap: var(--spacing-4, var(--spacing-4, 4px));
218
226
  flex-direction: column;
219
227
  width: 100%;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../electronic-signature-ClvRf-us.js";
1
+ import { n as e, t } from "../electronic-signature-GJJ9ym6W.js";
2
2
  export { t as AeSignature, e as ElectronicSignature };
@@ -453,7 +453,7 @@ var j = ({ config: t, onFinish: a, onError: c }) => {
453
453
  }), /* @__PURE__ */ o(f, {
454
454
  variant: "secondary",
455
455
  onClick: () => t.replaceFile(),
456
- children: r("aes.review.replace")
456
+ children: r("aes.reviewDocument.replace")
457
457
  })]
458
458
  })]
459
459
  })), N = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ o(c, { children: e ? /* @__PURE__ */ o(j, {
@@ -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);
@@ -7358,11 +7358,13 @@
7358
7358
  }
7359
7359
 
7360
7360
  .IncodeElectronicSignatureUploadBody {
7361
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
7361
7362
  flex-direction: column;
7362
7363
  flex: 1;
7363
7364
  justify-content: center;
7364
7365
  align-items: center;
7365
7366
  display: flex;
7367
+ container-type: size;
7366
7368
  }
7367
7369
 
7368
7370
  .IncodeElectronicSignatureIllustration {
@@ -7371,8 +7373,7 @@
7371
7373
  background-color: var(--color-surface-brand-50, var(--surface-brand-50));
7372
7374
  justify-content: center;
7373
7375
  align-items: center;
7374
- width: 100%;
7375
- max-width: 297px;
7376
+ width: min(100cqw, 100cqh - 32px, 297px);
7376
7377
  display: flex;
7377
7378
  overflow: visible;
7378
7379
  }
@@ -7393,6 +7394,7 @@
7393
7394
  }
7394
7395
 
7395
7396
  .IncodeElectronicSignatureReviewBody {
7397
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
7396
7398
  justify-content: center;
7397
7399
  align-items: center;
7398
7400
  gap: var(--spacing-16, var(--spacing-16, 16px));
@@ -7406,6 +7408,7 @@
7406
7408
  }
7407
7409
 
7408
7410
  .IncodeElectronicSignatureReviewCard {
7411
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
7409
7412
  align-items: center;
7410
7413
  gap: var(--spacing-24, var(--spacing-24, 24px));
7411
7414
  border-radius: var(--radius-large, var(--border-radius-large));
@@ -7422,13 +7425,15 @@
7422
7425
 
7423
7426
  .IncodeElectronicSignatureDocPreview {
7424
7427
  pointer-events: none;
7428
+ aspect-ratio: 113 / 150;
7425
7429
  border-style: var(--tw-border-style);
7426
7430
  border-width: 1px;
7427
7431
  border-color: var(--color-border-neutral-100, var(--border-neutral-100));
7428
7432
  background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
7429
7433
  border-radius: 6px;
7430
- width: 113px;
7431
- height: 150px;
7434
+ flex-grow: 0;
7435
+ flex-basis: 150px;
7436
+ min-height: 64px;
7432
7437
  position: relative;
7433
7438
  overflow: hidden;
7434
7439
  }
@@ -7470,18 +7475,20 @@
7470
7475
  }
7471
7476
 
7472
7477
  .IncodeElectronicSignatureSigningTop {
7473
- min-height: var(--spacing-0, var(--spacing-none, 0px));
7474
7478
  flex-direction: column;
7479
+ flex-shrink: 0;
7475
7480
  align-items: center;
7476
7481
  display: flex;
7477
7482
  }
7478
7483
 
7479
7484
  .IncodeElectronicSignatureSigningBottom {
7480
7485
  min-height: var(--spacing-0, var(--spacing-none, 0px));
7486
+ justify-content: flex-end;
7481
7487
  align-items: center;
7482
7488
  gap: var(--spacing-12, var(--spacing-12, 12px));
7483
7489
  padding-top: var(--spacing-16, var(--spacing-16, 16px));
7484
7490
  flex-direction: column;
7491
+ flex: 1;
7485
7492
  display: flex;
7486
7493
  }
7487
7494
 
@@ -7543,6 +7550,7 @@
7543
7550
  }
7544
7551
 
7545
7552
  .IncodeElectronicSignatureConsents {
7553
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
7546
7554
  gap: var(--spacing-4, var(--spacing-4, 4px));
7547
7555
  flex-direction: column;
7548
7556
  width: 100%;
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { n as t } from "../electronic-signature-ClvRf-us.js";
2
+ import { n as t } from "../electronic-signature-GJJ9ym6W.js";
3
3
  import { t as n } from "../incodeModule-BH9gV7jI.js";
4
4
  //#region src/modules/qe-signature/qe-signature.tsx
5
5
  var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
@@ -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-c244d1d",
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-c244d1d"
233
+ "@incodetech/core": "0.0.0-dev-20260427-7dc009f"
234
234
  },
235
235
  "devDependencies": {
236
236
  "@microsoft/api-extractor": "^7.53.3",