@atlaskit/editor-common 112.7.3 → 112.7.5
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 +16 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/ui/assets/card.js +3 -1
- package/dist/cjs/card/ui/assets/embed.js +3 -1
- package/dist/cjs/card/ui/assets/inline.js +3 -1
- package/dist/cjs/card/ui/assets/url.js +3 -1
- package/dist/cjs/element-browser/components/CategoryList.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension.js +3 -1
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +4 -3
- package/dist/cjs/keymaps/index.js +1 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +5 -3
- package/dist/cjs/mark/commands.js +5 -3
- package/dist/cjs/media-inline/inline-image-card.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +6 -2
- package/dist/cjs/media-single/CommentBadge.js +6 -4
- package/dist/cjs/media-single/CommentBadgeNext.js +3 -1
- package/dist/cjs/media-single/MediaBadges.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +3 -9
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/cjs/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/cjs/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/Resizer.js +6 -2
- package/dist/cjs/styles/shared/blockquote.js +1 -1
- package/dist/cjs/styles/shared/table.js +3 -3
- package/dist/cjs/table/SortingIcon.js +3 -3
- package/dist/cjs/toolbar/context.js +1 -0
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/cjs/ui/ContextPanel/context.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +4 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/cjs/ui/Mention/index.js +3 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/TableSelector/index.js +6 -5
- package/dist/cjs/ui/TableSelector/table-selector.js +9 -10
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +21 -10
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/ui/assets/card.js +3 -1
- package/dist/es2019/card/ui/assets/embed.js +3 -1
- package/dist/es2019/card/ui/assets/inline.js +3 -1
- package/dist/es2019/card/ui/assets/url.js +3 -1
- package/dist/es2019/element-browser/components/CategoryList.js +2 -2
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +9 -3
- package/dist/es2019/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension.js +3 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +3 -2
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/es2019/mark/commands.js +5 -3
- package/dist/es2019/media-inline/inline-image-card.js +3 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +6 -2
- package/dist/es2019/media-single/CommentBadge.js +6 -4
- package/dist/es2019/media-single/CommentBadgeNext.js +3 -1
- package/dist/es2019/media-single/MediaBadges.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +4 -10
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/es2019/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/es2019/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +3 -1
- package/dist/es2019/resizer/Resizer.js +6 -2
- package/dist/es2019/styles/shared/blockquote.js +2 -2
- package/dist/es2019/styles/shared/table.js +13 -14
- package/dist/es2019/table/SortingIcon.js +4 -4
- package/dist/es2019/toolbar/context.js +1 -0
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/es2019/ui/ContextPanel/context.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/es2019/ui/Mention/index.js +3 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/TableSelector/index.js +6 -5
- package/dist/es2019/ui/TableSelector/table-selector.js +9 -10
- package/dist/es2019/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +25 -14
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/ui/assets/card.js +3 -1
- package/dist/esm/card/ui/assets/embed.js +3 -1
- package/dist/esm/card/ui/assets/inline.js +3 -1
- package/dist/esm/card/ui/assets/url.js +3 -1
- package/dist/esm/element-browser/components/CategoryList.js +2 -2
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +9 -3
- package/dist/esm/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension.js +3 -1
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +4 -3
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/esm/mark/commands.js +5 -3
- package/dist/esm/media-inline/inline-image-card.js +3 -1
- package/dist/esm/media-inline/media-inline-image-card.js +6 -2
- package/dist/esm/media-single/CommentBadge.js +6 -4
- package/dist/esm/media-single/CommentBadgeNext.js +3 -1
- package/dist/esm/media-single/MediaBadges.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +4 -10
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/esm/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/esm/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +3 -1
- package/dist/esm/resizer/Resizer.js +6 -2
- package/dist/esm/styles/shared/blockquote.js +2 -2
- package/dist/esm/styles/shared/table.js +4 -4
- package/dist/esm/table/SortingIcon.js +3 -3
- package/dist/esm/toolbar/context.js +1 -0
- package/dist/esm/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/esm/ui/ContextPanel/context.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +4 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/esm/ui/Mention/index.js +3 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/TableSelector/index.js +6 -5
- package/dist/esm/ui/TableSelector/table-selector.js +9 -10
- package/dist/esm/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +21 -10
- package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +4 -5
|
@@ -33,7 +33,9 @@ export const CommentBadgeNext = ({
|
|
|
33
33
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
34
34
|
position: "top",
|
|
35
35
|
content: title
|
|
36
|
-
}, /*#__PURE__*/React.createElement(Pressable
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Pressable
|
|
37
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
38
|
+
, {
|
|
37
39
|
xcss: [baseStyles, mediumBadgeStyles],
|
|
38
40
|
padding: "space.0",
|
|
39
41
|
onClick: onClick,
|
|
@@ -77,7 +77,9 @@ export const MediaBadges = ({
|
|
|
77
77
|
as: "div",
|
|
78
78
|
testId: "media-badges",
|
|
79
79
|
"data-media-badges": "true",
|
|
80
|
-
contentEditable: false
|
|
80
|
+
contentEditable: false
|
|
81
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
82
|
+
,
|
|
81
83
|
xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
|
|
82
84
|
}, children);
|
|
83
85
|
};
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "112.7.
|
|
7
|
+
const packageVersion = "112.7.4";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth,
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
6
5
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
7
6
|
import { tableCellPadding } from '../styles/shared/table';
|
|
@@ -54,17 +53,12 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
54
53
|
};
|
|
55
54
|
switch (node.type) {
|
|
56
55
|
case schema.nodes.layoutSection:
|
|
57
|
-
// the extra width of the layout does not add to the width of the area the table can be inside
|
|
58
|
-
if (!expValEquals('platform_editor_nested_table_refresh_width_fix', 'isEnabled', true)) {
|
|
59
|
-
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
// Calculate width of parent layout column when
|
|
63
57
|
// Parallel layout with viewport greater than 1024px
|
|
64
58
|
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
65
59
|
if (containerWidth.width > gridMediumMaxWidth || ((_contextPanelPluginKe = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe === void 0 ? void 0 : _contextPanelPluginKe.contents.length) > 0 && ((_contextPanelPluginKe2 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe2 === void 0 ? void 0 : _contextPanelPluginKe2.contents[0]) !== undefined) {
|
|
66
60
|
// margin between sections
|
|
67
|
-
parentWidth -=
|
|
61
|
+
parentWidth -= fg('platform_editor_nested_dnd_styles_changes') ? (LAYOUT_SECTION_MARGIN + NESTED_DND_MARGIN_OFFSET + 2) * (node.childCount - 1) : (LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1);
|
|
68
62
|
const $pos = state.doc.resolve(pos);
|
|
69
63
|
const column = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.layoutColumn]);
|
|
70
64
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -74,7 +68,7 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
// account for the padding of the parent node
|
|
77
|
-
parentWidth -=
|
|
71
|
+
parentWidth -= fg('platform_editor_nested_dnd_styles_changes') ? (LAYOUT_COLUMN_PADDING + NESTED_DND_GUTTER_OFFSET) * 2 : LAYOUT_COLUMN_PADDING * 2;
|
|
78
72
|
break;
|
|
79
73
|
case schema.nodes.bodiedExtension:
|
|
80
74
|
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
@@ -115,7 +109,7 @@ const getNestedParentNode = (tablePos, state) => {
|
|
|
115
109
|
return parent ? parent.node : null;
|
|
116
110
|
};
|
|
117
111
|
const calcBreakoutNodeWidth = (layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) => {
|
|
118
|
-
if (breakoutWidth
|
|
112
|
+
if (breakoutWidth) {
|
|
119
113
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, breakoutWidth) :
|
|
120
114
|
// container width minus breakout padding
|
|
121
115
|
// --ak-editor--breakout-full-page-guttering-padding = (--ak-editor--large-gutter-padding * 2) + --ak-editor--default-gutter-padding
|
|
@@ -97,13 +97,13 @@ const linkify = state => {
|
|
|
97
97
|
//
|
|
98
98
|
if (!links[ln].schema) {
|
|
99
99
|
// Ignored via go/ees005
|
|
100
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
100
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
101
101
|
urlText = state.md.normalizeLinkText('http://' + urlText).replace(/^http:\/\//, '');
|
|
102
102
|
// Ignored via go/ees005
|
|
103
103
|
// eslint-disable-next-line require-unicode-regexp
|
|
104
104
|
} else if (links[ln].schema === 'mailto:' && !/^mailto:/i.test(urlText)) {
|
|
105
105
|
// Ignored via go/ees005
|
|
106
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
106
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
107
107
|
urlText = state.md.normalizeLinkText('mailto:' + urlText).replace(/^mailto:/, '');
|
|
108
108
|
} else {
|
|
109
109
|
urlText = state.md.normalizeLinkText(urlText);
|
|
@@ -13,18 +13,18 @@ export default function IconDatasourceAssetsObjects() {
|
|
|
13
13
|
y: "0",
|
|
14
14
|
width: "42",
|
|
15
15
|
height: "42",
|
|
16
|
-
fill: "var(--ds-background-accent-purple-subtlest, #
|
|
16
|
+
fill: "var(--ds-background-accent-purple-subtlest, #F8EEFE)"
|
|
17
17
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
18
18
|
x: "8",
|
|
19
19
|
y: "8",
|
|
20
20
|
width: "26",
|
|
21
21
|
height: "26",
|
|
22
22
|
rx: "4",
|
|
23
|
-
fill: "var(--ds-background-input,
|
|
23
|
+
fill: "var(--ds-background-input, #FFFFFF)"
|
|
24
24
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
25
|
fillRule: "evenodd",
|
|
26
26
|
clipRule: "evenodd",
|
|
27
27
|
d: "M12.667 9.33317H29.3337C31.1746 9.33317 32.667 10.8256 32.667 12.6665V29.3332C32.667 31.1741 31.1746 32.6665 29.3337 32.6665H12.667C10.826 32.6665 9.33366 31.1741 9.33366 29.3332V12.6665C9.33366 10.8256 10.826 9.33317 12.667 9.33317ZM7.66699 12.6665C7.66699 9.90508 9.90557 7.6665 12.667 7.6665H29.3337C32.0951 7.6665 34.3337 9.90508 34.3337 12.6665V29.3332C34.3337 32.0946 32.0951 34.3332 29.3337 34.3332H12.667C9.90557 34.3332 7.66699 32.0946 7.66699 29.3332V12.6665ZM12.9579 13.4165C12.9579 13.0023 13.2937 12.6665 13.7079 12.6665H17.6443C18.0585 12.6665 18.3943 13.0023 18.3943 13.4165V16.9165C18.3943 17.3307 18.0585 17.6665 17.6443 17.6665H16.5823V19.3332H22.0186V18.4165C22.0186 18.0023 22.3544 17.6665 22.7686 17.6665H26.7049C27.1192 17.6665 27.4549 18.0023 27.4549 18.4165V21.9165C27.4549 22.3307 27.1192 22.6665 26.7049 22.6665H22.7686C22.3544 22.6665 22.0186 22.3307 22.0186 21.9165V20.9998H16.5823V25.9998H22.0186V25.0832C22.0186 24.669 22.3544 24.3332 22.7686 24.3332H26.7049C27.1192 24.3332 27.4549 24.669 27.4549 25.0832V28.5832C27.4549 28.9974 27.1192 29.3332 26.7049 29.3332H22.7686C22.3544 29.3332 22.0186 28.9974 22.0186 28.5832V27.6665H16.4368C15.5163 27.6665 14.7701 26.9203 14.7701 25.9998V19.3332V17.6665H13.7079C13.2937 17.6665 12.9579 17.3307 12.9579 16.9165V13.4165ZM14.7701 14.5832C14.7701 14.4451 14.882 14.3332 15.0201 14.3332H16.3322C16.4703 14.3332 16.5822 14.4451 16.5822 14.5832V15.7498C16.5822 15.8879 16.4703 15.9998 16.3322 15.9998H15.0201C14.882 15.9998 14.7701 15.8879 14.7701 15.7498V14.5832ZM24.0805 19.3332C23.9425 19.3332 23.8305 19.4451 23.8305 19.5832V20.7498C23.8305 20.8879 23.9425 20.9998 24.0805 20.9998H25.3927C25.5307 20.9998 25.6427 20.8879 25.6427 20.7498V19.5832C25.6427 19.4451 25.5307 19.3332 25.3927 19.3332H24.0805ZM24.0805 25.9998C23.9425 25.9998 23.8305 26.1118 23.8305 26.2498V27.4165C23.8305 27.5546 23.9425 27.6665 24.0805 27.6665H25.3927C25.5307 27.6665 25.6427 27.5546 25.6427 27.4165V26.2498C25.6427 26.1118 25.5307 25.9998 25.3927 25.9998H24.0805Z",
|
|
28
|
-
fill: "var(--ds-background-accent-gray-bolder-hovered, #
|
|
28
|
+
fill: "var(--ds-background-accent-gray-bolder-hovered, #505258)"
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
@@ -36,7 +36,7 @@ export default function OneColumnLayoutIcon() {
|
|
|
36
36
|
width: "39",
|
|
37
37
|
height: "39",
|
|
38
38
|
rx: "2.5",
|
|
39
|
-
stroke: "var(--ds-border, #
|
|
39
|
+
stroke: "var(--ds-border, #0B120E24)",
|
|
40
40
|
strokeOpacity: "0.14"
|
|
41
41
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
42
42
|
x: "6",
|
|
@@ -36,7 +36,7 @@ export default function OneColumnLayoutIcon() {
|
|
|
36
36
|
width: "39",
|
|
37
37
|
height: "39",
|
|
38
38
|
rx: "2.5",
|
|
39
|
-
stroke: "var(--ds-border, #
|
|
39
|
+
stroke: "var(--ds-border, #0B120E24)",
|
|
40
40
|
strokeOpacity: "0.14"
|
|
41
41
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
42
42
|
x: "6",
|
|
@@ -35,7 +35,7 @@ export default function OneColumnLayoutIcon() {
|
|
|
35
35
|
width: "39",
|
|
36
36
|
height: "39",
|
|
37
37
|
rx: "2.5",
|
|
38
|
-
stroke: "var(--ds-border, #
|
|
38
|
+
stroke: "var(--ds-border, #0B120E24)",
|
|
39
39
|
strokeOpacity: "0.14"
|
|
40
40
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
41
41
|
x: "6",
|
|
@@ -43,7 +43,7 @@ export default function ThreeColumnLayoutIcon() {
|
|
|
43
43
|
width: "39",
|
|
44
44
|
height: "39",
|
|
45
45
|
rx: "2.5",
|
|
46
|
-
stroke: "var(--ds-border, #
|
|
46
|
+
stroke: "var(--ds-border, #0B120E24)",
|
|
47
47
|
strokeOpacity: "0.14"
|
|
48
48
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
49
49
|
x: "6",
|
|
@@ -36,7 +36,7 @@ export default function TwoColumnLayoutIcon() {
|
|
|
36
36
|
width: "39",
|
|
37
37
|
height: "39",
|
|
38
38
|
rx: "2.5",
|
|
39
|
-
stroke: "var(--ds-border, #
|
|
39
|
+
stroke: "var(--ds-border, #0B120E24)",
|
|
40
40
|
strokeOpacity: "0.14"
|
|
41
41
|
})), /*#__PURE__*/React.createElement("rect", {
|
|
42
42
|
x: "6",
|
|
@@ -325,7 +325,9 @@ const BreakoutResizer = ({
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
return /*#__PURE__*/React.createElement(Resizer, {
|
|
328
|
-
ref: resizerRef
|
|
328
|
+
ref: resizerRef
|
|
329
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
330
|
+
,
|
|
329
331
|
enable: {
|
|
330
332
|
left: true,
|
|
331
333
|
right: true
|
|
@@ -12,7 +12,7 @@ import { messages } from '../messages/breakout';
|
|
|
12
12
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
13
13
|
const resizerLabelStyles = xcss({
|
|
14
14
|
position: 'absolute',
|
|
15
|
-
bottom: "var(--ds-space-0,
|
|
15
|
+
bottom: "var(--ds-space-0, 0px)",
|
|
16
16
|
width: '100%',
|
|
17
17
|
overflow: 'visible',
|
|
18
18
|
display: 'flex',
|
|
@@ -113,6 +113,8 @@ const ResizerNext = (props, ref) => {
|
|
|
113
113
|
alignItems: handlePositioning === 'adjacent' ? 'center' : undefined
|
|
114
114
|
};
|
|
115
115
|
const offset = handlePositioning === 'adjacent' ? `calc(${baseHandleStyles.width} * -1)` : `calc(${baseHandleStyles.width} * -0.5)`;
|
|
116
|
+
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
116
118
|
const nextHandleStyles = SUPPORTED_HANDLES.reduce((result, position) => ({
|
|
117
119
|
...result,
|
|
118
120
|
[position]: {
|
|
@@ -198,7 +200,9 @@ const ResizerNext = (props, ref) => {
|
|
|
198
200
|
return snapGap;
|
|
199
201
|
}, [snap, snapGap]);
|
|
200
202
|
return /*#__PURE__*/React.createElement(Resizable, _extends({
|
|
201
|
-
ref: resizable
|
|
203
|
+
ref: resizable
|
|
204
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
205
|
+
,
|
|
202
206
|
size: {
|
|
203
207
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
204
208
|
// just content itself (no paddings)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import {
|
|
3
|
+
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const blockquoteSharedStyles = css({
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -11,7 +11,7 @@ export const blockquoteSharedStyles = css({
|
|
|
11
11
|
display: 'inline-block',
|
|
12
12
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
-
borderLeft:
|
|
14
|
+
borderLeft: `${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border, #0B120E24)"}`,
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
16
|
margin: `${blockNodesVerticalMargin} 0 0 0`,
|
|
17
17
|
marginRight: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
|
|
4
|
-
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName,
|
|
4
|
+
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
import { browser as browserLegacy, getBrowserInfo } from '../../utils/browser';
|
|
@@ -93,7 +93,7 @@ const tableSharedStyle = () => {
|
|
|
93
93
|
display: block;
|
|
94
94
|
width: 1px;
|
|
95
95
|
height: calc(100% - ${"var(--ds-space-300, 24px)"});
|
|
96
|
-
background: ${
|
|
96
|
+
background: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
97
97
|
position: absolute;
|
|
98
98
|
top: ${"var(--ds-space-300, 24px)"};
|
|
99
99
|
}
|
|
@@ -131,7 +131,7 @@ const tableSharedStyle = () => {
|
|
|
131
131
|
|
|
132
132
|
/* support panel nested in table */
|
|
133
133
|
${fg('platform_editor_bordered_panel_nested_in_table') ? `.${TableSharedCssClassName.TABLE_NODE_WRAPPER} .ak-editor-panel {
|
|
134
|
-
border: ${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #
|
|
134
|
+
border: ${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"};
|
|
135
135
|
}` : ''}
|
|
136
136
|
|
|
137
137
|
/* avoid applying styles to nested tables (possible via extensions) */
|
|
@@ -139,8 +139,7 @@ const tableSharedStyle = () => {
|
|
|
139
139
|
.${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table,
|
|
140
140
|
.${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
|
|
141
141
|
border-collapse: collapse;
|
|
142
|
-
border: ${tableCellBorderWidth}px solid
|
|
143
|
-
${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
|
|
142
|
+
border: ${tableCellBorderWidth}px solid ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
144
143
|
border-left-color: transparent;
|
|
145
144
|
border-right-color: transparent;
|
|
146
145
|
table-layout: fixed;
|
|
@@ -163,7 +162,7 @@ const tableSharedStyle = () => {
|
|
|
163
162
|
border-bottom: none;
|
|
164
163
|
}
|
|
165
164
|
th td {
|
|
166
|
-
background-color: ${"var(--ds-background-neutral-subtle,
|
|
165
|
+
background-color: ${"var(--ds-background-neutral-subtle, #00000000)"};
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
> tbody > tr > th,
|
|
@@ -171,7 +170,7 @@ const tableSharedStyle = () => {
|
|
|
171
170
|
min-width: ${tableCellMinWidth}px;
|
|
172
171
|
font-weight: ${"var(--ds-font-weight-regular, 400)"};
|
|
173
172
|
vertical-align: top;
|
|
174
|
-
border: 1px solid ${
|
|
173
|
+
border: 1px solid ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
175
174
|
border-right-width: 0;
|
|
176
175
|
border-bottom-width: 0;
|
|
177
176
|
|
|
@@ -193,17 +192,17 @@ const tableSharedStyle = () => {
|
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
th {
|
|
196
|
-
background-color: ${
|
|
195
|
+
background-color: ${"var(--ds-background-accent-gray-subtlest, #F0F1F2)"};
|
|
197
196
|
text-align: left;
|
|
198
197
|
|
|
199
198
|
/* only apply this styling to codeblocks in default background headercells */
|
|
200
199
|
/* TODO this needs to be overhauled as it relies on unsafe selectors */
|
|
201
200
|
${expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? '&:not(.danger)' : '&:not([style]):not(.danger)'} {
|
|
202
201
|
.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}:not(.danger) {
|
|
203
|
-
background-color: ${"var(--ds-surface-raised,
|
|
202
|
+
background-color: ${"var(--ds-surface-raised, #FFFFFF)"};
|
|
204
203
|
|
|
205
204
|
:not(.${akEditorSelectedNodeClassName}) {
|
|
206
|
-
box-shadow: 0px 0px 0px 1px ${"var(--ds-border,
|
|
205
|
+
box-shadow: 0px 0px 0px 1px ${"var(--ds-border, #0B120E24)"};
|
|
207
206
|
}
|
|
208
207
|
|
|
209
208
|
.${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
|
|
@@ -211,11 +210,11 @@ const tableSharedStyle = () => {
|
|
|
211
210
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
212
211
|
})};
|
|
213
212
|
|
|
214
|
-
background-color: ${"var(--ds-background-neutral,
|
|
213
|
+
background-color: ${"var(--ds-background-neutral, #0515240F)"};
|
|
215
214
|
}
|
|
216
215
|
|
|
217
216
|
.${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER} {
|
|
218
|
-
background-color: ${"var(--ds-background-neutral,
|
|
217
|
+
background-color: ${"var(--ds-background-neutral, #0515240F)"};
|
|
219
218
|
}
|
|
220
219
|
|
|
221
220
|
/* this is only relevant to the element taken care of by renderer */
|
|
@@ -224,10 +223,10 @@ const tableSharedStyle = () => {
|
|
|
224
223
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
225
224
|
})}!important;
|
|
226
225
|
|
|
227
|
-
background-color: ${"var(--ds-background-neutral,
|
|
226
|
+
background-color: ${"var(--ds-background-neutral, #0515240F)"}!important;
|
|
228
227
|
|
|
229
228
|
/* selector lives inside @atlaskit/code */
|
|
230
|
-
--ds--code--line-number-bg-color: ${"var(--ds-background-neutral,
|
|
229
|
+
--ds--code--line-number-bg-color: ${"var(--ds-background-neutral, #0515240F)"};
|
|
231
230
|
}
|
|
232
231
|
}
|
|
233
232
|
}
|
|
@@ -28,7 +28,7 @@ const buttonStyles = css`
|
|
|
28
28
|
margin: ${"var(--ds-space-075, 6px)"};
|
|
29
29
|
right: 0;
|
|
30
30
|
top: 0;
|
|
31
|
-
border: ${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border, #
|
|
31
|
+
border: ${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border, #0B120E24)"};
|
|
32
32
|
border-radius: ${"var(--ds-radius-small, 4px)"};
|
|
33
33
|
background-color: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
34
34
|
justify-content: center;
|
|
@@ -40,7 +40,7 @@ const buttonStyles = css`
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&:active {
|
|
43
|
-
background-color: ${"var(--ds-surface-overlay-pressed,
|
|
43
|
+
background-color: ${"var(--ds-surface-overlay-pressed, #DDDEE1)"};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&.${SORTABLE_COLUMN_ICON_CLASSNAME}__not-allowed {
|
|
@@ -73,10 +73,10 @@ const iconStyles = css({
|
|
|
73
73
|
height: '100%',
|
|
74
74
|
width: '2px',
|
|
75
75
|
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
76
|
-
background: "var(--ds-icon, #
|
|
76
|
+
background: "var(--ds-icon, #292A2E)",
|
|
77
77
|
userSelect: 'none',
|
|
78
78
|
'&::before, &::after': {
|
|
79
|
-
background: "var(--ds-icon, #
|
|
79
|
+
background: "var(--ds-icon, #292A2E)",
|
|
80
80
|
content: "''",
|
|
81
81
|
height: '2px',
|
|
82
82
|
width: '6px',
|
|
@@ -25,6 +25,7 @@ export const EditorToolbarProvider = ({
|
|
|
25
25
|
isOffline
|
|
26
26
|
}) => {
|
|
27
27
|
return /*#__PURE__*/React.createElement(EditorToolbarContext.Provider, {
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
28
29
|
value: {
|
|
29
30
|
editorView,
|
|
30
31
|
editorAppearance,
|
|
@@ -37,6 +37,7 @@ export const AssistiveText = ({
|
|
|
37
37
|
}), [isInFocus]);
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
if (!debounced) {
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
40
41
|
debounceStatusUpdate();
|
|
41
42
|
return () => {
|
|
42
43
|
debounceStatusUpdate.cancel();
|
|
@@ -45,8 +46,11 @@ export const AssistiveText = ({
|
|
|
45
46
|
}, [assistiveText, isInFocus, debounced, debounceStatusUpdate]);
|
|
46
47
|
useEffect(() => {
|
|
47
48
|
if (debounced) {
|
|
49
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
48
50
|
setBump(prevBump => !prevBump);
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
49
52
|
setDebounced(true);
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
50
54
|
setSilenced(!isInFocus);
|
|
51
55
|
}
|
|
52
56
|
}, [assistiveText, isInFocus, debounced]);
|
|
@@ -53,7 +53,9 @@ export class ContextPanelWidthProvider extends React.Component {
|
|
|
53
53
|
width,
|
|
54
54
|
positionedOverEditor
|
|
55
55
|
} = this.state;
|
|
56
|
-
return /*#__PURE__*/React.createElement(Provider
|
|
56
|
+
return /*#__PURE__*/React.createElement(Provider
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
|
+
, {
|
|
57
59
|
value: {
|
|
58
60
|
width,
|
|
59
61
|
positionedOverEditor,
|
|
@@ -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 = "112.7.
|
|
17
|
+
const packageVersion = "112.7.4";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -81,7 +81,9 @@ const FloatingToolbarButton = ({
|
|
|
81
81
|
}, /*#__PURE__*/React.createElement(Button
|
|
82
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
|
|
83
83
|
, {
|
|
84
|
-
className: className
|
|
84
|
+
className: className
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
|
+
,
|
|
85
87
|
ref: buttonElement => {
|
|
86
88
|
setSpotlightReferenceElement(buttonElement);
|
|
87
89
|
if (forwardedRef && editorExperiment('platform_synced_block', true)) {
|
|
@@ -92,7 +94,7 @@ const FloatingToolbarButton = ({
|
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
98
|
,
|
|
97
99
|
theme: (adgTheme, themeProps) => {
|
|
98
100
|
const {
|
|
@@ -220,7 +220,9 @@ const HoverLinkOverlay = ({
|
|
|
220
220
|
ref: hoverLinkButtonRef,
|
|
221
221
|
xcss: linkStylesCommon,
|
|
222
222
|
href: url,
|
|
223
|
-
target: "_blank"
|
|
223
|
+
target: "_blank"
|
|
224
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
225
|
+
,
|
|
224
226
|
style: {
|
|
225
227
|
paddingBlock: compactPadding ? '1px' : expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
|
|
226
228
|
},
|
|
@@ -38,7 +38,9 @@ export default class Mention extends PureComponent {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
41
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
42
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
|
+
, {
|
|
42
44
|
providers: ['mentionProvider', 'profilecardProvider'],
|
|
43
45
|
providerFactory: this.providerFactory,
|
|
44
46
|
renderNode: this.renderWithProvider
|
|
@@ -47,7 +47,7 @@ const mbeNavigation = css({
|
|
|
47
47
|
WebkitUserModify: 'read-only',
|
|
48
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
49
49
|
borderBottom: 'none !important',
|
|
50
|
-
background: "var(--ds-surface,
|
|
50
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
51
51
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
52
52
|
marginRight: "var(--ds-space-100, 8px)",
|
|
53
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -185,7 +185,9 @@ export default class Resizer extends React.Component {
|
|
|
185
185
|
// Ideally, Resizable would let you pass in the component rather than
|
|
186
186
|
// the div. For now, we just apply the same styles using CSS
|
|
187
187
|
return /*#__PURE__*/React.createElement(Resizable, {
|
|
188
|
-
ref: this.resizable
|
|
188
|
+
ref: this.resizable
|
|
189
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
190
|
+
,
|
|
189
191
|
size: {
|
|
190
192
|
width: nonZeroWidth,
|
|
191
193
|
// just content itself (no paddings)
|
|
@@ -9,7 +9,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { bind } from 'bind-event-listener';
|
|
11
11
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
13
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
13
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
15
14
|
import Popup from '../Popup';
|
|
@@ -29,9 +28,9 @@ const initialSizeState = {
|
|
|
29
28
|
};
|
|
30
29
|
const tableSelectorPopupWrapperStyles = css({
|
|
31
30
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
32
|
-
backgroundColor:
|
|
33
|
-
boxShadow:
|
|
34
|
-
padding: `${
|
|
31
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
32
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
33
|
+
padding: `${"var(--ds-space-100, 8px)"} ${TABLE_SELECTOR_PADDING_SIDE}px`
|
|
35
34
|
});
|
|
36
35
|
export const TableSelectorPopup = props => {
|
|
37
36
|
const [size, setSize] = useState({
|
|
@@ -237,7 +236,9 @@ export const TableSelectorPopup = props => {
|
|
|
237
236
|
return unbind;
|
|
238
237
|
}, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
|
|
239
238
|
return jsx(Popup, {
|
|
240
|
-
target: props.target
|
|
239
|
+
target: props.target
|
|
240
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
241
|
+
,
|
|
241
242
|
offset: [0, 3],
|
|
242
243
|
mountTo: props.popupsMountPoint,
|
|
243
244
|
boundariesElement: props.popupsBoundariesElement,
|
|
@@ -7,7 +7,6 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
9
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { B100 } from '@atlaskit/theme/colors';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { toolbarInsertBlockMessages as messages } from '../../messages';
|
|
13
12
|
import { OutsideClickTargetRefContext } from '../../ui-react';
|
|
@@ -15,22 +14,22 @@ export const TABLE_SELECTOR_BUTTON_GAP = 2;
|
|
|
15
14
|
export const TABLE_SELECTOR_BUTTON_SIZE = 17;
|
|
16
15
|
const MULTIPLICATION_SYMBOL = '×';
|
|
17
16
|
const selectedButtonStyles = css({
|
|
18
|
-
backgroundColor: "var(--ds-background-accent-blue-subtlest, #
|
|
19
|
-
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-background-accent-blue-subtle, #
|
|
17
|
+
backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
18
|
+
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-background-accent-blue-subtle, #669DF1)"}`
|
|
20
19
|
});
|
|
21
20
|
const buttonStyles = css({
|
|
22
21
|
height: `${TABLE_SELECTOR_BUTTON_SIZE}px`,
|
|
23
22
|
width: `${TABLE_SELECTOR_BUTTON_SIZE}px`,
|
|
24
|
-
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #
|
|
25
|
-
backgroundColor: "var(--ds-background-input, #
|
|
23
|
+
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
|
|
24
|
+
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
26
25
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
27
26
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
28
27
|
cursor: 'pointer',
|
|
29
28
|
display: 'block',
|
|
30
29
|
'&:focus': {
|
|
31
30
|
outline: 'none',
|
|
32
|
-
border: `${"var(--ds-border-width, 1px)"} solid ${
|
|
33
|
-
boxShadow: `0 0 0 0.5px ${
|
|
31
|
+
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border-focused, #4688EC)"}`,
|
|
32
|
+
boxShadow: `0 0 0 0.5px ${"var(--ds-border-focused, #4688EC)"}`
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
const selectionSizeTextStyles = css({
|
|
@@ -38,8 +37,8 @@ const selectionSizeTextStyles = css({
|
|
|
38
37
|
lineHeight: '14px',
|
|
39
38
|
display: 'flex',
|
|
40
39
|
justifyContent: 'center',
|
|
41
|
-
marginTop: "var(--ds-space-075,
|
|
42
|
-
padding: "var(--ds-space-075,
|
|
40
|
+
marginTop: "var(--ds-space-075, 6px)",
|
|
41
|
+
padding: "var(--ds-space-075, 6px)"
|
|
43
42
|
});
|
|
44
43
|
const TableSelectorButton = ({
|
|
45
44
|
row,
|
|
@@ -95,7 +94,7 @@ const gridWrapperStyles = ({
|
|
|
95
94
|
gridTemplateColumns: `repeat(${maxCols}, 1fr)`,
|
|
96
95
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
97
96
|
gridTemplateRows: `repeat(${maxRows}, 1fr)`,
|
|
98
|
-
gap: `${
|
|
97
|
+
gap: `${"var(--ds-space-025, 2px)"}`
|
|
99
98
|
});
|
|
100
99
|
const TableSelectorPopup = ({
|
|
101
100
|
maxCols,
|
|
@@ -4,6 +4,7 @@ import getColorMessage from './getColorMessage';
|
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
5
5
|
const borderColorPalette = [];
|
|
6
6
|
colorPalette.forEach((label, color) => {
|
|
7
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
7
8
|
const key = label.toLowerCase().replace(' ', '-');
|
|
8
9
|
const message = getColorMessage(paletteMessages, key);
|
|
9
10
|
borderColorPalette.push({
|
|
@@ -3,6 +3,7 @@ import getColorMessage from './getColorMessage';
|
|
|
3
3
|
import paletteMessages from './paletteMessages';
|
|
4
4
|
const cellBackgroundColorPalette = [];
|
|
5
5
|
tableBackgroundColorPalette.forEach((label, color) => {
|
|
6
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
6
7
|
const key = label.toLowerCase().replace(' ', '-');
|
|
7
8
|
const message = getColorMessage(paletteMessages, key);
|
|
8
9
|
cellBackgroundColorPalette.push({
|
|
@@ -38,9 +38,9 @@ export const EditorDiagonalLineIcon = () => {
|
|
|
38
38
|
const {
|
|
39
39
|
colorMode
|
|
40
40
|
} = useThemeObserver();
|
|
41
|
-
const primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #
|
|
41
|
+
const primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #6B6E76)" : "var(--ds-background-accent-gray-subtle, #8C8F97)";
|
|
42
42
|
return (
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
44
|
jsx(DiagonalLineGlyph, {
|
|
45
45
|
"aria-label": "",
|
|
46
46
|
style: {
|
|
@@ -53,7 +53,7 @@ export const highlightColorPalette = [{
|
|
|
53
53
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
54
54
|
label: 'No color',
|
|
55
55
|
// Mostly informative, only used for analytics
|
|
56
|
-
border: "var(--ds-border, #
|
|
56
|
+
border: "var(--ds-border, #0B120E24)",
|
|
57
57
|
message: getColorMessage(paletteMessages, 'no-color'),
|
|
58
58
|
decorator: jsx(EditorDiagonalLineIcon, null)
|
|
59
59
|
}];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DEFAULT_BORDER_COLOR } from './common';
|
|
2
1
|
export const panelBackgroundPalette = [{
|
|
3
2
|
label: 'White',
|
|
4
3
|
value: '#FFFFFF'
|
|
@@ -64,5 +63,5 @@ export const panelBackgroundPalette = [{
|
|
|
64
63
|
value: '#998DD9'
|
|
65
64
|
}].map(color => ({
|
|
66
65
|
...color,
|
|
67
|
-
border:
|
|
66
|
+
border: "var(--ds-border, #0B120E24)"
|
|
68
67
|
}));
|