@openfin/core 34.78.54 → 34.78.57

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.
package/out/mock.d.ts CHANGED
@@ -43,6 +43,8 @@ declare type Accelerator = {
43
43
  };
44
44
 
45
45
  /**
46
+ * Options to use when adding a view to a {@link TabStack}.
47
+ *
46
48
  * @interface
47
49
  */
48
50
  declare type AddViewOptions = CreateViewTarget & {
@@ -3411,57 +3413,6 @@ declare type ClosingEvent = BaseEvent_5 & {
3411
3413
  */
3412
3414
  declare class ColumnOrRow extends LayoutNode {
3413
3415
  #private;
3414
- /**
3415
- * Determines if this {@link ColumnOrRow} is the top level content item in the current layout.
3416
- * @function isRoot
3417
- * @memberof ColumnOrRow
3418
- * @instance
3419
- * @tutorial ColumnOrRow.isRoot
3420
- * @returns Resolves true if this TabStack is the top level content item, or false if it is not.
3421
- */
3422
- /**
3423
- * Determines if this {@link ColumnOrRow} exists.
3424
- * @function exists
3425
- * @instance
3426
- * @memberof ColumnOrRow
3427
- * @tutorial ColumnOrRow.exists
3428
- * @returns Resolves true if the TabStack exists, or false if it has been destroyed.
3429
- */
3430
- /**
3431
- * Retrieves the parent {@link ColumnOrRow} of this {@link ColumnOrRow}, if one exists.
3432
- * @function getParent
3433
- * @instance
3434
- * @memberof ColumnOrRow
3435
- * @tutorial ColumnOrRow.getParent
3436
- * @returns Promise resolving with the {@link ColumnOrRow} that contains this item, or undefined if
3437
- * this {@link ColumnOrRow}does not exist or is the root content item.
3438
- */
3439
- /**
3440
- * Returns all the adjacent stacks that share an edge with the given {@link ColumnOrRow}.
3441
- * @function getAdjacentStacks
3442
- * @instance
3443
- * @memberof ColumnOrRow
3444
- * @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
3445
- *
3446
- * @tutorial ColumnOrRow.getAdjacentStacks
3447
- */
3448
- /**
3449
- * Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the given {@link ColumnOrRow}
3450
- *
3451
- * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
3452
- * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
3453
- * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
3454
- * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
3455
- *
3456
- * @function createAdjacentStack
3457
- * @instance
3458
- * @memberof ColumnOrRow
3459
- * @param views - List of identities or view creation options of the views to include in the stack
3460
- * @param options - Creation options.
3461
- * @returns The created TabStack
3462
- * @tutorial ColumnOrRow.createAdjacentStack
3463
- * @experimental
3464
- */
3465
3416
  /**
3466
3417
  * @internal
3467
3418
  */
@@ -3730,7 +3681,7 @@ declare type ConstWindowOptions = {
3730
3681
  /**
3731
3682
  * @defaultValue true
3732
3683
  *
3733
- * Toggling off would keep the Window alive even if all its Views were closed.
3684
+ * Setting this to false would keep the Window alive even if all its Views were closed.
3734
3685
  * This is meant for advanced users and should be used with caution.
3735
3686
  * Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
3736
3687
  * Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
@@ -3740,7 +3691,8 @@ declare type ConstWindowOptions = {
3740
3691
  /**
3741
3692
  * @defaultValue 'all'
3742
3693
  *
3743
- * 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'.
3694
+ * When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
3695
+ + * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
3744
3696
  * **NOTE:** - This option is ignored in non-Platforms apps.
3745
3697
  */
3746
3698
  viewsPreventingClose: 'all' | 'layout';
@@ -4547,7 +4499,7 @@ declare type CreateViewPayload = {
4547
4499
  /**
4548
4500
  * @interface
4549
4501
  */
4550
- declare type CreateViewTarget = LayoutIdentity & {
4502
+ declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
4551
4503
  /**
4552
4504
  * If specified, view creation will not attach to a window and caller must
4553
4505
  * insert the view into the layout explicitly
@@ -4687,6 +4639,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
4687
4639
  type: 'destroyed';
4688
4640
  };
4689
4641
 
4642
+ /**
4643
+ * @interface
4644
+ */
4645
+ declare type DeviceInfo = {
4646
+ vendorId: string | number;
4647
+ productId: string | number;
4648
+ };
4649
+
4690
4650
  /**
4691
4651
  * Generated when a page's theme color changes. This is usually due to encountering a meta tag.
4692
4652
  * @interface
@@ -5152,9 +5112,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
5152
5112
  } : never;
5153
5113
 
5154
5114
  declare interface Environment {
5155
- initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
5115
+ initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
5156
5116
  createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
5157
5117
  destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
5118
+ resolveLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<any>;
5158
5119
  initPlatform(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, ...args: Parameters<OpenFin_2.Fin['Platform']['init']>): ReturnType<OpenFin_2.Fin['Platform']['init']>;
5159
5120
  observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
5160
5121
  writeToken(path: string, token: string): Promise<string>;
@@ -7577,7 +7538,7 @@ declare class InteropBroker extends Base {
7577
7538
  * // }
7578
7539
  * ```
7579
7540
  *
7580
- * More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/IntentResolution).
7541
+ * More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
7581
7542
  *
7582
7543
  * @param contextForIntent Data passed between entities and applications.
7583
7544
  * @param clientIdentity Identity of the Client making the request.
@@ -8757,7 +8718,7 @@ declare class Layout extends Base {
8757
8718
  * @internal
8758
8719
  */
8759
8720
  init: (options?: OpenFin_2.InitLayoutOptions) => Promise<Layout>;
8760
- identity: OpenFin_2.LayoutIdentity;
8721
+ identity: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
8761
8722
  private platform;
8762
8723
  wire: Transport;
8763
8724
  /**
@@ -8976,45 +8937,24 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
8976
8937
  */
8977
8938
  declare type LayoutIdentity = Identity_5 & {
8978
8939
  /**
8979
- * The name of the layout an action should be targeted to. When not provided,
8980
- * OpenFin attempts to resolve the instance via visibility checks.
8940
+ * The name of the layout in a given window.
8981
8941
  */
8982
- layoutName?: string;
8942
+ layoutName: string;
8983
8943
  };
8984
8944
 
8985
8945
  /**
8986
- * Generated when a window and all of its layout's views have either finished or failed navigation.
8946
+ * Generated when the window is created, and all of its layout's views have either finished or failed
8947
+ * navigation, once per layout. Does not emit for any layouts added via Layout.create() call.
8987
8948
  * @interface
8988
8949
  */
8989
8950
  declare type LayoutInitializedEvent = BaseEvent_5 & {
8990
8951
  type: 'layout-initialized';
8952
+ layoutIdentity: OpenFin_2.LayoutIdentity;
8991
8953
  ofViews: (OpenFin_2.Identity & {
8992
8954
  entityType: 'view';
8993
8955
  })[];
8994
8956
  };
8995
8957
 
8996
- /**
8997
- * @interface @experimental @internal
8998
- *
8999
- * **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
9000
- *
9001
- * Responsible for handling all layout management and renderering
9002
- */
9003
- declare type LayoutInstance = {
9004
- identity: LayoutIdentity;
9005
- getFrameSnapshot: () => Promise<LayoutOptions>;
9006
- addView: (payload: AddViewOptions) => Promise<View_2>;
9007
- closeView: (viewIdentity: Identity_5) => Promise<void>;
9008
- removeView: (viewConfig: Identity_5 | ViewState) => Promise<View_2>;
9009
- replaceView: (payload: ReplaceViewOptions) => Promise<View_2>;
9010
- getViews: () => LayoutComponent[];
9011
- getCurrentViews: () => Identity_5[];
9012
- startReplaceLayout: (payload: ReplaceLayoutOptions) => Promise<void>;
9013
- applyPreset: (payload: PresetLayoutOptions_2) => void;
9014
- isVisible: () => boolean;
9015
- destroy: () => Promise<void>;
9016
- };
9017
-
9018
8958
  /**
9019
8959
  * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
9020
8960
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
@@ -9042,7 +8982,7 @@ declare type LayoutItemConfig = {
9042
8982
  *
9043
8983
  * **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
9044
8984
  *
9045
- * Responsible for aggergating all layout snapshots and storing LayoutInstances
8985
+ * Responsible for aggregating all layout snapshots and storing layout instances
9046
8986
  */
9047
8987
  declare interface LayoutManager<T extends LayoutSnapshot> {
9048
8988
  /**
@@ -9066,16 +9006,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
9066
9006
  * @throws if Object.keys(snapshot).length > 1
9067
9007
  */
9068
9008
  applyLayoutSnapshot(snapshot: T): Promise<void>;
9069
- /**
9070
- * Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
9071
- * contains a single layout.
9072
- *
9073
- * Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
9074
- * fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
9075
- *
9076
- * @param snapshot
9077
- * @throws if Object.keys(snapshot).length > 1
9078
- */
9079
9009
  /**
9080
9010
  * @experimental
9081
9011
  *
@@ -9096,31 +9026,49 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
9096
9026
  /**
9097
9027
  * @experimental
9098
9028
  *
9099
- * @param layoutIdentity
9100
- * @returns
9029
+ * A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
9030
+ * this method to control the target layout for Layout API calls.
9031
+ *
9032
+ * Example use case: You have hidden all the layouts and are showing a dialog that will
9033
+ * execute an API call (ex: Layout.replace()) - override this method and save the
9034
+ * "last visible" layout identity and return it.
9035
+ *
9036
+ * By default, OpenFin will use a series of checks to determine which Layout the API
9037
+ * call must route to in this order of precedence:
9038
+ * - try to resolve the layout from the layoutIdentity, throws if missing
9039
+ * - if there is only 1 layout, resolves that one
9040
+ * - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
9041
+ * - returns undefined
9042
+ *
9043
+ * @param identity
9044
+ * @returns LayoutIdentity | undefined
9101
9045
  */
9102
- resolveLayout(layoutIdentity?: LayoutIdentity): Promise<LayoutInstance>;
9046
+ resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
9103
9047
  /**
9104
9048
  * @experimental
9105
9049
  *
9106
- * Returns a LayoutInstance if one exists with the name layoutIdentity.layoutName.
9107
- * Throws if it does not exist.
9108
- * @param layoutName
9109
- * @returns
9050
+ * A hook provided to the consumer when it's time to remove a layout. Use this hook to
9051
+ * update your local state and remove the layout for the given LayoutIdentity. Note that
9052
+ * this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
9053
+ * signify to your application it's time to destroy this layout.
9054
+ *
9055
+ * Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
9056
+ *
9057
+ * @param LayoutIdentity
9110
9058
  */
9111
- getLayoutByName(layoutName: string): LayoutInstance;
9059
+ removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
9112
9060
  /**
9113
9061
  * @experimental
9114
9062
  */
9115
- getLayouts(): Record<string, LayoutInstance>;
9063
+ getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
9116
9064
  /**
9117
9065
  * @experimental
9118
9066
  */
9119
- getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
9067
+ isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
9120
9068
  /**
9121
9069
  * @experimental
9122
9070
  */
9123
- isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
9071
+ size(): number;
9124
9072
  }
9125
9073
 
9126
9074
  /**
@@ -9167,7 +9115,7 @@ declare class LayoutModule extends Base {
9167
9115
  * const layoutConfig = await layout.getConfig();
9168
9116
  * ```
9169
9117
  */
9170
- wrap(identity: OpenFin_2.LayoutIdentity): Promise<OpenFin_2.Layout>;
9118
+ wrap(identity: OpenFin_2.Identity | OpenFin_2.LayoutIdentity): Promise<OpenFin_2.Layout>;
9171
9119
  /**
9172
9120
  * Synchronously returns a Layout object that represents a Window's layout.
9173
9121
  *
@@ -9187,7 +9135,7 @@ declare class LayoutModule extends Base {
9187
9135
  * const layoutConfig = await layout.getConfig();
9188
9136
  * ```
9189
9137
  */
9190
- wrapSync(identity: OpenFin_2.LayoutIdentity): OpenFin_2.Layout;
9138
+ wrapSync(identity: OpenFin_2.Identity | OpenFin_2.LayoutIdentity): OpenFin_2.Layout;
9191
9139
  /**
9192
9140
  * Asynchronously returns a Layout object that represents a Window's layout.
9193
9141
  *
@@ -9359,6 +9307,15 @@ declare abstract class LayoutNode {
9359
9307
  /**
9360
9308
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
9361
9309
  *
9310
+ * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
9311
+ * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
9312
+ * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
9313
+ * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
9314
+ *
9315
+ * @param views The views that will populate the new TabStack.
9316
+ * @param options Additional options that control new TabStack creation.
9317
+ * @returns The newly-created TabStack.
9318
+ *
9362
9319
  * @example
9363
9320
  * ```js
9364
9321
  * if (!fin.me.isView) {
@@ -9393,12 +9350,15 @@ declare abstract class LayoutNode {
9393
9350
  * console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
9394
9351
  *
9395
9352
  * ```
9353
+ * @experimental
9396
9354
  */
9397
9355
  createAdjacentStack: (views: OpenFin_2.PlatformViewCreationOptions[], options: {
9398
9356
  position?: OpenFin_2.LayoutPosition;
9399
9357
  }) => Promise<TabStack>;
9400
9358
  /**
9401
- * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
9359
+ * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
9360
+ *
9361
+ * @param edge Edge whose adjacent TabStacks will be returned.
9402
9362
  *
9403
9363
  * @example
9404
9364
  * ```js
@@ -9418,6 +9378,7 @@ declare abstract class LayoutNode {
9418
9378
  * console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
9419
9379
  *
9420
9380
  * ```
9381
+ * @experimental
9421
9382
  */
9422
9383
  getAdjacentStacks: (edge: OpenFin_2.LayoutPosition) => Promise<TabStack[]>;
9423
9384
  }
@@ -9512,6 +9473,9 @@ declare type LayoutOptions = {
9512
9473
  };
9513
9474
  };
9514
9475
 
9476
+ /**
9477
+ * Represents the position of an item in a layout relative to another.
9478
+ */
9515
9479
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9516
9480
 
9517
9481
  /**
@@ -9520,11 +9484,12 @@ declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9520
9484
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
9521
9485
 
9522
9486
  /**
9523
- * Generated when a window and all of its layout's views have been created and can receive API calls.
9487
+ * Generated when the layout and all of the its views have been created and can receive API calls.
9524
9488
  * @interface
9525
9489
  */
9526
9490
  declare type LayoutReadyEvent = BaseEvent_5 & {
9527
9491
  type: 'layout-ready';
9492
+ layoutIdentity: OpenFin_2.LayoutIdentity;
9528
9493
  views: (OpenFin_2.Identity & {
9529
9494
  success: boolean;
9530
9495
  })[];
@@ -10480,6 +10445,7 @@ declare namespace OpenFin_2 {
10480
10445
  WebPermission,
10481
10446
  VerboseWebPermission,
10482
10447
  OpenExternalPermission,
10448
+ DeviceInfo,
10483
10449
  Permissions_2 as Permissions,
10484
10450
  PlatformWindowCreationOptions,
10485
10451
  PlatformWindowOptions,
@@ -10637,7 +10603,6 @@ declare namespace OpenFin_2 {
10637
10603
  InitLayoutOptions,
10638
10604
  LayoutManagerConstructor,
10639
10605
  LayoutManagerOverride,
10640
- LayoutInstance,
10641
10606
  LayoutManager,
10642
10607
  CreateLayoutOptions,
10643
10608
  PresetLayoutOptions_2 as PresetLayoutOptions,
@@ -10829,6 +10794,7 @@ declare type Permissions_2 = {
10829
10794
  Application?: Partial<ApplicationPermissions>;
10830
10795
  System?: Partial<SystemPermissions>;
10831
10796
  webAPIs?: WebPermission[];
10797
+ devices?: DeviceInfo[];
10832
10798
  };
10833
10799
 
10834
10800
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -11783,6 +11749,17 @@ declare interface PlatformProvider {
11783
11749
  * @param callerIdentity
11784
11750
  */
11785
11751
  getInitialLayoutSnapshot(payload: undefined, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.LayoutSnapshot | undefined>;
11752
+ /**
11753
+ * @experimental
11754
+ *
11755
+ * This API is called during the {@link PlatformProvider.getSnapshot()} call.
11756
+ * Gets the current state of a particular window and its views and returns an object that
11757
+ * can be added to the {@link OpenFin.Snapshot.windows} property. Override this function if
11758
+ * you wish to mutate each window snapshot during the {@link PlatformProvider.getSnapshot()} call
11759
+ * @param identity
11760
+ * @param callerIdentity
11761
+ */
11762
+ getWindowSnapshot(identity: OpenFin_2.Identity, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.WindowCreationOptions>;
11786
11763
  /**
11787
11764
  * @experimental @internal
11788
11765
  *
@@ -11797,7 +11774,7 @@ declare interface PlatformProvider {
11797
11774
  */
11798
11775
  createViewsForLayout(payload: {
11799
11776
  layout: GoldenLayout.Config;
11800
- target?: OpenFin_2.Identity;
11777
+ target?: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
11801
11778
  }, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.View>[];
11802
11779
  /**
11803
11780
  * **NOTE**: Internal use only. It is not recommended to manage the state of individual views.
@@ -13262,7 +13239,7 @@ declare type ReplaceLayoutPayload = {
13262
13239
  /**
13263
13240
  * Identity of the window whose layout will be replaced.
13264
13241
  */
13265
- target: LayoutIdentity;
13242
+ target: Identity_5 | LayoutIdentity;
13266
13243
  };
13267
13244
 
13268
13245
  /**
@@ -15765,75 +15742,11 @@ declare interface TabDragListener extends EventEmitter_2 {
15765
15742
  contentItem: ContentItem;
15766
15743
  }
15767
15744
 
15768
- /**
15769
- * @typedef {string} LayoutPosition
15770
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
15771
- */
15772
- /**
15773
- * @typedef {object} StackCreationOptions
15774
- * @summary Stack creation options.
15775
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
15776
- */
15777
- /**
15778
- * @typedef {object} TabStack~AddViewOptions
15779
- * @summary Options to use when adding a view to a {@link TabStack}
15780
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
15781
- */
15782
15745
  /**
15783
15746
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15784
15747
  */
15785
15748
  declare class TabStack extends LayoutNode {
15786
15749
  #private;
15787
- /**
15788
- * Determines if this {@link TabStack} is the top level content item in the current layout.
15789
- * @function isRoot
15790
- * @memberof TabStack
15791
- * @instance
15792
- * @tutorial TabStack.isRoot
15793
- * @returns Resolves true if this TabStack is the top level content item, or false if it is not.
15794
- */
15795
- /**
15796
- * Determines if this {@link TabStack} exists.
15797
- * @function exists
15798
- * @instance
15799
- * @memberof TabStack
15800
- * @tutorial TabStack.exists
15801
- * @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
15802
- */
15803
- /**
15804
- * Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
15805
- * @function getParent
15806
- * @instance
15807
- * @memberof TabStack
15808
- * @tutorial TabStack.getParent
15809
- * @returns is the root content item or does not exist.
15810
- */
15811
- /**
15812
- * Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
15813
- * @function getAdjacentStacks
15814
- * @instance
15815
- * @memberof TabStack
15816
- * @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
15817
- *
15818
- * @tutorial TabStack.getAdjacentStacks
15819
- */
15820
- /**
15821
- * Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the current {@link TabStack}
15822
- *
15823
- * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
15824
- * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
15825
- * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
15826
- * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
15827
- *
15828
- * @function createAdjacentStack
15829
- * @instance
15830
- * @memberof TabStack
15831
- * @param views - List of identities or view creation options of the views to include in the stack
15832
- * @param options - Creation options.
15833
- * @returns The created TabStack.
15834
- * @tutorial TabStack.createAdjacentStack
15835
- * @experimental
15836
- */
15837
15750
  /** @internal */
15838
15751
  constructor(client: LayoutEntitiesClient, entityId: string);
15839
15752
  /**
@@ -16952,7 +16865,7 @@ declare type ViewCreationOrReference = OpenFin_2.Identity | OpenFin_2.PlatformVi
16952
16865
  */
16953
16866
  declare type ViewDetachedEvent = BaseEvent_5 & {
16954
16867
  type: 'view-detached';
16955
- target: OpenFin_2.Identity;
16868
+ target: OpenFin_2.Identity | null;
16956
16869
  previousTarget: OpenFin_2.Identity;
16957
16870
  viewIdentity: OpenFin_2.Identity;
16958
16871
  };
@@ -18188,7 +18101,7 @@ declare namespace WebContentsEvents {
18188
18101
  * `clipboard-read`: Request access to read from the clipboard.<br>
18189
18102
  * `clipboard-sanitized-write`: Request access to write to the clipboard.
18190
18103
  */
18191
- declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
18104
+ declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
18192
18105
 
18193
18106
  /**
18194
18107
  * Object representing headers and their values, where the