@getlupa/client 1.26.2 → 1.26.3

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.
@@ -19538,6 +19538,12 @@ var __async = (__this, __arguments, generator) => {
19538
19538
  var _a25;
19539
19539
  return ((_a25 = inputValue.value) == null ? void 0 : _a25.length) >= options.value.minInputLength;
19540
19540
  });
19541
+ const setQueryKeyLoading = ({ queryKey, loading }) => {
19542
+ var _a25;
19543
+ loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19544
+ [queryKey]: loading
19545
+ });
19546
+ };
19541
19547
  const panelItemCounts = computed(
19542
19548
  () => options.value.panels.map((p2) => {
19543
19549
  var _a25, _b25, _c, _d, _e;
@@ -19600,14 +19606,12 @@ var __async = (__this, __arguments, generator) => {
19600
19606
  publicQuery,
19601
19607
  options: options2
19602
19608
  }) {
19603
- var _a25, _b25, _c;
19609
+ var _a25;
19604
19610
  try {
19605
19611
  const currentRequestId = Date.now();
19606
19612
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19607
19613
  const context = getLupaTrackingContext();
19608
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19609
- [queryKey]: true
19610
- });
19614
+ setQueryKeyLoading({ queryKey, loading: true });
19611
19615
  const result2 = yield LupaSearchSdk.suggestions(
19612
19616
  queryKey,
19613
19617
  __spreadValues2(__spreadValues2({}, publicQuery), context),
@@ -19621,7 +19625,7 @@ var __async = (__this, __arguments, generator) => {
19621
19625
  }
19622
19626
  highlightChange({ action: "clear" });
19623
19627
  suggestionResults.value = __spreadProps2(__spreadValues2({}, suggestionResults.value), {
19624
- [queryKey]: flattenSuggestions(result2.items, (_b25 = publicQuery.searchText) != null ? _b25 : "")
19628
+ [queryKey]: flattenSuggestions(result2.items, (_a25 = publicQuery.searchText) != null ? _a25 : "")
19625
19629
  });
19626
19630
  inputValue.value = publicQuery.searchText;
19627
19631
  resultInputValue.value = publicQuery.searchText;
@@ -19636,9 +19640,7 @@ var __async = (__this, __arguments, generator) => {
19636
19640
  }
19637
19641
  return { suggestions: void 0 };
19638
19642
  } finally {
19639
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_c = loadingResultsByQueryKey.value) != null ? _c : {}), {
19640
- [queryKey]: false
19641
- });
19643
+ setQueryKeyLoading({ queryKey, loading: false });
19642
19644
  }
19643
19645
  });
19644
19646
  const emitSearchResultsCallback = () => {
@@ -19659,13 +19661,10 @@ var __async = (__this, __arguments, generator) => {
19659
19661
  publicQuery,
19660
19662
  options: options2
19661
19663
  }) {
19662
- var _a25, _b25;
19663
19664
  try {
19664
19665
  const currentRequestId = Date.now();
19665
19666
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19666
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19667
- [queryKey]: true
19668
- });
19667
+ setQueryKeyLoading({ queryKey, loading: true });
19669
19668
  const context = getLupaTrackingContext();
19670
19669
  const result2 = yield LupaSearchSdk.query(queryKey, __spreadValues2(__spreadValues2({}, publicQuery), context), options2);
19671
19670
  if (latestRequestIdByQueryKey[queryKey] !== currentRequestId) {
@@ -19685,9 +19684,7 @@ var __async = (__this, __arguments, generator) => {
19685
19684
  }
19686
19685
  return { queryKey, result: { items: [] } };
19687
19686
  } finally {
19688
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_b25 = loadingResultsByQueryKey.value) != null ? _b25 : {}), {
19689
- [queryKey]: false
19690
- });
19687
+ setQueryKeyLoading({ queryKey, loading: false });
19691
19688
  }
19692
19689
  });
19693
19690
  const highlightChange = ({ action }) => {
@@ -19724,7 +19721,8 @@ var __async = (__this, __arguments, generator) => {
19724
19721
  highlightChange,
19725
19722
  saveInputValue,
19726
19723
  saveOptions,
19727
- resetHighlightIndex
19724
+ resetHighlightIndex,
19725
+ setQueryKeyLoading
19728
19726
  };
19729
19727
  });
