@atlaskit/editor-core 193.10.12 → 193.10.19

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-core
2
2
 
3
+ ## 193.10.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [#92786](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92786) [`1dc6fc4f1a1d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1dc6fc4f1a1d) - fix: onPluginObservation type error with collab plugin state being empty
8
+
3
9
  ## 193.10.12
4
10
 
5
11
  ### Patch Changes
@@ -102,7 +102,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
102
102
  eventType: _analytics.EVENT_TYPE.OPERATIONAL,
103
103
  attributes: {
104
104
  report: report,
105
- participants: ((_this$pluginInjection = _this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.sharedState.currentState().participants.size()) || 1
105
+ participants: ((_this$pluginInjection = _this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 || (_this$pluginInjection = _this$pluginInjection.sharedState.currentState()) === null || _this$pluginInjection === void 0 || (_this$pluginInjection = _this$pluginInjection.participants) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.size()) || 1
106
106
  }
107
107
  });
108
108
  });
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "193.10.12";
8
+ var version = exports.version = "193.10.19";
@@ -93,14 +93,14 @@ export class ReactEditorView extends React.Component {
93
93
  // so we allow transactions by default, to avoid discarding the initial one.
94
94
  _defineProperty(this, "canDispatchTransactions", true);
95
95
  _defineProperty(this, "onPluginObservation", report => {
96
- var _this$pluginInjection;
96
+ var _this$pluginInjection, _this$pluginInjection2, _this$pluginInjection3;
97
97
  this.dispatchAnalyticsEvent({
98
98
  action: ACTION.TRANSACTION_DISPATCHED,
99
99
  actionSubject: ACTION_SUBJECT.EDITOR,
100
100
  eventType: EVENT_TYPE.OPERATIONAL,
101
101
  attributes: {
102
102
  report,
103
- participants: ((_this$pluginInjection = this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.sharedState.currentState().participants.size()) || 1
103
+ participants: ((_this$pluginInjection = this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 ? void 0 : (_this$pluginInjection2 = _this$pluginInjection.sharedState.currentState()) === null || _this$pluginInjection2 === void 0 ? void 0 : (_this$pluginInjection3 = _this$pluginInjection2.participants) === null || _this$pluginInjection3 === void 0 ? void 0 : _this$pluginInjection3.size()) || 1
104
104
  }
105
105
  });
106
106
  });
@@ -398,10 +398,10 @@ export class ReactEditorView extends React.Component {
398
398
  const forceSeverityTracking = typeof proseMirrorRenderedTracking === 'undefined' && shouldForceTracking();
399
399
  this.proseMirrorRenderedSeverity = !!forceSeverityTracking || proseMirrorRenderedTracking !== null && proseMirrorRenderedTracking !== void 0 && proseMirrorRenderedTracking.trackSeverity ? getAnalyticsEventSeverity(duration, (_proseMirrorRenderedT = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityNormalThreshold) !== null && _proseMirrorRenderedT !== void 0 ? _proseMirrorRenderedT : PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD, (_proseMirrorRenderedT2 = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityDegradedThreshold) !== null && _proseMirrorRenderedT2 !== void 0 ? _proseMirrorRenderedT2 : PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD) : undefined;
400
400
  if (this.view) {
401
- var _this$pluginInjection2, _this$experienceStore10;
401
+ var _this$pluginInjection4, _this$experienceStore10;
402
402
  const nodes = getNodesCount(this.view.state.doc);
403
403
  const ttfb = getResponseEndTime();
404
- const contextIdentifier = (_this$pluginInjection2 = this.pluginInjectionAPI.api().base) === null || _this$pluginInjection2 === void 0 ? void 0 : _this$pluginInjection2.sharedState.currentState();
404
+ const contextIdentifier = (_this$pluginInjection4 = this.pluginInjectionAPI.api().base) === null || _this$pluginInjection4 === void 0 ? void 0 : _this$pluginInjection4.sharedState.currentState();
405
405
  this.dispatchAnalyticsEvent({
406
406
  action: ACTION.PROSEMIRROR_RENDERED,
407
407
  actionSubject: ACTION_SUBJECT.EDITOR,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.10.12";
2
+ export const version = "193.10.19";
@@ -96,7 +96,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
96
96
  eventType: EVENT_TYPE.OPERATIONAL,
97
97
  attributes: {
98
98
  report: report,
99
- participants: ((_this$pluginInjection = _this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.sharedState.currentState().participants.size()) || 1
99
+ participants: ((_this$pluginInjection = _this.pluginInjectionAPI.api().collabEdit) === null || _this$pluginInjection === void 0 || (_this$pluginInjection = _this$pluginInjection.sharedState.currentState()) === null || _this$pluginInjection === void 0 || (_this$pluginInjection = _this$pluginInjection.participants) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.size()) || 1
100
100
  }
101
101
  });
102
102
  });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.10.12";
2
+ export var version = "193.10.19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.10.12",
3
+ "version": "193.10.19",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,9 +45,9 @@
45
45
  "@atlaskit/analytics-next": "^9.2.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^17.12.0",
48
- "@atlaskit/editor-common": "^78.29.0",
48
+ "@atlaskit/editor-common": "^78.30.0",
49
49
  "@atlaskit/editor-json-transformer": "^8.10.0",
50
- "@atlaskit/editor-plugins": "^2.2.0",
50
+ "@atlaskit/editor-plugins": "^2.3.0",
51
51
  "@atlaskit/editor-prosemirror": "3.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^2.9.0",
53
53
  "@atlaskit/emoji": "^67.6.0",
@@ -87,9 +87,9 @@
87
87
  "@atlaskit/adf-utils": "^19.0.0",
88
88
  "@atlaskit/analytics-listeners": "^8.9.1",
89
89
  "@atlaskit/checkbox": "^13.1.0",
90
- "@atlaskit/collab-provider": "9.26.3",
90
+ "@atlaskit/collab-provider": "9.26.5",
91
91
  "@atlaskit/dropdown-menu": "^12.9.0",
92
- "@atlaskit/editor-plugin-annotation": "1.5.9",
92
+ "@atlaskit/editor-plugin-annotation": "1.5.10",
93
93
  "@atlaskit/editor-plugin-card": "^1.8.0",
94
94
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
95
95
  "@atlaskit/editor-plugin-list": "^3.1.5",