@timardex/cluemart-shared 2.2.27 → 2.2.29
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-RVTFPYR6.mjs → chunk-J5N3IEGR.mjs} +2 -2
- package/dist/{chunk-6O6TRUOV.mjs → chunk-MQHX5BD6.mjs} +2 -2
- package/dist/{chunk-SVP23BRG.mjs → chunk-NRNLARYC.mjs} +10 -2
- package/dist/chunk-NRNLARYC.mjs.map +1 -0
- package/dist/{chunk-MUDAYKZ6.mjs → chunk-YFFCHTJS.mjs} +9 -1
- package/dist/chunk-YFFCHTJS.mjs.map +1 -0
- package/dist/formFields/index.cjs +7 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/hooks/index.cjs +7 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/utils/index.cjs +19 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +31 -1
- package/dist/utils/index.d.ts +31 -1
- package/dist/utils/index.mjs +8 -2
- package/package.json +1 -1
- package/dist/chunk-MUDAYKZ6.mjs.map +0 -1
- package/dist/chunk-SVP23BRG.mjs.map +0 -1
- /package/dist/{chunk-RVTFPYR6.mjs.map → chunk-J5N3IEGR.mjs.map} +0 -0
- /package/dist/{chunk-6O6TRUOV.mjs.map → chunk-MQHX5BD6.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-MQHX5BD6.mjs";
|
|
2
2
|
import "../chunk-VA5YN2K3.mjs";
|
|
3
3
|
import "../chunk-VPANTTZI.mjs";
|
|
4
4
|
import "../chunk-DWO35OY4.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-J5N3IEGR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NRNLARYC.mjs";
|
|
11
11
|
import "../chunk-RE4NZPYY.mjs";
|
|
12
12
|
import {
|
|
13
13
|
dateFormat,
|
|
14
14
|
timeFormat
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-YFFCHTJS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
EnumAdShowOn,
|
|
18
18
|
EnumAdStatus,
|
package/dist/index.cjs
CHANGED
|
@@ -125,11 +125,13 @@ __export(index_exports, {
|
|
|
125
125
|
IOS_URL: () => IOS_URL,
|
|
126
126
|
ImageTypeEnum: () => ImageTypeEnum,
|
|
127
127
|
LicenceExpiryDate: () => LicenceExpiryDate,
|
|
128
|
+
MANUAL_DATE_STATUSES: () => MANUAL_DATE_STATUSES,
|
|
128
129
|
MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
|
|
129
130
|
NETWORK_USER_FACING_ERROR: () => NETWORK_USER_FACING_ERROR,
|
|
130
131
|
OG_DESCRIPTION_LINE_BREAK: () => OG_DESCRIPTION_LINE_BREAK,
|
|
131
132
|
PERMISSIONS: () => PERMISSIONS,
|
|
132
133
|
POST_SHARE_RESOURCE_TYPES: () => POST_SHARE_RESOURCE_TYPES,
|
|
134
|
+
PRESERVED_RELATION_DATE_STATUSES: () => PRESERVED_RELATION_DATE_STATUSES,
|
|
133
135
|
PROMO_CODE_PREFIX: () => PROMO_CODE_PREFIX,
|
|
134
136
|
PUBLIC_SHARE_PATH_TYPES: () => PUBLIC_SHARE_PATH_TYPES,
|
|
135
137
|
PostTypeLabels: () => PostTypeLabels,
|
|
@@ -194,6 +196,7 @@ __export(index_exports, {
|
|
|
194
196
|
buildInvitationShareDescription: () => buildInvitationShareDescription,
|
|
195
197
|
buildPublicEventShareDescription: () => buildPublicEventShareDescription,
|
|
196
198
|
buildPublicVendorShareDescription: () => buildPublicVendorShareDescription,
|
|
199
|
+
buildRelationEligibleEventSchedule: () => buildRelationEligibleEventSchedule,
|
|
197
200
|
buildShareMessageSections: () => buildShareMessageSections,
|
|
198
201
|
buildShareOgDescription: () => buildShareOgDescription,
|
|
199
202
|
buildShareOgDescriptionFromSections: () => buildShareOgDescriptionFromSections,
|
|
@@ -1211,6 +1214,12 @@ var MANUAL_DATE_STATUSES = /* @__PURE__ */ new Set([
|
|
|
1211
1214
|
"Canceled" /* CANCELED */,
|
|
1212
1215
|
"Rescheduled" /* RE_SCHEDULED */
|
|
1213
1216
|
]);
|
|
1217
|
+
function buildRelationEligibleEventSchedule(liveDateTime, archivedDateTime = []) {
|
|
1218
|
+
const eligible = liveDateTime.filter(
|
|
1219
|
+
(slot) => !slot.dateStatus || !MANUAL_DATE_STATUSES.has(slot.dateStatus)
|
|
1220
|
+
);
|
|
1221
|
+
return [...eligible, ...archivedDateTime];
|
|
1222
|
+
}
|
|
1214
1223
|
function getFutureEventStatus(startDateTime, now) {
|
|
1215
1224
|
const hoursUntilStart = startDateTime.diff(now, "hour", true);
|
|
1216
1225
|
if (hoursUntilStart > 0 && hoursUntilStart <= 4) {
|
|
@@ -3562,6 +3571,13 @@ function getVendorEventsData({
|
|
|
3562
3571
|
};
|
|
3563
3572
|
}
|
|
3564
3573
|
|
|
3574
|
+
// src/utils/relations/preservedRelationDateStatuses.ts
|
|
3575
|
+
var PRESERVED_RELATION_DATE_STATUSES = /* @__PURE__ */ new Set([
|
|
3576
|
+
"Accepted" /* ACCEPTED */,
|
|
3577
|
+
"Completed" /* COMPLETED */,
|
|
3578
|
+
"Rejected" /* REJECTED */
|
|
3579
|
+
]);
|
|
3580
|
+
|
|
3565
3581
|
// src/utils/toUserFacingErrorMessage.ts
|
|
3566
3582
|
var DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
|
|
3567
3583
|
var NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
|
|
@@ -10374,11 +10390,13 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10374
10390
|
IOS_URL,
|
|
10375
10391
|
ImageTypeEnum,
|
|
10376
10392
|
LicenceExpiryDate,
|
|
10393
|
+
MANUAL_DATE_STATUSES,
|
|
10377
10394
|
MY_PENDING_VENDOR_CLAIM,
|
|
10378
10395
|
NETWORK_USER_FACING_ERROR,
|
|
10379
10396
|
OG_DESCRIPTION_LINE_BREAK,
|
|
10380
10397
|
PERMISSIONS,
|
|
10381
10398
|
POST_SHARE_RESOURCE_TYPES,
|
|
10399
|
+
PRESERVED_RELATION_DATE_STATUSES,
|
|
10382
10400
|
PROMO_CODE_PREFIX,
|
|
10383
10401
|
PUBLIC_SHARE_PATH_TYPES,
|
|
10384
10402
|
PostTypeLabels,
|
|
@@ -10443,6 +10461,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10443
10461
|
buildInvitationShareDescription,
|
|
10444
10462
|
buildPublicEventShareDescription,
|
|
10445
10463
|
buildPublicVendorShareDescription,
|
|
10464
|
+
buildRelationEligibleEventSchedule,
|
|
10446
10465
|
buildShareMessageSections,
|
|
10447
10466
|
buildShareOgDescription,
|
|
10448
10467
|
buildShareOgDescriptionFromSections,
|