@getlupa/client 1.15.12 → 1.15.14

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.
@@ -18,6 +18,18 @@ var __spreadValues = (a, b) => {
18
18
  return a;
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
21
33
  var __async = (__this, __arguments, generator) => {
22
34
  return new Promise((resolve, reject) => {
23
35
  var fulfilled = (value) => {
@@ -6406,7 +6418,7 @@ var __async = (__this, __arguments, generator) => {
6406
6418
  return a;
6407
6419
  };
6408
6420
  var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
6409
- var __objRest = (source, exclude) => {
6421
+ var __objRest2 = (source, exclude) => {
6410
6422
  var target = {};
6411
6423
  for (var prop in source)
6412
6424
  if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -14883,7 +14895,7 @@ var __async = (__this, __arguments, generator) => {
14883
14895
  function fromJSON$1(json, inputs) {
14884
14896
  if (Array.isArray(json))
14885
14897
  return json.map((n) => fromJSON$1(n));
14886
- let _a = json, { inputs: ownInputs } = _a, defaults = __objRest(_a, ["inputs"]);
14898
+ let _a = json, { inputs: ownInputs } = _a, defaults = __objRest2(_a, ["inputs"]);
14887
14899
  if (ownInputs) {
14888
14900
  inputs = [];
14889
14901
  for (let input2 of ownInputs) {
@@ -14900,7 +14912,7 @@ var __async = (__this, __arguments, generator) => {
14900
14912
  defaults.nodes = json.nodes.map((n) => fromJSON$1(n, inputs));
14901
14913
  }
14902
14914
  if (defaults.source) {
14903
- let _b = defaults.source, { inputId } = _b, source = __objRest(_b, ["inputId"]);
14915
+ let _b = defaults.source, { inputId } = _b, source = __objRest2(_b, ["inputId"]);
14904
14916
  defaults.source = source;
14905
14917
  if (inputId != null) {
14906
14918
  defaults.source.input = inputs[inputId];
@@ -18978,7 +18990,7 @@ and ensure you are accounting for this risk.
18978
18990
  });
18979
18991
  const displayElement = computed(() => {
18980
18992
  const element = props.element;
18981
- const item = props.item;
18993
+ const item = enhancedItem.value;
18982
18994
  if (!element.display) {
18983
18995
  return true;
18984
18996
  }
@@ -19794,7 +19806,8 @@ and ensure you are accounting for this risk.
19794
19806
  return props.panel.showGoToResults;
19795
19807
  });
19796
19808
  const extractedInitialFilters = computed(() => {
19797
- return __spreadValues2({}, processExtractionObject(props.searchBoxOptions.initialFilters));
19809
+ var _a;
19810
+ return __spreadValues2({}, processExtractionObject((_a = props.panel) == null ? void 0 : _a.initialFilters));
19798
19811
  });
19799
19812
  const inputValueProp = computed(() => props.inputValue);
19800
19813
  onMounted(() => {
@@ -20246,9 +20259,6 @@ and ensure you are accounting for this risk.
20246
20259
  const focused = ref(false);
20247
20260
  const searchBoxInput = ref(null);
20248
20261
  const { highlightedDocument } = storeToRefs(searchBoxStore);
20249
- computed(() => {
20250
- return __spreadValues2({}, processExtractionObject(props.options.initialFilters));
20251
- });
20252
20262
  const searchValue = computed(() => {
20253
20263
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
20254
20264
  });
@@ -20274,8 +20284,7 @@ and ensure you are accounting for this risk.
20274
20284
  "hideMoreResultsButtonOnNoResults",
20275
20285
  "showNoResultsPanel",
20276
20286
  "expandOnSinglePanel",
20277
- "showMoreResultsButton",
20278
- "initialFilters"
20287
+ "showMoreResultsButton"
20279
20288
  ])
20280
20289
  );
20281
20290
  const searchTriggers = computed(() => {
@@ -25038,7 +25047,8 @@ and ensure you are accounting for this risk.
25038
25047
  relatedQueries.value = queries;
25039
25048
  }));
25040
25049
  const hasEnoughRelatedQueries = computed(() => {
25041
- return relatedQueries.value.length > 1;
25050
+ var _a;
25051
+ return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
25042
25052
  });
25043
25053
  const handleRelatedQueryClick = (query) => {
25044
25054
  var _a;
@@ -25176,12 +25186,12 @@ and ensure you are accounting for this risk.
25176
25186
  "data-cy": "lupa-no-results-in-page"
25177
25187
  };
25178
25188
  const _hoisted_4$4 = {
25179
- key: 3,
25189
+ key: 4,
25180
25190
  class: "lupa-empty-results",
25181
25191
  "data-cy": "lupa-no-results"
25182
25192
  };
25183
- const _hoisted_5$1 = { key: 4 };
25184
- const _hoisted_6$1 = { key: 5 };
25193
+ const _hoisted_5$1 = { key: 5 };
25194
+ const _hoisted_6$1 = { key: 6 };
25185
25195
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
25186
25196
  __name: "SearchResultsProducts",
25187
25197
  props: {
@@ -25302,10 +25312,11 @@ and ensure you are accounting for this risk.
25302
25312
  location: "top",
25303
25313
  sdkOptions: _ctx.options.options
25304
25314
  }, null, 8, ["options", "sdkOptions"]),
25305
- createVNode(_sfc_main$i, {
25315
+ _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$i, {
25316
+ key: 1,
25306
25317
  options: _ctx.options.relatedQueries
25307
- }, null, 8, ["options"]),
25308
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
25318
+ }, null, 8, ["options"])) : createCommentVNode("", true),
25319
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25309
25320
  showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25310
25321
  key: 0,
25311
25322
  options: (_a = _ctx.options.filters) != null ? _a : {}
@@ -25325,7 +25336,7 @@ and ensure you are accounting for this risk.
25325
25336
  expandable: !desktopFiltersExpanded.value
25326
25337
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
25327
25338
  ], 64)) : createCommentVNode("", true),
25328
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25339
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
25329
25340
  createVNode(_sfc_main$B, {
25330
25341
  class: "lupa-toolbar-top",
25331
25342
  options: _ctx.options,
@@ -39665,6 +39676,49 @@ and ensure you are accounting for this risk.
39665
39676
  return null;
39666
39677
  }
39667
39678
  };
39679
+ const mergeSearchBoxConfiguration = (options, overrides) => {
39680
+ var _a, _b, _c;
39681
+ for (const panel of (_a = options.panels) != null ? _a : []) {
39682
+ if (panel.type !== SearchBoxPanelType.DOCUMENT) {
39683
+ continue;
39684
+ }
39685
+ const overridePanel = (_b = overrides.panels) == null ? void 0 : _b.find((p2) => p2.queryKey === panel.queryKey);
39686
+ if (!overridePanel || overridePanel.type !== SearchBoxPanelType.DOCUMENT || !overridePanel) {
39687
+ continue;
39688
+ }
39689
+ panel.elements = (_c = panel.elements) == null ? void 0 : _c.map((element) => {
39690
+ var _a2;
39691
+ const overrideElement = (_a2 = overridePanel == null ? void 0 : overridePanel.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39692
+ if (!overrideElement) {
39693
+ return element;
39694
+ }
39695
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39696
+ });
39697
+ }
39698
+ const _d = overrides, { panels } = _d, overridesWithoutPanels = __objRest(_d, ["panels"]);
39699
+ return merge(options, overridesWithoutPanels);
39700
+ };
39701
+ const mergeSearchResultsConfiguration = (options, overrides) => {
39702
+ var _a;
39703
+ if (!overrides.elements) {
39704
+ return merge(options, overrides);
39705
+ }
39706
+ const elements = (_a = options.elements) == null ? void 0 : _a.map((element) => {
39707
+ var _a2;
39708
+ const overrideElement = (_a2 = overrides.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39709
+ if (!overrideElement) {
39710
+ return element;
39711
+ }
39712
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39713
+ });
39714
+ options.elements = elements;
39715
+ const _b = overrides, { elements: _ } = _b, overridesWithoutElements = __objRest(_b, ["elements"]);
39716
+ return merge(options, overridesWithoutElements);
39717
+ };
39718
+ const PluginConfigurationMerger = {
39719
+ mergeSearchBoxConfiguration,
39720
+ mergeSearchResultsConfiguration
39721
+ };
39668
39722
  const PREVIEW_PARAMETER = "lupaSearchPreview";
39669
39723
  const MAX_ELEMENT_MOUNT_RETRIES = 25;
39670
39724
  let styleElement = null;
@@ -39760,7 +39814,10 @@ and ensure you are accounting for this risk.
39760
39814
  );
39761
39815
  return;
39762
39816
  }
39763
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {});
39817
+ const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
39818
+ resolvedConfiguration,
39819
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {}
39820
+ );
39764
39821
  searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39765
39822
  });
