@timardex/cluemart-shared 1.5.721 → 1.5.723

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 (44) hide show
  1. package/dist/{chunk-KFTS32TG.mjs → chunk-3AI2ROPT.mjs} +43 -14
  2. package/dist/chunk-3AI2ROPT.mjs.map +1 -0
  3. package/dist/{chunk-6B75Q67V.mjs → chunk-4SNW63TJ.mjs} +2 -1
  4. package/dist/{chunk-6B75Q67V.mjs.map → chunk-4SNW63TJ.mjs.map} +1 -1
  5. package/dist/{chunk-JZY6HGS7.mjs → chunk-6IEQBYEB.mjs} +3 -3
  6. package/dist/{chunk-PWJWWXIP.mjs → chunk-HGS6TJTA.mjs} +35 -3
  7. package/dist/chunk-HGS6TJTA.mjs.map +1 -0
  8. package/dist/{chunk-PRAR43V7.mjs → chunk-SG3S3VQ2.mjs} +2 -2
  9. package/dist/enums/index.cjs +1 -0
  10. package/dist/enums/index.cjs.map +1 -1
  11. package/dist/enums/index.d.mts +2 -1
  12. package/dist/enums/index.d.ts +2 -1
  13. package/dist/enums/index.mjs +1 -1
  14. package/dist/formFields/index.cjs +16 -0
  15. package/dist/formFields/index.cjs.map +1 -1
  16. package/dist/formFields/index.mjs +3 -3
  17. package/dist/graphql/index.cjs +42 -13
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +5 -5
  20. package/dist/graphql/index.d.ts +5 -5
  21. package/dist/graphql/index.mjs +2 -2
  22. package/dist/hooks/index.cjs +49 -7
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.mjs +5 -5
  25. package/dist/index.cjs +79 -13
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +14 -6
  28. package/dist/index.d.ts +14 -6
  29. package/dist/index.mjs +75 -13
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/sharing/index.cjs +16 -0
  32. package/dist/sharing/index.cjs.map +1 -1
  33. package/dist/sharing/index.mjs +3 -3
  34. package/dist/types/index.mjs +1 -1
  35. package/dist/utils/index.cjs +36 -0
  36. package/dist/utils/index.cjs.map +1 -1
  37. package/dist/utils/index.d.mts +10 -3
  38. package/dist/utils/index.d.ts +10 -3
  39. package/dist/utils/index.mjs +10 -2
  40. package/package.json +1 -1
  41. package/dist/chunk-KFTS32TG.mjs.map +0 -1
  42. package/dist/chunk-PWJWWXIP.mjs.map +0 -1
  43. /package/dist/{chunk-JZY6HGS7.mjs.map → chunk-6IEQBYEB.mjs.map} +0 -0
  44. /package/dist/{chunk-PRAR43V7.mjs.map → chunk-SG3S3VQ2.mjs.map} +0 -0
@@ -43,10 +43,10 @@ import {
43
43
  vendorStallSize,
44
44
  vendorStartDateFields,
45
45
  vendorTable
46
- } from "../chunk-JZY6HGS7.mjs";
47
- import "../chunk-PWJWWXIP.mjs";
46
+ } from "../chunk-6IEQBYEB.mjs";
47
+ import "../chunk-HGS6TJTA.mjs";
48
48
  import "../chunk-HV5AID7P.mjs";
