@timardex/cluemart-shared 1.5.500 → 1.5.502

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.
@@ -1,4 +1,4 @@
1
- import "../chunk-W4FADQMS.mjs";
1
+ import "../chunk-6JRXEOO3.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-IDDG4XZS.mjs";
17
+ } from "../chunk-PZZKQ3IV.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-Q6CO7TFK.mjs";
30
+ import "../chunk-7GWVTPXL.mjs";
31
31
 
32
32
  // src/hooks/useLocationSearch.ts
33
33
  var handleApiError = (error, message) => {
package/dist/index.cjs CHANGED
@@ -733,16 +733,6 @@ 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
- };
746
736
  var gameScreenIdentifierList = [
747
737
  {
748
738
  clue: "Where your actions turn into a timeline.",
@@ -762,7 +752,7 @@ var gameScreenIdentifierList = [
762
752
  {
763
753
  clue: "A single moment worth showing up for.",
764
754
  id: "single-event",
765
- match: createRouteMatcher("events", "mongoId")
755
+ match: /^\/events\/[a-f0-9]{24}$/
766
756
  },
767
757
  {
768
758
  clue: "What\u2019s happening around you, right now.",
@@ -777,7 +767,7 @@ var gameScreenIdentifierList = [
777
767
  {
778
768
  clue: "What\u2019s happening in a wider area\u2014not just nearby.",
779
769
  id: "events-region",
780
- match: createRouteMatcher("events/region", "slug")
770
+ match: /^\/events\/region\/[^/]+$/
781
771
  },
782
772
  {
783
773
  clue: "Where you go to find something specific.",
@@ -807,7 +797,7 @@ var gameScreenIdentifierList = [
807
797
  {
808
798
  clue: "A single collaborator in the ecosystem.",
809
799
  id: "single-partner",
810
- match: createRouteMatcher("partners", "mongoId")
800
+ match: /^\/partners\/[a-f0-9]{24}$/
811
801
  },
812
802
  {
813
803
  clue: "The network behind the scenes.",
@@ -817,7 +807,7 @@ var gameScreenIdentifierList = [
817
807
  {
818
808
  clue: "Where you share something with everyone.",
819
809
  id: "single-visitor-post",
820
- match: createRouteMatcher("visitors/posts", "mongoId")
810
+ match: /^\/visitors\/posts\/[a-f0-9]{24}$/
821
811
  },
822
812
  {
823
813
  clue: "Your identity, on display.",
@@ -827,7 +817,7 @@ var gameScreenIdentifierList = [
827
817
  {
828
818
  clue: "One provider offering something valuable.",
829
819
  id: "single-vendor",
830
- match: createRouteMatcher("vendors", "mongoId")
820
+ match: /^\/vendors\/[a-f0-9]{24}$/
831
821
  },
832
822
  {
833
823
  clue: "A marketplace of providers.",