@fileverse/ui 5.4.1 → 5.4.2

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 +2 -0
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -48,6 +48,8 @@ The `content` entry for `node_modules/@fileverse/ui/dist/**/*.{js,mjs}` is requi
48
48
 
49
49
  That literal `node_modules` path assumes a hoisted install; under pnpm, Yarn PnP, or a monorepo workspace it won't resolve, so point `content` at the package's actual install location instead.
50
50
 
51
+ The preset loads `tailwindcss`, `postcss`, and `postcss-js` from your project; they are optional peer dependencies, and a Tailwind 3.4 install already provides all three. Under a strict resolver (Yarn PnP, pnpm with hoisting off) add `postcss` and `postcss-js` to your own devDependencies.
52
+
51
53
  ### Legacy bundle (deprecated)
52
54
 
53
55
  `import '@fileverse/ui/styles'` still works and ships a full Tailwind build (preflight and utilities included). It is deprecated: it duplicates your own Tailwind output and its classes are purged against the ui's source, not yours. Migrate to the setup above.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "files": [
5
5
  "/dist",
6
6
  "/tailwind",
@@ -58,8 +58,6 @@
58
58
  "emoji-picker-react": "^4.11.1",
59
59
  "framer-motion": "^11.18.2",
60
60
  "lucide-react": "^0.475.0",
61
- "postcss": "^8.5.28",
62
- "postcss-js": "^4.1.0",
63
61
  "react-day-picker": "^8.10.1",
64
62
  "tailwind-merge": "^2.2.2",
65
63
  "tailwindcss-animate": "^1.0.7",
@@ -67,11 +65,19 @@
67
65
  "vaul": "1.1.2"
68
66
  },
69
67
  "peerDependencies": {
68
+ "postcss": "^8.4.0",
69
+ "postcss-js": "^4.0.0",
70
70
  "react": "^18.2.0 || ^19.0.0",
71
71
  "react-dom": "^18.2.0 || ^19.0.0",
72
72
  "tailwindcss": "^3.4.0"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
+ "postcss": {
76
+ "optional": true
77
+ },
78
+ "postcss-js": {
79
+ "optional": true
80
+ },
75
81
  "tailwindcss": {
76
82
  "optional": true
77
83
  }
@@ -112,7 +118,9 @@
112
118
  "husky": "^9.1.4",
113
119
  "jsdom": "^24.0.0",
114
120
  "lint-staged": "^15.2.7",
121
+ "postcss": "^8.5.28",
115
122
  "postcss-cli": "^11.0.0",
123
+ "postcss-js": "^4.1.0",
116
124
  "prettier": "^3.3.3",
117
125
  "storybook": "^8.1.9",
118
126
  "stylelint": "^17.6.0",