@openfin/core 35.79.3 → 35.79.5

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.
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -4362,6 +4370,32 @@ declare type CreateLayoutOptions = {
4362
4370
  container: HTMLElement;
4363
4371
  layoutName: string;
4364
4372
  layout: LayoutOptions;
4373
+ /**
4374
+ * @defaultValue 'default'
4375
+ *
4376
+ * Controls the View behavior for the given `layout` property. Note
4377
+ * that the selected behavior only applies to unnamed Views or
4378
+ * Views with the prefix `internal-generated-`. In all cases, if any
4379
+ * View in the `layout` does not already exist, it will be created
4380
+ * with a name that starts with `internal-generated-`.
4381
+ *
4382
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4383
+ * be reparented to the current Window and added to this new Layout.
4384
+ * Use this option when you need to transfer an existing Layout between Windows.
4385
+ *
4386
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4387
+ * be duplicated with new generated names. Use this option when you need
4388
+ * to clone a Layout to any Window.
4389
+ *
4390
+ * When set to `default` or omitted, the Layout will attempt to re-use
4391
+ * existing Views only if they are attached to the current Window or
4392
+ * the Provider Window. Set to `default` or omit this option when creating
4393
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4394
+ * override. Note that during applyLayoutSnapshot, Views are created and
4395
+ * attached to the Provider while the Window is being created, so it's
4396
+ * important to not 'duplicate' Views in this workflow.
4397
+ */
4398
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4365
4399
  };
4366
4400
 
4367
4401
  /**
@@ -6547,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6547
6581
  metadata?: MetadataType;
6548
6582
  };
6549
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6550
6591
  /**
6551
6592
  * Generated when an application has initialized.
6552
6593
  * @interface
@@ -7450,7 +7491,7 @@ declare type InteropBrokerDisconnectionEvent = {
7450
7491
  * @interface
7451
7492
  */
7452
7493
  declare type InteropBrokerOptions = {
7453
- contextGroups?: ContextGroupInfo;
7494
+ contextGroups?: ContextGroupInfo[];
7454
7495
  logging?: InteropLoggingOptions;
7455
7496
  };
7456
7497
 
@@ -9258,6 +9299,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin_2.MonitorInfo & {
9258
9299
  type: 'monitor-info-changed';
9259
9300
  };
9260
9301
 
9302
+ /**
9303
+ * @experimental
9304
+ *
9305
+ * Used to control view behavior for Layout.create API
9306
+ */
9307
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9308
+
9261
9309
  /**
9262
9310
  * @interface
9263
9311
  */
@@ -9760,6 +9808,7 @@ declare namespace OpenFin_2 {
9760
9808
  WindowState,
9761
9809
  AutoplayPolicyOptions,
9762
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9763
9812
  MutableWindowOptions,
9764
9813
  WorkspacePlatformOptions,
9765
9814
  WebRequestHeader,
@@ -9977,6 +10026,7 @@ declare namespace OpenFin_2 {
9977
10026
  LayoutManagerOverride,
9978
10027
  LayoutManager,
9979
10028
  CreateLayoutOptions,
10029
+ MultiInstanceViewBehavior,
9980
10030
  PresetLayoutOptions_2 as PresetLayoutOptions,
9981
10031
  ResultBehavior,
9982
10032
  PopupBaseBehavior,
@@ -10994,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
10994
11044
  * The provider url.
10995
11045
  */
10996
11046
  providerUrl?: string;
10997
- /**
10998
- * The permissions for secured APIs.
10999
- */
11000
- permissions?: Partial<Permissions_2>;
11001
11047
  };
11002
11048
 
11003
11049
  /**
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -4362,6 +4370,32 @@ declare type CreateLayoutOptions = {
4362
4370
  container: HTMLElement;
4363
4371
  layoutName: string;
4364
4372
  layout: LayoutOptions;
4373
+ /**
4374
+ * @defaultValue 'default'
4375
+ *
4376
+ * Controls the View behavior for the given `layout` property. Note
4377
+ * that the selected behavior only applies to unnamed Views or
4378
+ * Views with the prefix `internal-generated-`. In all cases, if any
4379
+ * View in the `layout` does not already exist, it will be created
4380
+ * with a name that starts with `internal-generated-`.
4381
+ *
4382
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4383
+ * be reparented to the current Window and added to this new Layout.
4384
+ * Use this option when you need to transfer an existing Layout between Windows.
4385
+ *
4386
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4387
+ * be duplicated with new generated names. Use this option when you need
4388
+ * to clone a Layout to any Window.
4389
+ *
4390
+ * When set to `default` or omitted, the Layout will attempt to re-use
4391
+ * existing Views only if they are attached to the current Window or
4392
+ * the Provider Window. Set to `default` or omit this option when creating
4393
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4394
+ * override. Note that during applyLayoutSnapshot, Views are created and
4395
+ * attached to the Provider while the Window is being created, so it's
4396
+ * important to not 'duplicate' Views in this workflow.
4397
+ */
4398
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4365
4399
  };
