@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;
package/out/stub.d.ts CHANGED
@@ -3160,6 +3160,53 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
3160
3160
  childOptions: OpenFin_2.WindowOptions;
3161
3161
  };
3162
3162
 
3163
+ /**
3164
+ * End of Interop Client Events
3165
+ */
3166
+ /**
3167
+ * Client-side handle for the chrome-browser feature.
3168
+ *
3169
+ * For Chrome extension integration to be active on a window, that window must be
3170
+ * created with `chromeBrowser: true` in its window options. There is no separate
3171
+ * `init()` step.
3172
+ */
3173
+ declare interface ChromeBrowser {
3174
+ /**
3175
+ * Extension action surface — observe and invoke installed Chrome extension actions.
3176
+ */
3177
+ readonly Actions: ChromeBrowserActions;
3178
+ }
3179
+
3180
+ /**
3181
+ * APIs for interacting with Chromium extension actions from an initialized ChromeBrowser window.
3182
+ *
3183
+ * @interface
3184
+ */
3185
+ declare interface ChromeBrowserActions {
3186
+ /**
3187
+ * Returns the current list of extension actions with the minimal render state
3188
+ * required to build a toolbar UI.
3189
+ */
3190
+ getExtensionActions(): Promise<ExtensionActionListItem[]>;
3191
+ /**
3192
+ * Executes the specified extension action.
3193
+ *
3194
+ * @remarks
3195
+ * This may trigger an extension popup to be shown by the Runtime if the extension
3196
+ * has a popup configured for the currently active tab.
3197
+ */
3198
+ invokeExtensionAction(options: ExtensionActionInvokeOptions): Promise<void>;
3199
+ /**
3200
+ * Hides the active extension popup, if any.
3201
+ */
3202
+ hideActiveExtensionPopup(): Promise<void>;
3203
+ /**
3204
+ * Reactive value reflecting the current extension action list.
3205
+ * Compatible with React's `useSyncExternalStore`.
3206
+ */
3207
+ readonly state: Readable<ExtensionActionListItem[]>;
3208
+ }
3209
+
3163
3210
  /**
3164
3211
  * Control behavior for Chromium policies
3165
3212
  *
@@ -3200,6 +3247,11 @@ declare type ClearCacheOption = {
3200
3247
  * browser data that can be used across sessions
3201
3248
  */
3202
3249
  localStorage?: boolean;
3250
+ /**
3251
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3252
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3253
+ */
3254
+ windowState?: boolean;
3203
3255
  };
3204
3256
 
3205
3257
  /**
@@ -3242,6 +3294,11 @@ declare type ClearDataOptions = {
3242
3294
  * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3243
3295
  */
3244
3296
  originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3297
+ /**
3298
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3299
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3300
+ */
3301
+ windowState?: boolean;
3245
3302
  };
3246
3303
 
