@prosopo/procaptcha-pow 2.12.2 → 2.12.4
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/.turbo/turbo-build$colon$cjs.log +3 -3
- package/.turbo/turbo-build$colon$tsc.log +19 -19
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +58 -0
- package/dist/cjs/components/ProcaptchaWidget.cjs +1 -0
- package/dist/components/ProcaptchaWidget.d.ts.map +1 -1
- package/dist/components/ProcaptchaWidget.js +1 -0
- package/dist/components/ProcaptchaWidget.js.map +1 -1
- package/package.json +8 -8
- package/src/components/ProcaptchaWidget.tsx +3 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.12.
|
|
2
|
+
> @prosopo/procaptcha-pow@2.12.4 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -48,7 +48,7 @@ rendering chunks...
|
|
|
48
48
|
computing gzip size...
|
|
49
49
|
dist/cjs/index.cjs 0.20 kB │ gzip: 0.15 kB
|
|
50
50
|
dist/cjs/components/ProcaptchaPoW.cjs 0.51 kB │ gzip: 0.27 kB
|
|
51
|
-
dist/cjs/components/ProcaptchaWidget.cjs 5.
|
|
51
|
+
dist/cjs/components/ProcaptchaWidget.cjs 5.31 kB │ gzip: 1.65 kB
|
|
52
52
|
dist/cjs/services/Manager.cjs 9.22 kB │ gzip: 2.61 kB
|
|
53
53
|
|
|
54
|
-
[32m✓ built in
|
|
54
|
+
[32m✓ built in 73ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.12.
|
|
2
|
+
> @prosopo/procaptcha-pow@2.12.4 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
5:39:15 AM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -20,37 +20,37 @@
|
|
|
20
20
|
* ../procaptcha-common/tsconfig.json
|
|
21
21
|
* tsconfig.json
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
5:39:15 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
5:39:15 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
5:39:15 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
5:39:15 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
5:39:15 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
5:39:15 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
5:39:15 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
5:39:15 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
5:39:15 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
5:39:15 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
5:39:15 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/productionProviderList.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
5:39:15 AM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
5:39:15 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
5:39:15 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/custom.d.ts' is older than output '../account/tsconfig.tsbuildinfo'
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
5:39:15 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/simdReadings.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
5:39:15 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
5:39:15 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
|
|
56
56
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.12.
|
|
2
|
+
> @prosopo/procaptcha-pow@2.12.4 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/procaptcha-pow@2.12.
|
|
6
|
+
> @prosopo/procaptcha-pow@2.12.4 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -53,7 +53,7 @@ computing gzip size...
|
|
|
53
53
|
dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
|
|
54
54
|
dist/index.js 0.13 kB │ gzip: 0.11 kB
|
|
55
55
|
dist/components/ProcaptchaPoW.js 0.37 kB │ gzip: 0.23 kB
|
|
56
|
-
dist/components/ProcaptchaWidget.js 4.
|
|
56
|
+
dist/components/ProcaptchaWidget.js 4.88 kB │ gzip: 1.63 kB
|
|
57
57
|
dist/services/Manager.js 8.55 kB │ gzip: 2.57 kB
|
|
58
58
|
|
|
59
|
-
[32m✓ built in
|
|
59
|
+
[32m✓ built in 66ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @prosopo/procaptcha-pow
|
|
2
2
|
|
|
3
|
+
## 2.12.4
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 864ddde: Make the challenges usable with a keyboard and a screen reader.
|
|
7
|
+
|
|
8
|
+
The puzzle could only be solved by dragging with a mouse or a finger. The piece
|
|
9
|
+
was a plain `div`, so it could not be tabbed to, had no name or role, and a
|
|
10
|
+
screen reader announced nothing at all — a user on assistive tech could tick "I
|
|
11
|
+
am human", get a silent overlay, and have no way forward. The image captcha had
|
|
12
|
+
the same problem in its tiles.
|
|
13
|
+
|
|
14
|
+
What changed:
|
|
15
|
+
|
|
16
|
+
- The puzzle piece can now be focused and moved with the arrow keys (hold shift
|
|
17
|
+
for smaller steps, Home to start over, Enter or Space to submit). It has a
|
|
18
|
+
name, a role, and a visible focus ring.
|
|
19
|
+
- The puzzle announces its state as you go: where the piece is, as a percentage
|
|
20
|
+
across and down the board; that an answer is being checked; and that a failed
|
|
21
|
+
go has been replaced by a fresh puzzle.
|
|
22
|
+
- The image captcha tiles are now buttons rather than clickable `div`s, so they
|
|
23
|
+
can be tabbed to and activated with Enter or Space, and they report whether
|
|
24
|
+
they are selected instead of only looking selected.
|
|
25
|
+
- Both challenges now open as a proper dialog: it takes focus when it opens,
|
|
26
|
+
keeps Tab inside itself, and gives focus back to the checkbox on close.
|
|
27
|
+
- The spinner that replaces the checkbox while a check runs used to drop focus
|
|
28
|
+
to the top of the page without saying why. It now takes focus in the
|
|
29
|
+
checkbox's place, names itself, and hands focus back when the check finishes.
|
|
30
|
+
This affects the pow, image and puzzle flows.
|
|
31
|
+
- The puzzle's on-screen text was hardcoded English. It now goes through the
|
|
32
|
+
locale package, and the new strings are translated into all 32 locales.
|
|
33
|
+
|
|
34
|
+
A visual puzzle still cannot be solved by someone who cannot see it — the widget
|
|
35
|
+
is never told where the target is, so there is nothing it could describe. Sites
|
|
36
|
+
that need a challenge a blind user can complete should use the pow captcha type,
|
|
37
|
+
which needs no interaction beyond the checkbox.
|
|
38
|
+
- Updated dependencies [028a158]
|
|
39
|
+
- Updated dependencies [028a158]
|
|
40
|
+
- Updated dependencies [3958046]
|
|
41
|
+
- Updated dependencies [864ddde]
|
|
42
|
+
- Updated dependencies [028a158]
|
|
43
|
+
- @prosopo/procaptcha-common@2.14.0
|
|
44
|
+
- @prosopo/types@5.8.3
|
|
45
|
+
- @prosopo/locale@3.4.2
|
|
46
|
+
- @prosopo/api@4.2.3
|
|
47
|
+
- @prosopo/common@3.1.55
|
|
48
|
+
- @prosopo/fingerprint@2.7.46
|
|
49
|
+
|
|
50
|
+
## 2.12.3
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [124784f]
|
|
54
|
+
- Updated dependencies [477b4e7]
|
|
55
|
+
- Updated dependencies [e4d6f06]
|
|
56
|
+
- @prosopo/procaptcha-common@2.13.3
|
|
57
|
+
- @prosopo/types@5.8.2
|
|
58
|
+
- @prosopo/api@4.2.2
|
|
59
|
+
- @prosopo/fingerprint@2.7.45
|
|
60
|
+
|
|
3
61
|
## 2.12.2
|
|
4
62
|
### Patch Changes
|
|
5
63
|
|
|
@@ -122,6 +122,7 @@ var Procaptcha = (props) => {
|
|
|
122
122
|
labelText: isTranslationReady ? t("WIDGET.I_AM_HUMAN") : "",
|
|
123
123
|
error: state.error?.message,
|
|
124
124
|
"aria-label": "human checkbox",
|
|
125
|
+
loadingText: t("WIDGET.CHECKING", { defaultValue: "Checking that you are human" }),
|
|
125
126
|
loading
|
|
126
127
|
})] });
|
|
127
128
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQhE,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQhE,QAAA,MAAM,UAAU,UAAW,eAAe,4DA2MzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -123,6 +123,7 @@ var Procaptcha = (props) => {
|
|
|
123
123
|
labelText: isTranslationReady ? t("WIDGET.I_AM_HUMAN") : "",
|
|
124
124
|
error: state.error?.message,
|
|
125
125
|
"aria-label": "human checkbox",
|
|
126
|
+
loadingText: t("WIDGET.CHECKING", { defaultValue: "Checking that you are human" }),
|
|
126
127
|
loading
|
|
127
128
|
})] });
|
|
128
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polkadot/util": "13.5.7",
|
|
36
|
-
"@prosopo/api": "4.2.
|
|
37
|
-
"@prosopo/common": "3.1.
|
|
38
|
-
"@prosopo/fingerprint": "2.7.
|
|
39
|
-
"@prosopo/locale": "3.4.
|
|
40
|
-
"@prosopo/procaptcha-common": "2.
|
|
41
|
-
"@prosopo/types": "5.8.
|
|
36
|
+
"@prosopo/api": "4.2.3",
|
|
37
|
+
"@prosopo/common": "3.1.55",
|
|
38
|
+
"@prosopo/fingerprint": "2.7.46",
|
|
39
|
+
"@prosopo/locale": "3.4.2",
|
|
40
|
+
"@prosopo/procaptcha-common": "2.14.0",
|
|
41
|
+
"@prosopo/types": "5.8.3",
|
|
42
42
|
"@prosopo/util": "3.3.9",
|
|
43
43
|
"@prosopo/util-crypto": "13.5.31",
|
|
44
44
|
"@prosopo/widget-skeleton": "2.8.7",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@emotion/react": "11.14.0",
|
|
49
49
|
"@emotion/styled": "11.14.1",
|
|
50
|
-
"@prosopo/config": "3.3.
|
|
50
|
+
"@prosopo/config": "3.3.16",
|
|
51
51
|
"@types/node": "22.10.2",
|
|
52
52
|
"@vitest/coverage-v8": "4.1.11",
|
|
53
53
|
"concurrently": "9.0.1",
|
|
@@ -219,6 +219,9 @@ const Procaptcha = (props: ProcaptchaProps) => {
|
|
|
219
219
|
labelText={isTranslationReady ? t("WIDGET.I_AM_HUMAN") : ""}
|
|
220
220
|
error={state.error?.message}
|
|
221
221
|
aria-label="human checkbox"
|
|
222
|
+
loadingText={t("WIDGET.CHECKING", {
|
|
223
|
+
defaultValue: "Checking that you are human",
|
|
224
|
+
})}
|
|
222
225
|
loading={loading}
|
|
223
226
|
/>
|
|
224
227
|
</>
|