@atlaskit/link-datasource 4.19.4 → 4.19.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.19.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1e4c85cd1dbd7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e4c85cd1dbd7) -
8
+ NAVX-1053 cleaning up linking-platform-assests-schema-selector-refresh
9
+
3
10
  ## 4.19.4
4
11
 
5
12
  ### Patch Changes
@@ -22,7 +22,6 @@ var _reactIntlNext = require("react-intl-next");
22
22
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
23
23
  var _form = require("@atlaskit/form");
24
24
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
25
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
25
  var _select = require("@atlaskit/select");
27
26
  var _constants = require("@atlaskit/theme/constants");
28
27
  var _useObjectSchemas2 = require("../../../../hooks/useObjectSchemas");
@@ -176,7 +175,7 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
176
175
  _onChange = _ref6$fieldProps.onChange,
177
176
  onFocus = _ref6$fieldProps.onFocus,
178
177
  restFieldProps = (0, _objectWithoutProperties2.default)(_ref6$fieldProps, _excluded2);
179
- return (0, _platformFeatureFlags.fg)('linking-platform-assests-schema-selector-refresh') ? /*#__PURE__*/React.createElement(_select.PopupSelect, (0, _extends2.default)({
178
+ return /*#__PURE__*/React.createElement(_select.PopupSelect, (0, _extends2.default)({
180
179
  autoFocus: true,
181
180
  maxMenuWidth: 300,
182
181
  minMenuWidth: 300,
@@ -208,19 +207,6 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
208
207
  }
209
208
  }), ((_restFieldProps$value = restFieldProps.value) === null || _restFieldProps$value === void 0 ? void 0 : _restFieldProps$value.label) || formatMessage(_messages.objectSchemaSelectMessages.placeholder));
210
209
  }
211
- })) : /*#__PURE__*/React.createElement(_select.AsyncSelect, (0, _extends2.default)({
212
- autoFocus: true,
213
- classNamePrefix: classNamePrefix,
214
- isLoading: objectSchemasLoading,
215
- defaultOptions: mapObjectSchemasToOptions(initialObjectSchemas),
216
- isSearchable: true,
217
- loadOptions: debouncedLoadOptions,
218
- placeholder: formatMessage(_messages.objectSchemaSelectMessages.placeholder),
219
- onChange: function onChange(newOption) {
220
- return newOption && _onChange(newOption);
221
- }
222
- }, selectInAModalStyleFixProps, restFieldProps, {
223
- label: formatMessage(_messages.objectSchemaSelectMessages.placeholder)
224
210
  }));
225
211
  }));
226
212
  };
@@ -10,8 +10,7 @@ import { useIntl } from 'react-intl-next';
10
10
  import Button from '@atlaskit/button/new';
11
11
  import { Field } from '@atlaskit/form';
12
12
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
- import { AsyncSelect, PopupSelect } from '@atlaskit/select';
13
+ import { PopupSelect } from '@atlaskit/select';
15
14
  import { layers } from '@atlaskit/theme/constants';
16
15
  import { useObjectSchemas } from '../../../../hooks/useObjectSchemas';
17
16
  import { objectSchemaKey } from '../../../../types/assets/types';
@@ -108,7 +107,7 @@ export const AssetsObjectSchemaSelect = ({
108
107
  onFocus,
109
108
  ...restFieldProps
110
109
  }
111
- }) => fg('linking-platform-assests-schema-selector-refresh') ? /*#__PURE__*/React.createElement(PopupSelect, _extends({
110
+ }) => /*#__PURE__*/React.createElement(PopupSelect, _extends({
112
111
  autoFocus: true,
113
112
  maxMenuWidth: 300,
114
113
  minMenuWidth: 300,
@@ -137,16 +136,5 @@ export const AssetsObjectSchemaSelect = ({
137
136
  })
138
137
  }), ((_restFieldProps$value = restFieldProps.value) === null || _restFieldProps$value === void 0 ? void 0 : _restFieldProps$value.label) || formatMessage(objectSchemaSelectMessages.placeholder));
139
138
  }
