@criipto/verify-react 1.2.6 → 2.0.1

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/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import { default as CriiptoVerifyProvider } from './provider';
2
2
  import { default as AuthMethodSelector, Sweden as AuthMethodSelectorSweden } from './components/AuthMethodSelector';
3
3
  import { default as AuthMethodButton } from './components/AuthMethodButton';
4
+ import { default as AuthButtonGroup } from './components/AuthButtonGroup';
4
5
  import { default as QRCode } from './components/QRCode';
5
6
  import { default as SEBankIDQRCode } from './components/SEBankIDQRCode';
6
7
  import { default as useCriiptoVerify } from './use-criipto-verify';
7
8
  export { type Result, type Action, actions } from './context';
8
9
  export { type Language, filterAcrValues } from './utils';
9
10
  export { OAuth2Error } from '@criipto/auth-js';
10
- export { CriiptoVerifyProvider, AuthMethodSelector, AuthMethodSelectorSweden, AuthMethodButton, useCriiptoVerify, QRCode, SEBankIDQRCode };
11
+ export { CriiptoVerifyProvider, AuthMethodSelector, AuthMethodSelectorSweden, useCriiptoVerify, QRCode, SEBankIDQRCode };
12
+ export { AuthMethodButton, AuthMethodButton as AuthButton, AuthButtonGroup };
11
13
  import './index.css';
package/dist/utils.d.ts CHANGED
@@ -13,3 +13,5 @@ export declare function acrValueToTitle(language: Language, value: string): {
13
13
  subtitle?: string;
14
14
  };
15
15
  export declare function filterAcrValues(input: string[]): string[];
16
+ export declare function isSingle(acrValue: string, acrValues: string[]): boolean;
17
+ export declare function trySessionStorage(): Storage | null;
package/jest.config.ts CHANGED
@@ -89,7 +89,6 @@ export default {
89
89
  // ],
90
90
 
91
91
  // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
92
- // moduleNameMapper: {},
93
92
 
94
93
  // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
95
94
  // modulePathIgnorePatterns: [],
@@ -177,7 +176,9 @@ export default {
177
176
  // testRunner: "jest-circus/runner",
178
177
 
179
178
  // A map from regular expressions to paths to transformers
180
- // transform: undefined,
179
+ transform: {
180
+ ".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2|svg)$": "jest-transform-stub",
181
+ },
181
182
 
182
183
  // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
183
184
  // transformIgnorePatterns: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@criipto/verify-react",
3
3
  "private": false,
4
- "version": "1.2.6",
4
+ "version": "2.0.1",
5
5
  "description": "Verify SDK for React Single Page Applications",
6
6
  "main": "dist/criipto-verify-react.cjs.js",
7
7
  "types": "dist/index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "babel-loader": "^8.2.5",
39
39
  "css-loader": "^6.7.1",
40
40
  "jest": "^29.0.3",
41
+ "jest-transform-stub": "^2.0.0",
41
42
  "mini-css-extract-plugin": "^2.6.1",
42
43
  "react": "^18.1.0",
43
44
  "react-dom": "^18.1.0",