49
- import "../chunk-6B75Q67V.mjs";
49
+ import "../chunk-4SNW63TJ.mjs";
50
50
  export {
51
51
  availableCategories,
52
52
  availableTagTypes,
@@ -581,8 +581,8 @@ var EVENT = import_client3.gql`
581
581
  ${RELATION_DATES_FRAGMENT}
582
582
  `;
583
583
  var GET_EVENTS = import_client3.gql`
584
- query getEvents {
585
- events {
584
+ query getEvents($dateStatus: EventDateStatusEnumType) {
585
+ events(dateStatus: $dateStatus) {
586
586
  ...EventListItemFields
587
587
  }
588
588
  }
@@ -608,24 +608,49 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
608
608
  query getEventsByRegion(
609
609
  $region: String!
610
610
  $options: ResourcesByRegionOptions
611
+ $dateStatus: EventDateStatusEnumType
611
612
  ) {
612
- eventsByRegion(region: $region, options: $options) {
613
+ eventsByRegion(
614
+ region: $region
615
+ options: $options
616
+ dateStatus: $dateStatus
617
+ ) {
613
618
  ...EventListItemFields
614
619
  }
615
620
  }
616
621
  ${EVENT_LIST_ITEM}
617
622
  `;
618
623
  var SEARCH_EVENTS = import_client3.gql`
619
- query searchEvents($region: String, $search: String, $tags: [String]) {
620
- eventsSearch(region: $region, search: $search, tags: $tags) {
624
+ query searchEvents(
625
+ $region: String
626
+ $search: String
627
+ $tags: [String]
628
+ $dateStatus: EventDateStatusEnumType
629
+ ) {
630
+ eventsSearch(
631
+ region: $region
632
+ search: $search
633
+ tags: $tags
634
+ dateStatus: $dateStatus
635
+ ) {
621
636
  ...EventListItemFields
622
637
  }
623
638
  }
624
639
  ${EVENT_LIST_ITEM}
625
640
  `;
626
641
  var GET_EVENTS_NEAR_ME = import_client3.gql`
627
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
628
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
642
+ query getEventsNearMe(
643
+ $latitude: Float!
644
+ $longitude: Float!
645
+ $radius: Int
646
+ $dateStatus: EventDateStatusEnumType
647
+ ) {
648
+ eventsNearMe(
649
+ latitude: $latitude
650
+ longitude: $longitude
651
+ radius: $radius
652
+ dateStatus: $dateStatus
653
+ ) {
629
654
  ...EventListItemFields
630
655
  }
631
656
  }
@@ -1713,9 +1738,10 @@ var useUpdateEventInfo = () => {
1713
1738
 
1714
1739
  // src/graphql/hooks/event/hooksQuery.ts
1715
1740
  var import_client19 = require("@apollo/client");
1716
- var useGetEvents = () => {
1741
+ var useGetEvents = (dateStatus) => {
1717
1742
  const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
1718
- fetchPolicy: "network-only"
1743
+ fetchPolicy: "network-only",
1744
+ variables: { dateStatus }
1719
1745
  });
1720
1746
  const events = data?.events || [];
1721
1747
  return { error, events, loading, refetch };
@@ -1738,8 +1764,9 @@ var useGetEventByPlaceId = (googlePlaceId) => {
1738
1764
  const eventByPlaceId = data?.eventByPlaceId || null;
1739
1765
  return { error, eventByPlaceId, loading, refetch };
1740
1766
  };
1741
- var useGetEventsByRegion = (region, options) => {
1767
+ var useGetEventsByRegion = (region, options, dateStatus) => {
1742
1768
  const variables = {
1769
+ dateStatus,
1743
1770
  options,
1744
1771
  region
1745
1772
  };
@@ -1757,14 +1784,15 @@ var useGetEventsByRegion = (region, options) => {
1757
1784
  refetch
1758
1785
  };
1759
1786
  };
1760
- var useSearchEvents = (region, search, tags) => {
1761
- const normalizedSearch = search?.trim() ?? "";
1787
+ var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
1788
+ const normalizedSearch = searchQuery?.trim() ?? "";
1762
1789
  const normalizedTags = (tags ?? []).filter(Boolean);
1763
1790
  const shouldRunQuery = Boolean(region?.trim()) && (normalizedSearch.length > 3 || normalizedTags.length > 0);
1764
1791
  const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
1765
1792
  fetchPolicy: "network-only",
1766
1793
  skip: !shouldRunQuery,
1767
1794
  variables: {
1795
+ dateStatus,
1768
1796
  region,
1769
1797
  search: normalizedSearch,
1770
1798
  tags: normalizedTags
@@ -1777,11 +1805,12 @@ var useSearchEvents = (region, search, tags) => {
1777
1805
  refetch
1778
1806
  };
1779
1807
  };
1780
- var useGetEventsNearMe = (location) => {
1808
+ var useGetEventsNearMe = (location, dateStatus) => {
1781
1809
  const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
1782
1810
  fetchPolicy: "network-only",
1783
1811
  skip: !location.latitude || !location.longitude,
1784
1812
  variables: {
1813
+ dateStatus,
1785
1814
  latitude: location.latitude,
1786
1815
  longitude: location.longitude,
1787
1816
  radius: location.radius || 1e4