@codingfactory/mediables-vue 2.5.0 → 2.6.2

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.
Files changed (36) hide show
  1. package/dist/{PixiFrameExporter-BrsHCMHb.cjs → PixiFrameExporter-CUqM394V.cjs} +2 -2
  2. package/dist/{PixiFrameExporter-BrsHCMHb.cjs.map → PixiFrameExporter-CUqM394V.cjs.map} +1 -1
  3. package/dist/{PixiFrameExporter-DFq2mc-y.js → PixiFrameExporter-DJsxS-v6.js} +2 -2
  4. package/dist/{PixiFrameExporter-DFq2mc-y.js.map → PixiFrameExporter-DJsxS-v6.js.map} +1 -1
  5. package/dist/components/ImageEditor/ImageEditor.vue.d.ts +1 -0
  6. package/dist/components/ImageEditorModal.vue.d.ts +2 -0
  7. package/dist/components/MediaManagementView.vue.d.ts +2 -0
  8. package/dist/composables/useFloatingPills.d.ts +4 -0
  9. package/dist/composables/useMediaDeletion.d.ts +66 -0
  10. package/dist/composables/useMediaTrash.d.ts +64 -0
  11. package/dist/editor-BTwIhrcA.cjs +2 -0
  12. package/dist/editor-BTwIhrcA.cjs.map +1 -0
  13. package/dist/{editor-2Q72CZjK.js → editor-CYj5y5bp.js} +1417 -1167
  14. package/dist/editor-CYj5y5bp.js.map +1 -0
  15. package/dist/filters/registry.d.ts +4 -0
  16. package/dist/index-BUrSZVu3.cjs +342 -0
  17. package/dist/index-BUrSZVu3.cjs.map +1 -0
  18. package/dist/{index-CaQc9GBh.js → index-CtHJav8G.js} +12112 -10236
  19. package/dist/index-CtHJav8G.js.map +1 -0
  20. package/dist/index.d.ts +6 -0
  21. package/dist/mediables-vanilla.cjs +1 -1
  22. package/dist/mediables-vanilla.mjs +1 -1
  23. package/dist/mediables-vue.cjs +1 -1
  24. package/dist/mediables-vue.mjs +69 -66
  25. package/dist/render-page/assets/{index-ZZVWF3LA.js → index-y90zwXpc.js} +713 -531
  26. package/dist/render-page/index.html +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/types/media.d.ts +26 -0
  29. package/dist/types/mediaLibraryPicker.d.ts +1 -0
  30. package/package.json +2 -2
  31. package/dist/editor-2Q72CZjK.js.map +0 -1
  32. package/dist/editor-DjvxEsss.cjs +0 -42
  33. package/dist/editor-DjvxEsss.cjs.map +0 -1
  34. package/dist/index-BTGCVCn6.cjs +0 -342
  35. package/dist/index-BTGCVCn6.cjs.map +0 -1
  36. package/dist/index-CaQc9GBh.js.map +0 -1
@@ -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.5.0",
3
+ "version": "2.6.2",
4
4
  "publishConfig": {
5
- "access": "public"
5
+ "access": "restricted"
6
6
  },
7
7
  "type": "module",
8
8
  "description": "Vue components for Laravel Mediables package with comprehensive video support",