39766
39823
  const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(this, null, function* () {
@@ -39781,7 +39838,10 @@ and ensure you are accounting for this risk.
39781
39838
  );
39782
39839
  return;
39783
39840
  }
39784
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {});
39841
+ const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
39842
+ resolvedConfiguration,
39843
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {}
39844
+ );
39785
39845
  searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39786
39846
  });
39787
39847
  const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(this, null, function* () {
@@ -18,6 +18,18 @@ var __spreadValues = (a, b) => {
18
18
  return a;
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
21
33
  var __async = (__this, __arguments, generator) => {
22
34
  return new Promise((resolve2, reject) => {
23
35
  var fulfilled = (value) => {
@@ -6406,7 +6418,7 @@ var __spreadValues2 = (a, b) => {
6406
6418
  return a;
6407
6419
  };
6408
6420
  var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
6409
- var __objRest = (source, exclude) => {
6421
+ var __objRest2 = (source, exclude) => {
6410
6422
  var target = {};
6411
6423
  for (var prop in source)
6412
6424
  if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -14883,7 +14895,7 @@ let Rule$2 = rule;
14883
14895
  function fromJSON$1(json, inputs) {
14884
14896
  if (Array.isArray(json))
14885
14897
  return json.map((n) => fromJSON$1(n));
14886
- let _a = json, { inputs: ownInputs } = _a, defaults = __objRest(_a, ["inputs"]);
14898
+ let _a = json, { inputs: ownInputs } = _a, defaults = __objRest2(_a, ["inputs"]);
14887
14899
  if (ownInputs) {
14888
14900
  inputs = [];
14889
14901
  for (let input2 of ownInputs) {
@@ -14900,7 +14912,7 @@ function fromJSON$1(json, inputs) {
14900
14912
  defaults.nodes = json.nodes.map((n) => fromJSON$1(n, inputs));
14901
14913
  }
14902
14914
  if (defaults.source) {
14903
- let _b = defaults.source, { inputId } = _b, source = __objRest(_b, ["inputId"]);
14915
+ let _b = defaults.source, { inputId } = _b, source = __objRest2(_b, ["inputId"]);
14904
14916
  defaults.source = source;
14905
14917
  if (inputId != null) {
14906
14918
  defaults.source.input = inputs[inputId];
@@ -18978,7 +18990,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18978
18990
  });
18979
18991
  const displayElement = computed(() => {
18980
18992
  const element = props.element;
18981
- const item = props.item;
18993
+ const item = enhancedItem.value;
18982
18994
  if (!element.display) {
18983
18995
  return true;
18984
18996
  }
@@ -19794,7 +19806,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19794
19806
  return props.panel.showGoToResults;
19795
19807
  });
19796
19808
  const extractedInitialFilters = computed(() => {
19797
- return __spreadValues2({}, processExtractionObject(props.searchBoxOptions.initialFilters));
19809
+ var _a;
19810
+ return __spreadValues2({}, processExtractionObject((_a = props.panel) == null ? void 0 : _a.initialFilters));
19798
19811
  });
19799
19812
  const inputValueProp = computed(() => props.inputValue);
19800
19813
  onMounted(() => {
@@ -20246,9 +20259,6 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20246
20259
  const focused = ref(false);
20247
20260
  const searchBoxInput = ref(null);
20248
20261
  const { highlightedDocument } = storeToRefs(searchBoxStore);
20249
- computed(() => {
20250
- return __spreadValues2({}, processExtractionObject(props.options.initialFilters));
20251
- });
20252
20262
  const searchValue = computed(() => {
20253
20263
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
20254
20264
  });
@@ -20274,8 +20284,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20274
20284
  "hideMoreResultsButtonOnNoResults",
20275
20285
  "showNoResultsPanel",
20276
20286
  "expandOnSinglePanel",
20277
- "showMoreResultsButton",
20278
- "initialFilters"
20287
+ "showMoreResultsButton"
20279
20288
  ])
20280
20289
  );
20281
20290
  const searchTriggers = computed(() => {
@@ -25038,7 +25047,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
25038
25047
  relatedQueries.value = queries;
25039
25048
  }));
25040
25049
  const hasEnoughRelatedQueries = computed(() => {
25041
- return relatedQueries.value.length > 1;
25050
+ var _a;
25051
+ return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
25042
25052
  });
25043
25053
  const handleRelatedQueryClick = (query) => {
25044
25054
  var _a;
@@ -25176,12 +25186,12 @@ const _hoisted_3$7 = {
25176
25186
  "data-cy": "lupa-no-results-in-page"
25177
25187
  };
25178
25188
  const _hoisted_4$4 = {
25179
- key: 3,
25189
+ key: 4,
25180
25190
  class: "lupa-empty-results",
25181
25191
  "data-cy": "lupa-no-results"
25182
25192
  };
25183
- const _hoisted_5$1 = { key: 4 };
25184
- const _hoisted_6$1 = { key: 5 };
25193
+ const _hoisted_5$1 = { key: 5 };
25194
+ const _hoisted_6$1 = { key: 6 };
25185
25195
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
25186
25196
  __name: "SearchResultsProducts",
25187
25197
  props: {
@@ -25302,10 +25312,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25302
25312
  location: "top",
25303
25313
  sdkOptions: _ctx.options.options
25304
25314
  }, null, 8, ["options", "sdkOptions"]),
25305
- createVNode(_sfc_main$i, {
25315
+ _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$i, {
25316
+ key: 1,
25306
25317
  options: _ctx.options.relatedQueries
25307
- }, null, 8, ["options"]),
25308
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
25318
+ }, null, 8, ["options"])) : createCommentVNode("", true),
25319
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25309
25320
  showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25310
25321
  key: 0,
25311
25322
  options: (_a = _ctx.options.filters) != null ? _a : {}
@@ -25325,7 +25336,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25325
25336
  expandable: !desktopFiltersExpanded.value
25326
25337
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
25327
25338
  ], 64)) : createCommentVNode("", true),
25328
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25339
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
25329
25340
  createVNode(_sfc_main$B, {
25330
25341
  class: "lupa-toolbar-top",
25331
25342
  options: _ctx.options,
@@ -39665,6 +39676,49 @@ const getQueryParam = (name) => {
39665
39676
  return null;
39666
39677
  }
39667
39678
  };
39679
+ const mergeSearchBoxConfiguration = (options, overrides) => {
39680
+ var _a, _b, _c;
39681
+ for (const panel of (_a = options.panels) != null ? _a : []) {
39682
+ if (panel.type !== SearchBoxPanelType.DOCUMENT) {
39683
+ continue;
39684
+ }
39685
+ const overridePanel = (_b = overrides.panels) == null ? void 0 : _b.find((p2) => p2.queryKey === panel.queryKey);
39686
+ if (!overridePanel || overridePanel.type !== SearchBoxPanelType.DOCUMENT || !overridePanel) {
39687
+ continue;
39688
+ }
39689
+ panel.elements = (_c = panel.elements) == null ? void 0 : _c.map((element) => {
39690
+ var _a2;
39691
+ const overrideElement = (_a2 = overridePanel == null ? void 0 : overridePanel.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39692
+ if (!overrideElement) {
39693
+ return element;
39694
+ }
39695
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39696
+ });
39697
+ }
39698
+ const _d = overrides, { panels } = _d, overridesWithoutPanels = __objRest(_d, ["panels"]);
39699
+ return merge(options, overridesWithoutPanels);
39700
+ };
39701
+ const mergeSearchResultsConfiguration = (options, overrides) => {
39702
+ var _a;
39703
+ if (!overrides.elements) {
39704
+ return merge(options, overrides);
39705
+ }
39706
+ const elements = (_a = options.elements) == null ? void 0 : _a.map((element) => {
39707
+ var _a2;
39708
+ const overrideElement = (_a2 = overrides.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39709
+ if (!overrideElement) {
39710
+ return element;
39711
+ }
39712
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39713
+ });
39714
+ options.elements = elements;
39715
+ const _b = overrides, { elements: _ } = _b, overridesWithoutElements = __objRest(_b, ["elements"]);
39716
+ return merge(options, overridesWithoutElements);
39717
+ };
39718
+ const PluginConfigurationMerger = {
39719
+ mergeSearchBoxConfiguration,
39720
+ mergeSearchResultsConfiguration
39721
+ };
39668
39722
  const PREVIEW_PARAMETER = "lupaSearchPreview";
39669
39723
  const MAX_ELEMENT_MOUNT_RETRIES = 25;
39670
39724
  let styleElement = null;
@@ -39760,7 +39814,10 @@ const mountSearchBox = (configuration, options, optionOverrides, fetch2 = true,
39760
39814
  );
39761
39815
  return;
39762
39816
  }
39763
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {});
39817
+ const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
39818
+ resolvedConfiguration,
39819
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {}
39820
+ );
39764
39821
  searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39765
39822
  });
39766
39823
  const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(exports, null, function* () {
@@ -39781,7 +39838,10 @@ const mountSearchResults = (configuration, options, optionOverrides, fetch2 = tr
39781
39838
  );
39782
39839
  return;
39783
39840
  }
39784
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {});
39841
+ const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
39842
+ resolvedConfiguration,
39843
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {}
39844
+ );
39785
39845
  searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39786
39846
  });
