@worldcoin/idkit 0.4.8 → 0.5.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.
Files changed (52) hide show
  1. package/build/index.css +2000 -2
  2. package/package.json +138 -137
  3. package/build/idkit-js.js +0 -152
  4. package/build/index.cjs +0 -9
  5. package/build/index.cjs.map +0 -7
  6. package/build/index.js +0 -9
  7. package/build/index.js.map +0 -7
  8. package/build/jest.config.d.ts +0 -21
  9. package/build/jest.setup.d.ts +0 -1
  10. package/build/src/components/AboutWorldID.d.ts +0 -6
  11. package/build/src/components/Button.d.ts +0 -3
  12. package/build/src/components/Frame.d.ts +0 -4
  13. package/build/src/components/IDKitWidget/BaseWidget.d.ts +0 -4
  14. package/build/src/components/IDKitWidget/States/ErrorState.d.ts +0 -3
  15. package/build/src/components/IDKitWidget/States/HostAppVerificationState.d.ts +0 -7
  16. package/build/src/components/IDKitWidget/States/PrivacyState.d.ts +0 -3
  17. package/build/src/components/IDKitWidget/States/SuccessState.d.ts +0 -3
  18. package/build/src/components/IDKitWidget/States/WorldID/QRState.d.ts +0 -11
  19. package/build/src/components/IDKitWidget/States/WorldIDState.d.ts +0 -3
  20. package/build/src/components/IDKitWidget/index.d.ts +0 -3
  21. package/build/src/components/Icons/ArrowLongLeftIcon.d.ts +0 -3
  22. package/build/src/components/Icons/CheckIcon.d.ts +0 -3
  23. package/build/src/components/Icons/ChevronDownIcon.d.ts +0 -3
  24. package/build/src/components/Icons/HumanIcon.d.ts +0 -3
  25. package/build/src/components/Icons/InfoIcon.d.ts +0 -3
  26. package/build/src/components/Icons/LoadingIcon.d.ts +0 -5
  27. package/build/src/components/Icons/LockIcon.d.ts +0 -3
  28. package/build/src/components/Icons/QuestionMarkIcon.d.ts +0 -5
  29. package/build/src/components/Icons/WorldIDWordmark.d.ts +0 -3
  30. package/build/src/components/Icons/WorldcoinIcon.d.ts +0 -3
  31. package/build/src/components/Icons/XMarkIcon.d.ts +0 -3
  32. package/build/src/components/QRCode.d.ts +0 -7
  33. package/build/src/components/SignInButton.d.ts +0 -7
  34. package/build/src/components/SignInWithWorldID.d.ts +0 -11
  35. package/build/src/components/WorldIDIcon.d.ts +0 -7
  36. package/build/src/hooks/useIDKit.d.ts +0 -7
  37. package/build/src/hooks/useMedia.d.ts +0 -2
  38. package/build/src/index.d.ts +0 -33
  39. package/build/src/lib/consts.d.ts +0 -1
  40. package/build/src/lib/hashing.d.ts +0 -22
  41. package/build/src/lib/qr.d.ts +0 -4
  42. package/build/src/lib/telemetry.d.ts +0 -3
  43. package/build/src/lib/utils.d.ts +0 -2
  44. package/build/src/services/walletconnect.d.ts +0 -15
  45. package/build/src/store/idkit.d.ts +0 -37
  46. package/build/src/types/app.d.ts +0 -21
  47. package/build/src/types/config.d.ts +0 -34
  48. package/build/src/types/index.d.ts +0 -36
  49. package/build/src/vanilla.d.ts +0 -12
  50. package/build/stitches.config.d.ts +0 -45
  51. package/build/tests/lib/hashing.test.d.ts +0 -1
  52. package/build/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,138 +1,139 @@
