@jacshuo/onyx 1.3.0 → 1.3.1

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 +1 -4
  2. package/package.json +3 -8
package/README.md CHANGED
@@ -574,10 +574,7 @@ import { NavLink } from '@jacshuo/onyx';
574
574
 
575
575
  ### CodeBlock
576
576
 
577
- > **Note:** `CodeBlock` uses [Shiki](https://shiki.style/) for syntax highlighting. Install it as a peer dependency if you use this component:
578
- > ```sh
579
- > npm install shiki
580
- > ```
577
+ > **Note:** `CodeBlock` uses [Shiki](https://shiki.style/) for syntax highlighting. Shiki is included as a direct dependency and installed automatically with Onyx — no extra steps needed.
581
578
 
582
579
  ```tsx
583
580
  import { CodeBlock } from '@jacshuo/onyx';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacshuo/onyx",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Cross-platform React UI component library — works in web & Electron",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -77,18 +77,13 @@
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": ">=18.0.0",
80
- "react-dom": ">=18.0.0",
81
- "shiki": ">=1.0.0"
82
- },
83
- "peerDependenciesMeta": {
84
- "shiki": {
85
- "optional": true
86
- }
80
+ "react-dom": ">=18.0.0"
87
81
  },
88
82
  "dependencies": {
89
83
  "class-variance-authority": "^0.7.1",
90
84
  "clsx": "^2.1.1",
91
85
  "lucide-react": "^0.577.0",
86
+ "shiki": "^4.0.2",
92
87
  "tailwind-merge": "^3.5.0"
93
88
  },
94
89
  "devDependencies": {