@atlaskit/editor-common 108.6.1 → 108.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/ai-messages/ai-failed-state.js +2 -2
- package/dist/cjs/card/LinkToolbarButtonGroup.js +4 -2
- package/dist/cjs/card/link-toolbar-button-group-options.js +3 -2
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +3 -3
- package/dist/cjs/messages/block-menu.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/toolbar-flag-check.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +4 -4
- package/dist/cjs/ui/FloatingToolbar/Separator.js +3 -3
- package/dist/es2019/ai-messages/ai-failed-state.js +2 -2
- package/dist/es2019/card/LinkToolbarButtonGroup.js +4 -2
- package/dist/es2019/card/link-toolbar-button-group-options.js +3 -2
- package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +3 -3
- package/dist/es2019/messages/block-menu.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/toolbar-flag-check.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -4
- package/dist/es2019/ui/FloatingToolbar/Separator.js +3 -3
- package/dist/esm/ai-messages/ai-failed-state.js +2 -2
- package/dist/esm/card/LinkToolbarButtonGroup.js +4 -2
- package/dist/esm/card/link-toolbar-button-group-options.js +3 -2
- package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +3 -3
- package/dist/esm/messages/block-menu.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/toolbar-flag-check.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +4 -4
- package/dist/esm/ui/FloatingToolbar/Separator.js +3 -3
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +1 -0
- package/dist/types/card/link-toolbar-button-group-options.d.ts +1 -1
- package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +1 -0
- package/dist/types/toolbar-flag-check.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types/ui/FloatingToolbar/Separator.d.ts +2 -1
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +1 -0
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +1 -1
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +1 -0
- package/dist/types-ts4.5/toolbar-flag-check.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 108.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cb621391133f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb621391133f0) -
|
|
8
|
+
Fix the codeblock key issue
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 108.6.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
|
|
16
|
+
[ux] ED-29120 add a new config option for default editor preset
|
|
17
|
+
(`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
|
|
18
|
+
for editors that can't be excluded at the experiment level.
|
|
19
|
+
- [`7e2bd9dc6d5ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7e2bd9dc6d5ca) -
|
|
20
|
+
EDITOR-1531 Updated error message.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 108.6.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -65,7 +65,7 @@ var aiFailedStateMessages = exports.aiFailedStateMessages = (0, _reactIntlNext.d
|
|
|
65
65
|
},
|
|
66
66
|
adfStreamingError: {
|
|
67
67
|
id: 'fabric.editor.ai.experience.adfStreamingError',
|
|
68
|
-
defaultMessage: "
|
|
69
|
-
description: "
|
|
68
|
+
defaultMessage: "Our apologies, we couldn't get a response.",
|
|
69
|
+
description: "This error message is displayed when error(s) are encountered during processing of LLM response in ADF format."
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -53,7 +53,8 @@ var LinkToolbarButtonGroup = exports.LinkToolbarButtonGroup = function LinkToolb
|
|
|
53
53
|
tooltipContent = _ref3.tooltipContent,
|
|
54
54
|
title = _ref3.title,
|
|
55
55
|
icon = _ref3.icon,
|
|
56
|
-
iconFallback = _ref3.iconFallback
|
|
56
|
+
iconFallback = _ref3.iconFallback,
|
|
57
|
+
areAnyNewToolbarFlagsEnabled = _ref3.areAnyNewToolbarFlagsEnabled;
|
|
57
58
|
var ButtonIcon = icon;
|
|
58
59
|
return (0, _react2.jsx)(DisallowedWrapper, {
|
|
59
60
|
css: disabled ? disallowedWrapperStyle : defaultWrapperStyle,
|
|
@@ -72,7 +73,8 @@ var LinkToolbarButtonGroup = exports.LinkToolbarButtonGroup = function LinkToolb
|
|
|
72
73
|
onClick: onClick,
|
|
73
74
|
testId: testId,
|
|
74
75
|
disabled: disabled,
|
|
75
|
-
tooltipContent: tooltipContent
|
|
76
|
+
tooltipContent: tooltipContent,
|
|
77
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
76
78
|
}));
|
|
77
79
|
}));
|
|
78
80
|
};
|
|
@@ -36,7 +36,7 @@ var appearancePropsMap = exports.appearancePropsMap = {
|
|
|
36
36
|
iconFallback: _embed.IconEmbed
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
var getButtonGroupOption = exports.getButtonGroupOption = function getButtonGroupOption(intl, dispatchCommand, _ref) {
|
|
39
|
+
var getButtonGroupOption = exports.getButtonGroupOption = function getButtonGroupOption(intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, _ref) {
|
|
40
40
|
var disabled = _ref.disabled,
|
|
41
41
|
_onClick = _ref.onClick,
|
|
42
42
|
selected = _ref.selected,
|
|
@@ -57,6 +57,7 @@ var getButtonGroupOption = exports.getButtonGroupOption = function getButtonGrou
|
|
|
57
57
|
disabled: Boolean(disabled),
|
|
58
58
|
tooltipContent: tooltip || null,
|
|
59
59
|
testId: testId,
|
|
60
|
-
selected: selected
|
|
60
|
+
selected: selected,
|
|
61
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
61
62
|
};
|
|
62
63
|
};
|
|
@@ -12,7 +12,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
14
14
|
var _extensions = require("../extensions");
|
|
15
|
-
var _toolbarFlagCheck = require("../toolbar-flag-check");
|
|
16
15
|
var _utils = require("../utils");
|
|
17
16
|
var _DropdownMenuItem = require("./DropdownMenuItem");
|
|
18
17
|
var _DropdownSeparator = require("./DropdownSeparator");
|
|
@@ -133,7 +132,8 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
|
|
|
133
132
|
editorView = props.editorView,
|
|
134
133
|
extension = props.extension,
|
|
135
134
|
disabled = props.disabled,
|
|
136
|
-
dropdownOptions = props.dropdownOptions
|
|
135
|
+
dropdownOptions = props.dropdownOptions,
|
|
136
|
+
areAnyNewToolbarFlagsEnabled = props.areAnyNewToolbarFlagsEnabled;
|
|
137
137
|
|
|
138
138
|
// Ignored via go/ees005
|
|
139
139
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -200,5 +200,5 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
|
|
|
200
200
|
extension: extension,
|
|
201
201
|
dropdownOptions: dropdownOptions
|
|
202
202
|
});
|
|
203
|
-
}),
|
|
203
|
+
}), areAnyNewToolbarFlagsEnabled && /*#__PURE__*/_react.default.createElement(_DropdownSeparator.DropdownSeparator, null));
|
|
204
204
|
};
|
|
@@ -32,7 +32,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
32
32
|
description: 'Change the selected block to a paragraph'
|
|
33
33
|
},
|
|
34
34
|
codeBlock: {
|
|
35
|
-
id: 'fabric.editor.block.menu.
|
|
35
|
+
id: 'fabric.editor.block.menu.codeblock',
|
|
36
36
|
defaultMessage: 'Code block',
|
|
37
37
|
description: 'Convert to a code block'
|
|
38
38
|
},
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "108.6.
|
|
19
|
+
var packageVersion = "108.6.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.areToolbarFlagsEnabled = void 0;
|
|
7
7
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
8
8
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
9
|
-
var areToolbarFlagsEnabled = exports.areToolbarFlagsEnabled = function areToolbarFlagsEnabled() {
|
|
10
|
-
return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') || (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true);
|
|
9
|
+
var areToolbarFlagsEnabled = exports.areToolbarFlagsEnabled = function areToolbarFlagsEnabled(isNewToolbarEnabled) {
|
|
10
|
+
return Boolean((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') || isNewToolbarEnabled && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true));
|
|
11
11
|
};
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "108.6.
|
|
27
|
+
var packageVersion = "108.6.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
15
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
|
-
var _toolbarFlagCheck = require("../../toolbar-flag-check");
|
|
17
16
|
var _Pulse = require("../Pulse/Pulse");
|
|
18
17
|
var _ButtonSpotlightCard = require("./ButtonSpotlightCard");
|
|
19
18
|
var _styles = require("./styles");
|
|
@@ -57,7 +56,8 @@ var _default = exports.default = function _default(_ref) {
|
|
|
57
56
|
ariaLabel = _ref.ariaLabel,
|
|
58
57
|
isRadioButton = _ref.isRadioButton,
|
|
59
58
|
pulse = _ref.pulse,
|
|
60
|
-
spotlightConfig = _ref.spotlightConfig
|
|
59
|
+
spotlightConfig = _ref.spotlightConfig,
|
|
60
|
+
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
61
61
|
// Check if there's only an icon and add additional styles
|
|
62
62
|
var iconOnly = (icon || iconAfter) && !children;
|
|
63
63
|
var customSpacing = iconOnly ? _styles.iconOnlySpacing : {};
|
|
@@ -111,7 +111,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
111
111
|
appearance: appearance,
|
|
112
112
|
state: themeProps.state,
|
|
113
113
|
mode: themeProps.mode
|
|
114
|
-
})),
|
|
114
|
+
})), areAnyNewToolbarFlagsEnabled ? customSizeAndPadding : {})
|
|
115
115
|
}, rest);
|
|
116
116
|
},
|
|
117
117
|
"aria-label": ariaLabel || title,
|
|
@@ -120,7 +120,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
120
120
|
role: isRadioButton ? 'radio' : undefined,
|
|
121
121
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
122
122
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
123
|
-
spacing:
|
|
123
|
+
spacing: areAnyNewToolbarFlagsEnabled ? 'default' : 'compact',
|
|
124
124
|
href: href,
|
|
125
125
|
target: target,
|
|
126
126
|
appearance: appearance,
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _toolbarFlagCheck = require("../../toolbar-flag-check");
|
|
9
8
|
/**
|
|
10
9
|
* @jsxRuntime classic
|
|
11
10
|
* @jsx jsx
|
|
@@ -29,9 +28,10 @@ var separatorFullHeight = (0, _react.css)({
|
|
|
29
28
|
height: '40px'
|
|
30
29
|
});
|
|
31
30
|
var _default = exports.default = function _default(_ref) {
|
|
32
|
-
var fullHeight = _ref.fullHeight
|
|
31
|
+
var fullHeight = _ref.fullHeight,
|
|
32
|
+
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
33
33
|
return (0, _react.jsx)("div", {
|
|
34
|
-
css: [
|
|
34
|
+
css: [areAnyNewToolbarFlagsEnabled ? separatorNew : separator, fullHeight && separatorFullHeight]
|
|
35
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
36
36
|
,
|
|
37
37
|
className: "separator"
|
|
@@ -58,7 +58,7 @@ export const aiFailedStateMessages = defineMessages({
|
|
|
58
58
|
},
|
|
59
59
|
adfStreamingError: {
|
|
60
60
|
id: 'fabric.editor.ai.experience.adfStreamingError',
|
|
61
|
-
defaultMessage: `
|
|
62
|
-
description: `
|
|
61
|
+
defaultMessage: `Our apologies, we couldn't get a response.`,
|
|
62
|
+
description: `This error message is displayed when error(s) are encountered during processing of LLM response in ADF format.`
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -48,7 +48,8 @@ export const LinkToolbarButtonGroup = ({
|
|
|
48
48
|
tooltipContent,
|
|
49
49
|
title,
|
|
50
50
|
icon,
|
|
51
|
-
iconFallback
|
|
51
|
+
iconFallback,
|
|
52
|
+
areAnyNewToolbarFlagsEnabled
|
|
52
53
|
}) => {
|
|
53
54
|
const ButtonIcon = icon;
|
|
54
55
|
return jsx(DisallowedWrapper, {
|
|
@@ -68,7 +69,8 @@ export const LinkToolbarButtonGroup = ({
|
|
|
68
69
|
onClick: onClick,
|
|
69
70
|
testId: testId,
|
|
70
71
|
disabled: disabled,
|
|
71
|
-
tooltipContent: tooltipContent
|
|
72
|
+
tooltipContent: tooltipContent,
|
|
73
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
72
74
|
}));
|
|
73
75
|
}));
|
|
74
76
|
};
|
|
@@ -29,7 +29,7 @@ export const appearancePropsMap = {
|
|
|
29
29
|
iconFallback: IconEmbed
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
export const getButtonGroupOption = (intl, dispatchCommand, {
|
|
32
|
+
export const getButtonGroupOption = (intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, {
|
|
33
33
|
disabled,
|
|
34
34
|
onClick,
|
|
35
35
|
selected,
|
|
@@ -50,6 +50,7 @@ export const getButtonGroupOption = (intl, dispatchCommand, {
|
|
|
50
50
|
disabled: Boolean(disabled),
|
|
51
51
|
tooltipContent: tooltip || null,
|
|
52
52
|
testId,
|
|
53
|
-
selected
|
|
53
|
+
selected,
|
|
54
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
54
55
|
};
|
|
55
56
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
4
|
-
import { areToolbarFlagsEnabled } from '../toolbar-flag-check';
|
|
5
4
|
import { nodeToJSON } from '../utils';
|
|
6
5
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
7
6
|
import { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -86,7 +85,8 @@ export const DropdownMenuExtensionItems = props => {
|
|
|
86
85
|
editorView,
|
|
87
86
|
extension,
|
|
88
87
|
disabled,
|
|
89
|
-
dropdownOptions
|
|
88
|
+
dropdownOptions,
|
|
89
|
+
areAnyNewToolbarFlagsEnabled
|
|
90
90
|
} = props;
|
|
91
91
|
|
|
92
92
|
// Ignored via go/ees005
|
|
@@ -124,5 +124,5 @@ export const DropdownMenuExtensionItems = props => {
|
|
|
124
124
|
extension: extension,
|
|
125
125
|
dropdownOptions: dropdownOptions
|
|
126
126
|
});
|
|
127
|
-
}),
|
|
127
|
+
}), areAnyNewToolbarFlagsEnabled && /*#__PURE__*/React.createElement(DropdownSeparator, null));
|
|
128
128
|
};
|
|
@@ -26,7 +26,7 @@ export const messages = defineMessages({
|
|
|
26
26
|
description: 'Change the selected block to a paragraph'
|
|
27
27
|
},
|
|
28
28
|
codeBlock: {
|
|
29
|
-
id: 'fabric.editor.block.menu.
|
|
29
|
+
id: 'fabric.editor.block.menu.codeblock',
|
|
30
30
|
defaultMessage: 'Code block',
|
|
31
31
|
description: 'Convert to a code block'
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "108.6.
|
|
4
|
+
const packageVersion = "108.6.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
|
-
export const areToolbarFlagsEnabled =
|
|
3
|
+
export const areToolbarFlagsEnabled = isNewToolbarEnabled => Boolean(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') || isNewToolbarEnabled && editorExperiment('platform_editor_toolbar_aifc', true));
|
|
@@ -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 = "108.6.
|
|
17
|
+
const packageVersion = "108.6.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
|
-
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
6
5
|
import { Pulse } from '../Pulse/Pulse';
|
|
7
6
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
8
7
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
@@ -40,7 +39,8 @@ export default (({
|
|
|
40
39
|
ariaLabel,
|
|
41
40
|
isRadioButton,
|
|
42
41
|
pulse,
|
|
43
|
-
spotlightConfig
|
|
42
|
+
spotlightConfig,
|
|
43
|
+
areAnyNewToolbarFlagsEnabled
|
|
44
44
|
}) => {
|
|
45
45
|
// Check if there's only an icon and add additional styles
|
|
46
46
|
const iconOnly = (icon || iconAfter) && !children;
|
|
@@ -93,7 +93,7 @@ export default (({
|
|
|
93
93
|
state: themeProps.state,
|
|
94
94
|
mode: themeProps.mode
|
|
95
95
|
})),
|
|
96
|
-
...(
|
|
96
|
+
...(areAnyNewToolbarFlagsEnabled ? customSizeAndPadding : {})
|
|
97
97
|
},
|
|
98
98
|
...rest
|
|
99
99
|
};
|
|
@@ -104,7 +104,7 @@ export default (({
|
|
|
104
104
|
role: isRadioButton ? 'radio' : undefined,
|
|
105
105
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
106
106
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
107
|
-
spacing:
|
|
107
|
+
spacing: areAnyNewToolbarFlagsEnabled ? 'default' : 'compact',
|
|
108
108
|
href: href,
|
|
109
109
|
target: target,
|
|
110
110
|
appearance: appearance,
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
8
7
|
const separator = css({
|
|
9
8
|
background: "var(--ds-border, #091E4224)",
|
|
10
9
|
width: '1px',
|
|
@@ -22,9 +21,10 @@ const separatorFullHeight = css({
|
|
|
22
21
|
height: '40px'
|
|
23
22
|
});
|
|
24
23
|
export default (({
|
|
25
|
-
fullHeight
|
|
24
|
+
fullHeight,
|
|
25
|
+
areAnyNewToolbarFlagsEnabled
|
|
26
26
|
}) => jsx("div", {
|
|
27
|
-
css: [
|
|
27
|
+
css: [areAnyNewToolbarFlagsEnabled ? separatorNew : separator, fullHeight && separatorFullHeight]
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
29
29
|
,
|
|
30
30
|
className: "separator"
|
|
@@ -58,7 +58,7 @@ export var aiFailedStateMessages = defineMessages({
|
|
|
58
58
|
},
|
|
59
59
|
adfStreamingError: {
|
|
60
60
|
id: 'fabric.editor.ai.experience.adfStreamingError',
|
|
61
|
-
defaultMessage: "
|
|
62
|
-
description: "
|
|
61
|
+
defaultMessage: "Our apologies, we couldn't get a response.",
|
|
62
|
+
description: "This error message is displayed when error(s) are encountered during processing of LLM response in ADF format."
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -48,7 +48,8 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
|
|
|
48
48
|
tooltipContent = _ref3.tooltipContent,
|
|
49
49
|
title = _ref3.title,
|
|
50
50
|
icon = _ref3.icon,
|
|
51
|
-
iconFallback = _ref3.iconFallback
|
|
51
|
+
iconFallback = _ref3.iconFallback,
|
|
52
|
+
areAnyNewToolbarFlagsEnabled = _ref3.areAnyNewToolbarFlagsEnabled;
|
|
52
53
|
var ButtonIcon = icon;
|
|
53
54
|
return jsx(DisallowedWrapper, {
|
|
54
55
|
css: disabled ? disallowedWrapperStyle : defaultWrapperStyle,
|
|
@@ -67,7 +68,8 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
|
|
|
67
68
|
onClick: onClick,
|
|
68
69
|
testId: testId,
|
|
69
70
|
disabled: disabled,
|
|
70
|
-
tooltipContent: tooltipContent
|
|
71
|
+
tooltipContent: tooltipContent,
|
|
72
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
71
73
|
}));
|
|
72
74
|
}));
|
|
73
75
|
};
|
|
@@ -29,7 +29,7 @@ export var appearancePropsMap = {
|
|
|
29
29
|
iconFallback: IconEmbed
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
export var getButtonGroupOption = function getButtonGroupOption(intl, dispatchCommand, _ref) {
|
|
32
|
+
export var getButtonGroupOption = function getButtonGroupOption(intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, _ref) {
|
|
33
33
|
var disabled = _ref.disabled,
|
|
34
34
|
_onClick = _ref.onClick,
|
|
35
35
|
selected = _ref.selected,
|
|
@@ -50,6 +50,7 @@ export var getButtonGroupOption = function getButtonGroupOption(intl, dispatchCo
|
|
|
50
50
|
disabled: Boolean(disabled),
|
|
51
51
|
tooltipContent: tooltip || null,
|
|
52
52
|
testId: testId,
|
|
53
|
-
selected: selected
|
|
53
|
+
selected: selected,
|
|
54
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
54
55
|
};
|
|
55
56
|
};
|
|
@@ -4,7 +4,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
import Loadable from 'react-loadable';
|
|
6
6
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
7
|
-
import { areToolbarFlagsEnabled } from '../toolbar-flag-check';
|
|
8
7
|
import { nodeToJSON } from '../utils';
|
|
9
8
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
10
9
|
import { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -124,7 +123,8 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
|
|
|
124
123
|
editorView = props.editorView,
|
|
125
124
|
extension = props.extension,
|
|
126
125
|
disabled = props.disabled,
|
|
127
|
-
dropdownOptions = props.dropdownOptions
|
|
126
|
+
dropdownOptions = props.dropdownOptions,
|
|
127
|
+
areAnyNewToolbarFlagsEnabled = props.areAnyNewToolbarFlagsEnabled;
|
|
128
128
|
|
|
129
129
|
// Ignored via go/ees005
|
|
130
130
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -191,5 +191,5 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
|
|
|
191
191
|
extension: extension,
|
|
192
192
|
dropdownOptions: dropdownOptions
|
|
193
193
|
});
|
|
194
|
-
}),
|
|
194
|
+
}), areAnyNewToolbarFlagsEnabled && /*#__PURE__*/React.createElement(DropdownSeparator, null));
|
|
195
195
|
};
|
|
@@ -26,7 +26,7 @@ export var messages = defineMessages({
|
|
|
26
26
|
description: 'Change the selected block to a paragraph'
|
|
27
27
|
},
|
|
28
28
|
codeBlock: {
|
|
29
|
-
id: 'fabric.editor.block.menu.
|
|
29
|
+
id: 'fabric.editor.block.menu.codeblock',
|
|
30
30
|
defaultMessage: 'Code block',
|
|
31
31
|
description: 'Convert to a code block'
|
|
32
32
|
},
|
|
@@ -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 = "108.6.
|
|
10
|
+
var packageVersion = "108.6.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
|
-
export var areToolbarFlagsEnabled = function areToolbarFlagsEnabled() {
|
|
4
|
-
return expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') || editorExperiment('platform_editor_toolbar_aifc', true);
|
|
3
|
+
export var areToolbarFlagsEnabled = function areToolbarFlagsEnabled(isNewToolbarEnabled) {
|
|
4
|
+
return Boolean(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') || isNewToolbarEnabled && editorExperiment('platform_editor_toolbar_aifc', true));
|
|
5
5
|
};
|
|
@@ -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 = "108.6.
|
|
24
|
+
var packageVersion = "108.6.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -8,7 +8,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
-
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
12
11
|
import { Pulse } from '../Pulse/Pulse';
|
|
13
12
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
14
13
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
@@ -48,7 +47,8 @@ export default (function (_ref) {
|
|
|
48
47
|
ariaLabel = _ref.ariaLabel,
|
|
49
48
|
isRadioButton = _ref.isRadioButton,
|
|
50
49
|
pulse = _ref.pulse,
|
|
51
|
-
spotlightConfig = _ref.spotlightConfig
|
|
50
|
+
spotlightConfig = _ref.spotlightConfig,
|
|
51
|
+
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
52
52
|
// Check if there's only an icon and add additional styles
|
|
53
53
|
var iconOnly = (icon || iconAfter) && !children;
|
|
54
54
|
var customSpacing = iconOnly ? iconOnlySpacing : {};
|
|
@@ -102,7 +102,7 @@ export default (function (_ref) {
|
|
|
102
102
|
appearance: appearance,
|
|
103
103
|
state: themeProps.state,
|
|
104
104
|
mode: themeProps.mode
|
|
105
|
-
})),
|
|
105
|
+
})), areAnyNewToolbarFlagsEnabled ? customSizeAndPadding : {})
|
|
106
106
|
}, rest);
|
|
107
107
|
},
|
|
108
108
|
"aria-label": ariaLabel || title,
|
|
@@ -111,7 +111,7 @@ export default (function (_ref) {
|
|
|
111
111
|
role: isRadioButton ? 'radio' : undefined,
|
|
112
112
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
113
113
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
114
|
-
spacing:
|
|
114
|
+
spacing: areAnyNewToolbarFlagsEnabled ? 'default' : 'compact',
|
|
115
115
|
href: href,
|
|
116
116
|
target: target,
|
|
117
117
|
appearance: appearance,
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
8
7
|
var separator = css({
|
|
9
8
|
background: "var(--ds-border, #091E4224)",
|
|
10
9
|
width: '1px',
|
|
@@ -22,9 +21,10 @@ var separatorFullHeight = css({
|
|
|
22
21
|
height: '40px'
|
|
23
22
|
});
|
|
24
23
|
export default (function (_ref) {
|
|
25
|
-
var fullHeight = _ref.fullHeight
|
|
24
|
+
var fullHeight = _ref.fullHeight,
|
|
25
|
+
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
26
26
|
return jsx("div", {
|
|
27
|
-
css: [
|
|
27
|
+
css: [areAnyNewToolbarFlagsEnabled ? separatorNew : separator, fullHeight && separatorFullHeight]
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
29
29
|
,
|
|
30
30
|
className: "separator"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { NewCoreIconProps, IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export interface ButtonOptionProps {
|
|
4
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
icon: (props: NewCoreIconProps) => JSX.Element;
|
|
6
7
|
iconFallback: (props: IconProps) => JSX.Element;
|
|
@@ -52,4 +52,4 @@ export declare const appearancePropsMap: {
|
|
|
52
52
|
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
55
|
+
export declare const getButtonGroupOption: (intl: IntlShape, areAnyNewToolbarFlagsEnabled: boolean, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
@@ -10,6 +10,7 @@ export interface DropdownMenuOptions {
|
|
|
10
10
|
showSelected: boolean;
|
|
11
11
|
}
|
|
12
12
|
type OverflowExtensionPlaceholderProps = {
|
|
13
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
13
14
|
disabled?: (key: string) => boolean;
|
|
14
15
|
dropdownOptions?: DropdownMenuOptions;
|
|
15
16
|
editorView: EditorView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const areToolbarFlagsEnabled: () => boolean;
|
|
1
|
+
export declare const areToolbarFlagsEnabled: (isNewToolbarEnabled?: boolean) => boolean;
|
|
@@ -5,6 +5,7 @@ import type { FloatingToolbarButtonSpotlightConfig } from '../../types/floating-
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
appearance?: ButtonAppearance;
|
|
7
7
|
areaControls?: string;
|
|
8
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
8
9
|
ariaHasPopup?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | undefined;
|
|
9
10
|
ariaLabel?: string;
|
|
10
11
|
children?: React.ReactNode;
|
|
@@ -35,5 +36,5 @@ export interface Props {
|
|
|
35
36
|
tooltipContent?: TooltipProps['content'];
|
|
36
37
|
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
37
38
|
}
|
|
38
|
-
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, onUnmount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, interactionName, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, spotlightConfig, }: Props) => React.JSX.Element;
|
|
39
|
+
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, onUnmount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, interactionName, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, spotlightConfig, areAnyNewToolbarFlagsEnabled, }: Props) => React.JSX.Element;
|
|
39
40
|
export default _default;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
type SeparatorProps = {
|
|
7
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
7
8
|
/**
|
|
8
9
|
* @private
|
|
9
10
|
* @deprecated
|
|
@@ -12,5 +13,5 @@ type SeparatorProps = {
|
|
|
12
13
|
*/
|
|
13
14
|
fullHeight?: boolean;
|
|
14
15
|
};
|
|
15
|
-
declare const _default: ({ fullHeight }: SeparatorProps) => jsx.JSX.Element;
|
|
16
|
+
declare const _default: ({ fullHeight, areAnyNewToolbarFlagsEnabled }: SeparatorProps) => jsx.JSX.Element;
|
|
16
17
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { NewCoreIconProps, IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export interface ButtonOptionProps {
|
|
4
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
icon: (props: NewCoreIconProps) => JSX.Element;
|
|
6
7
|
iconFallback: (props: IconProps) => JSX.Element;
|
|
@@ -52,4 +52,4 @@ export declare const appearancePropsMap: {
|
|
|
52
52
|
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
55
|
+
export declare const getButtonGroupOption: (intl: IntlShape, areAnyNewToolbarFlagsEnabled: boolean, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
@@ -10,6 +10,7 @@ export interface DropdownMenuOptions {
|
|
|
10
10
|
showSelected: boolean;
|
|
11
11
|
}
|
|
12
12
|
type OverflowExtensionPlaceholderProps = {
|
|
13
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
13
14
|
disabled?: (key: string) => boolean;
|
|
14
15
|
dropdownOptions?: DropdownMenuOptions;
|
|
15
16
|
editorView: EditorView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const areToolbarFlagsEnabled: () => boolean;
|
|
1
|
+
export declare const areToolbarFlagsEnabled: (isNewToolbarEnabled?: boolean) => boolean;
|
|
@@ -5,6 +5,7 @@ import type { FloatingToolbarButtonSpotlightConfig } from '../../types/floating-
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
appearance?: ButtonAppearance;
|
|
7
7
|
areaControls?: string;
|
|
8
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
8
9
|
ariaHasPopup?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | undefined;
|
|
9
10
|
ariaLabel?: string;
|
|
10
11
|
children?: React.ReactNode;
|
|
@@ -35,5 +36,5 @@ export interface Props {
|
|
|
35
36
|
tooltipContent?: TooltipProps['content'];
|
|
36
37
|
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
37
38
|
}
|
|
38
|
-
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, onUnmount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, interactionName, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, spotlightConfig, }: Props) => React.JSX.Element;
|
|
39
|
+
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, onUnmount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, interactionName, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, spotlightConfig, areAnyNewToolbarFlagsEnabled, }: Props) => React.JSX.Element;
|
|
39
40
|
export default _default;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
type SeparatorProps = {
|
|
7
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
7
8
|
/**
|
|
8
9
|
* @private
|
|
9
10
|
* @deprecated
|
|
@@ -12,5 +13,5 @@ type SeparatorProps = {
|
|
|
12
13
|
*/
|
|
13
14
|
fullHeight?: boolean;
|
|
14
15
|
};
|
|
15
|
-
declare const _default: ({ fullHeight }: SeparatorProps) => jsx.JSX.Element;
|
|
16
|
+
declare const _default: ({ fullHeight, areAnyNewToolbarFlagsEnabled }: SeparatorProps) => jsx.JSX.Element;
|
|
16
17
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "108.6.
|
|
3
|
+
"version": "108.6.3",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"@atlaskit/popper": "^7.1.0",
|
|
169
169
|
"@atlaskit/primitives": "^14.14.0",
|
|
170
170
|
"@atlaskit/profilecard": "^24.11.0",
|
|
171
|
-
"@atlaskit/react-ufo": "^4.
|
|
171
|
+
"@atlaskit/react-ufo": "^4.6.0",
|
|
172
172
|
"@atlaskit/section-message": "^8.7.0",
|
|
173
173
|
"@atlaskit/smart-card": "^40.21.0",
|
|
174
174
|
"@atlaskit/smart-user-picker": "^8.2.0",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"@atlaskit/task-decision": "^19.2.0",
|
|
178
178
|
"@atlaskit/textfield": "^8.0.0",
|
|
179
179
|
"@atlaskit/theme": "^20.0.0",
|
|
180
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
180
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
181
181
|
"@atlaskit/tokens": "^6.3.0",
|
|
182
182
|
"@atlaskit/tooltip": "^20.4.0",
|
|
183
183
|
"@atlaskit/width-detector": "^5.0.0",
|