4366
4400
 
4367
4401
  /**
@@ -6547,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6547
6581
  metadata?: MetadataType;
6548
6582
  };
6549
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6550
6591
  /**
6551
6592
  * Generated when an application has initialized.
6552
6593
  * @interface
@@ -7450,7 +7491,7 @@ declare type InteropBrokerDisconnectionEvent = {
7450
7491
  * @interface
7451
7492
  */
7452
7493
  declare type InteropBrokerOptions = {
7453
- contextGroups?: ContextGroupInfo;
7494
+ contextGroups?: ContextGroupInfo[];
7454
7495
  logging?: InteropLoggingOptions;
7455
7496
  };
7456
7497
 
@@ -9258,6 +9299,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin_2.MonitorInfo & {
9258
9299
  type: 'monitor-info-changed';
9259
9300
  };
9260
9301
 
9302
+ /**
9303
+ * @experimental
9304
+ *
9305
+ * Used to control view behavior for Layout.create API
9306
+ */
9307
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9308
+
9261
9309
  /**
9262
9310
  * @interface
9263
9311
  */
@@ -9760,6 +9808,7 @@ declare namespace OpenFin_2 {
9760
9808
  WindowState,
9761
9809
  AutoplayPolicyOptions,
9762
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9763
9812
  MutableWindowOptions,
9764
9813
  WorkspacePlatformOptions,
9765
9814
  WebRequestHeader,
@@ -9977,6 +10026,7 @@ declare namespace OpenFin_2 {
9977
10026
  LayoutManagerOverride,
9978
10027
  LayoutManager,
9979
10028
  CreateLayoutOptions,
10029
+ MultiInstanceViewBehavior,
9980
10030
  PresetLayoutOptions_2 as PresetLayoutOptions,
9981
10031
  ResultBehavior,
9982
10032
  PopupBaseBehavior,
@@ -10994,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
10994
11044
  * The provider url.
10995
11045
  */
10996
11046
  providerUrl?: string;
10997
- /**
10998
- * The permissions for secured APIs.
10999
- */
11000
- permissions?: Partial<Permissions_2>;
11001
11047
  };
11002
11048
 
11003
11049
  /**
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -4362,6 +4370,32 @@ declare type CreateLayoutOptions = {
4362
4370
  container: HTMLElement;
4363
4371
  layoutName: string;
4364
4372
  layout: LayoutOptions;
4373
+ /**
4374
+ * @defaultValue 'default'
4375
+ *
4376
+ * Controls the View behavior for the given `layout` property. Note
4377
+ * that the selected behavior only applies to unnamed Views or
4378
+ * Views with the prefix `internal-generated-`. In all cases, if any
4379
+ * View in the `layout` does not already exist, it will be created
4380
+ * with a name that starts with `internal-generated-`.
4381
+ *
4382
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4383
+ * be reparented to the current Window and added to this new Layout.
4384
+ * Use this option when you need to transfer an existing Layout between Windows.
4385
+ *
4386
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4387
+ * be duplicated with new generated names. Use this option when you need
4388
+ * to clone a Layout to any Window.
4389
+ *
4390
+ * When set to `default` or omitted, the Layout will attempt to re-use
4391
+ * existing Views only if they are attached to the current Window or
4392
+ * the Provider Window. Set to `default` or omit this option when creating
4393
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4394
+ * override. Note that during applyLayoutSnapshot, Views are created and
4395
+ * attached to the Provider while the Window is being created, so it's
4396
+ * important to not 'duplicate' Views in this workflow.
4397
+ */
4398
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4365
4399
  };
