@atlaskit/editor-core 193.23.1 → 193.24.0

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +1 -0
  3. package/dist/cjs/presets/universal.js +3 -2
  4. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +3 -1
  5. package/dist/cjs/ui/Appearance/Chromeless.js +3 -1
  6. package/dist/cjs/ui/Appearance/Comment/Comment.js +12 -4
  7. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -1
  8. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +3 -1
  9. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +6 -2
  10. package/dist/cjs/ui/ContentStyles/index.js +9 -6
  11. package/dist/cjs/ui/WithFlash/index.js +3 -1
  12. package/dist/cjs/version-wrapper.js +1 -1
  13. package/dist/es2019/create-editor/ReactEditorView.js +1 -0
  14. package/dist/es2019/presets/universal.js +3 -2
  15. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -1
  16. package/dist/es2019/ui/Appearance/Chromeless.js +3 -1
  17. package/dist/es2019/ui/Appearance/Comment/Comment.js +12 -4
  18. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +3 -1
  19. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +3 -1
  20. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +6 -2
  21. package/dist/es2019/ui/ContentStyles/index.js +9 -6
  22. package/dist/es2019/ui/WithFlash/index.js +3 -1
  23. package/dist/es2019/version-wrapper.js +1 -1
  24. package/dist/esm/create-editor/ReactEditorView.js +1 -0
  25. package/dist/esm/presets/universal.js +3 -2
  26. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -1
  27. package/dist/esm/ui/Appearance/Chromeless.js +3 -1
  28. package/dist/esm/ui/Appearance/Comment/Comment.js +12 -4
  29. package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -1
  30. package/dist/esm/ui/Appearance/FullPage/FullPage.js +3 -1
  31. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +6 -2
  32. package/dist/esm/ui/ContentStyles/index.js +9 -6
  33. package/dist/esm/ui/WithFlash/index.js +3 -1
  34. package/dist/esm/version-wrapper.js +1 -1
  35. package/docs/4-annotations.tsx +12 -0
  36. package/package.json +9 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#103169](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103169)
