@atlaskit/link-picker 3.9.8 → 3.9.10
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/ui/link-picker/text-input/index.js +4 -6
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +4 -6
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/link-picker/text-input/index.js +4 -6
- package/dist/esm/ui/main.js +1 -1
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 3.9.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`beaa6ee463aa8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/beaa6ee463aa8) -
|
|
8
|
+
Internal changes to how border radius is applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.9.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`d857acc60ec22`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d857acc60ec22) -
|
|
16
|
+
NAVX-1706 cleaning up navx-1368-link-picker-a11y-mandatory-states
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 3.9.8
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
15
15
|
var _useCallbackRef = require("use-callback-ref");
|
|
16
16
|
var _form = require("@atlaskit/form");
|
|
17
17
|
var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--select-clear"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
21
20
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -112,7 +111,7 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
|
|
|
112
111
|
}, /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
113
112
|
label: label,
|
|
114
113
|
name: name,
|
|
115
|
-
elementAfterLabel: isRequired
|
|
114
|
+
elementAfterLabel: isRequired ? /*#__PURE__*/_react.default.createElement(RequiredAsterisk, null) : undefined
|
|
116
115
|
}, function (_ref2) {
|
|
117
116
|
var fieldProps = _ref2.fieldProps;
|
|
118
117
|
return /*#__PURE__*/_react.default.createElement(_conditionalSpotlightTargetWrapper.ConditionalSpotlightTargetWrapper, {
|
|
@@ -121,10 +120,9 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
|
|
|
121
120
|
onKeyDown: handleKeydown,
|
|
122
121
|
ref: textfieldRef,
|
|
123
122
|
elemAfterInput: clearText,
|
|
124
|
-
isInvalid: !!error
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} : {})), error && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, {
|
|
123
|
+
isInvalid: !!error,
|
|
124
|
+
"aria-describedby": "".concat(restProps['aria-describedby'], " ").concat(fieldProps.id, "-error")
|
|
125
|
+
})), error && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, {
|
|
128
126
|
testId: testIds.urlError
|
|
129
127
|
}, error)));
|
|
130
128
|
}));
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -25,7 +25,7 @@ var testIds = exports.testIds = {
|
|
|
25
25
|
};
|
|
26
26
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
27
27
|
packageName: "@atlaskit/link-picker" || '',
|
|
28
|
-
packageVersion: "
|
|
28
|
+
packageVersion: "0.0.0-development" || '',
|
|
29
29
|
componentName: _constants.COMPONENT_NAME,
|
|
30
30
|
source: _constants.COMPONENT_NAME
|
|
31
31
|
};
|
|
@@ -6,7 +6,6 @@ import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
|
6
6
|
import { useMergeRefs } from 'use-callback-ref';
|
|
7
7
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
8
8
|
import Selectclear from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import Textfield from '@atlaskit/textfield';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -99,7 +98,7 @@ export const TextInput = ({
|
|
|
99
98
|
}, /*#__PURE__*/React.createElement(Field, {
|
|
100
99
|
label: label,
|
|
101
100
|
name: name,
|
|
102
|
-
elementAfterLabel: isRequired
|
|
101
|
+
elementAfterLabel: isRequired ? /*#__PURE__*/React.createElement(RequiredAsterisk, null) : undefined
|
|
103
102
|
}, ({
|
|
104
103
|
fieldProps
|
|
105
104
|
}) => {
|
|
@@ -109,10 +108,9 @@ export const TextInput = ({
|
|
|
109
108
|
onKeyDown: handleKeydown,
|
|
110
109
|
ref: textfieldRef,
|
|
111
110
|
elemAfterInput: clearText,
|
|
112
|
-
isInvalid: !!error
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} : {})), error && /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
111
|
+
isInvalid: !!error,
|
|
112
|
+
"aria-describedby": `${restProps['aria-describedby']} ${fieldProps.id}-error`
|
|
113
|
+
})), error && /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
116
114
|
testId: testIds.urlError
|
|
117
115
|
}, error)));
|
|
118
116
|
}));
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -8,7 +8,6 @@ import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
|
8
8
|
import { useMergeRefs } from 'use-callback-ref';
|
|
9
9
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
10
10
|
import Selectclear from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import Textfield from '@atlaskit/textfield';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -103,7 +102,7 @@ export var TextInput = function TextInput(_ref) {
|
|
|
103
102
|
}, /*#__PURE__*/React.createElement(Field, {
|
|
104
103
|
label: label,
|
|
105
104
|
name: name,
|
|
106
|
-
elementAfterLabel: isRequired
|
|
105
|
+
elementAfterLabel: isRequired ? /*#__PURE__*/React.createElement(RequiredAsterisk, null) : undefined
|
|
107
106
|
}, function (_ref2) {
|
|
108
107
|
var fieldProps = _ref2.fieldProps;
|
|
109
108
|
return /*#__PURE__*/React.createElement(ConditionalSpotlightTargetWrapper, {
|
|
@@ -112,10 +111,9 @@ export var TextInput = function TextInput(_ref) {
|
|
|
112
111
|
onKeyDown: handleKeydown,
|
|
113
112
|
ref: textfieldRef,
|
|
114
113
|
elemAfterInput: clearText,
|
|
115
|
-
isInvalid: !!error
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} : {})), error && /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
114
|
+
isInvalid: !!error,
|
|
115
|
+
"aria-describedby": "".concat(restProps['aria-describedby'], " ").concat(fieldProps.id, "-error")
|
|
116
|
+
})), error && /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
119
117
|
testId: testIds.urlError
|
|
120
118
|
}, error)));
|
|
121
119
|
}));
|
package/dist/esm/ui/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.10",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,9 +47,6 @@
|
|
|
47
47
|
},
|
|
48
48
|
"should-render-to-parent-should-be-true-linking-pla": {
|
|
49
49
|
"type": "boolean"
|
|
50
|
-
},
|
|
51
|
-
"navx-1368-link-picker-a11y-mandatory-states": {
|
|
52
|
-
"type": "boolean"
|
|
53
50
|
}
|
|
54
51
|
},
|
|
55
52
|
"scripts": {
|
|
@@ -59,8 +56,8 @@
|
|
|
59
56
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
60
57
|
"@atlaskit/atlassian-context": "^0.5.0",
|
|
61
58
|
"@atlaskit/button": "^23.4.0",
|
|
62
|
-
"@atlaskit/css": "^0.
|
|
63
|
-
"@atlaskit/form": "^12.
|
|
59
|
+
"@atlaskit/css": "^0.13.0",
|
|
60
|
+
"@atlaskit/form": "^12.4.0",
|
|
64
61
|
"@atlaskit/frontend-utilities": "^3.1.0",
|
|
65
62
|
"@atlaskit/heading": "^5.2.0",
|
|
66
63
|
"@atlaskit/icon": "^28.1.0",
|
|
@@ -68,15 +65,15 @@
|
|
|
68
65
|
"@atlaskit/link": "^3.2.0",
|
|
69
66
|
"@atlaskit/link-provider": "^3.7.0",
|
|
70
67
|
"@atlaskit/linking-common": "^9.5.0",
|
|
71
|
-
"@atlaskit/onboarding": "^14.
|
|
68
|
+
"@atlaskit/onboarding": "^14.4.0",
|
|
72
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
73
|
-
"@atlaskit/primitives": "^14.
|
|
74
|
-
"@atlaskit/smart-card": "^40.
|
|
70
|
+
"@atlaskit/primitives": "^14.13.0",
|
|
71
|
+
"@atlaskit/smart-card": "^40.19.0",
|
|
75
72
|
"@atlaskit/spinner": "^19.0.0",
|
|
76
73
|
"@atlaskit/tabs": "^18.1.0",
|
|
77
74
|
"@atlaskit/textfield": "^8.0.0",
|
|
78
75
|
"@atlaskit/theme": "^20.0.0",
|
|
79
|
-
"@atlaskit/tokens": "^6.
|
|
76
|
+
"@atlaskit/tokens": "^6.2.0",
|
|
80
77
|
"@atlaskit/tooltip": "^20.4.0",
|
|
81
78
|
"@atlaskit/ufo": "^0.4.0",
|
|
82
79
|
"@atlaskit/visually-hidden": "^3.0.0",
|