@atlaskit/editor-core 234.3.1 → 234.3.2

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/version-wrapper.js +1 -1
  3. package/dist/es2019/version-wrapper.js +1 -1
  4. package/dist/esm/version-wrapper.js +1 -1
  5. package/package.json +3 -3
  6. package/dist/cjs/utils/performance/outlier.js +0 -16
  7. package/dist/cjs/utils/performance/percentile.js +0 -22
  8. package/dist/cjs/utils/performance/plugin-performance-observer.js +0 -131
  9. package/dist/cjs/utils/performance/plugin-performance-report.js +0 -190
  10. package/dist/cjs/utils/performance/simple-measure-to-entries.js +0 -101
  11. package/dist/es2019/utils/performance/outlier.js +0 -10
  12. package/dist/es2019/utils/performance/percentile.js +0 -14
  13. package/dist/es2019/utils/performance/plugin-performance-observer.js +0 -88
  14. package/dist/es2019/utils/performance/plugin-performance-report.js +0 -133
  15. package/dist/es2019/utils/performance/simple-measure-to-entries.js +0 -83
  16. package/dist/esm/utils/performance/outlier.js +0 -10
  17. package/dist/esm/utils/performance/percentile.js +0 -16
  18. package/dist/esm/utils/performance/plugin-performance-observer.js +0 -124
  19. package/dist/esm/utils/performance/plugin-performance-report.js +0 -183
  20. package/dist/esm/utils/performance/simple-measure-to-entries.js +0 -94
  21. package/dist/types/utils/performance/outlier.d.ts +0 -1
  22. package/dist/types/utils/performance/percentile.d.ts +0 -1
  23. package/dist/types/utils/performance/plugin-performance-observer.d.ts +0 -23
  24. package/dist/types/utils/performance/plugin-performance-report.d.ts +0 -47
  25. package/dist/types/utils/performance/simple-measure-to-entries.d.ts +0 -28
@@ -1,47 +0,0 @@
1
- import type { NodeCount, PluginPerformanceReportData } from '@atlaskit/editor-common/analytics';
2
- export interface OutlierReport {
3
- stateApplyOutlier: number | undefined;
4
- viewUpdateOutlier: number | undefined;
5
- }
6
- export interface PluginPerformanceReportOptions {
7
- outlierFactor: number;
8
- outlierThreshold: number;
9
- samplingRate: number;
10
- slowThreshold: number;
11
- usePerformanceMarks?: boolean;
12
- }
13
- export type NodesCount = {
14
- extensionNodeCount: NodeCount;
15
- nodeCount: NodeCount;
16
- };
17
- export declare class PluginPerformanceReport {
18
- private entry;
19
- private count;
20
- private pluginNames;
21
- private entryList?;
22
- private stateApplied?;
23
- private viewUpdated?;
24
- private onChangeCalled?;
25
- private onEditorViewStateUpdatedCalled?;
26
- private nodes;
27
- private extensionNodes;
28
- private nodesDuration;
29
- private plugins;
30
- private slowPlugins;
31
- private options;
32
- private constructor();
33
- static fromEntry(entry: PerformanceEntry): PluginPerformanceReport;
34
- private isChild;
35
- private getEntryByName;
36
- private getMethodSum;
37
- private greaterEquals;
38
- private hasOutlierMethods;
39
- get trigger(): 'none' | 'slow' | 'distribution' | 'sample';
40
- get hasSlowPlugins(): boolean;
41
- withEntryList(entryList: PerformanceObserverEntryList): this;
42
- withPlugins(pluginNames: string[]): this;
43
- withNodes(nodesCount: NodesCount, nodesDuration?: number): this;
44
- withCount(count: number): this;
45
- withOptions(options: Partial<PluginPerformanceReportOptions>): this;
46
- toJSON(): PluginPerformanceReportData;
47
- }
@@ -1,28 +0,0 @@
1
- interface Reading {
2
- duration: number;
3
- name: string;
4
- startTime: number;
5
- }
6
- type ObservationCallback = (entries: PerformanceObserverEntryList) => void;
7
- /**
8
- * A class that logs and collates measurement entries until
9
- * EVENT_NAME_DISPATCHTRANSACTION is detected.
10
- *
11
- * At that point, it will group together all the entries
12
- * logged and fire a callback with all entries packaged
13
- * into a PerformanceObserverEntryList.
14
- *
15
- * We are able to make use of this method as the measurements
16
- * which occur during dispatchTransactions are synchronous.
17
- */
18
- export declare class SimpleMeasurementLogger {
19
- private currentBatch;
20
- private pluginNameCache;
21
- private observationCallback?;
22
- setPluginNames: (names: string[]) => void;
23
- setOnObservation: (callback: ObservationCallback) => void;
24
- private createPerformanceEntry;
25
- private convertToEntryList;
26
- observed: (reading: Reading) => void;
27
- }
28
- export {};