@atlaskit/editor-core 207.19.1 → 207.19.3

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 (119) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +5 -5
  3. package/dist/cjs/i18n/sk.js +2 -2
  4. package/dist/cjs/i18n/sr.js +19 -0
  5. package/dist/cjs/presets/default.js +5 -2
  6. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +182 -145
  7. package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +53 -0
  8. package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +32 -0
  9. package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +20 -0
  10. package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +352 -0
  11. package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +18 -0
  12. package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +20 -0
  13. package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
  14. package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
  15. package/dist/cjs/ui/EditorContentContainer/styles/link.js +25 -1
  16. package/dist/cjs/ui/EditorContentContainer/styles/list.js +11 -2
  17. package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +43 -2
  18. package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +9 -1
  19. package/dist/cjs/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +39 -1
  20. package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +35 -0
  21. package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +45 -1
  22. package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
  23. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +35 -0
  24. package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
  25. package/dist/cjs/ui/EditorContext/index.js +1 -8
  26. package/dist/cjs/version-wrapper.js +1 -1
  27. package/dist/es2019/create-editor/ReactEditorView.js +5 -5
  28. package/dist/es2019/i18n/sk.js +2 -2
  29. package/dist/es2019/i18n/sr.js +13 -0
  30. package/dist/es2019/presets/default.js +5 -2
  31. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +185 -409
  32. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +48 -0
  33. package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
  34. package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
  35. package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
  36. package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
  37. package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
  38. package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
  39. package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
  40. package/dist/es2019/ui/EditorContentContainer/styles/link.js +24 -0
  41. package/dist/es2019/ui/EditorContentContainer/styles/list.js +9 -0
  42. package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +41 -0
  43. package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +8 -0
  44. package/dist/es2019/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
  45. package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
  46. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
  47. package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +43 -40
  48. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +31 -0
  49. package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
  50. package/dist/es2019/ui/EditorContext/index.js +1 -8
  51. package/dist/es2019/version-wrapper.js +1 -1
  52. package/dist/esm/create-editor/ReactEditorView.js +5 -5
  53. package/dist/esm/i18n/sk.js +2 -2
  54. package/dist/esm/i18n/sr.js +13 -0
  55. package/dist/esm/presets/default.js +5 -2
  56. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +185 -150
  57. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +46 -0
  58. package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
  59. package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
  60. package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
  61. package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
  62. package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
  63. package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
  64. package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
  65. package/dist/esm/ui/EditorContentContainer/styles/link.js +24 -0
  66. package/dist/esm/ui/EditorContentContainer/styles/list.js +10 -1
  67. package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +42 -1
  68. package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +8 -0
  69. package/dist/esm/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
  70. package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
  71. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
  72. package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
  73. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +28 -0
  74. package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
  75. package/dist/esm/ui/EditorContext/index.js +1 -8
  76. package/dist/esm/version-wrapper.js +1 -1
  77. package/dist/types/create-editor/create-universal-preset.d.ts +12 -3
  78. package/dist/types/i18n/sr.d.ts +12 -0
  79. package/dist/types/presets/default.d.ts +1 -0
  80. package/dist/types/presets/universal.d.ts +18 -4
  81. package/dist/types/presets/useUniversalPreset.d.ts +12 -3
  82. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
  83. package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
  84. package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
  85. package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
  86. package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
  87. package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
  88. package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
  89. package/dist/types/ui/EditorContentContainer/styles/link.d.ts +2 -0
  90. package/dist/types/ui/EditorContentContainer/styles/list.d.ts +1 -0
  91. package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
  92. package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
  93. package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
  94. package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
  95. package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
  96. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
  97. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +14 -3
  98. package/dist/types-ts4.5/i18n/sr.d.ts +12 -0
  99. package/dist/types-ts4.5/presets/default.d.ts +1 -0
  100. package/dist/types-ts4.5/presets/universal.d.ts +20 -4
  101. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +14 -3
  102. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
  103. package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
  104. package/dist/types-ts4.5/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
  105. package/dist/types-ts4.5/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
  106. package/dist/types-ts4.5/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
  107. package/dist/types-ts4.5/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
  108. package/dist/types-ts4.5/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
  109. package/dist/types-ts4.5/ui/EditorContentContainer/styles/link.d.ts +2 -0
  110. package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +1 -0
  111. package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
  112. package/dist/types-ts4.5/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
  113. package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
  114. package/dist/types-ts4.5/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
  115. package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
  116. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
  117. package/package.json +3 -15
  118. package/dist/types/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
  119. package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
