@logora/debate 0.4.8 → 0.4.10
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/assets/components/progress/progress_bar/ProgressBar.module-C9_77ipX.css +1 -0
- package/dist/components/auth/auth_initializer/AuthInitializer.js +15 -15
- package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +7 -7
- package/package.json +1 -1
- package/dist/assets/components/progress/progress_bar/ProgressBar.module-Dy-27Wf9.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._progressContainer_w34dy_3{display:flex!important;flex-direction:column!important;width:100%}._titleContainer_w34dy_9{display:flex!important;flex-direction:column!important}@container (min-width: 576px){._titleContainer_w34dy_9{flex-direction:row!important}}._title_w34dy_9{width:100%;font-weight:var(--font-weight-bold, 700)}._subtitleContainer_w34dy_24{width:100%;text-align:right}._progressSubtitle_w34dy_29{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px)}._progressBarContainer_w34dy_35{position:relative;background:var(--background-color-secondary, #E8E8E8);border-radius:var(--button-border-radius, var(--box-border-radius, 6px))!important;overflow:hidden;display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap}._currentProgressBar_w34dy_47{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:left;white-space:nowrap;color:var(--text-light, white);-webkit-transition:width 1.2s ease!important;transition:width 1.2s ease!important}._progressBar_w34dy_35{display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap;background-color:var(--call-primary-color, #434343);border-radius:var(--button-border-radius, var(--box-border-radius, 6px))!important;height:100%;color:var(--text-light, white);animation:_progressBarAnimation_w34dy_1 1.2s ease;animation-fill-mode:both;-webkit-animation:_progressBarAnimation_w34dy_1 1.2s ease;-webkit-animation-fill-mode:both;-moz-animation:_progressBarAnimation_w34dy_1 1.2s ease;-moz-animation-fill-mode:both}._progressBarContent_w34dy_77{text-align:left;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;color:var(--text-light, white);font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-normal, 400);min-height:.5em}@keyframes _progressBarAnimation_w34dy_1{0%{width:0}to{width:100%}}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as E, useEffect as
|
|
1
|
+
import { jsx as f, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { useState as E, useEffect as l } from "react";
|
|
3
3
|
import { useConfig as O } from "../../data/config_provider/useConfig.js";
|
|
4
4
|
import { useDataProvider as q } from "../../data/data_provider/useDataProvider.js";
|
|
5
|
-
import { useAuthInterceptor as
|
|
6
|
-
import { authTokenHandler as
|
|
7
|
-
import { useAuthActions as
|
|
8
|
-
import { useAuthRequired as
|
|
9
|
-
import { useAuth as
|
|
5
|
+
import { useAuthInterceptor as L } from "../use_auth/useAuthInterceptor.js";
|
|
6
|
+
import { authTokenHandler as S } from "../use_auth/authTokenHandler.js";
|
|
7
|
+
import { useAuthActions as T } from "../use_auth/useAuthActions.js";
|
|
8
|
+
import { useAuthRequired as _ } from "../../hooks/use_auth_required/useAuthRequired.js";
|
|
9
|
+
import { useAuth as z } from "../use_auth/useAuth.js";
|
|
10
10
|
import { AuthProviderFactory as M } from "../providers/AuthProviderFactory.js";
|
|
11
11
|
import { OnboardingModal as j } from "../../user/onboarding_modal/OnboardingModal.js";
|
|
12
12
|
import { httpClient as a } from "../../data/axios_client/httpClient.js";
|
|
13
13
|
const X = ({ authUrl: n, authType: i, provider: g, assertion: p }) => {
|
|
14
14
|
const s = "logora_user_token", e = O(), w = q();
|
|
15
|
-
|
|
16
|
-
const [v, u] = E(!1), { getToken: A, removeToken: C } =
|
|
15
|
+
L(a, n, s);
|
|
16
|
+
const [v, u] = E(!1), { getToken: A, removeToken: C } = S(
|
|
17
17
|
a,
|
|
18
18
|
n,
|
|
19
19
|
s
|
|
20
|
-
), { loginUser: c, logoutUser: P, fetchUser: b } =
|
|
20
|
+
), { loginUser: c, logoutUser: P, fetchUser: b } = T(
|
|
21
21
|
a,
|
|
22
22
|
n,
|
|
23
23
|
s
|
|
24
|
-
), m =
|
|
25
|
-
|
|
24
|
+
), m = _(), { setIsLoggingIn: x, currentUser: k } = z();
|
|
25
|
+
l(() => {
|
|
26
26
|
U();
|
|
27
|
-
}, []),
|
|
27
|
+
}, []), l(() => {
|
|
28
28
|
if (typeof window < "u")
|
|
29
29
|
return window.addEventListener("logora:authentication:require", m), () => {
|
|
30
30
|
window.removeEventListener("logora:authentication:require", m);
|
|
@@ -41,7 +41,7 @@ const X = ({ authUrl: n, authType: i, provider: g, assertion: p }) => {
|
|
|
41
41
|
if (o.shouldInitAuth()) {
|
|
42
42
|
const t = o.getAuthorizationParams();
|
|
43
43
|
if (t) {
|
|
44
|
-
if (i !== "social" && i !== "oauth2_server" && e.auth?.
|
|
44
|
+
if (i !== "social" && i !== "oauth2_server" && e.auth?.showOnboardingBeforeLogin === !0) {
|
|
45
45
|
u(!0);
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
@@ -53,7 +53,7 @@ const X = ({ authUrl: n, authType: i, provider: g, assertion: p }) => {
|
|
|
53
53
|
const r = d().getAuthorizationParams();
|
|
54
54
|
await c(r), await w.update("users", k.slug, o), u(!1);
|
|
55
55
|
}, d = () => M.create(i, g, p);
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ f(I, { children: v && /* @__PURE__ */ f(
|
|
57
57
|
j,
|
|
58
58
|
{
|
|
59
59
|
pendingAuth: !0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../../assets/components/progress/progress_bar/ProgressBar.module-
|
|
1
|
+
import '../../../assets/components/progress/progress_bar/ProgressBar.module-C9_77ipX.css';const r = "_progressContainer_w34dy_3", t = "_titleContainer_w34dy_9", s = "_title_w34dy_9", e = "_subtitleContainer_w34dy_24", o = "_progressSubtitle_w34dy_29", n = "_progressBarContainer_w34dy_35", _ = "_currentProgressBar_w34dy_47", a = "_progressBar_w34dy_35", i = "_progressBarContent_w34dy_77", g = {
|
|
2
2
|
progressContainer: r,
|
|
3
|
-
titleContainer:
|
|
4
|
-
title:
|
|
5
|
-
subtitleContainer:
|
|
3
|
+
titleContainer: t,
|
|
4
|
+
title: s,
|
|
5
|
+
subtitleContainer: e,
|
|
6
6
|
progressSubtitle: o,
|
|
7
7
|
progressBarContainer: n,
|
|
8
8
|
currentProgressBar: _,
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
i as progressBarContent,
|
|
18
18
|
r as progressContainer,
|
|
19
19
|
o as progressSubtitle,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
e as subtitleContainer,
|
|
21
|
+
s as title,
|
|
22
|
+
t as titleContainer
|
|
23
23
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._progressContainer_1s80e_3{display:flex!important;flex-direction:column!important;width:100%}._titleContainer_1s80e_9{display:flex!important;flex-direction:column!important}@container (min-width: 576px){._titleContainer_1s80e_9{flex-direction:row!important}}._title_1s80e_9{width:100%;font-weight:var(--font-weight-bold, 700)}._subtitleContainer_1s80e_24{width:100%;text-align:right}._progressSubtitle_1s80e_29{margin-right:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;color:var(--text-secondary, #5F5F5F);font-size:var(--font-size-small, 16px)}._progressBarContainer_1s80e_35{position:relative;background:var(--background-color-secondary, #E8E8E8);border-radius:var(--box-border-radius, 6px)!important;overflow:hidden;display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap}._currentProgressBar_1s80e_47{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:left;white-space:nowrap;color:var(--text-light, white);-webkit-transition:width 1.2s ease!important;transition:width 1.2s ease!important}._progressBar_1s80e_35{display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap;background-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px)!important;height:100%;color:var(--text-light, white);animation:_progressBarAnimation_1s80e_1 1.2s ease;animation-fill-mode:both;-webkit-animation:_progressBarAnimation_1s80e_1 1.2s ease;-webkit-animation-fill-mode:both;-moz-animation:_progressBarAnimation_1s80e_1 1.2s ease;-moz-animation-fill-mode:both}._progressBarContent_1s80e_77{text-align:left;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;color:var(--text-light, white);font-size:var(--font-size-normal, 16px);font-weight:var(--font-weight-normal, 400);min-height:.5em}@keyframes _progressBarAnimation_1s80e_1{0%{width:0}to{width:100%}}
|