-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.82 KB
/
package.json
File metadata and controls
120 lines (120 loc) · 3.82 KB
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
{
"name": "@knocklabs/react",
"description": "A set of React components to build notification experiences powered by Knock",
"author": "@knocklabs",
"version": "0.11.0",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"style": "dist/index.css",
"exports": {
"./dist/index.css": "./dist/index.css",
".": {
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"default": "./dist/cjs/index.js"
},
"./next": {
"require": "./dist/cjs/next.js",
"types": "./dist/types/next/index.d.ts",
"import": "./dist/esm/next.mjs",
"default": "./dist/cjs/next.js"
},
"./tanstack": {
"require": "./dist/cjs/tanstack.js",
"types": "./dist/types/tanstack/index.d.ts",
"import": "./dist/esm/tanstack.mjs",
"default": "./dist/cjs/tanstack.js"
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"clean": "rimraf dist",
"dev": "tsc && vite build --watch --emptyOutDir false",
"//": "dev:local runs a dev server and lets you test components at localhost:5173",
"dev:local": "vite",
"build": "yarn clean && yarn build:esm && yarn build:cjs",
"build:esm": "BUILD_TARGET=esm; vite build",
"build:cjs": "BUILD_TARGET=cjs; vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier \"src/**/*.{js,ts,tsx}\" --write",
"format:check": "prettier \"src/**/*.{js,ts,tsx}\" --check",
"gen:tokens": "node ./scripts/generateCssTokens.js",
"type:check": "tsc --noEmit",
"coverage": "vitest run --coverage",
"preview": "vite preview"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knocklabs/javascript.git"
},
"bugs": {
"url": "https://github.com/knocklabs/javascript/issues"
},
"peerDependencies": {
"@tanstack/react-router": "^1.0.0",
"next": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@tanstack/react-router": {
"optional": true
},
"next": {
"optional": true
}
},
"dependencies": {
"@knocklabs/client": "workspace:^",
"@knocklabs/react-core": "workspace:^",
"@popperjs/core": "^2.11.8",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-hover-card": "^1.1.15",
"@telegraph/combobox": "^0.1.16",
"@telegraph/icon": "^0.2.7",
"@telegraph/layout": "^0.2.3",
"@telegraph/tokens": "^0.1.2",
"@telegraph/tooltip": "0.0.61",
"@telegraph/typography": "^0.1.25",
"clsx": "^2.1.1",
"lodash.debounce": "^4.0.8"
},
"devDependencies": {
"@codecov/vite-plugin": "^1.9.1",
"@tanstack/react-router": "1.134.12",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.0",
"@types/eslint-plugin-jsx-a11y": "^6",
"@types/lodash.debounce": "^4.0.9",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.39.1",
"@vitejs/plugin-react": "^4.5.1",
"babel-plugin-react-require": "^4.0.3",
"eslint": "^8.56.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"jsdom": "^27.1.0",
"next": "15.3.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^6.0.1",
"rollup-plugin-execute": "^1.1.1",
"rollup-preserve-directives": "^1.1.3",
"typescript": "^5.8.3",
"vite": "^5.4.19",
"vite-plugin-dts": "^4.5.0",
"vite-plugin-no-bundle": "^4.0.0",
"vitest": "^3.1.1",
"vitest-axe": "^0.1.0"
}
}