@openfin/core 45.100.71 → 45.100.73

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.
@@ -3104,6 +3104,53 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
3104
3104
  childOptions: OpenFin_2.WindowOptions;
3105
3105
  };
3106
3106
 
3107
+ /**
3108
+ * End of Interop Client Events
3109
+ */
3110
+ /**
3111
+ * Client-side handle for the chrome-browser feature.
3112
+ *
3113
+ * For Chrome extension integration to be active on a window, that window must be
3114
+ * created with `chromeBrowser: true` in its window options. There is no separate
3115
+ * `init()` step.
3116
+ */
3117
+ declare interface ChromeBrowser {
3118
+ /**
3119
+ * Extension action surface — observe and invoke installed Chrome extension actions.
3120
+ */
3121
+ readonly Actions: ChromeBrowserActions;
3122
+ }
3123
+
3124
+ /**
3125
+ * APIs for interacting with Chromium extension actions from an initialized ChromeBrowser window.
3126
+ *
3127
+ * @interface
3128
+ */
3129
+ declare interface ChromeBrowserActions {
3130
+ /**
3131
+ * Returns the current list of extension actions with the minimal render state
3132
+ * required to build a toolbar UI.
3133
+ */
3134
+ getExtensionActions(): Promise<ExtensionActionListItem[]>;
3135
+ /**
3136
+ * Executes the specified extension action.
3137
+ *
3138
+ * @remarks
3139
+ * This may trigger an extension popup to be shown by the Runtime if the extension
3140
+ * has a popup configured for the currently active tab.
3141
+ */
3142
+ invokeExtensionAction(options: ExtensionActionInvokeOptions): Promise<void>;
3143
+ /**
3144
+ * Hides the active extension popup, if any.
3145
+ */
3146
+ hideActiveExtensionPopup(): Promise<void>;
3147
+ /**
3148
+ * Reactive value reflecting the current extension action list.
3149
+ * Compatible with React's `useSyncExternalStore`.
3150
+ */
3151
+ readonly state: Readable<ExtensionActionListItem[]>;
3152
+ }
3153
+
3107
3154
  /**
3108
3155
  * Control behavior for Chromium policies
3109
3156
  *
@@ -3144,6 +3191,11 @@ declare type ClearCacheOption = {
3144
3191
  * browser data that can be used across sessions
3145
3192
  */
3146
3193
  localStorage?: boolean;
3194
+ /**
3195
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3196
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3197
+ */
3198
+ windowState?: boolean;
3147
3199
  };
3148
3200
 
3149
3201
  /**
@@ -3186,6 +3238,11 @@ declare type ClearDataOptions = {
3186
3238
  * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3187
3239
  */
3188
3240
  originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3241
+ /**
3242
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3243
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3244
+ */
3245
+ windowState?: boolean;
3189
3246
  };
3190
3247
 
