@vuetify/one 3.0.0 → 3.1.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/{auth-Bgoyy62h.js → auth-DK4fBwyp.js} +4 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1401 -2778
- package/dist/stores/auth.d.ts +3 -3
- package/dist/stores/auth.js +1 -1
- package/package.json +6 -5
|
@@ -135,13 +135,12 @@ const V = $("auth-core", () => {
|
|
|
135
135
|
window.location.assign(p + "?next=" + encodeURIComponent(window.location.href));
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
const h = 400, b = 600, W = window.screenX + (window.innerWidth - h) / 2, _ = window.screenY + (window.innerHeight - b) / 2, u = window.open(
|
|
138
|
+
const h = 400, b = 600, W = window.screenX + (window.innerWidth - h) / 2, _ = window.screenY + (window.innerHeight - b) / 2, u = window.open(p, "vuetify:authorize:popup", `popup,left=${W},top=${_},width=${h},height=${b},resizable`);
|
|
139
139
|
if (!u) {
|
|
140
140
|
const E = /* @__PURE__ */ new Error("Failed to open popup");
|
|
141
141
|
r.value.onError?.(E), s.value = !1;
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
u.location.href = p;
|
|
145
144
|
let y = -1, A = -1;
|
|
146
145
|
function N(E) {
|
|
147
146
|
if (E.origin === e.url && E.data?.type === "auth-response") {
|
|
@@ -607,7 +606,7 @@ const X = $("one", () => {
|
|
|
607
606
|
clearTeamQuery: v
|
|
608
607
|
};
|
|
609
608
|
}), ce = typeof window < "u", Y = $("auth", () => {
|
|
610
|
-
const e = V(), i = U(), t = ae(), s = Q(), r = X(), n = ue(), c = J(), a = P(() => e.user), d = P(
|
|
609
|
+
const e = V(), i = U(), t = ae(), s = Q(), r = X(), n = ue(), c = J(), a = P(() => e.user), d = P(e, "dialog"), g = P(() => e.isLoading), R = P(() => e.isAuthenticated), O = P(() => e.isSuper), I = P(() => e.isAdmin), v = P(() => e.isEditor);
|
|
611
610
|
let T = !!e.lastLoginProvider();
|
|
612
611
|
j(a, (u) => {
|
|
613
612
|
if (!ce || !u?.settings)
|
|
@@ -695,9 +694,9 @@ export {
|
|
|
695
694
|
ae as b,
|
|
696
695
|
X as c,
|
|
697
696
|
M as d,
|
|
698
|
-
|
|
697
|
+
U as e,
|
|
699
698
|
ue as f,
|
|
700
|
-
|
|
699
|
+
he as g,
|
|
701
700
|
ve as h,
|
|
702
701
|
J as u
|
|
703
702
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
|
|
|
99
99
|
};
|
|
100
100
|
} | null>>;
|
|
101
101
|
url: string;
|
|
102
|
-
dialog:
|
|
102
|
+
dialog: globalThis.Ref<boolean, boolean>;
|
|
103
103
|
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
104
104
|
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
105
105
|
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
@@ -200,7 +200,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
|
|
|
200
200
|
};
|
|
201
201
|
} | null>>;
|
|
202
202
|
url: string;
|
|
203
|
-
dialog:
|
|
203
|
+
dialog: globalThis.Ref<boolean, boolean>;
|
|
204
204
|
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
205
205
|
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
206
206
|
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
@@ -301,7 +301,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
|
|
|
301
301
|
};
|
|
302
302
|
} | null>>;
|
|
303
303
|
url: string;
|
|
304
|
-
dialog:
|
|
304
|
+
dialog: globalThis.Ref<boolean, boolean>;
|
|
305
305
|
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
306
306
|
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
307
307
|
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|