@openfin/workspace-platform 22.3.29 → 22.3.31

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,4 +1,4 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  type ComponentNames = 'home' | 'dock' | 'store';
3
- export declare const setupComponentPerformance: (component: ComponentNames, componentWindowIdentity: OpenFin.Identity) => void;
3
+ export declare const setupComponentPerformance: (component: ComponentNames, componentWindowIdentity: OpenFin.Identity) => Promise<void>;
4
4
  export {};
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
7
7
  * @param app the app directory entry.
8
8
  * @param opts launch options.
9
9
  */
10
- export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Application | OpenFin.View | OpenFin.Platform>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -21,5 +21,5 @@ export type ApplicationInfoExtended = OpenFin.ApplicationInfo & {
21
21
  userAppConfigArgs: any;
22
22
  };
23
23
  };
24
- export declare const getCurrentOFApplication: () => OpenFin.Application;
25
- export declare const getWorkspaceOFApplication: () => OpenFin.Application;
24
+ export declare const getCurrentOFApplication: () => Promise<OpenFin.Application>;
25
+ export declare const getWorkspaceOFApplication: () => Promise<OpenFin.Application>;
@@ -4,14 +4,21 @@ export declare enum Env {
4
4
  Staging = "staging",
5
5
  Prod = "prod"
6
6
  }
7
- export declare const isFin: boolean;
7
+ export declare const finEnv: {
8
+ isFin: boolean;
9
+ uuid: string;
10
+ name: string;
11
+ entityType: "window" | "view" | "";
12
+ };
13
+ export declare let isFin: boolean;
8
14
  export declare const isJest: boolean;
9
15
  export declare const isWindowDefined: boolean;
10
16
  export declare const isDocumentDefined: boolean;
11
17
  export declare const isWindowDefinedWithIndexDB: boolean;
12
- export declare const finUUID: string;
13
- export declare const finName: string;
14
- export declare const finEntityType: "" | "window" | "view";
18
+ export declare let finUUID: string;
19
+ export declare let finName: string;
20
+ export declare let finEntityType: "" | "window" | "view";
21
+ export declare const finReady: Promise<void>;
15
22
  export declare const isEnvLocal: boolean;
16
23
  export declare const isEnvDev: boolean;
17
24
  export declare const isEnvStaging: boolean;
@@ -1,4 +1,4 @@
1
1
  export declare const createNamespacedLocalStorage: <TKey extends string>(namespace: string) => Pick<Storage, "setItem" | "getItem" | "removeItem">;
2
- export declare const setItem: (key: string, value: string) => void;
3
- export declare const getItem: (key: string) => string | null;
4
- export declare const removeItem: (key: string) => void;
2
+ export declare const setItem: Storage['setItem'];
3
+ export declare const getItem: Storage['getItem'];
4
+ export declare const removeItem: Storage['removeItem'];
@@ -44,18 +44,18 @@
44
44
  "packageName": "common/package.json",
45
45
  "issuer": "common/src/api/pages/idb.ts"
46
46
  },
47
- {
48
- "type": "explicit",
49
- "version": "^4.0.11",
50
- "packageName": "client-api-platform/package.json",
51
- "issuer": "client-api-platform/src/api/dock/idb.ts"
52
- },
53
47
  {
54
48
  "type": "root-implicit",
55
49
  "version": "^4.0.11",
56
50
  "packageName": "dock3/package.json",
57
51
  "issuer": "dock3/src/api/idb.ts"
58
52
  },
53
+ {
54
+ "type": "explicit",
55
+ "version": "^4.0.11",
56
+ "packageName": "client-api-platform/package.json",
57
+ "issuer": "client-api-platform/src/api/dock/idb.ts"
58
+ },
59
59
  {
60
60
  "type": "root-implicit",
61
61
  "version": "^4.0.11",