@openfin/node-adapter 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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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."
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -4366,6 +4374,32 @@ declare type CreateLayoutOptions = {
4366
4374
  container: HTMLElement;
4367
4375
  layoutName: string;
4368
4376
  layout: LayoutOptions;
4377
+ /**
4378
+ * @defaultValue 'default'
4379
+ *
4380
+ * Controls the View behavior for the given `layout` property. Note
4381
+ * that the selected behavior only applies to unnamed Views or
4382
+ * Views with the prefix `internal-generated-`. In all cases, if any
4383
+ * View in the `layout` does not already exist, it will be created
4384
+ * with a name that starts with `internal-generated-`.
4385
+ *
4386
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4387
+ * be reparented to the current Window and added to this new Layout.
4388
+ * Use this option when you need to transfer an existing Layout between Windows.
4389
+ *
4390
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4391
+ * be duplicated with new generated names. Use this option when you need
4392
+ * to clone a Layout to any Window.
4393
+ *
4394
+ * When set to `default` or omitted, the Layout will attempt to re-use
4395
+ * existing Views only if they are attached to the current Window or
4396
+ * the Provider Window. Set to `default` or omit this option when creating
4397
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4398
+ * override. Note that during applyLayoutSnapshot, Views are created and
4399
+ * attached to the Provider while the Window is being created, so it's
4400
+ * important to not 'duplicate' Views in this workflow.
4401
+ */
4402
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4369
4403
  };
4370
4404
 
4371
4405
  /**
@@ -6555,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6555
6589
  metadata?: MetadataType;
6556
6590
  };
6557
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6558
6599
  /**
6559
6600
  * Generated when an application has initialized.
6560
6601
  * @interface
@@ -7458,7 +7499,7 @@ declare type InteropBrokerDisconnectionEvent = {
7458
7499
  * @interface
7459
7500
  */
7460
7501
  declare type InteropBrokerOptions = {
7461
- contextGroups?: ContextGroupInfo;
7502
+ contextGroups?: ContextGroupInfo[];
7462
7503
  logging?: InteropLoggingOptions;
7463
7504
  };
7464
7505
 
@@ -9268,6 +9309,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin.MonitorInfo & {
9268
9309
  type: 'monitor-info-changed';
9269
9310
  };
9270
9311
 
9312
+ /**
9313
+ * @experimental
9314
+ *
9315
+ * Used to control view behavior for Layout.create API
9316
+ */
9317
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9318
+
9271
9319
  /**
9272
9320
  * @interface
9273
9321
  */
@@ -9770,6 +9818,7 @@ declare namespace OpenFin {
9770
9818
  WindowState,
9771
9819
  AutoplayPolicyOptions,
9772
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9773
9822
  MutableWindowOptions,
9774
9823
  WorkspacePlatformOptions,
9775
9824
  WebRequestHeader,
@@ -9987,6 +10036,7 @@ declare namespace OpenFin {
9987
10036
  LayoutManagerOverride,
9988
10037
  LayoutManager,
9989
10038
  CreateLayoutOptions,
10039
+ MultiInstanceViewBehavior,
9990
10040
  PresetLayoutOptions_2 as PresetLayoutOptions,
9991
10041
  ResultBehavior,
9992
10042
  PopupBaseBehavior,
@@ -11004,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11004
11054
  * The provider url.
11005
11055
  */
11006
11056
  providerUrl?: string;
11007
- /**
11008
- * The permissions for secured APIs.
11009
- */
11010
- permissions?: Partial<Permissions_2>;
11011
11057
  };
11012
11058
 
11013
11059
  /**
@@ -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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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."
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -4366,6 +4374,32 @@ declare type CreateLayoutOptions = {
4366
4374
  container: HTMLElement;
4367
4375
  layoutName: string;
4368
4376
  layout: LayoutOptions;
4377
+ /**
4378
+ * @defaultValue 'default'
4379
+ *
4380
+ * Controls the View behavior for the given `layout` property. Note
4381
+ * that the selected behavior only applies to unnamed Views or
4382
+ * Views with the prefix `internal-generated-`. In all cases, if any
4383
+ * View in the `layout` does not already exist, it will be created
4384
+ * with a name that starts with `internal-generated-`.
4385
+ *
4386
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4387
+ * be reparented to the current Window and added to this new Layout.
4388
+ * Use this option when you need to transfer an existing Layout between Windows.
4389
+ *
4390
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4391
+ * be duplicated with new generated names. Use this option when you need
4392
+ * to clone a Layout to any Window.
4393
+ *
4394
+ * When set to `default` or omitted, the Layout will attempt to re-use
4395
+ * existing Views only if they are attached to the current Window or
4396
+ * the Provider Window. Set to `default` or omit this option when creating
4397
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4398
+ * override. Note that during applyLayoutSnapshot, Views are created and
4399
+ * attached to the Provider while the Window is being created, so it's
4400
+ * important to not 'duplicate' Views in this workflow.
4401
+ */
4402
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4369
4403
  };
