@getlupa/vue 0.9.2 → 0.9.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.
@@ -10069,6 +10069,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
10069
10069
  },
10070
10070
  setup(__props) {
10071
10071
  const props = __props;
10072
+ const searchResultStore = useSearchResultStore();
10073
+ const { hasResults } = storeToRefs(searchResultStore);
10072
10074
  const description = vue.computed(() => {
10073
10075
  var _a, _b;
10074
10076
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -10078,7 +10080,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
10078
10080
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
10079
10081
  });
10080
10082
  return (_ctx, _cache) => {
10081
- return overviewVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
10083
+ return overviewVisible.value && vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
10082
10084
  vue.createElementVNode("div", {
10083
10085
  class: "lupa-category-description",
10084
10086
  innerHTML: description.value
@@ -10067,6 +10067,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
10067
10067
  },
10068
10068
  setup(__props) {
10069
10069
  const props = __props;
10070
+ const searchResultStore = useSearchResultStore();
10071
+ const { hasResults } = storeToRefs(searchResultStore);
10070
10072
  const description = computed(() => {
10071
10073
  var _a, _b;
10072
10074
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -10076,7 +10078,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
10076
10078
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
10077
10079
  });
10078
10080
  return (_ctx, _cache) => {
10079
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
10081
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
10080
10082
  createElementVNode("div", {
10081
10083
  class: "lupa-category-description",
10082
10084
  innerHTML: description.value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",