8
+ [`e9d45fc94064`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9d45fc94064) -
9
+ [ux] [ED-23248] -
10
+
11
+ **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
12
+ composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards
13
+ on click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
14
+
15
+ ### Patch Changes
16
+
17
+ - [#103816](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103816)
18
+ [`3fb50173376f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3fb50173376f) -
19
+ [ED-23159] Added blending styling for when highlights overlap inline comments
20
+
3
21
  ## 193.23.1
4
22
 
5
23
  ### Patch Changes
@@ -527,6 +527,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
527
527
  });
528
528
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createEditor", function (assistiveLabel) {
529
529
  return /*#__PURE__*/_react.default.createElement("div", {
530
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
530
531
  className: getUAPrefix(),
531
532
  key: "ProseMirror",
532
533
  ref: _this.handleEditorViewRef,
@@ -71,7 +71,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
71
71
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
72
72
  */
73
73
  function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
74
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
74
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
75
75
  var isMobile = appearance === 'mobile';
76
76
  var isComment = appearance === 'comment';
77
77
  var isChromeless = appearance === 'chromeless';
@@ -124,7 +124,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
124
124
  sanitizePrivateContent: props.sanitizePrivateContent,
125
125
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
126
126
  allowZeroWidthSpaceAfter: !isMobile,
127
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
127
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
128
+ profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
128
129
  }], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
129
130
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
130
131
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -84,7 +84,9 @@ var ClickAreaMobile = exports.default = /*#__PURE__*/function (_React$Component)
84
84
  css: clickWrapper({
85
85
  isExpanded: this.props.isExpanded,
86
86
  minHeight: this.props.minHeight
87
- }),
87
+ })
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
89
+ ,
88
90
  className: "editor-click-wrapper",
89
91
  onClick: this.handleClick,
90
92
  ref: this.clickElementRef
@@ -91,7 +91,9 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
91
91
  ref: function ref(_ref2) {
92
92
  return _this.containerElement = _ref2;
93
93
  }
94
- }, (0, _react2.jsx)(ContentArea, {
94
+ }, (0, _react2.jsx)(ContentArea
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
96
+ , {
95
97
  className: "ak-editor-content-area",
96
98
  featureFlags: featureFlags
97
99
  }, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
@@ -155,7 +155,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
155
155
  }, (0, _react2.jsx)("div", {
156
156
  css: [commentEditorStyles, (0, _react2.css)({
157
157
  minHeight: "".concat(minHeight, "px")
158
- })],
158
+ })]
159
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
160
+ ,
159
161
  className: "akEditor",
160
162
  ref: _this.wrapperElementRef
161
163
  }, (0, _react2.jsx)(_Toolbar2.MainToolbar, {
@@ -196,7 +198,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
196
198
  },
197
199
  css: maxHeight ? (0, _react2.css)({
198
200
  maxHeight: "".concat(maxHeight, "px")
199
- }) : null,
201
+ }) : null
202
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
203
+ ,
200
204
  className: (0, _classnames.default)('ak-editor-content-area', {
201
205
  'less-margin': width < _editorSharedStyles.akEditorMobileBreakoutPoint
202
206
  }),
@@ -348,7 +352,9 @@ var EditorNext = function EditorNext(props) {
348
352
  }, (0, _react2.jsx)("div", {
349
353
  css: [commentEditorStyles, (0, _react2.css)({
350
354
  minHeight: "".concat(minHeight, "px")
351
- })],
355
+ })]
356
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
357
+ ,
352
358
  className: "akEditor",
353
359
  ref: wrapperElementRef
354
360
  }, (0, _react2.jsx)(_Toolbar2.MainToolbar, {
@@ -389,7 +395,9 @@ var EditorNext = function EditorNext(props) {
389
395
  },
390
396
  css: maxHeight ? (0, _react2.css)({
391
397
  maxHeight: "".concat(maxHeight, "px")
392
- }) : null,
398
+ }) : null
399
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
400
+ ,
393
401
  className: (0, _classnames.default)('ak-editor-content-area', {
394
402
  'less-margin': width < _editorSharedStyles.akEditorMobileBreakoutPoint
395
403
  }),
@@ -53,7 +53,9 @@ var StickyToolbar = function StickyToolbar(props) {
53
53
  style: {
54
54
  top: "".concat(top, "px")
55
55
  },
56
- "data-testid": "ak-editor-main-toolbar",
56
+ "data-testid": "ak-editor-main-toolbar"
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
58
+ ,
57
59
  className: 'show-keyline'
58
60
  }, props.children)
59
61
  );
@@ -69,7 +69,9 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
69
69
  }
70
70
  var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
71
71
  return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
72
- css: _StyledComponents.fullPageEditorWrapper,
72
+ css: _StyledComponents.fullPageEditorWrapper
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
74
+ ,
73
75
  className: "akEditor",
74
76
  ref: wrapperElementRef
75
77
  }, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
@@ -43,7 +43,9 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
43
43
  return (0, _react2.jsx)("div", {
44
44
  css: [_StyledComponents.contentArea, props.isEditorToolbarHidden && _StyledComponents.contentAreaHeightNoToolbar, positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
45
45
  "data-testid": CONTENT_AREA_TEST_ID
46
- }, (0, _react2.jsx)(_StyledComponents.ScrollContainer, {
46
+ }, (0, _react2.jsx)(_StyledComponents.ScrollContainer
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
48
+ , {
47
49
  className: "fabric-editor-popup-scroll-parent",
48
50
  featureFlags: props.featureFlags,
49
51
  ref: scrollContainerRef
@@ -60,7 +62,9 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
60
62
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
61
63
  ref: contentAreaRef
62
64
  }, (0, _react2.jsx)("div", {
63
- css: _StyledComponents.editorContentGutterStyle,
65
+ css: _StyledComponents.editorContentGutterStyle
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
67
+ ,
64
68
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
65
69
  ref: contentAreaRef
66
70
  }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
@@ -70,7 +70,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
70
70
  var contentStyles = function contentStyles(props) {
71
71
  return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
72
72
  theme: props.theme
73
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, _styles.backgroundColorStyles, listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
73
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(props.colorMode), listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
74
74
  };
75
75
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
76
76
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -92,11 +92,14 @@ var createEditorContentStyle = exports.createEditorContentStyle = function creat
92
92
  viewMode: viewMode
93
93
  });
94
94
  }, [theme, colorMode, featureFlags, viewMode]);
95
- return (0, _react2.jsx)("div", {
96
- className: className,
97
- ref: ref,
98
- css: [memoizedStyle, styles]
99
- }, children);
95
+ return (
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
97
+ (0, _react2.jsx)("div", {
98
+ className: className,
99
+ ref: ref,
100
+ css: [memoizedStyle, styles]
101
+ }, children)
102
+ );
100
103
  });
101
104
  };
102
105
  var _default = exports.default = createEditorContentStyle();
@@ -67,7 +67,9 @@ var WithFlash = exports.default = /*#__PURE__*/function (_React$Component) {
67
67
  return (
68
68
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
69
69
  (0, _react2.jsx)("div", {
70
- css: animate ? flashWrapperAnimated : flashWrapper,
70
+ css: animate ? flashWrapperAnimated : flashWrapper
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
72
+ ,
71
73
  className: this.toggle ? '-flash' : ''
72
74
  }, children)
73
75
  );
@@ -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.23.1";
8
+ var version = exports.version = "193.24.0";
@@ -523,6 +523,7 @@ export class ReactEditorView extends React.Component {
523
523
  });
524
524
  _defineProperty(this, "createEditor", assistiveLabel => {
525
525
  return /*#__PURE__*/React.createElement("div", {
526
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
526
527
  className: getUAPrefix(),
527
528
  key: "ProseMirror",
528
529
  ref: this.handleEditorViewRef,
@@ -59,7 +59,7 @@ import { createDefaultPreset } from './default';
59
59
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
60
60
  */
61
61
  export default function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
62
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
62
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
63
63
  const isMobile = appearance === 'mobile';
64
64
  const isComment = appearance === 'comment';
65
65
  const isChromeless = appearance === 'chromeless';
@@ -113,7 +113,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
113
113
  sanitizePrivateContent: props.sanitizePrivateContent,
114
114
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
115
115
  allowZeroWidthSpaceAfter: !isMobile,
116
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
116
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
117
+ profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
117
118
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
118
119
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
119
120
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -61,7 +61,9 @@ export default class ClickAreaMobile extends React.Component {
61
61
  css: clickWrapper({
62
62
  isExpanded: this.props.isExpanded,
63
63
  minHeight: this.props.minHeight
64
- }),
64
+ })
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
66
+ ,
65
67
  className: "editor-click-wrapper",
66
68
  onClick: this.handleClick,
67
69
  ref: this.clickElementRef
@@ -66,7 +66,9 @@ export default class Editor extends React.Component {
66
66
  })],
67
67
  "data-testid": "chromeless-editor",
68
68
  ref: ref => this.containerElement = ref
69
- }, jsx(ContentArea, {
69
+ }, jsx(ContentArea
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
71
+ , {
70
72
  className: "ak-editor-content-area",
71
73
  featureFlags: featureFlags
72
74
  }, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
@@ -134,7 +134,9 @@ class Editor extends React.Component {
134
134
  }, jsx("div", {
135
135
  css: [commentEditorStyles, css({
136
136
  minHeight: `${minHeight}px`
137
- })],
137
+ })]
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
139
+ ,
138
140
  className: "akEditor",
139
141
  ref: this.wrapperElementRef
140
142
  }, jsx(MainToolbar, {
@@ -174,7 +176,9 @@ class Editor extends React.Component {
174
176
  ref: ref => this.containerElement = ref,
175
177
  css: maxHeight ? css({
176
178
  maxHeight: `${maxHeight}px`
177
- }) : null,
179
+ }) : null
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
181
+ ,
178
182
  className: classnames('ak-editor-content-area', {
179
183
  'less-margin': width < akEditorMobileBreakoutPoint
180
184
  }),
@@ -318,7 +322,9 @@ const EditorNext = props => {
318
322
  }, jsx("div", {
319
323
  css: [commentEditorStyles, css({
320
324
  minHeight: `${minHeight}px`
321
- })],
325
+ })]
326
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
327
+ ,
322
328
  className: "akEditor",
323
329
  ref: wrapperElementRef
324
330
  }, jsx(MainToolbar, {
@@ -358,7 +364,9 @@ const EditorNext = props => {
358
364
  ref: ref => containerElement = ref,
359
365
  css: maxHeight ? css({
360
366
  maxHeight: `${maxHeight}px`
361
- }) : null,
367
+ }) : null
368
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
369
+ ,
362
370
  className: classnames('ak-editor-content-area', {
363
371
  'less-margin': width < akEditorMobileBreakoutPoint
364
372
  }),
@@ -84,7 +84,9 @@ const StickyToolbar = props => {
84
84
  style: {
85
85
  top: `${top}px`
86
86
  },
87
- "data-testid": "ak-editor-main-toolbar",
87
+ "data-testid": "ak-editor-main-toolbar"
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
89
+ ,
88
90
  className: 'show-keyline'
89
91
  }, props.children)
90
92
  );
@@ -51,7 +51,9 @@ export const FullPageEditor = props => {
51
51
  }
52
52
  const isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
53
53
  return jsx(ContextPanelWidthProvider, null, jsx("div", {
54
- css: fullPageEditorWrapper,
54
+ css: fullPageEditorWrapper
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
56
+ ,
55
57
  className: "akEditor",
56
58
  ref: wrapperElementRef
57
59
  }, !isEditorToolbarHidden && jsx(FullPageToolbar, {
@@ -32,7 +32,9 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
32
32
  return jsx("div", {
33
33
  css: [contentArea, props.isEditorToolbarHidden && contentAreaHeightNoToolbar, positionedOverEditor && positionedOverEditorStyle],
34
34
  "data-testid": CONTENT_AREA_TEST_ID
35
- }, jsx(ScrollContainer, {
35
+ }, jsx(ScrollContainer
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
37
+ , {
36
38
  className: "fabric-editor-popup-scroll-parent",
37
39
  featureFlags: props.featureFlags,
38
40
  ref: scrollContainerRef
@@ -49,7 +51,9 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
49
51
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
50
52
  ref: contentAreaRef
51
53
  }, jsx("div", {
52
- css: editorContentGutterStyle,
54
+ css: editorContentGutterStyle
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
56
+ ,
53
57
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
54
58
  ref: contentAreaRef
55
59
  }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
@@ -184,7 +184,7 @@ const contentStyles = props => css`
184
184
  ${blocktypeStyles()}
185
185
  ${codeMarkSharedStyles()}
186
186
  ${textColorStyles}
187
- ${backgroundColorStyles}
187
+ ${backgroundColorStyles(props.colorMode)}
188
188
  ${listsStyles}
189
189
  ${ruleStyles()}
190
190
  ${mediaStyles}
@@ -295,11 +295,14 @@ export const createEditorContentStyle = styles => {
295
295
  featureFlags,
296
296
  viewMode
297
297
  }), [theme, colorMode, featureFlags, viewMode]);
