@atlaskit/react-ufo 4.11.7 → 4.11.8
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 +9 -0
- package/dist/cjs/interaction-metrics/index.js +2 -2
- package/dist/cjs/vc/vc-observer-new/index.js +3 -8
- package/dist/cjs/vc/vc-observer-new/viewport-observer/index.js +18 -22
- package/dist/es2019/interaction-metrics/index.js +2 -2
- package/dist/es2019/vc/vc-observer-new/index.js +15 -17
- package/dist/es2019/vc/vc-observer-new/viewport-observer/index.js +14 -19
- package/dist/esm/interaction-metrics/index.js +2 -2
- package/dist/esm/vc/vc-observer-new/index.js +3 -8
- package/dist/esm/vc/vc-observer-new/viewport-observer/index.js +18 -22
- package/package.json +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.11.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`29629e6bfc4be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29629e6bfc4be) -
|
|
8
|
+
FG cleanup - platform_ufo_vcnext_v4_enabled
|
|
9
|
+
- [`0e2fae38334fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e2fae38334fe) -
|
|
10
|
+
FG cleanup - platform_ufo_enable_timeout_config
|
|
11
|
+
|
|
3
12
|
## 4.11.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -77,7 +77,7 @@ var interactionExtraMetrics = exports.interactionExtraMetrics = new _interaction
|
|
|
77
77
|
var interactionQueue = [];
|
|
78
78
|
var segmentCache = new Map();
|
|
79
79
|
var segmentUnmountCache = exports.segmentUnmountCache = new Map(); // Temporarily store segment unmount counts
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
var segmentObservers = [];
|
|
82
82
|
function getActiveInteraction() {
|
|
83
83
|
var interactionId = (0, _interactionIdContext.getInteractionId)();
|
|
@@ -1013,7 +1013,7 @@ function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelS
|
|
|
1013
1013
|
postInteractionLog.reset();
|
|
1014
1014
|
var vcObserver;
|
|
1015
1015
|
var previousTime = startTime;
|
|
1016
|
-
var timeoutTime = (0,
|
|
1016
|
+
var timeoutTime = (0, _config.getInteractionTimeout)(ufoName);
|
|
1017
1017
|
var timerID = setTimeout(function () {
|
|
1018
1018
|
abort(interactionId, 'timeout');
|
|
1019
1019
|
}, timeoutTime);
|
|
@@ -274,12 +274,8 @@ var VCObserverNew = exports.default = /*#__PURE__*/function () {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// TODO on cleanup: put behind `enabledVCRevisions` config
|
|
277
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_vcnext_v4_enabled')) {
|
|
278
|
-
_context.next = 16;
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
277
|
calculator_next = new _vcnext.default();
|
|
282
|
-
_context.next =
|
|
278
|
+
_context.next = 13;
|
|
283
279
|
return calculator_next.calculate({
|
|
284
280
|
orderedEntries: orderedEntries,
|
|
285
281
|
startTime: start,
|
|
@@ -292,14 +288,13 @@ var VCObserverNew = exports.default = /*#__PURE__*/function () {
|
|
|
292
288
|
isPageVisible: isPageVisible,
|
|
293
289
|
interactionAbortReason: interactionAbortReason
|
|
294
290
|
});
|
|
295
|
-
case
|
|
291
|
+
case 13:
|
|
296
292
|
vcNext = _context.sent;
|
|
297
293
|
if (vcNext) {
|
|
298
294
|
results.push(vcNext);
|
|
299
295
|
}
|
|
300
|
-
case 16:
|
|
301
296
|
return _context.abrupt("return", results);
|
|
302
|
-
case
|
|
297
|
+
case 16:
|
|
303
298
|
case "end":
|
|
304
299
|
return _context.stop();
|
|
305
300
|
}
|
|
@@ -99,7 +99,7 @@ var ViewportObserver = exports.default = /*#__PURE__*/function () {
|
|
|
99
99
|
_iterator = _createForOfIteratorHelper(addedNodes);
|
|
100
100
|
_context2.prev = 4;
|
|
101
101
|
_loop = /*#__PURE__*/_regenerator.default.mark(function _loop() {
|
|
102
|
-
var addedNodeRef, addedNode, ssrState, SSRStateEnum, _this$intersectionObs, _this$intersectionObs2, ssrPlaceholderHandler, _this$intersectionObs3, result, _this$intersectionObs4, sameDeletedNode, isInIgnoreLsMarker, _this$intersectionObs5, _this$intersectionObs6, _checkWithinComponent, isWithinThirdPartySegment, _this$intersectionObs7, _iterator2, _step2, _step2$value, isDisplayContentsElementChildren, element, _this$intersectionObs8, _this$intersectionObs9
|
|
102
|
+
var addedNodeRef, addedNode, ssrState, SSRStateEnum, _this$intersectionObs, _this$intersectionObs2, ssrPlaceholderHandler, _this$intersectionObs3, result, _this$intersectionObs4, sameDeletedNode, isInIgnoreLsMarker, _this$intersectionObs5, _this$intersectionObs6, _checkWithinComponent, isWithinThirdPartySegment, _this$intersectionObs7, _iterator2, _step2, _step2$value, isDisplayContentsElementChildren, element, _this$intersectionObs8, _this$intersectionObs9;
|
|
103
103
|
return _regenerator.default.wrap(function _loop$(_context) {
|
|
104
104
|
while (1) switch (_context.prev = _context.next) {
|
|
105
105
|
case 0:
|
|
@@ -211,26 +211,22 @@ var ViewportObserver = exports.default = /*#__PURE__*/function () {
|
|
|
211
211
|
(_this$intersectionObs7 = _this.intersectionObserver) === null || _this$intersectionObs7 === void 0 || _this$intersectionObs7.watchAndTag(addedNode, 'mutation:third-party-element');
|
|
212
212
|
return _context.abrupt("return", 0);
|
|
213
213
|
case 45:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
(_this$intersectionObs9 = _this.intersectionObserver) === null || _this$intersectionObs9 === void 0 || _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
223
|
-
}
|
|
214
|
+
_iterator2 = _createForOfIteratorHelper((0, _getMutatedElements.getMutatedElements)(addedNode));
|
|
215
|
+
try {
|
|
216
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
217
|
+
_step2$value = _step2.value, isDisplayContentsElementChildren = _step2$value.isDisplayContentsElementChildren, element = _step2$value.element;
|
|
218
|
+
if (isDisplayContentsElementChildren) {
|
|
219
|
+
(_this$intersectionObs8 = _this.intersectionObserver) === null || _this$intersectionObs8 === void 0 || _this$intersectionObs8.watchAndTag(element, 'mutation:display-contents-children-element');
|
|
220
|
+
} else {
|
|
221
|
+
(_this$intersectionObs9 = _this.intersectionObserver) === null || _this$intersectionObs9 === void 0 || _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
224
222
|
}
|
|
225
|
-
} catch (err) {
|
|
226
|
-
_iterator2.e(err);
|
|
227
|
-
} finally {
|
|
228
|
-
_iterator2.f();
|
|
229
223
|
}
|
|
230
|
-
}
|
|
231
|
-
|
|
224
|
+
} catch (err) {
|
|
225
|
+
_iterator2.e(err);
|
|
226
|
+
} finally {
|
|
227
|
+
_iterator2.f();
|
|
232
228
|
}
|
|
233
|
-
case
|
|
229
|
+
case 47:
|
|
234
230
|
case "end":
|
|
235
231
|
return _context.stop();
|
|
236
232
|
}
|
|
@@ -275,12 +271,12 @@ var ViewportObserver = exports.default = /*#__PURE__*/function () {
|
|
|
275
271
|
};
|
|
276
272
|
}());
|
|
277
273
|
(0, _defineProperty2.default)(this, "handleAttributeMutation", function (_ref6) {
|
|
278
|
-
var _this$
|
|
274
|
+
var _this$intersectionObs0;
|
|
279
275
|
var target = _ref6.target,
|
|
280
276
|
attributeName = _ref6.attributeName,
|
|
281
277
|
oldValue = _ref6.oldValue,
|
|
282
278
|
newValue = _ref6.newValue;
|
|
283
|
-
(_this$
|
|
279
|
+
(_this$intersectionObs0 = _this.intersectionObserver) === null || _this$intersectionObs0 === void 0 || _this$intersectionObs0.watchAndTag(target, function (_ref7) {
|
|
284
280
|
var target = _ref7.target,
|
|
285
281
|
rect = _ref7.rect;
|
|
286
282
|
if ((0, _vcUtils.isContainedWithinMediaWrapper)(target)) {
|
|
@@ -446,12 +442,12 @@ var ViewportObserver = exports.default = /*#__PURE__*/function () {
|
|
|
446
442
|
}, {
|
|
447
443
|
key: "stop",
|
|
448
444
|
value: function stop() {
|
|
449
|
-
var _this$mutationObserve2, _this$
|
|
445
|
+
var _this$mutationObserve2, _this$intersectionObs1, _this$performanceObse2;
|
|
450
446
|
if (!this.isStarted) {
|
|
451
447
|
return;
|
|
452
448
|
}
|
|
453
449
|
(_this$mutationObserve2 = this.mutationObserver) === null || _this$mutationObserve2 === void 0 || _this$mutationObserve2.disconnect();
|
|
454
|
-
(_this$
|
|
450
|
+
(_this$intersectionObs1 = this.intersectionObserver) === null || _this$intersectionObs1 === void 0 || _this$intersectionObs1.disconnect();
|
|
455
451
|
(_this$performanceObse2 = this.performanceObserver) === null || _this$performanceObse2 === void 0 || _this$performanceObse2.disconnect();
|
|
456
452
|
this.isStarted = false;
|
|
457
453
|
// Clean up caches when stopping
|
|
@@ -21,7 +21,7 @@ export const interactionExtraMetrics = new InteractionExtraMetrics();
|
|
|
21
21
|
const interactionQueue = [];
|
|
22
22
|
const segmentCache = new Map();
|
|
23
23
|
export const segmentUnmountCache = new Map(); // Temporarily store segment unmount counts
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
const segmentObservers = [];
|
|
26
26
|
export function getActiveInteraction() {
|
|
27
27
|
const interactionId = getInteractionId();
|
|
@@ -892,7 +892,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
892
892
|
postInteractionLog.reset();
|
|
893
893
|
let vcObserver;
|
|
894
894
|
let previousTime = startTime;
|
|
895
|
-
let timeoutTime =
|
|
895
|
+
let timeoutTime = getInteractionTimeout(ufoName);
|
|
896
896
|
const timerID = setTimeout(() => {
|
|
897
897
|
abort(interactionId, 'timeout');
|
|
898
898
|
}, timeoutTime);
|
|
@@ -231,23 +231,21 @@ export default class VCObserverNew {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
// TODO on cleanup: put behind `enabledVCRevisions` config
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
results.push(vcNext);
|
|
250
|
-
}
|
|
234
|
+
const calculator_next = new VCNextCalculator();
|
|
235
|
+
const vcNext = await calculator_next.calculate({
|
|
236
|
+
orderedEntries,
|
|
237
|
+
startTime: start,
|
|
238
|
+
stopTime: stop,
|
|
239
|
+
interactionId,
|
|
240
|
+
interactionType,
|
|
241
|
+
isPostInteraction: this.isPostInteraction,
|
|
242
|
+
include3p,
|
|
243
|
+
includeSSRRatio,
|
|
244
|
+
isPageVisible,
|
|
245
|
+
interactionAbortReason
|
|
246
|
+
});
|
|
247
|
+
if (vcNext) {
|
|
248
|
+
results.push(vcNext);
|
|
251
249
|
}
|
|
252
250
|
return results;
|
|
253
251
|
}
|
|
@@ -160,22 +160,17 @@ export default class ViewportObserver {
|
|
|
160
160
|
(_this$intersectionObs7 = this.intersectionObserver) === null || _this$intersectionObs7 === void 0 ? void 0 : _this$intersectionObs7.watchAndTag(addedNode, 'mutation:third-party-element');
|
|
161
161
|
continue;
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
(_this$intersectionObs9 = this.intersectionObserver) === null || _this$intersectionObs9 === void 0 ? void 0 : _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
174
|
-
}
|
|
163
|
+
for (const {
|
|
164
|
+
isDisplayContentsElementChildren,
|
|
165
|
+
element
|
|
166
|
+
} of getMutatedElements(addedNode)) {
|
|
167
|
+
if (isDisplayContentsElementChildren) {
|
|
168
|
+
var _this$intersectionObs8;
|
|
169
|
+
(_this$intersectionObs8 = this.intersectionObserver) === null || _this$intersectionObs8 === void 0 ? void 0 : _this$intersectionObs8.watchAndTag(element, 'mutation:display-contents-children-element');
|
|
170
|
+
} else {
|
|
171
|
+
var _this$intersectionObs9;
|
|
172
|
+
(_this$intersectionObs9 = this.intersectionObserver) === null || _this$intersectionObs9 === void 0 ? void 0 : _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
175
173
|
}
|
|
176
|
-
} else {
|
|
177
|
-
var _this$intersectionObs0;
|
|
178
|
-
(_this$intersectionObs0 = this.intersectionObserver) === null || _this$intersectionObs0 === void 0 ? void 0 : _this$intersectionObs0.watchAndTag(addedNode, createElementMutationsWatcher(removedNodeRects));
|
|
179
174
|
}
|
|
180
175
|
}
|
|
181
176
|
});
|
|
@@ -185,8 +180,8 @@ export default class ViewportObserver {
|
|
|
185
180
|
oldValue,
|
|
186
181
|
newValue
|
|
187
182
|
}) => {
|
|
188
|
-
var _this$
|
|
189
|
-
(_this$
|
|
183
|
+
var _this$intersectionObs0;
|
|
184
|
+
(_this$intersectionObs0 = this.intersectionObserver) === null || _this$intersectionObs0 === void 0 ? void 0 : _this$intersectionObs0.watchAndTag(target, ({
|
|
190
185
|
target,
|
|
191
186
|
rect
|
|
192
187
|
}) => {
|
|
@@ -339,12 +334,12 @@ export default class ViewportObserver {
|
|
|
339
334
|
this.isStarted = true;
|
|
340
335
|
}
|
|
341
336
|
stop() {
|
|
342
|
-
var _this$mutationObserve2, _this$
|
|
337
|
+
var _this$mutationObserve2, _this$intersectionObs1, _this$performanceObse2;
|
|
343
338
|
if (!this.isStarted) {
|
|
344
339
|
return;
|
|
345
340
|
}
|
|
346
341
|
(_this$mutationObserve2 = this.mutationObserver) === null || _this$mutationObserve2 === void 0 ? void 0 : _this$mutationObserve2.disconnect();
|
|
347
|
-
(_this$
|
|
342
|
+
(_this$intersectionObs1 = this.intersectionObserver) === null || _this$intersectionObs1 === void 0 ? void 0 : _this$intersectionObs1.disconnect();
|
|
348
343
|
(_this$performanceObse2 = this.performanceObserver) === null || _this$performanceObse2 === void 0 ? void 0 : _this$performanceObse2.disconnect();
|
|
349
344
|
this.isStarted = false;
|
|
350
345
|
// Clean up caches when stopping
|
|
@@ -31,7 +31,7 @@ export var interactionExtraMetrics = new InteractionExtraMetrics();
|
|
|
31
31
|
var interactionQueue = [];
|
|
32
32
|
var segmentCache = new Map();
|
|
33
33
|
export var segmentUnmountCache = new Map(); // Temporarily store segment unmount counts
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
var segmentObservers = [];
|
|
36
36
|
export function getActiveInteraction() {
|
|
37
37
|
var interactionId = getInteractionId();
|
|
@@ -967,7 +967,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
967
967
|
postInteractionLog.reset();
|
|
968
968
|
var vcObserver;
|
|
969
969
|
var previousTime = startTime;
|
|
970
|
-
var timeoutTime =
|
|
970
|
+
var timeoutTime = getInteractionTimeout(ufoName);
|
|
971
971
|
var timerID = setTimeout(function () {
|
|
972
972
|
abort(interactionId, 'timeout');
|
|
973
973
|
}, timeoutTime);
|
|
@@ -267,12 +267,8 @@ var VCObserverNew = /*#__PURE__*/function () {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
// TODO on cleanup: put behind `enabledVCRevisions` config
|
|
270
|
-
if (!fg('platform_ufo_vcnext_v4_enabled')) {
|
|
271
|
-
_context.next = 16;
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
270
|
calculator_next = new VCNextCalculator();
|
|
275
|
-
_context.next =
|
|
271
|
+
_context.next = 13;
|
|
276
272
|
return calculator_next.calculate({
|
|
277
273
|
orderedEntries: orderedEntries,
|
|
278
274
|
startTime: start,
|
|
@@ -285,14 +281,13 @@ var VCObserverNew = /*#__PURE__*/function () {
|
|
|
285
281
|
isPageVisible: isPageVisible,
|
|
286
282
|
interactionAbortReason: interactionAbortReason
|
|
287
283
|
});
|
|
288
|
-
case
|
|
284
|
+
case 13:
|
|
289
285
|
vcNext = _context.sent;
|
|
290
286
|
if (vcNext) {
|
|
291
287
|
results.push(vcNext);
|
|
292
288
|
}
|
|
293
|
-
case 16:
|
|
294
289
|
return _context.abrupt("return", results);
|
|
295
|
-
case
|
|
290
|
+
case 16:
|
|
296
291
|
case "end":
|
|
297
292
|
return _context.stop();
|
|
298
293
|
}
|
|
@@ -90,7 +90,7 @@ var ViewportObserver = /*#__PURE__*/function () {
|
|
|
90
90
|
_iterator = _createForOfIteratorHelper(addedNodes);
|
|
91
91
|
_context2.prev = 4;
|
|
92
92
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
93
|
-
var addedNodeRef, addedNode, ssrState, SSRStateEnum, _this$intersectionObs, _this$intersectionObs2, ssrPlaceholderHandler, _this$intersectionObs3, result, _this$intersectionObs4, sameDeletedNode, isInIgnoreLsMarker, _this$intersectionObs5, _this$intersectionObs6, _checkWithinComponent, isWithinThirdPartySegment, _this$intersectionObs7, _iterator2, _step2, _step2$value, isDisplayContentsElementChildren, element, _this$intersectionObs8, _this$intersectionObs9
|
|
93
|
+
var addedNodeRef, addedNode, ssrState, SSRStateEnum, _this$intersectionObs, _this$intersectionObs2, ssrPlaceholderHandler, _this$intersectionObs3, result, _this$intersectionObs4, sameDeletedNode, isInIgnoreLsMarker, _this$intersectionObs5, _this$intersectionObs6, _checkWithinComponent, isWithinThirdPartySegment, _this$intersectionObs7, _iterator2, _step2, _step2$value, isDisplayContentsElementChildren, element, _this$intersectionObs8, _this$intersectionObs9;
|
|
94
94
|
return _regeneratorRuntime.wrap(function _loop$(_context) {
|
|
95
95
|
while (1) switch (_context.prev = _context.next) {
|
|
96
96
|
case 0:
|
|
@@ -202,26 +202,22 @@ var ViewportObserver = /*#__PURE__*/function () {
|
|
|
202
202
|
(_this$intersectionObs7 = _this.intersectionObserver) === null || _this$intersectionObs7 === void 0 || _this$intersectionObs7.watchAndTag(addedNode, 'mutation:third-party-element');
|
|
203
203
|
return _context.abrupt("return", 0);
|
|
204
204
|
case 45:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
(_this$intersectionObs9 = _this.intersectionObserver) === null || _this$intersectionObs9 === void 0 || _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
214
|
-
}
|
|
205
|
+
_iterator2 = _createForOfIteratorHelper(getMutatedElements(addedNode));
|
|
206
|
+
try {
|
|
207
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
208
|
+
_step2$value = _step2.value, isDisplayContentsElementChildren = _step2$value.isDisplayContentsElementChildren, element = _step2$value.element;
|
|
209
|
+
if (isDisplayContentsElementChildren) {
|
|
210
|
+
(_this$intersectionObs8 = _this.intersectionObserver) === null || _this$intersectionObs8 === void 0 || _this$intersectionObs8.watchAndTag(element, 'mutation:display-contents-children-element');
|
|
211
|
+
} else {
|
|
212
|
+
(_this$intersectionObs9 = _this.intersectionObserver) === null || _this$intersectionObs9 === void 0 || _this$intersectionObs9.watchAndTag(element, createElementMutationsWatcher(removedNodeRects));
|
|
215
213
|
}
|
|
216
|
-
} catch (err) {
|
|
217
|
-
_iterator2.e(err);
|
|
218
|
-
} finally {
|
|
219
|
-
_iterator2.f();
|
|
220
214
|
}
|
|
221
|
-
}
|
|
222
|
-
|
|
215
|
+
} catch (err) {
|
|
216
|
+
_iterator2.e(err);
|
|
217
|
+
} finally {
|
|
218
|
+
_iterator2.f();
|
|
223
219
|
}
|
|
224
|
-
case
|
|
220
|
+
case 47:
|
|
225
221
|
case "end":
|
|
226
222
|
return _context.stop();
|
|
227
223
|
}
|
|
@@ -266,12 +262,12 @@ var ViewportObserver = /*#__PURE__*/function () {
|
|
|
266
262
|
};
|
|
267
263
|
}());
|
|
268
264
|
_defineProperty(this, "handleAttributeMutation", function (_ref6) {
|
|
269
|
-
var _this$
|
|
265
|
+
var _this$intersectionObs0;
|
|
270
266
|
var target = _ref6.target,
|
|
271
267
|
attributeName = _ref6.attributeName,
|
|
272
268
|
oldValue = _ref6.oldValue,
|
|
273
269
|
newValue = _ref6.newValue;
|
|
274
|
-
(_this$
|
|
270
|
+
(_this$intersectionObs0 = _this.intersectionObserver) === null || _this$intersectionObs0 === void 0 || _this$intersectionObs0.watchAndTag(target, function (_ref7) {
|
|
275
271
|
var target = _ref7.target,
|
|
276
272
|
rect = _ref7.rect;
|
|
277
273
|
if (isContainedWithinMediaWrapper(target)) {
|
|
@@ -437,12 +433,12 @@ var ViewportObserver = /*#__PURE__*/function () {
|
|
|
437
433
|
}, {
|
|
438
434
|
key: "stop",
|
|
439
435
|
value: function stop() {
|
|
440
|
-
var _this$mutationObserve2, _this$
|
|
436
|
+
var _this$mutationObserve2, _this$intersectionObs1, _this$performanceObse2;
|
|
441
437
|
if (!this.isStarted) {
|
|
442
438
|
return;
|
|
443
439
|
}
|
|
444
440
|
(_this$mutationObserve2 = this.mutationObserver) === null || _this$mutationObserve2 === void 0 || _this$mutationObserve2.disconnect();
|
|
445
|
-
(_this$
|
|
441
|
+
(_this$intersectionObs1 = this.intersectionObserver) === null || _this$intersectionObs1 === void 0 || _this$intersectionObs1.disconnect();
|
|
446
442
|
(_this$performanceObse2 = this.performanceObserver) === null || _this$performanceObse2 === void 0 || _this$performanceObse2.disconnect();
|
|
447
443
|
this.isStarted = false;
|
|
448
444
|
// Clean up caches when stopping
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.8",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -85,9 +85,6 @@
|
|
|
85
85
|
"platform_ufo_canvas_heatmap_full_precision": {
|
|
86
86
|
"type": "boolean"
|
|
87
87
|
},
|
|
88
|
-
"platform_ufo_vcnext_v4_enabled": {
|
|
89
|
-
"type": "boolean"
|
|
90
|
-
},
|
|
91
88
|
"platform_ufo_vc_next_filter_ls_entries_same_rect": {
|
|
92
89
|
"type": "boolean"
|
|
93
90
|
},
|
|
@@ -109,9 +106,6 @@
|
|
|
109
106
|
"platform_ufo_assets_check_for_nan": {
|
|
110
107
|
"type": "boolean"
|
|
111
108
|
},
|
|
112
|
-
"platform_ufo_enable_timeout_config": {
|
|
113
|
-
"type": "boolean"
|
|
114
|
-
},
|
|
115
109
|
"platform_ufo_fix_post_interaction_check_vc_debug": {
|
|
116
110
|
"type": "boolean"
|
|
117
111
|
},
|