39787
39847
  const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(exports, null, function* () {
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
20
32
  var __async = (__this, __arguments, generator) => {
21
33
  return new Promise((resolve2, reject) => {
22
34
  var fulfilled = (value) => {
@@ -6404,7 +6416,7 @@ var __spreadValues2 = (a, b) => {
6404
6416
  return a;
6405
6417
  };
6406
6418
  var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
6407
- var __objRest = (source, exclude) => {
6419
+ var __objRest2 = (source, exclude) => {
6408
6420
  var target = {};
6409
6421
  for (var prop in source)
6410
6422
  if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -14881,7 +14893,7 @@ let Rule$2 = rule;
14881
14893
  function fromJSON$1(json, inputs) {
14882
14894
  if (Array.isArray(json))
14883
14895
  return json.map((n) => fromJSON$1(n));
14884
- let _a = json, { inputs: ownInputs } = _a, defaults = __objRest(_a, ["inputs"]);
14896
+ let _a = json, { inputs: ownInputs } = _a, defaults = __objRest2(_a, ["inputs"]);
14885
14897
  if (ownInputs) {
14886
14898
  inputs = [];
14887
14899
  for (let input2 of ownInputs) {
@@ -14898,7 +14910,7 @@ function fromJSON$1(json, inputs) {
14898
14910
  defaults.nodes = json.nodes.map((n) => fromJSON$1(n, inputs));
14899
14911
  }
14900
14912
  if (defaults.source) {
14901
- let _b = defaults.source, { inputId } = _b, source = __objRest(_b, ["inputId"]);
14913
+ let _b = defaults.source, { inputId } = _b, source = __objRest2(_b, ["inputId"]);
14902
14914
  defaults.source = source;
14903
14915
  if (inputId != null) {
14904
14916
  defaults.source.input = inputs[inputId];
@@ -18976,7 +18988,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18976
18988
  });
18977
18989
  const displayElement = computed(() => {
18978
18990
  const element = props.element;
18979
- const item = props.item;
18991
+ const item = enhancedItem.value;
18980
18992
  if (!element.display) {
18981
18993
  return true;
18982
18994
  }
@@ -19792,7 +19804,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19792
19804
  return props.panel.showGoToResults;
19793
19805
  });
19794
19806
  const extractedInitialFilters = computed(() => {
19795
- return __spreadValues2({}, processExtractionObject(props.searchBoxOptions.initialFilters));
19807
+ var _a;
19808
+ return __spreadValues2({}, processExtractionObject((_a = props.panel) == null ? void 0 : _a.initialFilters));
19796
19809
  });
19797
19810
  const inputValueProp = computed(() => props.inputValue);
19798
19811
  onMounted(() => {
@@ -20244,9 +20257,6 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20244
20257
  const focused = ref(false);
20245
20258
  const searchBoxInput = ref(null);
20246
20259
  const { highlightedDocument } = storeToRefs(searchBoxStore);
20247
- computed(() => {
20248
- return __spreadValues2({}, processExtractionObject(props.options.initialFilters));
20249
- });
20250
20260
  const searchValue = computed(() => {
20251
20261
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
20252
20262
  });
@@ -20272,8 +20282,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20272
20282
  "hideMoreResultsButtonOnNoResults",
20273
20283
  "showNoResultsPanel",
20274
20284
  "expandOnSinglePanel",
20275
- "showMoreResultsButton",
20276
- "initialFilters"
20285
+ "showMoreResultsButton"
20277
20286
  ])
20278
20287
  );
20279
20288
  const searchTriggers = computed(() => {
@@ -25036,7 +25045,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
25036
25045
  relatedQueries.value = queries;
25037
25046
  }));
25038
25047
  const hasEnoughRelatedQueries = computed(() => {
25039
- return relatedQueries.value.length > 1;
25048
+ var _a;
25049
+ return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
25040
25050
  });
25041
25051
  const handleRelatedQueryClick = (query) => {
25042
25052
  var _a;
@@ -25174,12 +25184,12 @@ const _hoisted_3$7 = {
25174
25184
  "data-cy": "lupa-no-results-in-page"
25175
25185
  };
25176
25186
  const _hoisted_4$4 = {
25177
- key: 3,
25187
+ key: 4,
25178
25188
  class: "lupa-empty-results",
25179
25189
  "data-cy": "lupa-no-results"
25180
25190
  };
25181
- const _hoisted_5$1 = { key: 4 };
25182
- const _hoisted_6$1 = { key: 5 };
25191
+ const _hoisted_5$1 = { key: 5 };
25192
+ const _hoisted_6$1 = { key: 6 };
25183
25193
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
25184
25194
  __name: "SearchResultsProducts",
25185
25195
  props: {
@@ -25300,10 +25310,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25300
25310
  location: "top",
25301
25311
  sdkOptions: _ctx.options.options
25302
25312
  }, null, 8, ["options", "sdkOptions"]),
25303
- createVNode(_sfc_main$i, {
25313
+ _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$i, {
25314
+ key: 1,
25304
25315
  options: _ctx.options.relatedQueries
25305
- }, null, 8, ["options"]),
25306
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
25316
+ }, null, 8, ["options"])) : createCommentVNode("", true),
25317
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25307
25318
  showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25308
25319
  key: 0,
25309
25320
  options: (_a = _ctx.options.filters) != null ? _a : {}
@@ -25323,7 +25334,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25323
25334
  expandable: !desktopFiltersExpanded.value
25324
25335
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
25325
25336
  ], 64)) : createCommentVNode("", true),
25326
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25337
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
25327
25338
  createVNode(_sfc_main$B, {
25328
25339
  class: "lupa-toolbar-top",
25329
25340
  options: _ctx.options,
@@ -39663,6 +39674,49 @@ const getQueryParam = (name) => {
39663
39674
  return null;
39664
39675
  }
39665
39676
  };
39677
+ const mergeSearchBoxConfiguration = (options, overrides) => {
39678
+ var _a, _b, _c;
39679
+ for (const panel of (_a = options.panels) != null ? _a : []) {
39680
+ if (panel.type !== SearchBoxPanelType.DOCUMENT) {
39681
+ continue;
39682
+ }
39683
+ const overridePanel = (_b = overrides.panels) == null ? void 0 : _b.find((p2) => p2.queryKey === panel.queryKey);
39684
+ if (!overridePanel || overridePanel.type !== SearchBoxPanelType.DOCUMENT || !overridePanel) {
39685
+ continue;
39686
+ }
39687
+ panel.elements = (_c = panel.elements) == null ? void 0 : _c.map((element) => {
39688
+ var _a2;
39689
+ const overrideElement = (_a2 = overridePanel == null ? void 0 : overridePanel.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39690
+ if (!overrideElement) {
39691
+ return element;
39692
+ }
39693
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39694
+ });
39695
+ }
39696
+ const _d = overrides, { panels } = _d, overridesWithoutPanels = __objRest(_d, ["panels"]);
39697
+ return merge(options, overridesWithoutPanels);
39698
+ };
39699
+ const mergeSearchResultsConfiguration = (options, overrides) => {
39700
+ var _a;
39701
+ if (!overrides.elements) {
39702
+ return merge(options, overrides);
39703
+ }
39704
+ const elements = (_a = options.elements) == null ? void 0 : _a.map((element) => {
39705
+ var _a2;
39706
+ const overrideElement = (_a2 = overrides.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39707
+ if (!overrideElement) {
39708
+ return element;
39709
+ }
39710
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39711
+ });
39712
+ options.elements = elements;
39713
+ const _b = overrides, { elements: _ } = _b, overridesWithoutElements = __objRest(_b, ["elements"]);
39714
+ return merge(options, overridesWithoutElements);
39715
+ };
39716
+ const PluginConfigurationMerger = {
39717
+ mergeSearchBoxConfiguration,
39718
+ mergeSearchResultsConfiguration
39719
+ };
39666
39720
  const PREVIEW_PARAMETER = "lupaSearchPreview";
39667
39721
  const MAX_ELEMENT_MOUNT_RETRIES = 25;
39668
39722
  let styleElement = null;
@@ -39758,7 +39812,10 @@ const mountSearchBox = (configuration, options, optionOverrides, fetch2 = true,
39758
39812
  );
39759
39813
  return;
39760
39814
  }
39761
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {});
39815
+ const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
39816
+ resolvedConfiguration,
39817
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {}
39818
+ );
39762
39819
  searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39763
39820
  });
39764
39821
  const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(void 0, null, function* () {
@@ -39779,7 +39836,10 @@ const mountSearchResults = (configuration, options, optionOverrides, fetch2 = tr
39779
39836
  );
39780
39837
  return;
39781
39838
  }
39782
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {});
39839
+ const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
39840
+ resolvedConfiguration,
39841
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {}
39842
+ );
39783
39843
  searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39784
39844
  });
