@atlaskit/react-ufo 4.14.6 → 4.14.7

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,12 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 4.14.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ae14db0f1f0c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae14db0f1f0c7) -
8
+ Add isDnDStyleMutation back to attribute change detection in vc observer
9
+
3
10
  ## 4.14.6
4
11
 
5
12
  ### Patch Changes
@@ -13,6 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _vcUtils = require("../../vc-observer/media-wrapper/vc-utils");
16
+ var _isDndStyleMutation = _interopRequireDefault(require("../../vc-observer/observers/non-visual-styles/is-dnd-style-mutation"));
16
17
  var _isNonVisualStyleMutation = _interopRequireDefault(require("../../vc-observer/observers/non-visual-styles/is-non-visual-style-mutation"));
17
18
  var _rllPlaceholders = require("../../vc-observer/observers/rll-placeholders");
18
19
  var _intersectionObserver = require("./intersection-observer");
@@ -317,6 +318,21 @@ var ViewportObserver = exports.default = /*#__PURE__*/function () {
317
318
  };
318
319
  }
319
320
  }
321
+ if ((0, _isDndStyleMutation.default)({
322
+ target: target,
323
+ attributeName: attributeName,
324
+ oldValue: oldValue,
325
+ newValue: newValue
326
+ })) {
327
+ return {
328
+ type: 'mutation:attribute:non-visual-style',
329
+ mutationData: {
330
+ attributeName: attributeName,
331
+ oldValue: oldValue,
332
+ newValue: newValue
333
+ }
334
+ };
335
+ }
320
336
  if ((0, _isNonVisualStyleMutation.default)({
321
337
  target: target,
322
338
  attributeName: attributeName,
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import { isContainedWithinMediaWrapper } from '../../vc-observer/media-wrapper/vc-utils';
4
+ import isDnDStyleMutation from '../../vc-observer/observers/non-visual-styles/is-dnd-style-mutation';
4
5
  import isNonVisualStyleMutation from '../../vc-observer/observers/non-visual-styles/is-non-visual-style-mutation';
5
6
  import { RLLPlaceholderHandlers } from '../../vc-observer/observers/rll-placeholders';
6
7
  import { createIntersectionObserver } from './intersection-observer';
@@ -210,6 +211,21 @@ export default class ViewportObserver {
210
211
  };
211
212
  }
212
213
  }
214
+ if (isDnDStyleMutation({
215
+ target,
216
+ attributeName,
217
+ oldValue,
218
+ newValue
219
+ })) {
220
+ return {
221
+ type: 'mutation:attribute:non-visual-style',
222
+ mutationData: {
223
+ attributeName,
224
+ oldValue,
225
+ newValue
226
+ }
227
+ };
228
+ }
213
229
  if (isNonVisualStyleMutation({
214
230
  target,
215
231
  attributeName,
@@ -8,6 +8,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
8
8
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { isContainedWithinMediaWrapper } from '../../vc-observer/media-wrapper/vc-utils';
11
+ import isDnDStyleMutation from '../../vc-observer/observers/non-visual-styles/is-dnd-style-mutation';
11
12
  import isNonVisualStyleMutation from '../../vc-observer/observers/non-visual-styles/is-non-visual-style-mutation';
12
13
  import { RLLPlaceholderHandlers } from '../../vc-observer/observers/rll-placeholders';
13
14
  import { createIntersectionObserver } from './intersection-observer';
@@ -308,6 +309,21 @@ var ViewportObserver = /*#__PURE__*/function () {
308
309
  };
309
310
  }
310
311
  }
312
+ if (isDnDStyleMutation({
313
+ target: target,
314
+ attributeName: attributeName,
315
+ oldValue: oldValue,
316
+ newValue: newValue
317
+ })) {
318
+ return {
319
+ type: 'mutation:attribute:non-visual-style',
320
+ mutationData: {
321
+ attributeName: attributeName,
322
+ oldValue: oldValue,
323
+ newValue: newValue
324
+ }
325
+ };
326
+ }
311
327
  if (isNonVisualStyleMutation({
312
328
  target: target,
313
329
  attributeName: attributeName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "4.14.6",
3
+ "version": "4.14.7",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",