@prosopo/procaptcha-puzzle 2.10.22 → 2.10.24

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/procaptcha-puzzle@2.10.22 build:cjs
2
+ > @prosopo/procaptcha-puzzle@2.10.24 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -46,8 +46,8 @@ Build end
46
46
  ✓ 5 modules transformed.
47
47
  rendering chunks...
48
48
  dist/cjs/index.cjs  0.27 kB
49
- dist/cjs/components/ProcaptchaPuzzle.cjs  0.86 kB
49
+ dist/cjs/components/ProcaptchaPuzzle.cjs  0.70 kB
50
50
  dist/cjs/components/ProcaptchaWidget.cjs  6.92 kB
51
51
  dist/cjs/components/PuzzleCanvas.cjs 10.09 kB
52
52
  dist/cjs/services/Manager.cjs 10.17 kB
53
- ✓ built in 216ms
53
+ ✓ built in 277ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/procaptcha-puzzle@2.10.22 build:tsc
2
+ > @prosopo/procaptcha-puzzle@2.10.24 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 11:37:57 AM - Projects in this build:
5
+ 3:30:02 PM - 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
- 11:37:57 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'
23
+ 3:30:02 PM - 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
- 11:37:57 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
25
+ 3:30:02 PM - 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
- 11:37:57 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
27
+ 3:30:02 PM - 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
- 11:37:57 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'
29
+ 3:30:03 PM - 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
- 11:37:57 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/keyring/keyring/types.ts' is older than output '../types/tsconfig.tsbuildinfo'
31
+ 3:30:03 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
32
32
 
33
- 11:37:57 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
33
+ 3:30:03 PM - 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
- 11:37:57 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
35
+ 3:30:03 PM - 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
- 11:37:57 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
37
+ 3:30:03 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/utils/batches.ts' is older than output '../common/tsconfig.tsbuildinfo'
38
38
 
39
- 11:37:57 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/index.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
39
+ 3:30:03 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/index.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
40
40
 
41
- 11:37:57 AM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/index.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
41
+ 3:30:03 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/constants.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
42
42
 
43
- 11:37:57 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
43
+ 3:30:03 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
44
44
 
45
- 11:37:57 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
45
+ 3:30:03 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
46
46
 
47
- 11:37:57 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
47
+ 3:30:03 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
48
48
 
49
- 11:37:57 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/index.ts' is older than output '../account/tsconfig.tsbuildinfo'
49
+ 3:30:03 PM - 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
- 11:37:57 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/extensionLoader.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
51
+ 3:30:03 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/tests/defaultEvents.test.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
52
52
 
53
- 11:37:57 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
53
+ 3:30:03 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
54
54
 
55
- 11:37:57 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-puzzle/tsconfig.json'...
55
+ 3:30:03 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-puzzle/tsconfig.json'...
56
56
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/procaptcha-puzzle@2.10.22 build
2
+ > @prosopo/procaptcha-puzzle@2.10.24 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/procaptcha-puzzle@2.10.22 build:cross-env
6
+ > @prosopo/procaptcha-puzzle@2.10.24 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -50,8 +50,8 @@ Build end
50
50
  ✓ 5 modules transformed.
51
51
  rendering chunks...
52
52
  dist/index.js  0.14 kB
53
- dist/components/ProcaptchaPuzzle.js  0.49 kB
53
+ dist/components/ProcaptchaPuzzle.js  0.34 kB
54
54
  dist/components/ProcaptchaWidget.js  6.73 kB
55
55
  dist/components/PuzzleCanvas.js  9.81 kB
56
56
  dist/services/Manager.js 10.01 kB
57
- ✓ built in 211ms
57
+ ✓ built in 243ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @prosopo/procaptcha-puzzle
2
2
 
3
+ ## 2.10.24
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [8814425]
7
+ - @prosopo/api@3.5.9
8
+
9
+ ## 2.10.23
10
+ ### Patch Changes
11
+
12
+ - 0983c51: fix(procaptcha-pow): forward all props through the Suspense wrapper so `onEscalate` and `autoStart` reach the inner widget. The PoW (and puzzle) wrappers were enumerating props by name and silently dropping `onEscalate`, which meant the Manager closure captured `onEscalate=undefined`. When the provider returned a post-PoW escalation envelope, `onEscalate?.()` no-op'd, the frictionless wrapper was never told to swap in the image widget, and the user was left with a spinning PoW checkbox forever. Both wrappers now spread props, matching the image (`Procaptcha`) sibling.
13
+ - Updated dependencies [f9e8c94]
14
+ - Updated dependencies [7a434e0]
15
+ - @prosopo/locale@3.2.6
16
+ - @prosopo/types@4.9.2
17
+ - @prosopo/common@3.1.43
18
+ - @prosopo/api@3.5.8
19
+ - @prosopo/procaptcha-common@2.11.3
20
+
3
21
  ## 2.10.22
4
22
  ### Patch Changes
5
23
 