298
- return jsx("div", {
299
- className: className,
300
- ref: ref,
301
- css: [memoizedStyle, styles]
302
- }, children);
298
+ return (
299
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
300
+ jsx("div", {
301
+ className: className,
302
+ ref: ref,
303
+ css: [memoizedStyle, styles]
304
+ }, children)
305
+ );
303
306
  });
304
307
  };
305
308
  export default createEditorContentStyle();
@@ -46,7 +46,9 @@ export default class WithFlash extends React.Component {
46
46
  return (
47
47
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
48
48
  jsx("div", {
49
- css: animate ? flashWrapperAnimated : flashWrapper,
49
+ css: animate ? flashWrapperAnimated : flashWrapper
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
51
+ ,
50
52
  className: this.toggle ? '-flash' : ''
51
53
  }, children)
52
54
  );
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.23.1";
2
+ export const version = "193.24.0";
@@ -520,6 +520,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
520
520
  });
521
521
  _defineProperty(_assertThisInitialized(_this), "createEditor", function (assistiveLabel) {
522
522
  return /*#__PURE__*/React.createElement("div", {
523
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
523
524
  className: getUAPrefix(),
524
525
  key: "ProseMirror",
525
526
  ref: _this.handleEditorViewRef,
@@ -63,7 +63,7 @@ import { createDefaultPreset } from './default';
63
63
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
64
64
  */
65
65
  export default function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
66
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
66
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
67
67
  var isMobile = appearance === 'mobile';
68
68
  var isComment = appearance === 'comment';
69
69
  var isChromeless = appearance === 'chromeless';
@@ -116,7 +116,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
116
116
  sanitizePrivateContent: props.sanitizePrivateContent,
117
117
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
118
118
  allowZeroWidthSpaceAfter: !isMobile,
119
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
119
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
120
+ profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
120
121
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
121
122
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
122
123
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -79,7 +79,9 @@ var ClickAreaMobile = /*#__PURE__*/function (_React$Component) {
79
79
  css: clickWrapper({
80
80
  isExpanded: this.props.isExpanded,
81
81
  minHeight: this.props.minHeight
82
- }),
82
+ })
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
84
+ ,
83
85
  className: "editor-click-wrapper",
84
86
  onClick: this.handleClick,
85
87
  ref: this.clickElementRef
@@ -82,7 +82,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
82
82
  ref: function ref(_ref2) {
83
83
  return _this.containerElement = _ref2;
84
84
  }
85
- }, jsx(ContentArea, {
85
+ }, jsx(ContentArea
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
87
+ , {
86
88
  className: "ak-editor-content-area",
87
89
  featureFlags: featureFlags
88
90
  }, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
@@ -146,7 +146,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
146
146
  }, jsx("div", {
147
147
  css: [commentEditorStyles, css({
148
148
  minHeight: "".concat(minHeight, "px")
149
- })],
149
+ })]
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
151
+ ,
150
152
  className: "akEditor",
151
153
  ref: _this.wrapperElementRef
152
154
  }, jsx(MainToolbar, {
@@ -187,7 +189,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
187
189
  },
188
190
  css: maxHeight ? css({
189
191
  maxHeight: "".concat(maxHeight, "px")
190
- }) : null,
192
+ }) : null
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
194
+ ,
191
195
  className: classnames('ak-editor-content-area', {
192
196
  'less-margin': width < akEditorMobileBreakoutPoint
193
197
  }),
