@codingfactory/mediables-vue 2.13.0 → 2.16.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/dist/{PixiFrameExporter-BnAievFi.cjs → PixiFrameExporter-BOijjcAa.cjs} +2 -2
- package/dist/{PixiFrameExporter-BnAievFi.cjs.map → PixiFrameExporter-BOijjcAa.cjs.map} +1 -1
- package/dist/{PixiFrameExporter-DwbBy1Iu.js → PixiFrameExporter-cu2jpN20.js} +2 -2
- package/dist/{PixiFrameExporter-DwbBy1Iu.js.map → PixiFrameExporter-cu2jpN20.js.map} +1 -1
- package/dist/components/MediaManagementView.vue.d.ts +3 -1
- package/dist/composables/useAlbums.d.ts +10 -1
- package/dist/composables/useMediaTrash.d.ts +10 -0
- package/dist/editor-DLvndiXG.cjs +2 -0
- package/dist/editor-DLvndiXG.cjs.map +1 -0
- package/dist/{editor-BoDU3YXD.js → editor-OIsQEaJg.js} +18 -2
- package/dist/editor-OIsQEaJg.js.map +1 -0
- package/dist/{index-BGC4rPDc.js → index-Bff5fDnU.js} +13576 -12835
- package/dist/{index-CljyFIEv.cjs.map → index-Bff5fDnU.js.map} +1 -1
- package/dist/index-zFuo-sDY.cjs +357 -0
- package/dist/index-zFuo-sDY.cjs.map +1 -0
- package/dist/index.d.ts +2 -1
- 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 +71 -68
- package/dist/render-page/assets/{index-jZGmiMRr.js → index-DQB8PyEU.js} +11 -2
- package/dist/render-page/index.html +1 -1
- package/dist/stores/albumStore.d.ts +17 -0
- package/dist/style.css +1 -1
- package/dist/types/mediaLibraryPicker.d.ts +30 -0
- package/package.json +1 -1
- package/dist/editor-BoDU3YXD.js.map +0 -1
- package/dist/editor-D-cJRASf.cjs +0 -2
- package/dist/editor-D-cJRASf.cjs.map +0 -1
- package/dist/index-BGC4rPDc.js.map +0 -1
- package/dist/index-CljyFIEv.cjs +0 -357
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,8 @@ export type { ImageEditorModalOptions } from './composables/useImageEditorModal'
|
|
|
48
48
|
export { normalizeEditorState, serializeEditorState, deserializeEditorState, createEmptyEditorState, } from './utils/imageEditorState';
|
|
49
49
|
export { useAlbums } from './composables/useAlbums';
|
|
50
50
|
export { useAlbumDragDrop } from './composables/useAlbumDragDrop';
|
|
51
|
-
export { useAlbumStore } from './stores/albumStore';
|
|
51
|
+
export { configureAlbumStore, restoreAlbumStoreConfig, snapshotAlbumStoreConfig, useAlbumStore, } from './stores/albumStore';
|
|
52
|
+
export type { AlbumStoreConfig, AlbumStoreHttpClient, AlbumStoreHttpClientOptions, } from './stores/albumStore';
|
|
52
53
|
export type * from './types/video';
|
|
53
54
|
export type * from './types/api';
|
|
54
55
|
export type * from './types/media';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./editor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./editor-DLvndiXG.cjs");exports.VanillaImageEditor=e.VanillaImageEditor;exports.getAllCategories=e.getAllCategories;exports.getAllFilters=e.getAllFilters;exports.getFilter=e.getFilter;exports.getFiltersByCategory=e.getFiltersByCategory;exports.hasFilter=e.hasFilter;exports.initializeFilterRegistry=e.initializeFilterRegistry;exports.registerFilter=e.registerFilter;
|
|
2
2
|
//# sourceMappingURL=mediables-vanilla.cjs.map
|
package/dist/mediables-vue.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-zFuo-sDY.cjs"),i=require("./editor-DLvndiXG.cjs");exports.AlbumBrowser=e.AlbumBrowser;exports.AlbumManager=e.AlbumManager;exports.AlbumMediaGrid=e.AlbumMediaGrid;exports.AlbumTree=e.AlbumTree;exports.ExistingMediaSelector=e.ExistingMediaSelector;exports.ImageEditor=e.ImageEditor;exports.ImageEditorModal=e.ImageEditorModal;exports.LiveStreamManager=e.LiveStreamManager;exports.ManagedMediaGallery=e.ManagedMediaGallery;exports.MediaAlbumInlineCreate=e.MediaAlbumInlineCreate;exports.MediaAlbumUnavailableState=e.MediaAlbumUnavailableState;exports.MediaAttachment=e.MediaAttachment;exports.MediaAttachmentMetadataFields=e.MediaAttachmentMetadataFields;exports.MediaAttachmentProvider=e._sfc_main$1;exports.MediaCollection=e.MediaCollection;exports.MediaCollectionDropzone=e.MediaCollectionDropzone;exports.MediaCollectionItem=e.MediaCollectionItem;exports.MediaCollectionProvider=e._sfc_main;exports.MediaHiddenFields=e._sfc_main$2;exports.MediaLibraryPicker=e.MediaLibraryPicker;exports.MediaLibraryPickerModal=e.MediaLibraryPickerModal;exports.MediaManagementView=e.MediaManagementView;exports.MediaPreviewSheet=e.MediaPreviewSheet;exports.MediaSelectionTray=e.MediaSelectionTray;exports.MediaSourceSheet=e.MediaSourceSheet;exports.MediaThumbnailCell=e.MediaThumbnailCell;exports.MediaUploadSheet=e.MediaUploadSheet;exports.MediaWorkspace=e.MediaWorkspace;exports.ModelMediaManager=e.ModelMediaManager;exports.VideoEditor=e.VideoEditor;exports.VideoEditorDialog=e.VideoEditorDialog;exports.VideoEditorSimple=e.VideoEditorSimple;exports.VideoExportPanel=e.VideoExportPanel;exports.VideoJobClient=e.VideoJobClient;exports.VideoPlayer=e.VideoPlayer;exports.VideoTimeline=e.VideoTimeline;exports.VideoToolsPanel=e.VideoToolsPanel;exports.VideoUploader=e.VideoUploader;exports.VirtualMediaGrid=e.VirtualMediaGrid;exports.applyTemporaryMediaStoreConfig=e.applyTemporaryMediaStoreConfig;exports.configureAlbumStore=e.configureAlbumStore;exports.configureMediaStore=e.configureMediaStore;exports.createAdapter=e.createAdapter;exports.createEmptyEditorState=e.createEmptyEditorState;exports.createImageEditor=e.createImageEditor;exports.createMediablesAdapter=e.createMediablesAdapter;exports.createSpatieAdapter=e.createSpatieAdapter;exports.deserializeEditorState=e.deserializeEditorState;exports.formatFileSize=e.formatFileSize;exports.fromMediaArray=e.fromMediaArray;exports.getFileExtension=e.getFileExtension;exports.getImageDimensions=e.getImageDimensions;exports.getMediablesAdapter=e.getMediablesAdapter;exports.getSpatieAdapter=e.getSpatieAdapter;exports.isImageFile=e.isImageFile;exports.normalizeEditorState=e.normalizeEditorState;exports.normalizeRecipeForServerRender=e.normalizeRecipeForServerRender;exports.recipeHasServerRenderableEdits=e.recipeHasServerRenderableEdits;exports.recipeHasUnsupportedServerEdits=e.recipeHasUnsupportedServerEdits;exports.resetMediablesAdapter=e.resetMediablesAdapter;exports.resetSpatieAdapter=e.resetSpatieAdapter;exports.restoreAlbumStoreConfig=e.restoreAlbumStoreConfig;exports.restoreMediaStoreConfig=e.restoreMediaStoreConfig;exports.serializeEditorState=e.serializeEditorState;exports.snapshotAlbumStoreConfig=e.snapshotAlbumStoreConfig;exports.snapshotMediaStoreConfig=e.snapshotMediaStoreConfig;exports.toFormValues=e.toFormValues;exports.useAdminMediaStore=e.useAdminMediaStore;exports.useAlbumDragDrop=e.useAlbumDragDrop;exports.useAlbumStore=e.useAlbumStore;exports.useAlbums=e.useAlbums;exports.useGlobalImageEditor=e.useGlobalImageEditor;exports.useImageEditorModal=e.useImageEditorModal;exports.useMediaAttachment=e.useMediaAttachment;exports.useMediaCollection=e.useMediaCollection;exports.useMediaDeletion=e.useMediaDeletion;exports.useMediaDragSort=e.useMediaDragSort;exports.useMediaLibraryPickerController=e.useMediaLibraryPickerController;exports.useMediaLibraryQuery=e.useMediaLibraryQuery;exports.useMediaLibrarySession=e.useMediaLibrarySession;exports.useMediaLibraryStateMachine=e.useMediaLibraryStateMachine;exports.useMediaLibraryTelemetry=e.useMediaLibraryTelemetry;exports.useMediaStore=e.useMediaStore;exports.useMediaTrash=e.useMediaTrash;exports.useMediaUploadQueue=e.useMediaUploadQueue;exports.useMediaValidation=e.useMediaValidation;exports.validateFile=e.validateFile;exports.VanillaImageEditor=i.VanillaImageEditor;exports.getAllCategories=i.getAllCategories;exports.getAllFilters=i.getAllFilters;exports.getFilter=i.getFilter;exports.getFiltersByCategory=i.getFiltersByCategory;exports.hasFilter=i.hasFilter;exports.initializeFilterRegistry=i.initializeFilterRegistry;exports.registerFilter=i.registerFilter;
|
|
2
2
|
//# sourceMappingURL=mediables-vue.cjs.map
|
package/dist/mediables-vue.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as i, x as s, y as r, v as t, E as d, I as o, d as l, L as M, f as n, H as m, N as u,
|
|
2
|
-
import { V as
|
|
1
|
+
import { w as i, x as s, y as r, v as t, E as d, I as o, d as l, L as M, f as n, H as m, N as u, a3 as g, a7 as S, a5 as p, a0 as b, a2 as c, a1 as A, a4 as y, a6 as E, z as C, B as h, ag as V, F, J as f, G as v, D as I, K as P, e as L, g as T, h as z, V as D, i as x, l as k, o as U, n as w, j as G, k as R, m as H, C as B, a as Q, Y as j, c as q, aq as J, U as W, Q as K, ar as N, au as O, T as X, al as Y, ay as Z, am as _, ao as $, as as aa, av as ea, an as ia, R as sa, p as ra, q as ta, t as da, at as oa, aw as la, Z as Ma, r as na, S as ma, _ as ua, s as ga, ax as Sa, b as pa, X as ba, $ as ca, W as Aa, P as ya, O as Ea, a9 as Ca, a8 as ha, ah as Va, aj as Fa, ac as fa, ab as va, ad as Ia, af as Pa, ae as La, u as Ta, ai as za, aa as Da, ak as xa, ap as ka } from "./index-Bff5fDnU.js";
|
|
2
|
+
import { V as wa, c as Ga, g as Ra, a as Ha, b as Ba, h as Qa, i as ja, r as qa } from "./editor-OIsQEaJg.js";
|
|
3
3
|
export {
|
|
4
4
|
i as AlbumBrowser,
|
|
5
5
|
s as AlbumManager,
|
|
@@ -13,85 +13,88 @@ export {
|
|
|
13
13
|
m as MediaAlbumInlineCreate,
|
|
14
14
|
u as MediaAlbumUnavailableState,
|
|
15
15
|
g as MediaAttachment,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
S as MediaAttachmentMetadataFields,
|
|
17
|
+
p as MediaAttachmentProvider,
|
|
18
|
+
b as MediaCollection,
|
|
19
|
+
c as MediaCollectionDropzone,
|
|
20
20
|
A as MediaCollectionItem,
|
|
21
21
|
y as MediaCollectionProvider,
|
|
22
22
|
E as MediaHiddenFields,
|
|
23
|
-
|
|
23
|
+
C as MediaLibraryPicker,
|
|
24
24
|
h as MediaLibraryPickerModal,
|
|
25
|
-
|
|
25
|
+
V as MediaManagementView,
|
|
26
26
|
F as MediaPreviewSheet,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
f as MediaSelectionTray,
|
|
28
|
+
v as MediaSourceSheet,
|
|
29
|
+
I as MediaThumbnailCell,
|
|
30
30
|
P as MediaUploadSheet,
|
|
31
31
|
L as MediaWorkspace,
|
|
32
32
|
T as ModelMediaManager,
|
|
33
|
-
|
|
33
|
+
wa as VanillaImageEditor,
|
|
34
34
|
z as VideoEditor,
|
|
35
35
|
D as VideoEditorDialog,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
x as VideoEditorSimple,
|
|
37
|
+
k as VideoExportPanel,
|
|
38
38
|
U as VideoJobClient,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
w as VideoPlayer,
|
|
40
|
+
G as VideoTimeline,
|
|
41
|
+
R as VideoToolsPanel,
|
|
42
42
|
H as VideoUploader,
|
|
43
43
|
B as VirtualMediaGrid,
|
|
44
44
|
Q as applyTemporaryMediaStoreConfig,
|
|
45
|
-
j as
|
|
46
|
-
q as
|
|
47
|
-
J as
|
|
48
|
-
W as
|
|
49
|
-
K as
|
|
50
|
-
N as
|
|
51
|
-
O as
|
|
52
|
-
X as
|
|
53
|
-
Y as
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
$ as
|
|
61
|
-
aa as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
ia as
|
|
66
|
-
sa as
|
|
67
|
-
ra as
|
|
68
|
-
ta as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
oa as
|
|
72
|
-
la as
|
|
73
|
-
Ma as
|
|
74
|
-
na as
|
|
75
|
-
ma as
|
|
76
|
-
ua as
|
|
77
|
-
ga as
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Aa as
|
|
83
|
-
ya as
|
|
84
|
-
Ea as
|
|
85
|
-
|
|
86
|
-
ha as
|
|
87
|
-
|
|
88
|
-
Fa as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Pa as
|
|
93
|
-
La as
|
|
94
|
-
Ta as
|
|
95
|
-
za as
|
|
45
|
+
j as configureAlbumStore,
|
|
46
|
+
q as configureMediaStore,
|
|
47
|
+
J as createAdapter,
|
|
48
|
+
W as createEmptyEditorState,
|
|
49
|
+
K as createImageEditor,
|
|
50
|
+
N as createMediablesAdapter,
|
|
51
|
+
O as createSpatieAdapter,
|
|
52
|
+
X as deserializeEditorState,
|
|
53
|
+
Y as formatFileSize,
|
|
54
|
+
Z as fromMediaArray,
|
|
55
|
+
Ga as getAllCategories,
|
|
56
|
+
Ra as getAllFilters,
|
|
57
|
+
_ as getFileExtension,
|
|
58
|
+
Ha as getFilter,
|
|
59
|
+
Ba as getFiltersByCategory,
|
|
60
|
+
$ as getImageDimensions,
|
|
61
|
+
aa as getMediablesAdapter,
|
|
62
|
+
ea as getSpatieAdapter,
|
|
63
|
+
Qa as hasFilter,
|
|
64
|
+
ja as initializeFilterRegistry,
|
|
65
|
+
ia as isImageFile,
|
|
66
|
+
sa as normalizeEditorState,
|
|
67
|
+
ra as normalizeRecipeForServerRender,
|
|
68
|
+
ta as recipeHasServerRenderableEdits,
|
|
69
|
+
da as recipeHasUnsupportedServerEdits,
|
|
70
|
+
qa as registerFilter,
|
|
71
|
+
oa as resetMediablesAdapter,
|
|
72
|
+
la as resetSpatieAdapter,
|
|
73
|
+
Ma as restoreAlbumStoreConfig,
|
|
74
|
+
na as restoreMediaStoreConfig,
|
|
75
|
+
ma as serializeEditorState,
|
|
76
|
+
ua as snapshotAlbumStoreConfig,
|
|
77
|
+
ga as snapshotMediaStoreConfig,
|
|
78
|
+
Sa as toFormValues,
|
|
79
|
+
pa as useAdminMediaStore,
|
|
80
|
+
ba as useAlbumDragDrop,
|
|
81
|
+
ca as useAlbumStore,
|
|
82
|
+
Aa as useAlbums,
|
|
83
|
+
ya as useGlobalImageEditor,
|
|
84
|
+
Ea as useImageEditorModal,
|
|
85
|
+
Ca as useMediaAttachment,
|
|
86
|
+
ha as useMediaCollection,
|
|
87
|
+
Va as useMediaDeletion,
|
|
88
|
+
Fa as useMediaDragSort,
|
|
89
|
+
fa as useMediaLibraryPickerController,
|
|
90
|
+
va as useMediaLibraryQuery,
|
|
91
|
+
Ia as useMediaLibrarySession,
|
|
92
|
+
Pa as useMediaLibraryStateMachine,
|
|
93
|
+
La as useMediaLibraryTelemetry,
|
|
94
|
+
Ta as useMediaStore,
|
|
95
|
+
za as useMediaTrash,
|
|
96
|
+
Da as useMediaUploadQueue,
|
|
97
|
+
xa as useMediaValidation,
|
|
98
|
+
ka as validateFile
|
|
96
99
|
};
|
|
97
100
|
//# sourceMappingURL=mediables-vue.mjs.map
|
|
@@ -70754,6 +70754,16 @@ function toFiniteNumber(value, fallback) {
|
|
|
70754
70754
|
function percentOrUnit(value) {
|
|
70755
70755
|
return value > 5 ? value / 100 : value;
|
|
70756
70756
|
}
|
|
70757
|
+
function brightnessFactorFromParams(params) {
|
|
70758
|
+
if (params.value !== void 0) {
|
|
70759
|
+
const value = toFiniteNumber(params.value, 0);
|
|
70760
|
+
if (value >= -1 && value <= 1) {
|
|
70761
|
+
return 1 + value;
|
|
70762
|
+
}
|
|
70763
|
+
return percentOrUnit(value);
|
|
70764
|
+
}
|
|
70765
|
+
return percentOrUnit(toFiniteNumber(params.brightness, 1));
|
|
70766
|
+
}
|
|
70757
70767
|
function clamp(value, min, max) {
|
|
70758
70768
|
return Math.min(max, Math.max(min, value));
|
|
70759
70769
|
}
|
|
@@ -70764,8 +70774,7 @@ function createPixiVideoFallbackFilter(filterId, params) {
|
|
|
70764
70774
|
switch (filterId) {
|
|
70765
70775
|
case "brightness": {
|
|
70766
70776
|
const filter = createColorMatrix();
|
|
70767
|
-
|
|
70768
|
-
filter.brightness(clamp(percentOrUnit(raw), 0, 5), false);
|
|
70777
|
+
filter.brightness(clamp(brightnessFactorFromParams(params), 0, 5), false);
|
|
70769
70778
|
return filter;
|
|
70770
70779
|
}
|
|
70771
70780
|
case "contrast": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
body { margin: 0; background: #000; overflow: hidden; }
|
|
10
10
|
#render-canvas { display: block; }
|
|
11
11
|
</style>
|
|
12
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-DQB8PyEU.js"></script>
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<video id="source-video" crossorigin="anonymous" preload="auto" muted playsinline></video>
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
export interface FetchAlbumsParams {
|
|
2
2
|
parent_id?: string | null;
|
|
3
3
|
}
|
|
4
|
+
export interface AlbumStoreHttpClientOptions {
|
|
5
|
+
method?: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
body?: unknown;
|
|
8
|
+
credentials?: RequestCredentials;
|
|
9
|
+
}
|
|
10
|
+
export interface AlbumStoreHttpClient {
|
|
11
|
+
<T = unknown>(url: string, options?: AlbumStoreHttpClientOptions): Promise<T>;
|
|
12
|
+
}
|
|
13
|
+
export interface AlbumStoreConfig {
|
|
14
|
+
apiBaseUrl?: string;
|
|
15
|
+
albumBaseUrl?: string;
|
|
16
|
+
httpClient?: AlbumStoreHttpClient;
|
|
17
|
+
}
|
|
18
|
+
export declare function configureAlbumStore(config: AlbumStoreConfig): void;
|
|
19
|
+
export declare function snapshotAlbumStoreConfig(): AlbumStoreConfig;
|
|
20
|
+
export declare function restoreAlbumStoreConfig(snapshot: AlbumStoreConfig): void;
|
|
4
21
|
export declare const useAlbumStore: any;
|