@openfin/core 39.81.14 → 39.81.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -4642,6 +4642,12 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4642
4642
  } : never;
4643
4643
 
4644
4644
  declare interface Environment {
4645
+ /**
4646
+ * Returns the version of the adapter synchronously.
4647
+ * In OpenFin, this is the version of the runtime.
4648
+ * Elsewhere (e.g. Node.js), this is the version of the adapter, NOT the runtime.
4649
+ */
4650
+ getAdapterVersionSync(): string;
4645
4651
  layoutAllowedInContext(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): boolean;
4646
4652
  initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
4647
4653
  applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
@@ -4642,6 +4642,12 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4642
4642
  } : never;
4643
4643
 
4644
4644
  declare interface Environment {
4645
+ /**
4646
+ * Returns the version of the adapter synchronously.
4647
+ * In OpenFin, this is the version of the runtime.
4648
+ * Elsewhere (e.g. Node.js), this is the version of the adapter, NOT the runtime.
4649
+ */
4650
+ getAdapterVersionSync(): string;
4645
4651
  layoutAllowedInContext(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): boolean;
4646
4652
  initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
4647
4653
  applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
@@ -4642,6 +4642,12 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4642
4642
  } : never;
4643
4643
 
4644
4644
  declare interface Environment {
4645
+ /**
4646
+ * Returns the version of the adapter synchronously.
4647
+ * In OpenFin, this is the version of the runtime.
4648
+ * Elsewhere (e.g. Node.js), this is the version of the adapter, NOT the runtime.
4649
+ */
4650
+ getAdapterVersionSync(): string;
4645
4651
  layoutAllowedInContext(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): boolean;
4646
4652
  initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
4647
4653
  applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
package/out/mock.d.ts CHANGED
@@ -4706,6 +4706,12 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4706
4706
  } : never;
4707
4707
 
4708
4708
  declare interface Environment {
4709
+ /**
4710
+ * Returns the version of the adapter synchronously.
4711
+ * In OpenFin, this is the version of the runtime.
4712
+ * Elsewhere (e.g. Node.js), this is the version of the adapter, NOT the runtime.
4713
+ */
4714
+ getAdapterVersionSync(): string;
4709
4715
  layoutAllowedInContext(fin: OpenFin_2.Fin<OpenFin_2.EntityType>): boolean;
4710
4716
  initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
4711
4717
  applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
package/out/mock.js CHANGED
@@ -15421,14 +15421,11 @@ function requireFdc31_2 () {
15421
15421
  this.wire.sendAction('fdc3-get-info').catch((e) => {
15422
15422
  // we do not want to expose this error, just continue if this analytics-only call fails
15423
15423
  });
15424
- // @ts-expect-error
15425
- const { uuid, fdc3InteropApi } = fin.__internal_.initialOptions;
15426
- // @ts-expect-error
15427
- const runtimeVersion = fin.desktop.getVersion();
15424
+ const version = this.wire.environment.getAdapterVersionSync();
15428
15425
  return {
15429
- fdc3Version: fdc3InteropApi,
15430
- provider: `openfin-${uuid}`,
15431
- providerVersion: runtimeVersion
15426
+ providerVersion: version,
15427
+ provider: `openfin-${this.wire.me.uuid}`,
15428
+ fdc3Version: '1.2'
15432
15429
  };
15433
15430
  }
15434
15431
  }
@@ -17272,6 +17269,9 @@ class MockEnvironment {
17272
17269
  this.type = 'other';
17273
17270
  this.childViews = true;
17274
17271
  }
17272
+ getAdapterVersionSync() {
17273
+ throw new Error(me_1.environmentUnsupportedMessage);
17274
+ }
17275
17275
  async getInteropInfo() {
17276
17276
  throw new Error(me_1.environmentUnsupportedMessage);
17277
17277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "39.81.14",
3
+ "version": "39.81.15",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",