@openfin/fdc3-api 36.79.17 → 36.79.18

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
@@ -4,6 +4,8 @@ OpenFin FDC3 Client Library.
4
4
 
5
5
  ## How to use
6
6
 
7
+ This package takes a reference to `fin` and uses the interop client found on `fin.me.interop` to instantiate an object matching the fdc3 spec.
8
+
7
9
  ```typescript
8
10
  import { fdc3FromFin } from '@openfin/fdc3-api';
9
11
 
@@ -11,3 +13,13 @@ const fdc3 = await fdc3FromFin(window.fin);
11
13
 
12
14
  window.fdc3 = fdc3;
13
15
  ```
16
+
17
+ To specify a version of fdc3 you may pass the `fdc3Version` option. Supported options are '1.2' and '2.0'. Default is '2.0'.
18
+
19
+ ```typescript
20
+ import { fdc3FromFin } from '@openfin/fdc3-api';
21
+
22
+ const fdc3 = await fdc3FromFin(window.fin, { fdc3Version: '1.2'});
23
+
24
+ window.fdc3 = fdc3;
25
+ ```
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
5622
5622
  }
5623
5623
  }
5624
5624
 
5625
- export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: Fdc3Version): Promise<Fdc3Module | Fdc3Module2>;
5625
+ export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, { fdc3Version }?: {
5626
+ fdc3Version?: Fdc3Version;
5627
+ }): Promise<Fdc3Module | Fdc3Module2>;
5626
5628
 
5627
5629
  /**
5628
5630
  * @version 1.2
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
5622
5622
  }
5623
5623
  }
5624
5624
 
5625
- export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: Fdc3Version): Promise<Fdc3Module | Fdc3Module2>;
5625
+ export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, { fdc3Version }?: {
5626
+ fdc3Version?: Fdc3Version;
5627
+ }): Promise<Fdc3Module | Fdc3Module2>;
5626
5628
 
5627
5629
  /**
5628
5630
  * @version 1.2
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
5622
5622
  }
5623
5623
  }
5624
5624
 
5625
- export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: Fdc3Version): Promise<Fdc3Module | Fdc3Module2>;
5625
+ export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, { fdc3Version }?: {
5626
+ fdc3Version?: Fdc3Version;
5627
+ }): Promise<Fdc3Module | Fdc3Module2>;
5626
5628
 
5627
5629
  /**
5628
5630
  * @version 1.2
package/out/fdc3-api.d.ts CHANGED
@@ -5703,7 +5703,9 @@ declare namespace FDC3 {
5703
5703
  }
5704
5704
  }
5705
5705
 
5706
- export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: Fdc3Version): Promise<Fdc3Module | Fdc3Module2>;
5706
+ export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, { fdc3Version }?: {
5707
+ fdc3Version?: Fdc3Version;
5708
+ }): Promise<Fdc3Module | Fdc3Module2>;
5707
5709
 
5708
5710
  /**
5709
5711
  * @version 1.2
package/out/fdc3-api.js CHANGED
@@ -2164,9 +2164,9 @@ exports.Fdc3Module2 = fdc32_0.Fdc3Module2 = Fdc3Module2;
2164
2164
  exports.getFdc3 = getFdc3;
2165
2165
  } (fdc3));
2166
2166
 
2167
- async function fdc3FromFin(fin, version) {
2167
+ async function fdc3FromFin(fin, { fdc3Version } = { fdc3Version: '2.0' }) {
2168
2168
  // @ts-expect-error
2169
- return fdc3.getFdc3(fin.wire, version);
2169
+ return fdc3.getFdc3(fin.wire, fdc3Version);
2170
2170
  }
2171
2171
 
2172
2172
  exports.fdc3FromFin = fdc3FromFin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "36.79.17",
3
+ "version": "36.79.18",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "private": false,