@atlaskit/editor-plugin-list 8.2.15 → 8.2.16

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-list
2
2
 
3
+ ## 8.2.16
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
  ## 8.2.15
4
12
 
5
13
  ### Patch Changes
@@ -34,9 +34,6 @@ var computeListDecorations = exports.computeListDecorations = function computeLi
34
34
 
35
35
  // this stack keeps track of each (nested) list to calculate the indentation level
36
36
  var processedListsStack = [];
37
-
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
37
  doc.nodesBetween(from, to, function (node, currentNodeStartPos) {
41
38
  if (processedListsStack.length > 0) {
42
39
  var isOutsideLastList = true;
@@ -81,26 +78,13 @@ var computeListDecorations = exports.computeListDecorations = function computeLi
81
78
  return decorations;
82
79
  };
83
80
  var updateListDecorations = exports.updateListDecorations = function updateListDecorations(decorationSet, tr) {
84
- // @ts-ignore - Workaround for help-center local consumption
85
-
86
81
  var nextDecorationSet = decorationSet.map(tr.mapping, tr.doc);
87
-
88
- // @ts-ignore - Workaround for help-center local consumption
89
-
90
82
  tr.mapping.maps.forEach(function (stepMap, index) {
91
- // @ts-ignore - Workaround for help-center local consumption
92
-
93
83
  stepMap.forEach(function (oldStart, oldEnd) {
94
- // @ts-ignore - Workaround for help-center local consumption
95
-
96
84
  var start = tr.mapping.slice(index).map(oldStart, -1);
97
- // @ts-ignore - Workaround for help-center local consumption
98
-
99
85
  var end = tr.mapping.slice(index).map(oldEnd);
100
86
 
101
87
  // Remove decorations in this range
102
- // @ts-ignore - Workaround for help-center local consumption
103
-
104
88
  var decorationsToRemove = nextDecorationSet.find(start, end);
105
89
  nextDecorationSet = nextDecorationSet.remove(decorationsToRemove);
106
90
 
@@ -121,9 +105,6 @@ var getDecorations = exports.getDecorations = function getDecorations(doc, state
121
105
 
122
106
  // this stack keeps track of each (nested) list to calculate the indentation level
123
107
  var processedListsStack = [];
124
-
125
- // @ts-ignore - Workaround for help-center local consumption
126
-
127
108
  doc.nodesBetween(0, doc.content.size, function (node, currentNodeStartPos) {
128
109
  if (processedListsStack.length > 0) {
129
110
  var isOutsideLastList = true;
@@ -267,14 +248,11 @@ var createPlugin = exports.createPlugin = function createPlugin(eventDispatch, f
267
248
  },
268
249
  key: listPluginKey,
269
250
  props: {
270
- // @ts-ignore - Workaround for help-center local consumption
271
251
  decorations: function decorations(state) {
272
252
  var _ref = (0, _expValEquals.expValEquals)('platform_editor_new_list_decorations_logic', 'isEnabled', true) ? listPluginKey.getState(state) : getPluginState(state),
273
253
  decorationSet = _ref.decorationSet;
274
254
  return decorationSet;
275
255
  },
276
- // @ts-ignore - Workaround for help-center local consumption
277
-
278
256
  handleClick: function handleClick(view, pos, event) {
279
257
  var state = view.state;
280
258
  // Ignored via go/ees005
@@ -22,9 +22,6 @@ export const computeListDecorations = (doc, from = 0, to = doc.content.size) =>
22
22
 
23
23
  // this stack keeps track of each (nested) list to calculate the indentation level
24
24
  const processedListsStack = [];
25
-
26
- // @ts-ignore - Workaround for help-center local consumption
27
-
28
25
  doc.nodesBetween(from, to, (node, currentNodeStartPos) => {
29
26
  if (processedListsStack.length > 0) {
30
27
  let isOutsideLastList = true;
@@ -69,26 +66,13 @@ export const computeListDecorations = (doc, from = 0, to = doc.content.size) =>
69
66
  return decorations;
70
67
  };
71
68
  export const updateListDecorations = (decorationSet, tr) => {
72
- // @ts-ignore - Workaround for help-center local consumption
73
-
74
69
  let nextDecorationSet = decorationSet.map(tr.mapping, tr.doc);
75
-
76
- // @ts-ignore - Workaround for help-center local consumption
77
-
78
70
  tr.mapping.maps.forEach((stepMap, index) => {
79
- // @ts-ignore - Workaround for help-center local consumption
80
-
81
71
  stepMap.forEach((oldStart, oldEnd) => {
82
- // @ts-ignore - Workaround for help-center local consumption
83
-
84
72
  const start = tr.mapping.slice(index).map(oldStart, -1);
85
- // @ts-ignore - Workaround for help-center local consumption
86
-
87
73
  const end = tr.mapping.slice(index).map(oldEnd);
88
74
 
89
75
  // Remove decorations in this range
90
- // @ts-ignore - Workaround for help-center local consumption
91
-
92
76
  const decorationsToRemove = nextDecorationSet.find(start, end);
93
77
  nextDecorationSet = nextDecorationSet.remove(decorationsToRemove);
94
78
 
@@ -109,9 +93,6 @@ export const getDecorations = (doc, state, featureFlags) => {
109
93
 
110
94
  // this stack keeps track of each (nested) list to calculate the indentation level
111
95
  const processedListsStack = [];
112
-
113
- // @ts-ignore - Workaround for help-center local consumption
114
-
115
96
  doc.nodesBetween(0, doc.content.size, (node, currentNodeStartPos) => {
116
97
  if (processedListsStack.length > 0) {
117
98
  let isOutsideLastList = true;
@@ -258,16 +239,12 @@ export const createPlugin = (eventDispatch, featureFlags, api) => {
258
239
  },
259
240
  key: listPluginKey,
260
241
  props: {
261
- // @ts-ignore - Workaround for help-center local consumption
262
-
263
242
  decorations(state) {
264
243
  const {
265
244
  decorationSet
266
245
  } = expValEquals('platform_editor_new_list_decorations_logic', 'isEnabled', true) ? listPluginKey.getState(state) : getPluginState(state);
267
246
  return decorationSet;
268
247
  },
269
- // @ts-ignore - Workaround for help-center local consumption
270
-
271
248
  handleClick: (view, pos, event) => {
272
249
  const {
273
250
  state
@@ -27,9 +27,6 @@ export var computeListDecorations = function computeListDecorations(doc) {
27
27
 
28
28
  // this stack keeps track of each (nested) list to calculate the indentation level
29
29
  var processedListsStack = [];
30
-
31
- // @ts-ignore - Workaround for help-center local consumption
32
-
33
30
  doc.nodesBetween(from, to, function (node, currentNodeStartPos) {
34
31
  if (processedListsStack.length > 0) {
35
32
  var isOutsideLastList = true;
@@ -74,26 +71,13 @@ export var computeListDecorations = function computeListDecorations(doc) {
74
71
  return decorations;
75
72
  };
76
73
  export var updateListDecorations = function updateListDecorations(decorationSet, tr) {
77
- // @ts-ignore - Workaround for help-center local consumption
78
-
79
74
  var nextDecorationSet = decorationSet.map(tr.mapping, tr.doc);
80
-
81
- // @ts-ignore - Workaround for help-center local consumption
82
-
83
75
  tr.mapping.maps.forEach(function (stepMap, index) {
84
- // @ts-ignore - Workaround for help-center local consumption
85
-
86
76
  stepMap.forEach(function (oldStart, oldEnd) {
87
- // @ts-ignore - Workaround for help-center local consumption
88
-
89
77
  var start = tr.mapping.slice(index).map(oldStart, -1);
90
- // @ts-ignore - Workaround for help-center local consumption
91
-
92
78
  var end = tr.mapping.slice(index).map(oldEnd);
93
79
 
94
80
  // Remove decorations in this range
95
- // @ts-ignore - Workaround for help-center local consumption
96
-
97
81
  var decorationsToRemove = nextDecorationSet.find(start, end);
98
82
  nextDecorationSet = nextDecorationSet.remove(decorationsToRemove);
99
83
 
@@ -114,9 +98,6 @@ export var getDecorations = function getDecorations(doc, state, featureFlags) {
114
98
 
115
99
  // this stack keeps track of each (nested) list to calculate the indentation level
116
100
  var processedListsStack = [];
117
-
118
- // @ts-ignore - Workaround for help-center local consumption
119
-
120
101
  doc.nodesBetween(0, doc.content.size, function (node, currentNodeStartPos) {
121
102
  if (processedListsStack.length > 0) {
122
103
  var isOutsideLastList = true;
@@ -260,14 +241,11 @@ export var createPlugin = function createPlugin(eventDispatch, featureFlags, api
260
241
  },
261
242
  key: listPluginKey,
262
243
  props: {
263
- // @ts-ignore - Workaround for help-center local consumption
264
244
  decorations: function decorations(state) {
265
245
  var _ref = expValEquals('platform_editor_new_list_decorations_logic', 'isEnabled', true) ? listPluginKey.getState(state) : getPluginState(state),
266
246
  decorationSet = _ref.decorationSet;
267
247
  return decorationSet;
268
248
  },
269
- // @ts-ignore - Workaround for help-center local consumption
270
-
271
249
  handleClick: function handleClick(view, pos, event) {
272
250
  var state = view.state;
273
251
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "8.2.15",
3
+ "version": "8.2.16",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",