@openfin/workspace-platform 7.2.0 → 7.3.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-platform/src/api/context-menu/index.d.ts +1 -2
- package/client-api-platform/src/api/workspaces/index.d.ts +1 -0
- package/client-api-platform/src/init/platform-label.d.ts +6 -0
- package/client-api-platform/src/init/utils.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +6 -1
- package/common/src/utils/menu-config.d.ts +22 -0
- package/common/src/utils/menu-window-provider.d.ts +44 -0
- package/common/src/utils/types.d.ts +6 -0
- package/common/src/utils/window.d.ts +1 -1
- package/common/src/utils/workspace-modals.d.ts +13 -0
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/common/src/utils/router/index.d.ts +0 -2
- package/common/src/utils/router/next.d.ts +0 -43
- package/index.js.LICENSE.txt +0 -14
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { NextRouter, withRouter as nextWithRouter } from 'next/router';
|
|
2
|
-
import { PageRoute } from '../route';
|
|
3
|
-
/**
|
|
4
|
-
* All router events.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum RouterEvent {
|
|
7
|
-
RouteChangeComplete = "routeChangeComplete"
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* React hook for components that want to use router.
|
|
11
|
-
* Underlying component will be rerendered when the routing of the current page changes.
|
|
12
|
-
*/
|
|
13
|
-
export declare const withRouter: typeof nextWithRouter;
|
|
14
|
-
/**
|
|
15
|
-
* The type of router.
|
|
16
|
-
*/
|
|
17
|
-
export declare type Router = NextRouter;
|
|
18
|
-
/**
|
|
19
|
-
* Prefetch a route.
|
|
20
|
-
* @param route the route to prefetch.
|
|
21
|
-
*/
|
|
22
|
-
export declare function prefetch(route: PageRoute): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Navigate to another route.
|
|
25
|
-
* @param route the route to navigate to.
|
|
26
|
-
*/
|
|
27
|
-
export declare function navigate(route: PageRoute | string): Promise<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* Listen for a router event.
|
|
30
|
-
* @param event the event to listen for.
|
|
31
|
-
* @param listener the listener to call when the event occurs.
|
|
32
|
-
*/
|
|
33
|
-
export declare function addRouterListener(event: RouterEvent, listener: (...args: any[]) => any): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Stop listening for a router event.
|
|
36
|
-
* @param event the event to stop listening for.
|
|
37
|
-
* @param listener the listener to remove.
|
|
38
|
-
*/
|
|
39
|
-
export declare function removeRouterListener(event: RouterEvent, listener: (...args: any[]) => any): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Navigate the back a route.
|
|
42
|
-
*/
|
|
43
|
-
export declare function navigateBack(): Promise<void>;
|
package/index.js.LICENSE.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|