@ckc-net/puck-extended 0.3.0 → 0.5.0
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 +18 -0
- package/dist/index.d.ts +258 -223
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1311 -350
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -106,6 +106,24 @@ const TemplateBlock = createTemplateBlock({
|
|
|
106
106
|
|
|
107
107
|
Register `TemplateBlock` as a Puck component to let editors save and reload layouts.
|
|
108
108
|
|
|
109
|
+
### Redactor Assistant (AI)
|
|
110
|
+
|
|
111
|
+
An AI-powered writing assistant that integrates into the Puck sidebar and provides inline help for rich text fields. It can generate, rewrite, or polish content based on user instructions.
|
|
112
|
+
|
|
113
|
+
```tsx
|
|
114
|
+
import { createRedactorPlugin } from '@ckc-net/puck-extended'
|
|
115
|
+
|
|
116
|
+
const puckConfig = {
|
|
117
|
+
components: { /* ... */ },
|
|
118
|
+
plugins: [
|
|
119
|
+
// ... other plugins
|
|
120
|
+
createRedactorPlugin()
|
|
121
|
+
],
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The plugin automatically adds a "Redactor" tab to the Puck sidebar and injects an AI button into `richtext` fields. It requires a backend endpoint at `/admin/puck/redactor` to handle AI requests.
|
|
126
|
+
|
|
109
127
|
### UI components
|
|
110
128
|
|
|
111
129
|
A set of accessible Base UI wrapper components, all styled with Tailwind CSS:
|