@atlaskit/editor-core 207.19.0 → 207.19.2
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/i18n/sk.js +2 -2
- package/dist/cjs/i18n/sr.js +19 -0
- package/dist/cjs/presets/default.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +218 -147
- package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +53 -0
- package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +32 -0
- package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +20 -0
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +352 -0
- package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +18 -0
- package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +20 -0
- package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +99 -0
- package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +409 -366
- package/dist/cjs/ui/EditorContentContainer/styles/link.js +25 -1
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +11 -2
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +43 -2
- package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +9 -1
- package/dist/cjs/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +39 -1
- package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +35 -0
- package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +45 -1
- package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +35 -0
- package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/cjs/ui/EditorContext/index.js +1 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/sk.js +2 -2
- package/dist/es2019/i18n/sr.js +13 -0
- package/dist/es2019/presets/default.js +3 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +222 -412
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +48 -0
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +167 -0
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +423 -315
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +24 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +9 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +41 -0
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +8 -0
- package/dist/es2019/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +43 -40
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +31 -0
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/es2019/ui/EditorContext/index.js +1 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/sk.js +2 -2
- package/dist/esm/i18n/sr.js +13 -0
- package/dist/esm/presets/default.js +3 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +222 -153
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +46 -0
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +91 -0
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +408 -365
- package/dist/esm/ui/EditorContentContainer/styles/link.js +24 -0
- package/dist/esm/ui/EditorContentContainer/styles/list.js +10 -1
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +42 -1
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +8 -0
- package/dist/esm/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +28 -0
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/esm/ui/EditorContext/index.js +1 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +12 -3
- package/dist/types/i18n/sr.d.ts +12 -0
- package/dist/types/presets/default.d.ts +1 -0
- package/dist/types/presets/universal.d.ts +18 -4
- package/dist/types/presets/useUniversalPreset.d.ts +12 -3
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
- package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +59 -2
- package/dist/types/ui/EditorContentContainer/styles/link.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/list.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
- package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +14 -3
- package/dist/types-ts4.5/i18n/sr.d.ts +12 -0
- package/dist/types-ts4.5/presets/default.d.ts +1 -0
- package/dist/types-ts4.5/presets/universal.d.ts +20 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +14 -3
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +59 -2
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/link.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
- package/package.json +2 -14
- package/dist/types/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.cursorStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
var cursorStyles = exports.cursorStyles = (0, _react.css)({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
13
|
+
'.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor)': {
|
|
14
|
+
caretColor: 'transparent'
|
|
15
|
+
},
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
17
|
+
'.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor': {
|
|
18
|
+
display: 'none'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extensionStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _selectionStyles = require("./selectionStyles");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
var extensionStyles = exports.extensionStyles = (0, _react.css)({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
14
|
+
'.multiBodiedExtensionView-content-wrap': {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
+
'&.danger > span > .multiBodiedExtension--container': {
|
|
17
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
|
|
18
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
19
|
+
},
|
|
20
|
+
// ...extensionLabelStyles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
22
|
+
'&.danger > span > div > .extension-label': {
|
|
23
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
24
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
25
|
+
opacity: 1,
|
|
26
|
+
boxShadow: 'none'
|
|
27
|
+
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
29
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label': {
|
|
30
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FF)",
|
|
31
|
+
color: "var(--ds-text-selected, #0C66E4)",
|
|
32
|
+
opacity: 1,
|
|
33
|
+
boxShadow: 'none'
|
|
34
|
+
},
|
|
35
|
+
/* Targets the icon for bodied macro styling in button label */
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
37
|
+
'&.danger > span > div > .extension-label > span': {
|
|
38
|
+
display: 'inline'
|
|
39
|
+
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
41
|
+
'&:not(.danger).ak-editor-selected-node > span > div .extension-label > span': {
|
|
42
|
+
display: 'inline'
|
|
43
|
+
},
|
|
44
|
+
/* Start of bodied extension edit toggle styles */
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
46
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
47
|
+
opacity: 1
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
50
|
+
'&:not(.danger).ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
51
|
+
opacity: 1
|
|
52
|
+
},
|
|
53
|
+
/* In view mode of the bodied macro, we never want to show the extension label */
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
56
|
+
opacity: 0
|
|
57
|
+
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
59
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
60
|
+
opacity: 0
|
|
61
|
+
},
|
|
62
|
+
/* .with-bodied-macro-live-page-styles class will only be added to bodied macros with the renderer mode gate enabled */
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
64
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
65
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)")
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
69
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
|
|
70
|
+
},
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container > .extension-edit-toggle': {
|
|
73
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
74
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
75
|
+
boxShadow: 'none'
|
|
76
|
+
},
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
78
|
+
'&.danger > span > .with-danger-overlay': {
|
|
79
|
+
backgroundColor: 'transparent',
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
81
|
+
'.multiBodiedExtension--overlay': {
|
|
82
|
+
// ...dangerOverlayStyles
|
|
83
|
+
opacity: 0.3,
|
|
84
|
+
backgroundColor: "var(--ds-background-danger-hovered, #FFD5D2)"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
88
|
+
'&:not(.danger).ak-editor-selected-node': {
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
90
|
+
'& > span > .multiBodiedExtension--container': [
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
92
|
+
_selectionStyles.boxShadowSelectionStyles,
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
94
|
+
_selectionStyles.blanketSelectionStyles,
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
96
|
+
_selectionStyles.hideNativeBrowserTextSelectionStyles]
|
|
97
|
+
},
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
|
+
'.multiBodiedExtension--container': {
|
|
100
|
+
width: '100%',
|
|
101
|
+
maxWidth: '100%' // ensure width can't go over 100%
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
105
|
+
'.inlineExtensionView-content-wrap': {
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
107
|
+
'&.danger > span > .extension-container': {
|
|
108
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
|
|
109
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
110
|
+
},
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
112
|
+
'&.danger > span > .with-danger-overlay': {
|
|
113
|
+
/* If the macro turned used to red before, not setting the background to be transparent will cause the
|
|
114
|
+
danger state to have two layers of red which we don't want. */
|
|
115
|
+
backgroundColor: 'transparent',
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
117
|
+
'.extension-overlay': {
|
|
118
|
+
// ...dangerOverlayStyles
|
|
119
|
+
opacity: 0.3,
|
|
120
|
+
backgroundColor: "var(--ds-background-danger-hovered, #FFD5D2)"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
124
|
+
'&:not(.danger).ak-editor-selected-node': {
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
126
|
+
'& > span > .extension-container': [
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
128
|
+
_selectionStyles.boxShadowSelectionStyles,
|
|
129
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
130
|
+
_selectionStyles.hideNativeBrowserTextSelectionStyles]
|
|
131
|
+
},
|
|
132
|
+
// ...extensionLabelStyles
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
134
|
+
'&.danger > span > div > .extension-label': {
|
|
135
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
136
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
137
|
+
opacity: 1,
|
|
138
|
+
boxShadow: 'none'
|
|
139
|
+
},
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
141
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label': {
|
|
142
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FF)",
|
|
143
|
+
color: "var(--ds-text-selected, #0C66E4)",
|
|
144
|
+
opacity: 1,
|
|
145
|
+
boxShadow: 'none'
|
|
146
|
+
},
|
|
147
|
+
/* Targets the icon for bodied macro styling in button label */
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
149
|
+
'&.danger > span > div > .extension-label > span': {
|
|
150
|
+
display: 'inline'
|
|
151
|
+
},
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
153
|
+
'&:not(.danger).ak-editor-selected-node > span > div .extension-label > span': {
|
|
154
|
+
display: 'inline'
|
|
155
|
+
},
|
|
156
|
+
/* Start of bodied extension edit toggle styles */
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
158
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
159
|
+
opacity: 1
|
|
160
|
+
},
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
162
|
+
'&:not(.danger).ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
163
|
+
opacity: 1
|
|
164
|
+
},
|
|
165
|
+
/* In view mode of the bodied macro, we never want to show the extension label */
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
167
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
168
|
+
opacity: 0
|
|
169
|
+
},
|
|
170
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
171
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
172
|
+
opacity: 0
|
|
173
|
+
},
|
|
174
|
+
/* .with-bodied-macro-live-page-styles class will only be added to bodied macros with the renderer mode gate enabled */
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
176
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
177
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)")
|
|
178
|
+
},
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
180
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
181
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
|
|
182
|
+
},
|
|
183
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
184
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container > .extension-edit-toggle': {
|
|
185
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
186
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
187
|
+
boxShadow: 'none'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
/* This is referenced in the toDOM of a bodied extension and is used to put
|
|
191
|
+
label content into the bodied extension.
|
|
192
|
+
We do this so that we don't serialise the label (which causes the label to be
|
|
193
|
+
copied to the clipboard causing copy-paste issues). */
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
195
|
+
'.bodied-extension-to-dom-label::after': {
|
|
196
|
+
content: 'attr(data-bodied-extension-label)'
|
|
197
|
+
},
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
+
'.extensionView-content-wrap, .multiBodiedExtensionView-content-wrap, .bodiedExtensionView-content-wrap': {
|
|
200
|
+
margin: "0.75rem 0",
|
|
201
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
202
|
+
'&:first-of-type': {
|
|
203
|
+
marginTop: 0
|
|
204
|
+
},
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
206
|
+
'&:last-of-type': {
|
|
207
|
+
marginBottom: 0
|
|
208
|
+
},
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
210
|
+
'&:not(.danger).ak-editor-selected-node': {
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
212
|
+
'& > span > .extension-container': [
|
|
213
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
214
|
+
_selectionStyles.boxShadowSelectionStyles,
|
|
215
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
216
|
+
_selectionStyles.hideNativeBrowserTextSelectionStyles]
|
|
217
|
+
},
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
219
|
+
'&.danger > span > .extension-container': {
|
|
220
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
|
|
221
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
222
|
+
},
|
|
223
|
+
// ...extensionLabelStyles
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
225
|
+
'&.danger > span > div > .extension-label': {
|
|
226
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
227
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
228
|
+
opacity: 1,
|
|
229
|
+
boxShadow: 'none'
|
|
230
|
+
},
|
|
231
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
232
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label': {
|
|
233
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FF)",
|
|
234
|
+
color: "var(--ds-text-selected, #0C66E4)",
|
|
235
|
+
opacity: 1,
|
|
236
|
+
boxShadow: 'none'
|
|
237
|
+
},
|
|
238
|
+
/* Targets the icon for bodied macro styling in button label */
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'&.danger > span > div > .extension-label > span': {
|
|
241
|
+
display: 'inline'
|
|
242
|
+
},
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
244
|
+
'&:not(.danger).ak-editor-selected-node > span > div .extension-label > span': {
|
|
245
|
+
display: 'inline'
|
|
246
|
+
},
|
|
247
|
+
/* Start of bodied extension edit toggle styles */
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
250
|
+
opacity: 1
|
|
251
|
+
},
|
|
252
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
253
|
+
'&:not(.danger).ak-editor-selected-node > span > .extension-edit-toggle-container': {
|
|
254
|
+
opacity: 1
|
|
255
|
+
},
|
|
256
|
+
/* In view mode of the bodied macro, we never want to show the extension label */
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
258
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
259
|
+
opacity: 0
|
|
260
|
+
},
|
|
261
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
262
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.always-hide-label': {
|
|
263
|
+
opacity: 0
|
|
264
|
+
},
|
|
265
|
+
/* .with-bodied-macro-live-page-styles class will only be added to bodied macros with the renderer mode gate enabled */
|
|
266
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
267
|
+
'&:not(.danger).ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
268
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)")
|
|
269
|
+
},
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
271
|
+
'&.danger.ak-editor-selected-node > span > div > .extension-label.with-bodied-macro-live-page-styles': {
|
|
272
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)")
|
|
273
|
+
},
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
275
|
+
'&.danger.ak-editor-selected-node > span > .extension-edit-toggle-container > .extension-edit-toggle': {
|
|
276
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
277
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
278
|
+
boxShadow: 'none'
|
|
279
|
+
},
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
281
|
+
'&.danger > span > .with-danger-overlay': {
|
|
282
|
+
backgroundColor: 'transparent',
|
|
283
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
284
|
+
'.extension-overlay': {
|
|
285
|
+
// ...dangerOverlayStyles
|
|
286
|
+
opacity: 0.3,
|
|
287
|
+
backgroundColor: "var(--ds-background-danger-hovered, #FFD5D2)"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
291
|
+
'&.inline': {
|
|
292
|
+
// wordWrap: 'break-all' was previously used here, but break-all is not a valid CSS property of word-wrap.
|
|
293
|
+
// It was probably intended to be word-break: break-all, however I'm omitting it here for consistency with previous actual behavior.
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
297
|
+
'.extensionView-content-wrap .extension-container': {
|
|
298
|
+
overflow: 'hidden',
|
|
299
|
+
/* Don't hide overflow for editors inside extensions. */
|
|
300
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
301
|
+
'&:has(.extension-editable-area)': {
|
|
302
|
+
overflow: 'visible'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
306
|
+
'.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container': {
|
|
307
|
+
width: '100%',
|
|
308
|
+
maxWidth: '100%' // ensure width can't go over 100%
|
|
309
|
+
},
|
|
310
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
311
|
+
"[data-mark-type='fragment']": {
|
|
312
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
313
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
314
|
+
margin: '0.75rem 0'
|
|
315
|
+
},
|
|
316
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
317
|
+
"& > [data-mark-type='dataConsumer']": {
|
|
318
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
319
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
320
|
+
margin: '0.75rem 0'
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
324
|
+
'&:first-child': {
|
|
325
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
326
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
327
|
+
marginTop: 0
|
|
328
|
+
},
|
|
329
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
330
|
+
"& > [data-mark-type='dataConsumer']": {
|
|
331
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
332
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
333
|
+
marginTop: 0
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
338
|
+
'&:nth-last-of-type(-n + 2):not(:first-of-type)': {
|
|
339
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
340
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
341
|
+
marginBottom: 0
|
|
342
|
+
},
|
|
343
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
344
|
+
"& > [data-mark-type='dataConsumer']": {
|
|
345
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
346
|
+
'& > .extensionView-content-wrap, & > .bodiedExtensionView-content-wrap': {
|
|
347
|
+
marginBottom: 0
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.firstFloatingToolbarButtonStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
|
|
10
|
+
// Make sure the first floating toolbar button has focus ring when focused via .focus()
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
var firstFloatingToolbarButtonStyles = exports.firstFloatingToolbarButtonStyles = (0, _react.css)({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
14
|
+
'button.first-floating-toolbar-button:focus': {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
16
|
+
outline: "2px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fullPageEditorStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
|
|
10
|
+
// Originally copied from scrollStyles in packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
var fullPageEditorStyles = exports.fullPageEditorStyles = (0, _react.css)({
|
|
13
|
+
flexGrow: 1,
|
|
14
|
+
height: '100%',
|
|
15
|
+
overflowY: 'scroll',
|
|
16
|
+
position: 'relative',
|
|
17
|
+
display: 'flex',
|
|
18
|
+
flexDirection: 'column',
|
|
19
|
+
scrollBehavior: 'smooth'
|
|
20
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.hideCaretModifier = exports.gapCursorStyles = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _react = require("@emotion/react");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
11
|
+
|
|
12
|
+
var gapCursorBlink = (0, _react.keyframes)({
|
|
13
|
+
'from, to': {
|
|
14
|
+
opacity: 0
|
|
15
|
+
},
|
|
16
|
+
'50%': {
|
|
17
|
+
opacity: 1
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var hideCaretModifier = exports.hideCaretModifier = 'ProseMirror-hide-gapcursor';
|
|
21
|
+
var gapCursorSelector = '.ProseMirror-gapcursor';
|
|
22
|
+
var prosemirrorwidgetNotBlock = '.ProseMirror-widget:not([data-blocks-decoration-container="true"]):not([data-blocks-drag-handle-container="true"]):not([data-blocks-quick-insert-container="true"])';
|
|
23
|
+
var wrapLeft = '[layout="wrap-left"]';
|
|
24
|
+
var wrapRight = '[layout="wrap-right"]';
|
|
25
|
+
var fixVerticalAlignmentSelector = "\n\t&:first-of-type + ul,\n\t&:first-of-type + span + ul,\n\t&:first-of-type + ol,\n\t&:first-of-type + span + ol,\n\t&:first-of-type + pre,\n\t&:first-of-type + span + pre,\n\t&:first-of-type + blockquote,\n\t&:first-of-type + span + blockquote\n";
|
|
26
|
+
var twoImagesSideBySideFixSelector = "\n ".concat(gapCursorSelector).concat(wrapLeft, " + span + ").concat(wrapLeft, ",\n ").concat(gapCursorSelector).concat(wrapRight, " + span + ").concat(wrapRight, ",\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + ").concat(wrapRight, ",\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + ").concat(wrapRight, ",\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + ").concat(wrapLeft, ",\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + ").concat(wrapLeft, ",\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, ",\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + span ").concat(wrapRight, ",\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, ",\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + span + ").concat(wrapLeft, ",\n ").concat(wrapLeft, " + ").concat(gapCursorSelector);
|
|
27
|
+
var marginFixSelector = "\n ".concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, " > div,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + span + ").concat(wrapRight, " > div,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, " > div,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + span + ").concat(wrapLeft, " > div,\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + ").concat(wrapLeft, " > div,\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + ").concat(wrapLeft, " > div,\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + ").concat(wrapRight, " > div,\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + ").concat(wrapRight, " > div");
|
|
28
|
+
var floatLeftFixSelector = "\n ".concat(wrapLeft, " + ").concat(gapCursorSelector, ",\n ").concat(wrapRight, " + ").concat(gapCursorSelector);
|
|
29
|
+
var afterPresudoSelector = "\n ".concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + ").concat(wrapRight, "::after,\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + ").concat(wrapLeft, "::after,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, "::after,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + span + ").concat(wrapRight, "::after,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, "::after,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + span + ").concat(wrapLeft, "::after");
|
|
30
|
+
var marginDeepChildrenFixSelector = "\n".concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, " + *,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + *,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + span + ").concat(wrapRight, " + *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + span + ").concat(wrapLeft, " + *,\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + ").concat(wrapRight, " + *,\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + ").concat(wrapLeft, " + *,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, " + * > *,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + * > *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + * > *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + * > *,\n ").concat(wrapLeft, " + ").concat(gapCursorSelector, " + span + ").concat(wrapRight, " + * > *,\n ").concat(wrapRight, " + ").concat(gapCursorSelector, " + span + ").concat(wrapLeft, " + * > *,\n ").concat(gapCursorSelector, " + ").concat(wrapLeft, " + span + ").concat(wrapRight, " + * > *,\n ").concat(gapCursorSelector, " + ").concat(wrapRight, " + span + ").concat(wrapLeft, " + * > *,\n ").concat(prosemirrorwidgetNotBlock, " + ").concat(gapCursorSelector, " + *,\n ").concat(prosemirrorwidgetNotBlock, " + ").concat(gapCursorSelector, " + span + *");
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
33
|
+
var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
35
|
+
'.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.".concat(hideCaretModifier), {
|
|
36
|
+
caretColor: 'transparent'
|
|
37
|
+
}), gapCursorSelector, (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
38
|
+
display: 'none',
|
|
39
|
+
pointerEvents: 'none',
|
|
40
|
+
position: 'relative',
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
+
'& span': {
|
|
43
|
+
caretColor: 'transparent',
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
height: '100%',
|
|
46
|
+
width: '100%',
|
|
47
|
+
display: 'block'
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
+
'& span::after': {
|
|
51
|
+
animation: "1s ".concat(gapCursorBlink, " step-start infinite"),
|
|
52
|
+
borderLeft: '1px solid',
|
|
53
|
+
content: "''",
|
|
54
|
+
display: 'block',
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
top: 0,
|
|
57
|
+
height: '100%'
|
|
58
|
+
},
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
60
|
+
'&.-left span::after': {
|
|
61
|
+
left: "var(--ds-space-negative-050, -4px)"
|
|
62
|
+
},
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
64
|
+
'&.-right span::after': {
|
|
65
|
+
right: "var(--ds-space-negative-050, -4px)"
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'& span[layout="full-width"], & span[layout="wide"], & span[layout="fixed-width"]': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
70
|
+
marginLeft: '50%',
|
|
71
|
+
transform: 'translateX(-50%)'
|
|
72
|
+
}
|
|
73
|
+
}, "&".concat(wrapRight), {
|
|
74
|
+
float: 'right'
|
|
75
|
+
}), fixVerticalAlignmentSelector, {
|
|
76
|
+
marginTop: 0
|
|
77
|
+
})), "&.ProseMirror-focused ".concat(gapCursorSelector), {
|
|
78
|
+
display: 'block',
|
|
79
|
+
borderColor: 'transparent'
|
|
80
|
+
})
|
|
81
|
+
}, twoImagesSideBySideFixSelector, {
|
|
82
|
+
clear: 'none'
|
|
83
|
+
}), marginFixSelector, {
|
|
84
|
+
marginRight: 0,
|
|
85
|
+
marginLeft: 0,
|
|
86
|
+
marginBottom: 0
|
|
87
|
+
}), floatLeftFixSelector, {
|
|
88
|
+
float: 'left'
|
|
89
|
+
}), afterPresudoSelector, {
|
|
90
|
+
visibility: 'hidden',
|
|
91
|
+
display: 'block',
|
|
92
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
93
|
+
fontSize: 0,
|
|
94
|
+
content: "' '",
|
|
95
|
+
clear: 'both',
|
|
96
|
+
height: 0
|
|
97
|
+
}), marginDeepChildrenFixSelector, {
|
|
98
|
+
marginTop: 0
|
|
99
|
+
}));
|
|
@@ -9,37 +9,40 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var indentationStyles = exports.indentationStyles = (0, _react.css)({
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
13
|
-
'.
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
13
|
+
'.ProseMirror': {
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line @atlaskit/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// eslint-disable-next-line @atlaskit/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// eslint-disable-next-line @atlaskit/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line @atlaskit/
|
|
42
|
-
|
|
15
|
+
'.fabric-editor-indentation-mark': {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
|
+
"&[data-level='1']": {
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
19
|
+
marginLeft: 30
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
"&[data-level='2']": {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
24
|
+
marginLeft: 60
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
"&[data-level='3']": {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
29
|
+
marginLeft: 90
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
+
"&[data-level='4']": {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
34
|
+
marginLeft: 120
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
|
+
"&[data-level='5']": {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
39
|
+
marginLeft: 150
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
42
|
+
"&[data-level='6']": {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
44
|
+
marginLeft: 180
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
});
|