3191
3248
  /**
@@ -5421,6 +5478,33 @@ declare type ExitCode = {
5421
5478
  exitCode: number;
5422
5479
  };
5423
5480
 
5481
+ /**
5482
+ * Options for invoking an extension action.
5483
+ *
5484
+ * @interface
5485
+ */
5486
+ declare type ExtensionActionInvokeOptions = {
5487
+ extensionId: ExtensionId;
5488
+ /** Anchor in window client coordinates (from getBoundingClientRect). */
5489
+ anchor: Anchor;
5490
+ };
5491
+
5492
+ /**
5493
+ * Minimal UI model required to render a list of extension actions.
5494
+ *
5495
+ * @interface
5496
+ */
5497
+ declare type ExtensionActionListItem = {
5498
+ /** Stable ID for the extension that owns this action. */
5499
+ extensionId: ExtensionId;
5500
+ /** Whether to show the action button for the current context (active tab). */
5501
+ isVisible: boolean;
5502
+ /** Accessible label / title for the action button. */
5503
+ title: string;
5504
+ /** Renderer-safe icon (data URL). */
5505
+ iconDataUrl: string;
5506
+ };
5507
+
5424
5508
  declare type ExtensionEvent = SecurityRealmEvent & {
5425
5509
  /**
5426
5510
  * Runtime extension whose status has been (possibly) modified
@@ -5428,6 +5512,13 @@ declare type ExtensionEvent = SecurityRealmEvent & {
5428
5512
  extension: string;
5429
5513
  };
5430
5514
 
5515
+ /**
5516
+ * Unique identifier of a Chromium extension.
5517
+ *
5518
+ * @interface
5519
+ */
5520
+ declare type ExtensionId = string;
5521
+
5431
5522
  /**
5432
5523
  * @interface
5433
5524
  */
@@ -5872,6 +5963,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5872
5963
  readonly Interop: InteropModule;
5873
5964
  readonly SnapshotSource: SnapshotSourceModule;
5874
5965
  readonly NotificationManager: NotificationManagerModule;
5966
+ readonly ChromeBrowser: OpenFin_2.ChromeBrowser;
5875
5967
  /**
5876
5968
  * Provides access to the OpenFin representation of the current code context (usually an entity
5877
5969
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -10257,6 +10349,7 @@ declare namespace OpenFin_2 {
10257
10349
  SnapshotSource,
10258
10350
  SnapshotSourceModule,
10259
10351
  System,
10352
+ Readable,
10260
10353
  LayoutEntityDefinition,
10261
10354
  LayoutEntityTypes,
10262
10355
  LayoutPosition,
@@ -10289,6 +10382,10 @@ declare namespace OpenFin_2 {
10289
10382
  AnchorLocation,
10290
10383
  Anchor,
10291
10384
  DownloadBubbleOptions,
10385
+ ExtensionId,
10386
+ ExtensionActionListItem,
10387
+ ExtensionActionInvokeOptions,
10388
+ ChromeBrowserActions,
10292
10389
  DisplayMetadata,
10293
10390
  LegacyWinOptionsInAppOptions,
10294
10391
  Snapshot,
@@ -10654,6 +10751,7 @@ declare namespace OpenFin_2 {
10654
10751
  InteropClientEvent,
10655
10752
  ClientChangedContextGroup,
10656
10753
  InteropClientEvents,
10754
+ ChromeBrowser,
10657
10755
  ApplicationEvents,
10658
10756
  BaseEvents,
10659
10757
  ExternalApplicationEvents,
@@ -12325,6 +12423,38 @@ declare interface PlatformProvider {
12325
12423
  * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
12326
12424
  */
12327
12425
  shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
12426
+ /**
12427
+ * Returns the platform's keyboard commands. Default implementation returns the manifest's
12428
+ * `platform.commands`. Override to inject additional default commands.
12429
+ * Called once during Platform.init; the result is cached for the lifetime
12430
+ * of the platform.
12431
+ *
12432
+ * @remarks
12433
+ * The returned commands are merged with core's built-in default commands
12434
+ * (unless `disableDefaultCommands` is set).
12435
+ * Overriders receive the raw manifest commands from `super` and can prepend
12436
+ * their own defaults — returned commands override default commands by command name.
12437
+ *
12438
+ * @example
12439
+ * ```js
12440
+ * const overrideCallback = (PlatformProvider) => {
12441
+ * class Override extends PlatformProvider {
12442
+ * getKeyboardCommands() {
12443
+ * const manifestCommands = super.getKeyboardCommands();
12444
+ * const myCommands = [{ command: 'myApp.search', keys: 'Ctrl+K' }];
12445
+ * return [
12446
+ * ...myCommands,
12447
+ * ...manifestCommands
12448
+ * ];
12449
+ * }
12450
+ * }
12451
+ * return new Override();
12452
+ * }
12453
+ *
12454
+ * fin.Platform.init({ overrideCallback });
12455
+ * ```
12456
+ */
12457
+ getKeyboardCommands(): OpenFin_2.ShortcutOverride[];
12328
12458
  /**
12329
12459
  * Method that is called every time an error occurs when processing an action in the Platform Provider. It is meant to be overriden, as a means to debug Platform applications
12330
12460
  */
@@ -13135,7 +13265,7 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13135
13265
  }>;
