@imgly/plugin-ai-apps-web 0.1.0-rc.0
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 +147 -0
- package/dist/ActiveAssetSource.d.ts +90 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +529 -0
- package/dist/index.mjs.map +7 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/types.d.ts +43 -0
- package/package.json +91 -0
package/dist/plugin.d.ts
ADDED
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
2
|
+
import { Provider, OutputKind } from '@imgly/plugin-ai-generation-web';
|
|
3
|
+
export type GetProvider<K extends OutputKind> = ({ cesdk }: {
|
|
4
|
+
cesdk: CreativeEditorSDK;
|
|
5
|
+
}) => Promise<Provider<K, any, any>>;
|
|
6
|
+
/**
|
|
7
|
+
* The provider configuration that maps capabilities
|
|
8
|
+
* to actual provider.
|
|
9
|
+
*/
|
|
10
|
+
export interface Providers {
|
|
11
|
+
/**
|
|
12
|
+
* Provider for text generation on text blocks.
|
|
13
|
+
*/
|
|
14
|
+
text2text?: GetProvider<'text'>;
|
|
15
|
+
/**
|
|
16
|
+
* Provider for image generation based on a prompt alone.
|
|
17
|
+
*/
|
|
18
|
+
text2image?: GetProvider<'image'>;
|
|
19
|
+
/**
|
|
20
|
+
* Provider for image generation based on a prompt and an image.
|
|
21
|
+
*/
|
|
22
|
+
image2image?: GetProvider<'image'>;
|
|
23
|
+
/**
|
|
24
|
+
* Provider for video generation based on a prompt alone.
|
|
25
|
+
*/
|
|
26
|
+
text2video?: GetProvider<'video'>;
|
|
27
|
+
/**
|
|
28
|
+
* Provider for video generation based on a prompt and an image.
|
|
29
|
+
*/
|
|
30
|
+
image2video?: GetProvider<'video'>;
|
|
31
|
+
/**
|
|
32
|
+
* Provider for speech generation based on a prompt alone.
|
|
33
|
+
*/
|
|
34
|
+
text2speech?: GetProvider<'audio'>;
|
|
35
|
+
/**
|
|
36
|
+
* Provider for sound effect generation based on a prompt alone.
|
|
37
|
+
*/
|
|
38
|
+
text2sound?: GetProvider<'audio'>;
|
|
39
|
+
}
|
|
40
|
+
export interface PluginConfiguration {
|
|
41
|
+
providers: Providers;
|
|
42
|
+
debug?: boolean;
|
|
43
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@imgly/plugin-ai-apps-web",
|
|
3
|
+
"version": "0.1.0-rc.0",
|
|
4
|
+
"description": "AI apps orchestration plugin for the CE.SDK editor",
|
|
5
|
+
"keywords": ["CE.SDK", "plugin", "AI", "ai apps"],
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/imgly/plugins.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "IMG.LY GmbH",
|
|
13
|
+
"email": "support@img.ly",
|
|
14
|
+
"url": "https://img.ly"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"email": "support@img.ly"
|
|
18
|
+
},
|
|
19
|
+
"source": "./src/index.ts",
|
|
20
|
+
"module": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"types": "./dist/index.d.ts"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://img.ly/products/creative-sdk",
|
|
29
|
+
"files": ["LICENSE.md", "README.md", "CHANGELOG.md", "dist/", "bin/"],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"start": "pnpm run watch",
|
|
32
|
+
"clean": "pnpm exec rimraf dist",
|
|
33
|
+
"purge": "pnpm exec rimraf node_modules",
|
|
34
|
+
"build": "pnpm run clean && pnpm _syncPnpm && pnpm exec node scripts/build.mjs",
|
|
35
|
+
"publish:latest": "pnpm run build && npm publish --tag latest --access public",
|
|
36
|
+
"publish:next": "pnpm run build && npm publish --tag next --access public",
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"test:watch": "jest --watch",
|
|
39
|
+
"test:coverage": "jest --coverage",
|
|
40
|
+
"dev": "pnpm --filter \"${npm_package_name}^...\" --parallel run dev:wait && node scripts/watch.mjs",
|
|
41
|
+
"dev:wait": "pnpm exec wait-on ./dist/index.mjs ./dist/index.d.ts --window 250 --timeout 30000",
|
|
42
|
+
"dev:types": "tsc --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
43
|
+
"check:all": "concurrently -n lint,type,pretty \"pnpm run check:lint\" \"pnpm run check:types\" \"pnpm run check:pretty\"",
|
|
44
|
+
"check:lint": "eslint --max-warnings 0 './src/**/*.{ts,tsx}'",
|
|
45
|
+
"check:pretty": "prettier --list-different './src/**/*.{ts,tsx}'",
|
|
46
|
+
"check:types": "tsc --noEmit",
|
|
47
|
+
"types:create": "tsc --emitDeclarationOnly",
|
|
48
|
+
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@cesdk/cesdk-js": "^1.48.0",
|
|
52
|
+
"@imgly/plugin-utils": "workspace:*",
|
|
53
|
+
"esbuild": "^0.19.12",
|
|
54
|
+
"jest": "^29.7.0",
|
|
55
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
56
|
+
"ts-jest": "^29.1.2",
|
|
57
|
+
"ts-node": "^10.9.2",
|
|
58
|
+
"openapi-types": "^12.1.3",
|
|
59
|
+
"typescript": "^5.3.3"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@imgly/plugin-ai-generation-web": "workspace:*",
|
|
63
|
+
"@imgly/plugin-ai-image-generation-web": "workspace:*",
|
|
64
|
+
"@imgly/plugin-ai-video-generation-web": "workspace:*",
|
|
65
|
+
"@imgly/plugin-ai-audio-generation-web": "workspace:*",
|
|
66
|
+
"@imgly/plugin-ai-text-generation-web": "workspace:*"
|
|
67
|
+
},
|
|
68
|
+
"dependenciesMeta": {
|
|
69
|
+
"@imgly/plugin-utils": {
|
|
70
|
+
"injected": true
|
|
71
|
+
},
|
|
72
|
+
"@imgly/plugin-ai-generation-web": {
|
|
73
|
+
"injected": true
|
|
74
|
+
},
|
|
75
|
+
"@imgly/plugin-ai-image-generation-web": {
|
|
76
|
+
"injected": true
|
|
77
|
+
},
|
|
78
|
+
"@imgly/plugin-ai-video-generation-web": {
|
|
79
|
+
"injected": true
|
|
80
|
+
},
|
|
81
|
+
"@imgly/plugin-ai-audio-generation-web": {
|
|
82
|
+
"injected": true
|
|
83
|
+
},
|
|
84
|
+
"@imgly/plugin-ai-text-generation-web": {
|
|
85
|
+
"injected": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"peerDependencies": {
|
|
89
|
+
"@cesdk/cesdk-js": "^1.48.0"
|
|
90
|
+
}
|
|
91
|
+
}
|