3247
3304
  /**
@@ -5503,6 +5560,33 @@ declare type ExitCode = {
5503
5560
  exitCode: number;
5504
5561
  };
5505
5562
 
5563
+ /**
5564
+ * Options for invoking an extension action.
5565
+ *
5566
+ * @interface
5567
+ */
5568
+ declare type ExtensionActionInvokeOptions = {
5569
+ extensionId: ExtensionId;
5570
+ /** Anchor in window client coordinates (from getBoundingClientRect). */
5571
+ anchor: Anchor;
5572
+ };
5573
+
5574
+ /**
5575
+ * Minimal UI model required to render a list of extension actions.
5576
+ *
5577
+ * @interface
5578
+ */
5579
+ declare type ExtensionActionListItem = {
5580
+ /** Stable ID for the extension that owns this action. */
5581
+ extensionId: ExtensionId;
5582
+ /** Whether to show the action button for the current context (active tab). */
5583
+ isVisible: boolean;
5584
+ /** Accessible label / title for the action button. */
5585
+ title: string;
5586
+ /** Renderer-safe icon (data URL). */
5587
+ iconDataUrl: string;
5588
+ };
5589
+
5506
5590
  declare type ExtensionEvent = SecurityRealmEvent & {
5507
5591
  /**
5508
5592
  * Runtime extension whose status has been (possibly) modified
@@ -5510,6 +5594,13 @@ declare type ExtensionEvent = SecurityRealmEvent & {
5510
5594
  extension: string;
5511
5595
  };
5512
5596
 
5597
+ /**
5598
+ * Unique identifier of a Chromium extension.
5599
+ *
5600
+ * @interface
5601
+ */
5602
+ declare type ExtensionId = string;
5603
+
5513
5604
  /**
5514
5605
  * @interface
5515
5606
  */
@@ -5957,6 +6048,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5957
6048
  readonly Interop: InteropModule;
5958
6049
  readonly SnapshotSource: SnapshotSourceModule;
5959
6050
  readonly NotificationManager: NotificationManagerModule;
6051
+ readonly ChromeBrowser: OpenFin_2.ChromeBrowser;
5960
6052
  /**
5961
6053
  * Provides access to the OpenFin representation of the current code context (usually an entity
5962
6054
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -10591,6 +10683,7 @@ declare namespace OpenFin_2 {
10591
10683
  SnapshotSource,
10592
10684
  SnapshotSourceModule,
10593
10685
  System,
10686
+ Readable,
10594
10687
  LayoutEntityDefinition,
10595
10688
  LayoutEntityTypes,
10596
10689
  LayoutPosition,
@@ -10623,6 +10716,10 @@ declare namespace OpenFin_2 {
10623
10716
  AnchorLocation,
10624
10717
  Anchor,
10625
10718
  DownloadBubbleOptions,
10719
+ ExtensionId,
10720
+ ExtensionActionListItem,
10721
+ ExtensionActionInvokeOptions,
10722
+ ChromeBrowserActions,
10626
10723
  DisplayMetadata,
10627
10724
  LegacyWinOptionsInAppOptions,
10628
10725
  Snapshot,
@@ -10988,6 +11085,7 @@ declare namespace OpenFin_2 {
10988
11085
  InteropClientEvent,
10989
11086
  ClientChangedContextGroup,
10990
11087
  InteropClientEvents,
11088
+ ChromeBrowser,
10991
11089
  ApplicationEvents,
10992
11090
  BaseEvents,
10993
11091
  ExternalApplicationEvents,
@@ -12742,6 +12840,38 @@ declare interface PlatformProvider {
12742
12840
  * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
12743
12841
  */
12744
12842
  shouldWindowPreventQuit(windowIdentity: OpenFin_2.Identity): Promise<boolean>;
12843
+ /**
12844
+ * Returns the platform's keyboard commands. Default implementation returns the manifest's
12845
+ * `platform.commands`. Override to inject additional default commands.
12846
+ * Called once during Platform.init; the result is cached for the lifetime
12847
+ * of the platform.
12848
+ *
12849
+ * @remarks
12850
+ * The returned commands are merged with core's built-in default commands
12851
+ * (unless `disableDefaultCommands` is set).
12852
+ * Overriders receive the raw manifest commands from `super` and can prepend
12853
+ * their own defaults — returned commands override default commands by command name.
12854
+ *
12855
+ * @example
12856
+ * ```js
12857
+ * const overrideCallback = (PlatformProvider) => {
12858
+ * class Override extends PlatformProvider {
12859
+ * getKeyboardCommands() {
12860
+ * const manifestCommands = super.getKeyboardCommands();
12861
+ * const myCommands = [{ command: 'myApp.search', keys: 'Ctrl+K' }];
12862
+ * return [
12863
+ * ...myCommands,
12864
+ * ...manifestCommands
12865
+ * ];
12866
+ * }
12867
+ * }
12868
+ * return new Override();
12869
+ * }
12870
+ *
12871
+ * fin.Platform.init({ overrideCallback });
12872
+ * ```
12873
+ */
12874
+ getKeyboardCommands(): OpenFin_2.ShortcutOverride[];
12745
12875
  /**
12746
12876
  * 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
12747
12877
  */
@@ -13552,7 +13682,7 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13552
13682
  }>;
