@febv/react-island-components 0.1.0-alpha.5 → 0.1.0-alpha.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.
@@ -63693,6 +63693,7 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63693
63693
  tagName: "ri-configure-page",
63694
63694
  observedAttributes: ["layout", "event-key"],
63695
63695
  useShadowDom: !0,
63696
+ hostDisplay: "contents",
63696
63697
  component: Xce,
63697
63698
  styles: [Tm],
63698
63699
  contract: {
@@ -63709,6 +63710,7 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63709
63710
  tagName: "ri-configure-page-header",
63710
63711
  observedAttributes: ["event-key"],
63711
63712
  useShadowDom: !0,
63713
+ hostDisplay: "contents",
63712
63714
  component: Cce,
63713
63715
  styles: [Tm],
63714
63716
  contract: {
@@ -63736,6 +63738,7 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63736
63738
  tagName: "ri-configure-page-body",
63737
63739
  observedAttributes: ["event-key"],
63738
63740
  useShadowDom: !0,
63741
+ hostDisplay: "contents",
63739
63742
  component: zce,
63740
63743
  styles: [Tm],
63741
63744
  contract: {
@@ -63751,6 +63754,7 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63751
63754
  tagName: "ri-configure-page-content",
63752
63755
  observedAttributes: ["event-key"],
63753
63756
  useShadowDom: !0,
63757
+ hostDisplay: "contents",
63754
63758
  component: Ece,
63755
63759
  styles: [Tm],
63756
63760
  contract: {
@@ -63767,6 +63771,7 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63767
63771
  tagName: "ri-configure-page-aside",
63768
63772
  observedAttributes: ["event-key"],
63769
63773
  useShadowDom: !0,
63774
+ hostDisplay: "contents",
63770
63775
  component: Zce,
63771
63776
  styles: [Tm],
63772
63777
  contract: {
@@ -63791,13 +63796,17 @@ const Tm = `*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
63791
63796
  ];
63792
63797
  })
63793
63798
  ), QXe = Object.entries(Ace).map(
63794
- ([t, e]) => ({
63795
- componentName: t,
63796
- tagName: e.tagName,
63797
- observedAttributes: e.observedAttributes,
63798
- useShadowDom: e.useShadowDom,
63799
- styles: "styles" in e ? e.styles : void 0
63800
- })
63799
+ ([t, e]) => {
63800
+ const r = e;
63801
+ return {
63802
+ componentName: t,
63803
+ tagName: r.tagName,
63804
+ observedAttributes: r.observedAttributes,
63805
+ useShadowDom: r.useShadowDom,
63806
+ styles: r.styles,
63807
+ hostDisplay: r.hostDisplay
63808
+ };
63809
+ }
63801
63810
  ), rZ = Zpe({
63802
63811
  registry: $Xe,
63803
63812
  eventNamespace: "react-island"
@@ -63859,13 +63868,19 @@ function XXe(t) {
63859
63868
  var n;
63860
63869
  if (!this.mountContainer) {
63861
63870
  const a = t.useShadowDom !== !1, i = a ? this.attachShadow({ mode: "open" }) : this;
63862
- if (a && (i.appendChild(RXe()), (n = t.styles) != null && n.length))
63863
- for (const s of t.styles) {
63864
- const l = document.createElement("style");
63865
- l.textContent = s, i.appendChild(l);
63866
- }
63871
+ if (a) {
63872
+ if (i.appendChild(RXe()), t.hostDisplay) {
63873
+ const s = document.createElement("style");
63874
+ s.textContent = `:host { display: ${t.hostDisplay}; }`, i.appendChild(s);
63875
+ }
63876
+ if ((n = t.styles) != null && n.length)
63877
+ for (const s of t.styles) {
63878
+ const l = document.createElement("style");
63879
+ l.textContent = s, i.appendChild(l);
63880
+ }
63881
+ }
63867
63882
  const o = document.createElement("div");
63868
- o.className = PXe, i.appendChild(o), this.mountContainer = o;
63883
+ o.className = PXe, t.hostDisplay === "contents" && (o.style.display = "contents"), i.appendChild(o), this.mountContainer = o;
63869
63884
  }
63870
63885
  this.render(!0);
63871
63886
  }