19730
19728
  const Env = {
@@ -20736,9 +20734,11 @@ var __async = (__this, __arguments, generator) => {
20736
20734
  return (_a25 = suggestionResults.value[props.panel.queryKey]) != null ? _a25 : [];
20737
20735
  });
20738
20736
  onMounted(() => {
20737
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20739
20738
  getSuggestionsDebounced();
20740
20739
  });
20741
20740
  watch(inputValueProp, () => {
20741
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20742
20742
  getSuggestionsDebounced();
20743
20743
  });
20744
20744
  const getSuggestions = () => {
@@ -31832,9 +31832,11 @@ and ensure you are accounting for this risk.
31832
31832
  });
31833
31833
  const inputValueProp = computed(() => props.inputValue);
31834
31834
  onMounted(() => {
31835
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31835
31836
  getItemsDebounced();
31836
31837
  });
31837
31838
  watch(inputValueProp, () => {
31839
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31838
31840
  getItemsDebounced();
31839
31841
  });
31840
31842
  const enhancePanelData = () => __async2(null, null, function* () {
@@ -19538,6 +19538,12 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19538
19538
  var _a25;
19539
19539
  return ((_a25 = inputValue.value) == null ? void 0 : _a25.length) >= options.value.minInputLength;
19540
19540
  });
19541
+ const setQueryKeyLoading = ({ queryKey, loading }) => {
19542
+ var _a25;
19543
+ loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19544
+ [queryKey]: loading
19545
+ });
19546
+ };
19541
19547
  const panelItemCounts = computed(
19542
19548
  () => options.value.panels.map((p2) => {
19543
19549
  var _a25, _b25, _c, _d, _e;
@@ -19600,14 +19606,12 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19600
19606
  publicQuery,
19601
19607
  options: options2
19602
19608
  }) {
19603
- var _a25, _b25, _c;
19609
+ var _a25;
19604
19610
  try {
19605
19611
  const currentRequestId = Date.now();
19606
19612
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19607
19613
  const context = getLupaTrackingContext();
19608
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19609
- [queryKey]: true
19610
- });
19614
+ setQueryKeyLoading({ queryKey, loading: true });
19611
19615
  const result2 = yield LupaSearchSdk.suggestions(
19612
19616
  queryKey,
19613
19617
  __spreadValues2(__spreadValues2({}, publicQuery), context),
@@ -19621,7 +19625,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19621
19625
  }
19622
19626
  highlightChange({ action: "clear" });
19623
19627
  suggestionResults.value = __spreadProps2(__spreadValues2({}, suggestionResults.value), {
19624
- [queryKey]: flattenSuggestions(result2.items, (_b25 = publicQuery.searchText) != null ? _b25 : "")
19628
+ [queryKey]: flattenSuggestions(result2.items, (_a25 = publicQuery.searchText) != null ? _a25 : "")
19625
19629
  });
19626
19630
  inputValue.value = publicQuery.searchText;
19627
19631
  resultInputValue.value = publicQuery.searchText;
@@ -19636,9 +19640,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19636
19640
  }
19637
19641
  return { suggestions: void 0 };
19638
19642
  } finally {
19639
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_c = loadingResultsByQueryKey.value) != null ? _c : {}), {
19640
- [queryKey]: false
19641
- });
19643
+ setQueryKeyLoading({ queryKey, loading: false });
19642
19644
  }
19643
19645
  });
19644
19646
  const emitSearchResultsCallback = () => {
@@ -19659,13 +19661,10 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19659
19661
  publicQuery,
19660
19662
  options: options2
19661
19663
  }) {
19662
- var _a25, _b25;
19663
19664
  try {
19664
19665
  const currentRequestId = Date.now();
19665
19666
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19666
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19667
- [queryKey]: true
19668
- });
19667
+ setQueryKeyLoading({ queryKey, loading: true });
19669
19668
  const context = getLupaTrackingContext();
19670
19669
  const result2 = yield LupaSearchSdk.query(queryKey, __spreadValues2(__spreadValues2({}, publicQuery), context), options2);
19671
19670
  if (latestRequestIdByQueryKey[queryKey] !== currentRequestId) {
@@ -19685,9 +19684,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19685
19684
  }
