@atlaskit/editor-core 241.0.4 → 241.0.6

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 (142) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +4 -4
  3. package/dist/cjs/composable-editor/editor-internal.js +2 -2
  4. package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +4 -4
  5. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -2
  6. package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +4 -4
  7. package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +4 -4
  8. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -4
  9. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
  10. package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +4 -4
  11. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
  12. package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +6 -6
  13. package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +4 -4
  14. package/dist/cjs/ui/ChromeCollapsed/index.js +2 -2
  15. package/dist/cjs/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +5 -5
  16. package/dist/cjs/ui/ContextPanel/index.js +3 -3
  17. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.compiled.css +212 -0
  18. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +414 -4
  19. package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +4 -4
  20. package/dist/cjs/ui/PluginSlot/index.js +2 -2
  21. package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +4 -4
  22. package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -2
  23. package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +4 -4
  24. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  25. package/dist/cjs/ui/WithFlash/index.js +2 -2
  26. package/dist/cjs/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +9 -9
  27. package/dist/cjs/version-wrapper.js +1 -1
  28. package/dist/es2019/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
  29. package/dist/es2019/composable-editor/editor-internal.js +2 -2
  30. package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
  31. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +2 -2
  32. package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
  33. package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
  34. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -4
  35. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -2
  36. package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
  37. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
  38. package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
  39. package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
  40. package/dist/es2019/ui/ChromeCollapsed/index.js +2 -2
  41. package/dist/es2019/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
  42. package/dist/es2019/ui/ContextPanel/index.js +3 -3
  43. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.compiled.css +212 -0
  44. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +475 -4
  45. package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
  46. package/dist/es2019/ui/PluginSlot/index.js +2 -2
  47. package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
  48. package/dist/es2019/ui/Toolbar/ToolbarInner.js +2 -2
  49. package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
  50. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  51. package/dist/es2019/ui/WithFlash/index.js +2 -2
  52. package/dist/es2019/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +3 -3
  53. package/dist/es2019/version-wrapper.js +1 -1
  54. package/dist/esm/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
  55. package/dist/esm/composable-editor/editor-internal.js +2 -2
  56. package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
  57. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +2 -2
  58. package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
  59. package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
  60. package/dist/esm/ui/Appearance/Comment/Toolbar.js +4 -4
  61. package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -2
  62. package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
  63. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
  64. package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
  65. package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
  66. package/dist/esm/ui/ChromeCollapsed/index.js +2 -2
  67. package/dist/esm/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
  68. package/dist/esm/ui/ContextPanel/index.js +3 -3
  69. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.compiled.css +212 -0
  70. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +418 -4
  71. package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
  72. package/dist/esm/ui/PluginSlot/index.js +2 -2
  73. package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
  74. package/dist/esm/ui/Toolbar/ToolbarInner.js +2 -2
  75. package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
  76. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  77. package/dist/esm/ui/WithFlash/index.js +2 -2
  78. package/dist/esm/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +8 -8
  79. package/dist/esm/version-wrapper.js +1 -1
  80. package/dist/types/composable-editor/{editor-internal-compiled.d.ts → editor-internal-container.d.ts} +1 -1
  81. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock.d.ts +6 -0
  82. package/dist/types/ui/Appearance/Comment/{FixedToolbar-compiled.d.ts → FixedToolbar.d.ts} +2 -2
  83. package/dist/types/ui/Appearance/Comment/{StickyToolbar-compiled.d.ts → StickyToolbar.d.ts} +2 -2
  84. package/dist/types/ui/Appearance/FullPage/FullPageEditorWrapper.d.ts +7 -0
  85. package/dist/types/ui/Appearance/FullPage/{MainToolbar-compiled.d.ts → MainToolbarWrappers.d.ts} +3 -3
  86. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed.d.ts +7 -0
  87. package/dist/types/ui/ContextPanel/{index-compiled.d.ts → ContextPanelWrappers.d.ts} +2 -2
  88. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +26 -4
  89. package/dist/types/ui/PluginSlot/PluginSlot.d.ts +6 -0
  90. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper.d.ts +11 -0
  91. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper.d.ts +11 -0
  92. package/dist/types/ui/WithFlash/{withFlash-compiled.d.ts → withFlash.d.ts} +1 -1
  93. package/package.json +5 -5
  94. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
  95. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -423
  96. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
  97. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -479
  98. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
  99. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -422
  100. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -6
  101. package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +0 -7
  102. package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -7
  103. package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -29
  104. package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
  105. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -11
  106. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -11
  107. /package/dist/cjs/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
  108. /package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
  109. /package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
  110. /package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
  111. /package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
  112. /package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
  113. /package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
  114. /package/dist/cjs/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
  115. /package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
  116. /package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
  117. /package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
  118. /package/dist/cjs/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
  119. /package/dist/es2019/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
  120. /package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
  121. /package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
  122. /package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
  123. /package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
  124. /package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
  125. /package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
  126. /package/dist/es2019/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
  127. /package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
  128. /package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
  129. /package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
  130. /package/dist/es2019/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
  131. /package/dist/esm/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
  132. /package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
  133. /package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
  134. /package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
  135. /package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
  136. /package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
  137. /package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
  138. /package/dist/esm/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
  139. /package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
  140. /package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
  141. /package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
  142. /package/dist/esm/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