4366
4400
 
4367
4401
  /**
@@ -6547,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6547
6581
  metadata?: MetadataType;
6548
6582
  };
6549
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6550
6591
  /**
6551
6592
  * Generated when an application has initialized.
6552
6593
  * @interface
@@ -7450,7 +7491,7 @@ declare type InteropBrokerDisconnectionEvent = {
7450
7491
  * @interface
7451
7492
  */
7452
7493
  declare type InteropBrokerOptions = {
7453
- contextGroups?: ContextGroupInfo;
7494
+ contextGroups?: ContextGroupInfo[];
7454
7495
  logging?: InteropLoggingOptions;
7455
7496
  };
7456
7497
 
@@ -9258,6 +9299,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin_2.MonitorInfo & {
9258
9299
  type: 'monitor-info-changed';
9259
9300
  };
9260
9301
 
9302
+ /**
9303
+ * @experimental
9304
+ *
9305
+ * Used to control view behavior for Layout.create API
9306
+ */
9307
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9308
+
9261
9309
  /**
9262
9310
  * @interface
9263
9311
  */
@@ -9760,6 +9808,7 @@ declare namespace OpenFin_2 {
9760
9808
  WindowState,
9761
9809
  AutoplayPolicyOptions,
9762
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9763
9812
  MutableWindowOptions,
9764
9813
  WorkspacePlatformOptions,
9765
9814
  WebRequestHeader,
@@ -9977,6 +10026,7 @@ declare namespace OpenFin_2 {
9977
10026
  LayoutManagerOverride,
9978
10027
  LayoutManager,
9979
10028
  CreateLayoutOptions,
10029
+ MultiInstanceViewBehavior,
9980
10030
  PresetLayoutOptions_2 as PresetLayoutOptions,
9981
10031
  ResultBehavior,
9982
10032
  PopupBaseBehavior,
@@ -10994,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
10994
11044
  * The provider url.
10995
11045
  */
10996
11046
  providerUrl?: string;
10997
- /**
10998
- * The permissions for secured APIs.
10999
- */
11000
- permissions?: Partial<Permissions_2>;
11001
11047
  };
11002
11048
 
11003
11049
  /**
package/out/mock.d.ts CHANGED
@@ -1198,6 +1198,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1198
1198
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1199
1199
  */
1200
1200
  domainSettings: DomainSettings;
1201
+ /**
1202
+ * The permissions for secured APIs.
1203
+ */
1204
+ permissions?: Partial<Permissions_2>;
1201
1205
  /**
1202
1206
  * @defaultValue false
1203
1207
  *
@@ -3765,6 +3769,10 @@ declare type ConstWindowOptions = {
3765
3769
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3766
3770
  */
3767
3771
  viewVisibility?: ViewVisibilityOptions;
3772
+ /**
3773
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3774
+ */
3775
+ inheritance?: Partial<InheritableOptions>;
3768
3776
  };
3769
3777
 
