@timardex/cluemart-shared 1.5.498 → 1.5.499

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-O5IIN45V.mjs → chunk-6WV7CECU.mjs} +2 -2
  2. package/dist/{chunk-AUTKJ6QP.mjs → chunk-EJSVR77W.mjs} +2 -2
  3. package/dist/{chunk-O4ILKWFI.mjs → chunk-RO2IWCW2.mjs} +30 -20
  4. package/dist/chunk-RO2IWCW2.mjs.map +1 -0
  5. package/dist/formFields/index.cjs +92 -0
  6. package/dist/formFields/index.cjs.map +1 -1
  7. package/dist/formFields/index.mjs +3 -3
  8. package/dist/{game-C6zLvmHU.d.mts → game-BR9xpQkt.d.mts} +19 -19
  9. package/dist/{game-B-YC4Am7.d.ts → game-Dn5SH8_0.d.ts} +19 -19
  10. package/dist/graphql/index.d.mts +2 -2
  11. package/dist/graphql/index.d.ts +2 -2
  12. package/dist/hooks/index.cjs +92 -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 +29 -19
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.mts +19 -19
  20. package/dist/index.d.ts +19 -19
  21. package/dist/index.mjs +29 -19
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/{post-DFTmI0uz.d.mts → post-BBYcN5xv.d.mts} +1 -1
  24. package/dist/{post-CNm_rxZm.d.ts → post-CWZFxlP7.d.ts} +1 -1
  25. package/dist/types/index.cjs +29 -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 +29 -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-O5IIN45V.mjs.map → chunk-6WV7CECU.mjs.map} +0 -0
  38. /package/dist/{chunk-AUTKJ6QP.mjs.map → chunk-EJSVR77W.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -961,61 +961,61 @@ interface PartnerType extends BaseResourceType {
961
961
 
962
962
  declare const gameScreenIdentifierList: readonly [{
963
963
  readonly clue: "Where your actions turn into a timeline.";
964
- readonly id: "activities";
964
+ readonly id: "/profile/activities";
965
965
  }, {
966
966
  readonly clue: "Where conversations happen without speaking.";
967
- readonly id: "chat";
967
+ readonly id: "/profile/chat";
968
968
  }, {
969
969
  readonly clue: "The place to redefine who you are.";
970
- readonly id: "edit-profile";
970
+ readonly id: "/profile/edit-profile";
971
971
  }, {
972
972
  readonly clue: "A single moment worth showing up for.";
973
- readonly id: "event";
973
+ readonly id: RegExp;
974
974
  }, {
975
975
  readonly clue: "What’s happening around you, right now.";
976
- readonly id: "events-near-me";
976
+ readonly id: "/events/events-near-me";
977
977
  }, {
978
978
  readonly clue: "A collection of things worth attending.";
979
- readonly id: "events";
979
+ readonly id: "/events";
980
980
  }, {
981
981
  readonly clue: "What’s happening in a wider area—not just nearby.";
982
- readonly id: "events/region";
982
+ readonly id: RegExp;
983
983
  }, {
984
984
  readonly clue: "Where you go to find something specific.";
985
- readonly id: "events/search";
985
+ readonly id: "/events/search";
986
986
  }, {
987
987
  readonly clue: "Where fun becomes a challenge.";
988
- readonly id: "games";
988
+ readonly id: "/games";
989
989
  }, {
990
990
  readonly clue: "Your starting point for everything.";
991
- readonly id: "home";
991
+ readonly id: "/";
992
992
  }, {
993
993
  readonly clue: "Where the app taps you on the shoulder.";
994
- readonly id: "notifications";
994
+ readonly id: "/notifications";
995
995
  }, {
996
996
  readonly clue: "Where you fine-tune your experience.";
997
- readonly id: "options";
997
+ readonly id: "/options";
998
998
  }, {
999
999
  readonly clue: "A single collaborator in the ecosystem.";
1000
- readonly id: "partner";
1000
+ readonly id: RegExp;
1001
1001
  }, {
1002
1002
  readonly clue: "The network behind the scenes.";
1003
- readonly id: "partners";
1003
+ readonly id: "/partners";
1004
1004
  }, {
1005
1005
  readonly clue: "Where you share something with everyone.";
1006
- readonly id: "post";
1006
+ readonly id: RegExp;
1007
1007
  }, {
1008
1008
  readonly clue: "Your identity, on display.";
1009
- readonly id: "profile";
1009
+ readonly id: "/profile";
1010
1010
  }, {
1011
1011
  readonly clue: "One provider offering something valuable.";
1012
- readonly id: "vendor";
1012
+ readonly id: RegExp;
1013
1013
  }, {
1014
1014
  readonly clue: "A marketplace of providers.";
1015
- readonly id: "vendors";
1015
+ readonly id: "/vendors";
1016
1016
  }, {
1017
1017
  readonly clue: "People who stopped by to see you.";
1018
- readonly id: "visitors";
1018
+ readonly id: "/visitors";
1019
1019
  }];
1020
1020
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
1021
1021
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
package/dist/index.d.ts CHANGED
@@ -961,61 +961,61 @@ interface PartnerType extends BaseResourceType {
961
961
 
962
962
  declare const gameScreenIdentifierList: readonly [{
963
963
  readonly clue: "Where your actions turn into a timeline.";
964
- readonly id: "activities";
964
+ readonly id: "/profile/activities";
965
965
  }, {
966
966
  readonly clue: "Where conversations happen without speaking.";
967
- readonly id: "chat";
967
+ readonly id: "/profile/chat";
968
968
  }, {
969
969
  readonly clue: "The place to redefine who you are.";
970
- readonly id: "edit-profile";
970
+ readonly id: "/profile/edit-profile";
971
971
  }, {
972
972
  readonly clue: "A single moment worth showing up for.";
973
- readonly id: "event";
973
+ readonly id: RegExp;
974
974
  }, {
975
975
  readonly clue: "What’s happening around you, right now.";
976
- readonly id: "events-near-me";
976
+ readonly id: "/events/events-near-me";
977
977
  }, {
978
978
  readonly clue: "A collection of things worth attending.";
979
- readonly id: "events";
979
+ readonly id: "/events";
980
980
  }, {
981
981
  readonly clue: "What’s happening in a wider area—not just nearby.";
982
- readonly id: "events/region";
982
+ readonly id: RegExp;
983
983
  }, {
984
984
  readonly clue: "Where you go to find something specific.";
985
- readonly id: "events/search";
985
+ readonly id: "/events/search";
986
986
  }, {
987
987
  readonly clue: "Where fun becomes a challenge.";
988
- readonly id: "games";
988
+ readonly id: "/games";
989
989
  }, {
990
990
  readonly clue: "Your starting point for everything.";
991
- readonly id: "home";
991
+ readonly id: "/";
992
992
  }, {
993
993
  readonly clue: "Where the app taps you on the shoulder.";
994
- readonly id: "notifications";
994
+ readonly id: "/notifications";
995
995
  }, {
996
996
  readonly clue: "Where you fine-tune your experience.";
997
- readonly id: "options";
997
+ readonly id: "/options";
998
998
  }, {
999
999
  readonly clue: "A single collaborator in the ecosystem.";
1000
- readonly id: "partner";
1000
+ readonly id: RegExp;
1001
1001
  }, {
1002
1002
  readonly clue: "The network behind the scenes.";
1003
- readonly id: "partners";
1003
+ readonly id: "/partners";
1004
1004
  }, {
1005
1005
  readonly clue: "Where you share something with everyone.";
1006
- readonly id: "post";
1006
+ readonly id: RegExp;
1007
1007
  }, {
1008
1008
  readonly clue: "Your identity, on display.";
1009
- readonly id: "profile";
1009
+ readonly id: "/profile";
1010
1010
  }, {
1011
1011
  readonly clue: "One provider offering something valuable.";
1012
- readonly id: "vendor";
1012
+ readonly id: RegExp;
1013
1013
  }, {
1014
1014
  readonly clue: "A marketplace of providers.";
1015
- readonly id: "vendors";
1015
+ readonly id: "/vendors";
1016
1016
  }, {
1017
1017
  readonly clue: "People who stopped by to see you.";
1018
- readonly id: "visitors";
1018
+ readonly id: "/visitors";
1019
1019
  }];
1020
1020
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
1021
1021
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
package/dist/index.mjs CHANGED
@@ -438,82 +438,92 @@ import dayjs from "dayjs";
438
438
  import utc from "dayjs/plugin/utc";
439
439
 
440
440
  // src/types/game.ts
441
+ var createRouteMatcher = (base, type) => {
442
+ switch (type) {
443
+ case "mongoId":
444
+ return new RegExp(`^\\/${base}\\/([a-f0-9]{24})$`);
445
+ case "slug":
446
+ return new RegExp(`^\\/${base}\\/[^/]+$`);
447
+ default:
448
+ return new RegExp(`^\\/${base}$`);
449
+ }
450
+ };
441
451
  var gameScreenIdentifierList = [
442
452
  {
443
453
  clue: "Where your actions turn into a timeline.",
444
- id: "activities"
454
+ id: "/profile/activities"
445
455
  },
446
456
  {
447
457
  clue: "Where conversations happen without speaking.",
448
- id: "chat"
458
+ id: "/profile/chat"
449
459
  },
450
460
  {
451
461
  clue: "The place to redefine who you are.",
452
- id: "edit-profile"
462
+ id: "/profile/edit-profile"
453
463
  },
454
464
  {
455
465
  clue: "A single moment worth showing up for.",
456
- id: "event"
466
+ id: createRouteMatcher("events", "mongoId")
457
467
  },
458
468
  {
459
469
  clue: "What\u2019s happening around you, right now.",
460
- id: "events-near-me"
470
+ id: "/events/events-near-me"
461
471
  },
462
472
  {
463
473
  clue: "A collection of things worth attending.",
464
- id: "events"
474
+ id: "/events"
465
475
  },
466
476
  {
467
477
  clue: "What\u2019s happening in a wider area\u2014not just nearby.",
468
- id: "events/region"
478
+ id: createRouteMatcher("events/region", "slug")
469
479
  },
470
480
  {
471
481
  clue: "Where you go to find something specific.",
472
- id: "events/search"
482
+ id: "/events/search"
473
483
  },
474
484
  {
475
485
  clue: "Where fun becomes a challenge.",
476
- id: "games"
486
+ id: "/games"
477
487
  },
478
488
  {
479
489
  clue: "Your starting point for everything.",
480
- id: "home"
490
+ id: "/"
481
491
  },
482
492
  {
483
493
  clue: "Where the app taps you on the shoulder.",
484
- id: "notifications"
494
+ id: "/notifications"
485
495
  },
486
496
  {
487
497
  clue: "Where you fine-tune your experience.",
488
- id: "options"
498
+ id: "/options"
489
499
  },
490
500
  {
491
501
  clue: "A single collaborator in the ecosystem.",
492
- id: "partner"
502
+ id: createRouteMatcher("partners", "mongoId")
493
503
  },
494
504
  {
495
505
  clue: "The network behind the scenes.",
496
- id: "partners"
506
+ id: "/partners"
497
507
  },
498
508
  {
499
509
  clue: "Where you share something with everyone.",
500
- id: "post"
510
+ id: createRouteMatcher("visitors/posts", "mongoId")
501
511
  },
502
512
  {
503
513
  clue: "Your identity, on display.",
504
- id: "profile"
514
+ id: "/profile"
505
515
  },
506
516
  {
507
517
  clue: "One provider offering something valuable.",
508
- id: "vendor"
518
+ id: createRouteMatcher("vendors", "mongoId")
509
519
  },
510
520
  {
511
521
  clue: "A marketplace of providers.",
512
- id: "vendors"
522
+ id: "/vendors"
513
523
  },
514
524
  {
515
525
  clue: "People who stopped by to see you.",
516
- id: "visitors"
526
+ id: "/visitors"
517
527
  }
518
528
  ];
519
529
  var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {