@timardex/cluemart-shared 2.2.12 → 2.2.14
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-4DFWOUOT.mjs → chunk-NX5E6VQO.mjs} +3 -3
- package/dist/{chunk-YPWBK4WU.mjs → chunk-Q2WLLXTA.mjs} +2 -1
- package/dist/chunk-Q2WLLXTA.mjs.map +1 -0
- package/dist/{chunk-GOWIY4NZ.mjs → chunk-QSBAN3V5.mjs} +9 -1
- package/dist/chunk-QSBAN3V5.mjs.map +1 -0
- package/dist/{chunk-KGYLNZQW.mjs → chunk-TJF64MYL.mjs} +2 -2
- 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.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +8 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +9 -0
- 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.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
- package/dist/chunk-YPWBK4WU.mjs.map +0 -1
- /package/dist/{chunk-4DFWOUOT.mjs.map → chunk-NX5E6VQO.mjs.map} +0 -0
- /package/dist/{chunk-KGYLNZQW.mjs.map → chunk-TJF64MYL.mjs.map} +0 -0
|
@@ -42,18 +42,18 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-NX5E6VQO.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-TJF64MYL.mjs";
|
|
50
50
|
import "../chunk-RE4NZPYY.mjs";
|
|
51
51
|
import "../chunk-MTBH5LMV.mjs";
|
|
52
52
|
import "../chunk-MRBTCICB.mjs";
|
|
53
53
|
import "../chunk-RAYUJODN.mjs";
|
|
54
54
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
55
55
|
import "../chunk-7DQBUZXY.mjs";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-Q2WLLXTA.mjs";
|
|
57
57
|
export {
|
|
58
58
|
availableCategories,
|
|
59
59
|
availableTagTypes,
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -2300,14 +2300,22 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
|
|
|
2300
2300
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
2301
2301
|
var useCreateEvent = () => {
|
|
2302
2302
|
const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
|
|
2303
|
+
// The mutation response is a live-only view of EventType. Don't write it
|
|
2304
|
+
// into the normalized EventType cache, where it would overwrite the full
|
|
2305
|
+
// (live + archived) `dateTime` that `getEvent` fetches for the detail page.
|
|
2303
2306
|
awaitRefetchQueries: true,
|
|
2307
|
+
fetchPolicy: "no-cache",
|
|
2304
2308
|
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
2305
2309
|
});
|
|
2306
2310
|
return { createEvent, error, loading };
|
|
2307
2311
|
};
|
|
2308
2312
|
var useUpdateEvent = () => {
|
|
2309
2313
|
const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
|
|
2314
|
+
// See useCreateEvent: the update response only carries the live schedule,
|
|
2315
|
+
// so keep it out of the normalized EventType cache to avoid clobbering the
|
|
2316
|
+
// archived dates merged by `getEvent`.
|
|
2310
2317
|
awaitRefetchQueries: true,
|
|
2318
|
+
fetchPolicy: "no-cache",
|
|
2311
2319
|
refetchQueries: (mutationResult) => {
|
|
2312
2320
|
const eventId = mutationResult?.data?.updateEvent?.data?._id;
|
|
2313
2321
|
if (!eventId) return [];
|