@getlupa/client 0.10.0-alpha-1 → 0.10.0-alpha-2

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.
@@ -33031,6 +33031,7 @@ __vue_render__$L._withStripped = true;
33031
33031
  );
33032
33032
 
33033
33033
  const RESULT_ROOT_ID = "lupa-search-results";
33034
+ const CONTAINER_ROOT_ID = "lupa-search-container";
33034
33035
  const scrollToSearchResults = (timeout = 500) => {
33035
33036
  if (timeout) {
33036
33037
  setTimeout(() => scrollTo(RESULT_ROOT_ID), timeout);
@@ -33044,7 +33045,9 @@ const scrollTo = (elementId) => {
33044
33045
  if (!el) {
33045
33046
  return;
33046
33047
  }
33047
- window.scrollTo({
33048
+ const serchContainer = document.getElementById(CONTAINER_ROOT_ID);
33049
+ const container = serchContainer !== null && serchContainer !== void 0 ? serchContainer : window;
33050
+ container.scrollTo({
33048
33051
  top: el.offsetTop,
33049
33052
  behavior: "smooth",
33050
33053
  });
@@ -38690,6 +38693,7 @@ var __vue_render__$1 = function () {
38690
38693
  "div",
38691
38694
  {
38692
38695
  staticClass: "lupa-search-container",
38696
+ attrs: { id: "lupa-search-container" },
38693
38697
  on: {
38694
38698
  click: function ($event) {
38695
38699
  $event.stopPropagation();
@@ -40092,9 +40096,10 @@ const searchContainer = (options, mountOptions) => {
40092
40096
  return;
40093
40097
  }
40094
40098
  Vue$1.use(Vuex);
40095
- const id = `lupa-search-container-manager-${options.trigger}`;
40099
+ const id = `lupa-search-container-manager`;
40096
40100
  const managerElement = document.createElement("div");
40097
40101
  managerElement.setAttribute("id", id);
40102
+ document.body.appendChild(managerElement);
40098
40103
  const SearchContainerEntryComponent = Vue$1.component("SearchContainerEntry", __vue_component__);
40099
40104
  const instance = new SearchContainerEntryComponent({
40100
40105
  el: `#${id}`,
@@ -33027,6 +33027,7 @@ __vue_render__$L._withStripped = true;
33027
33027
  );
33028
33028
 
33029
33029
  const RESULT_ROOT_ID = "lupa-search-results";
33030
+ const CONTAINER_ROOT_ID = "lupa-search-container";
33030
33031
  const scrollToSearchResults = (timeout = 500) => {
33031
33032
  if (timeout) {
33032
33033
  setTimeout(() => scrollTo(RESULT_ROOT_ID), timeout);
@@ -33040,7 +33041,9 @@ const scrollTo = (elementId) => {
33040
33041
  if (!el) {
33041
33042
  return;
33042
33043
  }
33043
- window.scrollTo({
33044
+ const serchContainer = document.getElementById(CONTAINER_ROOT_ID);
33045
+ const container = serchContainer !== null && serchContainer !== void 0 ? serchContainer : window;
33046
+ container.scrollTo({
33044
33047
  top: el.offsetTop,
33045
33048
  behavior: "smooth",
33046
33049
  });
@@ -38686,6 +38689,7 @@ var __vue_render__$1 = function () {
38686
38689
  "div",
38687
38690
  {
38688
38691
  staticClass: "lupa-search-container",
38692
+ attrs: { id: "lupa-search-container" },
38689
38693
  on: {
38690
38694
  click: function ($event) {
38691
38695
  $event.stopPropagation();
@@ -40088,9 +40092,10 @@ const searchContainer = (options, mountOptions) => {
40088
40092
  return;
40089
40093
  }
40090
40094
  Vue$1.use(Vuex);
40091
- const id = `lupa-search-container-manager-${options.trigger}`;
40095
+ const id = `lupa-search-container-manager`;
40092
40096
  const managerElement = document.createElement("div");
40093
40097
  managerElement.setAttribute("id", id);
40098
+ document.body.appendChild(managerElement);
40094
40099
  const SearchContainerEntryComponent = Vue$1.component("SearchContainerEntry", __vue_component__);
40095
40100
  const instance = new SearchContainerEntryComponent({
40096
40101
  el: `#${id}`,