@atlaskit/editor-common 120.3.1 → 120.3.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 +23 -0
- package/dist/cjs/ai-messages/ai.js +0 -5
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai.js +0 -5
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai.js +0 -5
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai.d.ts +0 -5
- package/dist/types/quick-insert/QuickInsertContext.d.ts +1 -1
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 120.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c2fa55e225c97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2fa55e225c97) -
|
|
8
|
+
Fix MBE empty frame placeholder styling to show only for truly empty paragraphs under
|
|
9
|
+
confluence_native_tabs_m15.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 120.3.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`1d44842106f7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1d44842106f7b) -
|
|
17
|
+
Revert the AI entry-point relabel that was gated behind the
|
|
18
|
+
`platform_editor_ai_new_aifc_editor_experience` experiment. The editor AI entry points now always
|
|
19
|
+
show the "Ask Rovo" label and "Ask Rovo" tooltip instead of "Edit" / "Edit with Rovo". This covers
|
|
20
|
+
the floating/selection toolbar button, the main and inline toolbar Rovo button (label, tooltip,
|
|
21
|
+
and icon label), and the free-generate modal title. The now-unused
|
|
22
|
+
`aiNewAifcEntryPointCallToAction` and `askRovoToolbarIconTooltipQuickCommandNewAifc` messages have
|
|
23
|
+
been removed.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 120.3.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -78,11 +78,6 @@ var aiMessages = exports.aiMessages = (0, _reactIntl.defineMessages)({
|
|
|
78
78
|
defaultMessage: "Ask Rovo {key}+'",
|
|
79
79
|
description: 'Tooltip text for an option to use Rovo AI with quick command'
|
|
80
80
|
},
|
|
81
|
-
askRovoToolbarIconTooltipQuickCommandNewAifc: {
|
|
82
|
-
id: 'fabric.editor.ai.toolbar.askRovo.tooltip.quickCommand.newAifc',
|
|
83
|
-
defaultMessage: "Edit with Rovo {key}+'",
|
|
84
|
-
description: 'Tooltip text for the Rovo AI entry-point button in the new AIFC editor experience, where the button is labelled "Edit", with quick command'
|
|
85
|
-
},
|
|
86
81
|
askRovoToolbarRemixAppTooltipQuickCommand: {
|
|
87
82
|
id: 'fabric.editor.ai.toolbar.askRovo.remixApp.tooltip.quickCommand',
|
|
88
83
|
defaultMessage: "Edit {key}+'",
|
|
@@ -50,7 +50,7 @@ var getContainerCssExtendedStyles = function getContainerCssExtendedStyles(activ
|
|
|
50
50
|
|
|
51
51
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
52
52
|
var getEmptyFramePlaceholderStyles = function getEmptyFramePlaceholderStyles(activeChildIndex, frameId, placeholderText) {
|
|
53
|
-
var activeFramePlaceholderSelector = (0, _fg.fg)('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak
|
|
53
|
+
var activeFramePlaceholderSelector = (0, _fg.fg)('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before") : "& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before");
|
|
54
54
|
return (0, _react2.css)((0, _defineProperty2.default)({}, activeFramePlaceholderSelector, {
|
|
55
55
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
56
56
|
// JSON.stringify produces a quoted and escaped CSS string.
|
|
@@ -7,7 +7,7 @@ exports.InlineImageCard = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
10
|
-
var
|
|
10
|
+
var _useFilePreview2 = require("@atlaskit/media-file-preview/use-file-preview");
|
|
11
11
|
var _mediaImage = require("@atlaskit/media-ui/mediaImage");
|
|
12
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
13
|
var _loadingView = require("./views/loading-view");
|
|
@@ -37,7 +37,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
37
37
|
// Ignored via go/ees007
|
|
38
38
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
39
39
|
// TODO do we need to handle nonCriticalError
|
|
40
|
-
var _useFilePreview = (0,
|
|
40
|
+
var _useFilePreview = (0, _useFilePreview2.useFilePreview)({
|
|
41
41
|
identifier: identifier,
|
|
42
42
|
ssr: ssr,
|
|
43
43
|
dimensions: dimensions,
|
|
@@ -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 = "120.3.
|
|
31
|
+
var packageVersion = "120.3.2";
|
|
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 = "120.3.
|
|
27
|
+
var packageVersion = "120.3.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -72,11 +72,6 @@ export const aiMessages = defineMessages({
|
|
|
72
72
|
defaultMessage: "Ask Rovo {key}+'",
|
|
73
73
|
description: 'Tooltip text for an option to use Rovo AI with quick command'
|
|
74
74
|
},
|
|
75
|
-
askRovoToolbarIconTooltipQuickCommandNewAifc: {
|
|
76
|
-
id: 'fabric.editor.ai.toolbar.askRovo.tooltip.quickCommand.newAifc',
|
|
77
|
-
defaultMessage: "Edit with Rovo {key}+'",
|
|
78
|
-
description: 'Tooltip text for the Rovo AI entry-point button in the new AIFC editor experience, where the button is labelled "Edit", with quick command'
|
|
79
|
-
},
|
|
80
75
|
askRovoToolbarRemixAppTooltipQuickCommand: {
|
|
81
76
|
id: 'fabric.editor.ai.toolbar.askRovo.remixApp.tooltip.quickCommand',
|
|
82
77
|
defaultMessage: "Edit {key}+'",
|
|
@@ -41,7 +41,7 @@ const getContainerCssExtendedStyles = (activeChildIndex, frameId, showMacroInter
|
|
|
41
41
|
|
|
42
42
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
43
43
|
const getEmptyFramePlaceholderStyles = (activeChildIndex, frameId, placeholderText) => {
|
|
44
|
-
const activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? `& [data-multibodiedextension-frames-id='${frameId}'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak
|
|
44
|
+
const activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? `& [data-multibodiedextension-frames-id='${frameId}'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before` : `& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before`;
|
|
45
45
|
return css({
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
47
|
[activeFramePlaceholderSelector]: {
|
|
@@ -7,7 +7,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
|
-
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
10
|
+
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
@@ -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 = "120.3.
|
|
17
|
+
const packageVersion = "120.3.2";
|
|
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/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "120.3.
|
|
17
|
+
const packageVersion = "120.3.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -72,11 +72,6 @@ export var aiMessages = defineMessages({
|
|
|
72
72
|
defaultMessage: "Ask Rovo {key}+'",
|
|
73
73
|
description: 'Tooltip text for an option to use Rovo AI with quick command'
|
|
74
74
|
},
|
|
75
|
-
askRovoToolbarIconTooltipQuickCommandNewAifc: {
|
|
76
|
-
id: 'fabric.editor.ai.toolbar.askRovo.tooltip.quickCommand.newAifc',
|
|
77
|
-
defaultMessage: "Edit with Rovo {key}+'",
|
|
78
|
-
description: 'Tooltip text for the Rovo AI entry-point button in the new AIFC editor experience, where the button is labelled "Edit", with quick command'
|
|
79
|
-
},
|
|
80
75
|
askRovoToolbarRemixAppTooltipQuickCommand: {
|
|
81
76
|
id: 'fabric.editor.ai.toolbar.askRovo.remixApp.tooltip.quickCommand',
|
|
82
77
|
defaultMessage: "Edit {key}+'",
|
|
@@ -43,7 +43,7 @@ var getContainerCssExtendedStyles = function getContainerCssExtendedStyles(activ
|
|
|
43
43
|
|
|
44
44
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
45
45
|
var getEmptyFramePlaceholderStyles = function getEmptyFramePlaceholderStyles(activeChildIndex, frameId, placeholderText) {
|
|
46
|
-
var activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak
|
|
46
|
+
var activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before") : "& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before");
|
|
47
47
|
return css(_defineProperty({}, activeFramePlaceholderSelector, {
|
|
48
48
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
49
49
|
// JSON.stringify produces a quoted and escaped CSS string.
|
|
@@ -7,7 +7,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
|
-
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
10
|
+
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
@@ -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 = "120.3.
|
|
23
|
+
var packageVersion = "120.3.2";
|
|
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/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.3.
|
|
24
|
+
var packageVersion = "120.3.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -74,11 +74,6 @@ export declare const aiMessages: {
|
|
|
74
74
|
description: string;
|
|
75
75
|
id: string;
|
|
76
76
|
};
|
|
77
|
-
askRovoToolbarIconTooltipQuickCommandNewAifc: {
|
|
78
|
-
defaultMessage: string;
|
|
79
|
-
description: string;
|
|
80
|
-
id: string;
|
|
81
|
-
};
|
|
82
77
|
askRovoToolbarImageTitle: {
|
|
83
78
|
defaultMessage: string;
|
|
84
79
|
description: string;
|
|
@@ -17,7 +17,7 @@ export type QuickInsertContextValue = {
|
|
|
17
17
|
};
|
|
18
18
|
menuOpenId?: symbol;
|
|
19
19
|
select: (selectionHandler: QuickInsertSelectionHandler) => void;
|
|
20
|
-
surfaceContext?: SurfaceContext;
|
|
21
20
|
surface: 'typeahead' | 'element-browser';
|
|
21
|
+
surfaceContext?: SurfaceContext;
|
|
22
22
|
};
|
|
23
23
|
export declare const QuickInsertContext: Context<QuickInsertContextValue | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.3.
|
|
3
|
+
"version": "120.3.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/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/activity-provider": "^3.0.0",
|
|
32
|
-
"@atlaskit/adf-schema": "^57.
|
|
32
|
+
"@atlaskit/adf-schema": "^57.2.0",
|
|
33
33
|
"@atlaskit/adf-utils": "^20.7.0",
|
|
34
34
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.200.0",
|
|
35
35
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
40
40
|
"@atlaskit/button": "^25.2.0",
|
|
41
41
|
"@atlaskit/codemod-utils": "^5.0.0",
|
|
42
|
-
"@atlaskit/css": "^1.
|
|
42
|
+
"@atlaskit/css": "^1.1.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.0.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^18.2.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^9.6.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/media-common": "^14.5.0",
|
|
63
63
|
"@atlaskit/media-file-preview": "^1.3.0",
|
|
64
64
|
"@atlaskit/media-picker": "^72.3.0",
|
|
65
|
-
"@atlaskit/media-ui": "^30.
|
|
66
|
-
"@atlaskit/media-viewer": "^54.
|
|
65
|
+
"@atlaskit/media-ui": "^30.14.0",
|
|
66
|
+
"@atlaskit/media-viewer": "^54.7.0",
|
|
67
67
|
"@atlaskit/mention": "^27.18.0",
|
|
68
68
|
"@atlaskit/menu": "^10.1.0",
|
|
69
69
|
"@atlaskit/object": "^2.3.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.1.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^164.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.8.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.2.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.1.0",
|
|
@@ -138,7 +138,6 @@
|
|
|
138
138
|
"@types/markdown-it": "^14.1.2",
|
|
139
139
|
"@types/raf-schd": "^4.0.1",
|
|
140
140
|
"@types/react-virtualized": "^9.18.12",
|
|
141
|
-
"enzyme": "^3.10.0",
|
|
142
141
|
"raf-stub": "^2.0.1",
|
|
143
142
|
"react": "^19.2.0",
|
|
144
143
|
"react-dom": "^19.2.0",
|