@openfin/workspace-platform 23.2.14 → 24.0.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/app-directory.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/view-defaults.d.ts +1 -1
- package/common/src/utils/application.d.ts +7 -0
- package/common/src/utils/layout.d.ts +9 -2
- package/common/src/utils/logger.d.ts +35 -0
- package/common/src/utils/popup-window.d.ts +1 -0
- package/externals.report.json +31 -31
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/workspace_platform.zip +0 -0
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -4,5 +4,5 @@ type DefaultViewOptions = Partial<OpenFin.MutableViewOptions> & {
|
|
|
4
4
|
hotkeys?: OpenFin.ViewOptions['hotkeys'];
|
|
5
5
|
};
|
|
6
6
|
export declare const DEFAULT_VIEW_OPTIONS: DefaultViewOptions;
|
|
7
|
-
export declare function applyViewDefaults(options: Partial<OpenFin.ViewOptions>, initViewOptions?: Partial<OpenFin.ViewOptions>): any
|
|
7
|
+
export declare function applyViewDefaults(options: Partial<OpenFin.ViewOptions>, initViewOptions?: Partial<OpenFin.ViewOptions>): Promise<any>;
|
|
8
8
|
export {};
|
|
@@ -23,3 +23,10 @@ export type ApplicationInfoExtended = OpenFin.ApplicationInfo & {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const getCurrentOFApplication: () => OpenFin.Application;
|
|
25
25
|
export declare const getWorkspaceOFApplication: () => OpenFin.Application;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the application manifest, caching the result after the first call.
|
|
28
|
+
* The manifest never changes during the application lifecycle, so this avoids redundant async calls.
|
|
29
|
+
* Uses promise-based caching to prevent race conditions when multiple calls occur before the first completes.
|
|
30
|
+
* @returns A Promise resolving to the application manifest
|
|
31
|
+
*/
|
|
32
|
+
export declare const getCachedManifest: () => Promise<OpenFin.Manifest>;
|
|
@@ -61,6 +61,13 @@ export declare const getFirstActiveViewFromLayout: (identity: OpenFin.LayoutIden
|
|
|
61
61
|
* @returns A mapped copy of the layout
|
|
62
62
|
*/
|
|
63
63
|
export declare const mapLayoutViewComponents: (node: any, callback: (arg0: any) => any) => any;
|
|
64
|
+
/**
|
|
65
|
+
* Recursively clones a layout object, calling a passed async callback on each `componentState` in the tree.
|
|
66
|
+
* @param node Either the layout object itself, or one of the items in its tree.
|
|
67
|
+
* @param callback Async callback to be called on each component's `componentState`
|
|
68
|
+
* @returns A Promise resolving to a mapped copy of the layout
|
|
69
|
+
*/
|
|
70
|
+
export declare const mapLayoutViewComponentsAsync: (node: any, callback: (arg0: any) => Promise<any>) => Promise<any>;
|
|
64
71
|
/**
|
|
65
72
|
* Copies the componentState and generates a name if it's not there
|
|
66
73
|
* @param componentState view's componentState in the layout object, corresponds to View options
|
|
@@ -80,9 +87,9 @@ export declare const generateViewNameAndIdentifierNameIfNotExists: <T extends {
|
|
|
80
87
|
/**
|
|
81
88
|
* Deep clones a layout and converts view options (add names if necessary, apply defaults).
|
|
82
89
|
* @param layout The Layout to be cloned
|
|
83
|
-
* @returns A copy of the layout with view options converted
|
|
90
|
+
* @returns A Promise resolving to a copy of the layout with view options converted
|
|
84
91
|
*/
|
|
85
|
-
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<OpenFin.ViewOptions>) =>
|
|
92
|
+
export declare const cloneLayoutAndConvertViewOptions: (layout: PageLayout, initViewOptions?: Partial<OpenFin.ViewOptions>) => Promise<PageLayout>;
|
|
86
93
|
export declare const cloneViewComponentWithoutName: (componentState: any) => any;
|
|
87
94
|
/**
|
|
88
95
|
* Deep clones a layout and removes view names.
|
|
@@ -21,7 +21,42 @@ export interface LoggerConfig {
|
|
|
21
21
|
includeTimestamp?: boolean;
|
|
22
22
|
/** Custom prefix for logs */
|
|
23
23
|
customPrefix?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Stringify log data before passing to console (default: true).
|
|
26
|
+
* When true, objects are serialized as JSON strings for safer logging.
|
|
27
|
+
* When false, raw objects are passed to console, allowing expandable/inspectable
|
|
28
|
+
* objects in browser dev tools.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* To disable safe stringify for local development, you can:
|
|
32
|
+
* 1. Set this option per-logger: createLogger('MyContext', { stringifyData: false })
|
|
33
|
+
* 2. Or call setGlobalStringifyEnabled(false) once at app startup
|
|
34
|
+
*/
|
|
35
|
+
stringifyData?: boolean;
|
|
24
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Enable or disable safe stringify globally for all loggers.
|
|
39
|
+
* Useful for local development when you want expandable objects in browser dev tools.
|
|
40
|
+
*
|
|
41
|
+
* This overrides the build-time LOG_STRINGIFY setting at runtime.
|
|
42
|
+
* Individual logger config (stringifyData option) takes precedence over this setting.
|
|
43
|
+
*
|
|
44
|
+
* @param enabled - Whether to stringify log data
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* // Override build-time setting at runtime:
|
|
49
|
+
* import { setGlobalStringifyEnabled } from 'common/src/utils/logger';
|
|
50
|
+
*
|
|
51
|
+
* // Disable stringify to get expandable objects in console
|
|
52
|
+
* setGlobalStringifyEnabled(false);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare const setGlobalStringifyEnabled: (enabled: boolean) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Get the current global stringify setting.
|
|
58
|
+
*/
|
|
59
|
+
export declare const getGlobalStringifyEnabled: () => boolean;
|
|
25
60
|
/**
|
|
26
61
|
* Create a structured logger for a specific context
|
|
27
62
|
*
|
|
@@ -82,6 +82,7 @@ export type BookmarkDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
|
|
|
82
82
|
export type ZoomControlsDialogPayload = {
|
|
83
83
|
selectedViewIdentity?: OpenFin.Identity;
|
|
84
84
|
zoomPercent?: number;
|
|
85
|
+
openedViaMouseClick?: boolean;
|
|
85
86
|
};
|
|
86
87
|
export type ZoomControlsDialogChannelMessage = BaseEnterpriseMenuChannelMessage & {
|
|
87
88
|
type: EnterpriseMenuType.ZoomControls;
|
package/externals.report.json
CHANGED
|
@@ -7,15 +7,41 @@
|
|
|
7
7
|
"issuer": "client-api-platform/src/init/cleanup.ts"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"type": "
|
|
10
|
+
"type": "explicit",
|
|
11
11
|
"version": "^4.0.8",
|
|
12
12
|
"packageName": "common/package.json",
|
|
13
13
|
"issuer": "common/src/utils/layout.ts"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"
|
|
16
|
+
"dexie": [
|
|
17
17
|
{
|
|
18
18
|
"type": "root-implicit",
|
|
19
|
+
"version": "^4.0.11",
|
|
20
|
+
"packageName": "dock3/package.json",
|
|
21
|
+
"issuer": "dock3/src/api/idb.ts"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "explicit",
|
|
25
|
+
"version": "^4.0.11",
|
|
26
|
+
"packageName": "common/package.json",
|
|
27
|
+
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "explicit",
|
|
31
|
+
"version": "^4.0.11",
|
|
32
|
+
"packageName": "client-api-platform/package.json",
|
|
33
|
+
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "explicit",
|
|
37
|
+
"version": "^4.0.11",
|
|
38
|
+
"packageName": "common/package.json",
|
|
39
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"react-i18next": [
|
|
43
|
+
{
|
|
44
|
+
"type": "explicit",
|
|
19
45
|
"version": "15.4.0",
|
|
20
46
|
"packageName": "common/package.json",
|
|
21
47
|
"issuer": "common/src/api/i18next.ts"
|
|
@@ -23,7 +49,7 @@
|
|
|
23
49
|
],
|
|
24
50
|
"i18next": [
|
|
25
51
|
{
|
|
26
|
-
"type": "
|
|
52
|
+
"type": "explicit",
|
|
27
53
|
"version": "^23.7.16",
|
|
28
54
|
"packageName": "common/package.json",
|
|
29
55
|
"issuer": "common/src/api/i18next.ts"
|
|
@@ -31,7 +57,7 @@
|
|
|
31
57
|
],
|
|
32
58
|
"lodash.clonedeep": [
|
|
33
59
|
{
|
|
34
|
-
"type": "
|
|
60
|
+
"type": "explicit",
|
|
35
61
|
"version": "4.5.0",
|
|
36
62
|
"packageName": "common/package.json",
|
|
37
63
|
"issuer": "common/src/utils/layout.ts"
|
|
@@ -39,36 +65,10 @@
|
|
|
39
65
|
],
|
|
40
66
|
"title-case": [
|
|
41
67
|
{
|
|
42
|
-
"type": "
|
|
68
|
+
"type": "explicit",
|
|
43
69
|
"version": "3.0.3",
|
|
44
70
|
"packageName": "common/package.json",
|
|
45
71
|
"issuer": "common/src/utils/color-linking.ts"
|
|
46
72
|
}
|
|
47
|
-
],
|
|
48
|
-
"dexie": [
|
|
49
|
-
{
|
|
50
|
-
"type": "explicit",
|
|
51
|
-
"version": "^4.0.11",
|
|
52
|
-
"packageName": "client-api-platform/package.json",
|
|
53
|
-
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "root-implicit",
|
|
57
|
-
"version": "^4.0.11",
|
|
58
|
-
"packageName": "dock3/package.json",
|
|
59
|
-
"issuer": "dock3/src/api/idb.ts"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "root-implicit",
|
|
63
|
-
"version": "^4.0.11",
|
|
64
|
-
"packageName": "common/package.json",
|
|
65
|
-
"issuer": "common/src/api/pages/idb.ts"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "root-implicit",
|
|
69
|
-
"version": "^4.0.11",
|
|
70
|
-
"packageName": "common/package.json",
|
|
71
|
-
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
72
|
-
}
|
|
73
73
|
]
|
|
74
74
|
}
|