@timardex/cluemart-shared 1.5.497 → 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 (39) hide show
  1. package/dist/{chunk-D3WH67C5.mjs → chunk-6WV7CECU.mjs} +2 -2
  2. package/dist/{chunk-WHHVPICK.mjs → chunk-EJSVR77W.mjs} +11 -9
  3. package/dist/chunk-EJSVR77W.mjs.map +1 -0
  4. package/dist/{chunk-O4ILKWFI.mjs → chunk-RO2IWCW2.mjs} +30 -20
  5. package/dist/chunk-RO2IWCW2.mjs.map +1 -0
  6. package/dist/formFields/index.cjs +96 -2
  7. package/dist/formFields/index.cjs.map +1 -1
  8. package/dist/formFields/index.mjs +3 -3
  9. package/dist/{game-C6zLvmHU.d.mts → game-BR9xpQkt.d.mts} +19 -19
  10. package/dist/{game-B-YC4Am7.d.ts → game-Dn5SH8_0.d.ts} +19 -19
  11. package/dist/graphql/index.d.mts +2 -2
  12. package/dist/graphql/index.d.ts +2 -2
  13. package/dist/hooks/index.cjs +96 -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 +38 -26
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +19 -19
  21. package/dist/index.d.ts +19 -19
  22. package/dist/index.mjs +38 -26
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/{post-DFTmI0uz.d.mts → post-BBYcN5xv.d.mts} +1 -1
  25. package/dist/{post-CNm_rxZm.d.ts → post-CWZFxlP7.d.ts} +1 -1
  26. package/dist/types/index.cjs +29 -19
  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 +38 -26
  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-O4ILKWFI.mjs.map +0 -1
  38. package/dist/chunk-WHHVPICK.mjs.map +0 -1
  39. /package/dist/{chunk-D3WH67C5.mjs.map → chunk-6WV7CECU.mjs.map} +0 -0
@@ -43,10 +43,10 @@ import {
43
43
  vendorStallSize,
44
44
  vendorStartDateFields,
45
45
  vendorTable
46
- } from "../chunk-D3WH67C5.mjs";
47
- import "../chunk-WHHVPICK.mjs";
46
+ } from "../chunk-6WV7CECU.mjs";
47
+ import "../chunk-EJSVR77W.mjs";
48
48
  import "../chunk-534WN2SR.mjs";
