@atlaskit/editor-core 215.9.2 → 215.9.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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`54ccde94eb18c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54ccde94eb18c) -
8
+ ED-29459 Clean up platform_editor_toolbar_aifc_toolbar_analytic
9
+ - Updated dependencies
10
+
11
+ ## 215.9.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`16c5ea0ef86b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/16c5ea0ef86b0) -
16
+ EDITOR-2602 Add missing customPrimaryToolbarComponents for comment editor
17
+ - Updated dependencies
18
+
3
19
  ## 215.9.2
4
20
 
5
21
  ### Patch Changes
@@ -208,7 +208,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
208
208
  popupsBoundariesElement: popupsBoundariesElement,
209
209
  popupsScrollableElement: popupsScrollableElement,
210
210
  popupsMountPoint: popupsMountPoint
211
- })) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
211
+ }), customPrimaryToolbarComponents ? customToolbarSlot : null) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
212
212
  editorAPI: editorAPI,
213
213
  editorView: editorView,
214
214
  editorAppearance: appearance,
@@ -475,9 +475,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
475
475
  "data-testid": "editor-content-container"
476
476
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
477
477
  ,
478
- style: style
479
- // eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
480
- ,
478
+ style: style,
481
479
  tabIndex: isScrollable ? 0 : undefined,
482
480
  role: isScrollable ? 'region' : undefined
483
481
  }, children);
@@ -92,13 +92,11 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
92
92
  isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
93
93
  popupsMountPoint: popupsMountPoint,
94
94
  popupsBoundariesElement: popupsBoundariesElement,
95
- popupsScrollableElement: popupsScrollableElement
96
- // supress type checks for now
97
- ,
98
- fireAnalyticsEvent: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? function (payload) {
95
+ popupsScrollableElement: popupsScrollableElement,
96
+ fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
99
97
  var _editorAPI$analytics;
100
98
  editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 || _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
101
- } : undefined
99
+ }
102
100
  }, /*#__PURE__*/_react.default.createElement(_editorToolbarModel.ToolbarModelRenderer, {
103
101
  toolbar: toolbar,
104
102
  components: components,
@@ -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 = "215.9.1";
8
+ var version = exports.version = "215.9.3";
@@ -196,7 +196,7 @@ export const CommentEditorWithIntl = props => {
196
196
  popupsBoundariesElement: popupsBoundariesElement,
197
197
  popupsScrollableElement: popupsScrollableElement,
198
198
  popupsMountPoint: popupsMountPoint
199
- })) : jsx(React.Fragment, null, jsx(CommentToolbar, {
199
+ }), customPrimaryToolbarComponents ? customToolbarSlot : null) : jsx(React.Fragment, null, jsx(CommentToolbar, {
200
200
  editorAPI: editorAPI,
201
201
  editorView: editorView,
202
202
  editorAppearance: appearance,
@@ -471,9 +471,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
471
471
  "data-testid": "editor-content-container"
472
472
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
473
473
  ,
474
- style: style
475
- // eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
476
- ,
474
+ style: style,
477
475
  tabIndex: isScrollable ? 0 : undefined,
478
476
  role: isScrollable ? 'region' : undefined
479
477
  }, children);
@@ -86,13 +86,11 @@ export const ToolbarNext = ({
86
86
  isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
87
87
  popupsMountPoint: popupsMountPoint,
88
88
  popupsBoundariesElement: popupsBoundariesElement,
89
- popupsScrollableElement: popupsScrollableElement
90
- // supress type checks for now
91
- ,
92
- fireAnalyticsEvent: expValEquals('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? payload => {
89
+ popupsScrollableElement: popupsScrollableElement,
90
+ fireAnalyticsEvent: payload => {
93
91
  var _editorAPI$analytics;
94
92
  editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
95
- } : undefined
93
+ }
96
94
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
97
95
  toolbar: toolbar,
98
96
  components: components,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.9.1";
2
+ export const version = "215.9.3";
@@ -197,7 +197,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
197
197
  popupsBoundariesElement: popupsBoundariesElement,
198
198
  popupsScrollableElement: popupsScrollableElement,
199
199
  popupsMountPoint: popupsMountPoint
200
- })) : jsx(React.Fragment, null, jsx(CommentToolbar, {
200
+ }), customPrimaryToolbarComponents ? customToolbarSlot : null) : jsx(React.Fragment, null, jsx(CommentToolbar, {
201
201
  editorAPI: editorAPI,
202
202
  editorView: editorView,
203
203
  editorAppearance: appearance,
@@ -467,9 +467,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
467
467
  "data-testid": "editor-content-container"
468
468
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
469
469
  ,
470
- style: style
471
- // eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex -- Adding tabIndex here because this is a scrollable container and it needs to be focusable so keyboard users can scroll it.
472
- ,
470
+ style: style,
473
471
  tabIndex: isScrollable ? 0 : undefined,
474
472
  role: isScrollable ? 'region' : undefined
475
473
  }, children);
@@ -86,13 +86,11 @@ export var ToolbarNext = function ToolbarNext(_ref) {
86
86
  isDisabled: patch6Enabled ? isDisabled : isOffline || isDisabled,
87
87
  popupsMountPoint: popupsMountPoint,
88
88
  popupsBoundariesElement: popupsBoundariesElement,
89
- popupsScrollableElement: popupsScrollableElement
90
- // supress type checks for now
91
- ,
92
- fireAnalyticsEvent: expValEquals('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? function (payload) {
89
+ popupsScrollableElement: popupsScrollableElement,
90
+ fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
93
91
  var _editorAPI$analytics;
94
92
  editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 || _editorAPI$analytics.actions.fireAnalyticsEvent(payload);
95
- } : undefined
93
+ }
96
94
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
97
95
  toolbar: toolbar,
98
96
  components: components,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.9.1";
2
+ export var version = "215.9.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.9.2",
3
+ "version": "215.9.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
65
65
  "@atlaskit/react-ufo": "^4.14.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^13.23.0",
67
+ "@atlaskit/tmp-editor-statsig": "^13.24.0",
68
68
  "@atlaskit/tokens": "^7.0.0",
69
69
  "@atlaskit/tooltip": "^20.7.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/modal-dialog": "^14.6.0",
107
107
  "@atlaskit/primitives": "^16.1.0",
108
108
  "@atlaskit/renderer": "^124.9.0",
109
- "@atlaskit/section-message": "^8.8.0",
109
+ "@atlaskit/section-message": "^8.9.0",
110
110
  "@atlaskit/smart-card": "^43.5.0",
111
111
  "@atlaskit/synchrony-test-helpers": "workspace:^",
112
112
  "@atlaskit/toggle": "^15.1.0",