@bagelink/auth 1.9.81 → 1.9.86
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/index.cjs
CHANGED
|
@@ -304,7 +304,7 @@ class AuthApi {
|
|
|
304
304
|
}
|
|
305
305
|
const _hoisted_1$8 = { class: "txt20 bold mb-1" };
|
|
306
306
|
const _hoisted_2$4 = { class: "txt-center opacity-7" };
|
|
307
|
-
const _hoisted_3$
|
|
307
|
+
const _hoisted_3$4 = { class: "txt20 bold txt-center mb-1" };
|
|
308
308
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
309
309
|
__name: "ForgotPasswordForm",
|
|
310
310
|
props: {
|
|
@@ -376,7 +376,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
376
376
|
class: vue.normalizeClass(textDirection.value),
|
|
377
377
|
onSubmit: vue.withModifiers(handleRecoverPassword, ["prevent"])
|
|
378
378
|
}, [
|
|
379
|
-
vue.createElementVNode("h1", _hoisted_3$
|
|
379
|
+
vue.createElementVNode("h1", _hoisted_3$4, vue.toDisplayString(texts.value.title), 1),
|
|
380
380
|
vue.createVNode(vue.unref(vue$1.TextInput), {
|
|
381
381
|
modelValue: email.value,
|
|
382
382
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => email.value = $event),
|
|
@@ -402,14 +402,15 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
402
402
|
});
|
|
403
403
|
const _hoisted_1$7 = { class: "txt20 bold txt-center mb-1" };
|
|
404
404
|
const _hoisted_2$3 = { key: 1 };
|
|
405
|
-
const _hoisted_3$
|
|
405
|
+
const _hoisted_3$3 = {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "flex gap-1 opacity-6"
|
|
408
408
|
};
|
|
409
409
|
const _hoisted_4$2 = { class: "txt-center my-05" };
|
|
410
|
-
const _hoisted_5$2 = {
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
const _hoisted_5$2 = { class: "h-20px pt-075" };
|
|
411
|
+
const _hoisted_6$2 = {
|
|
412
|
+
key: 0,
|
|
413
|
+
class: "txt-center color-red txt-12"
|
|
413
414
|
};
|
|
414
415
|
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
415
416
|
__name: "LoginForm",
|
|
@@ -562,12 +563,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
562
563
|
}, null, 8, ["value"])) : vue.createCommentVNode("", true)
|
|
563
564
|
], 64)) : vue.createCommentVNode("", true),
|
|
564
565
|
showAnySso.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
565
|
-
!props.hideRegularLogin ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
566
|
+
!props.hideRegularLogin ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [
|
|
566
567
|
_cache[10] || (_cache[10] = vue.createElementVNode("div", { class: "line" }, null, -1)),
|
|
567
568
|
vue.createElementVNode("p", _hoisted_4$2, vue.toDisplayString(texts.value.orText), 1),
|
|
568
569
|
_cache[11] || (_cache[11] = vue.createElementVNode("div", { class: "line" }, null, -1))
|
|
569
570
|
])) : vue.createCommentVNode("", true),
|
|
570
|
-
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$2, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true),
|
|
571
571
|
vue.createElementVNode("div", {
|
|
572
572
|
class: vue.normalizeClass(["gap-05", { "grid grid-wrap-1": props.ssoShowValue, "flex justify-content-center gap-05 flex-wrap": !props.ssoShowValue }])
|
|
573
573
|
}, [
|
|
@@ -655,7 +655,10 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
655
655
|
}, null, 8, ["outline", "full-width", "align-txt", "style", "class", "value", "size"])), [
|
|
656
656
|
[_directive_tooltip, !props.ssoShowValue ? texts.value.facebookButton : void 0]
|
|
657
657
|
]) : vue.createCommentVNode("", true)
|
|
658
|
-
], 2)
|
|
658
|
+
], 2),
|
|
659
|
+
vue.createElementVNode("div", _hoisted_5$2, [
|
|
660
|
+
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6$2, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true)
|
|
661
|
+
])
|
|
659
662
|
])) : vue.createCommentVNode("", true)
|
|
660
663
|
], 34);
|
|
661
664
|
};
|
|
@@ -663,10 +666,14 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
663
666
|
});
|
|
664
667
|
const _hoisted_1$6 = { class: "txt20 bold mb-1" };
|
|
665
668
|
const _hoisted_2$2 = { class: "opacity-7 mb-2" };
|
|
666
|
-
const _hoisted_3$
|
|
669
|
+
const _hoisted_3$2 = { class: "txt20 bold mb-1" };
|
|
667
670
|
const _hoisted_4$1 = { class: "opacity-7 mb-2" };
|
|
668
671
|
const _hoisted_5$1 = { class: "txt20 bold txt-center mb-1" };
|
|
669
|
-
const _hoisted_6$1 =
|
|
672
|
+
const _hoisted_6$1 = { class: "h-20px pt-075" };
|
|
673
|
+
const _hoisted_7$1 = {
|
|
674
|
+
key: 0,
|
|
675
|
+
class: "txt-center color-red txt-12"
|
|
676
|
+
};
|
|
670
677
|
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
671
678
|
__name: "ResetPasswordForm",
|
|
672
679
|
props: {
|
|
@@ -769,7 +776,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
769
776
|
size: "4",
|
|
770
777
|
class: "txt-green mb-1"
|
|
771
778
|
}),
|
|
772
|
-
vue.createElementVNode("h1", _hoisted_3$
|
|
779
|
+
vue.createElementVNode("h1", _hoisted_3$2, vue.toDisplayString(texts.value.successTitle), 1),
|
|
773
780
|
vue.createElementVNode("p", _hoisted_4$1, vue.toDisplayString(texts.value.successMessage), 1),
|
|
774
781
|
vue.createVNode(vue.unref(vue$1.Btn), {
|
|
775
782
|
value: texts.value.goToLogin,
|
|
@@ -806,17 +813,19 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
806
813
|
value: texts.value.backToLogin,
|
|
807
814
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("switchForm", "login"))
|
|
808
815
|
}, null, 8, ["value"]),
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
textContent: vue.toDisplayString(error.value)
|
|
813
|
-
}, null, 8, _hoisted_6$1)) : vue.createCommentVNode("", true)
|
|
816
|
+
vue.createElementVNode("div", _hoisted_6$1, [
|
|
817
|
+
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_7$1, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true)
|
|
818
|
+
])
|
|
814
819
|
], 34));
|
|
815
820
|
};
|
|
816
821
|
}
|
|
817
822
|
});
|
|
818
823
|
const _hoisted_1$5 = { class: "txt20 bold txt-center mb-1" };
|
|
819
|
-
const _hoisted_2$1 =
|
|
824
|
+
const _hoisted_2$1 = { class: "h-20px pt-075" };
|
|
825
|
+
const _hoisted_3$1 = {
|
|
826
|
+
key: 0,
|
|
827
|
+
class: "txt-center color-red txt-12"
|
|
828
|
+
};
|
|
820
829
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
821
830
|
__name: "SignupForm",
|
|
822
831
|
props: {
|
|
@@ -1022,11 +1031,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1022
1031
|
value: texts.value.alreadyHaveAccount,
|
|
1023
1032
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("switchForm", "login"))
|
|
1024
1033
|
}, null, 8, ["value"]),
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
textContent: vue.toDisplayString(error.value)
|
|
1029
|
-
}, null, 8, _hoisted_2$1)) : vue.createCommentVNode("", true)
|
|
1034
|
+
vue.createElementVNode("div", _hoisted_2$1, [
|
|
1035
|
+
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$1, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true)
|
|
1036
|
+
])
|
|
1030
1037
|
], 34);
|
|
1031
1038
|
};
|
|
1032
1039
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -302,7 +302,7 @@ class AuthApi {
|
|
|
302
302
|
}
|
|
303
303
|
const _hoisted_1$8 = { class: "txt20 bold mb-1" };
|
|
304
304
|
const _hoisted_2$4 = { class: "txt-center opacity-7" };
|
|
305
|
-
const _hoisted_3$
|
|
305
|
+
const _hoisted_3$4 = { class: "txt20 bold txt-center mb-1" };
|
|
306
306
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
307
307
|
__name: "ForgotPasswordForm",
|
|
308
308
|
props: {
|
|
@@ -374,7 +374,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
374
374
|
class: normalizeClass(textDirection.value),
|
|
375
375
|
onSubmit: withModifiers(handleRecoverPassword, ["prevent"])
|
|
376
376
|
}, [
|
|
377
|
-
createElementVNode("h1", _hoisted_3$
|
|
377
|
+
createElementVNode("h1", _hoisted_3$4, toDisplayString(texts.value.title), 1),
|
|
378
378
|
createVNode(unref(TextInput), {
|
|
379
379
|
modelValue: email.value,
|
|
380
380
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => email.value = $event),
|
|
@@ -400,14 +400,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
400
400
|
});
|
|
401
401
|
const _hoisted_1$7 = { class: "txt20 bold txt-center mb-1" };
|
|
402
402
|
const _hoisted_2$3 = { key: 1 };
|
|
403
|
-
const _hoisted_3$
|
|
403
|
+
const _hoisted_3$3 = {
|
|
404
404
|
key: 0,
|
|
405
405
|
class: "flex gap-1 opacity-6"
|
|
406
406
|
};
|
|
407
407
|
const _hoisted_4$2 = { class: "txt-center my-05" };
|
|
408
|
-
const _hoisted_5$2 = {
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
const _hoisted_5$2 = { class: "h-20px pt-075" };
|
|
409
|
+
const _hoisted_6$2 = {
|
|
410
|
+
key: 0,
|
|
411
|
+
class: "txt-center color-red txt-12"
|
|
411
412
|
};
|
|
412
413
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
413
414
|
__name: "LoginForm",
|
|
@@ -560,12 +561,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
560
561
|
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
561
562
|
], 64)) : createCommentVNode("", true),
|
|
562
563
|
showAnySso.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
563
|
-
!props.hideRegularLogin ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
564
|
+
!props.hideRegularLogin ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
564
565
|
_cache[10] || (_cache[10] = createElementVNode("div", { class: "line" }, null, -1)),
|
|
565
566
|
createElementVNode("p", _hoisted_4$2, toDisplayString(texts.value.orText), 1),
|
|
566
567
|
_cache[11] || (_cache[11] = createElementVNode("div", { class: "line" }, null, -1))
|
|
567
568
|
])) : createCommentVNode("", true),
|
|
568
|
-
error.value ? (openBlock(), createElementBlock("p", _hoisted_5$2, toDisplayString(error.value), 1)) : createCommentVNode("", true),
|
|
569
569
|
createElementVNode("div", {
|
|
570
570
|
class: normalizeClass(["gap-05", { "grid grid-wrap-1": props.ssoShowValue, "flex justify-content-center gap-05 flex-wrap": !props.ssoShowValue }])
|
|
571
571
|
}, [
|
|
@@ -653,7 +653,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
653
653
|
}, null, 8, ["outline", "full-width", "align-txt", "style", "class", "value", "size"])), [
|
|
654
654
|
[_directive_tooltip, !props.ssoShowValue ? texts.value.facebookButton : void 0]
|
|
655
655
|
]) : createCommentVNode("", true)
|
|
656
|
-
], 2)
|
|
656
|
+
], 2),
|
|
657
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
658
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_6$2, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
659
|
+
])
|
|
657
660
|
])) : createCommentVNode("", true)
|
|
658
661
|
], 34);
|
|
659
662
|
};
|
|
@@ -661,10 +664,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
661
664
|
});
|
|
662
665
|
const _hoisted_1$6 = { class: "txt20 bold mb-1" };
|
|
663
666
|
const _hoisted_2$2 = { class: "opacity-7 mb-2" };
|
|
664
|
-
const _hoisted_3$
|
|
667
|
+
const _hoisted_3$2 = { class: "txt20 bold mb-1" };
|
|
665
668
|
const _hoisted_4$1 = { class: "opacity-7 mb-2" };
|
|
666
669
|
const _hoisted_5$1 = { class: "txt20 bold txt-center mb-1" };
|
|
667
|
-
const _hoisted_6$1 =
|
|
670
|
+
const _hoisted_6$1 = { class: "h-20px pt-075" };
|
|
671
|
+
const _hoisted_7$1 = {
|
|
672
|
+
key: 0,
|
|
673
|
+
class: "txt-center color-red txt-12"
|
|
674
|
+
};
|
|
668
675
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
669
676
|
__name: "ResetPasswordForm",
|
|
670
677
|
props: {
|
|
@@ -767,7 +774,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
767
774
|
size: "4",
|
|
768
775
|
class: "txt-green mb-1"
|
|
769
776
|
}),
|
|
770
|
-
createElementVNode("h1", _hoisted_3$
|
|
777
|
+
createElementVNode("h1", _hoisted_3$2, toDisplayString(texts.value.successTitle), 1),
|
|
771
778
|
createElementVNode("p", _hoisted_4$1, toDisplayString(texts.value.successMessage), 1),
|
|
772
779
|
createVNode(unref(Btn), {
|
|
773
780
|
value: texts.value.goToLogin,
|
|
@@ -804,17 +811,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
804
811
|
value: texts.value.backToLogin,
|
|
805
812
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("switchForm", "login"))
|
|
806
813
|
}, null, 8, ["value"]),
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
textContent: toDisplayString(error.value)
|
|
811
|
-
}, null, 8, _hoisted_6$1)) : createCommentVNode("", true)
|
|
814
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
815
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_7$1, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
816
|
+
])
|
|
812
817
|
], 34));
|
|
813
818
|
};
|
|
814
819
|
}
|
|
815
820
|
});
|
|
816
821
|
const _hoisted_1$5 = { class: "txt20 bold txt-center mb-1" };
|
|
817
|
-
const _hoisted_2$1 =
|
|
822
|
+
const _hoisted_2$1 = { class: "h-20px pt-075" };
|
|
823
|
+
const _hoisted_3$1 = {
|
|
824
|
+
key: 0,
|
|
825
|
+
class: "txt-center color-red txt-12"
|
|
826
|
+
};
|
|
818
827
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
819
828
|
__name: "SignupForm",
|
|
820
829
|
props: {
|
|
@@ -1020,11 +1029,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1020
1029
|
value: texts.value.alreadyHaveAccount,
|
|
1021
1030
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("switchForm", "login"))
|
|
1022
1031
|
}, null, 8, ["value"]),
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
textContent: toDisplayString(error.value)
|
|
1027
|
-
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true)
|
|
1032
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
1033
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
1034
|
+
])
|
|
1028
1035
|
], 34);
|
|
1029
1036
|
};
|
|
1030
1037
|
}
|
package/package.json
CHANGED
|
@@ -188,9 +188,7 @@ async function handleLogin() {
|
|
|
188
188
|
</p>
|
|
189
189
|
<div class="line" />
|
|
190
190
|
</div>
|
|
191
|
-
|
|
192
|
-
{{ error }}
|
|
193
|
-
</p>
|
|
191
|
+
|
|
194
192
|
<div
|
|
195
193
|
class="gap-05"
|
|
196
194
|
:class="{ 'grid grid-wrap-1': props.ssoShowValue, 'flex justify-content-center gap-05 flex-wrap': !props.ssoShowValue }"
|
|
@@ -250,6 +248,11 @@ async function handleLogin() {
|
|
|
250
248
|
@click="sso.facebook.redirect()"
|
|
251
249
|
/>
|
|
252
250
|
</div>
|
|
251
|
+
<div class="h-20px pt-075">
|
|
252
|
+
<p v-if="error" class="txt-center color-red txt-12">
|
|
253
|
+
{{ error }}
|
|
254
|
+
</p>
|
|
255
|
+
</div>
|
|
253
256
|
</div>
|
|
254
257
|
</form>
|
|
255
258
|
</template>
|
|
@@ -147,6 +147,10 @@ async function handleResetPassword() {
|
|
|
147
147
|
thin flat class="txt-12 mt-075 underline block" :value="texts.backToLogin"
|
|
148
148
|
@click="$emit('switchForm', 'login')"
|
|
149
149
|
/>
|
|
150
|
-
<
|
|
150
|
+
<div class="h-20px pt-075">
|
|
151
|
+
<p v-if="error" class="txt-center color-red txt-12">
|
|
152
|
+
{{ error }}
|
|
153
|
+
</p>
|
|
154
|
+
</div>
|
|
151
155
|
</form>
|
|
152
156
|
</template>
|
|
@@ -222,6 +222,10 @@ async function handleSignup() {
|
|
|
222
222
|
thin flat class="txt-12 mt-075 underline block" :value="texts.alreadyHaveAccount"
|
|
223
223
|
@click="$emit('switchForm', 'login')"
|
|
224
224
|
/>
|
|
225
|
-
<
|
|
225
|
+
<div class="h-20px pt-075">
|
|
226
|
+
<p v-if="error" class="txt-center color-red txt-12">
|
|
227
|
+
{{ error }}
|
|
228
|
+
</p>
|
|
229
|
+
</div>
|
|
226
230
|
</form>
|
|
227
231
|
</template>
|