@getlupa/client 1.9.2 → 1.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.
@@ -14697,6 +14697,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14697
14697
  },
14698
14698
  setup(__props) {
14699
14699
  const props = __props;
14700
+ const searchResultStore = useSearchResultStore();
14701
+ const { hasResults } = storeToRefs(searchResultStore);
14700
14702
  const description = computed(() => {
14701
14703
  var _a, _b;
14702
14704
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -14706,7 +14708,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14706
14708
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14707
14709
  });
14708
14710
  return (_ctx, _cache) => {
14709
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14711
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14710
14712
  createBaseVNode("div", {
14711
14713
  class: "lupa-category-description",
14712
14714
  innerHTML: description.value
@@ -14697,6 +14697,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14697
14697
  },
14698
14698
  setup(__props) {
14699
14699
  const props = __props;
14700
+ const searchResultStore = useSearchResultStore();
14701
+ const { hasResults } = storeToRefs(searchResultStore);
14700
14702
  const description = computed(() => {
14701
14703
  var _a, _b;
14702
14704
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -14706,7 +14708,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14706
14708
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14707
14709
  });
14708
14710
  return (_ctx, _cache) => {
14709
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14711
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14710
14712
  createBaseVNode("div", {
14711
14713
  class: "lupa-category-description",
14712
14714
  innerHTML: description.value
@@ -14695,6 +14695,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14695
14695
  },
14696
14696
  setup(__props) {
14697
14697
  const props = __props;
14698
+ const searchResultStore = useSearchResultStore();
14699
+ const { hasResults } = storeToRefs(searchResultStore);
14698
14700
  const description = computed(() => {
14699
14701
  var _a, _b;
14700
14702
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -14704,7 +14706,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14704
14706
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14705
14707
  });
14706
14708
  return (_ctx, _cache) => {
14707
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14709
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14708
14710
  createBaseVNode("div", {
14709
14711
  class: "lupa-category-description",
14710
14712
  innerHTML: description.value
@@ -14699,6 +14699,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14699
14699
  },
14700
14700
  setup(__props) {
14701
14701
  const props = __props;
14702
+ const searchResultStore = useSearchResultStore();
14703
+ const { hasResults } = storeToRefs(searchResultStore);
14702
14704
  const description = computed(() => {
14703
14705
  var _a, _b;
14704
14706
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
@@ -14708,7 +14710,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14708
14710
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14709
14711
  });
14710
14712
  return (_ctx, _cache) => {
14711
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14713
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14712
14714
  createBaseVNode("div", {
14713
14715
  class: "lupa-category-description",
14714
14716
  innerHTML: description.value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.9.2",
23
+ "@getlupa/vue": "0.9.3",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",