@atlaskit/datetime-picker 13.6.1 → 13.7.0

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,13 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 13.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#116276](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116276)
8
+ [`7b251aa2db916`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7b251aa2db916) -
9
+ Remove scroll locking behaviour to better support smaller screens.
10
+
3
11
  ## 13.6.1
4
12
 
5
13
  ### Patch Changes
@@ -38,7 +38,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
38
38
  * @jsxRuntime classic
39
39
  */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
40
40
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "13.6.1";
41
+ var packageVersion = "13.7.0";
42
42
  var datePickerDefaultProps = {
43
43
  appearance: 'default',
44
44
  autoFocus: false,
@@ -33,7 +33,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
33
33
  * @jsxRuntime classic
34
34
  */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "13.6.1";
36
+ var packageVersion = "13.7.0";
37
37
  // Make DatePicker 50% the width of DateTimePicker
38
38
  // If rendering an icon container, shrink the TimePicker
39
39
  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.6.1";
39
+ var packageVersion = "13.7.0";
40
40
  var menuStyles = {
41
41
  /* Need to remove default absolute positioning as that causes issues with position fixed */
42
42
  position: 'static',
@@ -76,7 +76,7 @@ var FixedLayer = exports.default = /*#__PURE__*/function (_React$Component) {
76
76
  /* Need to wrap layer in a fixed position div so that it will render its content as fixed
77
77
  * We need to set the intial top value to where the container is and zIndex so that it still
78
78
  * applies since we're creating a new stacking context. */
79
- _react.default.createElement(_popper.Manager, null, /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null), /*#__PURE__*/_react.default.createElement(_popper.Reference, null, function (_ref) {
79
+ _react.default.createElement(_popper.Manager, null, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.remove-scroll-lock-on-datetime-picker_6h6oi') ? null : /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null), /*#__PURE__*/_react.default.createElement(_popper.Reference, null, function (_ref) {
80
80
  var ref = _ref.ref;
81
81
  return /*#__PURE__*/_react.default.createElement("div", {
82
82
  ref: ref,
@@ -21,7 +21,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
21
21
  import { convertTokens } from '../internal/parse-tokens';
22
22
  import { makeSingleValue } from '../internal/single-value';
23
23
  const packageName = "@atlaskit/datetime-picker";
24
- const packageVersion = "13.6.1";
24
+ const packageVersion = "13.7.0";
25
25
  const datePickerDefaultProps = {
26
26
  appearance: 'default',
27
27
  autoFocus: false,
@@ -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.6.1";
23
+ const packageVersion = "13.7.0";
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.6.1";
19
+ const packageVersion = "13.7.0";
20
20
  const menuStyles = {
21
21
  /* Need to remove default absolute positioning as that causes issues with position fixed */
22
22
  position: 'static',
@@ -49,7 +49,7 @@ export default class FixedLayer extends React.Component {
49
49
  /* Need to wrap layer in a fixed position div so that it will render its content as fixed
50
50
  * We need to set the intial top value to where the container is and zIndex so that it still
51
51
  * applies since we're creating a new stacking context. */
52
- React.createElement(Manager, null, /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(Reference, null, ({
52
+ React.createElement(Manager, null, getBooleanFF('platform.design-system-team.remove-scroll-lock-on-datetime-picker_6h6oi') ? null : /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(Reference, null, ({
53
53
  ref
54
54
  }) => /*#__PURE__*/React.createElement("div", {
55
55
  ref: ref,
@@ -32,7 +32,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
32
32
  import { convertTokens } from '../internal/parse-tokens';
33
33
  import { makeSingleValue } from '../internal/single-value';
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "13.6.1";
35
+ var packageVersion = "13.7.0";
36
36
  var datePickerDefaultProps = {
37
37
  appearance: 'default',
38
38
  autoFocus: false,
@@ -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.6.1";
33
+ var packageVersion = "13.7.0";
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.6.1";
31
+ var packageVersion = "13.7.0";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -70,7 +70,7 @@ var FixedLayer = /*#__PURE__*/function (_React$Component) {
70
70
  /* Need to wrap layer in a fixed position div so that it will render its content as fixed
71
71
  * We need to set the intial top value to where the container is and zIndex so that it still
72
72
  * applies since we're creating a new stacking context. */
73
- React.createElement(Manager, null, /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(Reference, null, function (_ref) {
73
+ React.createElement(Manager, null, getBooleanFF('platform.design-system-team.remove-scroll-lock-on-datetime-picker_6h6oi') ? null : /*#__PURE__*/React.createElement(ScrollLock, null), /*#__PURE__*/React.createElement(Reference, null, function (_ref) {
74
74
  var ref = _ref.ref;
75
75
  return /*#__PURE__*/React.createElement("div", {
76
76
  ref: ref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.6.1",
3
+ "version": "13.7.0",
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/"
@@ -63,11 +63,11 @@
63
63
  "@af/accessibility-testing": "*",
64
64
  "@af/integration-testing": "*",
65
65
  "@af/visual-regression": "*",
66
- "@atlaskit/button": "^18.0.0",
66
+ "@atlaskit/button": "^18.1.0",
67
67
  "@atlaskit/docs": "*",
68
68
  "@atlaskit/form": "^10.4.0",
69
69
  "@atlaskit/modal-dialog": "^12.14.0",
70
- "@atlaskit/popup": "^1.19.0",
70
+ "@atlaskit/popup": "^1.20.0",
71
71
  "@atlaskit/range": "^7.3.0",
72
72
  "@atlaskit/section-message": "^6.5.0",
73
73
  "@atlaskit/ssr": "*",
@@ -109,6 +109,9 @@
109
109
  },
110
110
  "platform.design-system-team.date-picker-input-a11y-fix_cbbxs": {
111
111
  "type": "boolean"
112
+ },
113
+ "platform.design-system-team.remove-scroll-lock-on-datetime-picker_6h6oi": {
114
+ "type": "boolean"
112
115
  }
113
116
  },
114
117
  "homepage": "https://atlassian.design/components/datetime-picker/"