@cfxdevkit/react 1.0.0 → 1.0.5

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 (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +24 -23
package/README.md CHANGED
@@ -10,7 +10,7 @@ Features:
10
10
  ## Getting started
11
11
 
12
12
  ```tsx
13
- import { DevKitProvider, useBalance } from '@conflux-devkit/ui-headless';
13
+ import { DevKitProvider, useBalance } from '@cfxdevkit/react';
14
14
 
15
15
  const App = () => (
16
16
  <DevKitProvider apiUrl="http://localhost:3001" network="testnet">
@@ -22,9 +22,9 @@ const App = () => (
22
22
  ## Development
23
23
 
24
24
  ```bash
25
- pnpm --filter @conflux-devkit/ui-headless install
26
- pnpm --filter @conflux-devkit/ui-headless build
27
- pnpm --filter @conflux-devkit/ui-headless test
25
+ pnpm --filter @cfxdevkit/react install
26
+ pnpm --filter @cfxdevkit/react build
27
+ pnpm --filter @cfxdevkit/react test
28
28
  ```
29
29
 
30
30
  ## Testing and linting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfxdevkit/react",
3
- "version": "1.0.0",
3
+ "version": "1.0.5",
4
4
  "description": "Headless React components for Conflux applications - customizable with Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,25 @@
36
36
  },
37
37
  "./package.json": "./package.json"
38
38
  },
39
+ "scripts": {
40
+ "build": "tsup",
41
+ "build:watch": "tsup --watch",
42
+ "type-check": "tsc --noEmit",
43
+ "dev": "tsup --watch",
44
+ "test": "vitest run --pass-with-no-tests",
45
+ "test:ui": "vitest --ui",
46
+ "test:run": "vitest --run",
47
+ "test:coverage": "vitest --run --coverage --pass-with-no-tests",
48
+ "clean": "rm -rf dist",
49
+ "lint": "biome lint src/",
50
+ "lint:fix": "biome lint --write src/",
51
+ "format": "biome format src/",
52
+ "format:fix": "biome format --write src/",
53
+ "check": "biome check src/",
54
+ "check:fix": "biome check --write src/"
55
+ },
39
56
  "dependencies": {
40
- "@cfxdevkit/core": "0.1.0"
57
+ "@cfxdevkit/core": "workspace:*"
41
58
  },
42
59
  "peerDependencies": {
43
60
  "react": "^18.0.0",
@@ -69,30 +86,14 @@
69
86
  ],
70
87
  "author": "Conflux DevKit Team",
71
88
  "license": "Apache-2.0",
89
+ "packageManager": "pnpm@10.11.0",
72
90
  "repository": {
73
91
  "type": "git",
74
- "url": "git+https://github.com/cfxdevkit/conflux-devkit.git",
75
- "directory": "packages/ui-headless"
92
+ "url": "git+https://github.com/cfxdevkit/devkit.git",
93
+ "directory": "packages/react"
76
94
  },
77
95
  "homepage": "https://github.com/cfxdevkit/conflux-devkit#readme",
78
96
  "bugs": {
79
- "url": "https://github.com/cfxdevkit/conflux-devkit/issues"
80
- },
81
- "scripts": {
82
- "build": "tsup",
83
- "build:watch": "tsup --watch",
84
- "type-check": "tsc --noEmit",
85
- "dev": "tsup --watch",
86
- "test": "vitest run --pass-with-no-tests",
87
- "test:ui": "vitest --ui",
88
- "test:run": "vitest --run",
89
- "test:coverage": "vitest --run --coverage",
90
- "clean": "rm -rf dist",
91
- "lint": "biome lint src/",
92
- "lint:fix": "biome lint --write src/",
93
- "format": "biome format src/",
94
- "format:fix": "biome format --write src/",
95
- "check": "biome check src/",
96
- "check:fix": "biome check --write src/"
97
+ "url": "https://github.com/cfxdevkit/devkit/issues"
97
98
  }
98
- }
99
+ }