@imgly/plugin-ai-generation-web 0.2.4 → 0.2.6
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 +22 -0
- package/README.md +166 -7
- package/dist/__tests__/featureFlags.test.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +4 -4
- package/dist/providers/__tests__/providerSelection.test.d.ts +1 -0
- package/dist/ui/__tests__/quickActionMenuFeatureFlags.test.d.ts +1 -0
- package/dist/utils/translationHelpers.d.ts +19 -0
- package/package.json +17 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a translation callback function for AI asset sources
|
|
4
|
+
* @param cesdk - The CE.SDK instance
|
|
5
|
+
* @param modelKey - The model/provider key (e.g., 'fal-ai/recraft-v3')
|
|
6
|
+
* @param propertyName - The property name (e.g., 'style', 'aspect_ratio')
|
|
7
|
+
* @param pluginType - The plugin type (e.g., 'image', 'video', 'sticker')
|
|
8
|
+
* @returns A translation callback function for use with CustomAssetSource
|
|
9
|
+
*/
|
|
10
|
+
export declare function createTranslationCallback(cesdk: CreativeEditorSDK, modelKey: string, propertyName?: string, pluginType?: string): (assetId: string, fallbackLabel: string, locale: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Build translation keys array for AI plugin property values
|
|
13
|
+
* @param modelKey - The model/provider key
|
|
14
|
+
* @param propertyName - The property name
|
|
15
|
+
* @param value - The property value
|
|
16
|
+
* @param pluginType - The plugin type (image, video, sticker, etc.)
|
|
17
|
+
* @returns Array of translation keys in fallback order
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildTranslationKeys(modelKey: string, propertyName: string, value: string, pluginType?: string): string[];
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-ai-generation-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "AI generation plugin for the CE.SDK editor",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"CE.SDK",
|
|
7
|
+
"plugin",
|
|
8
|
+
"AI",
|
|
9
|
+
"ai generation"
|
|
10
|
+
],
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
8
13
|
"url": "git+https://github.com/imgly/plugins.git"
|
|
@@ -26,7 +31,13 @@
|
|
|
26
31
|
}
|
|
27
32
|
},
|
|
28
33
|
"homepage": "https://img.ly/products/creative-sdk",
|
|
29
|
-
"files": [
|
|
34
|
+
"files": [
|
|
35
|
+
"LICENSE.md",
|
|
36
|
+
"README.md",
|
|
37
|
+
"CHANGELOG.md",
|
|
38
|
+
"dist/",
|
|
39
|
+
"bin/"
|
|
40
|
+
],
|
|
30
41
|
"scripts": {
|
|
31
42
|
"start": "pnpm run watch",
|
|
32
43
|
"clean": "pnpm exec rimraf dist",
|
|
@@ -47,14 +58,14 @@
|
|
|
47
58
|
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
|
|
48
59
|
},
|
|
49
60
|
"devDependencies": {
|
|
50
|
-
"@cesdk/cesdk-js": "^1.49.1",
|
|
51
61
|
"@imgly/plugin-utils": "workspace:*",
|
|
62
|
+
"@types/jest": "^30.0.0",
|
|
52
63
|
"esbuild": "^0.19.12",
|
|
53
64
|
"jest": "^29.7.0",
|
|
54
65
|
"jest-environment-jsdom": "^29.7.0",
|
|
66
|
+
"openapi-types": "^12.1.3",
|
|
55
67
|
"ts-jest": "^29.1.2",
|
|
56
|
-
"ts-node": "^10.9.2"
|
|
57
|
-
"openapi-types": "^12.1.3"
|
|
68
|
+
"ts-node": "^10.9.2"
|
|
58
69
|
},
|
|
59
70
|
"dependenciesMeta": {
|
|
60
71
|
"@imgly/plugin-utils": {
|