@openfin/workspace-platform 20.0.4 → 20.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.
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type BookmarkIconProps = {
3
+ inputContainerRef: React.MutableRefObject<HTMLDivElement>;
4
+ iconGradientClick?: () => void;
5
+ url?: string;
6
+ isMenuExpanded?: boolean;
7
+ disableMonitorBookmarkPanelActions?: boolean;
8
+ };
9
+ export declare const BookmarkButton: ({ inputContainerRef, url, iconGradientClick, isMenuExpanded, disableMonitorBookmarkPanelActions }: BookmarkIconProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MutableRefObject } from 'react';
2
+ export declare const useBookmarkButtonHover: (inputContainerRef: MutableRefObject<HTMLElement | null>) => boolean;
@@ -0,0 +1,2 @@
1
+ import OpenFin from '@openfin/core';
2
+ export declare const useEnterpriseBookmarkDialogWindow: () => OpenFin.Window | null;
@@ -0,0 +1 @@
1
+ export declare const useIsBookmarked: (url?: string, ...beacons: (any | undefined)[]) => boolean;
@@ -0,0 +1,5 @@
1
+ import OpenFin from '@openfin/core';
2
+ export declare const useIsSelectedViewNavigated: (url: string) => {
3
+ isViewNavigatedToUrl: boolean;
4
+ selectedView: OpenFin.View;
5
+ };
@@ -0,0 +1,8 @@
1
+ import { MutableRefObject } from 'react';
2
+ import type OpenFin from '@openfin/core';
3
+ import { SearchMenuChannelRequest } from '../../../../../common/src/utils/popup-window';
4
+ export declare const useSelectedAndOpenViewsBroadcastChannel: (additionalCallBack?: (ev: MessageEvent<SearchMenuChannelRequest>) => void) => {
5
+ selectedViews: OpenFin.Identity[];
6
+ openViews: OpenFin.Identity[];
7
+ searchMenuChannel: MutableRefObject<BroadcastChannel>;
8
+ };
@@ -0,0 +1,9 @@
1
+ import OpenFin from '@openfin/core';
2
+ import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
+ import { AttachedPage, Site } from '../../../../../client-api-platform/src/index';
4
+ export declare const handleAlreadyOpenPage: (attachedPages: AttachedPage[], site?: Site) => boolean;
5
+ export declare const convertSiteData: (result: any) => Site;
6
+ export declare const getRecentlyVisitedSites: () => Promise<Site[]>;
7
+ export declare const getSiteSubTitle: (site: Site) => string;
8
+ export declare const checkViewUrl: (view: OpenFin.View | null, url: string, setViewNavigatedToUrl: (value: boolean) => void) => Promise<void>;
9
+ export declare const searchBookmark: (url: string, browserIdentity?: OpenFin.Identity) => Promise<BookmarkNode | undefined>;
@@ -3,6 +3,7 @@ export declare const getWindowChannelId: (identity: OpenFin.Identity, prefix?: s
3
3
  export interface ChannelClient extends OpenFin.ChannelClient {
4
4
  dispatch: (action: (typeof BrowserChannelAction)[keyof BrowserChannelAction], payload?: any) => Promise<any>;
5
5
  }
6
+ export declare const getNamedChannelClient: (channelName: string) => Promise<ChannelClient>;
6
7
  export declare const getChannelClient: (identity: OpenFin.Identity, prefix?: string) => Promise<ChannelClient>;
7
8
  /**
8
9
  * If the browser window is reloaded too quickly, runtime will
@@ -0,0 +1,7 @@
1
+ import { MutableRefObject } from 'react';
2
+ import OpenFin from '@openfin/core';
3
+ export declare const useAddEditBookmarkDialog: (bookmarkIconRef: MutableRefObject<HTMLElement | null>, selectedView?: OpenFin.View) => {
4
+ showDialog: () => Promise<void>;
5
+ isDialogShown: boolean;
6
+ isBookmarkUpdatedOrCreated: boolean;
7
+ };
@@ -0,0 +1,13 @@
1
+ import type OpenFin from '@openfin/core';
2
+ interface PreloadedWindowOptions {
3
+ windowName: string;
4
+ route: string;
5
+ width?: number;
6
+ height?: number;
7
+ windowType?: string;
8
+ shouldPreload: boolean;
9
+ }
10
+ export default function usePreloadedWindow({ windowName, route, width, height, windowType, shouldPreload }: PreloadedWindowOptions & {
11
+ shouldPreload?: boolean;
12
+ }): OpenFin.Window;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ import OpenFin from '@openfin/core';
2
+ export declare const getBrowserWindow: () => Promise<import("client-api-platform").BrowserWindowModule>;
3
+ export declare const getBrowserWindowWithoutView: (browserIdentity?: OpenFin.Identity) => Promise<import("client-api-platform").BrowserWindowModule>;