@atlaskit/editor-core 209.6.5 → 209.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/afm-cc/tsconfig.json +6 -0
  3. package/afm-dev-agents/tsconfig.json +6 -0
  4. package/afm-jira/tsconfig.json +6 -0
  5. package/afm-post-office/tsconfig.json +6 -0
  6. package/afm-rovo-extension/tsconfig.json +6 -0
  7. package/afm-townsquare/tsconfig.json +6 -0
  8. package/dist/cjs/index.js +15 -1
  9. package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -1
  10. package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +31 -0
  11. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +9 -2
  12. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  13. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +68 -0
  14. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  15. package/dist/cjs/ui/ContentStyles/status.js +2 -1
  16. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +205 -1
  17. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +4 -0
  18. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  19. package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  20. package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +205 -1
  21. package/dist/cjs/ui/Toolbar/Toolbar.js +31 -1
  22. package/dist/cjs/utils/toolbar.js +9 -0
  23. package/dist/cjs/version-wrapper.js +1 -1
  24. package/dist/es2019/index.js +3 -1
  25. package/dist/es2019/ui/Appearance/Comment/Comment.js +5 -1
  26. package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +23 -0
  27. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +9 -2
  28. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  29. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +62 -0
  30. package/dist/es2019/ui/ContentStyles/index.js +2 -2
  31. package/dist/es2019/ui/ContentStyles/status.js +2 -1
  32. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +206 -0
  33. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
  34. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  35. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  36. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +206 -0
  37. package/dist/es2019/ui/Toolbar/Toolbar.js +32 -0
  38. package/dist/es2019/utils/toolbar.js +3 -0
  39. package/dist/es2019/version-wrapper.js +1 -1
  40. package/dist/esm/index.js +3 -1
  41. package/dist/esm/ui/Appearance/Comment/Comment.js +5 -1
  42. package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +24 -0
  43. package/dist/esm/ui/Appearance/FullPage/FullPage.js +9 -2
  44. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  45. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +61 -0
  46. package/dist/esm/ui/ContentStyles/index.js +2 -2
  47. package/dist/esm/ui/ContentStyles/status.js +2 -1
  48. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +204 -0
  49. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -1
  50. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  51. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  52. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +204 -0
  53. package/dist/esm/ui/Toolbar/Toolbar.js +31 -0
  54. package/dist/esm/utils/toolbar.js +3 -0
  55. package/dist/esm/version-wrapper.js +1 -1
  56. package/dist/types/composable-editor/editor-internal.d.ts +0 -1
  57. package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  58. package/dist/types/create-editor/create-universal-preset.d.ts +78 -1053
  59. package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  60. package/dist/types/create-editor/get-ui-component.d.ts +0 -1
  61. package/dist/types/index.d.ts +2 -0
  62. package/dist/types/presets/universal.d.ts +78 -1053
  63. package/dist/types/presets/useUniversalPreset.d.ts +78 -1053
  64. package/dist/types/test-utils.d.ts +1 -1
  65. package/dist/types/types/with-appearance-component.d.ts +0 -1
  66. package/dist/types/ui/Addon/types.d.ts +0 -1
  67. package/dist/types/ui/Appearance/Chromeless.d.ts +7 -7
  68. package/dist/types/ui/Appearance/Comment/Comment.d.ts +3 -1
  69. package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +14 -0
  70. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +2 -0
  71. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  72. package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +30 -0
  73. package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  74. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
  75. package/dist/types/ui/ContentStyles/ai-panels.d.ts +1 -1
  76. package/dist/types/ui/ContentStyles/layout.d.ts +1 -1
  77. package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
  78. package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
  79. package/dist/types/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  80. package/dist/types/ui/Toolbar/Toolbar.d.ts +21 -1
  81. package/dist/types/utils/is-full-page.d.ts +1 -1
  82. package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
  83. package/dist/types/utils/prepare-quick-insert-provider.d.ts +0 -1
  84. package/dist/types/utils/toolbar.d.ts +2 -0
  85. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -1
  86. package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  87. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +110 -1233
  88. package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  89. package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -1
  90. package/dist/types-ts4.5/index.d.ts +2 -0
  91. package/dist/types-ts4.5/presets/universal.d.ts +110 -1233
  92. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +110 -1233
  93. package/dist/types-ts4.5/test-utils.d.ts +1 -1
  94. package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -1
  95. package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -1
  96. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +7 -7
  97. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +3 -1
  98. package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +16 -0
  99. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -0
  100. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  101. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +32 -0
  102. package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  103. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -1
  104. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +1 -1
  105. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +1 -1
  106. package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
  107. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
  108. package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  109. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +21 -1
  110. package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
  111. package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +1 -1
  112. package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -1
  113. package/dist/types-ts4.5/utils/toolbar.d.ts +2 -0
  114. package/package.json +12 -18