4370
4404
 
4371
4405
  /**
@@ -6555,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6555
6589
  metadata?: MetadataType;
6556
6590
  };
6557
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6558
6599
  /**
6559
6600
  * Generated when an application has initialized.
6560
6601
  * @interface
@@ -7458,7 +7499,7 @@ declare type InteropBrokerDisconnectionEvent = {
7458
7499
  * @interface
7459
7500
  */
7460
7501
  declare type InteropBrokerOptions = {
7461
- contextGroups?: ContextGroupInfo;
7502
+ contextGroups?: ContextGroupInfo[];
7462
7503
  logging?: InteropLoggingOptions;
7463
7504
  };
7464
7505
 
@@ -9268,6 +9309,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin.MonitorInfo & {
9268
9309
  type: 'monitor-info-changed';
9269
9310
  };
9270
9311
 
9312
+ /**
9313
+ * @experimental
9314
+ *
9315
+ * Used to control view behavior for Layout.create API
9316
+ */
9317
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9318
+
9271
9319
  /**
9272
9320
  * @interface
9273
9321
  */
@@ -9770,6 +9818,7 @@ declare namespace OpenFin {
9770
9818
  WindowState,
9771
9819
  AutoplayPolicyOptions,
9772
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9773
9822
  MutableWindowOptions,
9774
9823
  WorkspacePlatformOptions,
9775
9824
  WebRequestHeader,
@@ -9987,6 +10036,7 @@ declare namespace OpenFin {
9987
10036
  LayoutManagerOverride,
9988
10037
  LayoutManager,
9989
10038
  CreateLayoutOptions,
10039
+ MultiInstanceViewBehavior,
9990
10040
  PresetLayoutOptions_2 as PresetLayoutOptions,
9991
10041
  ResultBehavior,
9992
10042
  PopupBaseBehavior,
@@ -11004,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11004
11054
  * The provider url.
11005
11055
  */
11006
11056
  providerUrl?: string;
11007
- /**
11008
- * The permissions for secured APIs.
11009
- */
11010
- permissions?: Partial<Permissions_2>;
11011
11057
  };
11012
11058
 
11013
11059
  /**
@@ -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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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."
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -4366,6 +4374,32 @@ declare type CreateLayoutOptions = {
4366
4374
  container: HTMLElement;
4367
4375
  layoutName: string;
4368
4376
  layout: LayoutOptions;
4377
+ /**
4378
+ * @defaultValue 'default'
4379
+ *
4380
+ * Controls the View behavior for the given `layout` property. Note
4381
+ * that the selected behavior only applies to unnamed Views or
4382
+ * Views with the prefix `internal-generated-`. In all cases, if any
4383
+ * View in the `layout` does not already exist, it will be created
4384
+ * with a name that starts with `internal-generated-`.
4385
+ *
4386
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4387
+ * be reparented to the current Window and added to this new Layout.
4388
+ * Use this option when you need to transfer an existing Layout between Windows.
4389
+ *
4390
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4391
+ * be duplicated with new generated names. Use this option when you need
4392
+ * to clone a Layout to any Window.
4393
+ *
4394
+ * When set to `default` or omitted, the Layout will attempt to re-use
4395
+ * existing Views only if they are attached to the current Window or
4396
+ * the Provider Window. Set to `default` or omit this option when creating
4397
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4398
+ * override. Note that during applyLayoutSnapshot, Views are created and
4399
+ * attached to the Provider while the Window is being created, so it's
4400
+ * important to not 'duplicate' Views in this workflow.
4401
+ */
4402
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4369
4403
  };
4370
4404
 
4371
4405
  /**
@@ -6555,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6555
6589
  metadata?: MetadataType;
6556
6590
  };
6557
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6558
6599
  /**
6559
6600
  * Generated when an application has initialized.
6560
6601
  * @interface
@@ -7458,7 +7499,7 @@ declare type InteropBrokerDisconnectionEvent = {
7458
7499
  * @interface
7459
7500
  */
7460
7501
  declare type InteropBrokerOptions = {
7461
- contextGroups?: ContextGroupInfo;
7502
+ contextGroups?: ContextGroupInfo[];
7462
7503
  logging?: InteropLoggingOptions;
7463
7504
  };
7464
7505
 
@@ -9268,6 +9309,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin.MonitorInfo & {
9268
9309
  type: 'monitor-info-changed';
9269
9310
  };
9270
9311
 
9312
+ /**
9313
+ * @experimental
9314
+ *
9315
+ * Used to control view behavior for Layout.create API
9316
+ */
9317
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9318
+
9271
9319
  /**
9272
9320
  * @interface
9273
9321
  */
