@timardex/cluemart-shared 1.5.498 → 1.5.500

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 (38) hide show
  1. package/dist/{chunk-AUTKJ6QP.mjs → chunk-IDDG4XZS.mjs} +2 -2
  2. package/dist/{chunk-O4ILKWFI.mjs → chunk-Q6CO7TFK.mjs} +49 -20
  3. package/dist/chunk-Q6CO7TFK.mjs.map +1 -0
  4. package/dist/{chunk-O5IIN45V.mjs → chunk-W4FADQMS.mjs} +2 -2
  5. package/dist/formFields/index.cjs +111 -0
  6. package/dist/formFields/index.cjs.map +1 -1
  7. package/dist/formFields/index.mjs +3 -3
  8. package/dist/{game-B-YC4Am7.d.ts → game-BzOJ4f7U.d.ts} +25 -6
  9. package/dist/{game-C6zLvmHU.d.mts → game-CoVv7iyf.d.mts} +25 -6
  10. package/dist/graphql/index.d.mts +2 -2
  11. package/dist/graphql/index.d.ts +2 -2
  12. package/dist/hooks/index.cjs +111 -0
  13. package/dist/hooks/index.cjs.map +1 -1
  14. package/dist/hooks/index.d.mts +2 -2
  15. package/dist/hooks/index.d.ts +2 -2
  16. package/dist/hooks/index.mjs +3 -3
  17. package/dist/index.cjs +48 -19
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.mts +25 -6
  20. package/dist/index.d.ts +25 -6
  21. package/dist/index.mjs +48 -19
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/{post-DFTmI0uz.d.mts → post-CcJowEi5.d.mts} +1 -1
  24. package/dist/{post-CNm_rxZm.d.ts → post-D9_1FbFI.d.ts} +1 -1
  25. package/dist/types/index.cjs +48 -19
  26. package/dist/types/index.cjs.map +1 -1
  27. package/dist/types/index.d.mts +2 -2
  28. package/dist/types/index.d.ts +2 -2
  29. package/dist/types/index.mjs +1 -1
  30. package/dist/utils/index.cjs +48 -19
  31. package/dist/utils/index.cjs.map +1 -1
  32. package/dist/utils/index.d.mts +1 -1
  33. package/dist/utils/index.d.ts +1 -1
  34. package/dist/utils/index.mjs +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-O4ILKWFI.mjs.map +0 -1
  37. /package/dist/{chunk-AUTKJ6QP.mjs.map → chunk-IDDG4XZS.mjs.map} +0 -0
  38. /package/dist/{chunk-O5IIN45V.mjs.map → chunk-W4FADQMS.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { L as LocationType, i as VendorFormData, j as CreateVendorFormData, k as VendorInfoFormData, l as CreateVendorInfoFormData, m as EventFormData, n as CreateEventFormData, o as EventInfoFormData, p as CreateEventInfoFormData, q as UnregisteredVendorFormData, B as BaseResourceTypeFormData } from '../global-MMBYi34A.mjs';
2
- import { e as UserFormData, C as CreateUserFormData, f as PartnerFormData, g as AdFormData, h as CreateAdFormData, i as CreatePartnerFormData, j as PostFormData, k as CreatePostFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData } from '../post-DFTmI0uz.mjs';
2
+ import { e as UserFormData, C as CreateUserFormData, f as PartnerFormData, g as AdFormData, h as CreateAdFormData, i as CreatePartnerFormData, j as PostFormData, k as CreatePostFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData } from '../post-CcJowEi5.mjs';
3
3
  import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-DtPfNKc4.mjs';
4
4
  import 'react-hook-form';
5
5
  import '../enums/index.mjs';
6
- import '../game-C6zLvmHU.mjs';
6
+ import '../game-CoVv7iyf.mjs';
7
7
 
8
8
  interface PlacePrediction {
9
9
  place_id: string;
@@ -1,9 +1,9 @@
1
1
  import { L as LocationType, i as VendorFormData, j as CreateVendorFormData, k as VendorInfoFormData, l as CreateVendorInfoFormData, m as EventFormData, n as CreateEventFormData, o as EventInfoFormData, p as CreateEventInfoFormData, q as UnregisteredVendorFormData, B as BaseResourceTypeFormData } from '../global-B0WdAD-8.js';
2
- import { e as UserFormData, C as CreateUserFormData, f as PartnerFormData, g as AdFormData, h as CreateAdFormData, i as CreatePartnerFormData, j as PostFormData, k as CreatePostFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData } from '../post-CNm_rxZm.js';
2
+ import { e as UserFormData, C as CreateUserFormData, f as PartnerFormData, g as AdFormData, h as CreateAdFormData, i as CreatePartnerFormData, j as PostFormData, k as CreatePostFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData } from '../post-D9_1FbFI.js';
3
3
  import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-B5tprOIL.js';
4
4
  import 'react-hook-form';
5
5
  import '../enums/index.js';
6
- import '../game-B-YC4Am7.js';
6
+ import '../game-BzOJ4f7U.js';
7
7
 
8
8
  interface PlacePrediction {
9
9
  place_id: string;
@@ -1,4 +1,4 @@
1
- import "../chunk-O5IIN45V.mjs";
1
+ import "../chunk-W4FADQMS.mjs";
2
2
  import "../chunk-RQDZX76B.mjs";
3
3
  import "../chunk-DWO35OY4.mjs";
4
4
  import "../chunk-I7WE3EBR.mjs";
@@ -14,7 +14,7 @@ import {
14
14
  dateFormat,
15
15
  normalizeUrl,
16
16
  timeFormat
17
- } from "../chunk-AUTKJ6QP.mjs";
17
+ } from "../chunk-IDDG4XZS.mjs";
18
18
  import {
19
19
  EnumEventDateStatus,
20
20
  EnumEventType,
@@ -27,7 +27,7 @@ import {
27
27
  EnumUserRole,
28
28
  EnumVendorType
29
29
  } from "../chunk-534WN2SR.mjs";
30
- import "../chunk-O4ILKWFI.mjs";
30
+ import "../chunk-Q6CO7TFK.mjs";
31
31
 
32
32
  // src/hooks/useLocationSearch.ts
33
33
  var handleApiError = (error, message) => {
package/dist/index.cjs CHANGED
@@ -733,82 +733,111 @@ var import_dayjs = __toESM(require("dayjs"));
733
733
  var import_utc = __toESM(require("dayjs/plugin/utc"));
734
734
 
735
735
  // src/types/game.ts
736
+ var createRouteMatcher = (base, type) => {
737
+ switch (type) {
738
+ case "mongoId":
739
+ return new RegExp(`^\\/${base}\\/([a-f0-9]{24})$`);
740
+ case "slug":
741
+ return new RegExp(`^\\/${base}\\/[^/]+$`);
742
+ default:
743
+ return new RegExp(`^\\/${base}$`);
744
+ }
745
+ };
736
746
  var gameScreenIdentifierList = [
737
747
  {
738
748
  clue: "Where your actions turn into a timeline.",
739
- id: "activities"
749
+ id: "activities",
750
+ match: "/profile/activities"
740
751
  },
741
752
  {
742
753
  clue: "Where conversations happen without speaking.",
743
- id: "chat"
754
+ id: "chat",
755
+ match: "/profile/chat"
744
756
  },
745
757
  {
746
758
  clue: "The place to redefine who you are.",
747
- id: "edit-profile"
759
+ id: "edit-profile",
760
+ match: "/profile/edit-profile"
748
761
  },
749
762
  {
750
763
  clue: "A single moment worth showing up for.",
751
- id: "event"
764
+ id: "single-event",
765
+ match: createRouteMatcher("events", "mongoId")
752
766
  },
753
767
  {
754
768
  clue: "What\u2019s happening around you, right now.",
755
- id: "events-near-me"
769
+ id: "events-near-me",
770
+ match: "/events/events-near-me"
756
771
  },
757
772
  {
758
773
  clue: "A collection of things worth attending.",
759
- id: "events"
774
+ id: "events",
775
+ match: "/events"
760
776
  },
761
777
  {
762
778
  clue: "What\u2019s happening in a wider area\u2014not just nearby.",
763
- id: "events/region"
779
+ id: "events-region",
780
+ match: createRouteMatcher("events/region", "slug")
764
781
  },
765
782
  {
766
783
  clue: "Where you go to find something specific.",
767
- id: "events/search"
784
+ id: "events-search",
785
+ match: "/events/search"
768
786
  },
769
787
  {
770
788
  clue: "Where fun becomes a challenge.",
771
- id: "games"
789
+ id: "games",
790
+ match: "/games"
772
791
  },
773
792
  {
774
793
  clue: "Your starting point for everything.",
775
- id: "home"
794
+ id: "home",
795
+ match: "/"
776
796
  },
777
797
  {
778
798
  clue: "Where the app taps you on the shoulder.",
779
- id: "notifications"
799
+ id: "notifications",
800
+ match: "/notifications"
780
801
  },
781
802
  {
782
803
  clue: "Where you fine-tune your experience.",
783
- id: "options"
804
+ id: "options",
805
+ match: "/options"
784
806
  },
785
807
  {
786
808
  clue: "A single collaborator in the ecosystem.",
787
- id: "partner"
809
+ id: "single-partner",
810
+ match: createRouteMatcher("partners", "mongoId")
788
811
  },
789
812
  {
790
813
  clue: "The network behind the scenes.",
791
- id: "partners"
814
+ id: "partners",
815
+ match: "/partners"
792
816
  },
793
817
  {
794
818
  clue: "Where you share something with everyone.",
795
- id: "post"
819
+ id: "single-visitor-post",
820
+ match: createRouteMatcher("visitors/posts", "mongoId")
796
821
  },
797
822
  {
798
823
  clue: "Your identity, on display.",
799
- id: "profile"
824
+ id: "profile",
825
+ match: "/profile"
800
826
  },
801
827
  {
802
828
  clue: "One provider offering something valuable.",
803
- id: "vendor"
829
+ id: "single-vendor",
830
+ match: createRouteMatcher("vendors", "mongoId")
804
831
  },
805
832
  {
806
833
  clue: "A marketplace of providers.",
807
- id: "vendors"
834
+ id: "vendors",
835
+ match: "/vendors"
808
836
  },
809
837
  {
810
838
  clue: "People who stopped by to see you.",
811
- id: "visitors"
839
+ id: "visitors",
840
+ match: "/visitors"
812
841
  }
813
842
  ];
814
843
  var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {