@atlaskit/editor-plugin-date 13.0.2 → 13.0.3

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,16 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 13.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f7faa21a01fc7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f7faa21a01fc7) -
8
+ Cleanup stale feature gates and experiments now that they have shipped. The following
9
+ gates/experiments have been removed and their enabled paths kept as the permanent behaviour:
10
+ platform_editor_fix_scrolling_popup_position, platform_editor_table_resize_chromeless,
11
+ platform_editor_chromeless_akeditor_class, create_work_item_modernization_exp.
12
+ - Updated dependencies
13
+
3
14
  ## 13.0.2
4
15
 
5
16
  ### Patch Changes
@@ -21,7 +21,6 @@ var _messages = require("@atlaskit/editor-common/messages");
21
21
  var _form = require("@atlaskit/form");
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
23
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
24
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
25
24
  var _formatParse = require("./utils/formatParse");
26
25
  var _internal = require("./utils/internal");
27
26
  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)); }
@@ -139,7 +138,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
139
138
  }
140
139
 
141
140
  // focus trap for arrow keys in input field
142
- if ((0, _platformFeatureFlags.fg)('platform_editor_datepicker_focus_fix') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true)) {
141
+ if ((0, _platformFeatureFlags.fg)('platform_editor_datepicker_focus_fix')) {
143
142
  event.stopPropagation();
144
143
  }
145
144
  var dispatchAnalyticsEvent = _this.props.dispatchAnalyticsEvent;
@@ -228,7 +227,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
228
227
  this.inputRef.setSelectionRange(setInputSelectionPos, setInputSelectionPos);
229
228
  this.setInputSelectionPos = undefined;
230
229
  }
231
- var shouldFocusInput = (0, _platformFeatureFlags.fg)('platform_editor_datepicker_focus_fix') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true) ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
230
+ var shouldFocusInput = (0, _platformFeatureFlags.fg)('platform_editor_datepicker_focus_fix') ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
232
231
  if (this.inputRef && shouldFocusInput) {
233
232
  this.focusInput();
234
233
  }
@@ -9,7 +9,6 @@ import { dateMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { ErrorMessage } from '@atlaskit/form';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import TextField from '@atlaskit/textfield';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { formatDateType, parseDateType } from './utils/formatParse';
14
13
  import { adjustDate, findDateSegmentByPosition, isDatePossiblyValid } from './utils/internal';
15
14
 
@@ -129,7 +128,7 @@ class DatePickerInput extends React.Component {
129
128
  }
130
129
 
131
130
  // focus trap for arrow keys in input field
132
- if (fg('platform_editor_datepicker_focus_fix') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
131
+ if (fg('platform_editor_datepicker_focus_fix')) {
133
132
  event.stopPropagation();
134
133
  }
135
134
  const {
@@ -221,7 +220,7 @@ class DatePickerInput extends React.Component {
221
220
  this.inputRef.setSelectionRange(setInputSelectionPos, setInputSelectionPos);
222
221
  this.setInputSelectionPos = undefined;
223
222
  }
224
- const shouldFocusInput = fg('platform_editor_datepicker_focus_fix') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
223
+ const shouldFocusInput = fg('platform_editor_datepicker_focus_fix') ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
225
224
  if (this.inputRef && shouldFocusInput) {
226
225
  this.focusInput();
227
226
  }
@@ -16,7 +16,6 @@ import { dateMessages as messages } from '@atlaskit/editor-common/messages';
16
16
  import { ErrorMessage } from '@atlaskit/form';
17
17
  import { fg } from '@atlaskit/platform-feature-flags';
18
18
  import TextField from '@atlaskit/textfield';
19
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
19
  import { formatDateType, parseDateType } from './utils/formatParse';
21
20
  import { adjustDate, findDateSegmentByPosition, isDatePossiblyValid } from './utils/internal';
22
21
 
@@ -133,7 +132,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
133
132
  }
134
133
 
135
134
  // focus trap for arrow keys in input field
136
- if (fg('platform_editor_datepicker_focus_fix') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
135
+ if (fg('platform_editor_datepicker_focus_fix')) {
137
136
  event.stopPropagation();
138
137
  }
139
138
  var dispatchAnalyticsEvent = _this.props.dispatchAnalyticsEvent;
@@ -222,7 +221,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
222
221
  this.inputRef.setSelectionRange(setInputSelectionPos, setInputSelectionPos);
223
222
  this.setInputSelectionPos = undefined;
224
223
  }
225
- var shouldFocusInput = fg('platform_editor_datepicker_focus_fix') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
224
+ var shouldFocusInput = fg('platform_editor_datepicker_focus_fix') ? !prevProps.autoFocus && this.props.autoFocus : this.props.autoFocus;
226
225
  if (this.inputRef && shouldFocusInput) {
227
226
  this.focusInput();
228
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/locale": "^4.1.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/textfield": "^8.3.0",
46
- "@atlaskit/tmp-editor-statsig": "^90.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^91.0.0",
47
47
  "@atlaskit/tokens": "^13.3.0",
48
48
  "@atlaskit/visually-hidden": "^3.1.0",
49
49
  "@babel/runtime": "^7.0.0",