19686
19685
  return { queryKey, result: { items: [] } };
19687
19686
  } finally {
19688
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_b25 = loadingResultsByQueryKey.value) != null ? _b25 : {}), {
19689
- [queryKey]: false
19690
- });
19687
+ setQueryKeyLoading({ queryKey, loading: false });
19691
19688
  }
19692
19689
  });
19693
19690
  const highlightChange = ({ action }) => {
@@ -19724,7 +19721,8 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19724
19721
  highlightChange,
19725
19722
  saveInputValue,
19726
19723
  saveOptions,
19727
- resetHighlightIndex
19724
+ resetHighlightIndex,
19725
+ setQueryKeyLoading
19728
19726
  };
19729
19727
  });
19730
19728
  const Env = {
@@ -20736,9 +20734,11 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20736
20734
  return (_a25 = suggestionResults.value[props.panel.queryKey]) != null ? _a25 : [];
20737
20735
  });
20738
20736
  onMounted(() => {
20737
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20739
20738
  getSuggestionsDebounced();
20740
20739
  });
20741
20740
  watch(inputValueProp, () => {
20741
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20742
20742
  getSuggestionsDebounced();
20743
20743
  });
20744
20744
  const getSuggestions = () => {
@@ -31832,9 +31832,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
31832
31832
  });
31833
31833
  const inputValueProp = computed(() => props.inputValue);
31834
31834
  onMounted(() => {
31835
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31835
31836
  getItemsDebounced();
31836
31837
  });
31837
31838
  watch(inputValueProp, () => {
31839
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31838
31840
  getItemsDebounced();
31839
31841
  });
31840
31842
  const enhancePanelData = () => __async2(null, null, function* () {
@@ -19536,6 +19536,12 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19536
19536
  var _a25;
19537
19537
  return ((_a25 = inputValue.value) == null ? void 0 : _a25.length) >= options.value.minInputLength;
19538
19538
  });
19539
+ const setQueryKeyLoading = ({ queryKey, loading }) => {
19540
+ var _a25;
19541
+ loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19542
+ [queryKey]: loading
19543
+ });
19544
+ };
19539
19545
  const panelItemCounts = computed(
19540
19546
  () => options.value.panels.map((p2) => {
19541
19547
  var _a25, _b25, _c, _d, _e;
@@ -19598,14 +19604,12 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19598
19604
  publicQuery,
19599
19605
  options: options2
19600
19606
  }) {
19601
- var _a25, _b25, _c;
19607
+ var _a25;
19602
19608
  try {
19603
19609
  const currentRequestId = Date.now();
19604
19610
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19605
19611
  const context = getLupaTrackingContext();
19606
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19607
- [queryKey]: true
19608
- });
19612
+ setQueryKeyLoading({ queryKey, loading: true });
19609
19613
  const result2 = yield LupaSearchSdk.suggestions(
19610
19614
  queryKey,
19611
19615
  __spreadValues2(__spreadValues2({}, publicQuery), context),
@@ -19619,7 +19623,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19619
19623
  }
19620
19624
  highlightChange({ action: "clear" });
19621
19625
  suggestionResults.value = __spreadProps2(__spreadValues2({}, suggestionResults.value), {
19622
- [queryKey]: flattenSuggestions(result2.items, (_b25 = publicQuery.searchText) != null ? _b25 : "")
19626
+ [queryKey]: flattenSuggestions(result2.items, (_a25 = publicQuery.searchText) != null ? _a25 : "")
19623
19627
  });
19624
19628
  inputValue.value = publicQuery.searchText;
19625
19629
  resultInputValue.value = publicQuery.searchText;
@@ -19634,9 +19638,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19634
19638
  }
19635
19639
  return { suggestions: void 0 };
19636
19640
  } finally {
19637
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_c = loadingResultsByQueryKey.value) != null ? _c : {}), {
19638
- [queryKey]: false
19639
- });
19641
+ setQueryKeyLoading({ queryKey, loading: false });
19640
19642
  }
19641
19643
  });
