@uxland/primary-shell 7.2.0-rc.3 → 7.2.0
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/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +14 -11
package/dist/index.js
CHANGED
|
@@ -2969,10 +2969,7 @@ let a$p = class {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
clear() {
|
|
2971
2971
|
return Object.values(this._viewRegistry.regions).forEach((J) => {
|
|
2972
|
-
J
|
|
2973
|
-
var re;
|
|
2974
|
-
return (re = J[0]) == null ? void 0 : re.removeView(X);
|
|
2975
|
-
});
|
|
2972
|
+
J?.length && Object.keys(J[0].views).forEach((X) => J[0]?.removeView(X));
|
|
2976
2973
|
}), this;
|
|
2977
2974
|
}
|
|
2978
2975
|
destroy() {
|
|
@@ -3009,7 +3006,7 @@ const x$6 = (te) => new h$l(te), c$l = (te) => te.importer(), l$s = async (te, J
|
|
|
3009
3006
|
}, u$s = async (te, J) => {
|
|
3010
3007
|
await J.initialize(te);
|
|
3011
3008
|
}, w$2 = (te, J) => J.dispose(te), v$f = async (te, J) => {
|
|
3012
|
-
if (!
|
|
3009
|
+
if (!te?.length) throw new Error("No plugins to bootstrap");
|
|
3013
3010
|
return (await Promise.allSettled(
|
|
3014
3011
|
te.map((X) => l$s(X, J, u$s))
|
|
3015
3012
|
)).map(
|
|
@@ -44815,7 +44812,7 @@ class n extends HTMLElement {
|
|
|
44815
44812
|
}
|
|
44816
44813
|
connectedCallback() {
|
|
44817
44814
|
const J = document.createElement("div");
|
|
44818
|
-
J.style.minHeight = "100%", J.style.width = "100%";
|
|
44815
|
+
J.style.minHeight = "100%", J.style.width = "100%", J.style.height = "100%";
|
|
44819
44816
|
const X = document.createElement("style");
|
|
44820
44817
|
X.innerText = this.styles, this.root.appendChild(J), this.root.appendChild(X), this.reactRoot = r$L.createRoot(J), this.renderReact();
|
|
44821
44818
|
}
|