@atlaskit/editor-common 78.11.5 → 78.11.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 +17 -0
- package/dist/cjs/collab/index.js +38 -11
- package/dist/cjs/extensibility/Extension/Extension/index.js +16 -2
- package/dist/cjs/extensibility/Extension/Lozenge.js +2 -0
- package/dist/cjs/extensibility/Extension/LozengeComponent.js +23 -18
- package/dist/cjs/extensibility/Extension/styles.js +9 -1
- package/dist/cjs/extensibility/ExtensionComponent.js +11 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +17 -3
- package/dist/cjs/keymaps/index.js +9 -6
- package/dist/cjs/media-inline/styles.js +2 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/plugin-injection-api.js +0 -4
- package/dist/cjs/selection/gap-cursor/styles.js +12 -3
- package/dist/cjs/styles/shared/annotation.js +18 -4
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +29 -4
- package/dist/cjs/styles/shared/code-block.js +1 -0
- package/dist/cjs/styles/shared/code-mark.js +8 -3
- package/dist/cjs/styles/shared/column-layout.js +17 -3
- package/dist/cjs/styles/shared/date.js +4 -3
- package/dist/cjs/styles/shared/expand.js +3 -5
- package/dist/cjs/styles/shared/headings.js +34 -3
- package/dist/cjs/styles/shared/indentation.js +28 -5
- package/dist/cjs/styles/shared/link.js +5 -4
- package/dist/cjs/styles/shared/lists.js +2 -0
- package/dist/cjs/styles/shared/media-single.js +39 -3
- package/dist/cjs/styles/shared/panel.js +5 -2
- package/dist/cjs/styles/shared/paragraph.js +11 -4
- package/dist/cjs/styles/shared/plugins.js +30 -7
- package/dist/cjs/styles/shared/resizer.js +2 -0
- package/dist/cjs/styles/shared/rule.js +10 -4
- package/dist/cjs/styles/shared/shadow.js +1 -2
- package/dist/cjs/styles/shared/smartCard.js +2 -0
- package/dist/cjs/styles/shared/table.js +2 -0
- package/dist/cjs/styles/shared/tableCell.js +2 -4
- package/dist/cjs/styles/shared/text-color.js +8 -4
- package/dist/cjs/styles/shared/unsupported-content.js +2 -0
- package/dist/cjs/styles/shared/whitespace.js +4 -4
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/styled.js +16 -8
- package/dist/cjs/ui/ResizerLegacy/styled.js +1 -0
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +12 -5
- package/dist/es2019/collab/index.js +34 -41
- package/dist/es2019/extensibility/Extension/Extension/index.js +12 -2
- package/dist/es2019/extensibility/Extension/Lozenge.js +2 -0
- package/dist/es2019/extensibility/Extension/LozengeComponent.js +22 -17
- package/dist/es2019/extensibility/Extension/styles.js +9 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +11 -2
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +13 -3
- package/dist/es2019/keymaps/index.js +7 -11
- package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
- package/dist/es2019/media-inline/styles.js +2 -0
- package/dist/es2019/media-inline/views/icon-wrapper.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/plugin-injection-api.js +0 -4
- package/dist/es2019/selection/gap-cursor/styles.js +9 -7
- package/dist/es2019/styles/shared/annotation.js +13 -12
- package/dist/es2019/styles/shared/block-marks.js +1 -0
- package/dist/es2019/styles/shared/blockquote.js +27 -34
- package/dist/es2019/styles/shared/code-block.js +1 -0
- package/dist/es2019/styles/shared/code-mark.js +5 -5
- package/dist/es2019/styles/shared/column-layout.js +15 -17
- package/dist/es2019/styles/shared/date.js +4 -4
- package/dist/es2019/styles/shared/expand.js +3 -4
- package/dist/es2019/styles/shared/headings.js +36 -35
- package/dist/es2019/styles/shared/indentation.js +26 -22
- package/dist/es2019/styles/shared/link.js +4 -4
- package/dist/es2019/styles/shared/lists.js +2 -0
- package/dist/es2019/styles/shared/media-single.js +42 -65
- package/dist/es2019/styles/shared/panel.js +5 -5
- package/dist/es2019/styles/shared/paragraph.js +10 -9
- package/dist/es2019/styles/shared/plugins.js +29 -34
- package/dist/es2019/styles/shared/resizer.js +2 -0
- package/dist/es2019/styles/shared/rule.js +9 -8
- package/dist/es2019/styles/shared/shadow.js +1 -2
- package/dist/es2019/styles/shared/smartCard.js +2 -0
- package/dist/es2019/styles/shared/table.js +2 -0
- package/dist/es2019/styles/shared/tableCell.js +1 -3
- package/dist/es2019/styles/shared/text-color.js +7 -8
- package/dist/es2019/styles/shared/unsupported-content.js +2 -0
- package/dist/es2019/styles/shared/whitespace.js +4 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +37 -31
- package/dist/es2019/ui/ResizerLegacy/styled.js +2 -0
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +11 -9
- package/dist/esm/collab/index.js +38 -11
- package/dist/esm/extensibility/Extension/Extension/index.js +16 -2
- package/dist/esm/extensibility/Extension/Lozenge.js +2 -0
- package/dist/esm/extensibility/Extension/LozengeComponent.js +23 -18
- package/dist/esm/extensibility/Extension/styles.js +9 -1
- package/dist/esm/extensibility/ExtensionComponent.js +11 -2
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +17 -3
- package/dist/esm/keymaps/index.js +7 -5
- package/dist/esm/media-inline/media-inline-image-card.js +0 -1
- package/dist/esm/media-inline/styles.js +2 -0
- package/dist/esm/media-inline/views/icon-wrapper.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/plugin-injection-api.js +0 -4
- package/dist/esm/selection/gap-cursor/styles.js +12 -3
- package/dist/esm/styles/shared/annotation.js +18 -4
- package/dist/esm/styles/shared/block-marks.js +1 -0
- package/dist/esm/styles/shared/blockquote.js +29 -3
- package/dist/esm/styles/shared/code-block.js +1 -0
- package/dist/esm/styles/shared/code-mark.js +8 -3
- package/dist/esm/styles/shared/column-layout.js +17 -3
- package/dist/esm/styles/shared/date.js +4 -3
- package/dist/esm/styles/shared/expand.js +3 -4
- package/dist/esm/styles/shared/headings.js +34 -3
- package/dist/esm/styles/shared/indentation.js +28 -5
- package/dist/esm/styles/shared/link.js +5 -3
- package/dist/esm/styles/shared/lists.js +2 -0
- package/dist/esm/styles/shared/media-single.js +39 -3
- package/dist/esm/styles/shared/panel.js +5 -2
- package/dist/esm/styles/shared/paragraph.js +11 -3
- package/dist/esm/styles/shared/plugins.js +30 -6
- package/dist/esm/styles/shared/resizer.js +2 -0
- package/dist/esm/styles/shared/rule.js +10 -3
- package/dist/esm/styles/shared/shadow.js +1 -2
- package/dist/esm/styles/shared/smartCard.js +2 -0
- package/dist/esm/styles/shared/table.js +2 -0
- package/dist/esm/styles/shared/tableCell.js +1 -3
- package/dist/esm/styles/shared/text-color.js +8 -3
- package/dist/esm/styles/shared/unsupported-content.js +2 -0
- package/dist/esm/styles/shared/whitespace.js +4 -3
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +16 -8
- package/dist/esm/ui/ResizerLegacy/styled.js +2 -0
- package/dist/esm/ui/clear-next-sibling-margin-top.js +12 -5
- package/dist/types/collab/index.d.ts +1 -1
- package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +1 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +2 -0
- package/dist/types/extensibility/Extension/Lozenge.d.ts +1 -0
- package/dist/types/extensibility/Extension/LozengeComponent.d.ts +2 -1
- package/dist/types/extensibility/ExtensionComponent.d.ts +2 -0
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +2 -0
- package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
- package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types/icons/index.d.ts +1 -1
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -2
- package/dist/types/media-inline/media-inline-image-card.d.ts +4 -4
- package/dist/types/media-inline/views/error-view.d.ts +3 -2
- package/dist/types/media-inline/views/frame.d.ts +3 -2
- package/dist/types/media-inline/views/icon-wrapper.d.ts +3 -2
- package/dist/types/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types/quick-insert/assets/index.d.ts +24 -24
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
- package/dist/types/react-node-view/index.d.ts +2 -2
- package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +2 -2
- package/dist/types/types/floating-toolbar.d.ts +3 -3
- package/dist/types/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -2
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -0
- package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -0
- package/dist/types/ui/Layer/index.d.ts +2 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/Popup/index.d.ts +1 -0
- package/dist/types/ui/with-outer-listeners.d.ts +3 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
- package/dist/types/ui-menu/DropdownMenu/index.d.ts +1 -1
- package/dist/types/ui-menu/DropdownMenu/types.d.ts +1 -0
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types-ts4.5/collab/index.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +2 -0
- package/dist/types-ts4.5/extensibility/Extension/Lozenge.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/LozengeComponent.d.ts +2 -1
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +2 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +2 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types-ts4.5/icons/index.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +24 -24
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/index.d.ts +2 -2
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +3 -3
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +3 -2
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +1 -0
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
- package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
- package/package.json +5 -5
|
@@ -3,39 +3,40 @@ import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
|
3
3
|
|
|
4
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
5
5
|
// text sizing prototype: http://proto/fabricrender/
|
|
6
|
-
export const headingsSharedStyles = () => css
|
|
7
|
-
& h1 {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export const headingsSharedStyles = () => css({
|
|
7
|
+
'& h1': {
|
|
8
|
+
...h700(),
|
|
9
|
+
marginBottom: 0,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
11
|
+
marginTop: '1.667em'
|
|
12
|
+
},
|
|
13
|
+
'& h2': {
|
|
14
|
+
...h600(),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
|
+
marginTop: '1.8em',
|
|
17
|
+
marginBottom: 0
|
|
18
|
+
},
|
|
19
|
+
'& h3': {
|
|
20
|
+
...h500(),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
|
+
marginTop: '2em',
|
|
23
|
+
marginBottom: 0
|
|
24
|
+
},
|
|
25
|
+
'& h4': {
|
|
26
|
+
...h400(),
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
28
|
+
marginTop: '1.357em'
|
|
29
|
+
},
|
|
30
|
+
'& h5': {
|
|
31
|
+
...h300(),
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
33
|
+
marginTop: '1.667em',
|
|
34
|
+
textTransform: 'none'
|
|
35
|
+
},
|
|
36
|
+
'& h6': {
|
|
37
|
+
...h100(),
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
39
|
+
marginTop: '1.455em',
|
|
40
|
+
textTransform: 'none'
|
|
11
41
|
}
|
|
12
|
-
|
|
13
|
-
& h2 {
|
|
14
|
-
${h600()};
|
|
15
|
-
margin-top: 1.8em;
|
|
16
|
-
margin-bottom: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
& h3 {
|
|
20
|
-
${h500()};
|
|
21
|
-
margin-top: 2em;
|
|
22
|
-
margin-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& h4 {
|
|
26
|
-
${h400()};
|
|
27
|
-
margin-top: 1.357em;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
& h5 {
|
|
31
|
-
${h300()};
|
|
32
|
-
margin-top: 1.667em;
|
|
33
|
-
text-transform: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
& h6 {
|
|
37
|
-
${h100()};
|
|
38
|
-
margin-top: 1.455em;
|
|
39
|
-
text-transform: none;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
+
});
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
&[data-level='3'] {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
export const indentationSharedStyles = css({
|
|
3
|
+
'.fabric-editor-indentation-mark': {
|
|
4
|
+
"&[data-level='1']": {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
6
|
+
marginLeft: '30px'
|
|
7
|
+
},
|
|
8
|
+
"&[data-level='2']": {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
10
|
+
marginLeft: '60px'
|
|
11
|
+
},
|
|
12
|
+
"&[data-level='3']": {
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
|
+
marginLeft: '90px'
|
|
15
|
+
},
|
|
16
|
+
"&[data-level='4']": {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
|
+
marginLeft: '120px'
|
|
19
|
+
},
|
|
20
|
+
"&[data-level='5']": {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
|
+
marginLeft: '150px'
|
|
23
|
+
},
|
|
24
|
+
"&[data-level='6']": {
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
26
|
+
marginLeft: '180px'
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
|
-
|
|
29
|
+
});
|
|
@@ -33,6 +33,8 @@ export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat) {
|
|
|
33
33
|
}
|
|
34
34
|
return style;
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
|
|
36
38
|
export const listsSharedStyles = css`
|
|
37
39
|
/* =============== INDENTATION SPACING ========= */
|
|
38
40
|
|
|
@@ -1,74 +1,51 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
const richMediaClassName = 'rich-media-item';
|
|
3
3
|
const wrappedMediaBreakoutPoint = 410;
|
|
4
|
-
const mediaSingleSharedStyle = css
|
|
5
|
-
li .${richMediaClassName} {
|
|
6
|
-
margin: 0
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
4
|
+
const mediaSingleSharedStyle = css({
|
|
5
|
+
[`li .${richMediaClassName}`]: {
|
|
6
|
+
margin: 0
|
|
7
|
+
},
|
|
8
|
+
// Hack for chrome to fix media single position inside a list when media is the first child
|
|
9
|
+
'&.ua-chrome li > .mediaSingleView-content-wrap::before': {
|
|
10
|
+
content: "''",
|
|
11
|
+
display: 'block',
|
|
12
|
+
height: 0
|
|
13
|
+
},
|
|
14
|
+
'&.ua-firefox': {
|
|
15
|
+
'.mediaSingleView-content-wrap': {
|
|
16
|
+
userSelect: 'none'
|
|
17
|
+
},
|
|
18
|
+
'.captionView-content-wrap': {
|
|
19
|
+
userSelect: 'text'
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
clear: both
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin-bottom: ${"var(--ds-space-150, 12px)"};
|
|
34
|
-
clear: both;
|
|
35
|
-
|
|
36
|
-
&.image-wrap-left,
|
|
37
|
-
&.image-wrap-right {
|
|
38
|
-
clear: none;
|
|
39
|
-
|
|
40
|
-
&:first-child {
|
|
41
|
-
margin-top: ${"var(--ds-space-150, 12px)"};
|
|
21
|
+
},
|
|
22
|
+
".mediaSingleView-content-wrap[layout='center']": {
|
|
23
|
+
clear: 'both'
|
|
24
|
+
},
|
|
25
|
+
[`table .${richMediaClassName}`]: {
|
|
26
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
27
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
28
|
+
clear: 'both',
|
|
29
|
+
'&.image-wrap-left, &.image-wrap-right': {
|
|
30
|
+
clear: 'none',
|
|
31
|
+
'&:first-child': {
|
|
32
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
42
33
|
}
|
|
43
34
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.${richMediaClassName}.image-wrap-right
|
|
58
|
-
+ .${richMediaClassName}.image-wrap-right {
|
|
59
|
-
margin-right: 0;
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media all and (max-width: ${wrappedMediaBreakoutPoint}px) {
|
|
64
|
-
div.mediaSingleView-content-wrap[layout='wrap-left'],
|
|
65
|
-
div.mediaSingleView-content-wrap[data-layout='wrap-left'],
|
|
66
|
-
div.mediaSingleView-content-wrap[layout='wrap-right'],
|
|
67
|
-
div.mediaSingleView-content-wrap[data-layout='wrap-right'] {
|
|
68
|
-
float: none;
|
|
69
|
-
overflow: auto;
|
|
70
|
-
margin: ${"var(--ds-space-150, 12px)"} 0;
|
|
35
|
+
},
|
|
36
|
+
[`.${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left`]: {
|
|
37
|
+
clear: 'both'
|
|
38
|
+
},
|
|
39
|
+
[`.${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-right, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-right`]: {
|
|
40
|
+
marginRight: 0,
|
|
41
|
+
marginLeft: 0
|
|
42
|
+
},
|
|
43
|
+
[`@media all and (max-width: ${wrappedMediaBreakoutPoint}px)`]: {
|
|
44
|
+
"div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
|
|
45
|
+
float: 'none',
|
|
46
|
+
overflow: 'auto',
|
|
47
|
+
margin: `${"var(--ds-space-150, 12px)"} 0`
|
|
71
48
|
}
|
|
72
49
|
}
|
|
73
|
-
|
|
50
|
+
});
|
|
74
51
|
export { mediaSingleSharedStyle, richMediaClassName };
|
|
@@ -149,6 +149,8 @@ const mainDynamicStyles = panelType => {
|
|
|
149
149
|
color: inherit;
|
|
150
150
|
`;
|
|
151
151
|
};
|
|
152
|
+
|
|
153
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
|
|
152
154
|
export const panelSharedStylesWithoutPrefix = () => css`
|
|
153
155
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
154
156
|
margin: ${blockNodesVerticalMargin} 0 0;
|
|
@@ -249,8 +251,6 @@ export const panelSharedStylesWithoutPrefix = () => css`
|
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
253
|
`;
|
|
252
|
-
export const panelSharedStyles = () => css
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
`;
|
|
254
|
+
export const panelSharedStyles = () => css({
|
|
255
|
+
[`.${PanelSharedCssClassName.prefix}`]: panelSharedStylesWithoutPrefix()
|
|
256
|
+
});
|
|
@@ -2,13 +2,14 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { akEditorLineHeight, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
|
|
4
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
5
|
-
export const paragraphSharedStyles = css
|
|
6
|
-
& p {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export const paragraphSharedStyles = css({
|
|
6
|
+
'& p': {
|
|
7
|
+
fontSize: '1em',
|
|
8
|
+
lineHeight: akEditorLineHeight,
|
|
9
|
+
fontWeight: 'normal',
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
11
|
+
marginTop: blockNodesVerticalMargin,
|
|
12
|
+
marginBottom: 0,
|
|
13
|
+
letterSpacing: '-0.005em'
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
});
|
|
@@ -1,43 +1,38 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
-
export const buttonGroupStyle = css
|
|
4
|
-
display: inline-flex
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
display: flex;
|
|
3
|
+
export const buttonGroupStyle = css({
|
|
4
|
+
display: 'inline-flex',
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
'& > div': {
|
|
7
|
+
display: 'flex'
|
|
9
8
|
}
|
|
10
|
-
|
|
9
|
+
});
|
|
11
10
|
|
|
12
11
|
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
13
12
|
// If you make change here, change in above file as well.
|
|
14
|
-
export const separatorStyles = css
|
|
15
|
-
background:
|
|
16
|
-
width: 1px
|
|
17
|
-
height: 24px
|
|
18
|
-
display: inline-block
|
|
19
|
-
margin: 0 ${"var(--ds-space-100, 8px)"}
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
export const separatorStyles = css({
|
|
14
|
+
background: `var(--ds-border, ${N30})`,
|
|
15
|
+
width: '1px',
|
|
16
|
+
height: '24px',
|
|
17
|
+
display: 'inline-block',
|
|
18
|
+
margin: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
19
|
+
userSelect: 'none'
|
|
20
|
+
});
|
|
22
21
|
|
|
23
22
|
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
24
23
|
// If you make change here, change in above file as well.
|
|
25
|
-
export const wrapperStyle = css
|
|
26
|
-
display: flex
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`;
|
|
41
|
-
export const triggerWrapperStyles = css`
|
|
42
|
-
display: flex;
|
|
43
|
-
`;
|
|
24
|
+
export const wrapperStyle = css({
|
|
25
|
+
display: 'flex',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
'> div, > span': {
|
|
28
|
+
display: 'flex'
|
|
29
|
+
},
|
|
30
|
+
'> div > div': {
|
|
31
|
+
display: 'flex'
|
|
32
|
+
},
|
|
33
|
+
marginLeft: 0,
|
|
34
|
+
minWidth: 'auto'
|
|
35
|
+
});
|
|
36
|
+
export const triggerWrapperStyles = css({
|
|
37
|
+
display: 'flex'
|
|
38
|
+
});
|
|
@@ -17,6 +17,8 @@ export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
|
|
|
17
17
|
const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
18
18
|
export const handleWrapperClass = 'resizer-handle-wrapper';
|
|
19
19
|
export const resizerHandleZIndex = 1;
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Seems perfectly safe to autofix, but comments would be lost…
|
|
20
22
|
export const resizerStyles = css`
|
|
21
23
|
.${resizerItemClassName} {
|
|
22
24
|
will-change: width;
|
|
@@ -2,12 +2,13 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { N30A } from '@atlaskit/theme/colors';
|
|
4
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
5
|
-
export const ruleSharedStyles = () => css
|
|
6
|
-
& hr {
|
|
7
|
-
border: none
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export const ruleSharedStyles = () => css({
|
|
6
|
+
'& hr': {
|
|
7
|
+
border: 'none',
|
|
8
|
+
backgroundColor: `var(--ds-border, ${N30A})`,
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
10
|
+
margin: `${akEditorLineHeight}em 0`,
|
|
11
|
+
height: '2px',
|
|
12
|
+
borderRadius: '1px'
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
});
|
|
@@ -43,8 +43,7 @@ const shadowSharedStyle = css({
|
|
|
43
43
|
},
|
|
44
44
|
[`& .${shadowClassNames.RIGHT_SHADOW}::after`]: {
|
|
45
45
|
background: `linear-gradient( to right, transparent 0, ${`var(--ds-shadow-overflow-spread, ${N40A})`} ${getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100}% ), linear-gradient( to left, ${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px, transparent 1px )`,
|
|
46
|
-
|
|
47
|
-
left: `calc(100% - ${shadowWidth}px)`,
|
|
46
|
+
right: '0px',
|
|
48
47
|
top: '0px',
|
|
49
48
|
display: 'block'
|
|
50
49
|
},
|
|
@@ -4,6 +4,8 @@ import { N0, N40 } from '@atlaskit/theme/colors';
|
|
|
4
4
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
5
5
|
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
6
6
|
export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Seems safe to autofix with a fix to `getSelectionStyles`
|
|
7
9
|
export const smartCardStyles = css`
|
|
8
10
|
.${SmartCardSharedCssClassName.INLINE_CARD_CONTAINER} {
|
|
9
11
|
max-width: calc(100% - 20px);
|
|
@@ -34,6 +34,8 @@ export const TableSharedCssClassName = {
|
|
|
34
34
|
TABLE_COLUMN_CONTROLS_DECORATIONS: `${tablePrefixSelector}-column-controls-decoration`,
|
|
35
35
|
TABLE_RESIZER_CONTAINER: `${tablePrefixSelector}-resizer-container`
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
|
|
37
39
|
const tableSharedStyle = () => css`
|
|
38
40
|
${tableCellBackgroundStyleOverride()}
|
|
39
41
|
.${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
export const textColorStyles = css
|
|
3
|
-
.fabric-text-color-mark {
|
|
4
|
-
color: var(--custom-palette-color, inherit)
|
|
2
|
+
export const textColorStyles = css({
|
|
3
|
+
'.fabric-text-color-mark': {
|
|
4
|
+
color: 'var(--custom-palette-color, inherit)'
|
|
5
|
+
},
|
|
6
|
+
'a .fabric-text-color-mark': {
|
|
7
|
+
color: 'unset'
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
a .fabric-text-color-mark {
|
|
8
|
-
color: unset;
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
9
|
+
});
|
|
@@ -6,6 +6,8 @@ export const UnsupportedSharedCssClassName = {
|
|
|
6
6
|
};
|
|
7
7
|
const inlineUnsupportedSelector = `.${UnsupportedSharedCssClassName.INLINE_CONTAINER} > span:nth-of-type(2)`;
|
|
8
8
|
const blockUnsupportedSelector = `.${UnsupportedSharedCssClassName.BLOCK_CONTAINER} > div`;
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested `getSelectionStyles` would need a rebuild to autofix
|
|
9
11
|
export const unsupportedStyles = css`
|
|
10
12
|
${blockUnsupportedSelector}, ${inlineUnsupportedSelector} {
|
|
11
13
|
cursor: pointer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
const whitespaceSharedStyles = css
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
const whitespaceSharedStyles = css({
|
|
3
|
+
wordWrap: 'break-word',
|
|
4
|
+
whiteSpace: 'pre-wrap'
|
|
5
|
+
});
|
|
6
6
|
export { whitespaceSharedStyles };
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.11.
|
|
10
|
+
const packageVersion = "78.11.7";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -135,27 +135,29 @@ export const MediaSingleDimensionHelper = ({
|
|
|
135
135
|
isExtendedResizeExperienceOn,
|
|
136
136
|
isNestedNode = false,
|
|
137
137
|
isInsideOfInlineExtension = false
|
|
138
|
-
}) =>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
}) =>
|
|
139
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
140
|
+
css`
|
|
141
|
+
/* For nested rich media items, set max-width to 100% */
|
|
142
|
+
tr &,
|
|
143
|
+
[data-layout-column] &,
|
|
144
|
+
[data-node-type='expand'] &,
|
|
145
|
+
[data-panel-type] &,
|
|
146
|
+
li & {
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
}
|
|
147
149
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
width: ${isExtendedResizeExperienceOn ? `${mediaSingleWidth || width}px` : mediaSingleWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized, isInsideOfInlineExtension)};
|
|
151
|
+
${layout === 'full-width' &&
|
|
150
152
|
/* This causes issues for new experience where we don't strip layout attributes
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
!isExtendedResizeExperienceOn && css
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
when copying top-level node and pasting into a table/layout,
|
|
154
|
+
because full-width layout will remain, causing node to be edge-to-edge */
|
|
155
|
+
!isExtendedResizeExperienceOn && css({
|
|
156
|
+
minWidth: '100%'
|
|
157
|
+
})}
|
|
158
|
+
max-width: ${isExtendedResizeExperienceOn ? `${containerWidth}px` : calcMaxWidth(layout, containerWidth)};
|
|
157
159
|
|
|
158
|
-
|
|
160
|
+
${isExtendedResizeExperienceOn && `&[class*='is-resizing'] {
|
|
159
161
|
.new-file-experience-wrapper {
|
|
160
162
|
box-shadow: none !important;
|
|
161
163
|
}
|
|
@@ -164,27 +166,29 @@ export const MediaSingleDimensionHelper = ({
|
|
|
164
166
|
transform: translateX(-50%);`}
|
|
165
167
|
}`}
|
|
166
168
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
&:not(.is-resizing) {
|
|
170
|
+
transition: width 100ms ease-in;
|
|
171
|
+
}
|
|
170
172
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
float: ${float(layout)};
|
|
174
|
+
margin: ${calcMargin(layout)};
|
|
173
175
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
&[class*='not-resizing'] {
|
|
177
|
+
${isNestedNode ? /* Make nested node appear responsive when resizing table cell */
|
|
176
178
|
`max-width: 100%;` : nonWrappedLayouts.includes(layout) && `margin-left: 50%;
|
|
177
179
|
transform: translateX(-50%);`}
|
|
178
|
-
|
|
180
|
+
}
|
|
179
181
|
|
|
180
|
-
|
|
181
|
-
`;
|
|
182
|
+
${isImageAligned(layout)};
|
|
183
|
+
`;
|
|
182
184
|
const RenderFallbackContainer = ({
|
|
183
185
|
hasFallbackContainer,
|
|
184
186
|
paddingBottom,
|
|
185
187
|
height
|
|
186
|
-
}) =>
|
|
187
|
-
|
|
188
|
+
}) =>
|
|
189
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
190
|
+
css`
|
|
191
|
+
${hasFallbackContainer ? `
|
|
188
192
|
&::after {
|
|
189
193
|
content: '';
|
|
190
194
|
display: block;
|
|
@@ -195,7 +199,9 @@ const RenderFallbackContainer = ({
|
|
|
195
199
|
line-height: 0;
|
|
196
200
|
}
|
|
197
201
|
` : ''}
|
|
198
|
-
`;
|
|
202
|
+
`;
|
|
203
|
+
|
|
204
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
199
205
|
export const mediaWrapperStyle = props => css`
|
|
200
206
|
position: relative;
|
|
201
207
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { MediaSingleDimensionHelper } from '../MediaSingle/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
3
5
|
export const wrapperStyle = props => css`
|
|
4
6
|
& > div {
|
|
5
7
|
${MediaSingleDimensionHelper(props)};
|