@atlaskit/editor-common 116.9.1 → 116.10.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 +20 -0
- package/dist/cjs/messages/mentions.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/vanilla-tooltip/index.js +10 -0
- package/dist/es2019/messages/mentions.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/vanilla-tooltip/index.js +10 -1
- package/dist/esm/messages/mentions.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/vanilla-tooltip/index.js +10 -0
- package/dist/types/messages/mentions.d.ts +7 -2
- package/dist/types/types/type-ahead.d.ts +1 -0
- package/dist/types/vanilla-tooltip/index.d.ts +7 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e108322f4ea71`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e108322f4ea71) -
|
|
8
|
+
Add emoji tooltip on hover using VanillaTooltip behind platform_editor_emoji_hover_show_tooltip
|
|
9
|
+
experiment
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 116.10.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`cf7797df5ff1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf7797df5ff1e) -
|
|
17
|
+
[ux] Add a Labs lozenge to the agent mention typeahead section.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 116.9.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -55,5 +55,10 @@ var mentionMessages = exports.mentionMessages = (0, _reactIntl.defineMessages)({
|
|
|
55
55
|
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
56
56
|
defaultMessage: 'Agents',
|
|
57
57
|
description: 'Section header for agent results in the mention type-ahead menu'
|
|
58
|
+
},
|
|
59
|
+
typeAheadSectionAgentsLabs: {
|
|
60
|
+
id: 'fabric.editor.typeAhead.mentionSection.agentsLabs',
|
|
61
|
+
defaultMessage: 'LABS',
|
|
62
|
+
description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental (Labs).'
|
|
58
63
|
}
|
|
59
64
|
});
|
|
@@ -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.10.0";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -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.10.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -43,6 +43,13 @@ 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;
|
|
46
53
|
(0, _classCallCheck2.default)(this, VanillaTooltip);
|
|
47
54
|
(0, _defineProperty2.default)(this, "listeners", []);
|
|
48
55
|
(0, _defineProperty2.default)(this, "shouldHidePopover", false);
|
|
@@ -55,6 +62,9 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
55
62
|
tooltip.className = className;
|
|
56
63
|
tooltip.id = id;
|
|
57
64
|
tooltip.textContent = content;
|
|
65
|
+
if (styles) {
|
|
66
|
+
Object.assign(tooltip.style, styles);
|
|
67
|
+
}
|
|
58
68
|
this.tooltip = tooltip;
|
|
59
69
|
|
|
60
70
|
// Button preparation
|
|
@@ -49,5 +49,10 @@ export const mentionMessages = defineMessages({
|
|
|
49
49
|
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
50
50
|
defaultMessage: 'Agents',
|
|
51
51
|
description: 'Section header for agent results in the mention type-ahead menu'
|
|
52
|
+
},
|
|
53
|
+
typeAheadSectionAgentsLabs: {
|
|
54
|
+
id: 'fabric.editor.typeAhead.mentionSection.agentsLabs',
|
|
55
|
+
defaultMessage: 'LABS',
|
|
56
|
+
description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental (Labs).'
|
|
52
57
|
}
|
|
53
58
|
});
|
|
@@ -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.10.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.10.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -29,7 +29,13 @@ export class VanillaTooltip {
|
|
|
29
29
|
/**
|
|
30
30
|
* Class Name – used for styling.
|
|
31
31
|
*/
|
|
32
|
-
className, timeout = 300
|
|
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) {
|
|
33
39
|
_defineProperty(this, "listeners", []);
|
|
34
40
|
_defineProperty(this, "shouldHidePopover", false);
|
|
35
41
|
_defineProperty(this, "isDisplayed", false);
|
|
@@ -41,6 +47,9 @@ export class VanillaTooltip {
|
|
|
41
47
|
tooltip.className = className;
|
|
42
48
|
tooltip.id = id;
|
|
43
49
|
tooltip.textContent = content;
|
|
50
|
+
if (styles) {
|
|
51
|
+
Object.assign(tooltip.style, styles);
|
|
52
|
+
}
|
|
44
53
|
this.tooltip = tooltip;
|
|
45
54
|
|
|
46
55
|
// Button preparation
|
|
@@ -49,5 +49,10 @@ export var mentionMessages = defineMessages({
|
|
|
49
49
|
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
50
50
|
defaultMessage: 'Agents',
|
|
51
51
|
description: 'Section header for agent results in the mention type-ahead menu'
|
|
52
|
+
},
|
|
53
|
+
typeAheadSectionAgentsLabs: {
|
|
54
|
+
id: 'fabric.editor.typeAhead.mentionSection.agentsLabs',
|
|
55
|
+
defaultMessage: 'LABS',
|
|
56
|
+
description: 'Lozenge label shown next to the Agents section header in the mention type-ahead menu to indicate that agent mentions are experimental (Labs).'
|
|
52
57
|
}
|
|
53
58
|
});
|
|
@@ -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.10.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "116.
|
|
24
|
+
var packageVersion = "116.10.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -36,6 +36,13 @@ 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;
|
|
39
46
|
_classCallCheck(this, VanillaTooltip);
|
|
40
47
|
_defineProperty(this, "listeners", []);
|
|
41
48
|
_defineProperty(this, "shouldHidePopover", false);
|
|
@@ -48,6 +55,9 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
48
55
|
tooltip.className = className;
|
|
49
56
|
tooltip.id = id;
|
|
50
57
|
tooltip.textContent = content;
|
|
58
|
+
if (styles) {
|
|
59
|
+
Object.assign(tooltip.style, styles);
|
|
60
|
+
}
|
|
51
61
|
this.tooltip = tooltip;
|
|
52
62
|
|
|
53
63
|
// Button preparation
|
|
@@ -34,7 +34,12 @@ export declare const mentionMessages: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
typeAheadSectionAgents: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
typeAheadSectionAgentsLabs: {
|
|
38
43
|
defaultMessage: string;
|
|
39
44
|
description: string;
|
|
40
45
|
id: string;
|
|
@@ -44,7 +49,7 @@ export declare const mentionMessages: {
|
|
|
44
49
|
description: string;
|
|
45
50
|
id: string;
|
|
46
51
|
};
|
|
47
|
-
|
|
52
|
+
unknownLabel: {
|
|
48
53
|
defaultMessage: string;
|
|
49
54
|
description: string;
|
|
50
55
|
id: string;
|
|
@@ -21,7 +21,13 @@ export declare class VanillaTooltip {
|
|
|
21
21
|
/**
|
|
22
22
|
* Class Name – used for styling.
|
|
23
23
|
*/
|
|
24
|
-
className: string, timeout?: number
|
|
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>);
|
|
25
31
|
private createPopperInstance;
|
|
26
32
|
destroy(): void;
|
|
27
33
|
private hide;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.
|
|
3
|
+
"version": "116.10.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/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/link-datasource": "^6.0.0",
|
|
56
56
|
"@atlaskit/link-picker": "^6.0.0",
|
|
57
57
|
"@atlaskit/media-card": "^81.1.0",
|
|
58
|
-
"@atlaskit/media-client": "^37.
|
|
58
|
+
"@atlaskit/media-client": "^37.1.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^6.0.0",
|
|
60
60
|
"@atlaskit/media-common": "^14.1.0",
|
|
61
61
|
"@atlaskit/media-file-preview": "^1.0.0",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"@atlaskit/profilecard": "^26.1.0",
|
|
73
73
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
74
74
|
"@atlaskit/react-ufo": "^7.1.0",
|
|
75
|
-
"@atlaskit/section-message": "^9.
|
|
75
|
+
"@atlaskit/section-message": "^9.1.0",
|
|
76
76
|
"@atlaskit/smart-card": "^45.2.0",
|
|
77
77
|
"@atlaskit/smart-user-picker": "^11.0.0",
|
|
78
78
|
"@atlaskit/spinner": "^20.0.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.2.0",
|
|
80
80
|
"@atlaskit/teams-app-config": "^2.0.0",
|
|
81
81
|
"@atlaskit/textfield": "^9.0.0",
|
|
82
|
-
"@atlaskit/tmp-editor-statsig": "^109.
|
|
82
|
+
"@atlaskit/tmp-editor-statsig": "^109.3.0",
|
|
83
83
|
"@atlaskit/tokens": "^14.0.0",
|
|
84
84
|
"@atlaskit/tooltip": "^23.0.0",
|
|
85
85
|
"@atlaskit/width-detector": "^6.0.0",
|