@atlaskit/editor-common 116.28.1 → 116.30.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 +40 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/collab/index.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/use-icon-themed.js +2 -2
- package/dist/cjs/styles/index.js +6 -0
- package/dist/cjs/styles/shared/drag-handle.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -2
- package/dist/cjs/vanilla-tooltip/index.js +0 -10
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/use-icon-themed.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/drag-handle.js +2 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +1 -1
- package/dist/es2019/vanilla-tooltip/index.js +1 -10
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/use-icon-themed.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/drag-handle.js +2 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +1 -1
- package/dist/esm/vanilla-tooltip/index.js +0 -10
- package/dist/types/analytics/types/ai-quick-prompt-events.d.ts +13 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/guideline/types.d.ts +1 -1
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/drag-handle.d.ts +1 -0
- package/dist/types/styles/shared/headings.d.ts +1 -1
- package/dist/types/vanilla-tooltip/index.d.ts +1 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`607477c5d6aae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/607477c5d6aae) -
|
|
8
|
+
EDITOR-7032 Remove the implementation of using VanillaTooltip for emoji tooltips
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 116.29.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`900a71f62a8fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/900a71f62a8fe) -
|
|
19
|
+
Add multi-cohort should-improve-writing routing for the cc-smarts migration experiment.
|
|
20
|
+
|
|
21
|
+
The `cc_smarts_should_improve_writing_migration` editor experiment is configured through
|
|
22
|
+
`@atlaskit/tmp-editor-statsig` and can return `control`, `shadow_compare`, or `live_cc_smarts`.
|
|
23
|
+
Consumers can also emit the new shadow-comparison divergence analytics event when a user-visible
|
|
24
|
+
convo-ai result differs from the cc-smarts shadow result.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
fireAiQuickPromptShadowComparisonDivergedEvent({
|
|
28
|
+
api,
|
|
29
|
+
experienceName: 'should-improve-writing',
|
|
30
|
+
convoAiOk: true,
|
|
31
|
+
ccSmartsOk: true,
|
|
32
|
+
convoAiShouldImprove: true,
|
|
33
|
+
ccSmartsShouldImprove: false,
|
|
34
|
+
convoAiStatus: 200,
|
|
35
|
+
ccSmartsStatus: 200,
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 116.28.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -51,6 +51,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
51
51
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
52
52
|
ACTION["DISMISSED"] = "dismissed";
|
|
53
53
|
ACTION["DISPLAYED"] = "displayed";
|
|
54
|
+
ACTION["DIVERGED"] = "diverged";
|
|
54
55
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
55
56
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
56
57
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransac
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var
|
|
11
|
+
var _getGlobalTheme2 = require("@atlaskit/tokens/get-global-theme");
|
|
12
12
|
var _templateObject;
|
|
13
13
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
14
14
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
@@ -130,7 +130,7 @@ var DisconnectReason = exports.DisconnectReason = /*#__PURE__*/function (Disconn
|
|
|
130
130
|
//Intersection: NCS custom step type config in adf-schema
|
|
131
131
|
//Unions
|
|
132
132
|
var telepointerColorStyle = function telepointerColorStyle(backgroundColor, textColor, index) {
|
|
133
|
-
var _getGlobalTheme = (0,
|
|
133
|
+
var _getGlobalTheme = (0, _getGlobalTheme2.getGlobalTheme)(),
|
|
134
134
|
colorMode = _getGlobalTheme.colorMode;
|
|
135
135
|
var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(backgroundColor, " -800000%, transparent 200000%)") : "linear-gradient(to bottom, ".concat(backgroundColor, " -850000%, transparent 150000%)");
|
|
136
136
|
return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(backgroundColor, ";\n color: ").concat(textColor, ";\n border-color: ").concat(backgroundColor, ";\n }\n }\n ");
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.
|
|
31
|
+
var packageVersion = "116.29.0";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useIconThemed = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
8
8
|
/**
|
|
9
9
|
* Warning -- if additional color modes beyond light and dark are added in future -- this will have unexpected behaviour
|
|
10
10
|
*/
|
|
11
11
|
var useIconThemed = exports.useIconThemed = function useIconThemed() {
|
|
12
|
-
var _useThemeObserver = (0,
|
|
12
|
+
var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
|
|
13
13
|
colorMode = _useThemeObserver.colorMode;
|
|
14
14
|
return {
|
|
15
15
|
iconThemed: function iconThemed(colors) {
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -123,6 +123,12 @@ Object.defineProperty(exports, "MediaSharedClassNames", {
|
|
|
123
123
|
return _media.ClassNames;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
+
Object.defineProperty(exports, "NESTED_DROPDOWN_MENU", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _dragHandle.NESTED_DROPDOWN_MENU;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
126
132
|
Object.defineProperty(exports, "SmartCardSharedCssClassName", {
|
|
127
133
|
enumerable: true,
|
|
128
134
|
get: function get() {
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_SELECTOR = void 0;
|
|
6
|
+
exports.NESTED_DROPDOWN_MENU = exports.DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_SELECTOR = void 0;
|
|
7
7
|
var DRAG_HANDLE_SELECTOR = exports.DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_WIDTH = 12;
|
|
9
|
+
var DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_WIDTH = 12;
|
|
10
|
+
var NESTED_DROPDOWN_MENU = exports.NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
|
|
@@ -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 = "116.
|
|
27
|
+
var packageVersion = "116.29.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.highlightColorPalette = exports.REMOVE_HIGHLIGHT_COLOR = exports.EditorDiagonalLineIcon = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
|
-
var
|
|
10
|
+
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
11
11
|
var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
|
|
12
12
|
var _mapPaletteColor = require("./mapPaletteColor");
|
|
13
13
|
var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
|
|
@@ -47,7 +47,7 @@ var DiagonalLineGlyph = function DiagonalLineGlyph(props) {
|
|
|
47
47
|
|
|
48
48
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
49
49
|
var EditorDiagonalLineIcon = exports.EditorDiagonalLineIcon = function EditorDiagonalLineIcon() {
|
|
50
|
-
var _useThemeObserver = (0,
|
|
50
|
+
var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
|
|
51
51
|
colorMode = _useThemeObserver.colorMode;
|
|
52
52
|
var primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #6B6E76)" : "var(--ds-background-accent-gray-subtle, #8C8F97)";
|
|
53
53
|
return (
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _chromatism = _interopRequireDefault(require("chromatism"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
|
-
var
|
|
12
|
+
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
13
13
|
var _Color = _interopRequireDefault(require("./Color"));
|
|
14
14
|
var _getColorMessage = _interopRequireDefault(require("./Palettes/getColorMessage"));
|
|
15
15
|
var _styles = require("./styles");
|
|
@@ -59,7 +59,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
59
59
|
var palette = paletteOptions.palette,
|
|
60
60
|
hexToPaletteColor = paletteOptions.hexToPaletteColor,
|
|
61
61
|
paletteColorTooltipMessages = paletteOptions.paletteColorTooltipMessages;
|
|
62
|
-
var _useThemeObserver = (0,
|
|
62
|
+
var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
|
|
63
63
|
tokenTheme = _useThemeObserver.colorMode;
|
|
64
64
|
var useIconToken = !!hexToPaletteColor;
|
|
65
65
|
var colorsPerRow = _react.default.useMemo(function () {
|
|
@@ -43,13 +43,6 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
43
43
|
className) {
|
|
44
44
|
var _this = this;
|
|
45
45
|
var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
|
|
46
|
-
var
|
|
47
|
-
/**
|
|
48
|
-
* Optional inline styles to apply directly to the tooltip element.
|
|
49
|
-
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
50
|
-
* where ancestor CSS selectors cannot reach it.
|
|
51
|
-
*/
|
|
52
|
-
styles = arguments.length > 5 ? arguments[5] : undefined;
|
|
53
46
|
(0, _classCallCheck2.default)(this, VanillaTooltip);
|
|
54
47
|
(0, _defineProperty2.default)(this, "listeners", []);
|
|
55
48
|
(0, _defineProperty2.default)(this, "shouldHidePopover", false);
|
|
@@ -62,9 +55,6 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
62
55
|
tooltip.className = className;
|
|
63
56
|
tooltip.id = id;
|
|
64
57
|
tooltip.textContent = content;
|
|
65
|
-
if (styles) {
|
|
66
|
-
Object.assign(tooltip.style, styles);
|
|
67
|
-
}
|
|
68
58
|
this.tooltip = tooltip;
|
|
69
59
|
|
|
70
60
|
// Button preparation
|
|
@@ -47,6 +47,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
47
47
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
48
48
|
ACTION["DISMISSED"] = "dismissed";
|
|
49
49
|
ACTION["DISPLAYED"] = "displayed";
|
|
50
|
+
ACTION["DIVERGED"] = "diverged";
|
|
50
51
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
51
52
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
52
53
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { participantColors } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
7
|
+
import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
|
|
8
8
|
|
|
9
9
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
10
10
|
// that gets called when syncing with the back-end service fails.
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.29.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -27,5 +27,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
|
|
|
27
27
|
export { ClassNames as MediaSharedClassNames } from './shared/media';
|
|
28
28
|
export { BreakoutCssClassName } from './shared/breakout';
|
|
29
29
|
export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
|
|
30
|
-
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
|
|
30
|
+
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU } from './shared/drag-handle';
|
|
31
31
|
export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles } from './shared/native-anchor';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export const DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
|
|
2
2
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
3
|
-
export const DRAG_HANDLE_WIDTH = 12;
|
|
3
|
+
export const DRAG_HANDLE_WIDTH = 12;
|
|
4
|
+
export const NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
|
|
@@ -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 = "116.
|
|
17
|
+
const packageVersion = "116.29.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
9
|
-
import { useThemeObserver } from '@atlaskit/tokens';
|
|
9
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
10
|
import getColorMessage from './getColorMessage';
|
|
11
11
|
import { mapPaletteColor } from './mapPaletteColor';
|
|
12
12
|
import paletteMessages from './paletteMessages';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import chromatism from 'chromatism';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
-
import { useThemeObserver } from '@atlaskit/tokens';
|
|
11
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
12
12
|
import Color from './Color';
|
|
13
13
|
import getColorMessage from './Palettes/getColorMessage';
|
|
14
14
|
import { colorPaletteWrapper } from './styles';
|
|
@@ -29,13 +29,7 @@ export class VanillaTooltip {
|
|
|
29
29
|
/**
|
|
30
30
|
* Class Name – used for styling.
|
|
31
31
|
*/
|
|
32
|
-
className, timeout = 300
|
|
33
|
-
/**
|
|
34
|
-
* Optional inline styles to apply directly to the tooltip element.
|
|
35
|
-
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
36
|
-
* where ancestor CSS selectors cannot reach it.
|
|
37
|
-
*/
|
|
38
|
-
styles) {
|
|
32
|
+
className, timeout = 300) {
|
|
39
33
|
_defineProperty(this, "listeners", []);
|
|
40
34
|
_defineProperty(this, "shouldHidePopover", false);
|
|
41
35
|
_defineProperty(this, "isDisplayed", false);
|
|
@@ -47,9 +41,6 @@ export class VanillaTooltip {
|
|
|
47
41
|
tooltip.className = className;
|
|
48
42
|
tooltip.id = id;
|
|
49
43
|
tooltip.textContent = content;
|
|
50
|
-
if (styles) {
|
|
51
|
-
Object.assign(tooltip.style, styles);
|
|
52
|
-
}
|
|
53
44
|
this.tooltip = tooltip;
|
|
54
45
|
|
|
55
46
|
// Button preparation
|
|
@@ -47,6 +47,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
47
47
|
ACTION["DISCONNECTED_TARGET"] = "disconnectedTarget";
|
|
48
48
|
ACTION["DISMISSED"] = "dismissed";
|
|
49
49
|
ACTION["DISPLAYED"] = "displayed";
|
|
50
|
+
ACTION["DIVERGED"] = "diverged";
|
|
50
51
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
51
52
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
52
53
|
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var _templateObject;
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css } from '@emotion/react';
|
|
8
8
|
import { participantColors } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
9
|
+
import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
|
|
10
10
|
|
|
11
11
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
12
12
|
// that gets called when syncing with the back-end service fails.
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.
|
|
23
|
+
var packageVersion = "116.29.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -27,5 +27,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
|
|
|
27
27
|
export { ClassNames as MediaSharedClassNames } from './shared/media';
|
|
28
28
|
export { BreakoutCssClassName } from './shared/breakout';
|
|
29
29
|
export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
|
|
30
|
-
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
|
|
30
|
+
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU } from './shared/drag-handle';
|
|
31
31
|
export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles } from './shared/native-anchor';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export var DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
|
|
2
2
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
3
|
-
export var DRAG_HANDLE_WIDTH = 12;
|
|
3
|
+
export var DRAG_HANDLE_WIDTH = 12;
|
|
4
|
+
export var NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
|
|
@@ -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 = "116.
|
|
24
|
+
var packageVersion = "116.29.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
9
|
-
import { useThemeObserver } from '@atlaskit/tokens';
|
|
9
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
10
|
import getColorMessage from './getColorMessage';
|
|
11
11
|
import { mapPaletteColor } from './mapPaletteColor';
|
|
12
12
|
import paletteMessages from './paletteMessages';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import chromatism from 'chromatism';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
-
import { useThemeObserver } from '@atlaskit/tokens';
|
|
11
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
12
12
|
import Color from './Color';
|
|
13
13
|
import getColorMessage from './Palettes/getColorMessage';
|
|
14
14
|
import { colorPaletteWrapper } from './styles';
|
|
@@ -36,13 +36,6 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
36
36
|
className) {
|
|
37
37
|
var _this = this;
|
|
38
38
|
var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
|
|
39
|
-
var
|
|
40
|
-
/**
|
|
41
|
-
* Optional inline styles to apply directly to the tooltip element.
|
|
42
|
-
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
43
|
-
* where ancestor CSS selectors cannot reach it.
|
|
44
|
-
*/
|
|
45
|
-
styles = arguments.length > 5 ? arguments[5] : undefined;
|
|
46
39
|
_classCallCheck(this, VanillaTooltip);
|
|
47
40
|
_defineProperty(this, "listeners", []);
|
|
48
41
|
_defineProperty(this, "shouldHidePopover", false);
|
|
@@ -55,9 +48,6 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
55
48
|
tooltip.className = className;
|
|
56
49
|
tooltip.id = id;
|
|
57
50
|
tooltip.textContent = content;
|
|
58
|
-
if (styles) {
|
|
59
|
-
Object.assign(tooltip.style, styles);
|
|
60
|
-
}
|
|
61
51
|
this.tooltip = tooltip;
|
|
62
52
|
|
|
63
53
|
// Button preparation
|
|
@@ -16,5 +16,17 @@ type AIQuickPromptApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.
|
|
|
16
16
|
experienceName: string;
|
|
17
17
|
statusCode?: number;
|
|
18
18
|
}>;
|
|
19
|
-
|
|
19
|
+
type AIQuickPromptShadowComparisonDivergedAEP = OperationalAEP<ACTION.DIVERGED, ACTION_SUBJECT.AI_QUICK_PROMPT, undefined, {
|
|
20
|
+
ccSmartsErrorType?: string;
|
|
21
|
+
ccSmartsOk: boolean;
|
|
22
|
+
ccSmartsShouldImprove: boolean;
|
|
23
|
+
ccSmartsStatus?: number;
|
|
24
|
+
convoAiErrorType?: string;
|
|
25
|
+
convoAiOk: boolean;
|
|
26
|
+
convoAiShouldImprove: boolean;
|
|
27
|
+
convoAiStatus?: number;
|
|
28
|
+
experienceName: string;
|
|
29
|
+
source: 'shouldImproveWritingShadowComparison';
|
|
30
|
+
}>;
|
|
31
|
+
export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP | AIQuickPromptApiErrorAEP | AIQuickPromptShadowComparisonDivergedAEP;
|
|
20
32
|
export {};
|
|
@@ -44,6 +44,7 @@ export declare enum ACTION {
|
|
|
44
44
|
DISCONNECTED_TARGET = "disconnectedTarget",
|
|
45
45
|
DISMISSED = "dismissed",
|
|
46
46
|
DISPLAYED = "displayed",
|
|
47
|
+
DIVERGED = "diverged",
|
|
47
48
|
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
48
49
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
49
50
|
DOUBLE_CLICKED = "doubleClicked",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { CSSToken } from '@atlaskit/tokens';
|
|
3
|
+
import type { CSSToken } from '@atlaskit/tokens/token-names';
|
|
4
4
|
export type WidthTypes = 'percentage' | 'pixel';
|
|
5
5
|
export type LengthGuide = {
|
|
6
6
|
isFullWidth?: boolean;
|
|
@@ -24,5 +24,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
|
|
|
24
24
|
export { ClassNames as MediaSharedClassNames } from './shared/media';
|
|
25
25
|
export { BreakoutCssClassName } from './shared/breakout';
|
|
26
26
|
export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
|
|
27
|
-
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
|
|
27
|
+
export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU, } from './shared/drag-handle';
|
|
28
28
|
export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles, } from './shared/native-anchor';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ThemeState } from '@atlaskit/tokens';
|
|
2
|
+
import type { ThemeState } from '@atlaskit/tokens/theme-config';
|
|
3
3
|
export declare const headingsSharedStyles: (_typographyTheme?: ThemeState["typography"]) => SerializedStyles;
|
|
@@ -21,13 +21,7 @@ export declare class VanillaTooltip {
|
|
|
21
21
|
/**
|
|
22
22
|
* Class Name – used for styling.
|
|
23
23
|
*/
|
|
24
|
-
className: string, timeout?: number
|
|
25
|
-
/**
|
|
26
|
-
* Optional inline styles to apply directly to the tooltip element.
|
|
27
|
-
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
28
|
-
* where ancestor CSS selectors cannot reach it.
|
|
29
|
-
*/
|
|
30
|
-
styles?: Record<string, string>);
|
|
24
|
+
className: string, timeout?: number);
|
|
31
25
|
private createPopperInstance;
|
|
32
26
|
destroy(): void;
|
|
33
27
|
private hide;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.
|
|
3
|
+
"version": "116.30.0",
|
|
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/"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^2.2.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.1.0",
|
|
52
|
-
"@atlaskit/emoji": "^71.
|
|
52
|
+
"@atlaskit/emoji": "^71.9.0",
|
|
53
53
|
"@atlaskit/icon": "^37.0.0",
|
|
54
54
|
"@atlaskit/link": "^4.3.0",
|
|
55
55
|
"@atlaskit/link-datasource": "^6.1.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/task-decision": "^21.4.0",
|
|
81
81
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
82
82
|
"@atlaskit/textfield": "^9.1.0",
|
|
83
|
-
"@atlaskit/tmp-editor-statsig": "^124.
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^124.9.0",
|
|
84
84
|
"@atlaskit/tokens": "^15.8.0",
|
|
85
85
|
"@atlaskit/tooltip": "^23.1.0",
|
|
86
86
|
"@atlaskit/width-detector": "^6.2.0",
|