@imgly/plugin-remote-asset-source-web 0.1.1 → 1.68.0-rc.1
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 +5 -69
- package/dist/.tsbuildinfo +1 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +4 -4
- package/dist/plugin.d.ts +6 -9
- package/dist/schemas/assetSchema.d.ts +8 -6
- package/dist/schemas/assetSourceManifestSchema.d.ts +1 -1
- package/dist/util.d.ts +7 -3
- package/package.json +27 -28
package/dist/plugin.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AssetAPI, AssetSource, BlockAPI, type EditorPlugin } from '@cesdk/cesdk-js';
|
|
2
2
|
import { AssetSourceManifest } from './schemas/assetSourceManifestSchema';
|
|
3
|
-
export declare const RemoteAssetSourcePlugin: (pluginConfiguration: RemoteAssetSourcePluginConfiguration) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
export declare const manifestToSource: (manifest: AssetSourceManifest, engine: CreativeEngine, baseUrl: string) => AssetSource;
|
|
3
|
+
export declare const RemoteAssetSourcePlugin: (pluginConfiguration: RemoteAssetSourcePluginConfiguration) => Omit<EditorPlugin, "name" | "version">;
|
|
4
|
+
export declare const manifestToSource: (manifest: AssetSourceManifest, engine: {
|
|
5
|
+
asset: AssetAPI;
|
|
6
|
+
block: BlockAPI;
|
|
7
|
+
}, baseUrl: string) => AssetSource;
|
|
11
8
|
export interface RemoteAssetSourcePluginConfiguration {
|
|
12
9
|
baseUrl: string;
|
|
13
10
|
}
|
|
@@ -105,10 +105,12 @@ export declare const assetDefinitionSchema: z.ZodObject<{
|
|
|
105
105
|
height?: number | undefined;
|
|
106
106
|
duration?: string | undefined;
|
|
107
107
|
}>>;
|
|
108
|
+
} & {
|
|
108
109
|
label: z.ZodOptional<z.ZodString>;
|
|
109
110
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
110
111
|
}, "strip", z.ZodTypeAny, {
|
|
111
112
|
id: string;
|
|
113
|
+
tags?: string[] | undefined;
|
|
112
114
|
groups?: string[] | undefined;
|
|
113
115
|
meta?: {
|
|
114
116
|
mimeType?: string | undefined;
|
|
@@ -123,9 +125,9 @@ export declare const assetDefinitionSchema: z.ZodObject<{
|
|
|
123
125
|
duration?: string | undefined;
|
|
124
126
|
} | undefined;
|
|
125
127
|
label?: string | undefined;
|
|
126
|
-
tags?: string[] | undefined;
|
|
127
128
|
}, {
|
|
128
129
|
id: string;
|
|
130
|
+
tags?: string[] | undefined;
|
|
129
131
|
groups?: string[] | undefined;
|
|
130
132
|
meta?: {
|
|
131
133
|
mimeType?: string | undefined;
|
|
@@ -140,7 +142,6 @@ export declare const assetDefinitionSchema: z.ZodObject<{
|
|
|
140
142
|
duration?: string | undefined;
|
|
141
143
|
} | undefined;
|
|
142
144
|
label?: string | undefined;
|
|
143
|
-
tags?: string[] | undefined;
|
|
144
145
|
}>;
|
|
145
146
|
export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
146
147
|
assets: z.ZodArray<z.ZodObject<{
|
|
@@ -180,10 +181,12 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
180
181
|
height?: number | undefined;
|
|
181
182
|
duration?: string | undefined;
|
|
182
183
|
}>>;
|
|
184
|
+
} & {
|
|
183
185
|
label: z.ZodOptional<z.ZodString>;
|
|
184
186
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
187
|
}, "strip", z.ZodTypeAny, {
|
|
186
188
|
id: string;
|
|
189
|
+
tags?: string[] | undefined;
|
|
187
190
|
groups?: string[] | undefined;
|
|
188
191
|
meta?: {
|
|
189
192
|
mimeType?: string | undefined;
|
|
@@ -198,9 +201,9 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
198
201
|
duration?: string | undefined;
|
|
199
202
|
} | undefined;
|
|
200
203
|
label?: string | undefined;
|
|
201
|
-
tags?: string[] | undefined;
|
|
202
204
|
}, {
|
|
203
205
|
id: string;
|
|
206
|
+
tags?: string[] | undefined;
|
|
204
207
|
groups?: string[] | undefined;
|
|
205
208
|
meta?: {
|
|
206
209
|
mimeType?: string | undefined;
|
|
@@ -215,7 +218,6 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
215
218
|
duration?: string | undefined;
|
|
216
219
|
} | undefined;
|
|
217
220
|
label?: string | undefined;
|
|
218
|
-
tags?: string[] | undefined;
|
|
219
221
|
}>, "many">;
|
|
220
222
|
currentPage: z.ZodNumber;
|
|
221
223
|
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
@@ -223,6 +225,7 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
223
225
|
}, "strip", z.ZodTypeAny, {
|
|
224
226
|
assets: {
|
|
225
227
|
id: string;
|
|
228
|
+
tags?: string[] | undefined;
|
|
226
229
|
groups?: string[] | undefined;
|
|
227
230
|
meta?: {
|
|
228
231
|
mimeType?: string | undefined;
|
|
@@ -237,7 +240,6 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
237
240
|
duration?: string | undefined;
|
|
238
241
|
} | undefined;
|
|
239
242
|
label?: string | undefined;
|
|
240
|
-
tags?: string[] | undefined;
|
|
241
243
|
}[];
|
|
242
244
|
currentPage: number;
|
|
243
245
|
total: number;
|
|
@@ -245,6 +247,7 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
245
247
|
}, {
|
|
246
248
|
assets: {
|
|
247
249
|
id: string;
|
|
250
|
+
tags?: string[] | undefined;
|
|
248
251
|
groups?: string[] | undefined;
|
|
249
252
|
meta?: {
|
|
250
253
|
mimeType?: string | undefined;
|
|
@@ -259,7 +262,6 @@ export declare const assetsQueryResultSchema: z.ZodObject<{
|
|
|
259
262
|
duration?: string | undefined;
|
|
260
263
|
} | undefined;
|
|
261
264
|
label?: string | undefined;
|
|
262
|
-
tags?: string[] | undefined;
|
|
263
265
|
}[];
|
|
264
266
|
currentPage: number;
|
|
265
267
|
total: number;
|
package/dist/util.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { AssetResult, CompleteAssetResult, CreativeEngine } from '@cesdk/cesdk-js';
|
|
2
|
-
export declare function ensureMetadataKeys(engine:
|
|
1
|
+
import { AssetResult, BlockAPI, CompleteAssetResult, CreativeEngine } from '@cesdk/cesdk-js';
|
|
2
|
+
export declare function ensureMetadataKeys(engine: {
|
|
3
|
+
block: BlockAPI;
|
|
4
|
+
}, block: number, asset: AssetResult, sourceId: string): void;
|
|
3
5
|
export declare const isBlockFromSource: (block: number, sourceId: string, engine: CreativeEngine) => boolean;
|
|
4
6
|
export declare const getSourceIdFromBlock: (block: number, engine: CreativeEngine) => string | null;
|
|
5
7
|
export declare const getExternalIdFromBlock: (block: number, engine: CreativeEngine) => string | null;
|
|
6
|
-
export declare function ensureAssetDuration(engine:
|
|
8
|
+
export declare function ensureAssetDuration(engine: {
|
|
9
|
+
block: BlockAPI;
|
|
10
|
+
}, asset: CompleteAssetResult, block: number): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-remote-asset-source-web",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.68.0-rc.1",
|
|
4
4
|
"description": "Remote asset source plugin for the CE.SDK editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CE.SDK",
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
"client-side",
|
|
10
10
|
"asset-source"
|
|
11
11
|
],
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/imgly/plugins.git"
|
|
15
|
-
},
|
|
16
12
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
17
13
|
"author": {
|
|
18
14
|
"name": "IMG.LY GmbH",
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
"types": "./dist/index.d.ts"
|
|
32
28
|
}
|
|
33
29
|
},
|
|
34
|
-
"homepage": "https://img.ly/
|
|
30
|
+
"homepage": "https://img.ly/docs/cesdk/",
|
|
35
31
|
"files": [
|
|
36
32
|
"LICENSE.md",
|
|
37
33
|
"README.md",
|
|
@@ -39,33 +35,36 @@
|
|
|
39
35
|
"dist/",
|
|
40
36
|
"bin/"
|
|
41
37
|
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"start": "npm run watch",
|
|
44
|
-
"clean": "npx rimraf dist",
|
|
45
|
-
"build": "npm run clean && node scripts/build.mjs && yarn run types:create",
|
|
46
|
-
"dev": "npm run clean && node scripts/watch.mjs",
|
|
47
|
-
"dev:types": "tsc --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
48
|
-
"publish:latest": "npm run build && npm publish --tag latest --access public",
|
|
49
|
-
"publish:next": "npm run build && npm publish --tag next --access public",
|
|
50
|
-
"check:all": "concurrently -n lint,type,pretty \"yarn check:lint\" \"yarn check:type\" \"yarn check:pretty\"",
|
|
51
|
-
"check:lint": "eslint --max-warnings 0 './src/**/*.{ts,tsx}'",
|
|
52
|
-
"check:pretty": "prettier --list-different './src/**/*.{ts,tsx}'",
|
|
53
|
-
"check:type": "tsc --noEmit",
|
|
54
|
-
"types:create": "tsc --emitDeclarationOnly"
|
|
55
|
-
},
|
|
56
38
|
"devDependencies": {
|
|
57
|
-
"@cesdk/cesdk-js": "~1.21.0",
|
|
58
39
|
"@types/ndarray": "^1.0.14",
|
|
59
|
-
"chalk": "^5.
|
|
40
|
+
"chalk": "^5.4.1",
|
|
60
41
|
"concurrently": "^8.2.2",
|
|
61
|
-
"esbuild": "^0.19.
|
|
62
|
-
"eslint": "^8.
|
|
63
|
-
"typescript": "^5.
|
|
42
|
+
"esbuild": "^0.19.12",
|
|
43
|
+
"eslint": "^8.57.1",
|
|
44
|
+
"typescript": "^5.7.3"
|
|
64
45
|
},
|
|
65
46
|
"peerDependencies": {
|
|
66
|
-
"@cesdk/cesdk-js": "
|
|
47
|
+
"@cesdk/cesdk-js": "1.68.0-rc.1"
|
|
67
48
|
},
|
|
68
49
|
"dependencies": {
|
|
69
|
-
"lodash": "^4.17.21"
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"zod": "^3.24.2"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"start": "pnpm run watch",
|
|
55
|
+
"clean": "pnpm exec rimraf dist",
|
|
56
|
+
"purge": "pnpm exec rimraf node_modules",
|
|
57
|
+
"build": "pnpm run clean && pnpm exec node scripts/build.mjs",
|
|
58
|
+
"test": "echo No tests",
|
|
59
|
+
"dev": "SKIP_DTS=true node scripts/watch.mjs",
|
|
60
|
+
"dev:wait": "node ../../scripts/dev-wait.mjs",
|
|
61
|
+
"dev:types": "tsc --emitDeclarationOnly --watch --preserveWatchOutput",
|
|
62
|
+
"publish:latest": "pnpm run build && pnpm publish --tag latest --access public",
|
|
63
|
+
"publish:next": "pnpm run build && pnpm publish --tag next --access public",
|
|
64
|
+
"check:all": "concurrently -n lint,type,pretty \"pnpm run check:lint\" \"pnpm run check:types\" \"pnpm run check:pretty\"",
|
|
65
|
+
"check:lint": "eslint --max-warnings 0 './src/**/*.{ts,tsx}'",
|
|
66
|
+
"check:pretty": "prettier --list-different './src/**/*.{ts,tsx}'",
|
|
67
|
+
"check:types": "tsc --noEmit",
|
|
68
|
+
"types:create": "tsc --emitDeclarationOnly"
|
|
70
69
|
}
|
|
71
|
-
}
|
|
70
|
+
}
|