@imgly/plugin-ai-image-generation-web 0.1.8 → 0.1.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 +17 -4
- package/dist/fal-ai/GeminiFlashEdit.d.ts +3 -8
- package/dist/fal-ai/RecraftV3.d.ts +3 -6
- package/dist/fal-ai/createImageProvider.d.ts +1 -0
- package/dist/fal-ai/index.mjs +6 -6
- package/dist/fal-ai/index.mjs.map +4 -4
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/dist/open-ai/GptImage1.image2image.d.ts +3 -6
- package/dist/open-ai/GptImage1.text2image.d.ts +3 -6
- package/dist/open-ai/index.mjs +3 -3
- package/dist/open-ai/index.mjs.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
# Changelog
|
|
1
|
+
# Changelog - AI Plugins
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
## [0.1.10] - 2025-06-20
|
|
6
|
+
|
|
7
|
+
- [all] Fix issue with GPT provider when using text provider
|
|
8
|
+
|
|
9
|
+
## [0.1.9] - 2025-06-05
|
|
10
|
+
|
|
11
|
+
- [all] Add support for custom headers
|
|
12
|
+
|
|
13
|
+
## [0.1.8] - 2025-05-26
|
|
14
|
+
|
|
15
|
+
- [ai-apps] Handle `sceneMode` change in upcoming CE.SDK version 1.52.0
|
|
16
|
+
|
|
17
|
+
## [0.1.0] - 2025-04-17
|
|
18
|
+
|
|
19
|
+
- [all] Initial release
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { ImageOutput,
|
|
1
|
+
import { ImageOutput, type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
|
|
2
2
|
import CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
3
3
|
type GeminiFlashEditInput = {
|
|
4
4
|
prompt: string;
|
|
5
5
|
image_url: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
proxyUrl: string;
|
|
9
|
-
debug?: boolean;
|
|
10
|
-
middleware?: Middleware<GeminiFlashEditInput, ImageOutput>[];
|
|
11
|
-
};
|
|
12
|
-
export declare function GeminiFlashEdit(config: ProviderConfiguration): (context: {
|
|
7
|
+
export declare function GeminiFlashEdit(config: CommonProviderConfiguration<GeminiFlashEditInput, ImageOutput>): (context: {
|
|
13
8
|
cesdk: CreativeEditorSDK;
|
|
14
9
|
}) => Promise<Provider<'image', GeminiFlashEditInput, ImageOutput>>;
|
|
15
|
-
declare function getProvider(cesdk: CreativeEditorSDK, config:
|
|
10
|
+
declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<GeminiFlashEditInput, ImageOutput>): Provider<'image', GeminiFlashEditInput, ImageOutput>;
|
|
16
11
|
export default getProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommonProviderConfiguration, type Provider } from '@imgly/plugin-ai-generation-web';
|
|
2
2
|
import { type RecraftV3Input } from '@fal-ai/client/endpoints';
|
|
3
3
|
import CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
4
4
|
type RecraftV3Output = {
|
|
@@ -6,10 +6,7 @@ type RecraftV3Output = {
|
|
|
6
6
|
url: string;
|
|
7
7
|
};
|
|
8
8
|
export type StyleId = Extract<RecraftV3Input['style'], string>;
|
|
9
|
-
|
|
10
|
-
proxyUrl: string;
|
|
11
|
-
debug?: boolean;
|
|
12
|
-
middleware?: Middleware<RecraftV3Input, RecraftV3Output>[];
|
|
9
|
+
interface ProviderConfiguration extends CommonProviderConfiguration<RecraftV3Input, RecraftV3Output> {
|
|
13
10
|
/**
|
|
14
11
|
* Base URL used for the UI assets used in the plugin.
|
|
15
12
|
*
|
|
@@ -17,7 +14,7 @@ type ProviderConfiguration = {
|
|
|
17
14
|
* from the `/assets` folder to your own server and set the base URL to your server.
|
|
18
15
|
*/
|
|
19
16
|
baseURL?: string;
|
|
20
|
-
}
|
|
17
|
+
}
|
|
21
18
|
export declare function RecraftV3(config: ProviderConfiguration): (context: {
|
|
22
19
|
cesdk: CreativeEditorSDK;
|
|
23
20
|
}) => Promise<Provider<'image', RecraftV3Input, RecraftV3Output>>;
|
|
@@ -27,6 +27,7 @@ declare function createImageProvider<I extends Record<string, any>>(options: {
|
|
|
27
27
|
height: number;
|
|
28
28
|
};
|
|
29
29
|
middleware?: Middleware<I, ImageOutput>[];
|
|
30
|
+
headers?: Record<string, string>;
|
|
30
31
|
cesdk?: CreativeEditorSDK;
|
|
31
32
|
}, config: ImageProviderConfiguration): Provider<'image', I, {
|
|
32
33
|
kind: 'image';
|