@sekyro/elements 0.1.0-rc.2 → 0.1.0-rc.20

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/README.md +8 -9
  3. package/custom-elements.json +2 -2
  4. package/dist/cdn/chunks/barcode-detect-C5IOXMKI-ZOZ2WOWU.js +1 -0
  5. package/dist/cdn/chunks/{camera-trait-V4UAOPIQ-TFCPOCSU.js → camera-trait-DELAK3YN-4I2GHAFU.js} +1 -1
  6. package/dist/cdn/chunks/capture-session-doc-HIN3YZG2-ZOYOVMIF.js +1 -0
  7. package/dist/cdn/chunks/challenge-frame-YBTLAQ5G-NN763UU5.js +1 -0
  8. package/dist/cdn/chunks/chunk-2GVFM77I.js +33 -0
  9. package/dist/cdn/chunks/chunk-32CNXSJQ.js +1 -0
  10. package/dist/cdn/chunks/{chunk-UQKRYXN5.js → chunk-5JSOPXYS.js} +1 -1
  11. package/dist/cdn/chunks/{chunk-HTLQX2R3.js → chunk-677IJRH3.js} +1 -1
  12. package/dist/cdn/chunks/chunk-6MYG4HWP.js +1 -0
  13. package/dist/cdn/chunks/chunk-BMTTAXWY.js +25 -0
  14. package/dist/cdn/chunks/{chunk-NQHMZQZA.js → chunk-BO327WCQ.js} +1 -1
  15. package/dist/cdn/chunks/chunk-BWOTZKA7.js +1 -0
  16. package/dist/cdn/chunks/{chunk-JAIRD73U.js → chunk-CYEDFGUG.js} +1 -1
  17. package/dist/cdn/chunks/chunk-F4Q2Q4OC.js +1 -0
  18. package/dist/cdn/chunks/{chunk-KQQ6BZAH.js → chunk-FQHV53QQ.js} +1 -1
  19. package/dist/cdn/chunks/chunk-FZP5NLDQ.js +1 -0
  20. package/dist/cdn/chunks/chunk-HOBGJOBT.js +1 -0
  21. package/dist/cdn/chunks/{chunk-WQW232LA.js → chunk-HPTNANWX.js} +1 -1
  22. package/dist/cdn/chunks/{chunk-Y27EXTAY.js → chunk-IWZRAEUN.js} +1 -1
  23. package/dist/cdn/chunks/{chunk-M2F5OJOZ.js → chunk-K67DQTFL.js} +1 -1
  24. package/dist/cdn/chunks/{chunk-Y7VOIKUK.js → chunk-L7I27OCG.js} +1 -1
  25. package/dist/cdn/chunks/chunk-LHYSCL4T.js +1 -0
  26. package/dist/cdn/chunks/chunk-MINBJAVX.js +1 -0
  27. package/dist/cdn/chunks/chunk-MXMEO2IW.js +1 -0
  28. package/dist/cdn/chunks/chunk-PND4F7JQ.js +1 -0
  29. package/dist/cdn/chunks/chunk-PZVVXMQ6.js +1 -0
  30. package/dist/cdn/chunks/chunk-RH466MDF.js +3 -0
  31. package/dist/cdn/chunks/chunk-SIBJ56BG.js +1 -0
  32. package/dist/cdn/chunks/chunk-SLLJX5QK.js +1 -0
  33. package/dist/cdn/chunks/chunk-U7QPOSFH.js +1 -0
  34. package/dist/cdn/chunks/{chunk-SVIHEXDZ.js → chunk-X6LDVTUQ.js} +1 -1
  35. package/dist/cdn/chunks/chunk-YZWLMKXA.js +1 -0
  36. package/dist/cdn/chunks/{chunk-4ECYTYEB.js → chunk-Z6OYPC4S.js} +1 -1
  37. package/dist/cdn/chunks/chunk-ZJNLNYA5.js +1 -0
  38. package/dist/cdn/chunks/create-document-capture-Z3UK34XH-J7HHUVQU.js +1 -0
  39. package/dist/cdn/chunks/{create-portrait-capture-5VGYZUOK-N3333DJC.js → create-portrait-capture-5VGYZUOK-KTCFCHTN.js} +1 -1
  40. package/dist/cdn/chunks/{detector-scanic-YCDNLCGV-FH6NWNXC.js → detector-scanic-P2RTEQUV-A5WTP2Q7.js} +1 -1
  41. package/dist/cdn/chunks/document-capture-view-NI4452T4-UL6ELWE6.js +1 -0
  42. package/dist/cdn/chunks/eid-view-GAIQODI5-AH3LJYP4.js +1 -0
  43. package/dist/cdn/chunks/email-otp-view-SM2POPMA-XEEHDST5.js +1 -0
  44. package/dist/cdn/chunks/flow-views-NBUWHG7J-HB57IJYX.js +1 -0
  45. package/dist/cdn/chunks/form-view-GOFXOQJO-6K34NRBN.js +1 -0
  46. package/dist/cdn/chunks/overlay-de-YLCWZB42-REI3GVKV.js +1 -0
  47. package/dist/cdn/chunks/overlay-es-YIPBOMXT-5DHSESGX.js +1 -0
  48. package/dist/cdn/chunks/overlay-pt-JSDCAYVA-MQHVGOHK.js +1 -0
  49. package/dist/cdn/chunks/plan-runner-JSLWPJ6D-7PE72QOP.js +1 -0
  50. package/dist/cdn/chunks/portrait-capture-view-TTUVVA7L-ENQSXXXH.js +1 -0
  51. package/dist/cdn/chunks/{portrait-review-view-XUWQ5LIN-M5WOPF2E.js → portrait-review-view-BCIENGKR-SHYX5FRE.js} +1 -1
  52. package/dist/cdn/chunks/print-DCYX3CZD-DLQCPZZE.js +11 -0
  53. package/dist/cdn/chunks/proof-of-address-view-SS2TIV3D-GFY3THLT.js +1 -0
  54. package/dist/cdn/chunks/reader-652D2CK6.js +2 -0
  55. package/dist/cdn/chunks/upload-file-EGXXM6TQ-NNVVB5QQ.js +1 -0
  56. package/dist/cdn/define.js +1 -1
  57. package/dist/cdn/index.js +1 -1
  58. package/dist/{chunk-IQ7FLSNW.js → chunk-2TOYHI7F.js} +1 -1
  59. package/dist/{chunk-INKK6CKB.js → chunk-2ZWLZDO2.js} +1 -1
  60. package/dist/{chunk-IFHBX74I.js → chunk-3NYC5YLB.js} +1 -1
  61. package/dist/chunk-3T7JA7T7.js +1 -0
  62. package/dist/chunk-47ELGOCA.js +1 -0
  63. package/dist/{chunk-LREBBPJW.js → chunk-7FYJ4XL4.js} +1 -1
  64. package/dist/{chunk-LHD2PSUM.js → chunk-AUISCZAL.js} +1 -1
  65. package/dist/{chunk-OQUTKFRP.js → chunk-GXENE4GQ.js} +1 -1
  66. package/dist/{chunk-GTN3SYJJ.js → chunk-HRJ5PESP.js} +1 -1
  67. package/dist/chunk-IYLMNTY5.js +33 -0
  68. package/dist/chunk-P223YKM3.js +1 -0
  69. package/dist/chunk-TBECC5OK.js +1 -0
  70. package/dist/{chunk-6LR6LY2U.js → chunk-UJM3T4QD.js} +1 -1
  71. package/dist/{chunk-S6JGFCOP.js → chunk-V4USJ5ZA.js} +1 -1
  72. package/dist/chunk-XXCBLQ53.js +1 -0
  73. package/dist/chunk-YUZW7NSK.js +25 -0
  74. package/dist/define.cjs +6 -6
  75. package/dist/define.js +1 -1
  76. package/dist/document-capture-view-NI4452T4-VZHREVJN.js +1 -0
  77. package/dist/{eid-view-ERVRHLLD-NLA6CQL7.js → eid-view-GAIQODI5-KCEO3AZS.js} +1 -1
  78. package/dist/email-otp-view-SM2POPMA-O7WM3ZEZ.js +1 -0
  79. package/dist/flow-views-NBUWHG7J-PO2CMTIF.js +1 -0
  80. package/dist/form-view-GOFXOQJO-CRQWOLQA.js +1 -0
  81. package/dist/index.cjs +6 -6
  82. package/dist/index.d.cts +189 -8
  83. package/dist/index.d.ts +189 -8
  84. package/dist/index.js +1 -1
  85. package/dist/overlay-de-YLCWZB42-XINMWIXZ.js +1 -0
  86. package/dist/overlay-es-YIPBOMXT-MS7EN5ZX.js +1 -0
  87. package/dist/overlay-pt-JSDCAYVA-27WQ3BLB.js +1 -0
  88. package/dist/{portrait-capture-view-TMHG2UX2-4DHDNWRH.js → portrait-capture-view-TTUVVA7L-6BGZEV6C.js} +1 -1
  89. package/dist/{portrait-review-view-XUWQ5LIN-7GZ3GF2B.js → portrait-review-view-BCIENGKR-WZ7GCBEX.js} +1 -1
  90. package/dist/proof-of-address-view-SS2TIV3D-C6YD4BRC.js +1 -0
  91. package/dist/styles.css +131 -20
  92. package/package.json +2 -2
  93. package/sbom.cdx.json +4 -4
  94. package/dist/cdn/chunks/capture-session-doc-O33KRXH7-X5MKSSBA.js +0 -1
  95. package/dist/cdn/chunks/challenge-frame-NUGPTWFP-V3GGQN65.js +0 -1
  96. package/dist/cdn/chunks/chunk-2FETDQV5.js +0 -1
  97. package/dist/cdn/chunks/chunk-3NAYOW43.js +0 -1
  98. package/dist/cdn/chunks/chunk-CSM63KBJ.js +0 -3
  99. package/dist/cdn/chunks/chunk-CW56KMMH.js +0 -1
  100. package/dist/cdn/chunks/chunk-EPEHFY6J.js +0 -1
  101. package/dist/cdn/chunks/chunk-FAQCPBKF.js +0 -1
  102. package/dist/cdn/chunks/chunk-GRJNZG6Y.js +0 -33
  103. package/dist/cdn/chunks/chunk-KVTY4E6J.js +0 -1
  104. package/dist/cdn/chunks/chunk-LNQJGD3J.js +0 -1
  105. package/dist/cdn/chunks/chunk-OTGSYUHN.js +0 -25
  106. package/dist/cdn/chunks/chunk-OVRHETMK.js +0 -1
  107. package/dist/cdn/chunks/chunk-P3OIDL7Y.js +0 -1
  108. package/dist/cdn/chunks/chunk-UJSGILV7.js +0 -1
  109. package/dist/cdn/chunks/chunk-UQ5AELS3.js +0 -1
  110. package/dist/cdn/chunks/chunk-YF5BWIHV.js +0 -1
  111. package/dist/cdn/chunks/create-document-capture-OLKNUVTU-Q3AGV6QB.js +0 -1
  112. package/dist/cdn/chunks/document-capture-view-GZX5JJ7N-PRYTX37D.js +0 -1
  113. package/dist/cdn/chunks/eid-view-ERVRHLLD-ONTAYXU7.js +0 -1
  114. package/dist/cdn/chunks/email-otp-view-B7UQ5CHL-GWHWAR75.js +0 -1
  115. package/dist/cdn/chunks/flow-views-IGQ5MYS2-3UXKITDZ.js +0 -1
  116. package/dist/cdn/chunks/overlay-de-5KYN4JFO-I4ESJMAS.js +0 -1
  117. package/dist/cdn/chunks/overlay-es-6CAERCCN-SPFAX3SD.js +0 -1
  118. package/dist/cdn/chunks/overlay-pt-UBGXJ3C3-MWW4QOSN.js +0 -1
  119. package/dist/cdn/chunks/plan-runner-VKPRZ3AD-VYRGIMQG.js +0 -1
  120. package/dist/cdn/chunks/portrait-capture-view-TMHG2UX2-N44IPYHU.js +0 -1
  121. package/dist/cdn/chunks/print-SEWS3VHQ-HWJTHADG.js +0 -11
  122. package/dist/cdn/chunks/upload-file-UYXOHCRG-MBYCMRP2.js +0 -1
  123. package/dist/chunk-4QKQAQKO.js +0 -1
  124. package/dist/chunk-GRQ3QAMU.js +0 -33
  125. package/dist/chunk-KXJRO6VZ.js +0 -1
  126. package/dist/chunk-SBJNQYEL.js +0 -25
  127. package/dist/chunk-YZ6YGLNN.js +0 -1
  128. package/dist/document-capture-view-GZX5JJ7N-ZW55IE6H.js +0 -1
  129. package/dist/email-otp-view-B7UQ5CHL-67LKMWBY.js +0 -1
  130. package/dist/flow-views-IGQ5MYS2-DVYTE4D2.js +0 -1
  131. package/dist/overlay-de-5KYN4JFO-MYA62T4Z.js +0 -1
  132. package/dist/overlay-es-6CAERCCN-QPH54AX7.js +0 -1
  133. package/dist/overlay-pt-UBGXJ3C3-VG6FOOCX.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,173 @@