@@ -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.mediaStyles = void 0;
7
+ exports.mediaStyles = exports.mediaGroupStyles = exports.mediaAlignmentStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _mediaInline = require("@atlaskit/editor-common/media-inline");
@@ -227,4 +227,45 @@ var mediaStyles = exports.mediaStyles = (0, _react.css)((_css = {
227
227
  boxShadow: _editorSharedStyles.akEditorSelectedBoxShadow
228
228
  }), '.ak-editor-no-interaction #newFileExperienceWrapper', {
229
229
  boxShadow: 'none'
230
- })));
230
+ })));
231
+
232
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
233
+ var mediaGroupStyles = exports.mediaGroupStyles = (0, _react.css)({
234
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
235
+ '.mediaGroupView-content-wrap ul': {
236
+ padding: 0
237
+ }
238
+ });
239
+
240
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
241
+ var mediaAlignmentStyles = exports.mediaAlignmentStyles = (0, _react.css)({
242
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
243
+ '.fabric-editor-block-mark[class^="fabric-editor-align"]': {
244
+ // It was `clear: none !important` before, but it was causing typescript errors
245
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
246
+ clear: 'none'
247
+ },
248
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
249
+ '.fabric-editor-align-end': {
250
+ textAlign: 'right'
251
+ },
252
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
253
+ '.fabric-editor-align-start': {
254
+ textAlign: 'left'
255
+ },
256
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
257
+ '.fabric-editor-align-center': {
258
+ textAlign: 'center'
259
+ },
260
+ // For FullPage only when inside a table
261
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
262
+ '.fabric-editor--full-width-mode': {
263
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
264
+ '.pm-table-container': {
265
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
266
+ '.code-block, .extension-container, .multiBodiedExtension--container': {
267
+ maxWidth: '100%'
268
+ }
269
+ }
270
+ }
271
+ });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes = exports.panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_add_border_for_nested_panel = exports.panelStyles = void 0;
6
+ exports.panelViewStyles = exports.panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes = exports.panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_add_border_for_nested_panel = exports.panelStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
9
 
@@ -346,4 +346,12 @@ var panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = expo
346
346
  }
347
347
  }
348
348
  }
349
+ });
350
+
351
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
352
+ var panelViewStyles = exports.panelViewStyles = (0, _react.css)({
353
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
354
+ '.panelView-content-wrap': {
355
+ boxSizing: 'border-box'
356
+ }
349
357
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.placeholderTextStyles = void 0;
6
+ exports.placeholderWrapStyles = exports.placeholderTextStyles = exports.placeholderStyles = exports.placeholderOverflowStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
9
 
@@ -69,4 +69,42 @@ var placeholderTextStyles = exports.placeholderTextStyles = (0, _react.css)({
69
69
  backgroundColor: "var(--ds-background-selected, #B3D4FF)"
70
70
  }
71
71
  }
72
+ });
73
+
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
75
+ var placeholderStyles = exports.placeholderStyles = (0, _react.css)({
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
77
+ '.ProseMirror .placeholder-decoration': {
78
+ color: "var(--ds-text-subtlest, #626F86)",
79
+ width: '100%',
80
+ pointerEvents: 'none',
81
+ userSelect: 'none',
82
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
83
+ '.placeholder-android': {
84
+ pointerEvents: 'none',
85
+ outline: 'none',
86
+ userSelect: 'none',
87
+ position: 'absolute'
88
+ }
89
+ }
90
+ });
91
+
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
93
+ var placeholderOverflowStyles = exports.placeholderOverflowStyles = (0, _react.css)({
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
95
+ '.ProseMirror p:has(.placeholder-decoration-hide-overflow)': {
96
+ overflow: 'hidden',
97
+ whiteSpace: 'nowrap',
98
+ textOverflow: 'ellipsis'
99
+ }
100
+ });
101
+
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
103
+ var placeholderWrapStyles = exports.placeholderWrapStyles = (0, _react.css)({
104
+ // As part of controls work, we add placeholder `Search` to quick insert command
105
+ // This style is to prevent `/Search` being wrapped if it's triggered at the end of the line
106
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
107
+ '.ProseMirror mark[data-type-ahead-query="true"]:has(.placeholder-decoration-wrap)': {
108
+ whiteSpace: 'nowrap'
109
+ }
72
110
  });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.scrollbarStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
