@atlaskit/editor-plugin-date 10.0.9 → 10.0.11

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,17 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 10.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.10
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 10.0.9
4
16
 
5
17
  ### Patch Changes
@@ -77,7 +77,9 @@ function ContentComponent(_ref) {
77
77
  key: showDatePickerAt,
78
78
  element: dateNode,
79
79
  isNew: isNew,
80
- autoFocus: focusDateInput,
80
+ autoFocus: focusDateInput
81
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
82
+ ,
81
83
  onDelete: function onDelete() {
82
84
  var _dependencyApi$core;
83
85
  if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
@@ -85,7 +87,9 @@ function ContentComponent(_ref) {
85
87
  }
86
88
  dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute((0, _commands.deleteDateCommand)(dependencyApi));
87
89
  editorView === null || editorView === void 0 || editorView.focus();
88
- },
90
+ }
91
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
92
+ ,
89
93
  onSelect: function onSelect(date, commitMethod) {
90
94
  var _dependencyApi$core2;
91
95
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
@@ -100,21 +104,27 @@ function ContentComponent(_ref) {
100
104
  commitMethod: commitMethod
101
105
  }));
102
106
  editorView === null || editorView === void 0 || editorView.focus();
103
- },
107
+ }
108
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
109
+ ,
104
110
  onTextChanged: function onTextChanged(date) {
105
111
  var _dependencyApi$core3;
106
112
  dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
107
113
  date: date,
108
114
  enterPressed: false
109
115
  }));
110
- },
116
+ }
117
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
118
+ ,
111
119
  closeDatePicker: function closeDatePicker() {
112
120
  if (!editorView) {
113
121
  return;
114
122
  }
115
123
  (0, _actions.closeDatePicker)()(editorView.state, editorView.dispatch);
116
124
  editorView === null || editorView === void 0 || editorView.focus();
117
- },
125
+ }
126
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
127
+ ,
118
128
  closeDatePickerWithAnalytics: function closeDatePickerWithAnalytics(_ref2) {
119
129
  var date = _ref2.date;
120
130
  if (!editorView) {
@@ -138,7 +138,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
138
138
  // Ignored via go/ees005
139
139
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
140
140
  , {
141
- target: element,
141
+ target: element
142
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
143
+ ,
142
144
  offset: [0, 8],
143
145
  fitHeight: 370,
144
146
  fitWidth: 340,
@@ -170,7 +172,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
170
172
  autoFocus: autoFocus,
171
173
  autoSelectAll: isNew
172
174
  }), /*#__PURE__*/_react.default.createElement(_calendar.default, {
173
- onChange: _this2.handleOnChange,
175
+ onChange: _this2.handleOnChange
176
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
177
+ ,
174
178
  onSelect: function onSelect(date) {
175
179
  return _onSelect(date, _analytics.INPUT_METHOD.PICKER);
176
180
  },
@@ -64,7 +64,9 @@ function ContentComponent({
64
64
  key: showDatePickerAt,
65
65
  element: dateNode,
66
66
  isNew: isNew,
67
- autoFocus: focusDateInput,
67
+ autoFocus: focusDateInput
68
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
69
+ ,
68
70
  onDelete: () => {
69
71
  var _dependencyApi$core;
70
72
  if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
@@ -72,7 +74,9 @@ function ContentComponent({
72
74
  }
73
75
  dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 ? void 0 : _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
74
76
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
75
- },
77
+ }
78
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
79
+ ,
76
80
  onSelect: (date, commitMethod) => {
77
81
  var _dependencyApi$core2;
78
82
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
@@ -87,21 +91,27 @@ function ContentComponent({
87
91
  commitMethod
88
92
  }));
89
93
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
90
- },
94
+ }
95
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
96
+ ,
91
97
  onTextChanged: date => {
92
98
  var _dependencyApi$core3;
93
99
  dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 ? void 0 : _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
94
100
  date,
95
101
  enterPressed: false
96
102
  }));
97
- },
103
+ }
104
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
105
+ ,
98
106
  closeDatePicker: () => {
99
107
  if (!editorView) {
100
108
  return;
101
109
  }
102
110
  closeDatePicker()(editorView.state, editorView.dispatch);
103
111
  editorView === null || editorView === void 0 ? void 0 : editorView.focus();
104
- },
112
+ }
113
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
114
+ ,
105
115
  closeDatePickerWithAnalytics: ({
106
116
  date
107
117
  }) => {
@@ -124,7 +124,9 @@ class DatePicker extends React.Component {
124
124
  // Ignored via go/ees005
125
125
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
126
126
  , {
127
- target: element,
127
+ target: element
128
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
129
+ ,
128
130
  offset: [0, 8],
129
131
  fitHeight: 370,
130
132
  fitWidth: 340,
@@ -151,7 +153,9 @@ class DatePicker extends React.Component {
151
153
  autoFocus: autoFocus,
152
154
  autoSelectAll: isNew
153
155
  }), /*#__PURE__*/React.createElement(Calendar, {
154
- onChange: this.handleOnChange,
156
+ onChange: this.handleOnChange
157
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
158
+ ,
155
159
  onSelect: date => onSelect(date, INPUT_METHOD.PICKER),
156
160
  day: day,
157
161
  month: month,
@@ -66,7 +66,9 @@ function ContentComponent(_ref) {
66
66
  key: showDatePickerAt,
67
67
  element: dateNode,
68
68
  isNew: isNew,
69
- autoFocus: focusDateInput,
69
+ autoFocus: focusDateInput
70
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
71
+ ,
70
72
  onDelete: function onDelete() {
71
73
  var _dependencyApi$core;
72
74
  if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && !editorView) {
@@ -74,7 +76,9 @@ function ContentComponent(_ref) {
74
76
  }
75
77
  dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
76
78
  editorView === null || editorView === void 0 || editorView.focus();
77
- },
79
+ }
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
+ ,
78
82
  onSelect: function onSelect(date, commitMethod) {
79
83
  var _dependencyApi$core2;
80
84
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
@@ -89,21 +93,27 @@ function ContentComponent(_ref) {
89
93
  commitMethod: commitMethod
90
94
  }));
91
95
  editorView === null || editorView === void 0 || editorView.focus();
92
- },
96
+ }
97
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
98
+ ,
93
99
  onTextChanged: function onTextChanged(date) {
94
100
  var _dependencyApi$core3;
95
101
  dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
96
102
  date: date,
97
103
  enterPressed: false
98
104
  }));
