@atlaskit/editor-core 187.32.2 → 187.32.5

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 (64) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/labs/next/presets/universal.js +2 -1
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +3 -2
  5. package/dist/cjs/ui/ContentStyles/index.js +13 -12
  6. package/dist/cjs/ui/styles.js +3 -5
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/labs/next/presets/universal.js +2 -1
  9. package/dist/es2019/plugins/index.js +0 -1
  10. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +3 -2
  11. package/dist/es2019/ui/ContentStyles/index.js +25 -3
  12. package/dist/es2019/ui/styles.js +0 -3
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/labs/next/presets/universal.js +2 -1
  15. package/dist/esm/plugins/index.js +0 -1
  16. package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +3 -2
  17. package/dist/esm/ui/ContentStyles/index.js +6 -5
  18. package/dist/esm/ui/styles.js +2 -3
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/plugins/index.d.ts +0 -1
  21. package/dist/types/ui/styles.d.ts +0 -1
  22. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  23. package/dist/types-ts4.5/ui/styles.d.ts +0 -1
  24. package/package.json +3 -3
  25. package/dist/cjs/plugins/emoji/commands/insert-emoji.js +0 -47
  26. package/dist/cjs/plugins/emoji/index.js +0 -409
  27. package/dist/cjs/plugins/emoji/messages.js +0 -15
  28. package/dist/cjs/plugins/emoji/nodeviews/emoji.js +0 -34
  29. package/dist/cjs/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -235
  30. package/dist/cjs/plugins/emoji/styles.js +0 -14
  31. package/dist/cjs/plugins/emoji/types.js +0 -5
  32. package/dist/cjs/plugins/emoji/ui/Emoji/index.js +0 -16
  33. package/dist/es2019/plugins/emoji/commands/insert-emoji.js +0 -40
  34. package/dist/es2019/plugins/emoji/index.js +0 -381
  35. package/dist/es2019/plugins/emoji/messages.js +0 -8
  36. package/dist/es2019/plugins/emoji/nodeviews/emoji.js +0 -29
  37. package/dist/es2019/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -169
  38. package/dist/es2019/plugins/emoji/styles.js +0 -25
  39. package/dist/es2019/plugins/emoji/types.js +0 -1
  40. package/dist/es2019/plugins/emoji/ui/Emoji/index.js +0 -9
  41. package/dist/esm/plugins/emoji/commands/insert-emoji.js +0 -39
  42. package/dist/esm/plugins/emoji/index.js +0 -391
  43. package/dist/esm/plugins/emoji/messages.js +0 -8
  44. package/dist/esm/plugins/emoji/nodeviews/emoji.js +0 -27
  45. package/dist/esm/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -225
  46. package/dist/esm/plugins/emoji/styles.js +0 -6
  47. package/dist/esm/plugins/emoji/types.js +0 -1
  48. package/dist/esm/plugins/emoji/ui/Emoji/index.js +0 -9
  49. package/dist/types/plugins/emoji/commands/insert-emoji.d.ts +0 -4
  50. package/dist/types/plugins/emoji/index.d.ts +0 -40
  51. package/dist/types/plugins/emoji/messages.d.ts +0 -7
  52. package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +0 -7
  53. package/dist/types/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
  54. package/dist/types/plugins/emoji/styles.d.ts +0 -1
  55. package/dist/types/plugins/emoji/types.d.ts +0 -1
  56. package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +0 -4
  57. package/dist/types-ts4.5/plugins/emoji/commands/insert-emoji.d.ts +0 -4
  58. package/dist/types-ts4.5/plugins/emoji/index.d.ts +0 -40
  59. package/dist/types-ts4.5/plugins/emoji/messages.d.ts +0 -7
  60. package/dist/types-ts4.5/plugins/emoji/nodeviews/emoji.d.ts +0 -7
  61. package/dist/types-ts4.5/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
  62. package/dist/types-ts4.5/plugins/emoji/styles.d.ts +0 -1
  63. package/dist/types-ts4.5/plugins/emoji/types.d.ts +0 -1
  64. package/dist/types-ts4.5/plugins/emoji/ui/Emoji/index.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.32.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee475b14581`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee475b14581) - Set max width for nested media single node to 100% to make it reponsive to parent width change
8
+
9
+ ## 187.32.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`113fcc02759`](https://bitbucket.org/atlassian/atlassian-frontend/commits/113fcc02759) - ED-19433 Extract Emoji Plugin to its own package
14
+ - Updated dependencies
15
+
3
16
  ## 187.32.2
4
17
 
5
18
  ### Patch Changes
@@ -9,6 +9,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _api = require("../../../selection-api/api");
11
11
  var _plugins = require("../../../plugins");
12
+ var _editorPluginEmoji = require("@atlaskit/editor-plugin-emoji");
12
13
  var _editorPluginList = require("@atlaskit/editor-plugin-list");
13
14
  var _editorPluginImageUpload = require("@atlaskit/editor-plugin-image-upload");
14
15
  var _editorPluginGuideline = require("@atlaskit/editor-plugin-guideline");
@@ -139,7 +140,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
139
140
  }]);
140
141
  }
141
142
  return builder;
142
- }).maybeAdd(_plugins.emojiPlugin, function (plugin, builder) {
143
+ }).maybeAdd(_editorPluginEmoji.emojiPlugin, function (plugin, builder) {
143
144
  if (props.emojiProvider) {
144
145
  return builder.add(plugin);
145
146
  }
@@ -131,12 +131,6 @@ Object.defineProperty(exports, "datePlugin", {
131
131
  return _date.default;
132
132
  }
133
133
  });
134
- Object.defineProperty(exports, "emojiPlugin", {
135
- enumerable: true,
136
- get: function get() {
137
- return _emoji.emojiPlugin;
138
- }
139
- });
140
134
  Object.defineProperty(exports, "expandPlugin", {
141
135
  enumerable: true,
142
136
  get: function get() {
@@ -366,7 +360,6 @@ var _clearMarksOnChangeToEmptyDocument = _interopRequireDefault(require("./clear
366
360
  var _codeBlock = _interopRequireDefault(require("./code-block"));
367
361
  var _collabEdit = _interopRequireDefault(require("./collab-edit"));
368
362
  var _date = _interopRequireDefault(require("./date"));
369
- var _emoji = require("./emoji");
370
363
  var _extension = _interopRequireDefault(require("./extension"));
371
364
  var _fakeTextCursor = _interopRequireDefault(require("./fake-text-cursor"));
372
365
  var _helpDialog = _interopRequireDefault(require("./help-dialog"));
@@ -154,7 +154,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
154
154
  return dispatch(tr);
155
155
  }, _mediaSingle.MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
156
156
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "calcMaxWidth", (0, _memoizeOne.default)(function (contentWidth, containerWidth, fullWidthMode) {
157
- if (_this.isNestedNode() || fullWidthMode) {
157
+ if (fullWidthMode) {
158
158
  return contentWidth;
159
159
  }
160
160
  return (0, _mediaSingle.calcMediaSingleMaxWidth)(containerWidth);
@@ -533,7 +533,8 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
533
533
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
534
534
  });
535
535
  var resizerNextClassName = (0, _classnames.default)(className, _styles.resizerStyles);
536
- var maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
536
+ var maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
537
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
537
538
  var minWidth = this.calcMinWidth(isVideoFile, lineLength);
538
539
  return (0, _react2.jsx)("div", {
539
540
  ref: this.saveWrapper,
@@ -23,28 +23,29 @@ var _styles9 = require("../../plugins/layout/styles");
23
23
  var _styles10 = require("../../plugins/panel/styles");
24
24
  var _styles11 = require("../../plugins/fake-text-cursor/styles");
25
25
  var _styles12 = require("../../plugins/mentions/styles");
26
- var _styles13 = require("../../plugins/emoji/styles");
27
- var _styles14 = require("../../plugins/placeholder-text/styles");
28
- var _styles15 = require("../../plugins/extension/ui/styles");
29
- var _styles16 = require("../../plugins/expand/ui/styles");
26
+ var _styles13 = require("../../plugins/placeholder-text/styles");
27
+ var _styles14 = require("../../plugins/extension/ui/styles");
28
+ var _styles15 = require("../../plugins/expand/ui/styles");
30
29
  var _style = require("../../plugins/media/pm-plugins/alt-text/style");
31
- var _styles17 = require("../../plugins/find-replace/styles");
32
- var _styles18 = require("../../plugins/tasks-and-decisions/styles");
33
- var _styles19 = require("../../plugins/status/styles");
34
- var _styles20 = require("../../plugins/date/styles");
30
+ var _styles16 = require("../../plugins/find-replace/styles");
31
+ var _styles17 = require("../../plugins/tasks-and-decisions/styles");
32
+ var _styles18 = require("../../plugins/status/styles");
33
+ var _styles19 = require("../../plugins/date/styles");
35
34
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
36
35
  var _utils = require("@atlaskit/editor-common/utils");
37
- var _templateObject, _templateObject2, _templateObject3;
36
+ var _emoji = require("@atlaskit/editor-common/emoji");
37
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
38
38
  /** @jsx jsx */
39
39
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
40
40
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
41
41
  var linkStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n ", "\n }\n"])), _styles.linkSharedStyle);
42
42
  exports.linkStyles = linkStyles;
43
- var listsStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
43
+ var listsStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: ", " 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), "var(--ds-space-050, 4px)", _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
44
+ var emojiStyles = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n display: inline-block;\n\n .", " {\n cursor: pointer;\n\n &.", " > span {\n /** needed for selection style to cover custom emoji image properly */\n display: flex;\n }\n }\n\n &.", " {\n .", ",\n .", " {\n border-radius: 2px;\n ", "\n }\n }\n }\n"])), _emoji.EmojiSharedCssClassName.EMOJI_CONTAINER, _emoji.EmojiSharedCssClassName.EMOJI_NODE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, _editorSharedStyles.akEditorSelectedNodeClassName, _emoji.EmojiSharedCssClassName.EMOJI_SPRITE, _emoji.EmojiSharedCssClassName.EMOJI_IMAGE, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.BoxShadow]));
44
45
  var contentStyles = function contentStyles(props) {
45
- return (0, _react2.css)(_templateObject3 || (_templateObject3 = (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 .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\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)({
46
+ return (0, _react2.css)(_templateObject4 || (_templateObject4 = (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 .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\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)({
46
47
  theme: props.theme
47
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles14.placeholderTextStyles, _styles4.placeholderStyles, (0, _styles6.codeBlockStyles)(props), (0, _styles5.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, (0, _styles7.ruleStyles)(props), _styles8.mediaStyles, (0, _styles9.layoutStyles)(props), _styles2.telepointerStyle, _styles3.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles10.panelStyles)(props), _styles11.fakeCursorStyles, _styles12.mentionsStyles, _styles13.emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles15.extensionStyles, (0, _styles16.expandStyles)(props), _styles17.findReplaceStyles, _styles18.taskDecisionStyles, _styles19.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _styles20.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
48
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles13.placeholderTextStyles, _styles4.placeholderStyles, (0, _styles6.codeBlockStyles)(props), (0, _styles5.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, (0, _styles7.ruleStyles)(props), _styles8.mediaStyles, (0, _styles9.layoutStyles)(props), _styles2.telepointerStyle, _styles3.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles10.panelStyles)(props), _styles11.fakeCursorStyles, _styles12.mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles14.extensionStyles, (0, _styles15.expandStyles)(props), _styles16.findReplaceStyles, _styles17.taskDecisionStyles, _styles18.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _styles19.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
48
49
  };
49
50
  var createEditorContentStyle = function createEditorContentStyle(styles) {
50
51
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.expandIconWrapperStyle = exports.clickSelectWrapperStyle = void 0;
7
+ exports.expandIconWrapperStyle = void 0;
8
8
  Object.defineProperty(exports, "scrollbarStyles", {
9
9
  enumerable: true,
10
10
  get: function get() {
@@ -21,8 +21,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
21
21
  var _react = require("@emotion/react");
22
22
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
23
23
  var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
24
- var _templateObject, _templateObject2;
24
+ var _templateObject;
25
25
  var expandIconWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-left: -8px;\n"])));
26
- exports.expandIconWrapperStyle = expandIconWrapperStyle;
27
- var clickSelectWrapperStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n user-select: all;\n"])));
28
- exports.clickSelectWrapperStyle = clickSelectWrapperStyle;
26
+ exports.expandIconWrapperStyle = expandIconWrapperStyle;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.32.2";
9
+ var version = "187.32.5";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,6 @@
1
1
  import { createEditorSelectionAPI } from '../../../selection-api/api';
2
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
2
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
3
+ import { emojiPlugin } from '@atlaskit/editor-plugin-emoji';
3
4
  import { listPlugin } from '@atlaskit/editor-plugin-list';
4
5
  import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
5
6
  import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
@@ -6,7 +6,6 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
6
6
  export { default as codeBlockPlugin } from './code-block';
7
7
  export { default as collabEditPlugin } from './collab-edit';
8
8
  export { default as datePlugin } from './date';
9
- export { emojiPlugin } from './emoji';
10
9
  export { default as extensionPlugin } from './extension';
11
10
  export { default as fakeTextCursorPlugin } from './fake-text-cursor';
12
11
  export { default as helpDialogPlugin } from './help-dialog';
@@ -137,7 +137,7 @@ class ResizableMediaSingleNext extends React.Component {
137
137
  return dispatch(tr);
138
138
  }, MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
139
139
  _defineProperty(this, "calcMaxWidth", memoizeOne((contentWidth, containerWidth, fullWidthMode) => {
140
- if (this.isNestedNode() || fullWidthMode) {
140
+ if (fullWidthMode) {
141
141
  return contentWidth;
142
142
  }
143
143
  return calcMediaSingleMaxWidth(containerWidth);
@@ -452,7 +452,8 @@ class ResizableMediaSingleNext extends React.Component {
452
452
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
453
453
  });
454
454
  const resizerNextClassName = classnames(className, resizerStyles);
455
- const maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
455
+ const maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
456
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
456
457
  const minWidth = this.calcMinWidth(isVideoFile, lineLength);
457
458
  return jsx("div", {
458
459
  ref: this.saveWrapper,
@@ -2,7 +2,7 @@
2
2
  import React, { useMemo } from 'react';
3
3
  import { jsx, css, useTheme } from '@emotion/react';
4
4
  import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix, unsupportedStyles } from '@atlaskit/editor-common/styles';
5
- import { blockNodesVerticalMargin, editorFontSize } from '@atlaskit/editor-shared-styles';
5
+ import { akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  import { telepointerStyle } from '../../plugins/collab-edit/styles';
7
7
  import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
8
8
  import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
@@ -15,7 +15,6 @@ import { layoutStyles } from '../../plugins/layout/styles';
15
15
  import { panelStyles } from '../../plugins/panel/styles';
16
16
  import { fakeCursorStyles } from '../../plugins/fake-text-cursor/styles';
17
17
  import { mentionsStyles } from '../../plugins/mentions/styles';
18
- import { emojiStyles } from '../../plugins/emoji/styles';
19
18
  import { placeholderTextStyles } from '../../plugins/placeholder-text/styles';
20
19
  import { extensionStyles } from '../../plugins/extension/ui/styles';
21
20
  import { expandStyles } from '../../plugins/expand/ui/styles';
@@ -27,6 +26,7 @@ import { dateStyles } from '../../plugins/date/styles';
27
26
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
28
27
  import { linkSharedStyle, codeMarkSharedStyles } from '@atlaskit/editor-common/styles';
29
28
  import { browser } from '@atlaskit/editor-common/utils';
29
+ import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
30
30
  export const linkStyles = css`
