@imgly/plugin-ai-video-generation-web 0.2.14 → 0.2.16
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 +25 -0
- package/README.md +182 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/eachlabs/KlingO1.image2video.d.ts +23 -0
- package/dist/eachlabs/KlingV26Pro.image2video.d.ts +23 -0
- package/dist/eachlabs/KlingV26Pro.text2video.d.ts +24 -0
- package/dist/eachlabs/Veo31.image2video.d.ts +25 -0
- package/dist/eachlabs/Veo31.text2video.d.ts +25 -0
- package/dist/eachlabs/createEachLabsClient.d.ts +37 -0
- package/dist/eachlabs/createVideoProvider.d.ts +107 -0
- package/dist/eachlabs/index.d.ts +19 -0
- package/dist/eachlabs/index.mjs +142 -0
- package/dist/eachlabs/index.mjs.map +7 -0
- package/dist/eachlabs/types.d.ts +10 -0
- package/dist/eachlabs/utils.d.ts +23 -0
- package/dist/fal-ai/index.mjs +8 -8
- package/dist/fal-ai/index.mjs.map +4 -4
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +4 -4
- package/dist/runware/index.mjs +6 -6
- package/dist/runware/index.mjs.map +4 -4
- package/package.json +6 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { EachLabsClient } from './createEachLabsClient';
|
|
2
|
+
export type { EachLabsProviderConfiguration } from './createVideoProvider';
|
|
3
|
+
export declare const VIDEO_ASPECT_RATIO_MAP: Record<string, {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function getVideoDimensionsFromAspectRatio(aspectRatio: string): {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
2
|
+
import { EachLabsClient } from './createEachLabsClient';
|
|
3
|
+
/**
|
|
4
|
+
* Uploads an image to EachLabs storage if needed.
|
|
5
|
+
* Handles blob: and buffer: URLs by uploading them to EachLabs storage.
|
|
6
|
+
* Regular URLs and data URIs are passed through unchanged.
|
|
7
|
+
*
|
|
8
|
+
* @param client - The EachLabs client instance
|
|
9
|
+
* @param imageUrl - The image URL to process
|
|
10
|
+
* @param cesdk - Optional CE.SDK instance for buffer URL handling
|
|
11
|
+
* @returns The uploaded URL or the original URL if no upload was needed
|
|
12
|
+
*/
|
|
13
|
+
export declare function uploadImageInputToEachLabsIfNeeded(client: EachLabsClient, imageUrl?: string, cesdk?: CreativeEditorSDK): Promise<string | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Uploads an array of images to EachLabs storage if needed.
|
|
16
|
+
* Used for multi-image inputs like image-to-video generation.
|
|
17
|
+
*
|
|
18
|
+
* @param client - The EachLabs client instance
|
|
19
|
+
* @param imageUrls - Array of image URLs to process
|
|
20
|
+
* @param cesdk - Optional CE.SDK instance for buffer URL handling
|
|
21
|
+
* @returns Array of uploaded URLs
|
|
22
|
+
*/
|
|
23
|
+
export declare function uploadImageArrayToEachLabsIfNeeded(client: EachLabsClient, imageUrls?: string[], cesdk?: CreativeEditorSDK): Promise<string[] | undefined>;
|