@atlaskit/editor-plugin-date 2.4.17 → 2.4.19
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 +12 -0
- package/dist/cjs/ui/DatePicker/date-picker-input.js +11 -14
- package/dist/cjs/ui/DatePicker/index.js +11 -14
- package/dist/esm/ui/DatePicker/date-picker-input.js +11 -14
- package/dist/esm/ui/DatePicker/index.js +11 -14
- package/dist/types/pm-plugins/actions.d.ts +12 -1
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +13 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _react2 = require("@emotion/react");
|
|
@@ -21,7 +20,7 @@ var _form = require("@atlaskit/form");
|
|
|
21
20
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
22
21
|
var _formatParse = require("./utils/formatParse");
|
|
23
22
|
var _internal = require("./utils/internal");
|
|
24
|
-
function
|
|
23
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
25
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
26
25
|
* @jsxRuntime classic
|
|
27
26
|
* @jsx jsx
|
|
@@ -34,16 +33,14 @@ var dateTextFieldWrapper = (0, _react2.css)({
|
|
|
34
33
|
});
|
|
35
34
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
36
35
|
var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
37
|
-
(0, _inherits2.default)(DatePickerInput, _React$Component);
|
|
38
|
-
var _super = _createSuper(DatePickerInput);
|
|
39
36
|
function DatePickerInput(props) {
|
|
40
37
|
var _this;
|
|
41
38
|
(0, _classCallCheck2.default)(this, DatePickerInput);
|
|
42
|
-
_this =
|
|
39
|
+
_this = _callSuper(this, DatePickerInput, [props]);
|
|
43
40
|
/**
|
|
44
41
|
* Focus the input textfield
|
|
45
42
|
*/
|
|
46
|
-
(0, _defineProperty2.default)(
|
|
43
|
+
(0, _defineProperty2.default)(_this, "focusInput", function () {
|
|
47
44
|
if (!_this.inputRef) {
|
|
48
45
|
return;
|
|
49
46
|
}
|
|
@@ -56,7 +53,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
56
53
|
/**
|
|
57
54
|
* Select all the input text
|
|
58
55
|
*/
|
|
59
|
-
(0, _defineProperty2.default)(
|
|
56
|
+
(0, _defineProperty2.default)(_this, "selectInput", function () {
|
|
60
57
|
if (!_this.inputRef) {
|
|
61
58
|
return;
|
|
62
59
|
}
|
|
@@ -66,7 +63,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
66
63
|
(_this$inputRef2 = _this.inputRef) === null || _this$inputRef2 === void 0 || _this$inputRef2.select();
|
|
67
64
|
});
|
|
68
65
|
});
|
|
69
|
-
(0, _defineProperty2.default)(
|
|
66
|
+
(0, _defineProperty2.default)(_this, "handleInputRef", function (ref) {
|
|
70
67
|
var _this$props = _this.props,
|
|
71
68
|
autoFocus = _this$props.autoFocus,
|
|
72
69
|
autoSelectAll = _this$props.autoSelectAll;
|
|
@@ -80,7 +77,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
80
77
|
_this.selectInput();
|
|
81
78
|
}
|
|
82
79
|
});
|
|
83
|
-
(0, _defineProperty2.default)(
|
|
80
|
+
(0, _defineProperty2.default)(_this, "handleChange", function (evt) {
|
|
84
81
|
var textFieldValue = evt.target.value;
|
|
85
82
|
var _this$props2 = _this.props,
|
|
86
83
|
locale = _this$props2.locale,
|
|
@@ -105,7 +102,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
105
102
|
});
|
|
106
103
|
}
|
|
107
104
|
});
|
|
108
|
-
(0, _defineProperty2.default)(
|
|
105
|
+
(0, _defineProperty2.default)(_this, "handleKeyPress", function (event) {
|
|
109
106
|
var _this$props3 = _this.props,
|
|
110
107
|
locale = _this$props3.locale,
|
|
111
108
|
dispatchAnalyticsEvent = _this$props3.dispatchAnalyticsEvent;
|
|
@@ -130,7 +127,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
130
127
|
_this.props.onSubmitDate(newDate);
|
|
131
128
|
});
|
|
132
129
|
// arrow keys are only triggered by onKeyDown, not onKeyPress
|
|
133
|
-
(0, _defineProperty2.default)(
|
|
130
|
+
(0, _defineProperty2.default)(_this, "handleKeyDown", function (event) {
|
|
134
131
|
var _this$inputRef3;
|
|
135
132
|
var dateString = event.target.value;
|
|
136
133
|
var locale = _this.props.locale;
|
|
@@ -193,7 +190,8 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
193
190
|
};
|
|
194
191
|
return _this;
|
|
195
192
|
}
|
|
196
|
-
(0,
|
|
193
|
+
(0, _inherits2.default)(DatePickerInput, _React$Component);
|
|
194
|
+
return (0, _createClass2.default)(DatePickerInput, [{
|
|
197
195
|
key: "render",
|
|
198
196
|
value: function render() {
|
|
199
197
|
var _this$props4 = this.props,
|
|
@@ -246,6 +244,5 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
246
244
|
}
|
|
247
245
|
}
|
|
248
246
|
}]);
|
|
249
|
-
return DatePickerInput;
|
|
250
247
|
}(_react.default.Component);
|
|
251
248
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(DatePickerInput);
|
|
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _react2 = require("@emotion/react");
|
|
@@ -23,7 +22,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
23
22
|
var _colors = require("@atlaskit/theme/colors");
|
|
24
23
|
var _constants = require("@atlaskit/theme/constants");
|
|
25
24
|
var _datePickerInput = _interopRequireDefault(require("./date-picker-input"));
|
|
26
|
-
function
|
|
25
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
27
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
28
27
|
* @jsxRuntime classic
|
|
29
28
|
* @jsx jsx
|
|
@@ -39,25 +38,23 @@ var popupContentWrapper = (0, _react2.css)({
|
|
|
39
38
|
});
|
|
40
39
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
41
40
|
var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
42
|
-
(0, _inherits2.default)(DatePicker, _React$Component);
|
|
43
|
-
var _super = _createSuper(DatePicker);
|
|
44
41
|
function DatePicker(props) {
|
|
45
42
|
var _this;
|
|
46
43
|
(0, _classCallCheck2.default)(this, DatePicker);
|
|
47
|
-
_this =
|
|
48
|
-
(0, _defineProperty2.default)(
|
|
44
|
+
_this = _callSuper(this, DatePicker, [props]);
|
|
45
|
+
(0, _defineProperty2.default)(_this, "handleNewDate", function (date) {
|
|
49
46
|
_this.props.onTextChanged(date);
|
|
50
47
|
_this.setState({
|
|
51
48
|
latestValidDate: date
|
|
52
49
|
});
|
|
53
50
|
});
|
|
54
|
-
(0, _defineProperty2.default)(
|
|
51
|
+
(0, _defineProperty2.default)(_this, "handleKeyboardSubmitDate", function (date) {
|
|
55
52
|
_this.props.onSelect(date, _analytics.INPUT_METHOD.KEYBOARD);
|
|
56
53
|
});
|
|
57
|
-
(0, _defineProperty2.default)(
|
|
54
|
+
(0, _defineProperty2.default)(_this, "handleEmptySubmitDate", function () {
|
|
58
55
|
_this.props.onDelete();
|
|
59
56
|
});
|
|
60
|
-
(0, _defineProperty2.default)(
|
|
57
|
+
(0, _defineProperty2.default)(_this, "handleOnChange", function (_ref) {
|
|
61
58
|
var day = _ref.day,
|
|
62
59
|
month = _ref.month,
|
|
63
60
|
year = _ref.year;
|
|
@@ -70,12 +67,12 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
70
67
|
latestValidDate: date
|
|
71
68
|
});
|
|
72
69
|
});
|
|
73
|
-
(0, _defineProperty2.default)(
|
|
70
|
+
(0, _defineProperty2.default)(_this, "closeDatePickerWithAnalytics", function () {
|
|
74
71
|
_this.props.closeDatePickerWithAnalytics({
|
|
75
72
|
date: _this.state.latestValidDate
|
|
76
73
|
});
|
|
77
74
|
});
|
|
78
|
-
(0, _defineProperty2.default)(
|
|
75
|
+
(0, _defineProperty2.default)(_this, "handleRef", function (ref) {
|
|
79
76
|
var elm = ref;
|
|
80
77
|
if (elm) {
|
|
81
78
|
elm.focus();
|
|
@@ -102,7 +99,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
102
99
|
}
|
|
103
100
|
return _this;
|
|
104
101
|
}
|
|
105
|
-
(0,
|
|
102
|
+
(0, _inherits2.default)(DatePicker, _React$Component);
|
|
103
|
+
return (0, _createClass2.default)(DatePicker, [{
|
|
106
104
|
key: "render",
|
|
107
105
|
value: function render() {
|
|
108
106
|
var _this2 = this;
|
|
@@ -175,6 +173,5 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
175
173
|
}));
|
|
176
174
|
}
|
|
177
175
|
}]);
|
|
178
|
-
return DatePicker;
|
|
179
176
|
}(_react.default.Component);
|
|
180
177
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(DatePicker);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
/**
|
|
11
10
|
* @jsxRuntime classic
|
|
@@ -30,16 +29,14 @@ var dateTextFieldWrapper = css({
|
|
|
30
29
|
});
|
|
31
30
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
32
31
|
var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
33
|
-
_inherits(DatePickerInput, _React$Component);
|
|
34
|
-
var _super = _createSuper(DatePickerInput);
|
|
35
32
|
function DatePickerInput(props) {
|
|
36
33
|
var _this;
|
|
37
34
|
_classCallCheck(this, DatePickerInput);
|
|
38
|
-
_this =
|
|
35
|
+
_this = _callSuper(this, DatePickerInput, [props]);
|
|
39
36
|
/**
|
|
40
37
|
* Focus the input textfield
|
|
41
38
|
*/
|
|
42
|
-
_defineProperty(
|
|
39
|
+
_defineProperty(_this, "focusInput", function () {
|
|
43
40
|
if (!_this.inputRef) {
|
|
44
41
|
return;
|
|
45
42
|
}
|
|
@@ -52,7 +49,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
52
49
|
/**
|
|
53
50
|
* Select all the input text
|
|
54
51
|
*/
|
|
55
|
-
_defineProperty(
|
|
52
|
+
_defineProperty(_this, "selectInput", function () {
|
|
56
53
|
if (!_this.inputRef) {
|
|
57
54
|
return;
|
|
58
55
|
}
|
|
@@ -62,7 +59,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
62
59
|
(_this$inputRef2 = _this.inputRef) === null || _this$inputRef2 === void 0 || _this$inputRef2.select();
|
|
63
60
|
});
|
|
64
61
|
});
|
|
65
|
-
_defineProperty(
|
|
62
|
+
_defineProperty(_this, "handleInputRef", function (ref) {
|
|
66
63
|
var _this$props = _this.props,
|
|
67
64
|
autoFocus = _this$props.autoFocus,
|
|
68
65
|
autoSelectAll = _this$props.autoSelectAll;
|
|
@@ -76,7 +73,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
76
73
|
_this.selectInput();
|
|
77
74
|
}
|
|
78
75
|
});
|
|
79
|
-
_defineProperty(
|
|
76
|
+
_defineProperty(_this, "handleChange", function (evt) {
|
|
80
77
|
var textFieldValue = evt.target.value;
|
|
81
78
|
var _this$props2 = _this.props,
|
|
82
79
|
locale = _this$props2.locale,
|
|
@@ -101,7 +98,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
101
98
|
});
|
|
102
99
|
}
|
|
103
100
|
});
|
|
104
|
-
_defineProperty(
|
|
101
|
+
_defineProperty(_this, "handleKeyPress", function (event) {
|
|
105
102
|
var _this$props3 = _this.props,
|
|
106
103
|
locale = _this$props3.locale,
|
|
107
104
|
dispatchAnalyticsEvent = _this$props3.dispatchAnalyticsEvent;
|
|
@@ -126,7 +123,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
126
123
|
_this.props.onSubmitDate(newDate);
|
|
127
124
|
});
|
|
128
125
|
// arrow keys are only triggered by onKeyDown, not onKeyPress
|
|
129
|
-
_defineProperty(
|
|
126
|
+
_defineProperty(_this, "handleKeyDown", function (event) {
|
|
130
127
|
var _this$inputRef3;
|
|
131
128
|
var dateString = event.target.value;
|
|
132
129
|
var locale = _this.props.locale;
|
|
@@ -189,7 +186,8 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
189
186
|
};
|
|
190
187
|
return _this;
|
|
191
188
|
}
|
|
192
|
-
|
|
189
|
+
_inherits(DatePickerInput, _React$Component);
|
|
190
|
+
return _createClass(DatePickerInput, [{
|
|
193
191
|
key: "render",
|
|
194
192
|
value: function render() {
|
|
195
193
|
var _this$props4 = this.props,
|
|
@@ -242,6 +240,5 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
242
240
|
}
|
|
243
241
|
}
|
|
244
242
|
}]);
|
|
245
|
-
return DatePickerInput;
|
|
246
243
|
}(React.Component);
|
|
247
244
|
export default injectIntl(DatePickerInput);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
/**
|
|
11
10
|
* @jsxRuntime classic
|
|
@@ -36,25 +35,23 @@ var popupContentWrapper = css({
|
|
|
36
35
|
});
|
|
37
36
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
38
37
|
var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
_inherits(DatePicker, _React$Component);
|
|
40
|
-
var _super = _createSuper(DatePicker);
|
|
41
38
|
function DatePicker(props) {
|
|
42
39
|
var _this;
|
|
43
40
|
_classCallCheck(this, DatePicker);
|
|
44
|
-
_this =
|
|
45
|
-
_defineProperty(
|
|
41
|
+
_this = _callSuper(this, DatePicker, [props]);
|
|
42
|
+
_defineProperty(_this, "handleNewDate", function (date) {
|
|
46
43
|
_this.props.onTextChanged(date);
|
|
47
44
|
_this.setState({
|
|
48
45
|
latestValidDate: date
|
|
49
46
|
});
|
|
50
47
|
});
|
|
51
|
-
_defineProperty(
|
|
48
|
+
_defineProperty(_this, "handleKeyboardSubmitDate", function (date) {
|
|
52
49
|
_this.props.onSelect(date, INPUT_METHOD.KEYBOARD);
|
|
53
50
|
});
|
|
54
|
-
_defineProperty(
|
|
51
|
+
_defineProperty(_this, "handleEmptySubmitDate", function () {
|
|
55
52
|
_this.props.onDelete();
|
|
56
53
|
});
|
|
57
|
-
_defineProperty(
|
|
54
|
+
_defineProperty(_this, "handleOnChange", function (_ref) {
|
|
58
55
|
var day = _ref.day,
|
|
59
56
|
month = _ref.month,
|
|
60
57
|
year = _ref.year;
|
|
@@ -67,12 +64,12 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
67
64
|
latestValidDate: date
|
|
68
65
|
});
|
|
69
66
|
});
|
|
70
|
-
_defineProperty(
|
|
67
|
+
_defineProperty(_this, "closeDatePickerWithAnalytics", function () {
|
|
71
68
|
_this.props.closeDatePickerWithAnalytics({
|
|
72
69
|
date: _this.state.latestValidDate
|
|
73
70
|
});
|
|
74
71
|
});
|
|
75
|
-
_defineProperty(
|
|
72
|
+
_defineProperty(_this, "handleRef", function (ref) {
|
|
76
73
|
var elm = ref;
|
|
77
74
|
if (elm) {
|
|
78
75
|
elm.focus();
|
|
@@ -99,7 +96,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
99
96
|
}
|
|
100
97
|
return _this;
|
|
101
98
|
}
|
|
102
|
-
|
|
99
|
+
_inherits(DatePicker, _React$Component);
|
|
100
|
+
return _createClass(DatePicker, [{
|
|
103
101
|
key: "render",
|
|
104
102
|
value: function render() {
|
|
105
103
|
var _this2 = this;
|
|
@@ -172,6 +170,5 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
172
170
|
}));
|
|
173
171
|
}
|
|
174
172
|
}]);
|
|
175
|
-
return DatePicker;
|
|
176
173
|
}(React.Component);
|
|
177
174
|
export default injectIntl(DatePicker);
|
|
@@ -108,7 +108,18 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
|
|
|
108
108
|
actions: {
|
|
109
109
|
applyViewModeStepAt: (tr: Transaction) => boolean;
|
|
110
110
|
};
|
|
111
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
111
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
112
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
113
|
+
dependencies: [];
|
|
114
|
+
pluginConfiguration?: {
|
|
115
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
commands: {
|
|
118
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
119
|
+
};
|
|
120
|
+
}, {
|
|
121
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
122
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
112
123
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
113
124
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
114
125
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -129,6 +129,19 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
|
|
|
129
129
|
applyViewModeStepAt: (tr: Transaction) => boolean;
|
|
130
130
|
};
|
|
131
131
|
}, undefined>>,
|
|
132
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
133
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
134
|
+
dependencies: [
|
|
135
|
+
];
|
|
136
|
+
pluginConfiguration?: {
|
|
137
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
commands: {
|
|
140
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
144
|
+
} | undefined>>,
|
|
132
145
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
133
146
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
134
147
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.19",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/calendar": "^
|
|
35
|
+
"@atlaskit/calendar": "^16.0.0",
|
|
36
36
|
"@atlaskit/date": "^0.11.0",
|
|
37
|
-
"@atlaskit/editor-common": "^96.
|
|
37
|
+
"@atlaskit/editor-common": "^96.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
39
|
-
"@atlaskit/editor-plugin-annotation": "1.26.
|
|
39
|
+
"@atlaskit/editor-plugin-annotation": "1.26.3",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
62
62
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
63
63
|
"@atlaskit/editor-plugin-quick-insert": "^1.8.0",
|
|
64
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
64
|
+
"@atlaskit/editor-plugin-selection": "^1.6.0",
|
|
65
65
|
"@atlaskit/editor-plugin-table": "^8.4.0",
|
|
66
66
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.12.0",
|
|
67
67
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|