@codingfactory/mediables-vue 2.5.0 → 2.6.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/dist/{PixiFrameExporter-BrsHCMHb.cjs → PixiFrameExporter-CetwQ3WI.cjs} +2 -2
- package/dist/{PixiFrameExporter-BrsHCMHb.cjs.map → PixiFrameExporter-CetwQ3WI.cjs.map} +1 -1
- package/dist/{PixiFrameExporter-DFq2mc-y.js → PixiFrameExporter-DFchWLl5.js} +2 -2
- package/dist/{PixiFrameExporter-DFq2mc-y.js.map → PixiFrameExporter-DFchWLl5.js.map} +1 -1
- package/dist/components/ImageEditor/ImageEditor.vue.d.ts +1 -0
- package/dist/components/ImageEditorModal.vue.d.ts +2 -0
- package/dist/components/MediaManagementView.vue.d.ts +2 -0
- package/dist/composables/useFloatingPills.d.ts +4 -0
- package/dist/composables/useMediaDeletion.d.ts +66 -0
- package/dist/composables/useMediaTrash.d.ts +64 -0
- package/dist/editor-BTwIhrcA.cjs +2 -0
- package/dist/editor-BTwIhrcA.cjs.map +1 -0
- package/dist/{editor-2Q72CZjK.js → editor-CYj5y5bp.js} +1417 -1167
- package/dist/editor-CYj5y5bp.js.map +1 -0
- package/dist/filters/registry.d.ts +4 -0
- package/dist/{index-CaQc9GBh.js → index-DNgtg1bF.js} +12107 -10230
- package/dist/index-DNgtg1bF.js.map +1 -0
- package/dist/index-nQskCfGV.cjs +342 -0
- package/dist/index-nQskCfGV.cjs.map +1 -0
- package/dist/index.d.ts +6 -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 +69 -66
- package/dist/render-page/assets/{index-ZZVWF3LA.js → index-y90zwXpc.js} +713 -531
- package/dist/render-page/index.html +1 -1
- package/dist/style.css +1 -1
- package/dist/types/media.d.ts +26 -0
- package/dist/types/mediaLibraryPicker.d.ts +1 -0
- package/package.json +2 -2
- package/dist/editor-2Q72CZjK.js.map +0 -1
- package/dist/editor-DjvxEsss.cjs +0 -42
- package/dist/editor-DjvxEsss.cjs.map +0 -1
- package/dist/index-BTGCVCn6.cjs +0 -342
- package/dist/index-BTGCVCn6.cjs.map +0 -1
- package/dist/index-CaQc9GBh.js.map +0 -1
package/dist/types/media.d.ts
CHANGED
|
@@ -39,7 +39,33 @@ export interface Media {
|
|
|
39
39
|
height?: number;
|
|
40
40
|
created_at: string;
|
|
41
41
|
updated_at: string;
|
|
42
|
+
is_orphaned?: boolean;
|
|
43
|
+
deletion_status?: DeletionStatus;
|
|
44
|
+
is_trashed?: boolean;
|
|
45
|
+
purge_after?: string | null;
|
|
42
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Lifecycle states from the trash-aware deletion state machine.
|
|
49
|
+
* Mirrors the PHP `Mediables\Support\MediaUsage\DeletionStatus` enum.
|
|
50
|
+
*
|
|
51
|
+
* active — visible in library, dedup-eligible, attachable
|
|
52
|
+
* trashed — user-deleted, restorable, files still on disk
|
|
53
|
+
* purging — physical cleanup in progress
|
|
54
|
+
* purged — cleanup completed
|
|
55
|
+
* purge_failed — cleanup failed, requires admin intervention
|
|
56
|
+
*/
|
|
57
|
+
export type DeletionStatus = 'active' | 'trashed' | 'purging' | 'purged' | 'purge_failed';
|
|
58
|
+
/**
|
|
59
|
+
* Possible per-item statuses returned by the batch delete endpoint.
|
|
60
|
+
*/
|
|
61
|
+
export type BatchDeleteItemStatus = 'trashed' | 'already_trashed' | 'blocked' | 'protected' | 'not_found' | 'failed';
|
|
62
|
+
/**
|
|
63
|
+
* Possible statuses returned by the trash restore endpoint.
|
|
64
|
+
* `duplicate_conflict` is the Round 3 fix — restore detects an active
|
|
65
|
+
* duplicate exists and surfaces the collision instead of crashing on
|
|
66
|
+
* the unique index.
|
|
67
|
+
*/
|
|
68
|
+
export type RestoreStatus = 'restored' | 'duplicate_conflict' | 'not_trashed' | 'not_found' | 'failed';
|
|
43
69
|
/**
|
|
44
70
|
* Collection response from paginated API endpoints
|
|
45
71
|
*/
|
|
@@ -147,6 +147,7 @@ export interface MediaLibraryPickerProps {
|
|
|
147
147
|
createAlbumDefaultVisibility?: 'private' | 'authenticated' | 'public';
|
|
148
148
|
sessionPolicy?: MediaSessionPolicy;
|
|
149
149
|
labels?: MediaLibraryPickerLabels;
|
|
150
|
+
showFooter?: boolean;
|
|
150
151
|
testIdPrefix?: string;
|
|
151
152
|
telemetry?: (metric: MediaLibraryPickerMetric) => void;
|
|
152
153
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingfactory/mediables-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"publishConfig": {
|
|
5
|
-
"access": "
|
|
5
|
+
"access": "restricted"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
8
|
"description": "Vue components for Laravel Mediables package with comprehensive video support",
|