@openfin/workspace-platform 18.0.5 → 18.0.6

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.
@@ -1,5 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
3
+ import { WindowIdentity } from './window';
3
4
  export type LayoutDOMEventType =
4
5
  /**
5
6
  * Fired when a tab is created in a container. (Emmitted by ??)
@@ -12,11 +13,11 @@ export type LayoutDOMEventType =
12
13
  /**
13
14
  * Fired when the layout container is ready to be used. (Emitted by us)
14
15
  */
15
- | 'container-resized';
16
+ | 'container-resized' | 'tab-closed';
16
17
  export type LayoutDOMEvent = {
17
18
  type: Extract<LayoutDOMEventType, 'container-resized'>;
18
19
  } | {
19
- type: Extract<LayoutDOMEventType, 'tab-created'>;
20
+ type: Extract<LayoutDOMEventType, 'tab-created' | 'tab-closed'>;
20
21
  detail: {
21
22
  containerSelector: string;
22
23
  tabSelector: string;
@@ -24,8 +25,10 @@ export type LayoutDOMEvent = {
24
25
  topic: string;
25
26
  type: string;
26
27
  uuid: string;
28
+ originalElement: HTMLElement;
27
29
  };
28
30
  isInitialized: boolean;
31
+ target: HTMLElement;
29
32
  } | {
30
33
  type: Extract<LayoutDOMEventType, 'tabs-list-resized'>;
31
34
  };
@@ -62,6 +65,7 @@ export declare const cloneViewComponentWithoutName: (componentState: any) => any
62
65
  export declare const cloneLayoutAndRemoveNames: (layout: PageLayout) => any;
63
66
  export declare const mapContentComponentState: (content: OpenFin.LayoutContent) => OpenFin.LayoutComponent['componentState'][];
64
67
  export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
68
+ export declare const layoutNameInitializedMap: Map<string, boolean>;
65
69
  export declare const isLayoutTabActive: (tabSelector: string) => boolean;
66
70
  export declare const containerId = "layout_container";
67
71
  export declare const viewTabslistSelectors = ".lm_tabs";
@@ -100,3 +104,4 @@ export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) =>
100
104
  */
101
105
  export declare const countViews: (node: OpenFin.LayoutContent) => number;
102
106
  export declare const checkSingleViewPage: () => Promise<void>;
107
+ export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;