@timardex/cluemart-shared 2.1.1 → 2.1.2

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.
Files changed (45) hide show
  1. package/dist/auth/index.cjs +2 -2
  2. package/dist/auth/index.cjs.map +1 -1
  3. package/dist/auth/index.mjs +1 -1
  4. package/dist/{chunk-6ZH75TAT.mjs → chunk-B22YRNRF.mjs} +2 -2
  5. package/dist/{chunk-Z4FML4VL.mjs → chunk-BTZIWVSF.mjs} +2 -2
  6. package/dist/{chunk-UHZHNJHO.mjs → chunk-HFN6KXX2.mjs} +9 -35
  7. package/dist/chunk-HFN6KXX2.mjs.map +1 -0
  8. package/dist/{chunk-YMLEIEZD.mjs → chunk-MX3L6DSE.mjs} +4 -4
  9. package/dist/chunk-MX3L6DSE.mjs.map +1 -0
  10. package/dist/{chunk-ZSSVU6GY.mjs → chunk-OSSBKFNH.mjs} +3 -3
  11. package/dist/chunk-OSSBKFNH.mjs.map +1 -0
  12. package/dist/{chunk-7XIDMA4Z.mjs → chunk-T7A7ZG55.mjs} +54 -18
  13. package/dist/chunk-T7A7ZG55.mjs.map +1 -0
  14. package/dist/formFields/index.cjs +34 -42
  15. package/dist/formFields/index.cjs.map +1 -1
  16. package/dist/formFields/index.mjs +3 -3
  17. package/dist/graphql/index.cjs +4 -4
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +3 -1
  20. package/dist/graphql/index.d.ts +3 -1
  21. package/dist/graphql/index.mjs +2 -2
  22. package/dist/hooks/index.cjs +36 -30
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.mjs +6 -6
  25. package/dist/index.cjs +62 -44
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +24 -3
  28. package/dist/index.d.ts +24 -3
  29. package/dist/index.mjs +59 -44
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/sharing/index.cjs +28 -28
  32. package/dist/sharing/index.cjs.map +1 -1
  33. package/dist/sharing/index.mjs +2 -2
  34. package/dist/utils/index.cjs +58 -54
  35. package/dist/utils/index.cjs.map +1 -1
  36. package/dist/utils/index.d.mts +22 -3
  37. package/dist/utils/index.d.ts +22 -3
  38. package/dist/utils/index.mjs +13 -7
  39. package/package.json +1 -1
  40. package/dist/chunk-7XIDMA4Z.mjs.map +0 -1
  41. package/dist/chunk-UHZHNJHO.mjs.map +0 -1
  42. package/dist/chunk-YMLEIEZD.mjs.map +0 -1
  43. package/dist/chunk-ZSSVU6GY.mjs.map +0 -1
  44. /package/dist/{chunk-6ZH75TAT.mjs.map → chunk-B22YRNRF.mjs.map} +0 -0
  45. /package/dist/{chunk-Z4FML4VL.mjs.map → chunk-BTZIWVSF.mjs.map} +0 -0
@@ -42,13 +42,13 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-6ZH75TAT.mjs";
45
+ } from "../chunk-B22YRNRF.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-UHZHNJHO.mjs";
49
+ } from "../chunk-HFN6KXX2.mjs";
50
50
  import "../chunk-RE4NZPYY.mjs";
51
- import "../chunk-7XIDMA4Z.mjs";
51
+ import "../chunk-T7A7ZG55.mjs";
52
52
  import "../chunk-PIEXGXTD.mjs";
53
53
  import "../chunk-RAYUJODN.mjs";
54
54
  import "../chunk-DQ7ZHIXW.mjs";
@@ -670,8 +670,8 @@ var GET_EVENT = import_client2.gql`
670
670
  ${EVENT}
671
671
  `;
672
672
  var GET_OWNED_EVENT = import_client2.gql`
673
- query getOwnedEvent($_id: ID!) {
674
- ownedEvent(_id: $_id) {
673
+ query getOwnedEvent($_id: ID!, $futureOnly: Boolean = false) {
674
+ ownedEvent(_id: $_id, futureOnly: $futureOnly) {
675
675
  ...EventFields
676
676
  }
677
677
  }
@@ -2394,11 +2394,11 @@ var useGetEvent = (_id) => {
2394
2394
  const event = data?.event || null;
2395
2395
  return { error, event, loading, refetch };
2396
2396
  };
2397
- var useGetOwnedEvent = (_id) => {
2397
+ var useGetOwnedEvent = (_id, options) => {
2398
2398
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
2399
2399
  fetchPolicy: "network-only",
2400
2400
  skip: !_id,
2401
- variables: { _id }
2401
+ variables: { _id, futureOnly: options?.futureOnly ?? false }
2402
2402
  });
2403
2403
  const event = data?.ownedEvent || null;
2404
2404
  return { error, event, loading, refetch };