@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.
- package/dist/cjs/index.min.js +13 -10
- package/dist/es/index.min.js +13 -10
- package/dist/iife/index.min.js +1 -1
- package/dist/lupaContainerStyle.css +1 -1
- package/package.json +1 -1
package/dist/cjs/index.min.js
CHANGED
|
@@ -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
|
|
40243
|
-
|
|
40244
|
-
|
|
40245
|
-
|
|
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(
|
|
40250
|
+
document.head.appendChild(fontLink);
|
|
40248
40251
|
// Add font for material icons
|
|
40249
|
-
const
|
|
40250
|
-
|
|
40251
|
-
|
|
40252
|
-
|
|
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(
|
|
40257
|
+
document.head.appendChild(materialIconLink);
|
|
40255
40258
|
const shadow = host.attachShadow({ mode: "open" });
|
|
40256
40259
|
shadow.appendChild(manager);
|
|
40257
40260
|
shadow.appendChild(link);
|
package/dist/es/index.min.js
CHANGED
|
@@ -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
|
|
40239
|
-
|
|
40240
|
-
|
|
40241
|
-
|
|
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(
|
|
40246
|
+
document.head.appendChild(fontLink);
|
|
40244
40247
|
// Add font for material icons
|
|
40245
|
-
const
|
|
40246
|
-
|
|
40247
|
-
|
|
40248
|
-
|
|
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(
|
|
40253
|
+
document.head.appendChild(materialIconLink);
|
|
40251
40254
|
const shadow = host.attachShadow({ mode: "open" });
|
|
40252
40255
|
shadow.appendChild(manager);
|
|
40253
40256
|
shadow.appendChild(link);
|