@@ -6,14 +6,5 @@ const _interopNamespaceDefaultOnly = (e) => Object.freeze(Object.defineProperty(
6
6
  const ProcaptchaWidget = react.lazy(
7
7
  async () => Promise.resolve().then(() => /* @__PURE__ */ _interopNamespaceDefaultOnly(require("./ProcaptchaWidget.cjs")))
8
8
  );
9
- const ProcaptchaPuzzle = (props) => /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(
10
- ProcaptchaWidget,
11
- {
12
- config: props.config,
13
- callbacks: props.callbacks,
14
- frictionlessState: props.frictionlessState,
15
- i18n: props.i18n,
16
- autoStart: props.autoStart
17
- }
18
- ) });
9
+ const ProcaptchaPuzzle = (props) => /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(ProcaptchaWidget, { ...props }) });
19
10
  exports.ProcaptchaPuzzle = ProcaptchaPuzzle;
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaPuzzle.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaPuzzle.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AActD,eAAO,MAAM,gBAAgB,UAAW,eAAe,qDAUtD,CAAC"}
1
+ {"version":3,"file":"ProcaptchaPuzzle.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaPuzzle.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAiBtD,eAAO,MAAM,gBAAgB,UAAW,eAAe,qDAItD,CAAC"}
@@ -3,16 +3,7 @@ import { lazy, Suspense } from "react";
3
3
  const ProcaptchaWidget = lazy(
4
4
  async () => import("./ProcaptchaWidget.js")
5
5
  );
6
- const ProcaptchaPuzzle = (props) => /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(
7
- ProcaptchaWidget,
8
- {
9
- config: props.config,
10
- callbacks: props.callbacks,
11
- frictionlessState: props.frictionlessState,
12
- i18n: props.i18n,
13
- autoStart: props.autoStart
14
- }
15
- ) });
6
+ const ProcaptchaPuzzle = (props) => /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(ProcaptchaWidget, { ...props }) });
16
7
  export {
17
8
  ProcaptchaPuzzle
18
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaPuzzle.js","sourceRoot":"","sources":["../../src/components/ProcaptchaPuzzle.tsx"],"names":[],"mappings":";AAeA,OAAO,EAA4B,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,gBAAgB,GAAmD,IAAI,CAC5E,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CAC3D,KAAC,QAAQ,cACR,KAAC,gBAAgB,IAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,SAAS,EAAE,KAAK,CAAC,SAAS,GACzB,GACQ,CACX,CAAC"}
1
+ {"version":3,"file":"ProcaptchaPuzzle.js","sourceRoot":"","sources":["../../src/components/ProcaptchaPuzzle.tsx"],"names":[],"mappings":";AAeA,OAAO,EAA4B,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,gBAAgB,GAAmD,IAAI,CAC5E,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAC3C,CAAC;AAKF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CAC3D,KAAC,QAAQ,cACR,KAAC,gBAAgB,OAAK,KAAK,GAAI,GACrB,CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-puzzle",
3
- "version": "2.10.22",
3
+ "version": "2.10.24",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -30,11 +30,11 @@
30
30
  "browserslist": ["> 0.5%, last 2 versions, not dead"],
31
31
  "dependencies": {
32
32
  "@polkadot/util": "13.5.7",
33
- "@prosopo/api": "3.5.7",
34
- "@prosopo/common": "3.1.42",
35
- "@prosopo/locale": "3.2.5",
36
- "@prosopo/procaptcha-common": "2.11.2",
37
- "@prosopo/types": "4.9.1",
33
+ "@prosopo/api": "3.5.9",
34
+ "@prosopo/common": "3.1.43",
35
+ "@prosopo/locale": "3.2.6",
36
+ "@prosopo/procaptcha-common": "2.11.3",
37
+ "@prosopo/types": "4.9.2",
38
38
  "@prosopo/util": "3.3.3",
39
39
  "@prosopo/util-crypto": "13.5.30",
40
40
  "@prosopo/widget-skeleton": "2.8.4",
@@ -26,14 +26,11 @@ const ProcaptchaWidget: LazyExoticComponent<ProcaptchaWidgetComponent> = lazy(
26
26
  async () => import("./ProcaptchaWidget.js"),
27
27
  );
28
28
 
29
+ // Spread props rather than enumerating: matches the image (Procaptcha) and
30
+ // PoW (ProcaptchaPow) sibling wrappers so any prop the inner widget consumes
31
+ // can never be silently dropped by this Suspense wrapper.
29
32
  export const ProcaptchaPuzzle = (props: ProcaptchaProps) => (
30
33
  <Suspense>
31
- <ProcaptchaWidget
32
- config={props.config}
33
- callbacks={props.callbacks}
34
- frictionlessState={props.frictionlessState}
35
- i18n={props.i18n}
36
- autoStart={props.autoStart}
37
- />
34
+ <ProcaptchaWidget {...props} />
38
35
  </Suspense>
39
36
  );