@imgly/plugin-ai-video-generation-web 0.2.3 → 0.2.4
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 +12 -0
- package/README.md +82 -0
- package/dist/fal-ai/createVideoProvider.d.ts +10 -0
- package/dist/fal-ai/index.mjs +7 -7
- package/dist/fal-ai/index.mjs.map +4 -4
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +4 -4
- package/dist/quickActions/CreateVideo.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.2.4] - 2025-08-07
|
|
6
|
+
|
|
7
|
+
### New Features
|
|
8
|
+
|
|
9
|
+
- [all] **Provider Label Translations**: Added support for provider label translations
|
|
10
|
+
- [all] **Extended Provider Configuration**: Added support for `history` and `supportedQuickActions` configuration fields in `CommonProviderConfiguration`, allowing customers to:
|
|
11
|
+
- Override provider's default history asset source (`history` field) - can be set to `false` to disable history, `'@imgly/local'` for temporary storage, `'@imgly/indexedDB'` for persistent browser storage, or any custom asset source ID
|
|
12
|
+
- Configure supported quick actions (`supportedQuickActions` field) - can disable quick actions by setting to `false`/`null`, keep defaults with `true`, or override with custom mappings and configurations
|
|
13
|
+
- Both fields are optional and maintain backward compatibility with existing provider configurations
|
|
14
|
+
- [generation-web] **Utility Function**: Added `mergeQuickActionsConfig` utility function for merging provider defaults with user configuration overrides, exported from `@imgly/plugin-ai-generation-web` with comprehensive Jest test coverage
|
|
15
|
+
|
|
5
16
|
## [0.2.3] - 2025-07-23
|
|
6
17
|
|
|
7
18
|
- [all] **Automatic History Asset Library Entries**: Composite history asset sources now automatically have corresponding asset library entries created with the same IDs (e.g., `ly.img.ai.image-generation.history`)
|
|
8
19
|
- [all] **Provider Selection in Expanded Quick Actions**: When a quick action is expanded, users can now switch between all providers that support that specific quick action, enhancing flexibility in provider selection
|
|
9
20
|
- [all] **Quick Action Can Disable Lock**: Some quick actions can now decide to not lock the block when operating on a block. Examples are `CreateVariant` and `CombineImages`.
|
|
21
|
+
- [image-generation] **Ideogram V3**: Added support for Ideogram V3 provider for image generation, which supports text-to-image and image-to-image generation
|
|
10
22
|
|
|
11
23
|
## [0.2.2] - 2025-07-16
|
|
12
24
|
|
package/README.md
CHANGED
|
@@ -145,6 +145,16 @@ Key features:
|
|
|
145
145
|
- 5-second video duration
|
|
146
146
|
- Custom headers support for API requests
|
|
147
147
|
|
|
148
|
+
**Custom Translations:**
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
cesdk.i18n.setTranslations({
|
|
152
|
+
en: {
|
|
153
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/minimax/video-01-live.property.prompt': 'Describe your Minimax video'
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
```
|
|
157
|
+
|
|
148
158
|
#### 2. MinimaxVideo01LiveImageToVideo (Image-to-Video)
|
|
149
159
|
|
|
150
160
|
A model that transforms still images into videos:
|
|
@@ -202,6 +212,18 @@ Key features:
|
|
|
202
212
|
- Selectable durations (5 s or 10 s)
|
|
203
213
|
- Adaptive resolution (height fixed at 720 px, width is calculated)
|
|
204
214
|
|
|
215
|
+
**Custom Translations:**
|
|
216
|
+
|
|
217
|
+
```typescript
|
|
218
|
+
cesdk.i18n.setTranslations({
|
|
219
|
+
en: {
|
|
220
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/kling-video/v2.1/master/text-to-video.property.prompt': 'Describe your KlingVideo',
|
|
221
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/kling-video/v2.1/master/text-to-video.property.aspect_ratio': 'Video Format',
|
|
222
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/kling-video/v2.1/master/text-to-video.property.duration': 'Video Length (seconds)'
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
```
|
|
226
|
+
|
|
205
227
|
#### 5. KlingVideoV21MasterImageToVideo (Image-to-Video)
|
|
206
228
|
|
|
207
229
|
A model that converts still images into videos using KlingVideo V2.1:
|
|
@@ -236,6 +258,62 @@ Key features:
|
|
|
236
258
|
- Fixed duration of 8 seconds
|
|
237
259
|
- Optional audio generation via `generate_audio`
|
|
238
260
|
|
|
261
|
+
### Customizing Labels and Translations
|
|
262
|
+
|
|
263
|
+
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.
|
|
264
|
+
|
|
265
|
+
#### Translation Key Structure
|
|
266
|
+
|
|
267
|
+
The system checks for translations in this order (highest to lowest priority):
|
|
268
|
+
|
|
269
|
+
1. **Provider-specific**: `ly.img.plugin-ai-video-generation-web.${provider}.property.${field}` - Override labels for a specific AI provider
|
|
270
|
+
2. **Generic**: `ly.img.plugin-ai-generation-web.property.${field}` - Override labels for all AI plugins
|
|
271
|
+
|
|
272
|
+
#### Basic Example
|
|
273
|
+
|
|
274
|
+
```typescript
|
|
275
|
+
// Customize labels for your AI video generation interface
|
|
276
|
+
cesdk.i18n.setTranslations({
|
|
277
|
+
en: {
|
|
278
|
+
// Generic labels (applies to ALL AI plugins)
|
|
279
|
+
'ly.img.plugin-ai-generation-web.property.prompt': 'Describe what you want to create',
|
|
280
|
+
'ly.img.plugin-ai-generation-web.property.duration': 'Video Duration',
|
|
281
|
+
|
|
282
|
+
// Provider-specific for MinimaxVideo01Live
|
|
283
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/minimax/video-01-live.property.prompt': 'Describe your video',
|
|
284
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/minimax/video-01-live.property.duration': 'Video Length',
|
|
285
|
+
|
|
286
|
+
// Provider-specific for KlingVideoV21Master
|
|
287
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/kling-video/v2.1/master/text-to-video.property.aspect_ratio': 'Video Aspect Ratio',
|
|
288
|
+
'ly.img.plugin-ai-video-generation-web.fal-ai/kling-video/v2.1/master/text-to-video.property.duration': 'Video Duration (seconds)'
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
#### QuickAction Translations
|
|
294
|
+
|
|
295
|
+
Video QuickActions (like "Create Video from Image") use their own translation keys:
|
|
296
|
+
|
|
297
|
+
```typescript
|
|
298
|
+
cesdk.i18n.setTranslations({
|
|
299
|
+
en: {
|
|
300
|
+
// QuickAction button labels
|
|
301
|
+
'ly.img.plugin-ai-video-generation-web.quickAction.createVideo': 'Create Video...',
|
|
302
|
+
|
|
303
|
+
// QuickAction input fields and buttons
|
|
304
|
+
'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.prompt': 'Create Video...',
|
|
305
|
+
'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.prompt.placeholder': 'e.g. "Make the image move slowly"',
|
|
306
|
+
'ly.img.plugin-ai-video-generation-web.quickAction.createVideo.apply': 'Generate'
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**QuickAction Translation Structure:**
|
|
312
|
+
- Base key (e.g., `.quickAction.createVideo`): Button text when QuickAction is collapsed
|
|
313
|
+
- `.prompt`: Label for input field when expanded
|
|
314
|
+
- `.prompt.placeholder`: Placeholder text for input field
|
|
315
|
+
- `.apply`: Text for action/submit button
|
|
316
|
+
|
|
239
317
|
### Configuration Options
|
|
240
318
|
|
|
241
319
|
The plugin accepts the following configuration options:
|
|
@@ -466,6 +544,10 @@ currentOrder.splice(2, 0, 'ly.img.ai.video-generation.dock');
|
|
|
466
544
|
cesdk.ui.setDockOrder(currentOrder);
|
|
467
545
|
```
|
|
468
546
|
|
|
547
|
+
## Translations
|
|
548
|
+
|
|
549
|
+
For customization and localization, see the [translations.json](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-video-generation-web/translations.json) file which contains provider-specific translation keys for video generation interfaces.
|
|
550
|
+
|
|
469
551
|
## Related Packages
|
|
470
552
|
|
|
471
553
|
- [@imgly/plugin-ai-generation-web](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-generation-web) - Core utilities for AI generation
|
|
@@ -10,6 +10,16 @@ type VideoProviderConfiguration = {
|
|
|
10
10
|
* @deprecated Use `middlewares` instead.
|
|
11
11
|
*/
|
|
12
12
|
middleware?: Middleware<any, any>[];
|
|
13
|
+
/**
|
|
14
|
+
* Override provider's default history asset source
|
|
15
|
+
*/
|
|
16
|
+
history?: false | '@imgly/local' | '@imgly/indexedDB' | (string & {});
|
|
17
|
+
/**
|
|
18
|
+
* Configure supported quick actions
|
|
19
|
+
*/
|
|
20
|
+
supportedQuickActions?: {
|
|
21
|
+
[quickActionId: string]: Partial<VideoQuickActionSupportMap<any>[string]> | false | null;
|
|
22
|
+
};
|
|
13
23
|
};
|
|
14
24
|
/**
|
|
15
25
|
* Creates a base provider from schema. This should work out of the box
|