31
31
  .ProseMirror {
32
32
  ${linkSharedStyle}
@@ -38,7 +38,7 @@ const listsStyles = css`
38
38
  position: relative;
39
39
 
40
40
  > p:not(:first-child) {
41
- margin: 4px 0 0 0;
41
+ margin: ${"var(--ds-space-050, 4px)"} 0 0 0;
42
42
  }
43
43
 
44
44
  // In SSR the above rule will apply to all p tags because first-child would be a style tag.
@@ -54,6 +54,28 @@ const listsStyles = css`
54
54
  }
55
55
  }
56
56
  `;
57
+ const emojiStyles = css`
58
+ .${EmojiSharedCssClassName.EMOJI_CONTAINER} {
59
+ display: inline-block;
60
+
61
+ .${EmojiSharedCssClassName.EMOJI_NODE} {
62
+ cursor: pointer;
63
+
64
+ &.${EmojiSharedCssClassName.EMOJI_IMAGE} > span {
65
+ /** needed for selection style to cover custom emoji image properly */
66
+ display: flex;
67
+ }
68
+ }
69
+
70
+ &.${akEditorSelectedNodeClassName} {
71
+ .${EmojiSharedCssClassName.EMOJI_SPRITE},
72
+ .${EmojiSharedCssClassName.EMOJI_IMAGE} {
73
+ border-radius: 2px;
74
+ ${getSelectionStyles([SelectionStyle.Blanket, SelectionStyle.BoxShadow])}
75
+ }
76
+ }
77
+ }
78
+ `;
57
79
  const contentStyles = props => css`
