@atlaskit/editor-core 193.10.11 → 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,17 @@
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
+
9
+ ## 193.10.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#91801](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91801) [`6d8876d9f604`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d8876d9f604) - [ux] ED-23023: Fix for comments on media button visible in template editor
14
+
3
15
  ## 193.10.11
4
16
 
5
17
  ### 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
  });
@@ -108,7 +108,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
108
108
  allowLazyLoading: !isMobile,
109
109
  allowBreakoutSnapPoints: isFullPage,
110
110
  allowAdvancedToolBarOptions: typeof ((_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.allowAdvancedToolBarOptions) !== 'undefined' ? (_props$media2 = props.media) === null || _props$media2 === void 0 ? void 0 : _props$media2.allowAdvancedToolBarOptions : isFullPage || isComment,
111
- allowCommentsOnMedia: isFullPage,
111
+ allowCommentsOnMedia: isFullPage && Boolean(props.annotationProviders),
112
112
  allowDropzoneDropLine: isFullPage,
113
113
  allowMediaSingleEditable: !isMobile,
114
114
  allowRemoteDimensionsFetch: !isMobile,
@@ -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.11";
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,
@@ -97,7 +97,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
97
97
  allowLazyLoading: !isMobile,
98
98
  allowBreakoutSnapPoints: isFullPage,
99
99
  allowAdvancedToolBarOptions: typeof ((_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.allowAdvancedToolBarOptions) !== 'undefined' ? (_props$media2 = props.media) === null || _props$media2 === void 0 ? void 0 : _props$media2.allowAdvancedToolBarOptions : isFullPage || isComment,
100
- allowCommentsOnMedia: isFullPage,
100
+ allowCommentsOnMedia: isFullPage && Boolean(props.annotationProviders),
101
101
  allowDropzoneDropLine: isFullPage,
102
102
  allowMediaSingleEditable: !isMobile,
103
103
  allowRemoteDimensionsFetch: !isMobile,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.10.11";
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
  });
@@ -100,7 +100,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
100
100
  allowLazyLoading: !isMobile,
101
101
  allowBreakoutSnapPoints: isFullPage,
102
102
  allowAdvancedToolBarOptions: typeof ((_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.allowAdvancedToolBarOptions) !== 'undefined' ? (_props$media2 = props.media) === null || _props$media2 === void 0 ? void 0 : _props$media2.allowAdvancedToolBarOptions : isFullPage || isComment,
103
- allowCommentsOnMedia: isFullPage,
103
+ allowCommentsOnMedia: isFullPage && Boolean(props.annotationProviders),
104
104
  allowDropzoneDropLine: isFullPage,
105
105
  allowMediaSingleEditable: !isMobile,
106
106
  allowRemoteDimensionsFetch: !isMobile,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.10.11";
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.11",
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,15 +87,15 @@
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.2",
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",
96
96
  "@atlaskit/editor-plugin-paste": "^1.0.0",
97
97
  "@atlaskit/editor-test-helpers": "*",
98
- "@atlaskit/flag": "^15.3.0",
98
+ "@atlaskit/flag": "^15.4.0",
99
99
  "@atlaskit/link-provider": "^1.9.0",
100
100
  "@atlaskit/link-test-helpers": "^7.0.0",
101
101
  "@atlaskit/logo": "^13.15.0",
@@ -113,7 +113,7 @@
113
113
  "@atlassian/adf-schema-json": "^1.0.7",
114
114
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
115
115
  "@atlassian/link-picker-plugins": "^24.0.0",
116
- "@atlassian/search-provider": "2.4.56",
116
+ "@atlassian/search-provider": "2.4.57",
117
117
  "@atlassian/ufo": "^0.2.0",
118
118
  "@emotion/jest": "^11.8.0",
119
119
  "@storybook/addon-knobs": "^5.3.18",