@atlaskit/editor-plugin-text-formatting 6.1.11 → 6.1.13

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,19 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 6.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
8
+ tsignores added for help-center local consumpton removed
9
+ - Updated dependencies
10
+
11
+ ## 6.1.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 6.1.11
4
18
 
5
19
  ### Patch Changes
@@ -11,13 +11,11 @@ var pluginKey = exports.pluginKey = new _state.PluginKey('clearFormattingPlugin'
11
11
  var plugin = exports.plugin = function plugin(dispatch) {
12
12
  return new _safePlugin.SafePlugin({
13
13
  state: {
14
- // @ts-ignore - Workaround for help-center local consumption
15
14
  init: function init(_config, state) {
16
15
  return {
17
16
  formattingIsPresent: (0, _utils.checkFormattingIsPresent)(state)
18
17
  };
19
18
  },
20
- // @ts-ignore - Workaround for help-center local consumption
21
19
  apply: function apply(_tr, pluginState, _oldState, newState) {
22
20
  var formattingIsPresent = (0, _utils.checkFormattingIsPresent)(newState);
23
21
  if (formattingIsPresent !== pluginState.formattingIsPresent) {
@@ -9,7 +9,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
9
9
  // eslint-disable-next-line import/no-anonymous-default-export
10
10
  var _default = exports.default = new _safePlugin.SafePlugin({
11
11
  props: {
12
- // @ts-ignore - Workaround for help-center local consumption
13
12
  handleClick: function handleClick(view, clickPos, event) {
14
13
  // Don't apply in Edge as per ED-4546
15
14
  // Ignored via go/ees005
@@ -119,7 +119,6 @@ function keymapPlugin(schema, editorAnalyticsAPI) {
119
119
  };
120
120
  return new _safePlugin.SafePlugin({
121
121
  props: {
122
- // @ts-ignore - Workaround for help-center local consumption
123
122
  handleKeyDown: function handleKeyDown(view, event) {
124
123
  var keyboardEvent = (0, _keymaps.isCapsLockOnAndModifyKeyboardEvent)(event);
125
124
  var keymapList = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? getEnabledKeylist(view) : list;
@@ -65,10 +65,7 @@ var getTextFormattingState = function getTextFormattingState(editorState, editor
65
65
  type: 'sub'
66
66
  }), 'subscript'], [subsup === null || subsup === void 0 ? void 0 : subsup.create({
67
67
  type: 'sup'
68
- }), 'superscript']]
69
-
70
- // @ts-ignore - Workaround for help-center local consumption
71
- .filter(function (_ref) {
68
+ }), 'superscript']].filter(function (_ref) {
72
69
  var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
73
70
  mark = _ref2[0];
74
71
  return mark;
@@ -135,11 +132,9 @@ var getTextFormattingState = function getTextFormattingState(editorState, editor
135
132
  var plugin = exports.plugin = function plugin(dispatch, editorAnalyticsAPI) {
136
133
  return new _safePlugin.SafePlugin({
137
134
  state: {
138
- // @ts-ignore - Workaround for help-center local consumption
139
135
  init: function init(_config, state) {
140
136
  return getTextFormattingState(state, editorAnalyticsAPI);
141
137
  },
142
- // @ts-ignore - Workaround for help-center local consumption
143
138
  apply: function apply(_tr, pluginState, _oldState, newState) {
144
139
  var state = getTextFormattingState(newState, editorAnalyticsAPI);
145
140
  if (!(0, _utils.shallowEqual)(pluginState, state)) {
@@ -151,7 +146,6 @@ var plugin = exports.plugin = function plugin(dispatch, editorAnalyticsAPI) {
151
146
  },
152
147
  key: _pluginKey.pluginKey,
153
148
  props: {
154
- // @ts-ignore - Workaround for help-center local consumption
155
149
  handleKeyDown: function handleKeyDown(view, event) {
156
150
  var _pluginKey$getState;
157
151
  var state = view.state,
@@ -166,7 +160,6 @@ var plugin = exports.plugin = function plugin(dispatch, editorAnalyticsAPI) {
166
160
  }
167
161
  return false;
168
162
  },
169
- // @ts-ignore - Workaround for help-center local consumption
170
163
  handleTextInput: function handleTextInput(view, from, to, text) {
171
164
  var state = view.state,
172
165
  dispatch = view.dispatch;
@@ -4,15 +4,11 @@ import { checkFormattingIsPresent } from '../editor-commands/utils';
4
4
  export const pluginKey = new PluginKey('clearFormattingPlugin');
5
5
  export const plugin = dispatch => new SafePlugin({
6
6
  state: {
7
- // @ts-ignore - Workaround for help-center local consumption
8
-
9
7
  init(_config, state) {
10
8
  return {
11
9
  formattingIsPresent: checkFormattingIsPresent(state)
12
10
  };
13
11
  },
14
- // @ts-ignore - Workaround for help-center local consumption
15
-
16
12
  apply(_tr, pluginState, _oldState, newState) {
17
13
  const formattingIsPresent = checkFormattingIsPresent(newState);
18
14
  if (formattingIsPresent !== pluginState.formattingIsPresent) {
@@ -3,7 +3,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  // eslint-disable-next-line import/no-anonymous-default-export
4
4
  export default new SafePlugin({
5
5
  props: {
6
- // @ts-ignore - Workaround for help-center local consumption
7
6
  handleClick(view, clickPos, event) {
8
7
  // Don't apply in Edge as per ED-4546
9
8
  // Ignored via go/ees005
@@ -113,8 +113,6 @@ export default function keymapPlugin(schema, editorAnalyticsAPI) {
113
113
  };
114
114
  return new SafePlugin({
115
115
  props: {
116
- // @ts-ignore - Workaround for help-center local consumption
117
-
118
116
  handleKeyDown(view, event) {
119
117
  const keyboardEvent = isCapsLockOnAndModifyKeyboardEvent(event);
120
118
  const keymapList = editorExperiment('platform_editor_controls', 'variant1') ? getEnabledKeylist(view) : list;
@@ -55,10 +55,7 @@ const getTextFormattingState = (editorState, editorAnalyticsAPI) => {
55
55
  type: 'sub'
56
56
  }), 'subscript'], [subsup === null || subsup === void 0 ? void 0 : subsup.create({
57
57
  type: 'sup'
58
- }), 'superscript']]
59
-
60
- // @ts-ignore - Workaround for help-center local consumption
61
- .filter(([mark]) => mark);
58
+ }), 'superscript']].filter(([mark]) => mark);
62
59
  const marksToName = new Map(marks);
63
60
  const activeMarks = wholeSelectionHasMarks(editorState, Array.from(marksToName.keys()));
64
61
  for (const [mark, markName] of marks) {
@@ -109,13 +106,9 @@ const getTextFormattingState = (editorState, editorAnalyticsAPI) => {
109
106
  };
110
107
  export const plugin = (dispatch, editorAnalyticsAPI) => new SafePlugin({
111
108
  state: {
112
- // @ts-ignore - Workaround for help-center local consumption
113
-
114
109
  init(_config, state) {
115
110
  return getTextFormattingState(state, editorAnalyticsAPI);
116
111
  },
117
- // @ts-ignore - Workaround for help-center local consumption
118
-
119
112
  apply(_tr, pluginState, _oldState, newState) {
120
113
  const state = getTextFormattingState(newState, editorAnalyticsAPI);
121
114
  if (!shallowEqual(pluginState, state)) {
@@ -127,8 +120,6 @@ export const plugin = (dispatch, editorAnalyticsAPI) => new SafePlugin({
127
120
  },
128
121
  key: pluginKey,
129
122
  props: {
130
- // @ts-ignore - Workaround for help-center local consumption
131
-
132
123
  handleKeyDown(view, event) {
133
124
  var _pluginKey$getState;
134
125
  const {
@@ -145,8 +136,6 @@ export const plugin = (dispatch, editorAnalyticsAPI) => new SafePlugin({
145
136
  }
146
137
  return false;
147
138
  },
148
- // @ts-ignore - Workaround for help-center local consumption
149
-
150
139
  handleTextInput(view, from, to, text) {
151
140
  const {
152
141
  state,
@@ -5,13 +5,11 @@ export var pluginKey = new PluginKey('clearFormattingPlugin');
5
5
  export var plugin = function plugin(dispatch) {
6
6
  return new SafePlugin({
7
7
  state: {
8
- // @ts-ignore - Workaround for help-center local consumption
9
8
  init: function init(_config, state) {
10
9
  return {
11
10
  formattingIsPresent: checkFormattingIsPresent(state)
12
11
  };
13
12
  },
14
- // @ts-ignore - Workaround for help-center local consumption
15
13
  apply: function apply(_tr, pluginState, _oldState, newState) {
16
14
  var formattingIsPresent = checkFormattingIsPresent(newState);
17
15
  if (formattingIsPresent !== pluginState.formattingIsPresent) {
@@ -3,7 +3,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  // eslint-disable-next-line import/no-anonymous-default-export
4
4
  export default new SafePlugin({
5
5
  props: {
6
- // @ts-ignore - Workaround for help-center local consumption
7
6
  handleClick: function handleClick(view, clickPos, event) {
8
7
  // Don't apply in Edge as per ED-4546
9
8
  // Ignored via go/ees005
@@ -113,7 +113,6 @@ export default function keymapPlugin(schema, editorAnalyticsAPI) {
113
113
  };
114
114
  return new SafePlugin({
115
115
  props: {
116
- // @ts-ignore - Workaround for help-center local consumption
117
116
  handleKeyDown: function handleKeyDown(view, event) {
118
117
  var keyboardEvent = isCapsLockOnAndModifyKeyboardEvent(event);
119
118
  var keymapList = editorExperiment('platform_editor_controls', 'variant1') ? getEnabledKeylist(view) : list;
@@ -58,10 +58,7 @@ var getTextFormattingState = function getTextFormattingState(editorState, editor
58
58
  type: 'sub'
59
59
  }), 'subscript'], [subsup === null || subsup === void 0 ? void 0 : subsup.create({
60
60
  type: 'sup'
61
- }), 'superscript']]
62
-
63
- // @ts-ignore - Workaround for help-center local consumption
64
- .filter(function (_ref) {
61
+ }), 'superscript']].filter(function (_ref) {
65
62
  var _ref2 = _slicedToArray(_ref, 1),
66
63
  mark = _ref2[0];
67
64
  return mark;
@@ -128,11 +125,9 @@ var getTextFormattingState = function getTextFormattingState(editorState, editor
128
125
  export var plugin = function plugin(dispatch, editorAnalyticsAPI) {
129
126
  return new SafePlugin({
130
127
  state: {
131
- // @ts-ignore - Workaround for help-center local consumption
132
128
  init: function init(_config, state) {
133
129
  return getTextFormattingState(state, editorAnalyticsAPI);
134
130
  },
135
- // @ts-ignore - Workaround for help-center local consumption
136
131
  apply: function apply(_tr, pluginState, _oldState, newState) {
137
132
  var state = getTextFormattingState(newState, editorAnalyticsAPI);
138
133
  if (!shallowEqual(pluginState, state)) {
@@ -144,7 +139,6 @@ export var plugin = function plugin(dispatch, editorAnalyticsAPI) {
144
139
  },
145
140
  key: pluginKey,
146
141
  props: {
147
- // @ts-ignore - Workaround for help-center local consumption
148
142
  handleKeyDown: function handleKeyDown(view, event) {
149
143
  var _pluginKey$getState;
150
144
  var state = view.state,
@@ -159,7 +153,6 @@ export var plugin = function plugin(dispatch, editorAnalyticsAPI) {
159
153
  }
160
154
  return false;
161
155
  },
162
- // @ts-ignore - Workaround for help-center local consumption
163
156
  handleTextInput: function handleTextInput(view, from, to, text) {
164
157
  var state = view.state,
165
158
  dispatch = view.dispatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "6.1.11",
3
+ "version": "6.1.13",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,12 +38,12 @@
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
- "@atlaskit/editor-toolbar": "^0.17.0",
41
+ "@atlaskit/editor-toolbar": "^0.18.0",
42
42
  "@atlaskit/editor-toolbar-model": "^0.2.0",
43
43
  "@atlaskit/icon": "^29.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^14.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^14.2.0",
47
47
  "@atlaskit/tokens": "^8.4.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",