@atlaskit/editor-core 209.8.3 → 210.0.1

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 (48) hide show
  1. package/CHANGELOG.md +30 -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 +3 -3
  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/ui/EditorContentContainer/styles/selectionStyles.js +0 -4
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/create-editor/ReactEditorView.js +35 -1
  16. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -2
  17. package/dist/es2019/ui/ContentStyles/index.js +4 -16
  18. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  19. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  20. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +0 -4
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/create-editor/ReactEditorView.js +39 -1
  23. package/dist/esm/ui/Appearance/Comment/Comment.js +2 -2
  24. package/dist/esm/ui/ContentStyles/index.js +3 -3
  25. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  26. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  27. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +0 -4
  28. package/dist/esm/version-wrapper.js +1 -1
  29. package/dist/types/create-editor/create-universal-preset.d.ts +3 -2
  30. package/dist/types/presets/universal.d.ts +4 -2
  31. package/dist/types/presets/useUniversalPreset.d.ts +3 -2
  32. package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -4
  33. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +4 -2
  34. package/dist/types-ts4.5/presets/universal.d.ts +5 -2
  35. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +4 -2
  36. package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -4
  37. package/editor/package.json +1 -1
  38. package/editor-context/package.json +1 -1
  39. package/i18n/package.json +1 -1
  40. package/i18n-languages/package.json +1 -1
  41. package/labs-next/package.json +1 -1
  42. package/package.json +10 -17
  43. package/preset-default/package.json +1 -1
  44. package/preset-universal/package.json +1 -1
  45. package/test-utils/package.json +1 -1
  46. package/use-preset/package.json +1 -1
  47. package/use-preset-context/package.json +1 -1
  48. package/version-wrapper/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 210.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`25ec3e3638f52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/25ec3e3638f52) -
8
+ Cleanup advanced code block experiment
9
+ - [`6ca68bbf39757`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ca68bbf39757) -
10
+ Change all AIFC feature gates over to an experiment platform_editor_ai_aifc
11
+ - Updated dependencies
12
+
13
+ ## 210.0.0
14
+
15
+ ### Major Changes
16
+
17
+ - [`e2bb51245dcec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2bb51245dcec) -
18
+ ED-28774 add native editor anchor support
19
+
20
+ ### Minor Changes
21
+
22
+ - [`021fd485e1f83`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/021fd485e1f83) -
23
+ fix table flicking issue on page load by improving table scailing and table resizer with css
24
+ instead of js
25
+ - [`f29ffcfb885c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f29ffcfb885c7) -
26
+ EDITOR-1338 Adds `allowBlockTaskItem` property to tasks and decisions plugin to enable
27
+ blockTaskItem for Confluence TinyMCE migration flows
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 209.8.3
4
34
 
5
35
  ### 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
  ,
@@ -37,7 +37,7 @@ var _media = require("./media");
37
37
  var _panel2 = require("./panel");
38
38
  var _status = require("./status");
39
39
  var _tasksAndDecisions = require("./tasks-and-decisions");
40
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12;
40
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10;
41
41
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
42
42
  /* eslint-disable react-hooks/rules-of-hooks */
43
43
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
@@ -169,9 +169,9 @@ 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.ProseMirror-hideselection {\n\t\tcaret-color: transparent;\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
- }), _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);
174
+ }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "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)(_templateObject10 || (_templateObject10 = (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
  };
176
176
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
177
177
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -127,7 +127,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
127
127
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
128
128
  _inlineNodeViewSharedStyles.InlineNodeViewSharedStyles,
129
129
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
130
- _selectionStyles.hideSelectionStyles, ((0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') || (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true)) &&
130
+ _selectionStyles.hideSelectionStyles,
131
131
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
132
132
  _selectionStyles.hideCursorWhenHideSelectionStyles,
133
133
  // 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))',
@@ -95,10 +95,6 @@ var hideSelectionStyles = exports.hideSelectionStyles = (0, _react.css)({
95
95
 
96
96
  /**
97
97
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
98
- *
99
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
100
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
101
- * https://product-fabric.atlassian.net/browse/ED-26331
102
98
  */
103
99
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
104
100
  var hideCursorWhenHideSelectionStyles = exports.hideCursorWhenHideSelectionStyles = (0, _react.css)({
@@ -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.2";
8
+ var version = exports.version = "210.0.0";
@@ -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 */
@@ -406,23 +407,10 @@ const legacyContentStyles = props => css`
406
407
 
407
408
  /**
408
409
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
409
- *
410
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
411
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
412
- * https://product-fabric.atlassian.net/browse/ED-26331
413
410
  */
414
- ${fg('platform_editor_hide_cursor_when_pm_hideselection') ? css`
415
- .ProseMirror-hideselection {
416
- caret-color: transparent;
417
- }
418
- ` : null}
419
-
420
- /* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */
421
- ${editorExperiment('platform_editor_advanced_code_blocks', true) ? css`
422
- .ProseMirror-hideselection {
423
- caret-color: transparent;
424
- }
425
- ` : null}
411
+ .ProseMirror-hideselection {
412
+ caret-color: transparent;
413
+ }
426
414
 
427
415
  .ProseMirror-selectednode {
428
416
  outline: none;
@@ -122,7 +122,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
122
122
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
123
123
  InlineNodeViewSharedStyles,
124
124
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
125
- hideSelectionStyles, (fg('platform_editor_hide_cursor_when_pm_hideselection') || editorExperiment('platform_editor_advanced_code_blocks', true)) &&
125
+ hideSelectionStyles,
126
126
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
127
127
  hideCursorWhenHideSelectionStyles,
128
128
  // 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))',
@@ -88,10 +88,6 @@ export const hideSelectionStyles = css({
88
88
 
89
89
  /**
90
90
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
91
- *
92
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
93
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
94
- * https://product-fabric.atlassian.net/browse/ED-26331
95
91
  */
96
92
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
97
93
  export const hideCursorWhenHideSelectionStyles = css({
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "209.8.2";
2
+ export const version = "210.0.0";
@@ -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
  ,
@@ -1,5 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10;
3
3
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
4
4
  /* eslint-disable react-hooks/rules-of-hooks */
5
5
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
@@ -163,9 +163,9 @@ 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.ProseMirror-hideselection {\n\t\tcaret-color: transparent;\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
- }), 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);
168
+ }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "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(_templateObject10 || (_templateObject10 = _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
  };
170
170
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
171
171
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -119,7 +119,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
119
119
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
120
120
  InlineNodeViewSharedStyles,
121
121
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
122
- hideSelectionStyles, (fg('platform_editor_hide_cursor_when_pm_hideselection') || editorExperiment('platform_editor_advanced_code_blocks', true)) &&
122
+ hideSelectionStyles,
123
123
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
124
124
  hideCursorWhenHideSelectionStyles,
125
125
  // 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))',
@@ -88,10 +88,6 @@ export var hideSelectionStyles = css({
88
88
 
89
89
  /**
90
90
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
91
- *
92
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
93
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
94
- * https://product-fabric.atlassian.net/browse/ED-26331
95
91
  */
96
92
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
97
93
  export var hideCursorWhenHideSelectionStyles = css({
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.8.2";
2
+ export var version = "210.0.0";
@@ -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: {
@@ -404,6 +404,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
404
404
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
405
405
  commands: {
406
406
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
407
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
407
408
  };
408
409
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
409
410
  }, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
@@ -449,7 +450,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
449
450
  toolbarDocking: import("@atlaskit/editor-plugins/selection-toolbar").ToolbarDocking;
450
451
  };
451
452
  pluginConfiguration: import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions;
452
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
453
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
453
454
  actions?: {
454
455
  suppressToolbar?: () => boolean;
455
456
  unsuppressToolbar?: () => boolean;
@@ -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: {
@@ -455,6 +456,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
455
456
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
456
457
  commands: {
457
458
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
459
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
458
460
  };
459
461
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
460
462
  }, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
@@ -500,7 +502,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
500
502
  toolbarDocking: import("@atlaskit/editor-plugins/selection-toolbar").ToolbarDocking;
501
503
  };
502
504
  pluginConfiguration: import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions;
503
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
505
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
504
506
  actions?: {
505
507
  suppressToolbar?: () => boolean;
506
508
  unsuppressToolbar?: () => boolean;
@@ -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: {
@@ -404,6 +404,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
404
404
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
405
405
  commands: {
406
406
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
407
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
407
408
  };
408
409
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
409
410
  }, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
@@ -449,7 +450,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
449
450
  toolbarDocking: import("@atlaskit/editor-plugins/selection-toolbar").ToolbarDocking;
450
451
  };
451
452
  pluginConfiguration: import("@atlaskit/editor-plugins/selection-toolbar").SelectionToolbarPluginOptions;
452
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
453
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
453
454
  actions?: {
454
455
  suppressToolbar?: () => boolean;
455
456
  unsuppressToolbar?: () => boolean;
@@ -6,10 +6,6 @@ export declare const blanketSelectionStyles: import("@emotion/react").Serialized
6
6
  export declare const hideSelectionStyles: import("@emotion/react").SerializedStyles;
7
7
  /**
8
8
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
9
- *
10
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
11
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
12
- * https://product-fabric.atlassian.net/browse/ED-26331
13
9
  */
14
10
  export declare const hideCursorWhenHideSelectionStyles: import("@emotion/react").SerializedStyles;
15
11
  export declare const selectedNodeStyles: import("@emotion/react").SerializedStyles;
@@ -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: {
@@ -568,6 +568,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
568
568
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
569
569
  commands: {
570
570
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
571
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
571
572
  };
572
573
  dependencies: [
573
574
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
@@ -641,7 +642,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
641
642
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>,
642
643
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>,
643
644
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
644
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
645
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>,
646
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
645
647
  ];
646
648
  actions?: {
647
649
  suppressToolbar?: () => boolean;
@@ -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: {
@@ -619,6 +620,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
619
620
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
620
621
  commands: {
621
622
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
623
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
622
624
  };
623
625
  dependencies: [
624
626
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
@@ -692,7 +694,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
692
694
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>,
693
695
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>,
694
696
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
695
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
697
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>,
698
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
696
699
  ];
697
700
  actions?: {
698
701
  suppressToolbar?: () => boolean;
@@ -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: {
@@ -568,6 +568,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
568
568
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
569
569
  commands: {
570
570
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
571
+ setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
571
572
  };
572
573
  dependencies: [
573
574
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
@@ -641,7 +642,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
641
642
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>,
642
643
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>,
643
644
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>,
644
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
645
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>,
646
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
645
647
  ];
646
648
  actions?: {
647
649
  suppressToolbar?: () => boolean;
@@ -6,10 +6,6 @@ export declare const blanketSelectionStyles: import("@emotion/react").Serialized
6
6
  export declare const hideSelectionStyles: import("@emotion/react").SerializedStyles;
7
7
  /**
8
8
  * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
9
- *
10
- * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
11
- * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
12
- * https://product-fabric.atlassian.net/browse/ED-26331
13
9
  */
14
10
  export declare const hideCursorWhenHideSelectionStyles: import("@emotion/react").SerializedStyles;
15
11
  export declare const selectedNodeStyles: import("@emotion/react").SerializedStyles;
@@ -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.3",
3
+ "version": "210.0.1",
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",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/editor-shared-styles": "^3.6.0",
55
55
  "@atlaskit/editor-toolbar": "^0.3.0",
56
56
  "@atlaskit/editor-toolbar-model": "^0.1.0",
57
- "@atlaskit/emoji": "^69.3.0",
57
+ "@atlaskit/emoji": "^69.4.0",
58
58
  "@atlaskit/icon": "^27.12.0",
59
59
  "@atlaskit/link": "^3.2.0",
60
60
  "@atlaskit/media-card": "^79.5.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
64
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": "^11.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,8 +80,8 @@
80
80
  "uuid": "^3.1.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@atlaskit/editor-common": "^107.23.0",
84
- "@atlaskit/link-provider": "^3.4.0",
83
+ "@atlaskit/editor-common": "^107.25.0",
84
+ "@atlaskit/link-provider": "^3.6.0",
85
85
  "@atlaskit/media-core": "^37.0.0",
86
86
  "react": "^18.2.0",
87
87
  "react-dom": "^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
- "@atlaskit/link-provider": "^3.4.0",
101
- "@atlaskit/logo": "^19.6.0",
100
+ "@atlaskit/link-provider": "^3.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",
@@ -284,17 +284,10 @@
284
284
  "type": "boolean",
285
285
  "referenceOnly": true
286
286
  },
287
- "platform_editor_ai_in_document_streaming": {
288
- "type": "boolean",
289
- "referenceOnly": true
290
- },
291
287
  "platform_editor_dnd_update_drag_start_target": {
292
288
  "type": "boolean",
293
289
  "referenceOnly": true
294
290
  },
295
- "platform_editor_hide_cursor_when_pm_hideselection": {
296
- "type": "boolean"
297
- },
298
291
  "platform_editor_live_page_prevent_table_recreation": {
299
292
  "type": "boolean",
300
293
  "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
  ]