@atlaskit/link-datasource 0.33.12 → 0.34.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,17 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0260eb48f1a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0260eb48f1a) - [ux] Skip column schema apply if no results on initial query
8
+
9
+ ## 0.34.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`02ac9829cf8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02ac9829cf8) - [ux] Added support for richtext.
14
+
3
15
  ## 0.33.12
4
16
 
5
17
  ### Patch Changes
@@ -188,7 +188,7 @@ var useDatasourceTableState = function useDatasourceTableState(_ref) {
188
188
  if (fieldKeys.length > 0) {
189
189
  setLastRequestedFieldKeys(fieldKeys);
190
190
  }
191
- if (isSchemaFromData && schema) {
191
+ if (isSchemaFromData && schema && items.length > 0) {
192
192
  applySchemaProperties(schema.properties);
193
193
  }
194
194
  _context2.next = 33;
@@ -95,6 +95,7 @@ function getColumnWidth(key, type) {
95
95
  priority: BASE_WIDTH * 8,
96
96
  status: BASE_WIDTH * 18,
97
97
  summary: BASE_WIDTH * 45,
98
+ description: BASE_WIDTH * 31.25,
98
99
  type: BASE_WIDTH * 8
99
100
  };
100
101
  if (keyBasedWidth[key]) {
@@ -11,6 +11,7 @@ var _dateTime = _interopRequireDefault(require("./date-time"));
11
11
  var _icon = _interopRequireDefault(require("./icon"));
12
12
  var _link = _interopRequireDefault(require("./link"));
13
13
  var _number = _interopRequireDefault(require("./number"));
14
+ var _richtext = _interopRequireDefault(require("./richtext"));
14
15
  var _status = _interopRequireDefault(require("./status"));
15
16
  var _tag = _interopRequireDefault(require("./tag"));
16
17
  var _text = _interopRequireDefault(require("./text"));
@@ -58,6 +59,10 @@ var fallbackRenderType = function fallbackRenderType(item) {
58
59
  });
59
60
  case 'user':
60
61
  return /*#__PURE__*/_react.default.createElement(_user.default, item.value);
62
+ case 'richtext':
63
+ return /*#__PURE__*/_react.default.createElement(_richtext.default, {
64
+ value: item.value
65
+ });
61
66
  default:
62
67
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
63
68
  }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _react = require("react");
11
+ var _react2 = require("@emotion/react");
12
+ var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
13
+ var _model = require("@atlaskit/editor-prosemirror/model");
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
16
+ var rootStyles = (0, _react2.css)({
17
+ whiteSpace: 'nowrap',
18
+ textOverflow: 'ellipsis',
19
+ overflow: 'hidden',
20
+ position: 'relative',
21
+ display: 'block'
22
+ });
23
+ var RichTextType = function RichTextType(_ref) {
24
+ var value = _ref.value;
25
+ var adfPlainText = (0, _react.useMemo)(function () {
26
+ try {
27
+ if (value.type === 'adf') {
28
+ var adf = JSON.parse(value.text);
29
+ return _model.Node.fromJSON(_schemaDefault.defaultSchema, _objectSpread(_objectSpread({}, adf), {}, {
30
+ content: (0, _toConsumableArray2.default)(adf.content.slice(0, 2))
31
+ })).textContent;
32
+ }
33
+ return null;
34
+ } catch (e) {
35
+ // eslint-disable-next-line no-console
36
+ console.error('error parsing adf', e);
37
+ return null;
38
+ }
39
+ }, [value]);
40
+ if (adfPlainText) {
41
+ return (0, _react2.jsx)("div", {
42
+ css: rootStyles,
43
+ "data-testid": "richtext-plaintext"
44
+ }, adfPlainText);
45
+ } else {
46
+ return (0, _react2.jsx)("span", {
47
+ "data-testid": "richtext-unsupported"
48
+ });
49
+ }
50
+ };
51
+ var _default = RichTextType;
52
+ exports.default = _default;
@@ -344,7 +344,7 @@ var analyticsContextAttributes = {
344
344
  };
345
345
  var analyticsContextData = {
346
346
  packageName: "@atlaskit/link-datasource",
347
- packageVersion: "0.33.12",
347
+ packageVersion: "0.34.1",
348
348
  source: 'datasourceConfigModal'
349
349
  };
350
350
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.33.12",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
@@ -109,7 +109,7 @@ export const useDatasourceTableState = ({
109
109
  if (fieldKeys.length > 0) {
110
110
  setLastRequestedFieldKeys(fieldKeys);
111
111
  }
112
- if (isSchemaFromData && schema) {
112
+ if (isSchemaFromData && schema && items.length > 0) {
113
113
  applySchemaProperties(schema.properties);
114
114
  }
115
115
  } catch (e) {
@@ -97,6 +97,7 @@ function getColumnWidth(key, type) {
97
97
  priority: BASE_WIDTH * 8,
98
98
  status: BASE_WIDTH * 18,
99
99
  summary: BASE_WIDTH * 45,
100
+ description: BASE_WIDTH * 31.25,
100
101
  type: BASE_WIDTH * 8
101
102
  };
102
103
  if (keyBasedWidth[key]) {
@@ -4,6 +4,7 @@ import DateTimeRenderType from './date-time';
4
4
  import IconRenderType from './icon';
5
5
  import LinkRenderType from './link';
6
6
  import NumberRenderType from './number';
7
+ import RichTextRenderType from './richtext';
7
8
  import StatusRenderType from './status';
8
9
  import TagRenderType from './tag';
9
10
  import StringRenderType from './text';
@@ -51,6 +52,10 @@ export const fallbackRenderType = item => {
51
52
  });
52
53
  case 'user':
53
54
  return /*#__PURE__*/React.createElement(UserRenderType, item.value);
55
+ case 'richtext':
56
+ return /*#__PURE__*/React.createElement(RichTextRenderType, {
57
+ value: item.value
58
+ });
54
59
  default:
55
60
  return /*#__PURE__*/React.createElement(React.Fragment, null);
56
61
  }
@@ -0,0 +1,43 @@
1
+ /** @jsx jsx */
2
+ import { useMemo } from 'react';
3
+ import { css, jsx } from '@emotion/react';
4
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
5
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
+ const rootStyles = css({
7
+ whiteSpace: 'nowrap',
8
+ textOverflow: 'ellipsis',
9
+ overflow: 'hidden',
10
+ position: 'relative',
11
+ display: 'block'
12
+ });
13
+ const RichTextType = ({
14
+ value
15
+ }) => {
16
+ const adfPlainText = useMemo(() => {
17
+ try {
18
+ if (value.type === 'adf') {
19
+ const adf = JSON.parse(value.text);
20
+ return PMNode.fromJSON(defaultSchema, {
21
+ ...adf,
22
+ content: [...adf.content.slice(0, 2)]
23
+ }).textContent;
24
+ }
25
+ return null;
26
+ } catch (e) {
27
+ // eslint-disable-next-line no-console
28
+ console.error('error parsing adf', e);
29
+ return null;
30
+ }
31
+ }, [value]);
32
+ if (adfPlainText) {
33
+ return jsx("div", {
34
+ css: rootStyles,
35
+ "data-testid": "richtext-plaintext"
36
+ }, adfPlainText);
37
+ } else {
38
+ return jsx("span", {
39
+ "data-testid": "richtext-unsupported"
40
+ });
41
+ }
42
+ };
43
+ export default RichTextType;
@@ -290,7 +290,7 @@ const analyticsContextAttributes = {
290
290
  };
291
291
  const analyticsContextData = {
292
292
  packageName: "@atlaskit/link-datasource",
293
- packageVersion: "0.33.12",
293
+ packageVersion: "0.34.1",
294
294
  source: 'datasourceConfigModal'
295
295
  };
296
296
  const contextData = {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.33.12",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
@@ -181,7 +181,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
181
181
  if (fieldKeys.length > 0) {
182
182
  setLastRequestedFieldKeys(fieldKeys);
183
183
  }
184
- if (isSchemaFromData && schema) {
184
+ if (isSchemaFromData && schema && items.length > 0) {
185
185
  applySchemaProperties(schema.properties);
186
186
  }
187
187
  _context2.next = 33;
@@ -88,6 +88,7 @@ function getColumnWidth(key, type) {
88
88
  priority: BASE_WIDTH * 8,
89
89
  status: BASE_WIDTH * 18,
90
90
  summary: BASE_WIDTH * 45,
91
+ description: BASE_WIDTH * 31.25,
91
92
  type: BASE_WIDTH * 8
92
93
  };
93
94
  if (keyBasedWidth[key]) {
@@ -4,6 +4,7 @@ import DateTimeRenderType from './date-time';
4
4
  import IconRenderType from './icon';
5
5
  import LinkRenderType from './link';
6
6
  import NumberRenderType from './number';
7
+ import RichTextRenderType from './richtext';
7
8
  import StatusRenderType from './status';
8
9
  import TagRenderType from './tag';
9
10
  import StringRenderType from './text';
@@ -51,6 +52,10 @@ export var fallbackRenderType = function fallbackRenderType(item) {
51
52
  });
52
53
  case 'user':
53
54
  return /*#__PURE__*/React.createElement(UserRenderType, item.value);
55
+ case 'richtext':
56
+ return /*#__PURE__*/React.createElement(RichTextRenderType, {
57
+ value: item.value
58
+ });
54
59
  default:
55
60
  return /*#__PURE__*/React.createElement(React.Fragment, null);
56
61
  }
@@ -0,0 +1,45 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ /** @jsx jsx */
6
+ import { useMemo } from 'react';
7
+ import { css, jsx } from '@emotion/react';
8
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
9
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
10
+ var rootStyles = css({
11
+ whiteSpace: 'nowrap',
12
+ textOverflow: 'ellipsis',
13
+ overflow: 'hidden',
14
+ position: 'relative',
15
+ display: 'block'
16
+ });
17
+ var RichTextType = function RichTextType(_ref) {
18
+ var value = _ref.value;
19
+ var adfPlainText = useMemo(function () {
20
+ try {
21
+ if (value.type === 'adf') {
22
+ var adf = JSON.parse(value.text);
23
+ return PMNode.fromJSON(defaultSchema, _objectSpread(_objectSpread({}, adf), {}, {
24
+ content: _toConsumableArray(adf.content.slice(0, 2))
25
+ })).textContent;
26
+ }
27
+ return null;
28
+ } catch (e) {
29
+ // eslint-disable-next-line no-console
30
+ console.error('error parsing adf', e);
31
+ return null;
32
+ }
33
+ }, [value]);
34
+ if (adfPlainText) {
35
+ return jsx("div", {
36
+ css: rootStyles,
37
+ "data-testid": "richtext-plaintext"
38
+ }, adfPlainText);
39
+ } else {
40
+ return jsx("span", {
41
+ "data-testid": "richtext-unsupported"
42
+ });
43
+ }
44
+ };
45
+ export default RichTextType;
@@ -334,7 +334,7 @@ var analyticsContextAttributes = {
334
334
  };
335
335
  var analyticsContextData = {
336
336
  packageName: "@atlaskit/link-datasource",
337
- packageVersion: "0.33.12",
337
+ packageVersion: "0.34.1",
338
338
  source: 'datasourceConfigModal'
339
339
  };
340
340
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.33.12",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { RichText } from '@atlaskit/linking-types';
3
+ declare const RichTextType: ({ value }: {
4
+ value: RichText;
5
+ }) => jsx.JSX.Element;
6
+ export default RichTextType;
@@ -0,0 +1,6 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { RichText } from '@atlaskit/linking-types';
3
+ declare const RichTextType: ({ value }: {
4
+ value: RichText;
5
+ }) => jsx.JSX.Element;
6
+ export default RichTextType;
@@ -0,0 +1,285 @@
1
+ {
2
+ "type": "doc",
3
+ "version": 1,
4
+ "content": [
5
+ {
6
+ "type": "table",
7
+ "attrs": { "layout": "full-width" },
8
+ "content": [
9
+ {
10
+ "type": "tableRow",
11
+ "content": [
12
+ {
13
+ "type": "tableHeader",
14
+ "content": [
15
+ {
16
+ "type": "paragraph",
17
+ "content": [{ "type": "text", "text": "Header content 1" }]
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "type": "tableHeader",
23
+ "content": [
24
+ {
25
+ "type": "paragraph",
26
+ "content": [{ "type": "text", "text": "Header content 2" }]
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "type": "tableHeader",
32
+ "content": [
33
+ {
34
+ "type": "paragraph",
35
+ "content": [{ "type": "text", "text": "Header content 3" }]
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "type": "tableRow",
43
+ "content": [
44
+ {
45
+ "type": "tableCell",
46
+ "content": [
47
+ {
48
+ "type": "paragraph",
49
+ "content": [{ "type": "text", "text": "Body content 1" }]
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "type": "tableCell",
55
+ "content": [
56
+ {
57
+ "type": "paragraph",
58
+ "content": [{ "type": "text", "text": "Body content 2" }]
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "type": "tableCell",
64
+ "content": [
65
+ {
66
+ "type": "paragraph",
67
+ "content": [{ "type": "text", "text": "Body content 3" }]
68
+ }
69
+ ]
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "type": "bodiedExtension",
77
+ "attrs": {
78
+ "extensionType": "com.atlassian.confluence.macro.core",
79
+ "extensionKey": "bodied-eh",
80
+ "parameters": {
81
+ "macroParams": {},
82
+ "macroMetadata": {
83
+ "macroId": { "value": 1532948101320 },
84
+ "placeholder": { "0": { "data": { "url": "" }, "type": "icon" } }
85
+ }
86
+ },
87
+ "layout": "wide"
88
+ },
89
+ "content": [
90
+ {
91
+ "type": "table",
92
+ "attrs": { "layout": "full-width" },
93
+ "content": [
94
+ {
95
+ "type": "tableRow",
96
+ "content": [
97
+ {
98
+ "type": "tableHeader",
99
+ "content": [
100
+ {
101
+ "type": "paragraph",
102
+ "content": [
103
+ { "type": "text", "text": "Header content 1" }
104
+ ]
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "type": "tableHeader",
110
+ "content": [
111
+ {
112
+ "type": "paragraph",
113
+ "content": [
114
+ { "type": "text", "text": "Header content 2" }
115
+ ]
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ "type": "tableHeader",
121
+ "content": [
122
+ {
123
+ "type": "paragraph",
124
+ "content": [
125
+ { "type": "text", "text": "Header content 3" }
126
+ ]
127
+ }
128
+ ]
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "type": "tableRow",
134
+ "content": [
135
+ {
136
+ "type": "tableCell",
137
+ "content": [
138
+ {
139
+ "type": "paragraph",
140
+ "content": [
141
+ {
142
+ "type": "text",
143
+ "text": "This table is inside a bodied extension."
144
+ }
145
+ ]
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "type": "tableCell",
151
+ "content": [
152
+ {
153
+ "type": "paragraph",
154
+ "content": [{ "type": "text", "text": "Body content 2" }]
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ "type": "tableCell",
160
+ "content": [
161
+ {
162
+ "type": "paragraph",
163
+ "content": [{ "type": "text", "text": "Body content 3" }]
164
+ }
165
+ ]
166
+ }
167
+ ]
168
+ }
169
+ ]
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "type": "table",
175
+ "attrs": { "isNumberColumnEnabled": true, "layout": "default" },
176
+ "content": [
177
+ {
178
+ "type": "tableRow",
179
+ "content": [
180
+ {
181
+ "type": "tableCell",
182
+ "attrs": {},
183
+ "content": [
184
+ {
185
+ "type": "paragraph",
186
+ "content": [{ "type": "text", "text": "Body content 1" }]
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "type": "tableCell",
192
+ "attrs": {},
193
+ "content": [
194
+ {
195
+ "type": "paragraph",
196
+ "content": [{ "type": "text", "text": "Body content 2" }]
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "type": "tableCell",
202
+ "attrs": {},
203
+ "content": [
204
+ {
205
+ "type": "paragraph",
206
+ "content": [{ "type": "text", "text": "Body content 3" }]
207
+ }
208
+ ]
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "type": "tableRow",
214
+ "content": [
215
+ {
216
+ "type": "tableCell",
217
+ "attrs": {},
218
+ "content": [
219
+ {
220
+ "type": "paragraph",
221
+ "content": [{ "type": "text", "text": "Body content 1" }]
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "type": "tableCell",
227
+ "attrs": {},
228
+ "content": [
229
+ {
230
+ "type": "paragraph",
231
+ "content": [{ "type": "text", "text": "Body content 2" }]
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "type": "tableCell",
237
+ "attrs": {},
238
+ "content": [
239
+ {
240
+ "type": "paragraph",
241
+ "content": [{ "type": "text", "text": "Body content 3" }]
242
+ }
243
+ ]
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "type": "tableRow",
249
+ "content": [
250
+ {
251
+ "type": "tableCell",
252
+ "attrs": {},
253
+ "content": [
254
+ {
255
+ "type": "paragraph",
256
+ "content": [{ "type": "text", "text": "Body content 1" }]
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "type": "tableCell",
262
+ "attrs": {},
263
+ "content": [
264
+ {
265
+ "type": "paragraph",
266
+ "content": [{ "type": "text", "text": "Body content 2" }]
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "type": "tableCell",
272
+ "attrs": {},
273
+ "content": [
274
+ {
275
+ "type": "paragraph",
276
+ "content": [{ "type": "text", "text": "Body content 3" }]
277
+ }
278
+ ]
279
+ }
280
+ ]
281
+ }
282
+ ]
283
+ }
284
+ ]
285
+ }
@@ -7,7 +7,7 @@ import { IntlProvider } from 'react-intl-next';
7
7
 
8
8
  import { SmartCardProvider } from '@atlaskit/link-provider';
9
9
  import {
10
- initialVisibleColumnKeys,
10
+ defaultInitialVisibleColumnKeys,
11
11
  mockDatasourceFetchRequests,
12
12
  } from '@atlaskit/link-test-helpers/datasource';
13
13
 
@@ -54,7 +54,7 @@ const ExampleBody = ({ isReadonly }: Props) => {
54
54
  });
55
55
 
56
56
  const [visibleColumnKeys, setVisibleColumnKeys] = useState<string[]>(
57
- initialVisibleColumnKeys,
57
+ defaultInitialVisibleColumnKeys,
58
58
  );
59
59
 
60
60
  useEffect(() => {
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useState } from 'react';
2
2
 
3
3
  import {
4
- initialVisibleColumnKeys,
4
+ defaultInitialVisibleColumnKeys,
5
5
  mockDatasourceFetchRequests,
6
6
  } from '@atlaskit/link-test-helpers/datasource';
7
7
 
@@ -14,7 +14,7 @@ export const ExampleJiraIssuesTableView = () => {
14
14
  const cloudId = 'some-cloud-id';
15
15
 
16
16
  const [visibleColumnKeys, setVisibleColumnKeys] = useState<string[]>(
17
- initialVisibleColumnKeys,
17
+ defaultInitialVisibleColumnKeys,
18
18
  );
19
19
 
20
20
  const parameters = useMemo<JiraIssueDatasourceParameters>(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.33.12",
3
+ "version": "0.34.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,10 +30,12 @@
30
30
  "analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
31
31
  },
32
32
  "dependencies": {
33
+ "@atlaskit/adf-schema": "^28.0.0",
33
34
  "@atlaskit/analytics-next": "^9.1.3",
34
35
  "@atlaskit/avatar": "^21.3.0",
35
36
  "@atlaskit/button": "^16.9.0",
36
37
  "@atlaskit/dropdown-menu": "^11.11.0",
38
+ "@atlaskit/editor-prosemirror": "^1.1.0",
37
39
  "@atlaskit/empty-state": "^7.5.0",
38
40
  "@atlaskit/form": "^8.11.0",
39
41
  "@atlaskit/heading": "^1.3.0",