@atlaskit/datetime-picker 13.4.0 → 13.5.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.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#96491](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96491)
14
+ [`67cdb3372708`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67cdb3372708) -
15
+ Add support for React 18.
16
+
3
17
  ## 13.4.0
4
18
 
5
19
  ### Minor Changes
@@ -36,7 +36,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
36
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
37
37
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "13.4.0";
39
+ var packageVersion = "13.5.1";
40
40
  var datePickerDefaultProps = {
41
41
  appearance: 'default',
42
42
  autoFocus: false,
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
31
31
  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; }
32
32
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
33
33
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "13.4.0";
34
+ var packageVersion = "13.5.1";
35
35
  // Make DatePicker 50% the width of DateTimePicker
36
36
  // If rendering an icon container, shrink the TimePicker
37
37
  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.4.0";
39
+ var packageVersion = "13.5.1";
40
40
  var menuStyles = {
41
41
  /* Need to remove default absolute positioning as that causes issues with position fixed */
42
42
  position: 'static',
@@ -16,7 +16,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
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.4.0";
19
+ const packageVersion = "13.5.1";
20
20
  const datePickerDefaultProps = {
21
21
  appearance: 'default',
22
22
  autoFocus: false,
@@ -15,7 +15,7 @@ import { convertTokens } from '../internal/parse-tokens';
15
15
  import DatePicker from './date-picker';
16
16
  import TimePicker from './time-picker';
17
17
  const packageName = "@atlaskit/datetime-picker";
18
- const packageVersion = "13.4.0";
18
+ const packageVersion = "13.5.1";
19
19
  // Make DatePicker 50% the width of DateTimePicker
20
20
  // If rendering an icon container, shrink the TimePicker
21
21
  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.4.0";
19
+ const packageVersion = "13.5.1";
20
20
  const menuStyles = {
21
21
  /* Need to remove default absolute positioning as that causes issues with position fixed */
22
22
  position: 'static',
@@ -27,7 +27,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
27
27
  import { convertTokens } from '../internal/parse-tokens';
28
28
  import { makeSingleValue } from '../internal/single-value';
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "13.4.0";
30
+ var packageVersion = "13.5.1";
31
31
  var datePickerDefaultProps = {
32
32
  appearance: 'default',
33
33
  autoFocus: false,
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
25
25
  import DatePicker from './date-picker';
26
26
  import TimePicker from './time-picker';
27
27
  var packageName = "@atlaskit/datetime-picker";
28
- var packageVersion = "13.4.0";
28
+ var packageVersion = "13.5.1";
29
29
  // Make DatePicker 50% the width of DateTimePicker
30
30
  // If rendering an icon container, shrink the TimePicker
31
31
  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.4.0";
31
+ var packageVersion = "13.5.1";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { DateTimePickerBaseProps } from '../types';
4
+ import { type DateTimePickerBaseProps } from '../types';
5
5
  type DateTimePickerProps = typeof dateTimePickerDefaultProps & DateTimePickerBaseProps;
6
6
  interface State {
7
7
  dateValue: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { ActionMeta, OptionType, ValueType } from '@atlaskit/select';
3
- import { Appearance, Spacing, TimePickerBaseProps } from '../types';
2
+ import { type ActionMeta, type OptionType, type ValueType } from '@atlaskit/select';
3
+ import { type Appearance, type Spacing, type TimePickerBaseProps } from '../types';
4
4
  type TimePickerProps = typeof timePickerDefaultProps & TimePickerBaseProps;
5
5
  interface State {
6
6
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { Appearance } from '../types';
3
+ import { type Appearance } from '../types';
4
4
  /**
5
5
  * This is the container for the datetime picker component.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { MenuProps, OptionType } from '@atlaskit/select';
3
+ import { type MenuProps, type OptionType } from '@atlaskit/select';
4
4
  /**
5
5
  * This is the fixed layer menu used in the time picker.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { MenuProps } from '@atlaskit/select';
3
+ import { type MenuProps } from '@atlaskit/select';
4
4
  /**
5
5
  * This is the menu used in the select of the date picker.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType, SingleValueProps } from '@atlaskit/select';
2
+ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
3
3
  /**
4
4
  * This creates a functional component that `react-select` will use to make the
5
5
  * SingleValue part of the different pickers.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { DropdownIndicatorProps, OptionType, SelectProps } from '@atlaskit/select';
2
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { type DropdownIndicatorProps, type OptionType, type SelectProps } from '@atlaskit/select';
4
4
  export type Appearance = 'default' | 'subtle' | 'none';
5
5
  export type Spacing = 'compact' | 'default';
6
6
  export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { DateTimePickerBaseProps } from '../types';
4
+ import { type DateTimePickerBaseProps } from '../types';
5
5
  type DateTimePickerProps = typeof dateTimePickerDefaultProps & DateTimePickerBaseProps;
6
6
  interface State {
7
7
  dateValue: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { ActionMeta, OptionType, ValueType } from '@atlaskit/select';
3
- import { Appearance, Spacing, TimePickerBaseProps } from '../types';
2
+ import { type ActionMeta, type OptionType, type ValueType } from '@atlaskit/select';
3
+ import { type Appearance, type Spacing, type TimePickerBaseProps } from '../types';
4
4
  type TimePickerProps = typeof timePickerDefaultProps & TimePickerBaseProps;
5
5
  interface State {
6
6
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { Appearance } from '../types';
3
+ import { type Appearance } from '../types';
4
4
  /**
5
5
  * This is the container for the datetime picker component.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { MenuProps, OptionType } from '@atlaskit/select';
3
+ import { type MenuProps, type OptionType } from '@atlaskit/select';
4
4
  /**
5
5
  * This is the fixed layer menu used in the time picker.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { MenuProps } from '@atlaskit/select';
3
+ import { type MenuProps } from '@atlaskit/select';
4
4
  /**
5
5
  * This is the menu used in the select of the date picker.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType, SingleValueProps } from '@atlaskit/select';
2
+ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
3
3
  /**
4
4
  * This creates a functional component that `react-select` will use to make the
5
5
  * SingleValue part of the different pickers.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { DropdownIndicatorProps, OptionType, SelectProps } from '@atlaskit/select';
2
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { type DropdownIndicatorProps, type OptionType, type SelectProps } from '@atlaskit/select';
4
4
  export type Appearance = 'default' | 'subtle' | 'none';
5
5
  export type Spacing = 'compact' | 'default';
6
6
  export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
@@ -1,4 +1,4 @@
1
- import { DatePickerBaseProps } from '../src/types';
1
+ import { type DatePickerBaseProps } from '../src/types';
2
2
 
3
3
  export default function DatePickerProps(props: DatePickerBaseProps) {
4
4
  return null;
@@ -1,4 +1,4 @@
1
- import { TimePickerBaseProps } from '../src/types';
1
+ import { type TimePickerBaseProps } from '../src/types';
2
2
 
3
3
  export default function TimePickerProps(props: TimePickerBaseProps) {
4
4
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.4.0",
3
+ "version": "13.5.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/"
@@ -35,20 +35,21 @@
35
35
  "website": {
36
36
  "name": "Date time picker",
37
37
  "category": "Components"
38
- }
38
+ },
39
+ "runReact18": true
39
40
  },
40
41
  "dependencies": {
41
42
  "@atlaskit/analytics-next": "^9.3.0",
42
43
  "@atlaskit/calendar": "^14.2.0",
43
44
  "@atlaskit/ds-lib": "^2.3.0",
44
- "@atlaskit/icon": "^22.1.0",
45
+ "@atlaskit/icon": "^22.3.0",
45
46
  "@atlaskit/layering": "^0.3.0",
46
47
  "@atlaskit/locale": "^2.7.0",
47
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
48
- "@atlaskit/popper": "^5.5.0",
49
- "@atlaskit/select": "^17.8.0",
50
- "@atlaskit/theme": "^12.7.0",
51
- "@atlaskit/tokens": "^1.45.0",
49
+ "@atlaskit/popper": "^6.0.0",
50
+ "@atlaskit/select": "^17.9.0",
51
+ "@atlaskit/theme": "^12.8.0",
52
+ "@atlaskit/tokens": "^1.49.0",
52
53
  "@babel/runtime": "^7.0.0",
53
54
  "@emotion/react": "^11.7.1",
54
55
  "date-fns": "^2.17.0",
@@ -56,22 +57,22 @@
56
57
  "react-scrolllock": "^5.0.1"
57
58
  },
58
59
  "peerDependencies": {
59
- "react": "^16.8.0"
60
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@af/accessibility-testing": "*",
63
64
  "@af/integration-testing": "*",
64
65
  "@af/visual-regression": "*",
65
- "@atlaskit/button": "^17.14.0",
66
+ "@atlaskit/button": "^17.16.0",
66
67
  "@atlaskit/docs": "*",
67
- "@atlaskit/form": "^9.3.0",
68
+ "@atlaskit/form": "^10.2.0",
68
69
  "@atlaskit/modal-dialog": "^12.13.0",
69
- "@atlaskit/popup": "^1.15.0",
70
+ "@atlaskit/popup": "^1.17.0",
70
71
  "@atlaskit/range": "^7.2.0",
71
72
  "@atlaskit/section-message": "^6.5.0",
72
73
  "@atlaskit/ssr": "*",
73
74
  "@atlaskit/textfield": "^6.3.0",
74
- "@atlaskit/toggle": "^13.0.0",
75
+ "@atlaskit/toggle": "^13.1.0",
75
76
  "@atlaskit/visual-regression": "*",
76
77
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
77
78
  "@atlassian/feature-flags-test-utils": "*",