13136
13266
  'destroy-view': IdentityCall;
13137
13267
  'attach-view': IdentityCall<{
13138
- target: OpenFin_2.Identity;
13268
+ target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
13139
13269
  }>;
13140
13270
  'set-view-bounds': IdentityCall<{
13141
13271
  bounds: OpenFin_2.Bounds;
@@ -13796,6 +13926,14 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13796
13926
  };
13797
13927
  response: void;
13798
13928
  };
13929
+ 'chrome-browser-get-extension-actions': ApiCall<{}, {
13930
+ actions: OpenFin_2.ExtensionActionListItem[];
13931
+ }>;
13932
+ 'chrome-browser-invoke-extension-action': ApiCall<{
13933
+ extensionId: string;
13934
+ anchor: OpenFin_2.Anchor;
13935
+ }, void>;
13936
+ 'chrome-browser-hide-active-extension-popup': ApiCall<{}, void>;
13799
13937
  };
13800
13938
 
13801
13939
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -13892,6 +14030,21 @@ declare type QueryPermissionResult = {
13892
14030
  rawValue?: unknown;
13893
14031
  };
13894
14032
 
14033
+ /**
14034
+ * A readonly implementation of the observable pattern.
14035
+ * Frameworks and vanilla consumers use this to read state and subscribe to changes.
14036
+ */
14037
+ declare interface Readable<T> {
14038
+ /** Synchronously returns the current value. */
14039
+ get(): T;
14040
+ /**
14041
+ * Subscribes to changes.
14042
+ * @param listener A callback that is invoked when the value changes.
14043
+ * @returns An unsubscribe function to clean up the listener.
14044
+ */
14045
+ subscribe(listener: () => void): () => void;
14046
+ }
14047
+
13895
14048
  /**
13896
14049
  * @interface
13897
14050
  */
@@ -14932,13 +15085,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14932
15085
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
14933
15086
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
14934
15087
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
15088
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
14935
15089
  * @example
14936
15090
  * ```js
14937
15091
  * const clearCacheOptions = {
14938
15092
  * appcache: true,
14939
15093
  * cache: true,
14940
15094
  * cookies: true,
14941
- * localStorage: true
15095
+ * localStorage: true,
15096
+ * windowState: true
14942
15097
  * };
14943
15098
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
14944
15099
  * ```
@@ -14963,12 +15118,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14963
15118
  *
14964
15119
  * @param options - Optional configuration for what data to clear
14965
15120
  *
15121
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
15122
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
15123
+ *
14966
15124
  * @example
14967
15125
  * ```js
14968
15126
  * // Clear only cookies and localStorage for a specific origin
14969
15127
  * await fin.System.clearCacheData({
14970
15128
  * dataTypes: ['cookies', 'localStorage'],
14971
- * origins: ['http://localhost:8081']
15129
+ * origins: ['http://localhost:8081'],
15130
+ * windowState: true
14972
15131
  * });
14973
15132
  *
14974
15133
  * // Clear everything except for a specific origin
@@ -17426,7 +17585,7 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
17426
17585
  * ```
17427
17586
  * @experimental
17428
17587
  */