@@ -9770,6 +9818,7 @@ declare namespace OpenFin {
9770
9818
  WindowState,
9771
9819
  AutoplayPolicyOptions,
9772
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9773
9822
  MutableWindowOptions,
9774
9823
  WorkspacePlatformOptions,
9775
9824
  WebRequestHeader,
@@ -9987,6 +10036,7 @@ declare namespace OpenFin {
9987
10036
  LayoutManagerOverride,
9988
10037
  LayoutManager,
9989
10038
  CreateLayoutOptions,
10039
+ MultiInstanceViewBehavior,
9990
10040
  PresetLayoutOptions_2 as PresetLayoutOptions,
9991
10041
  ResultBehavior,
9992
10042
  PopupBaseBehavior,
@@ -11004,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11004
11054
  * The provider url.
11005
11055
  */
11006
11056
  providerUrl?: string;
11007
- /**
11008
- * The permissions for secured APIs.
11009
- */
11010
- permissions?: Partial<Permissions_2>;
11011
11057
  };
11012
11058
 
11013
11059
  /**
@@ -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
  *
@@ -3769,6 +3773,10 @@ declare type ConstWindowOptions = {
3769
3773
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3770
3774
  */
3771
3775
  viewVisibility?: ViewVisibilityOptions;
3776
+ /**
3777
+ * 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."
3778
+ */
3779
+ inheritance?: Partial<InheritableOptions>;
3772
3780
  };
3773
3781
 
