@atlaskit/link-datasource 4.0.2 → 4.1.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,30 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#129996](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129996)
8
+ [`9a1b58cd19c04`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9a1b58cd19c04) -
9
+ Updating Assets logo to use ADS package
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 4.0.3
16
+
17
+ ### Patch Changes
18
+
19
+ - [#128679](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128679)
20
+ [`8468ebc2097e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8468ebc2097e0) -
21
+ Clean up ff enable_datasource_supporting_actions. This permanently enables saving supporting
22
+ actions to the action store.
23
+ - [#128098](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128098)
24
+ [`2c7474b012df9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c7474b012df9) -
25
+ Update slack help channel name
26
+ - Updated dependencies
27
+
3
28
  ## 4.0.2
4
29
 
5
30
  ### Patch Changes
@@ -93,7 +93,7 @@ var actions = exports.actions = {
93
93
  return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, action.integrationKey, _objectSpread(_objectSpread({}, acc[action.integrationKey]), {}, (0, _defineProperty2.default)({}, fieldKey, _objectSpread({
94
94
  actionKey: action.actionKey,
95
95
  type: action.type
96
- }, fetchAction && (0, _platformFeatureFlags.fg)('enable_datasource_supporting_actions') && {
96
+ }, fetchAction && {
97
97
  fetchAction: {
98
98
  actionKey: fetchAction.actionKey,
99
99
  type: fetchAction.type,
@@ -116,7 +116,6 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
116
116
  }
117
117
 
118
118
  // if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
119
- // `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
120
119
  if ((0, _editType.isEditTypeSelectable)(values.type) && !executeFetch) {
121
120
  return readView;
122
121
  }
@@ -12,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
12
12
  var _logo = require("@atlaskit/logo");
13
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
14
  var _compiled = require("@atlaskit/primitives/compiled");
15
+ var _assets = require("@atlaskit/temp-nav-app-icons/assets");
15
16
  var _analytics = require("../../../analytics");
16
17
  var styles = {
17
18
  jsmTextStyles: "_syaz1gjq _18u012x7 _30l316c2",
@@ -42,7 +43,9 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
42
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
43
44
  alignItems: 'center'
44
45
  }
45
- }, (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? /*#__PURE__*/_react.default.createElement(AssetsIcon, null) : /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, {
46
+ }, (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? /*#__PURE__*/_react.default.createElement(_assets.AssetsIcon, {
47
+ size: "24"
48
+ }) : /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, {
46
49
  size: "xsmall",
47
50
  appearance: "brand",
48
51
  label: props.text
@@ -54,57 +57,4 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
54
57
  fontSize: 'small'
55
58
  }
56
59
  }, props.text)));
57
- };
58
-
59
- // TODO: JDW-5568 use the Assets Logo from @atlaskit/logo once available
60
- var AssetsIcon = function AssetsIcon() {
61
- return (
62
- /*#__PURE__*/
63
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
64
- _react.default.createElement("span", {
65
- style: {
66
- display: 'flex'
67
- },
68
- role: "img",
69
- "aria-label": "Assets icon"
70
- }, /*#__PURE__*/_react.default.createElement("svg", {
71
- width: "24",
72
- height: "24",
73
- viewBox: "0 0 24 24",
74
- fill: "none",
75
- xmlns: "http://www.w3.org/2000/svg"
76
- }, /*#__PURE__*/_react.default.createElement("path", {
77
- d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
78
- fill: "#FFC716"
79
- }), /*#__PURE__*/_react.default.createElement("g", {
80
- clipPath: "url(#clip0_2912_2)"
81
- }, /*#__PURE__*/_react.default.createElement("path", {
82
- fillRule: "evenodd",
83
- clipRule: "evenodd",
84
- d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
85
- fill: "#101214"
86
- }), /*#__PURE__*/_react.default.createElement("path", {
87
- d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
88
- fill: "#101214"
89
- }), /*#__PURE__*/_react.default.createElement("path", {
90
- d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
91
- fill: "#101214"
92
- }), /*#__PURE__*/_react.default.createElement("path", {
93
- d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
94
- fill: "#101214"
95
- }), /*#__PURE__*/_react.default.createElement("path", {
96
- d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
97
- fill: "#101214"
98
- }), /*#__PURE__*/_react.default.createElement("path", {
99
- d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
100
- fill: "#101214"
101
- })), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
102
- id: "clip0_2912_2"
103
- }, /*#__PURE__*/_react.default.createElement("rect", {
104
- width: "21",
105
- height: "21",
106
- fill: "#101214",
107
- transform: "translate(1.5 1.5)"
108
- })))))
109
- );
110
60
  };
