@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 +12 -0
- package/out/fdc3-api-alpha.d.ts +3 -1
- package/out/fdc3-api-beta.d.ts +3 -1
- package/out/fdc3-api-public.d.ts +3 -1
- package/out/fdc3-api.d.ts +3 -1
- package/out/fdc3-api.js +2 -2
- package/package.json +1 -1
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
|
+
```
|
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
}
|
|
5624
5624
|
|
|
5625
|
-
export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>,
|
|
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-beta.d.ts
CHANGED
|
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
}
|
|
5624
5624
|
|
|
5625
|
-
export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>,
|
|
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-public.d.ts
CHANGED
|
@@ -5622,7 +5622,9 @@ declare namespace FDC3 {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
}
|
|
5624
5624
|
|
|
5625
|
-
export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>,
|
|
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>,
|
|
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,
|
|
2167
|
+
async function fdc3FromFin(fin, { fdc3Version } = { fdc3Version: '2.0' }) {
|
|
2168
2168
|
// @ts-expect-error
|
|
2169
|
-
return fdc3.getFdc3(fin.wire,
|
|
2169
|
+
return fdc3.getFdc3(fin.wire, fdc3Version);
|
|
2170
2170
|
}
|
|
2171
2171
|
|
|
2172
2172
|
exports.fdc3FromFin = fdc3FromFin;
|