@@ -339,7 +343,9 @@ var EditorNext = function EditorNext(props) {
339
343
  }, jsx("div", {
340
344
  css: [commentEditorStyles, css({
341
345
  minHeight: "".concat(minHeight, "px")
342
- })],
346
+ })]
347
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
348
+ ,
343
349
  className: "akEditor",
344
350
  ref: wrapperElementRef
345
351
  }, jsx(MainToolbar, {
@@ -380,7 +386,9 @@ var EditorNext = function EditorNext(props) {
380
386
  },
381
387
  css: maxHeight ? css({
382
388
  maxHeight: "".concat(maxHeight, "px")
383
- }) : null,
389
+ }) : null
390
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
391
+ ,
384
392
  className: classnames('ak-editor-content-area', {
385
393
  'less-margin': width < akEditorMobileBreakoutPoint
386
394
  }),
@@ -44,7 +44,9 @@ var StickyToolbar = function StickyToolbar(props) {
44
44
  style: {
45
45
  top: "".concat(top, "px")
46
46
  },
47
- "data-testid": "ak-editor-main-toolbar",
47
+ "data-testid": "ak-editor-main-toolbar"
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
49
+ ,
48
50
  className: 'show-keyline'
49
51
  }, props.children)
50
52
  );
@@ -58,7 +58,9 @@ export var FullPageEditor = function FullPageEditor(props) {
58
58
  }
