@incodetech/web 0.0.0-dev-20260318-ce9c1ed → 0.0.0-dev-20260320-26b35b4

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.
@@ -2,9 +2,9 @@ import { u as e, I as o, a as m } from "../button-Ca1tRSTI.js";
2
2
  import { createAuthenticationManager as l } from "@incodetech/core/authentication";
3
3
  import "../vendor-preact-BXf0bkEs.js";
4
4
  import "@incodetech/core";
5
- import { P as c } from "../permissions-BDElyTL4.js";
5
+ import { P as c } from "../permissions-CT8ELJ55.js";
6
6
  import { r as p } from "../incodeModule-aE-LkKwM.js";
7
- import { T as f, C as d } from "../tutorial-D8y4KZtv.js";
7
+ import { T as f, C as d } from "../tutorial-DDrNTMZU.js";
8
8
  const h = ({
9
9
  config: r,
10
10
  authHint: s,
package/dist/base.css CHANGED
@@ -2807,6 +2807,7 @@
2807
2807
  letter-spacing: var(--typography-headline-h2-letter-spacing);
2808
2808
  color: var(--color-text-body-0, var(--text-body-0-static));
2809
2809
  text-align: center;
2810
+ min-height: var(--typography-headline-h2-line-height);
2810
2811
  }
2811
2812
  .IncodeCameraOverlayHeader .IncodeCameraOverlayHeaderSubtitle {
2812
2813
  font-family: var(--typography-headline-family);
@@ -2816,6 +2817,7 @@
2816
2817
  letter-spacing: var(--typography-headline-h5-letter-spacing);
2817
2818
  color: var(--color-text-body-tertiary, var(--text-body-300-tertiary));
2818
2819
  text-align: center;
2820
+ min-height: var(--typography-headline-h5-line-height);
2819
2821
  }
2820
2822
  .IncodeCameraFrame {
2821
2823
  --frame-border-color: var(--border-neutral-100);
@@ -1,8 +1,9 @@
1
- import { u as e, d, S as s, b as C, B as u } from "./button-Ca1tRSTI.js";
2
- import { k as h, D as p, A as v, y as m } from "./vendor-preact-BXf0bkEs.js";
1
+ import { u as e, d, S as v, b as m, B as I } from "./button-Ca1tRSTI.js";
2
+ import { k as w, D as f, A as C, y as u } from "./vendor-preact-BXf0bkEs.js";
3
+ import { T as y } from "./spinner-Cx3FPUCD.js";
3
4
  import "./uiConfig-Z6RT23Sl.js";
4
- const I = ({
5
- className: a
5
+ const g = ({
6
+ className: r
6
7
  }) => /* @__PURE__ */ e(
7
8
  "svg",
8
9
  {
@@ -11,7 +12,7 @@ const I = ({
11
12
  viewBox: "0 0 68 68",
12
13
  fill: "none",
13
14
  xmlns: "http://www.w3.org/2000/svg",
14
- class: a,
15
+ class: r,
15
16
  "aria-hidden": "true",
16
17
  children: [
17
18
  /* @__PURE__ */ e(
@@ -26,7 +27,7 @@ const I = ({
26
27
  /* @__PURE__ */ e("circle", { cx: "33.5926", cy: "33.9996", r: "25.4187", fill: "white" })
27
28
  ]
28
29
  }
29
- ), w = ({ className: a }) => /* @__PURE__ */ e(
30
+ ), F = ({ className: r }) => /* @__PURE__ */ e(
30
31
  "svg",
31
32
  {
32
33
  width: "30",
@@ -34,7 +35,7 @@ const I = ({
34
35
  viewBox: "0 0 30 30",
35
36
  fill: "none",
36
37
  xmlns: "http://www.w3.org/2000/svg",
37
- class: a,
38
+ class: r,
38
39
  "aria-hidden": "true",
39
40
  children: [
40
41
  /* @__PURE__ */ e(
@@ -57,7 +58,7 @@ const I = ({
57
58
  )
58
59
  ]
59
60
  }
60
- ), f = ({ className: a }) => /* @__PURE__ */ e(
61
+ ), H = ({ className: r }) => /* @__PURE__ */ e(
61
62
  "svg",
62
63
  {
63
64
  width: "16",
@@ -65,7 +66,7 @@ const I = ({
65
66
  viewBox: "0 0 16 16",
66
67
  fill: "none",
67
68
  xmlns: "http://www.w3.org/2000/svg",
68
- class: a,
69
+ class: r,
69
70
  "aria-hidden": "true",
70
71
  children: /* @__PURE__ */ e(
71
72
  "path",
@@ -75,9 +76,9 @@ const I = ({
75
76
  }
76
77
  )
77
78
  }
78
- ), H = ({
79
- progress: a,
80
- label: r,
79
+ ), O = ({
80
+ progress: r,
81
+ label: a,
81
82
  className: l
82
83
  }) => /* @__PURE__ */ e("div", { class: d("IncodeProgressBarContainer", l), children: [
83
84
  /* @__PURE__ */ e(
@@ -85,142 +86,164 @@ const I = ({
85
86
  {
86
87
  class: "IncodeProgressBar",
87
88
  role: "progressbar",
88
- "aria-valuenow": a,
89
+ "aria-valuenow": r,
89
90
  "aria-valuemin": 0,
90
91
  "aria-valuemax": 100,
91
- "aria-label": r,
92
- children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${a}%` } })
92
+ "aria-label": a,
93
+ children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${r}%` } })
93
94
  }
94
95
  ),
95
- r ? /* @__PURE__ */ e(h, { children: [
96
- /* @__PURE__ */ e(s, { size: 24 }),
97
- /* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children: r })
96
+ a ? /* @__PURE__ */ e(w, { children: [
97
+ /* @__PURE__ */ e(v, { size: 24 }),
98
+ /* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children: a })
98
99
  ] }) : null
99
- ] }), b = p(
100
+ ] }), x = f(
100
101
  ({
101
- variant: a,
102
- aspectRatio: r,
102
+ variant: r,
103
+ aspectRatio: a,
103
104
  orientation: l = "horizontal",
104
105
  frameState: c = "idle",
105
- className: i,
106
- children: o
107
- }, t) => {
108
- const n = `IncodeCameraFrame${c.charAt(0).toUpperCase()}${c.slice(1)}`;
106
+ className: o,
107
+ children: n
108
+ }, i) => {
109
+ const t = `IncodeCameraFrame${c.charAt(0).toUpperCase()}${c.slice(1)}`;
109
110
  return /* @__PURE__ */ e(
110
111
  "div",
111
112
  {
112
- ref: t,
113
+ ref: i,
113
114
  class: d(
114
115
  "IncodeCameraFrame",
115
- a === "fill" && "IncodeCameraFrameFill",
116
- a === "locked" && "IncodeCameraFrameLocked",
117
- a === "locked" && l === "horizontal" && "IncodeCameraFrameHorizontal",
118
- a === "locked" && l === "vertical" && "IncodeCameraFrameVertical",
119
- n,
120
- i
116
+ r === "fill" && "IncodeCameraFrameFill",
117
+ r === "locked" && "IncodeCameraFrameLocked",
118
+ r === "locked" && l === "horizontal" && "IncodeCameraFrameHorizontal",
119
+ r === "locked" && l === "vertical" && "IncodeCameraFrameVertical",
120
+ t,
121
+ o
121
122
  ),
122
- style: r ? { aspectRatio: r } : void 0,
123
+ style: a ? { aspectRatio: a } : void 0,
123
124
  "aria-hidden": !0,
124
- children: o
125
+ children: n
125
126
  }
126
127
  );
127
128
  }
128
- ), B = ({
129
- children: a,
130
- className: r
131
- }) => /* @__PURE__ */ e("div", { class: d("IncodeCameraOverlay", r), children: a }), V = ({
132
- title: a,
133
- subtitle: r,
134
- visible: l = !0,
135
- className: c
136
- }) => /* @__PURE__ */ e(
137
- "div",
138
- {
139
- class: d(
140
- "IncodeCameraOverlayHeader",
141
- !l && "IncodeCameraOverlayHeaderHidden",
142
- c
143
- ),
144
- children: [
145
- /* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderTitle", children: a || " " }),
146
- /* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderSubtitle", children: r || " " })
147
- ]
148
- }
149
- ), k = ({
150
- stream: a,
129
+ ), L = ({
151
130
  children: r,
131
+ className: a
132
+ }) => /* @__PURE__ */ e("div", { class: d("IncodeCameraOverlay", a), children: r }), M = ({
133
+ title: r,
134
+ subtitle: a,
135
+ visible: l = !0,
136
+ className: c,
137
+ titleId: o
138
+ }) => {
139
+ const n = C(null);
140
+ return u(() => {
141
+ n.current?.focus();
142
+ }, []), /* @__PURE__ */ e(
143
+ "div",
144
+ {
145
+ class: d(
146
+ "IncodeCameraOverlayHeader",
147
+ !l && "IncodeCameraOverlayHeaderHidden",
148
+ c
149
+ ),
150
+ children: [
151
+ /* @__PURE__ */ e(
152
+ y,
153
+ {
154
+ ref: n,
155
+ id: o,
156
+ className: "IncodeCameraOverlayHeaderTitle",
157
+ tabIndex: -1,
158
+ children: r
159
+ }
160
+ ),
161
+ /* @__PURE__ */ e("p", { class: "IncodeCameraOverlayHeaderSubtitle", children: a })
162
+ ]
163
+ }
164
+ );
165
+ }, Z = ({
166
+ stream: r,
167
+ children: a,
152
168
  videoRef: l,
153
169
  className: c,
154
- ...i
170
+ ...o
155
171
  }) => {
156
- const o = v(null), t = (n) => {
157
- o.current = n, typeof l == "function" ? l(n) : l && (l.current = n);
172
+ const n = C(null), i = (t) => {
173
+ n.current = t, typeof l == "function" ? l(t) : l && (l.current = t);
158
174
  };
159
- return m(() => {
160
- o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
175
+ return u(() => {
176
+ n.current && r && (n.current.srcObject = r, n.current.play().catch(() => {
161
177
  }));
162
- }, [a]), /* @__PURE__ */ e("div", { class: d("IncodeCameraView", c), ...i, children: [
178
+ }, [r]), /* @__PURE__ */ e("div", { class: d("IncodeCameraView", c), ...o, children: [
163
179
  /* @__PURE__ */ e("div", { class: "IncodeCameraViewVideo", children: /* @__PURE__ */ e(
164
180
  "video",
165
181
  {
166
- ref: t,
182
+ ref: i,
167
183
  autoplay: !0,
168
184
  playsInline: !0,
169
185
  muted: !0,
186
+ "aria-hidden": "true",
170
187
  class: "IncodeCameraViewVideoElement"
171
188
  }
172
189
  ) }),
173
- r
190
+ a
174
191
  ] });
175
- }, O = ({
176
- onOpenHelp: a,
177
- onCapture: r,
192
+ }, P = ({
193
+ onOpenHelp: r,
194
+ onCapture: a,
178
195
  isManualCapture: l,
179
196
  captureAriaLabel: c,
180
- helpAriaLabel: i,
181
- encryptionLabel: o,
182
- children: t
197
+ captureAriaDescribedBy: o,
198
+ helpAriaLabel: n,
199
+ helpButtonRef: i,
200
+ captureButtonRef: t,
201
+ encryptionLabel: h,
202
+ children: p
183
203
  }) => {
184
- const { t: n } = C();
204
+ const { t: s } = m();
185
205
  return /* @__PURE__ */ e("div", { class: "IncodeCaptureFooter", children: [
186
206
  /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterEncryption", children: [
187
- /* @__PURE__ */ e(f, { className: "IncodeCaptureFooterEncryptionIcon" }),
188
- /* @__PURE__ */ e("span", { children: o ?? n("v2.capture.label") })
207
+ /* @__PURE__ */ e(H, { className: "IncodeCaptureFooterEncryptionIcon" }),
208
+ /* @__PURE__ */ e("span", { children: h ?? s("v2.capture.label") })
189
209
  ] }),
190
- l && r ? /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterCaptureSection", children: [
191
- t,
210
+ l && a ? /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterCaptureSection", children: [
211
+ p,
192
212
  /* @__PURE__ */ e(
193
213
  "button",
194
214
  {
215
+ ref: t,
195
216
  type: "button",
196
217
  class: "IncodeCaptureFooterCaptureButton",
197
- onClick: r,
198
- "aria-label": c ?? n("manualCapture.ariaLabel"),
218
+ onClick: a,
219
+ "aria-label": c ?? s("manualCapture.ariaLabel"),
220
+ "aria-describedby": o,
199
221
  "data-testid": "capture-button",
200
- children: /* @__PURE__ */ e(I, {})
222
+ children: /* @__PURE__ */ e(g, {})
201
223
  }
202
224
  )
203
225
  ] }) : null,
204
226
  /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterHelp", children: /* @__PURE__ */ e(
205
- u,
227
+ I,
206
228
  {
229
+ ref: i,
207
230
  variant: "link",
208
- onClick: a,
209
- "aria-label": i ?? n("idv2.needHelp.open"),
231
+ onClick: r,
232
+ "aria-label": n ?? s("idv2.needHelp.open"),
210
233
  class: "IncodeCaptureFooterHelpButton",
211
- children: /* @__PURE__ */ e(w, {})
234
+ children: /* @__PURE__ */ e(F, {})
212
235
  }
213
236
  ) })
214
237
  ] });
215
238
  };
216
239
  export {
217
- B as C,
218
- w as H,
219
- f as L,
220
- H as P,
221
- b as a,
222
- k as b,
223
- V as c,
224
- O as d,
225
- I as e
240
+ L as C,
241
+ F as H,
242
+ H as L,
243
+ O as P,
244
+ x as a,
245
+ Z as b,
246
+ M as c,
247
+ P as d,
248
+ g as e
226
249
  };
@@ -5,7 +5,7 @@ import "@incodetech/core";
5
5
  import { P as H } from "./page-BVHG3h0V.js";
6
6
  import { S as M } from "./spinner-Cx3FPUCD.js";
7
7
  import { r as z } from "./incodeModule-aE-LkKwM.js";
8
- import { C as U, c as A, a as K, d as j, b as G, P as W, L as $ } from "./captureFooter-X2qN1773.js";
8
+ import { C as U, c as A, a as K, d as j, b as G, P as W, L as $ } from "./captureFooter-x4F9jMyX.js";
9
9
  import "./uiConfig-Z6RT23Sl.js";
10
10
  import { M as q, C as J, F as Q } from "./fileIcon-DOyMcRWU.js";
11
11
  import { E as X } from "./errorContent-yUAdbZ5o.js";
@@ -7,7 +7,7 @@ import { S as xe, T as Ie, a as be, b as fe, c as ve, d as ge } from "./spinner-
7
7
  import { P as Te } from "./processing-CDgOueI3.js";
8
8
  import { E as we } from "./errorContent-yUAdbZ5o.js";
9
9
  import { F as Be, V as Le } from "./formField-FeX9N4c8.js";
10
- import { a as Se, C as Fe, c as He, b as De, e as Ee, d as Pe, H as Ve, L as We, P as $e } from "./captureFooter-X2qN1773.js";
10
+ import { a as Se, C as Fe, c as He, b as De, e as Ee, d as Pe, H as Ve, L as We, P as $e } from "./captureFooter-x4F9jMyX.js";
11
11
  import { a as Oe, I as je } from "./inputComposed-BHi-MSpP.js";
12
12
  import { O as qe } from "./otpInput-DdkvlvCS.js";
13
13
  import { D as f, d as W, A as $, y as R, q as O } from "./vendor-preact-BXf0bkEs.js";
@@ -16,12 +16,12 @@ import { P as Ne } from "./phoneInputComposed-BG1BANDW.js";
16
16
  import { D as Ge, S as Je } from "./dropdownComposed-B5ZuQS8C.js";
17
17
  import { C as Qe, D as Xe } from "./dateInputComposed-CvFmQpJ0.js";
18
18
  import { S as j } from "./successIcon-BybULRRU.js";
19
- import { B as _e, L as ea, P as aa } from "./permissions-BDElyTL4.js";
19
+ import { B as _e, L as ea, P as aa } from "./permissions-CT8ELJ55.js";
20
20
  import { C as oa } from "./chevronDown-BUaOuf9J.js";
21
21
  import { C as ta } from "./closeIcon-BM7WLbKp.js";
22
22
  import { c as ca, b as da, g as ia } from "./countries-CM1cm_kP.js";
23
- import { C as pa, T as ha } from "./tutorial-D8y4KZtv.js";
24
- import { a as ua, C as ma, b as xa, I as Ia, F as ba, T as fa } from "./flipAnimation-CSNIRlbv.js";
23
+ import { C as pa, T as ha } from "./tutorial-DDrNTMZU.js";
24
+ import { a as ua, C as ma, b as xa, I as Ia, F as ba, T as fa } from "./flipAnimation-C1mmGMlP.js";
25
25
  const U = ({ size: a = 28 }) => /* @__PURE__ */ e(
26
26
  "svg",
27
27
  {