@unlayer/types 1.513.0 → 1.515.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.
@@ -274,6 +274,8 @@ export interface Features {
274
274
  * entitlement or quota. Defaults to `false`.
275
275
  */
276
276
  templateImporter?: boolean;
277
+ /** Share session-only Assistant history across the design (default), or keep a thread per element. */
278
+ chatHistoryScope?: 'design' | 'element';
277
279
  /**
278
280
  * Destination for AI Credit usage links shown inside an embedded
279
281
  * editor. Use this to send end-users to your own billing, usage, or
@@ -282,10 +284,27 @@ export interface Features {
282
284
  * documentation. Must be an absolute HTTP or HTTPS URL.
283
285
  */
284
286
  creditsUrl?: string;
287
+ /** @deprecated Use `image.enabled`. Explicit `false` still disables image chat. */
285
288
  magicImage?: boolean;
286
289
  image?: {
290
+ /** Enable image search, generation, editing, and attachments in AI Assistant. Defaults to true. */
291
+ enabled?: boolean;
292
+ /** Allow image attachments, paste, and drop in AI Assistant. Pasted image URL edits also require editing. Defaults to true. */
293
+ upload?: boolean;
294
+ /** Describe images added or changed through AI from their pixels using credits. Includes saved AI edits from the Image Editor modal. Ordinary uploads and manual edits are excluded. Defaults to true. */
295
+ altText?: boolean;
296
+ /** Allow custom image generation in AI Assistant. Defaults to true. */
297
+ generation?: boolean;
298
+ /** Allow image edits in AI Assistant. Defaults to true. */
299
+ editing?: boolean;
300
+ /** Let AI identify existing design images and target image replacements or insertions. Defaults to true. */
301
+ enableDesignImageTargeting?: boolean;
302
+ /** Allow online image search in AI Assistant. Also requires stockImages. Defaults to true. */
303
+ search?: boolean;
304
+ /** Filter online image search results. Defaults to the stockImages safeSearch setting. */
305
+ safeSearch?: boolean;
287
306
  /**
288
- * Preferred AI image model for Magic Image and image editing.
307
+ * Preferred AI image model for AI Assistant and image editing.
289
308
  * Accepts the same shapes as `features.ai.model`, but for image
290
309
  * providers:
291
310
  *
@@ -304,7 +323,7 @@ export interface Features {
304
323
  */
305
324
  model?: AIImageModel;
306
325
  /**
307
- * Transient-outage fallback controls for Magic Image and image
326
+ * Transient-outage fallback controls for AI Assistant and image
308
327
  * editing.
309
328
  *
310
329
  * - unset: use Unlayer's default picks only when `model` is unset;
@@ -59,6 +59,9 @@ export type BuiltInLocale =
59
59
  | 'zh-TW';
60
60
 
61
61
  export type EditorTranslationKey =
62
+ | 'ai.status.creating_image'
63
+ | 'ai.status.editing_image'
64
+ | 'ai.status.finding_images'
62
65
  | 'buttons.add_column'
63
66
  | 'buttons.add_content'
64
67
  | 'buttons.add_display_condition'
@@ -69,6 +72,15 @@ export type EditorTranslationKey =
69
72
  | 'buttons.add_new_item'
70
73
  | 'buttons.add_row'
71
74
  | 'buttons.add_text'
75
+ | 'buttons.ai.add_to_design'
76
+ | 'buttons.ai.add_to_prompt'
77
+ | 'buttons.ai.added_to_prompt'
78
+ | 'buttons.ai.attach_files'
79
+ | 'buttons.ai.attach_image'
80
+ | 'buttons.ai.create_or_edit_image'
81
+ | 'buttons.ai.preview_image'
82
+ | 'buttons.ai.replace_image'
83
+ | 'buttons.ai.undo_image_change'
72
84
  | 'buttons.apply'
73
85
  | 'buttons.apply_effects'
74
86
  | 'buttons.back'
@@ -515,12 +527,14 @@ export type EditorTranslationKey =
515
527
  | 'labels.ai.assistant.ai_mode'
516
528
  | 'labels.ai.assistant.apply_changes_to'
517
529
  | 'labels.ai.assistant.cannot_edit_while_ai_is_generating'
530
+ | 'labels.ai.assistant.choose_option'
518
531
  | 'labels.ai.assistant.credits_exhausted.open_billing_to_claim'
519
532
  | 'labels.ai.assistant.credits_exhausted.purchase_credit_pack'
520
533
  | 'labels.ai.assistant.credits_exhausted.title'
521
534
  | 'labels.ai.assistant.errors.api_quota_reached'
522
535
  | 'labels.ai.assistant.errors.custom_ai_key_invalid'
523
536
  | 'labels.ai.assistant.errors.external_resource_unavailable'
537
+ | 'labels.ai.assistant.errors.image_target_unavailable'
524
538
  | 'labels.ai.assistant.errors.input_schema_validation_failed'
525
539
  | 'labels.ai.assistant.errors.invalid_model'
526
540
  | 'labels.ai.assistant.errors.model_unavailable'
@@ -534,9 +548,22 @@ export type EditorTranslationKey =
534
548
  | 'labels.ai.assistant.errors.unsupported_request'
535
549
  | 'labels.ai.assistant.exit_ai_mode'
536
550
  | 'labels.ai.assistant.feature_description'
551
+ | 'labels.ai.assistant.file_drop.both'
552
+ | 'labels.ai.assistant.file_drop.clear_images'
553
+ | 'labels.ai.assistant.file_drop.clear_import'
554
+ | 'labels.ai.assistant.file_drop.images'
555
+ | 'labels.ai.assistant.file_drop.images_only'
556
+ | 'labels.ai.assistant.file_drop.import'
557
+ | 'labels.ai.assistant.file_drop.mixed'
558
+ | 'labels.ai.assistant.file_drop.references'
559
+ | 'labels.ai.assistant.file_drop.title'
537
560
  | 'labels.ai.assistant.full_template'
538
561
  | 'labels.ai.assistant.hang_tight_generating_using_ai'
539
562
  | 'labels.ai.assistant.how_to_use'
563
+ | 'labels.ai.assistant.html_attachment_error'
564
+ | 'labels.ai.assistant.image_attachment_error'
565
+ | 'labels.ai.assistant.image_attachment_file_error'
566
+ | 'labels.ai.assistant.image_reordered'
540
567
  | 'labels.ai.assistant.loading.almost_there'
541
568
  | 'labels.ai.assistant.loading.analyzing_request'
542
569
  | 'labels.ai.assistant.loading.generating'
@@ -560,6 +587,7 @@ export type EditorTranslationKey =
560
587
  | 'labels.ai.assistant.prompt_title'
561
588
  | 'labels.ai.assistant.protected_content_preserved'
562
589
  | 'labels.ai.assistant.quick_actions'
590
+ | 'labels.ai.assistant.reorder_images'
563
591
  | 'labels.ai.assistant.scroll_to_bottom'
564
592
  | 'labels.ai.assistant.select_a_component_to_run_ai'
565
593
  | 'labels.ai.assistant.template_importer.choose_file'
@@ -781,6 +809,8 @@ export type EditorTranslationKey =
781
809
  | 'modals.preview.inbox_preview.button.retrying_failed'
782
810
  | 'modals.preview.inbox_preview.credits.available_label'
783
811
  | 'modals.preview.inbox_preview.credits.blocked_help'
812
+ | 'modals.preview.inbox_preview.credits.buy_cta'
813
+ | 'modals.preview.inbox_preview.credits.claim_cta'
784
814
  | 'modals.preview.inbox_preview.credits.client_count'
785
815
  | 'modals.preview.inbox_preview.credits.credit_count'
786
816
  | 'modals.preview.inbox_preview.credits.device_count'
@@ -788,11 +818,13 @@ export type EditorTranslationKey =
788
818
  | 'modals.preview.inbox_preview.credits.learn_more'
789
819
  | 'modals.preview.inbox_preview.credits.learn_more_compact'
790
820
  | 'modals.preview.inbox_preview.credits.missing'
821
+ | 'modals.preview.inbox_preview.credits.none_to_claim'
791
822
  | 'modals.preview.inbox_preview.credits.ready'
792
823
  | 'modals.preview.inbox_preview.credits.required_label'
793
824
  | 'modals.preview.inbox_preview.credits.run_cost'
794
825
  | 'modals.preview.inbox_preview.credits.run_devices'
795
826
  | 'modals.preview.inbox_preview.credits.sufficient_label'
827
+ | 'modals.preview.inbox_preview.credits.used_up'
796
828
  | 'modals.preview.inbox_preview.empty_category'
797
829
  | 'modals.preview.inbox_preview.errors.allowance_finalization_unconfirmed'
798
830
  | 'modals.preview.inbox_preview.errors.authentication_required'
@@ -150,6 +150,7 @@ export type AIAssistantStreamEvent =
150
150
  }
151
151
  | {
152
152
  type: 'suggest-options';
153
+ question?: string;
153
154
  options: Array<{
154
155
  label: string;
155
156
  prompt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlayer/types",
3
- "version": "1.513.0",
3
+ "version": "1.515.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "types": "./dist/index.d.ts",