@incodetech/web 0.0.0-dev-20260318-aab03c7 → 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.
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/base.css +2 -0
- package/dist/{captureFooter-X2qN1773.js → captureFooter-x4F9jMyX.js} +115 -92
- package/dist/{documentCapture-PdKA2frR.js → documentCapture-CBgZ-Z0-.js} +117 -131
- package/dist/extensibility.es.js +4 -4
- package/dist/{flipAnimation-CSNIRlbv.js → flipAnimation-C1mmGMlP.js} +503 -343
- package/dist/flow/flow.es.js +2 -2
- package/dist/flow/styles.css +53 -0
- package/dist/id/id.es.js +17 -16
- package/dist/id/styles.css +53 -0
- package/dist/{permissions-BDElyTL4.js → permissions-CT8ELJ55.js} +9 -1
- package/dist/selfie/selfie.es.js +2 -2
- package/dist/{tutorial-D8y4KZtv.js → tutorial-DDrNTMZU.js} +1 -1
- package/dist/types/extensibility.d.ts +4 -0
- package/package.json +2 -2
|
@@ -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-
|
|
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-
|
|
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
|
|
2
|
-
import { k as
|
|
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
|
|
5
|
-
className:
|
|
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:
|
|
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
|
-
),
|
|
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:
|
|
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
|
-
),
|
|
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:
|
|
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
|
-
),
|
|
79
|
-
progress:
|
|
80
|
-
label:
|
|
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":
|
|
89
|
+
"aria-valuenow": r,
|
|
89
90
|
"aria-valuemin": 0,
|
|
90
91
|
"aria-valuemax": 100,
|
|
91
|
-
"aria-label":
|
|
92
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${
|
|
92
|
+
"aria-label": a,
|
|
93
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${r}%` } })
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
|
-
|
|
96
|
-
/* @__PURE__ */ e(
|
|
97
|
-
/* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children:
|
|
96
|
+
a ? /* @__PURE__ */ e(w, { children: [
|
|
97
|
+
/* @__PURE__ */ e(v, { size: 24 }),
|
|
98
|
+
/* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children: a })
|
|
98
99
|
] }) : null
|
|
99
|
-
] }),
|
|
100
|
+
] }), x = f(
|
|
100
101
|
({
|
|
101
|
-
variant:
|
|
102
|
-
aspectRatio:
|
|
102
|
+
variant: r,
|
|
103
|
+
aspectRatio: a,
|
|
103
104
|
orientation: l = "horizontal",
|
|
104
105
|
frameState: c = "idle",
|
|
105
|
-
className:
|
|
106
|
-
children:
|
|
107
|
-
},
|
|
108
|
-
const
|
|
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:
|
|
113
|
+
ref: i,
|
|
113
114
|
class: d(
|
|
114
115
|
"IncodeCameraFrame",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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:
|
|
123
|
+
style: a ? { aspectRatio: a } : void 0,
|
|
123
124
|
"aria-hidden": !0,
|
|
124
|
-
children:
|
|
125
|
+
children: n
|
|
125
126
|
}
|
|
126
127
|
);
|
|
127
128
|
}
|
|
128
|
-
),
|
|
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
|
-
...
|
|
170
|
+
...o
|
|
155
171
|
}) => {
|
|
156
|
-
const
|
|
157
|
-
|
|
172
|
+
const n = C(null), i = (t) => {
|
|
173
|
+
n.current = t, typeof l == "function" ? l(t) : l && (l.current = t);
|
|
158
174
|
};
|
|
159
|
-
return
|
|
160
|
-
|
|
175
|
+
return u(() => {
|
|
176
|
+
n.current && r && (n.current.srcObject = r, n.current.play().catch(() => {
|
|
161
177
|
}));
|
|
162
|
-
}, [
|
|
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:
|
|
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
|
-
|
|
190
|
+
a
|
|
174
191
|
] });
|
|
175
|
-
},
|
|
176
|
-
onOpenHelp:
|
|
177
|
-
onCapture:
|
|
192
|
+
}, P = ({
|
|
193
|
+
onOpenHelp: r,
|
|
194
|
+
onCapture: a,
|
|
178
195
|
isManualCapture: l,
|
|
179
196
|
captureAriaLabel: c,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
197
|
+
captureAriaDescribedBy: o,
|
|
198
|
+
helpAriaLabel: n,
|
|
199
|
+
helpButtonRef: i,
|
|
200
|
+
captureButtonRef: t,
|
|
201
|
+
encryptionLabel: h,
|
|
202
|
+
children: p
|
|
183
203
|
}) => {
|
|
184
|
-
const { t:
|
|
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(
|
|
188
|
-
/* @__PURE__ */ e("span", { children:
|
|
207
|
+
/* @__PURE__ */ e(H, { className: "IncodeCaptureFooterEncryptionIcon" }),
|
|
208
|
+
/* @__PURE__ */ e("span", { children: h ?? s("v2.capture.label") })
|
|
189
209
|
] }),
|
|
190
|
-
l &&
|
|
191
|
-
|
|
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:
|
|
198
|
-
"aria-label": c ??
|
|
218
|
+
onClick: a,
|
|
219
|
+
"aria-label": c ?? s("manualCapture.ariaLabel"),
|
|
220
|
+
"aria-describedby": o,
|
|
199
221
|
"data-testid": "capture-button",
|
|
200
|
-
children: /* @__PURE__ */ e(
|
|
222
|
+
children: /* @__PURE__ */ e(g, {})
|
|
201
223
|
}
|
|
202
224
|
)
|
|
203
225
|
] }) : null,
|
|
204
226
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureFooterHelp", children: /* @__PURE__ */ e(
|
|
205
|
-
|
|
227
|
+
I,
|
|
206
228
|
{
|
|
229
|
+
ref: i,
|
|
207
230
|
variant: "link",
|
|
208
|
-
onClick:
|
|
209
|
-
"aria-label":
|
|
231
|
+
onClick: r,
|
|
232
|
+
"aria-label": n ?? s("idv2.needHelp.open"),
|
|
210
233
|
class: "IncodeCaptureFooterHelpButton",
|
|
211
|
-
children: /* @__PURE__ */ e(
|
|
234
|
+
children: /* @__PURE__ */ e(F, {})
|
|
212
235
|
}
|
|
213
236
|
) })
|
|
214
237
|
] });
|
|
215
238
|
};
|
|
216
239
|
export {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
};
|