@getlupa/client 0.10.5 → 0.10.6

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.
@@ -40234,24 +40234,27 @@ const createShadowDom = (shadowId, managerId) => {
40234
40234
  return { host, manager };
40235
40235
  };
40236
40236
  const attatchShadowDom = ({ host, manager, styleUrl, }) => {
40237
+ if (host.shadowRoot) {
40238
+ return;
40239
+ }
40237
40240
  const link = document.createElement("link");
40238
40241
  link.type = "text/css";
40239
40242
  link.rel = "stylesheet";
40240
40243
  link.href = styleUrl;
40241
40244
  // Fonts only work when added in host document head
40242
- const linkNode = document.createElement("link");
40243
- linkNode.type = "text/css";
40244
- linkNode.rel = "stylesheet";
40245
- linkNode.href =
40245
+ const fontLink = document.createElement("link");
40246
+ fontLink.type = "text/css";
40247
+ fontLink.rel = "stylesheet";
40248
+ fontLink.href =
40246
40249
  "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap";
40247
- document.head.appendChild(linkNode);
40250
+ document.head.appendChild(fontLink);
40248
40251
  // Add font for material icons
40249
- const linkNode2 = document.createElement("link");
40250
- linkNode2.type = "text/css";
40251
- linkNode2.rel = "stylesheet";
40252
- linkNode2.href =
40252
+ const materialIconLink = document.createElement("link");
40253
+ materialIconLink.type = "text/css";
40254
+ materialIconLink.rel = "stylesheet";
40255
+ materialIconLink.href =
40253
40256
  "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,1,-50..200";
40254
- document.head.appendChild(linkNode2);
40257
+ document.head.appendChild(materialIconLink);
40255
40258
  const shadow = host.attachShadow({ mode: "open" });
40256
40259
  shadow.appendChild(manager);
40257
40260
  shadow.appendChild(link);
@@ -40230,24 +40230,27 @@ const createShadowDom = (shadowId, managerId) => {
40230
40230
  return { host, manager };
40231
40231
  };
40232
40232
  const attatchShadowDom = ({ host, manager, styleUrl, }) => {
40233
+ if (host.shadowRoot) {
40234
+ return;
40235
+ }
40233
40236
  const link = document.createElement("link");
40234
40237
  link.type = "text/css";
40235
40238
  link.rel = "stylesheet";
40236
40239
  link.href = styleUrl;
40237
40240
  // Fonts only work when added in host document head
40238
- const linkNode = document.createElement("link");
40239
- linkNode.type = "text/css";
40240
- linkNode.rel = "stylesheet";
40241
- linkNode.href =
40241
+ const fontLink = document.createElement("link");
40242
+ fontLink.type = "text/css";
40243
+ fontLink.rel = "stylesheet";
40244
+ fontLink.href =
40242
40245
  "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap";
40243
- document.head.appendChild(linkNode);
40246
+ document.head.appendChild(fontLink);
40244
40247
  // Add font for material icons
40245
- const linkNode2 = document.createElement("link");
40246
- linkNode2.type = "text/css";
40247
- linkNode2.rel = "stylesheet";
40248
- linkNode2.href =
40248
+ const materialIconLink = document.createElement("link");
40249
+ materialIconLink.type = "text/css";
40250
+ materialIconLink.rel = "stylesheet";
40251
+ materialIconLink.href =
40249
40252
  "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,1,-50..200";
40250
- document.head.appendChild(linkNode2);
40253
+ document.head.appendChild(materialIconLink);
40251
40254
  const shadow = host.attachShadow({ mode: "open" });
40252
40255
  shadow.appendChild(manager);
40253
40256
  shadow.appendChild(link);