@@ -0,0 +1,61 @@
1
+ /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./FullPageToolbarNext.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
6
+ import { isToolbar } from '../../../utils/toolbar';
7
+ import { ToolbarNext } from '../../Toolbar/Toolbar';
8
+ import { useToolbarPortal } from '../../Toolbar/ToolbarPortal';
9
+ var styles = {
10
+ mainToolbarIconBefore: "_19pkpxbi _2hwxpxbi _otyrpxbi",
11
+ mainToolbarWrapper: "_n7zl7r9e"
12
+ };
13
+ var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
14
+ var children = _ref.children,
15
+ testId = _ref.testId;
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ "data-testid": testId,
18
+ className: ax([styles.mainToolbarWrapper])
19
+ }, children);
20
+ };
21
+
22
+ /**
23
+ * TODO: ED-28732 - This component is a work in progress, re-writing `FullPageToolbar` and is not yet complete.
24
+ *
25
+ * [ ] Add support for custom toolbar + splitting into two lines
26
+ *
27
+ * [ ] Add support for toolbar keyboard shortcuts
28
+ *
29
+ * [ ] Add support for toolbar analytics
30
+ *
31
+ * [ ] Add support for toolbar accessibility
32
+ *
33
+ * [ ] Add support for toolbar localization
34
+ */
35
+ export var FullPageToolbarNext = function FullPageToolbarNext(_ref2) {
36
+ var _editorAPI$toolbar, _useToolbarPortal;
37
+ var editorAPI = _ref2.editorAPI,
38
+ beforeIcon = _ref2.beforeIcon,
39
+ toolbarDockingPosition = _ref2.toolbarDockingPosition,
40
+ editorView = _ref2.editorView;
41
+ var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
42
+ var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
43
+ return component.key === TOOLBARS.PRIMARY_TOOLBAR;
44
+ });
45
+
46
+ // When a toolbar portal context is provided, render the toolbar inside a portal.
47
+ // Otherwise fall back to a fragment just to avoid forking rendering logic.
48
+ var _ref3 = (_useToolbarPortal = useToolbarPortal()) !== null && _useToolbarPortal !== void 0 ? _useToolbarPortal : {
49
+ Portal: React.Fragment
50
+ },
51
+ ToolbarPortal = _ref3.Portal;
52
+ return /*#__PURE__*/React.createElement(ToolbarPortal, null, /*#__PURE__*/React.createElement(MainToolbarWrapper, {
53
+ testId: "full-page-primary-toolbar"
54
+ }, beforeIcon && /*#__PURE__*/React.createElement("div", {
55
+ className: ax([styles.mainToolbarIconBefore])
56
+ }, beforeIcon), toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
57
+ toolbar: toolbar,
58
+ components: components,
59
+ editorView: editorView
60
+ })));
61
+ };
@@ -40,7 +40,7 @@ import { layoutStyles } from './layout';
40
40
  import { mediaStyles } from './media';
41
41
  import { panelStyles } from './panel';
42
42
  import { statusStyles, statusNodeStyles } from './status';
43
- import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles } from './tasks-and-decisions';
43
+ import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem } from './tasks-and-decisions';
44
44
 
45
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
46
46
  export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n"])), linkSharedStyle);
