@openfin/core 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;
@@ -3309,6 +3311,15 @@ declare type ConstViewOptions = {
3309
3311
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3310
3312
  */
3311
3313
  autoplayPolicy: AutoplayPolicyOptions;
3314
+ /**
3315
+ * **Platforms Only.**
3316
+ * Determines what happens when a view is closed in a platform window.
3317
+ * Supersedes `detachOnClose`, but has no default value.
3318
+ * 'hide' hides the view on the platform window that closed it.
3319
+ * 'detach' behaves like 'detachOnClose': true.
3320
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3321
+ */
3322
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3312
3323
  };
3313
3324
 
3314
3325
  /**
@@ -3375,9 +3386,16 @@ declare type ConstWindowOptions = {
3375
3386
  * This is meant for advanced users and should be used with caution.
3376
3387
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3377
3388
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3378
- * ** note ** - This option is ignored in non-Platforms apps.
3389
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3379
3390
  */
3380
3391
  closeOnLastViewRemoved: boolean;
3392
+ /**
3393
+ * @defaultValue 'all'
3394
+ *
3395
+ * 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'.
3396
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3397
+ */
3398
+ viewsPreventingClose: 'all' | 'layout';
3381
3399
  /**
3382
3400
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3383
3401
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6077,7 +6095,8 @@ declare type Identity_5 = {
6077
6095
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin_2.Identity, Response>;
6078
6096
 
6079
6097
  /**
6080
- * An Identity event.
6098
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6099
+ *
6081
6100
  * @interface
6082
6101
  */
