@imgly/plugin-ai-generation-web 0.2.12 → 0.2.14
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 +10 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +3 -3
- package/dist/utils/utils.d.ts +12 -0
- package/package.json +17 -17
package/dist/utils/utils.d.ts
CHANGED
|
@@ -69,3 +69,15 @@ export declare function isAbortError(error: unknown): error is Error;
|
|
|
69
69
|
* it as added in the global state to prevent multiple additions.
|
|
70
70
|
*/
|
|
71
71
|
export declare function addIconSetOnce(cesdk: CreativeEditorSDK, id: string, icons: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Normalizes a base URL to ensure it has exactly one trailing slash.
|
|
74
|
+
*
|
|
75
|
+
* @param url - The base URL to normalize
|
|
76
|
+
* @returns The normalized URL with exactly one trailing slash
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* normalizeBaseURL('https://example.com') // 'https://example.com/'
|
|
80
|
+
* normalizeBaseURL('https://example.com/') // 'https://example.com/'
|
|
81
|
+
* normalizeBaseURL('https://example.com//') // 'https://example.com/'
|
|
82
|
+
*/
|
|
83
|
+
export declare function normalizeBaseURL(url: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-ai-generation-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "AI generation plugin for the CE.SDK editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CE.SDK",
|
|
@@ -38,13 +38,26 @@
|
|
|
38
38
|
"dist/",
|
|
39
39
|
"bin/"
|
|
40
40
|
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/jest": "^30.0.0",
|
|
43
|
+
"esbuild": "^0.19.12",
|
|
44
|
+
"jest": "^29.7.0",
|
|
45
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
46
|
+
"openapi-types": "^12.1.3",
|
|
47
|
+
"ts-jest": "^29.1.2",
|
|
48
|
+
"ts-node": "^10.9.2",
|
|
49
|
+
"@imgly/plugin-utils": "0.0.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@cesdk/cesdk-js": "^1.49.1"
|
|
53
|
+
},
|
|
41
54
|
"scripts": {
|
|
42
55
|
"start": "pnpm run watch",
|
|
43
56
|
"clean": "pnpm exec rimraf dist",
|
|
44
57
|
"purge": "pnpm exec rimraf node_modules",
|
|
45
58
|
"build": "pnpm run clean && pnpm exec node scripts/build.mjs",
|
|
46
|
-
"publish:latest": "pnpm run build &&
|
|
47
|
-
"publish:next": "pnpm run build &&
|
|
59
|
+
"publish:latest": "pnpm run build && pnpm publish --tag latest --access public --no-git-checks",
|
|
60
|
+
"publish:next": "pnpm run build && pnpm publish --tag next --access public --no-git-checks",
|
|
48
61
|
"test": "jest",
|
|
49
62
|
"test:watch": "jest --watch",
|
|
50
63
|
"test:coverage": "jest --coverage",
|
|
@@ -56,18 +69,5 @@
|
|
|
56
69
|
"check:pretty": "prettier --list-different './src/**/*.{ts,tsx}'",
|
|
57
70
|
"check:types": "tsc --noEmit",
|
|
58
71
|
"types:create": "tsc --emitDeclarationOnly"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@imgly/plugin-utils": "workspace:*",
|
|
62
|
-
"@types/jest": "^30.0.0",
|
|
63
|
-
"esbuild": "^0.19.12",
|
|
64
|
-
"jest": "^29.7.0",
|
|
65
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
66
|
-
"openapi-types": "^12.1.3",
|
|
67
|
-
"ts-jest": "^29.1.2",
|
|
68
|
-
"ts-node": "^10.9.2"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"@cesdk/cesdk-js": "^1.49.1"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|