@atlaskit/editor-core 208.2.1 → 208.3.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 (27) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/sr_YR.js +19 -0
  3. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +31 -1
  4. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  5. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -3
  6. package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +4 -1
  7. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +123 -1
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/i18n/sr_YR.js +13 -0
  10. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +29 -1
  11. package/dist/es2019/ui/ContentStyles/index.js +7 -0
  12. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +7 -4
  13. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +4 -1
  14. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +122 -0
  15. package/dist/es2019/version-wrapper.js +1 -1
  16. package/dist/esm/i18n/sr_YR.js +13 -0
  17. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +31 -1
  18. package/dist/esm/ui/ContentStyles/index.js +1 -1
  19. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +7 -4
  20. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +4 -1
  21. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +122 -0
  22. package/dist/esm/version-wrapper.js +1 -1
  23. package/dist/types/i18n/sr_YR.d.ts +12 -0
  24. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
  25. package/dist/types-ts4.5/i18n/sr_YR.d.ts +12 -0
  26. package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
  27. package/package.json +7 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 208.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#170867](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/170867)
8
+ [`5ef91045141dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ef91045141dd) -
9
+ Add new fallback css widths for breakout resizing plugin, to fix issues in full width page
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 208.2.1
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Serbian (Cyrillic) [sr-YR]
15
+ var _default = exports.default = {
16
+ 'fabric.editor.chromeCollapsedPlaceholder': 'Унесите текст…',
17
+ 'fabric.editor.editorAssistiveLabel': 'Главна област за садржај, почните да уносите текст.',
18
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'Отвори дијалог помоћи'
19
+ };
@@ -13,6 +13,7 @@ var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
13
13
  var _consts = require("@atlaskit/editor-plugins/table/ui/consts");
14
14
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
19
 
@@ -132,11 +133,40 @@ var editorContentAreaContainerStyle = function editorContentAreaContainerStyle()
132
133
  }
133
134
  });
134
135
  };
136
+
137
+ /* Prevent horizontal scroll on page in full width mode */
138
+ var editorContentAreaContainerStyleExcludeCodeBlock = function editorContentAreaContainerStyleExcludeCodeBlock() {
139
+ return (0, _react.css)({
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
141
+ '.fabric-editor--full-width-mode': {
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
143
+ '.extension-container, .multiBodiedExtension--container': {
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
145
+ maxWidth: "calc(100% - ".concat(_consts.tableMarginFullWidthMode * 2, "px)")
146
+ },
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
148
+ '.extension-container.inline': {
149
+ maxWidth: '100%'
150
+ },
151
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
152
+ 'td .extension-container.inline': {
153
+ maxWidth: 'inherit'
154
+ },
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
156
+ '[data-layout-section]': {
157
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
158
+ maxWidth: "calc(100% + ".concat((_editorSharedStyles.akLayoutGutterOffset + ((0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? AK_NESTED_DND_GUTTER_OFFSET : 0)) * 2, "px)")
159
+ }
160
+ }
161
+ });
162
+ };
135
163
  var editorContentAreaStyle = exports.editorContentAreaStyle = function editorContentAreaStyle(_ref) {
136
164
  var layoutMaxWidth = _ref.layoutMaxWidth,
137
165
  fullWidthMode = _ref.fullWidthMode,
138
166
  isEditorToolbarHidden = _ref.isEditorToolbarHidden;
139
- return [editorContentArea, (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') ? [] : [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
167
+ return [editorContentArea, (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth),
168
+ // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
169
+ (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlock() : editorContentAreaContainerStyle()].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') ? [] : [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
140
170
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
141
171
  contentAreaReducedHeaderSpace, isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') &&
142
172
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -152,7 +152,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
152
152
  // Under editor experiment platform_editor_core_static_emotion
153
153
  // If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
154
154
  var legacyContentStyles = function legacyContentStyles(props) {
155
- return (0, _react2.css)(_templateObject9 || (_templateObject9 = (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.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\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.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 ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\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, _editorSharedStyles.editorFontSize)({
155
+ return (0, _react2.css)(_templateObject9 || (_templateObject9 = (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.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 ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\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, _editorSharedStyles.editorFontSize)({
156
156
  theme: props.theme
157
157
  }), _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)(_templateObject0 || (_templateObject0 = (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)(_templateObject1 || (_templateObject1 = (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)", (0, _platformFeatureFlags.fg)('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, _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, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
158
158
  exposure: false
@@ -10,6 +10,7 @@ var _react2 = require("@emotion/react");
10
10
  var _browser = require("@atlaskit/editor-common/browser");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
13
14
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
15
  var _tokens = require("@atlaskit/tokens");
15
16
  var _aiPanel = require("./styles/aiPanel");
@@ -276,11 +277,13 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
276
277
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
277
278
  (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? _link.linkStyles : _link.linkStylesOld,
278
279
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
279
- _browser.browser.safari && _list.listsStylesSafariFix, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) &&
280
+ _browser.browser.safari && _list.listsStylesSafariFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_width_changes') ?
280
281
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
281
- _resizerStyles.pragmaticResizerStyles, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
282
+ _resizerStyles.pragmaticResizerStylesNew :
282
283
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
283
- _resizerStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
284
+ _resizerStyles.pragmaticResizerStyles : undefined, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
285
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
286
+ _resizerStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
284
287
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
285
288
  _resizerStyles.pragmaticResizerStylesForTooltip,
286
289
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -29,9 +29,12 @@ var baseStyles = exports.baseStyles = (0, _react.css)((0, _defineProperty2.defau
29
29
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
30
30
  '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px"),
31
31
  '--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
32
+ '--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
32
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
33
34
  '.fabric-editor--full-width-mode': {
34
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))'
35
+ '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))',
36
+ /* 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 */
37
+ '--ak-editor--breakout-fallback-width': '100%'
35
38
  },
36
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
37
40
  '.ProseMirror': {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
7
+ exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticResizerStylesNew = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  // eslint-disable-line
@@ -321,4 +321,126 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
321
321
  top: "var(--ds-space-150, 12px)",
322
322
  bottom: "var(--ds-space-150, 12px)"
323
323
  }
324
+ });
325
+
326
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
327
+ var pragmaticResizerStylesNew = exports.pragmaticResizerStylesNew = (0, _react.css)({
328
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
329
+ '.fabric-editor-breakout-mark': {
330
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
331
+ '&:has([data-prosemirror-node-name="codeBlock"])': {
332
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
333
+ '> .pm-breakout-resize-handle-container--left': {
334
+ left: '-5px'
335
+ },
336
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
337
+ '> .pm-breakout-resize-handle-container--right': {
338
+ right: '-5px'
339
+ },
340
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
341
+ '> .pm-breakout-resize-handle-container': {
342
+ height: 'calc(100% - 12px)'
343
+ }
344
+ },
345
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
346
+ '&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
347
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
348
+ '> .pm-breakout-resize-handle-container--left': {
349
+ left: '-25px'
350
+ },
351
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
352
+ '> .pm-breakout-resize-handle-container--right': {
353
+ right: '-25px'
354
+ }
355
+ },
356
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
357
+ '&:has([data-prosemirror-node-name="expand"])': {
358
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
359
+ '> .pm-breakout-resize-handle-container': {
360
+ height: 'calc(100% - 4px)'
361
+ }
362
+ },
363
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
364
+ '&:has([data-prosemirror-node-name="layoutSection"])': {
365
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
366
+ '> .pm-breakout-resize-handle-container': {
367
+ height: 'calc(100% - 8px)'
368
+ }
369
+ },
370
+ // the first node in the document always has margin-top = 0
371
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
372
+ '&:has(.first-node-in-document)': {
373
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
374
+ '> .pm-breakout-resize-handle-container': {
375
+ height: '100%'
376
+ }
377
+ }
378
+ },
379
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
380
+ '.pm-breakout-resize-handle-container': {
381
+ position: 'relative',
382
+ alignSelf: 'end',
383
+ gridRow: 1,
384
+ gridColumn: 1,
385
+ height: '100%',
386
+ width: 7
387
+ },
388
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
389
+ '.pm-breakout-resize-handle-container--left': {
390
+ justifySelf: 'start'
391
+ },
392
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
393
+ '.pm-breakout-resize-handle-container--right': {
394
+ justifySelf: 'end'
395
+ },
396
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
397
+ '.pm-breakout-resize-handle-rail': {
398
+ position: 'relative',
399
+ display: 'flex',
400
+ alignItems: 'center',
401
+ justifyContent: 'center',
402
+ height: '100%',
403
+ cursor: 'col-resize',
404
+ borderRadius: 4,
405
+ transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
406
+ zIndex: 2,
407
+ opacity: 0,
408
+ '&:hover': {
409
+ background: "var(--ds-background-selected, #E9F2FF)",
410
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
411
+ '.pm-breakout-resize-handle-thumb': {
412
+ background: "var(--ds-border-focused, #388BFF)"
413
+ }
414
+ }
415
+ },
416
+ // same as 'hover' styles above
417
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
418
+ '.pm-breakout-resize-handle-container--active': {
419
+ background: "var(--ds-background-selected, #E9F2FF)",
420
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
421
+ '.pm-breakout-resize-handle-thumb': {
422
+ background: "var(--ds-border-focused, #388BFF)"
423
+ }
424
+ },
425
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
426
+ '.pm-breakout-resize-handle-hit-box': {
427
+ position: 'absolute',
428
+ top: 0,
429
+ bottom: 0,
430
+ left: -20,
431
+ right: -20,
432
+ zIndex: 0
433
+ },
434
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
435
+ '.pm-breakout-resize-handle-thumb': {
436
+ minWidth: resizerHandleThumbWidth,
437
+ // copied from resizeStyles.clamped
438
+ height: 'clamp(27px, calc(100% - 32px), 96px)',
439
+ background: "var(--ds-border, #091E4224)",
440
+ borderRadius: 6,
441
+ // sticky styles
442
+ position: 'sticky',
443
+ top: "var(--ds-space-150, 12px)",
444
+ bottom: "var(--ds-space-150, 12px)"
445
+ }
324
446
  });
@@ -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 = "208.2.0";
8
+ var version = exports.version = "208.2.1";
@@ -0,0 +1,13 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Cyrillic) [sr-YR]
9
+ export default {
10
+ 'fabric.editor.chromeCollapsedPlaceholder': 'Унесите текст…',
11
+ 'fabric.editor.editorAssistiveLabel': 'Главна област за садржај, почните да уносите текст.',
12
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'Отвори дијалог помоћи'
13
+ };
@@ -5,6 +5,7 @@ import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/com
5
5
  import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
6
6
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
10
11
  const SWOOP_ANIMATION = `0.5s ${akEditorSwoopCubicBezier}`;
@@ -118,11 +119,38 @@ const editorContentAreaContainerStyle = () => css({
118
119
  }
119
120
  }
120
121
  });
122
+
123
+ /* Prevent horizontal scroll on page in full width mode */
124
+ const editorContentAreaContainerStyleExcludeCodeBlock = () => css({
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
126
+ '.fabric-editor--full-width-mode': {
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
128
+ '.extension-container, .multiBodiedExtension--container': {
129
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
130
+ maxWidth: `calc(100% - ${tableMarginFullWidthMode * 2}px)`
131
+ },
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
133
+ '.extension-container.inline': {
134
+ maxWidth: '100%'
135
+ },
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
137
+ 'td .extension-container.inline': {
138
+ maxWidth: 'inherit'
139
+ },
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
141
+ '[data-layout-section]': {
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
143
+ maxWidth: `calc(100% + ${(akLayoutGutterOffset + (fg('platform_editor_nested_dnd_styles_changes') ? AK_NESTED_DND_GUTTER_OFFSET : 0)) * 2}px)`
144
+ }
145
+ }
146
+ });
121
147
  export const editorContentAreaStyle = ({
122
148
  layoutMaxWidth,
123
149
  fullWidthMode,
124
150
  isEditorToolbarHidden
125
- }) => [editorContentArea, fg('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle(), ...(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
151
+ }) => [editorContentArea, fg('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth),
152
+ // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
153
+ expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlock() : editorContentAreaContainerStyle(), ...(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
126
154
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
127
155
  contentAreaReducedHeaderSpace, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') &&
128
156
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -300,11 +300,18 @@ const legacyContentStyles = props => css`
300
300
  var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)
