@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
+ }
@@ -161,6 +161,8 @@ export interface InteractionMetrics {
161
161
  vc?: VCRawDataType | null;
162
162
  experimentalTTAI?: number;
163
163
  experimentalVC90?: number;
164
+ unknownElementName?: string;
165
+ unknownElementHierarchy?: string;
164
166
  }
165
167
  export type LoadProfilerEventInfo = {
166
168
  identifier: string;