@timardex/cluemart-shared 2.2.28 → 2.2.30
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-356ZQFAQ.mjs → chunk-J5N3IEGR.mjs} +2 -2
- package/dist/{chunk-6O6TRUOV.mjs → chunk-MQHX5BD6.mjs} +2 -2
- package/dist/{chunk-RQPB4TAM.mjs → chunk-NRNLARYC.mjs} +2 -2
- package/dist/{chunk-MUDAYKZ6.mjs → chunk-YFFCHTJS.mjs} +9 -1
- package/dist/chunk-YFFCHTJS.mjs.map +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/hooks/index.cjs +306 -280
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +310 -284
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.mjs +8 -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 +10 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +23 -1
- package/dist/utils/index.d.ts +23 -1
- package/dist/utils/index.mjs +6 -2
- package/package.json +1 -1
- package/dist/chunk-MUDAYKZ6.mjs.map +0 -1
- /package/dist/{chunk-356ZQFAQ.mjs.map → chunk-J5N3IEGR.mjs.map} +0 -0
- /package/dist/{chunk-6O6TRUOV.mjs.map → chunk-MQHX5BD6.mjs.map} +0 -0
- /package/dist/{chunk-RQPB4TAM.mjs.map → chunk-NRNLARYC.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -125,6 +125,7 @@ __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,
|
|
@@ -195,6 +196,7 @@ __export(index_exports, {
|
|
|
195
196
|
buildInvitationShareDescription: () => buildInvitationShareDescription,
|
|
196
197
|
buildPublicEventShareDescription: () => buildPublicEventShareDescription,
|
|
197
198
|
buildPublicVendorShareDescription: () => buildPublicVendorShareDescription,
|
|
199
|
+
buildRelationEligibleEventSchedule: () => buildRelationEligibleEventSchedule,
|
|
198
200
|
buildShareMessageSections: () => buildShareMessageSections,
|
|
199
201
|
buildShareOgDescription: () => buildShareOgDescription,
|
|
200
202
|
buildShareOgDescriptionFromSections: () => buildShareOgDescriptionFromSections,
|
|
@@ -1212,6 +1214,12 @@ var MANUAL_DATE_STATUSES = /* @__PURE__ */ new Set([
|
|
|
1212
1214
|
"Canceled" /* CANCELED */,
|
|
1213
1215
|
"Rescheduled" /* RE_SCHEDULED */
|
|
1214
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
|
+
}
|
|
1215
1223
|
function getFutureEventStatus(startDateTime, now) {
|
|
1216
1224
|
const hoursUntilStart = startDateTime.diff(now, "hour", true);
|
|
1217
1225
|
if (hoursUntilStart > 0 && hoursUntilStart <= 4) {
|
|
@@ -10382,6 +10390,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10382
10390
|
IOS_URL,
|
|
10383
10391
|
ImageTypeEnum,
|
|
10384
10392
|
LicenceExpiryDate,
|
|
10393
|
+
MANUAL_DATE_STATUSES,
|
|
10385
10394
|
MY_PENDING_VENDOR_CLAIM,
|
|
10386
10395
|
NETWORK_USER_FACING_ERROR,
|
|
10387
10396
|
OG_DESCRIPTION_LINE_BREAK,
|
|
@@ -10452,6 +10461,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10452
10461
|
buildInvitationShareDescription,
|
|
10453
10462
|
buildPublicEventShareDescription,
|
|
10454
10463
|
buildPublicVendorShareDescription,
|
|
10464
|
+
buildRelationEligibleEventSchedule,
|
|
10455
10465
|
buildShareMessageSections,
|
|
10456
10466
|
buildShareOgDescription,
|
|
10457
10467
|
buildShareOgDescriptionFromSections,
|