@getlupa/client 0.10.6 → 0.10.7

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.
@@ -40221,14 +40221,11 @@ var store = new Vuex.Store({
40221
40221
 
40222
40222
  const createShadowDom = (shadowId, managerId) => {
40223
40223
  let host = document.getElementById(shadowId);
40224
- let manager = document.getElementById(managerId);
40225
- if (!host) {
40226
- host = document.createElement("div");
40227
- manager = document.createElement("div");
40228
- }
40229
- if (!manager) {
40230
- manager = document.createElement("div");
40224
+ if (host) {
40225
+ host.remove();
40231
40226
  }
40227
+ host = document.createElement("div");
40228
+ const manager = document.createElement("div");
40232
40229
  host.setAttribute("id", shadowId);
40233
40230
  manager === null || manager === void 0 ? void 0 : manager.setAttribute("id", managerId);
40234
40231
  return { host, manager };
@@ -40431,7 +40428,7 @@ const clearSearchContainer = (selector) => {
40431
40428
  instance === null || instance === void 0 ? void 0 : instance.$destroy();
40432
40429
  return;
40433
40430
  }
40434
- for (const key in app.productList) {
40431
+ for (const key in app.searchContainer) {
40435
40432
  const instance = app.searchContainer[key];
40436
40433
  instance === null || instance === void 0 ? void 0 : instance.$destroy();
40437
40434
  }
@@ -1,6 +1,6 @@
1
1
  export declare const createShadowDom: (shadowId: string, managerId: string) => {
2
2
  host: HTMLElement;
3
- manager: HTMLElement;
3
+ manager: HTMLDivElement;
4
4
  };
5
5
  export declare const attatchShadowDom: ({ host, manager, styleUrl, }: {
6
6
  host: HTMLElement;
@@ -40217,14 +40217,11 @@ var store = new Vuex.Store({
40217
40217
 
40218
40218
  const createShadowDom = (shadowId, managerId) => {
40219
40219
  let host = document.getElementById(shadowId);
40220
- let manager = document.getElementById(managerId);
40221
- if (!host) {
40222
- host = document.createElement("div");
40223
- manager = document.createElement("div");
40224
- }
40225
- if (!manager) {
40226
- manager = document.createElement("div");
40220
+ if (host) {
40221
+ host.remove();
40227
40222
  }
40223
+ host = document.createElement("div");
40224
+ const manager = document.createElement("div");
40228
40225
  host.setAttribute("id", shadowId);
40229
40226
  manager === null || manager === void 0 ? void 0 : manager.setAttribute("id", managerId);
40230
40227
  return { host, manager };
@@ -40427,7 +40424,7 @@ const clearSearchContainer = (selector) => {
40427
40424
  instance === null || instance === void 0 ? void 0 : instance.$destroy();
40428
40425
  return;
40429
40426
  }
40430
- for (const key in app.productList) {
40427
+ for (const key in app.searchContainer) {
40431
40428
  const instance = app.searchContainer[key];
40432
40429
  instance === null || instance === void 0 ? void 0 : instance.$destroy();
40433
40430
  }
@@ -1,6 +1,6 @@
1
1
  export declare const createShadowDom: (shadowId: string, managerId: string) => {
2
2
  host: HTMLElement;
3
- manager: HTMLElement;
3
+ manager: HTMLDivElement;
4
4
  };
5
5
  export declare const attatchShadowDom: ({ host, manager, styleUrl, }: {
6
6
  host: HTMLElement;