59
59
  var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
60
60
  return jsx(ContextPanelWidthProvider, null, jsx("div", {
61
- css: fullPageEditorWrapper,
61
+ css: fullPageEditorWrapper
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
63
+ ,
62
64
  className: "akEditor",
63
65
  ref: wrapperElementRef
64
66
  }, !isEditorToolbarHidden && jsx(FullPageToolbar, {
@@ -33,7 +33,9 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
33
33
  return jsx("div", {
34
34
  css: [contentArea, props.isEditorToolbarHidden && contentAreaHeightNoToolbar, positionedOverEditor && positionedOverEditorStyle],
35
35
  "data-testid": CONTENT_AREA_TEST_ID
36
- }, jsx(ScrollContainer, {
36
+ }, jsx(ScrollContainer
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
38
+ , {
37
39
  className: "fabric-editor-popup-scroll-parent",
38
40
  featureFlags: props.featureFlags,
39
41
  ref: scrollContainerRef
@@ -50,7 +52,9 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
50
52
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
51
53
  ref: contentAreaRef
52
54
  }, jsx("div", {
53
- css: editorContentGutterStyle,
55
+ css: editorContentGutterStyle
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
57
+ ,
54
58
  className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
55
59
  ref: contentAreaRef
56
60
  }, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
@@ -61,7 +61,7 @@ export var placeholderStyles = css({
61
61
  var contentStyles = function contentStyles(props) {
62
62
  return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
63
63
  theme: props.theme
64
- }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
64
+ }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(props.colorMode), listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
65
65
  };
66
66
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
67
67
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -83,11 +83,14 @@ export var createEditorContentStyle = function createEditorContentStyle(styles)
83
83
  viewMode: viewMode
84
84
  });
85
85
  }, [theme, colorMode, featureFlags, viewMode]);
86
- return jsx("div", {
87
- className: className,
88
- ref: ref,
89
- css: [memoizedStyle, styles]
90
- }, children);
86
+ return (
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
88
+ jsx("div", {
89
+ className: className,
90
+ ref: ref,
91
+ css: [memoizedStyle, styles]
92
+ }, children)
93
+ );
91
94
  });
92
95
  };
93
96
  export default createEditorContentStyle();
@@ -61,7 +61,9 @@ var WithFlash = /*#__PURE__*/function (_React$Component) {
61
61
  return (
62
62
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
63
63
  jsx("div", {
64
- css: animate ? flashWrapperAnimated : flashWrapper,
64
+ css: animate ? flashWrapperAnimated : flashWrapper
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
66
+ ,
65
67
  className: this.toggle ? '-flash' : ''
66
68
  }, children)
67
69
  );
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.23.1";
2
+ export var version = "193.24.0";
@@ -189,16 +189,22 @@ class SplitExample extends React.Component<{ initialAdf: object }> {
189
189
  return (
190
190
  <div
191
191
  style={{
192
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
192
193
  display: 'flex',
194
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
193
195
  maxHeight: '400px',
194
196
  }}
195
197
  >
196
198
  <div
197
199
  style={{
200
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
198
201
  margin: token('space.100', '8px'),
202
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
199
203
  padding: token('space.100', '8px'),
204
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
200
205
  backgroundColor: N20,
201
206
  border: `1px solid ${N30}`,
207
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
202
208
  flex: 1,
203
209
  }}
204
210
  >
@@ -206,8 +212,11 @@ class SplitExample extends React.Component<{ initialAdf: object }> {
206
212
  </div>
207
213
  <div
208
214
  style={{
215
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
209
216
  flex: 2,
217
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
210
218
  overflow: 'auto',
219
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
211
220
  margin: token('space.100', '8px'),
212
221
  }}
213
222
  >
@@ -235,8 +244,11 @@ These denote a comment thread about the given text, and are denoted by a yellow
235
244
  ${(
236
245
  <div
237
246
  style={{
247
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
238
248
  margin: token('space.100', '8px'),
249
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
239
250
  padding: token('space.100', '8px'),
251
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
240
252
  backgroundColor: N20,
241
253
  border: `1px solid ${N30}`,
242
254
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.23.1",
3
+ "version": "193.24.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^17.17.0",
48
- "@atlaskit/editor-common": "^81.0.0",
48
+ "@atlaskit/editor-common": "^81.1.0",
49
49
  "@atlaskit/editor-json-transformer": "^8.13.0",
50
50
  "@atlaskit/editor-plugins": "^2.7.0",
51
51
  "@atlaskit/editor-prosemirror": "4.0.1",
@@ -105,9 +105,10 @@
105
105
  "@atlaskit/modal-dialog": "^12.13.0",
106
106
  "@atlaskit/primitives": "^6.3.0",
107
107
  "@atlaskit/renderer": "^109.29.0",
108
- "@atlaskit/select": "^17.9.0",
109
- "@atlaskit/smart-card": "^27.0.0",
108
+ "@atlaskit/select": "^17.10.0",
109
+ "@atlaskit/smart-card": "^27.2.0",
110
110
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
111
+ "@atlaskit/toggle": "^13.1.0",
111
112
  "@atlaskit/util-data-test": "^17.9.0",
112
113
  "@atlaskit/visual-regression": "*",
113
114
  "@atlassian/adf-schema-json": "^1.14.0",
@@ -347,6 +348,10 @@
347
348
  },
348
349
  "platform.editor.primary-toolbar-ordering": {
349
350
  "type": "boolean"
351
+ },
352
+ "platform.editor.mentions-in-editor-popup-on-click": {
353
+ "type": "boolean",
354
+ "referenceOnly": "true"
350
355
  }
351
356
  },
352
357
  "stricter": {