140
- })) : /*#__PURE__*/React.createElement(AsyncSelect, _extends({
141
- autoFocus: true,
142
- classNamePrefix: classNamePrefix,
143
- isLoading: objectSchemasLoading,
144
- defaultOptions: mapObjectSchemasToOptions(initialObjectSchemas),
145
- isSearchable: true,
146
- loadOptions: debouncedLoadOptions,
147
- placeholder: formatMessage(objectSchemaSelectMessages.placeholder),
148
- onChange: newOption => newOption && onChange(newOption)
149
- }, selectInAModalStyleFixProps, restFieldProps, {
150
- label: formatMessage(objectSchemaSelectMessages.placeholder)
151
139
  }))));
152
140
  };
@@ -20,8 +20,7 @@ import { useIntl } from 'react-intl-next';
20
20
  import Button from '@atlaskit/button/new';
21
21
  import { Field } from '@atlaskit/form';
22
22
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
23
- import { fg } from '@atlaskit/platform-feature-flags';
24
- import { AsyncSelect, PopupSelect } from '@atlaskit/select';
23
+ import { PopupSelect } from '@atlaskit/select';
25
24
  import { layers } from '@atlaskit/theme/constants';
26
25
  import { useObjectSchemas } from '../../../../hooks/useObjectSchemas';
27
26
  import { objectSchemaKey } from '../../../../types/assets/types';
@@ -169,7 +168,7 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
169
168
  _onChange = _ref6$fieldProps.onChange,
170
169
  onFocus = _ref6$fieldProps.onFocus,
171
170
  restFieldProps = _objectWithoutProperties(_ref6$fieldProps, _excluded2);
172
- return fg('linking-platform-assests-schema-selector-refresh') ? /*#__PURE__*/React.createElement(PopupSelect, _extends({
171
+ return /*#__PURE__*/React.createElement(PopupSelect, _extends({
173
172
  autoFocus: true,
174
173
  maxMenuWidth: 300,
175
174
  minMenuWidth: 300,
@@ -201,19 +200,6 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
201
200
  }
202
201
  }), ((_restFieldProps$value = restFieldProps.value) === null || _restFieldProps$value === void 0 ? void 0 : _restFieldProps$value.label) || formatMessage(objectSchemaSelectMessages.placeholder));
203
202
  }
204
- })) : /*#__PURE__*/React.createElement(AsyncSelect, _extends({
205
- autoFocus: true,
206
- classNamePrefix: classNamePrefix,
207
- isLoading: objectSchemasLoading,
208
- defaultOptions: mapObjectSchemasToOptions(initialObjectSchemas),
209
- isSearchable: true,
210
- loadOptions: debouncedLoadOptions,
211
- placeholder: formatMessage(objectSchemaSelectMessages.placeholder),
212
- onChange: function onChange(newOption) {
213
- return newOption && _onChange(newOption);
214
- }
215
- }, selectInAModalStyleFixProps, restFieldProps, {
216
- label: formatMessage(objectSchemaSelectMessages.placeholder)
217
203
  }));
218
204
  }));
219
205
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.19.4",
3
+ "version": "4.19.5",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/flag": "^17.3.0",
52
52
  "@atlaskit/form": "^12.0.0",
53
53
  "@atlaskit/heading": "^5.2.0",
54
- "@atlaskit/icon": "^27.11.0",
54
+ "@atlaskit/icon": "^27.12.0",
55
55
  "@atlaskit/icon-object": "^7.2.0",
56
56
  "@atlaskit/image": "^3.0.0",
57
57
  "@atlaskit/inline-edit": "^15.3.0",
@@ -77,7 +77,7 @@
77
77
  "@atlaskit/primitives": "^14.11.0",
78
78
  "@atlaskit/react-select": "^3.4.0",
79
79
  "@atlaskit/select": "^21.2.0",
80
- "@atlaskit/smart-card": "^40.9.0",
80
+ "@atlaskit/smart-card": "^40.10.0",
81
81
  "@atlaskit/smart-user-picker": "^8.1.0",
82
82
  "@atlaskit/spinner": "^19.0.0",
83
83
  "@atlaskit/tag": "^14.1.0",
@@ -176,9 +176,6 @@
176
176
  "should-render-to-parent-should-be-true-linking-pla": {
177
177
  "type": "boolean"
178
178
  },
179
- "linking-platform-assests-schema-selector-refresh": {
180
- "type": "boolean"
181
- },
182
179
  "platform-linking-sllv-show-more-aria-label": {
183
180
  "type": "boolean"
184
181
  },