@@ -79,7 +79,7 @@ export const actions = {
79
79
  [fieldKey]: {
80
80
  actionKey: action.actionKey,
81
81
  type: action.type,
82
- ...(fetchAction && fg('enable_datasource_supporting_actions') && {
82
+ ...(fetchAction && {
83
83
  fetchAction: {
84
84
  actionKey: fetchAction.actionKey,
85
85
  type: fetchAction.type,
@@ -109,7 +109,6 @@ const InlineEditableCell = ({
109
109
  }
110
110
 
111
111
  // if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
112
- // `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
113
112
  if (isEditTypeSelectable(values.type) && !executeFetch) {
114
113
  return readView;
115
114
  }
@@ -5,6 +5,7 @@ import React from 'react';
5
5
  import { JiraServiceManagementIcon } from '@atlaskit/logo';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Box } from '@atlaskit/primitives/compiled';
8
+ import { AssetsIcon } from '@atlaskit/temp-nav-app-icons/assets';
8
9
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
9
10
  const styles = {
10
11
  jsmTextStyles: "_syaz1gjq _18u012x7 _30l316c2",
@@ -34,7 +35,9 @@ export const PoweredByJSMAssets = props => {
34
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
35
36
  alignItems: 'center'
36
37
  }
37
- }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, null) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
38
+ }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, {
39
+ size: "24"
40
+ }) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
38
41
  size: "xsmall",
39
42
  appearance: "brand",
40
43
  label: props.text
@@ -46,57 +49,4 @@ export const PoweredByJSMAssets = props => {
46
49
  fontSize: 'small'
47
50
  }
48
51
  }, props.text)));
49
- };
50
-
51
- // TODO: JDW-5568 use the Assets Logo from @atlaskit/logo once available
52
- const AssetsIcon = () => {
53
- return (
54
- /*#__PURE__*/
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
56
- React.createElement("span", {
57
- style: {
58
- display: 'flex'
59
- },
60
- role: "img",
61
- "aria-label": "Assets icon"
62
- }, /*#__PURE__*/React.createElement("svg", {
63
- width: "24",
64
- height: "24",
65
- viewBox: "0 0 24 24",
66
- fill: "none",
67
- xmlns: "http://www.w3.org/2000/svg"
68
- }, /*#__PURE__*/React.createElement("path", {
69
- d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
70
- fill: "#FFC716"
71
- }), /*#__PURE__*/React.createElement("g", {
72
- clipPath: "url(#clip0_2912_2)"
73
- }, /*#__PURE__*/React.createElement("path", {
74
- fillRule: "evenodd",
75
- clipRule: "evenodd",
76
- d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
77
- fill: "#101214"
78
- }), /*#__PURE__*/React.createElement("path", {
79
- d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
80
- fill: "#101214"
81
- }), /*#__PURE__*/React.createElement("path", {
82
- d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
83
- fill: "#101214"
84
- }), /*#__PURE__*/React.createElement("path", {
85
- d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
86
- fill: "#101214"
87
- }), /*#__PURE__*/React.createElement("path", {
88
- d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
89
- fill: "#101214"
90
- }), /*#__PURE__*/React.createElement("path", {
91
- d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
92
- fill: "#101214"
93
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
94
- id: "clip0_2912_2"
95
- }, /*#__PURE__*/React.createElement("rect", {
96
- width: "21",
97
- height: "21",
98
- fill: "#101214",
99
- transform: "translate(1.5 1.5)"
100
- })))))
101
- );
102
52
  };
@@ -87,7 +87,7 @@ export var actions = {
87
87
  return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, action.integrationKey, _objectSpread(_objectSpread({}, acc[action.integrationKey]), {}, _defineProperty({}, fieldKey, _objectSpread({
88
88
  actionKey: action.actionKey,
89
89
  type: action.type
90
- }, fetchAction && fg('enable_datasource_supporting_actions') && {
90
+ }, fetchAction && {
91
91
  fetchAction: {
92
92
  actionKey: fetchAction.actionKey,
93
93
  type: fetchAction.type,
@@ -109,7 +109,6 @@ var InlineEditableCell = function InlineEditableCell(_ref3) {
109
109
  }
110
110
 
111
111
  // if the field requires to fetch options to execute, then is editable only if `executeFetch` is defined
112
- // `executeFetch` is returned only when ff:`enable_datasource_supporting_actions` is enabled
113
112
  if (isEditTypeSelectable(values.type) && !executeFetch) {
114
113
  return readView;
115
114
  }
@@ -5,6 +5,7 @@ import React from 'react';
5
5
  import { JiraServiceManagementIcon } from '@atlaskit/logo';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Box } from '@atlaskit/primitives/compiled';
8
+ import { AssetsIcon } from '@atlaskit/temp-nav-app-icons/assets';
8
9
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
9
10
  var styles = {
10
11
  jsmTextStyles: "_syaz1gjq _18u012x7 _30l316c2",
@@ -35,7 +36,9 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
35
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
36
37
  alignItems: 'center'
37
38
  }
38
- }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, null) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
39
+ }, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, {
40
+ size: "24"
41
+ }) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
39
42
  size: "xsmall",
40
43
  appearance: "brand",
41
44
  label: props.text
@@ -47,57 +50,4 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
47
50
  fontSize: 'small'
48
51
  }
