@atlaskit/datetime-picker 19.1.0 → 19.2.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,19 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 19.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`98a7771631acd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98a7771631acd) -
8
+ Cleanup `feature_gate` `platform-dst-locale-week-start-day`. Calendar and DatePicker now always
9
+ default the first day of the week to the first day for the given `locale` instead of Sunday (`0`),
10
+ and `createLocalizationProvider(...).getFirstDayOfWeek()` always resolves the locale's week info.
11
+ Pass an explicit `weekStartDay` to override the locale default.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 19.1.0
4
18
 
5
19
  ### Minor Changes
@@ -47,7 +47,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
47
47
  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; }
48
48
  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; }
49
49
  var packageName = "@atlaskit/datetime-picker";
50
- var packageVersion = "19.0.1";
50
+ var packageVersion = "19.1.0";
51
51
  var styles = {
52
52
  pickerContainerStyle: "_kqswh2mm",
53
53
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -543,7 +543,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, _forwarded
543
543
  onCalendarChange: onCalendarChange,
544
544
  onCalendarSelect: onCalendarSelect,
545
545
  calendarLocale: locale,
546
- calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : (0, _fg.fg)('platform-dst-locale-week-start-day') ? l10n.getFirstDayOfWeek() : undefined,
546
+ calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : l10n.getFirstDayOfWeek(),
547
547
  shouldSetFocusOnCurrentDay: shouldSetFocusOnCurrentDay,
548
548
  /**
549
549
  * This overrides the inner wrapper the Calendar.
@@ -34,7 +34,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
34
34
  // for typing `process`
35
35
  // oxlint-disable-next-line @atlassian/no-restricted-imports
36
36
  var packageName = "@atlaskit/datetime-picker";
37
- var packageVersion = "19.0.1";
37
+ var packageVersion = "19.1.0";
38
38
  var analyticsAttributes = {
39
39
  componentName: 'dateTimePicker',
40
40
  packageName: packageName,
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
32
32
  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; }
33
33
  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; } // oxlint-disable-next-line @atlassian/no-restricted-imports
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "19.0.1";
35
+ var packageVersion = "19.1.0";
36
36
  var defaultTimeFormat = 'h:mma';
37
37
  var menuStyles = {
38
38
  /* Need to remove default absolute positioning as that causes issues with position fixed */
@@ -32,7 +32,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
32
32
  import { parseDate } from '../internal/parse-date';
33
33
  import { makeSingleValue } from '../internal/single-value';
34
34
  const packageName = "@atlaskit/datetime-picker";
35
- const packageVersion = "19.0.1";
35
+ const packageVersion = "19.1.0";
36
36
  const styles = {
37
37
  pickerContainerStyle: "_kqswh2mm",
38
38
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -470,7 +470,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, _forwardedRef) => {
470
470
  onCalendarChange,
471
471
  onCalendarSelect,
472
472
  calendarLocale: locale,
473
- calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : fg('platform-dst-locale-week-start-day') ? l10n.getFirstDayOfWeek() : undefined,
473
+ calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : l10n.getFirstDayOfWeek(),
474
474
  shouldSetFocusOnCurrentDay,
475
475
  /**
476
476
  * This overrides the inner wrapper the Calendar.
@@ -21,7 +21,7 @@ import { convertTokens } from '../internal/parse-tokens';
21
21
  import DatePicker from './date-picker';
22
22
  import TimePicker from './time-picker';
23
23
  const packageName = "@atlaskit/datetime-picker";
24
- const packageVersion = "19.0.1";
24
+ const packageVersion = "19.1.0";
25
25
  const analyticsAttributes = {
26
26
  componentName: 'dateTimePicker',
27
27
  packageName,
@@ -19,7 +19,7 @@ import { convertTokens } from '../internal/parse-tokens';
19
19
  import { placeholderDatetime } from '../internal/placeholder-date-time';
20
20
  import { makeSingleValue } from '../internal/single-value';
21
21
  const packageName = "@atlaskit/datetime-picker";
22
- const packageVersion = "19.0.1";
22
+ const packageVersion = "19.1.0";
23
23
  const defaultTimeFormat = 'h:mma';
24
24
  const menuStyles = {
25
25
  /* Need to remove default absolute positioning as that causes issues with position fixed */
@@ -40,7 +40,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
40
40
  import { parseDate } from '../internal/parse-date';
41
41
  import { makeSingleValue } from '../internal/single-value';
42
42
  var packageName = "@atlaskit/datetime-picker";
43
- var packageVersion = "19.0.1";
43
+ var packageVersion = "19.1.0";
44
44
  var styles = {
45
45
  pickerContainerStyle: "_kqswh2mm",
46
46
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -536,7 +536,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, _forwardedRef) {
536
536
  onCalendarChange: onCalendarChange,
537
537
  onCalendarSelect: onCalendarSelect,
538
538
  calendarLocale: locale,
539
- calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : fg('platform-dst-locale-week-start-day') ? l10n.getFirstDayOfWeek() : undefined,
539
+ calendarWeekStartDay: weekStartDay !== null && weekStartDay !== void 0 ? weekStartDay : l10n.getFirstDayOfWeek(),
540
540
  shouldSetFocusOnCurrentDay: shouldSetFocusOnCurrentDay,
541
541
  /**
542
542
  * This overrides the inner wrapper the Calendar.
@@ -28,7 +28,7 @@ import { convertTokens } from '../internal/parse-tokens';
28
28
  import DatePicker from './date-picker';
29
29
  import TimePicker from './time-picker';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "19.0.1";
31
+ var packageVersion = "19.1.0";
32
32
  var analyticsAttributes = {
33
33
  componentName: 'dateTimePicker',
34
34
  packageName: packageName,
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
25
25
  import { placeholderDatetime } from '../internal/placeholder-date-time';
26
26
  import { makeSingleValue } from '../internal/single-value';
27
27
  var packageName = "@atlaskit/datetime-picker";
28
- var packageVersion = "19.0.1";
28
+ var packageVersion = "19.1.0";
29
29
  var defaultTimeFormat = 'h:mma';
30
30
  var menuStyles = {
31
31
  /* Need to remove default absolute positioning as that causes issues with position fixed */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "19.1.0",
3
+ "version": "19.2.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/"
@@ -34,14 +34,14 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/analytics-next": "^12.5.0",
37
+ "@atlaskit/analytics-next": "^12.6.0",
38
38
  "@atlaskit/button": "^25.4.0",
39
- "@atlaskit/calendar": "^19.4.0",
39
+ "@atlaskit/calendar": "^19.5.0",
40
40
  "@atlaskit/css": "^1.1.0",
41
41
  "@atlaskit/ds-lib": "^8.0.0",
42
42
  "@atlaskit/icon": "^38.0.0",
43
43
  "@atlaskit/layering": "^6.0.0",
44
- "@atlaskit/locale": "^5.3.0",
44
+ "@atlaskit/locale": "^5.4.0",
45
45
  "@atlaskit/platform-feature-flags": "^2.2.0",
46
46
  "@atlaskit/popper": "^9.4.0",
47
47
  "@atlaskit/primitives": "^22.5.0",
@@ -94,9 +94,6 @@
94
94
  "platform-dst-dp-current-reference-date": {
95
95
  "type": "boolean"
96
96
  },
97
- "platform-dst-locale-week-start-day": {
98
- "type": "boolean"
99
- },
100
97
  "platform-dst-motion-uplift-input": {
101
98
  "type": "boolean",
102
99
  "referenceOnly": true