6083
6102
  declare type IdentityEvent = BaseEvent & {
@@ -9252,7 +9271,7 @@ declare type MutableWindowOptions = {
9252
9271
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9253
9272
 
9254
9273
  /**
9255
- * A Name event.
9274
+ * An event that contains an entire {@link OpenFin.Identity}.
9256
9275
  * @interface
9257
9276
  */
9258
9277
  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;
@@ -3309,6 +3311,15 @@ declare type ConstViewOptions = {
3309
3311
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3310
3312
  */
3311
3313
  autoplayPolicy: AutoplayPolicyOptions;
3314
+ /**
3315
+ * **Platforms Only.**
3316
+ * Determines what happens when a view is closed in a platform window.
3317
+ * Supersedes `detachOnClose`, but has no default value.
3318
+ * 'hide' hides the view on the platform window that closed it.
3319
+ * 'detach' behaves like 'detachOnClose': true.
3320
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3321
+ */
3322
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3312
3323
  };
3313
3324
 
3314
3325
  /**
@@ -3375,9 +3386,16 @@ declare type ConstWindowOptions = {
3375
3386
  * This is meant for advanced users and should be used with caution.
3376
3387
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3377
3388
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3378
- * ** note ** - This option is ignored in non-Platforms apps.
3389
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3379
3390
  */
3380
3391
  closeOnLastViewRemoved: boolean;
3392
+ /**
3393
+ * @defaultValue 'all'
3394
+ *
3395
+ * 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'.
3396
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3397
+ */
3398
+ viewsPreventingClose: 'all' | 'layout';
3381
3399
  /**
3382
3400
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3383
3401
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6077,7 +6095,8 @@ declare type Identity_5 = {
6077
6095
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin_2.Identity, Response>;
6078
6096
 
6079
6097
  /**
6080
- * An Identity event.
6098
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6099
+ *
6081
6100
  * @interface
6082
6101
  */
6083
6102
  declare type IdentityEvent = BaseEvent & {
@@ -9252,7 +9271,7 @@ declare type MutableWindowOptions = {
9252
9271
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9253
9272
 
9254
9273
  /**
9255
- * A Name event.
9274
+ * An event that contains an entire {@link OpenFin.Identity}.
9256
9275
  * @interface
9257
9276
  */
9258
9277
  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;
@@ -3309,6 +3311,15 @@ declare type ConstViewOptions = {
3309
3311
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3310
3312
  */
3311
3313
  autoplayPolicy: AutoplayPolicyOptions;
3314
+ /**
3315
+ * **Platforms Only.**
3316
+ * Determines what happens when a view is closed in a platform window.
3317
+ * Supersedes `detachOnClose`, but has no default value.
3318
+ * 'hide' hides the view on the platform window that closed it.
3319
+ * 'detach' behaves like 'detachOnClose': true.
3320
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3321
+ */
3322
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3312
3323
  };
3313
3324
 
3314
3325
  /**
@@ -3375,9 +3386,16 @@ declare type ConstWindowOptions = {
3375
3386
  * This is meant for advanced users and should be used with caution.
3376
3387
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3377
3388
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3378
- * ** note ** - This option is ignored in non-Platforms apps.
3389
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3379
3390
  */
3380
3391
  closeOnLastViewRemoved: boolean;
3392
+ /**
3393
+ * @defaultValue 'all'
3394
+ *
3395
+ * 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'.
3396
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3397
+ */
3398
+ viewsPreventingClose: 'all' | 'layout';
3381
3399
  /**
3382
3400
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3383
3401
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6077,7 +6095,8 @@ declare type Identity_5 = {
6077
6095
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin_2.Identity, Response>;
6078
6096
 
6079
6097
  /**
6080
- * An Identity event.
6098
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6099
+ *
6081
6100
  * @interface
6082
6101
  */
6083
6102
  declare type IdentityEvent = BaseEvent & {
@@ -9252,7 +9271,7 @@ declare type MutableWindowOptions = {
9252
9271
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9253
9272
 
9254
9273
  /**
9255
- * A Name event.
9274
+ * An event that contains an entire {@link OpenFin.Identity}.
9256
9275
  * @interface
9257
9276
  */
9258
9277
  declare type NamedEvent = IdentityEvent & {
package/out/mock.d.ts CHANGED
@@ -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;
@@ -3403,6 +3405,15 @@ declare type ConstViewOptions = {
3403
3405
  * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
3404
3406
  */
3405
3407
  autoplayPolicy: AutoplayPolicyOptions;
3408
+ /**
3409
+ * **Platforms Only.**
3410
+ * Determines what happens when a view is closed in a platform window.
3411
+ * Supersedes `detachOnClose`, but has no default value.
3412
+ * 'hide' hides the view on the platform window that closed it.
3413
+ * 'detach' behaves like 'detachOnClose': true.
3414
+ * 'destroy' is the default behavior as long as 'detachOnClose' is not set.
3415
+ */
3416
+ closeBehavior?: 'hide' | 'detach' | 'destroy';
3406
3417
  };
3407
3418
 
3408
3419
  /**
@@ -3469,9 +3480,16 @@ declare type ConstWindowOptions = {
3469
3480
  * This is meant for advanced users and should be used with caution.
3470
3481
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3471
3482
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
3472
- * ** note ** - This option is ignored in non-Platforms apps.
3483
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3473
3484
  */
3474
3485
  closeOnLastViewRemoved: boolean;
3486
+ /**
3487
+ * @defaultValue 'all'
3488
+ *
3489
+ * 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'.
3490
+ * **NOTE:** - This option is ignored in non-Platforms apps.
3491
+ */
3492
+ viewsPreventingClose: 'all' | 'layout';
3475
3493
  /**
3476
3494
  * Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
3477
3495
  * this value will be ignored for subsequent launches in favor of the cached value.
@@ -6201,7 +6219,8 @@ declare type Identity_5 = {
6201
6219
  declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin_2.Identity, Response>;
6202
6220
 
6203
6221
  /**
6204
- * An Identity event.
6222
+ * An event that contains the `uuid` property of an {@link OpenFin.Identity}.
6223
+ *
6205
6224
  * @interface
6206
6225
  */
6207
6226
  declare type IdentityEvent = BaseEvent & {
@@ -9686,7 +9705,7 @@ declare type MutableWindowOptions = {
9686
9705
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
9687
9706
 
9688
9707
  /**
9689
- * A Name event.
9708
+ * An event that contains an entire {@link OpenFin.Identity}.
9690
9709
  * @interface
9691
9710
  */
9692
9711
  declare type NamedEvent = IdentityEvent & {
package/out/mock.js CHANGED
@@ -37,6 +37,11 @@ Object.defineProperty(application$1, "__esModule", { value: true });
37
37
 
38
38
  var base$1 = {};
39
39
 
40
+ /**
41
+ * Namespace for shared event payloads and utility types common to all event emitters.
42
+ *
43
+ * @packageDocumentation
44
+ */
40
45
  Object.defineProperty(base$1, "__esModule", { value: true });
41
46
 
42
47
  var externalApplication$1 = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.21",
3
+ "version": "34.78.23",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",