@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.
- package/dist/cdn/chunks/{icons-CbIgFLAS.js → icons-DLyx2bga.js} +18 -18
- package/dist/cdn/chunks/{icons-CbIgFLAS.js.map → icons-DLyx2bga.js.map} +1 -1
- package/dist/cdn/media-library.js +4 -4
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +2 -2
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as ee, c as te, d as ne, et as re, f as A, g as ie, h as ae, i as oe, it as j, j as M, k as N, l as se, m as ce, n as le, nt as ue, o as de, ot as P, p as fe, q as F, r as pe, rt as I, s as me, st as L, t as he, tt as ge, u as _e, v as ve, w as R, x as ye, y as be, z } from "./chunks/icons-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as ee, c as te, d as ne, et as re, f as A, g as ie, h as ae, i as oe, it as j, j as M, k as N, l as se, m as ce, n as le, nt as ue, o as de, ot as P, p as fe, q as F, r as pe, rt as I, s as me, st as L, t as he, tt as ge, u as _e, v as ve, w as R, x as ye, y as be, z } from "./chunks/icons-DLyx2bga.js";
|
|
2
2
|
//#region ../types/src/config.ts
|
|
3
3
|
var xe = class extends Error {
|
|
4
4
|
statusCode;
|
|
@@ -65,7 +65,7 @@ var xe = class extends Error {
|
|
|
65
65
|
return this.accessToken && !this.isTokenExpiringSoon() ? this.accessToken : this.refreshToken();
|
|
66
66
|
}
|
|
67
67
|
isTokenExpiringSoon() {
|
|
68
|
-
return this.expiresAt
|
|
68
|
+
return !this.expiresAt || this.expiresAt.getTime() - Date.now() < e.REFRESH_THRESHOLD_MS;
|
|
69
69
|
}
|
|
70
70
|
async refreshToken() {
|
|
71
71
|
if (this.refreshPromise) return this.refreshPromise;
|
|
@@ -4922,7 +4922,7 @@ function ci(e, t = {}) {
|
|
|
4922
4922
|
return t.length === 0 ? null : s ? t : [t[0]];
|
|
4923
4923
|
}, u = (e) => {
|
|
4924
4924
|
let t = j(o.dataTypes);
|
|
4925
|
-
return typeof t == "function" ? t(e) : t?.length
|
|
4925
|
+
return typeof t == "function" ? t(e) : !t?.length || e.length !== 0 && e.every((e) => t.some((t) => e.includes(t)));
|
|
4926
4926
|
}, d = (e) => o.checkValidity ? o.checkValidity(e) : u(Array.from(e ?? []).map((e) => e.type)) && (s || e.length <= 1), f = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), p = (e, t) => {
|
|
4927
4927
|
let s = e.dataTransfer?.items;
|
|
4928
4928
|
if (a = (s && d(s)) ?? !1, c && e.preventDefault(), !f() && !a) {
|
|
@@ -5102,7 +5102,7 @@ var pi = { class: "tpl:p-4" }, mi = {
|
|
|
5102
5102
|
setup(n, { emit: a }) {
|
|
5103
5103
|
let o = n, s = a, { isAcceptedMimeType: c, isImageMimeType: l } = Fe();
|
|
5104
5104
|
function u(e) {
|
|
5105
|
-
return !o.accept || o.accept.length === 0
|
|
5105
|
+
return !o.accept || o.accept.length === 0 || c(e.mime_type, o.accept);
|
|
5106
5106
|
}
|
|
5107
5107
|
function d(e) {
|
|
5108
5108
|
s("select", e);
|