@luigi-project/client 1.25.2-dev.202210190003 → 1.25.2-dev.202210200006

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.
Files changed (2) hide show
  1. package/luigi-element.js +3 -2
  2. package/package.json +1 -1
package/luigi-element.js CHANGED
@@ -2,10 +2,11 @@
2
2
  * Base class for Luigi web component micro frontends.
3
3
  */
4
4
  export class LuigiElement extends HTMLElement {
5
- constructor() {
5
+ constructor(options) {
6
6
  super();
7
+ const openShadow = options ? options.openShadow : false;
7
8
  this._shadowRoot = this.attachShadow({
8
- mode: 'closed',
9
+ mode: openShadow ? 'open' : 'closed',
9
10
  delegatesFocus: false
10
11
  });
11
12
  this.__initialized = false;
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "micro-frontends",
18
18
  "microfrontends"
19
19
  ],
20
- "version": "1.25.2-dev.202210190003"
20
+ "version": "1.25.2-dev.202210200006"
21
21
  }