@openfin/web-utils 0.42.12 → 0.42.14

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.
@@ -9,6 +9,7 @@ declare const mixin: (Base: typeof HTMLElement) => {
9
9
  src: string | null;
10
10
  providerId: string | null;
11
11
  contextGroup: string | null;
12
+ allow: string | null;
12
13
  accessKey: string;
13
14
  readonly accessKeyLabel: string;
14
15
  autocapitalize: string;
@@ -328,6 +329,7 @@ export type OfViewAttributes = {
328
329
  'of-name': string;
329
330
  'of-broker'?: string;
330
331
  'forceFrameName'?: string;
332
+ 'allow'?: string;
331
333
  'src': string;
332
334
  };
333
335
  type OfViewElementConstructor = ReturnType<typeof mixin>;
@@ -10,6 +10,9 @@ const mixin = (Base) => class _OfViewElement extends Base {
10
10
  if (!this.#iframe) {
11
11
  this.#iframe = document.createElement('iframe');
12
12
  this.#iframe.src = this.src;
13
+ if (this.allow) {
14
+ this.#iframe.allow = this.allow;
15
+ }
13
16
  this.#iframe.style.height = '100%';
14
17
  this.#iframe.style.width = '100%';
15
18
  this.#iframe.style.border = 'none';
@@ -87,6 +90,14 @@ const mixin = (Base) => class _OfViewElement extends Base {
87
90
  this.setAttribute('of-context-group', val);
88
91
  }
89
92
  }
93
+ get allow() {
94
+ return this.getAttribute('allow');
95
+ }
96
+ set allow(val) {
97
+ if (val) {
98
+ this.setAttribute('allow', val);
99
+ }
100
+ }
90
101
  static get observedAttributes() {
91
102
  return ['name'];
92
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/web-utils",
3
- "version": "0.42.12",
3
+ "version": "0.42.14",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "files": [