@qratilabs/qrati-connect 1.8.0 → 1.10.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 (57) hide show
  1. package/AuthLayout-BxUYOBpE.js +38 -0
  2. package/AuthLayout-C7l9e-G1.js +37 -0
  3. package/CHANGELOG.md +30 -0
  4. package/{J3FDRF32-6p1dBdLp.js → CPIOZS5X-BWycO6l2.js} +2 -2
  5. package/{J3FDRF32-Bp3M65R5.js → CPIOZS5X-D9XqRoTK.js} +17 -33
  6. package/ContentsPage-BLpJKpqc.js +679 -0
  7. package/ContentsPage-BTgFTDZi.js +678 -0
  8. package/CuratePage-B7EXPvsq.js +609 -0
  9. package/CuratePage-is7CgIin.js +608 -0
  10. package/Dialog-Cqa57c6g.js +1290 -0
  11. package/Dialog-DWiUeV0t.js +1289 -0
  12. package/DotLottiePlayer-BlER6aEn.js +1980 -0
  13. package/DotLottiePlayer-SZjYMgDf.js +1979 -0
  14. package/{LazyLoadImage-C3ZaUTsk.js → LazyLoadImage-Be2cGg73.js} +5 -4
  15. package/{LazyLoadImage-Y0cG88Sq.js → LazyLoadImage-CHZA77IL.js} +8 -7
  16. package/{LeaderboardPage-B3VZgrr8.js → LeaderboardPage-B55r8LaX.js} +41 -45
  17. package/{LeaderboardPage-BSfckN67.js → LeaderboardPage-D--mHiRD.js} +45 -47
  18. package/LoginPage-C_gdaLjP.js +113 -0
  19. package/LoginPage-QmbEnJTF.js +114 -0
  20. package/MediaGallery-BCM5A-EQ.js +29170 -0
  21. package/MediaGallery-C6m7U8kU.js +3972 -0
  22. package/{3VW64HDT-DuvU3jIh.js → OKF6E45R-BD3fuGyE.js} +2 -2
  23. package/PublicEvents-BErXZnAE.js +408 -0
  24. package/PublicEvents-BbcQaJj_.js +409 -0
  25. package/README.md +57 -0
  26. package/RegisterPage-BBgg74yb.js +210 -0
  27. package/RegisterPage-Pi-SiYQN.js +209 -0
  28. package/{UploadPage-BmUR7ALg.js → UploadPage-BI24L4i7.js} +4678 -4494
  29. package/{UploadPage-C9VSKEp0.js → UploadPage-roO0vARL.js} +4741 -4557
  30. package/{VideoPlayer-C6xnKxO2.js → VideoPlayer-BN3OYTe5.js} +5 -5
  31. package/{VideoPlayer-BDsOAPg7.js → VideoPlayer-BbwQoExZ.js} +1 -1
  32. package/{67EVQ76A-Bsw8V4Xf.js → WXAWMS3D-BC359dEc.js} +185 -201
  33. package/element.es.js +1 -1
  34. package/{heic2any-Cbc9rTmA.js → heic2any-BrOWkrlZ.js} +1 -1
  35. package/{index-Bl7A9vuz.js → index-BM0tcE5T.js} +12155 -9688
  36. package/{index-dvqcn_Op.js → index-BsbR3L0_.js} +1 -1
  37. package/index-DxSczReH.js +44848 -0
  38. package/index.esm-BF7dzisv.js +2720 -0
  39. package/index.esm-Do9U9b2W.js +2721 -0
  40. package/package.json +23 -19
  41. package/{photoswipe-BQTJ5bbI.js → photoswipe-Bhyg6OYU.js} +1 -1
  42. package/{photoswipe-Dy0OHhXa.js → photoswipe-D0qyMrPo.js} +1 -1
  43. package/qrati-connect.css +1 -1
  44. package/react.es.js +1 -1
  45. package/styles.css +2083 -1
  46. package/web.es.js +1 -1
  47. package/Combination-BI3VsuBs.js +0 -998
  48. package/Combination-Bcl5IEvs.js +0 -997
  49. package/ContentsPage-BOzNVYau.js +0 -4340
  50. package/ContentsPage-MNAsMesw.js +0 -4343
  51. package/DotLottiePlayer-BOaFaO0F.js +0 -1907
  52. package/DotLottiePlayer-DdiZl-Jg.js +0 -1908
  53. package/PublicEvents-By7h-8Xg.js +0 -48
  54. package/PublicEvents-CXxVpgwR.js +0 -49
  55. package/RatePage-BKzUys2W.js +0 -892
  56. package/RatePage-DHT0wvCu.js +0 -890
  57. package/index-B5avJr6D.js +0 -42184
