@atlaskit/datetime-picker 13.9.0 → 13.10.1

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/datetime-picker
2
2
 
3
+ ## 13.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#128236](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128236)
14
+ [`84388abdd587a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/84388abdd587a) -
15
+ The platform.design-system-team.date-picker-input-a11y-fix_cbbxs feature flag has been removed.
16
+
3
17
  ## 13.9.0
4
18
 
5
19
  ### Minor Changes
@@ -22,7 +22,6 @@ var _pick = _interopRequireDefault(require("lodash/pick"));
22
22
  var _analyticsNext = require("@atlaskit/analytics-next");
23
23
  var _calendar = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
24
24
  var _locale = require("@atlaskit/locale");
25
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
25
  var _select = _interopRequireWildcard(require("@atlaskit/select"));
27
26
  var _internal = require("../internal");
28
27
  var _menu = require("../internal/menu");
@@ -39,7 +38,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
39
38
  * @jsx jsx
40
39
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
41
40
  var packageName = "@atlaskit/datetime-picker";
42
- var packageVersion = "13.9.0";
41
+ var packageVersion = "13.10.1";
43
42
  var datePickerDefaultProps = {
44
43
  appearance: 'default',
45
44
  autoFocus: false,
@@ -237,7 +236,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
237
236
  case 'backspace':
238
237
  case 'delete':
239
238
  {
240
- var inputCount = (0, _platformFeatureFlags.fg)('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') ? 1 : 0;
239
+ var inputCount = 0;
241
240
  if (value && event.target instanceof HTMLInputElement && event.target.value.length <= inputCount) {
242
241
  // If being cleared from keyboard, don't change behaviour
243
242
  _this.setState({
@@ -414,11 +413,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
414
413
  isOpen = _this$getSafeState6.isOpen,
415
414
  selectInputValue = _this$getSafeState6.selectInputValue;
416
415
  var actualSelectInputValue;
417
- if ((0, _platformFeatureFlags.fg)('platform.design-system-team.date-picker-input-a11y-fix_cbbxs')) {
418
- actualSelectInputValue = selectInputValue || (value ? this.formatDate(value) : undefined);
419
- } else {
420
- actualSelectInputValue = selectInputValue;
421
- }
416
+ actualSelectInputValue = selectInputValue;
422
417
  var menuIsOpen = isOpen && !isDisabled;
423
418
  var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
424
419
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : icon;
@@ -34,7 +34,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
34
34
  * @jsx jsx
35
35
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
36
  var packageName = "@atlaskit/datetime-picker";
37
- var packageVersion = "13.9.0";
37
+ var packageVersion = "13.10.1";
38
38
  // Make DatePicker 50% the width of DateTimePicker
39
39
  // If rendering an icon container, shrink the TimePicker
40
40
  var datePickerContainerStyles = (0, _react2.css)({
@@ -36,7 +36,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
36
36
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line no-restricted-imports
37
37
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "13.9.0";
39
+ var packageVersion = "13.10.1";
40
40
  var menuStyles = {
41
41
  /* Need to remove default absolute positioning as that causes issues with position fixed */
42
42
  position: 'static',
@@ -15,7 +15,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
17
17
  var _icon = require("@atlaskit/icon");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _popper = require("@atlaskit/popper");
20
19
  var _constants = require("@atlaskit/theme/constants");
21
20
  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; }
@@ -60,16 +59,14 @@ var FixedLayer = exports.default = /*#__PURE__*/function (_React$Component) {
60
59
  if (!containerRef) {
61
60
  return /*#__PURE__*/_react.default.createElement("div", null);
62
61
  }
63
- var divStyles = _objectSpread({
62
+ var divStyles = {
64
63
  background: 'transparent',
65
64
  position: 'absolute',
66
65
  top: 0,
67
66
  height: containerRef.getBoundingClientRect().height,
68
67
  // Don't block the clear button
69
68
  width: containerRef.getBoundingClientRect().width - parseInt(_icon.sizes.small.slice(0, -2)) - (0, _constants.gridSize)()
70
- }, (0, _platformFeatureFlags.fg)('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') && {
71
- pointerEvents: 'none'
72
- });
69
+ };
73
70
  return (
74
71
  /*#__PURE__*/
75
72
  /* Need to wrap layer in a fixed position div so that it will render its content as fixed
@@ -13,7 +13,6 @@ import pick from 'lodash/pick';
13
13
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
14
14
  import CalendarIcon from '@atlaskit/icon/glyph/calendar';
15
15
  import { createLocalizationProvider } from '@atlaskit/locale';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import Select, { mergeStyles } from '@atlaskit/select';
18
17
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
19
18
  import { Menu } from '../internal/menu';
@@ -21,7 +20,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
21
20
  import { convertTokens } from '../internal/parse-tokens';
22
21
  import { makeSingleValue } from '../internal/single-value';
23
22
  const packageName = "@atlaskit/datetime-picker";
24
- const packageVersion = "13.9.0";
23
+ const packageVersion = "13.10.1";
25
24
  const datePickerDefaultProps = {
26
25
  appearance: 'default',
27
26
  autoFocus: false,
@@ -217,7 +216,7 @@ class DatePickerComponent extends Component {
217
216
  case 'backspace':
218
217
  case 'delete':
219
218
  {
220
- const inputCount = fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') ? 1 : 0;
219
+ const inputCount = 0;
221
220
  if (value && event.target instanceof HTMLInputElement && event.target.value.length <= inputCount) {
222
221
  // If being cleared from keyboard, don't change behaviour
223
222
  this.setState({
@@ -413,11 +412,7 @@ class DatePickerComponent extends Component {
413
412
  selectInputValue
414
413
  } = this.getSafeState();
415
414
  let actualSelectInputValue;
416
- if (fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs')) {
417
- actualSelectInputValue = selectInputValue || (value ? this.formatDate(value) : undefined);
418
- } else {
419
- actualSelectInputValue = selectInputValue;
420
- }
415
+ actualSelectInputValue = selectInputValue;
421
416
  const menuIsOpen = isOpen && !isDisabled;
422
417
  const showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
423
418
  const dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : icon;
@@ -20,7 +20,7 @@ import { convertTokens } from '../internal/parse-tokens';
20
20
  import DatePicker from './date-picker';
21
21
  import TimePicker from './time-picker';
22
22
  const packageName = "@atlaskit/datetime-picker";
23
- const packageVersion = "13.9.0";
23
+ const packageVersion = "13.10.1";
24
24
  // Make DatePicker 50% the width of DateTimePicker
25
25
  // If rendering an icon container, shrink the TimePicker
26
26
  const datePickerContainerStyles = css({
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
16
16
  import { convertTokens } from '../internal/parse-tokens';
17
17
  import { makeSingleValue } from '../internal/single-value';
18
18
  const packageName = "@atlaskit/datetime-picker";
19
- const packageVersion = "13.9.0";
19
+ const packageVersion = "13.10.1";
20
20
  const menuStyles = {
21
21
  /* Need to remove default absolute positioning as that causes issues with position fixed */
22
22
  position: 'static',
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
4
  import { sizes } from '@atlaskit/icon';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Manager, Popper, Reference } from '@atlaskit/popper';
7
6
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
8
7
  import { gridSize, layers } from '@atlaskit/theme/constants';
@@ -38,10 +37,7 @@ export default class FixedLayer extends React.Component {
38
37
  top: 0,
39
38
  height: containerRef.getBoundingClientRect().height,
40
39
  // Don't block the clear button
41
- width: containerRef.getBoundingClientRect().width - parseInt(sizes.small.slice(0, -2)) - gridSize(),
42
- ...(fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') && {
43
- pointerEvents: 'none'
44
- })
40
+ width: containerRef.getBoundingClientRect().width - parseInt(sizes.small.slice(0, -2)) - gridSize()
45
41
  };
46
42
  return (
47
43
  /*#__PURE__*/
@@ -24,7 +24,6 @@ import pick from 'lodash/pick';
24
24
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
25
25
  import CalendarIcon from '@atlaskit/icon/glyph/calendar';
26
26
  import { createLocalizationProvider } from '@atlaskit/locale';
27
- import { fg } from '@atlaskit/platform-feature-flags';
28
27
  import Select, { mergeStyles } from '@atlaskit/select';
29
28
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
30
29
  import { Menu } from '../internal/menu';
@@ -32,7 +31,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
32
31
  import { convertTokens } from '../internal/parse-tokens';
33
32
  import { makeSingleValue } from '../internal/single-value';
34
33
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "13.9.0";
34
+ var packageVersion = "13.10.1";
36
35
  var datePickerDefaultProps = {
37
36
  appearance: 'default',
38
37
  autoFocus: false,
@@ -230,7 +229,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
230
229
  case 'backspace':
231
230
  case 'delete':
232
231
  {
233
- var inputCount = fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') ? 1 : 0;
232
+ var inputCount = 0;
234
233
  if (value && event.target instanceof HTMLInputElement && event.target.value.length <= inputCount) {
235
234
  // If being cleared from keyboard, don't change behaviour
236
235
  _this.setState({
@@ -407,11 +406,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
407
406
  isOpen = _this$getSafeState6.isOpen,
408
407
  selectInputValue = _this$getSafeState6.selectInputValue;
409
408
  var actualSelectInputValue;
410
- if (fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs')) {
411
- actualSelectInputValue = selectInputValue || (value ? this.formatDate(value) : undefined);
412
- } else {
413
- actualSelectInputValue = selectInputValue;
414
- }
409
+ actualSelectInputValue = selectInputValue;
415
410
  var menuIsOpen = isOpen && !isDisabled;
416
411
  var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
417
412
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : icon;
@@ -30,7 +30,7 @@ import { convertTokens } from '../internal/parse-tokens';
30
30
  import DatePicker from './date-picker';
31
31
  import TimePicker from './time-picker';
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "13.9.0";
33
+ var packageVersion = "13.10.1";
34
34
  // Make DatePicker 50% the width of DateTimePicker
35
35
  // If rendering an icon container, shrink the TimePicker
36
36
  var datePickerContainerStyles = css({
@@ -28,7 +28,7 @@ import parseTime from '../internal/parse-time';
28
28
  import { convertTokens } from '../internal/parse-tokens';
29
29
  import { makeSingleValue } from '../internal/single-value';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "13.9.0";
31
+ var packageVersion = "13.10.1";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  import React from 'react';
13
13
  import noop from '@atlaskit/ds-lib/noop';
14
14
  import { sizes } from '@atlaskit/icon';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import { Manager, Popper, Reference } from '@atlaskit/popper';
17
16
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
18
17
  import { gridSize, layers } from '@atlaskit/theme/constants';
@@ -54,16 +53,14 @@ var FixedLayer = /*#__PURE__*/function (_React$Component) {
54
53
  if (!containerRef) {
55
54
  return /*#__PURE__*/React.createElement("div", null);
56
55
  }
57
- var divStyles = _objectSpread({
56
+ var divStyles = {
58
57
  background: 'transparent',
59
58
  position: 'absolute',
60
59
  top: 0,
61
60
  height: containerRef.getBoundingClientRect().height,
62
61
  // Don't block the clear button
63
62
  width: containerRef.getBoundingClientRect().width - parseInt(sizes.small.slice(0, -2)) - gridSize()
64
- }, fg('platform.design-system-team.date-picker-input-a11y-fix_cbbxs') && {
65
- pointerEvents: 'none'
66
- });
63
+ };
67
64
  return (
68
65
  /*#__PURE__*/
69
66
  /* Need to wrap layer in a fixed position div so that it will render its content as fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.9.0",
3
+ "version": "13.10.1",
4
4
  "description": "A date time picker allows the user to select an associated date and time.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,10 +45,9 @@
45
45
  "@atlaskit/icon": "^22.12.0",
46
46
  "@atlaskit/layering": "^0.4.0",
47
47
  "@atlaskit/locale": "^2.8.0",
48
- "@atlaskit/platform-feature-flags": "^0.3.0",
49
48
  "@atlaskit/popper": "^6.2.0",
50
49
  "@atlaskit/select": "^17.13.0",
51
- "@atlaskit/theme": "^12.12.0",
50
+ "@atlaskit/theme": "^13.0.0",
52
51
  "@atlaskit/tokens": "^1.58.0",
53
52
  "@babel/runtime": "^7.0.0",
54
53
  "@emotion/react": "^11.7.1",
@@ -102,10 +101,5 @@
102
101
  "deprecation": "no-deprecated-imports"
103
102
  }
104
103
  },
105
- "platform-feature-flags": {
106
- "platform.design-system-team.date-picker-input-a11y-fix_cbbxs": {
107
- "type": "boolean"
108
- }
109
- },
110
104
  "homepage": "https://atlassian.design/components/datetime-picker/"
111
105
  }