39785
39845
  const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(void 0, null, function* () {
@@ -20,6 +20,18 @@ var __spreadValues = (a, b) => {
20
20
  return a;
21
21
  };
22
22
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
23
35
  var __async = (__this, __arguments, generator) => {
24
36
  return new Promise((resolve, reject) => {
25
37
  var fulfilled = (value) => {
@@ -6408,7 +6420,7 @@ var __async = (__this, __arguments, generator) => {
6408
6420
  return a;
6409
6421
  };
6410
6422
  var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
6411
- var __objRest = (source, exclude) => {
6423
+ var __objRest2 = (source, exclude) => {
6412
6424
  var target = {};
6413
6425
  for (var prop in source)
6414
6426
  if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -14885,7 +14897,7 @@ var __async = (__this, __arguments, generator) => {
14885
14897
  function fromJSON$1(json, inputs) {
14886
14898
  if (Array.isArray(json))
14887
14899
  return json.map((n) => fromJSON$1(n));
14888
- let _a = json, { inputs: ownInputs } = _a, defaults = __objRest(_a, ["inputs"]);
14900
+ let _a = json, { inputs: ownInputs } = _a, defaults = __objRest2(_a, ["inputs"]);
14889
14901
  if (ownInputs) {
14890
14902
  inputs = [];
14891
14903
  for (let input2 of ownInputs) {
@@ -14902,7 +14914,7 @@ var __async = (__this, __arguments, generator) => {
14902
14914
  defaults.nodes = json.nodes.map((n) => fromJSON$1(n, inputs));
14903
14915
  }
14904
14916
  if (defaults.source) {
14905
- let _b = defaults.source, { inputId } = _b, source = __objRest(_b, ["inputId"]);
14917
+ let _b = defaults.source, { inputId } = _b, source = __objRest2(_b, ["inputId"]);
14906
14918
  defaults.source = source;
14907
14919
  if (inputId != null) {
14908
14920
  defaults.source.input = inputs[inputId];
@@ -18980,7 +18992,7 @@ and ensure you are accounting for this risk.
18980
18992
  });
18981
18993
  const displayElement = computed(() => {
18982
18994
  const element = props.element;
18983
- const item = props.item;
18995
+ const item = enhancedItem.value;
18984
18996
  if (!element.display) {
18985
18997
  return true;
18986
18998
  }
@@ -19796,7 +19808,8 @@ and ensure you are accounting for this risk.
19796
19808
  return props.panel.showGoToResults;
19797
19809
  });
19798
19810
  const extractedInitialFilters = computed(() => {
19799
- return __spreadValues2({}, processExtractionObject(props.searchBoxOptions.initialFilters));
19811
+ var _a;
19812
+ return __spreadValues2({}, processExtractionObject((_a = props.panel) == null ? void 0 : _a.initialFilters));
19800
19813
  });
19801
19814
  const inputValueProp = computed(() => props.inputValue);
19802
19815
  onMounted(() => {
@@ -20248,9 +20261,6 @@ and ensure you are accounting for this risk.
20248
20261
  const focused = ref(false);
20249
20262
  const searchBoxInput = ref(null);
20250
20263
  const { highlightedDocument } = storeToRefs(searchBoxStore);
20251
- computed(() => {
20252
- return __spreadValues2({}, processExtractionObject(props.options.initialFilters));
20253
- });
20254
20264
  const searchValue = computed(() => {
20255
20265
  return suggestedValue.value.override ? suggestedValue.value.item.suggestion : inputValue.value;
20256
20266
  });
@@ -20276,8 +20286,7 @@ and ensure you are accounting for this risk.
20276
20286
  "hideMoreResultsButtonOnNoResults",
20277
20287
  "showNoResultsPanel",
20278
20288
  "expandOnSinglePanel",
20279
- "showMoreResultsButton",
20280
- "initialFilters"
20289
+ "showMoreResultsButton"
20281
20290
  ])
20282
20291
  );
20283
20292
  const searchTriggers = computed(() => {
@@ -25040,7 +25049,8 @@ and ensure you are accounting for this risk.
25040
25049
  relatedQueries.value = queries;
25041
25050
  }));
25042
25051
  const hasEnoughRelatedQueries = computed(() => {
25043
- return relatedQueries.value.length > 1;
25052
+ var _a;
25053
+ return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
25044
25054
  });
25045
25055
  const handleRelatedQueryClick = (query) => {
25046
25056
  var _a;
@@ -25178,12 +25188,12 @@ and ensure you are accounting for this risk.
25178
25188
  "data-cy": "lupa-no-results-in-page"
25179
25189
  };
25180
25190
  const _hoisted_4$4 = {
25181
- key: 3,
25191
+ key: 4,
25182
25192
  class: "lupa-empty-results",
25183
25193
  "data-cy": "lupa-no-results"
25184
25194
  };
25185
- const _hoisted_5$1 = { key: 4 };
25186
- const _hoisted_6$1 = { key: 5 };
25195
+ const _hoisted_5$1 = { key: 5 };
25196
+ const _hoisted_6$1 = { key: 6 };
25187
25197
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
25188
25198
  __name: "SearchResultsProducts",
25189
25199
  props: {
@@ -25304,10 +25314,11 @@ and ensure you are accounting for this risk.
25304
25314
  location: "top",
25305
25315
  sdkOptions: _ctx.options.options
25306
25316
  }, null, 8, ["options", "sdkOptions"]),
25307
- createVNode(_sfc_main$i, {
25317
+ _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$i, {
25318
+ key: 1,
25308
25319
  options: _ctx.options.relatedQueries
25309
- }, null, 8, ["options"]),
25310
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
25320
+ }, null, 8, ["options"])) : createCommentVNode("", true),
25321
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25311
25322
  showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
25312
25323
  key: 0,
25313
25324
  options: (_a = _ctx.options.filters) != null ? _a : {}
@@ -25327,7 +25338,7 @@ and ensure you are accounting for this risk.
25327
25338
  expandable: !desktopFiltersExpanded.value
25328
25339
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
25329
25340
  ], 64)) : createCommentVNode("", true),
25330
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25341
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
25331
25342
  createVNode(_sfc_main$B, {
25332
25343
  class: "lupa-toolbar-top",
25333
25344
  options: _ctx.options,
@@ -39667,6 +39678,49 @@ and ensure you are accounting for this risk.
39667
39678
  return null;
39668
39679
  }
39669
39680
  };
39681
+ const mergeSearchBoxConfiguration = (options, overrides) => {
39682
+ var _a, _b, _c;
39683
+ for (const panel of (_a = options.panels) != null ? _a : []) {
39684
+ if (panel.type !== SearchBoxPanelType.DOCUMENT) {
39685
+ continue;
39686
+ }
39687
+ const overridePanel = (_b = overrides.panels) == null ? void 0 : _b.find((p2) => p2.queryKey === panel.queryKey);
39688
+ if (!overridePanel || overridePanel.type !== SearchBoxPanelType.DOCUMENT || !overridePanel) {
39689
+ continue;
39690
+ }
39691
+ panel.elements = (_c = panel.elements) == null ? void 0 : _c.map((element) => {
39692
+ var _a2;
39693
+ const overrideElement = (_a2 = overridePanel == null ? void 0 : overridePanel.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39694
+ if (!overrideElement) {
39695
+ return element;
39696
+ }
39697
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39698
+ });
39699
+ }
39700
+ const _d = overrides, { panels } = _d, overridesWithoutPanels = __objRest(_d, ["panels"]);
39701
+ return merge(options, overridesWithoutPanels);
39702
+ };
39703
+ const mergeSearchResultsConfiguration = (options, overrides) => {
39704
+ var _a;
39705
+ if (!overrides.elements) {
39706
+ return merge(options, overrides);
39707
+ }
39708
+ const elements = (_a = options.elements) == null ? void 0 : _a.map((element) => {
39709
+ var _a2;
39710
+ const overrideElement = (_a2 = overrides.elements) == null ? void 0 : _a2.find((e2) => e2.key === element.key);
39711
+ if (!overrideElement) {
39712
+ return element;
39713
+ }
39714
+ return __spreadValues(__spreadValues({}, element), overrideElement);
39715
+ });
39716
+ options.elements = elements;
39717
+ const _b = overrides, { elements: _ } = _b, overridesWithoutElements = __objRest(_b, ["elements"]);
39718
+ return merge(options, overridesWithoutElements);
39719
+ };
39720
+ const PluginConfigurationMerger = {
39721
+ mergeSearchBoxConfiguration,
39722
+ mergeSearchResultsConfiguration
39723
+ };
39670
39724
  const PREVIEW_PARAMETER = "lupaSearchPreview";
39671
39725
  const MAX_ELEMENT_MOUNT_RETRIES = 25;
39672
39726
  let styleElement = null;
@@ -39762,7 +39816,10 @@ and ensure you are accounting for this risk.
39762
39816
  );
39763
39817
  return;
39764
39818
  }
39765
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {});
39819
+ const mergedOptions = PluginConfigurationMerger.mergeSearchBoxConfiguration(
39820
+ resolvedConfiguration,
39821
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchBox) != null ? _a : {}
39822
+ );
39766
39823
  searchBox(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39767
39824
  });