49
- import "../chunk-O4ILKWFI.mjs";
49
+ import "../chunk-RO2IWCW2.mjs";
50
50
  export {
51
51
  availableCategories,
52
52
  availableTagTypes,
@@ -2,61 +2,61 @@ import { y as OwnerType } from './global-MMBYi34A.mjs';
2
2
 
3
3
  declare const gameScreenIdentifierList: readonly [{
4
4
  readonly clue: "Where your actions turn into a timeline.";
5
- readonly id: "activities";
5
+ readonly id: "/profile/activities";
6
6
  }, {
7
7
  readonly clue: "Where conversations happen without speaking.";
8
- readonly id: "chat";
8
+ readonly id: "/profile/chat";
9
9
  }, {
10
10
  readonly clue: "The place to redefine who you are.";
11
- readonly id: "edit-profile";
11
+ readonly id: "/profile/edit-profile";
12
12
  }, {
13
13
  readonly clue: "A single moment worth showing up for.";
14
- readonly id: "event";
14
+ readonly id: RegExp;
15
15
  }, {
16
16
  readonly clue: "What’s happening around you, right now.";
17
- readonly id: "events-near-me";
17
+ readonly id: "/events/events-near-me";
18
18
  }, {
19
19
  readonly clue: "A collection of things worth attending.";
20
- readonly id: "events";
20
+ readonly id: "/events";
21
21
  }, {
22
22
  readonly clue: "What’s happening in a wider area—not just nearby.";
23
- readonly id: "events/region";
23
+ readonly id: RegExp;
24
24
  }, {
25
25
  readonly clue: "Where you go to find something specific.";
26
- readonly id: "events/search";
26
+ readonly id: "/events/search";
27
27
  }, {
28
28
  readonly clue: "Where fun becomes a challenge.";
29
- readonly id: "games";
29
+ readonly id: "/games";
30
30
  }, {
31
31
  readonly clue: "Your starting point for everything.";
32
- readonly id: "home";
32
+ readonly id: "/";
33
33
  }, {
34
34
  readonly clue: "Where the app taps you on the shoulder.";
35
- readonly id: "notifications";
35
+ readonly id: "/notifications";
36
36
  }, {
37
37
  readonly clue: "Where you fine-tune your experience.";
38
- readonly id: "options";
38
+ readonly id: "/options";
39
39
  }, {
40
40
  readonly clue: "A single collaborator in the ecosystem.";
41
- readonly id: "partner";
41
+ readonly id: RegExp;
42
42
  }, {
43
43
  readonly clue: "The network behind the scenes.";
44
- readonly id: "partners";
44
+ readonly id: "/partners";
45
45
  }, {
46
46
  readonly clue: "Where you share something with everyone.";
47
- readonly id: "post";
47
+ readonly id: RegExp;
48
48
  }, {
49
49
  readonly clue: "Your identity, on display.";
50
- readonly id: "profile";
50
+ readonly id: "/profile";
51
51
  }, {
52
52
  readonly clue: "One provider offering something valuable.";
53
- readonly id: "vendor";
53
+ readonly id: RegExp;
54
54
  }, {
55
55
  readonly clue: "A marketplace of providers.";
56
- readonly id: "vendors";
56
+ readonly id: "/vendors";
57
57
  }, {
58
58
  readonly clue: "People who stopped by to see you.";
59
- readonly id: "visitors";
59
+ readonly id: "/visitors";
60
60
  }];
61
61
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
62
62
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
@@ -2,61 +2,61 @@ import { y as OwnerType } from './global-B0WdAD-8.js';
2
2
 
3
3
  declare const gameScreenIdentifierList: readonly [{
4
4
  readonly clue: "Where your actions turn into a timeline.";
5
- readonly id: "activities";
5
+ readonly id: "/profile/activities";
6
6
  }, {
7
7
  readonly clue: "Where conversations happen without speaking.";
8
- readonly id: "chat";
8
+ readonly id: "/profile/chat";
9
9
  }, {
10
10
  readonly clue: "The place to redefine who you are.";
11
- readonly id: "edit-profile";
11
+ readonly id: "/profile/edit-profile";
12
12
  }, {
13
13
  readonly clue: "A single moment worth showing up for.";
14
- readonly id: "event";
14
+ readonly id: RegExp;
15
15
  }, {
16
16
  readonly clue: "What’s happening around you, right now.";
17
- readonly id: "events-near-me";
17
+ readonly id: "/events/events-near-me";
18
18
  }, {
19
19
  readonly clue: "A collection of things worth attending.";
20
- readonly id: "events";
20
+ readonly id: "/events";
21
21
  }, {
22
22
  readonly clue: "What’s happening in a wider area—not just nearby.";
23
- readonly id: "events/region";
23
+ readonly id: RegExp;
24
24
  }, {
25
25
  readonly clue: "Where you go to find something specific.";
26
- readonly id: "events/search";
26
+ readonly id: "/events/search";
27
27
  }, {
28
28
  readonly clue: "Where fun becomes a challenge.";
29
- readonly id: "games";
29
+ readonly id: "/games";
30
30
  }, {
31
31
  readonly clue: "Your starting point for everything.";
32
- readonly id: "home";
32
+ readonly id: "/";
33
33
  }, {
34
34
  readonly clue: "Where the app taps you on the shoulder.";
35
- readonly id: "notifications";
35
+ readonly id: "/notifications";
36
36
  }, {
37
37
  readonly clue: "Where you fine-tune your experience.";
38
- readonly id: "options";
38
+ readonly id: "/options";
39
39
  }, {
40
40
  readonly clue: "A single collaborator in the ecosystem.";
41
- readonly id: "partner";
41
+ readonly id: RegExp;
42
42
  }, {
43
43
  readonly clue: "The network behind the scenes.";
44
- readonly id: "partners";
44
+ readonly id: "/partners";
45
45
  }, {
46
46
  readonly clue: "Where you share something with everyone.";
47
- readonly id: "post";
47
+ readonly id: RegExp;
48
48
  }, {
49
49
  readonly clue: "Your identity, on display.";
50
- readonly id: "profile";
50
+ readonly id: "/profile";
51
51
  }, {
52
52
  readonly clue: "One provider offering something valuable.";
53
- readonly id: "vendor";
53
+ readonly id: RegExp;
54
54
  }, {
55
55
  readonly clue: "A marketplace of providers.";
56
- readonly id: "vendors";
56
+ readonly id: "/vendors";
57
57
  }, {
58
58
  readonly clue: "People who stopped by to see you.";
59
- readonly id: "visitors";
59
+ readonly id: "/visitors";
60
60
  }];
61
61
  type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
62
62
  type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
@@ -2,8 +2,8 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-MMBYi34A.mjs';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DFTmI0uz.mjs';
6
- import { G as GameType, a as GameLeaderboard } from '../game-C6zLvmHU.mjs';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-BBYcN5xv.mjs';
6
+ import { G as GameType, a as GameLeaderboard } from '../game-BR9xpQkt.mjs';
7
7
  import 'react-hook-form';
8
8
 
9
9
  declare const useAdminUpdateResourceType: () => {
@@ -2,8 +2,8 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-B0WdAD-8.js';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-CNm_rxZm.js';
6
- import { G as GameType, a as GameLeaderboard } from '../game-B-YC4Am7.js';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-CWZFxlP7.js';
6
+ import { G as GameType, a as GameLeaderboard } from '../game-Dn5SH8_0.js';
7
7
  import 'react-hook-form';
8
8
 
9
9
  declare const useAdminUpdateResourceType: () => {
@@ -278,17 +278,111 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
278
278
 
279
279
  // src/utils/dailyClueGame.ts
280
280
  var import_dayjs = __toESM(require("dayjs"));
281
+ var import_utc = __toESM(require("dayjs/plugin/utc"));
282
+
283
+ // src/types/game.ts
284
+ var createRouteMatcher = (base, type) => {
285
+ switch (type) {
286
+ case "mongoId":
287
+ return new RegExp(`^\\/${base}\\/([a-f0-9]{24})$`);
288
+ case "slug":
289
+ return new RegExp(`^\\/${base}\\/[^/]+$`);
290
+ default:
291
+ return new RegExp(`^\\/${base}$`);
292
+ }
293
+ };
294
+ var gameScreenIdentifierList = [
295
+ {
296
+ clue: "Where your actions turn into a timeline.",
297
+ id: "/profile/activities"
298
+ },
299
+ {
300
+ clue: "Where conversations happen without speaking.",
301
+ id: "/profile/chat"
302
+ },
303
+ {
304
+ clue: "The place to redefine who you are.",
305
+ id: "/profile/edit-profile"
306
+ },
307
+ {
308
+ clue: "A single moment worth showing up for.",
309
+ id: createRouteMatcher("events", "mongoId")
310
+ },
311
+ {
312
+ clue: "What\u2019s happening around you, right now.",
313
+ id: "/events/events-near-me"
314
+ },
315
+ {
316
+ clue: "A collection of things worth attending.",
317
+ id: "/events"
318
+ },
319
+ {
320
+ clue: "What\u2019s happening in a wider area\u2014not just nearby.",
321
+ id: createRouteMatcher("events/region", "slug")
322
+ },
323
+ {
324
+ clue: "Where you go to find something specific.",
325
+ id: "/events/search"
326
+ },
327
+ {
328
+ clue: "Where fun becomes a challenge.",
329
+ id: "/games"
330
+ },
331
+ {
332
+ clue: "Your starting point for everything.",
333
+ id: "/"
334
+ },
335
+ {
336
+ clue: "Where the app taps you on the shoulder.",
337
+ id: "/notifications"
338
+ },
339
+ {
340
+ clue: "Where you fine-tune your experience.",
341
+ id: "/options"
342
+ },
343
+ {
344
+ clue: "A single collaborator in the ecosystem.",
345
+ id: createRouteMatcher("partners", "mongoId")
346
+ },
347
+ {
348
+ clue: "The network behind the scenes.",
349
+ id: "/partners"
350
+ },
351
+ {
352
+ clue: "Where you share something with everyone.",
353
+ id: createRouteMatcher("visitors/posts", "mongoId")
354
+ },
355
+ {
356
+ clue: "Your identity, on display.",
357
+ id: "/profile"
358
+ },
359
+ {
360
+ clue: "One provider offering something valuable.",
361
+ id: createRouteMatcher("vendors", "mongoId")
362
+ },
363
+ {
364
+ clue: "A marketplace of providers.",
365
+ id: "/vendors"
366
+ },
367
+ {
368
+ clue: "People who stopped by to see you.",
369
+ id: "/visitors"
370
+ }
371
+ ];
372
+
373
+ // src/utils/dailyClueGame.ts
374
+ import_dayjs.default.extend(import_utc.default);
281
375
 
282
376
  // src/utils/index.ts
283
377
  var import_dayjs2 = __toESM(require("dayjs"));
284
378
  var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
285
379
  var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
286
380
  var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
287
- var import_utc = __toESM(require("dayjs/plugin/utc.js"));
381
+ var import_utc2 = __toESM(require("dayjs/plugin/utc.js"));
288
382
  var dateFormat = "DD-MM-YYYY";
289
383
  var timeFormat = "HH:mm";
290
384
  import_dayjs2.default.extend(import_customParseFormat.default);
291
- import_dayjs2.default.extend(import_utc.default);
385
+ import_dayjs2.default.extend(import_utc2.default);
292
386
  import_dayjs2.default.extend(import_timezone.default);
293
387
  import_dayjs2.default.extend(import_isSameOrAfter.default);
294
388
  var mapArrayToOptions = (items) => items.map((item) => ({