@timardex/cluemart-shared 1.7.84 → 1.7.86
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-BL7UBY4I.mjs → chunk-HPHI5IVL.mjs} +17 -3
- package/dist/chunk-HPHI5IVL.mjs.map +1 -0
- package/dist/{chunk-5RXL62LO.mjs → chunk-RCARDOVS.mjs} +4 -6
- package/dist/chunk-RCARDOVS.mjs.map +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/graphql/index.cjs +16 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +19 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +19 -7
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +3 -5
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5RXL62LO.mjs.map +0 -1
- package/dist/chunk-BL7UBY4I.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1246,11 +1246,9 @@ function getEventScheduleStatusLabel(dateTime, onlyShowKnownStatuses) {
|
|
|
1246
1246
|
return isKnownStatus ? status.replaceAll("_", " ").toLowerCase() : `Next event date: ${formatDate(dateTime.startDate, "date")}`;
|
|
1247
1247
|
}
|
|
1248
1248
|
function shouldShowEventActionsWithWeather(resourceType, dateTime, location) {
|
|
1249
|
-
return resourceType === "event" /* EVENT */ && Boolean(location) && Boolean(dateTime?.dateStatus) && ![
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
"Started" /* STARTED */
|
|
1253
|
-
].includes(dateTime.dateStatus);
|
|
1249
|
+
return resourceType === "event" /* EVENT */ && Boolean(location) && Boolean(dateTime?.dateStatus) && !["Ended" /* ENDED */, "Canceled" /* CANCELED */].includes(
|
|
1250
|
+
dateTime.dateStatus
|
|
1251
|
+
);
|
|
1254
1252
|
}
|
|
1255
1253
|
|
|
1256
1254
|
// src/formFields/categories/clothingAndFashion.ts
|
|
@@ -6049,7 +6047,14 @@ var useCreateVendor = () => {
|
|
|
6049
6047
|
var useUpdateVendor = () => {
|
|
6050
6048
|
const [updateVendor, { loading, error }] = useMutation10(UPDATE_VENDOR_MUTATION, {
|
|
6051
6049
|
awaitRefetchQueries: true,
|
|
6052
|
-
refetchQueries:
|
|
6050
|
+
refetchQueries: (mutationResult) => {
|
|
6051
|
+
const vendorId = mutationResult?.data?.updateVendor?.data?._id;
|
|
6052
|
+
if (!vendorId) return [];
|
|
6053
|
+
return [
|
|
6054
|
+
{ query: GET_USER_VENDORS },
|
|
6055
|
+
{ query: GET_VENDOR, variables: { _id: vendorId } }
|
|
6056
|
+
];
|
|
6057
|
+
}
|
|
6053
6058
|
});
|
|
6054
6059
|
return { error, loading, updateVendor };
|
|
6055
6060
|
};
|
|
@@ -7058,7 +7063,14 @@ var useCreatePartner = () => {
|
|
|
7058
7063
|
var useUpdatePartner = () => {
|
|
7059
7064
|
const [updatePartner, { loading, error }] = useMutation15(UPDATE_PARTNER_MUTATION, {
|
|
7060
7065
|
awaitRefetchQueries: true,
|
|
7061
|
-
refetchQueries:
|
|
7066
|
+
refetchQueries: (mutationResult) => {
|
|
7067
|
+
const partnerId = mutationResult?.data?.updatePartner?.data?._id;
|
|
7068
|
+
if (!partnerId) return [];
|
|
7069
|
+
return [
|
|
7070
|
+
{ query: GET_USER_PARTNERS },
|
|
7071
|
+
{ query: GET_PARTNER, variables: { _id: partnerId } }
|
|
7072
|
+
];
|
|
7073
|
+
}
|
|
7062
7074
|
});
|
|
7063
7075
|
return { error, loading, updatePartner };
|
|
7064
7076
|
};
|