@imgly/plugin-ai-text-generation-web 0.2.8 → 0.2.10

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,49 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.10] - 2025-10-22
6
+
7
+ ### New Features
8
+
9
+ - [video-generation] **Google Veo 3.1 Provider Suite**: Added comprehensive Google Veo 3.1 video generation providers via fal.ai, offering multiple models optimized for different use cases:
10
+ - **Text-to-Video Providers**:
11
+ - `Veo31TextToVideo`: Standard quality text-to-video with configurable aspect ratios (16:9, 9:16, 1:1), variable duration (4s, 6s, 8s), resolution options (720p, 1080p), and optional audio generation
12
+ - `Veo31FastTextToVideo`: Faster and more cost-effective text-to-video variant with same capabilities as standard version
13
+ - **Image-to-Video Providers**:
14
+ - `Veo31ImageToVideo`: Standard quality image-to-video with auto aspect ratio detection, multiple preset options (16:9, 9:16, 1:1), resolution options (720p, 1080p), fixed 8-second duration, and optional audio generation
15
+ - `Veo31FastImageToVideo`: Faster and more cost-effective image-to-video variant with same capabilities
16
+ - **First-Last Frame Providers** (experimental dual-image transformation):
17
+ - `Veo31FirstLastFrameToVideo`: Standard quality interpolation between two images (first and last frame)
18
+ - `Veo31FastFirstLastFrameToVideo`: Faster variant with dual image input UI, multiple aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4), resolution options (480p, 720p, 1080p), adjustable duration (2-8 seconds), optional prompt guidance, and optional audio generation
19
+ - **Quick Action Support**: Added "Animate Between Images" quick action for creating smooth transitions between two selected images using the first-last-frame providers
20
+
21
+ ## [0.2.9] - 2025-10-16
22
+
23
+ ### New Features
24
+
25
+ - [image-generation] **GeminiFlash25 Provider**: Added Google Gemini Flash 2.5 text-to-image provider via fal.ai with fast generation times, multiple aspect ratios (1:1, 3:4, 4:3, 9:16, 16:9), custom dimensions support, and multiple output formats (JPEG, PNG, WEBP)
26
+ - [image-generation] **Gemini25FlashImageEdit Provider**: Added Google Gemini 2.5 Flash Image Edit provider via fal.ai for advanced image editing with multi-image support (1-10 images), comprehensive quick actions support (editImage, swapBackground, styleTransfer, artistTransfer, createVariant, combineImages, remixPage, remixPageWithPrompt), text-based editing instructions, and fast processing times
27
+
28
+ ### Improvements
29
+
30
+ - [generation-web] **Middleware preventDefault() API**: Added `options.preventDefault()` method to suppress default UI feedback (notifications, block states, console logging) when handling errors in custom middleware
31
+ - [all] **Internationalization Support**: All hardcoded strings across AI plugins have been removed and replaced with translation keys, enabling full localization support for plugin labels, actions, styles, and error messages
32
+ - [all] **Translation Keys Available**: Added comprehensive translation keys for:
33
+ - Panel and dock labels (AI Image, AI Video, AI Sticker, AI Voice, Sound Generation)
34
+ - Action labels (Generate Image, Generate Video, Generate Sticker)
35
+ - Style transfer options (None, Anime, Cyberpunk, Kodak 400, Watercolor, Dark Fantasy, Vaporwave, Vector Flat, 3D Animation, Ukiyo-e, Surreal, Steampunk, Night Bokeh, Pop Art)
36
+ - Error messages and UI elements
37
+ - [all] **Backwards Compatibility**: Translation system automatically detects CE.SDK version and gracefully falls back to English strings for CE.SDK versions < 1.59.0, ensuring no breaking changes for existing integrations
38
+
39
+ ### Fixed
40
+
41
+ - [generation-web] **Placeholder Block Error State**: Fixed placeholder blocks getting stuck in Pending state when generation fails or is aborted. Blocks are now properly destroyed when generation is aborted, or moved to Error state when generation fails, preventing perpetual loading spinners in the UI.
42
+ - [generation-web] **Middleware Block Targeting**: Fixed middleware to correctly receive block IDs for placeholder blocks and quick action targets. Previously, middleware would fall back to `findAllSelected()` which could target incorrect blocks if the selection changed during generation. Now placeholder blocks created during panel generation and target blocks from quick actions are explicitly passed to middleware, ensuring operations like pending state, locking, and highlighting affect the correct blocks.
43
+
44
+ ### Changed
45
+
46
+ - [generation-web] **BlockIds Type Refinement**: Removed unused `| null` type from `blockIds` parameter in `GenerationOptions` and `Generate` function signature. The `null` value was documented but never implemented or used. Use an empty array `[]` instead of `null` to explicitly target no blocks.
47
+
5
48
  ## [0.2.8] - 2025-09-29
6
49
 
7
50
  ### New Features
package/README.md CHANGED
@@ -397,6 +397,43 @@ Built-in middleware options:
397
397
 
398
398
  You can also create custom middleware functions to meet your specific needs.
399
399
 
400
+ #### Preventing Default Feedback
401
+
402
+ Middleware can suppress default UI feedback behaviors using `options.preventDefault()`:
403
+
404
+ ```typescript
405
+ const customErrorMiddleware = async (input, options, next) => {
406
+ try {
407
+ return await next(input, options);
408
+ } catch (error) {
409
+ // Prevent default error notification
410
+ options.preventDefault();
411
+
412
+ // Show custom error notification
413
+ options.cesdk?.ui.showNotification({
414
+ type: 'error',
415
+ message: `Text generation failed: ${error.message}`,
416
+ action: {
417
+ label: 'Try Again',
418
+ onClick: () => {/* retry logic */}
419
+ }
420
+ });
421
+
422
+ throw error;
423
+ }
424
+ };
425
+ ```
426
+
427
+ **What gets prevented:**
428
+ - Error/success notifications
429
+ - Block error state
430
+ - Console error logging
431
+
432
+ **What is NOT prevented:**
433
+ - Pending → Ready transition (loading spinner always stops)
434
+
435
+ For more details, see the [@imgly/plugin-ai-generation-web documentation](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-generation-web#preventing-default-feedback).
436
+
400
437
  ### Using a Proxy
401
438
 
402
439
  For security reasons, you must use a proxy server to handle API requests to Anthropic. The proxy URL is required when configuring providers: