@timardex/cluemart-shared 1.5.494 → 1.5.496

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 (39) hide show
  1. package/dist/{chunk-DXNREXCC.mjs → chunk-KIMDTSLW.mjs} +2 -2
  2. package/dist/{chunk-YTEETYG7.mjs → chunk-MPIOTUCT.mjs} +10 -8
  3. package/dist/chunk-MPIOTUCT.mjs.map +1 -0
  4. package/dist/{chunk-QG5DPPZI.mjs → chunk-O4ILKWFI.mjs} +5 -1
  5. package/dist/chunk-O4ILKWFI.mjs.map +1 -0
  6. package/dist/formFields/index.cjs +4 -2
  7. package/dist/formFields/index.cjs.map +1 -1
  8. package/dist/formFields/index.mjs +3 -3
  9. package/dist/{game-lvz2AUuu.d.ts → game-B-YC4Am7.d.ts} +3 -0
  10. package/dist/{game-DTrJRy_s.d.mts → game-C6zLvmHU.d.mts} +3 -0
  11. package/dist/graphql/index.d.mts +2 -2
  12. package/dist/graphql/index.d.ts +2 -2
  13. package/dist/hooks/index.cjs +4 -2
  14. package/dist/hooks/index.cjs.map +1 -1
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.mjs +3 -3
  18. package/dist/index.cjs +12 -6
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +3 -0
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.mjs +12 -6
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/{post-DXOToXeT.d.ts → post-CNm_rxZm.d.ts} +1 -1
  25. package/dist/{post-wptsHKVN.d.mts → post-DFTmI0uz.d.mts} +1 -1
  26. package/dist/types/index.cjs +4 -0
  27. package/dist/types/index.cjs.map +1 -1
  28. package/dist/types/index.d.mts +2 -2
  29. package/dist/types/index.d.ts +2 -2
  30. package/dist/types/index.mjs +1 -1
  31. package/dist/utils/index.cjs +12 -6
  32. package/dist/utils/index.cjs.map +1 -1
  33. package/dist/utils/index.d.mts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/dist/utils/index.mjs +2 -2
  36. package/package.json +1 -1
  37. package/dist/chunk-QG5DPPZI.mjs.map +0 -1
  38. package/dist/chunk-YTEETYG7.mjs.map +0 -1
  39. /package/dist/{chunk-DXNREXCC.mjs.map → chunk-KIMDTSLW.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -980,6 +980,9 @@ declare const gameScreenIdentifierList: readonly [{
980
980
  }, {
981
981
  readonly clue: "What’s happening in a wider area—not just nearby.";
982
982
  readonly id: "events/region";
983
+ }, {
984
+ readonly clue: "Where you go to find something specific.";
985
+ readonly id: "events/search";
983
986
  }, {
984
987
  readonly clue: "Where fun becomes a challenge.";
985
988
  readonly id: "games";
package/dist/index.d.ts CHANGED
@@ -980,6 +980,9 @@ declare const gameScreenIdentifierList: readonly [{
980
980
  }, {
981
981
  readonly clue: "What’s happening in a wider area—not just nearby.";
982
982
  readonly id: "events/region";
983
+ }, {
984
+ readonly clue: "Where you go to find something specific.";
985
+ readonly id: "events/search";
983
986
  }, {
984
987
  readonly clue: "Where fun becomes a challenge.";
985
988
  readonly id: "games";
package/dist/index.mjs CHANGED
@@ -435,6 +435,7 @@ var priceUnits = [
435
435
 
436
436
  // src/utils/dailyClueGame.ts
437
437
  import dayjs from "dayjs";
438
+ import utc from "dayjs/plugin/utc";
438
439
 
439
440
  // src/types/game.ts
440
441
  var gameScreenIdentifierList = [
@@ -466,6 +467,10 @@ var gameScreenIdentifierList = [
466
467
  clue: "What\u2019s happening in a wider area\u2014not just nearby.",
467
468
  id: "events/region"
468
469
  },
470
+ {
471
+ clue: "Where you go to find something specific.",
472
+ id: "events/search"
473
+ },
469
474
  {
470
475
  clue: "Where fun becomes a challenge.",
471
476
  id: "games"
@@ -526,6 +531,7 @@ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
526
531
  })(EnumGameStatus || {});
527
532
 
528
533
  // src/utils/dailyClueGame.ts
534
+ dayjs.extend(utc);
529
535
  function createSeededRng(seed) {
530
536
  let t = seed >>> 0;
531
537
  return function random() {
@@ -554,7 +560,7 @@ function seededShuffle(array6, seed) {
554
560
  return result;
555
561
  }
556
562
  function getDayIndex(startDate) {
557
- return dayjs().startOf("day").diff(dayjs(startDate).startOf("day"), "day");
563
+ return dayjs().utc().startOf("day").diff(dayjs(startDate).utc().startOf("day"), "day");
558
564
  }
559
565
  function computeDailyClueState(dailyClue) {
560
566
  const { startDate, endDate } = dailyClue.gameFields.gameDate;
@@ -563,9 +569,9 @@ function computeDailyClueState(dailyClue) {
563
569
  gameScreenIdentifierList,
564
570
  startDate.toISOString()
565
571
  );
566
- const today = dayjs().startOf("day");
567
- const start = dayjs(startDate).startOf("day");
568
- const end = dayjs(endDate).startOf("day");
572
+ const today = dayjs().utc().startOf("day");
573
+ const start = dayjs(startDate).utc().startOf("day");
574
+ const end = dayjs(endDate).utc().startOf("day");
569
575
  if (today.isBefore(start)) {
570
576
  return null;
571
577
  }
@@ -603,11 +609,11 @@ import dayjs2 from "dayjs";
603
609
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
604
610
  import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
605
611
  import timezone from "dayjs/plugin/timezone.js";
606
- import utc from "dayjs/plugin/utc.js";
612
+ import utc2 from "dayjs/plugin/utc.js";
607
613
  var dateFormat = "DD-MM-YYYY";
608
614
  var timeFormat = "HH:mm";
609
615
  dayjs2.extend(customParseFormat);
610
- dayjs2.extend(utc);
616
+ dayjs2.extend(utc2);
611
617
  dayjs2.extend(timezone);
612
618
  dayjs2.extend(isSameOrAfter);
613
619
  var NZ_TZ = "Pacific/Auckland";