19642
19644
  const emitSearchResultsCallback = () => {
@@ -19657,13 +19659,10 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19657
19659
  publicQuery,
19658
19660
  options: options2
19659
19661
  }) {
19660
- var _a25, _b25;
19661
19662
  try {
19662
19663
  const currentRequestId = Date.now();
19663
19664
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19664
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19665
- [queryKey]: true
19666
- });
19665
+ setQueryKeyLoading({ queryKey, loading: true });
19667
19666
  const context = getLupaTrackingContext();
19668
19667
  const result2 = yield LupaSearchSdk.query(queryKey, __spreadValues2(__spreadValues2({}, publicQuery), context), options2);
19669
19668
  if (latestRequestIdByQueryKey[queryKey] !== currentRequestId) {
@@ -19683,9 +19682,7 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19683
19682
  }
19684
19683
  return { queryKey, result: { items: [] } };
19685
19684
  } finally {
19686
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_b25 = loadingResultsByQueryKey.value) != null ? _b25 : {}), {
19687
- [queryKey]: false
19688
- });
19685
+ setQueryKeyLoading({ queryKey, loading: false });
19689
19686
  }
19690
19687
  });
19691
19688
  const highlightChange = ({ action }) => {
@@ -19722,7 +19719,8 @@ const useSearchBoxStore = /* @__PURE__ */ defineStore("searchBox", () => {
19722
19719
  highlightChange,
19723
19720
  saveInputValue,
19724
19721
  saveOptions,
19725
- resetHighlightIndex
19722
+ resetHighlightIndex,
19723
+ setQueryKeyLoading
19726
19724
  };
19727
19725
  });
19728
19726
  const Env = {
@@ -20734,9 +20732,11 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20734
20732
  return (_a25 = suggestionResults.value[props.panel.queryKey]) != null ? _a25 : [];
20735
20733
  });
20736
20734
  onMounted(() => {
20735
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20737
20736
  getSuggestionsDebounced();
20738
20737
  });
20739
20738
  watch(inputValueProp, () => {
20739
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20740
20740
  getSuggestionsDebounced();
20741
20741
  });
20742
20742
  const getSuggestions = () => {
@@ -31830,9 +31830,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
31830
31830
  });
31831
31831
  const inputValueProp = computed(() => props.inputValue);
31832
31832
  onMounted(() => {
31833
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31833
31834
  getItemsDebounced();
31834
31835
  });
31835
31836
  watch(inputValueProp, () => {
31837
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31836
31838
  getItemsDebounced();
31837
31839
  });
31838
31840
  const enhancePanelData = () => __async2(null, null, function* () {
@@ -19540,6 +19540,12 @@ var __async = (__this, __arguments, generator) => {
19540
19540
  var _a25;
19541
19541
  return ((_a25 = inputValue.value) == null ? void 0 : _a25.length) >= options.value.minInputLength;
19542
19542
  });
19543
+ const setQueryKeyLoading = ({ queryKey, loading }) => {
19544
+ var _a25;
19545
+ loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19546
+ [queryKey]: loading
19547
+ });
19548
+ };
19543
19549
  const panelItemCounts = computed(
19544
19550
  () => options.value.panels.map((p2) => {
19545
19551
  var _a25, _b25, _c, _d, _e;
@@ -19602,14 +19608,12 @@ var __async = (__this, __arguments, generator) => {
19602
19608
  publicQuery,
19603
19609
  options: options2
19604
19610
  }) {
19605
- var _a25, _b25, _c;
19611
+ var _a25;
19606
19612
  try {
19607
19613
  const currentRequestId = Date.now();
19608
19614
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19609
19615
  const context = getLupaTrackingContext();
19610
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19611
- [queryKey]: true
19612
- });
19616
+ setQueryKeyLoading({ queryKey, loading: true });
19613
19617
  const result2 = yield LupaSearchSdk.suggestions(
19614
19618
  queryKey,
19615
19619
  __spreadValues2(__spreadValues2({}, publicQuery), context),
@@ -19623,7 +19627,7 @@ var __async = (__this, __arguments, generator) => {
19623
19627
  }
19624
19628
  highlightChange({ action: "clear" });
19625
19629
  suggestionResults.value = __spreadProps2(__spreadValues2({}, suggestionResults.value), {
19626
- [queryKey]: flattenSuggestions(result2.items, (_b25 = publicQuery.searchText) != null ? _b25 : "")
19630
+ [queryKey]: flattenSuggestions(result2.items, (_a25 = publicQuery.searchText) != null ? _a25 : "")
19627
19631
  });
19628
19632
  inputValue.value = publicQuery.searchText;
19629
19633
  resultInputValue.value = publicQuery.searchText;
@@ -19638,9 +19642,7 @@ var __async = (__this, __arguments, generator) => {
19638
19642
  }
19639
19643
  return { suggestions: void 0 };
19640
19644
  } finally {
19641
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_c = loadingResultsByQueryKey.value) != null ? _c : {}), {
19642
- [queryKey]: false
19643
- });
19645
+ setQueryKeyLoading({ queryKey, loading: false });
19644
19646
  }