17429
- attach: (target: OpenFin_2.Identity) => Promise<void>;
17588
+ attach: (target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity) => Promise<void>;
17430
17589
  /**
17431
17590
  * Destroys the current view
17432
17591
  *
@@ -17850,7 +18009,7 @@ declare type ViewCreationFailure = {
17850
18009
  declare type ViewCreationOptions = Partial<ViewOptions> & {
17851
18010
  name: string;
17852
18011
  url: string;
17853
- target: Identity_4;
18012
+ target: Identity_4 | LayoutIdentity;
17854
18013
  };
17855
18014
 
17856
18015
  declare type ViewCreationOrReference = OpenFin_2.Identity | OpenFin_2.PlatformViewCreationOptions;
@@ -3104,6 +3104,53 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
3104
3104
  childOptions: OpenFin_2.WindowOptions;
3105
3105
  };
3106
3106
 
3107
+ /**
3108
+ * End of Interop Client Events
3109
+ */
3110
+ /**
3111
+ * Client-side handle for the chrome-browser feature.
3112
+ *
3113
+ * For Chrome extension integration to be active on a window, that window must be
3114
+ * created with `chromeBrowser: true` in its window options. There is no separate
3115
+ * `init()` step.
3116
+ */
3117
+ declare interface ChromeBrowser {
3118
+ /**
3119
+ * Extension action surface — observe and invoke installed Chrome extension actions.
3120
+ */
3121
+ readonly Actions: ChromeBrowserActions;
3122
+ }
3123
+
3124
+ /**
3125
+ * APIs for interacting with Chromium extension actions from an initialized ChromeBrowser window.
3126
+ *
3127
+ * @interface
3128
+ */
3129
+ declare interface ChromeBrowserActions {
3130
+ /**
3131
+ * Returns the current list of extension actions with the minimal render state
3132
+ * required to build a toolbar UI.
3133
+ */
3134
+ getExtensionActions(): Promise<ExtensionActionListItem[]>;
3135
+ /**
3136
+ * Executes the specified extension action.
3137
+ *
3138
+ * @remarks
3139
+ * This may trigger an extension popup to be shown by the Runtime if the extension
3140
+ * has a popup configured for the currently active tab.
3141
+ */
3142
+ invokeExtensionAction(options: ExtensionActionInvokeOptions): Promise<void>;
3143
+ /**
3144
+ * Hides the active extension popup, if any.
3145
+ */
3146
+ hideActiveExtensionPopup(): Promise<void>;
3147
+ /**
3148
+ * Reactive value reflecting the current extension action list.
3149
+ * Compatible with React's `useSyncExternalStore`.
3150
+ */
3151
+ readonly state: Readable<ExtensionActionListItem[]>;
3152
+ }
3153
+
3107
3154
  /**
3108
3155
  * Control behavior for Chromium policies
3109
3156
  *
@@ -3144,6 +3191,11 @@ declare type ClearCacheOption = {
3144
3191
  * browser data that can be used across sessions
3145
3192
  */
3146
3193
  localStorage?: boolean;
3194
+ /**
3195
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3196
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3197
+ */
3198
+ windowState?: boolean;
3147
3199
  };
3148
3200
 
3149
3201
  /**
@@ -3186,6 +3238,11 @@ declare type ClearDataOptions = {
3186
3238
  * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3187
3239
  */
3188
3240
  originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3241
+ /**
3242
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3243
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3244
+ */
3245
+ windowState?: boolean;
3189
3246
  };
3190
3247
 
