@atlaskit/link-datasource 4.30.18 → 4.31.0

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,17 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`61c38baaba36a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61c38baaba36a) -
8
+ feature flag cleanup
9
+
10
+ ### Patch Changes
11
+
12
+ - [`e64156876a79c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e64156876a79c) -
13
+ Update documentation from Stash to Bitbucket
14
+
3
15
  ## 4.30.18
4
16
 
5
17
  ### Patch Changes
@@ -19,7 +19,6 @@ var styles = {
19
19
  jsmContainerStyles: "_1e0c1txw _2lx21sbv"
20
20
  };
21
21
  var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAssets(props) {
22
- var ASSETS_LINK = '/jira/servicedesk/assets';
23
22
  var ASSETS_APP_LINK = '/jira/assets';
24
23
  var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
25
24
  fireEvent = _useDatasourceAnalyti.fireEvent;
@@ -34,7 +33,7 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
34
33
  extensionKey: 'jsm-cmdb-gateway'
35
34
  });
36
35
  },
37
- href: (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
36
+ href: ASSETS_APP_LINK,
38
37
  rel: "noreferrer",
39
38
  target: "_blank",
40
39
  style: {
@@ -43,16 +42,10 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
43
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
44
43
  alignItems: 'center'
45
44
  }
46
- }, (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, (0, _extends2.default)({
45
+ }, /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, (0, _extends2.default)({
47
46
  size: "small"
48
47
  }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
49
48
  shouldUseNewLogoDesign: true
50
- } : undefined)) : /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, (0, _extends2.default)({
51
- size: "xxsmall",
52
- appearance: "brand",
53
- label: props.text
54
- }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
55
- shouldUseNewLogoDesign: true
56
49
  } : undefined)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
57
50
  xcss: styles.jsmTextStyles
