@atlaskit/datetime-picker 12.4.0 → 12.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 +16 -1
- 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/version.json +1 -1
- 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/version.json +1 -1
- 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/version.json +1 -1
- package/dist/types/components/date-picker.d.ts +1 -1
- package/dist/types/components/date-time-picker.d.ts +1 -1
- package/dist/types/components/time-picker.d.ts +2 -2
- package/dist/types/types.d.ts +3 -3
- package/package.json +28 -20
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 12.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 12.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 12.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -16,7 +32,6 @@
|
|
|
16
32
|
|
|
17
33
|
### Patch Changes
|
|
18
34
|
|
|
19
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
20
35
|
- [`e754545d460`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e754545d460) - [ux] Ensure no duplicate ID's when using `selectProps` on any of the DateTime Picker components.
|
|
21
36
|
|
|
22
37
|
## 12.3.11
|
|
@@ -36,7 +36,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
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() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
38
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "12.
|
|
39
|
+
var packageVersion = "12.5.1";
|
|
40
40
|
|
|
41
41
|
/* eslint-disable react/no-unused-prop-types */
|
|
42
42
|
|
|
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
31
31
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "12.
|
|
34
|
+
var packageVersion = "12.5.1";
|
|
35
35
|
|
|
36
36
|
/* eslint-disable react/no-unused-prop-types */
|
|
37
37
|
|
|
@@ -38,7 +38,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
38
38
|
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); }; }
|
|
39
39
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "12.
|
|
41
|
+
var packageVersion = "12.5.1";
|
|
42
42
|
|
|
43
43
|
/* eslint-disable react/no-unused-prop-types */
|
|
44
44
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -18,7 +18,7 @@ import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from
|
|
|
18
18
|
import FixedLayer from '../internal/fixed-layer';
|
|
19
19
|
import { convertTokens } from './utils';
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "12.
|
|
21
|
+
const packageVersion = "12.5.1";
|
|
22
22
|
|
|
23
23
|
/* eslint-disable react/no-unused-prop-types */
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@ import DatePicker from './date-picker';
|
|
|
17
17
|
import TimePicker from './time-picker';
|
|
18
18
|
import { convertTokens } from './utils';
|
|
19
19
|
const packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
const packageVersion = "12.
|
|
20
|
+
const packageVersion = "12.5.1";
|
|
21
21
|
|
|
22
22
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
23
|
|
|
@@ -16,7 +16,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
16
16
|
import parseTime from '../internal/parse-time';
|
|
17
17
|
import { convertTokens } from './utils';
|
|
18
18
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "12.
|
|
19
|
+
const packageVersion = "12.5.1";
|
|
20
20
|
|
|
21
21
|
/* eslint-disable react/no-unused-prop-types */
|
|
22
22
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -29,7 +29,7 @@ import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from
|
|
|
29
29
|
import FixedLayer from '../internal/fixed-layer';
|
|
30
30
|
import { convertTokens } from './utils';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "12.
|
|
32
|
+
var packageVersion = "12.5.1";
|
|
33
33
|
|
|
34
34
|
/* eslint-disable react/no-unused-prop-types */
|
|
35
35
|
|
|
@@ -27,7 +27,7 @@ import DatePicker from './date-picker';
|
|
|
27
27
|
import TimePicker from './time-picker';
|
|
28
28
|
import { convertTokens } from './utils';
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "12.
|
|
30
|
+
var packageVersion = "12.5.1";
|
|
31
31
|
|
|
32
32
|
/* eslint-disable react/no-unused-prop-types */
|
|
33
33
|
|
|
@@ -29,7 +29,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
29
29
|
import parseTime from '../internal/parse-time';
|
|
30
30
|
import { convertTokens } from './utils';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "12.
|
|
32
|
+
var packageVersion = "12.5.1";
|
|
33
33
|
|
|
34
34
|
/* eslint-disable react/no-unused-prop-types */
|
|
35
35
|
|
package/dist/esm/version.json
CHANGED
|
@@ -152,7 +152,7 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
152
152
|
*/
|
|
153
153
|
weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
type DatePickerProps = typeof datePickerDefaultProps & DatePickerBaseProps;
|
|
156
156
|
interface State {
|
|
157
157
|
isOpen: boolean;
|
|
158
158
|
/**
|
|
@@ -115,7 +115,7 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
115
115
|
*/
|
|
116
116
|
testId?: string;
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
type DateTimePickerProps = typeof dateTimePickerDefaultProps & DateTimePickerBaseProps;
|
|
119
119
|
interface State {
|
|
120
120
|
active: 0 | 1 | 2;
|
|
121
121
|
dateValue: string;
|
|
@@ -112,7 +112,7 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
112
112
|
*/
|
|
113
113
|
testId?: string;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
type TimePickerProps = typeof timePickerDefaultProps & TimePickerBaseProps;
|
|
116
116
|
interface State {
|
|
117
117
|
isOpen: boolean;
|
|
118
118
|
/**
|
|
@@ -179,7 +179,7 @@ declare class TimePicker extends React.Component<TimePickerProps, State> {
|
|
|
179
179
|
UNSAFE_componentWillReceiveProps(nextProps: TimePickerProps): void;
|
|
180
180
|
getSafeState: () => State;
|
|
181
181
|
getOptions(): Array<Option>;
|
|
182
|
-
onChange: (newValue: ValueType<OptionType> | string, action?: ActionMeta<OptionType>
|
|
182
|
+
onChange: (newValue: ValueType<OptionType> | string, action?: ActionMeta<OptionType>) => void;
|
|
183
183
|
/**
|
|
184
184
|
* Only allow custom times if timeIsEditable prop is true
|
|
185
185
|
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type Appearance = 'default' | 'subtle' | 'none';
|
|
2
|
+
export type Spacing = 'compact' | 'default';
|
|
3
|
+
export type SelectProps = any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.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/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -24,15 +32,15 @@
|
|
|
24
32
|
}
|
|
25
33
|
},
|
|
26
34
|
"dependencies": {
|
|
27
|
-
"@atlaskit/analytics-next": "^9.
|
|
28
|
-
"@atlaskit/calendar": "^13.
|
|
29
|
-
"@atlaskit/ds-lib": "^2.
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
31
|
-
"@atlaskit/locale": "^2.
|
|
32
|
-
"@atlaskit/popper": "^5.
|
|
33
|
-
"@atlaskit/select": "^16.
|
|
34
|
-
"@atlaskit/theme": "^12.
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
36
|
+
"@atlaskit/calendar": "^13.1.0",
|
|
37
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
|
+
"@atlaskit/icon": "^21.12.0",
|
|
39
|
+
"@atlaskit/locale": "^2.4.0",
|
|
40
|
+
"@atlaskit/popper": "^5.5.0",
|
|
41
|
+
"@atlaskit/select": "^16.2.0",
|
|
42
|
+
"@atlaskit/theme": "^12.5.0",
|
|
43
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
44
|
"@babel/runtime": "^7.0.0",
|
|
37
45
|
"@emotion/react": "^11.7.1",
|
|
38
46
|
"date-fns": "^2.17.0",
|
|
@@ -43,17 +51,17 @@
|
|
|
43
51
|
"react": "^16.8.0"
|
|
44
52
|
},
|
|
45
53
|
"devDependencies": {
|
|
46
|
-
"@atlaskit/button": "^16.
|
|
54
|
+
"@atlaskit/button": "^16.7.0",
|
|
47
55
|
"@atlaskit/docs": "*",
|
|
48
|
-
"@atlaskit/field-base": "^15.
|
|
49
|
-
"@atlaskit/form": "^8.
|
|
50
|
-
"@atlaskit/modal-dialog": "^12.
|
|
51
|
-
"@atlaskit/popup": "^1.
|
|
52
|
-
"@atlaskit/range": "^7.
|
|
53
|
-
"@atlaskit/section-message": "^6.
|
|
56
|
+
"@atlaskit/field-base": "^15.2.0",
|
|
57
|
+
"@atlaskit/form": "^8.11.0",
|
|
58
|
+
"@atlaskit/modal-dialog": "^12.5.0",
|
|
59
|
+
"@atlaskit/popup": "^1.6.0",
|
|
60
|
+
"@atlaskit/range": "^7.1.0",
|
|
61
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
54
62
|
"@atlaskit/ssr": "*",
|
|
55
|
-
"@atlaskit/textfield": "^5.
|
|
56
|
-
"@atlaskit/toggle": "^12.
|
|
63
|
+
"@atlaskit/textfield": "^5.4.0",
|
|
64
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
57
65
|
"@atlaskit/visual-regression": "*",
|
|
58
66
|
"@atlaskit/webdriver-runner": "*",
|
|
59
67
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -65,7 +73,7 @@
|
|
|
65
73
|
"react-dom": "^16.8.0",
|
|
66
74
|
"react-lorem-component": "^0.13.0",
|
|
67
75
|
"react-test-renderer": "^16.8.0",
|
|
68
|
-
"typescript": "4.
|
|
76
|
+
"typescript": "~4.9.5"
|
|
69
77
|
},
|
|
70
78
|
"techstack": {
|
|
71
79
|
"@atlassian/frontend": {
|