@imgly/plugin-ai-image-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 +15 -0
- package/README.md +109 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/fal-ai/NanoBananaPro.d.ts +15 -0
- package/dist/fal-ai/NanoBananaProEdit.d.ts +14 -0
- package/dist/fal-ai/index.d.ts +4 -0
- package/dist/fal-ai/index.mjs +5 -5
- package/dist/fal-ai/index.mjs.map +4 -4
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +3 -3
- package/dist/open-ai/index.mjs +3 -3
- package/dist/open-ai/index.mjs.map +2 -2
- package/package.json +1 -1
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
|
@@ -718,7 +718,50 @@ cesdk.i18n.setTranslations({
|
|
|
718
718
|
});
|
|
719
719
|
```
|
|
720
720
|
|
|
721
|
-
#### 10.
|
|
721
|
+
#### 10. NanoBananaPro (Text-to-Image)
|
|
722
|
+
|
|
723
|
+
An enhanced version of NanoBanana from fal.ai with advanced aspect ratio and resolution controls:
|
|
724
|
+
|
|
725
|
+
```typescript
|
|
726
|
+
text2image: FalAiImage.NanoBananaPro({
|
|
727
|
+
proxyUrl: 'http://your-proxy-server.com/api/proxy',
|
|
728
|
+
headers: {
|
|
729
|
+
'x-custom-header': 'value',
|
|
730
|
+
'x-client-version': '1.0.0'
|
|
731
|
+
},
|
|
732
|
+
// Optional: Configure default property values
|
|
733
|
+
properties: {
|
|
734
|
+
aspect_ratio: { default: '1:1' }, // Options: '1:1', '3:2', '2:3', '4:3', '3:4', '16:9', '9:16', '21:9', '9:21', '2.4:1'
|
|
735
|
+
resolution: { default: '1K' }, // Options: '1K', '2K', '4K'
|
|
736
|
+
output_format: { default: 'png' } // Options: 'png', 'jpeg', 'webp'
|
|
737
|
+
}
|
|
738
|
+
})
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
Key features:
|
|
742
|
+
- Fast generation times for quick prototyping
|
|
743
|
+
- 10 different aspect ratio options (square, portrait, landscape, ultra-wide, cinematic)
|
|
744
|
+
- 3 resolution multipliers (1K, 2K, 4K) for scalable image quality
|
|
745
|
+
- High-quality image output with flexible dimensions
|
|
746
|
+
- Simple prompt-based interface
|
|
747
|
+
- Support for multiple output formats (JPEG, PNG)
|
|
748
|
+
- Configurable number of images (1-4)
|
|
749
|
+
- Supports page remixing with custom prompts
|
|
750
|
+
- Custom headers support for API requests
|
|
751
|
+
|
|
752
|
+
**Custom Translations:**
|
|
753
|
+
```typescript
|
|
754
|
+
cesdk.i18n.setTranslations({
|
|
755
|
+
en: {
|
|
756
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro.property.prompt': 'Describe your image',
|
|
757
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro.property.aspect_ratio': 'Aspect Ratio',
|
|
758
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro.property.resolution': 'Resolution',
|
|
759
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro.property.output_format': 'Output Format'
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
#### 11. SeedreamV4 (Text-to-Image)
|
|
722
765
|
|
|
723
766
|
A powerful text-to-image model from ByteDance's Seedream 4.0 available through fal.ai:
|
|
724
767
|
|
|
@@ -802,6 +845,47 @@ cesdk.i18n.setTranslations({
|
|
|
802
845
|
});
|
|
803
846
|
```
|
|
804
847
|
|
|
848
|
+
#### 13. NanoBananaProEdit (Image-to-Image)
|
|
849
|
+
|
|
850
|
+
An enhanced image editing model from fal.ai (Pro version of Nano Banana) that transforms existing images using text prompts:
|
|
851
|
+
|
|
852
|
+
```typescript
|
|
853
|
+
image2image: FalAiImage.NanoBananaProEdit({
|
|
854
|
+
proxyUrl: 'http://your-proxy-server.com/api/proxy',
|
|
855
|
+
headers: {
|
|
856
|
+
'x-custom-header': 'value',
|
|
857
|
+
'x-client-version': '1.0.0'
|
|
858
|
+
},
|
|
859
|
+
// Optional: Configure default property values
|
|
860
|
+
properties: {
|
|
861
|
+
num_images: { default: 1 }, // Number of images (1-4)
|
|
862
|
+
aspect_ratio: { default: 'auto' }, // Aspect ratio (auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)
|
|
863
|
+
resolution: { default: '1K' }, // Resolution (1K, 2K, 4K)
|
|
864
|
+
output_format: { default: 'png' } // Options: 'png', 'jpeg', 'webp'
|
|
865
|
+
}
|
|
866
|
+
})
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
Key features:
|
|
870
|
+
- Professional-grade image editing with text prompts
|
|
871
|
+
- Supports combining multiple images (up to 10 images)
|
|
872
|
+
- Maintains original image dimensions automatically
|
|
873
|
+
- Multiple aspect ratio and resolution options
|
|
874
|
+
- Supports all standard image editing quick actions
|
|
875
|
+
- Fast processing with optimized quality
|
|
876
|
+
- Canvas quick-action integration
|
|
877
|
+
- Custom headers support for API requests
|
|
878
|
+
|
|
879
|
+
**Custom Translations:**
|
|
880
|
+
```typescript
|
|
881
|
+
cesdk.i18n.setTranslations({
|
|
882
|
+
en: {
|
|
883
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro/edit.property.prompt': 'Edit instructions',
|
|
884
|
+
'ly.img.plugin-ai-image-generation-web.fal-ai/nano-banana-pro/edit.property.image_url': 'Source Image'
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
```
|
|
888
|
+
|
|
805
889
|
### Customizing Labels and Translations
|
|
806
890
|
|
|
807
891
|
You can customize all labels and text in the AI image generation interface using the translation system. This allows you to provide better labels for your users in any language.
|
|
@@ -1258,6 +1342,16 @@ FalAiImage.NanoBanana(config: {
|
|
|
1258
1342
|
})
|
|
1259
1343
|
```
|
|
1260
1344
|
|
|
1345
|
+
#### NanoBananaPro
|
|
1346
|
+
|
|
1347
|
+
```typescript
|
|
1348
|
+
FalAiImage.NanoBananaPro(config: {
|
|
1349
|
+
proxyUrl: string;
|
|
1350
|
+
headers?: Record<string, string>;
|
|
1351
|
+
debug?: boolean;
|
|
1352
|
+
})
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1261
1355
|
#### NanoBananaEdit
|
|
1262
1356
|
|
|
1263
1357
|
```typescript
|
|
@@ -1268,6 +1362,16 @@ FalAiImage.NanoBananaEdit(config: {
|
|
|
1268
1362
|
})
|
|
1269
1363
|
```
|
|
1270
1364
|
|
|
1365
|
+
#### NanoBananaProEdit
|
|
1366
|
+
|
|
1367
|
+
```typescript
|
|
1368
|
+
FalAiImage.NanoBananaProEdit(config: {
|
|
1369
|
+
proxyUrl: string;
|
|
1370
|
+
headers?: Record<string, string>;
|
|
1371
|
+
debug?: boolean;
|
|
1372
|
+
})
|
|
1373
|
+
```
|
|
1374
|
+
|
|
1271
1375
|
#### SeedreamV4
|
|
1272
1376
|
|
|
1273
1377
|
```typescript
|
|
@@ -1383,7 +1487,9 @@ const myImageProvider = {
|
|
|
1383
1487
|
- FluxProKontextEdit: `ly.img.ai.fal-ai/flux-pro/kontext`
|
|
1384
1488
|
- FluxProKontextMaxEdit: `ly.img.ai.fal-ai/flux-pro/kontext/max`
|
|
1385
1489
|
- NanoBanana: `ly.img.ai.fal-ai/nano-banana`
|
|
1490
|
+
- NanoBananaPro: `ly.img.ai.fal-ai/nano-banana-pro`
|
|
1386
1491
|
- NanoBananaEdit: `ly.img.ai.fal-ai/nano-banana/edit`
|
|
1492
|
+
- NanoBananaProEdit: `ly.img.ai.fal-ai/nano-banana-pro/edit`
|
|
1387
1493
|
- SeedreamV4: `ly.img.ai.fal-ai/bytedance/seedream/v4/text-to-image`
|
|
1388
1494
|
- SeedreamV4Edit: `ly.img.ai.fal-ai/bytedance/seedream/v4/edit`
|
|
1389
1495
|
|
|
@@ -1402,7 +1508,9 @@ Generated images are automatically stored in asset sources with the following ID
|
|
|
1402
1508
|
- FluxProKontextEdit: `fal-ai/flux-pro/kontext.history`
|
|
1403
1509
|
- FluxProKontextMaxEdit: `fal-ai/flux-pro/kontext/max.history`
|
|
1404
1510
|
- NanoBanana: `fal-ai/nano-banana.history`
|
|
1511
|
+
- NanoBananaPro: `fal-ai/nano-banana-pro.history`
|
|
1405
1512
|
- NanoBananaEdit: `fal-ai/nano-banana/edit.history`
|
|
1513
|
+
- NanoBananaProEdit: `fal-ai/nano-banana-pro/edit.history`
|
|
1406
1514
|
- SeedreamV4: `fal-ai/bytedance/seedream/v4/text-to-image.history`
|
|
1407
1515
|
- SeedreamV4Edit: `fal-ai/bytedance/seedream/v4/edit.history`
|
|
1408
1516
|
|