@codingfactory/mediables-vue 2.0.1 → 2.1.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/LICENSE.md +22 -0
- package/README.md +923 -0
- package/dist/PixiFrameExporter-CaDjKfAG.cjs +2 -0
- package/dist/{PixiFrameExporter-BTU38EVl.cjs.map → PixiFrameExporter-CaDjKfAG.cjs.map} +1 -1
- package/dist/{PixiFrameExporter-Bb3QNWP-.js → PixiFrameExporter-CvKLKOXx.js} +60 -60
- package/dist/{PixiFrameExporter-Bb3QNWP-.js.map → PixiFrameExporter-CvKLKOXx.js.map} +1 -1
- package/dist/components/ImageEditorModal.vue.d.ts +2 -0
- package/dist/composables/useFloatingPills.d.ts +2 -0
- package/dist/composables/useVideoEditor.d.ts +3 -2
- package/dist/composables/useVideoFilters.d.ts +20 -0
- package/dist/filters/index.d.ts +3 -3
- package/dist/filters/registry.d.ts +15 -0
- package/dist/index-CXQ4ykVw.cjs +39 -0
- package/dist/index-CXQ4ykVw.cjs.map +1 -0
- package/dist/{index-CcGWfCCV.js → index-DBM_ViWA.js} +1954 -1661
- package/dist/index-DBM_ViWA.js.map +1 -0
- package/dist/{index-VrUG0lmk.js → index-DRQBqLZX.js} +8733 -8607
- package/dist/index-DRQBqLZX.js.map +1 -0
- package/dist/index-HREFg1jF.cjs +42 -0
- package/dist/index-HREFg1jF.cjs.map +1 -0
- package/dist/mediables-vanilla.cjs +1 -1
- package/dist/mediables-vanilla.mjs +1 -1
- package/dist/mediables-vue.cjs +1 -1
- package/dist/mediables-vue.mjs +2 -2
- package/dist/render-page/assets/{index-hBfvGPpt.js → index-SU1f_egA.js} +45095 -22643
- package/dist/render-page/index.html +1 -1
- package/dist/services/VideoJobClient.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/types/api.d.ts +20 -18
- package/dist/types/video.d.ts +1 -0
- package/dist/video-engine/adapters/MediablesCompositionAdapter.d.ts +2 -1
- package/dist/video-engine/index.d.ts +0 -2
- package/package.json +18 -19
- package/dist/PixiFrameExporter-BTU38EVl.cjs +0 -2
- package/dist/index-6yUGA--H.cjs +0 -42
- package/dist/index-6yUGA--H.cjs.map +0 -1
- package/dist/index-CcGWfCCV.js.map +0 -1
- package/dist/index-DTUgsw7J.cjs +0 -76
- package/dist/index-DTUgsw7J.cjs.map +0 -1
- package/dist/index-VrUG0lmk.js.map +0 -1
- package/dist/video-engine/adapters/CSSFilterAdapter.d.ts +0 -106
|
@@ -23,6 +23,7 @@ export interface ControlDefinition {
|
|
|
23
23
|
}>;
|
|
24
24
|
tooltip?: string;
|
|
25
25
|
}
|
|
26
|
+
export type FilterMediaTarget = 'image' | 'video';
|
|
26
27
|
/**
|
|
27
28
|
* Interface for a filter definition
|
|
28
29
|
* Contains all metadata needed to create and manage a filter
|
|
@@ -33,6 +34,11 @@ export interface FilterDefinition {
|
|
|
33
34
|
category: string;
|
|
34
35
|
description?: string;
|
|
35
36
|
thumbnail?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional media compatibility tags.
|
|
39
|
+
* Omitted means compatible with both image and video pipelines.
|
|
40
|
+
*/
|
|
41
|
+
mediaTargets?: FilterMediaTarget[];
|
|
36
42
|
createFilter: (params: Record<string, any>) => Filter;
|
|
37
43
|
defaultParams: Record<string, any>;
|
|
38
44
|
controls: ControlDefinition[];
|
|
@@ -76,6 +82,15 @@ export declare function getAllCategories(): string[];
|
|
|
76
82
|
* @returns True if the filter is registered, false otherwise
|
|
77
83
|
*/
|
|
78
84
|
export declare function hasFilter(id: string): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Check whether a registered filter is compatible with a media target.
|
|
87
|
+
* Unknown filters are treated as incompatible.
|
|
88
|
+
*/
|
|
89
|
+
export declare function isFilterCompatibleWithMedia(id: string, target: FilterMediaTarget): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Return all registered filters compatible with the given media target.
|
|
92
|
+
*/
|
|
93
|
+
export declare function getFiltersByMedia(target: FilterMediaTarget): FilterDefinition[];
|
|
79
94
|
/**
|
|
80
95
|
* Get all registered filters with simplified format for UI
|
|
81
96
|
* @returns Array of filter definitions with only UI-relevant properties
|