@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.
- package/build/index.css +2000 -2
- package/package.json +138 -137
- package/build/idkit-js.js +0 -152
- package/build/index.cjs +0 -9
- package/build/index.cjs.map +0 -7
- package/build/index.js +0 -9
- package/build/index.js.map +0 -7
- package/build/jest.config.d.ts +0 -21
- package/build/jest.setup.d.ts +0 -1
- package/build/src/components/AboutWorldID.d.ts +0 -6
- package/build/src/components/Button.d.ts +0 -3
- package/build/src/components/Frame.d.ts +0 -4
- package/build/src/components/IDKitWidget/BaseWidget.d.ts +0 -4
- package/build/src/components/IDKitWidget/States/ErrorState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/HostAppVerificationState.d.ts +0 -7
- package/build/src/components/IDKitWidget/States/PrivacyState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/SuccessState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/WorldID/QRState.d.ts +0 -11
- package/build/src/components/IDKitWidget/States/WorldIDState.d.ts +0 -3
- package/build/src/components/IDKitWidget/index.d.ts +0 -3
- package/build/src/components/Icons/ArrowLongLeftIcon.d.ts +0 -3
- package/build/src/components/Icons/CheckIcon.d.ts +0 -3
- package/build/src/components/Icons/ChevronDownIcon.d.ts +0 -3
- package/build/src/components/Icons/HumanIcon.d.ts +0 -3
- package/build/src/components/Icons/InfoIcon.d.ts +0 -3
- package/build/src/components/Icons/LoadingIcon.d.ts +0 -5
- package/build/src/components/Icons/LockIcon.d.ts +0 -3
- package/build/src/components/Icons/QuestionMarkIcon.d.ts +0 -5
- package/build/src/components/Icons/WorldIDWordmark.d.ts +0 -3
- package/build/src/components/Icons/WorldcoinIcon.d.ts +0 -3
- package/build/src/components/Icons/XMarkIcon.d.ts +0 -3
- package/build/src/components/QRCode.d.ts +0 -7
- package/build/src/components/SignInButton.d.ts +0 -7
- package/build/src/components/SignInWithWorldID.d.ts +0 -11
- package/build/src/components/WorldIDIcon.d.ts +0 -7
- package/build/src/hooks/useIDKit.d.ts +0 -7
- package/build/src/hooks/useMedia.d.ts +0 -2
- package/build/src/index.d.ts +0 -33
- package/build/src/lib/consts.d.ts +0 -1
- package/build/src/lib/hashing.d.ts +0 -22
- package/build/src/lib/qr.d.ts +0 -4
- package/build/src/lib/telemetry.d.ts +0 -3
- package/build/src/lib/utils.d.ts +0 -2
- package/build/src/services/walletconnect.d.ts +0 -15
- package/build/src/store/idkit.d.ts +0 -37
- package/build/src/types/app.d.ts +0 -21
- package/build/src/types/config.d.ts +0 -34
- package/build/src/types/index.d.ts +0 -36
- package/build/src/vanilla.d.ts +0 -12
- package/build/stitches.config.d.ts +0 -45
- package/build/tests/lib/hashing.test.d.ts +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,138 +1,139 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
+
}
|