@atlaskit/link-picker 6.12.1 → 6.12.2
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 +10 -0
- package/compass.yml +5 -8
- package/dist/cjs/common/ui/empty-state/index.js +4 -3
- package/dist/cjs/services/use-plugins/index.js +1 -1
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -2
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/utils.js +15 -26
- package/dist/cjs/ui/link-picker/index.js +3 -5
- package/dist/cjs/ui/link-picker/search-results/index.js +2 -2
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +2 -2
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -2
- package/dist/cjs/ui/link-picker/text-input/index.js +4 -3
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/common/ui/empty-state/index.js +2 -1
- package/dist/es2019/services/use-plugins/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -2
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/utils.js +15 -26
- package/dist/es2019/ui/link-picker/index.js +2 -4
- package/dist/es2019/ui/link-picker/search-results/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +2 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/common/ui/empty-state/index.js +2 -1
- package/dist/esm/services/use-plugins/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -2
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/utils.js +15 -26
- package/dist/esm/ui/link-picker/index.js +2 -4
- package/dist/esm/ui/link-picker/search-results/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +1 -1
- package/dist/esm/ui/link-picker/text-input/index.js +2 -1
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 6.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d56aad2b7c876`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d56aad2b7c876) -
|
|
8
|
+
Cleanup `feature_gate` `add-disable-manual-url-capability-technical`. The `disableManualUrlInsert`
|
|
9
|
+
prop is now always honoured: when it is `true`, the Insert button stays disabled unless a result
|
|
10
|
+
has been selected from the list, and the loading/error guards are always evaluated before that
|
|
11
|
+
check.
|
|
12
|
+
|
|
3
13
|
## 6.12.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -7,7 +7,7 @@ description:
|
|
|
7
7
|
and enhancing productivity.
|
|
8
8
|
configVersion: 1
|
|
9
9
|
typeId: CAPABILITY
|
|
10
|
-
ownerId: ari:cloud:identity::team/
|
|
10
|
+
ownerId: ari:cloud:identity::team/62c5672c-3754-4ebe-8a0f-4d1c87ded5b5 # Rovo Growth - Smartlinks (Rahul Lal)
|
|
11
11
|
fields:
|
|
12
12
|
tier: 4
|
|
13
13
|
lifecycle: Active
|
|
@@ -21,16 +21,13 @@ links:
|
|
|
21
21
|
url: https://atlassian.signalfx.com/#/dashboard/FdExWKXA4AY?groupId=Fcva05QA4AA&configId=FpAl8Y3AwAA&startTime=-31d&endTime=Now
|
|
22
22
|
- name: ''
|
|
23
23
|
type: PROJECT
|
|
24
|
-
url: https://hello.jira.atlassian.cloud/jira/software/projects/
|
|
25
|
-
- name: ''
|
|
26
|
-
type: CHAT_CHANNEL
|
|
27
|
-
url: https://atlassian.enterprise.slack.com/archives/C09FTFN0APN # #help-fe-linking-platform
|
|
24
|
+
url: https://hello.jira.atlassian.cloud/jira/software/projects/ASIMO/boards/10382
|
|
28
25
|
- name: ''
|
|
29
26
|
type: ON_CALL
|
|
30
|
-
url: https://
|
|
27
|
+
url: https://opsj.atlassian.net/jira/ops/teams/62c5672c-3754-4ebe-8a0f-4d1c87ded5b5/on-call
|
|
31
28
|
- name: Slack Channel
|
|
32
29
|
type: CHAT_CHANNEL
|
|
33
|
-
url: https://atlassian.enterprise.slack.com/archives/
|
|
30
|
+
url: https://atlassian.enterprise.slack.com/archives/C09LKUEEPGT # #rovo-growth
|
|
34
31
|
- name: Link Picker
|
|
35
32
|
type: REPOSITORY
|
|
36
33
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/linking-platform/link-picker
|
|
@@ -53,7 +50,7 @@ customFields:
|
|
|
53
50
|
- 6abcbe4f-1063-4cf7-8b32-58ebd01078da
|
|
54
51
|
- name: Engineering Manager
|
|
55
52
|
type: user
|
|
56
|
-
value: ari:cloud:identity::user/712020:
|
|
53
|
+
value: ari:cloud:identity::user/712020:297a7015-e760-4d56-aca3-30a62302ef0e # Rahul Lal
|
|
57
54
|
- name: Is renovate enabled?
|
|
58
55
|
type: boolean
|
|
59
56
|
value: false
|
|
@@ -12,7 +12,8 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
15
|
-
var
|
|
15
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
16
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
16
17
|
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); }
|
|
17
18
|
var styles = {
|
|
18
19
|
containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o",
|
|
@@ -24,7 +25,7 @@ var EmptyState = exports.EmptyState = function EmptyState(_ref) {
|
|
|
24
25
|
description = _ref.description,
|
|
25
26
|
action = _ref.action,
|
|
26
27
|
renderImage = _ref.renderImage;
|
|
27
|
-
return /*#__PURE__*/React.createElement(
|
|
28
|
+
return /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
28
29
|
xcss: (0, _css.cx)(styles.containerV2, styles.whiteSpaceNormal),
|
|
29
30
|
testId: testId,
|
|
30
31
|
direction: "column",
|
|
@@ -33,7 +34,7 @@ var EmptyState = exports.EmptyState = function EmptyState(_ref) {
|
|
|
33
34
|
}, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(_heading.default, {
|
|
34
35
|
size: "small",
|
|
35
36
|
as: "h2"
|
|
36
|
-
}, header), description && /*#__PURE__*/React.createElement(
|
|
37
|
+
}, header), description && /*#__PURE__*/React.createElement(_text.Text, {
|
|
37
38
|
as: "p",
|
|
38
39
|
color: "color.text"
|
|
39
40
|
}, description), action && action);
|
|
@@ -10,7 +10,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
13
|
-
var _convertToError = require("@atlaskit/frontend-utilities/
|
|
13
|
+
var _convertToError = require("@atlaskit/frontend-utilities/convertToError");
|
|
14
14
|
var _analytics = require("../../common/analytics");
|
|
15
15
|
var _constants = require("../../common/constants");
|
|
16
16
|
var _analytics2 = _interopRequireDefault(require("../../common/utils/analytics/analytics.codegen"));
|
|
@@ -8,7 +8,6 @@ exports.messages = exports.LinkPickerSubmitButton = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
10
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
11
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
11
|
var _utils = require("./utils");
|
|
13
12
|
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
14
13
|
saveButton: {
|
|
@@ -36,7 +35,7 @@ var LinkPickerSubmitButton = exports.LinkPickerSubmitButton = function LinkPicke
|
|
|
36
35
|
disableManualUrlInsert = _ref.disableManualUrlInsert;
|
|
37
36
|
var intl = (0, _reactIntl.useIntl)();
|
|
38
37
|
var insertButtonMsg = isEditing ? messages.saveButton : messages.insertButton;
|
|
39
|
-
var isSubmitDisabled = (0, _utils.checkSubmitDisabled)(isLoading, isSubmitting, error, url, queryState, items,
|
|
38
|
+
var isSubmitDisabled = (0, _utils.checkSubmitDisabled)(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert);
|
|
40
39
|
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
41
40
|
type: "submit",
|
|
42
41
|
appearance: "primary",
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.checkSubmitDisabled = void 0;
|
|
7
7
|
var _url = require("@atlaskit/linking-common/url");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var checkSubmitDisabled = exports.checkSubmitDisabled = function checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert) {
|
|
10
9
|
/*
|
|
11
10
|
* Enable insert when search term is a valid url and it can be normalized
|
|
@@ -17,24 +16,22 @@ var checkSubmitDisabled = exports.checkSubmitDisabled = function checkSubmitDisa
|
|
|
17
16
|
if (isSubmitting) {
|
|
18
17
|
return true;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
19
|
+
/*
|
|
20
|
+
* Check isLoading/error before disableManualUrlInsert so that stale items
|
|
21
|
+
* from a previous search do not accidentally enable the button during an
|
|
22
|
+
* in-flight request or an error state.
|
|
23
|
+
*/
|
|
24
|
+
if (isLoading || error) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
28
|
+
/*
|
|
29
|
+
* When disableManualUrlInsert is true, disable insert unless a result has been
|
|
30
|
+
* selected from the list (i.e. items are present and queryState is set).
|
|
31
|
+
* This prevents the user from manually typing a URL to bypass the restriction.
|
|
32
|
+
*/
|
|
33
|
+
if (disableManualUrlInsert) {
|
|
34
|
+
return !(queryState && items && items.length > 0);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
/*
|
|
@@ -55,13 +52,5 @@ var checkSubmitDisabled = exports.checkSubmitDisabled = function checkSubmitDisa
|
|
|
55
52
|
if (queryState && (items === null || items === void 0 ? void 0 : items.length) === 0) {
|
|
56
53
|
return true;
|
|
57
54
|
}
|
|
58
|
-
|
|
59
|
-
/*
|
|
60
|
-
* Disable insert button when plugin is loading or for any search error.
|
|
61
|
-
* When the gate is on, this is already handled earlier in the function.
|
|
62
|
-
*/
|
|
63
|
-
if (!(0, _fg.fg)('add-disable-manual-url-capability-technical') && (isLoading || error)) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
55
|
return false;
|
|
67
56
|
};
|
|
@@ -22,9 +22,8 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
|
|
|
22
22
|
var _client = _interopRequireDefault(require("@atlaskit/link-provider/client"));
|
|
23
23
|
var _url2 = require("@atlaskit/linking-common/url");
|
|
24
24
|
var _userAgent = require("@atlaskit/linking-common/user-agent");
|
|
25
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
26
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
27
|
-
var
|
|
26
|
+
var _link = _interopRequireDefault(require("@atlaskit/smart-card/link"));
|
|
28
27
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
29
28
|
var _analytics = require("../../common/analytics");
|
|
30
29
|
var _constants = require("../../common/constants");
|
|
@@ -120,8 +119,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
120
119
|
shouldRenderNoResultsImage = _ref.shouldRenderNoResultsImage,
|
|
121
120
|
alwaysShowTabs = _ref.alwaysShowTabs,
|
|
122
121
|
_ref$disableManualUrl = _ref.disableManualUrlInsert,
|
|
123
|
-
|
|
124
|
-
var disableManualUrlInsert = (0, _fg.fg)('add-disable-manual-url-capability-technical') && disableManualUrlInsertProp;
|
|
122
|
+
disableManualUrlInsert = _ref$disableManualUrl === void 0 ? false : _ref$disableManualUrl;
|
|
125
123
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
126
124
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
127
125
|
var linkInputRef = _react.default.useRef(null);
|
|
@@ -423,7 +421,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
423
421
|
var errorMessage = invalidUrl ? previewableLinksOnly && !hasPreview ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.formMessages.noEmbedAvailable, {
|
|
424
422
|
values: {
|
|
425
423
|
a: function a(chunk) {
|
|
426
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
424
|
+
return /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
427
425
|
target: "_blank",
|
|
428
426
|
href: "https://support.atlassian.com/platform-experiences/docs/smart-links-from-jira-and-other-products/"
|
|
429
427
|
}, chunk);
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var
|
|
15
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
16
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
17
|
var _tab = _interopRequireDefault(require("@atlaskit/tabs/tab"));
|
|
18
18
|
var _tabList = _interopRequireDefault(require("@atlaskit/tabs/tab-list"));
|
|
@@ -79,7 +79,7 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
|
|
|
79
79
|
testId: testIds.tabsLoadingIndicator,
|
|
80
80
|
interactionName: "link-picker-tabs-loading",
|
|
81
81
|
size: "medium"
|
|
82
|
-
})), !isLoadingPlugins && isActivePlugin && !!queryState && /*#__PURE__*/React.createElement(_react.Fragment, null, tabs.length > 0 && /*#__PURE__*/React.createElement(
|
|
82
|
+
})), !isLoadingPlugins && isActivePlugin && !!queryState && /*#__PURE__*/React.createElement(_react.Fragment, null, tabs.length > 0 && /*#__PURE__*/React.createElement(_box.Box, {
|
|
83
83
|
xcss: styles.tabsWrapper
|
|
84
84
|
}, /*#__PURE__*/React.createElement(_tabs.default, {
|
|
85
85
|
id: testIds.tabList,
|
|
@@ -16,7 +16,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
|
-
var
|
|
19
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
20
20
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
21
21
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
22
22
|
var _minHeightContainer = require("../../../../common/ui/min-height-container");
|
|
@@ -144,7 +144,7 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
144
144
|
}
|
|
145
145
|
var listItemNameMaxLines = activePlugin === null || activePlugin === void 0 || (_activePlugin$uiOptio = activePlugin.uiOptions) === null || _activePlugin$uiOptio === void 0 ? void 0 : _activePlugin$uiOptio.listItemNameMaxLines;
|
|
146
146
|
if (items && items.length > 0) {
|
|
147
|
-
itemsContent = /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement(
|
|
147
|
+
itemsContent = /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement(_box.Box, {
|
|
148
148
|
as: "h3" // Must remain <h3> for a11y title hierarchy as per https://hello.jira.atlassian.cloud/browse/NAVX-3332
|
|
149
149
|
// `.wiki-content h3` css styles in confluence override ADS/native styles here, so inline styles are needed.
|
|
150
150
|
// Should use css or xcss prop when that CSS is removed/fixed by confluence
|
|
@@ -13,7 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _reactIntl = require("react-intl");
|
|
16
|
-
var
|
|
16
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
17
17
|
var _transformTimeStamp = require("../../../transformTimeStamp");
|
|
18
18
|
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); }
|
|
19
19
|
var testIds = exports.testIds = {
|
|
@@ -126,7 +126,7 @@ var LinkSearchListItem = exports.LinkSearchListItem = /*#__PURE__*/(0, _react.fo
|
|
|
126
126
|
intl: intl
|
|
127
127
|
}), /*#__PURE__*/React.createElement("div", {
|
|
128
128
|
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _ae4v1h6o _1bsb1osq"])
|
|
129
|
-
}, /*#__PURE__*/React.createElement(
|
|
129
|
+
}, /*#__PURE__*/React.createElement(_text.Text, {
|
|
130
130
|
maxLines: nameMaxLines
|
|
131
131
|
}, /*#__PURE__*/React.createElement("span", {
|
|
132
132
|
"data-testid": "".concat(testIds.searchResultItem, "-title"),
|
|
@@ -18,7 +18,8 @@ var _field = _interopRequireDefault(require("@atlaskit/form/field"));
|
|
|
18
18
|
var _helperMessage = require("@atlaskit/form/helper-message");
|
|
19
19
|
var _messageWrapper = require("@atlaskit/form/message-wrapper");
|
|
20
20
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
21
|
-
var
|
|
21
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
22
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
22
23
|
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
23
24
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
24
25
|
var _conditionalSpotlightTargetWrapper = require("./conditional-spotlight-target-wrapper");
|
|
@@ -37,7 +38,7 @@ var styles = {
|
|
|
37
38
|
var baseFieldStyles = null;
|
|
38
39
|
var newFieldStyles = null;
|
|
39
40
|
var RequiredAsterisk = function RequiredAsterisk() {
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
41
42
|
as: "span",
|
|
42
43
|
"aria-hidden": "true",
|
|
43
44
|
xcss: styles.requiredIndicatorStyles
|
|
@@ -101,7 +102,7 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
|
|
|
101
102
|
}, [name, onClear]);
|
|
102
103
|
var clearText = restProps.value !== '' && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
103
104
|
content: clearLabel
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_pressable.Pressable, {
|
|
105
106
|
xcss: styles.clearTextButton,
|
|
106
107
|
onClick: handleClear,
|
|
107
108
|
testId: testIds.clearUrlButton
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
|
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
28
28
|
packageName: "@atlaskit/link-picker" || '',
|
|
29
|
-
packageVersion: "6.12.
|
|
29
|
+
packageVersion: "6.12.1" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -4,7 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import Heading from '@atlaskit/heading/heading';
|
|
7
|
-
import { Flex
|
|
7
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
8
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
8
9
|
const styles = {
|
|
9
10
|
containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o",
|
|
10
11
|
whiteSpaceNormal: "_o5724jg8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
|
-
import { convertToError } from '@atlaskit/frontend-utilities/
|
|
3
|
+
import { convertToError } from '@atlaskit/frontend-utilities/convertToError';
|
|
4
4
|
import { useLinkPickerAnalytics } from '../../common/analytics';
|
|
5
5
|
import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constants';
|
|
6
6
|
import createEventPayload from '../../common/utils/analytics/analytics.codegen';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/default/button';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { checkSubmitDisabled } from './utils';
|
|
6
5
|
export const messages = defineMessages({
|
|
7
6
|
saveButton: {
|
|
@@ -30,7 +29,7 @@ export const LinkPickerSubmitButton = ({
|
|
|
30
29
|
}) => {
|
|
31
30
|
const intl = useIntl();
|
|
32
31
|
const insertButtonMsg = isEditing ? messages.saveButton : messages.insertButton;
|
|
33
|
-
const isSubmitDisabled = checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items,
|
|
32
|
+
const isSubmitDisabled = checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert);
|
|
34
33
|
return /*#__PURE__*/React.createElement(Button, {
|
|
35
34
|
type: "submit",
|
|
36
35
|
appearance: "primary",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { normalizeUrl } from '@atlaskit/linking-common/url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
export const checkSubmitDisabled = (isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert) => {
|
|
4
3
|
/*
|
|
5
4
|
* Enable insert when search term is a valid url and it can be normalized
|
|
@@ -11,24 +10,22 @@ export const checkSubmitDisabled = (isLoading, isSubmitting, error, url, querySt
|
|
|
11
10
|
if (isSubmitting) {
|
|
12
11
|
return true;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
13
|
+
/*
|
|
14
|
+
* Check isLoading/error before disableManualUrlInsert so that stale items
|
|
15
|
+
* from a previous search do not accidentally enable the button during an
|
|
16
|
+
* in-flight request or an error state.
|
|
17
|
+
*/
|
|
18
|
+
if (isLoading || error) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
22
|
+
/*
|
|
23
|
+
* When disableManualUrlInsert is true, disable insert unless a result has been
|
|
24
|
+
* selected from the list (i.e. items are present and queryState is set).
|
|
25
|
+
* This prevents the user from manually typing a URL to bypass the restriction.
|
|
26
|
+
*/
|
|
27
|
+
if (disableManualUrlInsert) {
|
|
28
|
+
return !(queryState && items && items.length > 0);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
/*
|
|
@@ -49,13 +46,5 @@ export const checkSubmitDisabled = (isLoading, isSubmitting, error, url, querySt
|
|
|
49
46
|
if (queryState && (items === null || items === void 0 ? void 0 : items.length) === 0) {
|
|
50
47
|
return true;
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
/*
|
|
54
|
-
* Disable insert button when plugin is loading or for any search error.
|
|
55
|
-
* When the gate is on, this is already handled earlier in the function.
|
|
56
|
-
*/
|
|
57
|
-
if (!fg('add-disable-manual-url-capability-technical') && (isLoading || error)) {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
49
|
return false;
|
|
61
50
|
};
|
|
@@ -11,9 +11,8 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
|
|
|
11
11
|
import CardClient from '@atlaskit/link-provider/client';
|
|
12
12
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
|
13
13
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
|
-
import LinkUrl from '@atlaskit/smart-card/link
|
|
15
|
+
import LinkUrl from '@atlaskit/smart-card/link';
|
|
17
16
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
18
17
|
import { useLinkPickerAnalytics, withInputFieldTracking, withLinkPickerAnalyticsContext } from '../../common/analytics';
|
|
19
18
|
import { ANALYTICS_CHANNEL } from '../../common/constants';
|
|
@@ -106,10 +105,9 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
|
|
|
106
105
|
recentSearchListSize,
|
|
107
106
|
shouldRenderNoResultsImage,
|
|
108
107
|
alwaysShowTabs,
|
|
109
|
-
disableManualUrlInsert
|
|
108
|
+
disableManualUrlInsert = false
|
|
110
109
|
}) => {
|
|
111
110
|
var _customMessages$linkH;
|
|
112
|
-
const disableManualUrlInsert = fg('add-disable-manual-url-capability-technical') && disableManualUrlInsertProp;
|
|
113
111
|
const {
|
|
114
112
|
createAnalyticsEvent
|
|
115
113
|
} = useAnalyticsEvents();
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
7
7
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
8
8
|
import Tab from '@atlaskit/tabs/tab';
|
|
9
9
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
7
7
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
10
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
11
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
12
12
|
import { MinHeightContainer } from '../../../../common/ui/min-height-container';
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef, Fragment } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
8
8
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
9
9
|
export const testIds = {
|
|
10
10
|
searchResultItem: 'link-search-list-item',
|
|
@@ -9,7 +9,8 @@ import Field from '@atlaskit/form/field';
|
|
|
9
9
|
import { HelperMessage } from '@atlaskit/form/helper-message';
|
|
10
10
|
import { MessageWrapper } from '@atlaskit/form/message-wrapper';
|
|
11
11
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
12
|
-
import { Box
|
|
12
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
13
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
13
14
|
import Textfield from '@atlaskit/textfield/text-field';
|
|
14
15
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
16
|
import { ConditionalSpotlightTargetWrapper } from './conditional-spotlight-target-wrapper';
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -4,7 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import Heading from '@atlaskit/heading/heading';
|
|
7
|
-
import { Flex
|
|
7
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
8
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
8
9
|
var styles = {
|
|
9
10
|
containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o",
|
|
10
11
|
whiteSpaceNormal: "_o5724jg8"
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
|
-
import { convertToError } from '@atlaskit/frontend-utilities/
|
|
6
|
+
import { convertToError } from '@atlaskit/frontend-utilities/convertToError';
|
|
7
7
|
import { useLinkPickerAnalytics } from '../../common/analytics';
|
|
8
8
|
import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constants';
|
|
9
9
|
import createEventPayload from '../../common/utils/analytics/analytics.codegen';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/default/button';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { checkSubmitDisabled } from './utils';
|
|
6
5
|
export var messages = defineMessages({
|
|
7
6
|
saveButton: {
|
|
@@ -29,7 +28,7 @@ export var LinkPickerSubmitButton = function LinkPickerSubmitButton(_ref) {
|
|
|
29
28
|
disableManualUrlInsert = _ref.disableManualUrlInsert;
|
|
30
29
|
var intl = useIntl();
|
|
31
30
|
var insertButtonMsg = isEditing ? messages.saveButton : messages.insertButton;
|
|
32
|
-
var isSubmitDisabled = checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items,
|
|
31
|
+
var isSubmitDisabled = checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert);
|
|
33
32
|
return /*#__PURE__*/React.createElement(Button, {
|
|
34
33
|
type: "submit",
|
|
35
34
|
appearance: "primary",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { normalizeUrl } from '@atlaskit/linking-common/url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
export var checkSubmitDisabled = function checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert) {
|
|
4
3
|
/*
|
|
5
4
|
* Enable insert when search term is a valid url and it can be normalized
|
|
@@ -11,24 +10,22 @@ export var checkSubmitDisabled = function checkSubmitDisabled(isLoading, isSubmi
|
|
|
11
10
|
if (isSubmitting) {
|
|
12
11
|
return true;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
13
|
+
/*
|
|
14
|
+
* Check isLoading/error before disableManualUrlInsert so that stale items
|
|
15
|
+
* from a previous search do not accidentally enable the button during an
|
|
16
|
+
* in-flight request or an error state.
|
|
17
|
+
*/
|
|
18
|
+
if (isLoading || error) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
22
|
+
/*
|
|
23
|
+
* When disableManualUrlInsert is true, disable insert unless a result has been
|
|
24
|
+
* selected from the list (i.e. items are present and queryState is set).
|
|
25
|
+
* This prevents the user from manually typing a URL to bypass the restriction.
|
|
26
|
+
*/
|
|
27
|
+
if (disableManualUrlInsert) {
|
|
28
|
+
return !(queryState && items && items.length > 0);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
/*
|
|
@@ -49,13 +46,5 @@ export var checkSubmitDisabled = function checkSubmitDisabled(isLoading, isSubmi
|
|
|
49
46
|
if (queryState && (items === null || items === void 0 ? void 0 : items.length) === 0) {
|
|
50
47
|
return true;
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
/*
|
|
54
|
-
* Disable insert button when plugin is loading or for any search error.
|
|
55
|
-
* When the gate is on, this is already handled earlier in the function.
|
|
56
|
-
*/
|
|
57
|
-
if (!fg('add-disable-manual-url-capability-technical') && (isLoading || error)) {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
49
|
return false;
|
|
61
50
|
};
|
|
@@ -17,9 +17,8 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
|
|
|
17
17
|
import CardClient from '@atlaskit/link-provider/client';
|
|
18
18
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
|
19
19
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
20
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
22
|
-
import LinkUrl from '@atlaskit/smart-card/link
|
|
21
|
+
import LinkUrl from '@atlaskit/smart-card/link';
|
|
23
22
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
24
23
|
import { useLinkPickerAnalytics, withInputFieldTracking, withLinkPickerAnalyticsContext } from '../../common/analytics';
|
|
25
24
|
import { ANALYTICS_CHANNEL } from '../../common/constants';
|
|
@@ -112,8 +111,7 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
|
|
|
112
111
|
shouldRenderNoResultsImage = _ref.shouldRenderNoResultsImage,
|
|
113
112
|
alwaysShowTabs = _ref.alwaysShowTabs,
|
|
114
113
|
_ref$disableManualUrl = _ref.disableManualUrlInsert,
|
|
115
|
-
|
|
116
|
-
var disableManualUrlInsert = fg('add-disable-manual-url-capability-technical') && disableManualUrlInsertProp;
|
|
114
|
+
disableManualUrlInsert = _ref$disableManualUrl === void 0 ? false : _ref$disableManualUrl;
|
|
117
115
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
118
116
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
119
117
|
var linkInputRef = React.useRef(null);
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import { Fragment } from 'react';
|
|
9
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
10
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
11
|
import Tab from '@atlaskit/tabs/tab';
|
|
12
12
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
12
12
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
15
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
16
16
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
17
17
|
import { MinHeightContainer } from '../../../../common/ui/min-height-container';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef, Fragment } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
9
9
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
10
10
|
export var testIds = {
|
|
11
11
|
searchResultItem: 'link-search-list-item',
|
|
@@ -11,7 +11,8 @@ import Field from '@atlaskit/form/field';
|
|
|
11
11
|
import { HelperMessage } from '@atlaskit/form/helper-message';
|
|
12
12
|
import { MessageWrapper } from '@atlaskit/form/message-wrapper';
|
|
13
13
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
15
16
|
import Textfield from '@atlaskit/textfield/text-field';
|
|
16
17
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
18
|
import { ConditionalSpotlightTargetWrapper } from './conditional-spotlight-target-wrapper';
|
package/dist/esm/ui/main.js
CHANGED
package/dist/types/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { I18NMessages } from '@atlaskit/intl-messages-provider/types';
|
|
1
|
+
import type { I18NMessages } from '@atlaskit/intl-messages-provider/common/types';
|
|
2
2
|
export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.2",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"team": "
|
|
18
|
+
"team": "Rovo Growth - Smartlinks",
|
|
19
19
|
"i18n": true,
|
|
20
20
|
"website": {
|
|
21
21
|
"tags": [
|
|
@@ -37,9 +37,6 @@
|
|
|
37
37
|
"platform_navx_fix_nested_footer_landmark": {
|
|
38
38
|
"type": "boolean"
|
|
39
39
|
},
|
|
40
|
-
"add-disable-manual-url-capability-technical": {
|
|
41
|
-
"type": "boolean"
|
|
42
|
-
},
|
|
43
40
|
"navx-5378-link-picker-tab-roles": {
|
|
44
41
|
"type": "boolean"
|
|
45
42
|
}
|
|
@@ -69,7 +66,7 @@
|
|
|
69
66
|
"@atlaskit/spotlight": "^4.2.0",
|
|
70
67
|
"@atlaskit/tabs": "^21.3.0",
|
|
71
68
|
"@atlaskit/textfield": "^10.2.0",
|
|
72
|
-
"@atlaskit/tokens": "^20.
|
|
69
|
+
"@atlaskit/tokens": "^20.6.0",
|
|
73
70
|
"@atlaskit/tooltip": "^24.4.0",
|
|
74
71
|
"@atlaskit/ufo": "^2.0.0",
|
|
75
72
|
"@atlaskit/visually-hidden": "^4.4.0",
|