@openfin/workspace 9.0.13 → 9.1.1

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.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@openfin/workspace","description":"An API for integrating with OpenFin Workspace.","author":"Brandon Waring <brandon.waring@openfin.co>","contributors":[],"main":"index.js","version":"9.0.13","scripts":{"promote:docs":"chmod +x ../common/scripts/deploy-latest-docs.sh && ../common/scripts/deploy-latest-docs.sh $(node ../common/scripts/echo-version.js) /api","promote":"node ../common/scripts/promote-npm.js && npm run promote:docs","deploy:next":"npm run deploy:next:npm && npm run deploy:next:docs","deploy:next:npm":"cd out && npm publish --tag next","deploy:next:docs":"DIR=/api node ../common/scripts/archive-docs.js","cp:readme":"copyfiles README.md out","cp:package":"node ../common/scripts/cp-package.js","create:rootIndex":"node ../common/scripts/cp-root-index.js","create:restModules":"node ./scripts/create-rest-modules.js","package":"npm run cp:readme && npm run cp:package && npm run create:rootIndex && npm run create:restModules","clean":"rimraf ./out && rimraf ./docs","build:common":"cross-env ENV=prod webpack --mode=production --config ./webpack.common.config.js","build":"npm run clean && npm run build:common && npm run build:docs && node ../common/scripts/test-for-next-apis.js","build:docs":"typedoc --tsconfig ./tsconfig.json --readme none --disableSources ./src/index.ts ./src/home.ts ./src/store.ts ./src/legacy.ts ./src/notifications.ts ./src/dock.ts","test":"jest --watch --colors","test:ci":"jest","check":"node ../common/scripts/check-npm.js"},"dependencies":{"openfin-notifications":"^1.16.0"},"keywords":["client api"],"license":"MIT"}
1
+ {"name":"@openfin/workspace","description":"An API for integrating with OpenFin Workspace.","author":"Brandon Waring <brandon.waring@openfin.co>","contributors":[],"main":"index.js","version":"9.1.1","scripts":{"promote:docs":"chmod +x ../common/scripts/deploy-latest-docs.sh && ../common/scripts/deploy-latest-docs.sh $(node ../common/scripts/echo-version.js) /api","promote":"node ../common/scripts/promote-npm.js && npm run promote:docs","deploy:next":"npm run deploy:next:npm && npm run deploy:next:docs","deploy:next:npm":"cd out && npm publish --tag next","deploy:hotfix:npm":"cd out && npm publish --tag hotfix","deploy:next:docs":"DIR=/api node ../common/scripts/archive-docs.js","cp:readme":"copyfiles README.md out","cp:package":"node ../common/scripts/cp-package.js","create:rootIndex":"node ../common/scripts/cp-root-index.js","create:restModules":"node ./scripts/create-rest-modules.js","package":"npm run cp:readme && npm run cp:package && npm run create:rootIndex && npm run create:restModules","clean":"rimraf ./out && rimraf ./docs","build:common":"cross-env ENV=prod webpack --mode=production --config ./webpack.common.config.js","build":"npm run clean && npm run build:common && npm run build:docs && node ../common/scripts/test-for-next-apis.js","build:docs":"typedoc --tsconfig ./tsconfig.json --readme none --disableSources ./src/index.ts ./src/home.ts ./src/store.ts ./src/legacy.ts ./src/notifications.ts ./src/dock.ts","test":"jest --watch --colors","test:ci":"jest","check":"node ../common/scripts/check-npm.js"},"dependencies":{"openfin-notifications":"^1.16.0"},"keywords":["client api"],"license":"MIT"}
@@ -1,11 +1,11 @@
1
1
  import { ChannelClient } from '../../../search-api/src/fin/shapes';
