@getlupa/client 1.15.9 → 1.15.10

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.
@@ -25323,7 +25323,10 @@ and ensure you are accounting for this risk.
25323
25323
  class: "lupa-category-back"
25324
25324
  };
25325
25325
  const _hoisted_3$6 = ["href"];
25326
- const _hoisted_4$3 = { class: "lupa-child-category-list" };
25326
+ const _hoisted_4$3 = {
25327
+ key: 1,
25328
+ class: "lupa-child-category-list"
25329
+ };
25327
25330
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
25328
25331
  __name: "CategoryTopFilters",
25329
25332
  props: {
@@ -25337,6 +25340,10 @@ and ensure you are accounting for this risk.
25337
25340
  var _a, _b;
25338
25341
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
25339
25342
  });
25343
+ const hasRelatedCategoryChildren = computed(() => {
25344
+ var _a;
25345
+ return ((_a = relatedCategoryChildren.value) == null ? void 0 : _a.length) > 0;
25346
+ });
25340
25347
  const backTitle = computed(() => {
25341
25348
  var _a, _b;
25342
25349
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title;
@@ -25363,7 +25370,10 @@ and ensure you are accounting for this risk.
25363
25370
  };
25364
25371
  return (_ctx, _cache) => {
25365
25372
  return openBlock(), createElementBlock("div", {
25366
- class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
25373
+ class: normalizeClass(["lupa-category-top-mobile-filters", {
25374
+ "lupa-has-back-button": hasBackButton.value,
25375
+ "has-related-category-children": hasRelatedCategoryChildren.value
25376
+ }])
25367
25377
  }, [
25368
25378
  createBaseVNode("div", _hoisted_1$d, [
25369
25379
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
@@ -25373,7 +25383,7 @@ and ensure you are accounting for this risk.
25373
25383
  onClick: handleNavigationBack
25374
25384
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25375
25385
  ])) : createCommentVNode("", true),
25376
- createBaseVNode("div", _hoisted_4$3, [
25386
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25377
25387
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25378
25388
  return openBlock(), createBlock(_sfc_main$U, {
25379
25389
  key: getCategoryKey(child),
@@ -25381,7 +25391,7 @@ and ensure you are accounting for this risk.
25381
25391
  options: categoryOptions.value
25382
25392
  }, null, 8, ["item", "options"]);
25383
25393
  }), 128))
25384
- ]),
25394
+ ])) : createCommentVNode("", true),
25385
25395
  createVNode(_sfc_main$B, {
25386
25396
  class: "lupa-toolbar-mobile",
25387
25397
  "pagination-location": "top",
@@ -25323,7 +25323,10 @@ const _hoisted_2$a = {
25323
25323
  class: "lupa-category-back"
25324
25324
  };
25325
25325
  const _hoisted_3$6 = ["href"];
25326
- const _hoisted_4$3 = { class: "lupa-child-category-list" };
25326
+ const _hoisted_4$3 = {
25327
+ key: 1,
25328
+ class: "lupa-child-category-list"
25329
+ };
25327
25330
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
25328
25331
  __name: "CategoryTopFilters",
25329
25332
  props: {
@@ -25337,6 +25340,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25337
25340
  var _a, _b;
25338
25341
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
25339
25342
  });
25343
+ const hasRelatedCategoryChildren = computed(() => {
25344
+ var _a;
25345
+ return ((_a = relatedCategoryChildren.value) == null ? void 0 : _a.length) > 0;
25346
+ });
25340
25347
  const backTitle = computed(() => {
25341
25348
  var _a, _b;
25342
25349
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title;
@@ -25363,7 +25370,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25363
25370
  };
25364
25371
  return (_ctx, _cache) => {
25365
25372
  return openBlock(), createElementBlock("div", {
25366
- class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
25373
+ class: normalizeClass(["lupa-category-top-mobile-filters", {
25374
+ "lupa-has-back-button": hasBackButton.value,
25375
+ "has-related-category-children": hasRelatedCategoryChildren.value
25376
+ }])
25367
25377
  }, [
25368
25378
  createBaseVNode("div", _hoisted_1$d, [
25369
25379
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
@@ -25373,7 +25383,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25373
25383
  onClick: handleNavigationBack
25374
25384
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25375
25385
  ])) : createCommentVNode("", true),
25376
- createBaseVNode("div", _hoisted_4$3, [
25386
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25377
25387
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25378
25388
  return openBlock(), createBlock(_sfc_main$U, {
25379
25389
  key: getCategoryKey(child),
@@ -25381,7 +25391,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25381
25391
  options: categoryOptions.value
25382
25392
  }, null, 8, ["item", "options"]);
25383
25393
  }), 128))
25384
- ]),
25394
+ ])) : createCommentVNode("", true),
25385
25395
  createVNode(_sfc_main$B, {
25386
25396
  class: "lupa-toolbar-mobile",
25387
25397
  "pagination-location": "top",
@@ -25321,7 +25321,10 @@ const _hoisted_2$a = {
25321
25321
  class: "lupa-category-back"
25322
25322
  };
25323
25323
  const _hoisted_3$6 = ["href"];
25324
- const _hoisted_4$3 = { class: "lupa-child-category-list" };
25324
+ const _hoisted_4$3 = {
25325
+ key: 1,
25326
+ class: "lupa-child-category-list"
25327
+ };
25325
25328
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
25326
25329
  __name: "CategoryTopFilters",
25327
25330
  props: {
@@ -25335,6 +25338,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25335
25338
  var _a, _b;
25336
25339
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
25337
25340
  });
25341
+ const hasRelatedCategoryChildren = computed(() => {
25342
+ var _a;
25343
+ return ((_a = relatedCategoryChildren.value) == null ? void 0 : _a.length) > 0;
25344
+ });
25338
25345
  const backTitle = computed(() => {
25339
25346
  var _a, _b;
25340
25347
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title;
@@ -25361,7 +25368,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25361
25368
  };
25362
25369
  return (_ctx, _cache) => {
25363
25370
  return openBlock(), createElementBlock("div", {
25364
- class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
25371
+ class: normalizeClass(["lupa-category-top-mobile-filters", {
25372
+ "lupa-has-back-button": hasBackButton.value,
25373
+ "has-related-category-children": hasRelatedCategoryChildren.value
25374
+ }])
25365
25375
  }, [
25366
25376
  createBaseVNode("div", _hoisted_1$d, [
25367
25377
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
@@ -25371,7 +25381,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25371
25381
  onClick: handleNavigationBack
25372
25382
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25373
25383
  ])) : createCommentVNode("", true),
25374
- createBaseVNode("div", _hoisted_4$3, [
25384
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25375
25385
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25376
25386
  return openBlock(), createBlock(_sfc_main$U, {
25377
25387
  key: getCategoryKey(child),
@@ -25379,7 +25389,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25379
25389
  options: categoryOptions.value
25380
25390
  }, null, 8, ["item", "options"]);
25381
25391
  }), 128))
25382
- ]),
25392
+ ])) : createCommentVNode("", true),
25383
25393
  createVNode(_sfc_main$B, {
25384
25394
  class: "lupa-toolbar-mobile",
25385
25395
  "pagination-location": "top",
@@ -25325,7 +25325,10 @@ and ensure you are accounting for this risk.
25325
25325
  class: "lupa-category-back"
25326
25326
  };
25327
25327
  const _hoisted_3$6 = ["href"];
25328
- const _hoisted_4$3 = { class: "lupa-child-category-list" };
25328
+ const _hoisted_4$3 = {
25329
+ key: 1,
25330
+ class: "lupa-child-category-list"
25331
+ };
25329
25332
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
25330
25333
  __name: "CategoryTopFilters",
25331
25334
  props: {
@@ -25339,6 +25342,10 @@ and ensure you are accounting for this risk.
25339
25342
  var _a, _b;
25340
25343
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
25341
25344
  });
