goobs-frontend 0.122.29 → 0.122.30

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.
@@ -3,50 +3,26 @@ import { QRCodeStyles } from '../../theme/qrcode';
3
3
  import { ButtonProps } from '../Button';
4
4
  import { ConfirmationCodeInputsProps } from '../ConfirmationCodeInput';
5
5
  export interface QRCodeProps {
6
- /** The value/URL for the QR code (if provided, username and appName are ignored) */
7
6
  value?: string;
8
- /** The username for the QR code */
9
- username?: string;
10
- /** The app name for the QR code */
11
- appName?: string;
12
- /** The size of the QR code */
13
7
  size?: number;
14
- /** QR code error correction level */
15
8
  level?: 'L' | 'M' | 'Q' | 'H';
16
- /** Background color */
17
9
  bgColor?: string;
18
- /** Foreground color */
19
10
  fgColor?: string;
20
- /** The title to display above the QR code */
21
11
  title?: string;
22
- /** Callback when the secret is generated */
23
- onSecretGenerated?: (secret: string) => void;
24
- /** Whether to show the verify button */
25
12
  showVerifyButton?: boolean;
26
- /** Callback when verify is clicked */
27
13
  onVerify?: () => void | Promise<void>;
28
- /** Callback when disable verification is clicked */
29
14
  onDisableVerification?: () => void | Promise<void>;
30
- /** Props for the verify button */
31
15
  verifyButtonProps?: Partial<ButtonProps>;
32
- /** Props for the disable verification button */
33
16
  disableVerificationButtonProps?: Partial<ButtonProps>;
34
- /** Whether to show the success state */
35
17
  showSuccessState?: boolean;
36
- /** The success message to display */
37
18
  successMessage?: string;
38
- /** Whether to show the confirmation input */
39
19
  showConfirmationInput?: boolean;
40
- /** The confirmation code value */
41
20
  confirmationCode?: string;
42
- /** Callback when confirmation code changes */
43
21
  onConfirmationCodeChange?: (value: string) => void;
44
- /** Props for the confirmation code input */
45
22
  confirmationCodeProps?: Partial<ConfirmationCodeInputsProps>;
46
- /** Custom styles to apply using the theme system */
23
+ onSecretGenerated?: (secret: string) => void;
47
24
  styles?: QRCodeStyles;
48
25
  }
49
26
  declare const QRCodeComponent: FC<QRCodeProps>;
50
27
  export default QRCodeComponent;
51
- export declare function verifyMFAToken(token: string, secret: string): boolean;
52
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QRCode/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAsB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAqB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAErD,OAA+B,EAC7B,2BAA2B,EAC5B,MAAM,0BAA0B,CAAA;AAkCjC,MAAM,WAAW,WAAW;IAC1B,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IAC7B,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW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