301
301
  );
302
302
 
303
+ --ak-editor--breakout-fallback-width: calc(
304
+ 100cqw - var(--ak-editor--breakout-full-page-guttering-padding)
305
+ );
306
+
303
307
  .fabric-editor--full-width-mode {
304
308
  --ak-editor--line-length: min(
305
309
  calc(100cqw - var(--ak-editor--large-gutter-padding) * 2),
306
310
  var(--ak-editor--full-width-layout-width)
307
311
  );
312
+
313
+ /* 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 */
314
+ --ak-editor--breakout-fallback-width: 100%;
308
315
  }
309
316
 
310
317
  .ProseMirror {
@@ -11,6 +11,7 @@ import { jsx, useTheme } from '@emotion/react';
11
11
  import { browser } from '@atlaskit/editor-common/browser';
12
12
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
14
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
16
  import { useThemeObserver } from '@atlaskit/tokens';
16
17
  import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
@@ -45,7 +46,7 @@ import { mentionsStyles, vanillaMentionsSelectionStyles, vanillaMentionsStyles }
45
46
  import { panelStyles, panelStylesMixin, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles } from './styles/panelStyles';
46
47
  import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
47
48
  import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderTextStylesMixin_fg_platform_editor_system_fake_text_highlight_colour, placeholderWrapStyles } from './styles/placeholderStyles';
