@incodetech/web 0.0.0-dev-20260819-0bebbdc2 → 0.0.0-dev-20260819-1e7df894

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.
@@ -17,16 +17,25 @@ function getFrameState(status) {
17
17
  var FiscalQrCapture = ({ manager, state }) => {
18
18
  const { t } = useTranslation();
19
19
  const showError = state.status === "error";
20
+ const statusMessage = state.status === "capturing" ? t("common.holdOnASec") : state.status === "success" ? t("idOcr.successTitle") : void 0;
20
21
  return /* @__PURE__ */ u(Page, {
21
22
  hideHeader: true,
22
23
  hideFooterBranding: true,
23
24
  className: "IncodeFiscalQrPage IncodeFiscalQrCapturePage",
25
+ "data-testid": "fiscal-qr-capture",
24
26
  children: /* @__PURE__ */ u(CameraView, {
25
27
  stream: state.stream,
26
28
  "data-testid": "fiscal-qr-camera",
27
29
  children: /* @__PURE__ */ u(CameraOverlay, {
28
30
  className: "IncodeFiscalQrOverlay",
29
31
  children: [
32
+ statusMessage ? /* @__PURE__ */ u("p", {
33
+ class: "IncodeSrOnly",
34
+ role: "status",
35
+ "aria-live": "polite",
36
+ "data-testid": "fiscal-qr-capture-status",
37
+ children: statusMessage
38
+ }) : null,
30
39
  /* @__PURE__ */ u("div", {
31
40
  class: "IncodeFiscalQrCaptureTopSection",
32
41
  children: /* @__PURE__ */ u(CameraOverlayHeader, {
@@ -54,6 +63,7 @@ var FiscalQrCapture = ({ manager, state }) => {
54
63
  children: /* @__PURE__ */ u(Button, {
55
64
  variant: "link",
56
65
  onClick: () => manager.skip(),
66
+ "data-testid": "fiscal-qr-skip",
57
67
  children: t("common.skip")
58
68
  })
59
69
  })
@@ -198,6 +208,7 @@ var FiscalQrContent = ({ config, manager: externalManager, onFinish }) => {
198
208
  title: t("fiscalQr.tutorial.v2.title"),
199
209
  subtitle: t("fiscalQr.tutorial.v2.subtitle"),
200
210
  className: "IncodeFiscalQrPage",
211
+ "data-testid": "fiscal-qr-tutorial",
201
212
  children: /* @__PURE__ */ u("div", {
202
213
  class: "IncodeFiscalQrTutorialContent",
203
214
  children: [
@@ -205,6 +216,7 @@ var FiscalQrContent = ({ config, manager: externalManager, onFinish }) => {
205
216
  /* @__PURE__ */ u(Spacer, {}),
206
217
  /* @__PURE__ */ u(Button, {
207
218
  onClick: () => manager.continue(),
219
+ "data-testid": "fiscal-qr-continue",
208
220
  children: t("common.continue")
209
221
  })
210
222
  ]
@@ -6,6 +6,18 @@
6
6
  animation-fill-mode: both;
7
7
  }
8
8
 
9
+ .IncodeFiscalQrPage .IncodeSrOnly {
10
+ clip-path: inset(50%);
11
+ white-space: nowrap;
12
+ border-width: 0;
13
+ width: 1px;
14
+ height: 1px;
15
+ margin: -1px;
16
+ padding: 0;
17
+ position: absolute;
18
+ overflow: hidden;
19
+ }
20
+
9
21
  .IncodeFiscalQrPage .IncodeFiscalQrTutorialContent {
10
22
  margin-top: var(--spacing-32, var(--spacing-32, 32px));
11
23
  margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
@@ -4666,6 +4666,18 @@
4666
4666
  animation-fill-mode: both;
4667
4667
  }
4668
4668
 
4669
+ .IncodeFiscalQrPage .IncodeSrOnly {
4670
+ clip-path: inset(50%);
4671
+ white-space: nowrap;
4672
+ border-width: 0;
4673
+ width: 1px;
4674
+ height: 1px;
4675
+ margin: -1px;
4676
+ padding: 0;
4677
+ position: absolute;
4678
+ overflow: hidden;
4679
+ }
4680
+
4669
4681
  .IncodeFiscalQrPage .IncodeFiscalQrTutorialContent {
4670
4682
  margin-top: var(--spacing-32, var(--spacing-32, 32px));
4671
4683
  margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260819-0bebbdc2",
3
+ "version": "0.0.0-dev-20260819-1e7df894",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -292,7 +292,7 @@
292
292
  "qrcode": "^1.5.4",
293
293
  "signature_pad": "^5.1.3",
294
294
  "tailwindcss": "^4.1.17",
295
- "@incodetech/core": "0.0.0-dev-20260819-0bebbdc2"
295
+ "@incodetech/core": "0.0.0-dev-20260819-1e7df894"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@microsoft/api-extractor": "^7.53.3",