@imgly/plugin-ai-video-generation-web 0.2.4 → 0.2.6

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,28 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.6] - 2025-09-09
6
+
7
+ ### New Features
8
+
9
+ - [all] **Feature API Integration**: Added comprehensive Feature API support across all AI plugins to control visibility and availability of features through feature flags. Core features include `providerSelect`, `quickAction`, `quickAction.providerSelect`, `fromText`, and `fromImage` flags.
10
+ - [all] **Quick Action Feature Flags**: Each quick action now automatically registers and respects its own feature flag (e.g., `ly.img.plugin-ai-image-generation-web.quickAction.editImage`), allowing fine-grained control over which quick actions are available to users.
11
+ - [image-generation] **Provider Style Group Control**: Added Feature API support for Recraft providers to control style group visibility. RecraftV3 supports `style.image` and `style.vector` flags, while Recraft20b adds `style.icon` flag for controlling icon style availability.
12
+ - [all] **Provider Selection Feature Flags**: Added support for controlling provider selection UI in both panels (`providerSelect`) and quick actions (`quickAction.providerSelect`), with proper handling when multiple providers are configured.
13
+
14
+ ## [0.2.5] - 2025-09-03
15
+
16
+ ### New Features
17
+
18
+ - [image-generation] **NanoBanana Provider**: Added NanoBanana text-to-image provider via fal.ai with fast generation times, 1024×1024 resolution, support for multiple output formats (JPEG, PNG), configurable number of images (1-4), and remixPageWithPrompt quick action
19
+ - [image-generation] **NanoBananaEdit Provider**: Added NanoBananaEdit image-to-image provider via fal.ai for editing existing images with text prompts, supporting all standard quick actions (editImage, swapBackground, styleTransfer, artistTransfer, createVariant, combineImages with up to 10 images, remixPage, remixPageWithPrompt)
20
+ - [all] **AI Style Asset Library Translations**: AI style presets in asset libraries now automatically use localized names and descriptions from provider translation files, eliminating the need for manual translation configuration
21
+
22
+ ### Bug Fixes
23
+
24
+ - [all] **fal.ai Provider Configuration**: Fixed singleton configuration conflict when using multiple fal.ai providers with different proxy URLs. Each provider now maintains its own client instance instead of overwriting a global configuration
25
+ - [video-generation] **Missing Dependency**: Added missing `@fal-ai/client` dependency to plugin-ai-video-generation-web package.json to ensure the package works correctly when installed independently
26
+
5
27
  ## [0.2.4] - 2025-08-07
6
28
 
7
29
  ### New Features
package/README.md CHANGED
@@ -258,6 +258,26 @@ Key features:
258
258
  - Fixed duration of 8 seconds
259
259
  - Optional audio generation via `generate_audio`
260
260
 
261
+ ### Feature Control
262
+
263
+ You can control various aspects of the video generation plugin using the Feature API:
264
+
265
+ ```typescript
266
+ // Disable text-to-video generation
267
+ cesdk.feature.enable('ly.img.plugin-ai-video-generation-web.fromText', false);
268
+
269
+ // Disable image-to-video generation
270
+ cesdk.feature.enable('ly.img.plugin-ai-video-generation-web.fromImage', false);
271
+
272
+ // Disable provider selection
273
+ cesdk.feature.enable('ly.img.plugin-ai-video-generation-web.providerSelect', false);
274
+
275
+ // Disable specific quick actions
276
+ cesdk.feature.enable('ly.img.plugin-ai-video-generation-web.quickAction.createVideo', false);
277
+ ```
278
+
279
+ For more information about Feature API and available feature flags, see the [@imgly/plugin-ai-generation-web documentation](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-generation-web#available-feature-flags).
280
+
261
281
  ### Customizing Labels and Translations
262
282
 
263
283
  You can customize all labels and text in the AI video generation interface using the translation system. This allows you to provide better labels for your users in any language.
@@ -292,23 +312,29 @@ cesdk.i18n.setTranslations({
292
312
 
293
313
  #### QuickAction Translations
294
314
 
295
- Video QuickActions (like "Create Video from Image") use their own translation keys:
315
+ Video QuickActions (like "Create Video from Image") use their own translation keys with provider-specific overrides:
296
316
 
297
317
  ```typescript
298
318
  cesdk.i18n.setTranslations({
299
319
  en: {
300
- // QuickAction button labels
301
- 'ly.img.plugin-ai-video-generation-web.quickAction.createVideo': 'Create Video...',
320
+ // Provider-specific translations (highest priority)
321
+ 'ly.img.plugin-ai-video-generation-web.fal-ai/minimax/video-01-live.quickAction.createVideo': 'Generate Minimax Video...',
322
+ 'ly.img.plugin-ai-video-generation-web.fal-ai/minimax/video-01-live.quickAction.createVideo.prompt': 'Minimax Video Prompt',
302
323
 
303
- // QuickAction input fields and buttons
304
- 'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.prompt': 'Create Video...',
324
+ // Generic plugin translations
325
+ 'ly.img.plugin-ai-video-generation-web.quickAction.createVideo': 'Create Video...',
326
+ 'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.prompt': 'Video Prompt',
305
327
  'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.prompt.placeholder': 'e.g. "Make the image move slowly"',
306
328
  'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.apply': 'Generate'
307
329
  }
308
330
  });
309
331
  ```
310
332
 
311
- **QuickAction Translation Structure:**
333
+ **QuickAction Translation Priority:**
334
+ 1. Provider-specific: `ly.img.plugin-ai-video-generation-web.${provider}.quickAction.${action}.${field}`
335
+ 2. Generic plugin: `ly.img.plugin-ai-video-generation-web.quickAction.${action}.${field}`
336
+
337
+ **Translation Structure:**
312
338
  - Base key (e.g., `.quickAction.createVideo`): Button text when QuickAction is collapsed
313
339
  - `.prompt`: Label for input field when expanded
314
340
  - `.prompt.placeholder`: Placeholder text for input field
@@ -0,0 +1,3 @@
1
+ import { type FalClient as FalClientType } from '@fal-ai/client';
2
+ export type FalClient = FalClientType;
3
+ export declare function createFalClient(proxyUrl: string, headers?: Record<string, string>): FalClient;