@puckeditor/plugin-ai 0.7.0-canary.75c0f12c → 0.7.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/dist/index.css +533 -307
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +5263 -4220
- package/dist/index.mjs +5227 -4177
- package/package.json +4 -5
package/dist/index.d.mts
CHANGED
|
@@ -203,7 +203,17 @@ type RequestOptions = {
|
|
|
203
203
|
type AiPluginProps = {
|
|
204
204
|
host?: string;
|
|
205
205
|
chat?: {
|
|
206
|
-
|
|
206
|
+
attachments?: {
|
|
207
|
+
enabled?: boolean;
|
|
208
|
+
accept?: string[];
|
|
209
|
+
maxFiles?: number;
|
|
210
|
+
maxSizeBytes?: number;
|
|
211
|
+
};
|
|
212
|
+
onSubmit?: (prompt: string, options?: {
|
|
213
|
+
attachments: Extract<PuckMessage["parts"][number], {
|
|
214
|
+
type: "file";
|
|
215
|
+
}>[];
|
|
216
|
+
}) => void | Promise<void>;
|
|
207
217
|
examplePrompts?: {
|
|
208
218
|
label: string;
|
|
209
219
|
href?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -203,7 +203,17 @@ type RequestOptions = {
|
|
|
203
203
|
type AiPluginProps = {
|
|
204
204
|
host?: string;
|
|
205
205
|
chat?: {
|
|
206
|
-
|
|
206
|
+
attachments?: {
|
|
207
|
+
enabled?: boolean;
|
|
208
|
+
accept?: string[];
|
|
209
|
+
maxFiles?: number;
|
|
210
|
+
maxSizeBytes?: number;
|
|
211
|
+
};
|
|
212
|
+
onSubmit?: (prompt: string, options?: {
|
|
213
|
+
attachments: Extract<PuckMessage["parts"][number], {
|
|
214
|
+
type: "file";
|
|
215
|
+
}>[];
|
|
216
|
+
}) => void | Promise<void>;
|
|
207
217
|
examplePrompts?: {
|
|
208
218
|
label: string;
|
|
209
219
|
href?: string;
|