@atlaskit/editor-common 107.8.6 → 107.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/cjs/ai-messages/ai.js +4 -4
- package/dist/cjs/media-inline/views/error-view.js +2 -2
- package/dist/cjs/media-single/ExternalImageBadge.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/toolbar-flag-check.js +10 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +3 -3
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -2
- package/dist/cjs/ui/Messages/index.js +4 -4
- package/dist/es2019/ai-messages/ai.js +4 -4
- package/dist/es2019/media-inline/views/error-view.js +1 -1
- package/dist/es2019/media-single/ExternalImageBadge.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/toolbar-flag-check.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +3 -3
- package/dist/es2019/ui/FloatingToolbar/Separator.js +2 -2
- package/dist/es2019/ui/Messages/index.js +2 -2
- package/dist/esm/ai-messages/ai.js +4 -4
- package/dist/esm/media-inline/views/error-view.js +1 -1
- package/dist/esm/media-single/ExternalImageBadge.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/toolbar-flag-check.js +4 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +3 -3
- package/dist/esm/ui/FloatingToolbar/Separator.js +2 -2
- package/dist/esm/ui/Messages/index.js +2 -2
- package/dist/types/ai-messages/ai.d.ts +1 -1
- package/dist/types/toolbar-flag-check.d.ts +1 -0
- package/dist/types-ts4.5/ai-messages/ai.d.ts +1 -1
- package/dist/types-ts4.5/toolbar-flag-check.d.ts +1 -0
- package/package.json +6 -5
- package/toolbar-flag-check/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#188952](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188952)
|
|
8
|
+
[`1a88e6e2601ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a88e6e2601ae) -
|
|
9
|
+
Migrated usage of renamed/deprecated icons
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 107.9.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#188597](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188597)
|
|
17
|
+
[`4de5a96f3e24c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4de5a96f3e24c) -
|
|
18
|
+
[ED-28523] Enable new editor element toolbars UI for Jira
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#187640](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187640)
|
|
23
|
+
[`fe73e3c5b62fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe73e3c5b62fa) -
|
|
24
|
+
[ux] [EDITOR-1063] added new ask rovo split button
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 107.8.6
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -38,10 +38,10 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
38
38
|
defaultMessage: 'Ask AI',
|
|
39
39
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
id: 'fabric.editor.ai.toolbar.
|
|
43
|
-
defaultMessage: 'Ask Rovo
|
|
44
|
-
description: 'Label for the
|
|
41
|
+
askRovoAiSplitButtonLabel: {
|
|
42
|
+
id: 'fabric.editor.ai.toolbar.askRovoAiSplitButton.label',
|
|
43
|
+
defaultMessage: 'Ask Rovo AI',
|
|
44
|
+
description: 'Label for the button prompting user to type a query to Rovo.'
|
|
45
45
|
},
|
|
46
46
|
askAIToolbarIconTooltip: {
|
|
47
47
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.InlineImageCardErrorView = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _statusWarningWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-warning--warning"));
|
|
10
10
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
11
11
|
var _constants = require("./constants");
|
|
12
12
|
var _frame = require("./frame");
|
|
@@ -32,7 +32,7 @@ var InlineImageCardErrorView = exports.InlineImageCardErrorView = function Inlin
|
|
|
32
32
|
position: "top",
|
|
33
33
|
tag: "span",
|
|
34
34
|
hideTooltipOnClick: true
|
|
35
|
-
}, (0, _react.jsx)(_iconWrapper.IconWrapper, null, icon || (0, _react.jsx)(
|
|
35
|
+
}, (0, _react.jsx)(_iconWrapper.IconWrapper, null, icon || (0, _react.jsx)(_statusWarningWarning.default, {
|
|
36
36
|
label: "error",
|
|
37
37
|
LEGACY_size: height > _constants.ICON_SIZE_THRESOLD ? 'medium' : 'small',
|
|
38
38
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.isUnbadgedUrl = exports.ExternalImageBadge = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var
|
|
10
|
+
var _statusInformationInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-information--info"));
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
13
|
var _media = require("../media");
|
|
@@ -59,7 +59,7 @@ var ExternalImageBadge = exports.ExternalImageBadge = function ExternalImageBadg
|
|
|
59
59
|
}), /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
60
60
|
content: message,
|
|
61
61
|
position: "top"
|
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_statusInformationInfo.default, {
|
|
63
63
|
LEGACY_size: "small",
|
|
64
64
|
label: message
|
|
65
65
|
})));
|
|
@@ -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 = "107.
|
|
19
|
+
var packageVersion = "107.9.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.areToolbarFlagsEnabled = void 0;
|
|
7
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
8
|
+
var areToolbarFlagsEnabled = exports.areToolbarFlagsEnabled = function areToolbarFlagsEnabled() {
|
|
9
|
+
return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_toolbar_aifc', 'isEnabled', true);
|
|
10
|
+
};
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "107.
|
|
26
|
+
var packageVersion = "107.9.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -12,8 +12,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
15
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
|
+
var _toolbarFlagCheck = require("../../toolbar-flag-check");
|
|
17
17
|
var _Pulse = require("../Pulse/Pulse");
|
|
18
18
|
var _ButtonSpotlightCard = require("./ButtonSpotlightCard");
|
|
19
19
|
var _styles = require("./styles");
|
|
@@ -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
|
-
})), (0,
|
|
114
|
+
})), (0, _toolbarFlagCheck.areToolbarFlagsEnabled)() ? 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: (0,
|
|
123
|
+
spacing: (0, _toolbarFlagCheck.areToolbarFlagsEnabled)() ? 'default' : 'compact',
|
|
124
124
|
href: href,
|
|
125
125
|
target: target,
|
|
126
126
|
appearance: appearance,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _toolbarFlagCheck = require("../../toolbar-flag-check");
|
|
9
9
|
/**
|
|
10
10
|
* @jsxRuntime classic
|
|
11
11
|
* @jsx jsx
|
|
@@ -31,7 +31,7 @@ var separatorFullHeight = (0, _react.css)({
|
|
|
31
31
|
var _default = exports.default = function _default(_ref) {
|
|
32
32
|
var fullHeight = _ref.fullHeight;
|
|
33
33
|
return (0, _react.jsx)("div", {
|
|
34
|
-
css: [(0,
|
|
34
|
+
css: [(0, _toolbarFlagCheck.areToolbarFlagsEnabled)() ? 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"
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ValidMessage = exports.HelperMessage = exports.ErrorMessage = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _statusErrorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-error--error"));
|
|
10
|
+
var _statusSuccessEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-success--editor-success"));
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
13
13
|
* @jsx jsx
|
|
@@ -58,7 +58,7 @@ var ErrorMessage = exports.ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
58
58
|
}
|
|
59
59
|
}, (0, _react.jsx)("span", {
|
|
60
60
|
css: iconWrapperStyle
|
|
61
|
-
}, (0, _react.jsx)(
|
|
61
|
+
}, (0, _react.jsx)(_statusErrorError.default, {
|
|
62
62
|
LEGACY_size: "small",
|
|
63
63
|
label: "error",
|
|
64
64
|
"aria-label": "error"
|
|
@@ -72,7 +72,7 @@ var ValidMessage = exports.ValidMessage = function ValidMessage(_ref3) {
|
|
|
72
72
|
}
|
|
73
73
|
}, (0, _react.jsx)("span", {
|
|
74
74
|
css: iconWrapperStyle
|
|
75
|
-
}, (0, _react.jsx)(
|
|
75
|
+
}, (0, _react.jsx)(_statusSuccessEditorSuccess.default, {
|
|
76
76
|
LEGACY_size: "small",
|
|
77
77
|
label: "success"
|
|
78
78
|
})), children);
|
|
@@ -32,10 +32,10 @@ export const aiMessages = defineMessages({
|
|
|
32
32
|
defaultMessage: 'Ask AI',
|
|
33
33
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
id: 'fabric.editor.ai.toolbar.
|
|
37
|
-
defaultMessage: 'Ask Rovo
|
|
38
|
-
description: 'Label for the
|
|
35
|
+
askRovoAiSplitButtonLabel: {
|
|
36
|
+
id: 'fabric.editor.ai.toolbar.askRovoAiSplitButton.label',
|
|
37
|
+
defaultMessage: 'Ask Rovo AI',
|
|
38
|
+
description: 'Label for the button prompting user to type a query to Rovo.'
|
|
39
39
|
},
|
|
40
40
|
askAIToolbarIconTooltip: {
|
|
41
41
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
@@ -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/migration/warning';
|
|
8
|
+
import WarningIcon from '@atlaskit/icon/core/migration/status-warning--warning';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
11
11
|
import { Frame } from './frame';
|
|
@@ -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/migration/information--info';
|
|
3
|
+
import InfoIcon from '@atlaskit/icon/core/migration/status-information--info';
|
|
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';
|
|
@@ -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 = "107.
|
|
4
|
+
const packageVersion = "107.9.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
|
+
export const areToolbarFlagsEnabled = () => expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') || expValEqualsNoExposure('platform_editor_toolbar_aifc', 'isEnabled', true);
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "107.
|
|
16
|
+
const packageVersion = "107.9.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
|
+
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
6
6
|
import { Pulse } from '../Pulse/Pulse';
|
|
7
7
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
8
8
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
@@ -93,7 +93,7 @@ export default (({
|
|
|
93
93
|
state: themeProps.state,
|
|
94
94
|
mode: themeProps.mode
|
|
95
95
|
})),
|
|
96
|
-
...(
|
|
96
|
+
...(areToolbarFlagsEnabled() ? 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: areToolbarFlagsEnabled() ? 'default' : 'compact',
|
|
108
108
|
href: href,
|
|
109
109
|
target: target,
|
|
110
110
|
appearance: appearance,
|
|
@@ -4,7 +4,7 @@
|
|
|
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 {
|
|
7
|
+
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
8
8
|
const separator = css({
|
|
9
9
|
background: "var(--ds-border, #091E4224)",
|
|
10
10
|
width: '1px',
|
|
@@ -24,7 +24,7 @@ const separatorFullHeight = css({
|
|
|
24
24
|
export default (({
|
|
25
25
|
fullHeight
|
|
26
26
|
}) => jsx("div", {
|
|
27
|
-
css: [
|
|
27
|
+
css: [areToolbarFlagsEnabled() ? 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"
|
|
@@ -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/migration/error';
|
|
9
|
-
import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/status-error--error';
|
|
9
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-success';
|
|
10
10
|
const errorColor = css({
|
|
11
11
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
12
12
|
});
|
|
@@ -32,10 +32,10 @@ export var aiMessages = defineMessages({
|
|
|
32
32
|
defaultMessage: 'Ask AI',
|
|
33
33
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
id: 'fabric.editor.ai.toolbar.
|
|
37
|
-
defaultMessage: 'Ask Rovo
|
|
38
|
-
description: 'Label for the
|
|
35
|
+
askRovoAiSplitButtonLabel: {
|
|
36
|
+
id: 'fabric.editor.ai.toolbar.askRovoAiSplitButton.label',
|
|
37
|
+
defaultMessage: 'Ask Rovo AI',
|
|
38
|
+
description: 'Label for the button prompting user to type a query to Rovo.'
|
|
39
39
|
},
|
|
40
40
|
askAIToolbarIconTooltip: {
|
|
41
41
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
@@ -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/migration/warning';
|
|
8
|
+
import WarningIcon from '@atlaskit/icon/core/migration/status-warning--warning';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
11
11
|
import { Frame } from './frame';
|
|
@@ -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/migration/information--info';
|
|
3
|
+
import InfoIcon from '@atlaskit/icon/core/migration/status-information--info';
|
|
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';
|
|
@@ -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 = "107.
|
|
10
|
+
var packageVersion = "107.9.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
|
+
export var areToolbarFlagsEnabled = function areToolbarFlagsEnabled() {
|
|
3
|
+
return expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') || expValEqualsNoExposure('platform_editor_toolbar_aifc', 'isEnabled', true);
|
|
4
|
+
};
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "107.
|
|
23
|
+
var packageVersion = "107.9.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -7,8 +7,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
+
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
12
12
|
import { Pulse } from '../Pulse/Pulse';
|
|
13
13
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
14
14
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
@@ -102,7 +102,7 @@ export default (function (_ref) {
|
|
|
102
102
|
appearance: appearance,
|
|
103
103
|
state: themeProps.state,
|
|
104
104
|
mode: themeProps.mode
|
|
105
|
-
})),
|
|
105
|
+
})), areToolbarFlagsEnabled() ? 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: areToolbarFlagsEnabled() ? 'default' : 'compact',
|
|
115
115
|
href: href,
|
|
116
116
|
target: target,
|
|
117
117
|
appearance: appearance,
|
|
@@ -4,7 +4,7 @@
|
|
|
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 {
|
|
7
|
+
import { areToolbarFlagsEnabled } from '../../toolbar-flag-check';
|
|
8
8
|
var separator = css({
|
|
9
9
|
background: "var(--ds-border, #091E4224)",
|
|
10
10
|
width: '1px',
|
|
@@ -24,7 +24,7 @@ var separatorFullHeight = css({
|
|
|
24
24
|
export default (function (_ref) {
|
|
25
25
|
var fullHeight = _ref.fullHeight;
|
|
26
26
|
return jsx("div", {
|
|
27
|
-
css: [
|
|
27
|
+
css: [areToolbarFlagsEnabled() ? 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"
|
|
@@ -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/migration/error';
|
|
9
|
-
import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/status-error--error';
|
|
9
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-success';
|
|
10
10
|
var errorColor = css({
|
|
11
11
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
12
12
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const areToolbarFlagsEnabled: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const areToolbarFlagsEnabled: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.9.1",
|
|
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/"
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
"./median": "./src/utils/median.ts",
|
|
119
119
|
"./ugc-tokens": "./src/ugc-tokens/index.ts",
|
|
120
120
|
"./get-dom-ref-from-selection": "./src/utils/get-dom-ref-from-selection.ts",
|
|
121
|
-
"./ncs-step-metrics": "./src/ncs-step-metrics/index.ts"
|
|
121
|
+
"./ncs-step-metrics": "./src/ncs-step-metrics/index.ts",
|
|
122
|
+
"./toolbar-flag-check": "./src/toolbar-flag-check.ts"
|
|
122
123
|
},
|
|
123
124
|
"dependencies": {
|
|
124
125
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
"@atlaskit/icon-object": "^7.1.0",
|
|
145
146
|
"@atlaskit/link": "^3.2.0",
|
|
146
147
|
"@atlaskit/link-datasource": "^4.14.0",
|
|
147
|
-
"@atlaskit/link-picker": "^3.
|
|
148
|
+
"@atlaskit/link-picker": "^3.8.0",
|
|
148
149
|
"@atlaskit/media-card": "^79.4.0",
|
|
149
150
|
"@atlaskit/media-client": "^35.1.0",
|
|
150
151
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
"@atlaskit/popper": "^7.1.0",
|
|
162
163
|
"@atlaskit/primitives": "^14.10.0",
|
|
163
164
|
"@atlaskit/profilecard": "^23.21.0",
|
|
164
|
-
"@atlaskit/react-ufo": "^4.
|
|
165
|
+
"@atlaskit/react-ufo": "^4.1.0",
|
|
165
166
|
"@atlaskit/section-message": "^8.2.0",
|
|
166
167
|
"@atlaskit/smart-card": "^40.4.0",
|
|
167
168
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
@@ -170,7 +171,7 @@
|
|
|
170
171
|
"@atlaskit/task-decision": "^19.2.0",
|
|
171
172
|
"@atlaskit/textfield": "^8.0.0",
|
|
172
173
|
"@atlaskit/theme": "^19.0.0",
|
|
173
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
174
|
+
"@atlaskit/tmp-editor-statsig": "^9.9.0",
|
|
174
175
|
"@atlaskit/tokens": "^5.6.0",
|
|
175
176
|
"@atlaskit/tooltip": "^20.3.0",
|
|
176
177
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/toolbar-flag-check",
|
|
3
|
+
"main": "../dist/cjs/toolbar-flag-check.js",
|
|
4
|
+
"module": "../dist/esm/toolbar-flag-check.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/toolbar-flag-check.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/toolbar-flag-check.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/toolbar-flag-check.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|