@templatical/media-library 0.14.0 → 0.15.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.
@@ -1302,7 +1302,7 @@ var Se = Symbol("templaticalMediaPopoverTarget"), Ce = ["data-tpl-theme"], we =
1302
1302
  setup(e, { emit: t }) {
1303
1303
  let n = e, r = t, { isAcceptedMimeType: a, isImageMimeType: o } = Q();
1304
1304
  function s(e) {
1305
- return !n.accept || n.accept.length === 0 ? !0 : a(e.mime_type, n.accept);
1305
+ return !n.accept || n.accept.length === 0 || a(e.mime_type, n.accept);
1306
1306
  }
1307
1307
  function c(e) {
1308
1308
  r("select", e);
@@ -2180,7 +2180,7 @@ var Xn = ["data-tpl-theme"], Zn = {
2180
2180
  }
2181
2181
  ce(document, "keydown", K);
2182
2182
  function q() {
2183
- return B.previewItem.value ? n.accept?.length ? L(B.previewItem.value.mime_type, n.accept) : !0 : !1;
2183
+ return B.previewItem.value ? !n.accept?.length || L(B.previewItem.value.mime_type, n.accept) : !1;
2184
2184
  }
2185
2185
  function J() {
2186
2186
  if (q()) {
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@templatical/media-library",
3
3
  "description": "Media library management for Templatical email editor",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "dependencies": {
7
- "@lucide/vue": "^1.23.0",
7
+ "@lucide/vue": "^1.24.0",
8
8
  "@vueuse/core": "^14.3.0",
9
9
  "vue-advanced-cropper": "^2.8.9",
10
- "@templatical/core": "0.14.0",
11
- "@templatical/types": "0.14.0"
10
+ "@templatical/core": "0.15.0",
11
+ "@templatical/types": "0.15.0"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@vitejs/plugin-vue": "^6.0.7",
15
15
  "@vue/test-utils": "^2.4.11",
16
16
  "typescript": "^6.0.3",
17
- "vite": "^8.1.3",
18
- "vitest": "^4.1.9",
17
+ "vite": "^8.1.4",
18
+ "vitest": "^4.1.10",
19
19
  "vue": "^3.5.39",
20
- "vue-tsc": "^3.3.6"
20
+ "vue-tsc": "^3.3.7"
21
21
  },
22
22
  "exports": {
23
23
  ".": {