@templatical/media-library 0.10.0 → 0.10.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.
- package/dist/cdn/chunks/{icons-yO_-mdzQ.js → icons-BPmya9As.js} +483 -482
- package/dist/cdn/chunks/icons-BPmya9As.js.map +1 -0
- package/dist/cdn/media-library.js +14 -10
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +10 -6
- package/package.json +10 -10
- 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");
|
|
@@ -646,7 +650,7 @@ var Se = Symbol("templaticalMediaPopoverTarget"), Ce = ["data-tpl-theme"], we =
|
|
|
646
650
|
}, Qe = {
|
|
647
651
|
class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium",
|
|
648
652
|
style: { color: "var(--tpl-text-muted)" }
|
|
649
|
-
}, $e = ["placeholder"], et = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, tt = ["disabled"], nt =
|
|
653
|
+
}, $e = ["placeholder"], et = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, tt = ["disabled"], nt = /*@__PURE__*/ h({
|
|
650
654
|
__name: "MediaEditModal",
|
|
651
655
|
props: {
|
|
652
656
|
visible: { type: Boolean },
|
|
@@ -823,7 +827,7 @@ var Se = Symbol("templaticalMediaPopoverTarget"), Ce = ["data-tpl-theme"], we =
|
|
|
823
827
|
let n = e.__vccOpts || e;
|
|
824
828
|
for (let [e, r] of t) n[e] = r;
|
|
825
829
|
return n;
|
|
826
|
-
}, it =
|
|
830
|
+
}, it = /*#__PURE__*/ rt(nt, [["__scopeId", "data-v-6b677237"]]), at = {
|
|
827
831
|
key: 1,
|
|
828
832
|
class: "tpl:size-4 tpl:shrink-0"
|
|
829
833
|
}, ot = {
|
|
@@ -1276,7 +1280,7 @@ var Se = Symbol("templaticalMediaPopoverTarget"), Ce = ["data-tpl-theme"], we =
|
|
|
1276
1280
|
}, qt = {
|
|
1277
1281
|
key: 4,
|
|
1278
1282
|
class: "tpl:flex tpl:justify-center tpl:py-4"
|
|
1279
|
-
}, Jt =
|
|
1283
|
+
}, Jt = /*#__PURE__*/ rt(/* @__PURE__ */ h({
|
|
1280
1284
|
__name: "MediaGrid",
|
|
1281
1285
|
props: {
|
|
1282
1286
|
items: {},
|
|
@@ -1589,7 +1593,7 @@ var Se = Symbol("templaticalMediaPopoverTarget"), Ce = ["data-tpl-theme"], we =
|
|
|
1589
1593
|
}, bn = {
|
|
1590
1594
|
class: "tpl:block tpl:text-[10px]",
|
|
1591
1595
|
style: { color: "var(--tpl-text-muted)" }
|
|
1592
|
-
}, xn = ["value"], Sn = ["value"], Cn =
|
|
1596
|
+
}, xn = ["value"], Sn = ["value"], Cn = /*#__PURE__*/ rt(/* @__PURE__ */ h({
|
|
1593
1597
|
__name: "MediaPreviewPanel",
|
|
1594
1598
|
props: {
|
|
1595
1599
|
item: {},
|
|
@@ -3013,7 +3017,7 @@ function Li(e) {
|
|
|
3013
3017
|
}
|
|
3014
3018
|
async function Ri(e) {
|
|
3015
3019
|
let t = Li(e);
|
|
3016
|
-
return (await Mi(/*
|
|
3020
|
+
return (await Mi(/* #__PURE__ */ Object.assign({
|
|
3017
3021
|
"./locales/de.ts": () => import("./de-ByQyu2jv.js"),
|
|
3018
3022
|
"./locales/en.ts": () => import("./en-B-xajqfh.js"),
|
|
3019
3023
|
"./locales/pt-BR.ts": () => import("./pt-BR-C0Hzc26R.js")
|
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.10.
|
|
4
|
+
"version": "0.10.2",
|
|
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.10.
|
|
11
|
-
"@templatical/types": "0.10.
|
|
10
|
+
"@templatical/core": "0.10.2",
|
|
11
|
+
"@templatical/types": "0.10.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
15
|
-
"@vue/test-utils": "^2.4.
|
|
15
|
+
"@vue/test-utils": "^2.4.11",
|
|
16
16
|
"typescript": "^6.0.3",
|
|
17
|
-
"vite": "^8.0.
|
|
18
|
-
"vitest": "^4.1.
|
|
19
|
-
"vue": "^3.5.
|
|
20
|
-
"vue-tsc": "^3.3.
|
|
17
|
+
"vite": "^8.0.16",
|
|
18
|
+
"vitest": "^4.1.8",
|
|
19
|
+
"vue": "^3.5.35",
|
|
20
|
+
"vue-tsc": "^3.3.4"
|
|
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"
|