vlite3 0.2.2 → 0.2.3
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/components/GoogleLogin.vue.js +12 -12
- package/directives/vScrollReveal.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as u, openBlock as c, createElementBlock as f, renderSlot as m, createVNode as g, normalizeClass as v, unref as b, withCtx as C, createElementVNode as h, toDisplayString as k } from "vue";
|
|
2
|
-
import { useTokenClient as w } from "
|
|
2
|
+
import { useTokenClient as w } from "vue3-google-signin";
|
|
3
3
|
import z from "./Button.vue.js";
|
|
4
|
-
const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "font-medium" },
|
|
4
|
+
const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "font-medium" }, T = /* @__PURE__ */ d({
|
|
5
5
|
__name: "GoogleLogin",
|
|
6
6
|
props: {
|
|
7
7
|
buttonText: { default: "Sign in with Google" },
|
|
@@ -13,25 +13,25 @@ const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "f
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["success", "error"],
|
|
15
15
|
setup(e, { emit: n }) {
|
|
16
|
-
const s = e,
|
|
17
|
-
onSuccess: (
|
|
18
|
-
l.value = !1,
|
|
16
|
+
const s = e, a = n, l = u(!1), { login: i, isReady: r } = w({
|
|
17
|
+
onSuccess: (o) => {
|
|
18
|
+
l.value = !1, a("success", o);
|
|
19
19
|
},
|
|
20
|
-
onError: (
|
|
21
|
-
l.value = !1,
|
|
20
|
+
onError: (o) => {
|
|
21
|
+
l.value = !1, a("error", o);
|
|
22
22
|
}
|
|
23
23
|
}), t = () => {
|
|
24
24
|
if (!(s.disabled || l.value)) {
|
|
25
25
|
l.value = !0;
|
|
26
26
|
try {
|
|
27
27
|
i();
|
|
28
|
-
} catch (
|
|
29
|
-
l.value = !1,
|
|
28
|
+
} catch (o) {
|
|
29
|
+
l.value = !1, a("error", o);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
return (
|
|
34
|
-
m(
|
|
33
|
+
return (o, S) => (c(), f("div", x, [
|
|
34
|
+
m(o.$slots, "default", {
|
|
35
35
|
login: t,
|
|
36
36
|
loading: l.value,
|
|
37
37
|
disabled: e.disabled
|
|
@@ -56,5 +56,5 @@ const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "f
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
T as default
|
|
60
60
|
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as t } from "
|
|
1
|
+
import { default as t } from "vue3-google-signin";
|
|
2
2
|
import { default as f } from "./components/Accordion/Accordion.vue.js";
|
|
3
3
|
import { default as m } from "./components/Accordion/AccordionItem.vue.js";
|
|
4
4
|
import { default as d } from "./components/Accordion/AccordionTrigger.vue.js";
|