@openfin/core 44.101.2 → 44.101.4
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/out/mock-alpha.d.ts +204 -4
- package/out/mock-beta.d.ts +204 -4
- package/out/mock-public.d.ts +204 -4
- package/out/stub.d.ts +204 -4
- package/out/stub.js +8 -2
- package/out/stub.mjs +17028 -0
- package/package.json +16 -1
package/out/stub.js
CHANGED
|
@@ -5170,13 +5170,15 @@ class System extends EmitterBase {
|
|
|
5170
5170
|
* * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
|
|
5171
5171
|
* * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
|
|
5172
5172
|
* * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
|
|
5173
|
+
* * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
|
|
5173
5174
|
* @example
|
|
5174
5175
|
* ```js
|
|
5175
5176
|
* const clearCacheOptions = {
|
|
5176
5177
|
* appcache: true,
|
|
5177
5178
|
* cache: true,
|
|
5178
5179
|
* cookies: true,
|
|
5179
|
-
* localStorage: true
|
|
5180
|
+
* localStorage: true,
|
|
5181
|
+
* windowState: true
|
|
5180
5182
|
* };
|
|
5181
5183
|
* fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
|
|
5182
5184
|
* ```
|
|
@@ -5205,12 +5207,16 @@ class System extends EmitterBase {
|
|
|
5205
5207
|
*
|
|
5206
5208
|
* @param options - Optional configuration for what data to clear
|
|
5207
5209
|
*
|
|
5210
|
+
* @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
|
|
5211
|
+
* After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
|
|
5212
|
+
*
|
|
5208
5213
|
* @example
|
|
5209
5214
|
* ```js
|
|
5210
5215
|
* // Clear only cookies and localStorage for a specific origin
|
|
5211
5216
|
* await fin.System.clearCacheData({
|
|
5212
5217
|
* dataTypes: ['cookies', 'localStorage'],
|
|
5213
|
-
* origins: ['http://localhost:8081']
|
|
5218
|
+
* origins: ['http://localhost:8081'],
|
|
5219
|
+
* windowState: true
|
|
5214
5220
|
* });
|
|
5215
5221
|
*
|
|
5216
5222
|
* // Clear everything except for a specific origin
|