@atlaskit/editor-core 214.2.4 → 215.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +38 -2
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +10 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +0 -8
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +40 -3
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +9 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +0 -8
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +39 -3
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +9 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
- package/package.json +9 -3
- package/create-editor-content-style/package.json +0 -17
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +0 -43
- package/dist/cjs/ui/ContentStyles/ai-panels.js +0 -91
- package/dist/cjs/ui/ContentStyles/code-bidi-warning.js +0 -75
- package/dist/cjs/ui/ContentStyles/code-block.js +0 -28
- package/dist/cjs/ui/ContentStyles/date.js +0 -43
- package/dist/cjs/ui/ContentStyles/expand.js +0 -37
- package/dist/cjs/ui/ContentStyles/extension.js +0 -21
- package/dist/cjs/ui/ContentStyles/index.js +0 -220
- package/dist/cjs/ui/ContentStyles/layout.js +0 -80
- package/dist/cjs/ui/ContentStyles/media.js +0 -27
- package/dist/cjs/ui/ContentStyles/panel.js +0 -17
- package/dist/cjs/ui/ContentStyles/status.js +0 -158
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +0 -556
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +0 -47
- package/dist/es2019/ui/ContentStyles/ai-panels.js +0 -168
- package/dist/es2019/ui/ContentStyles/code-bidi-warning.js +0 -68
- package/dist/es2019/ui/ContentStyles/code-block.js +0 -90
- package/dist/es2019/ui/ContentStyles/date.js +0 -57
- package/dist/es2019/ui/ContentStyles/expand.js +0 -142
- package/dist/es2019/ui/ContentStyles/extension.js +0 -236
- package/dist/es2019/ui/ContentStyles/index.js +0 -580
- package/dist/es2019/ui/ContentStyles/layout.js +0 -388
- package/dist/es2019/ui/ContentStyles/media.js +0 -207
- package/dist/es2019/ui/ContentStyles/panel.js +0 -66
- package/dist/es2019/ui/ContentStyles/status.js +0 -197
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +0 -551
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +0 -36
- package/dist/esm/ui/ContentStyles/ai-panels.js +0 -87
- package/dist/esm/ui/ContentStyles/code-bidi-warning.js +0 -68
- package/dist/esm/ui/ContentStyles/code-block.js +0 -21
- package/dist/esm/ui/ContentStyles/date.js +0 -37
- package/dist/esm/ui/ContentStyles/expand.js +0 -31
- package/dist/esm/ui/ContentStyles/extension.js +0 -15
- package/dist/esm/ui/ContentStyles/index.js +0 -214
- package/dist/esm/ui/ContentStyles/layout.js +0 -74
- package/dist/esm/ui/ContentStyles/media.js +0 -21
- package/dist/esm/ui/ContentStyles/panel.js +0 -11
- package/dist/esm/ui/ContentStyles/status.js +0 -152
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +0 -548
- package/dist/types/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
- package/dist/types/ui/ContentStyles/ai-panels.d.ts +0 -8
- package/dist/types/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
- package/dist/types/ui/ContentStyles/code-block.d.ts +0 -2
- package/dist/types/ui/ContentStyles/date.d.ts +0 -3
- package/dist/types/ui/ContentStyles/expand.d.ts +0 -2
- package/dist/types/ui/ContentStyles/extension.d.ts +0 -2
- package/dist/types/ui/ContentStyles/index.d.ts +0 -23
- package/dist/types/ui/ContentStyles/layout.d.ts +0 -8
- package/dist/types/ui/ContentStyles/media.d.ts +0 -2
- package/dist/types/ui/ContentStyles/panel.d.ts +0 -2
- package/dist/types/ui/ContentStyles/status.d.ts +0 -3
- package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +0 -6
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +0 -8
- package/dist/types-ts4.5/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/code-block.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +0 -3
- package/dist/types-ts4.5/ui/ContentStyles/expand.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/extension.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +0 -8
- package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +0 -3
- package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`be54c7e850cd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be54c7e850cd3) -
|
|
8
|
+
remove deprecated legacy content styles for editor
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`925eb6478e9a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/925eb6478e9a5) -
|
|
13
|
+
Remove overflowY on tables to prevent Y axis scroll bar showing on Windows.
|
|
14
|
+
- [`30bb04cd8a8e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30bb04cd8a8e9) -
|
|
15
|
+
[ux] [ED-29292] Fix 2 issues with wrapped images in editor and renderer
|
|
16
|
+
|
|
17
|
+
1. There is a gap between the first and the second wrapped images
|
|
18
|
+
2. For wrapped images in layout, if image is the first node, it not horizontally aligned with the
|
|
19
|
+
following wrapped images
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 214.2.4
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -64,12 +64,6 @@ Object.defineProperty(exports, "WithHelpTrigger", {
|
|
|
64
64
|
return _WithHelpTrigger.default;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
Object.defineProperty(exports, "createEditorContentStyle", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function get() {
|
|
70
|
-
return _ContentStyles.createEditorContentStyle;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
67
|
Object.defineProperty(exports, "createFeatureFlagsFromProps", {
|
|
74
68
|
enumerable: true,
|
|
75
69
|
get: function get() {
|
|
@@ -125,6 +119,5 @@ var _getNodesCount = require("./utils/getNodesCount");
|
|
|
125
119
|
var _measureEnum = _interopRequireDefault(require("./utils/performance/measure-enum"));
|
|
126
120
|
var _featureFlagsFromProps = require("./utils/feature-flags-from-props");
|
|
127
121
|
var _actions = _interopRequireDefault(require("./actions"));
|
|
128
|
-
var _ContentStyles = require("./ui/ContentStyles");
|
|
129
122
|
var _createPluginsList = require("./create-editor/create-plugins-list");
|
|
130
123
|
var _ReactEditorView = require("./create-editor/ReactEditorView");
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _react2 = require("@emotion/react");
|
|
10
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
12
|
+
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -74,6 +76,34 @@ var _whitespaceStyles = require("./styles/whitespaceStyles");
|
|
|
74
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
75
77
|
|
|
76
78
|
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
79
|
+
var alignMultipleWrappedImageInLayoutStyles = {
|
|
80
|
+
'.ProseMirror [data-layout-section] [data-layout-column] > div': {
|
|
81
|
+
// apply marginTop to wrapped mediaSingle that has preceding wrapped mediaSingle (even when there's gap cursor in between them)
|
|
82
|
+
// Given the first wrapped mediaSingle in layout has 0 marginTop, this is needed to make sure fellow wrapped mediaSingle align with it horizontally
|
|
83
|
+
'.mediaSingleView-content-wrap[layout^=wrap] + .mediaSingleView-content-wrap[layout^=wrap], .mediaSingleView-content-wrap[layout^=wrap] + .ProseMirror-gapcursor + .mediaSingleView-content-wrap[layout^=wrap]': {
|
|
84
|
+
'.rich-media-item': {
|
|
85
|
+
marginTop: 0
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
// Due to the above rule, wrapped mediaSingle (not the first node in layout) that are followed by wrapped mediaSingle should also have 0 marginTop
|
|
89
|
+
// so it's aligned with the following wrapped mediaSingle
|
|
90
|
+
'.mediaSingleView-content-wrap[layout^=wrap]:has( + .mediaSingleView-content-wrap[layout^=wrap])': {
|
|
91
|
+
'.rich-media-item': {
|
|
92
|
+
marginTop: 0
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
var firstWrappedMediaStyles = {
|
|
98
|
+
'.ProseMirror': {
|
|
99
|
+
// Remove gap between first wrapped mediaSingle and its fellow wrapped mediaSingle
|
|
100
|
+
"& [layout^='wrap-']:has(+ [layout^='wrap-']), & [layout^='wrap-']:has(+ .ProseMirror-gapcursor + [layout^='wrap-'])": (0, _defineProperty2.default)({}, "& .".concat(_styles.richMediaClassName), {
|
|
101
|
+
marginLeft: 0,
|
|
102
|
+
marginRight: 0
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
77
107
|
/**
|
|
78
108
|
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
79
109
|
* based on the provided feature flags, view mode, and other props.
|
|
@@ -183,6 +213,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
183
213
|
_rule.ruleStyles,
|
|
184
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
185
215
|
_mediaStyles.mediaStyles,
|
|
216
|
+
// merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
|
|
217
|
+
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
|
|
186
218
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
187
219
|
_telepointerStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
188
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -264,7 +296,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
264
296
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
265
297
|
_resizerStyles.resizerStyles,
|
|
266
298
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
267
|
-
_layout.layoutBaseStyles,
|
|
299
|
+
_layout.layoutBaseStyles,
|
|
300
|
+
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
301
|
+
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_synced_block', 'isEnabled', true) &&
|
|
268
302
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
269
303
|
_syncBlockStyles.syncBlockStyles,
|
|
270
304
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -366,10 +400,12 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
366
400
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
367
401
|
_mediaStyles.mediaAlignmentStyles,
|
|
368
402
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
369
|
-
_tableStyles.tableLayoutFixes,
|
|
403
|
+
_tableStyles.tableLayoutFixes,
|
|
370
404
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
371
405
|
_tableStyles.tableContainerStyles,
|
|
372
406
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
407
|
+
!(0, _platformFeatureFlags.fg)('platform_editor_table_container_y_overflow_fix') && _tableStyles.tableContainerOverflowY,
|
|
408
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
373
409
|
_link.hyperLinkFloatingToolbarStyles,
|
|
374
410
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
375
411
|
!(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _link.linkLegacyIconStylesFix,
|
|
@@ -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.tableLayoutFixes = exports.tableContainerStyles = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
|
|
7
|
+
exports.tableLayoutFixes = exports.tableContainerStyles = exports.tableContainerOverflowY = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _scrollbarStyles = require("./scrollbarStyles");
|
|
@@ -41,7 +41,6 @@ var tableContainerStyles = exports.tableContainerStyles = (0, _react.css)({
|
|
|
41
41
|
'.ProseMirror .pm-table-wrapper': {
|
|
42
42
|
maxWidth: '100%',
|
|
43
43
|
overflowX: 'auto',
|
|
44
|
-
overflowY: 'visible',
|
|
45
44
|
// Ensure the wrapper doesn't grow beyond its container
|
|
46
45
|
width: '100%',
|
|
47
46
|
boxSizing: 'border-box'
|
|
@@ -55,4 +54,13 @@ var tableContainerStyles = exports.tableContainerStyles = (0, _react.css)({
|
|
|
55
54
|
// Ensure tables can be scrolled horizontally if needed
|
|
56
55
|
minWidth: 'auto'
|
|
57
56
|
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
60
|
+
var tableContainerOverflowY = exports.tableContainerOverflowY = (0, _react.css)({
|
|
61
|
+
/* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
+
'.ProseMirror .pm-table-wrapper': {
|
|
64
|
+
overflowY: 'visible'
|
|
65
|
+
}
|
|
58
66
|
});
|
package/dist/es2019/index.js
CHANGED
|
@@ -36,13 +36,5 @@ export { getNodesCount } from './utils/getNodesCount';
|
|
|
36
36
|
export { default as measurements } from './utils/performance/measure-enum';
|
|
37
37
|
export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
|
|
38
38
|
export { default as EditorActions } from './actions';
|
|
39
|
-
export {
|
|
40
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
44
|
-
* use this instead: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
|
|
45
|
-
*/
|
|
46
|
-
createEditorContentStyle } from './ui/ContentStyles';
|
|
47
39
|
export { getDefaultPresetOptionsFromEditorProps } from './create-editor/create-plugins-list';
|
|
48
40
|
export { ReactEditorView } from './create-editor/ReactEditorView';
|
|
@@ -9,6 +9,7 @@ import React from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx, useTheme } from '@emotion/react';
|
|
11
11
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
12
|
+
import { richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
12
13
|
import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
13
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -58,7 +59,7 @@ import { shadowStyles } from './styles/shadowStyles';
|
|
|
58
59
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
59
60
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
60
61
|
import { syncBlockStyles } from './styles/syncBlockStyles';
|
|
61
|
-
import { tableCommentEditorStyles, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
62
|
+
import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
62
63
|
import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem, decisionDangerStyles } from './styles/tasksAndDecisionsStyles';
|
|
63
64
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
64
65
|
import { textColorStyles } from './styles/textColorStyles';
|
|
@@ -66,6 +67,36 @@ import { textHighlightStyle } from './styles/textHighlightStyles';
|
|
|
66
67
|
import { unsupportedStyles } from './styles/unsupportedStyles';
|
|
67
68
|
import { whitespaceStyles } from './styles/whitespaceStyles';
|
|
68
69
|
const isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
70
|
+
const alignMultipleWrappedImageInLayoutStyles = {
|
|
71
|
+
'.ProseMirror [data-layout-section] [data-layout-column] > div': {
|
|
72
|
+
// apply marginTop to wrapped mediaSingle that has preceding wrapped mediaSingle (even when there's gap cursor in between them)
|
|
73
|
+
// Given the first wrapped mediaSingle in layout has 0 marginTop, this is needed to make sure fellow wrapped mediaSingle align with it horizontally
|
|
74
|
+
'.mediaSingleView-content-wrap[layout^=wrap] + .mediaSingleView-content-wrap[layout^=wrap], .mediaSingleView-content-wrap[layout^=wrap] + .ProseMirror-gapcursor + .mediaSingleView-content-wrap[layout^=wrap]': {
|
|
75
|
+
'.rich-media-item': {
|
|
76
|
+
marginTop: 0
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
// Due to the above rule, wrapped mediaSingle (not the first node in layout) that are followed by wrapped mediaSingle should also have 0 marginTop
|
|
80
|
+
// so it's aligned with the following wrapped mediaSingle
|
|
81
|
+
'.mediaSingleView-content-wrap[layout^=wrap]:has( + .mediaSingleView-content-wrap[layout^=wrap])': {
|
|
82
|
+
'.rich-media-item': {
|
|
83
|
+
marginTop: 0
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const firstWrappedMediaStyles = {
|
|
89
|
+
'.ProseMirror': {
|
|
90
|
+
// Remove gap between first wrapped mediaSingle and its fellow wrapped mediaSingle
|
|
91
|
+
"& [layout^='wrap-']:has(+ [layout^='wrap-']), & [layout^='wrap-']:has(+ .ProseMirror-gapcursor + [layout^='wrap-'])": {
|
|
92
|
+
[`& .${richMediaClassName}`]: {
|
|
93
|
+
marginLeft: 0,
|
|
94
|
+
marginRight: 0
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
69
100
|
/**
|
|
70
101
|
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
71
102
|
* based on the provided feature flags, view mode, and other props.
|
|
@@ -178,6 +209,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
178
209
|
ruleStyles,
|
|
179
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
180
211
|
mediaStyles,
|
|
212
|
+
// merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
|
|
213
|
+
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
|
|
181
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
182
215
|
telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
183
216
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -259,7 +292,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
259
292
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
260
293
|
resizerStyles,
|
|
261
294
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
262
|
-
layoutBaseStyles,
|
|
295
|
+
layoutBaseStyles,
|
|
296
|
+
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
297
|
+
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, expValEqualsNoExposure('platform_synced_block', 'isEnabled', true) &&
|
|
263
298
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
264
299
|
syncBlockStyles,
|
|
265
300
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -361,10 +396,12 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
361
396
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
362
397
|
mediaAlignmentStyles,
|
|
363
398
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
364
|
-
tableLayoutFixes,
|
|
399
|
+
tableLayoutFixes,
|
|
365
400
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
366
401
|
tableContainerStyles,
|
|
367
402
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
403
|
+
!fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
|
|
404
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
368
405
|
hyperLinkFloatingToolbarStyles,
|
|
369
406
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
370
407
|
!fg('platform-visual-refresh-icons') && linkLegacyIconStylesFix,
|
|
@@ -37,7 +37,6 @@ export const tableContainerStyles = css({
|
|
|
37
37
|
'.ProseMirror .pm-table-wrapper': {
|
|
38
38
|
maxWidth: '100%',
|
|
39
39
|
overflowX: 'auto',
|
|
40
|
-
overflowY: 'visible',
|
|
41
40
|
// Ensure the wrapper doesn't grow beyond its container
|
|
42
41
|
width: '100%',
|
|
43
42
|
boxSizing: 'border-box'
|
|
@@ -51,4 +50,13 @@ export const tableContainerStyles = css({
|
|
|
51
50
|
// Ensure tables can be scrolled horizontally if needed
|
|
52
51
|
minWidth: 'auto'
|
|
53
52
|
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
56
|
+
export const tableContainerOverflowY = css({
|
|
57
|
+
/* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
+
'.ProseMirror .pm-table-wrapper': {
|
|
60
|
+
overflowY: 'visible'
|
|
61
|
+
}
|
|
54
62
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "214.2.4";
|
package/dist/esm/index.js
CHANGED
|
@@ -36,13 +36,5 @@ export { getNodesCount } from './utils/getNodesCount';
|
|
|
36
36
|
export { default as measurements } from './utils/performance/measure-enum';
|
|
37
37
|
export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
|
|
38
38
|
export { default as EditorActions } from './actions';
|
|
39
|
-
export {
|
|
40
|
-
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
44
|
-
* use this instead: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
|
|
45
|
-
*/
|
|
46
|
-
createEditorContentStyle } from './ui/ContentStyles';
|
|
47
39
|
export { getDefaultPresetOptionsFromEditorProps } from './create-editor/create-plugins-list';
|
|
48
40
|
export { ReactEditorView } from './create-editor/ReactEditorView';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
1
2
|
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
2
3
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
3
4
|
/**
|
|
@@ -9,6 +10,7 @@ import React from 'react';
|
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
import { jsx, useTheme } from '@emotion/react';
|
|
11
12
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
13
|
+
import { richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
12
14
|
import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
13
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -58,7 +60,7 @@ import { shadowStyles } from './styles/shadowStyles';
|
|
|
58
60
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
59
61
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
60
62
|
import { syncBlockStyles } from './styles/syncBlockStyles';
|
|
61
|
-
import { tableCommentEditorStyles, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
63
|
+
import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
62
64
|
import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem, decisionDangerStyles } from './styles/tasksAndDecisionsStyles';
|
|
63
65
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
64
66
|
import { textColorStyles } from './styles/textColorStyles';
|
|
@@ -66,6 +68,34 @@ import { textHighlightStyle } from './styles/textHighlightStyles';
|
|
|
66
68
|
import { unsupportedStyles } from './styles/unsupportedStyles';
|
|
67
69
|
import { whitespaceStyles } from './styles/whitespaceStyles';
|
|
68
70
|
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
71
|
+
var alignMultipleWrappedImageInLayoutStyles = {
|
|
72
|
+
'.ProseMirror [data-layout-section] [data-layout-column] > div': {
|
|
73
|
+
// apply marginTop to wrapped mediaSingle that has preceding wrapped mediaSingle (even when there's gap cursor in between them)
|
|
74
|
+
// Given the first wrapped mediaSingle in layout has 0 marginTop, this is needed to make sure fellow wrapped mediaSingle align with it horizontally
|
|
75
|
+
'.mediaSingleView-content-wrap[layout^=wrap] + .mediaSingleView-content-wrap[layout^=wrap], .mediaSingleView-content-wrap[layout^=wrap] + .ProseMirror-gapcursor + .mediaSingleView-content-wrap[layout^=wrap]': {
|
|
76
|
+
'.rich-media-item': {
|
|
77
|
+
marginTop: 0
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
// Due to the above rule, wrapped mediaSingle (not the first node in layout) that are followed by wrapped mediaSingle should also have 0 marginTop
|
|
81
|
+
// so it's aligned with the following wrapped mediaSingle
|
|
82
|
+
'.mediaSingleView-content-wrap[layout^=wrap]:has( + .mediaSingleView-content-wrap[layout^=wrap])': {
|
|
83
|
+
'.rich-media-item': {
|
|
84
|
+
marginTop: 0
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var firstWrappedMediaStyles = {
|
|
90
|
+
'.ProseMirror': {
|
|
91
|
+
// Remove gap between first wrapped mediaSingle and its fellow wrapped mediaSingle
|
|
92
|
+
"& [layout^='wrap-']:has(+ [layout^='wrap-']), & [layout^='wrap-']:has(+ .ProseMirror-gapcursor + [layout^='wrap-'])": _defineProperty({}, "& .".concat(richMediaClassName), {
|
|
93
|
+
marginLeft: 0,
|
|
94
|
+
marginRight: 0
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
69
99
|
/**
|
|
70
100
|
* EditorContentStyles is a wrapper component that applies styles to its children
|
|
71
101
|
* based on the provided feature flags, view mode, and other props.
|
|
@@ -175,6 +205,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
175
205
|
ruleStyles,
|
|
176
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
177
207
|
mediaStyles,
|
|
208
|
+
// merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
|
|
209
|
+
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
|
|
178
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
179
211
|
telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
180
212
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -256,7 +288,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
256
288
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
257
289
|
resizerStyles,
|
|
258
290
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
259
|
-
layoutBaseStyles,
|
|
291
|
+
layoutBaseStyles,
|
|
292
|
+
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
293
|
+
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, expValEqualsNoExposure('platform_synced_block', 'isEnabled', true) &&
|
|
260
294
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
261
295
|
syncBlockStyles,
|
|
262
296
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -358,10 +392,12 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
358
392
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
359
393
|
mediaAlignmentStyles,
|
|
360
394
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
361
|
-
tableLayoutFixes,
|
|
395
|
+
tableLayoutFixes,
|
|
362
396
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
363
397
|
tableContainerStyles,
|
|
364
398
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
399
|
+
!fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
|
|
400
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
365
401
|
hyperLinkFloatingToolbarStyles,
|
|
366
402
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
367
403
|
!fg('platform-visual-refresh-icons') && linkLegacyIconStylesFix,
|
|
@@ -34,7 +34,6 @@ export var tableContainerStyles = css({
|
|
|
34
34
|
'.ProseMirror .pm-table-wrapper': {
|
|
35
35
|
maxWidth: '100%',
|
|
36
36
|
overflowX: 'auto',
|
|
37
|
-
overflowY: 'visible',
|
|
38
37
|
// Ensure the wrapper doesn't grow beyond its container
|
|
39
38
|
width: '100%',
|
|
40
39
|
boxSizing: 'border-box'
|
|
@@ -48,4 +47,13 @@ export var tableContainerStyles = css({
|
|
|
48
47
|
// Ensure tables can be scrolled horizontally if needed
|
|
49
48
|
minWidth: 'auto'
|
|
50
49
|
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
53
|
+
export var tableContainerOverflowY = css({
|
|
54
|
+
/* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
+
'.ProseMirror .pm-table-wrapper': {
|
|
57
|
+
overflowY: 'visible'
|
|
58
|
+
}
|
|
51
59
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "214.2.4";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,12 +28,5 @@ export { default as measurements } from './utils/performance/measure-enum';
|
|
|
28
28
|
export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
|
|
29
29
|
export type { Command, EditorProps, EditorInstance, CommandDispatch } from './types';
|
|
30
30
|
export { default as EditorActions } from './actions';
|
|
31
|
-
export {
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated
|
|
34
|
-
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
35
|
-
* use this instead: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
|
|
36
|
-
*/
|
|
37
|
-
createEditorContentStyle, } from './ui/ContentStyles';
|
|
38
31
|
export { getDefaultPresetOptionsFromEditorProps } from './create-editor/create-plugins-list';
|
|
39
32
|
export { ReactEditorView } from './create-editor/ReactEditorView';
|
|
@@ -3,3 +3,4 @@ export declare const tableLayoutFixes: SerializedStyles;
|
|
|
3
3
|
export declare const tableCommentEditorMarginOverride: SerializedStyles;
|
|
4
4
|
export declare const tableCommentEditorStyles: SerializedStyles;
|
|
5
5
|
export declare const tableContainerStyles: SerializedStyles;
|
|
6
|
+
export declare const tableContainerOverflowY: SerializedStyles;
|
|
@@ -28,12 +28,5 @@ export { default as measurements } from './utils/performance/measure-enum';
|
|
|
28
28
|
export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
|
|
29
29
|
export type { Command, EditorProps, EditorInstance, CommandDispatch } from './types';
|
|
30
30
|
export { default as EditorActions } from './actions';
|
|
31
|
-
export {
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated
|
|
34
|
-
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
35
|
-
* use this instead: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
|
|
36
|
-
*/
|
|
37
|
-
createEditorContentStyle, } from './ui/ContentStyles';
|
|
38
31
|
export { getDefaultPresetOptionsFromEditorProps } from './create-editor/create-plugins-list';
|
|
39
32
|
export { ReactEditorView } from './create-editor/ReactEditorView';
|
|
@@ -3,3 +3,4 @@ export declare const tableLayoutFixes: SerializedStyles;
|
|
|
3
3
|
export declare const tableCommentEditorMarginOverride: SerializedStyles;
|
|
4
4
|
export declare const tableCommentEditorStyles: SerializedStyles;
|
|
5
5
|
export declare const tableContainerStyles: SerializedStyles;
|
|
6
|
+
export declare const tableContainerOverflowY: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "215.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
51
51
|
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-user-preferences": "^4.0.0",
|
|
53
|
-
"@atlaskit/editor-plugins": "^
|
|
53
|
+
"@atlaskit/editor-plugins": "^11.0.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
56
56
|
"@atlaskit/editor-toolbar": "^0.14.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@atlaskit/editor-plugin-annotation": "^6.1.0",
|
|
98
98
|
"@atlaskit/editor-plugin-card": "^11.2.0",
|
|
99
99
|
"@atlaskit/editor-plugin-list": "^8.0.0",
|
|
100
|
-
"@atlaskit/editor-plugin-paste": "^7.
|
|
100
|
+
"@atlaskit/editor-plugin-paste": "^7.2.0",
|
|
101
101
|
"@atlaskit/link-provider": "^4.0.0",
|
|
102
102
|
"@atlaskit/logo": "^19.9.0",
|
|
103
103
|
"@atlaskit/media-core": "^37.0.0",
|
|
@@ -261,6 +261,9 @@
|
|
|
261
261
|
"type": "boolean",
|
|
262
262
|
"referenceOnly": true
|
|
263
263
|
},
|
|
264
|
+
"platform_editor_fix_media_in_renderer": {
|
|
265
|
+
"type": "boolean"
|
|
266
|
+
},
|
|
264
267
|
"platform_editor_react_18_autofocus_fix": {
|
|
265
268
|
"type": "boolean"
|
|
266
269
|
},
|
|
@@ -475,6 +478,9 @@
|
|
|
475
478
|
},
|
|
476
479
|
"platform_editor_text_highlight_padding": {
|
|
477
480
|
"type": "boolean"
|
|
481
|
+
},
|
|
482
|
+
"platform_editor_table_container_y_overflow_fix": {
|
|
483
|
+
"type": "boolean"
|
|
478
484
|
}
|
|
479
485
|
},
|
|
480
486
|
"stricter": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/editor-core/create-editor-content-style",
|
|
3
|
-
"main": "../dist/cjs/ui/ContentStyles/index.js",
|
|
4
|
-
"module": "../dist/esm/ui/ContentStyles/index.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/ui/ContentStyles/index.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../dist/types/ui/ContentStyles/index.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/ui/ContentStyles/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.InlineNodeViewSharedStyles = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _reactNodeView = require("@atlaskit/editor-common/react-node-view");
|
|
11
|
-
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
-
|
|
14
|
-
// For reasoning behind styles, see comments in:
|
|
15
|
-
// ./getInlineNodeViewProducer -> portalChildren()
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
-
var InlineNodeViewSharedStyles = exports.InlineNodeViewSharedStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_reactNodeView.inlineNodeViewClassname), {
|
|
19
|
-
display: 'inline',
|
|
20
|
-
userSelect: 'all',
|
|
21
|
-
whiteSpace: 'nowrap',
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
|
-
'& > *:not(.zeroWidthSpaceContainer)': {
|
|
24
|
-
whiteSpace: 'pre-wrap'
|
|
25
|
-
},
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
'& > .assistive': {
|
|
28
|
-
userSelect: 'none'
|
|
29
|
-
}
|
|
30
|
-
}), '&.ua-safari', (0, _defineProperty2.default)({}, ".".concat(_reactNodeView.inlineNodeViewClassname), {
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
|
-
'::selection, *::selection': {
|
|
33
|
-
background: 'transparent'
|
|
34
|
-
}
|
|
35
|
-
})), "&.ua-chrome .".concat(_reactNodeView.inlineNodeViewClassname, " > span"), {
|
|
36
|
-
userSelect: 'none'
|
|
37
|
-
}), ".".concat(_reactNodeView.inlineNodeViewClassname, "AddZeroWidthSpace"), {
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
39
|
-
'::after': {
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
-
content: "'".concat(_whitespace.ZERO_WIDTH_SPACE, "'")
|
|
42
|
-
}
|
|
43
|
-
}));
|