@timardex/cluemart-shared 2.1.4 → 2.1.8
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/auth/index.mjs +1 -1
- package/dist/{chunk-HFN6KXX2.mjs → chunk-KT65YYOB.mjs} +17 -15
- package/dist/chunk-KT65YYOB.mjs.map +1 -0
- package/dist/{chunk-B22YRNRF.mjs → chunk-OK3BPZYA.mjs} +3 -3
- package/dist/{chunk-7TZDJXYL.mjs → chunk-YPWBK4WU.mjs} +2 -1
- package/dist/chunk-YPWBK4WU.mjs.map +1 -0
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +0 -5
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +0 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +16 -12
- package/dist/index.mjs.map +1 -1
- package/dist/region/index.cjs.map +1 -1
- package/dist/region/index.mjs +1 -1
- package/dist/sharing/index.mjs +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +15 -13
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -4
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.mjs +2 -4
- package/package.json +1 -1
- package/dist/chunk-7TZDJXYL.mjs.map +0 -1
- package/dist/chunk-HFN6KXX2.mjs.map +0 -1
- /package/dist/{chunk-B22YRNRF.mjs.map → chunk-OK3BPZYA.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import "../chunk-BTZIWVSF.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-OK3BPZYA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KT65YYOB.mjs";
|
|
11
11
|
import "../chunk-RE4NZPYY.mjs";
|
|
12
12
|
import {
|
|
13
13
|
dateFormat,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
EnumResourceType,
|
|
37
37
|
EnumSocialMedia,
|
|
38
38
|
EnumVendorType
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-YPWBK4WU.mjs";
|
|
40
40
|
import "../chunk-NPFJ2CN2.mjs";
|
|
41
41
|
|
|
42
42
|
// src/hooks/useLocationSearch.ts
|
package/dist/index.cjs
CHANGED
|
@@ -123,7 +123,6 @@ __export(index_exports, {
|
|
|
123
123
|
INITIAL_BILLING_CATALOG: () => INITIAL_BILLING_CATALOG,
|
|
124
124
|
IOS_URL: () => IOS_URL,
|
|
125
125
|
ImageTypeEnum: () => ImageTypeEnum,
|
|
126
|
-
KNOWN_EVENT_SCHEDULE_STATUSES: () => KNOWN_EVENT_SCHEDULE_STATUSES,
|
|
127
126
|
LicenceExpiryDate: () => LicenceExpiryDate,
|
|
128
127
|
MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
|
|
129
128
|
NETWORK_USER_FACING_ERROR: () => NETWORK_USER_FACING_ERROR,
|
|
@@ -679,6 +678,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
679
678
|
EnumNotificationResourceType2["DOWNGRADED_EVENT"] = "downgraded_event";
|
|
680
679
|
EnumNotificationResourceType2["DOWNGRADED_PARTNER"] = "downgraded_partner";
|
|
681
680
|
EnumNotificationResourceType2["DOWNGRADED_VENDOR"] = "downgraded_vendor";
|
|
681
|
+
EnumNotificationResourceType2["EVENT_DATE_CANCELED"] = "event_date_canceled";
|
|
682
682
|
EnumNotificationResourceType2["EVENT_INVITE_VENDOR"] = "event_invite_vendor" /* EVENT_INVITE_VENDOR */;
|
|
683
683
|
EnumNotificationResourceType2["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
684
684
|
EnumNotificationResourceType2["EVENT_UPDATE_RELATION_TO_VENDOR"] = "event_update_relation_to_vendor" /* EVENT_UPDATE_RELATION_TO_VENDOR */;
|
|
@@ -1859,11 +1859,6 @@ var SCHOOL_MAX_STUDENT_COUNT = 0;
|
|
|
1859
1859
|
|
|
1860
1860
|
// src/calendar/eventCalendar.ts
|
|
1861
1861
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
1862
|
-
var KNOWN_EVENT_SCHEDULE_STATUSES = /* @__PURE__ */ new Set([
|
|
1863
|
-
"Started" /* STARTED */,
|
|
1864
|
-
"Starting_Soon" /* STARTING_SOON */,
|
|
1865
|
-
"Ended" /* ENDED */
|
|
1866
|
-
]);
|
|
1867
1862
|
function toCalendarIsoDate(startDate) {
|
|
1868
1863
|
const formatted = (0, import_dayjs2.default)(startDate, dateFormat).format("YYYY-MM-DD");
|
|
1869
1864
|
return (0, import_dayjs2.default)(formatted, "YYYY-MM-DD", true).isValid() ? formatted : null;
|
|
@@ -1896,8 +1891,20 @@ function getEventScheduleStatusTone(status) {
|
|
|
1896
1891
|
return "started";
|
|
1897
1892
|
case "Starting_Soon" /* STARTING_SOON */:
|
|
1898
1893
|
return "startingSoon";
|
|
1894
|
+
case "Today" /* TODAY */:
|
|
1895
|
+
case "Tomorrow" /* TOMORROW */:
|
|
1896
|
+
case "This_Week" /* THIS_WEEK */:
|
|
1897
|
+
case "Next_Week" /* NEXT_WEEK */:
|
|
1898
|
+
case "Upcoming" /* UPCOMING */:
|
|
1899
|
+
return "upcoming";
|
|
1899
1900
|
case "Ended" /* ENDED */:
|
|
1900
1901
|
return "ended";
|
|
1902
|
+
case "Canceled" /* CANCELED */:
|
|
1903
|
+
return "canceled";
|
|
1904
|
+
case "Rescheduled" /* RE_SCHEDULED */:
|
|
1905
|
+
return "rescheduled";
|
|
1906
|
+
case "Invalid" /* INVALID */:
|
|
1907
|
+
return "invalid";
|
|
1901
1908
|
default:
|
|
1902
1909
|
return "default";
|
|
1903
1910
|
}
|
|
@@ -1909,15 +1916,12 @@ function getEventScheduleStatusPresentation(dateTime) {
|
|
|
1909
1916
|
tone: getEventScheduleStatusTone(dateTime.dateStatus)
|
|
1910
1917
|
};
|
|
1911
1918
|
}
|
|
1912
|
-
function getEventScheduleStatusLabel(dateTime
|
|
1919
|
+
function getEventScheduleStatusLabel(dateTime) {
|
|
1913
1920
|
const { dateStatus: status } = dateTime;
|
|
1914
|
-
|
|
1915
|
-
status && KNOWN_EVENT_SCHEDULE_STATUSES.has(status)
|
|
1916
|
-
);
|
|
1917
|
-
if (onlyShowKnownStatuses && !isKnownStatus) {
|
|
1921
|
+
if (!status) {
|
|
1918
1922
|
return null;
|
|
1919
1923
|
}
|
|
1920
|
-
return
|
|
1924
|
+
return status.replaceAll("_", " ").toLowerCase();
|
|
1921
1925
|
}
|
|
1922
1926
|
function shouldShowEventActionsWithWeather(resourceType, dateTime, location) {
|
|
1923
1927
|
return resourceType === "event" /* EVENT */ && Boolean(location) && Boolean(dateTime?.dateStatus) && !["Ended" /* ENDED */, "Canceled" /* CANCELED */].includes(
|
|
@@ -10088,7 +10092,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10088
10092
|
INITIAL_BILLING_CATALOG,
|
|
10089
10093
|
IOS_URL,
|
|
10090
10094
|
ImageTypeEnum,
|
|
10091
|
-
KNOWN_EVENT_SCHEDULE_STATUSES,
|
|
10092
10095
|
LicenceExpiryDate,
|
|
10093
10096
|
MY_PENDING_VENDOR_CLAIM,
|
|
10094
10097
|
NETWORK_USER_FACING_ERROR,
|