@atlaskit/editor-plugin-base 2.0.11 → 2.0.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,11 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 2.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.0.11
4
10
 
5
11
  ### Patch Changes
@@ -45,7 +45,10 @@ var _default = exports.default = function _default(featureFlags) {
45
45
  if (!userCurrentBrowserAndVersion || !browserConfigFeatureFlag) {
46
46
  return {};
47
47
  }
48
- var browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
48
+ var browserVersionDisableRange =
49
+ // Ignored via go/ees005
50
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
51
+ browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
49
52
  if (!browserVersionDisableRange || !_browser.browser[userCurrentBrowserAndVersion.browser]) {
50
53
  return {};
51
54
  }
@@ -26,7 +26,10 @@ var DEFAULT_TRACK_SEVERITY_ENABLED = false;
26
26
  var DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = exports.DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
27
27
  var DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = exports.DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
28
28
  var dispatchLongTaskEvent = function dispatchLongTaskEvent(contextIdentifierPlugin) {
29
- return function (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity) {
29
+ return function (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity
30
+ // Ignored via go/ees005
31
+ // eslint-disable-next-line @typescript-eslint/max-params
32
+ ) {
30
33
  var _contextIdentifierPlu;
31
34
  var state = view.state;
32
35
  var nodesCount = getNodeCount(state);
@@ -120,6 +120,8 @@ function getCaretTopPosition() {
120
120
  }
121
121
 
122
122
  // Return container top
123
+ // Ignored via go/ees005
124
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
123
125
  var container = range.startContainer;
124
126
  if (container && container.getBoundingClientRect) {
125
127
  return container.getBoundingClientRect().top;
@@ -196,12 +198,16 @@ var _default = exports.default = function _default() {
196
198
  view: function view(_view) {
197
199
  // Store references to avoid lookups on successive checks.
198
200
  scrollElement = getScrollElement(_view);
201
+ // Ignored via go/ees005
202
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
199
203
  var editorElement = _view.dom;
200
204
  var editorParentElement = editorElement.parentElement;
201
205
  var viewportElementHeight = 0;
202
206
  var contentElementHeight = 0;
203
207
  var addAndObserveGutter = function addAndObserveGutter() {
204
208
  if (!gutter.isMounted()) {
209
+ // Ignored via go/ees005
210
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
205
211
  gutter.observe(scrollElement);
206
212
  gutter.addGutter(editorParentElement ? new WeakRef(editorParentElement) : null);
207
213
  }
@@ -38,7 +38,10 @@ export default (featureFlags => new SafePlugin({
38
38
  if (!userCurrentBrowserAndVersion || !browserConfigFeatureFlag) {
39
39
  return {};
40
40
  }
41
- const browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
41
+ const browserVersionDisableRange =
42
+ // Ignored via go/ees005
43
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
44
+ browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
42
45
  if (!browserVersionDisableRange || !browserEnv[userCurrentBrowserAndVersion.browser]) {
43
46
  return {};
44
47
  }
@@ -15,7 +15,10 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
15
15
  const DEFAULT_TRACK_SEVERITY_ENABLED = false;
16
16
  export const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
17
17
  export const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
18
- const dispatchLongTaskEvent = contextIdentifierPlugin => (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity) => {
18
+ const dispatchLongTaskEvent = contextIdentifierPlugin => (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line @typescript-eslint/max-params
21
+ ) => {
19
22
  var _contextIdentifierPlu, _contextIdentifierPlu2;
20
23
  const {
21
24
  state
@@ -109,6 +109,8 @@ function getCaretTopPosition() {
109
109
  }
110
110
 
111
111
  // Return container top
112
+ // Ignored via go/ees005
113
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
112
114
  const container = range.startContainer;
113
115
  if (container && container.getBoundingClientRect) {
114
116
  return container.getBoundingClientRect().top;
@@ -183,12 +185,16 @@ export default ((pluginOptions = {}) => {
183
185
  view(view) {
184
186
  // Store references to avoid lookups on successive checks.
185
187
  scrollElement = getScrollElement(view);
188
+ // Ignored via go/ees005
189
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
186
190
  let editorElement = view.dom;
187
191
  let editorParentElement = editorElement.parentElement;
188
192
  let viewportElementHeight = 0;
189
193
  let contentElementHeight = 0;
190
194
  const addAndObserveGutter = () => {
191
195
  if (!gutter.isMounted()) {
196
+ // Ignored via go/ees005
197
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
192
198
  gutter.observe(scrollElement);
193
199
  gutter.addGutter(editorParentElement ? new WeakRef(editorParentElement) : null);
194
200
  }
@@ -39,7 +39,10 @@ export default (function (featureFlags) {
39
39
  if (!userCurrentBrowserAndVersion || !browserConfigFeatureFlag) {
40
40
  return {};
41
41
  }
42
- var browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
42
+ var browserVersionDisableRange =
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
45
+ browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
43
46
  if (!browserVersionDisableRange || !browserEnv[userCurrentBrowserAndVersion.browser]) {
44
47
  return {};
45
48
  }
@@ -19,7 +19,10 @@ var DEFAULT_TRACK_SEVERITY_ENABLED = false;
19
19
  export var DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
20
20
  export var DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
21
21
  var dispatchLongTaskEvent = function dispatchLongTaskEvent(contextIdentifierPlugin) {
22
- return function (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity) {
22
+ return function (dispatchAnalyticsEvent, view, time, getNodeCount, interactionType, severity
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line @typescript-eslint/max-params
25
+ ) {
23
26
  var _contextIdentifierPlu;
24
27
  var state = view.state;
25
28
  var nodesCount = getNodeCount(state);
@@ -114,6 +114,8 @@ function getCaretTopPosition() {
114
114
  }
115
115
 
116
116
  // Return container top
117
+ // Ignored via go/ees005
118
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
117
119
  var container = range.startContainer;
118
120
  if (container && container.getBoundingClientRect) {
119
121
  return container.getBoundingClientRect().top;
@@ -190,12 +192,16 @@ export default (function () {
190
192
  view: function view(_view) {
191
193
  // Store references to avoid lookups on successive checks.
192
194
  scrollElement = getScrollElement(_view);
195
+ // Ignored via go/ees005
196
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
193
197
  var editorElement = _view.dom;
194
198
  var editorParentElement = editorElement.parentElement;
195
199
  var viewportElementHeight = 0;
196
200
  var contentElementHeight = 0;
197
201
  var addAndObserveGutter = function addAndObserveGutter() {
198
202
  if (!gutter.isMounted()) {
203
+ // Ignored via go/ees005
204
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
199
205
  gutter.observe(scrollElement);
200
206
  gutter.addGutter(editorParentElement ? new WeakRef(editorParentElement) : null);
201
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^97.0.0",
35
+ "@atlaskit/editor-common": "^98.0.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "6.2.1",
39
39
  "@atlaskit/platform-feature-flags": "^0.3.0",
40
- "@atlaskit/tmp-editor-statsig": "^2.29.0",
40
+ "@atlaskit/tmp-editor-statsig": "^2.31.0",
41
41
  "@babel/runtime": "^7.0.0"
42
42
  },
43
43
  "techstack": {
package/tsconfig.app.json CHANGED
@@ -27,7 +27,6 @@
27
27
  "**/codemods/**/*.tsx"
28
28
  ],
29
29
  "compilerOptions": {
30
- "baseUrl": "",
31
30
  "composite": true,
32
31
  "outDir": "../../../tsDist/@atlaskit__editor-plugin-base/app"
33
32
  },
package/tsconfig.dev.json CHANGED
@@ -27,7 +27,6 @@
27
27
  ],
28
28
  "exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
29
29
  "compilerOptions": {
30
- "baseUrl": "",
31
30
  "composite": true,
32
31
  "outDir": "../../../tsDist/@atlaskit__editor-plugin-base/dev"
33
32
  },