39768
39825
  const mountSearchResults = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(this, null, function* () {
@@ -39783,7 +39840,10 @@ and ensure you are accounting for this risk.
39783
39840
  );
39784
39841
  return;
39785
39842
  }
39786
- const mergedOptions = merge(resolvedConfiguration, (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {});
39843
+ const mergedOptions = PluginConfigurationMerger.mergeSearchResultsConfiguration(
39844
+ resolvedConfiguration,
39845
+ (_a = optionOverrides == null ? void 0 : optionOverrides.searchResults) != null ? _a : {}
39846
+ );
39787
39847
  searchResults(__spreadProps(__spreadValues({}, mergedOptions), { options }), { fetch: fetch2, allowedMountUrls });
39788
39848
  });
39789
39849
  const mountProductList = (configuration, options, optionOverrides, fetch2 = true, remount = false) => __async(this, null, function* () {
@@ -0,0 +1,85 @@
1
+ import { ResolvedSearchBoxOptions, ResolvedSearchResultOptions } from '../../types/ResolvedOptions';
2
+ import { SearchBoxOptions, SearchResultsOptions } from '@getlupa/vue';
3
+ declare const _default: {
4
+ mergeSearchBoxConfiguration: (options: ResolvedSearchBoxOptions, overrides: Partial<SearchBoxOptions>) => import("@getlupa/vue/dist/src/types/search-box/SearchBoxOptions").SearchBoxInputOptions & {
5
+ history: import("@getlupa/vue/dist/src/types/search-box/SearchBoxHistory").SearchBoxHistory;
6
+ panels: import("@getlupa/vue/dist/src/types/search-box/SearchBoxPanel").SearchBoxPanel[];
7
+ options: import("@getlupa/vue").SdkOptions;
8
+ debounce?: number;
9
+ showTotalCount?: boolean;
10
+ showNoResultsPanel?: boolean;
11
+ hideMoreResultsButtonOnNoResults?: boolean;
12
+ showMoreResultsButton?: boolean;
13
+ expandOnSinglePanel?: boolean;
14
+ forceFullReloadOnParams?: string[];
15
+ initialFilters?: import("@getlupa/client-sdk/Types").FilterGroup | Record<string, import("@getlupa/vue/dist/src/types/DataExtraction").DataExtraction>;
16
+ } & {
17
+ inputSelector: string;
18
+ searchTriggers?: string[];
19
+ routingBehavior?: import("@getlupa/vue").RoutingBehavior;
20
+ dynamicData?: import("@getlupa/vue").DynamicData;
21
+ callbacks?: import("@getlupa/vue").SearchBoxEventCallbacks;
22
+ redirections?: import("@getlupa/vue").RedirectionOptions;
23
+ queryParameterNames?: Record<import("@getlupa/vue/dist/src/types/General").LupaQueryParamValue, string>;
24
+ keepOpen?: boolean;
25
+ } & {
26
+ allowedMountUrls?: string[];
27
+ } & {
28
+ minInputLength?: number;
29
+ labels?: import("@getlupa/vue/dist/src/types/search-box/SearchBoxOptions").SearchBoxOptionLabels;
30
+ links?: import("@getlupa/vue/dist/src/types/search-box/SearchBoxOptions").SearchBoxOptionLinks;
31
+ inputAttributes?: Record<string, string>;
32
+ showSubmitButton?: boolean;
33
+ history?: import("@getlupa/vue/dist/src/types/search-box/SearchBoxHistory").SearchBoxHistory;
34
+ options?: import("@getlupa/vue").SdkOptions;
35
+ debounce?: number;
36
+ showTotalCount?: boolean;
37
+ showNoResultsPanel?: boolean;
38
+ hideMoreResultsButtonOnNoResults?: boolean;
39
+ showMoreResultsButton?: boolean;
40
+ expandOnSinglePanel?: boolean;
41
+ forceFullReloadOnParams?: string[];
42
+ initialFilters?: import("@getlupa/client-sdk/Types").FilterGroup | Record<string, import("@getlupa/vue/dist/src/types/DataExtraction").DataExtraction>;
43
+ inputSelector?: string;
44
+ searchTriggers?: string[];
45
+ routingBehavior?: import("@getlupa/vue").RoutingBehavior;
46
+ dynamicData?: import("@getlupa/vue").DynamicData;
47
+ callbacks?: import("@getlupa/vue").SearchBoxEventCallbacks;
48
+ redirections?: import("@getlupa/vue").RedirectionOptions;
49
+ queryParameterNames?: Record<import("@getlupa/vue/dist/src/types/General").LupaQueryParamValue, string>;
50
+ keepOpen?: boolean;
51
+ };
52
+ mergeSearchResultsConfiguration: (options: ResolvedSearchResultOptions, overrides: Partial<SearchResultsOptions>) => import("@getlupa/vue/dist/src/types/search-results/SearchResultsProductCardOptions").SearchResultsProductCardOptions & import("@getlupa/vue/dist/src/types/search-results/SearchResultsOptions").SearchResultsAdditionalPanels & {
53
+ grid: import("@getlupa/vue/dist/src/types/search-results/SearchResultsOptions").ProductGrid;
54
+ options: import("@getlupa/vue").SdkOptions;
55
+ queryKey: string;
56
+ pagination: import("@getlupa/vue/dist/src/types/search-results/SearchResultsOptions").SearchResultsPagination;
57
+ sort: import("@getlupa/vue").SearchResultsSortOptions[];
58
+ filters?: import("@getlupa/vue").SearchResultsFilterOptions;
59
+ searchTitlePosition?: string;
60
+ hideResultsOnReload?: boolean;
61
+ relatedQueries?: import("@getlupa/vue/dist/src/types/search-results/RelatedQueryOptions").RelatedQueryOptions;
62
+ redirectionSuggestions?: import("@getlupa/vue/dist/src/types/search-results/RedirectionSuggestionOptionts").RedirectionSuggestionOptions[];
63
+ toolbar?: {
64
+ layoutSelector?: boolean;
65
+ itemSummary?: boolean;
66
+ clearFilters?: boolean;
67
+ totalCount?: boolean;
68
+ };
69
+ } & {
70
+ containerSelector: string;
71
+ breadcrumbs: import("@getlupa/vue/dist/src/types/search-results/SearchResultsOptions").SearchResultsBreadcrumb[];
72
+ classMap?: Record<string, string>;
73
+ disallowEmptyQuery?: boolean;
74
+ callbacks?: import("@getlupa/vue").SearchResultEventCallbacks;
75
+ categories?: import("@getlupa/vue").CategoryFilterOptions;
76
+ dynamicData?: import("@getlupa/vue").DynamicData;
77
+ ssr?: import("@getlupa/vue").SsrOptions;
78
+ redirections?: import("@getlupa/vue").RedirectionOptions;
79
+ scrollToResults?: import("@getlupa/vue").ScrollToResultsOptions;
80
+ initialFilters?: import("@getlupa/client-sdk/Types").FilterGroup | Record<string, import("@getlupa/vue/dist/src/types/DataExtraction").DataExtraction>;
81
+ } & {
82
+ allowedMountUrls?: string[];
83
+ } & Partial<SearchResultsOptions>;
84
+ };
85
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.15.12",
3
+ "version": "1.15.14",
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.12",
23
+ "@getlupa/vue": "0.15.14",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",