48
- import { pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, resizerStyles } from './styles/resizerStyles';
49
+ import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, resizerStyles } from './styles/resizerStyles';
49
50
  import { ruleStyles } from './styles/rule';
50
51
  import { scrollbarStyles } from './styles/scrollbarStyles';
51
52
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
@@ -271,11 +272,13 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
271
272
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
272
273
  fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld,
273
274
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
274
- browser.safari && listsStylesSafariFix, editorExperiment('platform_editor_breakout_resizing', true) &&
275
+ browser.safari && listsStylesSafariFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? fg('platform_editor_breakout_resizing_width_changes') ?
275
276
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
276
- pragmaticResizerStyles, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
277
+ pragmaticResizerStylesNew :
277
278
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
278
- pragmaticStylesLayoutFirstNodeResizeHandleFix, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
279
+ pragmaticResizerStyles : undefined, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_hello_release') &&
280
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
281
+ pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_hello_release') &&
279
282
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
280
283
  pragmaticResizerStylesForTooltip,
281
284
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -21,9 +21,12 @@ export const baseStyles = css({
21
21
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
22
22
  '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidthSmallViewport}px`,
23
23
  '--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
24
+ '--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
24
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
25
26
  '.fabric-editor--full-width-mode': {
26
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))'
27
+ '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))',
28
+ /* 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 */
29
+ '--ak-editor--breakout-fallback-width': '100%'
27
30
  },
