@atlaskit/editor-plugin-base 2.3.2 → 2.3.4

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,17 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 2.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.3.2
4
16
 
5
17
  ### Patch Changes
@@ -54,9 +54,9 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
54
54
  }
55
55
  var samplingRate = inputTracking && typeof inputTracking.samplingRate === 'number' ? inputTracking.samplingRate : DEFAULT_KEYSTROKE_SAMPLING_LIMIT;
56
56
 
57
- //TODO: get right values here based on appearance
57
+ // TODO: ED-26959 - get right values here based on appearance
58
58
  var slowThreshold = DEFAULT_SLOW_THRESHOLD;
59
- //TODO: get right values here based on appearance
59
+ // TODO: ED-26959 - get right values here based on appearance
60
60
  var freezeThreshold = DEFAULT_FREEZE_THRESHOLD;
61
61
  var allowCountNodes = inputTracking && inputTracking.countNodes;
62
62
  var prevNodeCountState = null;
@@ -183,6 +183,8 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
183
183
  var duration = perfEntries[i].duration;
184
184
  if (duration > freezeThreshold) {
185
185
  dispatchLongTaskEvent(contextIdentifierPlugin)(dispatchAnalyticsEvent, _view, duration, getNodeCount, browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? interactionType : undefined, (0, _analytics2.getAnalyticsEventSeverity)(duration,
186
+ // Ignored via go/ees007
187
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
186
188
  //TODO: get right values here
187
189
  severityThresholdNormal, severityThresholdDegraded));
188
190
  }
