@atlaskit/editor-common 110.8.0 → 110.9.1
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 +28 -0
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/styles/index.js +0 -204
- package/dist/cjs/styles/shared/annotation.js +1 -68
- package/dist/cjs/styles/shared/code-block.js +2 -17
- package/dist/cjs/styles/shared/date.js +2 -12
- package/dist/cjs/styles/shared/grid.js +2 -41
- package/dist/cjs/styles/shared/lists.js +2 -10
- package/dist/cjs/styles/shared/panel.js +1 -39
- package/dist/cjs/styles/shared/resizer.js +2 -202
- package/dist/cjs/styles/shared/smart-card.js +1 -6
- package/dist/cjs/styles/shared/smartCard.js +2 -16
- package/dist/cjs/styles/shared/task-decision.js +2 -12
- package/dist/cjs/styles/shared/unsupported-content.js +2 -12
- package/dist/cjs/transforms/index.js +8 -1
- package/dist/cjs/transforms/sync-block.js +25 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/sharedStyles.js +2 -97
- package/dist/cjs/ui/index.js +0 -7
- package/dist/cjs/utils/compareNodes.js +6 -0
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/index.js +11 -23
- package/dist/es2019/styles/shared/annotation.js +1 -106
- package/dist/es2019/styles/shared/code-block.js +1 -164
- package/dist/es2019/styles/shared/date.js +1 -11
- package/dist/es2019/styles/shared/grid.js +1 -39
- package/dist/es2019/styles/shared/lists.js +1 -121
- package/dist/es2019/styles/shared/panel.js +1 -138
- package/dist/es2019/styles/shared/resizer.js +2 -211
- package/dist/es2019/styles/shared/smart-card.js +1 -24
- package/dist/es2019/styles/shared/smartCard.js +1 -151
- package/dist/es2019/styles/shared/task-decision.js +1 -63
- package/dist/es2019/styles/shared/unsupported-content.js +1 -27
- package/dist/es2019/transforms/index.js +2 -1
- package/dist/es2019/transforms/sync-block.js +15 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/sharedStyles.js +1 -113
- package/dist/es2019/ui/index.js +0 -1
- package/dist/es2019/utils/compareNodes.js +6 -0
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/index.js +11 -23
- package/dist/esm/styles/shared/annotation.js +0 -67
- package/dist/esm/styles/shared/code-block.js +1 -15
- package/dist/esm/styles/shared/date.js +1 -9
- package/dist/esm/styles/shared/grid.js +1 -39
- package/dist/esm/styles/shared/lists.js +1 -10
- package/dist/esm/styles/shared/panel.js +0 -37
- package/dist/esm/styles/shared/resizer.js +2 -202
- package/dist/esm/styles/shared/smart-card.js +0 -5
- package/dist/esm/styles/shared/smartCard.js +1 -15
- package/dist/esm/styles/shared/task-decision.js +1 -10
- package/dist/esm/styles/shared/unsupported-content.js +1 -11
- package/dist/esm/transforms/index.js +2 -1
- package/dist/esm/transforms/sync-block.js +18 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/sharedStyles.js +1 -96
- package/dist/esm/ui/index.js +0 -1
- package/dist/esm/utils/compareNodes.js +6 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/index.d.ts +11 -23
- package/dist/types/styles/shared/annotation.d.ts +0 -30
- package/dist/types/styles/shared/code-block.d.ts +0 -3
- package/dist/types/styles/shared/date.d.ts +0 -2
- package/dist/types/styles/shared/grid.d.ts +0 -2
- package/dist/types/styles/shared/lists.d.ts +0 -2
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/styles/shared/resizer.d.ts +0 -4
- package/dist/types/styles/shared/smart-card.d.ts +0 -2
- package/dist/types/styles/shared/smartCard.d.ts +0 -1
- package/dist/types/styles/shared/task-decision.d.ts +0 -2
- package/dist/types/styles/shared/unsupported-content.d.ts +0 -2
- package/dist/types/transforms/index.d.ts +1 -0
- package/dist/types/transforms/sync-block.d.ts +2 -0
- package/dist/types/ui/Expand/sharedStyles.d.ts +0 -6
- package/dist/types/ui/index.d.ts +0 -2
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/index.d.ts +11 -23
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -30
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/date.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -2
- package/dist/types-ts4.5/transforms/index.d.ts +1 -0
- package/dist/types-ts4.5/transforms/sync-block.d.ts +2 -0
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -6
- package/dist/types-ts4.5/ui/index.d.ts +0 -2
- package/package.json +5 -2
- package/dist/cjs/styles/shared/background-color.js +0 -33
- package/dist/cjs/styles/shared/block-marks.js +0 -14
- package/dist/cjs/styles/shared/code-mark.js +0 -32
- package/dist/cjs/styles/shared/column-layout.js +0 -70
- package/dist/cjs/styles/shared/embedCard.js +0 -42
- package/dist/cjs/styles/shared/indentation.js +0 -40
- package/dist/cjs/styles/shared/link.js +0 -24
- package/dist/cjs/styles/shared/paragraph.js +0 -39
- package/dist/cjs/styles/shared/rule.js +0 -24
- package/dist/cjs/styles/shared/shadow.js +0 -64
- package/dist/cjs/styles/shared/text-color.js +0 -20
- package/dist/cjs/styles/shared/whitespace.js +0 -15
- package/dist/es2019/styles/shared/background-color.js +0 -26
- package/dist/es2019/styles/shared/block-marks.js +0 -37
- package/dist/es2019/styles/shared/code-mark.js +0 -25
- package/dist/es2019/styles/shared/column-layout.js +0 -66
- package/dist/es2019/styles/shared/embedCard.js +0 -33
- package/dist/es2019/styles/shared/indentation.js +0 -34
- package/dist/es2019/styles/shared/link.js +0 -18
- package/dist/es2019/styles/shared/paragraph.js +0 -32
- package/dist/es2019/styles/shared/rule.js +0 -15
- package/dist/es2019/styles/shared/shadow.js +0 -69
- package/dist/es2019/styles/shared/text-color.js +0 -14
- package/dist/es2019/styles/shared/whitespace.js +0 -9
- package/dist/esm/styles/shared/background-color.js +0 -26
- package/dist/esm/styles/shared/block-marks.js +0 -8
- package/dist/esm/styles/shared/code-mark.js +0 -25
- package/dist/esm/styles/shared/column-layout.js +0 -63
- package/dist/esm/styles/shared/embedCard.js +0 -35
- package/dist/esm/styles/shared/indentation.js +0 -34
- package/dist/esm/styles/shared/link.js +0 -18
- package/dist/esm/styles/shared/paragraph.js +0 -32
- package/dist/esm/styles/shared/rule.js +0 -17
- package/dist/esm/styles/shared/shadow.js +0 -57
- package/dist/esm/styles/shared/text-color.js +0 -14
- package/dist/esm/styles/shared/whitespace.js +0 -9
- package/dist/types/styles/shared/background-color.d.ts +0 -1
- package/dist/types/styles/shared/block-marks.d.ts +0 -2
- package/dist/types/styles/shared/code-mark.d.ts +0 -1
- package/dist/types/styles/shared/column-layout.d.ts +0 -4
- package/dist/types/styles/shared/embedCard.d.ts +0 -3
- package/dist/types/styles/shared/indentation.d.ts +0 -2
- package/dist/types/styles/shared/link.d.ts +0 -2
- package/dist/types/styles/shared/paragraph.d.ts +0 -1
- package/dist/types/styles/shared/rule.d.ts +0 -1
- package/dist/types/styles/shared/shadow.d.ts +0 -15
- package/dist/types/styles/shared/text-color.d.ts +0 -2
- package/dist/types/styles/shared/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/background-color.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import { mapSlice } from '../utils/slice';
|
|
3
|
+
export const transformToNewReferenceSyncBlock = (slice, schema) => {
|
|
4
|
+
slice = mapSlice(slice, node => {
|
|
5
|
+
if (node.type === schema.nodes.syncBlock) {
|
|
6
|
+
const newAttrs = {
|
|
7
|
+
...node.attrs,
|
|
8
|
+
localId: uuid.generate()
|
|
9
|
+
};
|
|
10
|
+
return schema.nodes.syncBlock.create(newAttrs, null, [...node.marks]);
|
|
11
|
+
}
|
|
12
|
+
return node;
|
|
13
|
+
});
|
|
14
|
+
return slice;
|
|
15
|
+
};
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "110.
|
|
17
|
+
const packageVersion = "110.9.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,113 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
const BORDER_RADIUS = "var(--ds-radius-small, 4px)";
|
|
6
|
-
const EXPAND_COLLAPSED_BACKGROUND = "var(--ds-background-neutral-subtle, transparent)";
|
|
7
|
-
const EXPAND_SELECTED_BACKGROUND = "var(--ds-surface, rgba(255, 255, 255, 0.6))";
|
|
8
|
-
const EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused, #388BFF)";
|
|
9
|
-
const EXPAND_COLLAPSED_BORDER_COLOR = 'transparent';
|
|
10
|
-
const EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border, #091E4224)";
|
|
11
|
-
export const EXPAND_CONTAINER_PADDING = 8;
|
|
12
|
-
const containerStyles = styleProps => {
|
|
13
|
-
const {
|
|
14
|
-
expanded,
|
|
15
|
-
focused
|
|
16
|
-
} = styleProps;
|
|
17
|
-
const marginTop = "var(--ds-space-050, 0.25rem)";
|
|
18
|
-
const marginBottom = 0;
|
|
19
|
-
// Only only these margins if the expand isn't editable
|
|
20
|
-
// and is the root level expand.
|
|
21
|
-
const marginHorizontal = styleProps['data-node-type'] === 'expand' ? `-${akLayoutGutterOffset}px` : 0;
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
-
const margin = `${marginTop} ${marginHorizontal} ${marginBottom}`;
|
|
24
|
-
return () => css({
|
|
25
|
-
borderWidth: "var(--ds-border-width, 1px)",
|
|
26
|
-
borderStyle: 'solid',
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
-
borderColor: focused ? EXPAND_FOCUSED_BORDER_COLOR : expanded ? EXPAND_EXPANDED_BORDER_COLOR : EXPAND_COLLAPSED_BORDER_COLOR,
|
|
29
|
-
borderRadius: BORDER_RADIUS,
|
|
30
|
-
minHeight: '25px',
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
-
background: !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND,
|
|
33
|
-
margin: margin,
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
-
transition: `background 0.3s ${akEditorSwoopCubicBezier}, border-color 0.3s ${akEditorSwoopCubicBezier}`,
|
|
36
|
-
padding: `var(--ds-space-100, ${`${EXPAND_CONTAINER_PADDING}px`})`,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
|
-
'td > :not(style):first-child, td > style:first-child + *': {
|
|
39
|
-
marginTop: 0
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
const contentStyles = styleProps => () =>
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
45
|
-
css`
|
|
46
|
-
padding-top: ${styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"};
|
|
47
|
-
padding-right: ${"var(--ds-space-100, 8px)"};
|
|
48
|
-
padding-left: ${"var(--ds-space-300, 24px)"};
|
|
49
|
-
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
50
|
-
display: flow-root;
|
|
51
|
-
|
|
52
|
-
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
53
|
-
The fix is targeting mobile bridge on iOS 12 or below,
|
|
54
|
-
We should consider remove this fix when we no longer support iOS 12 */
|
|
55
|
-
@supports not (display: flow-root) {
|
|
56
|
-
width: 100%;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
${!styleProps.expanded ? `
|
|
61
|
-
.expand-content-wrapper, .nestedExpand-content-wrapper {
|
|
62
|
-
/* We visually hide the content here to preserve the content during copy+paste */
|
|
63
|
-
/* Do not add text nowrap here because inline comment navigation depends on the location of the text */
|
|
64
|
-
width: 100%;
|
|
65
|
-
display: block;
|
|
66
|
-
height: 0;
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
69
|
-
user-select: none;
|
|
70
|
-
}
|
|
71
|
-
` : ''}
|
|
72
|
-
`;
|
|
73
|
-
const titleInputStyles = () => css({
|
|
74
|
-
outline: 'none',
|
|
75
|
-
border: 'none',
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
|
-
fontSize: relativeFontSizeToBase16(14),
|
|
78
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
79
|
-
lineHeight: fg('platform-visual-refresh-icons') ? 1 : akEditorLineHeight,
|
|
80
|
-
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
81
|
-
color: "var(--ds-text-subtlest, #626F86)",
|
|
82
|
-
background: 'transparent',
|
|
83
|
-
display: 'flex',
|
|
84
|
-
flex: 1,
|
|
85
|
-
padding: `0 0 0 ${"var(--ds-space-050, 4px)"}`,
|
|
86
|
-
width: '100%',
|
|
87
|
-
'&::placeholder': {
|
|
88
|
-
opacity: 1,
|
|
89
|
-
color: "var(--ds-text-subtlest, #626F86)"
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
const titleContainerStyles = () => css({
|
|
93
|
-
padding: 0,
|
|
94
|
-
display: 'flex',
|
|
95
|
-
alignItems: 'flex-start',
|
|
96
|
-
background: 'none',
|
|
97
|
-
border: 'none',
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
99
|
-
fontSize: relativeFontSizeToBase16(14),
|
|
100
|
-
width: '100%',
|
|
101
|
-
color: "var(--ds-text-subtle, #44546F)",
|
|
102
|
-
overflow: 'hidden',
|
|
103
|
-
cursor: 'pointer',
|
|
104
|
-
'&:focus': {
|
|
105
|
-
outline: 0
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
export const sharedExpandStyles = {
|
|
109
|
-
titleInputStyles,
|
|
110
|
-
titleContainerStyles,
|
|
111
|
-
containerStyles,
|
|
112
|
-
contentStyles
|
|
113
|
-
};
|
|
1
|
+
export const EXPAND_CONTAINER_PADDING = 8;
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -18,7 +18,6 @@ export { default as overflowShadow, shadowClassNames } from './OverflowShadow';
|
|
|
18
18
|
export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
|
|
19
19
|
export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
|
|
20
20
|
export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef } from './Expand';
|
|
21
|
-
export { sharedExpandStyles } from './Expand/sharedStyles';
|
|
22
21
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
23
22
|
export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from './clear-next-sibling-margin-top';
|
|
24
23
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { SortOrder } from '../types';
|
|
2
3
|
export let ContentType = /*#__PURE__*/function (ContentType) {
|
|
3
4
|
ContentType[ContentType["NUMBER"] = 0] = "NUMBER";
|
|
@@ -225,6 +226,11 @@ function compareMetaFromNode(metaNodeA, metaNodeB) {
|
|
|
225
226
|
if (metaNodeA === null || metaNodeB === null) {
|
|
226
227
|
return metaNodeB === null ? -1 : 1;
|
|
227
228
|
}
|
|
229
|
+
if (fg('platform_editor_fix_mixed_types_column_sort')) {
|
|
230
|
+
if (metaNodeA.type === ContentType.TEXT && metaNodeB.type === ContentType.NUMBER || metaNodeA.type === ContentType.NUMBER && metaNodeB.type === ContentType.TEXT) {
|
|
231
|
+
return compareValue(String(metaNodeA.value), String(metaNodeB.value));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
228
234
|
if (metaNodeA.type !== metaNodeB.type) {
|
|
229
235
|
return metaNodeA.type > metaNodeB.type ? 1 : -1;
|
|
230
236
|
}
|
|
@@ -324,7 +324,7 @@ function MobileBrowser(_ref) {
|
|
|
324
324
|
_ref$focusOnEmptyStat = _ref.focusOnEmptyStateButton,
|
|
325
325
|
focusOnEmptyStateButton = _ref$focusOnEmptyStat === void 0 ? false : _ref$focusOnEmptyStat;
|
|
326
326
|
return (
|
|
327
|
-
// eslint-disable-next-line
|
|
327
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
328
328
|
jsx("div", {
|
|
329
329
|
css: mobileElementBrowserContainer,
|
|
330
330
|
onKeyDown: onKeyDown,
|
|
@@ -154,7 +154,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
154
154
|
'extension-icon': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true)
|
|
155
155
|
});
|
|
156
156
|
return (
|
|
157
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions,
|
|
157
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
158
158
|
jsx("div", {
|
|
159
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
160
160
|
css: containerStyles
|
|
@@ -33,7 +33,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
|
33
33
|
var borderStyleVars = borderSize && borderColor ? _defineProperty(_defineProperty({}, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, hexToEditorBorderPaletteColor(borderColor) || borderColor) : {};
|
|
34
34
|
var aspectStyleVars = aspectRatio ? _defineProperty({}, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
|
|
35
35
|
return (
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
37
37
|
jsx("span", _extends({
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
39
|
style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "110.
|
|
10
|
+
var packageVersion = "110.9.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
package/dist/esm/panel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Disable no-re-export rule for entry point files
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
|
|
4
|
-
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors,
|
|
4
|
+
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, PanelSharedCssClassName, PanelSharedSelectors } from './styles/shared/panel';
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
// Disable no-re-export rule for entry point files
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
|
|
4
|
-
export { textColorStyles } from './shared/text-color';
|
|
5
|
-
export { backgroundColorStyles } from './shared/background-color';
|
|
6
4
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, tableControlsSpacing, tablePadding } from './shared/table';
|
|
7
|
-
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames
|
|
8
|
-
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle, columnLayoutResponsiveRendererStyles } from './shared/column-layout';
|
|
5
|
+
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames } from './shared/annotation';
|
|
9
6
|
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName } from './shared/media-single';
|
|
10
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
11
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { linkSharedStyle } from './shared/link';
|
|
16
|
-
export { listsSharedStyles, listItemCounterPadding, getOrderedListInlineStyles } from './shared/lists';
|
|
17
|
-
export { indentationSharedStyles } from './shared/indentation';
|
|
18
|
-
export { blockMarksSharedStyles } from './shared/block-marks';
|
|
19
|
-
export { codeMarkSharedStyles } from './shared/code-mark';
|
|
20
|
-
export { shadowSharedStyle } from './shared/shadow';
|
|
21
|
-
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
22
|
-
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
9
|
+
export { listItemCounterPadding, getOrderedListInlineStyles } from './shared/lists';
|
|
10
|
+
export { DateSharedCssClassName } from './shared/date';
|
|
11
|
+
export { TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
23
12
|
export { StatusSharedCssClassName } from './shared/status';
|
|
24
|
-
export {
|
|
13
|
+
export { SmartCardSharedCssClassName } from './shared/smart-card';
|
|
25
14
|
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
26
|
-
export { CodeBlockSharedCssClassName
|
|
15
|
+
export { CodeBlockSharedCssClassName } from './shared/code-block';
|
|
27
16
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH } from './shared/layout';
|
|
28
17
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
29
|
-
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
18
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
|
|
19
|
+
export { GRID_GUTTER } from './shared/grid';
|
|
20
|
+
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
|
|
33
21
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
|
|
34
|
-
export { UnsupportedSharedCssClassName
|
|
22
|
+
export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
|
|
35
23
|
export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle } from './shared/expand';
|
|
36
|
-
export {
|
|
24
|
+
export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
|
|
37
25
|
export { ClassNames as MediaSharedClassNames } from './shared/media';
|
|
38
26
|
export { BreakoutCssClassName } from './shared/breakout';
|
|
39
27
|
export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
1
|
export var annotationPrefix = 'ak-editor-annotation';
|
|
7
2
|
export var AnnotationSharedClassNames = {
|
|
8
3
|
focus: "".concat(annotationPrefix, "-focus"),
|
|
@@ -15,66 +10,4 @@ export var BlockAnnotationSharedClassNames = {
|
|
|
15
10
|
focus: "".concat(blockAnnotationPrefix, "-focus"),
|
|
16
11
|
blur: "".concat(blockAnnotationPrefix, "-blur"),
|
|
17
12
|
draft: "".concat(blockAnnotationPrefix, "-draft")
|
|
18
|
-
};
|
|
19
|
-
export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
20
|
-
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
21
|
-
// NOTE: These styles are shared between renderer and editor. Sometimes they
|
|
22
|
-
// need different selectors and other times they apply the same attributes
|
|
23
|
-
// in a different way. For example in renderer the focus styles are an
|
|
24
|
-
// override, not a separate class. Be sure to check both usages of this
|
|
25
|
-
// before modifying.
|
|
26
|
-
return {
|
|
27
|
-
common: {
|
|
28
|
-
borderBottom: '2px solid transparent',
|
|
29
|
-
cursor: 'pointer',
|
|
30
|
-
padding: '1px 0 2px',
|
|
31
|
-
'&:has(.card), &:has([data-inline-card])': fg('annotations_align_editor_and_renderer_styles') ? {
|
|
32
|
-
padding: '5px 0 3px 0'
|
|
33
|
-
} : {
|
|
34
|
-
paddingTop: '4px',
|
|
35
|
-
border: 'none',
|
|
36
|
-
boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, #B38600)")
|
|
37
|
-
},
|
|
38
|
-
'&:has(.date-lozenger-container)': {
|
|
39
|
-
paddingTop: '2px'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
focus: css({
|
|
43
|
-
background: "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)",
|
|
44
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
45
|
-
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
|
|
46
|
-
}),
|
|
47
|
-
blur: css({
|
|
48
|
-
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
49
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
50
|
-
}),
|
|
51
|
-
hover: css({
|
|
52
|
-
background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
|
|
53
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
54
|
-
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
|
|
55
|
-
})
|
|
56
|
-
};
|
|
57
|
-
} else {
|
|
58
|
-
return {
|
|
59
|
-
focus: css({
|
|
60
|
-
// Background is not coming through in confluence, suspecting to be caused by some specific combination of
|
|
61
|
-
// emotion and token look up
|
|
62
|
-
background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
63
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
|
|
64
|
-
// TODO: DSP-4147 - Annotation shadow
|
|
65
|
-
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
66
|
-
cursor: 'pointer'
|
|
67
|
-
}),
|
|
68
|
-
blur: css({
|
|
69
|
-
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
70
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
|
|
71
|
-
cursor: 'pointer'
|
|
72
|
-
})
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
export var annotationSharedStyles = function annotationSharedStyles() {
|
|
77
|
-
return fg('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
78
|
-
css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, AnnotationSharedClassNames.hover, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().hover) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
79
|
-
css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
|
|
80
13
|
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
|
-
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
-
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
1
|
export var CodeBlockSharedCssClassName = {
|
|
8
2
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
9
3
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -14,12 +8,4 @@ export var CodeBlockSharedCssClassName = {
|
|
|
14
8
|
DS_CODEBLOCK: '[data-ds--code--code-block]',
|
|
15
9
|
CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
|
|
16
10
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
|
|
17
|
-
};
|
|
18
|
-
export var codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
19
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t/* This is a fix of marker of list item with code block.\n\t\t The list item marker in Chrome is aligned by the baseline of the text,\n\t\t that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t the list item marker with the text.\n\t\t Without it, the list item marker will be aligned by the bottom of the code block. */\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-radius-small, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-radius-small, 3px)", overflowShadow({
|
|
20
|
-
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
21
|
-
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-radius-small, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
25
|
-
export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), akEditorLineHeight, akEditorLineHeight);
|
|
11
|
+
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
1
|
export var DateSharedCssClassName = {
|
|
5
2
|
DATE_WRAPPER: "date-lozenger-container",
|
|
6
3
|
DATE_CONTAINER: 'dateView-content-wrap'
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
|
-
export var dateSharedStyle = css(_defineProperty({}, ".".concat(DateSharedCssClassName.DATE_WRAPPER, " span"), {
|
|
11
|
-
whiteSpace: 'unset'
|
|
12
|
-
}));
|
|
4
|
+
};
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
export var GRID_GUTTER = 12;
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
-
export var gridStyles = css({
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
|
-
'.gridParent': {
|
|
10
|
-
width: "calc(100% + ".concat(GRID_GUTTER * 2, "px)"),
|
|
11
|
-
marginLeft: "var(--ds-space-negative-150, -12px)",
|
|
12
|
-
marginRight: "var(--ds-space-negative-150, -12px)",
|
|
13
|
-
transform: 'scale(1)',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
-
zIndex: akEditorGridLineZIndex
|
|
16
|
-
},
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
|
-
'.gridContainer': {
|
|
19
|
-
position: 'fixed',
|
|
20
|
-
height: '100vh',
|
|
21
|
-
width: '100%',
|
|
22
|
-
pointerEvents: 'none'
|
|
23
|
-
},
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
-
'.gridLine': {
|
|
26
|
-
borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
27
|
-
display: 'inline-block',
|
|
28
|
-
boxSizing: 'border-box',
|
|
29
|
-
height: '100%',
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
31
|
-
marginLeft: '-1px',
|
|
32
|
-
transition: 'border-color 0.15s linear',
|
|
33
|
-
zIndex: 0
|
|
34
|
-
},
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
|
-
'.highlight': {
|
|
37
|
-
borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
export var GRID_GUTTER = 12;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
var _templateObject;
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
-
import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
|
|
8
|
-
import { browser } from '../../utils/browser';
|
|
9
3
|
export var listItemCounterPadding = 24;
|
|
10
4
|
var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
|
|
11
5
|
CSS_VAR_NAMES["ITEM_COUNTER_PADDING"] = "--ed--list--item-counter--padding";
|
|
@@ -45,7 +39,4 @@ export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat
|
|
|
45
39
|
return stringifyStyle(style);
|
|
46
40
|
}
|
|
47
41
|
return style;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, 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…
|
|
51
|
-
export var listsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t/* For older browsers the do not support flow-root. */\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, browser.gecko ? 'display: inline-block;' : '', orderedListSelector, bulletListSelector);
|
|
42
|
+
}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
var _templateObject;
|
|
4
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
8
2
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
9
|
-
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
11
|
-
import { emojiImage, emojiSprite } from '@atlaskit/emoji';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
3
|
var lightPanelColors = {
|
|
14
4
|
info: '#DEEBFF',
|
|
15
5
|
note: '#EAE6FF',
|
|
@@ -80,19 +70,6 @@ export var darkPanelColors = {
|
|
|
80
70
|
LightGray: '#5A6977',
|
|
81
71
|
TextColor: '#D9DDE3'
|
|
82
72
|
};
|
|
83
|
-
var lightIconColor = {
|
|
84
|
-
info: "var(--ds-icon-information, #1D7AFC)",
|
|
85
|
-
note: "var(--ds-icon-discovery, #8270DB)",
|
|
86
|
-
tip: "var(--ds-icon-success, #22A06B)",
|
|
87
|
-
success: "var(--ds-icon-success, #22A06B)",
|
|
88
|
-
warning: "var(--ds-icon-warning, #E56910)",
|
|
89
|
-
error: "var(--ds-icon-danger, #C9372C)"
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// New custom icons are a little smaller than predefined icons.
|
|
93
|
-
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
94
|
-
var panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
|
|
95
|
-
var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
96
73
|
export function getPanelDarkModeCSS(colorName, colorValue) {
|
|
97
74
|
return "\n &[data-panel-color=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n color: ").concat(darkPanelColors.TextColor, ";\n }\n ");
|
|
98
75
|
}
|
|
@@ -126,9 +103,6 @@ export var PanelSharedSelectors = {
|
|
|
126
103
|
yellowWarningIcon: "[aria-label=\":warning:\"] span:nth-child(1)",
|
|
127
104
|
copyButton: "button[aria-label=\"Copy\"]"
|
|
128
105
|
};
|
|
129
|
-
var getIconStyles = function getIconStyles(panelType) {
|
|
130
|
-
return "\n\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t}\n\t");
|
|
131
|
-
};
|
|
132
106
|
|
|
133
107
|
// Provides the color without tokens, used when converting to a custom panel
|
|
134
108
|
export var getPanelTypeBackgroundNoTokens = function getPanelTypeBackgroundNoTokens(panelType) {
|
|
@@ -136,15 +110,4 @@ export var getPanelTypeBackgroundNoTokens = function getPanelTypeBackgroundNoTok
|
|
|
136
110
|
};
|
|
137
111
|
export var getPanelTypeBackground = function getPanelTypeBackground(panelType) {
|
|
138
112
|
return hexToEditorBackgroundPaletteColor(lightPanelColors[panelType]) || 'none';
|
|
139
|
-
};
|
|
140
|
-
var mainDynamicStyles = function mainDynamicStyles(panelType) {
|
|
141
|
-
return "\n background-color: ".concat(getPanelTypeBackground(panelType), ";\n color: inherit;\n ");
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
// 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…
|
|
145
|
-
export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
|
|
146
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t/* Vertical align only works for inline-block elements in Firefox */\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t/* support nested panel */\n\t.", " .", " {\n\t\tborder: 1px solid ", ";\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t", "\n"])), "var(--ds-radius-small, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelSharedCssClassName.content, prefix, "var(--ds-border, #091E42)", PanelType.INFO, getIconStyles(PanelType.INFO), PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), getIconStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), getIconStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), getIconStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), getIconStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), getIconStyles(PanelType.SUCCESS), fg('platform_editor_nested_dnd_styles_changes') ? "&.".concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\t\t}") : '');
|
|
147
|
-
};
|
|
148
|
-
export var panelSharedStyles = function panelSharedStyles() {
|
|
149
|
-
return css(_defineProperty({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
|
|
150
113
|
};
|