58
80
  .ProseMirror {
59
81
  outline: none;
@@ -3,7 +3,4 @@ export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
3
3
  export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
4
4
  export const expandIconWrapperStyle = css`
5
5
  margin-left: -8px;
6
- `;
7
- export const clickSelectWrapperStyle = css`
8
- user-select: all;
9
6
  `;
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.32.2";
2
+ export const version = "187.32.5";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -3,7 +3,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
5
  import { createEditorSelectionAPI } from '../../../selection-api/api';
6
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
6
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
7
+ import { emojiPlugin } from '@atlaskit/editor-plugin-emoji';
7
8
  import { listPlugin } from '@atlaskit/editor-plugin-list';
8
9
  import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
9
10
  import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
@@ -6,7 +6,6 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
6
6
  export { default as codeBlockPlugin } from './code-block';
7
7
  export { default as collabEditPlugin } from './collab-edit';
8
8
  export { default as datePlugin } from './date';
9
- export { emojiPlugin } from './emoji';
10
9
  export { default as extensionPlugin } from './extension';
11
10
  export { default as fakeTextCursorPlugin } from './fake-text-cursor';
12
11
  export { default as helpDialogPlugin } from './help-dialog';
@@ -147,7 +147,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
147
147
  return dispatch(tr);
148
148
  }, MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