@@ -1,422 +0,0 @@
1
- /* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import "./EditorContentContainer-compiled.compiled.css";
4
- import { ax, ix } from "@compiled/react/runtime";
5
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
- // oxlint-disable-next-line typescript-eslint/triple-slash-reference
8
- /// <reference path="../../types/compiled-shims.d.ts" />
9
-
10
- // Because we migrated with using cssMapScope API for non atomic css, so these atomic css related eslint suppression no longer needs to be fixed.
11
- /* eslint-disable @atlaskit/platform/use-motion-token-values, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/design-system/no-invalid-css-map, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/platform/expand-spacing-shorthand, @atlaskit/platform/expand-border-shorthand, @atlaskit/platform/expand-background-shorthand */
12
- import React from 'react';
13
- // eslint-disable-next-line import/order
14
- import { getBrowserInfo } from '@atlaskit/editor-common/browser';
15
-
16
- // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
17
- // TODO: add back tableSharedStyle when migrate table styles
18
- // import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
19
-
20
- import { tableCellBackgroundColorVariablesForCompiled } from '@atlaskit/editor-common/table-cell-background-for-compiled';
21
- import { akEditorFullPageDefaultFontSize, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles/constants';
22
- import { overflowShadowForCompiled } from '@atlaskit/editor-shared-styles/overflow-shadow-for-compiled';
23
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
24
- import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
25
- import { fg } from '@atlaskit/platform-feature-flags/fg';
26
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
27
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
28
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
29
- import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
30
- import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
31
-
32
- // = akEditorDefaultLayoutWidth * breakoutWideScaleRatio = 1010.8 ~ 1011 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is > 1329px.
33
- var akEditorCalculatedWideLayoutWidth = 1011;
34
- // from breakoutConsts.calcWideWidth, layoutMaxWidth * breakoutConsts.wideScaleRatio = 904.8 ~ 905 This is a resulting width value that is applied to nodes that currently use breakouts (except table) and are set to `wide` when the viewport's width is <= 1266px.
35
- var akEditorCalculatedWideLayoutWidthSmallViewport = 905;
36
- var akEditorGutterPadding = 32;
37
- var akEditorDefaultLayoutWidth = 760;
38
- var akEditorFullWidthLayoutWidth = 1800;
39
- var tableOverflowShadowWidthWide = 32;
40
- // The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
41
- var akEditorBreakpointForSmallDevice = "1266px";
42
- var akEditorGutterPaddingReduced = 24;
43
- var akEditorFullPageNarrowBreakout = 600;
44
- var akEditorUltraWideLayoutWidth = 4000;
45
- // Matches the legacy comment `less-margin` check: WidthProvider width (the editor's border box)
46
- // below akEditorMobileBreakoutPoint (720). This content area's content box is that width minus
47
- // the 2 x 1px editor border and 2 x 20px padding.
48
- var akEditorCommentLessMarginBreakout = 720 - 2 - 40;
49
- var commentLessMarginContainerQuery = "@container (width < ".concat(akEditorCommentLessMarginBreakout, "px)");
50
- // Layout responsiveness breakpoints — chosen to align editor layout responsiveness with the renderer.
51
- // Applied to the editor-area container query (max-width) for layout sections.
52
- var akEditorLayoutFullWidthBreakpoint = 724;
53
- var akEditorLayoutFixedWidthBreakpoint = 788;
54
- var akEditorLayoutResizedBreakpoint = 820;
55
-
56
- // Originally copied from packages/editor/editor-core/src/ui/Appearance/Comment/Comment.tsx
57
- var CommentEditorMargin = 14;
58
- var GRID_GUTTER = 12;
59
- var blockNodesVerticalMargin = '0.75rem';
60
- var fontSize14px = "".concat(14 / 16, "rem");
61
- var scaledBlockNodesVerticalMargin = '0.75em';
62
- // emoji constants — values inlined from packages/elements/emoji/src/util/constants.ts
63
- // If you need to update these values, please also update packages/elements/emoji/src/util/constants.ts
64
- var defaultEmojiHeight = 20;
65
- var defaultDenseEmojiHeight = 16.25;
66
- var scaledEmojiHeightH1 = 28;
67
- var scaledEmojiHeightH2 = 26;
68
- var scaledEmojiHeightH3 = 24;
69
- var scaledEmojiHeightH4 = 22;
70
- var denseEmojiHeightH1 = 24.25;
71
- var denseEmojiHeightH2 = 22.25;
72
- var denseEmojiHeightH3 = 20.25;
73
- var denseEmojiHeightH4 = 18.25;
74
- var emojiSelectionStyles = null;
75
- var gutterDangerOverlay = null;
76
- var blanketSelectionStyles = null;
77
- // copied from packages/editor/editor-shared-styles/src/consts/consts.ts
78
- var akEditorLineHeight = 1.714;
79
- var listsStylesSafariFixMultiSelector = "\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > p:first-child,\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > .code-block:first-child,\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > .ProseMirror-gapcursor:first-child + .code-block";
80
- var editorAreaNonSmallDeviceContainerQuery = "@container editor-area (width >= ".concat(akEditorBreakpointForSmallDevice, ")");
81
- var editorAreaNarrowPageContainerQuery = "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)");
82
- var editorAreaLayoutFullWidthMaxWidthContainerQuery = "@container editor-area (max-width: ".concat(akEditorLayoutFullWidthBreakpoint, "px)");
83
- var editorAreaLayoutFixedWidthMaxWidthContainerQuery = "@container editor-area (max-width: ".concat(akEditorLayoutFixedWidthBreakpoint, "px)");
84
- var editorAreaLayoutResizedMaxWidthContainerQuery = "@container editor-area (max-width: ".concat(akEditorLayoutResizedBreakpoint, "px)");
85
- var placeholderFadeInKeyframes = null;
86
- var fadeIn = null;
87
- var inlineStartShadow = null;
88
- var inlineEndShadow = null;
89
- var hideNativeBrowserTextSelectionStyles = null;
90
- var boxShadowSelectionStyles = null;
91
- var dangerBorderStyles = null;
92
- var backgroundSelectionStyles = null;
93
- var dangerBackgroundStyles = null;
94
- var mentionsSelectedColor = null;
95
- var fixVerticalAlignmentSelector = "\n\t&:first-of-type + ul,\n\t&:first-of-type + span + ul,\n\t&:first-of-type + ol,\n\t&:first-of-type + span + ol,\n\t&:first-of-type + pre,\n\t&:first-of-type + span + pre,\n\t&:first-of-type + blockquote,\n\t&:first-of-type + span + blockquote\n";
96
- var gapCursorTwoImagesSideBySideFixSelector = "\n .ProseMirror-gapcursor[layout=\"wrap-left\"] + span + [layout=\"wrap-left\"],\n .ProseMirror-gapcursor[layout=\"wrap-right\"] + span + [layout=\"wrap-right\"],\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + [layout=\"wrap-right\"],\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + [layout=\"wrap-right\"],\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + [layout=\"wrap-left\"],\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + [layout=\"wrap-left\"],\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"],\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + span [layout=\"wrap-right\"],\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"],\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-left\"],\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor";
97
- var gapCursorMarginFixSelector = "\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"] > div,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-right\"] > div,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"] > div,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-left\"] > div,\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + [layout=\"wrap-left\"] > div,\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + [layout=\"wrap-left\"] > div,\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + [layout=\"wrap-right\"] > div,\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + [layout=\"wrap-right\"] > div";
98
- var gapCursorFloatLeftFixSelector = "\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor";
99
- var gapCursorAfterPseudoSelector = "\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + [layout=\"wrap-right\"]::after,\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + [layout=\"wrap-left\"]::after,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"]::after,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-right\"]::after,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"]::after,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-left\"]::after";
100
- var gapCursorMarginDeepChildrenFixSelector = "\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"] + *,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"] + *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + *,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-right\"] + *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-left\"] + *,\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + [layout=\"wrap-right\"] + *,\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + [layout=\"wrap-left\"] + *,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"] + * > *,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + * > *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"] + * > *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + * > *,\n [layout=\"wrap-left\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-right\"] + * > *,\n [layout=\"wrap-right\"] + .ProseMirror-gapcursor + span + [layout=\"wrap-left\"] + * > *,\n .ProseMirror-gapcursor + [layout=\"wrap-left\"] + span + [layout=\"wrap-right\"] + * > *,\n .ProseMirror-gapcursor + [layout=\"wrap-right\"] + span + [layout=\"wrap-left\"] + * > *,\n .ProseMirror-widget:not([data-blocks-decoration-container=\"true\"]):not([data-blocks-drag-handle-container=\"true\"]):not([data-blocks-quick-insert-container=\"true\"]) + .ProseMirror-gapcursor + *,\n .ProseMirror-widget:not([data-blocks-decoration-container=\"true\"]):not([data-blocks-drag-handle-container=\"true\"]):not([data-blocks-quick-insert-container=\"true\"]) + .ProseMirror-gapcursor + span + *";
101
- var gapCursorBlink = null;
102
- var pulseIn = null;
103
- var pulseOut = null;
104
- var pulseInDuringTr = null;
105
- var pulseOutDuringTr = null;
106
-
107
- // Agent edit shimmer: skeleton-loader sweep across the agent-authored range.
108
- var agentShimmer = null;
109
-
110
- // Agent edit purple "just edited" highlight: eases the background and underline in, holds, then eases
111
- // them back out over the highlight's lifetime (duration set inline per-decoration to match removal).
112
- var agentEditHighlight = null;
113
- var syncBlockCreationLoadingKeyframes = null;
114
- var mentionRunShimmer = null;
115
-
116
- /**
117
- * aiPanelStyles
118
- * was imported from packages/editor/editor-core/src/ui/ContentStyles/ai-panels.ts
119
- */
120
- var rotationAnimation = null;
121
- var rotationAnimationFirefox = null;
122
-
123
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
124
- var prismBorderBaseBackgroundFirefox = "linear-gradient(90deg, #0065FF 0%, #0469FF 12%, #BF63F3 24%, #FFA900 48%, #BF63F3 64%, #0469FF 80%, #0065FF 100%)";
125
-
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
127
- var prismBorderBaseBackground = "conic-gradient(from var(--panel-gradient-angle, 270deg), #0065FF 0%, #0469FF 20%, #BF63F3 50%, #FFA900 56%, #0065FF 100%)";
128
-
129
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
130
- var prismBorderDarkBackgroundFirefox = "linear-gradient(90deg, #0065FF80 0%, #0469FF80 12%, #BF63F380 24%, #FFA90080 48%, #BF63F380 64%, #0469FF80 80%, #0065FF80 100%)";
131
-
132
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
133
- var prismBorderDarkBackground = "conic-gradient(from var(--panel-gradient-angle, 270deg), #0065FF80 0%, #0469FF80 20%, #BF63F380 50%, #FFA90080 56%, #0065FF80 100%)";
134
- var borderSelectionStyles = null;
135
- var overflowShadowStyles = null;
136
-
137
- /**
138
- * editorContentStyles contains the Compiled CSS styles migrated from EditorContentContainer/styles.
139
- * Validate style changes with local VR and integration tests.
140
- *
141
- * If you are not sure, please contact #proj-cc-editor-full-compiled-css-migration
142
- */
143
- // eslint-disable-next-line @atlaskit/design-system/no-css-map-scoped
144
- var editorContentStyles = {
145
- aiPanelBaseFirefoxStyles: "cc-b815do",
146
- aiPanelBaseStyles: "cc-1a1v2aa",
147
- aiPanelDarkFirefoxStyles: "cc-112vacu",
148
- aiPanelDarkStyles: "cc-kxreox",
149
- alignMultipleWrappedImageInLayoutStyles: "cc-suterj",
150
- annotationStyles: "cc-4utml7",
151
- backgroundColorStyles: "cc-1ncpj2p",
152
- highlightLinksUnsetStyles: "cc-vh4lfw",
153
- baseStyles: "cc-123pw0y",
154
- baseStylesMaxContainerWidthFixes: "cc-cgsb4r",
155
- blockMarksStyles: "cc-11zeupy",
156
- extensionWithBreakoutStyles: "cc-104fmpo",
157
- blockquoteDangerStyles: "cc-1w88a35",
158
- blockquoteSelectedNodeStyles: "cc-pt15wg",
159
- blocktypeStyles: "cc-2psl3e",
160
- headingScrollMarginStyles: "cc-g0pvon",
161
- blocktypeStylesRtlBlockquote: "cc-1aoan5v",
162
- blocktypeStylesNestedDnd: "cc-8b509b",
163
- blocktypeStyles_fg_platform_editor_typography_ugc: "cc-1na1fzg",
164
- codeBlockStyles: "cc-1l6yvlg",
165
- codeBlockStylesWithEmUnits: "cc-1agwr6s",
166
- codeMarkStyles: "cc-9o9ss2",
167
- commentEditorStyles: "cc-pk1css",
168
- commentLessMarginStyles: "cc-x35y7f",
169
- nonFullPageContainerTypeStyles: "cc-fsbph9",
170
- cursorStyles: "cc-1wz6obl",
171
- dangerDateStyles: "cc-1aoj0mo",
172
- dangerRuleStyles: "cc-5hyj3q",
173
- numberedHeadingsStyles: "cc-3ijkgm",
174
- ruleWithAttrsStyles: "cc-dgsww3",
175
- dateStyles: "cc-1mmt8n5",
176
- dateVanillaStyles: "cc-avdkma",
177
- decisionDangerStyles: "cc-ak695d",
178
- decisionIconWithVisualRefresh: "cc-9wx0ks",
179
- decisionStyles: "cc-k8dnnh",
180
- diffListStyles: "cc-gfdhbo",
181
- editorControlsSmartCardStyles: "cc-15b3poi",
182
- editorGutterPaddingBaseStyles: "cc-9fht47",
183
- editorLargeGutterPuddingReducedBaseStyles: "cc-thmreh",
184
- editorUGCTokensRefreshed: "cc-j6p7k2",
185
- editorUGCSmallText: "cc-1x753i0",
186
- embedCardStyles: "cc-epa0ej",
187
- emojiDangerStyles: "cc-30ls2d",
188
- emojiStyles: "cc-1c7fc54",
189
- emojiSelectionStyles: "cc-1w90uvx",
190
- directEmojiSelectionStyles: "cc-15yelzs",
191
- emojiDenseStyles: "cc-1d3vsly",
192
- expandStyles: "cc-ydjhnl",
193
- expandStylesBase: "cc-6vgdj1",
194
- expandStylesMixin_chromeless_expand_fix: "cc-1lto76z",
195
- expandStylesMixinNestedDnd: "cc-1qafbtm",
196
- expandStylesMixin_fg_platform_visual_refresh_icons: "cc-7u82l3",
197
- expandDenseStyles: "cc-feduil",
198
- extensionStyles: "cc-1hwpsn5",
199
- extensionStylesDense: "cc-1olibtl",
200
- extensionDiffStyles: "cc-1qnrjo9",
201
- bodiedExtensionLayoutShiftFix: "cc-5reyfb",
202
- findReplaceStyles: "cc-1v5rjql",
203
- findReplaceStylesWithCodeblockColorContrastFix: "cc-ynroem",
204
- findReplaceStylesWithRefSyncBlock: "cc-1m8det7",
205
- firstBlockNodeStyles: "cc-1jobn4s",
206
- firstNodeWidgetFixStyles: "cc-1pigoie",
207
- firstCodeBlockWithNoMargin: "cc-1c4x8a",
208
- firstFloatingToolbarButtonStyles: "cc-i97p01",
209
- firstWrappedMediaStyles: "cc-2ea62a",
210
- fontSizeStyles: "cc-mit9c1",
211
- fullPageEditorStyles: "cc-13nbxwv",
212
- gapCursorStyles: "cc-ly828t",
213
- gapCursorStylesVisibilityFix: "cc-1lytimn",
214
- gridStyles: "cc-wzj3lo",
215
- hideCursorWhenHideSelectionStyles: "cc-fb2yc7",
216
- scopedHideCursorStyles: "cc-u0ikvc",
217
- hideSelectionStyles: "cc-10c1807",
218
- scopedHideSelectionStyles: "cc-4ip0vr",
219
- hyperLinkFloatingToolbarStyles: "cc-z6qi82",
220
- indentationStyles: "cc-1soex6v",
221
- InlineNodeViewSharedStyles: "cc-oocuhh",
222
- layoutBaseStyles: "cc-vt5d4b",
223
- layoutBaseStylesAdvanced: "cc-nyj72m",
224
- layoutBaseStylesNestedDndExcludingBodiedSync: "cc-19l8fhf",
225
- layoutColumnDividerStyles: "cc-17tg3cb",
226
- layoutColumnDividerStylesNestedDnD: "cc-az4yk5",
227
- layoutColumnMartinTopFixes: "cc-17reocz",
228
- layoutColumnResizeStyles: "cc-sv7quj",
229
- layoutColumnResponsiveStyles: "cc-7xz0v3",
230
- layoutColumnStylesAdvanced: "cc-oj0dia",
231
- layoutColumnStylesNotAdvanced: "cc-hlcxvl",
232
- layoutResponsiveBaseStyles: "cc-1ubc444",
233
- layoutResponsiveStylesForView: "cc-1109zih",
234
- layoutDragHandleWrapperStylesLegacy: "cc-gizmrx",
235
- layoutDragHandleWrapperStylesTopLayer: "cc-94r9i3",
236
- layoutSectionStylesAdvanced: "cc-1fxar8a",
237
- layoutSectionStylesNotAdvanced: "cc-tbpbzb",
238
- layoutSelectedStylesAdvanced: "cc-186ms2c",
239
- layoutSelectedStylesAdvancedFix: "cc-25ti8u",
240
- layoutSelectedStylesForViewAdvanced: "cc-30cb8p",
241
- layoutSelectedStylesForViewNotAdvanced: "cc-s2vl1h",
242
- layoutSelectedStylesNotAdvanced: "cc-1u12zmq",
243
- layoutStylesForView: "cc-1ykh7ck",
244
- linkingVisualRefreshV1Styles: "cc-oybk1r",
245
- linkStyles: "cc-y4mgh1",
246
- listDangerStyles: "cc-r9og9u",
247
- listItemHiddenMarkerStyles: "cc-yovug7",
248
- listSelectedNodeStyles: "cc-16nbeqa",
249
- listSelectedNodeStylesWithHighlightInheritance: "cc-120a5u9",
250
- listsStyles: "cc-xwc364",
251
- listsStylesMarginLayoutShiftFix: "cc-rj5qxv",
252
- listsStylesSafariFix: "cc-1iqc8mu",
253
- listsDenseStyles: "cc-iu9h8q",
254
- maxModeReizeFixStyles: "cc-1uksm6h",
255
- mediaAlignmentStyles: "cc-6n0n2h",
256
- vanillaCaptionStyles: "cc-1vdr4vn",
257
- mediaCaptionStyles: "cc-17or0mw",
258
- mediaDangerStyles: "cc-9lr89g",
259
- mediaGroupStyles: "cc-pxnj3p",
260
- mediaStyles: "cc-1al43g7",
261
- mentionDangerStyles: "cc-t8jrt0",
262
- mentionAvatarNoWrapStyles: "cc-19m10zm",
263
- mentionNodeStyles: "cc-f3tkhc",
264
- agentMentionShimmerDarkMode: "cc-d99ako",
265
- mentionsSelectionStyles: "cc-18wl5mr",
266
- mentionsStyles: "cc-1rxkxid",
267
- nestedPanelBorderStylesMixin: "cc-q1df3a",
268
- nestedPanelDangerStyles: "cc-1l9jej1",
269
- panelStyles: "cc-zbi2y5",
270
- panelStylesMixin: "cc-h7dall",
271
- panelStylesMixinNestedDnd: "cc-1a6gjd",
272
- panelViewStyles: "cc-4fs4h7",
273
- paragraphStylesUGCRefreshed: "cc-cc1o06",
274
- paragraphStylesWithScaledMargin: "cc-9s11ni",
275
- placeholderOverflowStyles: "cc-j698ed",
276
- placeholderStyles: "cc-1g9vzfc",
277
- placeholderTextStyles: "cc-1om7jhv",
278
- pragmaticResizerStyles: "cc-lum87v",
279
- pragmaticResizerStylesCodeBlockSyncedBlockPatch: "cc-1tfwb0v",
280
- pragmaticResizerStylesForTooltip: "cc-mn5fyk",
281
- pragmaticResizerStylesSyncedBlock: "cc-kqyid",
282
- pragmaticResizerStylesWithReducedEditorGutter: "cc-1rmxv6a",
283
- pragmaticResizerStylesPanelAndRule: "cc-e2b324",
284
- pragmaticResizerStylesPanelAndRuleJsdomFix: "cc-1r1iai5",
285
- pragmaticResizerStylesExtensions: "cc-1qxwscr",
286
- pragmaticResizerStylesHiddenForPanelAndRule: "cc-np8b3p",
287
- pragmaticResizerStylesHiddenForExtensions: "cc-vc0o0p",
288
- pragmaticStylesLayoutFirstNodeResizeHandleFix: "cc-15hu28n",
289
- resizerStyles: "cc-zdnzj",
290
- resizerBottomHandleStyles: "cc-1nsisym",
291
- ruleStyles: "cc-184ku22",
292
- scaledEmojiStyles: "cc-ruh3pg",
293
- scaledEmojiDenseStyles: "cc-1tcigme",
294
- scrollbarStyles: "cc-13ipadj",
295
- selectedNodeStyles: "cc-xj7ujp",
296
- selectionToolbarAnimationStyles: "cc-1u1dmuf",
297
- shadowStyles: "cc-7ldcy",
298
- extensionScrollInlineShadowStyles: "cc-j1h4lx",
299
- showDiffDeletedNodeStyles: "cc-1cupvcw",
300
- smartCardDiffStyles: "cc-v28bhv",
301
- smartCardStylesWithSearchMatch: "cc-1v4mcpy",
302
- smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: "cc-1y0ifdm",
303
- smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness: "cc-1k9ikv5",
304
- smartLinksInLivePagesStyles: "cc-1xbql87",
305
- syncBlockFirstNodeStyles: "cc-948d37",
306
- syncBlockTextSelectionStyles: "cc-1rgu3l5",
307
- syncBlockInteractiveCursorStyles: "cc-54hos9",
308
- syncBlockOverflowStyles: "cc-7kpyvk",
309
- syncBlockStyles: "cc-d5z442",
310
- syncBlockSelectedStyles: "cc-1dv8jbi",
311
- syncBlockStylesBase: "cc-btp579",
312
- tableCellBackgroundColorOverrides: "cc-cvmfbc",
313
- tableCommentEditorStyles: "cc-qmh5x7",
314
- tableContainerStyles: "cc-1c98076",
315
- tableScrollInlineShadowStyles: "cc-1b7tx95",
316
- tableContentModeStyles: "cc-4d6xg1",
317
- tableContentModeExtensionContainmentStyles: "cc-1w5c7rs",
318
- tableContentModeNestedTableStyles: "cc-19w908l",
319
- tableEmptyRowStyles: "cc-1fi1exx",
320
- tableRoundedCornerStyles: "cc-1e2f7tx",
321
- tableLayoutFixes: "cc-wfosn0",
322
- tableLayoutFixesWithFontSize: "cc-q5xq8b",
323
- tableSharedStyle: "cc-ynug2a",
324
- tableSharedStyleBackgroundClipFix: "cc-pjwrbm",
325
- tableSharedStyle_with_platform_editor_table_q4_loveability: "cc-aatd3e",
326
- tableSharedStyle_without_platform_editor_table_q4_loveability: "cc-1ax02u7",
327
- tableSharedStyle_with_platform_editor_table_menu_updates: "cc-1m0i13l",
328
- tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table: "cc-tn0brk",
329
- taskItemCheckboxStyles: "cc-1jt3e2e",
330
- taskItemStylesWithBlockTaskItem: "cc-pfp415",
331
- tasksAndDecisionsStyles: "cc-e4e14o",
332
- tasksAndDecisionsDenseStyles: "cc-yceeaz",
333
- statusDangerStyles: "cc-ne538a",
334
- statusStyles: "cc-1ylkv5y",
335
- statusStylesMixin_fg_platform_component_visual_refresh_with_search_match: "cc-1ki047n",
336
- statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match: "cc-x6toxh",
337
- deletedStatusStrikeStyles: "cc-eie91o",
338
- atomicInlineChangedBoxShadowStyles: "cc-3nf4b",
339
- statusStylesTeam26: "cc-1szti83",
340
- statusStylesTeam26TextTrim: "cc-1wyoddi",
341
- statusStylesNamedSemantic: "cc-ba6gav",
342
- statusStylesNamedAccent: "cc-1gvo00o",
343
- statusStylesHexAccent: "cc-1ky6mbc",
344
- telepointerColorAndCommonStyle: "cc-1kvcl18",
345
- telepointerColorAndCommonStyleDarkMode: "cc-rm5obe",
346
- agentShimmerStyles: "cc-134apo0",
347
- telepointerStyle: "cc-1uxxkh5",
348
- textColorStyles: "cc-aj20c0",
349
- textDangerStyles: "cc-gju5dz",
350
- textHighlightPaddingStyles: "cc-yxkvom",
351
- textHighlightStyle: "cc-277qb",
352
- textSelectedNodeStyles: "cc-rrpz54",
353
- textSelectedNodeStylesWithHighlightInheritance: "cc-1q68dpi",
354
- unsupportedStyles: "cc-hnzg4x",
355
- vanillaTooltipDefaultStyles: "cc-s0u8xw",
356
- contributorTagStyles: "cc-1c4gda",
357
- vanillaUnsupportedStyles: "cc-1ysxql5",
358
- whitespaceStyles: "cc-14oigrh"
359
- };
360
- var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
361
- /**
362
- * EditorContentStyles is a wrapper component that applies styles to its children
363
- * based on the provided feature flags, view mode, and other props.
364
- * It uses Compiled for styling and supports scrollable content.
365
- *
366
- * This will be used in near future to replace the current editor content styles from index.tsx
367
- */
368
- export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(function (props, ref) {
369
- var className = props.className,
370
- children = props.children,
371
- viewMode = props.viewMode,
372
- isScrollable = props.isScrollable,
373
- appearance = props.appearance,
374
- contentMode = props.contentMode,
375
- useStandardNodeWidth = props.useStandardNodeWidth;
376
- var _useThemeObserver = useThemeObserver(),
377
- colorMode = _useThemeObserver.colorMode;
378
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || appearance === 'max';
379
- var isComment = appearance === 'comment';
380
- var isChromeless = appearance === 'chromeless';
381
- var baseFontSize = getBaseFontSize(appearance, contentMode);
382
- var isDense = !!baseFontSize && baseFontSize !== akEditorFullPageDefaultFontSize;
383
- var tableOverflowShadow = overflowShadowForCompiled({
384
- leftCoverWidth: "var(--ds-space-300, 24px)"
385
- });
386
-
387
- // Under the static-CSS experiment, --ak-editor-base-font-size is set earlier on the
388
- // root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
389
- // For the legacy font-size path, derive it from the editor theme.
390
- var style = React.useMemo(function () {
391
- return _objectSpread(_objectSpread({
392
- '--ak-editor--table-overflow-shadow': tableOverflowShadow
393
- }, tableCellBackgroundColorVariablesForCompiled), !editorExperiment('platform_editor_preview_panel_responsiveness', true, {
394
- exposure: true
395
- }) && {
396
- '--ak-editor--large-gutter-padding': "".concat(akEditorGutterPaddingDynamic(), "px")
397
- });
398
- }, [tableOverflowShadow]);
399
- var browser = getBrowserInfo();
400
- var isImproveInpEnabled = isExperimentEnabled('platform_editor_improve_inp');
401
- // Highlight inheritance shipped in Chromium 134. Keep explicit descendant rules for
402
- // other engines and older versions; supporting ::selection alone is not sufficient.
403
- var isSelectionHighlightInheritanceActive = browser.chrome_version >= 134 && isImproveInpEnabled;
404
- var isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
405
- var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
406
- var isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
407
- return /*#__PURE__*/React.createElement("div", {
408
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
409
- className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
410
- exposure: true
411
- }) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, isExperimentEnabled('platform_editor_reduce_forced_layout_2') && editorContentStyles.extensionScrollInlineShadowStyles, editorContentStyles.InlineNodeViewSharedStyles, isImproveInpEnabled ? editorContentStyles.scopedHideSelectionStyles : editorContentStyles.hideSelectionStyles, isImproveInpEnabled ? editorContentStyles.scopedHideCursorStyles : editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, isSelectionHighlightInheritanceActive ? editorContentStyles.listSelectedNodeStylesWithHighlightInheritance : editorContentStyles.listSelectedNodeStyles, isSelectionHighlightInheritanceActive ? editorContentStyles.textSelectedNodeStylesWithHighlightInheritance : editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, isExperimentEnabled('platform_editor_numbered_headings') && editorContentStyles.numberedHeadingsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
412
- editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, editorContentStyles.taskItemStylesWithBlockTaskItem, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isExperimentEnabled('platform_status_lozenge_fractional_zoom_fix') && editorContentStyles.statusStylesTeam26TextTrim, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesTopLayer, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, isExperimentEnabled('platform_editor_reduce_forced_layout') && !expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesHiddenForPanelAndRule, isExperimentEnabled('platform_editor_reduce_forced_layout') && !isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesHiddenForExtensions, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isComment && (fg('platform_editor_comment_margin_cq') || isExperimentEnabled('work_item_modernization')) && editorContentStyles.commentLessMarginStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, isExperimentEnabled('platform_editor_mention_avatar_nowrap') && editorContentStyles.mentionAvatarNoWrapStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.atomicInlineChangedBoxShadowStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, className || undefined]),
413
- ref: ref,
414
- "data-editor-scroll-container": isScrollable ? 'true' : undefined,
415
- "data-testid": "editor-content-container"
416
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
417
- ,
418
- style: style,
419
- tabIndex: isScrollable ? 0 : undefined,
420
- role: isScrollable ? 'region' : undefined
421
- }, children);
422
- });
@@ -1,6 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { HTMLAttributes } from 'react';
6
- export declare const ClickAreaBlockContainerCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- interface FullPageEditorWrapperProps {
2
- children: React.ReactNode;
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- export declare const FullPageEditorWrapperCompiled: React.ForwardRefExoticComponent<FullPageEditorWrapperProps & React.RefAttributes<HTMLDivElement>>;
7
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { InputHTMLAttributes } from 'react';
7
- export declare const ChromeCollapsedCompiled: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
@@ -1,29 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { EditorAppearance, EditorContentMode } from '@atlaskit/editor-common/types/editor-appearance';
7
- import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
8
- export type EditorContentContainerProps = {
9
- appearance?: EditorAppearance;
10
- children?: React.ReactNode;
11
- className?: string;
12
- contentMode?: EditorContentMode;
13
- featureFlags?: FeatureFlags;
14
- isScrollable?: boolean;
15
- /**
16
- * When true, nodes maintain their standard width without negative margins
17
- * For when the drag handle is visible and the editor has limited space.
18
- */
19
- useStandardNodeWidth?: boolean;
20
- viewMode?: 'view' | 'edit';
21
- };
22
- /**
23
- * EditorContentStyles is a wrapper component that applies styles to its children
24
- * based on the provided feature flags, view mode, and other props.
25
- * It uses Compiled for styling and supports scrollable content.
26
- *
27
- * This will be used in near future to replace the current editor content styles from index.tsx
28
- */
29
- export declare const EditorContentContainerCompiled: React.ForwardRefExoticComponent<EditorContentContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { HTMLAttributes } from 'react';
6
- export declare const PluginsComponentsWrapperCompiled: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
@@ -1,11 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ReactNode } from 'react';
6
- interface ToolbarComponentsWrapperCompiledProps {
7
- children?: ReactNode;
8
- 'data-vc'?: string;
9
- }
10
- export declare const ToolbarComponentsWrapperCompiled: ({ children, 'data-vc': dataVc, }: ToolbarComponentsWrapperCompiledProps) => JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { CSSProperties, ReactNode } from 'react';
6
- interface ToolbarSizeDetectorWrapperCompiledProps {
7
- children?: ReactNode;
8
- style?: CSSProperties;
9
- }
10
- export declare const ToolbarSizeDetectorWrapperCompiled: ({ children, style, }: ToolbarSizeDetectorWrapperCompiledProps) => JSX.Element;
11
- export {};