@@ -165,7 +165,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
165
165
  var legacyContentStyles = function legacyContentStyles(props) {
166
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({
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, 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, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, mentionNodeStyles, fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles, fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh, statusStyles(), statusNodeStyles(), annotationSharedStyles(), smartCardStyles(), getSmartCardSharedStyles(), dateStyles, dateNodeStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticStylesLayoutFirstNodeResizeHandleFix(), pragmaticResizerStylesForTooltip(), pragmaticResizerStylesWithReducedEditorGutter(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
169
169
  };
170
170
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
171
171
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -114,7 +114,8 @@ var baseStatusStyles = css({
114
114
  maxWidth: '100%',
115
115
  paddingInline: "var(--ds-space-050, 4px)",
116
116
  display: 'inline-flex',
117
- borderRadius: '3px',
117
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
118
+ borderRadius: "var(--ds-border-radius-100, 3px)",
118
119
  blockSize: 'min-content',
119
120
  position: 'static',
120
121
  overflow: 'hidden',
@@ -341,4 +341,208 @@ export var taskItemStyles = css(_defineProperty({
341
341
  transform: 'translate(-50%, -50%)'
342
342
  }
343
343
  }
344
+ }));
345
+
346
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
347
+ export var taskItemStylesWithBlockTaskItem = css(_defineProperty({
348
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
349
+ '[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
350
+ listStyle: 'none'
351
+ },
352
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
353
+ '[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
354
+ display: 'flex',
355
+ flexDirection: 'row',
356
+ position: 'relative'
357
+ },
358
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
359
+ '[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
360
+ position: 'absolute',
361
+ color: "var(--ds-text-subtlest, #626F86)",
362
+ margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
363
+ pointerEvents: 'none',
364
+ textOverflow: 'ellipsis',
365
+ overflow: 'hidden',
366
+ whiteSpace: 'nowrap',
367
+ maxWidth: 'calc(100% - 50px)',
368
+ display: 'none'
369
+ },
370
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
371
+ "[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
372
+ display: 'block'
373
+ },
374
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
375
+ '[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
376
+ margin: 0,
377
+ wordWrap: 'break-word',
378
+ minWidth: 0,
379
+ flex: '1 1 auto'
380
+ },
381
+ // copied styles from packages/design-system/icon/src/components/icon-new.tsx
382
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
383
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
384
+ display: 'inline-block',
385
+ boxSizing: 'border-box',
386
+ flexShrink: 0,
387
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
388
+ lineHeight: 1,
389
+ paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
390
+ paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
391
+ },
392
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
393
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
394
+ overflow: 'hidden',
395
+ pointerEvents: 'none',
396
+ color: 'currentColor',
397
+ verticalAlign: 'bottom',
398
+ width: "var(--ds-space-200, 16px)",
399
+ height: "var(--ds-space-200, 16px)"
400
+ },
401
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
402
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
403
+ display: 'none'
404
+ },
405
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
406
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
407
+ display: 'inline'
408
+ },
409
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
410
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
411
+ display: 'inline'
412
+ },
413
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
414
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
415
+ display: 'none'
416
+ }
417
+ }, "[data-prosemirror-node-name=\"taskItem\"] .".concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER, ", [data-prosemirror-node-name=\"blockTaskItem\"] .").concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
418
+ flex: '0 0 24px',
419
+ width: '24px',
420
+ height: '24px',
421
+ position: 'relative',
422
+ alignSelf: 'start',
423
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
424
+ "& > input[type='checkbox']": {
425
+ width: '16px',
426
+ height: '16px',
427
+ zIndex: 1,
428
+ cursor: 'pointer',
429
+ outline: 'none',
430
+ margin: 0,
431
+ opacity: 0,
432
+ position: 'absolute',
433
+ top: '50%',
434
+ left: '50%',
435
+ transform: 'translate(-50%, -50%)',
436
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
437
+ '&[disabled]': {
438
+ cursor: 'default'
439
+ },
440
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
441
+ '+ span': {
442
+ width: '24px',
443
+ height: '24px',
444
+ position: 'absolute',
445
+ top: '50%',
446
+ left: '50%',
447
+ transform: 'translate(-50%, -50%)'
448
+ },
449
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
450
+ '+ span > svg': {
451
+ boxSizing: 'border-box',
452
+ display: 'inline',
453
+ top: '50%',
454
+ left: '50%',
455
+ transform: 'translate(-50%, -50%)',
456
+ maxWidth: 'unset',
457
+ maxHeight: 'unset',
458
+ position: 'absolute',
459
+ overflow: 'hidden',
460
+ color: "var(--ds-background-input, #FFFFFF)",
461
+ transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
462
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
463
+ 'path:first-of-type': {
464
+ visibility: 'hidden'
465
+ },
466
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
467
+ 'rect:first-of-type': {
468
+ stroke: "var(--ds-border-input, #8590A2)",
469
+ strokeWidth: 1,
470
+ transition: 'stroke 0.2s ease-in-out'
471
+ }
472
+ },
473
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
474
+ '&:hover + span > svg': {
475
+ color: "var(--ds-background-input-hovered, #F7F8F9)",
476
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
477
+ 'rect:first-of-type': {
478
+ stroke: "var(--ds-border-input, #8590A2)"
479
+ }
480
+ },
481
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
482
+ '&:checked:hover + span > svg': {
483
+ color: "var(--ds-background-selected-bold-hovered, #0055CC)",
484
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
485
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
486
+ 'rect:first-of-type': {
487
+ stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
488
+ }
489
+ },
490
+ '&:checked': {
491
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
492
+ '+ span > svg': {
493
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
494
+ 'path:first-of-type': {
495
+ visibility: 'visible'
496
+ },
497
+ color: "var(--ds-background-selected-bold, #0C66E4)",
498
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
499
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
500
+ 'rect:first-of-type': {
501
+ stroke: "var(--ds-background-selected-bold, #0C66E4)"
502
+ }
503
+ }
504
+ },
505
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
506
+ '&:active + span > svg': {
507
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
508
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
509
+ 'rect:first-of-type': {
510
+ stroke: "var(--ds-border, #091E4224)"
511
+ }
512
+ },
513
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
514
+ '&:checked:active + span > svg': {
515
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
516
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
517
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
518
+ 'rect:first-of-type': {
519
+ stroke: "var(--ds-border, #091E4224)"
520
+ }
521
+ },
522
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
523
+ '&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
524
+ color: "var(--ds-background-disabled, #091E4208)",
525
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
526
+ 'rect:first-of-type': {
527
+ stroke: "var(--ds-background-disabled, #091E4208)"
528
+ }
529
+ },
530
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
531
+ '&:disabled:checked + span > svg': {
532
+ fill: "var(--ds-icon-disabled, #091E424F)"
533
+ },
534
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
535
+ '&:focus + span::after': {
536
+ position: 'absolute',
537
+ width: "var(--ds-space-200, 16px)",
538
+ height: "var(--ds-space-200, 16px)",
539
+ border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
540
+ borderRadius: "var(--ds-space-050, 4px)",
541
+ content: "''",
542
+ display: 'block',
543
+ top: '50%',
544
+ left: '50%',
545
+ transform: 'translate(-50%, -50%)'
546
+ }
547
+ }
344
548
  }));
