@openfin/workspace 7.4.0 → 8.1.0
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/client-api/src/shapes/home.d.ts +24 -2
- package/client-api-platform/src/api/protocol.d.ts +10 -1
- package/client-api-platform/src/api/storage.d.ts +1 -1
- package/client-api-platform/src/init/index.d.ts +2 -2
- package/client-api-platform/src/init/override-callback.d.ts +2 -2
- package/client-api-platform/src/init/utils.d.ts +3 -2
- package/client-api-platform/src/shapes.d.ts +72 -23
- package/common/src/api/pages/shapes.d.ts +5 -1
- package/common/src/api/search.d.ts +4 -2
- package/common/src/utils/context-menu.d.ts +4 -0
- package/common/src/utils/landing-page.d.ts +1 -1
- package/common/src/utils/layout.d.ts +28 -0
- package/common/src/utils/page-tab-context-menu.d.ts +2 -1
- package/common/src/utils/route.d.ts +9 -3
- package/common/src/utils/unique-toolbar-options.d.ts +1 -0
- package/common/src/utils/window.d.ts +1 -0
- package/common/src/utils/workspace-modals.d.ts +1 -0
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +1 -1
- package/search-api/src/client/internal.d.ts +2 -2
- package/search-api/src/common.d.ts +2 -2
- package/search-api/src/index.d.ts +1 -1
- package/search-api/src/provider/internal.d.ts +2 -2
- package/search-api/src/shapes.d.ts +28 -1
- package/store.js +1 -1
- package/store.js.map +1 -1
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":"
|
|
1
|
+
{"name":"@openfin/workspace","description":"An API for integrating with OpenFin Workspace.","author":"Brandon Waring <brandon.waring@openfin.co>","contributors":[],"main":"index.js","version":"8.1.0","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","test":"jest --watch --colors","test:ci":"jest","check":"node ../common/scripts/check-npm.js"},"dependencies":{"openfin-notifications":"1.12.2-alpha-884"},"keywords":["client api"],"license":"MIT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChannelClient } from '../../../search-api/src/fin/shapes';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DispatchedAction, SearchProvider, 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.
|
|
@@ -19,7 +19,7 @@ export declare function deregister(topic: string, id: string): Promise<void>;
|
|
|
19
19
|
* @param result the search result to dispatch back to the provider.
|
|
20
20
|
* @param action the action to dispatch the search result with.
|
|
21
21
|
*/
|
|
22
|
-
export declare function dispatch(namespacedTopic: string, providerId: string, result: SearchResult, action:
|
|
22
|
+
export declare function dispatch(namespacedTopic: string, providerId: string, result: SearchResult, action: DispatchedAction): Promise<any>;
|
|
23
23
|
/**
|
|
24
24
|
* Returns an extended search generator object.
|
|
25
25
|
* @param namespacedTopic the namespaced search topic.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InternalSearchListenerRequest, InternalSearchListenerResponse } from './internal-shapes';
|
|
2
|
-
import {
|
|
2
|
+
import { DeregisterListener, DispatchedAction, DispatchedSearchResult, Identity, RegisterListener, ScoreOrder, SearchProvider, SearchRequest, SearchResult } from './shapes';
|
|
3
3
|
export declare const defaultSearchTopic = "all";
|
|
4
4
|
/**
|
|
5
5
|
* The stream id that data is requested and transported back to the creator of a search topic on.
|
|
@@ -78,7 +78,7 @@ export declare function getProvider(namespacedTopic: string, id: string): Search
|
|
|
78
78
|
* @param result the original search result.
|
|
79
79
|
* @param action the action this search result is dispatched with.
|
|
80
80
|
*/
|
|
81
|
-
export declare function makeDispatchedSearchResult(result: SearchResult, dispatcherIdentity: Identity, actionParam?:
|
|
81
|
+
export declare function makeDispatchedSearchResult(result: SearchResult, dispatcherIdentity: Identity, actionParam?: DispatchedAction): DispatchedSearchResult;
|
|
82
82
|
/**
|
|
83
83
|
* Algorithm for aggregating search results.
|
|
84
84
|
*
|
|
@@ -3,5 +3,5 @@ import * as provider from './provider';
|
|
|
3
3
|
export declare const create: typeof provider.create;
|
|
4
4
|
export declare const subscribe: typeof client.subscribe;
|
|
5
5
|
export declare const defaultTopic = "all";
|
|
6
|
-
export type { SearchProviderResponse, SearchRequest, SearchTopicClient, SearchTopic, SearchProviderInfo, ScoreOrder, Action, SearchResult, SearchListenerRequest, SearchListenerResponse, UserInputListener, DispatchedSearchResult, ResultDispatchListener, SearchProvider, SearchTopicSubscribeRequest, SearchTag, SearchResponse } from './shapes';
|
|
6
|
+
export type { SearchProviderResponse, SearchRequest, SearchTopicClient, SearchTopic, SearchProviderInfo, ScoreOrder, Action, SearchResult, SearchListenerRequest, SearchListenerResponse, UserInputListener, DispatchedSearchResult, DispatchedAction, ResultDispatchListener, SearchProvider, SearchTopicSubscribeRequest, SearchTag, SearchResponse } from './shapes';
|
|
7
7
|
export { SearchTagBackground } from './shapes';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InternalSearchTopicContext } from '../internal-shapes';
|
|
2
|
-
import {
|
|
2
|
+
import { DispatchedAction, 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.
|
|
@@ -24,7 +24,7 @@ export declare function deregister(namespacedTopic: string, name: string): void;
|
|
|
24
24
|
* @param result the search result to dispatch back to the provider.
|
|
25
25
|
* @param action the action to dispatch the search result with.
|
|
26
26
|
*/
|
|
27
|
-
export declare function dispatch(namespacedTopic: string, providerId: string, result: SearchResult, action:
|
|
27
|
+
export declare function dispatch(namespacedTopic: string, providerId: string, result: SearchResult, action: DispatchedAction): Promise<void>;
|
|
28
28
|
/**
|
|
29
29
|
* Returns an extended search generator object.
|
|
30
30
|
* @param ctx the search topic context.
|
|
@@ -275,11 +275,32 @@ export interface SearchProviderInfo {
|
|
|
275
275
|
* Logo to show render when targeting this specific Search Provider.
|
|
276
276
|
*/
|
|
277
277
|
logoUrl?: string;
|
|
278
|
+
/**
|
|
279
|
+
* If set, focusing on a search result will trigger onResultDispatch callback.
|
|
280
|
+
*/
|
|
281
|
+
dispatchFocusEvents?: boolean;
|
|
278
282
|
}
|
|
279
283
|
/**
|
|
280
284
|
* The order to sort scored search results in.
|
|
281
285
|
*/
|
|
282
286
|
export declare type ScoreOrder = 'ascending' | 'descending';
|
|
287
|
+
/**
|
|
288
|
+
* The reason which triggered the search result dispatch callback.
|
|
289
|
+
*/
|
|
290
|
+
export declare enum ActionTrigger {
|
|
291
|
+
/**
|
|
292
|
+
* The search result dispatch was triggered with a regular user action (click, hotkey, etc.)
|
|
293
|
+
*/
|
|
294
|
+
UserAction = "user-action",
|
|
295
|
+
/**
|
|
296
|
+
* The search result was dispatched back because the user has focused on another search result.
|
|
297
|
+
*/
|
|
298
|
+
FocusChange = "focus-change",
|
|
299
|
+
/**
|
|
300
|
+
* The search result was dispatched back because there was a load error and the user requested a reload.
|
|
301
|
+
*/
|
|
302
|
+
Reload = "reload"
|
|
303
|
+
}
|
|
283
304
|
/**
|
|
284
305
|
* Each action is defined by its title and a hotkey
|
|
285
306
|
*/
|
|
@@ -500,6 +521,12 @@ export interface SearchResponse {
|
|
|
500
521
|
* @param response - EXPERIMENTAL - streaming response
|
|
501
522
|
*/
|
|
502
523
|
export declare type UserInputListener = (request: SearchListenerRequest, response: SearchListenerResponse) => Promise<SearchResponse>;
|
|
524
|
+
/**
|
|
525
|
+
* The triggered action that should be performed by the search provider.
|
|
526
|
+
*/
|
|
527
|
+
export declare type DispatchedAction = Action & {
|
|
528
|
+
trigger: ActionTrigger;
|
|
529
|
+
};
|
|
503
530
|
/**
|
|
504
531
|
* A search result that has been dispatched back to the {@link SearchProvider | SearchProvider's} `onResultDispatch` listener function.
|
|
505
532
|
* Contains the action that should be performed by the search provider.
|
|
@@ -521,7 +548,7 @@ export interface DispatchedSearchResult extends SearchResult {
|
|
|
521
548
|
/**
|
|
522
549
|
* The selected action for the search provider to perform.
|
|
523
550
|
*/
|
|
524
|
-
action:
|
|
551
|
+
action: DispatchedAction;
|
|
525
552
|
/**
|
|
526
553
|
* The OpenFin identity that dispatched this search result.
|
|
527
554
|
*/
|
package/store.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3298:(e,t,o)=>{o(5316)},3758:(e,t,o)=>{var r,n,i;!function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText"}(n||(n={})),function(e){e.MultiSelect="MultiSelect"}(i||(i={}))},7564:(e,t,o)=>{o(3298),o(3758),o(6114),o(2109)},6114:(e,t,o)=>{var r,n;o.d(t,{L:()=>r,T:()=>n}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(r||(r={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(n||(n={}))},2109:(e,t,o)=>{var r;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(r||(r={}))},7405:(e,t,o)=>{o.d(t,{Ml:()=>a,Dm:()=>s,Xl:()=>f,aB:()=>p});var r=o(6678);const n=r.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));var i=o(121);var a;!function(e){e.RegisterStorefrontProvider="register-storefront-provider",e.DeregisterStorefrontProvider="deregister-storefront-provider",e.GetStorefrontProviders="get-storefront-providers",e.HideStorefront="hide-storefront",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.ShowStorefront="show-storefront",e.CreateStorefrontWindow="create-storefront-window",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"}(a||(a={}));const s=function(e){let t;return()=>{if(!r.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await n;const o=await fin.InterApplicationBus.Channel.connect(e);return o.onDisconnection((async()=>{t=void 0})),o})().then((e=>e)).catch((o=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${o}`)}))),t}}("__of_workspace_protocol__"),d="isLaunchedViaLib",c=e=>{const t=new URL(e);return t.searchParams.append(d,"true"),t.toString()},p=async()=>{if(!await(0,i.JV)(i.iW))return(r.ZK||-1===navigator.userAgent.indexOf("Win"))&&await fin.Application.startFromManifest(c(r.aW)),fin.System.openUrlWithBrowser(c(r.GX))},f=async()=>(await p(),s())},5806:(e,t,o)=>{o.d(t,{q9:()=>r});var r,n,i,a=o(6678);!function(e){e.Workspace="openfin-browser"}(r||(r={})),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,a.AB,r.Workspace,r.Workspace},6678:(e,t,o)=>{var r;o.d(t,{sS:()=>n,Ax:()=>i,AB:()=>s,oC:()=>d,ZK:()=>c,GX:()=>p,aW:()=>f,u0:()=>u}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(r||(r={}));const n="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),a=i?window.origin:r.Local,s=n&&fin.me.uuid,d=n&&fin.me.name,c=(n&&fin.me.entityType,"prod"===r.Local),p=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),f="https://cdn.openfin.co/workspace/
|
|
1
|
+
(()=>{"use strict";var e={3298:(e,t,o)=>{o(5316)},3758:(e,t,o)=>{var r,n,i;!function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(n||(n={})),function(e){e.MultiSelect="MultiSelect"}(i||(i={}))},7564:(e,t,o)=>{o(3298),o(3758),o(6114),o(2109)},6114:(e,t,o)=>{var r,n;o.d(t,{L:()=>r,T:()=>n}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(r||(r={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(n||(n={}))},2109:(e,t,o)=>{var r;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(r||(r={}))},7405:(e,t,o)=>{o.d(t,{Ml:()=>a,Dm:()=>s,Xl:()=>f,aB:()=>p});var r=o(6678);const n=r.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));var i=o(121);var a;!function(e){e.RegisterStorefrontProvider="register-storefront-provider",e.DeregisterStorefrontProvider="deregister-storefront-provider",e.GetStorefrontProviders="get-storefront-providers",e.HideStorefront="hide-storefront",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.ShowStorefront="show-storefront",e.CreateStorefrontWindow="create-storefront-window",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"}(a||(a={}));const s=function(e){let t;return()=>{if(!r.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await n;const o=await fin.InterApplicationBus.Channel.connect(e);return o.onDisconnection((async()=>{t=void 0})),o})().then((e=>e)).catch((o=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${o}`)}))),t}}("__of_workspace_protocol__"),d="isLaunchedViaLib",c=e=>{const t=new URL(e);return t.searchParams.append(d,"true"),t.toString()},p=async()=>{if(!await(0,i.JV)(i.iW))return(r.ZK||-1===navigator.userAgent.indexOf("Win"))&&await fin.Application.startFromManifest(c(r.aW)),fin.System.openUrlWithBrowser(c(r.GX))},f=async()=>(await p(),s())},5806:(e,t,o)=>{o.d(t,{q9:()=>r});var r,n,i,a=o(6678);!function(e){e.Workspace="openfin-browser"}(r||(r={})),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,a.AB,r.Workspace,r.Workspace},6678:(e,t,o)=>{var r;o.d(t,{sS:()=>n,Ax:()=>i,AB:()=>s,oC:()=>d,ZK:()=>c,GX:()=>p,aW:()=>f,u0:()=>u}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(r||(r={}));const n="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),a=i?window.origin:r.Local,s=n&&fin.me.uuid,d=n&&fin.me.name,c=(n&&fin.me.entityType,"prod"===r.Local),p=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),f="https://cdn.openfin.co/workspace/8.1.0/app.json",g=e=>e.startsWith("http://")||e.startsWith("https://")?e:a+e,u=(g("https://cdn.openfin.co/workspace/8.1.0"),g("https://cdn.openfin.co/workspace/8.1.0"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&g(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&g(WORKSPACE_DOCS_CLIENT_URL),"8.1.0")},6532:(e,t,o)=>{o.d(t,{d9:()=>a});var r,n=o(6678);o(121);!function(e){e.Browser="Browser",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming"}(r||(r={}));const i=async(e,t)=>{const o={apiVersion:t.apiVersion||n.u0,componentName:e,componentVersion:n.u0,...t};fin.System.registerUsage({type:"workspace-licensing",data:o})},a=async e=>{i(r.Storefront,e)}},121:(e,t,o)=>{o.d(t,{iW:()=>d,JV:()=>c});var r,n,i=o(5806),a=o(6678);!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"}(r||(r={})),function(e){e.Shown="shown",e.BoundsChanged="bounds-changed",e.LayoutReady="layout-ready",e.EndUserBoundsChanging="end-user-bounds-changing",e.Blurred="blurred",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 s(e){if(!a.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)}a.oC,a.AB;r.Home,i.q9.Workspace,r.Dock,i.q9.Workspace,r.Storefront,i.q9.Workspace;const d={name:i.q9.Workspace,uuid:i.q9.Workspace};const c=e=>s(e).getOptions().then((()=>!0)).catch((()=>!1))},5316:(e,t,o)=>{var r,n,i;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(r||(r={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(n||(n={})),function(e){e.Active="active",e.Default="default"}(i||(i={}))}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r),o.d(r,{AppManifestType:()=>n.L,StorefrontTemplate:()=>n.T,deregister:()=>p,hide:()=>f,register:()=>c,show:()=>g});var e=o(6532),t=o(7405);o(7564);var n=o(6114);let i;const a=new Map,s=e=>{if(!a.has(e))throw new Error(`Storefront Provider with id ${e} is not registered`);return a.get(e)},d=async e=>{const o=await(0,t.Xl)();if(a.has(e.id))throw new Error(`Storefront provider with id ${e.id} already registered`);return a.set(e.id,e),(e=>{e.isStorefrontActionsRegistered||(e.isStorefrontActionsRegistered=!0,e.register(t.Ml.GetStorefrontProviderApps,(e=>s(e).getApps())),e.register(t.Ml.GetStorefrontProviderFooter,(e=>s(e).getFooter())),e.register(t.Ml.GetStorefrontProviderLandingPage,(e=>s(e).getLandingPage())),e.register(t.Ml.GetStorefrontProviderNavigation,(e=>s(e).getNavigation())),e.register(t.Ml.LaunchStorefrontProviderApp,(({id:e,app:t})=>s(e).launchApp(t))))})(o),o.dispatch(t.Ml.RegisterStorefrontProvider,e)},c=t=>(i=d(t),(0,e.d9)({allowed:!0}),i),p=async e=>{await i,a.delete(e);return(await(0,t.Xl)()).dispatch(t.Ml.DeregisterStorefrontProvider,e)},f=async()=>{await i,await(0,t.aB)(),await(async()=>(await(0,t.Dm)()).dispatch(t.Ml.HideStorefront,void 0))()},g=async()=>{await i,await(0,t.aB)(),await(async()=>(await(0,t.Dm)()).dispatch(t.Ml.ShowStorefront,null))()}})(),module.exports=r})();
|
|
2
2
|
//# sourceMappingURL=store.js.map
|
package/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","mappings":"iEAQO,IAAIA,EAOAC,
|
|
1
|
+
{"version":3,"file":"store.js","mappings":"iEAQO,IAAIA,EAOAC,EA+BAC,GArCX,SAAWF,GACPA,EAAsB,WAAI,aAD9B,CAEGA,IAAcA,EAAY,KAK7B,SAAWC,GAIPA,EAAqB,QAAI,UAIzBA,EAAoB,OAAI,SAIxBA,EAAkB,KAAI,OAItBA,EAAmB,MAAI,QAIvBA,EAAwB,WAAI,aAI5BA,EAAqB,QAAI,UAIzBA,EAAmB,MAAI,QA5B3B,CA6BGA,IAAgBA,EAAc,KAEjC,SAAWC,GAIPA,EAAiC,YAAI,cAJzC,CAKGA,IAAwBA,EAAsB,M,+DC3C1C,IAAIC,EAmBAC,E,yBAlBX,SAAWD,GAIPA,EAA0B,SAAI,WAI9BA,EAA0B,SAAI,WAI9BA,EAAsB,KAAI,OAI1BA,EAA0B,SAAI,WAhBlC,CAiBG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M,+BAA+BmH,uBAEnD,OAAOH,EAAoBV,IAAIa,IAe7BE,EAAmBpH,MAAOqH,IAC5B,MAAMpH,QAAgB,UACtB,GAAI8G,EAAoBI,IAAIE,EAASH,IACjC,MAAM,IAAInH,MAAM,+BAA+BsH,EAASH,yBAM5D,OAHIH,EAAoBO,IAAID,EAASH,GAAIG,GAhBR,CAACpH,IAC9BA,EAAQsH,gCAEZtH,EAAQsH,+BAAgC,EACxCtH,EAAQuH,SAAS,gCAA0CN,GAAOD,EAA4BC,GAAIO,YAClGxH,EAAQuH,SAAS,kCAA4CN,GAAOD,EAA4BC,GAAIQ,cACpGzH,EAAQuH,SAAS,uCAAiDN,GAAOD,EAA4BC,GAAIS,mBACzG1H,EAAQuH,SAAS,sCAAgDN,GAAOD,EAA4BC,GAAIU,kBACxG3H,EAAQuH,SAAS,kCAA2C,EAAGN,GAAAA,EAAIW,IAAAA,KAAUZ,EAA4BC,GAAIY,UAAUD,OAUvHE,CAA6B9H,GACtBA,EAAQ+H,SAAS,gCAA0CX,IAKzDG,EAAYH,IACrBP,EAA6BM,EAAiBC,IAC9C,QAAwB,CAAEY,SAAS,IAC5BnB,GAKEoB,EAAalI,MAAOmI,UACvBrB,EACNC,EAAoBqB,OAAOD,GAE3B,aADsB,WACPH,SAAS,kCAA4CG,IAM3DE,EAAOrI,gBACV8G,QACA,eC2CoB9G,iBAEJ,WACPgI,SAAS,yBAA8BzH,GD7ChD+H,IAKGC,EAAOvI,gBACV8G,QACA,eChDoB9G,iBACJ,WACPgI,SAAS,oBAA8B,MD+ChDQ,K","sources":["webpack://@openfin/workspace/./src/shapes/home.ts","webpack://@openfin/workspace/./src/shapes/store.ts","webpack://@openfin/workspace/./src/shapes/templates.ts","webpack://@openfin/workspace/../common/src/utils/channels.ts","webpack://@openfin/workspace/../common/src/api/protocol.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/../search-api/src/shapes.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/store.ts","webpack://@openfin/workspace/../common/src/api/storefront.ts"],"names":["CLIAction","CLITemplate","CLIFilterOptionType","AppManifestType","StorefrontTemplate","ButtonStyle","docLoadPromise","document","readyState","Promise","res","addEventListener","ChannelAction","getChannelClient","channelName","channelPromise","Error","async","channel","fin","InterApplicationBus","Channel","connect","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","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","type","data","registerStorefrontUsage","Storefront","WindowName","WindowEvent","getOFWindow","identity","Window","wrapSync","Home","Dock","providerOFIdentity","isWindowRunning","getOptions","SearchProviderResponseGeneratorState","ActionTrigger","SearchTagBackground","__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","registeredProviders","Map","getStorefrontProviderOrFail","id","has","registerInternal","provider","set","isStorefrontActionsRegistered","register","getApps","getFooter","getLandingPage","getNavigation","app","launchApp","registerChannelClientActions","dispatch","allowed","deregister","providerId","delete","hide","hideStorefront","show","showStorefront"],"sourceRoot":""}
|