@qratilabs/qrati-connect 1.12.0 → 1.13.1
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/AuthLayout-CH5FXY-T.js +43 -0
- package/AuthLayout-onQ5R6LB.js +42 -0
- package/CHANGELOG.md +26 -0
- package/{CPIOZS5X-DANHoUMH.js → CPIOZS5X-DckjLYym.js} +2 -2
- package/{CPIOZS5X-BorecCp-.js → CPIOZS5X-LbR6EdQW.js} +1 -1
- package/{ContentsPage-CZHv2q4p.js → ContentsPage-CMKIaaQC.js} +4 -4
- package/{ContentsPage-DVQahVsy.js → ContentsPage-ivyVadVc.js} +4 -4
- package/CuratePage-BMZDtwqJ.js +586 -0
- package/CuratePage-CxeKhe-l.js +587 -0
- package/{Dialog-CgGoiE6_.js → Dialog-CKJzmol0.js} +26 -26
- package/{Dialog-Cv43KmPi.js → Dialog-CYe7iNhh.js} +17 -17
- package/{DotLottiePlayer-CFEx0sKD.js → DotLottiePlayer-B6JCLNM-.js} +1 -1
- package/{DotLottiePlayer-BomLEsxz.js → DotLottiePlayer-_ni5RzY_.js} +1 -1
- package/ForgotPasswordPage-BMHvbC-O.js +417 -0
- package/ForgotPasswordPage-DWx2X6CY.js +416 -0
- package/{LazyLoadImage-CMDdqI0N.js → LazyLoadImage-CSzgw7bg.js} +1 -1
- package/{LazyLoadImage-BCbT8tZG.js → LazyLoadImage-CZbx1DkI.js} +1 -1
- package/{LeaderboardPage-Dp-unzO-.js → LeaderboardPage-C31Q4-gB.js} +34 -43
- package/{LeaderboardPage-yea5g0IT.js → LeaderboardPage-D-CEIKne.js} +37 -46
- package/{LoginPage-BqFXPRQ6.js → LoginPage-8Gi795ym.js} +18 -18
- package/{LoginPage-dIFEWgtl.js → LoginPage-PGczQeeH.js} +24 -24
- package/{MediaGallery-D4KjZC3u.js → MediaGallery-BTnEROhC.js} +132 -131
- package/{MediaGallery-BrWVzHw3.js → MediaGallery-tqTlitM3.js} +141 -140
- package/{OKF6E45R-DJ8Nk9Om.js → OKF6E45R-C70gaOOc.js} +2 -2
- package/PublicEvents-flHKILbM.js +85 -0
- package/PublicEvents-uIMBCa8-.js +86 -0
- package/{RegisterPage-D1bFgjmw.js → RegisterPage-BBeLtvKK.js} +32 -30
- package/{RegisterPage-DJb8u766.js → RegisterPage-D4EYQQaB.js} +53 -53
- package/{SocialLoginButton-DYoP_6hE.js → SocialLoginButton-44rjWfNr.js} +1 -1
- package/{SocialLoginButton-D84qIMBs.js → SocialLoginButton-Cvl-_1Bd.js} +1 -1
- package/{UploadPage-TUhrm8nm.js → UploadPage-CJ2VN2WU.js} +3005 -3014
- package/{UploadPage-LiXqxvz2.js → UploadPage-GRY47CEV.js} +2769 -2778
- package/{VideoPlayer-W1iQJ188.js → VideoPlayer-CNKBrY1i.js} +1 -1
- package/{VideoPlayer-eG5fGmeF.js → VideoPlayer-kddripdk.js} +1 -1
- package/{WXAWMS3D-CM6g8uiV.js → WXAWMS3D-Cj3x0Qtu.js} +1 -1
- package/{_commonjsHelpers-BItOPCY9.js → _commonjsHelpers-B4e78b8K.js} +2 -2
- package/element.es.js +1 -1
- package/{heic2any-CfcEtxYJ.js → heic2any-C3MoPTNZ.js} +1 -1
- package/{heic2any-DmuwhcfW.js → heic2any-Dw-psmnv.js} +1 -1
- package/{index-Cxh1oACO.js → index-BEFWM8Pj.js} +15019 -14486
- package/{index-Cpnhn0qY.js → index-Chw_P5IW.js} +4584 -4054
- package/{index-Cr2lQ20J.js → index-DFITz3k1.js} +1 -1
- package/{index-rIZclAGD.js → index-O4xJCcGD.js} +1 -1
- package/{index.esm-D5I3rEz4.js → index.esm-CVvb0kij.js} +3 -3
- package/{index.esm-BuyJTnRt.js → index.esm-uqYKJMoZ.js} +2 -2
- package/package.json +8 -9
- package/{photoswipe-DBzOkmWq.js → photoswipe-DAJ8P9a3.js} +1 -1
- package/{photoswipe-CptzYZiR.js → photoswipe-RL86Ayi7.js} +1 -1
- package/qrati-connect.css +1 -1
- package/react.es.js +1 -1
- package/styles.css +1 -2083
- package/web.es.js +1 -1
- package/AuthLayout-C2VNuOBg.js +0 -38
- package/AuthLayout-CeeW8xpE.js +0 -37
- package/CuratePage-CL_yVt7d.js +0 -608
- package/CuratePage-DRt6otwq.js +0 -609
- package/ForgotPasswordPage-CFX6YV5p.js +0 -1800
- package/ForgotPasswordPage-DIowNaGR.js +0 -1797
- package/PublicEvents-D00aVRFr.js +0 -409
- package/PublicEvents-g3Q8ytbg.js +0 -408
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as x, u as o, j as e, S as r, N as u, e as n, c as q, P as a, T as i, O as h } from "./index-Chw_P5IW.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const b = () => {
|
|
4
|
+
var t;
|
|
5
|
+
const s = x(), { user: m, organizationLoading: d, loadingUser: l, organization: c } = o();
|
|
6
|
+
return d || l ? /* @__PURE__ */ e.jsxs("div", { className: "qc-mx-auto qc-min-h-screen qc-max-w-lg qc-space-y-8 qc-py-8", children: [
|
|
7
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
8
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
9
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
10
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" })
|
|
11
|
+
] }) : m ? /* @__PURE__ */ e.jsx(u, { replace: !0, to: ((t = s == null ? void 0 : s.state) == null ? void 0 : t.referrer) || "/" }) : c != null && c.customAuth ? null : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
|
|
12
|
+
/* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx(
|
|
14
|
+
n,
|
|
15
|
+
{
|
|
16
|
+
to: a.LOGIN,
|
|
17
|
+
state: s == null ? void 0 : s.state,
|
|
18
|
+
className: q(
|
|
19
|
+
s.pathname === a.LOGIN ? "qc-border-brand" : "qc-border-primary",
|
|
20
|
+
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
21
|
+
),
|
|
22
|
+
children: /* @__PURE__ */ e.jsx(i, { variant: "h5", align: "center", children: "Login" })
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ e.jsx(
|
|
26
|
+
n,
|
|
27
|
+
{
|
|
28
|
+
to: a.REGISTER,
|
|
29
|
+
state: s == null ? void 0 : s.state,
|
|
30
|
+
className: q(
|
|
31
|
+
s.pathname === a.REGISTER ? "qc-border-brand" : "qc-border-primary",
|
|
32
|
+
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
33
|
+
),
|
|
34
|
+
children: /* @__PURE__ */ e.jsx(i, { variant: "h5", align: "center", children: "Register" })
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(h, {})
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
b as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { a as x, u as o, j as e, S as r, N as u, e as n, c as q, P as a, T as i, U as h } from "./index-BEFWM8Pj.js";
|
|
2
|
+
const b = () => {
|
|
3
|
+
var t;
|
|
4
|
+
const s = x(), { user: m, organizationLoading: d, loadingUser: l, organization: c } = o();
|
|
5
|
+
return d || l ? /* @__PURE__ */ e.jsxs("div", { className: "qc-mx-auto qc-min-h-screen qc-max-w-lg qc-space-y-8 qc-py-8", children: [
|
|
6
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
7
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
8
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" }),
|
|
9
|
+
/* @__PURE__ */ e.jsx(r, { className: "qc-h-8" })
|
|
10
|
+
] }) : m ? /* @__PURE__ */ e.jsx(u, { replace: !0, to: ((t = s == null ? void 0 : s.state) == null ? void 0 : t.referrer) || "/" }) : c != null && c.customAuth ? null : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
|
|
11
|
+
/* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
|
|
12
|
+
/* @__PURE__ */ e.jsx(
|
|
13
|
+
n,
|
|
14
|
+
{
|
|
15
|
+
to: a.LOGIN,
|
|
16
|
+
state: s == null ? void 0 : s.state,
|
|
17
|
+
className: q(
|
|
18
|
+
s.pathname === a.LOGIN ? "qc-border-brand" : "qc-border-primary",
|
|
19
|
+
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
20
|
+
),
|
|
21
|
+
children: /* @__PURE__ */ e.jsx(i, { variant: "h5", align: "center", children: "Login" })
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ e.jsx(
|
|
25
|
+
n,
|
|
26
|
+
{
|
|
27
|
+
to: a.REGISTER,
|
|
28
|
+
state: s == null ? void 0 : s.state,
|
|
29
|
+
className: q(
|
|
30
|
+
s.pathname === a.REGISTER ? "qc-border-brand" : "qc-border-primary",
|
|
31
|
+
"qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
|
|
32
|
+
),
|
|
33
|
+
children: /* @__PURE__ */ e.jsx(i, { variant: "h5", align: "center", children: "Register" })
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ e.jsx(h, {})
|
|
38
|
+
] });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
b as default
|
|
42
|
+
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# [1.13.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.12.0...v1.13.0) (2025-04-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add console log for parsed query string in PublicEvents component ([ffbf3bf](https://github.com/qrati-labs/qrati-connect-js/commit/ffbf3bf218156cdb5e7fae2e5e524b6dc97bc400))
|
|
7
|
+
* handle loading states in AuthLayout with Shimmer component ([6a69450](https://github.com/qrati-labs/qrati-connect-js/commit/6a6945054107d9ef920e5267923a148d6f03215d))
|
|
8
|
+
* update Vite config to include custom CSS file name and remove unnecessary file copy ([fa51e42](https://github.com/qrati-labs/qrati-connect-js/commit/fa51e42e55c733645c0468a93fccc23bbd23aa87))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add router prop to QratiConnect component and update PropsContext documentation ([379563b](https://github.com/qrati-labs/qrati-connect-js/commit/379563b81c29ca7eb9445717db4ebec75ccd98ee))
|
|
14
|
+
|
|
15
|
+
# [1.12.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.6...v1.12.0) (2025-04-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* update organizationId in Demo component; simplify ForgotPassword link styling; handle potential undefined email in ForgotPasswordStep1 ([01d0bd9](https://github.com/qrati-labs/qrati-connect-js/commit/01d0bd9998f0370709a24232f8ee51744e83bbb9))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add ForgotPasswordPage component and routing; include ProgressDots for step navigation; update styles for OTP input ([a5b93a2](https://github.com/qrati-labs/qrati-connect-js/commit/a5b93a2c8d039eceabf5eabf9fd4b11a565d818f))
|
|
26
|
+
|
|
1
27
|
## [1.11.6](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.5...v1.11.6) (2025-04-04)
|
|
2
28
|
|
|
3
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-Cj3x0Qtu.js";
|
|
2
|
+
import { M as d, U as f, V as e } from "./index-Chw_P5IW.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ps = Object.defineProperty;
|
|
2
2
|
var ws = (e, t, n) => t in e ? ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => ws(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import {
|
|
4
|
+
import { X as we, Y as z, Z as Nt, _ as U, $ as D, a0 as y, a1 as Oo, a2 as K, a3 as _, a4 as k, a5 as V, a6 as F, a7 as xs, a8 as rr, a9 as xe, aa as j, ab as Vn, ac as Gn, ad as ut, ae as A, af as $s, ag as Dn, ah as Ne, ai as Cs, aj as Pt, ak as qt, al as Ss, am as ks, an as pn, ao as Es, ap as Rr, aq as Rt, ar as _o, as as Ds, at as Ms, au as W, av as zr, aw as As, ax as Fs, ay as or, az as Ts, aA as Is, aB as Rn, aC as Ls, aD as Ps, aE as oe, aF as Os, aG as _s, aH as qs } from "./index-BEFWM8Pj.js";
|
|
5
5
|
var Rs = (e) => e != null, zs = (e) => e.filter(Rs);
|
|
6
6
|
function Ks(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as Z, i as G, h as tt, f as et, g as rt, b as O, u as D, l as v, k as _, A as j, m as A, D as L, n as z, o as nt, C as N, p as at, j as s, c as b, q as st, r as Q, s as ot, t as E, v as it, w as lt, S as ct, x as ft, P as ht, E as ut } from "./index-
|
|
1
|
+
import { Q as Z, i as G, h as tt, f as et, g as rt, b as O, u as D, l as v, k as _, A as j, m as A, D as L, n as z, o as nt, C as N, p as at, j as s, c as b, q as st, r as Q, s as ot, t as E, v as it, w as lt, S as ct, x as ft, P as ht, E as ut } from "./index-Chw_P5IW.js";
|
|
2
2
|
import T, { useRef as dt, useMemo as C, Component as mt, useState as H, useEffect as pt, lazy as xt } from "react";
|
|
3
3
|
var gt = class extends Z {
|
|
4
4
|
constructor(r, n) {
|
|
@@ -360,7 +360,7 @@ const Pt = () => {
|
|
|
360
360
|
}, qt = ({
|
|
361
361
|
engagementStyle: r,
|
|
362
362
|
sort: n = L,
|
|
363
|
-
|
|
363
|
+
order: e = z,
|
|
364
364
|
onSortChange: t,
|
|
365
365
|
onSortOrderChange: a
|
|
366
366
|
}) => {
|
|
@@ -567,11 +567,11 @@ var Lt = (
|
|
|
567
567
|
}, n;
|
|
568
568
|
}(mt)
|
|
569
569
|
);
|
|
570
|
-
const zt = xt(() => import("./MediaGallery-
|
|
570
|
+
const zt = xt(() => import("./MediaGallery-BTnEROhC.js").then((r) => r.M)), It = () => {
|
|
571
571
|
const { eventSlug: r } = it(), { loadingUser: n } = D(), [e, t] = H(L), [a, o] = H(z), { event: l, ads: i } = lt({ eventSlug: r }), { loading: f, contentsWithAds: c, hasNextPage: u, fetchNextPage: h } = Nt({ event: l, ads: i, sort: e, order: a }), { incrementEventView: x } = Pt();
|
|
572
572
|
return pt(() => {
|
|
573
573
|
l && x(l == null ? void 0 : l.slug);
|
|
574
|
-
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: "qc-mx-auto qc-mt-6 qc-space-y-6", children: [
|
|
574
|
+
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: "qc-mx-auto qc-mt-6 qc-min-h-96 qc-space-y-6", children: [
|
|
575
575
|
/* @__PURE__ */ s.jsx("div", { className: "qc-flex qc-justify-end", children: /* @__PURE__ */ s.jsx(
|
|
576
576
|
qt,
|
|
577
577
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as X, i as G, h as Z, f as tt, g as et, l as v, b as O, u as D, m as w, k as _, A as N, n as j, D as L, o as z, p as rt, C, q as nt, j as s, c as P, s as at, t as W, v as st, w as T, R as S, x as ot, y as it, S as lt, z as ct, P as ft, E as ht } from "./index-
|
|
1
|
+
import { Q as X, i as G, h as Z, f as tt, g as et, l as v, b as O, u as D, m as w, k as _, A as N, n as j, D as L, o as z, p as rt, C, q as nt, j as s, c as P, s as at, t as W, v as st, w as T, R as S, x as ot, y as it, S as lt, z as ct, P as ft, E as ht } from "./index-BEFWM8Pj.js";
|
|
2
2
|
var ut = class extends X {
|
|
3
3
|
constructor(r, n) {
|
|
4
4
|
super(r, n);
|
|
@@ -359,7 +359,7 @@ const yt = () => {
|
|
|
359
359
|
}, jt = ({
|
|
360
360
|
engagementStyle: r,
|
|
361
361
|
sort: n = L,
|
|
362
|
-
|
|
362
|
+
order: e = z,
|
|
363
363
|
onSortChange: t,
|
|
364
364
|
onSortOrderChange: a
|
|
365
365
|
}) => {
|
|
@@ -566,11 +566,11 @@ var Ct = (
|
|
|
566
566
|
}, n;
|
|
567
567
|
}(v.Component)
|
|
568
568
|
);
|
|
569
|
-
const Rt = v.lazy(() => import("./MediaGallery-
|
|
569
|
+
const Rt = v.lazy(() => import("./MediaGallery-tqTlitM3.js").then((r) => r.M)), qt = () => {
|
|
570
570
|
const { eventSlug: r } = ot(), { loadingUser: n } = D(), [e, t] = v.useState(L), [a, o] = v.useState(z), { event: l, ads: i } = it({ eventSlug: r }), { loading: f, contentsWithAds: c, hasNextPage: u, fetchNextPage: h } = bt({ event: l, ads: i, sort: e, order: a }), { incrementEventView: x } = yt();
|
|
571
571
|
return v.useEffect(() => {
|
|
572
572
|
l && x(l == null ? void 0 : l.slug);
|
|
573
|
-
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: "qc-mx-auto qc-mt-6 qc-space-y-6", children: [
|
|
573
|
+
}, [l]), /* @__PURE__ */ s.jsxs("div", { className: "qc-mx-auto qc-mt-6 qc-min-h-96 qc-space-y-6", children: [
|
|
574
574
|
/* @__PURE__ */ s.jsx("div", { className: "qc-flex qc-justify-end", children: /* @__PURE__ */ s.jsx(
|
|
575
575
|
jt,
|
|
576
576
|
{
|