@@ -57,7 +57,7 @@ import { shadowStyles } from './styles/shadowStyles';
57
57
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
58
58
  import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
59
59
  import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
60
- import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
60
+ import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem } from './styles/tasksAndDecisionsStyles';
61
61
  import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
62
62
  import { textColorStyles } from './styles/textColorStyles';
63
63
  import { textHighlightStyle } from './styles/textHighlightStyles';
@@ -215,6 +215,10 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
215
215
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
216
216
  decisionStyles,
217
217
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
218
+ expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ?
219
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
220
+ taskItemStylesWithBlockTaskItem :
221
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
218
222
  taskItemStyles, fg('platform-visual-refresh-icons') &&
219
223
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
220
224
  decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') &&
@@ -4,7 +4,8 @@ import { css } from '@emotion/react';
4
4
  export var findReplaceStyles = css({
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
6
6
  '.search-match': {
7
- borderRadius: '3px',
7
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
8
+ borderRadius: "var(--ds-border-radius-100, 3px)",
8
9
  backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
9
10
  boxShadow: "var(--ds-shadow-raised, 0 1px 1px 0 rgba(9, 30, 66, 0.25), 0 0 1px 0 rgba(9, 30, 66, 0.31))".concat(", inset 0 0 0 1px ", "var(--ds-border-input, #8590A2)")
10
11
  },
@@ -45,7 +45,8 @@ export var statusStyles = css({
45
45
  maxWidth: '100%',
46
46
  paddingInline: "var(--ds-space-050, 4px)",
47
47
  display: 'inline-flex',
48
- borderRadius: '3px',
48
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
49
+ borderRadius: "var(--ds-border-radius-100, 3px)",
49
50
  blockSize: 'min-content',
50
51
  position: 'static',
51
52
  overflow: 'hidden',
@@ -387,4 +387,208 @@ export var taskItemStyles = css(_defineProperty({
387
387
  transform: 'translate(-50%, -50%)'
388
388
  }
389
389
  }
390
+ }));
391
+
392
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
393
+ export var taskItemStylesWithBlockTaskItem = css(_defineProperty({
394
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
395
+ '[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
396
+ listStyle: 'none'
397
+ },
398
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
399
+ '[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
400
+ display: 'flex',
401
+ flexDirection: 'row',
402
+ position: 'relative'
403
+ },
404
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
405
+ '[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
406
+ position: 'absolute',
407
+ color: "var(--ds-text-subtlest, #626F86)",
408
+ margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
409
+ pointerEvents: 'none',
410
+ textOverflow: 'ellipsis',
411
+ overflow: 'hidden',
412
+ whiteSpace: 'nowrap',
413
+ maxWidth: 'calc(100% - 50px)',
414
+ display: 'none'
415
+ },
416
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
417
+ "[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
418
+ display: 'block'
419
+ },
420
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
421
+ '[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
422
+ margin: 0,
423
+ wordWrap: 'break-word',
424
+ minWidth: 0,
425
+ flex: '1 1 auto'
426
+ },
427
+ // copied styles from packages/design-system/icon/src/components/icon-new.tsx
428
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
429
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
430
+ display: 'inline-block',
431
+ boxSizing: 'border-box',
432
+ flexShrink: 0,
433
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
434
+ lineHeight: 1,
435
+ paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
436
+ paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
437
+ },
438
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
439
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
440
+ overflow: 'hidden',
441
+ pointerEvents: 'none',
442
+ color: 'currentColor',
443
+ verticalAlign: 'bottom',
444
+ width: "var(--ds-space-200, 16px)",
445
+ height: "var(--ds-space-200, 16px)"
446
+ },
447
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
448
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
449
+ display: 'none'
450
+ },
451
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
452
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
453
+ display: 'inline'
454
+ },
455
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
456
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
457
+ display: 'inline'
458
+ },
459
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
460
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
461
+ display: 'none'
462
+ }
463
+ }, "[data-prosemirror-node-name=\"taskItem\"] .".concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER, ", [data-prosemirror-node-name=\"blockTaskItem\"] .").concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
464
+ flex: '0 0 24px',
465
+ width: '24px',
466
+ height: '24px',
467
+ position: 'relative',
468
+ alignSelf: 'start',
469
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
470
+ "& > input[type='checkbox']": {
471
+ width: '16px',
472
+ height: '16px',
473
+ zIndex: 1,
474
+ cursor: 'pointer',
475
+ outline: 'none',
476
+ margin: 0,
477
+ opacity: 0,
478
+ position: 'absolute',
479
+ top: '50%',
480
+ left: '50%',
481
+ transform: 'translate(-50%, -50%)',
482
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
483
+ '&[disabled]': {
484
+ cursor: 'default'
485
+ },
486
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
487
+ '+ span': {
488
+ width: '24px',
489
+ height: '24px',
490
+ position: 'absolute',
491
+ top: '50%',
492
+ left: '50%',
493
+ transform: 'translate(-50%, -50%)'
494
+ },
495
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
496
+ '+ span > svg': {
497
+ boxSizing: 'border-box',
498
+ display: 'inline',
499
+ top: '50%',
500
+ left: '50%',
501
+ transform: 'translate(-50%, -50%)',
502
+ maxWidth: 'unset',
503
+ maxHeight: 'unset',
504
+ position: 'absolute',
505
+ overflow: 'hidden',
506
+ color: "var(--ds-background-input, #FFFFFF)",
507
+ transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
508
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
509
+ 'path:first-of-type': {
510
+ visibility: 'hidden'
511
+ },
512
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
513
+ 'rect:first-of-type': {
514
+ stroke: "var(--ds-border-input, #8590A2)",
515
+ strokeWidth: 1,
516
+ transition: 'stroke 0.2s ease-in-out'
517
+ }
518
+ },
519
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
520
+ '&:hover + span > svg': {
521
+ color: "var(--ds-background-input-hovered, #F7F8F9)",
522
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
523
+ 'rect:first-of-type': {
524
+ stroke: "var(--ds-border-input, #8590A2)"
525
+ }
526
+ },
527
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
528
+ '&:checked:hover + span > svg': {
529
+ color: "var(--ds-background-selected-bold-hovered, #0055CC)",
530
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
531
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
532
+ 'rect:first-of-type': {
533
+ stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
534
+ }
535
+ },
536
+ '&:checked': {
537
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
538
+ '+ span > svg': {
539
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
540
+ 'path:first-of-type': {
541
+ visibility: 'visible'
542
+ },
543
+ color: "var(--ds-background-selected-bold, #0C66E4)",
544
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
545
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
546
+ 'rect:first-of-type': {
547
+ stroke: "var(--ds-background-selected-bold, #0C66E4)"
548
+ }
549
+ }
550
+ },
551
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
552
+ '&:active + span > svg': {
553
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
554
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
555
+ 'rect:first-of-type': {
556
+ stroke: "var(--ds-border, #091E4224)"
557
+ }
558
+ },
559
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
560
+ '&:checked:active + span > svg': {
561
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
562
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
563
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
564
+ 'rect:first-of-type': {
565
+ stroke: "var(--ds-border, #091E4224)"
566
+ }
567
+ },
568
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
569
+ '&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
570
+ color: "var(--ds-background-disabled, #091E4208)",
571
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
572
+ 'rect:first-of-type': {
573
+ stroke: "var(--ds-background-disabled, #091E4208)"
574
+ }
575
+ },
576
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
577
+ '&:disabled:checked + span > svg': {
578
+ fill: "var(--ds-icon-disabled, #091E424F)"
579
+ },
580
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
581
+ '&:focus + span::after': {
582
+ position: 'absolute',
583
+ width: "var(--ds-space-200, 16px)",
584
+ height: "var(--ds-space-200, 16px)",
585
+ border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
586
+ borderRadius: "var(--ds-space-050, 4px)",
587
+ content: "''",
588
+ display: 'block',
589
+ top: '50%',
590
+ left: '50%',
591
+ transform: 'translate(-50%, -50%)'
592
+ }
593
+ }
390
594
  }));
