@qratilabs/qrati-connect 1.0.0-beta.49 → 1.0.0-beta.50
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/{B4MFY5CR-CiqUtKDc.mjs → B4MFY5CR-Ci1wBv1b.mjs} +1 -1
- package/CHANGELOG.md +8 -0
- package/{Combination-LThdETbl.mjs → Combination-zt5HZoIP.mjs} +1 -1
- package/{ContentsPage-kjXI1E7D.mjs → ContentsPage-DQHp12oC.mjs} +4 -4
- package/{HO4MOOFI-CHseaxQS.mjs → HO4MOOFI-CYfOEM3F.mjs} +2 -2
- package/{HUY7CZI3-meMDh8On.mjs → HUY7CZI3-B1fgemKe.mjs} +2 -2
- package/{LazyLoadImage-D5EWKBal.mjs → LazyLoadImage-Ctz2n652.mjs} +1 -1
- package/{LeaderboardPage-B6Adw6Au.mjs → LeaderboardPage-C3_BqKWd.mjs} +1 -1
- package/PublicEvents-ByjtwpeN.mjs +49 -0
- package/RatePage-DNhywX4w.mjs +16539 -0
- package/{UploadPage-NCPmp8eI.mjs → UploadPage-DZuis0TZ.mjs} +1448 -1446
- package/VideoPlayer-DmQDlpKP.mjs +113 -0
- package/{_commonjsHelpers-BkfeUUK-.mjs → _commonjsHelpers-BVfed4GL.mjs} +2 -2
- package/{heic2any-CUppRqmX.mjs → heic2any-B87kYqVe.mjs} +1 -1
- package/{index-DZ9xnN7X.mjs → index-CY5sv3Dg.mjs} +3702 -3913
- package/index.es.js +1 -1
- package/index.umd.js +198 -198
- package/package.json +2 -2
- package/{photoswipe-aoX8ZWQC.mjs → photoswipe-uZG5ZmZw.mjs} +1 -1
- package/qrati-connect.css +1 -1
- package/DotLottiePlayer-BgzRRMlY.mjs +0 -1902
- package/PublicEvents-QsNW4khz.mjs +0 -69
- package/RatePage-Cnqzxibf.mjs +0 -874
- package/VideoPlayer-DMlUK2Hj.mjs +0 -101
- package/index-Bf1EEF28.mjs +0 -13779
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var vs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? vs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { M as xe, O as z, P as Tt, T as U, K as D, L as b, U as qo, V as B, W as _, X as k, Y as V, Z as T, $ as ws, a0 as rr, a1 as $e, a2 as j, a3 as Vn, a4 as Gn, a5 as ct, a6 as A, a7 as xs, a8 as ln, a9 as Ne, aa as $s, ab as _t, ac as zt, ad as Cs, ae as Ss, af as xn, ag as ks, ah as Kr, ai as Kt, aj as Ro, ak as Es, al as Ds, am as W, an as Br, ao as Ms, ap as As, aq as or, ar as Ts, as as Fs, at as Rn, au as Is, av as Ps, aw as oe, ax as Ls, ay as Os } from "./index-
|
|
4
|
+
import { M as xe, O as z, P as Tt, T as U, K as D, L as b, U as qo, V as B, W as _, X as k, Y as V, Z as T, $ as ws, a0 as rr, a1 as $e, a2 as j, a3 as Vn, a4 as Gn, a5 as ct, a6 as A, a7 as xs, a8 as ln, a9 as Ne, aa as $s, ab as _t, ac as zt, ad as Cs, ae as Ss, af as xn, ag as ks, ah as Kr, ai as Kt, aj as Ro, ak as Es, al as Ds, am as W, an as Br, ao as Ms, ap as As, aq as or, ar as Ts, as as Fs, at as Rn, au as Is, av as Ps, aw as oe, ax as Ls, ay as Os } from "./index-CY5sv3Dg.mjs";
|
|
5
5
|
var _s = (e) => e != null, qs = (e) => e.filter(_s);
|
|
6
6
|
function Rs(e) {
|
|
7
7
|
return (...t) => {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [1.0.0-beta.49](https://github.com/qrati-labs/qrati-connect-js/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2025-02-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* refactor routing to use react-router, add EventLayout component, and update various components for consistency ([4f717de](https://github.com/qrati-labs/qrati-connect-js/commit/4f717de9c111fb1ba00f6eb0778828385a7e78b9))
|
|
7
|
+
* update routing for event pages to include gallery path, enhance BackButton component, and improve event header logic ([ad558ab](https://github.com/qrati-labs/qrati-connect-js/commit/ad558ab5affebfa6f627f372b751c66d4339390b))
|
|
8
|
+
|
|
1
9
|
# [1.0.0-beta.48](https://github.com/qrati-labs/qrati-connect-js/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2025-02-21)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
2
|
import { useState as Re } from "react";
|
|
3
|
-
import { j as L,
|
|
3
|
+
import { j as L, r as Ae, q as $, _ as A, H as he, I as Te } from "./index-CY5sv3Dg.mjs";
|
|
4
4
|
import * as Le from "react-dom";
|
|
5
5
|
import Oe from "react-dom";
|
|
6
6
|
function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Q as Hn, i as St, h as Vn,
|
|
1
|
+
import { Q as Hn, i as St, h as Vn, b as Un, d as Yn, j as m, c as re, e as Wn, C as Ye, f as Le, g as Gn, D as zt, l as _e, m as $t, n as Y, N as Zn, o as Kn, p as et, k as Bt, q as je, r as Xn, u as tt, s as Qn, G as He, t as Jn, v as ei, S as ti, E as ni, w as ii } from "./index-CY5sv3Dg.mjs";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import Ae, { useMemo as ee, useReducer as si, useRef as nt, useCallback as oi, forwardRef as he, createElement as ri, Fragment as ai, useLayoutEffect as li, useEffect as Ht, useState as We, Component as ci } from "react";
|
|
4
|
-
import { L as di } from "./LazyLoadImage-
|
|
5
|
-
import { P as Ee, u as Ge, c as Vt, a as ui, b as Ut, d as hi, h as fi, R as pi, e as we, f as mi, F as gi, D as yi, g as wi, i as vi } from "./Combination-
|
|
4
|
+
import { L as di } from "./LazyLoadImage-Ctz2n652.mjs";
|
|
5
|
+
import { P as Ee, u as Ge, c as Vt, a as ui, b as Ut, d as hi, h as fi, R as pi, e as we, f as mi, F as gi, D as yi, g as wi, i as vi } from "./Combination-zt5HZoIP.mjs";
|
|
6
6
|
import * as xi from "react-dom";
|
|
7
7
|
var bi = class extends Hn {
|
|
8
8
|
constructor(t, e) {
|
|
@@ -3823,7 +3823,7 @@ const er = ({ eventId: t, contentId: e, emojis: n = [], counts: i = {}, userReac
|
|
|
3823
3823
|
wheelToZoom: !0,
|
|
3824
3824
|
pinchToClose: !0,
|
|
3825
3825
|
zoom: !1,
|
|
3826
|
-
pswpModule: () => import("./photoswipe-
|
|
3826
|
+
pswpModule: () => import("./photoswipe-uZG5ZmZw.mjs")
|
|
3827
3827
|
});
|
|
3828
3828
|
a.current = d, new bs(d), new Ts(d), new Ps(d), new Cs(d), d.init();
|
|
3829
3829
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-
|
|
2
|
-
import { J as d, K as f, L as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-Ci1wBv1b.mjs";
|
|
2
|
+
import { J as d, K as f, L as e } from "./index-CY5sv3Dg.mjs";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-
|
|
2
|
-
import { J as v, K as C, L as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-Ci1wBv1b.mjs";
|
|
2
|
+
import { J as v, K as C, L as e } from "./index-CY5sv3Dg.mjs";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as v, c as m } from "./index-
|
|
1
|
+
import { j as v, c as m } from "./index-CY5sv3Dg.mjs";
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import { useState as y, useRef as C } from "react";
|
|
4
4
|
var R = Object.defineProperty, j = (e, t, i) => t in e ? R(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, l = (e, t, i) => j(e, typeof t != "symbol" ? t + "" : t, i), V = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new WeakMap(), q = 0, N = void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as c,
|
|
1
|
+
import { j as c, t as N, u as y, v as g, k as b, c as v, f as m } from "./index-CY5sv3Dg.mjs";
|
|
2
2
|
import { useState as f, useEffect as w, Fragment as S } from "react";
|
|
3
3
|
const u = ({ title: q, entries: s = [], showFloatingPoint: a = !1, hidePictures: d = !0 }) => {
|
|
4
4
|
var i, l, o, e, n, x;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { u as m, a as u, j as s, S as q, N as g, E as l, c as h, k as p } from "./index-CY5sv3Dg.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import { L as t } from "./LazyLoadImage-Ctz2n652.mjs";
|
|
4
|
+
const n = (r) => r === l.UPCOMING ? "qc-bg-warning" : r === l.CLOSED ? "qc-bg-error" : "qc-bg-success", f = () => {
|
|
5
|
+
const { organizationId: r } = m(), { isLoading: d, data: a } = u({
|
|
6
|
+
queryKey: [`public-events-${r}`],
|
|
7
|
+
queryFn: async () => {
|
|
8
|
+
const c = await p.get(`https://beta.qratilabs.com/api/connect/${r}/public-events`, {
|
|
9
|
+
headers: {
|
|
10
|
+
"x-org-id": r
|
|
11
|
+
}
|
|
12
|
+
}).json();
|
|
13
|
+
if (c.error) throw new Error(c.error);
|
|
14
|
+
return c.data;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return d ? /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: Array.from({ length: 3 }).map((c) => /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
18
|
+
/* @__PURE__ */ s.jsx(q, { className: "qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80" }),
|
|
19
|
+
/* @__PURE__ */ s.jsx(q, { className: "qc-mx-auto qc-h-6 qc-w-64 qc-rounded" })
|
|
20
|
+
] }, c)) }) : /* @__PURE__ */ s.jsx("div", { className: "qc-grid qc-grid-cols-1 qc-gap-4 sm:qc-grid-cols-3", children: a == null ? void 0 : a.map((c) => {
|
|
21
|
+
var o, i;
|
|
22
|
+
return /* @__PURE__ */ s.jsx(g, { to: `/event/${c.slug}/gallery`, className: "qc-block", children: /* @__PURE__ */ s.jsxs("div", { className: "qc-space-y-4", children: [
|
|
23
|
+
/* @__PURE__ */ s.jsxs("div", { className: "qc-relative qc-h-72 qc-overflow-hidden qc-rounded sm:qc-h-80", children: [
|
|
24
|
+
/* @__PURE__ */ s.jsx(
|
|
25
|
+
t,
|
|
26
|
+
{
|
|
27
|
+
wrapperClassName: "qc-size-full sm:hover:qc-scale-105 sm:qc-transition-transform",
|
|
28
|
+
src: c != null && c.coverImageUrl ? c == null ? void 0 : c.coverImageUrl : ((o = c == null ? void 0 : c.contents) == null ? void 0 : o.length) > 0 ? c.contents[0].url : null,
|
|
29
|
+
placeholderSrc: c != null && c.coverBlurImageUrl ? c == null ? void 0 : c.coverBlurImageUrl : ((i = c == null ? void 0 : c.contents) == null ? void 0 : i.length) > 0 ? c.contents[0].url : null
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
(c == null ? void 0 : c.status) !== l.CLOSED && /* @__PURE__ */ s.jsx(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
className: h(
|
|
36
|
+
"qc-absolute qc-right-4 qc-top-4 qc-inline-flex qc-items-center qc-rounded-full qc-px-3 qc-py-2 qc-lowercase qc-text-white",
|
|
37
|
+
n(c.status)
|
|
38
|
+
),
|
|
39
|
+
children: c.status
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ s.jsx("h2", { className: "qc-text-brand qc-line-clamp-2 qc-w-full qc-break-words qc-text-center qc-text-xl qc-font-bold", children: c.name })
|
|
44
|
+
] }) }, c._id);
|
|
45
|
+
}) });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
f as default
|
|
49
|
+
};
|