@openfin/workspace 6.2.3 → 6.3.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.
Files changed (64) hide show
  1. package/client-api/src/home.d.ts +2 -1
  2. package/client-api/src/index.d.ts +10 -5
  3. package/client-api/src/notifications.d.ts +13 -0
  4. package/client-api/src/shapes/common.d.ts +5 -0
  5. package/client-api/src/shapes/home.d.ts +415 -0
  6. package/client-api/src/shapes/index.d.ts +7 -0
  7. package/client-api/src/shapes/notifications.d.ts +20 -0
  8. package/client-api/src/shapes/store.d.ts +467 -0
  9. package/client-api/src/{templates.d.ts → shapes/templates.d.ts} +0 -0
  10. package/client-api/src/{storefront.d.ts → store.d.ts} +2 -1
  11. package/client-api/src/{storefront.test.d.ts → store.test.d.ts} +0 -0
  12. package/client-api-platform/src/api/app-directory.d.ts +7 -0
  13. package/client-api-platform/src/api/browser/browser-module.d.ts +20 -0
  14. package/client-api-platform/src/api/browser/index.d.ts +26 -0
  15. package/client-api-platform/src/api/context-menu/browser-logo-handler.d.ts +3 -0
  16. package/client-api-platform/src/api/context-menu/browser-pagetab-handler.d.ts +3 -0
  17. package/client-api-platform/src/api/context-menu/browser-viewtab-handler.d.ts +3 -0
  18. package/client-api-platform/src/api/context-menu/index.d.ts +13 -0
  19. package/client-api-platform/src/api/index.d.ts +4 -0
  20. package/client-api-platform/src/api/pages/helper.d.ts +22 -0
  21. package/client-api-platform/src/api/pages/index.d.ts +30 -0
  22. package/client-api-platform/src/api/protocol.d.ts +51 -0
  23. package/client-api-platform/src/api/storage.d.ts +10 -0
  24. package/client-api-platform/src/api/theming.d.ts +5 -0
  25. package/client-api-platform/src/index.d.ts +3 -0
  26. package/client-api-platform/src/init/browser-window-focus.d.ts +19 -0
  27. package/client-api-platform/src/init/cleanup.d.ts +1 -0
  28. package/client-api-platform/src/init/custom-actions.d.ts +3 -0
  29. package/client-api-platform/src/init/index.d.ts +37 -0
  30. package/client-api-platform/src/init/override-callback.d.ts +4 -0
  31. package/client-api-platform/src/init/theming.d.ts +9 -0
  32. package/client-api-platform/src/init/utils.d.ts +33 -0
  33. package/client-api-platform/src/shapes.d.ts +1177 -0
  34. package/common/src/api/browser-protocol.d.ts +23 -0
  35. package/common/src/api/pages/attached.d.ts +100 -0
  36. package/common/src/api/pages/idb.d.ts +12 -0
  37. package/common/src/api/pages/legacy.d.ts +16 -0
  38. package/common/src/api/theming.d.ts +62 -0
  39. package/common/src/utils/context-menu.d.ts +12 -0
  40. package/common/src/utils/debounce.d.ts +16 -0
  41. package/common/src/utils/defer-show.d.ts +46 -0
  42. package/common/src/utils/global-context-menu.d.ts +3 -0
  43. package/common/src/utils/landing-page.d.ts +11 -0
  44. package/common/src/utils/merge-deep.d.ts +6 -0
  45. package/common/src/utils/page-tab-context-menu.d.ts +2 -0
  46. package/common/src/utils/route.d.ts +55 -0
  47. package/common/src/utils/shared-emitter.d.ts +10 -0
  48. package/common/src/utils/strings.d.ts +3 -0
  49. package/common/src/utils/theming.d.ts +57 -0
  50. package/home.d.ts +1 -0
  51. package/home.js +2 -0
  52. package/home.js.map +1 -0
  53. package/index.js +1 -1
  54. package/index.js.map +1 -1
  55. package/notifications.d.ts +1 -0
  56. package/notifications.js +593 -0
  57. package/notifications.js.LICENSE.txt +47 -0
  58. package/notifications.js.map +1 -0
  59. package/package.json +1 -1
  60. package/store.d.ts +1 -0
  61. package/store.js +2 -0
  62. package/store.js.map +1 -0
  63. package/client-api/src/logger.d.ts +0 -1
  64. package/client-api/src/shapes.d.ts +0 -883
