@openfin/node-adapter 34.78.21 → 34.78.23

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.
@@ -1700,7 +1700,9 @@ declare type BaseConfig = {
1700
1700
  };
1701
1701
 
1702
1702
  /**
1703
- * A base event.
1703
+ * A base OpenFin event. All OpenFin event payloads extend this type.
1704
+ *
1705
+ * @interface
1704
1706
  */
1705
1707
  declare type BaseEvent = {
1706
1708
  topic: string;
@@ -3313,6 +3315,15 @@ declare type ConstViewOptions = {
3313
3315
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3314
3316
  */
3315
3317
  autoplayPolicy: AutoplayPolicyOptions;
3318
+ /**
3319
+ * **Platforms Only.**
3320
+ * Determines what happens when a view is closed in a platform window.
3321
+ * Supersedes `detachOnClose`, but has no default value.
3322
+ * 'hide' hides the view on the platform window that closed it.
3323
+ * 'detach' behaves like 'detachOnClose': true.
3324
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3325
+ */
3326
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3316
3327
  };
3317
3328
 
3318
3329
  /**
@@ -3379,9 +3390,16 @@ declare type ConstWindowOptions = {
3379
3390
  * This is meant for advanced users and should be used with caution.
3380
3391
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3381
3392
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3382
- * ** note ** - This option is ignored in non-Platforms apps.
3393
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3383
3394
  */
3384
3395
  closeOnLastViewRemoved: boolean;
3396
+ /**
3397
+ * @defaultValue 'all'
3398
+ *
3399
+ * Determines which views prevent close if `closeOnLastViewRemoved` is set to true. Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
3400
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3401
+ */
3402
+ viewsPreventingClose: 'all' | 'layout';
3385
3403
  /**
3386
3404
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3387
3405
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6085,7 +6103,8 @@ declare type Identity_5 = {
6085
6103
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
6086
6104
 
6087
6105
  /**
6088
- * An Identity event.
6106
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6107
+ *
6089
6108
  * @interface
6090
6109
  */
6091
6110
  declare type IdentityEvent = BaseEvent & {
@@ -9262,7 +9281,7 @@ declare type MutableWindowOptions = {
9262
9281
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9263
9282
 
9264
9283
  /**
9265
- * A Name event.
9284
+ * An event that contains an entire {@link OpenFin.Identity}.
9266
9285
  * @interface
9267
9286
  */
9268
9287
  declare type NamedEvent = IdentityEvent & {
@@ -1700,7 +1700,9 @@ declare type BaseConfig = {
1700
1700
  };
1701
1701
 
1702
1702
  /**
1703
- * A base event.
1703
+ * A base OpenFin event. All OpenFin event payloads extend this type.
1704
+ *
1705
+ * @interface
1704
1706
  */
1705
1707
  declare type BaseEvent = {
1706
1708
  topic: string;
@@ -3313,6 +3315,15 @@ declare type ConstViewOptions = {
3313
3315
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3314
3316
  */
3315
3317
  autoplayPolicy: AutoplayPolicyOptions;
3318
+ /**
3319
+ * **Platforms Only.**
3320
+ * Determines what happens when a view is closed in a platform window.
3321
+ * Supersedes `detachOnClose`, but has no default value.
3322
+ * 'hide' hides the view on the platform window that closed it.
3323
+ * 'detach' behaves like 'detachOnClose': true.
3324
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3325
+ */
3326
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3316
3327
  };
3317
3328
 
3318
3329
  /**
@@ -3379,9 +3390,16 @@ declare type ConstWindowOptions = {
3379
3390
  * This is meant for advanced users and should be used with caution.
3380
3391
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3381
3392
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3382
- * ** note ** - This option is ignored in non-Platforms apps.
3393
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3383
3394
  */
3384
3395
  closeOnLastViewRemoved: boolean;
3396
+ /**
3397
+ * @defaultValue 'all'
3398
+ *
3399
+ * Determines which views prevent close if `closeOnLastViewRemoved` is set to true. Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
3400
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3401
+ */
3402
+ viewsPreventingClose: 'all' | 'layout';
3385
3403
  /**
3386
3404
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3387
3405
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6085,7 +6103,8 @@ declare type Identity_5 = {
6085
6103
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
6086
6104
 
6087
6105
  /**
6088
- * An Identity event.
6106
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6107
+ *
6089
6108
  * @interface
6090
6109
  */
6091
6110
  declare type IdentityEvent = BaseEvent & {
@@ -9262,7 +9281,7 @@ declare type MutableWindowOptions = {
9262
9281
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9263
9282
 
9264
9283
  /**
9265
- * A Name event.
9284
+ * An event that contains an entire {@link OpenFin.Identity}.
9266
9285
  * @interface
9267
9286
  */
9268
9287
  declare type NamedEvent = IdentityEvent & {
@@ -1700,7 +1700,9 @@ declare type BaseConfig = {
1700
1700
  };
1701
1701
 
1702
1702
  /**
1703
- * A base event.
1703
+ * A base OpenFin event. All OpenFin event payloads extend this type.
1704
+ *
1705
+ * @interface
1704
1706
  */
1705
1707
  declare type BaseEvent = {
1706
1708
  topic: string;
@@ -3313,6 +3315,15 @@ declare type ConstViewOptions = {
3313
3315
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3314
3316
  */
3315
3317
  autoplayPolicy: AutoplayPolicyOptions;
3318
+ /**
3319
+ * **Platforms Only.**
3320
+ * Determines what happens when a view is closed in a platform window.
3321
+ * Supersedes `detachOnClose`, but has no default value.
3322
+ * 'hide' hides the view on the platform window that closed it.
3323
+ * 'detach' behaves like 'detachOnClose': true.
3324
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3325
+ */
3326
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3316
3327
  };
3317
3328
 
3318
3329
  /**
@@ -3379,9 +3390,16 @@ declare type ConstWindowOptions = {
3379
3390
  * This is meant for advanced users and should be used with caution.
3380
3391
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3381
3392
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3382
- * ** note ** - This option is ignored in non-Platforms apps.
3393
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3383
3394
  */
3384
3395
  closeOnLastViewRemoved: boolean;
3396
+ /**
3397
+ * @defaultValue 'all'
3398
+ *
3399
+ * Determines which views prevent close if `closeOnLastViewRemoved` is set to true. Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
3400
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3401
+ */
3402
+ viewsPreventingClose: 'all' | 'layout';
3385
3403
  /**
3386
3404
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3387
3405
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6085,7 +6103,8 @@ declare type Identity_5 = {
6085
6103
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
6086
6104
 
6087
6105
  /**
6088
- * An Identity event.
6106
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6107
+ *
6089
6108
  * @interface
6090
6109
  */
6091
6110
  declare type IdentityEvent = BaseEvent & {
@@ -9262,7 +9281,7 @@ declare type MutableWindowOptions = {
9262
9281
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9263
9282
 
9264
9283
  /**
9265
- * A Name event.
9284
+ * An event that contains an entire {@link OpenFin.Identity}.
9266
9285
  * @interface
9267
9286
  */
9268
9287
  declare type NamedEvent = IdentityEvent & {
@@ -1720,7 +1720,9 @@ declare type BaseConfig = {
1720
1720
  };
1721
1721
 
1722
1722
  /**
1723
- * A base event.
1723
+ * A base OpenFin event. All OpenFin event payloads extend this type.
1724
+ *
1725
+ * @interface
1724
1726
  */
1725
1727
  declare type BaseEvent = {
1726
1728
  topic: string;
@@ -3407,6 +3409,15 @@ declare type ConstViewOptions = {
3407
3409
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3408
3410
  */
3409
3411
  autoplayPolicy: AutoplayPolicyOptions;
3412
+ /**
3413
+ * **Platforms Only.**
3414
+ * Determines what happens when a view is closed in a platform window.
3415
+ * Supersedes `detachOnClose`, but has no default value.
3416
+ * 'hide' hides the view on the platform window that closed it.
3417
+ * 'detach' behaves like 'detachOnClose': true.
3418
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3419
+ */
3420
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3410
3421
  };
3411
3422
 
3412
3423
  /**
@@ -3473,9 +3484,16 @@ declare type ConstWindowOptions = {
3473
3484
  * This is meant for advanced users and should be used with caution.
3474
3485
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3475
3486
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3476
- * ** note ** - This option is ignored in non-Platforms apps.
3487
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3477
3488
  */
3478
3489
  closeOnLastViewRemoved: boolean;
3490
+ /**
3491
+ * @defaultValue 'all'
3492
+ *
3493
+ * Determines which views prevent close if `closeOnLastViewRemoved` is set to true. Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
3494
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3495
+ */
3496
+ viewsPreventingClose: 'all' | 'layout';
3479
3497
  /**
3480
3498
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3481
3499
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6231,7 +6249,8 @@ declare type Identity_5 = {
6231
6249
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
6232
6250
 
6233
6251
  /**
6234
- * An Identity event.
6252
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6253
+ *
6235
6254
  * @interface
6236
6255
  */
6237
6256
  declare type IdentityEvent = BaseEvent & {
@@ -9718,7 +9737,7 @@ declare type MutableWindowOptions = {
9718
9737
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9719
9738
 
9720
9739
  /**
9721
- * A Name event.
9740
+ * An event that contains an entire {@link OpenFin.Identity}.
9722
9741
  * @interface
9723
9742
  */
9724
9743
  declare type NamedEvent = IdentityEvent & {
@@ -17820,6 +17820,11 @@ Object.defineProperty(application, "__esModule", { value: true });
17820
17820
 
17821
17821
  var base = {};
17822
17822
 
17823
+ /**
17824
+ * Namespace for shared event payloads and utility types common to all event emitters.
17825
+ *
17826
+ * @packageDocumentation
17827
+ */
17823
17828
  Object.defineProperty(base, "__esModule", { value: true });
17824
17829
 
17825
17830
  var externalApplication = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "34.78.21",
3
+ "version": "34.78.23",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",