@atlaskit/editor-plugin-panel 4.4.4 → 4.4.6

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,23 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 4.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165113](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165113)
8
+ [`867bcb05452bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/867bcb05452bf) -
9
+ Cleaned up platform_editor_controls_patch_analytics and platform_editor_controls_patch_analytics_2
10
+ - Updated dependencies
11
+
12
+ ## 4.4.5
13
+
14
+ ### Patch Changes
15
+
16
+ - [#164877](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164877)
17
+ [`a79ceac2fb271`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a79ceac2fb271) -
18
+ clean up clean-up-platform_editor_nbm_backspace_fixes
19
+ - Updated dependencies
20
+
3
21
  ## 4.4.4
4
22
 
5
23
  ### Patch Changes
@@ -15,7 +15,6 @@ var _panel = require("@atlaskit/editor-common/panel");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
17
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _utils3 = require("../pm-plugins/utils/utils");
20
19
  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; }
21
20
  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; }
@@ -27,7 +26,7 @@ var removePanel = exports.removePanel = function removePanel(editorAnalyticsAPI)
27
26
  action: _analytics.ACTION.DELETED,
28
27
  actionSubject: _analytics.ACTION_SUBJECT.PANEL,
29
28
  attributes: {
30
- inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR
29
+ inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
31
30
  },
32
31
  eventType: _analytics.EVENT_TYPE.TRACK
33
32
  };
@@ -8,7 +8,6 @@ exports.keymapPlugin = keymapPlugin;
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
9
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
10
10
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  function findParentNode(selection, nodeType) {
13
12
  var parentPosition = (0, _utils2.findParentNodeOfType)(nodeType)(selection);
14
13
  if (parentPosition) {
@@ -60,7 +59,7 @@ function keymapPlugin() {
60
59
  var isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
61
60
 
62
61
  // identifies if new position after backspace is at the start of a non-bodied extension node
63
- var isPreviousPosAtExtension = (0, _platformFeatureFlags.fg)('platform_editor_nbm_backspace_fixes') && ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
62
+ var isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
64
63
 
65
64
  // Stops merging panels when deleting empty paragraph in between
66
65
  // Stops merging blockquotes with panels when deleting from start of blockquote
@@ -5,7 +5,6 @@ import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
5
5
  import { wrapSelectionIn } from '@atlaskit/editor-common/utils';
6
6
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { findParentNodeOfType, findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { findPanel } from '../pm-plugins/utils/utils';
10
9
  export const removePanel = editorAnalyticsAPI => (state, dispatch) => {
11
10
  const {
@@ -18,7 +17,7 @@ export const removePanel = editorAnalyticsAPI => (state, dispatch) => {
18
17
  action: ACTION.DELETED,
19
18
  actionSubject: ACTION_SUBJECT.PANEL,
20
19
  attributes: {
21
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
20
+ inputMethod: INPUT_METHOD.FLOATING_TB
22
21
  },
23
22
  eventType: EVENT_TYPE.TRACK
24
23
  };
@@ -1,7 +1,6 @@
1
1
  import { isEmptyNode } from '@atlaskit/editor-common/utils';
2
2
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
3
3
  import { findParentNodeOfType, hasParentNodeOfType, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  function findParentNode(selection, nodeType) {
6
5
  const parentPosition = findParentNodeOfType(nodeType)(selection);
7
6
  if (parentPosition) {
@@ -61,7 +60,7 @@ export function keymapPlugin() {
61
60
  const isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
62
61
 
63
62
  // identifies if new position after backspace is at the start of a non-bodied extension node
64
- const isPreviousPosAtExtension = fg('platform_editor_nbm_backspace_fixes') && ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
63
+ const isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
65
64
 
66
65
  // Stops merging panels when deleting empty paragraph in between
67
66
  // Stops merging blockquotes with panels when deleting from start of blockquote
@@ -8,7 +8,6 @@ import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
8
8
  import { wrapSelectionIn } from '@atlaskit/editor-common/utils';
9
9
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
10
10
  import { findParentNodeOfType, findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { findPanel } from '../pm-plugins/utils/utils';
13
12
  export var removePanel = function removePanel(editorAnalyticsAPI) {
14
13
  return function (state, dispatch) {
@@ -18,7 +17,7 @@ export var removePanel = function removePanel(editorAnalyticsAPI) {
18
17
  action: ACTION.DELETED,
19
18
  actionSubject: ACTION_SUBJECT.PANEL,
20
19
  attributes: {
21
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
20
+ inputMethod: INPUT_METHOD.FLOATING_TB
22
21
  },
23
22
  eventType: EVENT_TYPE.TRACK
24
23
  };
@@ -1,7 +1,6 @@
1
1
  import { isEmptyNode } from '@atlaskit/editor-common/utils';
2
2
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
3
3
  import { findParentNodeOfType, hasParentNodeOfType, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  function findParentNode(selection, nodeType) {
6
5
  var parentPosition = findParentNodeOfType(nodeType)(selection);
7
6
  if (parentPosition) {
@@ -53,7 +52,7 @@ export function keymapPlugin() {
53
52
  var isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
54
53
 
55
54
  // identifies if new position after backspace is at the start of a non-bodied extension node
56
- var isPreviousPosAtExtension = fg('platform_editor_nbm_backspace_fixes') && ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
55
+ var isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
57
56
 
58
57
  // Stops merging panels when deleting empty paragraph in between
59
58
  // Stops merging blockquotes with panels when deleting from start of blockquote
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,19 +32,19 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.6.0",
35
- "@atlaskit/editor-common": "^106.1.0",
35
+ "@atlaskit/editor-common": "^106.3.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
39
39
  "@atlaskit/editor-plugin-emoji": "^3.7.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.4.0",
42
- "@atlaskit/emoji": "^69.2.0",
42
+ "@atlaskit/emoji": "^69.3.0",
43
43
  "@atlaskit/icon": "^26.4.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/theme": "^18.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^5.7.0",
47
- "@atlaskit/tokens": "^5.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^5.14.0",
47
+ "@atlaskit/tokens": "^5.1.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "uuid": "^3.1.0"
50
50
  },
@@ -93,18 +93,12 @@
93
93
  }
94
94
  },
95
95
  "platform-feature-flags": {
96
- "platform_editor_nbm_backspace_fixes": {
97
- "type": "boolean"
98
- },
99
96
  "platform_editor_nested_dnd_styles_changes": {
100
97
  "type": "boolean"
101
98
  },
102
99
  "platform_editor_lcm_nested_panel_icon_fix": {
103
100
  "type": "boolean"
104
101
  },
105
- "platform_editor_controls_patch_analytics_2": {
106
- "type": "boolean"
107
- },
108
102
  "platform_editor_controls_patch_8": {
109
103
  "type": "boolean"
110
104
  }