@openfin/core 29.73.4 → 29.73.5
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/OpenFin.d.ts +48 -0
- package/package.json +1 -1
- package/src/OpenFin.d.ts +1452 -0
- package/src/OpenFin.js +4 -0
- package/src/api/events/system.d.ts +18 -3
- package/src/api/events/typedEventEmitter.d.ts +13 -0
- package/src/api/events/typedEventEmitter.js +2 -0
- package/src/api/interop/InteropBroker.d.ts +6 -4
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +8 -7
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +14 -13
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +23 -21
- package/src/api/interop/fdc3/fdc3-2.0.js +9 -9
- package/src/api/interop/fdc3/fdc3.d.ts +13 -0
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +53 -0
- package/src/api/interop/fdc3/shapes/fdc3v1.js +4 -0
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +74 -0
- package/src/api/interop/fdc3/shapes/fdc3v2.js +2 -0
- package/src/api/interop/fdc3/utils.d.ts +7 -5
- package/src/api/interop/fdc3/utils.js +2 -2
- package/src/api/platform/Instance.d.ts +12 -0
- package/src/api/platform/Instance.js +15 -0
- package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
- package/src/api/platform/layout/utils/bounds-observer.js +2 -2
- package/src/api/system/index.d.ts +0 -469
- package/src/api/system/index.js +51 -471
- package/src/api/view/Instance.d.ts +8 -0
- package/src/api/view/Instance.js +16 -0
- package/src/fdc3.d.ts +3 -0
- package/src/shapes/protocol.d.ts +3 -1
package/OpenFin.d.ts
CHANGED
|
@@ -530,6 +530,13 @@ declare namespace OpenFin {
|
|
|
530
530
|
accelerator?: Partial<OpenFin.Accelerator>;
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
+
export type ViewState = ViewCreationOptions & {
|
|
534
|
+
backgroundThrottling: boolean;
|
|
535
|
+
componentName: 'view';
|
|
536
|
+
initialUrl: string;
|
|
537
|
+
minWidth?: number;
|
|
538
|
+
};
|
|
539
|
+
|
|
533
540
|
export type Certificate = {
|
|
534
541
|
data: string;
|
|
535
542
|
fingerprint: string;
|
|
@@ -836,6 +843,13 @@ declare namespace OpenFin {
|
|
|
836
843
|
*/
|
|
837
844
|
getSnapshot(payload: undefined, identity: OpenFin.Identity): Promise<OpenFin.Snapshot>;
|
|
838
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Gets the current state of a single view and returns an object with the options needed to restore that view as part of a snapshot.
|
|
848
|
+
* @param { Identity } payload Identity of the view.
|
|
849
|
+
* @return { Promise<ViewState> }
|
|
850
|
+
*/
|
|
851
|
+
getViewSnapshot(payload: { viewIdentity: Identity }): Promise<ViewState>;
|
|
852
|
+
|
|
839
853
|
/**
|
|
840
854
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
|
841
855
|
* Returns an array of windows with modified positions, such that any off-screen windows are positioned in the top left
|
|
@@ -1166,10 +1180,44 @@ declare namespace OpenFin {
|
|
|
1166
1180
|
'working-dir': string;
|
|
1167
1181
|
};
|
|
1168
1182
|
|
|
1183
|
+
export type AppVersionProgress = {
|
|
1184
|
+
manifest: string | null; // A manifest in the fallbackManifest list
|
|
1185
|
+
srcManifest: string; // To keep track of the original manifest url
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
export type AppVersionError = {
|
|
1189
|
+
error: string;
|
|
1190
|
+
srcManifest: string; // To keep track of the original manifest url
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
export type AppVersionRuntimeInfo = {
|
|
1194
|
+
version: string | null; // will be null if a manifest url is not reachable
|
|
1195
|
+
exists: boolean | null;
|
|
1196
|
+
writeAccess: boolean | null;
|
|
1197
|
+
reachable: boolean | null;
|
|
1198
|
+
healthCheck: boolean | null;
|
|
1199
|
+
error: string | null;
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
export type AppVersionProgressEvent = { type: 'app-version-progress' } & AppVersionProgress;
|
|
1203
|
+
export type AppVersionErrorEvent = { type: 'app-version-error' } & AppVersionError;
|
|
1204
|
+
export type AppVersionCompleteEvent = { type: 'app-version-complete' } & AppVersionProgress;
|
|
1205
|
+
export type AppVersionRuntimeStatusEvent = { type: 'runtime-status' } & AppVersionRuntimeInfo;
|
|
1206
|
+
|
|
1207
|
+
export type AppVersionEvents =
|
|
1208
|
+
| AppVersionProgressEvent
|
|
1209
|
+
| AppVersionRuntimeStatusEvent
|
|
1210
|
+
| AppVersionCompleteEvent
|
|
1211
|
+
| AppVersionErrorEvent;
|
|
1212
|
+
|
|
1213
|
+
export type AppVersionEventNames = AppVersionEvents['type'];
|
|
1214
|
+
export type LaunchEmitter = import('./src/api/events/typedEventEmitter').TypedEventEmitter<AppVersionEvents>;
|
|
1215
|
+
|
|
1169
1216
|
export type RvmLaunchOptions = {
|
|
1170
1217
|
noUi?: boolean;
|
|
1171
1218
|
userAppConfigArgs?: object;
|
|
1172
1219
|
timeToLive?: number;
|
|
1220
|
+
subscribe?: (launch: LaunchEmitter) => void;
|
|
1173
1221
|
};
|
|
1174
1222
|
|
|
1175
1223
|
export type ShortCutConfig = {
|