49
52
  }, props.text)));
50
- };
51
-
52
- // TODO: JDW-5568 use the Assets Logo from @atlaskit/logo once available
53
- var AssetsIcon = function AssetsIcon() {
54
- return (
55
- /*#__PURE__*/
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
57
- React.createElement("span", {
58
- style: {
59
- display: 'flex'
60
- },
61
- role: "img",
62
- "aria-label": "Assets icon"
63
- }, /*#__PURE__*/React.createElement("svg", {
64
- width: "24",
65
- height: "24",
66
- viewBox: "0 0 24 24",
67
- fill: "none",
68
- xmlns: "http://www.w3.org/2000/svg"
69
- }, /*#__PURE__*/React.createElement("path", {
70
- d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
71
- fill: "#FFC716"
72
- }), /*#__PURE__*/React.createElement("g", {
73
- clipPath: "url(#clip0_2912_2)"
74
- }, /*#__PURE__*/React.createElement("path", {
75
- fillRule: "evenodd",
76
- clipRule: "evenodd",
77
- d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
78
- fill: "#101214"
79
- }), /*#__PURE__*/React.createElement("path", {
80
- d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
81
- fill: "#101214"
82
- }), /*#__PURE__*/React.createElement("path", {
83
- d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
84
- fill: "#101214"
85
- }), /*#__PURE__*/React.createElement("path", {
86
- d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
87
- fill: "#101214"
88
- }), /*#__PURE__*/React.createElement("path", {
89
- d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
90
- fill: "#101214"
91
- }), /*#__PURE__*/React.createElement("path", {
92
- d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
93
- fill: "#101214"
94
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
95
- id: "clip0_2912_2"
96
- }, /*#__PURE__*/React.createElement("rect", {
97
- width: "21",
98
- height: "21",
99
- fill: "#101214",
100
- transform: "translate(1.5 1.5)"
101
- })))))
102
- );
103
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/badge": "^18.1.0",
46
46
  "@atlaskit/button": "^21.1.0",
47
47
  "@atlaskit/css": "^0.10.0",
48
- "@atlaskit/datetime-picker": "^16.1.0",
48
+ "@atlaskit/datetime-picker": "^16.2.0",
49
49
  "@atlaskit/dropdown-menu": "^13.0.0",
50
50
  "@atlaskit/editor-prosemirror": "7.0.0",
51
51
  "@atlaskit/empty-state": "^9.0.0",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/linking-types": "^9.6.0",
67
67
  "@atlaskit/logo": "^16.0.0",
68
68
  "@atlaskit/lozenge": "^12.2.0",
69
- "@atlaskit/modal-dialog": "^13.1.0",
69
+ "@atlaskit/modal-dialog": "^13.4.0",
70
70
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
71
71
  "@atlaskit/platform-feature-flags": "^1.1.0",
72
72
  "@atlaskit/popup": "^2.0.0",
@@ -74,13 +74,14 @@
74
74
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
75
75
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
76
76
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.0.0",
77
- "@atlaskit/primitives": "^14.1.0",
77
+ "@atlaskit/primitives": "^14.2.0",
78
78
  "@atlaskit/react-select": "^2.0.0",
79
79
  "@atlaskit/select": "^20.0.0",
80
80
  "@atlaskit/smart-card": "^36.0.0",
81
81
  "@atlaskit/smart-user-picker": "^8.0.0",
82
82
  "@atlaskit/spinner": "^18.0.0",
83
83
  "@atlaskit/tag": "^14.0.0",
84
+ "@atlaskit/temp-nav-app-icons": "^0.5.0",
84
85
  "@atlaskit/textfield": "^8.0.0",
85
86
  "@atlaskit/theme": "^18.0.0",
86
87
  "@atlaskit/tokens": "^4.5.0",
@@ -159,9 +160,6 @@
159
160
  "./elements": "./src/elements.ts"
160
161
  },
161
162
  "platform-feature-flags": {
162
- "enable_datasource_supporting_actions": {
163
- "type": "boolean"
164
- },
165
163
  "enable_datasource_fetch_action_inputs": {
166
164
  "type": "boolean"
167
165
  },