@imgly/plugin-ai-image-generation-web 0.1.3 → 0.1.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/README.md +110 -5
- package/dist/fal-ai/index.mjs +9 -9
- package/dist/fal-ai/index.mjs.map +4 -4
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +4 -4
- package/dist/open-ai/GptImage1.image2image.d.ts +20 -0
- package/dist/open-ai/GptImage1.text2image.d.ts +21 -0
- package/dist/open-ai/index.d.ts +9 -0
- package/dist/open-ai/index.mjs +165 -0
- package/dist/open-ai/index.mjs.map +7 -0
- package/dist/open-ai/utils.d.ts +1 -0
- package/package.json +20 -5
- package/dist/fal-ai/GeminiFlashEditQuickActions.d.ts +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function b64JsonToBlob(b64_json: string, mimeType: string): Blob;
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-ai-image-generation-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "AI image generation plugin for the CE.SDK editor",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"CE.SDK",
|
|
7
|
+
"plugin",
|
|
8
|
+
"AI",
|
|
9
|
+
"image-generation"
|
|
10
|
+
],
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
8
13
|
"url": "git+https://github.com/imgly/plugins.git"
|
|
@@ -27,10 +32,20 @@
|
|
|
27
32
|
"./fal-ai": {
|
|
28
33
|
"import": "./dist/fal-ai/index.mjs",
|
|
29
34
|
"types": "./dist/fal-ai/index.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"./open-ai": {
|
|
37
|
+
"import": "./dist/open-ai/index.mjs",
|
|
38
|
+
"types": "./dist/open-ai/index.d.ts"
|
|
30
39
|
}
|
|
31
40
|
},
|
|
32
41
|
"homepage": "https://img.ly/products/creative-sdk",
|
|
33
|
-
"files": [
|
|
42
|
+
"files": [
|
|
43
|
+
"LICENSE.md",
|
|
44
|
+
"README.md",
|
|
45
|
+
"CHANGELOG.md",
|
|
46
|
+
"dist/",
|
|
47
|
+
"bin/"
|
|
48
|
+
],
|
|
34
49
|
"scripts": {
|
|
35
50
|
"start": "npm run watch",
|
|
36
51
|
"clean": "pnpm exec rimraf dist",
|
|
@@ -38,7 +53,7 @@
|
|
|
38
53
|
"build": "pnpm run clean && pnpm _syncPnpm && pnpm exec node scripts/build.mjs",
|
|
39
54
|
"test": "echo No tests",
|
|
40
55
|
"dev": "pnpm --filter \"${npm_package_name}^...\" --parallel run dev:wait && pnpm exec concurrently 'node scripts/watch.mjs' 'pnpm _syncPnpm --watch' --names 'build,sync deps'",
|
|
41
|
-
"dev:wait": "pnpm exec wait-on ./dist/index.mjs ./dist/index.d.ts ./dist/fal-ai/index.mjs ./dist/fal-ai/index.d.ts --window 250 --timeout 30000",
|
|
56
|
+
"dev:wait": "pnpm exec wait-on ./dist/index.mjs ./dist/index.d.ts ./dist/fal-ai/index.mjs ./dist/fal-ai/index.d.ts ./dist/open-ai/index.mjs ./dist/open-ai/index.d.ts --window 250 --timeout 30000",
|
|
42
57
|
"dev:types": "tsc --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
43
58
|
"publish:latest": "pnpm run build && npm publish --tag latest --access public",
|
|
44
59
|
"publish:next": "pnpm run build && npm publish --tag next --access public",
|
|
@@ -50,8 +65,8 @@
|
|
|
50
65
|
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
|
|
51
66
|
},
|
|
52
67
|
"devDependencies": {
|
|
53
|
-
"@imgly/plugin-utils": "workspace:*",
|
|
54
68
|
"@imgly/plugin-ai-generation-web": "workspace:*",
|
|
69
|
+
"@imgly/plugin-utils": "workspace:*",
|
|
55
70
|
"@types/ndarray": "^1.0.14",
|
|
56
71
|
"chalk": "^5.3.0",
|
|
57
72
|
"concurrently": "^8.2.2",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QuickAction } from '@imgly/plugin-ai-generation-web';
|
|
2
|
-
import CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
3
|
-
type GeminiFlashEditInput = {
|
|
4
|
-
prompt: string;
|
|
5
|
-
image_url: string;
|
|
6
|
-
blockId?: number;
|
|
7
|
-
};
|
|
8
|
-
type GeminiFlashEditOutput = {
|
|
9
|
-
kind: 'image';
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function createGeminiFlashEditQuickActions(cesdk: CreativeEditorSDK): QuickAction<GeminiFlashEditInput, GeminiFlashEditOutput>[];
|
|
13
|
-
export {};
|