@atlaskit/editor-plugin-base 7.2.5 → 7.2.7

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,21 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 7.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e3779b75fdeca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3779b75fdeca) -
8
+ EDITOR-1643 Promote syncBlock and bodiedSyncBlock to full schema
9
+ - Updated dependencies
10
+
11
+ ## 7.2.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
16
+ tsignores added for help-center local consumpton removed
17
+ - Updated dependencies
18
+
3
19
  ## 7.2.5
4
20
 
5
21
  ### Patch Changes
@@ -7,17 +7,12 @@ exports.default = void 0;
7
7
  var _analytics = require("@atlaskit/editor-common/analytics");
8
8
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
9
  var hasInvalidSteps = function hasInvalidSteps(tr) {
10
- return (
11
- // @ts-ignore - Workaround for help-center local consumption
12
-
13
- (tr.steps || []).some(function (step) {
14
- return step.from > step.to;
15
- })
16
- );
10
+ return (tr.steps || []).some(function (step) {
11
+ return step.from > step.to;
12
+ });
17
13
  };
18
14
  var _default = exports.default = function _default(dispatchAnalyticsEvent) {
19
15
  return new _safePlugin.SafePlugin({
20
- // @ts-ignore - Workaround for help-center local consumption
21
16
  filterTransaction: function filterTransaction(transaction) {
22
17
  if (hasInvalidSteps(transaction)) {
23
18
  // eslint-disable-next-line no-console
@@ -123,7 +123,6 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
123
123
  return new _safePlugin.SafePlugin({
124
124
  key: frozenEditorPluginKey,
125
125
  props: (0, _isPerformanceApiAvailable.isPerformanceAPIAvailable)() ? {
126
- // @ts-ignore - Workaround for help-center local consumption
127
126
  handleTextInput: function handleTextInput(view) {
128
127
  if (browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType) {
129
128
  interactionType = _analytics.BROWSER_FREEZE_INTERACTION_TYPE.TYPING;
@@ -138,21 +137,16 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
138
137
  return false;
139
138
  },
140
139
  handleDOMEvents: browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? {
141
- // @ts-ignore - Workaround for help-center local consumption
142
-
143
140
  click: function click() {
144
141
  interactionType = (0, _frozenEditor.setInteractionType)(_analytics.BROWSER_FREEZE_INTERACTION_TYPE.CLICKING);
145
142
  return false;
146
143
  },
147
- // @ts-ignore - Workaround for help-center local consumption
148
-
149
144
  paste: function paste() {
150
145
  interactionType = (0, _frozenEditor.setInteractionType)(_analytics.BROWSER_FREEZE_INTERACTION_TYPE.PASTING);
151
146
  return false;
152
147
  }
153
148
  } : undefined
154
149
  } : undefined,
155
- // @ts-ignore - Workaround for help-center local consumption
156
150
  view: function view(_view) {
157
151
  if (!(0, _isPerformanceApiAvailable.isPerformanceObserverAvailable)()) {
158
152
  return {};
@@ -29,7 +29,6 @@ var _default = exports.default = function _default() {
29
29
  cursorTarget: undefined
30
30
  };
31
31
  },
32
- // @ts-ignore - Workaround for help-center local consumption
33
32
  apply: function apply(tr) {
34
33
  var selection = tr.selection,
35
34
  doc = tr.doc;
@@ -86,7 +85,6 @@ var _default = exports.default = function _default() {
86
85
  }
87
86
  },
88
87
  props: {
89
- // @ts-ignore - Workaround for help-center local consumption
90
88
  decorations: function decorations(state) {
91
89
  var doc = state.doc;
92
90
  var _ref = inlineCursorTargetStateKey.getState(state),
@@ -96,8 +94,6 @@ var _default = exports.default = function _default() {
96
94
  }
97
95
  return null;
98
96
  },
99
- // @ts-ignore - Workaround for help-center local consumption
100
-
101
97
  handleDOMEvents: {
102
98
  // Workaround to prevent the decorations created by the plugin from
103
99
  // blocking shift + arrow left/right selections in safari. When
@@ -105,8 +101,6 @@ var _default = exports.default = function _default() {
105
101
  // plugin to prevent it from creating decorations.
106
102
  // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
107
103
  // https://product-fabric.atlassian.net/browse/ED-14938
108
- // @ts-ignore - Workaround for help-center local consumption
109
-
110
104
  keydown: function keydown(view, event) {
111
105
  var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
112
106
  if (browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -120,8 +114,6 @@ var _default = exports.default = function _default() {
120
114
  // after a composition event ends. If so, manually insert the
121
115
  // event data in order to prevent contents ending up inside
122
116
  // of the cursor target decorations.
123
- // @ts-ignore - Workaround for help-center local consumption
124
-
125
117
  compositionend: function compositionend(view, incorrectlyTypedEvent) {
126
118
  // This is typed by the prosemirror definitions as Event,
127
119
  // this type is incorrect, and it is actually an InputEvent
@@ -143,8 +135,6 @@ var _default = exports.default = function _default() {
143
135
  // before any input event. If so, manually insert the
144
136
  // event data in order to prevent contents ending up inside
145
137
  // of the cursor target decorations.
146
- // @ts-ignore - Workaround for help-center local consumption
147
-
148
138
  beforeinput: function beforeinput(view, incorrectlyTypedEvent) {
149
139
  // This is typed by the prosemirror definitions as Event,
150
140
  // this type is incorrect, and it is actually an InputEvent
@@ -27,15 +27,11 @@ function createLazyNodeViewDecorationPlugin() {
27
27
  nodeTypes: []
28
28
  };
29
29
  },
30
- // @ts-ignore - Workaround for help-center local consumption
31
30
  apply: function apply(tr, _oldState, newState) {
32
31
  var actionPayload = tr.getMeta(_lazyNodeView.lazyNodeViewDecorationPluginKey);
33
32
  var pluginState = _lazyNodeView.lazyNodeViewDecorationPluginKey.getState(newState);
34
33
  if ((actionPayload === null || actionPayload === void 0 ? void 0 : actionPayload.type) === 'add' && actionPayload.nodeTypes.size) {
35
34
  var decorations = [];
36
-
37
- // @ts-ignore - Workaround for help-center local consumption
38
-
39
35
  tr.doc.nodesBetween(0, tr.doc.nodeSize - 2, function (node, pos) {
40
36
  if (actionPayload.nodeTypes.has(node.type.name)) {
41
37
  decorations.push(_view.Decoration.node(pos, pos + node.nodeSize, {
@@ -54,8 +50,6 @@ function createLazyNodeViewDecorationPlugin() {
54
50
  }
55
51
  if (tr.docChanged) {
56
52
  return {
57
- // @ts-ignore - Workaround for help-center local consumption
58
-
59
53
  decorations: pluginState === null || pluginState === void 0 ? void 0 : pluginState.decorations.map(tr.mapping, tr.doc)
60
54
  };
61
55
  }
@@ -68,10 +62,8 @@ function createLazyNodeViewDecorationPlugin() {
68
62
  return (_lazyNodeViewDecorati = _lazyNodeView.lazyNodeViewDecorationPluginKey.getState(state)) === null || _lazyNodeViewDecorati === void 0 ? void 0 : _lazyNodeViewDecorati.decorations;
69
63
  }
70
64
  },
71
- // @ts-ignore - Workaround for help-center local consumption
72
65
  view: function view(editorView) {
73
66
  return {
74
- // @ts-ignore - Workaround for help-center local consumption
75
67
  update: function update() {
76
68
  /**
77
69
  * After view update can clean up decorations...
@@ -49,8 +49,6 @@ var _default = exports.default = function _default() {
49
49
  init: function init() {
50
50
  return {};
51
51
  },
52
- // @ts-ignore - Workaround for help-center local consumption
53
-
54
52
  apply: function apply(tr, pluginState) {
55
53
  if (tr.getMeta(_pluginKey.scrollGutterPluginKey)) {
56
54
  return tr.getMeta(_pluginKey.scrollGutterPluginKey);
@@ -67,7 +65,6 @@ var _default = exports.default = function _default() {
67
65
  // Defaults to 5: https://prosemirror.net/docs/ref/#view.EditorProps.scrollMargin
68
66
  scrollMargin: gutterSize
69
67
  },
70
- // @ts-ignore - Workaround for help-center local consumption
71
68
  view: function view(_view) {
72
69
  var _editorElement;
73
70
  // Store references to avoid lookups on successive checks.
@@ -79,7 +76,6 @@ var _default = exports.default = function _default() {
79
76
  cleanup = createGutter(gutterSize, editorParentElement);
80
77
  }
81
78
  return {
82
- // @ts-ignore - Workaround for help-center local consumption
83
79
  destroy: function destroy() {
84
80
  cleanup();
85
81
  editorParentElement = editorElement = null;
@@ -1,13 +1,8 @@
1
1
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- const hasInvalidSteps = tr =>
4
- // @ts-ignore - Workaround for help-center local consumption
5
-
6
- (tr.steps || []).some(step => step.from > step.to);
3
+ const hasInvalidSteps = tr => (tr.steps || []).some(step => step.from > step.to);
7
4
  export default (dispatchAnalyticsEvent => {
8
5
  return new SafePlugin({
9
- // @ts-ignore - Workaround for help-center local consumption
10
-
11
6
  filterTransaction(transaction) {
12
7
  if (hasInvalidSteps(transaction)) {
13
8
  // eslint-disable-next-line no-console
@@ -113,8 +113,6 @@ export default (contextIdentifierPlugin => (dispatchAnalyticsEvent, inputTrackin
113
113
  return new SafePlugin({
114
114
  key: frozenEditorPluginKey,
115
115
  props: isPerformanceAPIAvailable() ? {
116
- // @ts-ignore - Workaround for help-center local consumption
117
-
118
116
  handleTextInput(view) {
119
117
  if (browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType) {
120
118
  interactionType = BROWSER_FREEZE_INTERACTION_TYPE.TYPING;
@@ -129,22 +127,16 @@ export default (contextIdentifierPlugin => (dispatchAnalyticsEvent, inputTrackin
129
127
  return false;
130
128
  },
131
129
  handleDOMEvents: browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? {
132
- // @ts-ignore - Workaround for help-center local consumption
133
-
134
130
  click: () => {
135
131
  interactionType = setInteractionType(BROWSER_FREEZE_INTERACTION_TYPE.CLICKING);
136
132
  return false;
137
133
  },
138
- // @ts-ignore - Workaround for help-center local consumption
139
-
140
134
  paste: () => {
141
135
  interactionType = setInteractionType(BROWSER_FREEZE_INTERACTION_TYPE.PASTING);
142
136
  return false;
143
137
  }
144
138
  } : undefined
145
139
  } : undefined,
146
- // @ts-ignore - Workaround for help-center local consumption
147
-
148
140
  view(view) {
149
141
  if (!isPerformanceObserverAvailable()) {
150
142
  return {};
@@ -21,8 +21,6 @@ export default (() => {
21
21
  init: () => ({
22
22
  cursorTarget: undefined
23
23
  }),
24
- // @ts-ignore - Workaround for help-center local consumption
25
-
26
24
  apply(tr) {
27
25
  const {
28
26
  selection,
@@ -85,8 +83,6 @@ export default (() => {
85
83
  }
86
84
  },
87
85
  props: {
88
- // @ts-ignore - Workaround for help-center local consumption
89
-
90
86
  decorations(state) {
91
87
  const {
92
88
  doc
@@ -99,8 +95,6 @@ export default (() => {
99
95
  }
100
96
  return null;
101
97
  },
102
- // @ts-ignore - Workaround for help-center local consumption
103
-
104
98
  handleDOMEvents: {
105
99
  // Workaround to prevent the decorations created by the plugin from
106
100
  // blocking shift + arrow left/right selections in safari. When
@@ -108,8 +102,6 @@ export default (() => {
108
102
  // plugin to prevent it from creating decorations.
109
103
  // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
110
104
  // https://product-fabric.atlassian.net/browse/ED-14938
111
- // @ts-ignore - Workaround for help-center local consumption
112
-
113
105
  keydown: (view, event) => {
114
106
  const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
115
107
  if (browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -123,8 +115,6 @@ export default (() => {
123
115
  // after a composition event ends. If so, manually insert the
124
116
  // event data in order to prevent contents ending up inside
125
117
  // of the cursor target decorations.
126
- // @ts-ignore - Workaround for help-center local consumption
127
-
128
118
  compositionend: (view, incorrectlyTypedEvent) => {
129
119
  // This is typed by the prosemirror definitions as Event,
130
120
  // this type is incorrect, and it is actually an InputEvent
@@ -149,8 +139,6 @@ export default (() => {
149
139
  // before any input event. If so, manually insert the
150
140
  // event data in order to prevent contents ending up inside
151
141
  // of the cursor target decorations.
152
- // @ts-ignore - Workaround for help-center local consumption
153
-
154
142
  beforeinput: (view, incorrectlyTypedEvent) => {
155
143
  // This is typed by the prosemirror definitions as Event,
156
144
  // this type is incorrect, and it is actually an InputEvent
@@ -21,16 +21,11 @@ export function createLazyNodeViewDecorationPlugin() {
21
21
  nodeTypes: []
22
22
  };
23
23
  },
24
- // @ts-ignore - Workaround for help-center local consumption
25
-
26
24
  apply(tr, _oldState, newState) {
27
25
  const actionPayload = tr.getMeta(lazyNodeViewDecorationPluginKey);
28
26
  const pluginState = lazyNodeViewDecorationPluginKey.getState(newState);
29
27
  if ((actionPayload === null || actionPayload === void 0 ? void 0 : actionPayload.type) === 'add' && actionPayload.nodeTypes.size) {
30
28
  const decorations = [];
31
-
32
- // @ts-ignore - Workaround for help-center local consumption
33
-
34
29
  tr.doc.nodesBetween(0, tr.doc.nodeSize - 2, (node, pos) => {
35
30
  if (actionPayload.nodeTypes.has(node.type.name)) {
36
31
  decorations.push(Decoration.node(pos, pos + node.nodeSize, {
@@ -49,8 +44,6 @@ export function createLazyNodeViewDecorationPlugin() {
49
44
  }
50
45
  if (tr.docChanged) {
51
46
  return {
52
- // @ts-ignore - Workaround for help-center local consumption
53
-
54
47
  decorations: pluginState === null || pluginState === void 0 ? void 0 : pluginState.decorations.map(tr.mapping, tr.doc)
55
48
  };
56
49
  }
@@ -63,12 +56,8 @@ export function createLazyNodeViewDecorationPlugin() {
63
56
  return (_lazyNodeViewDecorati = lazyNodeViewDecorationPluginKey.getState(state)) === null || _lazyNodeViewDecorati === void 0 ? void 0 : _lazyNodeViewDecorati.decorations;
64
57
  }
65
58
  },
66
- // @ts-ignore - Workaround for help-center local consumption
67
-
68
59
  view(editorView) {
69
60
  return {
70
- // @ts-ignore - Workaround for help-center local consumption
71
-
72
61
  update() {
73
62
  /**
74
63
  * After view update can clean up decorations...
@@ -37,8 +37,6 @@ export default ((pluginOptions = {}) => {
37
37
  key: scrollGutterPluginKey,
38
38
  state: {
39
39
  init: () => ({}),
40
- // @ts-ignore - Workaround for help-center local consumption
41
-
42
40
  apply: (tr, pluginState) => {
43
41
  if (tr.getMeta(scrollGutterPluginKey)) {
44
42
  return tr.getMeta(scrollGutterPluginKey);
@@ -55,8 +53,6 @@ export default ((pluginOptions = {}) => {
55
53
  // Defaults to 5: https://prosemirror.net/docs/ref/#view.EditorProps.scrollMargin
56
54
  scrollMargin: gutterSize
57
55
  },
58
- // @ts-ignore - Workaround for help-center local consumption
59
-
60
56
  view(view) {
61
57
  var _editorElement;
62
58
  // Store references to avoid lookups on successive checks.
@@ -68,8 +64,6 @@ export default ((pluginOptions = {}) => {
68
64
  cleanup = createGutter(gutterSize, editorParentElement);
69
65
  }
70
66
  return {
71
- // @ts-ignore - Workaround for help-center local consumption
72
-
73
67
  destroy() {
74
68
  cleanup();
75
69
  editorParentElement = editorElement = null;
@@ -1,17 +1,12 @@
1
1
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  var hasInvalidSteps = function hasInvalidSteps(tr) {
4
- return (
5
- // @ts-ignore - Workaround for help-center local consumption
6
-
7
- (tr.steps || []).some(function (step) {
8
- return step.from > step.to;
9
- })
10
- );
4
+ return (tr.steps || []).some(function (step) {
5
+ return step.from > step.to;
6
+ });
11
7
  };
12
8
  export default (function (dispatchAnalyticsEvent) {
13
9
  return new SafePlugin({
14
- // @ts-ignore - Workaround for help-center local consumption
15
10
  filterTransaction: function filterTransaction(transaction) {
16
11
  if (hasInvalidSteps(transaction)) {
17
12
  // eslint-disable-next-line no-console
@@ -116,7 +116,6 @@ export default (function (contextIdentifierPlugin) {
116
116
  return new SafePlugin({
117
117
  key: frozenEditorPluginKey,
118
118
  props: isPerformanceAPIAvailable() ? {
119
- // @ts-ignore - Workaround for help-center local consumption
120
119
  handleTextInput: function handleTextInput(view) {
121
120
  if (browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType) {
122
121
  interactionType = BROWSER_FREEZE_INTERACTION_TYPE.TYPING;
@@ -131,21 +130,16 @@ export default (function (contextIdentifierPlugin) {
131
130
  return false;
132
131
  },
133
132
  handleDOMEvents: browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? {
134
- // @ts-ignore - Workaround for help-center local consumption
135
-
136
133
  click: function click() {
137
134
  interactionType = setInteractionType(BROWSER_FREEZE_INTERACTION_TYPE.CLICKING);
138
135
  return false;
139
136
  },
140
- // @ts-ignore - Workaround for help-center local consumption
141
-
142
137
  paste: function paste() {
143
138
  interactionType = setInteractionType(BROWSER_FREEZE_INTERACTION_TYPE.PASTING);
144
139
  return false;
145
140
  }
146
141
  } : undefined
147
142
  } : undefined,
148
- // @ts-ignore - Workaround for help-center local consumption
149
143
  view: function view(_view) {
150
144
  if (!isPerformanceObserverAvailable()) {
151
145
  return {};
@@ -23,7 +23,6 @@ export default (function () {
23
23
  cursorTarget: undefined
24
24
  };
25
25
  },
26
- // @ts-ignore - Workaround for help-center local consumption
27
26
  apply: function apply(tr) {
28
27
  var selection = tr.selection,
29
28
  doc = tr.doc;
@@ -80,7 +79,6 @@ export default (function () {
80
79
  }
81
80
  },
82
81
  props: {
83
- // @ts-ignore - Workaround for help-center local consumption
84
82
  decorations: function decorations(state) {
85
83
  var doc = state.doc;
86
84
  var _ref = inlineCursorTargetStateKey.getState(state),
@@ -90,8 +88,6 @@ export default (function () {
90
88
  }
91
89
  return null;
92
90
  },
93
- // @ts-ignore - Workaround for help-center local consumption
94
-
95
91
  handleDOMEvents: {
96
92
  // Workaround to prevent the decorations created by the plugin from
97
93
  // blocking shift + arrow left/right selections in safari. When
@@ -99,8 +95,6 @@ export default (function () {
99
95
  // plugin to prevent it from creating decorations.
100
96
  // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
101
97
  // https://product-fabric.atlassian.net/browse/ED-14938
102
- // @ts-ignore - Workaround for help-center local consumption
103
-
104
98
  keydown: function keydown(view, event) {
105
99
  var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
106
100
  if (browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -114,8 +108,6 @@ export default (function () {
114
108
  // after a composition event ends. If so, manually insert the
115
109
  // event data in order to prevent contents ending up inside
116
110
  // of the cursor target decorations.
117
- // @ts-ignore - Workaround for help-center local consumption
118
-
119
111
  compositionend: function compositionend(view, incorrectlyTypedEvent) {
120
112
  // This is typed by the prosemirror definitions as Event,
121
113
  // this type is incorrect, and it is actually an InputEvent
@@ -137,8 +129,6 @@ export default (function () {
137
129
  // before any input event. If so, manually insert the
138
130
  // event data in order to prevent contents ending up inside
139
131
  // of the cursor target decorations.
140
- // @ts-ignore - Workaround for help-center local consumption
141
-
142
132
  beforeinput: function beforeinput(view, incorrectlyTypedEvent) {
143
133
  // This is typed by the prosemirror definitions as Event,
144
134
  // this type is incorrect, and it is actually an InputEvent
@@ -21,15 +21,11 @@ export function createLazyNodeViewDecorationPlugin() {
21
21
  nodeTypes: []
22
22
  };
23
23
  },
24
- // @ts-ignore - Workaround for help-center local consumption
25
24
  apply: function apply(tr, _oldState, newState) {
26
25
  var actionPayload = tr.getMeta(lazyNodeViewDecorationPluginKey);
27
26
  var pluginState = lazyNodeViewDecorationPluginKey.getState(newState);
28
27
  if ((actionPayload === null || actionPayload === void 0 ? void 0 : actionPayload.type) === 'add' && actionPayload.nodeTypes.size) {
29
28
  var decorations = [];
30
-
31
- // @ts-ignore - Workaround for help-center local consumption
32
-
33
29
  tr.doc.nodesBetween(0, tr.doc.nodeSize - 2, function (node, pos) {
34
30
  if (actionPayload.nodeTypes.has(node.type.name)) {
35
31
  decorations.push(Decoration.node(pos, pos + node.nodeSize, {
@@ -48,8 +44,6 @@ export function createLazyNodeViewDecorationPlugin() {
48
44
  }
49
45
  if (tr.docChanged) {
50
46
  return {
51
- // @ts-ignore - Workaround for help-center local consumption
52
-
53
47
  decorations: pluginState === null || pluginState === void 0 ? void 0 : pluginState.decorations.map(tr.mapping, tr.doc)
54
48
  };
55
49
  }
@@ -62,10 +56,8 @@ export function createLazyNodeViewDecorationPlugin() {
62
56
  return (_lazyNodeViewDecorati = lazyNodeViewDecorationPluginKey.getState(state)) === null || _lazyNodeViewDecorati === void 0 ? void 0 : _lazyNodeViewDecorati.decorations;
63
57
  }
64
58
  },
65
- // @ts-ignore - Workaround for help-center local consumption
66
59
  view: function view(editorView) {
67
60
  return {
68
- // @ts-ignore - Workaround for help-center local consumption
69
61
  update: function update() {
70
62
  /**
71
63
  * After view update can clean up decorations...
@@ -43,8 +43,6 @@ export default (function () {
43
43
  init: function init() {
44
44
  return {};
45
45
  },
46
- // @ts-ignore - Workaround for help-center local consumption
47
-
48
46
  apply: function apply(tr, pluginState) {
49
47
  if (tr.getMeta(scrollGutterPluginKey)) {
50
48
  return tr.getMeta(scrollGutterPluginKey);
@@ -61,7 +59,6 @@ export default (function () {
61
59
  // Defaults to 5: https://prosemirror.net/docs/ref/#view.EditorProps.scrollMargin
62
60
  scrollMargin: gutterSize
63
61
  },
64
- // @ts-ignore - Workaround for help-center local consumption
65
62
  view: function view(_view) {
66
63
  var _editorElement;
67
64
  // Store references to avoid lookups on successive checks.
@@ -73,7 +70,6 @@ export default (function () {
73
70
  cleanup = createGutter(gutterSize, editorParentElement);
74
71
  }
75
72
  return {
76
- // @ts-ignore - Workaround for help-center local consumption
77
73
  destroy: function destroy() {
78
74
  cleanup();
79
75
  editorParentElement = editorElement = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "7.2.5",
3
+ "version": "7.2.7",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,12 +27,12 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^51.4.0",
30
+ "@atlaskit/adf-schema": "^51.5.1",
31
31
  "@atlaskit/editor-plugin-context-identifier": "^6.0.0",
32
32
  "@atlaskit/editor-plugin-feature-flags": "^5.0.0",
33
33
  "@atlaskit/editor-prosemirror": "7.0.0",
34
34
  "@atlaskit/prosemirror-history": "^0.2.0",
35
- "@atlaskit/tmp-editor-statsig": "^14.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^14.5.0",
36
36
  "@babel/runtime": "^7.0.0"
37
37
  },
38
38
  "techstack": {
@@ -74,6 +74,6 @@
74
74
  }
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^110.36.0"
77
+ "@atlaskit/editor-common": "^110.38.0"
78
78
  }
79
79
  }