@atlaskit/react-ufo 3.13.27 → 3.14.0

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.
@@ -3,7 +3,9 @@ declare global {
3
3
  var PressureObserver: PressureObserverInterface;
4
4
  }
5
5
  export declare function resetPressureRecordBuffer(): void;
6
- export declare function removeOldBufferRecords(filter: DOMHighResTimeStamp): void;
6
+ export declare function resetMemoryRecordBuffer(): void;
7
+ export declare function removeOldPressureBufferRecords(filter: DOMHighResTimeStamp): void;
8
+ export declare function removeOldMemoryBufferRecords(filter: DOMHighResTimeStamp): void;
7
9
  export declare function createPressureStateReport(start: DOMHighResTimeStamp, end: DOMHighResTimeStamp): {
8
10
  count: {
9
11
  nominal: number;
@@ -18,5 +20,12 @@ export declare function createPressureStateReport(start: DOMHighResTimeStamp, en
18
20
  critical: number;
19
21
  };
20
22
  } | null;
23
+ export declare function createMemoryStateReport(start: DOMHighResTimeStamp, end: DOMHighResTimeStamp): {
24
+ jsHeapSizeLimitInMB: number;
25
+ avgTotalJSHeapSizeInMB: number;
26
+ avgUsedJSHeapSizeInMB: number;
27
+ } | null;
21
28
  export declare function initialisePressureObserver(): void;
29
+ export declare function initialiseMemoryObserver(): void;
30
+ export declare function disconnectMemoryObserver(): void;
22
31
  export declare function disconnectPressureObserver(): void;
@@ -17,3 +17,9 @@ export interface PressureObserverInstance {
17
17
  export interface PressureObserver {
18
18
  new (callback: PressureObserverCallback): PressureObserverInstance;
19
19
  }
20
+ export interface MemoryRecord {
21
+ time: DOMHighResTimeStamp;
22
+ totalJSHeapSize: number;
23
+ usedJSHeapSize: number;
24
+ jsHeapSizeLimit: number;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "3.13.27",
3
+ "version": "3.14.0",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -133,6 +133,9 @@
133
133
  "platform_ufo_report_cpu_usage": {
134
134
  "type": "boolean"
135
135
  },
136
+ "platform_ufo_report_memory_usage": {
137
+ "type": "boolean"
138
+ },
136
139
  "platform_ufo_emit_vc_debug_data": {
137
140
  "type": "boolean"
138
141
  },
@@ -186,6 +189,9 @@
186
189
  },
187
190
  "platform_ufo_ignore_extra_attributes": {
188
191
  "type": "boolean"
192
+ },
193
+ "platform_ufo_enable_unknown_interactions_elements": {
194
+ "type": "boolean"
189
195
  }
190
196
  }
191
197
  }