@qratilabs/qrati-connect 2.1.0 → 2.2.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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +19 -23
  3. package/element/{AuthLayout-3MSZD8ro.js → AuthLayout-CyO9f3yS.js} +1 -1
  4. package/element/ContentsPage-DTXin7QX.js +16 -0
  5. package/element/CuratePage-Da329OuY.js +1 -0
  6. package/element/{Dialog-Czt6Sflr.js → Dialog-DUE33ABe.js} +1 -1
  7. package/element/{DotLottiePlayer-KGhHUH8A.js → DotLottiePlayer-8MlLiMyZ.js} +1 -1
  8. package/element/{EventHeaderAdminButtons-Bf9mlo12.js → EventHeaderAdminButtons-ZWRtXY11.js} +1 -1
  9. package/element/{FolderBreadcrumb-DNV7iAX9.js → FolderBreadcrumb-CEs6rjY8.js} +1 -1
  10. package/element/{ForgotPasswordPage-DhJLbJss.js → ForgotPasswordPage-DcrSZb4Y.js} +1 -1
  11. package/element/{InputField-DUBquu2F.js → InputField-C89vrW2H.js} +1 -1
  12. package/element/{LazyLoadImage-mysq1kzg.js → LazyLoadImage-CCgs8tnO.js} +1 -1
  13. package/element/LeaderboardPage-CTDNDeXw.js +1 -0
  14. package/element/{LoginPage-CLi2iWgA.js → LoginPage-smlCb8hl.js} +1 -1
  15. package/element/{NCMVHL6D-BT50cfFq.js → NCMVHL6D-mctK8Nwg.js} +1 -1
  16. package/element/{PublicEvents-CDqFOpG_.js → PublicEvents-D2zm99Nv.js} +1 -1
  17. package/element/{RegisterPage-BvkXlBF7.js → RegisterPage-B6iFPEOf.js} +1 -1
  18. package/element/{SocialLoginButton-C6ifRxgk.js → SocialLoginButton-Bmw5w2Wo.js} +1 -1
  19. package/element/{UploadPage-D8sD6xou.js → UploadPage-CeUd2Ngw.js} +1 -1
  20. package/element/{VideoPlayer-DYZi3q89.js → VideoPlayer-D3O9yQy5.js} +1 -1
  21. package/element/element.es.js +1 -1
  22. package/element/{heic2any-BSfHO3L1.js → heic2any-ChkiLE0t.js} +1 -1
  23. package/element/{index-BPzTfirb.js → index-Dc66pO4G.js} +1 -1
  24. package/element/{index-DH-JBzym.js → index-eZDSy_OJ.js} +3 -3
  25. package/element/{index.esm-DkIaEEXH.js → index.esm-fgGipFtS.js} +1 -1
  26. package/element/{photoswipe-2NEQ5ums.js → photoswipe-CqOSmPl3.js} +1 -1
  27. package/element/styles.css +1 -1
  28. package/element/{tslib.es6-BxRwMfGT.js → tslib.es6-CrRFG_pJ.js} +1 -1
  29. package/element/{useOrgAccess-Ct-0TE_0.js → useOrgAccess-DwChBdHT.js} +1 -1
  30. package/element/web.es.js +1 -1
  31. package/package.json +1 -1
  32. package/react/{cfmNC4u4.js → 01YpbkrK.js} +1 -1
  33. package/react/{C19RNf1-.js → 3-7xITP8.js} +1 -1
  34. package/react/{B6Q07wSK.js → B-6zXxDr.js} +1 -1
  35. package/react/{DewCXsIG.js → BC4qG4vp.js} +1 -1
  36. package/react/BG98DA1v.js +16 -0
  37. package/react/{DZSBvFZj.js → Bhx5l06G.js} +1 -1
  38. package/react/{CnZDMows.js → C9K7NHY-.js} +1 -1
  39. package/react/{D13n_XMV.js → CQ_GAdf6.js} +1 -1
  40. package/react/{BNLiqqVu.js → CwHDgEUw.js} +1 -1
  41. package/react/{BAH-hCQv.js → Cwug7XlJ.js} +1 -1
  42. package/react/{Om2PJsaT.js → Cy0hl_vl.js} +1 -1
  43. package/react/{CEvQrL-L.js → D9rAIIEm.js} +1 -1
  44. package/react/{l6We_eoY.js → DBT304mv.js} +1 -1
  45. package/react/{DLmxhJVk.js → DDDUG6Th.js} +1 -1
  46. package/react/{DDTQHueT.js → DGbDKxZM.js} +1 -1
  47. package/react/{vr3m2X_d.js → DGrws0Ed.js} +1 -1
  48. package/react/{C_PorEjJ.js → DOyHX7jh.js} +1 -1
  49. package/react/{BtdEyRX5.js → DR9E1aMG.js} +3 -3
  50. package/react/DgG5NhsB.js +1 -0
  51. package/react/{Cmam44O7.js → DlRtYLod.js} +1 -1
  52. package/react/DtITAxUS.js +1 -0
  53. package/react/{Dr414MeD.js → HRRHpVRs.js} +1 -1
  54. package/react/{Dnp0ZDLi.js → YK1PgWHO.js} +1 -1
  55. package/react/index.es.js +2 -2
  56. package/umd/web.umd.js +43 -43
  57. package/element/ContentsPage-DEW0I2hK.js +0 -16
  58. package/element/CuratePage-B-4T8hoM.js +0 -1
  59. package/element/LeaderboardPage-DMRayt3X.js +0 -1
  60. package/react/1kKVsWzJ.js +0 -1
  61. package/react/D1IaUXEN.js +0 -16
  62. package/react/DSEmowWV.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [2.1.0](https://github.com/qrati-labs/qrati-connect-js/compare/v2.0.0...v2.1.0) (2025-10-30)
2
+
3
+ ### Features
4
+
5
+ - **Button:** update outlined variant class for better color contrast ([9f8cdb7](https://github.com/qrati-labs/qrati-connect-js/commit/9f8cdb7b1ca7448f0e3f862324079613eb5e69bc))
6
+
1
7
  # [2.0.0](https://github.com/qrati-labs/qrati-connect-js/compare/v1.46.2...v2.0.0) (2025-10-30)
2
8
 
3
9
  ### Features
package/README.md CHANGED
@@ -1,15 +1,14 @@
1
-
2
1
  ![Logo](https://qrati.com/images/qrati-connect-banner.jpg)
3
2
 
4
3
  Qrati Connect is a React component library designed to seamlessly integrate Qrati's interactive features into your web applications to enhance user engagement and interaction.
5
4
 
6
5
  # Features
7
6
 
8
- * **Interactive Media Gallery :** Integrate Qrati's powerful interactive media gallery into your own site without a hassle.
9
- * **Media Upload :** Users can directly upload content from your host site.
10
- * **Reaction :** Engage your users with a completely customizable set of emojis.
11
- * **Curation :** Want to host a photo contest? Our curation feature can be a one stop solution for that.
12
- * **Leaderboard :** Gamify your contest with a precise and fun leaderboard.
7
+ - **Interactive Media Gallery :** Integrate Qrati's powerful interactive media gallery into your own site without a hassle.
8
+ - **Media Upload :** Users can directly upload content from your host site.
9
+ - **Reaction :** Engage your users with a completely customizable set of emojis.
10
+ - **Curation :** Want to host a photo contest? Our curation feature can be a one stop solution for that.
11
+ - **Leaderboard :** Gamify your contest with a precise and fun leaderboard.
13
12
 
14
13
  # Installation (React Component)
15
14
 
@@ -33,7 +32,7 @@ import '@qratilabs/qrati-connect/styles.css'
33
32
 
34
33
  const Page = () => {
35
34
  return (
36
- <QratiConnect
35
+ <QratiConnect
37
36
  organizationId=<org_id>
38
37
  />
39
38
  );
@@ -41,21 +40,22 @@ const Page = () => {
41
40
 
42
41
  export default Page;
43
42
  ```
43
+
44
44
  **Note**: Add 'use client' directive if you are using any React frameworks which supports Server Side Rendering (SSR) like Next.js.
45
45
 
46
46
  # Available props
47
47
 
48
- * **router :** Custom router configuration for internal navigation ('memory or 'hash').
49
- * **organizationId :** Unique identifier for your organization inside Qrati.
50
- * **fontClassName :** Classes to control custom font for the component.
51
- * **textClassName :** Classes to apply any additional styling to texts inside the component.
52
- * **emptyStateImage :** Link or path to image which will be shown for any empty state in the component.
53
- * **curateLabel :** Label to show in place of 'Curate' in header for contest type events.
54
- * **leaderboardLabel :** Label to show in place of 'Leaders' in header for contest type events.
55
- * **uid :** User id for your application user (applicable for custom auth only).
56
- * **fname :** First name for your application user (applicable for custom auth only).
57
- * **lname :** Last name for your application user (applicable for custom auth only).
58
- * **loginUrl :** The page url inside your web app where we should redirect when authentication is required for user intended action (applicable for custom auth only).
48
+ - **router :** Custom router configuration for internal navigation ('memory or 'hash').
49
+ - **organizationId :** Unique identifier for your organization inside Qrati.
50
+ - **fontClassName :** Classes to control custom font for the component.
51
+ - **textClassName :** Classes to apply any additional styling to texts inside the component.
52
+ - **emptyStateImage :** Link or path to image which will be shown for any empty state in the component.
53
+ - **curateLabel :** Label to show in place of 'Curate' in header for contest type events.
54
+ - **leaderboardLabel :** Label to show in place of 'Leaders' in header for contest type events.
55
+ - **uid :** User id for your application user (applicable for custom auth only).
56
+ - **fname :** First name for your application user (applicable for custom auth only).
57
+ - **lname :** Last name for your application user (applicable for custom auth only).
58
+ - **loginUrl :** The page url inside your web app where we should redirect when authentication is required for user intended action (applicable for custom auth only).
59
59
 
60
60
  # Qrati Connect Element (Web Component)
61
61
 
@@ -70,7 +70,6 @@ Add the following script and stylesheet tags to your HTML:
70
70
  <script type="module" src="https://cdn.jsdelivr.net/npm/@qratilabs/qrati-connect/element/web.es.js"></script>
71
71
  <!-- Import the styles -->
72
72
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@qratilabs/qrati-connect/element/styles.css" />
73
-
74
73
  ```
75
74
 
76
75
  ## Usage
@@ -78,10 +77,7 @@ Add the following script and stylesheet tags to your HTML:
78
77
  Once imported, you can use the custom element tag `<qrati-connect>` in your HTML:
79
78
 
80
79
  ```html
81
- <qrati-connect
82
- router='hash'
83
- organization-id="your-organization-id"
84
- />
80
+ <qrati-connect router="hash" organization-id="your-organization-id" />
85
81
  ```
86
82
 
87
83
  Note: When using the Web Component version, props are passed as HTML attributes with kebab-case naming (e.g., `organization-id` instead of `organizationId`).
@@ -1 +1 @@
1
- import{e as a,u as s,j as c,S as e,N as r,h as t,c as q,P as i,T as l,a8 as d,a9 as n}from"./index-DH-JBzym.js";const o=()=>{const o=a(),{initializing:m,organization:x,user:h}=s();return m?c.jsxs("div",{className:"qc:mx-auto qc:max-w-lg qc:space-y-8 qc:py-8",children:[c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"})]}):!x||x?.customAuth?null:h?c.jsx(r,{replace:!0,to:o?.state?.referrer||"/"}):c.jsxs("div",{className:"qc:bg-background qc:mx-auto qc:mt-24 qc:min-h-[80vh] qc:max-w-md",children:[c.jsxs("div",{className:"qc:my-8 qc:flex qc:w-full qc:justify-around",children:[c.jsx(t,{to:i.LOGIN,state:o?.state,className:q(o.pathname===i.LOGIN?"qc:border-primary":"qc:border-border","qc:flex-1 qc:border-2 qc:border-x-0 qc:border-t-0 qc:pb-2"),children:c.jsx(l,{variant:"h5",align:"center",children:"Login"})}),c.jsx(t,{to:i.REGISTER,state:o?.state,className:q(o.pathname===i.REGISTER?"qc:border-primary":"qc:border-border","qc:flex-1 qc:border-2 qc:border-x-0 qc:border-t-0 qc:pb-2"),children:c.jsx(l,{variant:"h5",align:"center",children:"Register"})})]}),c.jsx(d,{}),c.jsx("div",{className:"qc:mt-12",children:c.jsx(n,{})})]})};export{o as default};
1
+ import{e as a,u as s,j as c,S as e,N as r,h as t,c as q,P as i,T as l,a8 as d,a9 as n}from"./index-eZDSy_OJ.js";const o=()=>{const o=a(),{initializing:m,organization:x,user:h}=s();return m?c.jsxs("div",{className:"qc:mx-auto qc:max-w-lg qc:space-y-8 qc:py-8",children:[c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"}),c.jsx(e,{className:"qc:h-8"})]}):!x||x?.customAuth?null:h?c.jsx(r,{replace:!0,to:o?.state?.referrer||"/"}):c.jsxs("div",{className:"qc:bg-background qc:mx-auto qc:mt-24 qc:min-h-[80vh] qc:max-w-md",children:[c.jsxs("div",{className:"qc:my-8 qc:flex qc:w-full qc:justify-around",children:[c.jsx(t,{to:i.LOGIN,state:o?.state,className:q(o.pathname===i.LOGIN?"qc:border-primary":"qc:border-border","qc:flex-1 qc:border-2 qc:border-x-0 qc:border-t-0 qc:pb-2"),children:c.jsx(l,{variant:"h5",align:"center",children:"Login"})}),c.jsx(t,{to:i.REGISTER,state:o?.state,className:q(o.pathname===i.REGISTER?"qc:border-primary":"qc:border-border","qc:flex-1 qc:border-2 qc:border-x-0 qc:border-t-0 qc:pb-2"),children:c.jsx(l,{variant:"h5",align:"center",children:"Register"})})]}),c.jsx(d,{}),c.jsx("div",{className:"qc:mt-12",children:c.jsx(n,{})})]})};export{o as default};