11
+ var scrollbarStyles = exports.scrollbarStyles = (0, _react.css)({
12
+ '-ms-overflow-style': '-ms-autohiding-scrollbar',
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
14
+ '&::-webkit-scrollbar': {
15
+ overflow: 'hidden'
16
+ },
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
18
+ '&::-webkit-scrollbar-corner': {
19
+ display: 'none'
20
+ },
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
22
+ '&::-webkit-scrollbar-thumb': {
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
24
+ backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
25
+ },
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
27
+ '&:hover::-webkit-scrollbar-thumb': {
28
+ backgroundColor: "var(--ds-background-neutral-bold, #44546F)",
29
+ borderRadius: 8
30
+ },
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
32
+ '&::-webkit-scrollbar-thumb:hover': {
33
+ backgroundColor: "var(--ds-background-neutral-bold-hovered, #2C3E5D)"
34
+ }
35
+ });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.hideNativeBrowserTextSelectionStyles = exports.boxShadowSelectionStyles = exports.borderSelectionStyles = exports.blanketSelectionStyles = exports.backgroundSelectionStyles = void 0;
6
+ exports.selectedNodeStyles = exports.hideSelectionStyles = exports.hideNativeBrowserTextSelectionStyles = exports.hideCursorWhenHideSelectionStyles = exports.boxShadowSelectionStyles = exports.borderSelectionStyles = exports.blanketSelectionStyles = exports.backgroundSelectionStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
9
9
 
@@ -75,4 +75,48 @@ var blanketSelectionStyles = exports.blanketSelectionStyles = (0, _react.css)({
75
75
  zIndex: 12,
76
76
  backgroundColor: "var(--ds-blanket-selected, #388BFF14)"
77
77
  }
78
+ });
79
+
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
81
+ var hideSelectionStyles = exports.hideSelectionStyles = (0, _react.css)({
82
+ // Hide selection styles for ProseMirror editor
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
84
+ '.ProseMirror-hideselection': {
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
86
+ '*::selection': {
87
+ background: 'transparent'
88
+ },
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
90
+ '*::-moz-selection': {
91
+ background: 'transparent'
92
+ }
93
+ }
94
+ });
95
+
96
+ /**
97
+ * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
98
+ *
99
+ * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
100
+ * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
101
+ * https://product-fabric.atlassian.net/browse/ED-26331
102
+ */
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
104
+ var hideCursorWhenHideSelectionStyles = exports.hideCursorWhenHideSelectionStyles = (0, _react.css)({
105
+ // Hide cursor when hide selection styles are applied
106
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
107
+ '.ProseMirror-hideselection': {
108
+ caretColor: 'transparent'
109
+ }
110
+ });
111
+
112
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
113
+ var selectedNodeStyles = exports.selectedNodeStyles = (0, _react.css)({
114
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
115
+ '.ProseMirror-selectednode': {
116
+ outline: 'none'
117
+ },
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
119
+ '.ProseMirror-selectednode:empty': {
120
+ outline: "2px solid ".concat("var(--ds-border-focused, #388BFF)")
121
+ }
78
122
  });
@@ -20,33 +20,36 @@ var shadowObserverClassNames = exports.shadowObserverClassNames = {
20
20
  };
21
21
 
