@timardex/cluemart-shared 1.5.495 → 1.5.497
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.
- package/dist/{chunk-SKWWATIR.mjs → chunk-D3WH67C5.mjs} +2 -2
- package/dist/{chunk-QG5DPPZI.mjs → chunk-O4ILKWFI.mjs} +5 -1
- package/dist/chunk-O4ILKWFI.mjs.map +1 -0
- package/dist/{chunk-F4IWHY4O.mjs → chunk-WHHVPICK.mjs} +8 -10
- package/dist/chunk-WHHVPICK.mjs.map +1 -0
- package/dist/formFields/index.cjs +2 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/{game-lvz2AUuu.d.ts → game-B-YC4Am7.d.ts} +3 -0
- package/dist/{game-DTrJRy_s.d.mts → game-C6zLvmHU.d.mts} +3 -0
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DXOToXeT.d.ts → post-CNm_rxZm.d.ts} +1 -1
- package/dist/{post-wptsHKVN.d.mts → post-DFTmI0uz.d.mts} +1 -1
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +10 -8
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-F4IWHY4O.mjs.map +0 -1
- package/dist/chunk-QG5DPPZI.mjs.map +0 -1
- /package/dist/{chunk-SKWWATIR.mjs.map → chunk-D3WH67C5.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,7 +435,6 @@ var priceUnits = [
|
|
|
435
435
|
|
|
436
436
|
// src/utils/dailyClueGame.ts
|
|
437
437
|
import dayjs from "dayjs";
|
|
438
|
-
import utc from "dayjs/plugin/utc";
|
|
439
438
|
|
|
440
439
|
// src/types/game.ts
|
|
441
440
|
var gameScreenIdentifierList = [
|
|
@@ -467,6 +466,10 @@ var gameScreenIdentifierList = [
|
|
|
467
466
|
clue: "What\u2019s happening in a wider area\u2014not just nearby.",
|
|
468
467
|
id: "events/region"
|
|
469
468
|
},
|
|
469
|
+
{
|
|
470
|
+
clue: "Where you go to find something specific.",
|
|
471
|
+
id: "events/search"
|
|
472
|
+
},
|
|
470
473
|
{
|
|
471
474
|
clue: "Where fun becomes a challenge.",
|
|
472
475
|
id: "games"
|
|
@@ -527,7 +530,6 @@ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
|
|
|
527
530
|
})(EnumGameStatus || {});
|
|
528
531
|
|
|
529
532
|
// src/utils/dailyClueGame.ts
|
|
530
|
-
dayjs.extend(utc);
|
|
531
533
|
function createSeededRng(seed) {
|
|
532
534
|
let t = seed >>> 0;
|
|
533
535
|
return function random() {
|
|
@@ -556,7 +558,7 @@ function seededShuffle(array6, seed) {
|
|
|
556
558
|
return result;
|
|
557
559
|
}
|
|
558
560
|
function getDayIndex(startDate) {
|
|
559
|
-
return dayjs().
|
|
561
|
+
return dayjs().startOf("day").diff(dayjs(startDate).startOf("day"), "day");
|
|
560
562
|
}
|
|
561
563
|
function computeDailyClueState(dailyClue) {
|
|
562
564
|
const { startDate, endDate } = dailyClue.gameFields.gameDate;
|
|
@@ -565,9 +567,9 @@ function computeDailyClueState(dailyClue) {
|
|
|
565
567
|
gameScreenIdentifierList,
|
|
566
568
|
startDate.toISOString()
|
|
567
569
|
);
|
|
568
|
-
const today = dayjs().
|
|
569
|
-
const start = dayjs(startDate).
|
|
570
|
-
const end = dayjs(endDate).
|
|
570
|
+
const today = dayjs().startOf("day");
|
|
571
|
+
const start = dayjs(startDate).startOf("day");
|
|
572
|
+
const end = dayjs(endDate).startOf("day");
|
|
571
573
|
if (today.isBefore(start)) {
|
|
572
574
|
return null;
|
|
573
575
|
}
|
|
@@ -605,11 +607,11 @@ import dayjs2 from "dayjs";
|
|
|
605
607
|
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
606
608
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
607
609
|
import timezone from "dayjs/plugin/timezone.js";
|
|
608
|
-
import
|
|
610
|
+
import utc from "dayjs/plugin/utc.js";
|
|
609
611
|
var dateFormat = "DD-MM-YYYY";
|
|
610
612
|
var timeFormat = "HH:mm";
|
|
611
613
|
dayjs2.extend(customParseFormat);
|
|
612
|
-
dayjs2.extend(
|
|
614
|
+
dayjs2.extend(utc);
|
|
613
615
|
dayjs2.extend(timezone);
|
|
614
616
|
dayjs2.extend(isSameOrAfter);
|
|
615
617
|
var NZ_TZ = "Pacific/Auckland";
|