@atlaskit/editor-common 110.44.2 → 110.45.0
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 +21 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -5
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +9 -19
- package/dist/cjs/card/link-toolbar-button-group-options.js +5 -15
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +2 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +2 -2
- package/dist/cjs/i18n/en.js +1 -1
- package/dist/cjs/i18n/en_GB.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -4
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -2
- package/dist/cjs/media-inline/views/error-view.js +2 -2
- package/dist/cjs/media-single/CommentBadge.js +1 -4
- package/dist/cjs/media-single/CommentBadgeNext.js +1 -4
- package/dist/cjs/media-single/ExternalImageBadge.js +2 -2
- package/dist/cjs/messages/syncBlock.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Messages/index.js +4 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +0 -3
- package/dist/es2019/card/LinkToolbarButtonGroup.js +2 -5
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +7 -17
- package/dist/es2019/card/link-toolbar-button-group-options.js +5 -15
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +1 -1
- package/dist/es2019/i18n/en.js +1 -1
- package/dist/es2019/i18n/en_GB.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/es2019/media-inline/views/error-view.js +1 -1
- package/dist/es2019/media-single/CommentBadge.js +1 -4
- package/dist/es2019/media-single/CommentBadgeNext.js +1 -4
- package/dist/es2019/media-single/ExternalImageBadge.js +1 -1
- package/dist/es2019/messages/syncBlock.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Messages/index.js +2 -2
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +0 -3
- package/dist/esm/card/LinkToolbarButtonGroup.js +2 -5
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +7 -17
- package/dist/esm/card/link-toolbar-button-group-options.js +5 -15
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +1 -1
- package/dist/esm/i18n/en.js +1 -1
- package/dist/esm/i18n/en_GB.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/esm/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/esm/media-inline/views/error-view.js +1 -1
- package/dist/esm/media-single/CommentBadge.js +1 -4
- package/dist/esm/media-single/CommentBadgeNext.js +1 -4
- package/dist/esm/media-single/ExternalImageBadge.js +1 -1
- package/dist/esm/messages/syncBlock.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Messages/index.js +2 -2
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +0 -3
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +1 -2
- package/dist/types/card/link-toolbar-button-group-options.d.ts +0 -4
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +1 -2
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +0 -4
- package/package.json +10 -10
|
@@ -7,7 +7,7 @@ import { Fragment } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import EditorFileIcon from '@atlaskit/icon/core/
|
|
10
|
+
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
11
11
|
import { placeholderFallback, placeholderFallbackParams } from '../styles';
|
|
12
12
|
import { EditToggle } from './EditToggle';
|
|
13
13
|
import { ExtensionLabel } from './ExtensionLabel';
|
|
@@ -10,7 +10,7 @@ import React, { Fragment, useState } from 'react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import classnames from 'classnames';
|
|
13
|
-
import EditorFileIcon from '@atlaskit/icon/core/
|
|
13
|
+
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
16
16
|
import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
@@ -8,7 +8,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
10
|
|
|
11
|
-
import EditorDoneIcon from '@atlaskit/icon/core/
|
|
11
|
+
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
12
12
|
import { ButtonItem } from '@atlaskit/menu';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
14
|
import { messages } from '../floating-toolbar';
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -528,7 +528,7 @@ export default {
|
|
|
528
528
|
'fabric.editor.editLink': 'Edit link',
|
|
529
529
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
530
530
|
'fabric.editor.editSourceLabel': 'Edit source',
|
|
531
|
-
'fabric.editor.editSourceTooltip': '
|
|
531
|
+
'fabric.editor.editSourceTooltip': 'Edit at the source location',
|
|
532
532
|
'fabric.editor.editSourceTooltipDisabled': 'Source link is not currently available',
|
|
533
533
|
'fabric.editor.editStatusColor': 'Edit Status Color',
|
|
534
534
|
'fabric.editor.editStatusText': 'Edit Status',
|
|
@@ -528,7 +528,7 @@ export default {
|
|
|
528
528
|
'fabric.editor.editLink': 'Edit link',
|
|
529
529
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
530
530
|
'fabric.editor.editSourceLabel': 'Edit source',
|
|
531
|
-
'fabric.editor.editSourceTooltip': '
|
|
531
|
+
'fabric.editor.editSourceTooltip': 'Edit at the source location',
|
|
532
532
|
'fabric.editor.editSourceTooltipDisabled': 'Source link is not currently available',
|
|
533
533
|
'fabric.editor.editStatusColor': 'Edit Status Colour',
|
|
534
534
|
'fabric.editor.editStatusText': 'Edit Status',
|
|
@@ -10,9 +10,9 @@ import { jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
13
|
+
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
14
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
13
15
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
14
|
-
import PreferencesIcon from '@atlaskit/icon/core/migration/customize--preferences';
|
|
15
|
-
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
16
16
|
import { cardMessages as messages } from '../../messages';
|
|
17
17
|
import { StyledButton } from './StyledButton';
|
|
18
18
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -9,7 +9,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
-
import PreferencesIcon from '@atlaskit/icon/core/
|
|
12
|
+
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
14
|
import { cardMessages } from '../../messages';
|
|
15
15
|
import Dropdown from './Dropdown';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import WarningIcon from '@atlaskit/icon/core/
|
|
8
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
11
11
|
import { Frame } from './frame';
|
|
@@ -10,7 +10,6 @@ import debounce from 'lodash/debounce';
|
|
|
10
10
|
import CustomThemeButton from '@atlaskit/button/custom-theme-button';
|
|
11
11
|
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
14
|
import { commentMessages as messages } from '../media';
|
|
16
15
|
const commentBadgeWrapper = css({
|
|
@@ -104,9 +103,7 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
|
|
|
104
103
|
iconAfter: jsx(CommentIcon, {
|
|
105
104
|
label: title,
|
|
106
105
|
spacing: "spacious",
|
|
107
|
-
color: "currentColor"
|
|
108
|
-
LEGACY_size: badgeSize,
|
|
109
|
-
LEGACY_fallbackIcon: LegacyCommentIcon
|
|
106
|
+
color: "currentColor"
|
|
110
107
|
})
|
|
111
108
|
})));
|
|
112
109
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
4
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
5
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
6
5
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
7
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -44,8 +43,6 @@ export const CommentBadgeNext = ({
|
|
|
44
43
|
}, /*#__PURE__*/React.createElement(CommentIcon, {
|
|
45
44
|
label: title,
|
|
46
45
|
spacing: "spacious",
|
|
47
|
-
color: "currentColor"
|
|
48
|
-
LEGACY_size: "medium",
|
|
49
|
-
LEGACY_fallbackIcon: LegacyCommentIcon
|
|
46
|
+
color: "currentColor"
|
|
50
47
|
})));
|
|
51
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import InfoIcon from '@atlaskit/icon/core/
|
|
3
|
+
import InfoIcon from '@atlaskit/icon/core/status-information';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -17,7 +17,7 @@ export const syncBlockMessages = defineMessages({
|
|
|
17
17
|
},
|
|
18
18
|
editSourceTooltip: {
|
|
19
19
|
id: 'fabric.editor.editSourceTooltip',
|
|
20
|
-
defaultMessage: '
|
|
20
|
+
defaultMessage: 'Edit at the source location',
|
|
21
21
|
description: 'Tooltip for the button to navigate to the source page of the sync block element'
|
|
22
22
|
},
|
|
23
23
|
editSourceTooltipDisabled: {
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "110.44.3";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -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 = "
|
|
17
|
+
const packageVersion = "110.44.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
9
|
-
import SuccessIcon from '@atlaskit/icon/core/
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
9
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
10
10
|
const errorColor = css({
|
|
11
11
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import EditorDoneIcon from '@atlaskit/icon/core/
|
|
9
|
+
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
12
12
|
const Color = props => {
|
|
@@ -12,7 +12,6 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
12
12
|
import Button from '@atlaskit/button/new';
|
|
13
13
|
import LegacyButton from '@atlaskit/button/standard-button';
|
|
14
14
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
15
|
-
import LegacyExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
16
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
17
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
@@ -274,7 +273,6 @@ const ColorPickerButton = props => {
|
|
|
274
273
|
}, jsx(ChevronDownIcon, {
|
|
275
274
|
color: "currentColor",
|
|
276
275
|
spacing: "spacious",
|
|
277
|
-
LEGACY_fallbackIcon: LegacyExpandIcon,
|
|
278
276
|
label: "color-picker-chevron-down",
|
|
279
277
|
size: "small"
|
|
280
278
|
}))))) : jsx(LegacyButton, {
|
|
@@ -299,7 +297,6 @@ const ColorPickerButton = props => {
|
|
|
299
297
|
}, jsx(ChevronDownIcon, {
|
|
300
298
|
color: "currentColor",
|
|
301
299
|
spacing: "spacious",
|
|
302
|
-
LEGACY_fallbackIcon: LegacyExpandIcon,
|
|
303
300
|
label: "color-picker-chevron-down",
|
|
304
301
|
size: "small"
|
|
305
302
|
})),
|
|
@@ -21,7 +21,7 @@ var buttonStyleNoneEvent = css({
|
|
|
21
21
|
pointerEvents: 'none'
|
|
22
22
|
});
|
|
23
23
|
var DisallowedWrapper = function DisallowedWrapper(_ref) {
|
|
24
|
-
var
|
|
24
|
+
var _disabled = _ref.disabled,
|
|
25
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
26
|
// adding this ignore to avoid having to use compiled (can be fixed at a later date)
|
|
27
27
|
// @ts-ignore
|
|
@@ -50,7 +50,6 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
|
|
|
50
50
|
tooltipContent = _ref3.tooltipContent,
|
|
51
51
|
title = _ref3.title,
|
|
52
52
|
icon = _ref3.icon,
|
|
53
|
-
iconFallback = _ref3.iconFallback,
|
|
54
53
|
areAnyNewToolbarFlagsEnabled = _ref3.areAnyNewToolbarFlagsEnabled;
|
|
55
54
|
var ButtonIcon = icon;
|
|
56
55
|
return jsx(DisallowedWrapper, {
|
|
@@ -62,9 +61,7 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
|
|
|
62
61
|
title: title,
|
|
63
62
|
icon: jsx(ButtonIcon, {
|
|
64
63
|
label: title,
|
|
65
|
-
spacing: "spacious"
|
|
66
|
-
LEGACY_size: "medium",
|
|
67
|
-
LEGACY_fallbackIcon: iconFallback
|
|
64
|
+
spacing: "spacious"
|
|
68
65
|
}),
|
|
69
66
|
selected: selected,
|
|
70
67
|
onClick: onClick,
|
|
@@ -12,15 +12,10 @@ import AlignImageRightIcon from '@atlaskit/icon/core/align-image-right';
|
|
|
12
12
|
import AlignTextCenterIcon from '@atlaskit/icon/core/align-text-center';
|
|
13
13
|
import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
|
|
14
14
|
import AlignTextRightIcon from '@atlaskit/icon/core/align-text-right';
|
|
15
|
+
import ContentWidthWide from '@atlaskit/icon/core/content-width-wide';
|
|
15
16
|
import ContentWrapLeftIcon from '@atlaskit/icon/core/content-wrap-left';
|
|
16
17
|
import ContentWrapRightIcon from '@atlaskit/icon/core/content-wrap-right';
|
|
17
|
-
import
|
|
18
|
-
import FullWidthIcon from '@atlaskit/icon/core/migration/expand-horizontal--editor-media-full-width';
|
|
19
|
-
import EditorAlignImageCenter from '@atlaskit/icon/glyph/editor/align-image-center';
|
|
20
|
-
import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
|
|
21
|
-
import EditorAlignImageRight from '@atlaskit/icon/glyph/editor/align-image-right';
|
|
22
|
-
import WrapLeftIcon from '@atlaskit/icon/glyph/editor/media-wrap-left';
|
|
23
|
-
import WrapRightIcon from '@atlaskit/icon/glyph/editor/media-wrap-right';
|
|
18
|
+
import FullWidthIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
24
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
25
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
26
21
|
import { insideTable } from '../../core-utils';
|
|
@@ -39,8 +34,7 @@ export var alignmentIcons = [{
|
|
|
39
34
|
return /*#__PURE__*/React.createElement(AlignImageLeftIcon, {
|
|
40
35
|
color: "currentColor",
|
|
41
36
|
spacing: "spacious",
|
|
42
|
-
label: "media-toolbar-align-left-icon"
|
|
43
|
-
LEGACY_fallbackIcon: EditorAlignImageLeft
|
|
37
|
+
label: "media-toolbar-align-left-icon"
|
|
44
38
|
});
|
|
45
39
|
}
|
|
46
40
|
}, {
|
|
@@ -50,8 +44,7 @@ export var alignmentIcons = [{
|
|
|
50
44
|
return /*#__PURE__*/React.createElement(AlignImageCenterIcon, {
|
|
51
45
|
color: "currentColor",
|
|
52
46
|
spacing: "spacious",
|
|
53
|
-
label: "media-toolbar-align-center-icon"
|
|
54
|
-
LEGACY_fallbackIcon: EditorAlignImageCenter
|
|
47
|
+
label: "media-toolbar-align-center-icon"
|
|
55
48
|
});
|
|
56
49
|
}
|
|
57
50
|
}, {
|
|
@@ -61,8 +54,7 @@ export var alignmentIcons = [{
|
|
|
61
54
|
return /*#__PURE__*/React.createElement(AlignImageRightIcon, {
|
|
62
55
|
color: "currentColor",
|
|
63
56
|
spacing: "spacious",
|
|
64
|
-
label: "media-toolbar-align-right-icon"
|
|
65
|
-
LEGACY_fallbackIcon: EditorAlignImageRight
|
|
57
|
+
label: "media-toolbar-align-right-icon"
|
|
66
58
|
});
|
|
67
59
|
}
|
|
68
60
|
}];
|
|
@@ -107,8 +99,7 @@ export var wrappingIcons = [{
|
|
|
107
99
|
return /*#__PURE__*/React.createElement(ContentWrapLeftIcon, {
|
|
108
100
|
color: "currentColor",
|
|
109
101
|
spacing: "spacious",
|
|
110
|
-
label: "media-toolbar-wrap-left-icon"
|
|
111
|
-
LEGACY_fallbackIcon: WrapLeftIcon
|
|
102
|
+
label: "media-toolbar-wrap-left-icon"
|
|
112
103
|
});
|
|
113
104
|
}
|
|
114
105
|
}, {
|
|
@@ -118,8 +109,7 @@ export var wrappingIcons = [{
|
|
|
118
109
|
return /*#__PURE__*/React.createElement(ContentWrapRightIcon, {
|
|
119
110
|
color: "currentColor",
|
|
120
111
|
spacing: "spacious",
|
|
121
|
-
label: "media-toolbar-wrap-right-icon"
|
|
122
|
-
LEGACY_fallbackIcon: WrapRightIcon
|
|
112
|
+
label: "media-toolbar-wrap-right-icon"
|
|
123
113
|
});
|
|
124
114
|
}
|
|
125
115
|
}];
|
|
@@ -3,30 +3,22 @@ import SmartLinkCardIcon from '@atlaskit/icon/core/smart-link-card';
|
|
|
3
3
|
import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
|
|
4
4
|
import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
|
|
5
5
|
import { cardMessages as messages } from '../messages';
|
|
6
|
-
import { IconCard } from './ui/assets/card';
|
|
7
|
-
import { IconEmbed } from './ui/assets/embed';
|
|
8
|
-
import { IconInline } from './ui/assets/inline';
|
|
9
|
-
import { IconUrl } from './ui/assets/url';
|
|
10
6
|
export var appearancePropsMap = {
|
|
11
7
|
url: {
|
|
12
8
|
title: messages.urlTitle,
|
|
13
|
-
icon: MinusIcon
|
|
14
|
-
iconFallback: IconUrl
|
|
9
|
+
icon: MinusIcon
|
|
15
10
|
},
|
|
16
11
|
inline: {
|
|
17
12
|
title: messages.inlineTitle,
|
|
18
|
-
icon: SmartLinkInlineIcon
|
|
19
|
-
iconFallback: IconInline
|
|
13
|
+
icon: SmartLinkInlineIcon
|
|
20
14
|
},
|
|
21
15
|
block: {
|
|
22
16
|
title: messages.blockTitle,
|
|
23
|
-
icon: SmartLinkCardIcon
|
|
24
|
-
iconFallback: IconCard
|
|
17
|
+
icon: SmartLinkCardIcon
|
|
25
18
|
},
|
|
26
19
|
embed: {
|
|
27
20
|
title: messages.embedTitle,
|
|
28
|
-
icon: SmartLinkEmbedIcon
|
|
29
|
-
iconFallback: IconEmbed
|
|
21
|
+
icon: SmartLinkEmbedIcon
|
|
30
22
|
}
|
|
31
23
|
};
|
|
32
24
|
export var getButtonGroupOption = function getButtonGroupOption(intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, _ref) {
|
|
@@ -38,12 +30,10 @@ export var getButtonGroupOption = function getButtonGroupOption(intl, areAnyNewT
|
|
|
38
30
|
tooltip = _ref.tooltip;
|
|
39
31
|
var _appearancePropsMap = appearancePropsMap[appearance !== null && appearance !== void 0 ? appearance : 'url'],
|
|
40
32
|
title = _appearancePropsMap.title,
|
|
41
|
-
icon = _appearancePropsMap.icon
|
|
42
|
-
iconFallback = _appearancePropsMap.iconFallback;
|
|
33
|
+
icon = _appearancePropsMap.icon;
|
|
43
34
|
return {
|
|
44
35
|
title: intl.formatMessage(title),
|
|
45
36
|
icon: icon,
|
|
46
|
-
iconFallback: iconFallback,
|
|
47
37
|
onClick: function onClick() {
|
|
48
38
|
return dispatchCommand(_onClick);
|
|
49
39
|
},
|
|
@@ -10,7 +10,7 @@ import { Fragment } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
|
-
import EditorFileIcon from '@atlaskit/icon/core/
|
|
13
|
+
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
14
14
|
import { placeholderFallback, placeholderFallbackParams } from '../styles';
|
|
15
15
|
import { EditToggle } from './EditToggle';
|
|
16
16
|
import { ExtensionLabel } from './ExtensionLabel';
|
|
@@ -15,7 +15,7 @@ import React, { Fragment, useState } from 'react';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import classnames from 'classnames';
|
|
18
|
-
import EditorFileIcon from '@atlaskit/icon/core/
|
|
18
|
+
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
21
21
|
import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
@@ -9,7 +9,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
11
11
|
|
|
12
|
-
import EditorDoneIcon from '@atlaskit/icon/core/
|
|
12
|
+
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
13
13
|
import { ButtonItem } from '@atlaskit/menu';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import { messages } from '../floating-toolbar';
|
package/dist/esm/i18n/en.js
CHANGED
|
@@ -528,7 +528,7 @@ export default {
|
|
|
528
528
|
'fabric.editor.editLink': 'Edit link',
|
|
529
529
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
530
530
|
'fabric.editor.editSourceLabel': 'Edit source',
|
|
531
|
-
'fabric.editor.editSourceTooltip': '
|
|
531
|
+
'fabric.editor.editSourceTooltip': 'Edit at the source location',
|
|
532
532
|
'fabric.editor.editSourceTooltipDisabled': 'Source link is not currently available',
|
|
533
533
|
'fabric.editor.editStatusColor': 'Edit Status Color',
|
|
534
534
|
'fabric.editor.editStatusText': 'Edit Status',
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -528,7 +528,7 @@ export default {
|
|
|
528
528
|
'fabric.editor.editLink': 'Edit link',
|
|
529
529
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
530
530
|
'fabric.editor.editSourceLabel': 'Edit source',
|
|
531
|
-
'fabric.editor.editSourceTooltip': '
|
|
531
|
+
'fabric.editor.editSourceTooltip': 'Edit at the source location',
|
|
532
532
|
'fabric.editor.editSourceTooltipDisabled': 'Source link is not currently available',
|
|
533
533
|
'fabric.editor.editStatusColor': 'Edit Status Colour',
|
|
534
534
|
'fabric.editor.editStatusText': 'Edit Status',
|
|
@@ -12,9 +12,9 @@ import { jsx } from '@emotion/react';
|
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
13
13
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
14
14
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
15
|
+
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
16
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
15
17
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
16
|
-
import PreferencesIcon from '@atlaskit/icon/core/migration/customize--preferences';
|
|
17
|
-
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
18
18
|
import { cardMessages as messages } from '../../messages';
|
|
19
19
|
import { StyledButton } from './StyledButton';
|
|
20
20
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
|
-
import PreferencesIcon from '@atlaskit/icon/core/
|
|
13
|
+
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import { cardMessages } from '../../messages';
|
|
16
16
|
import Dropdown from './Dropdown';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import WarningIcon from '@atlaskit/icon/core/
|
|
8
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
11
11
|
import { Frame } from './frame';
|
|
@@ -11,7 +11,6 @@ import debounce from 'lodash/debounce';
|
|
|
11
11
|
import CustomThemeButton from '@atlaskit/button/custom-theme-button';
|
|
12
12
|
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
14
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
15
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
15
|
import { commentMessages as messages } from '../media';
|
|
17
16
|
var commentBadgeWrapper = css({
|
|
@@ -110,9 +109,7 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
110
109
|
iconAfter: jsx(CommentIcon, {
|
|
111
110
|
label: title,
|
|
112
111
|
spacing: "spacious",
|
|
113
|
-
color: "currentColor"
|
|
114
|
-
LEGACY_size: badgeSize,
|
|
115
|
-
LEGACY_fallbackIcon: LegacyCommentIcon
|
|
112
|
+
color: "currentColor"
|
|
116
113
|
})
|
|
117
114
|
})));
|
|
118
115
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
4
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
5
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
6
5
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
7
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -44,8 +43,6 @@ export var CommentBadgeNext = function CommentBadgeNext(_ref) {
|
|
|
44
43
|
}, /*#__PURE__*/React.createElement(CommentIcon, {
|
|
45
44
|
label: title,
|
|
46
45
|
spacing: "spacious",
|
|
47
|
-
color: "currentColor"
|
|
48
|
-
LEGACY_size: "medium",
|
|
49
|
-
LEGACY_fallbackIcon: LegacyCommentIcon
|
|
46
|
+
color: "currentColor"
|
|
50
47
|
})));
|
|
51
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import InfoIcon from '@atlaskit/icon/core/
|
|
3
|
+
import InfoIcon from '@atlaskit/icon/core/status-information';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -17,7 +17,7 @@ export var syncBlockMessages = defineMessages({
|
|
|
17
17
|
},
|
|
18
18
|
editSourceTooltip: {
|
|
19
19
|
id: 'fabric.editor.editSourceTooltip',
|
|
20
|
-
defaultMessage: '
|
|
20
|
+
defaultMessage: 'Edit at the source location',
|
|
21
21
|
description: 'Tooltip for the button to navigate to the source page of the sync block element'
|
|
22
22
|
},
|
|
23
23
|
editSourceTooltipDisabled: {
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "110.44.3";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "110.44.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
9
|
-
import SuccessIcon from '@atlaskit/icon/core/
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
9
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
10
10
|
var errorColor = css({
|
|
11
11
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import EditorDoneIcon from '@atlaskit/icon/core/
|
|
9
|
+
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
12
12
|
var Color = function Color(props) {
|
|
@@ -13,7 +13,6 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
13
13
|
import Button from '@atlaskit/button/new';
|
|
14
14
|
import LegacyButton from '@atlaskit/button/standard-button';
|
|
15
15
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
16
|
-
import LegacyExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
17
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
19
18
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
@@ -286,7 +285,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
286
285
|
}, jsx(ChevronDownIcon, {
|
|
287
286
|
color: "currentColor",
|
|
288
287
|
spacing: "spacious",
|
|
289
|
-
LEGACY_fallbackIcon: LegacyExpandIcon,
|
|
290
288
|
label: "color-picker-chevron-down",
|
|
291
289
|
size: "small"
|
|
292
290
|
}))))) : jsx(LegacyButton, {
|
|
@@ -311,7 +309,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
311
309
|
}, jsx(ChevronDownIcon, {
|
|
312
310
|
color: "currentColor",
|
|
313
311
|
spacing: "spacious",
|
|
314
|
-
LEGACY_fallbackIcon: LegacyExpandIcon,
|
|
315
312
|
label: "color-picker-chevron-down",
|
|
316
313
|
size: "small"
|
|
317
314
|
})),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { NewCoreIconProps
|
|
2
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export interface ButtonOptionProps {
|
|
4
4
|
areAnyNewToolbarFlagsEnabled: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
icon: (props: NewCoreIconProps) => JSX.Element;
|
|
7
|
-
iconFallback: (props: IconProps) => JSX.Element;
|
|
8
7
|
onClick: () => void;
|
|
9
8
|
selected: boolean;
|
|
10
9
|
testId: string;
|
|
@@ -13,7 +13,6 @@ export declare const appearancePropsMap: {
|
|
|
13
13
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
|
-
iconFallback: (props: import("@atlaskit/icon").IconProps) => React.JSX.Element;
|
|
17
16
|
};
|
|
18
17
|
inline: {
|
|
19
18
|
title: {
|
|
@@ -25,7 +24,6 @@ export declare const appearancePropsMap: {
|
|
|
25
24
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
26
25
|
displayName: string;
|
|
27
26
|
};
|
|
28
|
-
iconFallback: (props: import("@atlaskit/icon").IconProps) => React.JSX.Element;
|
|
29
27
|
};
|
|
30
28
|
block: {
|
|
31
29
|
title: {
|
|
@@ -37,7 +35,6 @@ export declare const appearancePropsMap: {
|
|
|
37
35
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
38
36
|
displayName: string;
|
|
39
37
|
};
|
|
40
|
-
iconFallback: (props: import("@atlaskit/icon").IconProps) => React.JSX.Element;
|
|
41
38
|
};
|
|
42
39
|
embed: {
|
|
43
40
|
title: {
|
|
@@ -49,7 +46,6 @@ export declare const appearancePropsMap: {
|
|
|
49
46
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
50
47
|
displayName: string;
|
|
51
48
|
};
|
|
52
|
-
iconFallback: (props: import("@atlaskit/icon").IconProps) => React.JSX.Element;
|
|
53
49
|
};
|
|
54
50
|
};
|
|
55
51
|
export declare const getButtonGroupOption: (intl: IntlShape, areAnyNewToolbarFlagsEnabled: boolean, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { NewCoreIconProps
|
|
2
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export interface ButtonOptionProps {
|
|
4
4
|
areAnyNewToolbarFlagsEnabled: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
icon: (props: NewCoreIconProps) => JSX.Element;
|
|
7
|
-
iconFallback: (props: IconProps) => JSX.Element;
|
|
8
7
|
onClick: () => void;
|
|
9
8
|
selected: boolean;
|
|
10
9
|
testId: string;
|