3770
3778
  declare interface Container extends EventEmitter_2 {
@@ -4405,6 +4413,32 @@ declare type CreateLayoutOptions = {
4405
4413
  container: HTMLElement;
4406
4414
  layoutName: string;
4407
4415
  layout: LayoutOptions;
4416
+ /**
4417
+ * @defaultValue 'default'
4418
+ *
4419
+ * Controls the View behavior for the given `layout` property. Note
4420
+ * that the selected behavior only applies to unnamed Views or
4421
+ * Views with the prefix `internal-generated-`. In all cases, if any
4422
+ * View in the `layout` does not already exist, it will be created
4423
+ * with a name that starts with `internal-generated-`.
4424
+ *
4425
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4426
+ * be reparented to the current Window and added to this new Layout.
4427
+ * Use this option when you need to transfer an existing Layout between Windows.
4428
+ *
4429
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4430
+ * be duplicated with new generated names. Use this option when you need
4431
+ * to clone a Layout to any Window.
4432
+ *
4433
+ * When set to `default` or omitted, the Layout will attempt to re-use
4434
+ * existing Views only if they are attached to the current Window or
4435
+ * the Provider Window. Set to `default` or omit this option when creating
4436
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4437
+ * override. Note that during applyLayoutSnapshot, Views are created and
4438
+ * attached to the Provider while the Window is being created, so it's
4439
+ * important to not 'duplicate' Views in this workflow.
4440
+ */
4441
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4408
4442
  };
4409
4443
 
4410
4444
  /**
@@ -6625,6 +6659,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6625
6659
  metadata?: MetadataType;
6626
6660
  };
6627
6661
 
6662
+ declare type InheritableOptions = {
6663
+ customContext: boolean;
6664
+ customData: boolean;
6665
+ icon: boolean;
6666
+ preloadScripts: boolean;
6667
+ };
6668
+
6628
6669
  /**
6629
6670
  * Generated when an application has initialized.
6630
6671
  * @interface
@@ -7543,7 +7584,7 @@ declare type InteropBrokerDisconnectionEvent = {
7543
7584
  * @interface
7544
7585
  */
7545
7586
  declare type InteropBrokerOptions = {
7546
- contextGroups?: ContextGroupInfo;
7587
+ contextGroups?: ContextGroupInfo[];
7547
7588
  logging?: InteropLoggingOptions;
7548
7589
  };
7549
7590
 
@@ -9535,6 +9576,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin_2.MonitorInfo & {
9535
9576
  type: 'monitor-info-changed';
9536
9577
  };
9537
9578
 
9579
+ /**
9580
+ * @experimental
9581
+ *
9582
+ * Used to control view behavior for Layout.create API
9583
+ */
9584
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9585
+
9538
9586
  /**
9539
9587
  * @interface
9540
9588
  */
@@ -10059,6 +10107,7 @@ declare namespace OpenFin_2 {
10059
10107
  WindowState,
10060
10108
  AutoplayPolicyOptions,
10061
10109
  ConstWindowOptions,
10110
+ InheritableOptions,
10062
10111
  MutableWindowOptions,
10063
10112
  WorkspacePlatformOptions,
10064
10113
  WebRequestHeader,
@@ -10276,6 +10325,7 @@ declare namespace OpenFin_2 {
10276
10325
  LayoutManagerOverride,
10277
10326
  LayoutManager,
10278
10327
  CreateLayoutOptions,
10328
+ MultiInstanceViewBehavior,
10279
10329
  PresetLayoutOptions_2 as PresetLayoutOptions,
10280
10330
  ResultBehavior,
10281
10331
  PopupBaseBehavior,
@@ -11326,10 +11376,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11326
11376
  * The provider url.
11327
11377
  */
11328
11378
  providerUrl?: string;
11329
- /**
11330
- * The permissions for secured APIs.
11331
- */
11332
- permissions?: Partial<Permissions_2>;
11333
11379
  };
11334
11380
 
11335
11381
  /**
package/out/mock.js CHANGED
@@ -257,7 +257,7 @@ events.WindowEvents = WindowEvents;
257
257
  __exportStar(events, exports);
258
258
  } (OpenFin$1));
259
259
 
260
- var fin = {};
260
+ var fin$1 = {};
261
261
 
262
262
  var system = {};
263
263
 
@@ -11880,7 +11880,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11880
11880
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11881
11881
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11882
11882
  };
11883
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
11883
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
11884
11884
  Object.defineProperty(Factory$2, "__esModule", { value: true });
11885
11885
  Factory$2.LayoutModule = void 0;
11886
11886
  const base_1$5 = base;
@@ -11952,10 +11952,31 @@ class LayoutModule extends base_1$5.Base {
11952
11952
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
11953
11953
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
11954
11954
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
11955
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
11955
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
11956
11956
  }
11957
11957
  return this.wrapSync(this.fin.me.identity);
11958
11958
  };
11959
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
11960
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
11961
+ const managerProxy = new Proxy(layoutManager, {
11962
+ get(target, key) {
11963
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
11964
+ console.warn(msg);
11965
+ return target[key];
11966
+ }
11967
+ });
11968
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
11969
+ const layoutProxy = new Proxy(layout, {
11970
+ get(target, key) {
11971
+ if (key === 'layoutManager') {
11972
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
11973
+ console.warn(msg);
11974
+ }
11975
+ return target[key];
11976
+ }
11977
+ });
11978
+ return layoutProxy;
11979
+ });
11959
11980
  /**
11960
11981
  * Returns the layout manager for the current window
11961
11982
  * @returns
@@ -12065,7 +12086,7 @@ class LayoutModule extends base_1$5.Base {
12065
12086
  }
12066
12087
  }
12067
12088
  Factory$2.LayoutModule = LayoutModule;
12068
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12089
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12069
12090
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
12070
12091
  throw new Error(`You must call init before using the API ${method}`);
12071
12092
  }
@@ -12179,6 +12200,9 @@ class PlatformModule extends base_1$4.Base {
12179
12200
  * @experimental
12180
12201
  */
12181
12202
  async init(options) {
12203
+ if (!fin.__internal_.isPlatform || fin.me.name !== fin.me.uuid) {
12204
+ throw new Error('fin.Platform.init should only be called from a custom platform provider running in the main window of the application.');
12205
+ }
12182
12206
  return this.wire.environment.initPlatform(this.fin, options);
12183
12207
  }
12184
12208
  /**
@@ -15453,8 +15477,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
15453
15477
  __exportStar(Instance, exports);
15454
15478
  } (snapshotSource));
15455
15479
 
15456
- Object.defineProperty(fin, "__esModule", { value: true });
15457
- fin.Fin = void 0;
15480
+ Object.defineProperty(fin$1, "__esModule", { value: true });
15481
+ fin$1.Fin = void 0;
15458
15482
  const events_1$3 = require$$0;
15459
15483
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
15460
15484
  const index_1 = system;
@@ -15500,7 +15524,7 @@ class Fin extends events_1$3.EventEmitter {
15500
15524
  });
15501
15525
  }
15502
15526
  }
15503
- fin.Fin = Fin;
15527
+ fin$1.Fin = Fin;
15504
15528
 
15505
15529
  var transport = {};
15506
15530
 
@@ -15955,7 +15979,7 @@ mockWire.MockWire = MockWire;
15955
15979
  Object.defineProperty(mock, "__esModule", { value: true });
15956
15980
  exports.fin = mock.fin = void 0;
15957
15981
  const OpenFin = OpenFin$1;
15958
- const fin_1 = fin;
15982
+ const fin_1 = fin$1;
15959
15983
  const transport_1 = transport;
15960
15984
  const mockEnvironment_1 = mockEnvironment;
15961
15985
  const mockWire_1 = mockWire;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "35.79.3",
3
+ "version": "35.79.5",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",