@atlaskit/editor-plugin-date 4.3.6 → 4.3.8

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,20 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 4.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.3.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#160577](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/160577)
14
+ [`bd533bfddae0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd533bfddae0c) -
15
+ Cleaned up popup fg
16
+ - Updated dependencies
17
+
3
18
  ## 4.3.6
4
19
 
5
20
  ### Patch Changes
@@ -9,7 +9,6 @@ exports.onSelectionChanged = onSelectionChanged;
9
9
  exports.reducer = reducer;
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _state = require("@atlaskit/editor-prosemirror/state");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  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; }
14
13
  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; }
15
14
  function reducer(pluginState, meta) {
@@ -37,23 +36,13 @@ function mapping(tr, pluginState) {
37
36
  var _tr$mapping$mapResult = tr.mapping.mapResult(pluginState.showDatePickerAt),
38
37
  pos = _tr$mapping$mapResult.pos,
39
38
  deleted = _tr$mapping$mapResult.deleted;
40
- if ((0, _platformFeatureFlags.fg)('platform_editor_ed-27630_date_popup_deleted_node')) {
41
- return {
42
- showDatePickerAt: deleted ? null : pos,
43
- isNew: pluginState.isNew,
44
- isDateEmpty: pluginState.isDateEmpty,
45
- focusDateInput: pluginState.focusDateInput,
46
- isInitialised: pluginState.isInitialised
47
- };
48
- } else {
49
- return {
50
- showDatePickerAt: pos,
51
- isNew: pluginState.isNew,
52
- isDateEmpty: pluginState.isDateEmpty,
53
- focusDateInput: pluginState.focusDateInput,
54
- isInitialised: pluginState.isInitialised
55
- };
56
- }
39
+ return {
40
+ showDatePickerAt: deleted ? null : pos,
41
+ isNew: pluginState.isNew,
42
+ isDateEmpty: pluginState.isDateEmpty,
43
+ focusDateInput: pluginState.focusDateInput,
44
+ isInitialised: pluginState.isInitialised
45
+ };
57
46
  }
58
47
  function onSelectionChanged(tr, pluginState) {
59
48
  if (tr.docChanged && isDateNodeSelection(tr.selection)) {
@@ -1,5 +1,4 @@
1
1
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  export function reducer(pluginState, meta) {
4
3
  // If the same nodeview is clicked twice, calendar should close
5
4
  if (meta.showDatePickerAt === pluginState.showDatePickerAt) {
@@ -36,23 +35,13 @@ export function mapping(tr, pluginState) {
36
35
  pos,
37
36
  deleted
38
37
  } = tr.mapping.mapResult(pluginState.showDatePickerAt);
39
- if (fg('platform_editor_ed-27630_date_popup_deleted_node')) {
40
- return {
41
- showDatePickerAt: deleted ? null : pos,
42
- isNew: pluginState.isNew,
43
- isDateEmpty: pluginState.isDateEmpty,
44
- focusDateInput: pluginState.focusDateInput,
45
- isInitialised: pluginState.isInitialised
46
- };
47
- } else {
48
- return {
49
- showDatePickerAt: pos,
50
- isNew: pluginState.isNew,
51
- isDateEmpty: pluginState.isDateEmpty,
52
- focusDateInput: pluginState.focusDateInput,
53
- isInitialised: pluginState.isInitialised
54
- };
55
- }
38
+ return {
39
+ showDatePickerAt: deleted ? null : pos,
40
+ isNew: pluginState.isNew,
41
+ isDateEmpty: pluginState.isDateEmpty,
42
+ focusDateInput: pluginState.focusDateInput,
43
+ isInitialised: pluginState.isInitialised
44
+ };
56
45
  }
57
46
  export function onSelectionChanged(tr, pluginState) {
58
47
  if (tr.docChanged && isDateNodeSelection(tr.selection)) {
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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) { _defineProperty(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; }
4
4
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  export function reducer(pluginState, meta) {
7
6
  // If the same nodeview is clicked twice, calendar should close
8
7
  if (meta.showDatePickerAt === pluginState.showDatePickerAt) {
@@ -28,23 +27,13 @@ export function mapping(tr, pluginState) {
28
27
  var _tr$mapping$mapResult = tr.mapping.mapResult(pluginState.showDatePickerAt),
29
28
  pos = _tr$mapping$mapResult.pos,
30
29
  deleted = _tr$mapping$mapResult.deleted;
31
- if (fg('platform_editor_ed-27630_date_popup_deleted_node')) {
32
- return {
33
- showDatePickerAt: deleted ? null : pos,
34
- isNew: pluginState.isNew,
35
- isDateEmpty: pluginState.isDateEmpty,
36
- focusDateInput: pluginState.focusDateInput,
37
- isInitialised: pluginState.isInitialised
38
- };
39
- } else {
40
- return {
41
- showDatePickerAt: pos,
42
- isNew: pluginState.isNew,
43
- isDateEmpty: pluginState.isDateEmpty,
44
- focusDateInput: pluginState.focusDateInput,
45
- isInitialised: pluginState.isInitialised
46
- };
47
- }
30
+ return {
31
+ showDatePickerAt: deleted ? null : pos,
32
+ isNew: pluginState.isNew,
33
+ isDateEmpty: pluginState.isDateEmpty,
34
+ focusDateInput: pluginState.focusDateInput,
35
+ isInitialised: pluginState.isInitialised
36
+ };
48
37
  }
49
38
  export function onSelectionChanged(tr, pluginState) {
50
39
  if (tr.docChanged && isDateNodeSelection(tr.selection)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "4.3.6",
3
+ "version": "4.3.8",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,20 +37,20 @@
37
37
  "@atlaskit/calendar": "^17.1.0",
38
38
  "@atlaskit/css": "^0.10.0",
39
39
  "@atlaskit/date": "^2.0.0",
40
- "@atlaskit/editor-common": "^105.10.0",
40
+ "@atlaskit/editor-common": "^106.0.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
42
- "@atlaskit/editor-plugin-annotation": "^2.8.0",
42
+ "@atlaskit/editor-plugin-annotation": "^2.9.0",
43
43
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
46
  "@atlaskit/editor-shared-styles": "^3.4.0",
47
47
  "@atlaskit/form": "^12.0.0",
48
- "@atlaskit/icon": "^26.3.0",
48
+ "@atlaskit/icon": "^26.4.0",
49
49
  "@atlaskit/locale": "^3.0.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/textfield": "^8.0.0",
52
52
  "@atlaskit/theme": "^18.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^5.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^5.2.0",
54
54
  "@atlaskit/tokens": "^4.9.0",
55
55
  "@atlaskit/visually-hidden": "^3.0.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -118,9 +118,6 @@
118
118
  },
119
119
  "editor_a11y_announce_date_picker_open": {
120
120
  "type": "boolean"
121
- },
122
- "platform_editor_ed-27630_date_popup_deleted_node": {
123
- "type": "boolean"
124
121
  }
125
122
  }
126
123
  }