@atlaskit/react-ufo 2.12.1 → 2.12.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 2.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#106016](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106016)
|
|
8
|
+
[`67c5f043b34d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67c5f043b34d8) -
|
|
9
|
+
mark VCNext metrics on perf timeline
|
|
10
|
+
|
|
3
11
|
## 2.12.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -172,6 +172,21 @@ var VCObserver = exports.VCObserver = /*#__PURE__*/function () {
|
|
|
172
172
|
componentsLog: _componentsLog,
|
|
173
173
|
viewport: viewport
|
|
174
174
|
});
|
|
175
|
+
try {
|
|
176
|
+
if (!_this.isPostInteraction) {
|
|
177
|
+
VCObserver.VCParts.forEach(function (key) {
|
|
178
|
+
var duration = vcNext.VC[key];
|
|
179
|
+
if (duration !== null && duration !== undefined) {
|
|
180
|
+
performance.measure("VC_Next".concat(key), {
|
|
181
|
+
start: start,
|
|
182
|
+
duration: duration
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
} catch (e) {
|
|
188
|
+
/* empty */
|
|
189
|
+
}
|
|
175
190
|
var outOfBoundary = outOfBoundaryInfo ? (0, _defineProperty2.default)({}, "".concat(fullPrefix, "vc:oob"), outOfBoundaryInfo) : {};
|
|
176
191
|
//const oldDomUpdates = oldDomUpdatesEnabled ? { [`${fullPrefix}vc:old:dom`]: vcNext.VCBox } : {};
|
|
177
192
|
|
|
@@ -168,6 +168,21 @@ export class VCObserver {
|
|
|
168
168
|
componentsLog: _componentsLog,
|
|
169
169
|
viewport
|
|
170
170
|
});
|
|
171
|
+
try {
|
|
172
|
+
if (!this.isPostInteraction) {
|
|
173
|
+
VCObserver.VCParts.forEach(key => {
|
|
174
|
+
const duration = vcNext.VC[key];
|
|
175
|
+
if (duration !== null && duration !== undefined) {
|
|
176
|
+
performance.measure(`VC_Next${key}`, {
|
|
177
|
+
start,
|
|
178
|
+
duration
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
} catch (e) {
|
|
184
|
+
/* empty */
|
|
185
|
+
}
|
|
171
186
|
const outOfBoundary = outOfBoundaryInfo ? {
|
|
172
187
|
[`${fullPrefix}vc:oob`]: outOfBoundaryInfo
|
|
173
188
|
} : {};
|
|
@@ -165,6 +165,21 @@ export var VCObserver = /*#__PURE__*/function () {
|
|
|
165
165
|
componentsLog: _componentsLog,
|
|
166
166
|
viewport: viewport
|
|
167
167
|
});
|
|
168
|
+
try {
|
|
169
|
+
if (!_this.isPostInteraction) {
|
|
170
|
+
VCObserver.VCParts.forEach(function (key) {
|
|
171
|
+
var duration = vcNext.VC[key];
|
|
172
|
+
if (duration !== null && duration !== undefined) {
|
|
173
|
+
performance.measure("VC_Next".concat(key), {
|
|
174
|
+
start: start,
|
|
175
|
+
duration: duration
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
} catch (e) {
|
|
181
|
+
/* empty */
|
|
182
|
+
}
|
|
168
183
|
var outOfBoundary = outOfBoundaryInfo ? _defineProperty({}, "".concat(fullPrefix, "vc:oob"), outOfBoundaryInfo) : {};
|
|
169
184
|
//const oldDomUpdates = oldDomUpdatesEnabled ? { [`${fullPrefix}vc:old:dom`]: vcNext.VCBox } : {};
|
|
170
185
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
+
"@af/integration-testing": "*",
|
|
89
90
|
"@testing-library/react": "^12.1.5"
|
|
90
91
|
},
|
|
91
92
|
"techstack": {
|