@puckeditor/plugin-ai 0.9.0-canary.20622ce3 → 0.9.0-canary.26589e83

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.d.mts CHANGED
@@ -292,6 +292,7 @@ type AiPluginProps = {
292
292
  visible?: boolean;
293
293
  };
294
294
  defaultMode?: "assembly" | "design";
295
+ label?: string;
295
296
  };
296
297
  declare global {
297
298
  interface Window {
@@ -322,4 +323,44 @@ declare function createAiPlugin(opts?: AiPluginProps): {
322
323
  };
323
324
  };
324
325
 
325
- export { type ComponentAiParams, type FieldAiParams, createAiPlugin, withDynamicConfig };
326
+ declare const defaultDictionary: {
327
+ readonly "loader-loading": "loading";
328
+ readonly "plugin-ai-placeholder-title": "Build with AI";
329
+ readonly "plugin-ai-placeholder-description": "Describe what you want to create or change.";
330
+ readonly "plugin-ai-placeholder-write-prompt": "Write a prompt";
331
+ readonly "plugin-ai-placeholder-browse": "Browse";
332
+ readonly "plugin-ai-prompt-placeholder": "What do you want to build?";
333
+ readonly "plugin-ai-prompt-attachment-attach": "Attach files";
334
+ readonly "plugin-ai-prompt-attachment-drop": "Attach file";
335
+ readonly "plugin-ai-prompt-attachment-item-failed": "Failed";
336
+ readonly "plugin-ai-prompt-attachment-item-remove": "Remove attachment";
337
+ readonly "plugin-ai-prompt-design-mode": "Design";
338
+ readonly "plugin-ai-prompt-design-mode-enable": "Enable design mode";
339
+ readonly "plugin-ai-prompt-design-mode-disable": "Disable design mode";
340
+ readonly "plugin-ai-prompt-error-uploading": "Wait for attachments to finish uploading.";
341
+ readonly "plugin-ai-prompt-error-attachment-failed": "Remove failed attachments before sending.";
342
+ readonly "plugin-ai-prompt-error-attachment-upload-failed": "One or more attachments failed to upload.";
343
+ readonly "plugin-ai-prompt-error-max-files": "You can attach up to {count} files per message.";
344
+ readonly "plugin-ai-prompt-error-max-size": "{name} exceeds the {limit} MB file size limit.";
345
+ readonly "plugin-ai-prompt-error-type": "Unsupported file type: {name}";
346
+ readonly "plugin-ai-prompt-error-dismiss": "Dismiss";
347
+ readonly "plugin-ai-chat-msg-thinking": "Thinking...";
348
+ readonly "plugin-ai-chat-msg-thought-for": "Thought for {seconds}s";
349
+ readonly "plugin-ai-chat-msg-thought": "Thought for a while";
350
+ readonly "plugin-ai-chat-msg-attachment": "Attachment";
351
+ readonly "plugin-ai-chat-error": "Something went wrong.";
352
+ readonly "plugin-ai-chat-error-retry": "Retry";
353
+ readonly "plugin-ai-components-manage": "Manage components";
354
+ readonly "plugin-ai-components-manage-empty": "No dynamic components";
355
+ readonly "plugin-ai-components-delete": "Delete";
356
+ readonly "plugin-ai-components-delete-title": "Delete component";
357
+ readonly "plugin-ai-components-delete-confirm": "Are you sure you want to delete {label}?";
358
+ readonly "plugin-ai-components-delete-cancel": "Cancel";
359
+ };
360
+ type AiDictionaryKey = keyof typeof defaultDictionary;
361
+ declare module "@puckeditor/core" {
362
+ interface Dictionary extends Partial<Record<AiDictionaryKey, string>> {
363
+ }
364
+ }
365
+
366
+ export { type AiDictionaryKey, type ComponentAiParams, type FieldAiParams, createAiPlugin, defaultDictionary, withDynamicConfig };
package/dist/index.d.ts CHANGED
@@ -292,6 +292,7 @@ type AiPluginProps = {
292
292
  visible?: boolean;
293
293
  };
294
294
  defaultMode?: "assembly" | "design";
295
+ label?: string;
295
296
  };
296
297
  declare global {
297
298
  interface Window {
@@ -322,4 +323,44 @@ declare function createAiPlugin(opts?: AiPluginProps): {
322
323
  };
323
324
  };
324
325
 
325
- export { type ComponentAiParams, type FieldAiParams, createAiPlugin, withDynamicConfig };
326
+ declare const defaultDictionary: {
327
+ readonly "loader-loading": "loading";
328
+ readonly "plugin-ai-placeholder-title": "Build with AI";
329
+ readonly "plugin-ai-placeholder-description": "Describe what you want to create or change.";
330
+ readonly "plugin-ai-placeholder-write-prompt": "Write a prompt";
331
+ readonly "plugin-ai-placeholder-browse": "Browse";
332
+ readonly "plugin-ai-prompt-placeholder": "What do you want to build?";
333
+ readonly "plugin-ai-prompt-attachment-attach": "Attach files";
334
+ readonly "plugin-ai-prompt-attachment-drop": "Attach file";
335
+ readonly "plugin-ai-prompt-attachment-item-failed": "Failed";
336
+ readonly "plugin-ai-prompt-attachment-item-remove": "Remove attachment";
337
+ readonly "plugin-ai-prompt-design-mode": "Design";
338
+ readonly "plugin-ai-prompt-design-mode-enable": "Enable design mode";
339
+ readonly "plugin-ai-prompt-design-mode-disable": "Disable design mode";
340
+ readonly "plugin-ai-prompt-error-uploading": "Wait for attachments to finish uploading.";
341
+ readonly "plugin-ai-prompt-error-attachment-failed": "Remove failed attachments before sending.";
342
+ readonly "plugin-ai-prompt-error-attachment-upload-failed": "One or more attachments failed to upload.";
343
+ readonly "plugin-ai-prompt-error-max-files": "You can attach up to {count} files per message.";
344
+ readonly "plugin-ai-prompt-error-max-size": "{name} exceeds the {limit} MB file size limit.";
345
+ readonly "plugin-ai-prompt-error-type": "Unsupported file type: {name}";
346
+ readonly "plugin-ai-prompt-error-dismiss": "Dismiss";
347
+ readonly "plugin-ai-chat-msg-thinking": "Thinking...";
348
+ readonly "plugin-ai-chat-msg-thought-for": "Thought for {seconds}s";
349
+ readonly "plugin-ai-chat-msg-thought": "Thought for a while";
350
+ readonly "plugin-ai-chat-msg-attachment": "Attachment";
351
+ readonly "plugin-ai-chat-error": "Something went wrong.";
352
+ readonly "plugin-ai-chat-error-retry": "Retry";
353
+ readonly "plugin-ai-components-manage": "Manage components";
354
+ readonly "plugin-ai-components-manage-empty": "No dynamic components";
355
+ readonly "plugin-ai-components-delete": "Delete";
356
+ readonly "plugin-ai-components-delete-title": "Delete component";
357
+ readonly "plugin-ai-components-delete-confirm": "Are you sure you want to delete {label}?";
358
+ readonly "plugin-ai-components-delete-cancel": "Cancel";
359
+ };
360
+ type AiDictionaryKey = keyof typeof defaultDictionary;
361
+ declare module "@puckeditor/core" {
362
+ interface Dictionary extends Partial<Record<AiDictionaryKey, string>> {
363
+ }
364
+ }
365
+
366
+ export { type AiDictionaryKey, type ComponentAiParams, type FieldAiParams, createAiPlugin, defaultDictionary, withDynamicConfig };