@authing/guard-shim-react 4.5.51-eak.30 → 4.5.51-eak.32

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.
@@ -0,0 +1,19 @@
1
+ import { React } from 'shim-react';
2
+ import { TurnstileConfig } from './turnstile';
3
+ import './style.less';
4
+ import './TurnstileWidget.less';
5
+ /** Keep pending/error states the same size as the Send button. */
6
+ export declare const TurnstileStatus: React.FC<{
7
+ error?: string;
8
+ code?: string;
9
+ onRetry?: () => void;
10
+ }>;
11
+ export interface TurnstileWidgetProps {
12
+ config: TurnstileConfig;
13
+ onToken: (token: string) => void;
14
+ onStart: () => void;
15
+ onInvalidate: () => void;
16
+ compact?: boolean;
17
+ }
18
+ /** Native verification with shared sizing, spacing and retry states. */
19
+ export declare const TurnstileWidget: React.FC<TurnstileWidgetProps>;
@@ -20,6 +20,7 @@ export interface TurnstileApi {
20
20
  'refresh-timeout': 'manual';
21
21
  'response-field': false;
22
22
  callback: (token: string) => void;
23
+ 'before-interactive-callback'?: () => void;
23
24
  'error-callback': (code?: string) => void;
24
25
  'expired-callback': () => void;
25
26
  'timeout-callback': () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.51-eak.30",
3
+ "version": "4.5.51-eak.32",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",