1
1
  {
2
- "name": "@worldcoin/idkit",
3
- "description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
4
- "type": "module",
5
- "types": "./build/src/index.d.ts",
6
- "version": "0.4.8",
7
- "private": false,
8
- "main": "./build/index.cjs",
9
- "module": "./build/index.js",
10
- "files": [
11
- "build/**",
12
- "!build/idkit-js-dev.js"
13
- ],
14
- "keywords": [
15
- "identity",
16
- "ID",
17
- "web3",
18
- "proof-of-personhood",
19
- "sybil resistance"
20
- ],
21
- "author": "",
22
- "license": "MIT",
23
- "homepage": "https://github.com/worldcoin/idkit-js",
24
- "repository": "github:worldcoin/idkit-js",
25
- "scripts": {
26
- "analyze-bundle": "esbuild-visualizer --metadata ./esbuild-meta.json --filename esbuild-stats.html && open esbuild-stats.html",
27
- "build": "npm-run-all clean build:*",
28
- "build:css": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --minify",
29
- "build:declarations": "tsc && tsc-alias",
30
- "build:esm": "node esbuild/production.js -p esm",
31
- "build:cjs": "node esbuild/production.js -p cjs",
32
- "build:iife": "node esbuild/production.js -p iife",
33
- "clean": "rimraf build/",
34
- "dev": "npm-run-all clean dev:styles --parallel dev:*",
35
- "dev:bundle": "node esbuild/development.js",
36
- "dev:styles": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css",
37
- "dev:styles-watch": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --watch",
38
- "format": "prettier -w ./",
39
- "format:check": "prettier --check ./",
40
- "lint": "eslint --ext .tsx,.ts,.js,.jsx ./",
41
- "lint:fix": "eslint --ext .tsx,.ts,.js,.jsx ./ --fix",
42
- "test": "jest",
43
- "typecheck": "tsc"
44
- },
45
- "peerDependencies": {
46
- "react": ">18.0.0",
47
- "react-dom": ">18.0.0"
48
- },
49
- "dependencies": {
50
- "@ethersproject/bytes": "^5.7.0",
51
- "@ethersproject/solidity": "^5.7.0",
52
- "@fontsource/rubik": "^4.5.11",
53
- "@headlessui/react": "^1.7.4",
54
- "@radix-ui/react-dialog": "^1.0.3",
55
- "@radix-ui/react-toast": "^1.1.3",
56
- "@stitches/react": "^1.2.8",
57
- "@tailwindcss/forms": "^0.5.3",
58
- "@walletconnect/client": "^1.8.0",
59
- "@walletconnect/sign-client": "^2.2.0",
60
- "@walletconnect/types": "^2.2.0",
61
- "@walletconnect/utils": "^2.2.1",
62
- "copy-to-clipboard": "^3.3.3",
63
- "framer-motion": "^7.6.7",
64
- "js-sha3": "^0.8.0",
65
- "posthog-js-lite": "2.0.0",
66
- "qr-code-styling-new": "^1.6.1",
67
- "qrcode": "^1.5.1",
68
- "react-countdown": "^2.3.4",
69
- "react-frame-component": "^5.2.3",
70
- "react-shadow": "^19.0.3",
71
- "zustand": "^4.3.3"
72
- },
73
- "devDependencies": {
74
- "@babel/core": "^7.20.2",
75
- "@babel/plugin-syntax-typescript": "^7.20.0",
76
- "@esbuild-plugins/node-globals-polyfill": "^0.1.1",
77
- "@testing-library/jest-dom": "^5.16.5",
78
- "@testing-library/react": "^14.0.0",
79
- "@types/jest": "^29.5.0",
80
- "@types/node": "18.11.9",
81
- "@types/qrcode": "^1.5.0",
82
- "@types/react": "18.0.25",
83
- "@types/react-dom": "18.0.9",
84
- "@typescript-eslint/eslint-plugin": "5.20.0",
85
- "@typescript-eslint/parser": "5.20.0",
86
- "autoprefixer": "^10.4.13",
87
- "babel-plugin-macros": "^3.1.0",
88
- "babel-plugin-twin": "^1.1.0",
89
- "construct-style-sheets-polyfill": "^3.1.0",
90
- "esbuild": "0.14.43",
91
- "esbuild-jest": "0.5.0",
92
- "esbuild-node-externals": "1.4.1",
93
- "esbuild-plugin-alias": "0.2.1",
94
- "esbuild-style-plugin": "^1.6.0",
95
- "esbuild-visualizer": "^0.4.0",
96
- "eslint": "8.29.0",
97
- "eslint-config-prettier": "^8.5.0",
98
- "eslint-plugin-compat": "^4.1.1",
99
- "eslint-plugin-import": "2.26.0",
100
- "eslint-plugin-jsx-a11y": "^6.6.1",
101
- "eslint-plugin-prettier": "^4.2.1",
102
- "eslint-plugin-react": "^7.31.11",
103
- "eslint-plugin-react-hooks": "^4.6.0",
104
- "eslint-plugin-tailwindcss": "^3.7.1",
105
- "jest": "^29.5.0",
106
- "jest-environment-jsdom": "^29.5.0",
107
- "meow": "^11.0.0",
108
- "npm-run-all": "^4.1.5",
109
- "postcss": "^8.4.19",
110
- "prettier": "^2.7.1",
111
- "prettier-plugin-sort-imports-desc": "^1.0.0",
112
- "react": "18.2.0",
113
- "react-dom": "18.2.0",
114
- "rimraf": "^3.0.2",
115
- "tailwindcss": "^3.2.4",
116
- "tsc-alias": "^1.7.1",
117
- "twin.macro": "^3.1.0",
118
- "typescript": "4.9.3"
119
- },
120
- "browserslist": {
121
- "production": [
122
- ">0.2%",
123
- "not dead",
124
- "not op_mini all"
125
- ],
126
- "development": [
127
- "last 1 chrome version",
128
- "last 1 firefox version",
129
- "last 1 safari version"
130
- ]
131
- },
132
- "babelMacros": {
133
- "twin": {
134
- "preset": "stitches",
135
- "stitchesConfig": "stitches.config.ts"
136
- }
137
- }
138
- }
2
+ "name": "@worldcoin/idkit",
3
+ "description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
4
+ "type": "module",
5
+ "types": "./build/src/index.d.ts",
6
+ "version": "0.5.0",
7
+ "private": false,
8
+ "main": "./build/index.cjs",
9
+ "module": "./build/index.js",
10
+ "files": [
11
+ "build/**",
12
+ "!build/idkit-js-dev.js"
13
+ ],
14
+ "keywords": [
15
+ "identity",
16
+ "ID",
17
+ "web3",
18
+ "proof-of-personhood",
19
+ "sybil resistance"
20
+ ],
21
+ "author": "",
22
+ "license": "MIT",
23
+ "homepage": "https://github.com/worldcoin/idkit-js",
24
+ "repository": "github:worldcoin/idkit-js",
25
+ "peerDependencies": {
26
+ "react": ">18.0.0",
27
+ "react-dom": ">18.0.0"
28
+ },
29
+ "dependencies": {
30
+ "@fontsource/rubik": "^4.5.11",
31
+ "@headlessui/react": "^1.7.4",
32
+ "@radix-ui/react-dialog": "^1.0.3",
33
+ "@radix-ui/react-toast": "^1.1.3",
34
+ "@stitches/react": "^1.2.8",
35
+ "@tailwindcss/forms": "^0.5.3",
36
+ "@walletconnect/sign-client": "^2.2.0",
37
+ "@walletconnect/types": "^2.2.0",
38
+ "@walletconnect/utils": "^2.2.1",
39
+ "copy-to-clipboard": "^3.3.3",
40
+ "country-telephone-data": "^0.6.3",
41
+ "framer-motion": "^7.6.7",
42
+ "phone": "^3.1.37",
43
+ "posthog-js-lite": "2.4.0",
44
+ "qr-code-styling-new": "^1.6.1",
45
+ "qrcode": "^1.5.1",
46
+ "react-countdown": "^2.3.4",
47
+ "react-country-flag": "^3.1.0",
48
+ "react-frame-component": "^5.2.3",
49
+ "react-shadow": "^19.0.3",
50
+ "viem": "^0.3.37",
51
+ "zustand": "^4.3.3"
52
+ },
53
+ "devDependencies": {
54
+ "@babel/core": "^7.20.2",
55
+ "@babel/plugin-syntax-typescript": "^7.20.0",
56
+ "@esbuild-plugins/node-globals-polyfill": "^0.1.1",
57
+ "@testing-library/jest-dom": "^5.16.5",
58
+ "@testing-library/react": "^14.0.0",
59
+ "@types/country-telephone-data": "^0.6.1",
60
+ "@types/jest": "^29.5.0",
61
+ "@types/node": "18.11.9",
62
+ "@types/qrcode": "^1.5.0",
63
+ "@types/react": "18.0.25",
64
+ "@types/react-dom": "18.0.9",
65
+ "@typescript-eslint/eslint-plugin": "5.20.0",
66
+ "@typescript-eslint/parser": "5.20.0",
67
+ "autoprefixer": "^10.4.13",
68
+ "babel-plugin-macros": "^3.1.0",
69
+ "babel-plugin-twin": "^1.1.0",
70
+ "construct-style-sheets-polyfill": "^3.1.0",
71
+ "esbuild": "0.14.43",
72
+ "esbuild-jest": "0.5.0",
73
+ "esbuild-node-externals": "1.4.1",
74
+ "esbuild-plugin-alias": "0.2.1",
75
+ "esbuild-style-plugin": "^1.6.0",
76
+ "esbuild-visualizer": "^0.4.0",
77
+ "eslint": "8.29.0",
78
+ "eslint-config-prettier": "^8.5.0",
79
+ "eslint-plugin-compat": "^4.1.1",
80
+ "eslint-plugin-import": "2.26.0",
81
+ "eslint-plugin-jsx-a11y": "^6.6.1",
82
+ "eslint-plugin-prettier": "^4.2.1",
83
+ "eslint-plugin-react": "^7.31.11",
84
+ "eslint-plugin-react-hooks": "^4.6.0",
85
+ "eslint-plugin-tailwindcss": "^3.7.1",
86
+ "jest": "^29.5.0",
87
+ "jest-environment-jsdom": "^29.5.0",
88
+ "meow": "^11.0.0",
89
+ "npm-run-all": "^4.1.5",
90
+ "postcss": "^8.4.19",
91
+ "prettier": "^2.7.1",
92
+ "prettier-plugin-sort-imports-desc": "^1.0.0",
93
+ "react": "18.2.0",
94
+ "react-dom": "18.2.0",
95
+ "rimraf": "^3.0.2",
96
+ "tailwindcss": "^3.2.4",
97
+ "tsc-alias": "^1.7.1",
98
+ "twin.macro": "^3.1.0",
99
+ "typescript": "4.9.3"
100
+ },
101
+ "browserslist": {
102
+ "production": [
103
+ ">0.2%",
104
+ "not dead",
105
+ "not op_mini all"
106
+ ],
107
+ "development": [
108
+ "last 1 chrome version",
109
+ "last 1 firefox version",
110
+ "last 1 safari version"
111
+ ]
112
+ },
113
+ "babelMacros": {
114
+ "twin": {
115
+ "preset": "stitches",
116
+ "stitchesConfig": "stitches.config.ts"
117
+ }
118
+ },
119
+ "scripts": {
120
+ "analyze-bundle": "esbuild-visualizer --metadata ./esbuild-meta.json --filename esbuild-stats.html && open esbuild-stats.html",
121
+ "build": "npm-run-all clean build:*",
122
+ "build:css": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --minify",
123
+ "build:declarations": "tsc && tsc-alias",
124
+ "build:esm": "node esbuild/production.js -p esm",
125
+ "build:cjs": "node esbuild/production.js -p cjs",
126
+ "build:iife": "node esbuild/production.js -p iife",
127
+ "clean": "rimraf build/",
128
+ "dev": "npm-run-all clean dev:styles --parallel dev:*",
129
+ "dev:bundle": "node esbuild/development.js",
130
+ "dev:styles": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css",
131
+ "dev:styles-watch": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --watch",
132
+ "format": "prettier -w ./",
133
+ "format:check": "prettier --check ./",
134
+ "lint": "eslint --ext .tsx,.ts,.js,.jsx ./",
135
+ "lint:fix": "eslint --ext .tsx,.ts,.js,.jsx ./ --fix",
136
+ "test": "jest",
137
+ "typecheck": "tsc"
138
+ }
139
+ }