@openfin/core 29.73.4 → 29.73.7

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.
Files changed (35) hide show
  1. package/OpenFin.d.ts +48 -0
  2. package/package.json +1 -1
  3. package/src/OpenFin.d.ts +1455 -0
  4. package/src/OpenFin.js +4 -0
  5. package/src/api/events/system.d.ts +18 -3
  6. package/src/api/events/typedEventEmitter.d.ts +13 -0
  7. package/src/api/events/typedEventEmitter.js +2 -0
  8. package/src/api/interop/Factory.js +4 -1
  9. package/src/api/interop/InteropBroker.d.ts +7 -5
  10. package/src/api/interop/InteropBroker.js +2 -1
  11. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +8 -7
  12. package/src/api/interop/fdc3/fdc3-1.2.d.ts +14 -13
  13. package/src/api/interop/fdc3/fdc3-2.0.d.ts +23 -21
  14. package/src/api/interop/fdc3/fdc3-2.0.js +9 -9
  15. package/src/api/interop/fdc3/fdc3.d.ts +12 -0
  16. package/src/api/interop/fdc3/overrideCheck.d.ts +4 -0
  17. package/src/api/interop/fdc3/overrideCheck.js +32 -0
  18. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +53 -0
  19. package/src/api/interop/fdc3/shapes/fdc3v1.js +4 -0
  20. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +74 -0
  21. package/src/api/interop/fdc3/shapes/fdc3v2.js +2 -0
  22. package/src/api/interop/fdc3/utils.d.ts +7 -5
  23. package/src/api/interop/fdc3/utils.js +2 -2
  24. package/src/api/interop/fdc3/versions.d.ts +1 -0
  25. package/src/api/interop/fdc3/versions.js +2 -0
  26. package/src/api/platform/Instance.d.ts +14 -0
  27. package/src/api/platform/Instance.js +17 -0
  28. package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
  29. package/src/api/platform/layout/utils/bounds-observer.js +2 -2
  30. package/src/api/system/index.d.ts +0 -469
  31. package/src/api/system/index.js +51 -471
  32. package/src/api/view/Instance.d.ts +11 -0
  33. package/src/api/view/Instance.js +19 -0
  34. package/src/fdc3.d.ts +3 -0
  35. 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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "29.73.4",
3
+ "version": "29.73.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",