@atlaskit/react-ufo 3.13.0 → 3.13.1

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 (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/config/index.js +15 -20
  3. package/dist/cjs/create-payload/utils/get-vc-metrics.js +5 -44
  4. package/dist/cjs/vc/index.js +49 -101
  5. package/dist/cjs/vc/vc-observer/getVCRevisionsData.js +13 -67
  6. package/dist/cjs/vc/vc-observer/index.js +27 -107
  7. package/dist/es2019/config/index.js +18 -23
  8. package/dist/es2019/create-payload/utils/get-vc-metrics.js +12 -41
  9. package/dist/es2019/vc/index.js +44 -88
  10. package/dist/es2019/vc/vc-observer/getVCRevisionsData.js +15 -71
  11. package/dist/es2019/vc/vc-observer/index.js +5 -87
  12. package/dist/esm/config/index.js +15 -20
  13. package/dist/esm/create-payload/utils/get-vc-metrics.js +6 -45
  14. package/dist/esm/vc/index.js +49 -101
  15. package/dist/esm/vc/vc-observer/getVCRevisionsData.js +13 -67
  16. package/dist/esm/vc/vc-observer/index.js +27 -107
  17. package/dist/types/common/vc/types.d.ts +0 -2
  18. package/dist/types/create-post-interaction-log-payload/index.d.ts +1 -1
  19. package/dist/types/vc/vc-observer/getVCRevisionsData.d.ts +2 -17
  20. package/dist/types/vc/vc-observer/index.d.ts +0 -4
  21. package/dist/types-ts4.5/common/vc/types.d.ts +0 -2
  22. package/dist/types-ts4.5/create-post-interaction-log-payload/index.d.ts +1 -1
  23. package/dist/types-ts4.5/vc/vc-observer/getVCRevisionsData.d.ts +2 -17
  24. package/dist/types-ts4.5/vc/vc-observer/index.d.ts +0 -4
  25. package/package.json +1 -4
  26. package/dist/cjs/vc/vc-observer/heatmap/heatmap.js +0 -281
  27. package/dist/cjs/vc/vc-observer/revisions/ViewportUpdateClassifier.js +0 -68
  28. package/dist/cjs/vc/vc-observer/revisions/fy25_01.js +0 -76
  29. package/dist/cjs/vc/vc-observer/revisions/fy25_02.js +0 -59
  30. package/dist/cjs/vc/vc-observer/revisions/revisions.js +0 -24
  31. package/dist/cjs/vc/vc-observer/revisions/types.js +0 -5
  32. package/dist/es2019/vc/vc-observer/heatmap/heatmap.js +0 -247
  33. package/dist/es2019/vc/vc-observer/revisions/ViewportUpdateClassifier.js +0 -48
  34. package/dist/es2019/vc/vc-observer/revisions/fy25_01.js +0 -55
  35. package/dist/es2019/vc/vc-observer/revisions/fy25_02.js +0 -35
  36. package/dist/es2019/vc/vc-observer/revisions/revisions.js +0 -18
  37. package/dist/es2019/vc/vc-observer/revisions/types.js +0 -1
  38. package/dist/esm/vc/vc-observer/heatmap/heatmap.js +0 -274
  39. package/dist/esm/vc/vc-observer/revisions/ViewportUpdateClassifier.js +0 -61
  40. package/dist/esm/vc/vc-observer/revisions/fy25_01.js +0 -69
  41. package/dist/esm/vc/vc-observer/revisions/fy25_02.js +0 -52
  42. package/dist/esm/vc/vc-observer/revisions/revisions.js +0 -18
  43. package/dist/esm/vc/vc-observer/revisions/types.js +0 -1
  44. package/dist/types/vc/vc-observer/heatmap/heatmap.d.ts +0 -79
  45. package/dist/types/vc/vc-observer/revisions/ViewportUpdateClassifier.d.ts +0 -31
  46. package/dist/types/vc/vc-observer/revisions/fy25_01.d.ts +0 -13
  47. package/dist/types/vc/vc-observer/revisions/fy25_02.d.ts +0 -16
  48. package/dist/types/vc/vc-observer/revisions/revisions.d.ts +0 -2
  49. package/dist/types/vc/vc-observer/revisions/types.d.ts +0 -28
  50. package/dist/types-ts4.5/vc/vc-observer/heatmap/heatmap.d.ts +0 -79
  51. package/dist/types-ts4.5/vc/vc-observer/revisions/ViewportUpdateClassifier.d.ts +0 -31
  52. package/dist/types-ts4.5/vc/vc-observer/revisions/fy25_01.d.ts +0 -13
  53. package/dist/types-ts4.5/vc/vc-observer/revisions/fy25_02.d.ts +0 -16
  54. package/dist/types-ts4.5/vc/vc-observer/revisions/revisions.d.ts +0 -2
  55. package/dist/types-ts4.5/vc/vc-observer/revisions/types.d.ts +0 -28
@@ -1,61 +0,0 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- export var ViewportUpdateClassifier = /*#__PURE__*/function () {
6
- function ViewportUpdateClassifier() {
7
- _classCallCheck(this, ViewportUpdateClassifier);
8
- _defineProperty(this, "types", []);
9
- _defineProperty(this, "filters", []);
10
- _defineProperty(this, "removedFilters", []);
11
- _defineProperty(this, "__combinedTypes", []);
12
- _defineProperty(this, "__combinedFilters", []);
13
- }
14
- return _createClass(ViewportUpdateClassifier, [{
15
- key: "VCCalculationMethod",
16
- value: function VCCalculationMethod(_) {
17
- return {
18
- VC: {},
19
- VCBox: {}
20
- };
21
- }
22
-
23
- // @todo remove it once fixed as described: https://product-fabric.atlassian.net/browse/AFO-3443
24
- }, {
25
- key: "filterComponentsLog",
26
- value: function filterComponentsLog(_ref) {
27
- var componentsLog = _ref.componentsLog;
28
- return componentsLog;
29
- }
30
- }, {
31
- key: "mergeConfig",
32
- value: function mergeConfig() {
33
- var _this = this;
34
- this.__combinedTypes = [].concat(_toConsumableArray(this.types), _toConsumableArray((this === null || this === void 0 ? void 0 : this.__combinedTypes) || []));
35
- var previousFilters = this.removedFilters.length === 0 ? this.__combinedFilters : this.__combinedFilters.filter(function (filter) {
36
- return !_this.removedFilters.includes(filter.name);
37
- });
38
- this.__combinedFilters = [].concat(_toConsumableArray(this.filters), _toConsumableArray(previousFilters));
39
- }
40
- }, {
41
- key: "classifyUpdate",
42
- value: function classifyUpdate(_ref2) {
43
- var element = _ref2.element,
44
- type = _ref2.type,
45
- tags = _ref2.tags,
46
- ignoreReason = _ref2.ignoreReason;
47
- if (!this.__combinedTypes.includes(type)) {
48
- return false;
49
- }
50
- return this.__combinedFilters.every(function (_ref3) {
51
- var filter = _ref3.filter,
52
- name = _ref3.name;
53
- return filter({
54
- type: type,
55
- tags: tags,
56
- ignoreReason: ignoreReason
57
- });
58
- });
59
- }
60
- }]);
61
- }();
@@ -1,69 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
- import { ViewportUpdateClassifier } from './ViewportUpdateClassifier';
10
- var legacyIgnoreReasons = ['image', 'ssr-hydration'];
11
- export var FY25_01Classifier = /*#__PURE__*/function (_ViewportUpdateClassi) {
12
- function FY25_01Classifier() {
13
- var _this;
14
- _classCallCheck(this, FY25_01Classifier);
15
- _this = _callSuper(this, FY25_01Classifier);
16
- _defineProperty(_this, "revision", 'fy25.01');
17
- _defineProperty(_this, "types", ['html', 'text']);
18
- _defineProperty(_this, "filters", [{
19
- name: 'default-ignore-reasons',
20
- filter: function filter(_ref) {
21
- var type = _ref.type,
22
- ignoreReason = _ref.ignoreReason;
23
- return !ignoreReason || !legacyIgnoreReasons.includes(ignoreReason);
24
- }
25
- }]);
26
- _this.mergeConfig();
27
- return _this;
28
- }
29
- _inherits(FY25_01Classifier, _ViewportUpdateClassi);
30
- return _createClass(FY25_01Classifier, [{
31
- key: "VCCalculationMethod",
32
- value: function VCCalculationMethod(_ref2) {
33
- var VCParts = _ref2.VCParts,
34
- entries = _ref2.entries,
35
- totalPainted = _ref2.totalPainted,
36
- componentsLog = _ref2.componentsLog;
37
- var VC = {};
38
- var VCBox = {};
39
- entries.reduce(function () {
40
- var acc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
41
- var v = arguments.length > 1 ? arguments[1] : undefined;
42
- var VCRatio = v[1] / totalPainted + acc;
43
- var time = v[0];
44
-
45
- // @todo apply fix to include small changes into accumulator
46
- var preciseCurrRatio = Math.round(100 * (v[1] / totalPainted));
47
- var preciseAccRatio = Math.round(acc * 100);
48
- VCRatio = (preciseCurrRatio + preciseAccRatio) / 100;
49
- VCParts.forEach(function (value) {
50
- if ((VC[value] === null || VC[value] === undefined) && VCRatio >= value / 100) {
51
- var _componentsLog$time;
52
- VC[value] = time;
53
- VCBox[value] = new Set();
54
- (_componentsLog$time = componentsLog[time]) === null || _componentsLog$time === void 0 || _componentsLog$time.forEach(function (v) {
55
- var _VCBox$value;
56
- return (_VCBox$value = VCBox[value]) === null || _VCBox$value === void 0 ? void 0 : _VCBox$value.add(v.targetName);
57
- });
58
- }
59
- });
60
- return VCRatio;
61
- }, 0);
62
- return {
63
- VC: VC,
64
- VCBox: VCBox
65
- };
66
- }
67
- }]);
68
- }(ViewportUpdateClassifier);
69
- export var revFY25_01Classifier = new FY25_01Classifier();
@@ -1,52 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- import { FY25_01Classifier } from './fy25_01';
11
- export var FY25_02Classifier = /*#__PURE__*/function (_FY25_01Classifier) {
12
- function FY25_02Classifier() {
13
- var _this;
14
- _classCallCheck(this, FY25_02Classifier);
15
- _this = _callSuper(this, FY25_02Classifier);
16
- _defineProperty(_this, "revision", 'fy25.02');
17
- _defineProperty(_this, "types", ['attr']);
18
- _defineProperty(_this, "filters", [{
19
- name: 'not-visible',
20
- filter: function filter(_ref) {
21
- var type = _ref.type,
22
- ignoreReason = _ref.ignoreReason;
23
- return !(ignoreReason !== null && ignoreReason !== void 0 && ignoreReason.includes('not-visible')) && ignoreReason !== 'non-visual-style';
24
- }
25
- }]);
26
- _defineProperty(_this, "removedFilters", []);
27
- _this.mergeConfig();
28
- return _this;
29
- }
30
- _inherits(FY25_02Classifier, _FY25_01Classifier);
31
- return _createClass(FY25_02Classifier, [{
32
- key: "filterComponentsLog",
33
- value:
34
- // @todo remove it once fixed as described: https://product-fabric.atlassian.net/browse/AFO-3443
35
- function filterComponentsLog(_ref2) {
36
- var componentsLog = _ref2.componentsLog,
37
- ttai = _ref2.ttai;
38
- var _componentsLog = {};
39
- Object.entries(componentsLog).forEach(function (_ref3) {
40
- var _ref4 = _slicedToArray(_ref3, 2),
41
- _timestamp = _ref4[0],
42
- value = _ref4[1];
43
- var timestamp = Number(_timestamp);
44
- if (Math.ceil(ttai) >= timestamp) {
45
- _componentsLog[timestamp] = value;
46
- }
47
- });
48
- return _componentsLog;
49
- }
50
- }]);
51
- }(FY25_01Classifier);
52
- export var revFY25_02Classifier = new FY25_02Classifier();
@@ -1,18 +0,0 @@
1
- import { isVCRevisionEnabled } from '../../../config';
2
- import { revFY25_01Classifier } from './fy25_01';
3
- import { revFY25_02Classifier } from './fy25_02';
4
- export function getRevisions() {
5
- if (!isVCRevisionEnabled('fy25.01')) {
6
- return [{
7
- name: 'fy25.02',
8
- classifier: revFY25_02Classifier
9
- }];
10
- }
11
- return [{
12
- name: 'fy25.01',
13
- classifier: revFY25_01Classifier
14
- }, {
15
- name: 'fy25.02',
16
- classifier: revFY25_02Classifier
17
- }];
18
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,79 +0,0 @@
1
- import type { ComponentsLogType, RevisionPayload, VCEntryType, VCIgnoreReason, VCRatioType } from '../../../common/vc/types';
2
- import type { ObservedMutationType } from '../observers/types';
3
- import type { FilterComponentsLogType, RevisionEntry, VCCalculationMethodType } from '../revisions/types';
4
- type Viewport = {
5
- w: number;
6
- h: number;
7
- };
8
- type ArraySize = {
9
- w: number;
10
- h: number;
11
- };
12
- type HeatmapAttrs = {
13
- viewport: Viewport;
14
- revisions: RevisionEntry[];
15
- arraySize?: ArraySize;
16
- devToolsEnabled?: boolean;
17
- };
18
- type Heatmap = Int32Array;
19
- type ProcessDataArgs = {
20
- VCParts: number[];
21
- VCCalculationMethods: VCCalculationMethodType[];
22
- clean: boolean;
23
- isEventAborted: boolean;
24
- interactionStart: number;
25
- ttai: number;
26
- filterComponentsLog: FilterComponentsLogType[];
27
- ssr?: number;
28
- };
29
- type PerRevision<T> = T[];
30
- export type ApplyChangesError = {
31
- error: string;
32
- time: number;
33
- };
34
- export type HandleUpdateArgs = {
35
- time: number;
36
- type: ObservedMutationType;
37
- classification: boolean[];
38
- intersectionRect: DOMRectReadOnly;
39
- element: HTMLElement;
40
- targetName: string;
41
- ignoreReason?: VCIgnoreReason;
42
- onError: (error: ApplyChangesError) => void;
43
- attributeName?: string | null;
44
- oldValue?: string | null;
45
- newValue?: string | null;
46
- };
47
- export declare class MultiRevisionHeatmap {
48
- viewport: Viewport;
49
- arraySize: ArraySize;
50
- revisions: RevisionEntry[];
51
- heatmaps: Heatmap[];
52
- devToolsEnabled: boolean;
53
- vcRatios: PerRevision<VCRatioType>;
54
- componentsLogs: PerRevision<ComponentsLogType>;
55
- constructor({ viewport, revisions, arraySize, devToolsEnabled }: HeatmapAttrs);
56
- handleUpdate({ time, type, classification, intersectionRect, element, targetName, ignoreReason, onError, attributeName, oldValue, newValue, }: HandleUpdateArgs): void;
57
- getData(): {
58
- heatmaps: Int32Array[];
59
- };
60
- getPayloadShapedData(args: ProcessDataArgs): RevisionPayload;
61
- processData({ VCParts, VCCalculationMethods, filterComponentsLog, ttai, ssr, }: ProcessDataArgs): {
62
- VC: import("../revisions/types").VCType;
63
- VCBox: import("../revisions/types").VCBoxType;
64
- VCEntries: {
65
- abs: number[][];
66
- rel: VCEntryType[];
67
- };
68
- totalPainted: number;
69
- }[];
70
- private mapPixelsToHeatmap;
71
- private getElementRatio;
72
- private applyChangesToHeatMap;
73
- private getIndex;
74
- private getCleanHeatmap;
75
- static makeVCReturnObj<T>(VCParts: number[]): {
76
- [key: string]: T | null;
77
- };
78
- }
79
- export {};
@@ -1,31 +0,0 @@
1
- import type { FilterComponentsLogArgs, VCCalculationMethodArgs } from './types';
2
- export type FilterArgs = {
3
- type: string;
4
- tags?: string[];
5
- ignoreReason?: string;
6
- };
7
- type Filter = {
8
- name: string;
9
- filter: (args: FilterArgs) => boolean;
10
- };
11
- type ClassifyUpdateArgs = {
12
- element: HTMLElement;
13
- type: string;
14
- tags?: string[];
15
- ignoreReason?: string;
16
- };
17
- export declare class ViewportUpdateClassifier {
18
- types: string[];
19
- filters: Filter[];
20
- removedFilters: string[];
21
- VCCalculationMethod(_: VCCalculationMethodArgs): {
22
- VC: {};
23
- VCBox: {};
24
- };
25
- filterComponentsLog({ componentsLog }: FilterComponentsLogArgs): import("../../../common/vc/types").ComponentsLogType;
26
- protected __combinedTypes: string[];
27
- protected __combinedFilters: Filter[];
28
- mergeConfig(): void;
29
- classifyUpdate({ element, type, tags, ignoreReason }: ClassifyUpdateArgs): boolean;
30
- }
31
- export {};
@@ -1,13 +0,0 @@
1
- import type { VCCalculationMethodArgs, VCCalculationMethodReturn } from './types';
2
- import { type FilterArgs, ViewportUpdateClassifier } from './ViewportUpdateClassifier';
3
- export declare class FY25_01Classifier extends ViewportUpdateClassifier {
4
- revision: string;
5
- types: string[];
6
- filters: {
7
- name: string;
8
- filter: ({ type, ignoreReason }: FilterArgs) => boolean;
9
- }[];
10
- VCCalculationMethod({ VCParts, entries, totalPainted, componentsLog, }: VCCalculationMethodArgs): VCCalculationMethodReturn;
11
- constructor();
12
- }
13
- export declare const revFY25_01Classifier: FY25_01Classifier;
@@ -1,16 +0,0 @@
1
- import type { ComponentsLogType } from '../../../common/vc/types';
2
- import { FY25_01Classifier } from './fy25_01';
3
- import type { FilterComponentsLogArgs } from './types';
4
- import type { FilterArgs } from './ViewportUpdateClassifier';
5
- export declare class FY25_02Classifier extends FY25_01Classifier {
6
- revision: string;
7
- types: string[];
8
- filters: {
9
- name: string;
10
- filter: ({ type, ignoreReason }: FilterArgs) => boolean;
11
- }[];
12
- removedFilters: never[];
13
- filterComponentsLog({ componentsLog, ttai }: FilterComponentsLogArgs): ComponentsLogType;
14
- constructor();
15
- }
16
- export declare const revFY25_02Classifier: FY25_02Classifier;
@@ -1,2 +0,0 @@
1
- import { type RevisionEntry } from './types';
2
- export declare function getRevisions(): RevisionEntry[];
@@ -1,28 +0,0 @@
1
- import type { ComponentsLogType } from '../../../common/vc/types';
2
- import { ViewportUpdateClassifier } from './ViewportUpdateClassifier';
3
- export type RevisionEntry = {
4
- name: string;
5
- classifier: ViewportUpdateClassifier;
6
- };
7
- export type VCType = {
8
- [key: string]: number | null;
9
- };
10
- export type VCBoxType = {
11
- [key: string]: null | Set<string>;
12
- };
13
- export type VCCalculationMethodArgs = {
14
- VCParts: number[];
15
- entries: number[][];
16
- totalPainted: number;
17
- componentsLog: ComponentsLogType;
18
- };
19
- export type VCCalculationMethodReturn = {
20
- VC: VCType;
21
- VCBox: VCBoxType;
22
- };
23
- export type VCCalculationMethodType = (args: VCCalculationMethodArgs) => VCCalculationMethodReturn;
24
- export type FilterComponentsLogArgs = {
25
- componentsLog: ComponentsLogType;
26
- ttai: number;
27
- };
28
- export type FilterComponentsLogType = (args: FilterComponentsLogArgs) => ComponentsLogType;
@@ -1,79 +0,0 @@
1
- import type { ComponentsLogType, RevisionPayload, VCEntryType, VCIgnoreReason, VCRatioType } from '../../../common/vc/types';
2
- import type { ObservedMutationType } from '../observers/types';
3
- import type { FilterComponentsLogType, RevisionEntry, VCCalculationMethodType } from '../revisions/types';
4
- type Viewport = {
5
- w: number;
6
- h: number;
7
- };
8
- type ArraySize = {
9
- w: number;
10
- h: number;
11
- };
12
- type HeatmapAttrs = {
13
- viewport: Viewport;
14
- revisions: RevisionEntry[];
15
- arraySize?: ArraySize;
16
- devToolsEnabled?: boolean;
17
- };
18
- type Heatmap = Int32Array;
19
- type ProcessDataArgs = {
20
- VCParts: number[];
21
- VCCalculationMethods: VCCalculationMethodType[];
22
- clean: boolean;
23
- isEventAborted: boolean;
24
- interactionStart: number;
25
- ttai: number;
26
- filterComponentsLog: FilterComponentsLogType[];
27
- ssr?: number;
28
- };
29
- type PerRevision<T> = T[];
30
- export type ApplyChangesError = {
31
- error: string;
32
- time: number;
33
- };
34
- export type HandleUpdateArgs = {
35
- time: number;
36
- type: ObservedMutationType;
37
- classification: boolean[];
38
- intersectionRect: DOMRectReadOnly;
39
- element: HTMLElement;
40
- targetName: string;
41
- ignoreReason?: VCIgnoreReason;
42
- onError: (error: ApplyChangesError) => void;
43
- attributeName?: string | null;
44
- oldValue?: string | null;
45
- newValue?: string | null;
46
- };
47
- export declare class MultiRevisionHeatmap {
48
- viewport: Viewport;
49
- arraySize: ArraySize;
50
- revisions: RevisionEntry[];
51
- heatmaps: Heatmap[];
52
- devToolsEnabled: boolean;
53
- vcRatios: PerRevision<VCRatioType>;
54
- componentsLogs: PerRevision<ComponentsLogType>;
55
- constructor({ viewport, revisions, arraySize, devToolsEnabled }: HeatmapAttrs);
56
- handleUpdate({ time, type, classification, intersectionRect, element, targetName, ignoreReason, onError, attributeName, oldValue, newValue, }: HandleUpdateArgs): void;
57
- getData(): {
58
- heatmaps: Int32Array[];
59
- };
60
- getPayloadShapedData(args: ProcessDataArgs): RevisionPayload;
61
- processData({ VCParts, VCCalculationMethods, filterComponentsLog, ttai, ssr, }: ProcessDataArgs): {
62
- VC: import("../revisions/types").VCType;
63
- VCBox: import("../revisions/types").VCBoxType;
64
- VCEntries: {
65
- abs: number[][];
66
- rel: VCEntryType[];
67
- };
68
- totalPainted: number;
69
- }[];
70
- private mapPixelsToHeatmap;
71
- private getElementRatio;
72
- private applyChangesToHeatMap;
73
- private getIndex;
74
- private getCleanHeatmap;
75
- static makeVCReturnObj<T>(VCParts: number[]): {
76
- [key: string]: T | null;
77
- };
78
- }
79
- export {};
@@ -1,31 +0,0 @@
1
- import type { FilterComponentsLogArgs, VCCalculationMethodArgs } from './types';
2
- export type FilterArgs = {
3
- type: string;
4
- tags?: string[];
5
- ignoreReason?: string;
6
- };
7
- type Filter = {
8
- name: string;
9
- filter: (args: FilterArgs) => boolean;
10
- };
11
- type ClassifyUpdateArgs = {
12
- element: HTMLElement;
13
- type: string;
14
- tags?: string[];
15
- ignoreReason?: string;
16
- };
17
- export declare class ViewportUpdateClassifier {
18
- types: string[];
19
- filters: Filter[];
20
- removedFilters: string[];
21
- VCCalculationMethod(_: VCCalculationMethodArgs): {
22
- VC: {};
23
- VCBox: {};
24
- };
25
- filterComponentsLog({ componentsLog }: FilterComponentsLogArgs): import("../../../common/vc/types").ComponentsLogType;
26
- protected __combinedTypes: string[];
27
- protected __combinedFilters: Filter[];
28
- mergeConfig(): void;
29
- classifyUpdate({ element, type, tags, ignoreReason }: ClassifyUpdateArgs): boolean;
30
- }
31
- export {};
@@ -1,13 +0,0 @@
1
- import type { VCCalculationMethodArgs, VCCalculationMethodReturn } from './types';
2
- import { type FilterArgs, ViewportUpdateClassifier } from './ViewportUpdateClassifier';
3
- export declare class FY25_01Classifier extends ViewportUpdateClassifier {
4
- revision: string;
5
- types: string[];
6
- filters: {
7
- name: string;
8
- filter: ({ type, ignoreReason }: FilterArgs) => boolean;
9
- }[];
10
- VCCalculationMethod({ VCParts, entries, totalPainted, componentsLog, }: VCCalculationMethodArgs): VCCalculationMethodReturn;
11
- constructor();
12
- }
13
- export declare const revFY25_01Classifier: FY25_01Classifier;
@@ -1,16 +0,0 @@
1
- import type { ComponentsLogType } from '../../../common/vc/types';
2
- import { FY25_01Classifier } from './fy25_01';
3
- import type { FilterComponentsLogArgs } from './types';
4
- import type { FilterArgs } from './ViewportUpdateClassifier';
5
- export declare class FY25_02Classifier extends FY25_01Classifier {
6
- revision: string;
7
- types: string[];
8
- filters: {
9
- name: string;
10
- filter: ({ type, ignoreReason }: FilterArgs) => boolean;
11
- }[];
12
- removedFilters: never[];
13
- filterComponentsLog({ componentsLog, ttai }: FilterComponentsLogArgs): ComponentsLogType;
14
- constructor();
15
- }
16
- export declare const revFY25_02Classifier: FY25_02Classifier;
@@ -1,2 +0,0 @@
1
- import { type RevisionEntry } from './types';
2
- export declare function getRevisions(): RevisionEntry[];
@@ -1,28 +0,0 @@
1
- import type { ComponentsLogType } from '../../../common/vc/types';
2
- import { ViewportUpdateClassifier } from './ViewportUpdateClassifier';
3
- export type RevisionEntry = {
4
- name: string;
5
- classifier: ViewportUpdateClassifier;
6
- };
7
- export type VCType = {
8
- [key: string]: number | null;
9
- };
10
- export type VCBoxType = {
11
- [key: string]: null | Set<string>;
12
- };
13
- export type VCCalculationMethodArgs = {
14
- VCParts: number[];
15
- entries: number[][];
16
- totalPainted: number;
17
- componentsLog: ComponentsLogType;
18
- };
19
- export type VCCalculationMethodReturn = {
20
- VC: VCType;
21
- VCBox: VCBoxType;
22
- };
23
- export type VCCalculationMethodType = (args: VCCalculationMethodArgs) => VCCalculationMethodReturn;
24
- export type FilterComponentsLogArgs = {
25
- componentsLog: ComponentsLogType;
26
- ttai: number;
27
- };
28
- export type FilterComponentsLogType = (args: FilterComponentsLogArgs) => ComponentsLogType;