@atlaskit/datetime-picker 13.3.0 → 13.3.2

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,18 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 13.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#91429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91429) [`3a4be575c5b5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a4be575c5b5) - Updated TypeScript types for the default props of `DateTimePicker` to improve compatibility with React 18
8
+
9
+ ## 13.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#88752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88752) [`08f18fa02605`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08f18fa02605) - [ux] Update calendar dependency
14
+ - Updated dependencies
15
+
3
16
  ## 13.3.0
4
17
 
5
18
  ### 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.3.0";
39
+ var packageVersion = "13.3.2";
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.3.0";
34
+ var packageVersion = "13.3.2";
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.3.0";
39
+ var packageVersion = "13.3.2";
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.3.0";
19
+ const packageVersion = "13.3.2";
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.3.0";
18
+ const packageVersion = "13.3.2";
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.3.0";
19
+ const packageVersion = "13.3.2";
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.3.0";
30
+ var packageVersion = "13.3.2";
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.3.0";
28
+ var packageVersion = "13.3.2";
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.3.0";
31
+ var packageVersion = "13.3.2";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -11,7 +11,7 @@ interface State {
11
11
  zoneValue: string;
12
12
  }
13
13
  declare const dateTimePickerDefaultProps: {
14
- appearance: string;
14
+ appearance: NonNullable<import("../types").Appearance | undefined>;
15
15
  autoFocus: boolean;
16
16
  isDisabled: boolean;
17
17
  name: string;
@@ -28,33 +28,13 @@ declare const dateTimePickerDefaultProps: {
28
28
  datePickerSelectProps: {};
29
29
  timePickerSelectProps: {};
30
30
  times: string[];
31
- spacing: string;
31
+ spacing: NonNullable<import("../types").Spacing | undefined>;
32
32
  locale: string;
33
33
  };
34
34
  export declare const datePickerDefaultAriaLabel = "Date";
35
35
  export declare const timePickerDefaultAriaLabel = "Time";
36
36
  declare class DateTimePicker extends React.Component<DateTimePickerProps, State> {
37
- static defaultProps: {
38
- appearance: string;
39
- autoFocus: boolean;
40
- isDisabled: boolean;
41
- name: string;
42
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
43
- onChange: (_value: string) => void;
44
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
45
- innerProps: {};
46
- id: string;
47
- defaultValue: string;
48
- timeIsEditable: boolean;
49
- isInvalid: boolean;
50
- datePickerProps: {};
51
- timePickerProps: {};
52
- datePickerSelectProps: {};
53
- timePickerSelectProps: {};
54
- times: string[];
55
- spacing: string;
56
- locale: string;
57
- };
37
+ static defaultProps: DateTimePickerProps;
58
38
  state: State;
59
39
  getSafeState: () => {
60
40
  dateValue: string;
@@ -81,25 +61,5 @@ declare class DateTimePicker extends React.Component<DateTimePickerProps, State>
81
61
  render(): jsx.JSX.Element;
82
62
  }
83
63
  export { DateTimePicker as DateTimePickerWithoutAnalytics };
84
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "value" | "dateFormat" | "timeFormat" | "parseValue"> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "name" | "spacing" | "isInvalid" | "timeIsEditable" | "datePickerProps" | "timePickerProps" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<{
85
- appearance: string;
86
- autoFocus: boolean;
87
- isDisabled: boolean;
88
- name: string;
89
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
90
- onChange: (_value: string) => void;
91
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
92
- innerProps: {};
93
- id: string;
94
- defaultValue: string;
95
- timeIsEditable: boolean;
96
- isInvalid: boolean;
97
- datePickerProps: {};
98
- timePickerProps: {};
99
- datePickerSelectProps: {};
100
- timePickerSelectProps: {};
101
- times: string[];
102
- spacing: string;
103
- locale: string;
104
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
64
+ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
105
65
  export default _default;
@@ -11,7 +11,7 @@ interface State {
11
11
  zoneValue: string;
12
12
  }
13
13
  declare const dateTimePickerDefaultProps: {
14
- appearance: string;
14
+ appearance: NonNullable<import("../types").Appearance | undefined>;
15
15
  autoFocus: boolean;
16
16
  isDisabled: boolean;
17
17
  name: string;
@@ -28,33 +28,13 @@ declare const dateTimePickerDefaultProps: {
28
28
  datePickerSelectProps: {};
29
29
  timePickerSelectProps: {};
30
30
  times: string[];
31
- spacing: string;
31
+ spacing: NonNullable<import("../types").Spacing | undefined>;
32
32
  locale: string;
33
33
  };
34
34
  export declare const datePickerDefaultAriaLabel = "Date";
35
35
  export declare const timePickerDefaultAriaLabel = "Time";
36
36
  declare class DateTimePicker extends React.Component<DateTimePickerProps, State> {
37
- static defaultProps: {
38
- appearance: string;
39
- autoFocus: boolean;
40
- isDisabled: boolean;
41
- name: string;
42
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
43
- onChange: (_value: string) => void;
44
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
45
- innerProps: {};
46
- id: string;
47
- defaultValue: string;
48
- timeIsEditable: boolean;
49
- isInvalid: boolean;
50
- datePickerProps: {};
51
- timePickerProps: {};
52
- datePickerSelectProps: {};
53
- timePickerSelectProps: {};
54
- times: string[];
55
- spacing: string;
56
- locale: string;
57
- };
37
+ static defaultProps: DateTimePickerProps;
58
38
  state: State;
59
39
  getSafeState: () => {
60
40
  dateValue: string;
@@ -81,25 +61,5 @@ declare class DateTimePicker extends React.Component<DateTimePickerProps, State>
81
61
  render(): jsx.JSX.Element;
82
62
  }
83
63
  export { DateTimePicker as DateTimePickerWithoutAnalytics };
84
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "value" | "dateFormat" | "timeFormat" | "parseValue"> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "name" | "spacing" | "isInvalid" | "timeIsEditable" | "datePickerProps" | "timePickerProps" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<{
85
- appearance: string;
86
- autoFocus: boolean;
87
- isDisabled: boolean;
88
- name: string;
89
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
90
- onChange: (_value: string) => void;
91
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
92
- innerProps: {};
93
- id: string;
94
- defaultValue: string;
95
- timeIsEditable: boolean;
96
- isInvalid: boolean;
97
- datePickerProps: {};
98
- timePickerProps: {};
99
- datePickerSelectProps: {};
100
- timePickerSelectProps: {};
101
- times: string[];
102
- spacing: string;
103
- locale: string;
104
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
64
+ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
105
65
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.3.0",
3
+ "version": "13.3.2",
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/"
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/analytics-next": "^9.2.0",
42
- "@atlaskit/calendar": "^14.0.3",
43
- "@atlaskit/ds-lib": "^2.2.0",
42
+ "@atlaskit/calendar": "^14.2.0",
43
+ "@atlaskit/ds-lib": "^2.3.0",
44
44
  "@atlaskit/icon": "^22.1.0",
45
45
  "@atlaskit/layering": "^0.2.0",
46
46
  "@atlaskit/locale": "^2.6.0",
@@ -62,10 +62,10 @@
62
62
  "@af/accessibility-testing": "*",
63
63
  "@af/integration-testing": "*",
64
64
  "@af/visual-regression": "*",
65
- "@atlaskit/button": "^17.11.0",
65
+ "@atlaskit/button": "^17.12.0",
66
66
  "@atlaskit/docs": "*",
67
- "@atlaskit/form": "^9.1.0",
68
- "@atlaskit/modal-dialog": "^12.10.0",
67
+ "@atlaskit/form": "^9.2.0",
68
+ "@atlaskit/modal-dialog": "^12.11.0",
69
69
  "@atlaskit/popup": "^1.14.0",
70
70
  "@atlaskit/range": "^7.1.0",
71
71
  "@atlaskit/section-message": "^6.4.0",