@timardex/cluemart-shared 1.5.545 → 1.5.546

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.
@@ -4,7 +4,7 @@ import {
4
4
  normalizeUrl,
5
5
  timeFormat
6
6
  } from "../chunk-Z3JWNX2U.mjs";
7
- import "../chunk-G2YFRN6A.mjs";
7
+ import "../chunk-EZO7FVLV.mjs";
8
8
  import {
9
9
  EnumEventDateStatus,
10
10
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -3236,8 +3236,8 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
3236
3236
  ${EVENT_LIST_ITEM}
3237
3237
  `;
3238
3238
  var SEARCH_EVENTS = import_client3.gql`
3239
- query searchEvents($search: String!, $region: String) {
3240
- eventsSearch(search: $search, region: $region) {
3239
+ query searchEvents($region: String, $search: String,$tags: [String]) {
3240
+ eventsSearch(region: $region, search: $search, tags: $tags) {
3241
3241
  ...EventListItemFields
3242
3242
  }
3243
3243
  }
@@ -4350,11 +4350,11 @@ var useGetEventsByRegion = (region, options) => {
4350
4350
  refetch
4351
4351
  };
4352
4352
  };
4353
- var useSearchEvents = (search, region) => {
4353
+ var useSearchEvents = (region, search, tags) => {
4354
4354
  const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
4355
4355
  fetchPolicy: "network-only",
4356
- skip: search.length < 3 || !region || region === "",
4357
- variables: { region, search }
4356
+ skip: !search || search.length < 3 || !region || region === "",
4357
+ variables: { region, search, tags }
4358
4358
  });
4359
4359
  const eventsSearch = data?.eventsSearch || [];
4360
4360
  return { error, eventsSearch, loading, refetch };