@qratilabs/qrati-connect 1.11.6 → 1.13.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.
Files changed (56) hide show
  1. package/AuthLayout-Bs1RLdvQ.js +42 -0
  2. package/AuthLayout-dF-iIwRH.js +43 -0
  3. package/CHANGELOG.md +19 -0
  4. package/{CPIOZS5X-Cpn_mhOX.js → CPIOZS5X-ChJTjnx0.js} +1 -1
  5. package/{CPIOZS5X-BSstqGG_.js → CPIOZS5X-DJWVNckH.js} +2 -2
  6. package/{ContentsPage-RiT6kUjx.js → ContentsPage-BffPvwo3.js} +4 -4
  7. package/{ContentsPage-pBMHPSXz.js → ContentsPage-BmyukIAZ.js} +4 -4
  8. package/CuratePage-D_cKsfYh.js +586 -0
  9. package/CuratePage-Dl-MU2gJ.js +587 -0
  10. package/{Dialog-WfHGpbEh.js → Dialog-Bs4eqKx1.js} +17 -17
  11. package/{Dialog-DQeFyfX-.js → Dialog-DcunCxOe.js} +47 -47
  12. package/{DotLottiePlayer-DBU1DweJ.js → DotLottiePlayer-Qv7eCaWS.js} +1 -1
  13. package/{DotLottiePlayer-DnGRIX9j.js → DotLottiePlayer-mRqwkycQ.js} +1 -1
  14. package/ForgotPasswordPage-C8aVLBUy.js +417 -0
  15. package/ForgotPasswordPage-aHSXZbnP.js +416 -0
  16. package/{LazyLoadImage-l2_fiQFV.js → LazyLoadImage-Bu3H9BYF.js} +1 -1
  17. package/{LazyLoadImage-CtYNbO0V.js → LazyLoadImage-C4DrWhgv.js} +1 -1
  18. package/{LeaderboardPage-pf4hXHsY.js → LeaderboardPage-CJb2f2J3.js} +37 -46
  19. package/{LeaderboardPage-CcCdTRZF.js → LeaderboardPage-Du83m7s6.js} +34 -43
  20. package/{LoginPage-DDo0QW9I.js → LoginPage-CdkQbaYh.js} +34 -32
  21. package/LoginPage-dUv3BunJ.js +116 -0
  22. package/{MediaGallery-gIfjbuLM.js → MediaGallery-Dz3a_sTA.js} +871 -872
  23. package/{MediaGallery-DaVH7tnL.js → MediaGallery-tTSBNtL4.js} +880 -881
  24. package/{OKF6E45R-YbG94d6r.js → OKF6E45R-YseNpL64.js} +2 -2
  25. package/PublicEvents-Ctiea8xP.js +85 -0
  26. package/PublicEvents-DTexNwNy.js +86 -0
  27. package/{RegisterPage-CpjNOJU3.js → RegisterPage-CAEzZD-F.js} +29 -26
  28. package/{RegisterPage-DJ8FAzof.js → RegisterPage-rkC8UwqD.js} +53 -52
  29. package/SocialLoginButton-BngjIjbF.js +32 -0
  30. package/SocialLoginButton-D_OTbZmM.js +32 -0
  31. package/{UploadPage-DlTsMBXf.js → UploadPage-CLU2vCbM.js} +2765 -2780
  32. package/{UploadPage-CfFZFp_p.js → UploadPage-CultBfQr.js} +2995 -3010
  33. package/{VideoPlayer-DnJPEyWI.js → VideoPlayer-BVmS1z9L.js} +1 -1
  34. package/{VideoPlayer-r90lNORm.js → VideoPlayer-C4Zuy6-h.js} +1 -1
  35. package/{WXAWMS3D-3jDe9YEc.js → WXAWMS3D-D8CAMzKF.js} +1 -1
  36. package/element.es.js +1 -1
  37. package/{heic2any-DwyIXiZb.js → heic2any-Po6wRjoV.js} +1 -1
  38. package/{index-aJqEl32o.js → index-BNUsJeuN.js} +4598 -4064
  39. package/{index-C_SoH4i4.js → index-ChzsjYLR.js} +1 -1
  40. package/{index-DBJc8aGT.js → index-DDegEMhn.js} +15024 -14487
  41. package/{index.esm-Dn93q3tG.js → index.esm-BASZTpmc.js} +112 -140
  42. package/{index.esm-B20idR_b.js → index.esm-Bf-WsYLs.js} +112 -140
  43. package/package.json +9 -8
  44. package/{photoswipe-mTXhTEM5.js → photoswipe-DW9dMXRX.js} +1 -1
  45. package/{photoswipe-SXGuxPZM.js → photoswipe-U18MJHcG.js} +1 -1
  46. package/qrati-connect.css +1 -1
  47. package/react.es.js +1 -1
  48. package/styles.css +1 -2083
  49. package/web.es.js +1 -1
  50. package/AuthLayout-CC5IwAHM.js +0 -37
  51. package/AuthLayout-Ccmi5-rs.js +0 -38
  52. package/CuratePage-C5Y4z40W.js +0 -608
  53. package/CuratePage-U3UWtzLC.js +0 -609
  54. package/LoginPage-AjxKwE1E.js +0 -114
  55. package/PublicEvents-BTNS13Wn.js +0 -409
  56. package/PublicEvents-DpwUcfY5.js +0 -408
