@atlaskit/editor-core 207.14.4 → 207.14.7
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 +33 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +50 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +34 -14
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +355 -2
- package/dist/cjs/ui/EditorContentContainer/styles/textHighlightStyles.js +17 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +50 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +29 -9
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +362 -0
- package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +10 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +50 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +29 -9
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +354 -1
- package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +10 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +5 -0
- package/dist/types/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +5 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +1 -0
- package/package.json +7 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.14.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165495](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165495)
|
|
8
|
+
[`519bee339c2b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/519bee339c2b0) -
|
|
9
|
+
refactor emotion styles for task and decisions
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 207.14.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#165439](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165439)
|
|
17
|
+
[`1b15e228a1e86`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b15e228a1e86) -
|
|
18
|
+
Fixed an issue which meant the new annotation manager still realied on a FG to be enabled when in
|
|
19
|
+
fact it should be enabled if an instance of the manager is supplied. Thie removed all dependencies
|
|
20
|
+
relying on the FG.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
23
|
+
## 207.14.5
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#164233](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164233)
|
|
28
|
+
[`4edd87321b895`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4edd87321b895) -
|
|
29
|
+
refactor scrollbar styles
|
|
30
|
+
- [#164129](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164129)
|
|
31
|
+
[`ef34428363521`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef34428363521) -
|
|
32
|
+
[ux] ED-28058 fix left drag handle experience for new resizing under
|
|
33
|
+
platform_editor_breakout_resizing
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
|
|
3
36
|
## 207.14.4
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -29,6 +29,30 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
29
29
|
* @jsxRuntime classic
|
|
30
30
|
* @jsx jsx
|
|
31
31
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
32
|
+
var scrollbarStylesNew = (0, _react2.css)({
|
|
33
|
+
'-ms-overflow-style': '-ms-autohiding-scrollbar',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
35
|
+
'&::-webkit-scrollbar': {
|
|
36
|
+
overflow: 'hidden'
|
|
37
|
+
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
39
|
+
'&::-webkit-scrollbar-corner': {
|
|
40
|
+
display: 'none'
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
43
|
+
'&::-webkit-scrollbar-thumb': {
|
|
44
|
+
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
47
|
+
'&:hover::-webkit-scrollbar-thumb': {
|
|
48
|
+
backgroundColor: "var(--ds-background-neutral-bold, #44546F)",
|
|
49
|
+
borderRadius: 8
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
52
|
+
'&::-webkit-scrollbar-thumb:hover': {
|
|
53
|
+
backgroundColor: "var(--ds-background-neutral-bold-hovered, #2C3E5D)"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
32
56
|
var chromelessEditorStyles = (0, _react2.css)({
|
|
33
57
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
34
58
|
lineHeight: '20px',
|
|
@@ -53,6 +77,27 @@ _scrollbar.scrollbarStyles, {
|
|
|
53
77
|
}
|
|
54
78
|
}
|
|
55
79
|
});
|
|
80
|
+
var chromelessEditorStylesNew = (0, _react2.css)({
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
82
|
+
lineHeight: '20px',
|
|
83
|
+
height: 'auto',
|
|
84
|
+
overflowX: 'hidden',
|
|
85
|
+
overflowY: 'auto',
|
|
86
|
+
maxWidth: 'inherit',
|
|
87
|
+
boxSizing: 'border-box',
|
|
88
|
+
wordWrap: 'break-word',
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
90
|
+
'div > .ProseMirror': {
|
|
91
|
+
outline: 'none',
|
|
92
|
+
whiteSpace: 'pre-wrap',
|
|
93
|
+
padding: 0,
|
|
94
|
+
margin: 0,
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
96
|
+
'& > :last-child': {
|
|
97
|
+
paddingBottom: "var(--ds-space-100, 0.5em)"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
56
101
|
var ContentArea = exports.ContentArea = (0, _ContentStyles.createEditorContentStyle)();
|
|
57
102
|
ContentArea.displayName = 'ContentArea';
|
|
58
103
|
var EditorContainer = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
@@ -109,7 +154,11 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
109
154
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
110
155
|
animate: maxContentSizeReached
|
|
111
156
|
}, (0, _react2.jsx)("div", {
|
|
112
|
-
css: [
|
|
157
|
+
css: [(0, _experiments.editorExperiment)('platform_editor_core_static_emotion', true, {
|
|
158
|
+
exposure: true
|
|
159
|
+
}) ? chromelessEditorStylesNew : chromelessEditorStyles, (0, _experiments.editorExperiment)('platform_editor_core_static_emotion', true, {
|
|
160
|
+
exposure: true
|
|
161
|
+
}) && scrollbarStylesNew, maxHeight &&
|
|
113
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
114
163
|
(0, _react2.css)({
|
|
115
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -11,11 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
12
12
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
13
13
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
14
|
-
var _styles2 = require("@atlaskit/editor-plugins/
|
|
15
|
-
var _styles3 = require("@atlaskit/editor-plugins/placeholder-text/styles");
|
|
14
|
+
var _styles2 = require("@atlaskit/editor-plugins/placeholder-text/styles");
|
|
16
15
|
var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
|
|
17
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
-
var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
|
|
19
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
18
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
19
|
var _tokens = require("@atlaskit/tokens");
|
|
@@ -24,7 +22,6 @@ var _expand = require("../ContentStyles/expand");
|
|
|
24
22
|
var _extension = require("../ContentStyles/extension");
|
|
25
23
|
var _panel = require("../ContentStyles/panel");
|
|
26
24
|
var _status = require("../ContentStyles/status");
|
|
27
|
-
var _tasksAndDecisions = require("../ContentStyles/tasks-and-decisions");
|
|
28
25
|
var _aiPanel = require("./styles/aiPanel");
|
|
29
26
|
var _annotationStyles = require("./styles/annotationStyles");
|
|
30
27
|
var _backgroundColorStyles = require("./styles/backgroundColorStyles");
|
|
@@ -53,6 +50,7 @@ var _smartCardStyles = require("./styles/smartCardStyles");
|
|
|
53
50
|
var _tasksAndDecisionsStyles = require("./styles/tasksAndDecisionsStyles");
|
|
54
51
|
var _telepointerStyles = require("./styles/telepointerStyles");
|
|
55
52
|
var _textColorStyles = require("./styles/textColorStyles");
|
|
53
|
+
var _textHighlightStyles = require("./styles/textHighlightStyles");
|
|
56
54
|
var _unsupportedStyles = require("./styles/unsupportedStyles");
|
|
57
55
|
var _whitespaceStyles = require("./styles/whitespaceStyles");
|
|
58
56
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
@@ -105,7 +103,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
105
103
|
|
|
106
104
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
107
105
|
var contentStyles = function contentStyles() {
|
|
108
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\t", "\n \t", "\n\n\n \t", "\n\n\t", "\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\n ", "\n\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t.panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, _whitespaceStyles.whitespaceStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)",
|
|
106
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\t", "\n \t", "\n\n\n \t", "\n\n\t", "\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */\n ", "\n\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t.panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, _whitespaceStyles.whitespaceStyles, _indentationStyles.indentationStyles, _shadowStyles.shadowStyles, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles2.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, _codeBlockStyles.codeBlockStyles, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault,
|
|
109
107
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
110
108
|
(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && ( /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
111
109
|
(0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && _editorUGCTokenStyles.editorUGCTokensRefreshed
|
|
@@ -113,15 +111,15 @@ var contentStyles = function contentStyles() {
|
|
|
113
111
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
114
112
|
(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && /* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
115
113
|
!((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && _editorUGCTokenStyles.editorUGCTokensModernized
|
|
116
|
-
/* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */, _blockTypeStyles.blocktypeStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_typography_ugc, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _telepointerStyles.telepointerStyle : _telepointerStyles.telepointerStyleWithInitialOnly, _telepointerStyles.telepointerColorAndCommonStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), _mentions.mentionsStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _gridStyles.gridStyles, _blockMarksStyles.blockMarksStyles, _dateStyles.dateStyles, _extension.extensionStyles, (0, _expand.expandStyles)(), _findReplaceStyles.findReplaceStyles,
|
|
114
|
+
/* eslint-enable @atlaskit/platform/ensure-feature-flag-prefix */, _blockTypeStyles.blocktypeStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_typography_ugc, !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _blockTypeStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && _blockTypeStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, _codeMarkStyles.codeMarkStyles, _textColorStyles.textColorStyles, _backgroundColorStyles.backgroundColorStyles, _list.listsStyles, _rule.ruleStyles, _mediaStyles.mediaStyles, (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _telepointerStyles.telepointerStyle : _telepointerStyles.telepointerStyleWithInitialOnly, _telepointerStyles.telepointerColorAndCommonStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), _mentions.mentionsStyles, _tasksAndDecisionsStyles.tasksAndDecisionsStyles, _gridStyles.gridStyles, _blockMarksStyles.blockMarksStyles, _dateStyles.dateStyles, _extension.extensionStyles, (0, _expand.expandStyles)(), _findReplaceStyles.findReplaceStyles, _textHighlightStyles.textHighlightStyle, _tasksAndDecisionsStyles.decisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
117
115
|
exposure: false
|
|
118
|
-
}) &&
|
|
116
|
+
}) && _tasksAndDecisionsStyles.vanillaTaskItemStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
119
117
|
exposure: false
|
|
120
|
-
}) &&
|
|
118
|
+
}) && _tasksAndDecisionsStyles.vanillaDecisionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
121
119
|
exposure: false
|
|
122
|
-
}) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
|
|
120
|
+
}) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisionsStyles.vanillaDecisionIconWithVisualRefresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
123
121
|
exposure: false
|
|
124
|
-
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
|
|
122
|
+
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisionsStyles.vanillaDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, _annotationStyles.annotationStyles, _smartCardStyles.smartCardStyles, _embedCardStyles.embedCardStyles, _unsupportedStyles.unsupportedStyles, _resizerStyles.resizerStyles, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
125
123
|
};
|
|
126
124
|
var CommentEditorMargin = 14;
|
|
127
125
|
|
|
@@ -156,9 +154,31 @@ var fullPageEditorStyles = (0, _react2.css)({
|
|
|
156
154
|
display: 'flex',
|
|
157
155
|
flexDirection: 'column',
|
|
158
156
|
scrollBehavior: 'smooth'
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
});
|
|
158
|
+
var scrollbarStyles = (0, _react2.css)({
|
|
159
|
+
'-ms-overflow-style': '-ms-autohiding-scrollbar',
|
|
160
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
161
|
+
'&::-webkit-scrollbar': {
|
|
162
|
+
overflow: 'hidden'
|
|
163
|
+
},
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
165
|
+
'&::-webkit-scrollbar-corner': {
|
|
166
|
+
display: 'none'
|
|
167
|
+
},
|
|
168
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
169
|
+
'&::-webkit-scrollbar-thumb': {
|
|
170
|
+
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
171
|
+
},
|
|
172
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
173
|
+
'&:hover::-webkit-scrollbar-thumb': {
|
|
174
|
+
backgroundColor: "var(--ds-background-neutral-bold, #44546F)",
|
|
175
|
+
borderRadius: 8
|
|
176
|
+
},
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
178
|
+
'&::-webkit-scrollbar-thumb:hover': {
|
|
179
|
+
backgroundColor: "var(--ds-background-neutral-bold-hovered, #2C3E5D)"
|
|
180
|
+
}
|
|
181
|
+
});
|
|
162
182
|
var listLayoutShiftFix = (0, _react2.css)({
|
|
163
183
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
164
184
|
'.ProseMirror ul, .ProseMirror ol': {
|
|
@@ -221,7 +241,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
221
241
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
222
242
|
colorMode === 'dark' && isFirefox && _aiPanel.aiPanelDarkFirefoxStyles,
|
|
223
243
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
224
|
-
viewMode === 'view' && _layout.layoutViewStyles, isComment && commentEditorStyles, isFullPage && fullPageEditorStyles, (0, _platformFeatureFlags.fg)('platform_editor_ssr_fix_lists') && listLayoutShiftFix, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ?
|
|
244
|
+
viewMode === 'view' && _layout.layoutViewStyles, isComment && commentEditorStyles, isFullPage && fullPageEditorStyles, isFullPage && scrollbarStyles, (0, _platformFeatureFlags.fg)('platform_editor_ssr_fix_lists') && listLayoutShiftFix, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ?
|
|
225
245
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
226
246
|
_codeBlockStyles.firstCodeBlockWithNoMargin :
|
|
227
247
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -230,6 +230,7 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
|
230
230
|
cursor: 'col-resize',
|
|
231
231
|
borderRadius: 4,
|
|
232
232
|
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
233
|
+
zIndex: 2,
|
|
233
234
|
'&:hover': {
|
|
234
235
|
background: "var(--ds-background-selected, #E9F2FF)",
|
|
235
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -4,18 +4,47 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tasksAndDecisionsStyles = exports.TaskDecisionSharedCssClassName = void 0;
|
|
7
|
+
exports.vanillaTaskItemStyles = exports.vanillaDecisionStyles = exports.vanillaDecisionIconWithoutVisualRefresh = exports.vanillaDecisionIconWithVisualRefresh = exports.tasksAndDecisionsStyles = exports.decisionStyles = exports.TaskDecisionSharedCssClassName = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
+
var _selectionStyles = require("./selectionStyles");
|
|
10
11
|
// eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
11
12
|
|
|
12
13
|
var akEditorLineHeight = 1.714;
|
|
14
|
+
var akEditorSelectedBorderSize = 1;
|
|
15
|
+
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
13
16
|
var TaskDecisionSharedCssClassName = exports.TaskDecisionSharedCssClassName = {
|
|
14
17
|
DECISION_CONTAINER: 'decisionItemView-content-wrap',
|
|
15
18
|
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
16
19
|
TASK_ITEM: 'task-item',
|
|
17
20
|
TASK_CHECKBOX_CONTAINER: 'task-item-checkbox-wrap'
|
|
18
21
|
};
|
|
22
|
+
var decisionSelectionStyles = (0, _react.css)({
|
|
23
|
+
borderRadius: '4px'
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
27
|
+
var decisionStyles = exports.decisionStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
29
|
+
'[data-decision-wrapper]': {
|
|
30
|
+
cursor: 'pointer'
|
|
31
|
+
}
|
|
32
|
+
}, ".".concat(akEditorSelectedNodeClassName, " > [data-decision-wrapper], ol[data-node-type='decisionList'].").concat(akEditorSelectedNodeClassName),
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
34
|
+
[decisionSelectionStyles,
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
36
|
+
_selectionStyles.boxShadowSelectionStyles,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
38
|
+
_selectionStyles.blanketSelectionStyles,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
40
|
+
_selectionStyles.hideNativeBrowserTextSelectionStyles]), '.danger', (0, _defineProperty2.default)({}, ".".concat(TaskDecisionSharedCssClassName.DECISION_CONTAINER, ".").concat(akEditorSelectedNodeClassName, " > div"), {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
42
|
+
boxShadow: "0 0 0 ".concat(akEditorSelectedBorderSize, "px ", "var(--ds-border-danger, #E2483D)"),
|
|
43
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)",
|
|
44
|
+
'&::after': {
|
|
45
|
+
content: 'none' // reset the Blanket selection style
|
|
46
|
+
}
|
|
47
|
+
})));
|
|
19
48
|
|
|
20
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
50
|
var tasksAndDecisionsStyles = exports.tasksAndDecisionsStyles = (0, _react.css)({
|
|
@@ -70,4 +99,328 @@ var tasksAndDecisionsStyles = exports.tasksAndDecisionsStyles = (0, _react.css)(
|
|
|
70
99
|
margin: '0 !important'
|
|
71
100
|
}
|
|
72
101
|
}
|
|
73
|
-
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// Combine this with taskDecisionStyles (above) when cleaning up the platform_editor_vanilla_dom experiment.
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
106
|
+
var vanillaDecisionStyles = exports.vanillaDecisionStyles = (0, _react.css)({
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
108
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]': {
|
|
109
|
+
listStyleType: 'none'
|
|
110
|
+
},
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
112
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper]': {
|
|
113
|
+
display: 'flex',
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
margin: "var(--ds-space-100, 8px)".concat(" 0 0 0"),
|
|
116
|
+
padding: "var(--ds-space-100, 8px)",
|
|
117
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
118
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
119
|
+
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
120
|
+
position: 'relative'
|
|
121
|
+
},
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
123
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"]': {
|
|
124
|
+
flex: '0 0 16px',
|
|
125
|
+
height: '16px',
|
|
126
|
+
width: '16px',
|
|
127
|
+
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
|
|
128
|
+
color: "var(--ds-icon-subtle, #626F86)",
|
|
129
|
+
display: 'flex',
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
justifyContent: 'center'
|
|
132
|
+
},
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
134
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="icon"]': {
|
|
135
|
+
color: "var(--ds-icon-success, #22A06B)"
|
|
136
|
+
},
|
|
137
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
138
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
|
|
139
|
+
display: 'inline-block',
|
|
140
|
+
flexShrink: 0,
|
|
141
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography -- Mirroring icon styles
|
|
142
|
+
lineHeight: 1
|
|
143
|
+
},
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
145
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
|
|
146
|
+
overflow: 'hidden',
|
|
147
|
+
pointerEvents: 'none',
|
|
148
|
+
color: 'currentColor',
|
|
149
|
+
verticalAlign: 'bottom'
|
|
150
|
+
},
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
152
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="placeholder"]': {
|
|
153
|
+
margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3.5)"),
|
|
154
|
+
position: 'absolute',
|
|
155
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
156
|
+
pointerEvents: 'none',
|
|
157
|
+
textOverflow: 'ellipsis',
|
|
158
|
+
overflow: 'hidden',
|
|
159
|
+
whiteSpace: 'nowrap',
|
|
160
|
+
maxWidth: 'calc(100% - 50px)'
|
|
161
|
+
},
|
|
162
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
163
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="placeholder"]': {
|
|
164
|
+
display: 'none'
|
|
165
|
+
},
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
167
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="content"]': {
|
|
168
|
+
margin: 0,
|
|
169
|
+
wordWrap: 'break-word',
|
|
170
|
+
minWidth: 0,
|
|
171
|
+
flex: '1 1 auto'
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
176
|
+
var vanillaDecisionIconWithVisualRefresh = exports.vanillaDecisionIconWithVisualRefresh = (0, _react.css)({
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
178
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="legacy"]': {
|
|
179
|
+
display: 'none'
|
|
180
|
+
},
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
182
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
|
|
183
|
+
boxSizing: 'border-box',
|
|
184
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
185
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)',
|
|
186
|
+
'@media screen and (forced-colors: active)': {
|
|
187
|
+
color: 'canvastext',
|
|
188
|
+
filter: 'grayscale(1)'
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
192
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
|
|
193
|
+
width: "var(--ds-space-300, 24px)",
|
|
194
|
+
height: "var(--ds-space-300, 24px)"
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
199
|
+
var vanillaDecisionIconWithoutVisualRefresh = exports.vanillaDecisionIconWithoutVisualRefresh = (0, _react.css)({
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
201
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="refreshed"]': {
|
|
202
|
+
display: 'none'
|
|
203
|
+
},
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
205
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
|
|
206
|
+
width: '32px',
|
|
207
|
+
height: '32px',
|
|
208
|
+
'@media screen and (forced-colors: active)': {
|
|
209
|
+
filter: 'grayscale(1)',
|
|
210
|
+
color: 'canvastext',
|
|
211
|
+
fill: 'canvas'
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
215
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
|
|
216
|
+
maxWidth: '100%',
|
|
217
|
+
maxHeight: '100%',
|
|
218
|
+
fill: "var(--ds-surface, #FFFFFF)",
|
|
219
|
+
width: '32px',
|
|
220
|
+
height: '32px'
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
225
|
+
var vanillaTaskItemStyles = exports.vanillaTaskItemStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
227
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]': {
|
|
228
|
+
listStyle: 'none'
|
|
229
|
+
},
|
|
230
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
231
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] [data-component="task-item-main"]': {
|
|
232
|
+
display: 'flex',
|
|
233
|
+
flexDirection: 'row',
|
|
234
|
+
position: 'relative'
|
|
235
|
+
},
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
237
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] [data-component="placeholder"]': {
|
|
238
|
+
position: 'absolute',
|
|
239
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
240
|
+
margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
|
|
241
|
+
pointerEvents: 'none',
|
|
242
|
+
textOverflow: 'ellipsis',
|
|
243
|
+
overflow: 'hidden',
|
|
244
|
+
whiteSpace: 'nowrap',
|
|
245
|
+
maxWidth: 'calc(100% - 50px)',
|
|
246
|
+
display: 'none'
|
|
247
|
+
},
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
249
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"]:has([data-empty]):not(:has([data-type-ahead])) [data-component="placeholder"]': {
|
|
250
|
+
display: 'block'
|
|
251
|
+
},
|
|
252
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
253
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] [data-component="content"]': {
|
|
254
|
+
margin: 0,
|
|
255
|
+
wordWrap: 'break-word',
|
|
256
|
+
minWidth: 0,
|
|
257
|
+
flex: '1 1 auto'
|
|
258
|
+
},
|
|
259
|
+
// copied styles from packages/design-system/icon/src/components/icon-new.tsx
|
|
260
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
261
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"]': {
|
|
262
|
+
display: 'inline-block',
|
|
263
|
+
boxSizing: 'border-box',
|
|
264
|
+
flexShrink: 0,
|
|
265
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
266
|
+
lineHeight: 1,
|
|
267
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
268
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
269
|
+
},
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
271
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg': {
|
|
272
|
+
overflow: 'hidden',
|
|
273
|
+
pointerEvents: 'none',
|
|
274
|
+
color: 'currentColor',
|
|
275
|
+
verticalAlign: 'bottom',
|
|
276
|
+
width: "var(--ds-space-200, 16px)",
|
|
277
|
+
height: "var(--ds-space-200, 16px)"
|
|
278
|
+
},
|
|
279
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
280
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
|
|
281
|
+
display: 'none'
|
|
282
|
+
},
|
|
283
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
284
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
|
|
285
|
+
display: 'inline'
|
|
286
|
+
},
|
|
287
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
288
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
|
|
289
|
+
display: 'inline'
|
|
290
|
+
},
|
|
291
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
292
|
+
'[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
|
|
293
|
+
display: 'none'
|
|
294
|
+
}
|
|
295
|
+
}, "[data-prosemirror-node-view-type=\"vanilla\"][data-prosemirror-node-name=\"taskItem\"] .".concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
|
|
296
|
+
flex: '0 0 24px',
|
|
297
|
+
width: '24px',
|
|
298
|
+
height: '24px',
|
|
299
|
+
position: 'relative',
|
|
300
|
+
alignSelf: 'start',
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
302
|
+
"& > input[type='checkbox']": {
|
|
303
|
+
width: '16px',
|
|
304
|
+
height: '16px',
|
|
305
|
+
zIndex: 1,
|
|
306
|
+
cursor: 'pointer',
|
|
307
|
+
outline: 'none',
|
|
308
|
+
margin: 0,
|
|
309
|
+
opacity: 0,
|
|
310
|
+
position: 'absolute',
|
|
311
|
+
top: '50%',
|
|
312
|
+
left: '50%',
|
|
313
|
+
transform: 'translate(-50%, -50%)',
|
|
314
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
315
|
+
'&[disabled]': {
|
|
316
|
+
cursor: 'default'
|
|
317
|
+
},
|
|
318
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
319
|
+
'+ span': {
|
|
320
|
+
width: '24px',
|
|
321
|
+
height: '24px',
|
|
322
|
+
position: 'absolute',
|
|
323
|
+
top: '50%',
|
|
324
|
+
left: '50%',
|
|
325
|
+
transform: 'translate(-50%, -50%)'
|
|
326
|
+
},
|
|
327
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
328
|
+
'+ span > svg': {
|
|
329
|
+
boxSizing: 'border-box',
|
|
330
|
+
display: 'inline',
|
|
331
|
+
top: '50%',
|
|
332
|
+
left: '50%',
|
|
333
|
+
transform: 'translate(-50%, -50%)',
|
|
334
|
+
maxWidth: 'unset',
|
|
335
|
+
maxHeight: 'unset',
|
|
336
|
+
position: 'absolute',
|
|
337
|
+
overflow: 'hidden',
|
|
338
|
+
color: "var(--ds-background-input, #FFFFFF)",
|
|
339
|
+
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
340
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
341
|
+
'path:first-of-type': {
|
|
342
|
+
visibility: 'hidden'
|
|
343
|
+
},
|
|
344
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
345
|
+
'rect:first-of-type': {
|
|
346
|
+
stroke: "var(--ds-border-input, #8590A2)",
|
|
347
|
+
strokeWidth: 1,
|
|
348
|
+
transition: 'stroke 0.2s ease-in-out'
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
352
|
+
'&:hover + span > svg': {
|
|
353
|
+
color: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
354
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
355
|
+
'rect:first-of-type': {
|
|
356
|
+
stroke: "var(--ds-border-input, #8590A2)"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
360
|
+
'&:checked:hover + span > svg': {
|
|
361
|
+
color: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
362
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
363
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
364
|
+
'rect:first-of-type': {
|
|
365
|
+
stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
'&:checked': {
|
|
369
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
370
|
+
'+ span > svg': {
|
|
371
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
372
|
+
'path:first-of-type': {
|
|
373
|
+
visibility: 'visible'
|
|
374
|
+
},
|
|
375
|
+
color: "var(--ds-background-selected-bold, #0C66E4)",
|
|
376
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
377
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
378
|
+
'rect:first-of-type': {
|
|
379
|
+
stroke: "var(--ds-background-selected-bold, #0C66E4)"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
384
|
+
'&:active + span > svg': {
|
|
385
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
387
|
+
'rect:first-of-type': {
|
|
388
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
392
|
+
'&:checked:active + span > svg': {
|
|
393
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
394
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
395
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
396
|
+
'rect:first-of-type': {
|
|
397
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
401
|
+
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
402
|
+
color: "var(--ds-background-disabled, #091E4208)",
|
|
403
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
404
|
+
'rect:first-of-type': {
|
|
405
|
+
stroke: "var(--ds-background-disabled, #091E4208)"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
409
|
+
'&:disabled:checked + span > svg': {
|
|
410
|
+
fill: "var(--ds-icon-disabled, #091E424F)"
|
|
411
|
+
},
|
|
412
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
413
|
+
'&:focus + span::after': {
|
|
414
|
+
position: 'absolute',
|
|
415
|
+
width: "var(--ds-space-200, 16px)",
|
|
416
|
+
height: "var(--ds-space-200, 16px)",
|
|
417
|
+
border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
|
|
418
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
419
|
+
content: "''",
|
|
420
|
+
display: 'block',
|
|
421
|
+
top: '50%',
|
|
422
|
+
left: '50%',
|
|
423
|
+
transform: 'translate(-50%, -50%)'
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}));
|