1
1
  # @sekyro/elements
2
2
 
3
+ ## 0.1.0-rc.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
8
+ - Updated dependencies [f341f83]
9
+ - Updated dependencies [62dd01e]
10
+ - Updated dependencies
11
+ - Updated dependencies [00bc614]
12
+ - Updated dependencies [49bb89b]
13
+ - Updated dependencies [8f3fb74]
14
+ - @sekyro/web@0.1.0-rc.41
15
+
16
+ ## 0.1.0-rc.19
17
+
18
+ ### Patch Changes
19
+
20
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
21
+ - Updated dependencies [4f4bd85]
22
+ - @sekyro/web@0.1.0-rc.40
23
+
24
+ ## 0.1.0-rc.18
25
+
26
+ ### Patch Changes
27
+
28
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
29
+ - Updated dependencies [9610931]
30
+ - Updated dependencies [10715ba]
31
+ - @sekyro/web@0.1.0-rc.39
32
+
33
+ ## 0.1.0-rc.17
34
+
35
+ ### Patch Changes
36
+
37
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
38
+ - Updated dependencies [7528fca]
39
+ - Updated dependencies [451cd78]
40
+ - Updated dependencies [4743339]
41
+ - Updated dependencies [ae5142b]
42
+ - @sekyro/web@0.1.0-rc.38
43
+
44
+ ## 0.1.0-rc.16
45
+
46
+ ### Patch Changes
47
+
48
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
49
+ - Updated dependencies [8bbc6f8]
50
+ - @sekyro/web@0.1.0-rc.36
51
+
52
+ ## 0.1.0-rc.15
53
+
54
+ ### Patch Changes
55
+
56
+ - ba23547: The document camera keeps its instruction at the top steady: it says what to scan and nothing else. Problems and capture hints now show in a warning band directly under the scan frame. A wrong document says what the camera saw and what to show instead ("This looks like a passport. Show your residence permit instead.") and stays until a later photo is taken; it is no longer replaced after 2 seconds. A refused photo (blurry, unreadable, same side, a server retake reason with the attempts left) stays at least 3 seconds and through the retake, so a second refusal never makes the band blink. Capture hints (glare, too far, too dark, the code-line reader's coaching) stay at least 2.5 seconds once shown. The band is a polite live region and grows in and out, so nothing under it jumps. New string keys: `native.scan.seenPassport`, `native.scan.seenCard`, `native.scan.showInstead.{carte_identite,passport,residence_permit,drivers_license}`.
57
+ - Updated dependencies [675fc46]
58
+ - @sekyro/web@0.1.0-rc.35
59
+
60
+ ## 0.1.0-rc.14
61
+
62
+ ### Patch Changes
63
+
64
+ - 9a15ded: Voice guidance now plays its first prompt when the capture starts on its own, before the person has tapped the page. Browsers refuse audio until the first tap. Before, that first prompt was counted as spoken and never played, so a cold page load stayed silent until the guidance changed. Now the refused prompt plays on the first tap, once. Prompts still play one at a time, a newer prompt replaces a waiting one, and a prompt never repeats.
65
+
66
+ ## 0.1.0-rc.13
67
+
68
+ ### Patch Changes
69
+
70
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
71
+ - Updated dependencies [e38c7e2]
72
+ - Updated dependencies [5c2b1fa]
73
+ - Updated dependencies [24c87ef]
74
+ - Updated dependencies [ea2bd51]
75
+ - Updated dependencies [b3a1018]
76
+ - @sekyro/web@0.1.0-rc.34
77
+
78
+ ## 0.1.0-rc.12
79
+
80
+ ### Patch Changes
81
+
82
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
83
+ - Updated dependencies [b61c1b7]
84
+ - @sekyro/web@0.1.0-rc.33
85
+
86
+ ## 0.1.0-rc.11
87
+
88
+ ### Patch Changes
89
+
90
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
91
+ - Updated dependencies [7a73651]
92
+ - Updated dependencies [18265a3]
93
+ - @sekyro/web@0.1.0-rc.32
94
+
95
+ ## 0.1.0-rc.10
96
+
97
+ ### Patch Changes
98
+
99
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
100
+ - Updated dependencies [a649247]
101
+ - @sekyro/web@0.1.0-rc.31
102
+
103
+ ## 0.1.0-rc.9
104
+
105
+ ### Patch Changes
106
+
107
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
108
+ - Updated dependencies [e70fdcd]
109
+ - @sekyro/web@0.1.0-rc.30
110
+
111
+ ## 0.1.0-rc.8
112
+
113
+ ### Patch Changes
114
+
115
+ - 8a832f3: `<sekyro-verification>` draws the Form step with the bundled `@sekyro/react` (planned: no flow can contain it yet).
116
+ - 9d173d9: `<SekyroVerification>` titles no longer change shape when Geist arrives: until the title face has loaded they are drawn in a metric-matched bold fallback (Arial Bold or Roboto Bold, sized to Geist), where they used to show Inter or the system face at a different width, so the title reflowed when Geist arrived. The result title now uses the flow's hero size (28 px), as on iOS and Android. A partner font still replaces the titles' face.
117
+ - Updated dependencies [1e6001c]
118
+ - Updated dependencies [06d8764]
119
+ - Updated dependencies [1c7c752]
120
+ - Updated dependencies [030c9dc]
121
+ - Updated dependencies [4581cc5]
122
+ - Updated dependencies [1b8395d]
123
+ - Updated dependencies [43ae1ec]
124
+ - Updated dependencies [a63d45e]
125
+ - Updated dependencies [98f6752]
126
+ - Updated dependencies [567f41a]
127
+ - Updated dependencies [a75a33e]
128
+ - Updated dependencies [80fbf3d]
129
+ - @sekyro/web@0.1.0-rc.29
130
+
131
+ ## 0.1.0-rc.7
132
+
133
+ ### Patch Changes
134
+
135
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
136
+
137
+ ## 0.1.0-rc.6
138
+
139
+ ### Patch Changes
140
+
141
+ - f3470cd: The result screen's words fit a person who is still in your app or page. The verified line reads "Your verification is complete." (no more "You can go back to {org}"). The inconclusive, unavailable and expired screens no longer ask for a new link: inconclusive says "Start again from {org}, in good light and holding the phone upright. Contact {org} if this keeps happening.", unavailable says "Try again later from {org}, or contact {org} if this keeps happening.", and expired is titled "This verification has ended" with "Start again from {org}.". The verified title now says what the session proved, from `result.level` and `result.assurance`: "Your identity is verified" at level 3, "Your phone number is confirmed" or "Your email address is confirmed" for a level 1 code, and "You're verified" otherwise (level 2, a liveness check, no longer claims an identity). All six languages. New string keys you can override through `strings`: `native.result.expiredTitle`, `session.result.verified.titleHuman`, `session.result.verified.titlePhone`, `session.result.verified.titleEmail`.
142
+ - 5379d91: A level 1 result that is not exactly one phone code or one email code (for example both confirmed, or a contact your organization supplied) is now titled "Your details are confirmed" instead of "You're verified". Level 2 and a result with no level keep "You're verified". The same on Android, iOS and Flutter. All six languages. New string key you can override through `strings`: `session.result.verified.titleContact`.
143
+ - 14faf9e: The result screen of a simulated Sandbox session now shows a short notice: "This was a simulation", with what to do to run real checks (enroll a Sandbox tester, or run the tester check at the start of the session). It appears only on a Sandbox session that no enrolled tester ran, never in Live, and it follows your theme and the six languages. The result you receive (`onResult`, `onClose`, the `sekyro-result` event) carries `sandbox: { simulated: true, reason }` with `@sekyro/web` at this release or later. Three string keys are new and can be overridden through `strings`: `sandbox.simulatedTitle`, `sandbox.simulatedNoTesters` and `sandbox.simulatedGate`.
144
+ - Updated dependencies [94565f2]
145
+ - Updated dependencies [14faf9e]
146
+ - @sekyro/web@0.1.0-rc.28
147
+
148
+ ## 0.1.0-rc.5
149
+
150
+ ### Patch Changes
151
+
152
+ - 3aab1fe: The result screen's button now reads "Continue" for every outcome (fr « Continuer », ar «متابعة», es "Continuar", pt "Continuar", de "Weiter"), with or without an organization name. The flow runs inside your app or page, so the person never left it: "Back to {org}" made people think they had. The dead-end pages (update needed, a step this browser cannot do) use the same button. Nothing else changes: the button still shows only when you pass `onClose`, and pressing it still calls `onClose({ reason: "finished", result })`. The string key `native.result.back` is replaced by `native.result.continue`; if you override the label through `strings`, rename the key.
153
+
154
+ ## 0.1.0-rc.4
155
+
156
+ ### Patch Changes
157
+
158
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
159
+ - Updated dependencies [707ccc7]
160
+ - @sekyro/web@0.1.0-rc.27
161
+
162
+ ## 0.1.0-rc.3
163
+
164
+ ### Patch Changes
165
+
166
+ - Carries the @sekyro/react release of this version: the changes in its changelog reach the element.
167
+ - Updated dependencies [246b0f3]
168
+ - Updated dependencies [cc7eedb]
169
+ - @sekyro/web@0.1.0-rc.26
170
+
3
171
  ## 0.1.0-rc.2
4
172
 
5
173
  ### Patch Changes
package/README.md CHANGED
@@ -59,7 +59,7 @@ It is idempotent and does nothing without a DOM.
59
59
  | `locale` | `locale` | `ar`, `fr`, `en`, `es`, `pt` or `de`. Without it: the page's `<html lang>` when it is one of them, else `en`. Arabic runs right to left. |
60
60
  | `color-scheme` | `colorScheme` | `light` (default), `dark`, or `system` to follow the device. |
61
61
  | `asset-base-url` | `assetBaseUrl` | Where your page serves the face detector assets (see "Model assets"). |
62
- | `closable` | `closable` | Shows the header's close button and the result's "Back to" button; both fire `sekyro-close`. |
62
+ | `closable` | `closable` | Shows the header's close button and the result's "Continue" button; both fire `sekyro-close`. |
63
63
  | `back-navigation` | `backNavigation` | `history`: the browser's back button goes one screen back inside the flow. `none` (default) never touches the page's history. |
64
64
  | `handoff-url` | `handoffUrl` | The link a desktop shows as a QR code when a camera step needs a phone (the session's `hostedUrl`). Without it, a notice asks to continue on a phone. |
65
65
  | `voice` | | `off` turns the spoken guidance off. |
@@ -79,6 +79,10 @@ The string attributes reflect: setting the property sets the attribute, and the
79
79
  | `documentLiveMrz` | `DocumentLiveMrzOptions` | Live MRZ reading on the document step: `workerUrl`, `assetBaseUrl`, or `mode: "off"`. |
80
80
  | `voice` | `false \| VoiceOptions` | Spoken guidance options. Set, it wins over the `voice` attribute. |
81
81
 
82
+ The element creates its own verification with the default `rearm: "auto"`: after a retryable refusal the camera
83
+ reopens by itself. For the coaching screen and a "Start a new attempt" button instead, create the verification with
84
+ `createVerification({ clientToken, locale, rearm: "manual" })` and set it as `verification`.
85
+
82
86
  Properties set before the element is defined (a framework binding, a script that ran first) are picked up when it
83
87
  upgrades.
84
88
 
@@ -232,17 +236,12 @@ page's resets: under Bootstrap's reboot or Tailwind's preflight the flow looks a
232
236
  ## Sandbox
233
237
 
234
238
  A Sandbox session shows its test chrome in the element exactly as in `@sekyro/react`: the "Test session" badge, the
235
- "Skip with test data" action and the tester check. Nothing to configure: it follows the session.
239
+ "Skip with test data" action, the tester check and, on the result screen of a session no enrolled tester ran, the
240
+ "This was a simulation" notice. The `sekyro-result` detail then carries `sandbox: { simulated: true, reason }`.
241
+ Nothing to configure: it follows the session.
236
242
 
237
243
  ## Size
238
244
 
239
245
  React and ReactDOM (production builds) and the whole flow, gzip, measured by `npm run size`: about 143 KiB for the
240
246
  npm entry (your bundler adds `@sekyro/web`), about 174 KiB for the CDN entry with `@sekyro/web`. Each step's view,
241
247
  the document camera and the es, pt and de copy load later, when used.
242
-
243
- ## Scripts
244
-
245
- - `npm run build`: the npm build (ESM and CJS), rolled-up declarations, `styles.css` and its fonts, and the CDN build.
246
- - `npm test`: the manifest check and the unit tests (jsdom, over the real flow); `npm run test:dist` checks the build.
247
- - `npm run e2e`: Playwright, the plain HTML page against a fixture-mode API (after `npm run build`).
248
- - `npm run size`, `npm run api:check`, `npm run manifest`.
@@ -78,7 +78,7 @@
78
78
  "text": "boolean"
79
79
  },
80
80
  "fieldName": "closable",
81
- "description": "Shows the header's close button and the result's back button. Both fire `sekyro-close`; take the person back to your page there."
81
+ "description": "Shows the header's close button and the result's Continue button. Both fire `sekyro-close`; take the person on from your page there."
82
82
  },
