@criipto/verify-react 2.4.2 → 3.0.0

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.
@@ -61,6 +61,6 @@ export declare function buildLoginHint(loginHint: string | undefined | null, par
61
61
  action?: Action;
62
62
  message?: string;
63
63
  }): string | undefined;
64
- declare const CriiptoVerifyProvider: (props: CriiptoVerifyProviderOptions) => JSX.Element;
64
+ declare const CriiptoVerifyProvider: (props: CriiptoVerifyProviderOptions) => React.ReactElement;
65
65
  export default CriiptoVerifyProvider;
66
66
  export declare function resetRedirectState(window: Window): void;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Props {
3
- children: JSX.Element;
3
+ children: React.ReactElement;
4
4
  }
5
- export default function StoryResponseRenderer(props: Props): JSX.Element;
5
+ export default function StoryResponseRenderer(props: Props): React.ReactElement;
6
6
  export {};
@@ -0,0 +1,13 @@
1
+ 🩺 The doctor is checking the health of your Storybook..
2
+ ╭ Package storybook not found ───────────────────────────────────────────────────────────╮
3
+ │ │
4
+ │ The storybook package was not found in your package.json. │
5
+ │ Installing storybook as a direct dev dependency in your package.json is required. │
6
+ │ │
7
+ ╰────────────────────────────────────────────────────────────────────────────────────────╯
8
+
9
+ You can always recheck the health of your project by running:
10
+ npx storybook doctor
11
+
12
+ Full logs are available in /home/mick/dev/criipto-verify-react/doctor-storybook.log
13
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@criipto/verify-react",
3
3
  "private": false,
4
- "version": "2.4.2",
4
+ "version": "3.0.0",
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",
@@ -11,38 +11,44 @@
11
11
  "clean": "rm -rf dist/",
12
12
  "build": "webpack --config webpack.config.js",
13
13
  "check": "tsc --noEmit",
14
- "storybook": "start-storybook -p 6006",
15
- "build-storybook": "build-storybook",
14
+ "storybook": "storybook dev -p 6006",
15
+ "build-storybook": "storybook build",
16
16
  "prepublishOnly": "npm run check && npm run clean && npm run build"
17
17
  },
18
18
  "peerDependencies": {
19
- "react": "^16.11.0 || ^17 || ^18",
20
- "react-dom": "^16.11.0 || ^17 || ^18"
19
+ "react": "^16.11.0 || ^17 || ^18 || ^19",
20
+ "react-dom": "^16.11.0 || ^17 || ^18 || ^19"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/core": "^7.18.6",
24
- "@storybook/addon-actions": "^6.5.9",
25
- "@storybook/addon-essentials": "^6.5.9",
26
- "@storybook/addon-interactions": "^6.5.9",
27
- "@storybook/addon-links": "^6.5.9",
28
- "@storybook/builder-webpack5": "^6.5.9",
29
- "@storybook/manager-webpack5": "^6.5.9",
30
- "@storybook/react": "^6.5.9",
31
- "@storybook/testing-library": "0.0.13",
24
+ "@babel/preset-env": "^7.26.8",
25
+ "@chromatic-com/storybook": "^3.2.4",
26
+ "@storybook/addon-actions": "^8.5.3",
27
+ "@storybook/addon-essentials": "^8.5.3",
28
+ "@storybook/addon-interactions": "^8.5.3",
29
+ "@storybook/addon-links": "^8.5.3",
30
+ "@storybook/addon-onboarding": "^8.5.3",
31
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
32
+ "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
33
+ "@storybook/blocks": "^8.5.3",
34
+ "@storybook/react": "^8.5.3",
35
+ "@storybook/react-webpack5": "^8.5.3",
36
+ "@storybook/test": "^8.5.3",
32
37
  "@types/jest": "^29.0.3",
33
38
  "@types/qrcode": "^1.4.2",
34
- "@types/react": "^18.0.14",
35
- "@types/react-dom": "^18.0.5",
36
- "@types/react-test-renderer": "^18.0.0",
39
+ "@types/react": "^19.0.0",
40
+ "@types/react-dom": "^19.0.0",
41
+ "@types/react-test-renderer": "^19.0.0",
37
42
  "@types/ua-parser-js": "^0.7.36",
38
43
  "babel-loader": "^8.2.5",
39
44
  "css-loader": "^6.7.1",
40
45
  "jest": "^29.0.3",
41
46
  "jest-transform-stub": "^2.0.0",
42
47
  "mini-css-extract-plugin": "^2.6.1",
43
- "react": "^18.1.0",
44
- "react-dom": "^18.1.0",
45
- "react-test-renderer": "^18.2.0",
48
+ "react": "^19.0.0",
49
+ "react-dom": "^19.0.0",
50
+ "react-test-renderer": "^19.0.0",
51
+ "storybook": "^8.5.3",
46
52
  "ts-jest": "^29.0.1",
47
53
  "ts-loader": "^9.3.1",
48
54
  "ts-node": "^10.9.1",