28
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
29
32
  '.ProseMirror': {
@@ -366,4 +366,126 @@ export const pragmaticResizerStyles = css({
366
366
  top: "var(--ds-space-150, 12px)",
367
367
  bottom: "var(--ds-space-150, 12px)"
368
368
  }
369
+ });
370
+
371
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
372
+ export const pragmaticResizerStylesNew = css({
373
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
374
+ '.fabric-editor-breakout-mark': {
375
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
376
+ '&:has([data-prosemirror-node-name="codeBlock"])': {
377
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
378
+ '> .pm-breakout-resize-handle-container--left': {
379
+ left: '-5px'
380
+ },
381
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
382
+ '> .pm-breakout-resize-handle-container--right': {
383
+ right: '-5px'
384
+ },
385
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
386
+ '> .pm-breakout-resize-handle-container': {
387
+ height: 'calc(100% - 12px)'
388
+ }
389
+ },
390
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
391
+ '&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
392
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
393
+ '> .pm-breakout-resize-handle-container--left': {
394
+ left: '-25px'
395
+ },
396
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
397
+ '> .pm-breakout-resize-handle-container--right': {
398
+ right: '-25px'
399
+ }
400
+ },
401
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
402
+ '&:has([data-prosemirror-node-name="expand"])': {
403
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
404
+ '> .pm-breakout-resize-handle-container': {
405
+ height: 'calc(100% - 4px)'
406
+ }
407
+ },
408
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
409
+ '&:has([data-prosemirror-node-name="layoutSection"])': {
410
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
411
+ '> .pm-breakout-resize-handle-container': {
412
+ height: 'calc(100% - 8px)'
413
+ }
414
+ },
415
+ // the first node in the document always has margin-top = 0
416
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
417
+ '&:has(.first-node-in-document)': {
418
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
419
+ '> .pm-breakout-resize-handle-container': {
420
+ height: '100%'
421
+ }
422
+ }
423
+ },
424
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
425
+ '.pm-breakout-resize-handle-container': {
426
+ position: 'relative',
427
+ alignSelf: 'end',
428
+ gridRow: 1,
429
+ gridColumn: 1,
430
+ height: '100%',
431
+ width: 7
432
+ },
433
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
434
+ '.pm-breakout-resize-handle-container--left': {
435
+ justifySelf: 'start'
436
+ },
437
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
438
+ '.pm-breakout-resize-handle-container--right': {
439
+ justifySelf: 'end'
440
+ },
441
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
442
+ '.pm-breakout-resize-handle-rail': {
443
+ position: 'relative',
444
+ display: 'flex',
445
+ alignItems: 'center',
446
+ justifyContent: 'center',
447
+ height: '100%',
448
+ cursor: 'col-resize',
449
+ borderRadius: 4,
450
+ transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
451
+ zIndex: 2,
452
+ opacity: 0,
453
+ '&:hover': {
454
+ background: "var(--ds-background-selected, #E9F2FF)",
455
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
456
+ '.pm-breakout-resize-handle-thumb': {
457
+ background: "var(--ds-border-focused, #388BFF)"
458
+ }
459
+ }
460
+ },
461
+ // same as 'hover' styles above
462
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
463
+ '.pm-breakout-resize-handle-container--active': {
464
+ background: "var(--ds-background-selected, #E9F2FF)",
465
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
466
+ '.pm-breakout-resize-handle-thumb': {
467
+ background: "var(--ds-border-focused, #388BFF)"
468
+ }
469
+ },
470
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
471
+ '.pm-breakout-resize-handle-hit-box': {
472
+ position: 'absolute',
473
+ top: 0,
474
+ bottom: 0,
475
+ left: -20,
476
+ right: -20,
477
+ zIndex: 0
478
+ },
479
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
480
+ '.pm-breakout-resize-handle-thumb': {
481
+ minWidth: resizerHandleThumbWidth,
482
+ // copied from resizeStyles.clamped
483
+ height: 'clamp(27px, calc(100% - 32px), 96px)',
484
+ background: "var(--ds-border, #091E4224)",
485
+ borderRadius: 6,
486
+ // sticky styles
487
+ position: 'sticky',
488
+ top: "var(--ds-space-150, 12px)",
489
+ bottom: "var(--ds-space-150, 12px)"
490
+ }
369
491
  });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "208.2.0";