3191
3248
  /**
@@ -5421,6 +5478,33 @@ declare type ExitCode = {
5421
5478
  exitCode: number;
5422
5479
  };
5423
5480
 
5481
+ /**
5482
+ * Options for invoking an extension action.
5483
+ *
5484
+ * @interface
5485
+ */
5486
+ declare type ExtensionActionInvokeOptions = {
5487
+ extensionId: ExtensionId;
5488
+ /** Anchor in window client coordinates (from getBoundingClientRect). */
5489
+ anchor: Anchor;
5490
+ };
5491
+
5492
+ /**
5493
+ * Minimal UI model required to render a list of extension actions.
5494
+ *
5495
+ * @interface
5496
+ */
5497
+ declare type ExtensionActionListItem = {
5498
+ /** Stable ID for the extension that owns this action. */
5499
+ extensionId: ExtensionId;
5500
+ /** Whether to show the action button for the current context (active tab). */
5501
+ isVisible: boolean;
5502
+ /** Accessible label / title for the action button. */
5503
+ title: string;
5504
+ /** Renderer-safe icon (data URL). */
5505
+ iconDataUrl: string;
5506
+ };
5507
+
5424
5508
  declare type ExtensionEvent = SecurityRealmEvent & {
5425
5509
  /**
5426
5510
  * Runtime extension whose status has been (possibly) modified
@@ -5428,6 +5512,13 @@ declare type ExtensionEvent = SecurityRealmEvent & {
5428
5512
  extension: string;
5429
5513
  };
5430
5514
 
5515
+ /**
5516
+ * Unique identifier of a Chromium extension.
5517
+ *
5518
+ * @interface
5519
+ */
5520
+ declare type ExtensionId = string;
5521
+
5431
5522
  /**
5432
5523
  * @interface
5433
5524
  */
@@ -5872,6 +5963,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5872
5963
  readonly Interop: InteropModule;
5873
5964
  readonly SnapshotSource: SnapshotSourceModule;
5874
5965
  readonly NotificationManager: NotificationManagerModule;
5966
+ readonly ChromeBrowser: OpenFin_2.ChromeBrowser;
5875
5967
  /**
5876
5968
  * Provides access to the OpenFin representation of the current code context (usually an entity
5877
5969
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -10257,6 +10349,7 @@ declare namespace OpenFin_2 {
10257
10349
  SnapshotSource,
10258
10350
  SnapshotSourceModule,
10259
10351
  System,
10352
+ Readable,
10260
10353
  LayoutEntityDefinition,
10261
10354
  LayoutEntityTypes,
10262
10355
  LayoutPosition,
@@ -10289,6 +10382,10 @@ declare namespace OpenFin_2 {
10289
10382
  AnchorLocation,
10290
10383
  Anchor,
10291
10384
  DownloadBubbleOptions,
10385
+ ExtensionId,
10386
+ ExtensionActionListItem,
10387
+ ExtensionActionInvokeOptions,
10388
+ ChromeBrowserActions,
10292
10389
  DisplayMetadata,
10293
10390
  LegacyWinOptionsInAppOptions,
10294
10391
  Snapshot,
@@ -10654,6 +10751,7 @@ declare namespace OpenFin_2 {
10654
10751
  InteropClientEvent,
10655
10752
  ClientChangedContextGroup,
10656
10753
  InteropClientEvents,
10754
+ ChromeBrowser,
10657
10755
  ApplicationEvents,
10658
10756
  BaseEvents,
10659
10757
  ExternalApplicationEvents,
@@ -12325,6 +12423,38 @@ declare interface PlatformProvider {
12325
12423
  * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
12326
12424
  */
12327
12425
  shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
12426
+ /**
12427
+ * Returns the platform's keyboard commands. Default implementation returns the manifest's
12428
+ * `platform.commands`. Override to inject additional default commands.
12429
+ * Called once during Platform.init; the result is cached for the lifetime
12430
+ * of the platform.
12431
+ *
12432
+ * @remarks
12433
+ * The returned commands are merged with core's built-in default commands
12434
+ * (unless `disableDefaultCommands` is set).
12435
+ * Overriders receive the raw manifest commands from `super` and can prepend
12436
+ * their own defaults — returned commands override default commands by command name.
12437
+ *
12438
+ * @example
12439
+ * ```js
12440
+ * const overrideCallback = (PlatformProvider) => {
12441
+ * class Override extends PlatformProvider {
12442
+ * getKeyboardCommands() {
12443
+ * const manifestCommands = super.getKeyboardCommands();
12444
+ * const myCommands = [{ command: 'myApp.search', keys: 'Ctrl+K' }];
12445
+ * return [
12446
+ * ...myCommands,
12447
+ * ...manifestCommands
12448
+ * ];
12449
+ * }
12450
+ * }
12451
+ * return new Override();
12452
+ * }
12453
+ *
12454
+ * fin.Platform.init({ overrideCallback });
12455
+ * ```
12456
+ */
12457
+ getKeyboardCommands(): OpenFin_2.ShortcutOverride[];
12328
12458
  /**
12329
12459
  * Method that is called every time an error occurs when processing an action in the Platform Provider. It is meant to be overriden, as a means to debug Platform applications
12330
12460
  */
@@ -13135,7 +13265,7 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13135
13265
  }>;