22
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
23
- var shadowStyles = exports.shadowStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
24
- display: 'none',
25
- position: 'absolute',
26
- pointerEvents: 'none',
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
- zIndex: 2,
29
- width: 8,
30
- content: "''",
31
- height: 'calc(100%)'
32
- }), "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
33
- position: 'relative'
34
- }), "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
35
- background: "linear-gradient(to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
36
- top: 0,
37
- left: 0,
38
- display: 'block'
39
- }), "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
40
- background: "linear-gradient(to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
41
- right: 0,
42
- top: 0,
43
- display: 'block'
44
- }), "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
45
- height: '100%',
46
- width: 0,
47
- minWidth: 0
48
- }), "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
49
- height: '100%',
50
- width: 0,
51
- minWidth: 0
52
- }));
23
+ var shadowStyles = exports.shadowStyles = (0, _react.css)({
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
25
+ '.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
26
+ display: 'none',
27
+ position: 'absolute',
28
+ pointerEvents: 'none',
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
+ zIndex: 2,
31
+ width: 8,
32
+ content: "''",
33
+ height: 'calc(100%)'
34
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
35
+ position: 'relative'
36
+ }), "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
37
+ background: "linear-gradient(to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
38
+ top: 0,
39
+ left: 0,
40
+ display: 'block'
41
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
42
+ background: "linear-gradient(to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
43
+ right: 0,
44
+ top: 0,
45
+ display: 'block'
46
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
47
+ height: '100%',
48
+ width: 0,
49
+ minWidth: 0
50
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
51
+ height: '100%',
52
+ width: 0,
53
+ minWidth: 0
54
+ })
55
+ });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.tableLayoutFixes = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = require("@emotion/react");
10
+ var _scrollbarStyles = require("./scrollbarStyles");
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
14
+ var tableLayoutFixes = exports.tableLayoutFixes = (0, _react.css)({
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
16
+ '.pm-table-header-content-wrap :not(.fabric-editor-alignment), .pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark, .pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark': {
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
18
+ 'p:first-of-type': {
19
+ marginTop: 0
20
+ }
21
+ },
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
23
+ '.pm-table-cell-content-wrap .mediaGroupView-content-wrap': {
24
+ clear: 'both'
25
+ }
26
+ });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
29
+ var tableCommentEditorMarginOverride = exports.tableCommentEditorMarginOverride = (0, _react.css)({
30
+ marginLeft: 0,
31
+ marginRight: 0
32
+ });
33
+
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
35
+ var tableCommentEditorStyles = exports.tableCommentEditorStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror .pm-table-wrapper > table", [tableCommentEditorMarginOverride, _scrollbarStyles.scrollbarStyles]));
@@ -9,6 +9,9 @@ var _react = require("@emotion/react");
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
11
11
  var whitespaceStyles = exports.whitespaceStyles = (0, _react.css)({
12
- wordWrap: 'break-word',
13
- whiteSpace: 'pre-wrap'
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
13
+ '.ProseMirror': {
14
+ wordWrap: 'break-word',
15
+ whiteSpace: 'pre-wrap'
16
+ }
14
17
  });
@@ -14,7 +14,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
16
  var _UNSAFE_do_not_use_editor_context = require("@atlaskit/editor-common/UNSAFE_do_not_use_editor_context");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _actions = _interopRequireDefault(require("../../actions"));
19
18
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
19
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -33,15 +32,9 @@ var LegacyEditorContext = exports.LegacyEditorContext = /*#__PURE__*/function (_
33
32
  return (0, _createClass2.default)(LegacyEditorContext, [{
34
33
  key: "render",
35
34
  value: function render() {
36
- if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2') || (0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2_extended')) {
37
- // Ignored via go/ees005
38
- // eslint-disable-next-line react/jsx-props-no-spreading
39
- return /*#__PURE__*/_react.default.createElement(LegacyEditorContextNew, this.props, this.props.children);
40
- }
41
-
42
35
  // Ignored via go/ees005
43
36
  // eslint-disable-next-line react/jsx-props-no-spreading
44
- return /*#__PURE__*/_react.default.createElement(LegacyEditorContextOld, this.props, this.props.children);
37
+ return /*#__PURE__*/_react.default.createElement(LegacyEditorContextNew, this.props, this.props.children);
45
38
  }
46
39
  }]);
47
40
  }(_react.default.Component);
