@atlaskit/link-datasource 4.20.3 → 4.20.5
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 +16 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/assets-modal/modal/index.js +2 -2
- package/dist/cjs/ui/common/modal/insert-button/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/showMoreButton.js +4 -7
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/common/modal/insert-button/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/showMoreButton.js +4 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/common/modal/insert-button/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/showMoreButton.js +4 -7
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +2 -5
- /package/dist/cjs/common/utils/{adf.js → schema-utils.js} +0 -0
- /package/dist/es2019/common/utils/{adf.js → schema-utils.js} +0 -0
- /package/dist/esm/common/utils/{adf.js → schema-utils.js} +0 -0
- /package/dist/types/common/utils/{adf.d.ts → schema-utils.d.ts} +0 -0
- /package/dist/types-ts4.5/common/utils/{adf.d.ts → schema-utils.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.20.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e1a8efa3d658f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1a8efa3d658f) -
|
|
8
|
+
Rename adf.ts to schema-utils.ts
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 4.20.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`bc084f2375e00`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc084f2375e00) -
|
|
16
|
+
NAVX-1378 cleaning up platform-linking-sllv-show-more-aria-label
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.20.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -62,13 +62,13 @@ Object.defineProperty(exports, "LazyLoadedDatasourceRenderFailedAnalyticsWrapper
|
|
|
62
62
|
Object.defineProperty(exports, "buildDatasourceAdf", {
|
|
63
63
|
enumerable: true,
|
|
64
64
|
get: function get() {
|
|
65
|
-
return
|
|
65
|
+
return _schemaUtils.buildDatasourceAdf;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
var _confluenceSearchModal = _interopRequireWildcard(require("./ui/confluence-search-modal"));
|
|
69
69
|
var _jiraIssuesModal = _interopRequireWildcard(require("./ui/jira-issues-modal"));
|
|
70
70
|
var _assetsModal = _interopRequireWildcard(require("./ui/assets-modal"));
|
|
71
71
|
var _datasourceTableView = _interopRequireDefault(require("./ui/datasource-table-view"));
|
|
72
|
-
var
|
|
72
|
+
var _schemaUtils = require("./common/utils/schema-utils");
|
|
73
73
|
var _renderFailed = require("./analytics/wrappers/render-failed");
|
|
74
74
|
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); }
|
|
@@ -25,8 +25,8 @@ var _types = require("../../../analytics/types");
|
|
|
25
25
|
var _ufoExperiences = require("../../../analytics/ufoExperiences");
|
|
26
26
|
var _useColumnPickerRenderedFailedUfoExperience = require("../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience");
|
|
27
27
|
var _useDataRenderedUfoExperience = require("../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience");
|
|
28
|
-
var _adf = require("../../../common/utils/adf");
|
|
29
28
|
var _fetchMessagesForLocale = require("../../../common/utils/locale/fetch-messages-for-locale");
|
|
29
|
+
var _schemaUtils = require("../../../common/utils/schema-utils");
|
|
30
30
|
var _datasourceExperienceId = require("../../../contexts/datasource-experience-id");
|
|
31
31
|
var _userInteractions = require("../../../contexts/user-interactions");
|
|
32
32
|
var _useAssetsClient2 = require("../../../hooks/useAssetsClient");
|
|
@@ -254,7 +254,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
254
254
|
}
|
|
255
255
|
}, consumerEvent);
|
|
256
256
|
} else {
|
|
257
|
-
onInsert((0,
|
|
257
|
+
onInsert((0, _schemaUtils.buildDatasourceAdf)({
|
|
258
258
|
id: datasourceId,
|
|
259
259
|
parameters: {
|
|
260
260
|
workspaceId: workspaceId,
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
12
12
|
var _analytics = require("../../../../analytics");
|
|
13
13
|
var _types = require("../../../../analytics/types");
|
|
14
|
-
var
|
|
14
|
+
var _schemaUtils = require("../../../../common/utils/schema-utils");
|
|
15
15
|
var _userInteractions = require("../../../../contexts/user-interactions");
|
|
16
16
|
var _datasourceContext = require("../datasource-context");
|
|
17
17
|
var _useViewModeContext2 = require("../mode-switcher/useViewModeContext");
|
|
@@ -65,7 +65,7 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
|
|
|
65
65
|
}
|
|
66
66
|
}, consumerEvent);
|
|
67
67
|
} else {
|
|
68
|
-
onInsert((0,
|
|
68
|
+
onInsert((0, _schemaUtils.buildDatasourceAdf)({
|
|
69
69
|
id: datasourceId,
|
|
70
70
|
parameters: parameters,
|
|
71
71
|
views: [{
|
|
@@ -6,11 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _reactIntlNext = require("react-intl-next");
|
|
12
11
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
12
|
var _analytics = require("../../../../../analytics");
|
|
15
13
|
var _messages = require("./messages");
|
|
16
14
|
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); }
|
|
@@ -30,13 +28,12 @@ var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
|
30
28
|
});
|
|
31
29
|
onShowMore();
|
|
32
30
|
}, [filterName, fireEvent, onShowMore]);
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_new.default,
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
34
32
|
onClick: handleShowMore,
|
|
35
33
|
appearance: "subtle",
|
|
36
34
|
testId: "".concat(filterName, "--show-more-button"),
|
|
37
|
-
spacing: "compact"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} : {}), formatMessage(_messages.asyncPopupSelectMessages.showMoreMessage));
|
|
35
|
+
spacing: "compact",
|
|
36
|
+
"aria-label": filterLabel ? "Show more ".concat(filterLabel) : 'Show more'
|
|
37
|
+
}, formatMessage(_messages.asyncPopupSelectMessages.showMoreMessage));
|
|
41
38
|
};
|
|
42
39
|
var _default = exports.default = ShowMoreButton;
|
package/dist/es2019/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
|
3
3
|
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
4
4
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
5
5
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
6
|
-
export { buildDatasourceAdf } from './common/utils/
|
|
6
|
+
export { buildDatasourceAdf } from './common/utils/schema-utils';
|
|
7
7
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
8
8
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
9
9
|
export { CONFLUENCE_SEARCH_DATASOURCE_ID } from './ui/confluence-search-modal';
|
|
@@ -15,8 +15,8 @@ import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../
|
|
|
15
15
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
16
16
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
17
17
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
18
|
-
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
19
18
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
19
|
+
import { buildDatasourceAdf } from '../../../common/utils/schema-utils';
|
|
20
20
|
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
21
21
|
import { UserInteractionsProvider, useUserInteractions } from '../../../contexts/user-interactions';
|
|
22
22
|
import { useAssetsClient } from '../../../hooks/useAssetsClient';
|
|
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import Button from '@atlaskit/button/standard-button';
|
|
3
3
|
import { EVENT_CHANNEL } from '../../../../analytics';
|
|
4
4
|
import { DatasourceDisplay, DatasourceSearchMethod } from '../../../../analytics/types';
|
|
5
|
-
import { buildDatasourceAdf } from '../../../../common/utils/
|
|
5
|
+
import { buildDatasourceAdf } from '../../../../common/utils/schema-utils';
|
|
6
6
|
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
7
7
|
import { useDatasourceContext } from '../datasource-context';
|
|
8
8
|
import { useViewModeContext } from '../mode-switcher/useViewModeContext';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React, { useCallback } from 'react';
|
|
3
2
|
import { useIntl } from 'react-intl-next';
|
|
4
3
|
import Button from '@atlaskit/button/new';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
4
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
7
5
|
import { asyncPopupSelectMessages } from './messages';
|
|
8
6
|
const ShowMoreButton = ({
|
|
@@ -23,13 +21,12 @@ const ShowMoreButton = ({
|
|
|
23
21
|
});
|
|
24
22
|
onShowMore();
|
|
25
23
|
}, [filterName, fireEvent, onShowMore]);
|
|
26
|
-
return /*#__PURE__*/React.createElement(Button,
|
|
24
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
27
25
|
onClick: handleShowMore,
|
|
28
26
|
appearance: "subtle",
|
|
29
27
|
testId: `${filterName}--show-more-button`,
|
|
30
|
-
spacing: "compact"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} : {}), formatMessage(asyncPopupSelectMessages.showMoreMessage));
|
|
28
|
+
spacing: "compact",
|
|
29
|
+
"aria-label": filterLabel ? `Show more ${filterLabel}` : 'Show more'
|
|
30
|
+
}, formatMessage(asyncPopupSelectMessages.showMoreMessage));
|
|
34
31
|
};
|
|
35
32
|
export default ShowMoreButton;
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
|
3
3
|
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
4
4
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
5
5
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
6
|
-
export { buildDatasourceAdf } from './common/utils/
|
|
6
|
+
export { buildDatasourceAdf } from './common/utils/schema-utils';
|
|
7
7
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
8
8
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
9
9
|
export { CONFLUENCE_SEARCH_DATASOURCE_ID } from './ui/confluence-search-modal';
|
|
@@ -19,8 +19,8 @@ import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../
|
|
|
19
19
|
import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
20
20
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
21
21
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
22
|
-
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
23
22
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
23
|
+
import { buildDatasourceAdf } from '../../../common/utils/schema-utils';
|
|
24
24
|
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
25
25
|
import { UserInteractionsProvider, useUserInteractions } from '../../../contexts/user-interactions';
|
|
26
26
|
import { useAssetsClient } from '../../../hooks/useAssetsClient';
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
import { EVENT_CHANNEL } from '../../../../analytics';
|
|
7
7
|
import { DatasourceDisplay, DatasourceSearchMethod } from '../../../../analytics/types';
|
|
8
|
-
import { buildDatasourceAdf } from '../../../../common/utils/
|
|
8
|
+
import { buildDatasourceAdf } from '../../../../common/utils/schema-utils';
|
|
9
9
|
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
10
10
|
import { useDatasourceContext } from '../datasource-context';
|
|
11
11
|
import { useViewModeContext } from '../mode-switcher/useViewModeContext';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React, { useCallback } from 'react';
|
|
3
2
|
import { useIntl } from 'react-intl-next';
|
|
4
3
|
import Button from '@atlaskit/button/new';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
4
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
7
5
|
import { asyncPopupSelectMessages } from './messages';
|
|
8
6
|
var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
@@ -21,13 +19,12 @@ var ShowMoreButton = function ShowMoreButton(_ref) {
|
|
|
21
19
|
});
|
|
22
20
|
onShowMore();
|
|
23
21
|
}, [filterName, fireEvent, onShowMore]);
|
|
24
|
-
return /*#__PURE__*/React.createElement(Button,
|
|
22
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
25
23
|
onClick: handleShowMore,
|
|
26
24
|
appearance: "subtle",
|
|
27
25
|
testId: "".concat(filterName, "--show-more-button"),
|
|
28
|
-
spacing: "compact"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} : {}), formatMessage(asyncPopupSelectMessages.showMoreMessage));
|
|
26
|
+
spacing: "compact",
|
|
27
|
+
"aria-label": filterLabel ? "Show more ".concat(filterLabel) : 'Show more'
|
|
28
|
+
}, formatMessage(asyncPopupSelectMessages.showMoreMessage));
|
|
32
29
|
};
|
|
33
30
|
export default ShowMoreButton;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
|
3
3
|
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
4
4
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
5
5
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
6
|
-
export { buildDatasourceAdf } from './common/utils/
|
|
6
|
+
export { buildDatasourceAdf } from './common/utils/schema-utils';
|
|
7
7
|
export type { JiraIssuesDatasourceAdf, JiraIssueDatasourceParameters, } from './ui/jira-issues-modal/types';
|
|
8
8
|
export type { AssetsDatasourceAdf, AssetsDatasourceParameters } from './ui/assets-modal/types';
|
|
9
9
|
export type { ConfluenceSearchDatasourceAdf, ConfluenceSearchDatasourceParameters, } from './ui/confluence-search-modal/types';
|
|
@@ -3,7 +3,7 @@ export { default as JiraIssuesConfigModal } from './ui/jira-issues-modal';
|
|
|
3
3
|
export { default as AssetsConfigModal } from './ui/assets-modal';
|
|
4
4
|
export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
5
5
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
6
|
-
export { buildDatasourceAdf } from './common/utils/
|
|
6
|
+
export { buildDatasourceAdf } from './common/utils/schema-utils';
|
|
7
7
|
export type { JiraIssuesDatasourceAdf, JiraIssueDatasourceParameters, } from './ui/jira-issues-modal/types';
|
|
8
8
|
export type { AssetsDatasourceAdf, AssetsDatasourceParameters } from './ui/assets-modal/types';
|
|
9
9
|
export type { ConfluenceSearchDatasourceAdf, ConfluenceSearchDatasourceParameters, } from './ui/confluence-search-modal/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.5",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/primitives": "^14.12.0",
|
|
78
78
|
"@atlaskit/react-select": "^3.5.0",
|
|
79
79
|
"@atlaskit/select": "^21.2.0",
|
|
80
|
-
"@atlaskit/smart-card": "^40.
|
|
80
|
+
"@atlaskit/smart-card": "^40.15.0",
|
|
81
81
|
"@atlaskit/smart-user-picker": "^8.2.0",
|
|
82
82
|
"@atlaskit/spinner": "^19.0.0",
|
|
83
83
|
"@atlaskit/tag": "^14.1.0",
|
|
@@ -178,9 +178,6 @@
|
|
|
178
178
|
"should-render-to-parent-should-be-true-linking-pla": {
|
|
179
179
|
"type": "boolean"
|
|
180
180
|
},
|
|
181
|
-
"platform-linking-sllv-show-more-aria-label": {
|
|
182
|
-
"type": "boolean"
|
|
183
|
-
},
|
|
184
181
|
"navx-1180-sllv-return-focus-on-escape": {
|
|
185
182
|
"type": "boolean"
|
|
186
183
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|