@@ -1,6 +1,15 @@
1
1
  import React from 'react';
2
+ import { EditorToolbarProvider } from '@atlaskit/editor-common/toolbar';
2
3
  import { ToolbarSize } from '@atlaskit/editor-common/types';
4
+ import { ToolbarButtonGroup, ToolbarDropdownItemSection, ToolbarSection } from '@atlaskit/editor-toolbar';
5
+ import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
3
6
  import { ToolbarInner } from './ToolbarInner';
7
+
8
+ /**
9
+ * *Warning:* With `platform_editor_toolbar_aifc` enabled this component is no longer used and is replaced with `<ToolbarNext />`.
10
+ *
11
+ * If making changes to this component please ensure to also update `<ToolbarNext />`.
12
+ */
4
13
  export var Toolbar = function Toolbar(props) {
5
14
  return /*#__PURE__*/React.createElement(ToolbarInner, {
6
15
  items: props.items,
@@ -18,4 +27,26 @@ export var Toolbar = function Toolbar(props) {
18
27
  isToolbarReducedSpacing: props.toolbarSize < ToolbarSize.XXL,
19
28
  containerElement: props.containerElement
20
29
  });
30
+ };
31
+ /**
32
+ * Renders a primary toolbar, driven by components registed by `editor-plugin-toolbar`. `ToolbarModelRenderer` will just
33
+ * render the toolbar structure, the design is driven per component registered including the toolbar itself.
34
+ *
35
+ * The majority of components UI should use `@atlaskit/editor-toolbar` components.
36
+ */
37
+ export var ToolbarNext = function ToolbarNext(_ref) {
38
+ var toolbar = _ref.toolbar,
39
+ components = _ref.components,
40
+ editorView = _ref.editorView;
41
+ return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
42
+ editorView: editorView !== null && editorView !== void 0 ? editorView : null
43
+ }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
44
+ toolbar: toolbar,
45
+ components: components,
46
+ fallbacks: {
47
+ group: ToolbarButtonGroup,
48
+ section: ToolbarSection,
49
+ menuSection: ToolbarDropdownItemSection
50
+ }
51
+ }));
21
52
  };
@@ -0,0 +1,3 @@
1
+ export var isToolbar = function isToolbar(component) {
2
+ return (component === null || component === void 0 ? void 0 : component.type) === 'toolbar';
3
+ };
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.6.4";
2
+ export var version = "209.7.0";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { jsx } from '@emotion/react';
3
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
4
3
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';