@atlaskit/editor-core 209.8.2 → 210.0.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 (43) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/appearance-editor-chromeless/package.json +1 -1
  3. package/appearance-editor-comment/package.json +1 -1
  4. package/appearance-editor-full-page/package.json +1 -1
  5. package/appearance-editor-full-width/package.json +1 -1
  6. package/composable-editor/package.json +1 -1
  7. package/create-editor-content-style/package.json +1 -1
  8. package/dist/cjs/create-editor/ReactEditorView.js +38 -0
  9. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
  10. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  11. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  12. package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/es2019/create-editor/ReactEditorView.js +35 -1
  15. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -2
  16. package/dist/es2019/ui/ContentStyles/index.js +1 -0
  17. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  18. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/create-editor/ReactEditorView.js +39 -1
  21. package/dist/esm/ui/Appearance/Comment/Comment.js +2 -2
  22. package/dist/esm/ui/ContentStyles/index.js +1 -1
  23. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  24. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  25. package/dist/esm/version-wrapper.js +1 -1
  26. package/dist/types/create-editor/create-universal-preset.d.ts +1 -1
  27. package/dist/types/presets/universal.d.ts +2 -1
  28. package/dist/types/presets/useUniversalPreset.d.ts +1 -1
  29. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1 -1
  30. package/dist/types-ts4.5/presets/universal.d.ts +2 -1
  31. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -1
  32. package/editor/package.json +1 -1
  33. package/editor-context/package.json +1 -1
  34. package/i18n/package.json +1 -1
  35. package/i18n-languages/package.json +1 -1
  36. package/labs-next/package.json +1 -1
  37. package/package.json +12 -9
  38. package/preset-default/package.json +1 -1
  39. package/preset-universal/package.json +1 -1
  40. package/test-utils/package.json +1 -1
  41. package/use-preset/package.json +1 -1
  42. package/use-preset-context/package.json +1 -1
  43. package/version-wrapper/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 210.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`e2bb51245dcec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2bb51245dcec) -
8
+ ED-28774 add native editor anchor support
9
+
10
+ ### Minor Changes
11
+
12
+ - [`021fd485e1f83`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/021fd485e1f83) -
13
+ fix table flicking issue on page load by improving table scailing and table resizer with css
14
+ instead of js
15
+ - [`f29ffcfb885c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f29ffcfb885c7) -
16
+ EDITOR-1338 Adds `allowBlockTaskItem` property to tasks and decisions plugin to enable
17
+ blockTaskItem for Confluence TinyMCE migration flows
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
23
+ ## 209.8.3
24
+
25
+ ### Patch Changes
26
+
27
+ - [`598cea2432fa9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/598cea2432fa9) -
28
+ [ux] UI and behaviour updates of the HoverLinkOverlay for the Preview Panels.
29
+ - Updated dependencies
30
+
3
31
  ## 209.8.2
4
32
 
5
33
  ### Patch Changes
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor-appearances/ChromelessEditor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor-appearances/CommentEditor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor-appearances/CommentEditor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor-appearances/FullPageEditor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor-appearances/FullWidthEditor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/composable-editor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/composable-editor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/ui/ContentStyles/index.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/ui/ContentStyles/index.d.ts"
14
14
  ]
@@ -22,9 +22,11 @@ var _measureRender = require("@atlaskit/editor-common/performance/measure-render
22
22
  var _navigation = require("@atlaskit/editor-common/performance/navigation");
23
23
  var _preset = require("@atlaskit/editor-common/preset");
24
24
  var _processRawValue = require("@atlaskit/editor-common/process-raw-value");
25
+ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
25
26
  var _uiReact = require("@atlaskit/editor-common/ui-react");
26
27
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
27
28
  var _document = require("@atlaskit/editor-common/utils/document");
29
+ var _model = require("@atlaskit/editor-prosemirror/model");
28
30
  var _state2 = require("@atlaskit/editor-prosemirror/state");
29
31
  var _view = require("@atlaskit/editor-prosemirror/view");
30
32
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -53,6 +55,39 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
53
55
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
54
56
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55
57
  var EDIT_AREA_ID = 'ak-editor-textarea';
58
+ var injectNodeViewNodeTypeList = ['paragraph', 'heading'];
59
+ var createNodeViewPlugin = function createNodeViewPlugin(schema) {
60
+ var nodeViewEntries = [];
61
+ schema.spec.nodes.forEach(function (nodeName, nodeSpec) {
62
+ if (injectNodeViewNodeTypeList.includes(nodeName)) {
63
+ if (nodeSpec.toDOM && typeof nodeSpec.toDOM === 'function') {
64
+ var toDOM = nodeSpec.toDOM.bind(nodeSpec);
65
+ nodeViewEntries.push([nodeName, function (node) {
66
+ return _model.DOMSerializer.renderSpec(document, toDOM(node));
67
+ }]);
68
+ }
69
+ }
70
+ });
71
+ return {
72
+ name: 'nodeViewInjectPlugin',
73
+ plugin: function plugin() {
74
+ return new _safePlugin.SafePlugin({
75
+ state: {
76
+ init: function init() {
77
+ return {};
78
+ },
79
+ apply: function apply(_tr, pluginState) {
80
+ return pluginState;
81
+ }
82
+ },
83
+ key: new _state2.PluginKey('nodeViewInjectPlugin'),
84
+ props: {
85
+ nodeViews: Object.fromEntries(nodeViewEntries)
86
+ }
87
+ });
88
+ }
89
+ };
90
+ };
56
91
  function ReactEditorView(props) {
57
92
  var _pluginInjectionAPI$c, _media, _linking, _document$querySelect, _props$render, _props$render2;
58
93
  var preset = props.preset,
@@ -148,6 +183,9 @@ function ReactEditorView(props) {
148
183
  config.current = (0, _createEditor.processPluginsList)((0, _createPluginsList.default)(options.props.preset, props.editorProps, pluginInjectionAPI.current));
149
184
  schema = (0, _createSchema.createSchema)(config.current);
150
185
  setEditorAPI(pluginInjectionAPI.current.api());
186
+ if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_support', 'isEnabled', true)) {
187
+ config.current.pmPlugins.push(createNodeViewPlugin(schema));
188
+ }
151
189
  }
152
190
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
153
191
  var plugins = (0, _createEditor.createPMPlugins)({
@@ -288,7 +288,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
288
288
  var width = _ref.width;
289
289
  return (0, _react2.jsx)(EditorContainer, {
290
290
  ref: containerElement,
291
- css: maxHeight ?
291
+ css: [maxHeight ?
292
292
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
293
293
  (0, _react2.css)({
294
294
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -298,7 +298,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
298
298
  // This will cause the content area to have content overflowing the container
299
299
  // so need to set overflow-y as auto to make sure the content area is scrollable
300
300
  overflowY: 'auto'
301
- }) : null,
301
+ }) : null],
302
302
  isScrollable: maxHeight && (0, _platformFeatureFlags.fg)('platform_editor_editor_container_a11y_focus') ? true : undefined
303
303
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
304
304
  ,
@@ -169,7 +169,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
169
169
  // Under editor experiment platform_editor_core_static_emotion
170
170
  // If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
171
171
  var legacyContentStyles = function legacyContentStyles(props) {
172
- return (0, _react2.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
172
+ return (0, _react2.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--resizer-handle-spacing: 12px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
173
173
  theme: props.theme
174
174
  }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
175
175
  };
@@ -249,7 +249,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
249
249
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
250
250
  _smartCardStyles.smartCardStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
251
251
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
252
- _smartCardStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') &&
252
+ _smartCardStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') || (0, _platformFeatureFlags.fg)('platform_editor_preview_panel_linking')) &&
253
253
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
254
254
  _smartCardStyles.editorControlsSmartCardStyles,
255
255
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -26,6 +26,7 @@ var akEditorFullPageNarrowBreakout = 600;
26
26
  var baseStyles = exports.baseStyles = (0, _react.css)((0, _defineProperty2.default)({
27
27
  '--ak-editor--default-gutter-padding': "".concat(akEditorGutterPadding, "px"),
28
28
  '--ak-editor--default-layout-width': "".concat(akEditorDefaultLayoutWidth, "px"),
29
+ '--ak-editor--resizer-handle-spacing': "12px",
29
30
  '--ak-editor--full-width-layout-width': "".concat(akEditorFullWidthLayoutWidth, "px"),
30
31
  /* calculate editor line length, 100cqw is the editor container width */
31
32
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
@@ -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 = "209.8.1";
8
+ var version = exports.version = "209.8.3";
@@ -10,10 +10,12 @@ import { measureRender } from '@atlaskit/editor-common/performance/measure-rende
10
10
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
11
11
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
12
12
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
13
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
13
14
  import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
14
15
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
15
16
  import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
16
- import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
17
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
18
+ import { EditorState, PluginKey, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
17
19
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
18
20
  import { fg } from '@atlaskit/platform-feature-flags';
19
21
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
@@ -35,6 +37,35 @@ import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
35
37
  import { useDispatchTransaction } from './ReactEditorView/useDispatchTransaction';
36
38
  import { useFireFullWidthEvent } from './ReactEditorView/useFireFullWidthEvent';
37
39
  const EDIT_AREA_ID = 'ak-editor-textarea';
40
+ const injectNodeViewNodeTypeList = ['paragraph', 'heading'];
41
+ const createNodeViewPlugin = schema => {
42
+ const nodeViewEntries = [];
43
+ schema.spec.nodes.forEach((nodeName, nodeSpec) => {
44
+ if (injectNodeViewNodeTypeList.includes(nodeName)) {
45
+ if (nodeSpec.toDOM && typeof nodeSpec.toDOM === 'function') {
46
+ const toDOM = nodeSpec.toDOM.bind(nodeSpec);
47
+ nodeViewEntries.push([nodeName, node => DOMSerializer.renderSpec(document, toDOM(node))]);
48
+ }
49
+ }
50
+ });
51
+ return {
52
+ name: 'nodeViewInjectPlugin',
53
+ plugin: () => new SafePlugin({
54
+ state: {
55
+ init() {
56
+ return {};
57
+ },
58
+ apply(_tr, pluginState) {
59
+ return pluginState;
60
+ }
61
+ },
62
+ key: new PluginKey('nodeViewInjectPlugin'),
63
+ props: {
64
+ nodeViews: Object.fromEntries(nodeViewEntries)
65
+ }
66
+ })
67
+ };
68
+ };
38
69
  export function ReactEditorView(props) {
39
70
  var _pluginInjectionAPI$c, _pluginInjectionAPI$c2, _pluginInjectionAPI$c3, _media, _linking, _linking$smartLinks, _document$querySelect, _props$render, _props$render2;
40
71
  const {
@@ -120,6 +151,9 @@ export function ReactEditorView(props) {
120
151
  config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
121
152
  schema = createSchema(config.current);
122
153
  setEditorAPI(pluginInjectionAPI.current.api());
154
+ if (expValEquals('platform_editor_native_anchor_support', 'isEnabled', true)) {
155
+ config.current.pmPlugins.push(createNodeViewPlugin(schema));
156
+ }
123
157
  }
124
158
  const {
125
159
  contentTransformerProvider
@@ -291,7 +291,7 @@ export const CommentEditorWithIntl = props => {
291
291
  }) => {
292
292
  return jsx(EditorContainer, {
293
293
  ref: containerElement,
294
- css: maxHeight ?
294
+ css: [maxHeight ?
295
295
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
296
296
  css({
297
297
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -301,7 +301,7 @@ export const CommentEditorWithIntl = props => {
301
301
  // This will cause the content area to have content overflowing the container
302
302
  // so need to set overflow-y as auto to make sure the content area is scrollable
303
303
  overflowY: 'auto'
304
- }) : null,
304
+ }) : null],
305
305
  isScrollable: maxHeight && fg('platform_editor_editor_container_a11y_focus') ? true : undefined
306
306
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
307
307
  ,
@@ -334,6 +334,7 @@ const legacyContentStyles = props => css`
334
334
  --ak-editor--default-gutter-padding: ${akEditorGutterPadding}px;
335
335
  /* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */
336
336
  --ak-editor--large-gutter-padding: ${akEditorGutterPaddingDynamic()}px;
337
+ --ak-editor--resizer-handle-spacing: 12px;
337
338
  --ak-editor--default-layout-width: ${akEditorDefaultLayoutWidth}px;
338
339
  --ak-editor--full-width-layout-width: ${akEditorFullWidthLayoutWidth}px;
339
340
  /* calculate editor line length, 100cqw is the editor container width */
@@ -244,7 +244,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
244
244
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
245
245
  smartCardStyles, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
246
246
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
247
- smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
247
+ smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') || fg('platform_editor_preview_panel_linking')) &&
248
248
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
249
249
  editorControlsSmartCardStyles,
250
250
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -18,6 +18,7 @@ const akEditorFullPageNarrowBreakout = 600;
18
18
  export const baseStyles = css({
19
19
  '--ak-editor--default-gutter-padding': `${akEditorGutterPadding}px`,
20
20
  '--ak-editor--default-layout-width': `${akEditorDefaultLayoutWidth}px`,
21
+ '--ak-editor--resizer-handle-spacing': `12px`,
21
22
  '--ak-editor--full-width-layout-width': `${akEditorFullWidthLayoutWidth}px`,
22
23
  /* calculate editor line length, 100cqw is the editor container width */
23
24
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "209.8.1";
2
+ export const version = "209.8.3";
@@ -18,10 +18,12 @@ import { measureRender } from '@atlaskit/editor-common/performance/measure-rende
18
18
  import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
19
19
  import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
20
20
  import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
21
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
21
22
  import { ReactEditorViewContext } from '@atlaskit/editor-common/ui-react';
22
23
  import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
23
24
  import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
24
- import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
25
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
26
+ import { EditorState, PluginKey, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
25
27
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
26
28
  import { fg } from '@atlaskit/platform-feature-flags';
27
29
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
@@ -43,6 +45,39 @@ import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
43
45
  import { useDispatchTransaction } from './ReactEditorView/useDispatchTransaction';
44
46
  import { useFireFullWidthEvent } from './ReactEditorView/useFireFullWidthEvent';
45
47
  var EDIT_AREA_ID = 'ak-editor-textarea';
48
+ var injectNodeViewNodeTypeList = ['paragraph', 'heading'];
49
+ var createNodeViewPlugin = function createNodeViewPlugin(schema) {
50
+ var nodeViewEntries = [];
51
+ schema.spec.nodes.forEach(function (nodeName, nodeSpec) {
52
+ if (injectNodeViewNodeTypeList.includes(nodeName)) {
53
+ if (nodeSpec.toDOM && typeof nodeSpec.toDOM === 'function') {
54
+ var toDOM = nodeSpec.toDOM.bind(nodeSpec);
55
+ nodeViewEntries.push([nodeName, function (node) {
56
+ return DOMSerializer.renderSpec(document, toDOM(node));
57
+ }]);
58
+ }
59
+ }
60
+ });
61
+ return {
62
+ name: 'nodeViewInjectPlugin',
63
+ plugin: function plugin() {
64
+ return new SafePlugin({
65
+ state: {
66
+ init: function init() {
67
+ return {};
68
+ },
69
+ apply: function apply(_tr, pluginState) {
70
+ return pluginState;
71
+ }
72
+ },
73
+ key: new PluginKey('nodeViewInjectPlugin'),
74
+ props: {
75
+ nodeViews: Object.fromEntries(nodeViewEntries)
76
+ }
77
+ });
78
+ }
79
+ };
80
+ };
46
81
  export function ReactEditorView(props) {
47
82
  var _pluginInjectionAPI$c, _media, _linking, _document$querySelect, _props$render, _props$render2;
48
83
  var preset = props.preset,
@@ -138,6 +173,9 @@ export function ReactEditorView(props) {
138
173
  config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
139
174
  schema = createSchema(config.current);
140
175
  setEditorAPI(pluginInjectionAPI.current.api());
176
+ if (expValEquals('platform_editor_native_anchor_support', 'isEnabled', true)) {
177
+ config.current.pmPlugins.push(createNodeViewPlugin(schema));
178
+ }
141
179
  }
142
180
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
143
181
  var plugins = createPMPlugins({
@@ -280,7 +280,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
280
280
  var width = _ref.width;
281
281
  return jsx(EditorContainer, {
282
282
  ref: containerElement,
283
- css: maxHeight ?
283
+ css: [maxHeight ?
284
284
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
285
285
  css({
286
286
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -290,7 +290,7 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
290
290
  // This will cause the content area to have content overflowing the container
291
291
  // so need to set overflow-y as auto to make sure the content area is scrollable
292
292
  overflowY: 'auto'
293
- }) : null,
293
+ }) : null],
294
294
  isScrollable: maxHeight && fg('platform_editor_editor_container_a11y_focus') ? true : undefined
295
295
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
296
296
  ,
@@ -163,7 +163,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
163
163
  // Under editor experiment platform_editor_core_static_emotion
164
164
  // If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
165
165
  var legacyContentStyles = function legacyContentStyles(props) {
166
- return css(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? css(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced) : null, editorFontSize({
166
+ return css(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--resizer-handle-spacing: 12px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? css(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced) : null, editorFontSize({
167
167
  theme: props.theme
168
168
  }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, mentionNodeStyles, fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles, fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh, statusStyles(), statusNodeStyles(), annotationSharedStyles(), smartCardStyles(), getSmartCardSharedStyles(), dateStyles, dateNodeStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticStylesLayoutFirstNodeResizeHandleFix(), pragmaticResizerStylesForTooltip(), pragmaticResizerStylesWithReducedEditorGutter(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
169
169
  };
@@ -241,7 +241,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
241
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
242
242
  smartCardStyles, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
243
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
244
- smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
244
+ smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') || fg('platform_editor_preview_panel_linking')) &&
245
245
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
246
246
  editorControlsSmartCardStyles,
247
247
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -19,6 +19,7 @@ var akEditorFullPageNarrowBreakout = 600;
19
19
  export var baseStyles = css(_defineProperty({
20
20
  '--ak-editor--default-gutter-padding': "".concat(akEditorGutterPadding, "px"),
21
21
  '--ak-editor--default-layout-width': "".concat(akEditorDefaultLayoutWidth, "px"),
22
+ '--ak-editor--resizer-handle-spacing': "12px",
22
23
  '--ak-editor--full-width-layout-width': "".concat(akEditorFullWidthLayoutWidth, "px"),
23
24
  /* calculate editor line length, 100cqw is the editor container width */
24
25
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.8.1";
2
+ export var version = "209.8.3";
@@ -194,7 +194,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
194
194
  openFeedbackDialog: typeof import("packages/editor/editor-plugin-feedback-dialog/dist/types/feedbackDialogPlugin").openFeedbackDialog;
195
195
  };
196
196
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
197
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
197
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
198
198
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
199
199
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
200
200
  actions: {
@@ -25,6 +25,7 @@ export type InitialPluginConfiguration = {
25
25
  quickInsertActionDescription?: string;
26
26
  requestEditPermission?: () => void;
27
27
  taskPlaceholder?: string;
28
+ allowBlockTaskItem?: boolean;
28
29
  };
29
30
  extensionPlugin?: {
30
31
  __rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'];
@@ -245,7 +246,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
245
246
  openFeedbackDialog: typeof import("packages/editor/editor-plugin-feedback-dialog/dist/types/feedbackDialogPlugin").openFeedbackDialog;
246
247
  };
247
248
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
248
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
249
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
249
250
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
250
251
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
251
252
  actions: {
@@ -194,7 +194,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
194
194
  openFeedbackDialog: typeof import("packages/editor/editor-plugin-feedback-dialog/dist/types/feedbackDialogPlugin").openFeedbackDialog;
195
195
  };
196
196
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
197
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
197
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
198
198
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
199
199
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
200
200
  actions: {
@@ -307,7 +307,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
307
307
  };
308
308
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined,
309
309
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
310
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
310
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
311
311
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
312
312
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
313
313
  actions: {
@@ -25,6 +25,7 @@ export type InitialPluginConfiguration = {
25
25
  quickInsertActionDescription?: string;
26
26
  requestEditPermission?: () => void;
27
27
  taskPlaceholder?: string;
28
+ allowBlockTaskItem?: boolean;
28
29
  };
29
30
  extensionPlugin?: {
30
31
  __rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'];
@@ -358,7 +359,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
358
359
  };
359
360
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined,
360
361
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
361
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
362
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
362
363
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
363
364
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
364
365
  actions: {
@@ -307,7 +307,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
307
307
  };
308
308
  }, import("@atlaskit/editor-common/types").FeedbackInfo> | undefined,
309
309
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"taskDecision", {
310
- pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionPluginOptions | undefined;
310
+ pluginConfiguration: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginOptions | undefined;
311
311
  sharedState: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskAndDecisionsSharedState | undefined;
312
312
  dependencies: import("@atlaskit/editor-plugins/tasks-and-decisions").TasksAndDecisionsPluginDependencies;
313
313
  actions: {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/editor-context.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/editor-context.d.ts"
14
14
  ]
package/i18n/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/i18n/index.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/i18n/index.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/i18n/languages.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/i18n/languages.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/labs-next.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/labs-next.d.ts"
14
14
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "209.8.2",
3
+ "version": "210.0.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
44
44
  "@atlaskit/analytics-next": "^11.1.0",
45
45
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
46
- "@atlaskit/button": "^23.3.0",
46
+ "@atlaskit/button": "^23.4.0",
47
47
  "@atlaskit/css": "^0.12.0",
48
48
  "@atlaskit/editor-json-transformer": "^8.25.0",
49
49
  "@atlaskit/editor-performance-metrics": "^2.1.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/editor-plugins": "^10.1.0",
53
53
  "@atlaskit/editor-prosemirror": "7.0.0",
54
54
  "@atlaskit/editor-shared-styles": "^3.6.0",
55
- "@atlaskit/editor-toolbar": "^0.2.0",
55
+ "@atlaskit/editor-toolbar": "^0.3.0",
56
56
  "@atlaskit/editor-toolbar-model": "^0.1.0",
57
57
  "@atlaskit/emoji": "^69.3.0",
58
58
  "@atlaskit/icon": "^27.12.0",
@@ -61,9 +61,9 @@
61
61
  "@atlaskit/mention": "^24.2.0",
62
62
  "@atlaskit/platform-feature-flags": "^1.1.0",
63
63
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
64
- "@atlaskit/react-ufo": "^4.2.0",
64
+ "@atlaskit/react-ufo": "^4.3.0",
65
65
  "@atlaskit/task-decision": "^19.2.0",
66
- "@atlaskit/tmp-editor-statsig": "^9.28.0",
66
+ "@atlaskit/tmp-editor-statsig": "^10.0.0",
67
67
  "@atlaskit/tokens": "^6.0.0",
68
68
  "@atlaskit/tooltip": "^20.4.0",
69
69
  "@atlaskit/width-detector": "^5.0.0",
@@ -80,7 +80,7 @@
80
80
  "uuid": "^3.1.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@atlaskit/editor-common": "^107.23.0",
83
+ "@atlaskit/editor-common": "^107.25.0",
84
84
  "@atlaskit/link-provider": "^3.4.0",
85
85
  "@atlaskit/media-core": "^37.0.0",
86
86
  "react": "^18.2.0",
@@ -93,15 +93,15 @@
93
93
  "@atlaskit/adf-utils": "^19.21.0",
94
94
  "@atlaskit/analytics-listeners": "^9.0.0",
95
95
  "@atlaskit/collab-provider": "^11.2.0",
96
- "@atlaskit/editor-plugin-annotation": "^3.2.0",
96
+ "@atlaskit/editor-plugin-annotation": "^3.3.0",
97
97
  "@atlaskit/editor-plugin-card": "^7.4.0",
98
98
  "@atlaskit/editor-plugin-list": "^5.1.0",
99
99
  "@atlaskit/editor-plugin-paste": "^4.1.0",
100
100
  "@atlaskit/link-provider": "^3.4.0",
101
- "@atlaskit/logo": "^19.6.0",
101
+ "@atlaskit/logo": "^19.7.0",
102
102
  "@atlaskit/media-core": "^37.0.0",
103
103
  "@atlaskit/media-integration-test-helpers": "workspace:^",
104
- "@atlaskit/media-test-helpers": "^38.0.0",
104
+ "@atlaskit/media-test-helpers": "^39.0.0",
105
105
  "@atlaskit/modal-dialog": "^14.3.0",
106
106
  "@atlaskit/primitives": "^14.11.0",
107
107
  "@atlaskit/renderer": "^120.4.0",
@@ -533,6 +533,9 @@
533
533
  "platform_editor_find_and_replace_improvements_1": {
534
534
  "type": "boolean"
535
535
  },
536
+ "platform_editor_preview_panel_linking": {
537
+ "type": "boolean"
538
+ },
536
539
  "platform_editor_task_check_status_fix": {
537
540
  "type": "boolean",
538
541
  "referenceOnly": true
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/preset-default.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/preset-default.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/preset-universal.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/preset-universal.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/test-utils.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/test-utils.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/use-preset.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/use-preset.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/presets/context.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/presets/context.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/version-wrapper.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/version-wrapper.d.ts"
14
14
  ]