@atlaskit/link-datasource 3.6.4 → 3.6.6
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 +18 -0
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +4 -11
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +5 -12
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +5 -12
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/state/actions/index.d.ts +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#153020](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153020)
|
|
8
|
+
[`31f7a6900475e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/31f7a6900475e) -
|
|
9
|
+
[ux] Removes feature flag platform.linking-platform.datasource.show-clol-basic-filters and makes
|
|
10
|
+
basic filters for confluence smart link list view a permanent feature
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 3.6.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#152510](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152510)
|
|
18
|
+
[`dcf9edde7ac7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcf9edde7ac7b) -
|
|
19
|
+
bump adf-schema to 42.0.1
|
|
20
|
+
|
|
3
21
|
## 3.6.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _useDebounce = require("use-debounce");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _primitives = require("@atlaskit/primitives");
|
|
15
14
|
var _basicSearchInput = require("../../common/modal/basic-search-input");
|
|
16
15
|
var _constants = require("../../common/modal/popup-select/constants");
|
|
@@ -93,18 +92,12 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
93
92
|
currentCloudId.current = cloudId;
|
|
94
93
|
}
|
|
95
94
|
}, [cloudId, resetHydrationHook]);
|
|
96
|
-
var showBasicFilters = (0, _react.useMemo)(function () {
|
|
97
|
-
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.datasource.show-clol-basic-filters')) {
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
return false;
|
|
101
|
-
}, []);
|
|
102
95
|
(0, _react.useEffect)(function () {
|
|
103
96
|
var hasAccountIds = (initialContributorAccountIds === null || initialContributorAccountIds === void 0 ? void 0 : initialContributorAccountIds.length) > 0;
|
|
104
|
-
if (hasAccountIds && status === 'empty'
|
|
97
|
+
if (hasAccountIds && status === 'empty') {
|
|
105
98
|
hydrateUsersFromAccountIds(initialContributorAccountIds);
|
|
106
99
|
}
|
|
107
|
-
}, [hydrateUsersFromAccountIds, initialContributorAccountIds,
|
|
100
|
+
}, [hydrateUsersFromAccountIds, initialContributorAccountIds, status]);
|
|
108
101
|
(0, _react.useEffect)(function () {
|
|
109
102
|
if (status === 'resolved') {
|
|
110
103
|
setFilterSelections({
|
|
@@ -123,8 +116,8 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
123
116
|
onSearch: onSearch,
|
|
124
117
|
searchTerm: searchBarSearchString,
|
|
125
118
|
placeholder: _messages.searchMessages.searchLabel,
|
|
126
|
-
fullWidth:
|
|
127
|
-
}),
|
|
119
|
+
fullWidth: false
|
|
120
|
+
}), /*#__PURE__*/_react.default.createElement(_basicFilters.default, {
|
|
128
121
|
cloudId: cloudId,
|
|
129
122
|
selections: filterSelections,
|
|
130
123
|
onChange: handleBasicFilterSelectionChange,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React, { useCallback, useEffect,
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { useDebouncedCallback } from 'use-debounce';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
5
4
|
import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
6
5
|
import { FILTER_SELECTION_DEBOUNCE_MS } from '../../common/modal/popup-select/constants';
|
|
@@ -72,18 +71,12 @@ const ConfluenceSearchContainer = ({
|
|
|
72
71
|
currentCloudId.current = cloudId;
|
|
73
72
|
}
|
|
74
73
|
}, [cloudId, resetHydrationHook]);
|
|
75
|
-
const showBasicFilters = useMemo(() => {
|
|
76
|
-
if (fg('platform.linking-platform.datasource.show-clol-basic-filters')) {
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
return false;
|
|
80
|
-
}, []);
|
|
81
74
|
useEffect(() => {
|
|
82
75
|
const hasAccountIds = (initialContributorAccountIds === null || initialContributorAccountIds === void 0 ? void 0 : initialContributorAccountIds.length) > 0;
|
|
83
|
-
if (hasAccountIds && status === 'empty'
|
|
76
|
+
if (hasAccountIds && status === 'empty') {
|
|
84
77
|
hydrateUsersFromAccountIds(initialContributorAccountIds);
|
|
85
78
|
}
|
|
86
|
-
}, [hydrateUsersFromAccountIds, initialContributorAccountIds,
|
|
79
|
+
}, [hydrateUsersFromAccountIds, initialContributorAccountIds, status]);
|
|
87
80
|
useEffect(() => {
|
|
88
81
|
if (status === 'resolved') {
|
|
89
82
|
setFilterSelections({
|
|
@@ -102,8 +95,8 @@ const ConfluenceSearchContainer = ({
|
|
|
102
95
|
onSearch: onSearch,
|
|
103
96
|
searchTerm: searchBarSearchString,
|
|
104
97
|
placeholder: searchMessages.searchLabel,
|
|
105
|
-
fullWidth:
|
|
106
|
-
}),
|
|
98
|
+
fullWidth: false
|
|
99
|
+
}), /*#__PURE__*/React.createElement(BasicFilters, {
|
|
107
100
|
cloudId: cloudId,
|
|
108
101
|
selections: filterSelections,
|
|
109
102
|
onChange: handleBasicFilterSelectionChange,
|
|
@@ -2,9 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import React, { useCallback, useEffect,
|
|
5
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useDebouncedCallback } from 'use-debounce';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
9
8
|
import { BasicSearchInput } from '../../common/modal/basic-search-input';
|
|
10
9
|
import { FILTER_SELECTION_DEBOUNCE_MS } from '../../common/modal/popup-select/constants';
|
|
@@ -83,18 +82,12 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
83
82
|
currentCloudId.current = cloudId;
|
|
84
83
|
}
|
|
85
84
|
}, [cloudId, resetHydrationHook]);
|
|
86
|
-
var showBasicFilters = useMemo(function () {
|
|
87
|
-
if (fg('platform.linking-platform.datasource.show-clol-basic-filters')) {
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
return false;
|
|
91
|
-
}, []);
|
|
92
85
|
useEffect(function () {
|
|
93
86
|
var hasAccountIds = (initialContributorAccountIds === null || initialContributorAccountIds === void 0 ? void 0 : initialContributorAccountIds.length) > 0;
|
|
94
|
-
if (hasAccountIds && status === 'empty'
|
|
87
|
+
if (hasAccountIds && status === 'empty') {
|
|
95
88
|
hydrateUsersFromAccountIds(initialContributorAccountIds);
|
|
96
89
|
}
|
|
97
|
-
}, [hydrateUsersFromAccountIds, initialContributorAccountIds,
|
|
90
|
+
}, [hydrateUsersFromAccountIds, initialContributorAccountIds, status]);
|
|
98
91
|
useEffect(function () {
|
|
99
92
|
if (status === 'resolved') {
|
|
100
93
|
setFilterSelections({
|
|
@@ -113,8 +106,8 @@ var ConfluenceSearchContainer = function ConfluenceSearchContainer(_ref) {
|
|
|
113
106
|
onSearch: onSearch,
|
|
114
107
|
searchTerm: searchBarSearchString,
|
|
115
108
|
placeholder: searchMessages.searchLabel,
|
|
116
|
-
fullWidth:
|
|
117
|
-
}),
|
|
109
|
+
fullWidth: false
|
|
110
|
+
}), /*#__PURE__*/React.createElement(BasicFilters, {
|
|
118
111
|
cloudId: cloudId,
|
|
119
112
|
selections: filterSelections,
|
|
120
113
|
onChange: handleBasicFilterSelectionChange,
|
|
@@ -92,6 +92,6 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
|
|
|
92
92
|
}) => {
|
|
93
93
|
execute?: undefined;
|
|
94
94
|
} | {
|
|
95
|
-
execute: (value: string | number) => Promise<import("@atlaskit/linking-types").AtomicActionExecuteResponse
|
|
95
|
+
execute: (value: string | number) => Promise<import("@atlaskit/linking-types").AtomicActionExecuteResponse<unknown>>;
|
|
96
96
|
};
|
|
97
97
|
export {};
|
|
@@ -92,6 +92,6 @@ export declare const useExecuteAtomicAction: ({ ari, fieldKey, integrationKey, }
|
|
|
92
92
|
}) => {
|
|
93
93
|
execute?: undefined;
|
|
94
94
|
} | {
|
|
95
|
-
execute: (value: string | number) => Promise<import("@atlaskit/linking-types").AtomicActionExecuteResponse
|
|
95
|
+
execute: (value: string | number) => Promise<import("@atlaskit/linking-types").AtomicActionExecuteResponse<unknown>>;
|
|
96
96
|
};
|
|
97
97
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/adf-schema": "^
|
|
37
|
+
"@atlaskit/adf-schema": "^42.0.2",
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
39
|
"@atlaskit/atlassian-context": "^0.0.2",
|
|
40
40
|
"@atlaskit/avatar": "^21.15.0",
|
|
41
41
|
"@atlaskit/avatar-group": "^10.0.0",
|
|
42
42
|
"@atlaskit/badge": "^16.4.0",
|
|
43
43
|
"@atlaskit/button": "^20.2.0",
|
|
44
|
-
"@atlaskit/datetime-picker": "^15.
|
|
44
|
+
"@atlaskit/datetime-picker": "^15.4.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^12.20.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
47
47
|
"@atlaskit/empty-state": "^7.11.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/layering": "^0.6.0",
|
|
60
60
|
"@atlaskit/link-client-extension": "^2.4.0",
|
|
61
61
|
"@atlaskit/linking-common": "^6.0.0",
|
|
62
|
-
"@atlaskit/linking-types": "^9.
|
|
62
|
+
"@atlaskit/linking-types": "^9.2.0",
|
|
63
63
|
"@atlaskit/logo": "^14.3.0",
|
|
64
64
|
"@atlaskit/lozenge": "^11.11.0",
|
|
65
65
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
@@ -167,9 +167,6 @@
|
|
|
167
167
|
"platform.linking-platform.datasource-assets_update_refresh_button_dt3qk": {
|
|
168
168
|
"type": "boolean"
|
|
169
169
|
},
|
|
170
|
-
"platform.linking-platform.datasource.show-clol-basic-filters": {
|
|
171
|
-
"type": "boolean"
|
|
172
|
-
},
|
|
173
170
|
"platform.linking-platform.datasource.limit-total-results_8wqcd": {
|
|
174
171
|
"type": "boolean"
|
|
175
172
|
},
|