@templatical/media-library 0.12.1 → 0.13.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/index.d.ts CHANGED
@@ -225,6 +225,14 @@ export declare const MediaLibraryModal: typeof __VLS_export;
225
225
 
226
226
  export declare interface MediaRequestContext {
227
227
  accept?: MediaCategory[];
228
+ /**
229
+ * Image files dragged directly onto an image block/field (issue #229).
230
+ * Present only on drag-and-drop requests; absent for click → Browse Media.
231
+ * The media handler should upload these and return the resulting
232
+ * `MediaResult`. Plural for forward-compat, but the editor currently sends
233
+ * a single file per drop.
234
+ */
235
+ files?: File[];
228
236
  }
229
237
 
230
238
  declare type MediaTranslations = typeof en;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@templatical/media-library",
3
3
  "description": "Media library management for Templatical email editor",
4
- "version": "0.12.1",
4
+ "version": "0.13.0",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "dependencies": {
7
7
  "@lucide/vue": "^1.21.0",
8
8
  "@vueuse/core": "^14.3.0",
9
9
  "vue-advanced-cropper": "^2.8.9",
10
- "@templatical/core": "0.12.1",
11
- "@templatical/types": "0.12.1"
10
+ "@templatical/core": "0.13.0",
11
+ "@templatical/types": "0.13.0"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@vitejs/plugin-vue": "^6.0.7",