@@ -0,0 +1,23 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ export declare const getWindowChannelId: (identity: OpenFin.Identity) => string;
3
+ export declare const getChannelClient: (identity: OpenFin.Identity) => Promise<import("openfin-adapter").ChannelClient>;
4
+ /**
5
+ * If the browser window is reloaded too quickly, runtime will
6
+ * respond that the channel provider has already been created.
7
+ * Hence, we retry a couple of times to make sure this does not occur.
8
+ * (Should only happen in local development)
9
+ */
10
+ export declare const createChannel: () => Promise<import("openfin-adapter").ChannelProvider>;
11
+ export interface AddToChannelRequest {
12
+ newChannelId: string;
13
+ selectedViews: OpenFin.Identity[];
14
+ }
15
+ export declare enum ChannelAction {
16
+ CloseBrowserWindow = "close-browser-window",
17
+ QuitPlatform = "quit-platform",
18
+ ClosePage = "close-page",
19
+ AddToChannel = "add-to-channel",
20
+ RemoveFromChannel = "remove-from-channel",
21
+ SavePage = "save-page",
22
+ DuplicatePage = "duplicate-page"
23
+ }
@@ -0,0 +1,100 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ import type { AttachedPage, AttachPagesToWindowPayload, DetachPagesFromWindowPayload, ReorderPagesForWindowPayload, SetActivePageForWindowPayload, UpdatePageForWindowPayload } from './shapes';
3
+ /**
4
+ * All of the remote procedures that can be called in the
5
+ * platform window's address space regarding attached pages.
6
+ */
7
+ export declare enum ChannelAction {
8
+ GetPages = "get-pages",
9
+ GetActivePageForWindow = "get-active-page-for-window",
10
+ AttachPagesToWindow = "attach-pages-to-window",
11
+ DetachPagesFromWindow = "detach-pages-from-window",
12
+ SetActivePageForWindow = "set-active-page-for-window",
13
+ RenamePage = "rename-page",
14
+ ReorderPagesForWindow = "reorder-pages-for-window",
15
+ UpdatePageForWindow = "update-page-for-window",
16
+ UpdatePagesWindowOptions = "update-pages-window-options",
17
+ IsDetachingPages = "is-detaching-pages",
18
+ IsActivePageChanging = "is-active-page-changing"
19
+ }
20
+ export declare enum EventType {
21
+ AttachedPagesToWindow = "attached-pages-to-window",
22
+ DetachedPagesFromWindow = "detached-pages-from-window"
23
+ }
24
+ export declare const getEventEmitter: (identity: OpenFin.Identity) => {
25
+ emit: (event: string | number, ...payload: any[]) => Promise<void>;
26
+ addListener: (event: string | number, listener: import("@common/utils/shared-emitter").Listener) => void;
27
+ removeListener: (event: string | number, listener: import("@common/utils/shared-emitter").Listener) => void;
28
+ once: (event: string | number, listener: import("@common/utils/shared-emitter").Listener) => void;
29
+ };
30
+ /**
31
+ * Get the pages attached to a window.
32
+ * @param identity the identity of the window to get the attached pages of.
33
+ * @returns the pages attached to the window.
34
+ */
35
+ export declare const getPages: (identity: OpenFin.Identity) => Promise<AttachedPage[]>;
36
+ /**
37
+ * Get the active attached page for the specified window.
38
+ * @param identity the window identity to get the active attached page of.
39
+ * @returns the active attached page for the window.
40
+ */
41
+ export declare const getActivePageForWindow: (identity: OpenFin.Identity) => Promise<AttachedPage>;
42
+ /**
43
+ * Set the active attached page for the specified window.
44
+ * @param identity the window identity to set the active attached page of.
45
+ */
46
+ export declare const setActivePageForWindow: (payload: SetActivePageForWindowPayload) => Promise<void>;
47
+ /**
48
+ * Attach a page to an open window.
49
+ * If the page is already attached to a window, an error will be thrown.
50
+ *
51
+ * @param payload the attach pages to window payload.
52
+ */
53
+ export declare const attachPagesToWindow: (payload: AttachPagesToWindowPayload) => Promise<void>;
54
+ /**
55
+ * Detach pages from the window they are currently attached to.
56
+ * A detached page will not have its views cleaned up.
57
+ *
58
+ * @param payload the detach pages from window payload.
59
+ */
60
+ export declare const detachPagesFromWindow: (payload: DetachPagesFromWindowPayload) => Promise<void>;
61
+ export interface RenamePagePayload {
62
+ /** The OF window identity the page is attached to. */
63
+ identity: OpenFin.Identity;
64
+ /** The id of the page to change the name of. */
65
+ pageId: string;
66
+ /** The new title of the page. */
67
+ newTitle: string;
68
+ }
69
+ /**
70
+ * Rename an attached page.
71
+ * The page must be attached to the specified window.
72
+ *
73
+ * @param page the page to rename.
74
+ */
75
+ export declare const renamePage: (payload: RenamePagePayload) => Promise<void>;
76
+ /**
77
+ * Reorder pages attached to an open window.
78
+ * @param payload the reorder pages for window payload.
79
+ */
80
+ export declare const reorderPagesForWindow: (payload: ReorderPagesForWindowPayload) => Promise<void>;
81
+ /**
82
+ * Update a page attached to a window.
83
+ * @param payload the update page for window payload.
84
+ */
85
+ export declare const updatePageForWindow: (payload: UpdatePageForWindowPayload) => Promise<void>;
86
+ /**
87
+ * Forces a window to save its attached page state to window options.
88
+ * @param identity the identity of the window to save the pages of in window options.
89
+ */
90
+ export declare const updatePagesWindowOptions: (identity: OpenFin.Identity) => Promise<void>;
91
+ /**
92
+ * Check if the window identity is currently detaching pages.
93
+ * @param identity the OF window identity to check.
94
+ */
95
+ export declare const isDetachingPages: (identity: OpenFin.Identity) => Promise<boolean>;
96
+ /**
97
+ * Check if the window identity is in the middle of changing active pages.
98
+ * @param identity the OF window identity to check.
99
+ */
100
+ export declare const isActivePageChanging: (identity: OpenFin.Identity) => Promise<boolean>;
@@ -0,0 +1,12 @@
1
+ import type { Page } from '../../../../common/src/api/pages/shapes';
2
+ export declare const store: import("idb-keyval").UseStore;
3
+ export declare function getPage(id: string): Promise<Page>;
4
+ export declare function getPageList(filter?: string): Promise<Page[]>;
5
+ export declare function createPage({ page }: {
6
+ page: any;
7
+ }): Promise<void>;
8
+ export declare function deletePage(id: string): Promise<void>;
9
+ export declare function updatePage({ pageId, page }: {
10
+ pageId: any;
11
+ page: any;
12
+ }): Promise<void>;
@@ -0,0 +1,16 @@
1
+ import type { AttachedPage, PageLayout } from '../../../../common/src/api/pages/shapes';
2
+ interface Workstack {
3
+ id: string;
4
+ name: string;
5
+ isReadOnly: boolean;
6
+ layout: PageLayout;
7
+ isActive: boolean;
8
+ }
9
+ export declare function convertWorkstackToAttachedPage({ id, name, ...rest }: Workstack & AttachedPage): AttachedPage;
10
+ /**
11
+ * Attempts to fix any misconfigurations in a list of attached pages.
12
+ * @param pages the pages to fix.
13
+ * @returns the fixed pages.
14
+ */
15
+ export declare const fixAttachedPages: (pages: AttachedPage[]) => AttachedPage[];
16
+ export {};
@@ -0,0 +1,62 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ import type { ThemePaletteSet } from '@openfin/ui-library';
3
+ export interface ComputedThemes extends Array<ComputedTheme> {
4
+ }
5
+ export interface ComputedTheme {
6
+ label: string;
7
+ logoUrl?: string;
8
+ theme: ThemePaletteSet;
9
+ }
10
+ export interface CustomThemes extends Array<CustomThemeOptions> {
11
+ }
12
+ export interface CustomThemeOptions {
13
+ label: string;
14
+ logoUrl?: string;
15
+ palette: CustomPaletteSet;
16
+ }
17
+ export interface DefaultPaletteSet {
18
+ brandPrimary: string;
19
+ brandSecondary: string;
20
+ backgroundPrimary: string;
21
+ }
22
+ export interface CustomPaletteSet extends DefaultPaletteSet {
23
+ functional1?: string;
24
+ functional2?: string;
25
+ functional3?: string;
26
+ functional4?: string;
27
+ functional5?: string;
28
+ functional6?: string;
29
+ functional7?: string;
30
+ functional8?: string;
31
+ functional9?: string;
32
+ functional10?: string;
33
+ statusSuccess?: string;
34
+ statusWarning?: string;
35
+ statusCritical?: string;
36
+ statusActive?: string;
37
+ inputBackground?: string;
38
+ inputColor?: string;
39
+ inputPlaceholder?: string;
40
+ inputDisabled?: string;
41
+ inputFocused?: string;
42
+ textDefault?: string;
43
+ textHelp?: string;
44
+ textInactive?: string;
45
+ background1?: string;
46
+ background2?: string;
47
+ background3?: string;
48
+ background4?: string;
49
+ background5?: string;
50
+ background6?: string;
51
+ }
52
+ /**
53
+ * computeThemes()
54
+ * Accepts the array of registered CustomThemes objects
55
+ * Creates a light and dark palette from a tempalte overriding with custom options
56
+ * Uses createTheme to build theme object
57
+ * Creates a ThemePaletteSet
58
+ * @param customPalettes
59
+ * @returns theme object ready to be applied to the UI
60
+ */
61
+ export declare const computeThemes: (customPalettes: CustomThemes) => ComputedThemes;
62
+ export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ import { _Window } from 'openfin-adapter/src/api/window';
3
+ export declare enum MenuItemType {
4
+ Label = "normal",
5
+ Separator = "separator",
6
+ Submenu = "submenu",
7
+ Checkbox = "checkbox"
8
+ }
9
+ export declare type ShowContextMenuResponse = OpenFin.MenuResult & {
10
+ data: string;
11
+ };
12
+ export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: _Window): Promise<ShowContextMenuResponse>;
@@ -0,0 +1,16 @@
1
+ declare const makeDebouncedFunc: <T extends (...args: any[]) => Promise<any>>(func: T, debounceTimeout?: number) => T;
2
+ /**
3
+ * Debounce a specified function.
4
+ *
5
+ * When the debounced function is called, the underlying wrapped function
6
+ * will be called.
7
+ *
8
+ * If the function is called again while the promise returned by the wrapped
9
+ * function is still resolving, the call will be blocked until the promise has
10
+ * resolved.
11
+ *
12
+ * Once the promise has been resolved, the wrapped function will be called again
13
+ * after a specified debounce timeout.
14
+ *
15
+ */
16
+ export default makeDebouncedFunc;
@@ -0,0 +1,46 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ interface InternalWindowOptions extends OpenFin.PlatformWindowCreationOptions {
3
+ workspacePlatform: OpenFin.WindowOptions['workspacePlatform'] & {
4
+ _internalAutoShow: boolean;
5
+ _internalDeferShowEnabled: boolean;
6
+ };
7
+ }
8
+ /**
9
+ * This function prevents a created window from being auto shown by the Core.
10
+ * The Core will auto show the window before the window has a chance to register a listener to prevent it.
11
+ * With these options applied, the window must call `setCanShow(true)` when it is ready to be shown.
12
+ * If `autoShow` was originally true, the window will be show upon the first call to `setCanShow(true)`.
13
+ *
14
+ * By applying these options it is assumed that the window calls `registerDeferShow()` and `setCanShow(true)`.
15
+ *
16
+ * This function should be used in conjunction the `withDeferShow` platform middleware.
17
+ * `withDeferShow` will prevent the window from being shown before the window has launched and registered
18
+ * its show requested listener.
19
+ *
20
+ * @param opts the options to modify.
21
+ * @returns the modified options.
22
+ */
23
+ export declare const applyDeferShowOptions: (opts: OpenFin.PlatformWindowCreationOptions) => InternalWindowOptions;
24
+ /**
25
+ * This function is a middleware that can be applied to a platform's `createWindow` function.
26
+ * If the defer show API has been enabled in window options using the `applyDeferShowOptions` function
27
+ * the window will be prevented from showing.
28
+ * @param superCreateWindow the create window method to decorate.
29
+ * @returns the `createWindow` method wrapped with this middleware.
30
+ */
31
+ export declare const withDeferShow: (superCreateWindow: (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity: OpenFin.Identity) => Promise<OpenFin.Window>) => (opts: OpenFin.PlatformWindowCreationOptions, callerIdentity?: OpenFin.Identity) => Promise<import("openfin-adapter").Window>;
32
+ /**
33
+ * Assert if the window is able to be shown or not.
34
+ * Upon calling `setCanShow(true)`, if the window was previously prevented
35
+ * from being shown, this function will show the window.
36
+ * @param bool true if the window should be able to be shown. (Default is false)
37
+ */
38
+ export declare const setCanShow: (bool: boolean) => Promise<void>;
39
+ /**
40
+ * Add a listener that defers showing the current window.
41
+ * To allow the window to be shown, `setCanShow(true)` must be called.
42
+ * Upon calling `setCanShow(true)`, if the window was previously prevented
43
+ * from being shown, it will show.
44
+ */
45
+ export declare const registerDeferShow: () => Promise<void>;
46
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NamedIdentity } from 'openfin-adapter/src/identity';
2
+ import { GlobalContextMenuItemTemplate } from '../../../client-api-platform/src/shapes';
3
+ export declare const getGlobalContextMenuTemplate: (winIdentity: NamedIdentity) => Promise<GlobalContextMenuItemTemplate[]>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="openfin-adapter/fin" />
2
+ import { NamedIdentity } from 'openfin-adapter/src/identity';
3
+ interface LandingPageUrls {
4
+ newPageUrl: string | false;
5
+ newTabUrl: string | false;
6
+ }
7
+ export declare const getLandingPageUrls: (winIdentity?: NamedIdentity) => Promise<LandingPageUrls>;
8
+ export declare const checkHasNewTabUrl: () => Promise<boolean>;
9
+ export declare const getNewLandingTabViewOptions: (target: OpenFin.Identity) => Promise<OpenFin.PlatformViewCreationOptions>;
10
+ export declare const makeNewLandingPage: (winIdentity?: NamedIdentity) => Promise<import("@client-platform/shapes").PageWithUpdatableRuntimeAttribs>;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Deep merge a set of source objects into a single target object.
3
+ * @param target the target object to merge sources into.
4
+ * @param sources the source objects to merge into the target. (FIFO)
5
+ */
6
+ export declare function mergeDeep(target: any, ...sources: any[]): any;
@@ -0,0 +1,2 @@
1
+ import { PageTabContextMenuItemTemplate } from '../../../client-api-platform/src/shapes';
2
+ export declare const getPageTabMenuTemplate: (saved: boolean) => PageTabContextMenuItemTemplate[];
@@ -0,0 +1,55 @@
1
+ /**
2
+ * All routes that serve HTML pages for the app.
3
+ * Routes should include the zone the the HTML page is a part of.
4
+ * Make sure to include trailing slash, as it is essential for deployed version to route correctly.
5
+ */
6
+ export declare enum PageRoute {
7
+ HomeIndex = "/home/",
8
+ HomeSearch = "/home/search/",
9
+ HomePagesRename = "/home/pages/rename/",
10
+ Dock = "/home/dock/",
11
+ BrowserPagesLanding = "/browser/pages/landing/",
12
+ HomeIndicator = "/home/indicator/",
13
+ Browser = "/browser/",
14
+ BrowserPopupMenu = "/browser/popup-menu/",
15
+ Provider = "/provider/",
16
+ BrowserPopupMenuSharePage = "/browser/popup-menu/share-page/",
17
+ BrowserPopupMenuSavePage = "/browser/popup-menu/save-page/",
18
+ BrowserPopupMenuLayouts = "/browser/popup-menu/layouts/layouts/",
19
+ BrowserPopupMenuColorLinking = "/browser/popup-menu/color-linking/color-linking/",
20
+ BrowserIndicator = "/browser/indicator/",
21
+ ResponseModal = "/browser/popup-menu/response-modal/",
22
+ Docs = "/provider/docs/",
23
+ Storefront = "/storefront/",
24
+ DeprecatedAlert = "/provider/deprecated-alert/"
25
+ }
26
+ /**
27
+ * All routes that serve assets. (icons, json, etc.)
28
+ */
29
+ export declare enum AssetRoute {
30
+ IconOpenFinLogo = "/icons/openfinlogo.svg",
31
+ IconFilter = "/icons/filter.svg"
32
+ }
33
+ declare const _default: {
34
+ HomeIndex: PageRoute.HomeIndex;
35
+ HomeSearch: PageRoute.HomeSearch;
36
+ HomePagesRename: PageRoute.HomePagesRename;
37
+ Dock: PageRoute.Dock;
38
+ BrowserPagesLanding: PageRoute.BrowserPagesLanding;
39
+ HomeIndicator: PageRoute.HomeIndicator;
40
+ Browser: PageRoute.Browser;
41
+ BrowserPopupMenu: PageRoute.BrowserPopupMenu;
42
+ Provider: PageRoute.Provider;
43
+ BrowserPopupMenuSharePage: PageRoute.BrowserPopupMenuSharePage;
44
+ BrowserPopupMenuSavePage: PageRoute.BrowserPopupMenuSavePage;
45
+ BrowserPopupMenuLayouts: PageRoute.BrowserPopupMenuLayouts;
46
+ BrowserPopupMenuColorLinking: PageRoute.BrowserPopupMenuColorLinking;
47
+ BrowserIndicator: PageRoute.BrowserIndicator;
48
+ ResponseModal: PageRoute.ResponseModal;
49
+ Docs: PageRoute.Docs;
50
+ Storefront: PageRoute.Storefront;
51
+ DeprecatedAlert: PageRoute.DeprecatedAlert;
52
+ IconOpenFinLogo: AssetRoute.IconOpenFinLogo;
53
+ IconFilter: AssetRoute.IconFilter;
54
+ };
55
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export declare type Listener = (...args: any[]) => void;
2
+ /**
3
+ * Creates an event emitter that is shared between all windows within the same domain.
4
+ */
5
+ export default function makeSharedEmitter<E extends string | number, L extends Listener>(id: string): {
6
+ emit: (event: E, ...payload: any[]) => Promise<void>;
7
+ addListener: (event: E, listener: L) => void;
8
+ removeListener: (event: E, listener: L) => void;
9
+ once: (event: E, listener: L) => void;
10
+ };
@@ -0,0 +1,3 @@
1
+ export declare const capitalize: (s: string) => string;
2
+ export declare const pascalize: (s: string) => string;
3
+ export declare const isStringMatchesQuery: (title: string, query?: string) => boolean;
@@ -0,0 +1,57 @@
1
+ import { CustomPaletteSet } from '../../../common/src/api/theming';
2
+ /**
3
+ * Get hue from a CSS color
4
+ *
5
+ * The getHue function is used manage extracting hue from 3 types of css
6
+ * string input types. An object including hue, hsl, hsla, lightness and
7
+ * saturation are returned.
8
+ *
9
+ * Each function was copied css tricks and modified to fit this platform.
10
+ * Links above each function for technical details.
11
+ *
12
+ * Allowed formats:
13
+ * RGB with or with out the alpha rgb(x,x,x) or rgba(x,x,x,x)
14
+ * HEX 3 or 6 characters, plus hashtag #333 or #333333
15
+ * HSL with or with out the alhpa hsl(x,x%,x%) or hsla(x,x%,x%,x)
16
+ *
17
+ * The hue value is used later to build an array of background colors in the
18
+ * theme that are various shades of the hue returned from this function.
19
+ *
20
+ * An invalid format should error telling the integrator how to fix the error.
21
+ * - Error for missing required options
22
+ * - Error for invalid css strings that are unable to be processed
23
+ *
24
+ * @param colorInput string - Supported formats rgb/RGB/rgba/RGBA, #000/#000000, hsl/HSL/hsla/HSLA
25
+ * @returns hue as string
26
+ */
27
+ export declare const getHue: (colorInput: string) => string;
28
+ export declare const makeBackgroundLayers: (hue: string) => {
29
+ light: {
30
+ background1: string;
31
+ background2: string;
32
+ background3: string;
33
+ background4: string;
34
+ background5: string;
35
+ background6: string;
36
+ };
37
+ dark: {
38
+ background1: string;
39
+ background2: string;
40
+ background3: string;
41
+ background4: string;
42
+ background5: string;
43
+ background6: string;
44
+ };
45
+ };
46
+ /**
47
+ * makePalette() - generic - doesn't care about scheme
48
+ *
49
+ * Accepts a default palette object, and a custom palette object.
50
+ * The default object gets overrides from customPalette and returns a new palette object.
51
+ * @param defaultPalette
52
+ * @param customPalette
53
+ * @returns { light: newPalette, dark: newPalette }
54
+ *
55
+ * TODO: DefaultPaletteSet isn't working, need to redo.
56
+ */
57
+ export declare const makePalette: (defaultPalette: any, customPalette: CustomPaletteSet) => CustomPaletteSet;
package/home.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './client-api/src/home';
package/home.js ADDED
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e={3298:(e,t,n)=>{n(5316)},3758:(e,t,n)=>{var o,r,i;n.d(t,{Pt:()=>o,yW:()=>r,el:()=>i}),function(e){e.Suggestion="suggestion"}(o||(o={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText"}(r||(r={})),function(e){e.MultiSelect="MultiSelect"}(i||(i={}))},7564:(e,t,n)=>{n(3298),n(3758),n(6114),n(2109)},6114:(e,t,n)=>{var o,r;!function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(o||(o={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(r||(r={}))},2109:(e,t,n)=>{var o;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(o||(o={}))},7405:(e,t,n)=>{n.d(t,{Ml:()=>s,Xl:()=>f,aB:()=>u});var o=n(6678);const r=o.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));var i=n(121);var s;!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"}(s||(s={}));const c=function(e){let t;return()=>{if(!o.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await r;const n=await fin.InterApplicationBus.Channel.connect(e);return n.onDisconnection((async()=>{t=void 0})),n})().then((e=>e)).catch((n=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${n}`)}))),t}}("__of_workspace_protocol__"),a="isLaunchedViaLib",d=e=>{const t=new URL(e);return t.searchParams.append(a,"true"),t.toString()},u=async()=>{if(!await(0,i.JV)(i.iW))return(o.ZK||-1===navigator.userAgent.indexOf("Win"))&&await fin.Application.startFromManifest(d(o.aW)),fin.System.openUrlWithBrowser(d(o.GX))},f=async()=>(await u(),c())},5806:(e,t,n)=>{n.d(t,{q9:()=>o});var o,r,i,s=n(6678);!function(e){e.Workspace="openfin-browser"}(o||(o={})),function(e){e.RunRequested="run-requested",e.WindowOptionsChanged="window-options-changed",e.WindowClosed="window-closed",e.WindowCreated="window-created"}(r||(r={})),function(e){e.FinProtocol="fin-protocol"}(i||(i={}));s.AB,s.AB,o.Workspace,o.Workspace},6678:(e,t,n)=>{var o;n.d(t,{sS:()=>r,Ax:()=>i,AB:()=>c,oC:()=>a,ZK:()=>d,GX:()=>u,aW:()=>f}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(o||(o={}));const r="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),s=i?window.origin:o.Local,c=r&&fin.me.uuid,a=r&&fin.me.name,d=(r&&fin.me.entityType,"prod"===o.Local),u=(o.Dev,o.Staging,o.Prod,"fins://system-apps/workspace"),f="https://cdn.openfin.co/workspace/6.3.1/app.json",l=e=>e.startsWith("http://")||e.startsWith("https://")?e:s+e;l("https://cdn.openfin.co/workspace/6.3.1"),l("https://cdn.openfin.co/workspace/6.3.1"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&l(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&l(WORKSPACE_DOCS_CLIENT_URL)},121:(e,t,n)=>{n.d(t,{iW:()=>a,JV:()=>d});var o,r,i=n(5806),s=n(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"}(o||(o={})),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"}(r||(r={}));function c(e){if(!s.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)}s.oC,s.AB;o.Home,i.q9.Workspace,o.Dock,i.q9.Workspace,o.Storefront,i.q9.Workspace;const a={name:i.q9.Workspace,uuid:i.q9.Workspace};const d=e=>c(e).getOptions().then((()=>!0)).catch((()=>!1))},5316:(e,t,n)=>{var o,r;n.d(t,{D:()=>o}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(o||(o={})),function(e){e.Active="active",e.Default="default"}(r||(r={}))}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{CLIAction:()=>Ne.Pt,CLIFilterOptionType:()=>Ne.el,CLITemplate:()=>Ne.yW,deregister:()=>ze,hide:()=>Ye,register:()=>Ze,show:()=>Qe});var e={};n.r(e),n.d(e,{subscribe:()=>ne});var t={};n.r(t),n.d(t,{create:()=>$e});var r=n(7405);const i="home";var s;!function(e){e.Commands="home-commands"}(s||(s={}));var c,a=n(5806);n(7564);!function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(c||(c={}));const d="all",u="0",f="5",l="6",p=()=>{};function g(e,t){return e?`${e}-${t}`:t}function w(e){return`__search-${e}-topic__`}const h=new Map;function y(e,t){h.has(e)||h.set(e,new Set),h.get(e).add(t)}function v(e,t){const n=h.get(e);n&&n.delete(t)}const m=new Map;function S(e,t){m.has(e)||m.set(e,new Set),m.get(e).add(t)}function C(e,t){const n=m.get(e);n&&n.delete(t)}const R=new Map;async function b(e,t){R.has(e)||R.set(e,new Map),R.get(e).set(t.id,t);const n=h.get(e);if(!n)return;const o=[...n].map((e=>e()));await Promise.all(o)}async function P(e,t){const n=R.get(e);if(!n)return;n.delete(t);const o=m.get(e);if(!o)return;const r=[...o].map((e=>e()));await Promise.all(r)}function I(e){return R.get(e)?[...R.get(e).values()]:[]}function k(e){const t=R.get(e);t&&t.clear()}function O(e,t){const n=R.get(e);return n?n.get(t):null}function x(e,t,n){return{...e,action:n||e.actions[0],dispatcherIdentity:t}}function B(e,t,n="ascending"){const o=e||[];if(!t?.length)return o;const r=[],i=new Map;t.forEach((e=>{if(e.key)return i.set(e.key,e);r.push(e)}));let s=o.map((e=>{const{key:t}=e;if(t&&i.has(t)){const e=i.get(t);return i.delete(t),e}return e}));return s.push(...i.values(),...r),s="ascending"===n?s.sort(((e,t)=>(null!==e.score&&void 0!==e.score?e.score:1/0)-(null!==t.score&&void 0!==t.score?t.score:1/0))):s.sort(((e,t)=>(null!==t.score&&void 0!==t.score?t.score:1/0)-(null!==e.score&&void 0!==e.score?e.score:1/0))),s}function L(e){const t={};let n=[];let o=[];let r=c.Initial;t.getStatus=()=>r,t.getResultBuffer=()=>n,t.setResultBuffer=e=>{n=e,n?.length&&t.onChange()},t.getRevokedBuffer=()=>o,t.setRevokedBuffer=e=>{o=e,o?.length&&t.onChange()},t.onChange=p;const i={};return t.res=i,i.close=()=>{r!==c.Close&&(r=c.Close,t.onChange())},i.open=()=>{r!==c.Open&&(r=c.Open,t.onChange())},i.respond=n=>{const o=B(t.getResultBuffer(),n,e);t.setResultBuffer(o)},i.revoke=(...e)=>{const n=new Set(e),o=t.getResultBuffer().filter((({key:e})=>{const t=n.has(e);return t&&n.delete(e),!t}));t.setResultBuffer(o),n.size&&(t.getRevokedBuffer().forEach((e=>n.add(e))),t.setRevokedBuffer([...n]))},t}function D(e,t,n){const o=new Set;let r=!1;return{close:()=>{r=!0;for(const e of o)e()},req:{id:t,topic:e,...n,context:n?.context||{},onClose:e=>{o.add(e),r&&e()},removeListener:e=>{o.delete(e)}}}}function T(){return{name:fin.me.name,uuid:fin.me.uuid}}function W(){let e;try{const t=fin.Platform.getCurrentSync();if(!t?.identity)return;e=t.identity.uuid}catch(e){}return e}const E="deregistered or does not exist",M=new Error(`provider ${E}`),A=new Error("provider with name already exists"),_=new Error("bad payload"),q=new Error("subscription rejected"),$=new Error(`channel ${E}`),F=new Map;function U(e){const t=G(e);if(t)return t;throw $}function G(e){const t=F.get(e);if(t)return t}function H(e,t){F.set(e,t)}const V=new Map;function K(e){V.has(e)||V.set(e,new Map);const t=V.get(e);return{getRequestsForIdentity:e=>{const n=function(e){return`${e.uuid}:${e.name}`}(e);return t.has(n)||t.set(n,new Map),t.get(n)}}}async function j(e,t){return(await U(e)).dispatch(u,t)}function X({namespacedTopic:e,topic:t}){const n=O.bind(null,e),o=K(e),r=j.bind(null,e);return async(e,i)=>{if(!e||!e.id||!e.providerId){const e=_;return{error:e.message}}const{id:s,providerId:c}=e,a=n(c);if(!a){const e=M;return{error:e.message}}const d=o.getRequestsForIdentity(i);let u=d.get(e.id);u||(u=D(t,s,e),d.set(e.id,u));const f=L(),l=()=>{const e=f.getResultBuffer();f.setResultBuffer([]);const t=f.getRevokedBuffer();f.setRevokedBuffer([]);const n=f.getStatus();r({id:s,providerId:c,results:e,revoked:t,status:n})};let p=!0,g=!1;f.onChange=()=>{if(p)return p=!1,void l();g||(g=!0,setTimeout((()=>{g=!1,l()}),100))};try{const{results:e,context:t}=await a.onUserInput(u.req,f.res),n=f.getStatus();return{id:s,providerId:c,status:n,results:e,context:t}}catch(e){return{id:s,providerId:c,error:e.message}}}}async function J(e,t,n){const o=n||await U(e),r=T(),i={identity:r,...t,onUserInput:void 0,onResultDispatch:void 0};await o.dispatch("2",i),await b(e,{identity:r,...t})}async function N(e,t){const n=await U(e);return await n.dispatch("3",t),P(e,t)}async function Z(e,t,n,o){const r=x(n,T(),o),i=O(e,t);if(i){const{onResultDispatch:e}=i;if(!e)return;return e(r)}const s={providerId:t,result:r};return(await U(e)).dispatch(f,s)}async function z(e,t){const n={...t,context:t?.context||{}},o={},r=async function*(e,t,{setState:n}){const o=await U(e);for(;;){const e=await o.dispatch("1",t),r=e.error;if(r)throw new Error(r);const i=e;if(t.id=i.id,n(i.state),i.done)return i.value;yield i.value}}(e,n,{setState:e=>{o.state=e}});let i=await r.next();return o.id=n.id,o.close=()=>{!async function(e,t){(await U(e)).dispatch(l,{id:t})}(e,o.id)},o.next=()=>{if(i){const e=i;return i=void 0,e}return r.next()},o}async function Q(e){return(await U(e)).dispatch("4",null)}async function Y(e){const t=await U(e);var n;n=e,F.delete(n),k(e),await t.disconnect()}function ee(e){const{namespacedTopic:t}=e,n=K(t);return async o=>{if(!G(t))return;const r=n.getRequestsForIdentity(o);for(const{req:e,close:t}of r.values())t(),r.delete(e.id);H(t,(async e=>{const{namespacedTopic:t}=e,n=await te(e);for(const e of I(t))await J(t,e,n);return n})(e))}}async function te(e){const{namespacedTopic:t}=e,n=w(t),o=await async function(e){for(let t=0;t<50;t++)try{return await fin.InterApplicationBus.Channel.connect(e,{wait:!1})}catch(e){if(49===t)throw e;await new Promise((e=>setTimeout(e,1e3)))}}(n);return o.register(u,X(e)),o.register(l,function(e){const t=K(e);return(e,n)=>{const o=t.getRequestsForIdentity(n),r=o.get(e.id);r&&(r.close(),o.delete(e.id))}}(t)),o.register(f,function(e){return async(t,n)=>{if(!t||!t.providerId||!t.result)return;const o=O(e,t.providerId);if(!o)return;const{onResultDispatch:r}=o;return r?(t.result.dispatcherIdentity=n,r(t.result)):void 0}}(t)),o.onDisconnection(ee(e)),o}async function ne(e){const t=("string"==typeof e?e:e?.topic)||d,n=("string"==typeof e?null:e?.uuid)||W(),o=g(n,t),r={topic:t,namespace:n,namespacedTopic:o};let i=G(o);return i||(i=te(r),H(o,i),await i),{getAllProviders:Q.bind(null,o),register:J.bind(null,o),search:z.bind(null,o),deregister:N.bind(null,o),dispatch:Z.bind(null,o),disconnect:Y.bind(null,o)}}const oe=new Map;function re(e){const t=ie(e);if(t)return t;throw $}function ie(e){const t=oe.get(e);if(t)return t}const se=new Map;function ce(e,t){se.has(e)||se.set(e,new Set),se.get(e).add(t)}function ae(e,t){const n=se.get(e);n&&n.delete(t)}var de=n(5316);function ue(e){return[...I(e)].map((e=>({...e,onUserInput:void 0,onResultDispatch:void 0})))}async function fe(e,t){if(O(e,t.id))throw new Error("provider with name already exists");const n=T();await b(e,{identity:n,...t})}function le(e,t){P(e,t)}async function pe(e,t,n,o){const r=O(e,t);if(!r)throw M;const{onResultDispatch:i}=r;if(!i)return;return i(x(n,T(),o))}async function*ge(e,t,n){const o=function(e,t){const n=[],o=[],r=[],i=[];for(const s of e){const e=L(s.scoreOrder),c={results:[],provider:{id:s.id,identity:s.identity,title:s.title,scoreOrder:s.scoreOrder,icon:s.icon}};n.push(c),o.push(e);const a=(async()=>{try{const{results:n,context:o}=await s.onUserInput(t,e.res);c.results=B(c.results,n),c.context={...c.context,...o}}catch(e){c.error=e}a.done=!0})();i.push(a),r.push(r.length)}return{providerResponses:n,listenerResponses:o,openListenerResponses:r,initialResponsePromises:i}}(t.targets?t.targets.map((t=>O(e,t))).filter((e=>!!e)):[...I(e).filter((e=>!e.hidden))],t),{providerResponses:r,listenerResponses:i}=o;let{openListenerResponses:s,initialResponsePromises:a}=o,d=de.D.Fetching;const u=e=>{d=e,n.setState(d)};let f,l=!1;t.onClose((()=>{l=!0,f&&f()}));do{let e=!1;if(a.length){const t=[];for(const n of a)n.done?e=!0:t.push(n);a=t,a.length||(u(de.D.Fetched),e=!0)}let t,n=!1;const o=()=>{n=!0,t&&t()},p=[];for(const t of s){const n=i[t],s=r[t],a=n.getStatus();(a===c.Open||d===de.D.Fetching&&a===c.Initial)&&(p.push(t),n.onChange=o);const u=n.getResultBuffer();u.length&&(n.setResultBuffer([]),s.results=B(s.results,u),e=!0);const f=n.getRevokedBuffer();if(f.length){n.setRevokedBuffer([]);const t=new Set(f);s.results=s.results.filter((({key:e})=>!t.has(e))),e=!0}}if(s=p,e&&(yield r),l)break;n||(s.length||a.length)&&await Promise.race([...a,new Promise((e=>{t=e})),new Promise((e=>{f=e}))])}while(s.length||a.length);return u(de.D.Complete),r}let we=0;function he({namespacedTopic:e,topic:t},n){we+=1;const o=D(t,we.toString(),n),r=ge(e,o.req,{setState:e=>{r.state=e}});return r.id=we.toString(),r.close=o.close,r.state=de.D.Fetching,r}const ye=new Map;function ve(e,t){return`${e}:${t}`}function me(e){return async(t,...n)=>{if(!t)return{error:_.message};let o;if(t.id)o=ve(e.namespacedTopic,t.id);else{const n=he(e,t);o=ve(e.namespacedTopic,n.id),t.id=n.id,ye.set(o,{generator:n})}const r=ye.get(o);clearTimeout(r.timeout);const i=await r.generator.next();return r.timeout=function(e){return window.setTimeout((()=>{ye.delete(e)}),1e4)}(o),{...i,id:t.id,state:r.generator.state}}}function Se(e,t,n){return re(e).dispatch(t,l,{id:n})}function Ce(e){return t=>function(e,t){const n=ve(e,t),o=ye.get(n);o&&o.generator.close()}(e,t.id)}async function Re(e,t,{id:n,query:o,context:r,targets:i}){const s=re(e),c={id:n,query:o,context:r,targets:i,providerId:t.id},a=await s.dispatch(t.identity,u,c),d=a.error;if(d)throw new Error(d);return a}const be=new Map;function Pe(e,t,n){return`${e}:${t.name}:${t.uuid}:${n}`}const Ie=new Map;function ke(e,t,n){return`${e}:${t}:${n}`}function Oe(e,t){const n=Pe.bind(null,e,t.identity),o=Se.bind(null,e,t.identity),r=Re.bind(null,e,t);return async(i,s)=>{const a=n(i.id);if(!be.has(a)){const e=()=>{o(i.id),be.delete(a)};be.set(a,e),i.onClose(e)}const d=ke(e,t.id,i.id),u=()=>{Ie.delete(d),s.close()};i.onClose(u),Ie.set(d,(e=>{e.results?.length&&s.respond(e.results),e.revoked?.length&&s.revoke(...e.revoked),e.status===c.Open&&s.open(),e.status===c.Close&&u()}));const f=await r(i);return f.status===c.Open&&s.open(),f.status!==c.Close&&f.status!==c.Initial||u(),f}}function xe(e,t){return async n=>{const o=re(e),r={providerId:t.id,result:n};return o.dispatch(t.identity,f,r)}}const Be=new Map;function Le(e,t){return`${e}-${t.name}-${t.uuid}`}function De(e){return async(t,n)=>{if(!t||!t.id)return void new Error(JSON.stringify(t));if(O(e,t.id))throw A;t.identity=n,await async function(e,t){const n=Le(e,t.identity);Be.has(n)||Be.set(n,[]),Be.get(n).push(t.id),await b(e,{...t,onUserInput:Oe(e,t),onResultDispatch:xe(e,t)})}(e,t)}}function Te(e){return t=>{t&&function(e,t){const n=O(e,t);if(!n)return;const o=Le(e,n.identity),r=Be.get(o);if(r){const n=r.findIndex((e=>e===t));-1!==n&&(r.splice(n,1),P(e,t))}}(e,t)}}const We=new Map;function Ee(e,t){We.has(e)||We.set(e,new Set),We.get(e).add(t)}function Me(e,t){const n=We.get(e);n&&n.delete(t)}function Ae(e){return async t=>{!function(e,t){const n=Le(e,t),o=Be.get(n);if(o){for(const t of o)P(e,t);Be.delete(n)}}(e,t);const n=We.get(e);n&&n.forEach((e=>e(t)))}}async function _e(e){const{namespacedTopic:t}=e,n=w(e.namespacedTopic),o=await(r=n,fin.InterApplicationBus.Channel.create(r));var r;return o.onConnection(function({namespacedTopic:e}){return async t=>{const n=se.get(e);if(n)for(const e of n)if(!await e(t))throw q}}(e)),o.onDisconnection(Ae(t)),o.register(l,Ce(t)),o.register(u,function(e){return t=>{const n=ke(e,t.providerId,t.id),o=Ie.get(n);o&&o(t)}}(t)),o.register("2",De(t)),o.register("3",Te(t)),o.register("4",function(e){return async()=>ue(e)}(t)),o.register("1",me(e)),o.register(f,function(e){return async(t,n)=>{if(!t||!t.providerId||!t.result)return;const o=O(e,t.providerId);if(!o)throw M;const{onResultDispatch:r}=o;return r?(t.result.dispatcherIdentity=n,r(t.result)):void 0}}(t)),o}async function qe(e){const t=re(e);var n;n=e,oe.delete(n),await t.destroy(),k(e)}async function $e(e){const t=("string"==typeof e?e:e?.topic)||d,n=W(),o=g(n,t),r={topic:t,namespace:n,namespacedTopic:o};let i=ie(o);i||(i=await _e(r),function(e,t){oe.set(e,t)}(o,i));const s=ae.bind(null,o),c=Me.bind(null,o),a=v.bind(null,o),u=C.bind(null,o);return{getAllProviders:ue.bind(null,o),search:he.bind(null,r),register:fe.bind(null,o),deregister:le.bind(null,o),onSubscription:ce.bind(null,o),onDisconnect:Ee.bind(null,o),onRegister:y.bind(null,o),onDeregister:S.bind(null,o),dispatch:pe.bind(null,r),disconnect:qe.bind(null,o),removeListener:e=>{s(e),c(e),a(e),u(e)}}}const{create:Fe}=t,{subscribe:Ue}=e,Ge={create:Fe,subscribe:Ue,defaultTopic:"all"},He=()=>{const e=window;e.search=Ge,e.fin&&(e.fin.Search=Ge)},Ve=e=>{const t=()=>{He(),window.removeEventListener(e,t)};return t};if("undefined"!=typeof window){He();const e="load",t=Ve(e);window.addEventListener(e,t);const n="DOMContentLoaded",o=Ve(n);window.addEventListener(n,o)}const Ke=new Map;async function je(){await async function(e){Ke.set(e,await Ue({topic:e,uuid:a.q9.Workspace}))}(i)}let Xe;async function Je(e){return await async function(){return Xe||(Xe=je()),Xe}(),Ke.get(e)}var Ne=n(3758);const Ze=async e=>{if(!e.icon)throw new Error(`${e.id} provider needs to have icon property defined.`);await(0,r.aB)();return(await Je(i)).register(e)},ze=async e=>{await(0,r.aB)();return(await Je(i)).deregister(e)};async function Qe(){return(await(0,r.Xl)()).dispatch(r.Ml.ShowHome,void 0)}async function Ye(){return(await(0,r.Xl)()).dispatch(r.Ml.HideHome,void 0)}})(),module.exports=o})();
2
+ //# sourceMappingURL=home.js.map
package/home.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home.js","mappings":"iEAQO,IAAIA,EAOAC,EAuBAC,E,oCA7BX,SAAWF,GACPA,EAAsB,WAAI,aAD9B,CAEGA,IAAcA,EAAY,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AS,KACX,MAAMC,EAAc3S,OACpB2S,EAAYrG,OAASmG,GACjBE,EAAY9U,MACZ8U,EAAY9U,IAAI+U,OAASH,KAG3BI,GAAsBC,IACxB,MAAMjO,EAAW,KACb6N,KACA1S,OAAO+S,oBAAoBD,EAAOjO,IAEtC,OAAOA,GAEX,GAAsB,oBAAX7E,OAAwB,CAC/B0S,KACA,MAAMM,EAAY,OACZC,EAAeJ,GAAmBG,GACxChT,OAAO3C,iBAAiB2V,EAAWC,GACnC,MAAMC,EAAW,mBACXC,EAAkBN,GAAmBK,GAC3ClT,OAAO3C,iBAAiB6V,EAAUC,GC1BtC,MAAMC,GAAiB,IAAIzO,IAI3BhH,eAAe,WAHfA,eAAgC2L,GAC5B8J,GAAerO,IAAIuE,QAAa,GAAqB,CAAEA,MAAAA,EAAO5I,KAAM,kBAG9D2S,CAAiB,GAE3B,IAAIC,GAOG3V,eAAe4V,GAASjK,GAE3B,aARG3L,iBAIH,OAHK2V,KACDA,GAAkB,MAEfA,GAGDE,GACCJ,GAAehQ,IAAIkG,G,eCZvB,MAAM,GAAW3L,MAAO6H,IAC3B,IAAKA,EAASkJ,KACV,MAAM,IAAIhR,MAAM,GAAG8H,EAASC,0DAE1B,UAEN,aADqB8N,GAAS1P,IAChBmI,SAASxG,IAMd,GAAa7H,MAAOyN,UACvB,UAEN,aADqBmI,GAAS1P,IAChBuI,WAAWhB,IAKtBzN,eAAe8V,KAElB,aADsB,WACP1I,SAAS,mBAAwB7M,GAK7CP,eAAe+V,KAElB,aADsB,WACP3I,SAAS,mBAAwB7M,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/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/../common/src/api/home.ts","webpack://@openfin/workspace/../search-api/src/internal-shapes.ts","webpack://@openfin/workspace/../search-api/src/common.ts","webpack://@openfin/workspace/../search-api/src/fin/index.ts","webpack://@openfin/workspace/../search-api/src/errors.ts","webpack://@openfin/workspace/../search-api/src/client/remote/channel-client.ts","webpack://@openfin/workspace/../search-api/src/client/remote/requests.ts","webpack://@openfin/workspace/../search-api/src/client/remote/data.ts","webpack://@openfin/workspace/../search-api/src/client/internal.ts","webpack://@openfin/workspace/../search-api/src/client/remote/search-close.ts","webpack://@openfin/workspace/../search-api/src/client/remote/disconnect.ts","webpack://@openfin/workspace/../search-api/src/client/remote/channel-client-factory.ts","webpack://@openfin/workspace/../search-api/src/client/remote/dispatch.ts","webpack://@openfin/workspace/../search-api/src/client/index.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/channel.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/connection.ts","webpack://@openfin/workspace/../search-api/src/provider/internal.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/search.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/search-close.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/data.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/registration.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/deregistration.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/disconnection.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/channel-factory.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/info.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/dispatch.ts","webpack://@openfin/workspace/../search-api/src/provider/remote/disconnect.ts","webpack://@openfin/workspace/../search-api/src/provider/index.ts","webpack://@openfin/workspace/../search-api/src/index.ts","webpack://@openfin/workspace/../common/src/api/search.ts","webpack://@openfin/workspace/./src/home.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","WORKSPACE_DOCS_PLATFORM_URL","WORKSPACE_DOCS_CLIENT_URL","WindowName","WindowEvent","getOFWindow","identity","Window","wrapSync","Home","Dock","Storefront","providerOFIdentity","isWindowRunning","getOptions","SearchProviderResponseGeneratorState","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","searchTopic","HomeBuiltInProviderID","InternalSearchListenerResponseStatus","defaultSearchTopic","remoteProviderDataStreamId","remoteProviderDispatchStreamId","remoteSearchCloseStreamId","noop","getNamespacedTopic","namespace","topicId","getTopicChannelName","namespacedTopic","registerListeners","Map","addRegisterListener","listener","has","set","Set","add","listeners","delete","deregisterListeners","addDeregisterListener","providers","addProvider","provider","id","promises","map","all","removeProvider","sources","getProviders","values","clearProviders","clear","makeDispatchedSearchResult","result","dispatcherIdentity","actionParam","action","actions","aggregate","oldResultsParam","newResults","order","oldResults","length","resultsWithoutKey","appendResultsMap","forEach","push","results","updatedResult","sort","x","y","score","Infinity","makeInternalSearchListenerResponse","scoreOrder","internalSearchResponse","resultBuffer","revokedBuffer","status","Initial","getStatus","getResultBuffer","setResultBuffer","onChange","getRevokedBuffer","setRevokedBuffer","resultKeys","close","Close","open","Open","respond","aggregatedBuffer","revoke","resultKeySet","filteredBuffer","filter","isInSet","size","resultKey","makeInternalSearchListenerRequest","topic","req","isClosed","context","onClose","removeListener","getIdentity","getPlatformNamespace","platform","Platform","getCurrentSync","notExist","providerNotExist","providerExists","badPayload","subscriptionRejected","channelNotExist","channelPromises","getOrFail","requests","getRequestsForTopic","topicRequests","getRequestsForIdentity","getIdentityId","pushDataResponse","dispatch","makeStreamListener","getProvider","pushInternalDataResponse","bind","providerId","error","message","identityRequests","internalRequest","internalResponse","pushCurrentResponse","revoked","isFirstPush","isTimeoutActive","setTimeout","onUserInput","register","c","request","onResultDispatch","deregister","dispatchedResult","search","internalReq","generator","internalGenerator","setState","data","state","done","searchInternal","initialResponse","next","requestId","tempInitialResponse","getAllProviders","disconnect","ctx","newChannel","reconnect","create","retry","wait","maxChannelConnectRetries","internalListenerRequest","subscribe","channels","subscriptionListener","addSubscriptionListener","hooks","invokeResponse","providerResponses","listenerResponses","openListenerResponses","initialResponsePromises","listenerResponse","providerResponse","title","icon","initialResponsePromise","invokeSearchProviderListeners","targets","hidden","newState","onCloseHook","isResponsesChanged","remainingInitialResponsePromises","promise","onChangeHook","isChanged","handleChange","remainingOpenListenerResponses","responseListener","currentResponseStatus","revokedKeySet","race","remoteSearchResponses","getRemoteSearchResponseId","p","response","clearTimeout","timeout","generatorResult","startExpireThread","getDataResponse","info","query","closeListeners","getCloseListenerId","pushDataListeners","getPushDataListenerId","makeOnSearch","getRequestCloseListenerId","sendRequestCloseToIdentity","getProviderDataResponse","closeListenerId","handleClose","pushDataListenerId","handleCleanup","makeOnResultDispatch","remoteProviders","getRemoteIdentityId","JSON","stringify","addRemoteProvider","remoteIdentityId","index","findIndex","splice","disconnectListeners","addDisconnectListener","onConnection","destroy","removeSubscriptionListener","removeDisconnectListener","removeRegisterListener","removeDeregisterListener","onSubscription","onDisconnect","onRegister","onDeregister","api","inject","windowAsAny","Search","makeInjectListener","event","removeEventListener","loadEvent","loadListener","domEvent","domLoadListener","topicInstances","subscribeToTopic","registerPromise","getTopic","waitForSearchRegistration","show","hide"],"sourceRoot":""}