@templatical/media-library 0.9.1 → 0.10.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/cdn/chunks/{icons-yO_-mdzQ.js → icons-DTJIxe9X.js} +469 -468
- package/dist/cdn/chunks/icons-DTJIxe9X.js.map +1 -0
- package/dist/cdn/media-library.js +9 -5
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +5 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/icons-yO_-mdzQ.js.map +0 -1
|
@@ -561,7 +561,11 @@ function ye(e, t, n) {
|
|
|
561
561
|
let r = e.width, i = e.height;
|
|
562
562
|
if (!t && !n) return e;
|
|
563
563
|
let a = r, o = i;
|
|
564
|
-
if (t && r > t && (a = t, o = Math.round(t / r * i)), n && o > n
|
|
564
|
+
if (t && r > t && (a = t, o = Math.round(t / r * i)), n && o > n) {
|
|
565
|
+
let e = n / o;
|
|
566
|
+
a = Math.round(a * e), o = n;
|
|
567
|
+
}
|
|
568
|
+
if (a === r && o === i) return e;
|
|
565
569
|
let s = document.createElement("canvas");
|
|
566
570
|
s.width = a, s.height = o;
|
|
567
571
|
let c = s.getContext("2d");
|
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.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@lucide/vue": "^1.
|
|
7
|
+
"@lucide/vue": "^1.17.0",
|
|
8
8
|
"@vueuse/core": "^14.3.0",
|
|
9
9
|
"vue-advanced-cropper": "^2.8.9",
|
|
10
|
-
"@templatical/core": "0.
|
|
11
|
-
"@templatical/types": "0.
|
|
10
|
+
"@templatical/core": "0.10.1",
|
|
11
|
+
"@templatical/types": "0.10.1"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"typescript": "^6.0.3",
|
|
17
17
|
"vite": "^8.0.14",
|
|
18
18
|
"vitest": "^4.1.7",
|
|
19
|
-
"vue": "^3.5.
|
|
20
|
-
"vue-tsc": "^3.3.
|
|
19
|
+
"vue": "^3.5.35",
|
|
20
|
+
"vue-tsc": "^3.3.2"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"module": "./dist/templatical-media-library.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"tailwindcss": "^4.3.0",
|
|
45
|
-
"vue": "^3.5.
|
|
45
|
+
"vue": "^3.5.35"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|