13553
13683
  'destroy-view': IdentityCall;
13554
13684
  'attach-view': IdentityCall<{
13555
- target: OpenFin_2.Identity;
13685
+ target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
13556
13686
  }>;
13557
13687
  'set-view-bounds': IdentityCall<{
13558
13688
  bounds: OpenFin_2.Bounds;
@@ -14213,6 +14343,14 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14213
14343
  };
14214
14344
  response: void;
14215
14345
  };
14346
+ 'chrome-browser-get-extension-actions': ApiCall<{}, {
14347
+ actions: OpenFin_2.ExtensionActionListItem[];
14348
+ }>;
14349
+ 'chrome-browser-invoke-extension-action': ApiCall<{
14350
+ extensionId: string;
14351
+ anchor: OpenFin_2.Anchor;
14352
+ }, void>;
14353
+ 'chrome-browser-hide-active-extension-popup': ApiCall<{}, void>;
14216
14354
  };
14217
14355
 
14218
14356
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -14309,6 +14447,21 @@ declare type QueryPermissionResult = {
14309
14447
  rawValue?: unknown;
14310
14448
  };
14311
14449
 
14450
+ /**
14451
+ * A readonly implementation of the observable pattern.
14452
+ * Frameworks and vanilla consumers use this to read state and subscribe to changes.
14453
+ */
14454
+ declare interface Readable<T> {
14455
+ /** Synchronously returns the current value. */
14456
+ get(): T;
14457
+ /**
14458
+ * Subscribes to changes.
14459
+ * @param listener A callback that is invoked when the value changes.
14460
+ * @returns An unsubscribe function to clean up the listener.
14461
+ */
14462
+ subscribe(listener: () => void): () => void;
14463
+ }
14464
+
14312
14465
  /**
14313
14466
  * @interface
14314
14467
  */
@@ -15355,13 +15508,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15355
15508
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
15356
15509
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
15357
15510
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
15511
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
15358
15512
  * @example
15359
15513
  * ```js
15360
15514
  * const clearCacheOptions = {
15361
15515
  * appcache: true,
15362
15516
  * cache: true,
15363
15517
  * cookies: true,
15364
- * localStorage: true
15518
+ * localStorage: true,
15519
+ * windowState: true
15365
15520
  * };
15366
15521
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
15367
15522
  * ```
@@ -15386,12 +15541,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15386
15541
  *
15387
15542
  * @param options - Optional configuration for what data to clear
15388
15543
  *
15544
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
15545
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
15546
+ *
15389
15547
  * @example
15390
15548
  * ```js
15391
15549
  * // Clear only cookies and localStorage for a specific origin
15392
15550
  * await fin.System.clearCacheData({
15393
15551
  * dataTypes: ['cookies', 'localStorage'],
15394
- * origins: ['http://localhost:8081']
15552
+ * origins: ['http://localhost:8081'],
15553
+ * windowState: true
15395
15554
  * });
15396
15555
  *
15397
15556
  * // Clear everything except for a specific origin
@@ -17859,7 +18018,7 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
17859
18018
  * ```
17860
18019
  * @experimental
17861
18020
  */
17862
- attach: (target: OpenFin_2.Identity) => Promise<void>;
18021
+ attach: (target: OpenFin_2.Identity | OpenFin_2.LayoutIdentity) => Promise<void>;
17863
18022
  /**
17864
18023
  * Destroys the current view
17865
18024
  *
@@ -18317,7 +18476,7 @@ declare type ViewCreationFailure = {
18317
18476
  declare type ViewCreationOptions = Partial<ViewOptions> & {
18318
18477
  name: string;
18319
18478
  url: string;
18320
- target: Identity_4;
18479
+ target: Identity_4 | LayoutIdentity;
18321
18480
  };
18322
18481
 
18323
18482
  declare type ViewCreationOrReference = OpenFin_2.Identity | OpenFin_2.PlatformViewCreationOptions;