@atlaskit/link-datasource 4.14.4 → 4.14.6

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,22 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.14.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#191110](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191110)
8
+ [`14f7f807a5bdc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14f7f807a5bdc) -
9
+ NAVX-1184 adding a11y unit tests to linking-platform packages missing a11y coverage
10
+ - Updated dependencies
11
+
12
+ ## 4.14.5
13
+
14
+ ### Patch Changes
15
+
16
+ - [#189884](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189884)
17
+ [`e57a4d8f2ed72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e57a4d8f2ed72) -
18
+ NAVX-1180 datasource modal should return focus when closed
19
+
3
20
  ## 4.14.4
4
21
 
5
22
  ### Patch Changes
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.DatasourceModal = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog"));
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _analytics = require("../../../../analytics");
12
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
14
  var ScreenEvent = function ScreenEvent() {
@@ -27,6 +28,6 @@ var DatasourceModal = exports.DatasourceModal = function DatasourceModal(_ref) {
27
28
  onClose: onClose,
28
29
  width: "calc(100% - 80px)",
29
30
  shouldScrollInViewport: true,
30
- shouldReturnFocus: false
31
+ shouldReturnFocus: (0, _platformFeatureFlags.fg)('navx-1180-sllv-return-focus-on-escape') ? true : false
31
32
  }, /*#__PURE__*/_react.default.createElement(ScreenEvent, null), children);
32
33
  };
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import Modal from '@atlaskit/modal-dialog';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { useDatasourceAnalyticsEvents } from '../../../../analytics';
4
5
  const ScreenEvent = () => {
5
6
  const {
@@ -20,6 +21,6 @@ export const DatasourceModal = ({
20
21
  onClose: onClose,
21
22
  width: "calc(100% - 80px)",
22
23
  shouldScrollInViewport: true,
23
- shouldReturnFocus: false
24
+ shouldReturnFocus: fg('navx-1180-sllv-return-focus-on-escape') ? true : false
24
25
  }, /*#__PURE__*/React.createElement(ScreenEvent, null), children);
25
26
  };
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import Modal from '@atlaskit/modal-dialog';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { useDatasourceAnalyticsEvents } from '../../../../analytics';
4
5
  var ScreenEvent = function ScreenEvent() {
5
6
  var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
@@ -18,6 +19,6 @@ export var DatasourceModal = function DatasourceModal(_ref) {
18
19
  onClose: onClose,
19
20
  width: "calc(100% - 80px)",
20
21
  shouldScrollInViewport: true,
21
- shouldReturnFocus: false
22
+ shouldReturnFocus: fg('navx-1180-sllv-return-focus-on-escape') ? true : false
22
23
  }, /*#__PURE__*/React.createElement(ScreenEvent, null), children);
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.14.4",
3
+ "version": "4.14.6",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/flag": "^17.2.0",
52
52
  "@atlaskit/form": "^12.0.0",
53
53
  "@atlaskit/heading": "^5.2.0",
54
- "@atlaskit/icon": "^27.6.0",
54
+ "@atlaskit/icon": "^27.7.0",
55
55
  "@atlaskit/icon-object": "^7.1.0",
56
56
  "@atlaskit/image": "^3.0.0",
57
57
  "@atlaskit/inline-edit": "^15.3.0",
@@ -195,6 +195,9 @@
195
195
  },
196
196
  "platform-linking-sllv-show-more-aria-label": {
197
197
  "type": "boolean"
198
+ },
199
+ "navx-1180-sllv-return-focus-on-escape": {
200
+ "type": "boolean"
198
201
  }
199
202
  },
200
203
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"