@atlaskit/datetime-picker 14.0.0 → 14.0.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,22 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 14.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#136647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136647)
8
+ [`a3f810c087f5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3f810c087f5d) -
9
+ Internal changes based on calendar API changes.
10
+ - Updated dependencies
11
+
12
+ ## 14.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#134343](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134343)
17
+ [`e6aa0942ed680`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e6aa0942ed680) -
18
+ Deprecated props that were missed in the last deprecation patch, `13.11.1`.
19
+
3
20
  ## 14.0.0
4
21
 
5
22
  ### Major Changes
@@ -37,7 +37,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
37
37
  * @jsx jsx
38
38
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
39
39
  var packageName = "@atlaskit/datetime-picker";
40
- var packageVersion = "14.0.0";
40
+ var packageVersion = "14.0.2";
41
41
  var datePickerDefaultProps = {
42
42
  appearance: 'default',
43
43
  autoFocus: false,
@@ -75,7 +75,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
75
75
  var _this;
76
76
  (0, _classCallCheck2.default)(this, DatePickerComponent);
77
77
  _this = _super.call(this, props);
78
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "calendarRef", null);
79
78
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "containerRef", null);
80
79
  // All state needs to be accessed via this function so that the state is mapped from props
81
80
  // correctly to allow controlled/uncontrolled usage.
@@ -305,9 +304,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
305
304
  _this.onClear();
306
305
  }
307
306
  });
308
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "refCalendar", function (ref) {
309
- _this.calendarRef = ref;
310
- });
311
307
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSelectInputChange", function (selectInputValue, actionMeta) {
312
308
  var onInputChange = _this.props.selectProps.onInputChange;
313
309
  if (onInputChange) {
@@ -434,7 +430,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
434
430
  } : {};
435
431
  var calendarProps = {
436
432
  calendarContainerRef: this.containerRef,
437
- calendarRef: this.refCalendar,
438
433
  calendarDisabled: disabled,
439
434
  calendarDisabledDateFilter: disabledDateFilter,
440
435
  calendarMaxDate: maxDate,
@@ -514,7 +509,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
514
509
  calendarLocale: calendarProps.calendarLocale,
515
510
  calendarMaxDate: calendarProps.calendarMaxDate,
516
511
  calendarMinDate: calendarProps.calendarMinDate,
517
- calendarRef: calendarProps.calendarRef,
518
512
  calendarValue: calendarProps.calendarValue,
519
513
  calendarView: calendarProps.calendarView,
520
514
  calendarWeekStartDay: calendarProps.calendarWeekStartDay,
@@ -35,7 +35,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
35
35
  * @jsx jsx
36
36
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
37
37
  var packageName = "@atlaskit/datetime-picker";
38
- var packageVersion = "14.0.0";
38
+ var packageVersion = "14.0.2";
39
39
  // Make DatePicker 50% the width of DateTimePicker
40
40
  // If rendering an icon container, shrink the TimePicker
41
41
  var datePickerContainerStyles = (0, _react2.css)({
@@ -35,7 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
35
35
  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
36
36
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
37
37
  var packageName = "@atlaskit/datetime-picker";
38
- var packageVersion = "14.0.0";
38
+ var packageVersion = "14.0.2";
39
39
  var menuStyles = {
40
40
  /* Need to remove default absolute positioning as that causes issues with position fixed */
41
41
  position: 'static',
@@ -72,7 +72,6 @@ var Menu = exports.Menu = function Menu(_ref) {
72
72
  onChange: selectProps.onCalendarChange,
73
73
  onSelect: selectProps.onCalendarSelect,
74
74
  previousMonthLabel: selectProps.previousMonthLabel,
75
- calendarRef: selectProps.calendarRef,
76
75
  selected: [selectProps.calendarValue],
77
76
  shouldSetFocusOnCurrentDay: selectProps.shouldSetFocusOnCurrentDay,
78
77
  locale: selectProps.calendarLocale,
@@ -19,7 +19,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
19
19
  import { convertTokens } from '../internal/parse-tokens';
20
20
  import { makeSingleValue } from '../internal/single-value';
21
21
  const packageName = "@atlaskit/datetime-picker";
22
- const packageVersion = "14.0.0";
22
+ const packageVersion = "14.0.2";
23
23
  const datePickerDefaultProps = {
24
24
  appearance: 'default',
25
25
  autoFocus: false,
@@ -51,7 +51,6 @@ const datePickerDefaultProps = {
51
51
  class DatePickerComponent extends Component {
52
52
  constructor(props) {
53
53
  super(props);
54
- _defineProperty(this, "calendarRef", null);
55
54
  _defineProperty(this, "containerRef", null);
56
55
  // All state needs to be accessed via this function so that the state is mapped from props
57
56
  // correctly to allow controlled/uncontrolled usage.
@@ -284,9 +283,6 @@ class DatePickerComponent extends Component {
284
283
  this.onClear();
285
284
  }
286
285
  });
287
- _defineProperty(this, "refCalendar", ref => {
288
- this.calendarRef = ref;
289
- });
290
286
  _defineProperty(this, "handleSelectInputChange", (selectInputValue, actionMeta) => {
291
287
  const {
292
288
  onInputChange
@@ -436,7 +432,6 @@ class DatePickerComponent extends Component {
436
432
  } : {};
437
433
  const calendarProps = {
438
434
  calendarContainerRef: this.containerRef,
439
- calendarRef: this.refCalendar,
440
435
  calendarDisabled: disabled,
441
436
  calendarDisabledDateFilter: disabledDateFilter,
442
437
  calendarMaxDate: maxDate,
@@ -516,7 +511,6 @@ class DatePickerComponent extends Component {
516
511
  calendarLocale: calendarProps.calendarLocale,
517
512
  calendarMaxDate: calendarProps.calendarMaxDate,
518
513
  calendarMinDate: calendarProps.calendarMinDate,
519
- calendarRef: calendarProps.calendarRef,
520
514
  calendarValue: calendarProps.calendarValue,
521
515
  calendarView: calendarProps.calendarView,
522
516
  calendarWeekStartDay: calendarProps.calendarWeekStartDay,
@@ -18,7 +18,7 @@ import { convertTokens } from '../internal/parse-tokens';
18
18
  import DatePicker from './date-picker';
19
19
  import TimePicker from './time-picker';
20
20
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "14.0.0";
21
+ const packageVersion = "14.0.2";
22
22
  // Make DatePicker 50% the width of DateTimePicker
23
23
  // If rendering an icon container, shrink the TimePicker
24
24
  const datePickerContainerStyles = css({
@@ -15,7 +15,7 @@ import parseTime from '../internal/parse-time';
15
15
  import { convertTokens } from '../internal/parse-tokens';
16
16
  import { makeSingleValue } from '../internal/single-value';
17
17
  const packageName = "@atlaskit/datetime-picker";
18
- const packageVersion = "14.0.0";
18
+ const packageVersion = "14.0.2";
19
19
  const menuStyles = {
20
20
  /* Need to remove default absolute positioning as that causes issues with position fixed */
21
21
  position: 'static',
@@ -69,7 +69,6 @@ export const Menu = ({
69
69
  onChange: selectProps.onCalendarChange,
70
70
  onSelect: selectProps.onCalendarSelect,
71
71
  previousMonthLabel: selectProps.previousMonthLabel,
72
- calendarRef: selectProps.calendarRef,
73
72
  selected: [selectProps.calendarValue],
74
73
  shouldSetFocusOnCurrentDay: selectProps.shouldSetFocusOnCurrentDay,
75
74
  locale: selectProps.calendarLocale,
@@ -30,7 +30,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
30
30
  import { convertTokens } from '../internal/parse-tokens';
31
31
  import { makeSingleValue } from '../internal/single-value';
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "14.0.0";
33
+ var packageVersion = "14.0.2";
34
34
  var datePickerDefaultProps = {
35
35
  appearance: 'default',
36
36
  autoFocus: false,
@@ -68,7 +68,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
68
68
  var _this;
69
69
  _classCallCheck(this, DatePickerComponent);
70
70
  _this = _super.call(this, props);
71
- _defineProperty(_assertThisInitialized(_this), "calendarRef", null);
72
71
  _defineProperty(_assertThisInitialized(_this), "containerRef", null);
73
72
  // All state needs to be accessed via this function so that the state is mapped from props
74
73
  // correctly to allow controlled/uncontrolled usage.
@@ -298,9 +297,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
298
297
  _this.onClear();
299
298
  }
300
299
  });
301
- _defineProperty(_assertThisInitialized(_this), "refCalendar", function (ref) {
302
- _this.calendarRef = ref;
303
- });
304
300
  _defineProperty(_assertThisInitialized(_this), "handleSelectInputChange", function (selectInputValue, actionMeta) {
305
301
  var onInputChange = _this.props.selectProps.onInputChange;
306
302
  if (onInputChange) {
@@ -427,7 +423,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
427
423
  } : {};
428
424
  var calendarProps = {
429
425
  calendarContainerRef: this.containerRef,
430
- calendarRef: this.refCalendar,
431
426
  calendarDisabled: disabled,
432
427
  calendarDisabledDateFilter: disabledDateFilter,
433
428
  calendarMaxDate: maxDate,
@@ -507,7 +502,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
507
502
  calendarLocale: calendarProps.calendarLocale,
508
503
  calendarMaxDate: calendarProps.calendarMaxDate,
509
504
  calendarMinDate: calendarProps.calendarMinDate,
510
- calendarRef: calendarProps.calendarRef,
511
505
  calendarValue: calendarProps.calendarValue,
512
506
  calendarView: calendarProps.calendarView,
513
507
  calendarWeekStartDay: calendarProps.calendarWeekStartDay,
@@ -31,7 +31,7 @@ import { convertTokens } from '../internal/parse-tokens';
31
31
  import DatePicker from './date-picker';
32
32
  import TimePicker from './time-picker';
33
33
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "14.0.0";
34
+ var packageVersion = "14.0.2";
35
35
  // Make DatePicker 50% the width of DateTimePicker
36
36
  // If rendering an icon container, shrink the TimePicker
37
37
  var datePickerContainerStyles = css({
@@ -27,7 +27,7 @@ import parseTime from '../internal/parse-time';
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 = "14.0.0";
30
+ var packageVersion = "14.0.2";
31
31
  var menuStyles = {
32
32
  /* Need to remove default absolute positioning as that causes issues with position fixed */
33
33
  position: 'static',
@@ -65,7 +65,6 @@ export var Menu = function Menu(_ref) {
65
65
  onChange: selectProps.onCalendarChange,
66
66
  onSelect: selectProps.onCalendarSelect,
67
67
  previousMonthLabel: selectProps.previousMonthLabel,
68
- calendarRef: selectProps.calendarRef,
69
68
  selected: [selectProps.calendarValue],
70
69
  shouldSetFocusOnCurrentDay: selectProps.shouldSetFocusOnCurrentDay,
71
70
  locale: selectProps.calendarLocale,
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { Component } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import { type CalendarRef } from '@atlaskit/calendar';
8
7
  import { type LocalizationProvider } from '@atlaskit/locale';
9
8
  import { type ActionMeta, type DropdownIndicatorProps, type GroupType, type InputActionMeta, type OptionType } from '@atlaskit/select';
10
9
  import { type Appearance, type DatePickerBaseProps, type Spacing } from '../types';
@@ -70,7 +69,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
70
69
  spacing: Spacing;
71
70
  locale: string;
72
71
  };
73
- calendarRef: CalendarRef | null;
74
72
  containerRef: HTMLElement | null;
75
73
  constructor(props: any);
76
74
  static getDerivedStateFromProps(nextProps: Readonly<DatePickerProps>, prevState: State): {
@@ -95,7 +93,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
95
93
  onInputKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
96
94
  onClear: () => void;
97
95
  onSelectChange: (_value: unknown, action: ActionMeta) => void;
98
- refCalendar: (ref: CalendarRef | null) => void;
99
96
  handleSelectInputChange: (selectInputValue: string, actionMeta: InputActionMeta) => void;
100
97
  getContainerRef: (ref: HTMLElement | null) => void;
101
98
  /**
@@ -211,6 +211,8 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
211
211
  * `subtle` will remove the borders, background, and icon.
212
212
  *
213
213
  * __NOTE:__ Appearance values will be ignored if styles are parsed through `selectProps`.
214
+ *
215
+ * @deprecated
214
216
  */
215
217
  appearance?: Appearance;
216
218
  /**
@@ -329,6 +331,8 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
329
331
  * Set the appearance of the picker.
330
332
  *
331
333
  * `subtle` will remove the borders and background.
334
+ *
335
+ * @deprecated
332
336
  */
333
337
  appearance?: Appearance;
334
338
  /**
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { Component } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import { type CalendarRef } from '@atlaskit/calendar';
8
7
  import { type LocalizationProvider } from '@atlaskit/locale';
9
8
  import { type ActionMeta, type DropdownIndicatorProps, type GroupType, type InputActionMeta, type OptionType } from '@atlaskit/select';
10
9
  import { type Appearance, type DatePickerBaseProps, type Spacing } from '../types';
@@ -70,7 +69,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
70
69
  spacing: Spacing;
71
70
  locale: string;
72
71
  };
73
- calendarRef: CalendarRef | null;
74
72
  containerRef: HTMLElement | null;
75
73
  constructor(props: any);
76
74
  static getDerivedStateFromProps(nextProps: Readonly<DatePickerProps>, prevState: State): {
@@ -95,7 +93,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
95
93
  onInputKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
96
94
  onClear: () => void;
97
95
  onSelectChange: (_value: unknown, action: ActionMeta) => void;
98
- refCalendar: (ref: CalendarRef | null) => void;
99
96
  handleSelectInputChange: (selectInputValue: string, actionMeta: InputActionMeta) => void;
100
97
  getContainerRef: (ref: HTMLElement | null) => void;
101
98
  /**
@@ -211,6 +211,8 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
211
211
  * `subtle` will remove the borders, background, and icon.
212
212
  *
213
213
  * __NOTE:__ Appearance values will be ignored if styles are parsed through `selectProps`.
214
+ *
215
+ * @deprecated
214
216
  */
215
217
  appearance?: Appearance;
216
218
  /**
@@ -329,6 +331,8 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
329
331
  * Set the appearance of the picker.
330
332
  *
331
333
  * `subtle` will remove the borders and background.
334
+ *
335
+ * @deprecated
332
336
  */
333
337
  appearance?: Appearance;
334
338
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "14.0.0",
3
+ "version": "14.0.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/"
@@ -28,10 +28,6 @@
28
28
  },
29
29
  "atlassian": {
30
30
  "team": "Design System Team",
31
- "releaseModel": "continuous",
32
- "productPushConsumption": [
33
- "jira"
34
- ],
35
31
  "website": {
36
32
  "name": "Date time picker",
37
33
  "category": "Components"
@@ -40,9 +36,9 @@
40
36
  },
41
37
  "dependencies": {
42
38
  "@atlaskit/analytics-next": "^10.1.0",
43
- "@atlaskit/calendar": "^14.5.0",
39
+ "@atlaskit/calendar": "^15.0.0",
44
40
  "@atlaskit/ds-lib": "^2.5.0",
45
- "@atlaskit/icon": "^22.14.0",
41
+ "@atlaskit/icon": "^22.15.0",
46
42
  "@atlaskit/layering": "^0.4.0",
47
43
  "@atlaskit/locale": "^2.8.0",
48
44
  "@atlaskit/popper": "^6.2.0",
@@ -65,7 +61,7 @@
65
61
  "@atlaskit/docs": "*",
66
62
  "@atlaskit/form": "^10.5.0",
67
63
  "@atlaskit/modal-dialog": "^12.15.0",
68
- "@atlaskit/popup": "^1.23.0",
64
+ "@atlaskit/popup": "^1.24.0",
69
65
  "@atlaskit/range": "^7.4.0",
70
66
  "@atlaskit/section-message": "^6.6.0",
71
67
  "@atlaskit/ssr": "*",
@@ -81,7 +77,6 @@
81
77
  "moment": "^2.29.2",
82
78
  "react-dom": "^16.8.0",
83
79
  "react-lorem-component": "^0.13.0",
84
- "react-test-renderer": "^16.8.0",
85
80
  "typescript": "~5.4.2"
86
81
  },
87
82
  "techstack": {