13136
13266
  'destroy-view': IdentityCall;
13137
13267
  'attach-view': IdentityCall<{
13138
- target: OpenFin_2.Identity;
13268
+ target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
13139
13269
  }>;
13140
13270
  'set-view-bounds': IdentityCall<{
13141
13271
  bounds: OpenFin_2.Bounds;
@@ -13796,6 +13926,14 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13796
13926
  };
13797
13927
  response: void;
13798
13928
  };
13929
+ 'chrome-browser-get-extension-actions': ApiCall<{}, {
13930
+ actions: OpenFin_2.ExtensionActionListItem[];
13931
+ }>;
13932
+ 'chrome-browser-invoke-extension-action': ApiCall<{
13933
+ extensionId: string;
13934
+ anchor: OpenFin_2.Anchor;
13935
+ }, void>;
13936
+ 'chrome-browser-hide-active-extension-popup': ApiCall<{}, void>;
13799
13937
  };
13800
13938
 
13801
13939
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -13892,6 +14030,21 @@ declare type QueryPermissionResult = {
13892
14030
  rawValue?: unknown;
13893
14031
  };
13894
14032
 
14033
+ /**
14034
+ * A readonly implementation of the observable pattern.
14035
+ * Frameworks and vanilla consumers use this to read state and subscribe to changes.
14036
+ */
14037
+ declare interface Readable<T> {
14038
+ /** Synchronously returns the current value. */
14039
+ get(): T;
14040
+ /**
14041
+ * Subscribes to changes.
14042
+ * @param listener A callback that is invoked when the value changes.
14043
+ * @returns An unsubscribe function to clean up the listener.
14044
+ */
14045
+ subscribe(listener: () => void): () => void;
14046
+ }
14047
+
13895
14048
  /**
13896
14049
  * @interface
13897
14050
  */
@@ -14932,13 +15085,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14932
15085
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
14933
15086
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
14934
15087
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
15088
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
14935
15089
  * @example
14936
15090
  * ```js
14937
15091
  * const clearCacheOptions = {
14938
15092
  * appcache: true,
14939
15093
  * cache: true,
14940
15094
  * cookies: true,
14941
- * localStorage: true
15095
+ * localStorage: true,
15096
+ * windowState: true
14942
15097
  * };
14943
15098
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
14944
15099
  * ```
@@ -14963,12 +15118,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14963
15118
  *
14964
15119
  * @param options - Optional configuration for what data to clear
14965
15120
  *
15121
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
15122
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
15123
+ *
14966
15124
  * @example
14967
15125
  * ```js
14968
15126
  * // Clear only cookies and localStorage for a specific origin
14969
15127
  * await fin.System.clearCacheData({
14970
15128
  * dataTypes: ['cookies', 'localStorage'],
14971
- * origins: ['http://localhost:8081']
15129
+ * origins: ['http://localhost:8081'],
15130
+ * windowState: true
14972
15131
  * });
14973
15132
  *
14974
15133
  * // Clear everything except for a specific origin
@@ -17426,7 +17585,7 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
17426
17585
  * ```
17427
17586
  * @experimental
17428
17587
  */
17429
- attach: (target: OpenFin_2.Identity) => Promise<void>;
17588
+ attach: (target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity) => Promise<void>;
17430
17589
  /**
17431
17590
  * Destroys the current view
17432
17591
  *
@@ -17850,7 +18009,7 @@ declare type ViewCreationFailure = {
17850
18009
  declare type ViewCreationOptions = Partial<ViewOptions> & {
17851
18010
  name: string;
17852
18011
  url: string;
17853
- target: Identity_4;
18012
+ target: Identity_4 | LayoutIdentity;
17854
18013
  };
17855
18014
 
17856
18015
  declare type ViewCreationOrReference = OpenFin_2.Identity | OpenFin_2.PlatformViewCreationOptions;