@atlaskit/editor-plugin-layout 6.2.11 → 6.2.12

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,13 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 6.2.12
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
+
3
11
  ## 6.2.11
4
12
 
5
13
  ### Patch Changes
@@ -88,8 +88,6 @@ var handleDeleteLayoutColumn = function handleDeleteLayoutColumn(state, dispatch
88
88
  return node.type.name === 'layoutSection';
89
89
  });
90
90
  if (parent) {
91
- // @ts-ignore - Workaround for help-center local consumption
92
-
93
91
  var layoutSectionPos = tr.mapping.map(parent.pos);
94
92
  var layoutSectionNodeSize = parent.node.nodeSize;
95
93
  dispatch(state.tr.replaceWith(layoutSectionPos, layoutSectionPos + layoutSectionNodeSize, layoutContentFragment));
@@ -103,13 +101,9 @@ var _default = exports.default = function _default(options) {
103
101
  return new _safePlugin.SafePlugin({
104
102
  key: _pluginKey.pluginKey,
105
103
  state: {
106
- // @ts-ignore - Workaround for help-center local consumption
107
-
108
104
  init: function init(_, state) {
109
105
  return getInitialPluginState(options, state);
110
106
  },
111
- // @ts-ignore - Workaround for help-center local consumption
112
-
113
107
  apply: function apply(tr, pluginState, oldState, newState) {
114
108
  var _tr$getMeta, _pluginKey$getState;
115
109
  var isResizing = (0, _experiments.editorExperiment)('single_column_layouts', true) ? (_tr$getMeta = tr.getMeta('is-resizer-resizing')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : (_pluginKey$getState = _pluginKey.pluginKey.getState(oldState)) === null || _pluginKey$getState === void 0 ? void 0 : _pluginKey$getState.isResizing : false;
@@ -131,7 +125,6 @@ var _default = exports.default = function _default(options) {
131
125
  }
132
126
  },
133
127
  props: {
134
- // @ts-ignore - Workaround for help-center local consumption
135
128
  decorations: function decorations(state) {
136
129
  var layoutState = _pluginKey.pluginKey.getState(state);
137
130
  if (layoutState.pos !== null) {
@@ -139,8 +132,6 @@ var _default = exports.default = function _default(options) {
139
132
  }
140
133
  return undefined;
141
134
  },
142
- // @ts-ignore - Workaround for help-center local consumption
143
-
144
135
  handleKeyDown: (0, _keymap.keydownHandler)({
145
136
  Tab: (0, _utils.filterCommand)(isWholeSelectionInsideLayoutColumn, moveCursorToNextColumn),
146
137
  'Mod-Backspace': handleDeleteLayoutColumn,
@@ -157,24 +148,13 @@ var _default = exports.default = function _default(options) {
157
148
  }
158
149
  })
159
150
  },
160
- // @ts-ignore - Workaround for help-center local consumption
161
-
162
151
  appendTransaction: function appendTransaction(transactions, _oldState, newState) {
163
152
  var changes = [];
164
-
165
- // @ts-ignore - Workaround for help-center local consumption
166
-
167
153
  transactions.forEach(function (prevTr) {
168
154
  // remap change segments across the transaction set
169
- // @ts-ignore - Workaround for help-center local consumption
170
-
171
155
  changes.forEach(function (change) {
172
156
  return {
173
- // @ts-ignore - Workaround for help-center local consumption
174
-
175
157
  from: prevTr.mapping.map(change.from),
176
- // @ts-ignore - Workaround for help-center local consumption
177
-
178
158
  to: prevTr.mapping.map(change.to),
179
159
  slice: change.slice
180
160
  };
@@ -205,8 +185,6 @@ var _default = exports.default = function _default(options) {
205
185
  if (changes.length) {
206
186
  var _tr = newState.tr;
207
187
  var selection = newState.selection.toJSON();
208
- // @ts-ignore - Workaround for help-center local consumption
209
-
210
188
  changes.forEach(function (change) {
211
189
  _tr.replaceRange(change.from, change.to, change.slice);
212
190
  });
@@ -12,11 +12,7 @@ var _default = exports.default = function _default(options, pluginInjectionApi,
12
12
  return new _safePlugin.SafePlugin({
13
13
  key: pluginKey,
14
14
  props: {
15
- // @ts-ignore - Workaround for help-center local consumption
16
-
17
15
  nodeViews: {
18
- // @ts-ignore - Workaround for help-center local consumption
19
-
20
16
  layoutSection: function layoutSection(node, view, getPos) {
21
17
  return new _nodeviews.LayoutSectionView({
22
18
  node: node,
@@ -83,8 +83,6 @@ const handleDeleteLayoutColumn = (state, dispatch) => {
83
83
  return node.type.name === 'layoutSection';
84
84
  });
85
85
  if (parent) {
86
- // @ts-ignore - Workaround for help-center local consumption
87
-
88
86
  const layoutSectionPos = tr.mapping.map(parent.pos);
89
87
  const layoutSectionNodeSize = parent.node.nodeSize;
90
88
  dispatch(state.tr.replaceWith(layoutSectionPos, layoutSectionPos + layoutSectionNodeSize, layoutContentFragment));
@@ -97,11 +95,7 @@ const handleDeleteLayoutColumn = (state, dispatch) => {
97
95
  export default (options => new SafePlugin({
98
96
  key: pluginKey,
99
97
  state: {
100
- // @ts-ignore - Workaround for help-center local consumption
101
-
102
98
  init: (_, state) => getInitialPluginState(options, state),
103
- // @ts-ignore - Workaround for help-center local consumption
104
-
105
99
  apply: (tr, pluginState, oldState, newState) => {
106
100
  var _tr$getMeta, _pluginKey$getState;
107
101
  const isResizing = editorExperiment('single_column_layouts', true) ? (_tr$getMeta = tr.getMeta('is-resizer-resizing')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : (_pluginKey$getState = pluginKey.getState(oldState)) === null || _pluginKey$getState === void 0 ? void 0 : _pluginKey$getState.isResizing : false;
@@ -125,8 +119,6 @@ export default (options => new SafePlugin({
125
119
  }
126
120
  },
127
121
  props: {
128
- // @ts-ignore - Workaround for help-center local consumption
129
-
130
122
  decorations(state) {
131
123
  const layoutState = pluginKey.getState(state);
132
124
  if (layoutState.pos !== null) {
@@ -134,8 +126,6 @@ export default (options => new SafePlugin({
134
126
  }
135
127
  return undefined;
136
128
  },
137
- // @ts-ignore - Workaround for help-center local consumption
138
-
139
129
  handleKeyDown: keydownHandler({
140
130
  Tab: filter(isWholeSelectionInsideLayoutColumn, moveCursorToNextColumn),
141
131
  'Mod-Backspace': handleDeleteLayoutColumn,
@@ -148,24 +138,13 @@ export default (options => new SafePlugin({
148
138
  getNodeSelectionPos: (state, nodePos) => state.doc.resolve(nodePos).before()
149
139
  })
150
140
  },
151
- // @ts-ignore - Workaround for help-center local consumption
152
-
153
141
  appendTransaction: (transactions, _oldState, newState) => {
154
142
  const changes = [];
155
-
156
- // @ts-ignore - Workaround for help-center local consumption
157
-
158
143
  transactions.forEach(prevTr => {
159
144
  // remap change segments across the transaction set
160
- // @ts-ignore - Workaround for help-center local consumption
161
-
162
145
  changes.forEach(change => {
163
146
  return {
164
- // @ts-ignore - Workaround for help-center local consumption
165
-
166
147
  from: prevTr.mapping.map(change.from),
167
- // @ts-ignore - Workaround for help-center local consumption
168
-
169
148
  to: prevTr.mapping.map(change.to),
170
149
  slice: change.slice
171
150
  };
@@ -198,8 +177,6 @@ export default (options => new SafePlugin({
198
177
  if (changes.length) {
199
178
  let tr = newState.tr;
200
179
  const selection = newState.selection.toJSON();
201
- // @ts-ignore - Workaround for help-center local consumption
202
-
203
180
  changes.forEach(change => {
204
181
  tr.replaceRange(change.from, change.to, change.slice);
205
182
  });
@@ -5,11 +5,7 @@ export const pluginKey = new PluginKey('layoutResizingPlugin');
5
5
  export default ((options, pluginInjectionApi, portalProviderAPI, eventDispatcher) => new SafePlugin({
6
6
  key: pluginKey,
7
7
  props: {
8
- // @ts-ignore - Workaround for help-center local consumption
9
-
10
8
  nodeViews: {
11
- // @ts-ignore - Workaround for help-center local consumption
12
-
13
9
  layoutSection: (node, view, getPos) => {
14
10
  return new LayoutSectionView({
15
11
  node,
@@ -81,8 +81,6 @@ var handleDeleteLayoutColumn = function handleDeleteLayoutColumn(state, dispatch
81
81
  return node.type.name === 'layoutSection';
82
82
  });
83
83
  if (parent) {
84
- // @ts-ignore - Workaround for help-center local consumption
85
-
86
84
  var layoutSectionPos = tr.mapping.map(parent.pos);
87
85
  var layoutSectionNodeSize = parent.node.nodeSize;
88
86
  dispatch(state.tr.replaceWith(layoutSectionPos, layoutSectionPos + layoutSectionNodeSize, layoutContentFragment));
@@ -96,13 +94,9 @@ export default (function (options) {
96
94
  return new SafePlugin({
97
95
  key: pluginKey,
98
96
  state: {
99
- // @ts-ignore - Workaround for help-center local consumption
100
-
101
97
  init: function init(_, state) {
102
98
  return getInitialPluginState(options, state);
103
99
  },
104
- // @ts-ignore - Workaround for help-center local consumption
105
-
106
100
  apply: function apply(tr, pluginState, oldState, newState) {
107
101
  var _tr$getMeta, _pluginKey$getState;
108
102
  var isResizing = editorExperiment('single_column_layouts', true) ? (_tr$getMeta = tr.getMeta('is-resizer-resizing')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : (_pluginKey$getState = pluginKey.getState(oldState)) === null || _pluginKey$getState === void 0 ? void 0 : _pluginKey$getState.isResizing : false;
@@ -124,7 +118,6 @@ export default (function (options) {
124
118
  }
125
119
  },
126
120
  props: {
127
- // @ts-ignore - Workaround for help-center local consumption
128
121
  decorations: function decorations(state) {
129
122
  var layoutState = pluginKey.getState(state);
130
123
  if (layoutState.pos !== null) {
@@ -132,8 +125,6 @@ export default (function (options) {
132
125
  }
133
126
  return undefined;
134
127
  },
135
- // @ts-ignore - Workaround for help-center local consumption
136
-
137
128
  handleKeyDown: keydownHandler({
138
129
  Tab: filter(isWholeSelectionInsideLayoutColumn, moveCursorToNextColumn),
139
130
  'Mod-Backspace': handleDeleteLayoutColumn,
@@ -150,24 +141,13 @@ export default (function (options) {
150
141
  }
151
142
  })
152
143
  },
153
- // @ts-ignore - Workaround for help-center local consumption
154
-
155
144
  appendTransaction: function appendTransaction(transactions, _oldState, newState) {
156
145
  var changes = [];
157
-
158
- // @ts-ignore - Workaround for help-center local consumption
159
-
160
146
  transactions.forEach(function (prevTr) {
161
147
  // remap change segments across the transaction set
162
- // @ts-ignore - Workaround for help-center local consumption
163
-
164
148
  changes.forEach(function (change) {
165
149
  return {
166
- // @ts-ignore - Workaround for help-center local consumption
167
-
168
150
  from: prevTr.mapping.map(change.from),
169
- // @ts-ignore - Workaround for help-center local consumption
170
-
171
151
  to: prevTr.mapping.map(change.to),
172
152
  slice: change.slice
173
153
  };
@@ -198,8 +178,6 @@ export default (function (options) {
198
178
  if (changes.length) {
199
179
  var _tr = newState.tr;
200
180
  var selection = newState.selection.toJSON();
201
- // @ts-ignore - Workaround for help-center local consumption
202
-
203
181
  changes.forEach(function (change) {
204
182
  _tr.replaceRange(change.from, change.to, change.slice);
205
183
  });
@@ -6,11 +6,7 @@ export default (function (options, pluginInjectionApi, portalProviderAPI, eventD
6
6
  return new SafePlugin({
7
7
  key: pluginKey,
8
8
  props: {
9
- // @ts-ignore - Workaround for help-center local consumption
10
-
11
9
  nodeViews: {
12
- // @ts-ignore - Workaround for help-center local consumption
13
-
14
10
  layoutSection: function layoutSection(node, view, getPos) {
15
11
  return new LayoutSectionView({
16
12
  node: node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "6.2.11",
3
+ "version": "6.2.12",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",