149
149
  _defineProperty(_assertThisInitialized(_this), "calcMaxWidth", memoizeOne(function (contentWidth, containerWidth, fullWidthMode) {
150
- if (_this.isNestedNode() || fullWidthMode) {
150
+ if (fullWidthMode) {
151
151
  return contentWidth;
152
152
  }
153
153
  return calcMediaSingleMaxWidth(containerWidth);
@@ -526,7 +526,8 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
526
526
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
527
527
  });
528
528
  var resizerNextClassName = classnames(className, resizerStyles);
529
- var maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
529
+ var maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
530
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
530
531
  var minWidth = this.calcMinWidth(isVideoFile, lineLength);
531
532
  return jsx("div", {
532
533
  ref: this.saveWrapper,
@@ -1,10 +1,10 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
3
  /** @jsx jsx */
4
4
  import React, { useMemo } from 'react';
5
5
  import { jsx, css, useTheme } from '@emotion/react';
6
6
  import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix, unsupportedStyles } from '@atlaskit/editor-common/styles';
7
- import { blockNodesVerticalMargin, editorFontSize } from '@atlaskit/editor-shared-styles';
7
+ import { akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
8
8
  import { telepointerStyle } from '../../plugins/collab-edit/styles';
9
9
  import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
10
10
  import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
@@ -17,7 +17,6 @@ import { layoutStyles } from '../../plugins/layout/styles';
17
17
  import { panelStyles } from '../../plugins/panel/styles';
18
18
  import { fakeCursorStyles } from '../../plugins/fake-text-cursor/styles';
19
19
  import { mentionsStyles } from '../../plugins/mentions/styles';
20
- import { emojiStyles } from '../../plugins/emoji/styles';
21
20
  import { placeholderTextStyles } from '../../plugins/placeholder-text/styles';
22
21
  import { extensionStyles } from '../../plugins/extension/ui/styles';
23
22
  import { expandStyles } from '../../plugins/expand/ui/styles';
@@ -29,10 +28,12 @@ import { dateStyles } from '../../plugins/date/styles';
29
28
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
30
29
  import { linkSharedStyle, codeMarkSharedStyles } from '@atlaskit/editor-common/styles';
31
30
  import { browser } from '@atlaskit/editor-common/utils';
31
+ import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
32
32
  export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n"])), linkSharedStyle);
33
- var listsStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
33
+ var listsStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: ", " 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), "var(--ds-space-050, 4px)", blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
34
+ var emojiStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .", " {\n display: inline-block;\n\n .", " {\n cursor: pointer;\n\n &.", " > span {\n /** needed for selection style to cover custom emoji image properly */\n display: flex;\n }\n }\n\n &.", " {\n .", ",\n .", " {\n border-radius: 2px;\n ", "\n }\n }\n }\n"])), EmojiSharedCssClassName.EMOJI_CONTAINER, EmojiSharedCssClassName.EMOJI_NODE, EmojiSharedCssClassName.EMOJI_IMAGE, akEditorSelectedNodeClassName, EmojiSharedCssClassName.EMOJI_SPRITE, EmojiSharedCssClassName.EMOJI_IMAGE, getSelectionStyles([SelectionStyle.Blanket, SelectionStyle.BoxShadow]));
34
35
  var contentStyles = function contentStyles(props) {
35
- return css(_templateObject3 || (_templateObject3 = _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 .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\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({
36
+ return css(_templateObject4 || (_templateObject4 = _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 .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\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({
36
37
  theme: props.theme
37
38
  }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(props), blocktypeStyles(props), codeMarkSharedStyles(props), textColorStyles, listsStyles, ruleStyles(props), mediaStyles, layoutStyles(props), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(props), fakeCursorStyles, mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(props), findReplaceStyles, taskDecisionStyles, statusStyles, annotationSharedStyles(props), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, ClassNames.FLOATING_TOOLBAR_COMPONENT);
38
39
  };
@@ -1,7 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
2
+ var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
5
5
  export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
6
- export var expandIconWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
7
- export var clickSelectWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n user-select: all;\n"])));
6
+ export var expandIconWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.32.2";
2
+ export var version = "187.32.5";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -7,7 +7,6 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
7
7
  export { default as codeBlockPlugin } from './code-block';
8
8
  export { default as collabEditPlugin } from './collab-edit';
9
9
  export { default as datePlugin } from './date';
10
- export { emojiPlugin } from './emoji';
11
10
  export { default as extensionPlugin } from './extension';
12
11
  export { default as fakeTextCursorPlugin } from './fake-text-cursor';
13
12
  export { default as helpDialogPlugin } from './help-dialog';
@@ -1,4 +1,3 @@
1
1
  export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
2
2
  export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
3
3
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
4
- export declare const clickSelectWrapperStyle: import("@emotion/react").SerializedStyles;
@@ -7,7 +7,6 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
7
7
  export { default as codeBlockPlugin } from './code-block';
8
8
  export { default as collabEditPlugin } from './collab-edit';
9
9
  export { default as datePlugin } from './date';
10
- export { emojiPlugin } from './emoji';
11
10
  export { default as extensionPlugin } from './extension';
12
11
  export { default as fakeTextCursorPlugin } from './fake-text-cursor';
13
12
  export { default as helpDialogPlugin } from './help-dialog';
@@ -1,4 +1,3 @@
1
1
  export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
2
2
  export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
3
3
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
4
- export declare const clickSelectWrapperStyle: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.32.2",
3
+ "version": "187.32.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/editor-plugin-context-panel": "^0.1.0",
67
67
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
68
68
  "@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
69
- "@atlaskit/editor-plugin-emoji": "^0.1.0",
69
+ "@atlaskit/editor-plugin-emoji": "^0.2.0",
70
70
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
71
71
  "@atlaskit/editor-plugin-floating-toolbar": "^0.3.0",
72
72
  "@atlaskit/editor-plugin-focus": "^0.1.0",
@@ -105,7 +105,7 @@
105
105
  "@atlaskit/radio": "^5.6.0",
106
106
  "@atlaskit/section-message": "^6.4.0",
107
107
  "@atlaskit/select": "^16.5.0",
108
- "@atlaskit/smart-card": "^26.16.0",
108
+ "@atlaskit/smart-card": "^26.17.0",
109
109
  "@atlaskit/smart-user-picker": "^6.3.0",
110
110
  "@atlaskit/spinner": "^15.5.0",
111
111
  "@atlaskit/status": "^1.3.0",
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.insertEmoji = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- var _model = require("@atlaskit/editor-prosemirror/model");
11
- var _state = require("@atlaskit/editor-prosemirror/state");
12
- var _analytics = require("@atlaskit/editor-common/analytics");
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- var insertEmoji = function insertEmoji(editorAnalyticsAPI) {
16
- return function (emojiId, inputMethod) {
17
- return function (_ref) {
18
- var tr = _ref.tr;
19
- var doc = tr.doc,
20
- selection = tr.selection;
21
- var emoji = tr.doc.type.schema.nodes.emoji;
22
- if (emoji && emojiId) {
23
- var node = emoji.createChecked(_objectSpread(_objectSpread({}, emojiId), {}, {
24
- text: emojiId.fallback || emojiId.shortName
25
- }));
26
- var textNode = doc.type.schema.text(' ');
27
- var fragment = _model.Fragment.fromArray([node, textNode]);
28
- var newTr = (0, _utils.safeInsert)(fragment)(tr);
29
- if (inputMethod) {
30
- editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent({
31
- action: _analytics.ACTION.INSERTED,
32
- actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
33
- actionSubjectId: _analytics.ACTION_SUBJECT_ID.EMOJI,
34
- attributes: {
35
- inputMethod: inputMethod
36
- },
37
- eventType: _analytics.EVENT_TYPE.TRACK
38
- })(newTr);
39
- }
40
- newTr.setSelection(_state.Selection.near(newTr.doc.resolve(selection.$from.pos + fragment.size)));
41
- return newTr;
42
- }
43
- return null;
44
- };
45
- };
46
- };
47
- exports.insertEmoji = insertEmoji;