3774
3782
  declare interface Container extends EventEmitter_2 {
@@ -4409,6 +4417,32 @@ declare type CreateLayoutOptions = {
4409
4417
  container: HTMLElement;
4410
4418
  layoutName: string;
4411
4419
  layout: LayoutOptions;
4420
+ /**
4421
+ * @defaultValue 'default'
4422
+ *
4423
+ * Controls the View behavior for the given `layout` property. Note
4424
+ * that the selected behavior only applies to unnamed Views or
4425
+ * Views with the prefix `internal-generated-`. In all cases, if any
4426
+ * View in the `layout` does not already exist, it will be created
4427
+ * with a name that starts with `internal-generated-`.
4428
+ *
4429
+ * When set to `reparent`, Views prefixed with `internal-generated-` will
4430
+ * be reparented to the current Window and added to this new Layout.
4431
+ * Use this option when you need to transfer an existing Layout between Windows.
4432
+ *
4433
+ * When set to 'duplicate', Views prefixed with `internal-generated-` will
4434
+ * be duplicated with new generated names. Use this option when you need
4435
+ * to clone a Layout to any Window.
4436
+ *
4437
+ * When set to `default` or omitted, the Layout will attempt to re-use
4438
+ * existing Views only if they are attached to the current Window or
4439
+ * the Provider Window. Set to `default` or omit this option when creating
4440
+ * Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
4441
+ * override. Note that during applyLayoutSnapshot, Views are created and
4442
+ * attached to the Provider while the Window is being created, so it's
4443
+ * important to not 'duplicate' Views in this workflow.
4444
+ */
4445
+ multiInstanceViewBehavior?: MultiInstanceViewBehavior;
4412
4446
  };
4413
4447
 
4414
4448
  /**
@@ -6655,6 +6689,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6655
6689
  metadata?: MetadataType;
6656
6690
  };
6657
6691
 
6692
+ declare type InheritableOptions = {
6693
+ customContext: boolean;
6694
+ customData: boolean;
6695
+ icon: boolean;
6696
+ preloadScripts: boolean;
6697
+ };
6698
+
6658
6699
  /**
6659
6700
  * Generated when an application has initialized.
6660
6701
  * @interface
@@ -7573,7 +7614,7 @@ declare type InteropBrokerDisconnectionEvent = {
7573
7614
  * @interface
7574
7615
  */
7575
7616
  declare type InteropBrokerOptions = {
7576
- contextGroups?: ContextGroupInfo;
7617
+ contextGroups?: ContextGroupInfo[];
7577
7618
  logging?: InteropLoggingOptions;
7578
7619
  };
7579
7620
 
@@ -9567,6 +9608,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_8 & OpenFin.MonitorInfo & {
9567
9608
  type: 'monitor-info-changed';
9568
9609
  };
9569
9610
 
9611
+ /**
9612
+ * @experimental
9613
+ *
9614
+ * Used to control view behavior for Layout.create API
9615
+ */
9616
+ declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
9617
+
9570
9618
  /**
9571
9619
  * @interface
9572
9620
  */
@@ -10091,6 +10139,7 @@ declare namespace OpenFin {
10091
10139
  WindowState,
10092
10140
  AutoplayPolicyOptions,
10093
10141
  ConstWindowOptions,
10142
+ InheritableOptions,
10094
10143
  MutableWindowOptions,
10095
10144
  WorkspacePlatformOptions,
10096
10145
  WebRequestHeader,
@@ -10308,6 +10357,7 @@ declare namespace OpenFin {
10308
10357
  LayoutManagerOverride,
10309
10358
  LayoutManager,
10310
10359
  CreateLayoutOptions,
10360
+ MultiInstanceViewBehavior,
10311
10361
  PresetLayoutOptions_2 as PresetLayoutOptions,
10312
10362
  ResultBehavior,
10313
10363
  PopupBaseBehavior,
@@ -11358,10 +11408,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11358
11408
  * The provider url.
11359
11409
  */
11360
11410
  providerUrl?: string;
11361
- /**
11362
- * The permissions for secured APIs.
11363
- */
11364
- permissions?: Partial<Permissions_2>;
11365
11411
  };
11366
11412
 
11367
11413
  /**
@@ -37,7 +37,7 @@ function getDefaultExportFromCjs (x) {
37
37
 
38
38
  var main$1 = {};
39
39
 
40
- var fin = {};
40
+ var fin$1 = {};
41
41
 
42
42
  var system$1 = {};
43
43
 
@@ -11660,7 +11660,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11660
11660
  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");
11661
11661
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11662
11662
  };
11663
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
11663
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
11664
11664
  Object.defineProperty(Factory$2, "__esModule", { value: true });
11665
11665
  Factory$2.LayoutModule = void 0;
11666
11666
  const base_1$5 = base$1;
@@ -11732,10 +11732,31 @@ class LayoutModule extends base_1$5.Base {
11732
11732
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
11733
11733
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
11734
11734
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
11735
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
11735
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
11736
11736
  }
11737
11737
  return this.wrapSync(this.fin.me.identity);
11738
11738
  };
11739
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
11740
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
11741
+ const managerProxy = new Proxy(layoutManager, {
11742
+ get(target, key) {
11743
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
11744
+ console.warn(msg);
11745
+ return target[key];
11746
+ }
11747
+ });
11748
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
11749
+ const layoutProxy = new Proxy(layout, {
11750
+ get(target, key) {
11751
+ if (key === 'layoutManager') {
11752
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
11753
+ console.warn(msg);
11754
+ }
11755
+ return target[key];
11756
+ }
11757
+ });
11758
+ return layoutProxy;
11759
+ });
11739
11760
  /**
11740
11761
  * Returns the layout manager for the current window
11741
11762
  * @returns
@@ -11845,7 +11866,7 @@ class LayoutModule extends base_1$5.Base {
11845
11866
  }
11846
11867
  }
11847
11868
  Factory$2.LayoutModule = LayoutModule;
11848
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11869
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11849
11870
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
11850
11871
  throw new Error(`You must call init before using the API ${method}`);
11851
11872
  }
@@ -11959,6 +11980,9 @@ class PlatformModule extends base_1$4.Base {
11959
11980
  * @experimental
11960
11981
  */
11961
11982
  async init(options) {
11983
+ if (!fin.__internal_.isPlatform || fin.me.name !== fin.me.uuid) {
11984
+ throw new Error('fin.Platform.init should only be called from a custom platform provider running in the main window of the application.');
11985
+ }
11962
11986
  return this.wire.environment.initPlatform(this.fin, options);
11963
11987
  }
11964
11988
  /**
@@ -15233,8 +15257,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
15233
15257
  __exportStar(Instance, exports);
15234
15258
  } (snapshotSource));
15235
15259
 
15236
- Object.defineProperty(fin, "__esModule", { value: true });
15237
- fin.Fin = void 0;
15260
+ Object.defineProperty(fin$1, "__esModule", { value: true });
15261
+ fin$1.Fin = void 0;
15238
15262
  const events_1$3 = require$$0;
15239
15263
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
15240
15264
  const index_1 = system$1;
@@ -15280,7 +15304,7 @@ class Fin extends events_1$3.EventEmitter {
15280
15304
  });
15281
15305
  }
15282
15306
  }
15283
- fin.Fin = Fin;
15307
+ fin$1.Fin = Fin;
15284
15308
 
15285
15309
  var wire = {};
15286
15310
 
@@ -16625,7 +16649,7 @@ function requireMain () {
16625
16649
  (function (exports) {
16626
16650
  Object.defineProperty(exports, "__esModule", { value: true });
16627
16651
  exports.ChannelProvider = exports.ChannelClient = exports.Frame = exports.View = exports.System = exports.Window = exports.Application = exports.Fin = exports.launch = exports.connect = void 0;
16628
- const fin_1 = fin;
16652
+ const fin_1 = fin$1;
16629
16653
  Object.defineProperty(exports, "Fin", { enumerable: true, get: function () { return fin_1.Fin; } });
16630
16654
  const index_1 = requireApplication();
16631
16655
  Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return index_1.Application; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "35.79.3",
3
+ "version": "35.79.5",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",