@openfin/workspace-platform 21.0.13 → 21.0.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.
@@ -1,7 +1,6 @@
1
1
  import * as DockAPI from './dock';
2
2
  import * as HomeAPI from './home';
3
3
  import * as IntegrationsAPI from './integrations';
4
- import * as LegacyAPI from './legacy';
5
4
  import * as StorefrontAPI from './store';
6
5
  export * from './shapes/common';
7
6
  export * from './shapes/templates';
@@ -20,10 +19,6 @@ export { HomeAPI as Home };
20
19
  * Namespace for Dock integrations.
21
20
  */
22
21
  export { DockAPI as Dock };
23
- /**
24
- * Namespace for Legacy integrations.
25
- */
26
- export { LegacyAPI as Legacy };
27
22
  /**
28
23
  * Namespace for Microflows integrations.
29
24
  */
@@ -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.Application | OpenFin.Identity | OpenFin.Platform | OpenFin.View>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Application | OpenFin.Platform | OpenFin.View>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -1,5 +1,4 @@
1
1
  import { Workspace } from '../../../../client-api-platform/src/shapes';
2
- export declare const store: import("idb-keyval").UseStore;
3
2
  export declare function getWorkspace(id: string): Promise<Workspace | undefined>;
4
3
  export declare function getWorkspaceList(filter?: string): Promise<Workspace[]>;
5
4
  export declare function createWorkspace({ workspace }: {
@@ -1,7 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import type { Page } from '../../../../common/src/api/pages/shapes';
3
3
  import { SearchSitesRequest, Site } from '../../../../client-api-platform/src/shapes';
4
- export declare const store: import("idb-keyval").UseStore;
5
4
  export declare function getPage(id: string): Promise<Page | undefined>;
6
5
  export declare function getPageList(filter?: string): Promise<Page[]>;
7
6
  export declare function createPage({ page }: {
@@ -12,10 +11,8 @@ export declare function updatePage({ pageId, page }: {
12
11
  page: Page;
13
12
  pageId: string;
14
13
  }): Promise<void>;
15
- export declare const storeEnterpriseRemovedTab: import("idb-keyval").UseStore;
16
- export declare const addRemovedTab: (payload: any) => Promise<void>;
17
- export declare const popLastRemovedTab: () => Promise<any>;
18
- export declare const storeEnterpriseVisitedSites: import("idb-keyval").UseStore;
14
+ export declare const addRemovedTab: (payload: TrackedTab) => Promise<void>;
15
+ export declare const popLastRemovedTab: () => Promise<TrackedTab | undefined>;
19
16
  export declare const trackVisitedSite: (payload: Site) => Promise<void>;
20
17
  export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | [
21
18
  ]>;
@@ -25,4 +22,13 @@ export declare const searchSites: (payload: {
25
22
  req: SearchSitesRequest;
26
23
  } & {
27
24
  identity: OpenFin.Identity;
28
- }) => Promise<any[]>;
25
+ }) => Promise<TrackedSite[]>;
26
+ export type TrackedPageTab = {
27
+ identity: OpenFin.Identity;
28
+ page: Page;
29
+ };
30
+ export type TrackedWindowTab = {
31
+ window: OpenFin.WorkspacePlatformOptions;
32
+ };
33
+ export declare function isPageTab(tab: TrackedTab): tab is TrackedPageTab;
34
+ export declare function isWindowTab(tab: TrackedTab): tab is TrackedWindowTab;
@@ -1,6 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import type { AttachedPage, Page, PageWithUpdatableRuntimeAttribs } from './shapes';
3
- export declare function getLegacyPages(): Promise<Page[]>;
4
3
  export declare function cleanPage<T extends AttachedPage | Page>(page: T): T;
5
4
  /**
6
5
  * Generates a Page object which represents a page.
@@ -1,3 +1,8 @@
1
- import { UseStore } from 'idb-keyval';
2
- export declare const createNamespacedStore: (storeName: string, tableName: string) => UseStore;
3
- export declare const getNewStoreAndMigrateLegacyStore: (storeName: string, tableName: string) => UseStore;
1
+ import { Dexie, EntityTable } from 'dexie';
2
+ export declare const getNamespacedDbName: (name: string) => string;
3
+ type DexieStore = {
4
+ [key: string]: EntityTable<any, any>;
5
+ };
6
+ type DexieDB = Dexie & DexieStore;
7
+ export declare const getNewStoreAndMigrateLegacyStore: (storeName: string, tableName: string) => DexieDB;
8
+ export {};
@@ -29,28 +29,22 @@
29
29
  "issuer": "common/src/api/i18next.ts"
30
30
  }
31
31
  ],
32
- "idb-keyval": [
32
+ "dexie": [
33
33
  {
34
34
  "type": "explicit",
35
- "version": "^6.2.0",
35
+ "version": "^4.0.11",
36
36
  "packageName": "client-api-platform/package.json",
37
37
  "issuer": "client-api-platform/src/api/dock/idb.ts"
38
38
  },
39
39
  {
40
40
  "type": "root-implicit",
41
- "version": "^6.2.0",
41
+ "version": "^4.0.11",
42
42
  "packageName": "common/package.json",
43
43
  "issuer": "common/src/api/pages/idb.ts"
44
44
  },
45
- {
46
- "type": "explicit",
47
- "version": "^6.2.0",
48
- "packageName": "client-api-platform/package.json",
49
- "issuer": "client-api-platform/src/api/workspaces/idb.ts"
50
- },
51
45
  {
52
46
  "type": "root-implicit",
53
- "version": "^6.2.0",
47
+ "version": "^4.0.11",
54
48
  "packageName": "common/package.json",
55
49
  "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
56
50
  }