@atlaskit/datetime-picker 18.7.4 → 19.0.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 +15 -0
- package/dist/cjs/components/date-picker.js +1 -1
- package/dist/cjs/components/date-time-picker.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/parse-date.js +2 -2
- package/dist/es2019/components/date-picker.js +1 -1
- package/dist/es2019/components/date-time-picker.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/parse-date.js +2 -2
- package/dist/esm/components/date-picker.js +1 -1
- package/dist/esm/components/date-time-picker.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/parse-date.js +2 -2
- package/dist/types/internal/parse-date.d.ts +1 -1
- package/package.json +10 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 19.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`0c7c7be927bde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c7c7be927bde) -
|
|
8
|
+
Remove deprecated Volt re-export shims from public package entry points. Consumers should import
|
|
9
|
+
from the replacement subpaths or implementation entry points instead.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`bf2d0b438b71e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf2d0b438b71e) -
|
|
14
|
+
Cleanup `feature_gate` `platform-dst-dp-parse-date-format`. Typed input is now always parsed with
|
|
15
|
+
the configured `dateFormat` before falling back to locale parsing.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 18.7.4
|
|
4
19
|
|
|
5
20
|
### Patch 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 = "18.7.
|
|
50
|
+
var packageVersion = "18.7.4";
|
|
51
51
|
var styles = {
|
|
52
52
|
pickerContainerStyle: "_kqswh2mm",
|
|
53
53
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -33,7 +33,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
33
33
|
// for typing `process`
|
|
34
34
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "18.7.
|
|
36
|
+
var packageVersion = "18.7.4";
|
|
37
37
|
var analyticsAttributes = {
|
|
38
38
|
componentName: 'dateTimePicker',
|
|
39
39
|
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 = "18.7.
|
|
35
|
+
var packageVersion = "18.7.4";
|
|
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 */
|
|
@@ -31,7 +31,7 @@ var _parseTokens = require("./parse-tokens");
|
|
|
31
31
|
* There are props that can change how the date is parsed.
|
|
32
32
|
* The priority of props used is:
|
|
33
33
|
* 1. `parseInputValue`
|
|
34
|
-
* 2. `dateFormat`
|
|
34
|
+
* 2. `dateFormat`
|
|
35
35
|
* 3. `locale`
|
|
36
36
|
*
|
|
37
37
|
* `dateFormat` only wins when the input actually parses against it, otherwise
|
|
@@ -44,7 +44,7 @@ var parseDate = exports.parseDate = function parseDate(date, di) {
|
|
|
44
44
|
if (parseInputValue) {
|
|
45
45
|
return parseInputValue(date, dateFormat || _defaultDateFormat.defaultDateFormat);
|
|
46
46
|
}
|
|
47
|
-
if (dateFormat
|
|
47
|
+
if (dateFormat) {
|
|
48
48
|
// date-fns uses the reference year to resolve two-digit years and fill
|
|
49
49
|
// omitted years. Use the current local date rather than the Unix epoch.
|
|
50
50
|
var referenceDate = (0, _fg.fg)('platform-dst-dp-current-reference-date') ? new Date() : new Date(0);
|
|
@@ -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 = "18.7.
|
|
35
|
+
const packageVersion = "18.7.4";
|
|
36
36
|
const styles = {
|
|
37
37
|
pickerContainerStyle: "_kqswh2mm",
|
|
38
38
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -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 = "18.7.
|
|
23
|
+
const packageVersion = "18.7.4";
|
|
24
24
|
const analyticsAttributes = {
|
|
25
25
|
componentName: 'dateTimePicker',
|
|
26
26
|
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 = "18.7.
|
|
22
|
+
const packageVersion = "18.7.4";
|
|
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 */
|
|
@@ -25,7 +25,7 @@ import { convertTokens } from './parse-tokens';
|
|
|
25
25
|
* There are props that can change how the date is parsed.
|
|
26
26
|
* The priority of props used is:
|
|
27
27
|
* 1. `parseInputValue`
|
|
28
|
-
* 2. `dateFormat`
|
|
28
|
+
* 2. `dateFormat`
|
|
29
29
|
* 3. `locale`
|
|
30
30
|
*
|
|
31
31
|
* `dateFormat` only wins when the input actually parses against it, otherwise
|
|
@@ -40,7 +40,7 @@ export const parseDate = (date, di) => {
|
|
|
40
40
|
if (parseInputValue) {
|
|
41
41
|
return parseInputValue(date, dateFormat || defaultDateFormat);
|
|
42
42
|
}
|
|
43
|
-
if (dateFormat
|
|
43
|
+
if (dateFormat) {
|
|
44
44
|
// date-fns uses the reference year to resolve two-digit years and fill
|
|
45
45
|
// omitted years. Use the current local date rather than the Unix epoch.
|
|
46
46
|
const referenceDate = fg('platform-dst-dp-current-reference-date') ? new Date() : new Date(0);
|
|
@@ -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 = "18.7.
|
|
43
|
+
var packageVersion = "18.7.4";
|
|
44
44
|
var styles = {
|
|
45
45
|
pickerContainerStyle: "_kqswh2mm",
|
|
46
46
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -27,7 +27,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
27
27
|
import DatePicker from './date-picker';
|
|
28
28
|
import TimePicker from './time-picker';
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "18.7.
|
|
30
|
+
var packageVersion = "18.7.4";
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'dateTimePicker',
|
|
33
33
|
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 = "18.7.
|
|
28
|
+
var packageVersion = "18.7.4";
|
|
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 */
|
|
@@ -25,7 +25,7 @@ import { convertTokens } from './parse-tokens';
|
|
|
25
25
|
* There are props that can change how the date is parsed.
|
|
26
26
|
* The priority of props used is:
|
|
27
27
|
* 1. `parseInputValue`
|
|
28
|
-
* 2. `dateFormat`
|
|
28
|
+
* 2. `dateFormat`
|
|
29
29
|
* 3. `locale`
|
|
30
30
|
*
|
|
31
31
|
* `dateFormat` only wins when the input actually parses against it, otherwise
|
|
@@ -38,7 +38,7 @@ export var parseDate = function parseDate(date, di) {
|
|
|
38
38
|
if (parseInputValue) {
|
|
39
39
|
return parseInputValue(date, dateFormat || defaultDateFormat);
|
|
40
40
|
}
|
|
41
|
-
if (dateFormat
|
|
41
|
+
if (dateFormat) {
|
|
42
42
|
// date-fns uses the reference year to resolve two-digit years and fill
|
|
43
43
|
// omitted years. Use the current local date rather than the Unix epoch.
|
|
44
44
|
var referenceDate = fg('platform-dst-dp-current-reference-date') ? new Date() : new Date(0);
|
|
@@ -3,7 +3,7 @@ import type { LocalizationProvider } from '@atlaskit/locale/localization-provide
|
|
|
3
3
|
* There are props that can change how the date is parsed.
|
|
4
4
|
* The priority of props used is:
|
|
5
5
|
* 1. `parseInputValue`
|
|
6
|
-
* 2. `dateFormat`
|
|
6
|
+
* 2. `dateFormat`
|
|
7
7
|
* 3. `locale`
|
|
8
8
|
*
|
|
9
9
|
* `dateFormat` only wins when the input actually parses against it, otherwise
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.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/"
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"@atlaskit/calendar": "^19.3.0",
|
|
40
40
|
"@atlaskit/css": "^1.1.0",
|
|
41
41
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
43
|
-
"@atlaskit/layering": "^
|
|
42
|
+
"@atlaskit/icon": "^38.0.0",
|
|
43
|
+
"@atlaskit/layering": "^6.0.0",
|
|
44
44
|
"@atlaskit/locale": "^5.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
46
|
"@atlaskit/popper": "^9.4.0",
|
|
47
47
|
"@atlaskit/primitives": "^22.5.0",
|
|
48
48
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
49
49
|
"@atlaskit/react-select": "^4.10.0",
|
|
50
|
-
"@atlaskit/select": "^
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
52
|
-
"@atlaskit/top-layer": "^
|
|
50
|
+
"@atlaskit/select": "^23.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
52
|
+
"@atlaskit/top-layer": "^6.0.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^1.0.2",
|
|
55
55
|
"date-fns": "^2.17.0"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"@af/accessibility-testing": "workspace:^",
|
|
62
62
|
"@af/integration-testing": "workspace:^",
|
|
63
63
|
"@af/visual-regression": "workspace:^",
|
|
64
|
-
"@atlaskit/code": "^
|
|
64
|
+
"@atlaskit/code": "^20.0.0",
|
|
65
65
|
"@atlaskit/codemod-utils": "^5.1.0",
|
|
66
66
|
"@atlaskit/docs": "^12.2.0",
|
|
67
|
-
"@atlaskit/form": "^
|
|
68
|
-
"@atlaskit/heading": "^
|
|
67
|
+
"@atlaskit/form": "^18.0.0",
|
|
68
|
+
"@atlaskit/heading": "^8.0.0",
|
|
69
69
|
"@atlaskit/link": "^5.1.0",
|
|
70
|
-
"@atlaskit/modal-dialog": "^
|
|
70
|
+
"@atlaskit/modal-dialog": "^17.0.0",
|
|
71
71
|
"@atlaskit/popup": "^6.3.0",
|
|
72
72
|
"@atlaskit/range": "^12.2.0",
|
|
73
73
|
"@atlaskit/section-message": "^10.2.0",
|
|
@@ -94,9 +94,6 @@
|
|
|
94
94
|
"platform-dst-dp-current-reference-date": {
|
|
95
95
|
"type": "boolean"
|
|
96
96
|
},
|
|
97
|
-
"platform-dst-dp-parse-date-format": {
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
},
|
|
100
97
|
"platform-dst-locale-week-start-day": {
|
|
101
98
|
"type": "boolean"
|
|
102
99
|
}
|