@imgly/plugin-ai-generation-web 0.2.10 → 0.2.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.12] - 2025-11-21
6
+
7
+ ## [0.2.11] - 2025-11-21
8
+
9
+ ### New Features
10
+
11
+ - [generation-web] **Input Placeholder Customization**: Added support for customizing placeholder text in input fields (e.g., prompt textarea) through the i18n translation system. Placeholders follow the same priority chain as labels:
12
+ 1. Provider-specific: `ly.img.plugin-ai-{kind}-generation-web.{provider.id}.property.{field}.placeholder`
13
+ 2. Global: `ly.img.plugin-ai-generation-web.property.{field}.placeholder`
14
+ 3. Provider defaults: `ly.img.plugin-ai-{kind}-generation-web.{provider.id}.defaults.property.{field}.placeholder`
15
+ 4. Global defaults: `ly.img.plugin-ai-generation-web.defaults.property.{field}.placeholder`
16
+ - [image-generation] **Gemini Provider Placeholders**: Added example placeholder text to Gemini providers (GeminiFlash25 and Gemini25FlashImageEdit) demonstrating provider-specific placeholder customization
17
+ - [image-generation] **NanoBananaPro Provider**: Added NanoBananaPro text-to-image provider via fal.ai, an enhanced version of NanoBanana with advanced configuration options including 10 aspect ratio presets (1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 9:21, 2.4:1), resolution multipliers (1K, 2K, 4K for standard/high/ultra quality), dynamic dimension calculation based on aspect ratio and resolution, and remixPageWithPrompt quick action support
18
+ - [image-generation] **NanoBananaProEdit Provider**: Added NanoBananaProEdit image-to-image provider via fal.ai for professional-grade image editing with text prompts, supporting resolution control (1K/2K/4K), all standard quick actions (editImage, swapBackground, styleTransfer, artistTransfer, createVariant, combineImages with up to 10 images, remixPage, remixPageWithPrompt), and automatic dimension preservation from source images
19
+
5
20
  ## [0.2.10] - 2025-10-22
6
21
 
7
22
  ### New Features
package/README.md CHANGED
@@ -826,6 +826,38 @@ cesdk.i18n.setTranslations({
826
826
  });
827
827
  ```
828
828
 
829
+ ### Customizing Input Placeholders
830
+
831
+ You can customize placeholder text for input fields (like the prompt textarea) using the same translation system. Placeholders help guide users on what to enter:
832
+
833
+ ```typescript
834
+ cesdk.i18n.setTranslations({
835
+ en: {
836
+ // Generic placeholder (applies to ALL AI plugins)
837
+ 'ly.img.plugin-ai-generation-web.property.prompt.placeholder':
838
+ 'e.g., A serene mountain landscape at sunset...',
839
+
840
+ // Provider-specific placeholders (highest priority)
841
+ 'ly.img.plugin-ai-image-generation-web.fal-ai/recraft-v3.property.prompt.placeholder':
842
+ 'Describe your image in detail...',
843
+
844
+ 'ly.img.plugin-ai-image-generation-web.fal-ai/gemini-25-flash-image/edit.property.prompt.placeholder':
845
+ 'Describe the changes you want to make...',
846
+
847
+ 'ly.img.plugin-ai-video-generation-web.fal-ai/veo3.property.prompt.placeholder':
848
+ 'Describe the video scene, camera movements, and style...'
849
+ }
850
+ });
851
+ ```
852
+
853
+ **Translation Priority for Placeholders:**
854
+
855
+ Placeholders follow the same priority chain as labels:
856
+ 1. `ly.img.plugin-ai-{kind}-generation-web.{provider.id}.property.{field}.placeholder` (highest)
857
+ 2. `ly.img.plugin-ai-generation-web.property.{field}.placeholder`
858
+ 3. `ly.img.plugin-ai-{kind}-generation-web.{provider.id}.defaults.property.{field}.placeholder`
859
+ 4. `ly.img.plugin-ai-generation-web.defaults.property.{field}.placeholder` (lowest)
860
+
829
861
  ### Dropdown Options
830
862
 
831
863
  For dropdown menus, add the option value to the translation key: