@openfin/workspace 45.1.10 → 45.1.11

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.
@@ -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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
11
11
  export declare const isWindowDefinedWithIndexDB: boolean;
12
12
  export declare const finUUID: string;
13
13
  export declare const finName: string;
14
- export declare const finEntityType: "" | "window" | "view";
14
+ export declare const finEntityType: "" | "view" | "window";
15
15
  export declare const isEnvLocal: boolean;
16
16
  export declare const isEnvDev: boolean;
17
17
  export declare const isEnvStaging: boolean;
@@ -153,6 +153,19 @@ export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) =>
153
153
  * @returns The total number of views in the layout configuration.
154
154
  */
155
155
  export declare const countViews: (node: OpenFin.LayoutContent) => number;
156
+ /**
157
+ * Returns the sole view component when a page layout contains exactly one view.
158
+ * Used to decide whether a page-tab drag should emit a single-view merge payload.
159
+ *
160
+ * Importantly this counts views recursively across the layout tree, not just
161
+ * top-level sections — a one-section/tab-strip supertab with multiple views
162
+ * must not be treated as a single-view page.
163
+ *
164
+ * Also requires a non-empty `componentState.name`. Core types mark
165
+ * `componentState` / `name` as optional, and a merge payload without a name
166
+ * is invalid — treat those layouts as non-mergeable page drags instead.
167
+ */
168
+ export declare const getSingleViewComponent: (content: OpenFin.LayoutContent | undefined) => OpenFin.LayoutComponent | null;
156
169
  export declare const getLayoutConfig: (layoutContainerKey: string) => Promise<any>;
157
170
  export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;
158
171
  /**
@@ -2,7 +2,7 @@
2
2
  "@openfin/notifications": [
3
3
  {
4
4
  "type": "explicit",
5
- "version": "45.1.0-alpha-4945",
5
+ "version": "45.1.0-alpha-4946",
6
6
  "packageName": "client-api/package.json",
7
7
  "issuer": "client-api/src/notifications.ts"
8
8
  }
@@ -43,14 +43,6 @@
43
43
  "issuer": "common/src/utils/layout.ts"
44
44
  }
45
45
  ],
46
- "lodash.clonedeep": [
47
- {
48
- "type": "explicit",
49
- "version": "4.5.0",
50
- "packageName": "common/package.json",
51
- "issuer": "common/src/utils/layout.ts"
52
- }
53
- ],
54
46
  "react-i18next": [
55
47
  {
56
48
  "type": "explicit",
@@ -67,13 +59,15 @@
67
59
  "issuer": "common/src/api/i18next.ts"
68
60
  }
69
61
  ],
70
- "dexie": [
62
+ "lodash.clonedeep": [
71
63
  {
72
64
  "type": "explicit",
73
- "version": "^4.0.11",
65
+ "version": "4.5.0",
74
66
  "packageName": "common/package.json",
75
- "issuer": "common/src/api/pages/idb.ts"
76
- },
67
+ "issuer": "common/src/utils/layout.ts"
68
+ }
69
+ ],
70
+ "dexie": [
77
71
  {
78
72
  "type": "root-implicit",
79
73
  "version": "^4.0.11",
@@ -86,6 +80,12 @@
86
80
  "packageName": "client-api-platform/package.json",
87
81
  "issuer": "client-api-platform/src/api/dock/idb.ts"
88
82
  },
83
+ {
84
+ "type": "explicit",
85
+ "version": "^4.0.11",
86
+ "packageName": "common/package.json",
87
+ "issuer": "common/src/api/pages/idb.ts"
88
+ },
89
89
  {
90
90
  "type": "explicit",
91
91
  "version": "^4.0.11",