@openfin/node-adapter 35.78.12 → 35.78.15

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.
@@ -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 & {
@@ -927,6 +929,7 @@ declare namespace ApplicationEvents {
927
929
  RespondingEvent,
928
930
  StartedEvent,
929
931
  ApplicationSourcedEvent,
932
+ ApplicationSourcedEventType,
930
933
  Event_3 as Event,
931
934
  ApplicationEvent,
932
935
  EventType_3 as EventType,
@@ -1299,6 +1302,11 @@ declare type ApplicationPermissions = {
1299
1302
  */
1300
1303
  declare type ApplicationSourcedEvent = ClosedEvent | ConnectedEvent_2 | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent_2 | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
1301
1304
 
1305
+ /**
1306
+ * Union of possible type values for an {@link ApplicationSourcedEvent}.
1307
+ */
1308
+ declare type ApplicationSourcedEventType = ApplicationSourcedEvent['type'];
1309
+
1302
1310
  declare type ApplicationState = OpenFin.ApplicationState;
1303
1311
 
1304
1312
  /**
@@ -4458,7 +4466,7 @@ declare type CreateViewPayload = {
4458
4466
  /**
4459
4467
  * @interface
4460
4468
  */
4461
- declare type CreateViewTarget = LayoutIdentity & {
4469
+ declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
4462
4470
  /**
4463
4471
  * If specified, view creation will not attach to a window and caller must
4464
4472
  * insert the view into the layout explicitly
@@ -5291,7 +5299,7 @@ declare type EventType_7 = Event_10['type'];
5291
5299
  /**
5292
5300
  * Union of possible `type` values for a {@link SystemEvent}.
5293
5301
  */
5294
- declare type EventType_8 = SystemEvent['type'];
5302
+ declare type EventType_8 = Event_11['type'];
5295
5303
 
5296
5304
  /* Excluded from this release type: EventWithId */
5297
5305
 
@@ -8627,7 +8635,7 @@ declare type LaunchIntoPlatformPayload = {
8627
8635
  declare class Layout extends Base {
8628
8636
  #private;
8629
8637
  /* Excluded from this release type: init */
8630
- identity: OpenFin.LayoutIdentity;
8638
+ identity: OpenFin.Identity | OpenFin.LayoutIdentity;
8631
8639
  private platform;
8632
8640
  wire: Transport;
8633
8641
  /* Excluded from this release type: __constructor */
@@ -8843,18 +8851,18 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
8843
8851
  */
8844
8852
  declare type LayoutIdentity = Identity_5 & {
8845
8853
  /**
8846
- * The name of the layout an action should be targeted to. When not provided,
8847
- * OpenFin attempts to resolve the instance via visibility checks.
8854
+ * The name of the layout in a given window.
8848
8855
  */
8849
- layoutName?: string;
8856
+ layoutName: string;
8850
8857
  };
8851
8858
 
8852
8859
  /**
8853
- * Generated when a window and all of its layout's views have either finished or failed navigation.
8860
+ * Generated when the window and all of its layout's views have either finished or failed navigation, once per layout.
8854
8861
  * @interface
8855
8862
  */
8856
8863
  declare type LayoutInitializedEvent = BaseEvent_5 & {
8857
8864
  type: 'layout-initialized';
8865
+ layoutIdentity: OpenFin.LayoutIdentity;
8858
8866
  ofViews: (OpenFin.Identity & {
8859
8867
  entityType: 'view';
8860
8868
  })[];
@@ -8928,6 +8936,27 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
8928
8936
  * @returns T
8929
8937
  */
8930
8938
  getLayoutSnapshot(): Promise<T>;
8939
+ /**
8940
+ * @experimental
8941
+ *
8942
+ * A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
8943
+ * this method to control the target layout for Layout API calls.
8944
+ *
8945
+ * Example use case: You have hidden all the layouts and are showing a dialog that will
8946
+ * execute an API call (ex: Layout.replace()) - override this method and save the
8947
+ * "last visible" layout identity and return it.
8948
+ *
8949
+ * By default, OpenFin will use a series of checks to determine which Layout the API
8950
+ * call must route to in this order of precedence:
8951
+ * - try to resolve the layout from the layoutIdentity, throws if missing
8952
+ * - if there is only 1 layout, resolves that one
8953
+ * - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
8954
+ * - returns undefined
8955
+ *
8956
+ * @param identity
8957
+ * @returns LayoutIdentity | undefined
8958
+ */
8959
+ resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
8931
8960
  /**
8932
8961
  * @experimental
8933
8962
  *
@@ -8999,7 +9028,7 @@ declare class LayoutModule extends Base {
8999
9028
  * const layoutConfig = await layout.getConfig();
9000
9029
  * ```
9001
9030
  */
9002
- wrap(identity: OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9031
+ wrap(identity: OpenFin.Identity | OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9003
9032
  /**
9004
9033
  * Synchronously returns a Layout object that represents a Window's layout.
9005
9034
  *
@@ -9019,7 +9048,7 @@ declare class LayoutModule extends Base {
9019
9048
  * const layoutConfig = await layout.getConfig();
9020
9049
  * ```
9021
9050
  */
9022
- wrapSync(identity: OpenFin.LayoutIdentity): OpenFin.Layout;
9051
+ wrapSync(identity: OpenFin.Identity | OpenFin.LayoutIdentity): OpenFin.Layout;
9023
9052
  /**
9024
9053
  * Asynchronously returns a Layout object that represents a Window's layout.
9025
9054
  *
@@ -9187,6 +9216,9 @@ declare type LayoutOptions = {
9187
9216
  };
9188
9217
  };
9189
9218
 
9219
+ /**
9220
+ * Represents the position of an item in a layout relative to another.
9221
+ */
9190
9222
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9191
9223
 
9192
9224
  /**
@@ -12828,7 +12860,7 @@ declare type ReplaceLayoutPayload = {
12828
12860
  /**
12829
12861
  * Identity of the window whose layout will be replaced.
12830
12862
  */
12831
- target: LayoutIdentity;
12863
+ target: Identity_5 | LayoutIdentity;
12832
12864
  };
12833
12865
 
12834
12866
  /**
@@ -15319,20 +15351,6 @@ declare interface TabDragListener extends EventEmitter_2 {
15319
15351
  contentItem: ContentItem;
15320
15352
  }
15321
15353
 
15322
- /**
15323
- * @typedef {string} LayoutPosition
15324
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
15325
- */
15326
- /**
15327
- * @typedef {object} StackCreationOptions
15328
- * @summary Stack creation options.
15329
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
15330
- */
15331
- /**
15332
- * @typedef {object} TabStack~AddViewOptions
15333
- * @summary Options to use when adding a view to a {@link TabStack}
15334
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
15335
- */
15336
15354
  /**
15337
15355
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15338
15356
  */
@@ -16418,7 +16436,7 @@ declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCr
16418
16436
  */
16419
16437
  declare type ViewDetachedEvent = BaseEvent_5 & {
16420
16438
  type: 'view-detached';
16421
- target: OpenFin.Identity;
16439
+ target: OpenFin.Identity | null;
16422
16440
  previousTarget: OpenFin.Identity;
16423
16441
  viewIdentity: OpenFin.Identity;
16424
16442
  };
@@ -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 & {
@@ -927,6 +929,7 @@ declare namespace ApplicationEvents {
927
929
  RespondingEvent,
928
930
  StartedEvent,
929
931
  ApplicationSourcedEvent,
932
+ ApplicationSourcedEventType,
930
933
  Event_3 as Event,
931
934
  ApplicationEvent,
932
935
  EventType_3 as EventType,
@@ -1299,6 +1302,11 @@ declare type ApplicationPermissions = {
1299
1302
  */
1300
1303
  declare type ApplicationSourcedEvent = ClosedEvent | ConnectedEvent_2 | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent_2 | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
1301
1304
 
1305
+ /**
1306
+ * Union of possible type values for an {@link ApplicationSourcedEvent}.
1307
+ */
1308
+ declare type ApplicationSourcedEventType = ApplicationSourcedEvent['type'];
1309
+
1302
1310
  declare type ApplicationState = OpenFin.ApplicationState;
1303
1311
 
1304
1312
  /**
@@ -4458,7 +4466,7 @@ declare type CreateViewPayload = {
4458
4466
  /**
4459
4467
  * @interface
4460
4468
  */
4461
- declare type CreateViewTarget = LayoutIdentity & {
4469
+ declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
4462
4470
  /**
4463
4471
  * If specified, view creation will not attach to a window and caller must
4464
4472
  * insert the view into the layout explicitly
@@ -5291,7 +5299,7 @@ declare type EventType_7 = Event_10['type'];
5291
5299
  /**
5292
5300
  * Union of possible `type` values for a {@link SystemEvent}.
5293
5301
  */
5294
- declare type EventType_8 = SystemEvent['type'];
5302
+ declare type EventType_8 = Event_11['type'];
5295
5303
 
5296
5304
  /* Excluded from this release type: EventWithId */
5297
5305
 
@@ -8627,7 +8635,7 @@ declare type LaunchIntoPlatformPayload = {
8627
8635
  declare class Layout extends Base {
8628
8636
  #private;
8629
8637
  /* Excluded from this release type: init */
8630
- identity: OpenFin.LayoutIdentity;
8638
+ identity: OpenFin.Identity | OpenFin.LayoutIdentity;
8631
8639
  private platform;
8632
8640
  wire: Transport;
8633
8641
  /* Excluded from this release type: __constructor */
@@ -8843,18 +8851,18 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
8843
8851
  */
8844
8852
  declare type LayoutIdentity = Identity_5 & {
8845
8853
  /**
8846
- * The name of the layout an action should be targeted to. When not provided,
8847
- * OpenFin attempts to resolve the instance via visibility checks.
8854
+ * The name of the layout in a given window.
8848
8855
  */
8849
- layoutName?: string;
8856
+ layoutName: string;
8850
8857
  };
8851
8858
 
8852
8859
  /**
8853
- * Generated when a window and all of its layout's views have either finished or failed navigation.
8860
+ * Generated when the window and all of its layout's views have either finished or failed navigation, once per layout.
8854
8861
  * @interface
8855
8862
  */
8856
8863
  declare type LayoutInitializedEvent = BaseEvent_5 & {
8857
8864
  type: 'layout-initialized';
8865
+ layoutIdentity: OpenFin.LayoutIdentity;
8858
8866
  ofViews: (OpenFin.Identity & {
8859
8867
  entityType: 'view';
8860
8868
  })[];
@@ -8928,6 +8936,27 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
8928
8936
  * @returns T
8929
8937
  */
8930
8938
  getLayoutSnapshot(): Promise<T>;
8939
+ /**
8940
+ * @experimental
8941
+ *
8942
+ * A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
8943
+ * this method to control the target layout for Layout API calls.
8944
+ *
8945
+ * Example use case: You have hidden all the layouts and are showing a dialog that will
8946
+ * execute an API call (ex: Layout.replace()) - override this method and save the
8947
+ * "last visible" layout identity and return it.
8948
+ *
8949
+ * By default, OpenFin will use a series of checks to determine which Layout the API
8950
+ * call must route to in this order of precedence:
8951
+ * - try to resolve the layout from the layoutIdentity, throws if missing
8952
+ * - if there is only 1 layout, resolves that one
8953
+ * - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
8954
+ * - returns undefined
8955
+ *
8956
+ * @param identity
8957
+ * @returns LayoutIdentity | undefined
8958
+ */
8959
+ resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
8931
8960
  /**
8932
8961
  * @experimental
8933
8962
  *
@@ -8999,7 +9028,7 @@ declare class LayoutModule extends Base {
8999
9028
  * const layoutConfig = await layout.getConfig();
9000
9029
  * ```
9001
9030
  */
9002
- wrap(identity: OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9031
+ wrap(identity: OpenFin.Identity | OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9003
9032
  /**
9004
9033
  * Synchronously returns a Layout object that represents a Window's layout.
9005
9034
  *
@@ -9019,7 +9048,7 @@ declare class LayoutModule extends Base {
9019
9048
  * const layoutConfig = await layout.getConfig();
9020
9049
  * ```
9021
9050
  */
9022
- wrapSync(identity: OpenFin.LayoutIdentity): OpenFin.Layout;
9051
+ wrapSync(identity: OpenFin.Identity | OpenFin.LayoutIdentity): OpenFin.Layout;
9023
9052
  /**
9024
9053
  * Asynchronously returns a Layout object that represents a Window's layout.
9025
9054
  *
@@ -9187,6 +9216,9 @@ declare type LayoutOptions = {
9187
9216
  };
9188
9217
  };
9189
9218
 
9219
+ /**
9220
+ * Represents the position of an item in a layout relative to another.
9221
+ */
9190
9222
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9191
9223
 
9192
9224
  /**
@@ -12828,7 +12860,7 @@ declare type ReplaceLayoutPayload = {
12828
12860
  /**
12829
12861
  * Identity of the window whose layout will be replaced.
12830
12862
  */
12831
- target: LayoutIdentity;
12863
+ target: Identity_5 | LayoutIdentity;
12832
12864
  };
12833
12865
 
12834
12866
  /**
@@ -15319,20 +15351,6 @@ declare interface TabDragListener extends EventEmitter_2 {
15319
15351
  contentItem: ContentItem;
15320
15352
  }
15321
15353
 
15322
- /**
15323
- * @typedef {string} LayoutPosition
15324
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
15325
- */
15326
- /**
15327
- * @typedef {object} StackCreationOptions
15328
- * @summary Stack creation options.
15329
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
15330
- */
15331
- /**
15332
- * @typedef {object} TabStack~AddViewOptions
15333
- * @summary Options to use when adding a view to a {@link TabStack}
15334
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
15335
- */
15336
15354
  /**
15337
15355
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15338
15356
  */
@@ -16418,7 +16436,7 @@ declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCr
16418
16436
  */
16419
16437
  declare type ViewDetachedEvent = BaseEvent_5 & {
16420
16438
  type: 'view-detached';
16421
- target: OpenFin.Identity;
16439
+ target: OpenFin.Identity | null;
16422
16440
  previousTarget: OpenFin.Identity;
16423
16441
  viewIdentity: OpenFin.Identity;
16424
16442
  };
@@ -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 & {
@@ -927,6 +929,7 @@ declare namespace ApplicationEvents {
927
929
  RespondingEvent,
928
930
  StartedEvent,
929
931
  ApplicationSourcedEvent,
932
+ ApplicationSourcedEventType,
930
933
  Event_3 as Event,
931
934
  ApplicationEvent,
932
935
  EventType_3 as EventType,
@@ -1299,6 +1302,11 @@ declare type ApplicationPermissions = {
1299
1302
  */
1300
1303
  declare type ApplicationSourcedEvent = ClosedEvent | ConnectedEvent_2 | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent_2 | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
1301
1304
 
1305
+ /**
1306
+ * Union of possible type values for an {@link ApplicationSourcedEvent}.
1307
+ */
1308
+ declare type ApplicationSourcedEventType = ApplicationSourcedEvent['type'];
1309
+
1302
1310
  declare type ApplicationState = OpenFin.ApplicationState;
1303
1311
 
1304
1312
  /**
@@ -4458,7 +4466,7 @@ declare type CreateViewPayload = {
4458
4466
  /**
4459
4467
  * @interface
4460
4468
  */
4461
- declare type CreateViewTarget = LayoutIdentity & {
4469
+ declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
4462
4470
  /**
4463
4471
  * If specified, view creation will not attach to a window and caller must
4464
4472
  * insert the view into the layout explicitly
@@ -5291,7 +5299,7 @@ declare type EventType_7 = Event_10['type'];
5291
5299
  /**
5292
5300
  * Union of possible `type` values for a {@link SystemEvent}.
5293
5301
  */
5294
- declare type EventType_8 = SystemEvent['type'];
5302
+ declare type EventType_8 = Event_11['type'];
5295
5303
 
5296
5304
  /* Excluded from this release type: EventWithId */
5297
5305
 
@@ -8627,7 +8635,7 @@ declare type LaunchIntoPlatformPayload = {
8627
8635
  declare class Layout extends Base {
8628
8636
  #private;
8629
8637
  /* Excluded from this release type: init */
8630
- identity: OpenFin.LayoutIdentity;
8638
+ identity: OpenFin.Identity | OpenFin.LayoutIdentity;
8631
8639
  private platform;
8632
8640
  wire: Transport;
8633
8641
  /* Excluded from this release type: __constructor */
@@ -8843,18 +8851,18 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
8843
8851
  */
8844
8852
  declare type LayoutIdentity = Identity_5 & {
8845
8853
  /**
8846
- * The name of the layout an action should be targeted to. When not provided,
8847
- * OpenFin attempts to resolve the instance via visibility checks.
8854
+ * The name of the layout in a given window.
8848
8855
  */
8849
- layoutName?: string;
8856
+ layoutName: string;
8850
8857
  };
8851
8858
 
8852
8859
  /**
8853
- * Generated when a window and all of its layout's views have either finished or failed navigation.
8860
+ * Generated when the window and all of its layout's views have either finished or failed navigation, once per layout.
8854
8861
  * @interface
8855
8862
  */
8856
8863
  declare type LayoutInitializedEvent = BaseEvent_5 & {
8857
8864
  type: 'layout-initialized';
8865
+ layoutIdentity: OpenFin.LayoutIdentity;
8858
8866
  ofViews: (OpenFin.Identity & {
8859
8867
  entityType: 'view';
8860
8868
  })[];
@@ -8928,6 +8936,27 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
8928
8936
  * @returns T
8929
8937
  */
8930
8938
  getLayoutSnapshot(): Promise<T>;
8939
+ /**
8940
+ * @experimental
8941
+ *
8942
+ * A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
8943
+ * this method to control the target layout for Layout API calls.
8944
+ *
8945
+ * Example use case: You have hidden all the layouts and are showing a dialog that will
8946
+ * execute an API call (ex: Layout.replace()) - override this method and save the
8947
+ * "last visible" layout identity and return it.
8948
+ *
8949
+ * By default, OpenFin will use a series of checks to determine which Layout the API
8950
+ * call must route to in this order of precedence:
8951
+ * - try to resolve the layout from the layoutIdentity, throws if missing
8952
+ * - if there is only 1 layout, resolves that one
8953
+ * - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
8954
+ * - returns undefined
8955
+ *
8956
+ * @param identity
8957
+ * @returns LayoutIdentity | undefined
8958
+ */
8959
+ resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
8931
8960
  /**
8932
8961
  * @experimental
8933
8962
  *
@@ -8999,7 +9028,7 @@ declare class LayoutModule extends Base {
8999
9028
  * const layoutConfig = await layout.getConfig();
9000
9029
  * ```
9001
9030
  */
9002
- wrap(identity: OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9031
+ wrap(identity: OpenFin.Identity | OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9003
9032
  /**
9004
9033
  * Synchronously returns a Layout object that represents a Window's layout.
9005
9034
  *
@@ -9019,7 +9048,7 @@ declare class LayoutModule extends Base {
9019
9048
  * const layoutConfig = await layout.getConfig();
9020
9049
  * ```
9021
9050
  */
9022
- wrapSync(identity: OpenFin.LayoutIdentity): OpenFin.Layout;
9051
+ wrapSync(identity: OpenFin.Identity | OpenFin.LayoutIdentity): OpenFin.Layout;
9023
9052
  /**
9024
9053
  * Asynchronously returns a Layout object that represents a Window's layout.
9025
9054
  *
@@ -9187,6 +9216,9 @@ declare type LayoutOptions = {
9187
9216
  };
9188
9217
  };
9189
9218
 
9219
+ /**
9220
+ * Represents the position of an item in a layout relative to another.
9221
+ */
9190
9222
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9191
9223
 
9192
9224
  /**
@@ -12828,7 +12860,7 @@ declare type ReplaceLayoutPayload = {
12828
12860
  /**
12829
12861
  * Identity of the window whose layout will be replaced.
12830
12862
  */
12831
- target: LayoutIdentity;
12863
+ target: Identity_5 | LayoutIdentity;
12832
12864
  };
12833
12865
 
12834
12866
  /**
@@ -15319,20 +15351,6 @@ declare interface TabDragListener extends EventEmitter_2 {
15319
15351
  contentItem: ContentItem;
15320
15352
  }
15321
15353
 
15322
- /**
15323
- * @typedef {string} LayoutPosition
15324
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
15325
- */
15326
- /**
15327
- * @typedef {object} StackCreationOptions
15328
- * @summary Stack creation options.
15329
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
15330
- */
15331
- /**
15332
- * @typedef {object} TabStack~AddViewOptions
15333
- * @summary Options to use when adding a view to a {@link TabStack}
15334
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
15335
- */
15336
15354
  /**
15337
15355
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15338
15356
  */
@@ -16418,7 +16436,7 @@ declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCr
16418
16436
  */
16419
16437
  declare type ViewDetachedEvent = BaseEvent_5 & {
16420
16438
  type: 'view-detached';
16421
- target: OpenFin.Identity;
16439
+ target: OpenFin.Identity | null;
16422
16440
  previousTarget: OpenFin.Identity;
16423
16441
  viewIdentity: OpenFin.Identity;
16424
16442
  };
@@ -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 & {
@@ -933,6 +935,7 @@ declare namespace ApplicationEvents {
933
935
  RespondingEvent,
934
936
  StartedEvent,
935
937
  ApplicationSourcedEvent,
938
+ ApplicationSourcedEventType,
936
939
  Event_3 as Event,
937
940
  ApplicationEvent,
938
941
  EventType_3 as EventType,
@@ -1305,6 +1308,11 @@ declare type ApplicationPermissions = {
1305
1308
  */
1306
1309
  declare type ApplicationSourcedEvent = ClosedEvent | ConnectedEvent_2 | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent_2 | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
1307
1310
 
1311
+ /**
1312
+ * Union of possible type values for an {@link ApplicationSourcedEvent}.
1313
+ */
1314
+ declare type ApplicationSourcedEventType = ApplicationSourcedEvent['type'];
1315
+
1308
1316
  declare type ApplicationState = OpenFin.ApplicationState;
1309
1317
 
1310
1318
  /**
@@ -3411,57 +3419,6 @@ declare type ClosingEvent = BaseEvent_5 & {
3411
3419
  */
3412
3420
  declare class ColumnOrRow extends LayoutNode {
3413
3421
  #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
3422
  /**
3466
3423
  * @internal
3467
3424
  */
@@ -4552,7 +4509,7 @@ declare type CreateViewPayload = {
4552
4509
  /**
4553
4510
  * @interface
4554
4511
  */
4555
- declare type CreateViewTarget = LayoutIdentity & {
4512
+ declare type CreateViewTarget = (Identity_5 | LayoutIdentity) & {
4556
4513
  /**
4557
4514
  * If specified, view creation will not attach to a window and caller must
4558
4515
  * insert the view into the layout explicitly
@@ -5390,7 +5347,7 @@ declare type EventType_7 = Event_10['type'];
5390
5347
  /**
5391
5348
  * Union of possible `type` values for a {@link SystemEvent}.
5392
5349
  */
5393
- declare type EventType_8 = SystemEvent['type'];
5350
+ declare type EventType_8 = Event_11['type'];
5394
5351
 
5395
5352
  /**
5396
5353
  * @internal
@@ -8799,7 +8756,7 @@ declare class Layout extends Base {
8799
8756
  * @internal
8800
8757
  */
8801
8758
  init: (options?: OpenFin.InitLayoutOptions) => Promise<Layout>;
8802
- identity: OpenFin.LayoutIdentity;
8759
+ identity: OpenFin.Identity | OpenFin.LayoutIdentity;
8803
8760
  private platform;
8804
8761
  wire: Transport;
8805
8762
  /**
@@ -9018,18 +8975,18 @@ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'r
9018
8975
  */
9019
8976
  declare type LayoutIdentity = Identity_5 & {
9020
8977
  /**
9021
- * The name of the layout an action should be targeted to. When not provided,
9022
- * OpenFin attempts to resolve the instance via visibility checks.
8978
+ * The name of the layout in a given window.
9023
8979
  */
9024
- layoutName?: string;
8980
+ layoutName: string;
9025
8981
  };
9026
8982
 
9027
8983
  /**
9028
- * Generated when a window and all of its layout's views have either finished or failed navigation.
8984
+ * Generated when the window and all of its layout's views have either finished or failed navigation, once per layout.
9029
8985
  * @interface
9030
8986
  */
9031
8987
  declare type LayoutInitializedEvent = BaseEvent_5 & {
9032
8988
  type: 'layout-initialized';
8989
+ layoutIdentity: OpenFin.LayoutIdentity;
9033
8990
  ofViews: (OpenFin.Identity & {
9034
8991
  entityType: 'view';
9035
8992
  })[];
@@ -9103,6 +9060,27 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
9103
9060
  * @returns T
9104
9061
  */
9105
9062
  getLayoutSnapshot(): Promise<T>;
9063
+ /**
9064
+ * @experimental
9065
+ *
9066
+ * A hook provided to the consumer for controlling how OpenFin routes Layout API calls. Override
9067
+ * this method to control the target layout for Layout API calls.
9068
+ *
9069
+ * Example use case: You have hidden all the layouts and are showing a dialog that will
9070
+ * execute an API call (ex: Layout.replace()) - override this method and save the
9071
+ * "last visible" layout identity and return it.
9072
+ *
9073
+ * By default, OpenFin will use a series of checks to determine which Layout the API
9074
+ * call must route to in this order of precedence:
9075
+ * - try to resolve the layout from the layoutIdentity, throws if missing
9076
+ * - if there is only 1 layout, resolves that one
9077
+ * - enumerates all layouts checks visibility via element offsetTop/Left + window.innerHeight/Width
9078
+ * - returns undefined
9079
+ *
9080
+ * @param identity
9081
+ * @returns LayoutIdentity | undefined
9082
+ */
9083
+ resolveLayoutIdentity(identity?: Identity_5 | LayoutIdentity): LayoutIdentity | undefined;
9106
9084
  /**
9107
9085
  * @experimental
9108
9086
  *
@@ -9174,7 +9152,7 @@ declare class LayoutModule extends Base {
9174
9152
  * const layoutConfig = await layout.getConfig();
9175
9153
  * ```
9176
9154
  */
9177
- wrap(identity: OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9155
+ wrap(identity: OpenFin.Identity | OpenFin.LayoutIdentity): Promise<OpenFin.Layout>;
9178
9156
  /**
9179
9157
  * Synchronously returns a Layout object that represents a Window's layout.
9180
9158
  *
@@ -9194,7 +9172,7 @@ declare class LayoutModule extends Base {
9194
9172
  * const layoutConfig = await layout.getConfig();
9195
9173
  * ```
9196
9174
  */
9197
- wrapSync(identity: OpenFin.LayoutIdentity): OpenFin.Layout;
9175
+ wrapSync(identity: OpenFin.Identity | OpenFin.LayoutIdentity): OpenFin.Layout;
9198
9176
  /**
9199
9177
  * Asynchronously returns a Layout object that represents a Window's layout.
9200
9178
  *
@@ -9366,6 +9344,15 @@ declare abstract class LayoutNode {
9366
9344
  /**
9367
9345
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
9368
9346
  *
9347
+ * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
9348
+ * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
9349
+ * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
9350
+ * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
9351
+ *
9352
+ * @param views The views that will populate the new TabStack.
9353
+ * @param options Additional options that control new TabStack creation.
9354
+ * @returns The newly-created TabStack.
9355
+ *
9369
9356
  * @example
9370
9357
  * ```js
9371
9358
  * if (!fin.me.isView) {
@@ -9400,12 +9387,15 @@ declare abstract class LayoutNode {
9400
9387
  * console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
9401
9388
  *
9402
9389
  * ```
9390
+ * @experimental
9403
9391
  */
9404
9392
  createAdjacentStack: (views: OpenFin.PlatformViewCreationOptions[], options: {
9405
9393
  position?: OpenFin.LayoutPosition;
9406
9394
  }) => Promise<TabStack>;
9407
9395
  /**
9408
- * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
9396
+ * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
9397
+ *
9398
+ * @param edge Edge whose adjacent TabStacks will be returned.
9409
9399
  *
9410
9400
  * @example
9411
9401
  * ```js
@@ -9425,6 +9415,7 @@ declare abstract class LayoutNode {
9425
9415
  * console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
9426
9416
  *
9427
9417
  * ```
9418
+ * @experimental
9428
9419
  */
9429
9420
  getAdjacentStacks: (edge: OpenFin.LayoutPosition) => Promise<TabStack[]>;
9430
9421
  }
@@ -9519,6 +9510,9 @@ declare type LayoutOptions = {
9519
9510
  };
9520
9511
  };
9521
9512
 
9513
+ /**
9514
+ * Represents the position of an item in a layout relative to another.
9515
+ */
9522
9516
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9523
9517
 
9524
9518
  /**
@@ -10331,7 +10325,7 @@ declare type NotCloseRequested<EventType extends string> = Exclude<EventType, 'c
10331
10325
  *
10332
10326
  * Ensures that an event type key doesn't include any `-requested` events. Distributes over unions.
10333
10327
  */
10334
- declare type NotRequested<EventType extends String> = EventType extends `${infer U}-requested` ? never : EventType;
10328
+ declare type NotRequested<EventType extends String> = EventType extends `${string}-requested` ? never : EventType;
10335
10329
 
10336
10330
  /**
10337
10331
  * Generated when an application is not responding.
@@ -13271,7 +13265,7 @@ declare type ReplaceLayoutPayload = {
13271
13265
  /**
13272
13266
  * Identity of the window whose layout will be replaced.
13273
13267
  */
13274
- target: LayoutIdentity;
13268
+ target: Identity_5 | LayoutIdentity;
13275
13269
  };
13276
13270
 
13277
13271
  /**
@@ -15774,75 +15768,11 @@ declare interface TabDragListener extends EventEmitter_2 {
15774
15768
  contentItem: ContentItem;
15775
15769
  }
15776
15770
 
15777
- /**
15778
- * @typedef {string} LayoutPosition
15779
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
15780
- */
15781
- /**
15782
- * @typedef {object} StackCreationOptions
15783
- * @summary Stack creation options.
15784
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
15785
- */
15786
- /**
15787
- * @typedef {object} TabStack~AddViewOptions
15788
- * @summary Options to use when adding a view to a {@link TabStack}
15789
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
15790
- */
15791
15771
  /**
15792
15772
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
15793
15773
  */
15794
15774
  declare class TabStack extends LayoutNode {
15795
15775
  #private;
15796
- /**
15797
- * Determines if this {@link TabStack} is the top level content item in the current layout.
15798
- * @function isRoot
15799
- * @memberof TabStack
15800
- * @instance
15801
- * @tutorial TabStack.isRoot
15802
- * @returns Resolves true if this TabStack is the top level content item, or false if it is not.
15803
- */
15804
- /**
15805
- * Determines if this {@link TabStack} exists.
15806
- * @function exists
15807
- * @instance
15808
- * @memberof TabStack
15809
- * @tutorial TabStack.exists
15810
- * @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
15811
- */
15812
- /**
15813
- * Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
15814
- * @function getParent
15815
- * @instance
15816
- * @memberof TabStack
15817
- * @tutorial TabStack.getParent
15818
- * @returns is the root content item or does not exist.
15819
- */
15820
- /**
15821
- * Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
15822
- * @function getAdjacentStacks
15823
- * @instance
15824
- * @memberof TabStack
15825
- * @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
15826
- *
15827
- * @tutorial TabStack.getAdjacentStacks
15828
- */
15829
- /**
15830
- * Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the current {@link TabStack}
15831
- *
15832
- * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
15833
- * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
15834
- * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
15835
- * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
15836
- *
15837
- * @function createAdjacentStack
15838
- * @instance
15839
- * @memberof TabStack
15840
- * @param views - List of identities or view creation options of the views to include in the stack
15841
- * @param options - Creation options.
15842
- * @returns The created TabStack.
15843
- * @tutorial TabStack.createAdjacentStack
15844
- * @experimental
15845
- */
15846
15776
  /** @internal */
15847
15777
  constructor(client: LayoutEntitiesClient, entityId: string);
15848
15778
  /**
@@ -16961,7 +16891,7 @@ declare type ViewCreationOrReference = OpenFin.Identity | OpenFin.PlatformViewCr
16961
16891
  */
16962
16892
  declare type ViewDetachedEvent = BaseEvent_5 & {
16963
16893
  type: 'view-detached';
16964
- target: OpenFin.Identity;
16894
+ target: OpenFin.Identity | null;
16965
16895
  previousTarget: OpenFin.Identity;
16966
16896
  viewIdentity: OpenFin.Identity;
16967
16897
  };
@@ -1012,6 +1012,15 @@ class LayoutNode {
1012
1012
  /**
1013
1013
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
1014
1014
  *
1015
+ * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
1016
+ * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
1017
+ * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
1018
+ * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
1019
+ *
1020
+ * @param views The views that will populate the new TabStack.
1021
+ * @param options Additional options that control new TabStack creation.
1022
+ * @returns The newly-created TabStack.
1023
+ *
1015
1024
  * @example
1016
1025
  * ```js
1017
1026
  * if (!fin.me.isView) {
@@ -1046,13 +1055,16 @@ class LayoutNode {
1046
1055
  * console.log(`A new TabStack created to the right has ${newStack.length} views in it`);
1047
1056
  *
1048
1057
  * ```
1058
+ * @experimental
1049
1059
  */
1050
1060
  this.createAdjacentStack = async (views, options) => {
1051
1061
  const entityId = await __classPrivateFieldGet$e(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
1052
1062
  return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$e(this, _LayoutNode_client, "f"));
1053
1063
  };
1054
1064
  /**
1055
- * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow
1065
+ * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
1066
+ *
1067
+ * @param edge Edge whose adjacent TabStacks will be returned.
1056
1068
  *
1057
1069
  * @example
1058
1070
  * ```js
@@ -1072,6 +1084,7 @@ class LayoutNode {
1072
1084
  * console.log(`The entity has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);
1073
1085
  *
1074
1086
  * ```
1087
+ * @experimental
1075
1088
  */
1076
1089
  this.getAdjacentStacks = async (edge) => {
1077
1090
  const adjacentStacks = await __classPrivateFieldGet$e(this, _LayoutNode_client, "f").getAdjacentStacks({
@@ -1115,74 +1128,10 @@ LayoutNode.getEntity = (definition, client) => {
1115
1128
  throw new Error(`Unrecognised Layout Entity encountered ('${JSON.stringify(definition)})`);
1116
1129
  }
1117
1130
  };
1118
- /**
1119
- * @typedef {string} LayoutPosition
1120
- * @summary Represents the position of an item in a layout relative to another. Possible values are 'top', 'bottom', 'left' and 'right'.
1121
- */
1122
- /**
1123
- * @typedef {object} StackCreationOptions
1124
- * @summary Stack creation options.
1125
- * @property {LayoutPosition} [position] - The position to create the new {@link TabStack} in, relative to the given adjacent {@link TabStack}. Defaults to 'right'.
1126
- */
1127
- /**
1128
- * @typedef {object} TabStack~AddViewOptions
1129
- * @summary Options to use when adding a view to a {@link TabStack}
1130
- * @property {number} [index] - Insertion index when adding the view. Defaults to 0.
1131
- */
1132
1131
  /**
1133
1132
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
1134
1133
  */
1135
1134
  class TabStack extends LayoutNode {
1136
- /**
1137
- * Determines if this {@link TabStack} is the top level content item in the current layout.
1138
- * @function isRoot
1139
- * @memberof TabStack
1140
- * @instance
1141
- * @tutorial TabStack.isRoot
1142
- * @returns Resolves true if this TabStack is the top level content item, or false if it is not.
1143
- */
1144
- /**
1145
- * Determines if this {@link TabStack} exists.
1146
- * @function exists
1147
- * @instance
1148
- * @memberof TabStack
1149
- * @tutorial TabStack.exists
1150
- * @returns Resolves true if this is the TabStack exists, or false if it has been destroyed.
1151
- */
1152
- /**
1153
- * Retrieves the parent {@link ColumnOrRow} of this {@link TabStack}, if one exists.
1154
- * @function getParent
1155
- * @instance
1156
- * @memberof TabStack
1157
- * @tutorial TabStack.getParent
1158
- * @returns is the root content item or does not exist.
1159
- */
1160
- /**
1161
- * Returns all the adjacent stacks that share an edge with the given {@link TabStack}.
1162
- * @function getAdjacentStacks
1163
- * @instance
1164
- * @memberof TabStack
1165
- * @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
1166
- *
1167
- * @tutorial TabStack.getAdjacentStacks
1168
- */
1169
- /**
1170
- * Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the current {@link TabStack}
1171
- *
1172
- * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
1173
- * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
1174
- * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
1175
- * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
1176
- *
1177
- * @function createAdjacentStack
1178
- * @instance
1179
- * @memberof TabStack
1180
- * @param views - List of identities or view creation options of the views to include in the stack
1181
- * @param options - Creation options.
1182
- * @returns The created TabStack.
1183
- * @tutorial TabStack.createAdjacentStack
1184
- * @experimental
1185
- */
1186
1135
  /** @internal */
1187
1136
  constructor(client, entityId) {
1188
1137
  super(client, entityId);
@@ -1315,57 +1264,6 @@ _TabStack_client = new WeakMap();
1315
1264
  * A ColumnOrRow is used to manage the state of Column and Rows within an OpenFin Layout.
1316
1265
  */
1317
1266
  class ColumnOrRow extends LayoutNode {
1318
- /**
1319
- * Determines if this {@link ColumnOrRow} is the top level content item in the current layout.
1320
- * @function isRoot
1321
- * @memberof ColumnOrRow
1322
- * @instance
1323
- * @tutorial ColumnOrRow.isRoot
1324
- * @returns Resolves true if this TabStack is the top level content item, or false if it is not.
1325
- */
1326
- /**
1327
- * Determines if this {@link ColumnOrRow} exists.
1328
- * @function exists
1329
- * @instance
1330
- * @memberof ColumnOrRow
1331
- * @tutorial ColumnOrRow.exists
1332
- * @returns Resolves true if the TabStack exists, or false if it has been destroyed.
1333
- */
1334
- /**
1335
- * Retrieves the parent {@link ColumnOrRow} of this {@link ColumnOrRow}, if one exists.
1336
- * @function getParent
1337
- * @instance
1338
- * @memberof ColumnOrRow
1339
- * @tutorial ColumnOrRow.getParent
1340
- * @returns Promise resolving with the {@link ColumnOrRow} that contains this item, or undefined if
1341
- * this {@link ColumnOrRow}does not exist or is the root content item.
1342
- */
1343
- /**
1344
- * Returns all the adjacent stacks that share an edge with the given {@link ColumnOrRow}.
1345
- * @function getAdjacentStacks
1346
- * @instance
1347
- * @memberof ColumnOrRow
1348
- * @param {LayoutPosition} edge - Edge to check for any adjacent stacks.
1349
- *
1350
- * @tutorial ColumnOrRow.getAdjacentStacks
1351
- */
1352
- /**
1353
- * Given a list of view creation options or references and a layout position, creates a {@link TabStack} adjacent to the given {@link ColumnOrRow}
1354
- *
1355
- * Known Issue: If the number of views to add overflows the tab-container, the added views will be set as active
1356
- * during each render, and then placed at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
1357
- * This means the views you pass to createAdjacentStack() may not render in the order given by the array.
1358
- * Until fixed, this problem can be avoided only if your window is wide enough to fit creating all the views in the tabstack.
1359
- *
1360
- * @function createAdjacentStack
1361
- * @instance
1362
- * @memberof ColumnOrRow
1363
- * @param views - List of identities or view creation options of the views to include in the stack
1364
- * @param options - Creation options.
1365
- * @returns The created TabStack
1366
- * @tutorial ColumnOrRow.createAdjacentStack
1367
- * @experimental
1368
- */
1369
1267
  /**
1370
1268
  * @internal
1371
1269
  */
@@ -12841,7 +12739,7 @@ class Layout extends base_1$6.Base {
12841
12739
  // don't expose
12842
12740
  });
12843
12741
  const client = await __classPrivateFieldGet$5(this, _Layout_layoutClient, "f").getValue();
12844
- const root = await client.getRoot(this.identity);
12742
+ const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
12845
12743
  return layout_entities_1.LayoutNode.getEntity(root, client);
12846
12744
  }
12847
12745
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "35.78.12",
3
+ "version": "35.78.15",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",