@delmaredigital/payload-puck 0.8.0 → 0.8.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.
- package/README.md +11 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,17 +47,24 @@ pnpm add @delmaredigital/payload-puck @puckeditor/core
|
|
|
47
47
|
|
|
48
48
|
**Editor CSS is now built by your app, not by this plugin.** Three options collapse into one, and `withPuckCSS` is gone.
|
|
49
49
|
|
|
50
|
-
Add a build step using Tailwind's own CLI:
|
|
50
|
+
Add a build step using Tailwind's own CLI. Tailwind v4 ships the CLI as a separate package:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pnpm add -D @tailwindcss/cli # v4 only; v3 already provides the `tailwindcss` binary
|
|
54
|
+
```
|
|
51
55
|
|
|
52
56
|
```jsonc
|
|
53
|
-
// package.json
|
|
57
|
+
// package.json — quote the paths; App Router route groups like (frontend) are shell syntax
|
|
54
58
|
"scripts": {
|
|
55
|
-
"build:puck-css": "tailwindcss -i ./src/app/(frontend)/globals.css -o ./public/puck-editor-styles.css",
|
|
59
|
+
"build:puck-css": "tailwindcss -i './src/app/(frontend)/globals.css' -o './public/puck-editor-styles.css'",
|
|
60
|
+
"dev:puck-css": "tailwindcss -i './src/app/(frontend)/globals.css' -o './public/puck-editor-styles.css' --watch",
|
|
56
61
|
"build": "pnpm build:puck-css && next build",
|
|
57
|
-
"dev": "pnpm build:puck-css
|
|
62
|
+
"dev": "pnpm build:puck-css && next dev"
|
|
58
63
|
}
|
|
59
64
|
```
|
|
60
65
|
|
|
66
|
+
Add `public/puck-editor-styles.css` to `.gitignore` — it's a build artifact. Run `dev:puck-css` in a second terminal while actively editing theme CSS.
|
|
67
|
+
|
|
61
68
|
Then pass the URL:
|
|
62
69
|
|
|
63
70
|
```typescript
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.1";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-version.js - do not edit manually
|
|
2
|
-
export const VERSION = '0.8.
|
|
2
|
+
export const VERSION = '0.8.1';
|