@atlaskit/link-picker 3.9.7 → 3.9.9

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,19 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 3.9.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d857acc60ec22`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d857acc60ec22) -
8
+ NAVX-1706 cleaning up navx-1368-link-picker-a11y-mandatory-states
9
+ - Updated dependencies
10
+
11
+ ## 3.9.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 3.9.7
4
18
 
5
19
  ### 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 && (0, _platformFeatureFlags.fg)('navx-1368-link-picker-a11y-mandatory-states') ? /*#__PURE__*/_react.default.createElement(RequiredAsterisk, null) : undefined
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
- }, (0, _platformFeatureFlags.fg)('navx-1368-link-picker-a11y-mandatory-states') ? {
126
- 'aria-describedby': "".concat(restProps['aria-describedby'], " ").concat(fieldProps.id, "-error")
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
  }));
@@ -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: "3.9.6" || '',
28
+ packageVersion: "3.9.8" || '',
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 && fg('navx-1368-link-picker-a11y-mandatory-states') ? /*#__PURE__*/React.createElement(RequiredAsterisk, null) : undefined
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
- }, fg('navx-1368-link-picker-a11y-mandatory-states') ? {
114
- 'aria-describedby': `${restProps['aria-describedby']} ${fieldProps.id}-error`
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
  }));
@@ -15,7 +15,7 @@ export const testIds = {
15
15
  };
16
16
  export const PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/link-picker" || '',
18
- packageVersion: "3.9.6" || '',
18
+ packageVersion: "3.9.8" || '',
19
19
  componentName: COMPONENT_NAME,
20
20
  source: COMPONENT_NAME
21
21
  };
@@ -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 && fg('navx-1368-link-picker-a11y-mandatory-states') ? /*#__PURE__*/React.createElement(RequiredAsterisk, null) : undefined
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
- }, fg('navx-1368-link-picker-a11y-mandatory-states') ? {
117
- 'aria-describedby': "".concat(restProps['aria-describedby'], " ").concat(fieldProps.id, "-error")
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
  }));
@@ -16,7 +16,7 @@ export var testIds = {
16
16
  };
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.9.6" || '',
19
+ packageVersion: "3.9.8" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
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": {
@@ -60,23 +57,23 @@
60
57
  "@atlaskit/atlassian-context": "^0.5.0",
61
58
  "@atlaskit/button": "^23.4.0",
62
59
  "@atlaskit/css": "^0.12.0",
63
- "@atlaskit/form": "^12.2.0",
60
+ "@atlaskit/form": "^12.4.0",
64
61
  "@atlaskit/frontend-utilities": "^3.1.0",
65
62
  "@atlaskit/heading": "^5.2.0",
66
- "@atlaskit/icon": "^28.0.0",
63
+ "@atlaskit/icon": "^28.1.0",
67
64
  "@atlaskit/intl-messages-provider": "^2.0.0",
68
65
  "@atlaskit/link": "^3.2.0",
69
66
  "@atlaskit/link-provider": "^3.7.0",
70
67
  "@atlaskit/linking-common": "^9.5.0",
71
68
  "@atlaskit/onboarding": "^14.3.0",
72
69
  "@atlaskit/platform-feature-flags": "^1.1.0",
73
- "@atlaskit/primitives": "^14.11.0",
74
- "@atlaskit/smart-card": "^40.13.0",
70
+ "@atlaskit/primitives": "^14.12.0",
71
+ "@atlaskit/smart-card": "^40.18.0",
75
72
  "@atlaskit/spinner": "^19.0.0",
76
73
  "@atlaskit/tabs": "^18.1.0",
77
74
  "@atlaskit/textfield": "^8.0.0",
78
- "@atlaskit/theme": "^19.0.0",
79
- "@atlaskit/tokens": "^6.0.0",
75
+ "@atlaskit/theme": "^20.0.0",
76
+ "@atlaskit/tokens": "^6.1.0",
80
77
  "@atlaskit/tooltip": "^20.4.0",
81
78
  "@atlaskit/ufo": "^0.4.0",
82
79
  "@atlaskit/visually-hidden": "^3.0.0",