@openfin/core 38.81.50 → 38.82.1

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.
@@ -1167,9 +1167,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1167
1167
  * The name of the application.
1168
1168
  *
1169
1169
  * @remarks
1170
- * This property is only used for naming the application logging folder, which will be sanitized to remove
1171
- * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1172
- * during startup with the UUID of the application.
1170
+ * This property is used for naming the application logging folder, which will be sanitized to remove
1171
+ * any special characters, spaces or international characters. It's also used in error messages, API
1172
+ * security dialog boxes and in the directory name in %localappdata%/OpenFin/apps/<name><hash>.
1173
1173
  *
1174
1174
  * This property will be deprecated in the future.
1175
1175
  */
@@ -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>;
@@ -1167,9 +1167,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1167
1167
  * The name of the application.
1168
1168
  *
1169
1169
  * @remarks
1170
- * This property is only used for naming the application logging folder, which will be sanitized to remove
1171
- * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1172
- * during startup with the UUID of the application.
1170
+ * This property is used for naming the application logging folder, which will be sanitized to remove
1171
+ * any special characters, spaces or international characters. It's also used in error messages, API
1172
+ * security dialog boxes and in the directory name in %localappdata%/OpenFin/apps/<name><hash>.
1173
1173
  *
1174
1174
  * This property will be deprecated in the future.
1175
1175
  */
@@ -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>;
@@ -1167,9 +1167,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1167
1167
  * The name of the application.
1168
1168
  *
1169
1169
  * @remarks
1170
- * This property is only used for naming the application logging folder, which will be sanitized to remove
1171
- * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1172
- * during startup with the UUID of the application.
1170
+ * This property is used for naming the application logging folder, which will be sanitized to remove
1171
+ * any special characters, spaces or international characters. It's also used in error messages, API
1172
+ * security dialog boxes and in the directory name in %localappdata%/OpenFin/apps/<name><hash>.
1173
1173
  *
1174
1174
  * This property will be deprecated in the future.
1175
1175
  */
@@ -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
@@ -1173,9 +1173,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1173
1173
  * The name of the application.
1174
1174
  *
1175
1175
  * @remarks
1176
- * This property is only used for naming the application logging folder, which will be sanitized to remove
1177
- * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1178
- * during startup with the UUID of the application.
1176
+ * This property is used for naming the application logging folder, which will be sanitized to remove
1177
+ * any special characters, spaces or international characters. It's also used in error messages, API
1178
+ * security dialog boxes and in the directory name in %localappdata%/OpenFin/apps/<name><hash>.
1179
1179
  *
1180
1180
  * This property will be deprecated in the future.
1181
1181
  */
@@ -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
@@ -4901,7 +4901,7 @@ function requireInstance () {
4901
4901
  // don't expose
4902
4902
  });
4903
4903
  const opts = await this.getOptions();
4904
- if (!opts.layout || !opts.layoutSnapshot) {
4904
+ if (!opts.layout && !opts.layoutSnapshot) {
4905
4905
  throw new Error('Window does not have a Layout');
4906
4906
  }
4907
4907
  return this.fin.Platform.Layout.wrap(layoutIdentity ?? this.identity);
@@ -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": "38.81.50",
3
+ "version": "38.82.1",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",