2
- import type { DispatchedAction, SearchProvider, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
2
+ import type { DispatchedAction, RegistrationMetaInfo, SearchProvider, SearchProviderInfo, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
3
3
  /**
4
4
  * Register a remote search provider.
5
5
  * @param namespacedTopic the namespaced search topic to register the provider on.
6
6
  * @param provider the search provider to register.
7
7
  */
8
- export declare function register(namespacedTopic: string, provider: SearchProvider, channel?: ChannelClient): Promise<void>;
8
+ export declare function register(namespacedTopic: string, provider: SearchProvider, channel?: ChannelClient): Promise<RegistrationMetaInfo>;
9
9
  /**
10
10
  * Deregister a remote search provider.
11
11
  * @param topic the search topic to deregister the provider from.
@@ -30,7 +30,7 @@ export declare function search(namespacedTopic: string, request: SearchRequest):
30
30
  * Get the information for all search providers registered on this search topic.
31
31
  * @param namespacedTopic the namespaced search topic.
32
32
  */
33
- export declare function getAllProviders(namespacedTopic: string): Promise<string[]>;
33
+ export declare function getAllProviders(namespacedTopic: string): Promise<SearchProviderInfo[]>;
34
34
  /**
35
35
  * Disconnect from a search topic.
36
36
  * @param topic the namespaced search topic to disconnect from.
@@ -1,4 +1,4 @@
1
- import { InternalSearchListenerRequest, InternalSearchListenerResponse } from './internal-shapes';
1
+ import { InternalSearchListenerRequest, InternalSearchListenerResponse, SearchProviderWithIdentity } from './internal-shapes';
2
2
  import { DeregisterListener, DispatchedAction, DispatchedSearchResult, Identity, RegisterListener, ScoreOrder, SearchProvider, SearchRequest, SearchResult } from './shapes';
3
3
  export declare const defaultSearchTopic = "all";
4
4
  /**
@@ -50,7 +50,7 @@ export declare function removeDeregisterListener(namespacedTopic: string, listen
50
50
  * @param namespacedTopic the namespaced search topic to register the provider on.
51
51
  * @param provider the search provider to register.
52
52
  */
53
- export declare function addProvider(namespacedTopic: string, provider: SearchProvider): Promise<void>;
53
+ export declare function addProvider(namespacedTopic: string, provider: SearchProviderWithIdentity): Promise<void>;
54
54
  /**
55
55
  * Remove a provider.
56
56
  * @param namespacedTopic the namespaced search topic of the provider.
@@ -72,7 +72,7 @@ export declare function clearProviders(namespacedTopic: string): void;
72
72
  * @param namespacedTopic the namespaced search topic that the provider is registered on.
73
73
  * @param name the name of the search provider.
74
74
  */
75
- export declare function getProvider(namespacedTopic: string, id: string): SearchProvider | null;
75
+ export declare function getProvider(namespacedTopic: string, id: string): SearchProviderWithIdentity | null;
76
76
  /**
77
77
  * Make a dispatched search result.
78
78
  * @param result the original search result.
@@ -2,5 +2,5 @@ import type { Identity } from '../shapes';
2
2
  import type { Channel, ChannelClient } from './shapes';
3
3
  export declare function getIdentity(): Identity;
4
4
  export declare function getPlatformNamespace(): string | undefined;
5
- export declare function connectToChannel(name: string): Promise<ChannelClient>;
5
+ export declare function connectToChannel(name: string): Promise<ChannelClient | never>;
6
6
  export declare function createChannel(name: string): Promise<Channel>;
@@ -1,4 +1,5 @@
1
- import type { DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProviderResponse, SearchProviderResponseGeneratorState, SearchRequest, SearchResponse, SearchResult } from './shapes';
1
+ /// <reference types="@openfin/core" />
2
+ import type { DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProvider, SearchProviderInfo, SearchProviderResponse, SearchProviderResponseGeneratorState, SearchRequest, SearchResponse, SearchResult } from './shapes';
2
3
  /**
3
4
  * Message for dispatching a search request.
4
5
  * This interface is used when sending a dispatch request from a remote OpenFin identity
@@ -12,6 +13,12 @@ export interface InternalSearchRequest extends SearchRequest {
12
13
  */
13
14
  id?: string;
14
15
  }
16
+ export interface SearchProviderWithIdentity extends SearchProvider {
17
+ identity: OpenFin.Identity;
18
+ }
19
+ export interface SearchProviderInfoWithIdentity extends SearchProviderInfo {
20
+ identity: OpenFin.Identity;
21
+ }
15
22
  /**
16
23
  * Response for a remote search request.
17
24
  */
@@ -1,22 +1,22 @@
1
1
  import { InternalSearchTopicContext } from '../internal-shapes';
2
- import { DispatchedAction, SearchProvider, SearchProviderInfo, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
2
+ import { DispatchedAction, RegistrationMetaInfo, SearchProvider, SearchProviderInfo, SearchProviderResponseGeneratorExtended, SearchRequest, SearchResult } from '../shapes';
3
3
  /**
4
4
  * Get all registered providers' info for an topic.
5
5
  * @param namespacedTopic the namespaced search topic id.
6
6
  */
7
- export declare function getAllProviders(namespacedTopic: string): SearchProviderInfo[];
7
+ export declare function getAllProviders(namespacedTopic: string): Promise<SearchProviderInfo[]>;
8
8
  /**
9
9
  * Register a provider.
10
10
  * @param namespacedTopic the namespaced search topic to register the provider on.
11
11
  * @param provider the provider to register.
12
12
  */
13
- export declare function register(namespacedTopic: string, provider: SearchProvider): Promise<void>;
13
+ export declare function register(namespacedTopic: string, provider: SearchProvider): Promise<RegistrationMetaInfo>;
14
14
  /**
15
15
  * Deregister a provider.
16
16
  * @param namespacedTopic the namespaced search topic to deregister the provider on.
17
17
  * @param name the name of the search provider to deregister.
18
18
  */
19
- export declare function deregister(namespacedTopic: string, name: string): void;
19
+ export declare function deregister(namespacedTopic: string, name: string): Promise<void>;
20
20
  /**
21
21
  * Dispatch a search result back to the respective provider.
22
22
  * @param namespacedTopic the namespaced search topic id.
@@ -30,4 +30,4 @@ export declare function dispatch(namespacedTopic: string, providerId: string, re
30
30
  * @param ctx the search topic context.
31
31
  * @param req the search request.
32
32
  */
33
- export declare function search({ namespacedTopic, topic }: InternalSearchTopicContext, req: SearchRequest): SearchProviderResponseGeneratorExtended;
33
+ export declare function search({ namespacedTopic, topic }: InternalSearchTopicContext, req: SearchRequest): Promise<SearchProviderResponseGeneratorExtended>;
@@ -1,5 +1,5 @@
1
- import { InternalDataResponse } from '../../internal-shapes';
2
- import type { DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse, SearchProviderInfo } from '../../shapes';
1
+ import { InternalDataResponse, SearchProviderInfoWithIdentity } from '../../internal-shapes';
2
+ import type { DispatchedSearchResult, SearchListenerRequest, SearchListenerResponse } from '../../shapes';
3
3
  /**
4
4
  * Listens for pushed new/updated remote search provider results or status changes.
5
5
  * When a message is received, call all listeners corresponding to the response.
@@ -13,11 +13,11 @@ export declare function makeStreamListener(namespacedTopic: string): (res: Inter
13
13
  * @param topicId the search topic for the listener.
14
14
  * @param info the provider info.
15
15
  */
16
- export declare function makeOnSearch(topicId: string, info: SearchProviderInfo): (request: SearchListenerRequest, response: SearchListenerResponse) => Promise<InternalDataResponse>;
16
+ export declare function makeOnSearch(topicId: string, info: SearchProviderInfoWithIdentity): (request: SearchListenerRequest, response: SearchListenerResponse) => Promise<InternalDataResponse>;
17
17
  /**
18
18
  * Make a dispatch result listener for a remote search provider.
19
19
  * When called, the listener sends a result dispatch request to the underlying remote OpenFin identity.
20
20
  * @param topicId the search topic id.
21
21
  * @param info the remote search provider info.
22
22
  */
23
- export declare function makeOnResultDispatch(topicId: string, info: SearchProviderInfo): (result: DispatchedSearchResult) => Promise<any>;
23
+ export declare function makeOnResultDispatch(topicId: string, info: SearchProviderInfoWithIdentity): (result: DispatchedSearchResult) => Promise<any>;
@@ -1,10 +1,11 @@
1
- import type { Identity, SearchProviderInfo } from '../../shapes';
1
+ import { SearchProviderInfoWithIdentity } from '../../../../search-api/src/internal-shapes';
2
+ import type { Identity, RegistrationMetaInfo, SearchProviderInfo } from '../../shapes';
2
3
  /**
3
4
  * Add a remote search provider.
4
5
  * @param topic the search topic to add the provider on.
5
6
  * @param info the search provider info. Must include identity.
6
7
  */
7
- export declare function addRemoteProvider(topic: string, info: SearchProviderInfo): Promise<void>;
8
+ export declare function addRemoteProvider(topic: string, info: SearchProviderInfoWithIdentity): Promise<void>;
8
9
  /**
9
10
  * Removes a remote search provider.
10
11
  * @param topic the search topic id.
@@ -20,7 +21,4 @@ export declare function removeRemoteProvidersForIdentity(topic: string, identity
20
21
  /**
21
22
  * Make a channel listener that allows remote OpenFin identities to register a search provider to a search topic.
22
23
  */
23
- export declare function makeStreamListener(namespacedTopic: string): (info: SearchProviderInfo, identity: Identity) => Promise<{
24
- workspaceVersion: string;
25
- clientAPIVersion: string;
26
- }>;
24
+ export declare function makeStreamListener(namespacedTopic: string): (info: SearchProviderInfo, identity: Identity) => Promise<RegistrationMetaInfo | undefined>;
@@ -5,4 +5,4 @@ export declare function closeRemoteSearchRequest(topicId: string, requestId: str
5
5
  * On message, setup search generator that remote identity can check the status of in subsequent requests.
6
6
  * @param namespacedTopic the search topic context.
7
7
  */
8
- export declare function makeStreamListener(ctx: InternalSearchTopicContext): (request: InternalSearchRequest, ...p: any[]) => Promise<InternalSearchResponse | InternalErrorResponse>;
8
+ export declare function makeStreamListener(ctx: InternalSearchTopicContext): (request: InternalSearchRequest) => Promise<InternalSearchResponse | InternalErrorResponse>;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="@openfin/core" />
2
2
  import { RegistrationMetaInfo } from '../../client-api/src/index';
3
+ export type { RegistrationMetaInfo };
3
4
  /**
4
5
  * Create a topic.
5
6
  * If the OpenFin identity creating the topic is running in a platform, the search topic will be sandboxed to the platform.
package/store.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={114:(e,o,r)=>{var t,n;r.d(o,{L:()=>t,T:()=>n}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(t||(t={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(n||(n={}))},436:(e,o,r)=>{r.d(o,{WF:()=>a,Dm:()=>d,Xl:()=>f,aB:()=>p});var t=r(678);const n=t.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));var i=r(121);var a;!function(e){e.RegisterProvider="register-provider",e.DeregisterProvider="deregister-provider",e.CreateProviderWindow="create-provider-window",e.GetProviders="get-providers",e.ShowProviderWindow="show-provider-window",e.HideProviderWindow="hide-provider-window",e.GetStorefrontProviderApps="get-storefront-provider-apps",e.GetStorefrontProviderLandingPage="get-storefront-provider-landing-page",e.GetStorefrontProviderFooter="get-storefront-provider-footer",e.GetStorefrontProviderNavigation="get-storefront-provider-navigation",e.LaunchStorefrontProviderApp="launch-storefront-provider-app",e.ShowHome="show-home",e.HideHome="hide-home",e.AssignHomeSearchContext="assign-home-search-context",e.GetLegacyPages="get-legacy-pages",e.GetLegacyWorkspaces="get-legacy-workspaces",e.GetComputedPlatformTheme="get-computed-platform-theme",e.RegisterStorefrontProvider="register-storefront-provider",e.DeregisterStorefrontProvider="deregister-storefront-provider",e.HideStorefront="hide-storefront",e.ShowStorefront="show-storefront"}(a||(a={}));const d=function(e){let o;return()=>{if(!t.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return o||(o=(async()=>{await n;const r={clientAPIVersion:t.u0},i=await fin.InterApplicationBus.Channel.connect(e,{payload:r});return i.onDisconnection((async()=>{o=void 0})),i})().then((e=>e)).catch((r=>{throw o=void 0,new Error(`failed to connect to channel provider ${e}: ${r}`)}))),o}}("__of_workspace_protocol__"),s="isLaunchedViaLib",c=e=>{const o=new URL(e);return o.searchParams.append(s,"true"),o.toString()},p=async()=>{if(!await(0,i.JV)(i.iW))return(t.ZK||-1===navigator.userAgent.indexOf("Win"))&&await fin.Application.startFromManifest(c(t.aW)),fin.System.openUrlWithBrowser(c(t.GX))},f=async()=>(await p(),d())},82:(e,o,r)=>{r.d(o,{lP:()=>t});var t;r(436);!function(e){e.Storefront="storefront",e.Dock="dock"}(t||(t={}))},806:(e,o,r)=>{r.d(o,{q9:()=>t});var t,n,i,a=r(678);!function(e){e.Workspace="openfin-browser"}(t||(t={})),function(e){e.RunRequested="run-requested",e.WindowOptionsChanged="window-options-changed",e.WindowClosed="window-closed",e.WindowCreated="window-created"}(n||(n={})),function(e){e.FinProtocol="fin-protocol"}(i||(i={}));a.AB,t.Workspace},678:(e,o,r)=>{var t;r.d(o,{AB:()=>d,Ax:()=>i,GX:()=>p,ZK:()=>c,aW:()=>f,oC:()=>s,sS:()=>n,u0:()=>g}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(t||(t={}));const n="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),a=i?window.origin:t.Local,d=n&&fin.me.uuid,s=n&&fin.me.name,c=(n&&fin.me.entityType,"prod"===t.Local),p=(t.Dev,t.Staging,t.Prod,"fins://system-apps/workspace"),f="https://cdn.openfin.co/workspace/9.0.13/app.json",w=e=>e.startsWith("http://")||e.startsWith("https://")?e:a+e,g=(w("https://cdn.openfin.co/workspace/9.0.13"),w("https://cdn.openfin.co/workspace/9.0.13"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&w(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&w(WORKSPACE_DOCS_CLIENT_URL),"9.0.13")},532:(e,o,r)=>{r.d(o,{d9:()=>a});var t,n=r(678);r(121);!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming"}(t||(t={}));const i=async(e,o)=>{const r={apiVersion:o.apiVersion||n.u0,componentName:e,componentVersion:o.componentVersion||n.u0,allowed:o.allowed,rejectionCode:o.rejectionCode};fin.System.registerUsage({type:"workspace-licensing",data:r})},a=async e=>{i(t.Storefront,e)}},121:(e,o,r)=>{r.d(o,{JV:()=>p,iW:()=>c});var t,n,i,a=r(806),d=r(678);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window"}(t||(t={})),function(e){e.Shown="shown",e.BoundsChanged="bounds-changed",e.LayoutReady="layout-ready",e.EndUserBoundsChanging="end-user-bounds-changing",e.Blurred="blurred",e.Closed="closed",e.CloseRequested="close-requested",e.Focused="focused",e.ShowRequested="show-requested",e.ViewCrashed="view-crashed",e.ViewAttached="view-attached",e.ViewDetached="view-detached",e.ViewPageTitleUpdated="view-page-title-updated",e.ViewDestroyed="view-destroyed",e.OptionsChanged="options-changed"}(n||(n={})),function(e){e.BeforeUnload="beforeunload"}(i||(i={}));function s(e){if(!d.sS)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}d.oC,d.AB;t.Home,a.q9.Workspace,t.Dock,a.q9.Workspace,t.Storefront,a.q9.Workspace;const c={name:a.q9.Workspace,uuid:a.q9.Workspace};const p=e=>s(e).getOptions().then((()=>!0)).catch((()=>!1))}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{r.r(t),r.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>u,hide:()=>l,register:()=>g,show:()=>h});var e=r(532),o=r(436),n=r(82),i=r(114),a=r(678);let d,s=!1;async function c(e,r,t){const n=await(0,o.Dm)();try{return await n.dispatch(e.action,e.payload)}catch(o){if(-1!==o.toString().indexOf(e.action))return s=!0,await n.dispatch(r.action,r.payload),t;throw o}}const p=new Map,f=e=>{if(!p.has(e))throw new Error(`Storefront Provider with id ${e} is not registered`);return p.get(e)},w=async e=>{const r=await(0,o.Xl)();if(p.has(e.id))throw new Error(`Storefront provider with id ${e.id} already registered`);return p.set(e.id,e),(e=>{e.isStorefrontActionsRegistered||(e.isStorefrontActionsRegistered=!0,e.register(o.WF.GetStorefrontProviderApps,(e=>f(e).getApps())),e.register(o.WF.GetStorefrontProviderFooter,(e=>f(e).getFooter())),e.register(o.WF.GetStorefrontProviderLandingPage,(e=>f(e).getLandingPage())),e.register(o.WF.GetStorefrontProviderNavigation,(e=>f(e).getNavigation())),e.register(o.WF.LaunchStorefrontProviderApp,(({id:e,app:o})=>f(e).launchApp(o))))})(r),e.clientAPIVersion=a.u0,c({action:o.WF.RegisterProvider,payload:{providerType:n.lP.Storefront,info:e}},{action:o.WF.RegisterStorefrontProvider,payload:e},{workspaceVersion:"unknown"})},g=o=>(d=new Promise((async(r,t)=>{try{const t=await w(o);(0,e.d9)({allowed:!0,componentVersion:t?.workspaceVersion}),r({clientAPIVersion:a.u0,workspaceVersion:t.workspaceVersion||""})}catch(o){(0,e.d9)({allowed:!1,rejectionCode:o.message}),t(o)}})),d),u=async e=>(await d,p.delete(e),await(0,o.aB)(),c({action:o.WF.DeregisterProvider,payload:{providerType:n.lP.Storefront,id:e}},{action:o.WF.DeregisterStorefrontProvider,payload:e})),l=async()=>(await d,await(0,o.aB)(),c({action:o.WF.HideProviderWindow,payload:{providerType:n.lP.Storefront}},{action:o.WF.HideStorefront})),h=async()=>(await d,await(0,o.aB)(),c({action:o.WF.ShowProviderWindow,payload:{providerType:n.lP.Storefront}},{action:o.WF.ShowStorefront}))})(),module.exports=t})();
1
+ (()=>{"use strict";var e={114:(e,o,r)=>{var t,n;r.d(o,{L:()=>t,T:()=>n}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(t||(t={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(n||(n={}))},436:(e,o,r)=>{r.d(o,{WF:()=>a,Dm:()=>d,Xl:()=>f,aB:()=>p});var t=r(678);const n=t.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));var i=r(121);var a;!function(e){e.RegisterProvider="register-provider",e.DeregisterProvider="deregister-provider",e.CreateProviderWindow="create-provider-window",e.GetProviders="get-providers",e.ShowProviderWindow="show-provider-window",e.HideProviderWindow="hide-provider-window",e.GetStorefrontProviderApps="get-storefront-provider-apps",e.GetStorefrontProviderLandingPage="get-storefront-provider-landing-page",e.GetStorefrontProviderFooter="get-storefront-provider-footer",e.GetStorefrontProviderNavigation="get-storefront-provider-navigation",e.LaunchStorefrontProviderApp="launch-storefront-provider-app",e.ShowHome="show-home",e.HideHome="hide-home",e.AssignHomeSearchContext="assign-home-search-context",e.GetLegacyPages="get-legacy-pages",e.GetLegacyWorkspaces="get-legacy-workspaces",e.GetComputedPlatformTheme="get-computed-platform-theme",e.RegisterStorefrontProvider="register-storefront-provider",e.DeregisterStorefrontProvider="deregister-storefront-provider",e.HideStorefront="hide-storefront",e.ShowStorefront="show-storefront"}(a||(a={}));const d=function(e){let o;return()=>{if(!t.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return o||(o=(async()=>{await n;const r={clientAPIVersion:t.u0},i=await fin.InterApplicationBus.Channel.connect(e,{payload:r});return i.onDisconnection((async()=>{console.warn(`disconnected from channel provider ${e}`),o=void 0})),i})().then((e=>e)).catch((r=>{throw o=void 0,new Error(`failed to connect to channel provider ${e}: ${r}`)}))),o}}("__of_workspace_protocol__"),s="isLaunchedViaLib",c=e=>{const o=new URL(e);return o.searchParams.append(s,"true"),o.toString()},p=async()=>{if(!await(0,i.JV)(i.iW))return(t.ZK||-1===navigator.userAgent.indexOf("Win"))&&await fin.Application.startFromManifest(c(t.aW)),fin.System.openUrlWithBrowser(c(t.GX))},f=async()=>(await p(),d())},82:(e,o,r)=>{r.d(o,{lP:()=>t});var t;r(436);!function(e){e.Storefront="storefront",e.Dock="dock"}(t||(t={}))},806:(e,o,r)=>{r.d(o,{q9:()=>t});var t,n,i,a=r(678);!function(e){e.Workspace="openfin-browser"}(t||(t={})),function(e){e.RunRequested="run-requested",e.WindowOptionsChanged="window-options-changed",e.WindowClosed="window-closed",e.WindowCreated="window-created"}(n||(n={})),function(e){e.FinProtocol="fin-protocol"}(i||(i={}));a.AB,t.Workspace},678:(e,o,r)=>{var t;r.d(o,{AB:()=>d,Ax:()=>i,GX:()=>p,ZK:()=>c,aW:()=>f,oC:()=>s,sS:()=>n,u0:()=>g}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(t||(t={}));const n="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),a=i?window.origin:t.Local,d=n&&fin.me.uuid,s=n&&fin.me.name,c=(n&&fin.me.entityType,"prod"===t.Local),p=(t.Dev,t.Staging,t.Prod,"fins://system-apps/workspace"),f="https://cdn.openfin.co/workspace/9.1.1/app.json",w=e=>e.startsWith("http://")||e.startsWith("https://")?e:a+e,g=(w("https://cdn.openfin.co/workspace/9.1.1"),w("https://cdn.openfin.co/workspace/9.1.1"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&w(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&w(WORKSPACE_DOCS_CLIENT_URL),"9.1.1")},532:(e,o,r)=>{r.d(o,{d9:()=>a});var t,n=r(678);r(121);!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming"}(t||(t={}));const i=async(e,o)=>{const r={apiVersion:o.apiVersion||n.u0,componentName:e,componentVersion:o.componentVersion||n.u0,allowed:o.allowed,rejectionCode:o.rejectionCode};fin.System.registerUsage({type:"workspace-licensing",data:r})},a=async e=>{i(t.Storefront,e)}},121:(e,o,r)=>{r.d(o,{JV:()=>p,iW:()=>c});var t,n,i,a=r(806),d=r(678);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window"}(t||(t={})),function(e){e.Shown="shown",e.BoundsChanged="bounds-changed",e.LayoutReady="layout-ready",e.EndUserBoundsChanging="end-user-bounds-changing",e.Blurred="blurred",e.Closed="closed",e.CloseRequested="close-requested",e.Focused="focused",e.ShowRequested="show-requested",e.ViewCrashed="view-crashed",e.ViewAttached="view-attached",e.ViewDetached="view-detached",e.ViewPageTitleUpdated="view-page-title-updated",e.ViewDestroyed="view-destroyed",e.OptionsChanged="options-changed"}(n||(n={})),function(e){e.BeforeUnload="beforeunload"}(i||(i={}));function s(e){if(!d.sS)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}d.oC,d.AB;t.Home,a.q9.Workspace,t.Dock,a.q9.Workspace,t.Storefront,a.q9.Workspace;const c={name:a.q9.Workspace,uuid:a.q9.Workspace};const p=e=>s(e).getOptions().then((()=>!0)).catch((()=>!1))}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{r.r(t),r.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>u,hide:()=>l,register:()=>g,show:()=>h});var e=r(532),o=r(436),n=r(82),i=r(114),a=r(678);let d,s=!1;async function c(e,r,t){const n=await(0,o.Dm)();try{return await n.dispatch(e.action,e.payload)}catch(o){if(-1!==o.toString().indexOf(e.action))return s||console.warn("You are using a newer version of the Workspace client library that is not supported by the currently running workspace provider. Please upgrade the Workspace to version 9.0 or later."),s=!0,await n.dispatch(r.action,r.payload),t;throw o}}const p=new Map,f=e=>{if(!p.has(e))throw new Error(`Storefront Provider with id ${e} is not registered`);return p.get(e)},w=async e=>{const r=await(0,o.Xl)();if(p.has(e.id))throw new Error(`Storefront provider with id ${e.id} already registered`);return p.set(e.id,e),(e=>{e.isStorefrontActionsRegistered||(e.isStorefrontActionsRegistered=!0,e.register(o.WF.GetStorefrontProviderApps,(e=>f(e).getApps())),e.register(o.WF.GetStorefrontProviderFooter,(e=>f(e).getFooter())),e.register(o.WF.GetStorefrontProviderLandingPage,(e=>f(e).getLandingPage())),e.register(o.WF.GetStorefrontProviderNavigation,(e=>f(e).getNavigation())),e.register(o.WF.LaunchStorefrontProviderApp,(({id:e,app:o})=>f(e).launchApp(o))))})(r),e.clientAPIVersion=a.u0,c({action:o.WF.RegisterProvider,payload:{providerType:n.lP.Storefront,info:e}},{action:o.WF.RegisterStorefrontProvider,payload:e},{workspaceVersion:"unknown"})},g=o=>(d=new Promise((async(r,t)=>{try{const t=await w(o);(0,e.d9)({allowed:!0,componentVersion:t?.workspaceVersion}),t?.workspaceVersion,a.u0,r({clientAPIVersion:a.u0,workspaceVersion:t.workspaceVersion||""})}catch(o){(0,e.d9)({allowed:!1,rejectionCode:o.message}),t(o)}})),d),u=async e=>(await d,p.delete(e),await(0,o.aB)(),c({action:o.WF.DeregisterProvider,payload:{providerType:n.lP.Storefront,id:e}},{action:o.WF.DeregisterStorefrontProvider,payload:e})),l=async()=>(await d,await(0,o.aB)(),c({action:o.WF.HideProviderWindow,payload:{providerType:n.lP.Storefront}},{action:o.WF.HideStorefront})),h=async()=>(await d,await(0,o.aB)(),c({action:o.WF.ShowProviderWindow,payload:{providerType:n.lP.Storefront}},{action:o.WF.ShowStorefront}))})(),module.exports=t})();
2
2
  //# sourceMappingURL=store.js.map
package/store.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","mappings":"wCASO,IAAIA,EAmBAC,E,yBAlBX,SAAWD,GAIPA,EAA0B,SAAI,WAI9BA,EAA0B,SAAI,WAI9BA,EAAsB,KAAI,OAI1BA,EAA0B,SAAI,UACjC,CAjBD,CAiBGA,IAAoBA,EAAkB,CAAC,IAE1C,SAAWC,GACPA,EAAgC,YAAI,cACpCA,EAA4B,QAAI,SACnC,CAHD,CAGGA,IAAuBA,EAAqB,CAAC,G,0EC5BhD,MAAMC,EAAiB,MACK,aAAxBC,SAASC,YACT,IAAIC,SAASC,GAAQH,SAASI,iBAAiB,oBAAoB,KACnC,aAAxBJ,SAASC,YACTE,GACJ,M,aCKD,IAAIE,GACX,SAAWA,GACPA,EAAyC,iBAAI,oBAC7CA,EAA2C,mBAAI,sBAC/CA,EAA6C,qBAAI,yBACjDA,EAAqC,aAAI,gBACzCA,EAA2C,mBAAI,uBAC/CA,EAA2C,mBAAI,uBAC/CA,EAAkD,0BAAI,+BACtDA,EAAyD,iCAAI,uCAC7DA,EAAoD,4BAAI,iCACxDA,EAAwD,gCAAI,qCAC5DA,EAAoD,4BAAI,iCACxDA,EAAiC,SAAI,YACrCA,EAAiC,SAAI,YACrCA,EAAgD,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Ac,kBAEnB,CACCrB,OAAQ,uBAMH+B,EAAOpJ,gBACVkH,QACA,UACCE,EAAY,CACfC,OAAQ,wBACR7G,QAAS,CACLkI,aAAc,kBAEnB,CACCrB,OAAQ,sB","sources":["webpack://@openfin/workspace/./src/shapes/store.ts","webpack://@openfin/workspace/../common/src/utils/channels.ts","webpack://@openfin/workspace/../common/src/api/protocol/workspace.ts","webpack://@openfin/workspace/../common/src/api/provider.ts","webpack://@openfin/workspace/../common/src/utils/application.ts","webpack://@openfin/workspace/../common/src/utils/env.ts","webpack://@openfin/workspace/../common/src/utils/usage-register.ts","webpack://@openfin/workspace/../common/src/utils/window.ts","webpack://@openfin/workspace/webpack/bootstrap","webpack://@openfin/workspace/webpack/runtime/define property getters","webpack://@openfin/workspace/webpack/runtime/hasOwnProperty shorthand","webpack://@openfin/workspace/webpack/runtime/make namespace object","webpack://@openfin/workspace/./src/internal.ts","webpack://@openfin/workspace/./src/store.ts"],"names":["AppManifestType","StorefrontTemplate","docLoadPromise","document","readyState","Promise","res","addEventListener","WorkspaceChannelAction","getChannelClient","channelName","channelPromise","Error","async","connectPayload","clientAPIVersion","channel","fin","InterApplicationBus","Channel","connect","payload","onDisconnection","undefined","connectToChannel","then","r","catch","err","makeGetChannelClient","isLaunchedViaLibQuery","getProviderUrlWithParams","url","finsURL","URL","searchParams","append","toString","launchProvider","navigator","userAgent","indexOf","Application","startFromManifest","System","openUrlWithBrowser","getChannelClientAndLaunchProvider","ProviderType","ApplicationUUID","ApplicationEventType","LaunchModeType","Workspace","Env","isFin","window","isWindowDefined","process","env","JEST_WORKER_ID","windowOrigin","origin","Local","finUUID","me","uuid","finName","name","isEnvLocal","entityType","workspaceProviderFinsLink","Dev","Staging","Prod","workspaceProviderFallbackUrl","getAbsoluteUrl","startsWith","workspaceBuildVersion","WORKSPACE_DOCS_PLATFORM_URL","WORKSPACE_DOCS_CLIENT_URL","ComponentName","registerUsage","status","request","apiVersion","componentName","componentVersion","allowed","rejectionCode","type","data","registerStorefrontUsage","Storefront","WindowName","WindowEvent","WebWindowEvent","getOFWindow","identity","Window","wrapSync","Home","Dock","providerOFIdentity","isWindowRunning","getOptions","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","currentRegistrationPromise","deprecationWarningIssued","tryDispatch","action","fallback","fallbackResponse","dispatch","registeredProviders","Map","getStorefrontProviderOrFail","id","has","registerInternal","provider","set","isStorefrontActionsRegistered","register","getApps","getFooter","getLandingPage","getNavigation","app","launchApp","registerChannelClientActions","providerType","info","workspaceVersion","rej","store","message","deregister","providerId","delete","hide","show"],"sourceRoot":""}
1
+ {"version":3,"file":"store.js","mappings":"wCASO,IAAIA,EAmBAC,E,yBAlBX,SAAWD,GAIPA,EAA0B,SAAI,WAI9BA,EAA0B,SAAI,WAI9BA,EAAsB,KAAI,OAI1BA,EAA0B,SAAI,UACjC,CAjBD,CAiBGA,IAAoBA,EAAkB,CAAC,IAE1C,SAAWC,GACPA,EAAgC,YAAI,cACpCA,EAA4B,QAAI,SACnC,CAHD,CAGGA,IAAuBA,EAAqB,CAAC,G,0EC5BhD,MAAMC,EAAiB,MACK,aAAxBC,SAASC,YACT,IAAIC,SAASC,GAAQH,SAASI,iBAAiB,oBAAoB,KACnC,aAAxBJ,SAASC,YACTE,GACJ,M,aCKD,IAAIE,GACX,SAAWA,GACPA,EAAyC,iBAAI,oBAC7CA,EAA2C,mBAAI,sBAC/CA,EAA6C,qBAAI,yBACjDA,EAAqC,aAAI,gBACzCA,EAA2C,mBAAI,uBAC/CA,EAA2C,mBAAI,uBAC/CA,EAAkD,0BAAI,+BACtDA,EAAyD,iCAAI,uCAC7DA,EAAoD,4BAAI,iCACxDA,EAAwD,gCAAI,qCAC5DA,EAAoD,4BAAI,iCACxDA,EAAiC,SAAI,YACrCA,EAAiC,SAAI,YACrCA,EAAgD,wBAAI,6BACpDA,EAAu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CE,EAAY,CACfC,OAAQ,wBACR/G,QAAS,CACLoI,aAAc,kBAEnB,CACCrB,OAAQ,uBAMH+B,EAAOtJ,gBACVoH,QACA,UACCE,EAAY,CACfC,OAAQ,wBACR/G,QAAS,CACLoI,aAAc,kBAEnB,CACCrB,OAAQ,sB","sources":["webpack://@openfin/workspace/./src/shapes/store.ts","webpack://@openfin/workspace/../common/src/utils/channels.ts","webpack://@openfin/workspace/../common/src/api/protocol/workspace.ts","webpack://@openfin/workspace/../common/src/api/provider.ts","webpack://@openfin/workspace/../common/src/utils/application.ts","webpack://@openfin/workspace/../common/src/utils/env.ts","webpack://@openfin/workspace/../common/src/utils/usage-register.ts","webpack://@openfin/workspace/../common/src/utils/window.ts","webpack://@openfin/workspace/webpack/bootstrap","webpack://@openfin/workspace/webpack/runtime/define property getters","webpack://@openfin/workspace/webpack/runtime/hasOwnProperty shorthand","webpack://@openfin/workspace/webpack/runtime/make namespace object","webpack://@openfin/workspace/./src/internal.ts","webpack://@openfin/workspace/./src/store.ts"],"names":["AppManifestType","StorefrontTemplate","docLoadPromise","document","readyState","Promise","res","addEventListener","WorkspaceChannelAction","getChannelClient","channelName","channelPromise","Error","async","connectPayload","clientAPIVersion","channel","fin","InterApplicationBus","Channel","connect","payload","onDisconnection","console","warn","undefined","connectToChannel","then","r","catch","err","makeGetChannelClient","isLaunchedViaLibQuery","getProviderUrlWithParams","url","finsURL","URL","searchParams","append","toString","launchProvider","navigator","userAgent","indexOf","Application","startFromManifest","System","openUrlWithBrowser","getChannelClientAndLaunchProvider","ProviderType","ApplicationUUID","ApplicationEventType","LaunchModeType","Workspace","Env","isFin","window","isWindowDefined","process","env","JEST_WORKER_ID","windowOrigin","origin","Local","finUUID","me","uuid","finName","name","isEnvLocal","entityType","workspaceProviderFinsLink","Dev","Staging","Prod","workspaceProviderFallbackUrl","getAbsoluteUrl","startsWith","workspaceBuildVersion","WORKSPACE_DOCS_PLATFORM_URL","WORKSPACE_DOCS_CLIENT_URL","ComponentName","registerUsage","status","request","apiVersion","componentName","componentVersion","allowed","rejectionCode","type","data","registerStorefrontUsage","Storefront","WindowName","WindowEvent","WebWindowEvent","getOFWindow","identity","Window","wrapSync","Home","Dock","providerOFIdentity","isWindowRunning","getOptions","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","currentRegistrationPromise","deprecationWarningIssued","tryDispatch","action","fallback","fallbackResponse","dispatch","registeredProviders","Map","getStorefrontProviderOrFail","id","has","registerInternal","provider","set","isStorefrontActionsRegistered","register","getApps","getFooter","getLandingPage","getNavigation","app","launchApp","registerChannelClientActions","providerType","info","workspaceVersion","rej","store","message","deregister","providerId","delete","hide","show"],"sourceRoot":""}