@@ -98,7 +98,7 @@ var _default = exports.default = function _default() {
98
98
  // blocking shift + arrow left/right selections in safari. When
99
99
  // a shift + arrow left/right event is detected, send meta data to the
100
100
  // plugin to prevent it from creating decorations.
101
- // TODO We may be able to remove this when playing the following ticket:
101
+ // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
102
102
  // https://product-fabric.atlassian.net/browse/ED-14938
103
103
  keydown: function keydown(view, event) {
104
104
  if (_browser.browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -11,7 +11,7 @@ var inputTracking = exports.inputTracking = {
11
11
  trackSeverity: true,
12
12
  trackRenderingTime: false,
13
13
  trackSingleKeypress: false,
14
- // TODO: change this based on appearance due to SLOs - need to make ticket for both
14
+ // TODO: ED-26959 - change this based on appearance due to SLOs - need to make ticket for both
15
15
  severityDegradedThreshold: 273,
16
16
  severityNormalThreshold: 143
17
17
  };
@@ -43,9 +43,9 @@ export default (contextIdentifierPlugin => (dispatchAnalyticsEvent, inputTrackin
43
43
  }
44
44
  const samplingRate = inputTracking && typeof inputTracking.samplingRate === 'number' ? inputTracking.samplingRate : DEFAULT_KEYSTROKE_SAMPLING_LIMIT;
45
45
 
46
- //TODO: get right values here based on appearance
46
+ // TODO: ED-26959 - get right values here based on appearance
47
47
  const slowThreshold = DEFAULT_SLOW_THRESHOLD;
48
- //TODO: get right values here based on appearance
48
+ // TODO: ED-26959 - get right values here based on appearance
49
49
  const freezeThreshold = DEFAULT_FREEZE_THRESHOLD;
50
50
  const allowCountNodes = inputTracking && inputTracking.countNodes;
51
51
  let prevNodeCountState = null;
@@ -177,6 +177,8 @@ export default (contextIdentifierPlugin => (dispatchAnalyticsEvent, inputTrackin
177
177
  } = perfEntries[i];
178
178
  if (duration > freezeThreshold) {
179
179
  dispatchLongTaskEvent(contextIdentifierPlugin)(dispatchAnalyticsEvent, view, duration, getNodeCount, browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? interactionType : undefined, getAnalyticsEventSeverity(duration,
180
+ // Ignored via go/ees007
181
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
180
182
  //TODO: get right values here
181
183
  severityThresholdNormal, severityThresholdDegraded));
182
184
  }
@@ -99,7 +99,7 @@ export default (() => {
99
99
  // blocking shift + arrow left/right selections in safari. When
100
100
  // a shift + arrow left/right event is detected, send meta data to the
101
101
  // plugin to prevent it from creating decorations.
102
- // TODO We may be able to remove this when playing the following ticket:
102
+ // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
103
103
  // https://product-fabric.atlassian.net/browse/ED-14938
104
104
  keydown: (view, event) => {
105
105
  if (browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -5,7 +5,7 @@ export const inputTracking = {
5
5
  trackSeverity: true,
6
6
  trackRenderingTime: false,
7
7
  trackSingleKeypress: false,
8
- // TODO: change this based on appearance due to SLOs - need to make ticket for both
8
+ // TODO: ED-26959 - change this based on appearance due to SLOs - need to make ticket for both
9
9
  severityDegradedThreshold: 273,
10
10
  severityNormalThreshold: 143
11
11
  };
@@ -47,9 +47,9 @@ export default (function (contextIdentifierPlugin) {
47
47
  }
48
48
  var samplingRate = inputTracking && typeof inputTracking.samplingRate === 'number' ? inputTracking.samplingRate : DEFAULT_KEYSTROKE_SAMPLING_LIMIT;
49
49
 
50
- //TODO: get right values here based on appearance
50
+ // TODO: ED-26959 - get right values here based on appearance
51
51
  var slowThreshold = DEFAULT_SLOW_THRESHOLD;
52
- //TODO: get right values here based on appearance
52
+ // TODO: ED-26959 - get right values here based on appearance
53
53
  var freezeThreshold = DEFAULT_FREEZE_THRESHOLD;
54
54
  var allowCountNodes = inputTracking && inputTracking.countNodes;
55
55
  var prevNodeCountState = null;
@@ -176,6 +176,8 @@ export default (function (contextIdentifierPlugin) {
176
176
  var duration = perfEntries[i].duration;
177
177
  if (duration > freezeThreshold) {
178
178
  dispatchLongTaskEvent(contextIdentifierPlugin)(dispatchAnalyticsEvent, _view, duration, getNodeCount, browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? interactionType : undefined, getAnalyticsEventSeverity(duration,
179
+ // Ignored via go/ees007
180
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
179
181
  //TODO: get right values here
180
182
  severityThresholdNormal, severityThresholdDegraded));
181
183
  }
@@ -92,7 +92,7 @@ export default (function () {
92
92
  // blocking shift + arrow left/right selections in safari. When
93
93
  // a shift + arrow left/right event is detected, send meta data to the
94
94
  // plugin to prevent it from creating decorations.
95
- // TODO We may be able to remove this when playing the following ticket:
95
+ // TODO: ED-26959 - We may be able to remove this when playing the following ticket:
96
96
  // https://product-fabric.atlassian.net/browse/ED-14938
97
97
  keydown: function keydown(view, event) {
98
98
  if (browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
@@ -5,7 +5,7 @@ export var inputTracking = {
5
5
  trackSeverity: true,
6
6
  trackRenderingTime: false,
7
7
  trackSingleKeypress: false,
8
- // TODO: change this based on appearance due to SLOs - need to make ticket for both
8
+ // TODO: ED-26959 - change this based on appearance due to SLOs - need to make ticket for both
9
9
  severityDegradedThreshold: 273,
10
10
  severityNormalThreshold: 143
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
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": "^47.6.0",
35
- "@atlaskit/editor-common": "^102.0.0",
35
+ "@atlaskit/editor-common": "^103.0.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^2.0.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
- "@atlaskit/tmp-editor-statsig": "^3.4.0",
40
+ "@atlaskit/tmp-editor-statsig": "^4.6.0",
41
41
  "@babel/runtime": "^7.0.0"
42
42
  },
43
43
  "techstack": {