@openfin/fdc3-api 46.100.85 → 46.100.87

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.
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
1994
1994
  type: 'begin-user-bounds-changing';
1995
1995
  };
1996
1996
 
1997
+ declare type BFCacheRestoreListener = () => void | Promise<void>;
1998
+
1997
1999
  /**
1998
2000
  * A rule prescribing content creation that should be blocked.
1999
2001
  *
@@ -5333,6 +5335,16 @@ declare interface Environment {
5333
5335
  resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
5334
5336
  initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
5335
5337
  observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
5338
+ /**
5339
+ * Registers a listener invoked when the current page has been restored from the
5340
+ * browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
5341
+ * connections that were torn down while the page was cached.
5342
+ *
5343
+ * No-op in environments that cannot be bfcached.
5344
+ *
5345
+ * @returns a function that unregisters the listener.
5346
+ */
5347
+ onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
5336
5348
  writeToken(path: string, token: string): Promise<string>;
5337
5349
  retrievePort(config: NewConnectConfig): Promise<number>;
5338
5350
  getNextMessageId(): any;
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
5787
5799
  * these api calls are not implemented in the javscript api, only in the external adapter
5788
5800
  * If they don't exist in the external adapter they should be removed.
5789
5801
  */
5790
- declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5802
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5791
5803
 
5792
5804
  declare type ExternalAdapterOnlyCallsMap = {
5793
5805
  [k in ExternalAdapterOnlyCalls]: {
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
1994
1994
  type: 'begin-user-bounds-changing';
1995
1995
  };
1996
1996
 
1997
+ declare type BFCacheRestoreListener = () => void | Promise<void>;
1998
+
1997
1999
  /**
1998
2000
  * A rule prescribing content creation that should be blocked.
1999
2001
  *
@@ -5333,6 +5335,16 @@ declare interface Environment {
5333
5335
  resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
5334
5336
  initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
5335
5337
  observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
5338
+ /**
5339
+ * Registers a listener invoked when the current page has been restored from the
5340
+ * browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
5341
+ * connections that were torn down while the page was cached.
5342
+ *
5343
+ * No-op in environments that cannot be bfcached.
5344
+ *
5345
+ * @returns a function that unregisters the listener.
5346
+ */
5347
+ onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
5336
5348
  writeToken(path: string, token: string): Promise<string>;
5337
5349
  retrievePort(config: NewConnectConfig): Promise<number>;
5338
5350
  getNextMessageId(): any;
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
5787
5799
  * these api calls are not implemented in the javscript api, only in the external adapter
5788
5800
  * If they don't exist in the external adapter they should be removed.
5789
5801
  */
5790
- declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5802
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5791
5803
 
5792
5804
  declare type ExternalAdapterOnlyCallsMap = {
5793
5805
  [k in ExternalAdapterOnlyCalls]: {
@@ -1994,6 +1994,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
1994
1994
  type: 'begin-user-bounds-changing';
1995
1995
  };
1996
1996
 
1997
+ declare type BFCacheRestoreListener = () => void | Promise<void>;
1998
+
1997
1999
  /**
1998
2000
  * A rule prescribing content creation that should be blocked.
1999
2001
  *
@@ -5333,6 +5335,16 @@ declare interface Environment {
5333
5335
  resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
5334
5336
  initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
5335
5337
  observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
5338
+ /**
5339
+ * Registers a listener invoked when the current page has been restored from the
5340
+ * browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
5341
+ * connections that were torn down while the page was cached.
5342
+ *
5343
+ * No-op in environments that cannot be bfcached.
5344
+ *
5345
+ * @returns a function that unregisters the listener.
5346
+ */
5347
+ onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
5336
5348
  writeToken(path: string, token: string): Promise<string>;
5337
5349
  retrievePort(config: NewConnectConfig): Promise<number>;
5338
5350
  getNextMessageId(): any;
@@ -5787,7 +5799,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
5787
5799
  * these api calls are not implemented in the javscript api, only in the external adapter
5788
5800
  * If they don't exist in the external adapter they should be removed.
5789
5801
  */
5790
- declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5802
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5791
5803
 
5792
5804
  declare type ExternalAdapterOnlyCallsMap = {
5793
5805
  [k in ExternalAdapterOnlyCalls]: {
package/out/fdc3-api.d.ts CHANGED
@@ -2027,6 +2027,8 @@ declare type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
2027
2027
  type: 'begin-user-bounds-changing';
2028
2028
  };
2029
2029
 
2030
+ declare type BFCacheRestoreListener = () => void | Promise<void>;
2031
+
2030
2032
  /**
2031
2033
  * A rule prescribing content creation that should be blocked.
2032
2034
  *
@@ -5445,6 +5447,16 @@ declare interface Environment {
5445
5447
  resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
5446
5448
  initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
5447
5449
  observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
5450
+ /**
5451
+ * Registers a listener invoked when the current page has been restored from the
5452
+ * browser's back/forward cache. Stateful APIs (e.g. channels) use this to re-establish
5453
+ * connections that were torn down while the page was cached.
5454
+ *
5455
+ * No-op in environments that cannot be bfcached.
5456
+ *
5457
+ * @returns a function that unregisters the listener.
5458
+ */
5459
+ onBFCacheRestore(listener: BFCacheRestoreListener): () => void;
5448
5460
  writeToken(path: string, token: string): Promise<string>;
5449
5461
  retrievePort(config: NewConnectConfig): Promise<number>;
5450
5462
  getNextMessageId(): any;
@@ -5917,7 +5929,7 @@ declare type ExtensionWindowCreatedEvent = BaseEvent_5 & {
5917
5929
  * these api calls are not implemented in the javscript api, only in the external adapter
5918
5930
  * If they don't exist in the external adapter they should be removed.
5919
5931
  */
5920
- declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5932
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5921
5933
 
5922
5934
  declare type ExternalAdapterOnlyCallsMap = {
5923
5935
  [k in ExternalAdapterOnlyCalls]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "46.100.85",
3
+ "version": "46.100.87",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,