@@ -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 = "207.19.1";
8
+ var version = exports.version = "207.19.3";
@@ -450,13 +450,13 @@ export function ReactEditorView(props) {
450
450
  if (shouldFocus && editorView !== null && editorView !== void 0 && (_editorView$props$edi = (_editorView$props = editorView.props).editable) !== null && _editorView$props$edi !== void 0 && _editorView$props$edi.call(_editorView$props, editorView.state) && fg('platform_editor_react_18_autofocus_fix')) {
451
451
  if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
452
452
  if (!mitigateScrollJump) {
453
- const liveDocWithContent = __livePage && !isEmptyDocument(editorView.state.doc);
453
+ const liveDocWithContent = (__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && !isEmptyDocument(editorView.state.doc);
454
454
  if (!liveDocWithContent || !fg('platform_editor_no_cursor_on_live_doc_init')) {
455
455
  focusTimeoutId.current = handleEditorFocus(editorView);
456
456
  }
457
457
  }
458
458
  } else {
459
- const liveDocWithContent = __livePage && !isEmptyDocument(editorView.state.doc);
459
+ const liveDocWithContent = (__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && !isEmptyDocument(editorView.state.doc);
460
460
  if (!liveDocWithContent || !fg('platform_editor_no_cursor_on_live_doc_init')) {
461
461
  focusTimeoutId.current = handleEditorFocus(editorView);
462
462
  }
@@ -503,13 +503,13 @@ export function ReactEditorView(props) {
503
503
  if (shouldFocus && view.props.editable && view.props.editable(view.state)) {
504
504
  if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
505
505
  if (!mitigateScrollJump) {
506
- const isLivePageWithContent = __livePage && !isEmptyDocument(view.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
506
+ const isLivePageWithContent = (__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && !isEmptyDocument(view.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
507
507
  if (!isLivePageWithContent && shouldFocus && view.props.editable && view.props.editable(view.state)) {
508
508
  focusTimeoutId.current = handleEditorFocus(view);
509
509
  }
510
510
  }
511
511
  } else {
512
- const isLivePageWithContent = __livePage && !isEmptyDocument(view.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
512
+ const isLivePageWithContent = (__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && !isEmptyDocument(view.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
513
513
  if (!isLivePageWithContent && shouldFocus && view.props.editable && view.props.editable(view.state)) {
514
514
  focusTimeoutId.current = handleEditorFocus(view);
515
515
  }
@@ -578,7 +578,7 @@ export function ReactEditorView(props) {
578
578
  viewRef.current.setProps({
579
579
  editable: _state => !disabled
580
580
  });
581
- const isLivePageWithContent = __livePage && !isEmptyDocument(viewRef.current.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
581
+ const isLivePageWithContent = (__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && !isEmptyDocument(viewRef.current.state.doc) && fg('platform_editor_no_cursor_on_live_doc_init');
582
582
  if (!disabled && shouldFocus && !isLivePageWithContent) {
583
583
  focusTimeoutId.current = handleEditorFocus(viewRef.current);
584
584
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  //Slovak
9
9
  export default {
10
- 'fabric.editor.chromeCollapsedPlaceholder': 'None',
10
+ 'fabric.editor.chromeCollapsedPlaceholder': 'Napíšte niečo…',
11
11
  'fabric.editor.editorAssistiveLabel': 'Hlavná oblasť obsahu, sem začnite zadávať text.',
12
- 'fabric.editor.headingLink.toolbarHelpTitle': 'None'
12
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'Otvoriť dialógové okno pomoci'
13
13
  };
@@ -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 (Serbia) [sr-RS]
9
+ export default {
10
+ 'fabric.editor.chromeCollapsedPlaceholder': 'Unesite tekst…',
11
+ 'fabric.editor.editorAssistiveLabel': 'Glavna oblast za sadržaj, počnite da unosite tekst.',
12
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'Otvori dijalog pomoći'
13
+ };
@@ -32,6 +32,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
32
32
  import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
33
33
  import { widthPlugin } from '@atlaskit/editor-plugins/width';
34
34
  import { fg } from '@atlaskit/platform-feature-flags';
35
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
35
36
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
36
37
 
37
38
  // #endregion
@@ -51,7 +52,7 @@ export function createDefaultPreset(options) {
51
52
  }], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, {
52
53
  ...(options === null || options === void 0 ? void 0 : options.paste),
53
54
  isFullPage
54
- }]).add(clipboardPlugin).add(focusPlugin).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) && fg('platform_editor_no_cursor_on_live_doc_init')).add(compositionPlugin).add([contextIdentifierPlugin, {
55
+ }]).add(clipboardPlugin).add(focusPlugin).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) ? fg('platform_editor_no_cursor_on_live_doc_init') : expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(compositionPlugin).add([contextIdentifierPlugin, {
55
56
  contextIdentifierProvider: options.contextIdentifierProvider
56
57
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add([primaryToolbarPlugin, {
57
58
  contextualFormattingEnabled: isFullPage
@@ -65,7 +66,9 @@ export function createDefaultPreset(options) {
65
66
  ...options.hyperlinkOptions,
66
67
  // @ts-ignore Temporary solution to check for Live Page editor.
67
68
  __livePage: options.__livePage
68
- }]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
69
+ }]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add([editorDisabledPlugin, {
70
+ initialDisabledState: options.disabled
71
+ }]).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
69
72
  ...options.selection,
70
73
  __livePage: options.__livePage
71
74
  }]).add([codeBlockPlugin, options.codeBlock]);