25345
+ const hasRelatedCategoryChildren = computed(() => {
25346
+ var _a;
25347
+ return ((_a = relatedCategoryChildren.value) == null ? void 0 : _a.length) > 0;
25348
+ });
25342
25349
  const backTitle = computed(() => {
25343
25350
  var _a, _b;
25344
25351
  return (_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title;
@@ -25365,7 +25372,10 @@ and ensure you are accounting for this risk.
25365
25372
  };
25366
25373
  return (_ctx, _cache) => {
25367
25374
  return openBlock(), createElementBlock("div", {
25368
- class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
25375
+ class: normalizeClass(["lupa-category-top-mobile-filters", {
25376
+ "lupa-has-back-button": hasBackButton.value,
25377
+ "has-related-category-children": hasRelatedCategoryChildren.value
25378
+ }])
25369
25379
  }, [
25370
25380
  createBaseVNode("div", _hoisted_1$d, [
25371
25381
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
@@ -25375,7 +25385,7 @@ and ensure you are accounting for this risk.
25375
25385
  onClick: handleNavigationBack
25376
25386
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
25377
25387
  ])) : createCommentVNode("", true),
25378
- createBaseVNode("div", _hoisted_4$3, [
25388
+ hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
25379
25389
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25380
25390
  return openBlock(), createBlock(_sfc_main$U, {
25381
25391
  key: getCategoryKey(child),
@@ -25383,7 +25393,7 @@ and ensure you are accounting for this risk.
25383
25393
  options: categoryOptions.value
25384
25394
  }, null, 8, ["item", "options"]);
25385
25395
  }), 128))
25386
- ]),
25396
+ ])) : createCommentVNode("", true),
25387
25397
  createVNode(_sfc_main$B, {
25388
25398
  class: "lupa-toolbar-mobile",
25389
25399
  "pagination-location": "top",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.15.9",
3
+ "version": "1.15.10",
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.15.9",
23
+ "@getlupa/vue": "0.15.10",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",