@@ -0,0 +1,38 @@
1
+ import { a as i, u as q, j as e, N as o, e as t, c, P as a, T as n, O as m } from "./index-BM0tcE5T.js";
2
+ import "react";
3
+ const b = () => {
4
+ var s;
5
+ const r = i(), { user: d } = q();
6
+ return d ? /* @__PURE__ */ e.jsx(o, { replace: !0, to: ((s = r == null ? void 0 : r.state) == null ? void 0 : s.referrer) || "/" }) : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
7
+ /* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
8
+ /* @__PURE__ */ e.jsx(
9
+ t,
10
+ {
11
+ to: a.LOGIN,
12
+ state: r == null ? void 0 : r.state,
13
+ className: c(
14
+ r.pathname === a.LOGIN ? "qc-border-brand" : "qc-border-primary",
15
+ "qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
16
+ ),
17
+ children: /* @__PURE__ */ e.jsx(n, { variant: "h5", align: "center", children: "Login" })
18
+ }
19
+ ),
20
+ /* @__PURE__ */ e.jsx(
21
+ t,
22
+ {
23
+ to: a.REGISTER,
24
+ state: r == null ? void 0 : r.state,
25
+ className: c(
26
+ r.pathname === a.REGISTER ? "qc-border-brand" : "qc-border-primary",
27
+ "qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
28
+ ),
29
+ children: /* @__PURE__ */ e.jsx(n, { variant: "h5", align: "center", children: "Register" })
30
+ }
31
+ )
32
+ ] }),
33
+ /* @__PURE__ */ e.jsx(m, {})
34
+ ] });
35
+ };
36
+ export {
37
+ b as default
38
+ };
@@ -0,0 +1,37 @@
1
+ import { a as q, u as i, j as e, N as o, e as c, c as t, P as a, T as n, O as x } from "./index-DxSczReH.js";
2
+ const u = () => {
3
+ var s;
4
+ const r = q(), { user: d } = i();
5
+ return d ? /* @__PURE__ */ e.jsx(o, { replace: !0, to: ((s = r == null ? void 0 : r.state) == null ? void 0 : s.referrer) || "/" }) : /* @__PURE__ */ e.jsxs("div", { className: "qc-bg-primary qc-mx-auto qc-min-h-96 qc-max-w-md", children: [
6
+ /* @__PURE__ */ e.jsxs("div", { className: "qc-my-8 qc-flex qc-w-full qc-justify-around", children: [
7
+ /* @__PURE__ */ e.jsx(
8
+ c,
9
+ {
10
+ to: a.LOGIN,
11
+ state: r == null ? void 0 : r.state,
12
+ className: t(
13
+ r.pathname === a.LOGIN ? "qc-border-brand" : "qc-border-primary",
14
+ "qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
15
+ ),
16
+ children: /* @__PURE__ */ e.jsx(n, { variant: "h5", align: "center", children: "Login" })
17
+ }
18
+ ),
19
+ /* @__PURE__ */ e.jsx(
20
+ c,
21
+ {
22
+ to: a.REGISTER,
23
+ state: r == null ? void 0 : r.state,
24
+ className: t(
25
+ r.pathname === a.REGISTER ? "qc-border-brand" : "qc-border-primary",
26
+ "qc-flex-1 qc-border-2 qc-border-x-0 qc-border-t-0 qc-pb-2"
27
+ ),
28
+ children: /* @__PURE__ */ e.jsx(n, { variant: "h5", align: "center", children: "Register" })
29
+ }
30
+ )
31
+ ] }),
32
+ /* @__PURE__ */ e.jsx(x, {})
33
+ ] });
34
+ };
35
+ export {
36
+ u as default
37
+ };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # [1.9.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.8.0...v1.9.0) (2025-03-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove unused Footer import in QratiConnect component ([b5f4980](https://github.com/qrati-labs/qrati-connect-js/commit/b5f4980ded5420e559acd71ce90660e788657950))
7
+ * remove unused global CSS import in QratiConnect component ([578d681](https://github.com/qrati-labs/qrati-connect-js/commit/578d6814c9daabf94c39ae54493a68a91766731e))
8
+ * update Typography component usage and adjust styles in UploadPage ([85a0c80](https://github.com/qrati-labs/qrati-connect-js/commit/85a0c803f1f5351dfa933492202015f86b05cfbe))
9
+
10
+
11
+ ### Features
12
+
13
+ * add authentication routes and pages for login and registration ([3b8dc96](https://github.com/qrati-labs/qrati-connect-js/commit/3b8dc964b3798a3251ef3c95bb71d7d5bc28004a))
14
+ * add footer component and update event routes in the application ([f37f340](https://github.com/qrati-labs/qrati-connect-js/commit/f37f34003f4809f842f80cbdae52399a568704c0))
15
+ * add organizationId prop to MediaGallery component in ContentsPage ([86a2326](https://github.com/qrati-labs/qrati-connect-js/commit/86a2326af437941f9c38f4642e1e6e5668eb6682))
16
+
17
+ # [1.8.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.7.0...v1.8.0) (2025-03-27)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * prevent process.env error by defining process.env in Vite config ([140f2bf](https://github.com/qrati-labs/qrati-connect-js/commit/140f2bf52a818e6d659506827f4ac3151708da1b))
23
+
24
+
25
+ ### Features
26
+
27
+ * add watch scripts for React and Element builds in package.json ([41370ca](https://github.com/qrati-labs/qrati-connect-js/commit/41370ca96ad3cede3140ec0c9a54b385a72f6602))
28
+ * import global CSS styles in QratiConnect component ([5ba70c4](https://github.com/qrati-labs/qrati-connect-js/commit/5ba70c421093eb9398e7b5404fa29bf547b1c59e))
29
+ * integrate Sentry for error tracking and add dependency in package.json ([8ffa108](https://github.com/qrati-labs/qrati-connect-js/commit/8ffa108a90124a26cd7bd60783c0cb911438ec45))
30
+
1
31
  # [1.7.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.6.1...v1.7.0) (2025-03-24)
2
32
 
3
33
 
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./67EVQ76A-Bsw8V4Xf.js";
2
- import { J as d, K as f, L as e } from "./index-Bl7A9vuz.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./WXAWMS3D-BC359dEc.js";
2
+ import { J as d, K as f, L as e } from "./index-BM0tcE5T.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 { T as we, U as z, V as Nt, W as U, X as D, Y as y, Z 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-B5avJr6D.js";
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-DxSczReH.js";
5
5
  var Rs = (e) => e != null, zs = (e) => e.filter(Rs);
6
6
  function Ks(e) {
7
7
  return (...t) => {
@@ -804,23 +804,20 @@ var cl = { data: "" }, ul = (e) => typeof window == "object" ? ((e ? e.querySele
804
804
  }, st = {}, Vo = (e) => {
805
805
  if (typeof e == "object") {
806
806
  let t = "";
807
- for (let n in e)
808
- t += n + Vo(e[n]);
807
+ for (let n in e) t += n + Vo(e[n]);
809
808
  return t;
810
809
  }
811
810
  return e;
812
811
  }, gl = (e, t, n, r, o) => {
813
812
  let s = Vo(e), l = st[s] || (st[s] = ((i) => {
814
813
  let c = 0, f = 11;
815
- for (; c < i.length; )
816
- f = 101 * f + i.charCodeAt(c++) >>> 0;
814
+ for (; c < i.length; ) f = 101 * f + i.charCodeAt(c++) >>> 0;
817
815
  return "go" + f;
818
816
  })(s));
819
817
  if (!st[l]) {
820
818
  let i = s !== e ? e : ((c) => {
821
819
  let f, g, u = [{}];
822
- for (; f = dl.exec(c.replace(fl, "")); )
823
- f[4] ? u.shift() : f[3] ? (g = f[3].replace(Hr, " ").trim(), u.unshift(u[0][g] = u[0][g] || {})) : u[0][f[1]] = f[2].replace(Hr, " ").trim();
820
+ for (; f = dl.exec(c.replace(fl, "")); ) f[4] ? u.shift() : f[3] ? (g = f[3].replace(Hr, " ").trim(), u.unshift(u[0][g] = u[0][g] || {})) : u[0][f[1]] = f[2].replace(Hr, " ").trim();
824
821
  return u[0];
825
822
  })(e);
826
823
  st[l] = Et(o ? { ["@keyframes " + l]: i } : i, n ? "" : "." + l);
@@ -845,21 +842,15 @@ Y.bind({ g: 1 });
845
842
  Y.bind({ k: 1 });
846
843
  function Go(e) {
847
844
  var t, n, r = "";
848
- if (typeof e == "string" || typeof e == "number")
849
- r += e;
850
- else if (typeof e == "object")
851
- if (Array.isArray(e)) {
852
- var o = e.length;
853
- for (t = 0; t < o; t++)
854
- e[t] && (n = Go(e[t])) && (r && (r += " "), r += n);
855
- } else
856
- for (n in e)
857
- e[n] && (r && (r += " "), r += n);
845
+ if (typeof e == "string" || typeof e == "number") r += e;
846
+ else if (typeof e == "object") if (Array.isArray(e)) {
847
+ var o = e.length;
848
+ for (t = 0; t < o; t++) e[t] && (n = Go(e[t])) && (r && (r += " "), r += n);
849
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
858
850
  return r;
859
851
  }
860
852
  function P() {
861
- for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
862
- (e = arguments[n]) && (t = Go(e)) && (r && (r += " "), r += t);
853
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Go(e)) && (r && (r += " "), r += t);
863
854
  return r;
864
855
  }
865
856
  function vl(e, t) {
@@ -2498,15 +2489,13 @@ var ke = (e) => typeof e == "function" ? e() : e, Ma = (e) => {
2498
2489
  const a = ke(e.show);
2499
2490
  return Rt(() => {
2500
2491
  var f;
2501
- if (l === a)
2502
- return a;
2492
+ if (l === a) return a;
2503
2493
  const i = s, c = n();
2504
2494
  a ? o("present") : c === "none" || ((f = t()) == null ? void 0 : f.display) === "none" ? o("hidden") : o(l === !0 && i !== c ? "hiding" : "hidden");
2505
2495
  }), a;
2506
2496
  }), U(() => {
2507
2497
  const l = ke(e.element);
2508
- if (!l)
2509
- return;
2498
+ if (!l) return;
2510
2499
  const a = (c) => {
2511
2500
  c.target === l && (s = n());
2512
2501
  }, i = (c) => {
@@ -4831,12 +4820,10 @@ var bn = /* @__PURE__ */ new Map(), Wc = (e) => {
4831
4820
  );
4832
4821
  return !(n > 0 && Math.abs(s) <= 1 || n < 0 && Math.abs(l) < 1);
4833
4822
  }, nr = (e, t) => {
4834
- if (e.contains(t))
4835
- return !0;
4823
+ if (e.contains(t)) return !0;
4836
4824
  let n = t;
4837
4825
  for (; n; ) {
4838
- if (n === e)
4839
- return !0;
4826
+ if (n === e) return !0;
4840
4827
  n = n._$host ?? n.parentElement;
4841
4828
  }
4842
4829
  return !1;
@@ -6801,8 +6788,7 @@ var md = /* @__PURE__ */ _('<div><div aria-hidden=true></div><button type=button
6801
6788
  target: B().shadowDOMTarget
6802
6789
  }) : Y, r = D(() => t() === "dark" ? We(n) : je(n)), [o, s] = z(!1), l = D(() => e.localStore.position || B().position || jn), a = (f) => {
6803
6790
  const g = f.currentTarget.parentElement;
6804
- if (!g)
6805
- return;
6791
+ if (!g) return;
6806
6792
  s(!0);
6807
6793
  const {
6808
6794
  height: u,
@@ -6834,8 +6820,7 @@ var md = /* @__PURE__ */ _('<div><div aria-hidden=true></div><button type=button
6834
6820
  }), U(() => {
6835
6821
  var v, m;
6836
6822
  const f = (m = (v = i.parentElement) == null ? void 0 : v.parentElement) == null ? void 0 : m.parentElement;
6837
- if (!f)
6838
- return;
6823
+ if (!f) return;
6839
6824
  const g = e.localStore.position || jn, u = $s("padding", g), d = e.localStore.position === "left" || e.localStore.position === "right", h = (({
6840
6825
  padding: b,
6841
6826
  paddingTop: p,
@@ -7632,8 +7617,7 @@ var md = /* @__PURE__ */ _('<div><div aria-hidden=true></div><button type=button
7632
7617
  a(!0), T();
7633
7618
  else {
7634
7619
  const ne = d();
7635
- if (!ne)
7636
- return;
7620
+ if (!ne) return;
7637
7621
  const ye = ne.options;
7638
7622
  ne.fetch({
7639
7623
  ...ye,