@timardex/cluemart-shared 1.5.794 → 1.5.796

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 (64) hide show
  1. package/dist/{ad-kAjUceeE.d.mts → ad-CnXQqP4h.d.mts} +1 -1
  2. package/dist/{ad-BmDOVKmE.d.ts → ad-jTYE2A1Z.d.ts} +1 -1
  3. package/dist/{affiliate-ISt4ujwI.d.mts → affiliate-BDoo69JY.d.mts} +1 -1
  4. package/dist/{affiliate-C09PnHJx.d.ts → affiliate-BY-BlC9i.d.ts} +1 -1
  5. package/dist/{chunk-XY5XRXR3.mjs → chunk-6UP53CPG.mjs} +1 -1
  6. package/dist/chunk-6UP53CPG.mjs.map +1 -0
  7. package/dist/{chunk-S7C3MFZF.mjs → chunk-E7ZEBZ3O.mjs} +104 -241
  8. package/dist/chunk-E7ZEBZ3O.mjs.map +1 -0
  9. package/dist/{chunk-CID7QC75.mjs → chunk-JD7CKX4S.mjs} +2 -2
  10. package/dist/{chunk-KKPVTN4B.mjs → chunk-KSFDYCSS.mjs} +2 -2
  11. package/dist/{chunk-HO7KOQ6F.mjs → chunk-LHT6WAM2.mjs} +147 -5
  12. package/dist/chunk-LHT6WAM2.mjs.map +1 -0
  13. package/dist/{chunk-2US6BYNF.mjs → chunk-R2XNULRY.mjs} +2 -1
  14. package/dist/chunk-R2XNULRY.mjs.map +1 -0
  15. package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-Dr-IbmG5.d.mts} +1 -1
  16. package/dist/{contactUs-H7799pWe.d.ts → contactUs-RKkIL-nI.d.ts} +1 -1
  17. package/dist/formFields/index.cjs +20 -18
  18. package/dist/formFields/index.cjs.map +1 -1
  19. package/dist/formFields/index.d.mts +1 -1
  20. package/dist/formFields/index.d.ts +1 -1
  21. package/dist/formFields/index.mjs +4 -4
  22. package/dist/{global-fKbMmluy.d.ts → global-BeBuHWbg.d.ts} +1 -0
  23. package/dist/{global-BUUfmCo7.d.mts → global-C8npu_7P.d.mts} +1 -0
  24. package/dist/graphql/index.cjs +1 -0
  25. package/dist/graphql/index.cjs.map +1 -1
  26. package/dist/graphql/index.d.mts +4 -4
  27. package/dist/graphql/index.d.ts +4 -4
  28. package/dist/graphql/index.mjs +1 -1
  29. package/dist/hooks/index.cjs +23 -20
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +4 -4
  32. package/dist/hooks/index.d.ts +4 -4
  33. package/dist/hooks/index.mjs +12 -12
  34. package/dist/index.cjs +158 -155
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +6 -6
  37. package/dist/index.d.ts +6 -6
  38. package/dist/index.mjs +158 -155
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/map/index.d.mts +1 -1
  41. package/dist/map/index.d.ts +1 -1
  42. package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CJrM2qDC.d.ts} +1 -1
  43. package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-lFB7B-Y9.d.mts} +1 -1
  44. package/dist/sharing/index.cjs +104 -317
  45. package/dist/sharing/index.cjs.map +1 -1
  46. package/dist/sharing/index.d.mts +1 -1
  47. package/dist/sharing/index.d.ts +1 -1
  48. package/dist/sharing/index.mjs +2 -3
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +6 -6
  51. package/dist/types/index.d.ts +6 -6
  52. package/dist/types/index.mjs +1 -1
  53. package/dist/utils/index.cjs +157 -155
  54. package/dist/utils/index.cjs.map +1 -1
  55. package/dist/utils/index.d.mts +7 -8
  56. package/dist/utils/index.d.ts +7 -8
  57. package/dist/utils/index.mjs +25 -25
  58. package/package.json +1 -1
  59. package/dist/chunk-2US6BYNF.mjs.map +0 -1
  60. package/dist/chunk-HO7KOQ6F.mjs.map +0 -1
  61. package/dist/chunk-S7C3MFZF.mjs.map +0 -1
  62. package/dist/chunk-XY5XRXR3.mjs.map +0 -1
  63. /package/dist/{chunk-CID7QC75.mjs.map → chunk-JD7CKX4S.mjs.map} +0 -0
  64. /package/dist/{chunk-KKPVTN4B.mjs.map → chunk-KSFDYCSS.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement, j as EnumPostType, O as OptionItem, aw as SocialMediaType, av as ResourceImageType, K as DateTimeType, L as LocationType, V as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-BUUfmCo7.mjs';
1
+ import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement, O as OptionItem, j as EnumPostType, aw as SocialMediaType, av as ResourceImageType, K as DateTimeType, L as LocationType, V as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-C8npu_7P.mjs';
2
2
  import dayjs from 'dayjs';
3
3
  import { EnumRegions, EnumUserLicence, EnumReward, EnumInviteStatus, EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
4
- import { E as EnumAffiliateRewardType, f as AffiliateReward } from '../affiliate-ISt4ujwI.mjs';
4
+ import { E as EnumAffiliateRewardType, f as AffiliateReward } from '../affiliate-BDoo69JY.mjs';
5
5
  import 'react-hook-form';
6
6
 
7
7
  /** Seeded shuffle so all players see the same letter order / placements for a game. */
@@ -50,6 +50,11 @@ declare const futureTimePeriods: {
50
50
  value: string;
51
51
  }[];
52
52
 
53
+ /**
54
+ * Convert an array of strings to an array of objects with label and value properties.
55
+ */
56
+ declare const mapArrayToOptions: (items: string[]) => OptionItem[];
57
+
53
58
  declare const removeTypename: (obj: any) => any;
54
59
  /**
55
60
  * Truncate text to a specified length and append ellipsis if necessary.
@@ -58,12 +63,6 @@ declare const removeTypename: (obj: any) => any;
58
63
  * @returns
59
64
  */
60
65
  declare const truncateText: (text: string, maxLength?: number) => string;
61
- /**
62
- * Convert an array of strings to an array of objects with label and value properties.
63
- * @param items - The array of strings to convert.
64
- * @returns - The converted array of objects.
65
- */
66
- declare const mapArrayToOptions: (items: string[]) => OptionItem[];
67
66
  declare const capitalizeFirstLetter: (str: string) => string;
68
67
  declare const statusOptions: {
69
68
  label: EnumInviteStatus;
@@ -1,7 +1,7 @@
1
- import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement, j as EnumPostType, O as OptionItem, aw as SocialMediaType, av as ResourceImageType, K as DateTimeType, L as LocationType, V as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-fKbMmluy.js';
1
+ import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement, O as OptionItem, j as EnumPostType, aw as SocialMediaType, av as ResourceImageType, K as DateTimeType, L as LocationType, V as VendorType, g as UnregisteredVendorType, c as EventListItemType } from '../global-BeBuHWbg.js';
2
2
  import dayjs from 'dayjs';
3
3
  import { EnumRegions, EnumUserLicence, EnumReward, EnumInviteStatus, EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
4
- import { E as EnumAffiliateRewardType, f as AffiliateReward } from '../affiliate-C09PnHJx.js';
4
+ import { E as EnumAffiliateRewardType, f as AffiliateReward } from '../affiliate-BY-BlC9i.js';
5
5
  import 'react-hook-form';
6
6
 
7
7
  /** Seeded shuffle so all players see the same letter order / placements for a game. */
@@ -50,6 +50,11 @@ declare const futureTimePeriods: {
50
50
  value: string;
51
51
  }[];
52
52
 
53
+ /**
54
+ * Convert an array of strings to an array of objects with label and value properties.
55
+ */
56
+ declare const mapArrayToOptions: (items: string[]) => OptionItem[];
57
+
53
58
  declare const removeTypename: (obj: any) => any;
54
59
  /**
55
60
  * Truncate text to a specified length and append ellipsis if necessary.
@@ -58,12 +63,6 @@ declare const removeTypename: (obj: any) => any;
58
63
  * @returns
59
64
  */
60
65
  declare const truncateText: (text: string, maxLength?: number) => string;
61
- /**
62
- * Convert an array of strings to an array of objects with label and value properties.
63
- * @param items - The array of strings to convert.
64
- * @returns - The converted array of objects.
65
- */
66
- declare const mapArrayToOptions: (items: string[]) => OptionItem[];
67
66
  declare const capitalizeFirstLetter: (str: string) => string;
68
67
  declare const statusOptions: {
69
68
  label: EnumInviteStatus;
@@ -1,10 +1,22 @@
1
1
  import {
2
2
  AFFILIATE_REWARDS,
3
+ ANDROID_URL,
4
+ CLUEMART_MAIN_DOMAIN_URL,
5
+ CM_AFFILIATE_PROMO_CODE,
6
+ CM_SCHOOL_PROMO_CODE,
7
+ DEFAULT_RESOURCES_RETURN_LIMIT,
8
+ DEFAULT_RESOURCES_RETURN_OFFSET,
3
9
  EVENT_DATE_STATUS_PERIOD_MAP,
10
+ IOS_URL,
4
11
  KNOWN_EVENT_SCHEDULE_STATUSES,
12
+ PostTypeLabels,
5
13
  SCHOOL_MAX_STUDENT_COUNT,
6
14
  SCHOOL_MIN_STUDENT_COUNT,
15
+ availableRegionOptions,
16
+ availableRegionTypes,
7
17
  buildCalendarSheetContentData,
18
+ capitalizeFirstLetter,
19
+ cluemartSocialMedia,
8
20
  collectStallholderStartDates,
9
21
  collectVendorEventRelationDateTimes,
10
22
  computeDailyClueState,
@@ -19,6 +31,7 @@ import {
19
31
  filterUnregisteredVendorsForEvent,
20
32
  filterVendorEventsBySelectedDate,
21
33
  findEventDateTimeByIsoDate,
34
+ formatNZBankAccount,
22
35
  fromCalendarIsoDate,
23
36
  getAllowedEventDateStatuses,
24
37
  getEventCalendarIsoDates,
@@ -38,50 +51,37 @@ import {
38
51
  getVendorEventsEmptyMessage,
39
52
  hasMatchingEventDate,
40
53
  isResourceImageActive,
54
+ licenseNiceNames,
41
55
  matchesCategory,
42
56
  matchesSelectedDate,
43
57
  normalizeResourceImage,
58
+ normalizeUrl,
59
+ paymentMethodOptions,
44
60
  relationHasSelectedDate,
61
+ removeTypename,
45
62
  resolveResourceImageActive,
63
+ rewardNiceNames,
46
64
  seededShuffle,
47
65
  shouldShowEventActionsWithWeather,
48
- toCalendarIsoDate
49
- } from "../chunk-HO7KOQ6F.mjs";
66
+ statusOptions,
67
+ toCalendarIsoDate,
68
+ truncateText
69
+ } from "../chunk-LHT6WAM2.mjs";
70
+ import "../chunk-6UP53CPG.mjs";
50
71
  import {
51
- ANDROID_URL,
52
- CLUEMART_MAIN_DOMAIN_URL,
53
- CM_AFFILIATE_PROMO_CODE,
54
- CM_SCHOOL_PROMO_CODE,
55
- DEFAULT_RESOURCES_RETURN_LIMIT,
56
- DEFAULT_RESOURCES_RETURN_OFFSET,
57
- IOS_URL,
58
- PostTypeLabels,
59
- availableRegionOptions,
60
- availableRegionTypes,
61
- capitalizeFirstLetter,
62
- cluemartSocialMedia,
63
72
  dateFormat,
64
73
  formatDate,
65
- formatNZBankAccount,
66
74
  formatTimestamp,
67
75
  futureTimePeriods,
68
76
  getCurrentAndFutureDates,
69
77
  isFutureDatesBeforeThreshold,
70
78
  isIsoDateString,
71
- licenseNiceNames,
72
79
  mapArrayToOptions,
73
- normalizeUrl,
74
80
  nzStartOfDay,
75
- paymentMethodOptions,
76
- removeTypename,
77
- rewardNiceNames,
78
81
  sortDatesChronologically,
79
- statusOptions,
80
82
  timeFormat,
81
- toNZTime,
82
- truncateText
83
- } from "../chunk-S7C3MFZF.mjs";
84
- import "../chunk-XY5XRXR3.mjs";
83
+ toNZTime
84
+ } from "../chunk-E7ZEBZ3O.mjs";
85
85
  import "../chunk-LETM2YHF.mjs";
86
86
  export {
87
87
  AFFILIATE_REWARDS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.5.794",
3
+ "version": "1.5.796",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",