@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.
- package/dist/{ad-kAjUceeE.d.mts → ad-CnXQqP4h.d.mts} +1 -1
- package/dist/{ad-BmDOVKmE.d.ts → ad-jTYE2A1Z.d.ts} +1 -1
- package/dist/{affiliate-ISt4ujwI.d.mts → affiliate-BDoo69JY.d.mts} +1 -1
- package/dist/{affiliate-C09PnHJx.d.ts → affiliate-BY-BlC9i.d.ts} +1 -1
- package/dist/{chunk-XY5XRXR3.mjs → chunk-6UP53CPG.mjs} +1 -1
- package/dist/chunk-6UP53CPG.mjs.map +1 -0
- package/dist/{chunk-S7C3MFZF.mjs → chunk-E7ZEBZ3O.mjs} +104 -241
- package/dist/chunk-E7ZEBZ3O.mjs.map +1 -0
- package/dist/{chunk-CID7QC75.mjs → chunk-JD7CKX4S.mjs} +2 -2
- package/dist/{chunk-KKPVTN4B.mjs → chunk-KSFDYCSS.mjs} +2 -2
- package/dist/{chunk-HO7KOQ6F.mjs → chunk-LHT6WAM2.mjs} +147 -5
- package/dist/chunk-LHT6WAM2.mjs.map +1 -0
- package/dist/{chunk-2US6BYNF.mjs → chunk-R2XNULRY.mjs} +2 -1
- package/dist/chunk-R2XNULRY.mjs.map +1 -0
- package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-Dr-IbmG5.d.mts} +1 -1
- package/dist/{contactUs-H7799pWe.d.ts → contactUs-RKkIL-nI.d.ts} +1 -1
- package/dist/formFields/index.cjs +20 -18
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +4 -4
- package/dist/{global-fKbMmluy.d.ts → global-BeBuHWbg.d.ts} +1 -0
- package/dist/{global-BUUfmCo7.d.mts → global-C8npu_7P.d.mts} +1 -0
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -4
- package/dist/graphql/index.d.ts +4 -4
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +23 -20
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.mjs +12 -12
- package/dist/index.cjs +158 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +158 -155
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CJrM2qDC.d.ts} +1 -1
- package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-lFB7B-Y9.d.mts} +1 -1
- package/dist/sharing/index.cjs +104 -317
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +2 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +157 -155
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +7 -8
- package/dist/utils/index.d.ts +7 -8
- package/dist/utils/index.mjs +25 -25
- package/package.json +1 -1
- package/dist/chunk-2US6BYNF.mjs.map +0 -1
- package/dist/chunk-HO7KOQ6F.mjs.map +0 -1
- package/dist/chunk-S7C3MFZF.mjs.map +0 -1
- package/dist/chunk-XY5XRXR3.mjs.map +0 -1
- /package/dist/{chunk-CID7QC75.mjs.map → chunk-JD7CKX4S.mjs.map} +0 -0
- /package/dist/{chunk-KKPVTN4B.mjs.map → chunk-KSFDYCSS.mjs.map} +0 -0
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement,
|
|
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-
|
|
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;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { J as DailyClueGameData, $ as GamePlacementClue, _ as GamePlacement,
|
|
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-
|
|
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;
|
package/dist/utils/index.mjs
CHANGED
|
@@ -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
|
-
|
|
49
|
-
|
|
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
|
-
|
|
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,
|