@@ -0,0 +1,42 @@
1
+ import { a as x, u as l, j as e, S as a, N as o, e as t, c as n, P as r, T as q, U as h } from "./index-DDegEMhn.js";
2
+ const j = () => {
3
+ var c;
4
+ const s = x(), { user: i, organizationLoading: d, loadingUser: m } = l();
5
+ return d || m ? /* @__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(a, { className: "qc-h-8" }),
7
+ /* @__PURE__ */ e.jsx(a, { className: "qc-h-8" }),
8
+ /* @__PURE__ */ e.jsx(a, { className: "qc-h-8" }),
9
+ /* @__PURE__ */ e.jsx(a, { className: "qc-h-8" })
10
+ ] }) : i ? /* @__PURE__ */ e.jsx(o, { replace: !0, to: ((c = s == null ? void 0 : s.state) == null ? void 0 : c.referrer) || "/" }) : /* @__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
+ t,
14
+ {
15
+ to: r.LOGIN,
16
+ state: s == null ? void 0 : s.state,
17
+ className: n(
18
+ s.pathname === r.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(q, { variant: "h5", align: "center", children: "Login" })
22
+ }
23
+ ),
24
+ /* @__PURE__ */ e.jsx(
25
+ t,
26
+ {
27
+ to: r.REGISTER,
28
+ state: s == null ? void 0 : s.state,
29
+ className: n(
30
+ s.pathname === r.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(q, { variant: "h5", align: "center", children: "Register" })
34
+ }
35
+ )
36
+ ] }),
37
+ /* @__PURE__ */ e.jsx(h, {})
38
+ ] });
39
+ };
40
+ export {
41
+ j as default
42
+ };
@@ -0,0 +1,43 @@
1
+ import { a as x, u as o, j as e, S as r, N as l, e as t, c as n, P as a, T as i, O as h } from "./index-BNUsJeuN.js";
2
+ import "react";
3
+ const p = () => {
4
+ var c;
5
+ const s = x(), { user: q, organizationLoading: m, loadingUser: d } = o();
6
+ return m || d ? /* @__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
+ ] }) : q ? /* @__PURE__ */ e.jsx(l, { replace: !0, to: ((c = s == null ? void 0 : s.state) == null ? void 0 : c.referrer) || "/" }) : /* @__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
+ t,
15
+ {
16
+ to: a.LOGIN,
17
+ state: s == null ? void 0 : s.state,
18
+ className: n(
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
+ t,
27
+ {
28
+ to: a.REGISTER,
29
+ state: s == null ? void 0 : s.state,
30
+ className: n(
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
+ p as default
43
+ };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [1.12.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.6...v1.12.0) (2025-04-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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))
7
+
8
+
9
+ ### Features
10
+
11
+ * 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))
12
+
13
+ ## [1.11.6](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.5...v1.11.6) (2025-04-04)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * update eslint-plugin-react to version 7.37.5; update object.entries to version 1.1.9 in package.json and package-lock.json; improve error handling in useReaction hook ([3cc05f4](https://github.com/qrati-labs/qrati-connect-js/commit/3cc05f4d08e26a98b1320d33ba208c6b39c1d8a0))
19
+
1
20
  ## [1.11.5](https://github.com/qrati-labs/qrati-connect-js/compare/v1.11.4...v1.11.5) (2025-04-03)
2
21
 
3
22
 
@@ -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 { U as we, V as z, W as Nt, X as U, Y as D, Z as y, _ as Oo, $ as K, a0 as _, a1 as k, a2 as V, a3 as F, a4 as xs, a5 as rr, a6 as xe, a7 as j, a8 as Vn, a9 as Gn, aa as ut, ab as A, ac as $s, ad as Dn, ae as Ne, af as Cs, ag as Pt, ah as qt, ai as Ss, aj as ks, ak as pn, al as Es, am as Rr, an as Rt, ao as _o, ap as Ds, aq as Ms, ar as W, as as zr, at as As, au as Fs, av as or, aw as Ts, ax as Is, ay as Rn, az as Ls, aA as Ps, aB as oe, aC as Os, aD as _s, aE as qs } from "./index-DBJc8aGT.js";
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-DDegEMhn.js";
5
5
  var Rs = (e) => e != null, zs = (e) => e.filter(Rs);
6
6
  function Ks(e) {
7
7
  return (...t) => {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-3jDe9YEc.js";
2
- import { J as d, K as f, L as e } from "./index-aJqEl32o.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-D8CAMzKF.js";
2
+ import { M as d, U as f, V as e } from "./index-BNUsJeuN.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -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-DBJc8aGT.js";
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-DDegEMhn.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
- sortOrder: e = z,
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-DaVH7tnL.js").then((r) => r.M)), qt = () => {
569
+ const Rt = v.lazy(() => import("./MediaGallery-tTSBNtL4.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
  {
@@ -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-aJqEl32o.js";
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-BNUsJeuN.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
- sortOrder: e = z,
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-gIfjbuLM.js").then((r) => r.M)), It = () => {
570
+ const zt = xt(() => import("./MediaGallery-Dz3a_sTA.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
  {