58
51
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
@@ -29,7 +29,7 @@ var ProviderLink = exports.ProviderLink = function ProviderLink(_ref) {
29
29
  fireEvent = _useDatasourceAnalyti.fireEvent;
30
30
  var anchor = (0, _react.useMemo)(function () {
31
31
  if (datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
32
- return (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? {
32
+ return {
33
33
  content: intl.formatMessage(_messages.footerMessages.poweredByAssets),
34
34
  extensionKey: 'jsm-cmdb-gateway',
35
35
  icon: /*#__PURE__*/_react.default.createElement(_logo.AssetsIcon, (0, _extends2.default)({
@@ -39,17 +39,6 @@ var ProviderLink = exports.ProviderLink = function ProviderLink(_ref) {
39
39
  } : undefined)),
40
40
  interactionName: 'atlas-link',
41
41
  url: '/jira/assets'
42
- } : {
43
- content: intl.formatMessage(_messages.footerMessages.powerByJSM),
44
- extensionKey: 'jsm-cmdb-gateway',
45
- icon: /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, (0, _extends2.default)({
46
- appearance: "neutral",
47
- size: "small"
48
- }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
49
- shouldUseNewLogoDesign: true
50
- } : undefined)),
51
- interactionName: 'atlas-link',
52
- url: '/jira/servicedesk/assets'
53
42
  };
54
43
  }
55
44
  }, [datasourceId, intl]);
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
- import { AssetsIcon, JiraServiceManagementIcon } from '@atlaskit/logo';
6
+ import { AssetsIcon } from '@atlaskit/logo';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { Box } from '@atlaskit/primitives/compiled';
9
9
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
@@ -12,7 +12,6 @@ const styles = {
12
12
  jsmContainerStyles: "_1e0c1txw _2lx21sbv"
13
13
  };
14
14
  export const PoweredByJSMAssets = props => {
15
- const ASSETS_LINK = '/jira/servicedesk/assets';
16
15
  const ASSETS_APP_LINK = '/jira/assets';
17
16
  const {
18
17
  fireEvent
@@ -26,7 +25,7 @@ export const PoweredByJSMAssets = props => {
26
25
  componentHierarchy: 'datasourceTable',
27
26
  extensionKey: 'jsm-cmdb-gateway'
28
27
  }),
29
- href: fg('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
28
+ href: ASSETS_APP_LINK,
30
29
  rel: "noreferrer",
31
30
  target: "_blank",
32
31
  style: {
@@ -35,16 +34,10 @@ export const PoweredByJSMAssets = props => {
35
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
36
35
  alignItems: 'center'
37
36
  }
38
- }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, _extends({
37
+ }, /*#__PURE__*/React.createElement(AssetsIcon, _extends({
39
38
  size: "small"
40
39
  }, fg('navx-1895-new-logo-design') ? {
41
40
  shouldUseNewLogoDesign: true
42
- } : undefined)) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, _extends({
43
- size: "xxsmall",
44
- appearance: "brand",
45
- label: props.text
46
- }, fg('navx-1895-new-logo-design') ? {
47
- shouldUseNewLogoDesign: true
48
41
  } : undefined)), /*#__PURE__*/React.createElement(Box, {
49
42
  xcss: styles.jsmTextStyles
50
43
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
@@ -4,7 +4,7 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useMemo } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
- import { AssetsIcon, JiraServiceManagementIcon } from '@atlaskit/logo';
7
+ import { AssetsIcon } from '@atlaskit/logo';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { Anchor, Inline } from '@atlaskit/primitives/compiled';
10
10
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
@@ -22,7 +22,7 @@ export const ProviderLink = ({
22
22
  } = useDatasourceAnalyticsEvents();
23
23
  const anchor = useMemo(() => {
24
24
  if (datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
25
- return fg('assets_as_an_app_v2') ? {
25
+ return {
26
26
  content: intl.formatMessage(footerMessages.poweredByAssets),
27
27
  extensionKey: 'jsm-cmdb-gateway',
28
28
  icon: /*#__PURE__*/React.createElement(AssetsIcon, _extends({
@@ -32,17 +32,6 @@ export const ProviderLink = ({
32
32
  } : undefined)),
33
33
  interactionName: 'atlas-link',
34
34
  url: '/jira/assets'
35
- } : {
36
- content: intl.formatMessage(footerMessages.powerByJSM),
37
- extensionKey: 'jsm-cmdb-gateway',
38
- icon: /*#__PURE__*/React.createElement(JiraServiceManagementIcon, _extends({
39
- appearance: "neutral",
40
- size: "small"
41
- }, fg('navx-1895-new-logo-design') ? {
42
- shouldUseNewLogoDesign: true
43
- } : undefined)),
44
- interactionName: 'atlas-link',
45
- url: '/jira/servicedesk/assets'
46
35
  };
47
36
  }
48
37
  }, [datasourceId, intl]);
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
- import { AssetsIcon, JiraServiceManagementIcon } from '@atlaskit/logo';
6
+ import { AssetsIcon } from '@atlaskit/logo';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { Box } from '@atlaskit/primitives/compiled';
9
9
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
@@ -12,7 +12,6 @@ var styles = {
12
12
  jsmContainerStyles: "_1e0c1txw _2lx21sbv"
13
13
  };
14
14
  export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
15
- var ASSETS_LINK = '/jira/servicedesk/assets';
16
15
  var ASSETS_APP_LINK = '/jira/assets';
17
16
  var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
18
17
  fireEvent = _useDatasourceAnalyti.fireEvent;
@@ -27,7 +26,7 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
27
26
  extensionKey: 'jsm-cmdb-gateway'
28
27
  });
29
28
  },
30
- href: fg('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
29
+ href: ASSETS_APP_LINK,
31
30
  rel: "noreferrer",
32
31
  target: "_blank",
33
32
  style: {
@@ -36,16 +35,10 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
36
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
37
36
  alignItems: 'center'
38
37
  }
39
- }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, _extends({
38
+ }, /*#__PURE__*/React.createElement(AssetsIcon, _extends({
40
39
  size: "small"
41
40
  }, fg('navx-1895-new-logo-design') ? {
42
41
  shouldUseNewLogoDesign: true
43
- } : undefined)) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, _extends({
44
- size: "xxsmall",
45
- appearance: "brand",
46
- label: props.text
47
- }, fg('navx-1895-new-logo-design') ? {
48
- shouldUseNewLogoDesign: true
49
42
  } : undefined)), /*#__PURE__*/React.createElement(Box, {
50
43
  xcss: styles.jsmTextStyles
51
44
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography, @atlaskit/ui-styling-standard/enforce-style-prop
@@ -4,7 +4,7 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useMemo } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
- import { AssetsIcon, JiraServiceManagementIcon } from '@atlaskit/logo';
7
+ import { AssetsIcon } from '@atlaskit/logo';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { Anchor, Inline } from '@atlaskit/primitives/compiled';
10
10
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
@@ -20,7 +20,7 @@ export var ProviderLink = function ProviderLink(_ref) {
20
20
  fireEvent = _useDatasourceAnalyti.fireEvent;
21
21
  var anchor = useMemo(function () {
22
22
  if (datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID) {
23
- return fg('assets_as_an_app_v2') ? {
23
+ return {
24
24
  content: intl.formatMessage(footerMessages.poweredByAssets),
25
25
  extensionKey: 'jsm-cmdb-gateway',
26
26
  icon: /*#__PURE__*/React.createElement(AssetsIcon, _extends({
@@ -30,17 +30,6 @@ export var ProviderLink = function ProviderLink(_ref) {
30
30
  } : undefined)),
31
31
  interactionName: 'atlas-link',
32
32
  url: '/jira/assets'
33
- } : {
34
- content: intl.formatMessage(footerMessages.powerByJSM),
35
- extensionKey: 'jsm-cmdb-gateway',
36
- icon: /*#__PURE__*/React.createElement(JiraServiceManagementIcon, _extends({
37
- appearance: "neutral",
38
- size: "small"
39
- }, fg('navx-1895-new-logo-design') ? {
40
- shouldUseNewLogoDesign: true
41
- } : undefined)),
42
- interactionName: 'atlas-link',
43
- url: '/jira/servicedesk/assets'
44
33
  };
45
34
  }
46
35
  }, [datasourceId, intl]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.30.18",
3
+ "version": "4.31.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -61,10 +61,10 @@
61
61
  "@atlaskit/jql-ast": "^3.3.0",
62
62
  "@atlaskit/jql-editor": "^5.11.0",
63
63
  "@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
64
- "@atlaskit/layering": "^3.5.0",
64
+ "@atlaskit/layering": "^3.6.0",
65
65
  "@atlaskit/link": "^3.3.0",
66
66
  "@atlaskit/link-client-extension": "^6.0.0",
67
- "@atlaskit/link-provider": "^4.0.0",
67
+ "@atlaskit/link-provider": "^4.1.0",
68
68
  "@atlaskit/linking-common": "^9.9.0",
69
69
  "@atlaskit/linking-types": "^14.2.0",
70
70
  "@atlaskit/logo": "^19.9.0",
@@ -72,7 +72,7 @@
72
72
  "@atlaskit/modal-dialog": "^14.9.0",
73
73
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
74
74
  "@atlaskit/platform-feature-flags": "^1.1.0",
75
- "@atlaskit/popup": "^4.10.0",
75
+ "@atlaskit/popup": "^4.12.0",
76
76
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
77
77
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
78
78
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
@@ -80,13 +80,13 @@
80
80
  "@atlaskit/primitives": "^17.0.0",
81
81
  "@atlaskit/react-select": "^3.12.0",
82
82
  "@atlaskit/select": "^21.6.0",
83
- "@atlaskit/smart-card": "^43.18.0",
84
- "@atlaskit/smart-user-picker": "^8.5.0",
83
+ "@atlaskit/smart-card": "^43.19.0",
84
+ "@atlaskit/smart-user-picker": "^8.6.0",
85
85
  "@atlaskit/spinner": "^19.0.0",
86
86
  "@atlaskit/tag": "^14.2.0",
87
87
  "@atlaskit/textfield": "^8.2.0",
88
88
  "@atlaskit/theme": "^21.0.0",
89
- "@atlaskit/tokens": "^9.0.0",
89
+ "@atlaskit/tokens": "^9.1.0",
90
90
  "@atlaskit/tooltip": "^20.11.0",
91
91
  "@atlaskit/ufo": "^0.4.0",
92
92
  "@atlaskit/width-detector": "^5.0.0",
@@ -116,8 +116,7 @@
116
116
  "@atlassian/feature-flags-test-utils": "^1.0.0",
117
117
  "@faker-js/faker": "^7.5.0",
118
118
  "@testing-library/dom": "^10.1.0",
119
- "@testing-library/react": "^13.4.0",
120
- "@testing-library/react-hooks": "^8.0.1",
119
+ "@testing-library/react": "^16.3.0",
121
120
  "@testing-library/user-event": "^14.4.3",
122
121
  "@types/debounce-promise": "^3.1.2",
123
122
  "fetch-mock": "^8.0.0",
@@ -164,9 +163,6 @@
164
163
  "platform-component-visual-refresh": {
165
164
  "type": "boolean"
166
165
  },
167
- "assets_as_an_app_v2": {
168
- "type": "boolean"
169
- },
170
166
  "product-terminology-refresh": {
171
167
  "type": "boolean"
172
168
  },