2
+ export const version = "208.2.1";
@@ -0,0 +1,13 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Cyrillic) [sr-YR]
9
+ export default {
10
+ 'fabric.editor.chromeCollapsedPlaceholder': 'Унесите текст…',
11
+ 'fabric.editor.editorAssistiveLabel': 'Главна област за садржај, почните да уносите текст.',
12
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'Отвори дијалог помоћи'
13
+ };
@@ -7,6 +7,7 @@ import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/com
7
7
  import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
8
8
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
10
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
13
  var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
@@ -124,11 +125,40 @@ var editorContentAreaContainerStyle = function editorContentAreaContainerStyle()
124
125
  }
125
126
  });
126
127
  };
128
+
129
+ /* Prevent horizontal scroll on page in full width mode */
130
+ var editorContentAreaContainerStyleExcludeCodeBlock = function editorContentAreaContainerStyleExcludeCodeBlock() {
131
+ return css({
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
133
+ '.fabric-editor--full-width-mode': {
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
135
+ '.extension-container, .multiBodiedExtension--container': {
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
137
+ maxWidth: "calc(100% - ".concat(tableMarginFullWidthMode * 2, "px)")
138
+ },
139
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
140
+ '.extension-container.inline': {
141
+ maxWidth: '100%'
142
+ },
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
144
+ 'td .extension-container.inline': {
145
+ maxWidth: 'inherit'
146
+ },
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
148
+ '[data-layout-section]': {
149
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
150
+ maxWidth: "calc(100% + ".concat((akLayoutGutterOffset + (fg('platform_editor_nested_dnd_styles_changes') ? AK_NESTED_DND_GUTTER_OFFSET : 0)) * 2, "px)")
151
+ }
152
+ }
153
+ });
154
+ };
127
155
  export var editorContentAreaStyle = function editorContentAreaStyle(_ref) {
128
156
  var layoutMaxWidth = _ref.layoutMaxWidth,
129
157
  fullWidthMode = _ref.fullWidthMode,
130
158
  isEditorToolbarHidden = _ref.isEditorToolbarHidden;
131
- return [editorContentArea, fg('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), editorContentAreaContainerStyle()].concat(_toConsumableArray(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
159
+ return [editorContentArea, fg('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth),
160
+ // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
161
+ expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlock() : editorContentAreaContainerStyle()].concat(_toConsumableArray(fg('platform_editor_controls_no_toolbar_space') ? [] : [editorExperiment('platform_editor_controls', 'variant1') &&
132
162
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
133
163
  contentAreaReducedHeaderSpace, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') &&
134
164
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -145,7 +145,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
145
145
  // Under editor experiment platform_editor_core_static_emotion
146
146
  // If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
147
147
  var legacyContentStyles = function legacyContentStyles(props) {
148
- return css(_templateObject9 || (_templateObject9 = _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.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\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.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 ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\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, editorFontSize({
148
+ return css(_templateObject9 || (_templateObject9 = _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.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 ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\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, editorFontSize({
149
149
  theme: props.theme
150
150
  }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)", fg('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, 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, editorExperiment('platform_editor_vanilla_dom', true, {
151
151
  exposure: false
@@ -11,6 +11,7 @@ import { jsx, useTheme } from '@emotion/react';
11
11
  import { browser } from '@atlaskit/editor-common/browser';
12
12
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
14
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
16
  import { useThemeObserver } from '@atlaskit/tokens';
16
17
  import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
@@ -45,7 +46,7 @@ import { mentionsStyles, vanillaMentionsSelectionStyles, vanillaMentionsStyles }
45
46
  import { panelStyles, panelStylesMixin, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles } from './styles/panelStyles';
46
47
  import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
47
48
  import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderTextStylesMixin_fg_platform_editor_system_fake_text_highlight_colour, placeholderWrapStyles } from './styles/placeholderStyles';
48
- import { pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, resizerStyles } from './styles/resizerStyles';
49
+ import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, resizerStyles } from './styles/resizerStyles';
49
50
  import { ruleStyles } from './styles/rule';
50
51
  import { scrollbarStyles } from './styles/scrollbarStyles';
51
52
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
@@ -268,11 +269,13 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
268
269
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
269
270
  fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld,
270
271
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
271
- browser.safari && listsStylesSafariFix, editorExperiment('platform_editor_breakout_resizing', true) &&
272
+ browser.safari && listsStylesSafariFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? fg('platform_editor_breakout_resizing_width_changes') ?
272
273
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
273
- pragmaticResizerStyles, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
274
+ pragmaticResizerStylesNew :
274
275
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
275
- pragmaticStylesLayoutFirstNodeResizeHandleFix, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
276
+ pragmaticResizerStyles : undefined, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_hello_release') &&
277
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
278
+ pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && fg('platform_editor_breakout_resizing_hello_release') &&
276
279
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
277
280
  pragmaticResizerStylesForTooltip,
278
281
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -22,9 +22,12 @@ export var baseStyles = css(_defineProperty({
22
22
  '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
23
23
  '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px"),
24
24
  '--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
25
+ '--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
25
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
26
27
  '.fabric-editor--full-width-mode': {
27
- '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))'
28
+ '--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--full-width-layout-width))',
29
+ /* 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 */
30
+ '--ak-editor--breakout-fallback-width': '100%'
28
31
  },
29
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
30
33
  '.ProseMirror': {
@@ -313,4 +313,126 @@ export var pragmaticResizerStyles = css({
313
313
  top: "var(--ds-space-150, 12px)",
314
314
  bottom: "var(--ds-space-150, 12px)"
315
315
  }
316
+ });
317
+
318
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
319
+ export var pragmaticResizerStylesNew = css({
320
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
321
+ '.fabric-editor-breakout-mark': {
322
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
323
+ '&:has([data-prosemirror-node-name="codeBlock"])': {
324
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
325
+ '> .pm-breakout-resize-handle-container--left': {
326
+ left: '-5px'
327
+ },
328
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
329
+ '> .pm-breakout-resize-handle-container--right': {
330
+ right: '-5px'
331
+ },
332
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
333
+ '> .pm-breakout-resize-handle-container': {
334
+ height: 'calc(100% - 12px)'
335
+ }
336
+ },
337
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
338
+ '&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
339
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
340
+ '> .pm-breakout-resize-handle-container--left': {
341
+ left: '-25px'
342
+ },
343
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
344
+ '> .pm-breakout-resize-handle-container--right': {
345
+ right: '-25px'
346
+ }
347
+ },
348
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
349
+ '&:has([data-prosemirror-node-name="expand"])': {
350
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
351
+ '> .pm-breakout-resize-handle-container': {
352
+ height: 'calc(100% - 4px)'
353
+ }
354
+ },
355
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
356
+ '&:has([data-prosemirror-node-name="layoutSection"])': {
357
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
358
+ '> .pm-breakout-resize-handle-container': {
359
+ height: 'calc(100% - 8px)'
360
+ }
361
+ },
362
+ // the first node in the document always has margin-top = 0
363
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
364
+ '&:has(.first-node-in-document)': {
365
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
366
+ '> .pm-breakout-resize-handle-container': {
367
+ height: '100%'
368
+ }
369
+ }
370
+ },
371
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
372
+ '.pm-breakout-resize-handle-container': {
373
+ position: 'relative',
374
+ alignSelf: 'end',
375
+ gridRow: 1,
376
+ gridColumn: 1,
377
+ height: '100%',
378
+ width: 7
379
+ },
380
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
381
+ '.pm-breakout-resize-handle-container--left': {
382
+ justifySelf: 'start'
383
+ },
384
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
385
+ '.pm-breakout-resize-handle-container--right': {
386
+ justifySelf: 'end'
387
+ },
388
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
389
+ '.pm-breakout-resize-handle-rail': {
390
+ position: 'relative',
391
+ display: 'flex',
392
+ alignItems: 'center',
393
+ justifyContent: 'center',
394
+ height: '100%',
395
+ cursor: 'col-resize',
396
+ borderRadius: 4,
397
+ transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
398
+ zIndex: 2,
399
+ opacity: 0,
400
+ '&:hover': {
401
+ background: "var(--ds-background-selected, #E9F2FF)",
402
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
403
+ '.pm-breakout-resize-handle-thumb': {
404
+ background: "var(--ds-border-focused, #388BFF)"
405
+ }
406
+ }
407
+ },
408
+ // same as 'hover' styles above
409
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
410
+ '.pm-breakout-resize-handle-container--active': {
411
+ background: "var(--ds-background-selected, #E9F2FF)",
412
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
413
+ '.pm-breakout-resize-handle-thumb': {
414
+ background: "var(--ds-border-focused, #388BFF)"
415
+ }
416
+ },
417
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
418
+ '.pm-breakout-resize-handle-hit-box': {
419
+ position: 'absolute',
420
+ top: 0,
421
+ bottom: 0,
422
+ left: -20,
423
+ right: -20,
424
+ zIndex: 0
425
+ },
426
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
427
+ '.pm-breakout-resize-handle-thumb': {
428
+ minWidth: resizerHandleThumbWidth,
429
+ // copied from resizeStyles.clamped
430
+ height: 'clamp(27px, calc(100% - 32px), 96px)',
431
+ background: "var(--ds-border, #091E4224)",
432
+ borderRadius: 6,
433
+ // sticky styles
434
+ position: 'sticky',
435
+ top: "var(--ds-space-150, 12px)",
436
+ bottom: "var(--ds-space-150, 12px)"
437
+ }
316
438
  });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "208.2.0";
2
+ export var version = "208.2.1";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.chromeCollapsedPlaceholder': string;
9
+ 'fabric.editor.editorAssistiveLabel': string;
10
+ 'fabric.editor.headingLink.toolbarHelpTitle': string;
11
+ };
12
+ export default _default;
@@ -11,3 +11,4 @@ export declare const resizerStyles: import("@emotion/react").SerializedStyles;
11
11
  export declare const pragmaticResizerStylesForTooltip: import("@emotion/react").SerializedStyles;
12
12
  export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: import("@emotion/react").SerializedStyles;
13
13
  export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
14
+ export declare const pragmaticResizerStylesNew: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.chromeCollapsedPlaceholder': string;
9
+ 'fabric.editor.editorAssistiveLabel': string;
10
+ 'fabric.editor.headingLink.toolbarHelpTitle': string;
11
+ };
12
+ export default _default;
@@ -11,3 +11,4 @@ export declare const resizerStyles: import("@emotion/react").SerializedStyles;
11
11
  export declare const pragmaticResizerStylesForTooltip: import("@emotion/react").SerializedStyles;
12
12
  export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: import("@emotion/react").SerializedStyles;
13
13
  export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
14
+ export declare const pragmaticResizerStylesNew: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "208.2.1",
3
+ "version": "208.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^23.2.0",
48
48
  "@atlaskit/css": "^0.11.0",
49
- "@atlaskit/editor-common": "^107.0.0",
49
+ "@atlaskit/editor-common": "^107.1.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",
51
51
  "@atlaskit/editor-performance-metrics": "^2.1.0",
52
52
  "@atlaskit/editor-plugin-quick-insert": "^2.6.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/editor-prosemirror": "7.0.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.4.0",
57
57
  "@atlaskit/emoji": "^69.3.0",
58
- "@atlaskit/icon": "^27.0.0",
58
+ "@atlaskit/icon": "^27.1.0",
59
59
  "@atlaskit/link": "^3.2.0",
60
60
  "@atlaskit/media-card": "^79.3.0",
61
61
  "@atlaskit/mention": "^24.2.0",
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/react-ufo": "^3.13.0",
65
65
  "@atlaskit/task-decision": "^19.2.0",
66
66
  "@atlaskit/tmp-editor-statsig": "^8.0.0",
67
- "@atlaskit/tokens": "^5.3.0",
67
+ "@atlaskit/tokens": "^5.4.0",
68
68
  "@atlaskit/tooltip": "^20.3.0",
69
69
  "@atlaskit/width-detector": "^5.0.0",
70
70
  "@babel/runtime": "^7.0.0",
@@ -548,14 +548,6 @@
548
548
  "type": "boolean",
549
549
  "referenceOnly": true
550
550
  },
551
- "platform_editor_controls_patch_10": {
552
- "type": "boolean",
553
- "referenceOnly": true
554
- },
555
- "platform_editor_controls_patch_11": {
556
- "type": "boolean",
557
- "referenceOnly": true
558
- },
559
551
  "platform_editor_controls_patch_12": {
560
552
  "type": "boolean",
561
553
  "referenceOnly": true
@@ -568,6 +560,9 @@
568
560
  "type": "boolean",
569
561
  "referenceOnly": true
570
562
  },
563
+ "platform_editor_breakout_resizing_width_changes": {
564
+ "type": "boolean"
565
+ },
571
566
  "platform_editor_tables_table_selector": {
572
567
  "type": "boolean",
573
568
  "referenceOnly": true