@atlaskit/react-ufo 3.1.0 → 3.1.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.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/common/constants.js +12 -3
- package/dist/cjs/create-payload/common/utils/index.js +3 -4
- package/dist/cjs/create-payload/index.js +26 -27
- package/dist/cjs/create-post-interaction-log-payload/index.js +1 -1
- package/dist/cjs/vc/vc-observer/index.js +5 -4
- package/dist/cjs/vc/vc-observer/revisions/fy25_01.js +42 -32
- package/dist/cjs/vc/vc-observer/revisions/fy25_02.js +68 -0
- package/dist/cjs/vc/vc-observer/revisions/revisions.js +4 -4
- package/dist/es2019/common/constants.js +10 -2
- package/dist/es2019/create-payload/common/utils/index.js +2 -4
- package/dist/es2019/create-payload/index.js +27 -28
- package/dist/es2019/create-post-interaction-log-payload/index.js +2 -2
- package/dist/es2019/vc/vc-observer/index.js +2 -2
- package/dist/es2019/vc/vc-observer/revisions/fy25_01.js +37 -24
- package/dist/es2019/vc/vc-observer/revisions/fy25_02.js +44 -0
- package/dist/es2019/vc/vc-observer/revisions/revisions.js +4 -4
- package/dist/esm/common/constants.js +10 -2
- package/dist/esm/create-payload/common/utils/index.js +2 -4
- package/dist/esm/create-payload/index.js +27 -28
- package/dist/esm/create-post-interaction-log-payload/index.js +2 -2
- package/dist/esm/vc/vc-observer/index.js +5 -4
- package/dist/esm/vc/vc-observer/revisions/fy25_01.js +42 -32
- package/dist/esm/vc/vc-observer/revisions/fy25_02.js +61 -0
- package/dist/esm/vc/vc-observer/revisions/revisions.js +4 -4
- package/dist/types/common/constants.d.ts +2 -1
- package/dist/types/create-payload/common/utils/index.d.ts +2 -1
- package/dist/types/create-payload/index.d.ts +0 -32
- package/dist/types/vc/vc-observer/revisions/fy25_01.d.ts +4 -7
- package/dist/types/vc/vc-observer/revisions/fy25_02.d.ts +16 -0
- package/dist/types-ts4.5/common/constants.d.ts +2 -1
- package/dist/types-ts4.5/create-payload/common/utils/index.d.ts +2 -1
- package/dist/types-ts4.5/create-payload/index.d.ts +0 -32
- package/dist/types-ts4.5/vc/vc-observer/revisions/fy25_01.d.ts +4 -7
- package/dist/types-ts4.5/vc/vc-observer/revisions/fy25_02.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/vc/vc-observer/revisions/fy24_01.js +0 -78
- package/dist/es2019/vc/vc-observer/revisions/fy24_01.js +0 -57
- package/dist/esm/vc/vc-observer/revisions/fy24_01.js +0 -71
- package/dist/types/vc/vc-observer/revisions/fy24_01.d.ts +0 -13
- package/dist/types-ts4.5/vc/vc-observer/revisions/fy24_01.d.ts +0 -13
|
@@ -716,7 +716,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
716
716
|
'event:source': {
|
|
717
717
|
name: string;
|
|
718
718
|
version: string;
|
|
719
|
-
payloadSource: string;
|
|
720
719
|
};
|
|
721
720
|
'event:region': string;
|
|
722
721
|
'experience:key': string;
|
|
@@ -1429,7 +1428,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
1429
1428
|
'event:source': {
|
|
1430
1429
|
name: string;
|
|
1431
1430
|
version: string;
|
|
1432
|
-
payloadSource: string;
|
|
1433
1431
|
};
|
|
1434
1432
|
'event:region': string;
|
|
1435
1433
|
'experience:key': string;
|
|
@@ -2163,7 +2161,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
2163
2161
|
'event:source': {
|
|
2164
2162
|
name: string;
|
|
2165
2163
|
version: string;
|
|
2166
|
-
payloadSource: string;
|
|
2167
2164
|
};
|
|
2168
2165
|
'event:region': string;
|
|
2169
2166
|
'experience:key': string;
|
|
@@ -2897,7 +2894,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
2897
2894
|
'event:source': {
|
|
2898
2895
|
name: string;
|
|
2899
2896
|
version: string;
|
|
2900
|
-
payloadSource: string;
|
|
2901
2897
|
};
|
|
2902
2898
|
'event:region': string;
|
|
2903
2899
|
'experience:key': string;
|
|
@@ -3613,7 +3609,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
3613
3609
|
'event:source': {
|
|
3614
3610
|
name: string;
|
|
3615
3611
|
version: string;
|
|
3616
|
-
payloadSource: string;
|
|
3617
3612
|
};
|
|
3618
3613
|
'event:region': string;
|
|
3619
3614
|
'experience:key': string;
|
|
@@ -4329,7 +4324,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
4329
4324
|
'event:source': {
|
|
4330
4325
|
name: string;
|
|
4331
4326
|
version: string;
|
|
4332
|
-
payloadSource: string;
|
|
4333
4327
|
};
|
|
4334
4328
|
'event:region': string;
|
|
4335
4329
|
'experience:key': string;
|
|
@@ -5066,7 +5060,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
5066
5060
|
'event:source': {
|
|
5067
5061
|
name: string;
|
|
5068
5062
|
version: string;
|
|
5069
|
-
payloadSource: string;
|
|
5070
5063
|
};
|
|
5071
5064
|
'event:region': string;
|
|
5072
5065
|
'experience:key': string;
|
|
@@ -5803,7 +5796,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
5803
5796
|
'event:source': {
|
|
5804
5797
|
name: string;
|
|
5805
5798
|
version: string;
|
|
5806
|
-
payloadSource: string;
|
|
5807
5799
|
};
|
|
5808
5800
|
'event:region': string;
|
|
5809
5801
|
'experience:key': string;
|
|
@@ -6516,7 +6508,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
6516
6508
|
'event:source': {
|
|
6517
6509
|
name: string;
|
|
6518
6510
|
version: string;
|
|
6519
|
-
payloadSource: string;
|
|
6520
6511
|
};
|
|
6521
6512
|
'event:region': string;
|
|
6522
6513
|
'experience:key': string;
|
|
@@ -7229,7 +7220,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
7229
7220
|
'event:source': {
|
|
7230
7221
|
name: string;
|
|
7231
7222
|
version: string;
|
|
7232
|
-
payloadSource: string;
|
|
7233
7223
|
};
|
|
7234
7224
|
'event:region': string;
|
|
7235
7225
|
'experience:key': string;
|
|
@@ -7963,7 +7953,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
7963
7953
|
'event:source': {
|
|
7964
7954
|
name: string;
|
|
7965
7955
|
version: string;
|
|
7966
|
-
payloadSource: string;
|
|
7967
7956
|
};
|
|
7968
7957
|
'event:region': string;
|
|
7969
7958
|
'experience:key': string;
|
|
@@ -8697,7 +8686,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
8697
8686
|
'event:source': {
|
|
8698
8687
|
name: string;
|
|
8699
8688
|
version: string;
|
|
8700
|
-
payloadSource: string;
|
|
8701
8689
|
};
|
|
8702
8690
|
'event:region': string;
|
|
8703
8691
|
'experience:key': string;
|
|
@@ -9413,7 +9401,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
9413
9401
|
'event:source': {
|
|
9414
9402
|
name: string;
|
|
9415
9403
|
version: string;
|
|
9416
|
-
payloadSource: string;
|
|
9417
9404
|
};
|
|
9418
9405
|
'event:region': string;
|
|
9419
9406
|
'experience:key': string;
|
|
@@ -10129,7 +10116,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
10129
10116
|
'event:source': {
|
|
10130
10117
|
name: string;
|
|
10131
10118
|
version: string;
|
|
10132
|
-
payloadSource: string;
|
|
10133
10119
|
};
|
|
10134
10120
|
'event:region': string;
|
|
10135
10121
|
'experience:key': string;
|
|
@@ -10866,7 +10852,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
10866
10852
|
'event:source': {
|
|
10867
10853
|
name: string;
|
|
10868
10854
|
version: string;
|
|
10869
|
-
payloadSource: string;
|
|
10870
10855
|
};
|
|
10871
10856
|
'event:region': string;
|
|
10872
10857
|
'experience:key': string;
|
|
@@ -11603,7 +11588,6 @@ export declare function createPayloads(interactionId: string, interaction: Inter
|
|
|
11603
11588
|
'event:source': {
|
|
11604
11589
|
name: string;
|
|
11605
11590
|
version: string;
|
|
11606
|
-
payloadSource: string;
|
|
11607
11591
|
};
|
|
11608
11592
|
'event:region': string;
|
|
11609
11593
|
'experience:key': string;
|
|
@@ -12326,7 +12310,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
12326
12310
|
'event:source': {
|
|
12327
12311
|
name: string;
|
|
12328
12312
|
version: string;
|
|
12329
|
-
payloadSource: string;
|
|
12330
12313
|
};
|
|
12331
12314
|
'event:region': string;
|
|
12332
12315
|
'experience:key': string;
|
|
@@ -13039,7 +13022,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
13039
13022
|
'event:source': {
|
|
13040
13023
|
name: string;
|
|
13041
13024
|
version: string;
|
|
13042
|
-
payloadSource: string;
|
|
13043
13025
|
};
|
|
13044
13026
|
'event:region': string;
|
|
13045
13027
|
'experience:key': string;
|
|
@@ -13773,7 +13755,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
13773
13755
|
'event:source': {
|
|
13774
13756
|
name: string;
|
|
13775
13757
|
version: string;
|
|
13776
|
-
payloadSource: string;
|
|
13777
13758
|
};
|
|
13778
13759
|
'event:region': string;
|
|
13779
13760
|
'experience:key': string;
|
|
@@ -14507,7 +14488,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
14507
14488
|
'event:source': {
|
|
14508
14489
|
name: string;
|
|
14509
14490
|
version: string;
|
|
14510
|
-
payloadSource: string;
|
|
14511
14491
|
};
|
|
14512
14492
|
'event:region': string;
|
|
14513
14493
|
'experience:key': string;
|
|
@@ -15223,7 +15203,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
15223
15203
|
'event:source': {
|
|
15224
15204
|
name: string;
|
|
15225
15205
|
version: string;
|
|
15226
|
-
payloadSource: string;
|
|
15227
15206
|
};
|
|
15228
15207
|
'event:region': string;
|
|
15229
15208
|
'experience:key': string;
|
|
@@ -15939,7 +15918,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
15939
15918
|
'event:source': {
|
|
15940
15919
|
name: string;
|
|
15941
15920
|
version: string;
|
|
15942
|
-
payloadSource: string;
|
|
15943
15921
|
};
|
|
15944
15922
|
'event:region': string;
|
|
15945
15923
|
'experience:key': string;
|
|
@@ -16676,7 +16654,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
16676
16654
|
'event:source': {
|
|
16677
16655
|
name: string;
|
|
16678
16656
|
version: string;
|
|
16679
|
-
payloadSource: string;
|
|
16680
16657
|
};
|
|
16681
16658
|
'event:region': string;
|
|
16682
16659
|
'experience:key': string;
|
|
@@ -17413,7 +17390,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
17413
17390
|
'event:source': {
|
|
17414
17391
|
name: string;
|
|
17415
17392
|
version: string;
|
|
17416
|
-
payloadSource: string;
|
|
17417
17393
|
};
|
|
17418
17394
|
'event:region': string;
|
|
17419
17395
|
'experience:key': string;
|
|
@@ -18126,7 +18102,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
18126
18102
|
'event:source': {
|
|
18127
18103
|
name: string;
|
|
18128
18104
|
version: string;
|
|
18129
|
-
payloadSource: string;
|
|
18130
18105
|
};
|
|
18131
18106
|
'event:region': string;
|
|
18132
18107
|
'experience:key': string;
|
|
@@ -18839,7 +18814,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
18839
18814
|
'event:source': {
|
|
18840
18815
|
name: string;
|
|
18841
18816
|
version: string;
|
|
18842
|
-
payloadSource: string;
|
|
18843
18817
|
};
|
|
18844
18818
|
'event:region': string;
|
|
18845
18819
|
'experience:key': string;
|
|
@@ -19573,7 +19547,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
19573
19547
|
'event:source': {
|
|
19574
19548
|
name: string;
|
|
19575
19549
|
version: string;
|
|
19576
|
-
payloadSource: string;
|
|
19577
19550
|
};
|
|
19578
19551
|
'event:region': string;
|
|
19579
19552
|
'experience:key': string;
|
|
@@ -20307,7 +20280,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
20307
20280
|
'event:source': {
|
|
20308
20281
|
name: string;
|
|
20309
20282
|
version: string;
|
|
20310
|
-
payloadSource: string;
|
|
20311
20283
|
};
|
|
20312
20284
|
'event:region': string;
|
|
20313
20285
|
'experience:key': string;
|
|
@@ -21023,7 +20995,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
21023
20995
|
'event:source': {
|
|
21024
20996
|
name: string;
|
|
21025
20997
|
version: string;
|
|
21026
|
-
payloadSource: string;
|
|
21027
20998
|
};
|
|
21028
20999
|
'event:region': string;
|
|
21029
21000
|
'experience:key': string;
|
|
@@ -21739,7 +21710,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
21739
21710
|
'event:source': {
|
|
21740
21711
|
name: string;
|
|
21741
21712
|
version: string;
|
|
21742
|
-
payloadSource: string;
|
|
21743
21713
|
};
|
|
21744
21714
|
'event:region': string;
|
|
21745
21715
|
'experience:key': string;
|
|
@@ -22476,7 +22446,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
22476
22446
|
'event:source': {
|
|
22477
22447
|
name: string;
|
|
22478
22448
|
version: string;
|
|
22479
|
-
payloadSource: string;
|
|
22480
22449
|
};
|
|
22481
22450
|
'event:region': string;
|
|
22482
22451
|
'experience:key': string;
|
|
@@ -23213,7 +23182,6 @@ export declare function createExperimentalMetricsPayload(interactionId: string,
|
|
|
23213
23182
|
'event:source': {
|
|
23214
23183
|
name: string;
|
|
23215
23184
|
version: string;
|
|
23216
|
-
payloadSource: string;
|
|
23217
23185
|
};
|
|
23218
23186
|
'event:region': string;
|
|
23219
23187
|
'experience:key': string;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import type { FilterArgs } from './ViewportUpdateClassifier';
|
|
5
|
-
export declare class FY25_01Classifier extends FY24_01Classifier {
|
|
1
|
+
import type { VCCalculationMethodArgs, VCCalculationMethodReturn } from './types';
|
|
2
|
+
import { type FilterArgs, ViewportUpdateClassifier } from './ViewportUpdateClassifier';
|
|
3
|
+
export declare class FY25_01Classifier extends ViewportUpdateClassifier {
|
|
6
4
|
revision: string;
|
|
7
5
|
types: string[];
|
|
8
6
|
filters: {
|
|
9
7
|
name: string;
|
|
10
8
|
filter: ({ type, ignoreReason }: FilterArgs) => boolean;
|
|
11
9
|
}[];
|
|
12
|
-
|
|
13
|
-
filterComponentsLog({ componentsLog, ttai }: FilterComponentsLogArgs): ComponentsLogType;
|
|
10
|
+
VCCalculationMethod({ VCParts, entries, totalPainted, componentsLog, }: VCCalculationMethodArgs): VCCalculationMethodReturn;
|
|
14
11
|
constructor();
|
|
15
12
|
}
|
|
16
13
|
export declare const revFY25_01Classifier: FY25_01Classifier;
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.revFY24_01Classifier = exports.FY24_01Classifier = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
-
var _ViewportUpdateClassifier = require("./ViewportUpdateClassifier");
|
|
16
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
|
-
var legacyIgnoreReasons = ['image', 'ssr-hydration', 'editor-lazy-node-view', 'editor-container-mutation'];
|
|
19
|
-
var FY24_01Classifier = exports.FY24_01Classifier = /*#__PURE__*/function (_ViewportUpdateClassi) {
|
|
20
|
-
function FY24_01Classifier() {
|
|
21
|
-
var _this;
|
|
22
|
-
(0, _classCallCheck2.default)(this, FY24_01Classifier);
|
|
23
|
-
_this = _callSuper(this, FY24_01Classifier);
|
|
24
|
-
(0, _defineProperty2.default)(_this, "revision", 'fy24.01');
|
|
25
|
-
(0, _defineProperty2.default)(_this, "types", ['html', 'text']);
|
|
26
|
-
(0, _defineProperty2.default)(_this, "filters", [{
|
|
27
|
-
name: 'default-ignore-reasons',
|
|
28
|
-
filter: function filter(_ref) {
|
|
29
|
-
var type = _ref.type,
|
|
30
|
-
ignoreReason = _ref.ignoreReason;
|
|
31
|
-
return !ignoreReason || !legacyIgnoreReasons.includes(ignoreReason);
|
|
32
|
-
}
|
|
33
|
-
}]);
|
|
34
|
-
_this.mergeConfig();
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
(0, _inherits2.default)(FY24_01Classifier, _ViewportUpdateClassi);
|
|
38
|
-
return (0, _createClass2.default)(FY24_01Classifier, [{
|
|
39
|
-
key: "VCCalculationMethod",
|
|
40
|
-
value: function VCCalculationMethod(_ref2) {
|
|
41
|
-
var VCParts = _ref2.VCParts,
|
|
42
|
-
entries = _ref2.entries,
|
|
43
|
-
totalPainted = _ref2.totalPainted,
|
|
44
|
-
componentsLog = _ref2.componentsLog;
|
|
45
|
-
var VC = {};
|
|
46
|
-
var VCBox = {};
|
|
47
|
-
entries.reduce(function () {
|
|
48
|
-
var acc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
49
|
-
var v = arguments.length > 1 ? arguments[1] : undefined;
|
|
50
|
-
var VCRatio = v[1] / totalPainted + acc;
|
|
51
|
-
var time = v[0];
|
|
52
|
-
if ((0, _platformFeatureFlags.fg)('platform_ufo_fix_vc_observer_rounding_error')) {
|
|
53
|
-
// @todo apply fix to include small changes into accumulator
|
|
54
|
-
var preciseCurrRatio = Math.round(100 * (v[1] / totalPainted));
|
|
55
|
-
var preciseAccRatio = Math.round(acc * 100);
|
|
56
|
-
VCRatio = (preciseCurrRatio + preciseAccRatio) / 100;
|
|
57
|
-
}
|
|
58
|
-
VCParts.forEach(function (value) {
|
|
59
|
-
if ((VC[value] === null || VC[value] === undefined) && VCRatio >= value / 100) {
|
|
60
|
-
var _componentsLog$time;
|
|
61
|
-
VC[value] = time;
|
|
62
|
-
VCBox[value] = new Set();
|
|
63
|
-
(_componentsLog$time = componentsLog[time]) === null || _componentsLog$time === void 0 || _componentsLog$time.forEach(function (v) {
|
|
64
|
-
var _VCBox$value;
|
|
65
|
-
return (_VCBox$value = VCBox[value]) === null || _VCBox$value === void 0 ? void 0 : _VCBox$value.add(v.targetName);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return VCRatio;
|
|
70
|
-
}, 0);
|
|
71
|
-
return {
|
|
72
|
-
VC: VC,
|
|
73
|
-
VCBox: VCBox
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}]);
|
|
77
|
-
}(_ViewportUpdateClassifier.ViewportUpdateClassifier);
|
|
78
|
-
var revFY24_01Classifier = exports.revFY24_01Classifier = new FY24_01Classifier();
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { ViewportUpdateClassifier } from './ViewportUpdateClassifier';
|
|
4
|
-
const legacyIgnoreReasons = ['image', 'ssr-hydration', 'editor-lazy-node-view', 'editor-container-mutation'];
|
|
5
|
-
export class FY24_01Classifier extends ViewportUpdateClassifier {
|
|
6
|
-
VCCalculationMethod({
|
|
7
|
-
VCParts,
|
|
8
|
-
entries,
|
|
9
|
-
totalPainted,
|
|
10
|
-
componentsLog
|
|
11
|
-
}) {
|
|
12
|
-
const VC = {};
|
|
13
|
-
const VCBox = {};
|
|
14
|
-
entries.reduce((acc = 0, v) => {
|
|
15
|
-
let VCRatio = v[1] / totalPainted + acc;
|
|
16
|
-
const time = v[0];
|
|
17
|
-
if (fg('platform_ufo_fix_vc_observer_rounding_error')) {
|
|
18
|
-
// @todo apply fix to include small changes into accumulator
|
|
19
|
-
const preciseCurrRatio = Math.round(100 * (v[1] / totalPainted));
|
|
20
|
-
const preciseAccRatio = Math.round(acc * 100);
|
|
21
|
-
VCRatio = (preciseCurrRatio + preciseAccRatio) / 100;
|
|
22
|
-
}
|
|
23
|
-
VCParts.forEach(value => {
|
|
24
|
-
if ((VC[value] === null || VC[value] === undefined) && VCRatio >= value / 100) {
|
|
25
|
-
var _componentsLog$time;
|
|
26
|
-
VC[value] = time;
|
|
27
|
-
VCBox[value] = new Set();
|
|
28
|
-
(_componentsLog$time = componentsLog[time]) === null || _componentsLog$time === void 0 ? void 0 : _componentsLog$time.forEach(v => {
|
|
29
|
-
var _VCBox$value;
|
|
30
|
-
return (_VCBox$value = VCBox[value]) === null || _VCBox$value === void 0 ? void 0 : _VCBox$value.add(v.targetName);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return VCRatio;
|
|
35
|
-
}, 0);
|
|
36
|
-
return {
|
|
37
|
-
VC,
|
|
38
|
-
VCBox
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
constructor() {
|
|
42
|
-
super();
|
|
43
|
-
_defineProperty(this, "revision", 'fy24.01');
|
|
44
|
-
_defineProperty(this, "types", ['html', 'text']);
|
|
45
|
-
_defineProperty(this, "filters", [{
|
|
46
|
-
name: 'default-ignore-reasons',
|
|
47
|
-
filter: ({
|
|
48
|
-
type,
|
|
49
|
-
ignoreReason
|
|
50
|
-
}) => {
|
|
51
|
-
return !ignoreReason || !legacyIgnoreReasons.includes(ignoreReason);
|
|
52
|
-
}
|
|
53
|
-
}]);
|
|
54
|
-
this.mergeConfig();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export const revFY24_01Classifier = new FY24_01Classifier();
|
|
@@ -1,71 +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 { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { ViewportUpdateClassifier } from './ViewportUpdateClassifier';
|
|
11
|
-
var legacyIgnoreReasons = ['image', 'ssr-hydration', 'editor-lazy-node-view', 'editor-container-mutation'];
|
|
12
|
-
export var FY24_01Classifier = /*#__PURE__*/function (_ViewportUpdateClassi) {
|
|
13
|
-
function FY24_01Classifier() {
|
|
14
|
-
var _this;
|
|
15
|
-
_classCallCheck(this, FY24_01Classifier);
|
|
16
|
-
_this = _callSuper(this, FY24_01Classifier);
|
|
17
|
-
_defineProperty(_this, "revision", 'fy24.01');
|
|
18
|
-
_defineProperty(_this, "types", ['html', 'text']);
|
|
19
|
-
_defineProperty(_this, "filters", [{
|
|
20
|
-
name: 'default-ignore-reasons',
|
|
21
|
-
filter: function filter(_ref) {
|
|
22
|
-
var type = _ref.type,
|
|
23
|
-
ignoreReason = _ref.ignoreReason;
|
|
24
|
-
return !ignoreReason || !legacyIgnoreReasons.includes(ignoreReason);
|
|
25
|
-
}
|
|
26
|
-
}]);
|
|
27
|
-
_this.mergeConfig();
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
_inherits(FY24_01Classifier, _ViewportUpdateClassi);
|
|
31
|
-
return _createClass(FY24_01Classifier, [{
|
|
32
|
-
key: "VCCalculationMethod",
|
|
33
|
-
value: function VCCalculationMethod(_ref2) {
|
|
34
|
-
var VCParts = _ref2.VCParts,
|
|
35
|
-
entries = _ref2.entries,
|
|
36
|
-
totalPainted = _ref2.totalPainted,
|
|
37
|
-
componentsLog = _ref2.componentsLog;
|
|
38
|
-
var VC = {};
|
|
39
|
-
var VCBox = {};
|
|
40
|
-
entries.reduce(function () {
|
|
41
|
-
var acc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
42
|
-
var v = arguments.length > 1 ? arguments[1] : undefined;
|
|
43
|
-
var VCRatio = v[1] / totalPainted + acc;
|
|
44
|
-
var time = v[0];
|
|
45
|
-
if (fg('platform_ufo_fix_vc_observer_rounding_error')) {
|
|
46
|
-
// @todo apply fix to include small changes into accumulator
|
|
47
|
-
var preciseCurrRatio = Math.round(100 * (v[1] / totalPainted));
|
|
48
|
-
var preciseAccRatio = Math.round(acc * 100);
|
|
49
|
-
VCRatio = (preciseCurrRatio + preciseAccRatio) / 100;
|
|
50
|
-
}
|
|
51
|
-
VCParts.forEach(function (value) {
|
|
52
|
-
if ((VC[value] === null || VC[value] === undefined) && VCRatio >= value / 100) {
|
|
53
|
-
var _componentsLog$time;
|
|
54
|
-
VC[value] = time;
|
|
55
|
-
VCBox[value] = new Set();
|
|
56
|
-
(_componentsLog$time = componentsLog[time]) === null || _componentsLog$time === void 0 || _componentsLog$time.forEach(function (v) {
|
|
57
|
-
var _VCBox$value;
|
|
58
|
-
return (_VCBox$value = VCBox[value]) === null || _VCBox$value === void 0 ? void 0 : _VCBox$value.add(v.targetName);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
return VCRatio;
|
|
63
|
-
}, 0);
|
|
64
|
-
return {
|
|
65
|
-
VC: VC,
|
|
66
|
-
VCBox: VCBox
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}]);
|
|
70
|
-
}(ViewportUpdateClassifier);
|
|
71
|
-
export var revFY24_01Classifier = new FY24_01Classifier();
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { VCCalculationMethodArgs, VCCalculationMethodReturn } from './types';
|
|
2
|
-
import { type FilterArgs, ViewportUpdateClassifier } from './ViewportUpdateClassifier';
|
|
3
|
-
export declare class FY24_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 revFY24_01Classifier: FY24_01Classifier;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { VCCalculationMethodArgs, VCCalculationMethodReturn } from './types';
|
|
2
|
-
import { type FilterArgs, ViewportUpdateClassifier } from './ViewportUpdateClassifier';
|
|
3
|
-
export declare class FY24_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 revFY24_01Classifier: FY24_01Classifier;
|