83
83
  {
84
84
  "name": "voice",
@@ -167,7 +167,7 @@
167
167
  },
168
168
  "attribute": "closable",
169
169
  "reflects": true,
170
- "description": "Shows the header's close button and the result's back button. Both fire `sekyro-close`; take the person back to your page there."
170
+ "description": "Shows the header's close button and the result's Continue button. Both fire `sekyro-close`; take the person on from your page there."
171
171
  },
172
172
  {
173
173
  "kind": "field",
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-YZWLMKXA.js";import{a as t}from"./chunk-4FHWXBOB.js";var c={name:"zxing_reader.wasm",bytes:928265,sha256:"5bb3ce7aeedc314e24afb873bebcf366a01c27a00b21cdf2fa98b819c005c16b",sha12:"5bb3ce7aeedc"},d=["PDF417","QRCode","DataMatrix","Aztec"];function f(e){return`${e.replace(/\/+$/,"")}/${c.sha12}/${c.name}`}t(f,"f");async function m(e,o=fetch){let r=await o(f(e),{cache:"force-cache",credentials:"omit"});if(!r.ok)throw new Error("barcode wasm download");let a=await r.arrayBuffer();if(a.byteLength!==c.bytes||await i(a)!==c.sha256)throw new Error("barcode wasm integrity");return a}t(m,"d");async function w(e,o=fetch){let r=await m(e,o),a=await import("./reader-652D2CK6.js");return await a.prepareZXingModule({overrides:{wasmBinary:r},fireImmediately:!0}),async s=>(await a.readBarcodes(s,{formats:[...d],tryHarder:!0,maxNumberOfSymbols:1})).some(n=>n.isValid)}t(w,"h");export{f as barcodeWasmUrl,m as fetchBarcodeWasm,w as loadBarcodeDetect};
@@ -1 +1 @@
1
- import{a,b as e,c as r,d as o}from"./chunk-KVTY4E6J.js";import"./chunk-4FHWXBOB.js";export{a as bounded,r as cameraHash,e as hex16,o as noteCameraTrait};
1
+ import{a,b as e,c as r,d as o}from"./chunk-PND4F7JQ.js";import"./chunk-4FHWXBOB.js";export{a as bounded,r as cameraHash,e as hex16,o as noteCameraTrait};
@@ -0,0 +1 @@
1
+ import{b as s,c as a,d as _,e as C,f as A,g as D,h as o,i as S,j as r,k as t,l as E,m as p,n as T,o as O,p as i,q as m,r as R}from"./chunk-FZP5NLDQ.js";import"./chunk-IWZRAEUN.js";import"./chunk-HOBGJOBT.js";import"./chunk-F4Q2Q4OC.js";import"./chunk-L22GFJQV.js";import"./chunk-U7QPOSFH.js";import"./chunk-P7K7ELYZ.js";import"./chunk-JS2IXPNL.js";import"./chunk-4FHWXBOB.js";export{i as CAPTURE_CANDIDATE_SPACING_MS,O as CAPTURE_EXTRA_CANDIDATES,m as CAPTURE_WINDOW_MS,p as CaptureSessionDoc,_ as DOC_BLACK_FRAME_LUMA,C as DOC_BLACK_FRAME_TICKS,A as DOC_CADENCE_HZ,a as DOC_FIRST_FRAME_MS,o as DOC_PROFILE_TICKS,t as DOC_SHUTTER_DEFAULTS,r as DOC_SLOW_TICK_MS,S as DOC_WARMUP_TICKS,R as REFOCUS_APPLY_MAX_MS,D as SIDE_PROBE_MS,T as passportBandOf,E as resolveDocShutterTuning,s as warmDocDetector};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-4FHWXBOB.js";var k=new Set(["challenge_frame_blocked","challenge_script_blocked","site_key_rejected","challenge_failed","timeout","embedder_opaque"]),f,i=(f=class extends Error{constructor(t,r){super(`Sekyro challenge failed: ${t}${r!==void 0?` (${r})`:""}`),this.name="ChallengeError",this.code=t,r!==void 0&&(this.detail=r)}},o(f,"i"),f),b=3e4,p=12e4,E="sekyro.challenge.",M="position:fixed;width:1px;height:1px;inset-block-start:0;inset-inline-start:0;opacity:0;pointer-events:none;border:0",d=null,m=Promise.resolve();function T(){y(),m=Promise.resolve(),g=!1}o(T,"F");function u(){return new i("aborted")}o(u,"d");function S(){let e=globalThis.crypto;return e!==void 0&&typeof e.randomUUID=="function"?e.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}o(S,"C");function v(e){return new URL(e,document.baseURI).origin}o(v,"h");function y(){let e=d;if(e!==null){d=null,window.removeEventListener("message",e.listener),e.iframe.remove();for(let t of e.waiters.values())t.reject(new i("challenge_frame_blocked"));e.waiters.clear()}}o(y,"u");function A(e,t){if(t.source!==e.iframe.contentWindow||t.origin!==e.origin)return;let r=t.data;if(typeof r!="object"||r===null)return;let n=r;if(typeof n.type!="string"||!n.type.startsWith(E)||n.v!==1)return;if(n.type==="sekyro.challenge.ready"){e.readyMs??(e.readyMs=Date.now()-e.insertedAt),e.isReady=!0,e.onReady?.();return}if(typeof n.id!="string")return;let l=e.waiters.get(n.id);if(l!==void 0){if(n.type==="sekyro.challenge.token"&&typeof n.token=="string"&&n.token!=="")e.waiters.delete(n.id),l.resolve(n.token);else if(n.type==="sekyro.challenge.error"){e.waiters.delete(n.id);let a=typeof n.code=="string"&&k.has(n.code)?n.code:"challenge_failed",s=typeof n.detail=="string"||typeof n.detail=="number"?String(n.detail).slice(0,32):void 0;l.reject(new i(a==="challenge_failed"&&s==="200100"?"clock_wrong":a,s))}}}o(A,"k");function L(e){if(d!==null&&d.url===e)return d;y();let t=document.createElement("iframe");t.setAttribute("title","Security check"),t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("referrerpolicy","no-referrer"),t.setAttribute("style",M);let r={url:e,origin:v(e),iframe:t,isReady:!1,insertedAt:Date.now(),onReady:null,waiters:new Map,listener:o(n=>A(r,n),"listener")};return window.addEventListener("message",r.listener),t.src=e,document.body.appendChild(t),d=r,r}o(L,"M");function R(e,t,r){return e.isReady?Promise.resolve():new Promise((n,l)=>{let a=o(()=>{clearTimeout(c),r?.removeEventListener("abort",s),e.onReady=null},"o"),s=o(()=>{a(),l(u())},"s"),c=setTimeout(()=>{a(),l(new i("challenge_frame_blocked"))},t);r?.addEventListener("abort",s,{once:!0}),e.onReady=()=>{a(),n()}})}o(R,"A");async function w(e){if(e.signal?.aborted)throw u();let t=L(e.frameUrl);try{return await U(t,e)}catch(r){throw r instanceof i&&t.readyMs!==void 0&&(r.readyMs??(r.readyMs=t.readyMs)),r}}o(w,"y");async function U(e,t){let r=t.signal;await R(e,t.readyTimeoutMs??b,r);let n=e.iframe.contentWindow;if(n===null)throw new i("challenge_frame_blocked");let l=t.timeoutMs??p,a=S(),s,c;try{return await new Promise((_,h)=>{e.waiters.set(a,{resolve:_,reject:h}),s=setTimeout(()=>h(new i("timeout")),l),r!==void 0&&(c=o(()=>h(u()),"l"),r.addEventListener("abort",c,{once:!0})),n.postMessage({type:"sekyro.challenge.request",v:1,id:a,siteKey:t.siteKey,action:t.action,subject:t.subject},e.origin)})}finally{clearTimeout(s),r!==void 0&&c!==void 0&&r.removeEventListener("abort",c),e.waiters.delete(a)}}o(U,"x");var g=!1;function x(e,t){if(g)return;let r;if(t==="challenge_frame_blocked"){let n=e;try{n=v(e)}catch{}r=`Sekyro: the security check frame could not load. Allow \`frame-src ${n}\` in your Content-Security-Policy.`}else if(t==="embedder_opaque")r="Sekyro: the security check needs a page with an origin. Do not run the SDK in a sandboxed or data: document.";else return;g=!0,console.warn(r)}o(x,"R");async function C(e){if(globalThis.origin==="null")throw new i("embedder_opaque");if(e.signal?.aborted)throw u();try{return await w(e)}catch(t){if(y(),e.signal?.aborted||t instanceof i&&t.code==="aborted")throw u();if(t instanceof i&&t.code==="timeout")throw t;try{return await w(e)}catch(r){throw y(),e.signal?.aborted?u():r instanceof i?r:new i("challenge_failed")}}}o(C,"S");function D(e){let t=o(()=>C(e).catch(n=>{throw n instanceof i&&x(e.frameUrl,n.code),n}),"n"),r=m.then(t,t);return m=r.catch(()=>{}),r}o(D,"T");export{p as CHALLENGE_EXECUTE_TIMEOUT_MS,b as CHALLENGE_READY_TIMEOUT_MS,i as ChallengeError,D as executeChallenge,T as resetChallengeFrameForTests};