@atlaskit/link-datasource 6.3.0 → 6.3.1

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,15 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 6.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fb07a43bd5ca0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb07a43bd5ca0) -
8
+ Cleanup platform_sllv_a11y_modal_options_focus
9
+ - [`87d3a5aafece6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87d3a5aafece6) -
10
+ Cleanup navx-1895-new-logo-design
11
+ - Updated dependencies
12
+
3
13
  ## 6.3.0
4
14
 
5
15
  ### Minor Changes
@@ -18,7 +18,6 @@ var _reactIntl = require("react-intl");
18
18
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
19
19
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
20
20
  var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
21
  var _compiled = require("@atlaskit/primitives/compiled");
23
22
  var _select = require("@atlaskit/select");
24
23
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -108,23 +107,12 @@ var ColumnPicker = exports.ColumnPicker = function ColumnPicker(_ref) {
108
107
  });
109
108
  };
110
109
  (0, _react.useEffect)(function () {
111
- if ((0, _platformFeatureFlags.fg)('platform_sllv_a11y_modal_options_focus')) {
112
- if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
113
- var _pickerRef$current;
114
- // necessary to refocus the search input after the loading state
115
- pickerRef === null || pickerRef === void 0 || (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.selectRef) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.select) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.inputRef) === null || _pickerRef$current === void 0 || _pickerRef$current.focus();
116
- }
110
+ if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
111
+ var _pickerRef$current;
112
+ // necessary to refocus the search input after the loading state
113
+ pickerRef === null || pickerRef === void 0 || (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.selectRef) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.select) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.inputRef) === null || _pickerRef$current === void 0 || _pickerRef$current.focus();
117
114
  }
118
115
  }, [allOptions.length]);
119
- (0, _react.useEffect)(function () {
120
- if (!(0, _platformFeatureFlags.fg)('platform_sllv_a11y_modal_options_focus')) {
121
- if (allOptions.length) {
122
- var _pickerRef$current2;
123
- // necessary to refocus the search input after the loading state
124
- pickerRef === null || pickerRef === void 0 || (_pickerRef$current2 = pickerRef.current) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.selectRef) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.select) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.inputRef) === null || _pickerRef$current2 === void 0 || _pickerRef$current2.focus();
125
- }
126
- }
127
- }, [allOptions]);
128
116
  (0, _react.useEffect)(function () {
129
117
  if (allOptions.length) {
130
118
  if (experienceId) {
@@ -8,10 +8,8 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.PoweredByJSMAssets = void 0;
9
9
  require("./index.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
11
  var _react = _interopRequireDefault(require("react"));
13
12
  var _logo = require("@atlaskit/logo");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
13
  var _compiled = require("@atlaskit/primitives/compiled");
16
14
  var _analytics = require("../../../analytics");
17
15
  var styles = {
@@ -42,11 +40,9 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
42
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
43
41
  alignItems: 'center'
44
42
  }
45
- }, /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, (0, _extends2.default)({
43
+ }, /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, {
46
44
  size: "small"
47
- }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
48
- shouldUseNewLogoDesign: true
49
- } : undefined)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
45
+ }), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
50
46
  xcss: styles.jsmTextStyles
51
47
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
52
48
  ,
@@ -1,7 +1,6 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  var _typeof = require("@babel/runtime/helpers/typeof");
6
5
  Object.defineProperty(exports, "__esModule", {
7
6
  value: true
@@ -9,11 +8,9 @@ Object.defineProperty(exports, "__esModule", {
9
8
  exports.ProviderLink = void 0;
10
9
  require("./index.compiled.css");
11
10
  var _runtime = require("@compiled/react/runtime");
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
11
  var _react = _interopRequireWildcard(require("react"));
14
12
  var _reactIntl = require("react-intl");
15
13
  var _logo = require("@atlaskit/logo");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
14
  var _compiled = require("@atlaskit/primitives/compiled");
18
15
  var _analytics = require("../../../analytics");
19
16
  var _assetsModal = require("../../assets-modal");
@@ -32,11 +29,9 @@ var ProviderLink = exports.ProviderLink = function ProviderLink(_ref) {
32
29
  return {
33
30
  content: intl.formatMessage(_messages.footerMessages.poweredByAssets),
34
31
  extensionKey: 'jsm-cmdb-gateway',
35
- icon: /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, (0, _extends2.default)({
32
+ icon: /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, {
36
33
  size: "xsmall"
37
- }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
38
- shouldUseNewLogoDesign: true
39
- } : undefined)),
34
+ }),
40
35
  interactionName: 'atlas-link',
41
36
  url: '/jira/assets'
42
37
  };
@@ -7,7 +7,6 @@ import { useIntl } from 'react-intl';
7
7
  import Button from '@atlaskit/button/new';
8
8
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
9
9
  import CustomizeIcon from '@atlaskit/icon/core/customize';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { Box } from '@atlaskit/primitives/compiled';
12
11
  import { createFilter, PopupSelect } from '@atlaskit/select';
13
12
  import Tooltip from '@atlaskit/tooltip';
@@ -81,23 +80,12 @@ export const ColumnPicker = ({
81
80
  return selectValue.length === 1 && selectValue.some(selectedValue => selectedValue.value === option.value);
82
81
  };
83
82
  useEffect(() => {
84
- if (fg('platform_sllv_a11y_modal_options_focus')) {
85
- if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
86
- var _pickerRef$current, _pickerRef$current$se, _pickerRef$current$se2, _pickerRef$current$se3;
87
- // necessary to refocus the search input after the loading state
88
- pickerRef === null || pickerRef === void 0 ? void 0 : (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 ? void 0 : (_pickerRef$current$se = _pickerRef$current.selectRef) === null || _pickerRef$current$se === void 0 ? void 0 : (_pickerRef$current$se2 = _pickerRef$current$se.select) === null || _pickerRef$current$se2 === void 0 ? void 0 : (_pickerRef$current$se3 = _pickerRef$current$se2.inputRef) === null || _pickerRef$current$se3 === void 0 ? void 0 : _pickerRef$current$se3.focus();
89
- }
83
+ if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
84
+ var _pickerRef$current, _pickerRef$current$se, _pickerRef$current$se2, _pickerRef$current$se3;
85
+ // necessary to refocus the search input after the loading state
86
+ pickerRef === null || pickerRef === void 0 ? void 0 : (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 ? void 0 : (_pickerRef$current$se = _pickerRef$current.selectRef) === null || _pickerRef$current$se === void 0 ? void 0 : (_pickerRef$current$se2 = _pickerRef$current$se.select) === null || _pickerRef$current$se2 === void 0 ? void 0 : (_pickerRef$current$se3 = _pickerRef$current$se2.inputRef) === null || _pickerRef$current$se3 === void 0 ? void 0 : _pickerRef$current$se3.focus();
90
87
  }
91
88
  }, [allOptions.length]);
92
- useEffect(() => {
93
- if (!fg('platform_sllv_a11y_modal_options_focus')) {
94
- if (allOptions.length) {
95
- var _pickerRef$current2, _pickerRef$current2$s, _pickerRef$current2$s2, _pickerRef$current2$s3;
96
- // necessary to refocus the search input after the loading state
97
- pickerRef === null || pickerRef === void 0 ? void 0 : (_pickerRef$current2 = pickerRef.current) === null || _pickerRef$current2 === void 0 ? void 0 : (_pickerRef$current2$s = _pickerRef$current2.selectRef) === null || _pickerRef$current2$s === void 0 ? void 0 : (_pickerRef$current2$s2 = _pickerRef$current2$s.select) === null || _pickerRef$current2$s2 === void 0 ? void 0 : (_pickerRef$current2$s3 = _pickerRef$current2$s2.inputRef) === null || _pickerRef$current2$s3 === void 0 ? void 0 : _pickerRef$current2$s3.focus();
98
- }
99
- }
100
- }, [allOptions]);
101
89
  useEffect(() => {
102
90
  if (allOptions.length) {
103
91
  if (experienceId) {
@@ -1,10 +1,8 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import { ax, ix } from "@compiled/react/runtime";
5
4
  import React from 'react';
6
5
  import { AssetsIcon } from '@atlaskit/logo';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
6
  import { Box } from '@atlaskit/primitives/compiled';
9
7
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
10
8
  const styles = {
@@ -34,11 +32,9 @@ export const PoweredByJSMAssets = props => {
34
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
35
33
  alignItems: 'center'
36
34
  }
37
- }, /*#__PURE__*/React.createElement(AssetsIcon, _extends({
35
+ }, /*#__PURE__*/React.createElement(AssetsIcon, {
38
36
  size: "small"
39
- }, fg('navx-1895-new-logo-design') ? {
40
- shouldUseNewLogoDesign: true
41
- } : undefined)), /*#__PURE__*/React.createElement(Box, {
37
+ }), /*#__PURE__*/React.createElement(Box, {
42
38
  xcss: styles.jsmTextStyles
43
39
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
44
40
  ,
@@ -1,11 +1,9 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import { ax, ix } from "@compiled/react/runtime";
5
4
  import React, { useMemo } from 'react';
6
5
  import { useIntl } from 'react-intl';
7
6
  import { AssetsIcon } from '@atlaskit/logo';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
7
  import { Anchor, Inline } from '@atlaskit/primitives/compiled';
10
8
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
11
9
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../../assets-modal';
@@ -25,11 +23,9 @@ export const ProviderLink = ({
25
23
  return {
26
24
  content: intl.formatMessage(footerMessages.poweredByAssets),
27
25
  extensionKey: 'jsm-cmdb-gateway',
28
- icon: /*#__PURE__*/React.createElement(AssetsIcon, _extends({
26
+ icon: /*#__PURE__*/React.createElement(AssetsIcon, {
29
27
  size: "xsmall"
30
- }, fg('navx-1895-new-logo-design') ? {
31
- shouldUseNewLogoDesign: true
32
- } : undefined)),
28
+ }),
33
29
  interactionName: 'atlas-link',
34
30
  url: '/jira/assets'
35
31
  };
@@ -11,7 +11,6 @@ import { useIntl } from 'react-intl';
11
11
  import Button from '@atlaskit/button/new';
12
12
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
13
13
  import CustomizeIcon from '@atlaskit/icon/core/customize';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { Box } from '@atlaskit/primitives/compiled';
16
15
  import { createFilter, PopupSelect } from '@atlaskit/select';
17
16
  import Tooltip from '@atlaskit/tooltip';
@@ -99,23 +98,12 @@ export var ColumnPicker = function ColumnPicker(_ref) {
99
98
  });
100
99
  };
101
100
  useEffect(function () {
102
- if (fg('platform_sllv_a11y_modal_options_focus')) {
103
- if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
104
- var _pickerRef$current;
105
- // necessary to refocus the search input after the loading state
106
- pickerRef === null || pickerRef === void 0 || (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.selectRef) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.select) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.inputRef) === null || _pickerRef$current === void 0 || _pickerRef$current.focus();
107
- }
101
+ if (pickerRef !== null && pickerRef !== void 0 && pickerRef.current && allOptions.length > 0) {
102
+ var _pickerRef$current;
103
+ // necessary to refocus the search input after the loading state
104
+ pickerRef === null || pickerRef === void 0 || (_pickerRef$current = pickerRef.current) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.selectRef) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.select) === null || _pickerRef$current === void 0 || (_pickerRef$current = _pickerRef$current.inputRef) === null || _pickerRef$current === void 0 || _pickerRef$current.focus();
108
105
  }
109
106
  }, [allOptions.length]);
110
- useEffect(function () {
111
- if (!fg('platform_sllv_a11y_modal_options_focus')) {
112
- if (allOptions.length) {
113
- var _pickerRef$current2;
114
- // necessary to refocus the search input after the loading state
115
- pickerRef === null || pickerRef === void 0 || (_pickerRef$current2 = pickerRef.current) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.selectRef) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.select) === null || _pickerRef$current2 === void 0 || (_pickerRef$current2 = _pickerRef$current2.inputRef) === null || _pickerRef$current2 === void 0 || _pickerRef$current2.focus();
116
- }
117
- }
118
- }, [allOptions]);
119
107
  useEffect(function () {
120
108
  if (allOptions.length) {
121
109
  if (experienceId) {
@@ -1,10 +1,8 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import { ax, ix } from "@compiled/react/runtime";
5
4
  import React from 'react';
6
5
  import { AssetsIcon } from '@atlaskit/logo';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
6
  import { Box } from '@atlaskit/primitives/compiled';
9
7
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
10
8
  var styles = {
@@ -35,11 +33,9 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
35
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
36
34
  alignItems: 'center'
37
35
  }
38
- }, /*#__PURE__*/React.createElement(AssetsIcon, _extends({
36
+ }, /*#__PURE__*/React.createElement(AssetsIcon, {
39
37
  size: "small"
40
- }, fg('navx-1895-new-logo-design') ? {
41
- shouldUseNewLogoDesign: true
42
- } : undefined)), /*#__PURE__*/React.createElement(Box, {
38
+ }), /*#__PURE__*/React.createElement(Box, {
43
39
  xcss: styles.jsmTextStyles
44
40
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
45
41
  ,
@@ -1,11 +1,9 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import { ax, ix } from "@compiled/react/runtime";
5
4
  import React, { useMemo } from 'react';
6
5
  import { useIntl } from 'react-intl';
7
6
  import { AssetsIcon } from '@atlaskit/logo';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
7
  import { Anchor, Inline } from '@atlaskit/primitives/compiled';
10
8
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
11
9
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../../assets-modal';
@@ -23,11 +21,9 @@ export var ProviderLink = function ProviderLink(_ref) {
23
21
  return {
24
22
  content: intl.formatMessage(footerMessages.poweredByAssets),
25
23
  extensionKey: 'jsm-cmdb-gateway',
26
- icon: /*#__PURE__*/React.createElement(AssetsIcon, _extends({
24
+ icon: /*#__PURE__*/React.createElement(AssetsIcon, {
27
25
  size: "xsmall"
28
- }, fg('navx-1895-new-logo-design') ? {
29
- shouldUseNewLogoDesign: true
30
- } : undefined)),
26
+ }),
31
27
  interactionName: 'atlas-link',
32
28
  url: '/jira/assets'
33
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -78,7 +78,7 @@
78
78
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.1.0",
79
79
  "@atlaskit/primitives": "^22.2.0",
80
80
  "@atlaskit/react-compiler-gating": "^0.2.0",
81
- "@atlaskit/react-select": "^4.5.0",
81
+ "@atlaskit/react-select": "^4.6.0",
82
82
  "@atlaskit/select": "^22.5.0",
83
83
  "@atlaskit/smart-card": "^45.13.0",
84
84
  "@atlaskit/smart-user-picker": "^11.2.0",
@@ -176,18 +176,12 @@
176
176
  "lp_enable_datasource-table-view_height_override": {
177
177
  "type": "boolean"
178
178
  },
179
- "navx-1895-new-logo-design": {
180
- "type": "boolean"
181
- },
182
179
  "platform_lp_sllv_jira_type_as_link": {
183
180
  "type": "boolean"
184
181
  },
185
182
  "platform_lp_jira_sllv_renderer_column_sorting": {
186
183
  "type": "boolean"
187
184
  },
188
- "platform_sllv_a11y_modal_options_focus": {
189
- "type": "boolean"
190
- },
191
185
  "linking_platform_link_datasource_unit_compliant": {
192
186
  "type": "boolean"
193
187
  },