@openfin/web-utils 0.38.1 → 0.38.8

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @openfin/web-utils
2
2
 
3
- Internal only util library for utilities shared by core-web and mobile shell.
3
+ Internal only util library for utilities shared by web-interop, web-layouts and mobile shell.
@@ -4,7 +4,6 @@ declare const mixin: (Base: typeof HTMLElement) => {
4
4
  "__#1@#iframe": HTMLIFrameElement;
5
5
  brokerUrl: string | null;
6
6
  name: string | null;
7
- forceFrameName: string | null;
8
7
  uuid: string | null;
9
8
  src: string | null;
10
9
  providerId: string | null;
@@ -324,18 +323,14 @@ declare const mixin: (Base: typeof HTMLElement) => {
324
323
  export type OfViewAttributes = {
325
324
  'of-context-group'?: string;
326
325
  'of-provider-id'?: string;
326
+ 'src': string;
327
327
  'of-uuid': string;
328
328
  'of-name': string;
329
329
  'of-broker'?: string;
330
- 'forceFrameName'?: string;
331
- 'src': string;
332
330
  };
333
331
  type OfViewElementConstructor = ReturnType<typeof mixin>;
334
332
  export type OfViewElement = OfViewElementConstructor extends {
335
333
  new (): infer T;
336
334
  } ? T : never;
337
335
  export declare const registerOfViewElement: () => void;
338
- declare class OfViewElementFactory {
339
- static create(attributes: OfViewAttributes): OfViewElement;
340
- }
341
- export { OfViewElementFactory };
336
+ export {};
@@ -12,20 +12,13 @@ const mixin = (Base) => class _OfViewElement extends Base {
12
12
  this.#iframe.src = this.src;
13
13
  this.#iframe.style.height = '100%';
14
14
  this.#iframe.style.width = '100%';
15
- this.#iframe.style.border = 'none';
16
- if (this.forceFrameName) {
17
- // if forceFrameName is set, the consumer is intentionally breaking auto-connection
18
- this.#iframe.setAttribute('name', this.forceFrameName);
19
- }
20
- else {
21
- this.#iframe.setAttribute('name', encodeOptions({
22
- brokerUrl: this.brokerUrl,
23
- name: this.name,
24
- uuid: this.uuid,
25
- providerId: this.providerId,
26
- contextGroup: this.contextGroup
27
- }, 'of-frame'));
28
- }
15
+ this.#iframe.setAttribute('name', encodeOptions({
16
+ brokerUrl: this.brokerUrl,
17
+ name: this.name,
18
+ uuid: this.uuid,
19
+ providerId: this.providerId,
20
+ contextGroup: this.contextGroup
21
+ }, 'of-frame'));
29
22
  this.#iframe.setAttribute('id', this.name);
30
23
  this.appendChild(this.#iframe);
31
24
  }
@@ -47,14 +40,6 @@ const mixin = (Base) => class _OfViewElement extends Base {
47
40
  this.setAttribute('of-name', val);
48
41
  }
49
42
  }
50
- get forceFrameName() {
51
- return this.getAttribute('forceFrameName');
52
- }
53
- set forceFrameName(val) {
54
- if (val) {
55
- this.setAttribute('forceFrameName', val);
56
- }
57
- }
58
43
  get uuid() {
59
44
  return this.getAttribute('of-uuid');
60
45
  }
@@ -92,13 +77,3 @@ const mixin = (Base) => class _OfViewElement extends Base {
92
77
  }
93
78
  };
94
79
  export const registerOfViewElement = () => customElements.define('of-view', mixin(HTMLElement));
95
- class OfViewElementFactory {
96
- static create(attributes) {
97
- const ofView = document.createElement('of-view');
98
- Object.entries(attributes).forEach(([key, value]) => {
99
- ofView.setAttribute(key, value);
100
- });
101
- return ofView;
102
- }
103
- }
104
- export { OfViewElementFactory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/web-utils",
3
- "version": "0.38.1",
3
+ "version": "0.38.8",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "files": [
@@ -21,14 +21,24 @@
21
21
  "predev": "rimraf out",
22
22
  "build": "tsc",
23
23
  "dev": "tsc --sourcemap --skipLibCheck",
24
- "watch": "npm run dev -- --watch",
25
- "ci:prepublish": "of-npm prepublish",
26
- "ci:postpublish": "of-npm postpublish",
27
- "ci:publish": "npm publish"
24
+ "watch": "npm run dev -- --watch"
28
25
  },
29
26
  "author": "",
30
27
  "license": "SEE LICENSE IN LICENSE.md",
31
28
  "dependencies": {
32
29
  "uuid": "8.3.2"
30
+ },
31
+ "devDependencies": {
32
+ "@openfin/core-ci-tools": "0.0.1",
33
+ "@rollup/plugin-commonjs": "25.0.2",
34
+ "@rollup/plugin-typescript": "11.1.1",
35
+ "@types/uuid": "^8.3.4",
36
+ "jsdom": "^22.1.0",
37
+ "rimraf": "5.0.1",
38
+ "rollup": "3.24.1",
39
+ "ts-loader": "9.5.0",
40
+ "typescript": "4.9.5",
41
+ "vitest": "0.32.2",
42
+ "webpack": "5.89.0"
33
43
  }
34
- }
44
+ }