99
- },
105
+ }
106
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
107
+ ,
100
108
  closeDatePicker: function closeDatePicker() {
101
109
  if (!editorView) {
102
110
  return;
103
111
  }
104
112
  _closeDatePicker()(editorView.state, editorView.dispatch);
105
113
  editorView === null || editorView === void 0 || editorView.focus();
106
- },
114
+ }
115
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
116
+ ,
107
117
  closeDatePickerWithAnalytics: function closeDatePickerWithAnalytics(_ref2) {
108
118
  var date = _ref2.date;
109
119
  if (!editorView) {
@@ -132,7 +132,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
132
132
  // Ignored via go/ees005
133
133
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
134
134
  , {
135
- target: element,
135
+ target: element
136
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
137
+ ,
136
138
  offset: [0, 8],
137
139
  fitHeight: 370,
138
140
  fitWidth: 340,
@@ -164,7 +166,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
164
166
  autoFocus: autoFocus,
165
167
  autoSelectAll: isNew
166
168
  }), /*#__PURE__*/React.createElement(Calendar, {
167
- onChange: _this2.handleOnChange,
169
+ onChange: _this2.handleOnChange
170
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
171
+ ,
168
172
  onSelect: function onSelect(date) {
169
173
  return _onSelect(date, INPUT_METHOD.PICKER);
170
174
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "10.0.9",
3
+ "version": "10.0.11",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/textfield": "^8.2.0",
46
46
  "@atlaskit/theme": "^22.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^42.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
48
48
  "@atlaskit/tokens": "^11.1.0",
49
49
  "@atlaskit/visually-hidden": "^3.0.0",
50
50
  "@babel/runtime": "^7.0.0",