19645
19647
  });
19646
19648
  const emitSearchResultsCallback = () => {
@@ -19661,13 +19663,10 @@ var __async = (__this, __arguments, generator) => {
19661
19663
  publicQuery,
19662
19664
  options: options2
19663
19665
  }) {
19664
- var _a25, _b25;
19665
19666
  try {
19666
19667
  const currentRequestId = Date.now();
19667
19668
  latestRequestIdByQueryKey[queryKey] = currentRequestId;
19668
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_a25 = loadingResultsByQueryKey.value) != null ? _a25 : {}), {
19669
- [queryKey]: true
19670
- });
19669
+ setQueryKeyLoading({ queryKey, loading: true });
19671
19670
  const context = getLupaTrackingContext();
19672
19671
  const result2 = yield LupaSearchSdk.query(queryKey, __spreadValues2(__spreadValues2({}, publicQuery), context), options2);
19673
19672
  if (latestRequestIdByQueryKey[queryKey] !== currentRequestId) {
@@ -19687,9 +19686,7 @@ var __async = (__this, __arguments, generator) => {
19687
19686
  }
19688
19687
  return { queryKey, result: { items: [] } };
19689
19688
  } finally {
19690
- loadingResultsByQueryKey.value = __spreadProps2(__spreadValues2({}, (_b25 = loadingResultsByQueryKey.value) != null ? _b25 : {}), {
19691
- [queryKey]: false
19692
- });
19689
+ setQueryKeyLoading({ queryKey, loading: false });
19693
19690
  }
19694
19691
  });
19695
19692
  const highlightChange = ({ action }) => {
@@ -19726,7 +19723,8 @@ var __async = (__this, __arguments, generator) => {
19726
19723
  highlightChange,
19727
19724
  saveInputValue,
19728
19725
  saveOptions,
19729
- resetHighlightIndex
19726
+ resetHighlightIndex,
19727
+ setQueryKeyLoading
19730
19728
  };
19731
19729
  });
19732
19730
  const Env = {
@@ -20738,9 +20736,11 @@ var __async = (__this, __arguments, generator) => {
20738
20736
  return (_a25 = suggestionResults.value[props.panel.queryKey]) != null ? _a25 : [];
20739
20737
  });
20740
20738
  onMounted(() => {
20739
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20741
20740
  getSuggestionsDebounced();
20742
20741
  });
20743
20742
  watch(inputValueProp, () => {
20743
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
20744
20744
  getSuggestionsDebounced();
20745
20745
  });
20746
20746
  const getSuggestions = () => {
@@ -31834,9 +31834,11 @@ and ensure you are accounting for this risk.
31834
31834
  });
31835
31835
  const inputValueProp = computed(() => props.inputValue);
31836
31836
  onMounted(() => {
31837
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31837
31838
  getItemsDebounced();
31838
31839
  });
31839
31840
  watch(inputValueProp, () => {
31841
+ searchBoxStore.setQueryKeyLoading({ queryKey: props.panel.queryKey, loading: true });
31840
31842
  getItemsDebounced();
31841
31843
  });
31842
31844
  const enhancePanelData = () => __async2(null, null, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.26.2",
3
+ "version": "1.26.3",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.8.1",
23
- "@getlupa/vue": "0.26.0",
23
+ "@getlupa/vue": "0.26.1",
24
24
  "@rushstack/eslint-patch": "^1.12.0",
25
25
  "@tsconfig/node18": "^18.2.4",
26
26
  "@types/jsdom": "^21.1.7",