@openfin/workspace-platform 18.1.9 → 18.1.11

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,6 +1700,8 @@ export interface ApplyWorkspaceOptions {
1700
1700
  * Options to apply the workspace snapshot with.
1701
1701
  */
1702
1702
  applySnapshotOptions?: ApplySnapshotOptions;
1703
+ /** Should the dialog modal be centered on the monitor instead of on top of the platform window */
1704
+ shouldCenterModalOnMonitor?: boolean;
1703
1705
  }
1704
1706
  /**
1705
1707
  * Options used within the {@link WorkspacePlatformModule.applyWorkspace applyWorkspace} method.
@@ -1,6 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { AttachedPageInternal } from '../../../../common/src/api/pages/shapes';
3
- import type { AttachedPage } from '../../../../client-api-platform/src/shapes';
4
3
  export interface PagesLayoutSnapshot {
5
4
  layouts: {
6
5
  [layoutContainerKey: string]: OpenFin.LayoutOptions;
@@ -11,4 +10,4 @@ export declare const convertPagesToLayoutSnapshot: (pages: AttachedPageInternal[
11
10
  layouts: Record<string, OpenFin.LayoutOptions>;
12
11
  pages: AttachedPageInternal[];
13
12
  };
14
- export declare const convertLayoutSnapshotToPages: ({ pages, layouts }: PagesLayoutSnapshot) => AttachedPage[];
13
+ export declare const convertLayoutSnapshotToPages: ({ pages, layouts }: PagesLayoutSnapshot) => AttachedPageInternal[];
@@ -131,6 +131,7 @@ export interface AttachPagesToWindowPayload {
131
131
  identity: OpenFin.Identity;
132
132
  /** The pages to attach. */
133
133
  pages: PageWithUpdatableRuntimeAttribs[];
134
+ insertionIndex?: number;
134
135
  }
135
136
  export interface ExtendedAttachPagesToWindowPayload extends AttachPagesToWindowPayload {
136
137
  /** The pages to attach. */
@@ -1,7 +1,14 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { ResponseModalConfig } from '../../../common/src/utils/menu-config';
3
3
  export declare const restoreChangesMenu: (windowIdentity: OpenFin.Identity) => Promise<ResponseModalConfig>;
4
- export declare const showSwitchWorkspaceModal: (targetWindowIdentity: OpenFin.Identity | undefined, workspaceTitle: string) => Promise<boolean>;
4
+ /**
5
+ *
6
+ * @param targetWindowIdentity Parent or Current OpenFin Window Identity
7
+ * @param workspaceTitle The platform label that was selected to be switched to
8
+ * @param shouldCenterOnMonitor Boolean - determines if modal window is centered on the monitor.
9
+ * @returns Boolean - Affirmative or Negative response from user
10
+ */
11
+ export declare const showSwitchWorkspaceModal: (targetWindowIdentity: OpenFin.Identity | undefined, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise<boolean>;
5
12
  export declare const showDeleteWorkspaceModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string) => Promise<boolean>;
6
13
  /**
7
14
  *