@atlaskit/editor-common 112.13.3 → 112.13.5
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 +16 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- package/dist/cjs/ai-messages/ai.js +46 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -17
- package/dist/cjs/extensibility/index.js +0 -7
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai.js +46 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +1 -12
- package/dist/es2019/extensibility/index.js +0 -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 +46 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -17
- package/dist/esm/extensibility/index.js +0 -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 +128 -83
- package/dist/types/extensibility/index.d.ts +0 -1
- package/dist/types-ts4.5/ai-messages/ai.d.ts +128 -83
- package/dist/types-ts4.5/extensibility/index.d.ts +0 -1
- package/package.json +2 -3
- package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +0 -113
- package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +0 -108
- package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +0 -106
- package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +0 -12
- package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.13.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`546c399f5932a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/546c399f5932a) -
|
|
8
|
+
smartlink toolbar - added action items for links
|
|
9
|
+
|
|
10
|
+
## 112.13.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`6442aba65e911`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6442aba65e911) -
|
|
15
|
+
Clean up cc_editor_lcm_readonly_initial experiment - remove LegacyContentHeader rendering and
|
|
16
|
+
associated dead code
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 112.13.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -257,5 +257,51 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
257
257
|
id: 'fabric.editor.ai.config.item.blockMenuNestedMenu.title',
|
|
258
258
|
defaultMessage: 'View more actions',
|
|
259
259
|
description: 'Title for the nested menu in the block menu'
|
|
260
|
+
},
|
|
261
|
+
// Smartlink action messages
|
|
262
|
+
smartlinkListKeyTopics: {
|
|
263
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyTopics',
|
|
264
|
+
defaultMessage: 'List key topics',
|
|
265
|
+
description: 'Action to list key topics from the linked content'
|
|
266
|
+
},
|
|
267
|
+
smartlinkListKeyThemes: {
|
|
268
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyThemes',
|
|
269
|
+
defaultMessage: 'List key themes',
|
|
270
|
+
description: 'Action to list key themes from the linked content'
|
|
271
|
+
},
|
|
272
|
+
smartlinkExtractInsights: {
|
|
273
|
+
id: 'fabric.editor.ai.smartlink.action.extractInsights',
|
|
274
|
+
defaultMessage: 'Extract insights',
|
|
275
|
+
description: 'Action to extract insights from the linked content'
|
|
276
|
+
},
|
|
277
|
+
smartlinkExtractUserQuotes: {
|
|
278
|
+
id: 'fabric.editor.ai.smartlink.action.extractUserQuotes',
|
|
279
|
+
defaultMessage: 'Extract user quotes',
|
|
280
|
+
description: 'Action to extract user quotes from the linked content'
|
|
281
|
+
},
|
|
282
|
+
smartlinkAddDecisions: {
|
|
283
|
+
id: 'fabric.editor.ai.smartlink.action.addDecisions',
|
|
284
|
+
defaultMessage: 'Add decisions',
|
|
285
|
+
description: 'Action to add decisions from the linked content'
|
|
286
|
+
},
|
|
287
|
+
smartlinkDefineActionItems: {
|
|
288
|
+
id: 'fabric.editor.ai.smartlink.action.defineActionItems',
|
|
289
|
+
defaultMessage: 'Define action items',
|
|
290
|
+
description: 'Action to define action items from the linked content'
|
|
291
|
+
},
|
|
292
|
+
smartlinkSummarizeChanges: {
|
|
293
|
+
id: 'fabric.editor.ai.smartlink.action.summarizeChanges',
|
|
294
|
+
defaultMessage: 'Summarize changes',
|
|
295
|
+
description: 'Action to summarize changes in the linked content'
|
|
296
|
+
},
|
|
297
|
+
smartlinkAddRelatedWorkItems: {
|
|
298
|
+
id: 'fabric.editor.ai.smartlink.action.addRelatedWorkItems',
|
|
299
|
+
defaultMessage: 'Add related work items',
|
|
300
|
+
description: 'Action to add related work items from the linked content'
|
|
301
|
+
},
|
|
302
|
+
smartlinkListTodos: {
|
|
303
|
+
id: 'fabric.editor.ai.smartlink.action.listTodos',
|
|
304
|
+
defaultMessage: 'List to-dos',
|
|
305
|
+
description: 'Action to list to-dos from the linked content'
|
|
260
306
|
}
|
|
261
307
|
});
|
|
@@ -18,7 +18,6 @@ var _hooks = require("../../../hooks");
|
|
|
18
18
|
var _ui = require("../../../ui");
|
|
19
19
|
var _utils = require("../../../utils");
|
|
20
20
|
var _shouldExtensionBreakout = require("../../utils/should-extension-breakout");
|
|
21
|
-
var _LegacyContentHeader = require("../LegacyContentHeader");
|
|
22
21
|
var _Lozenge = _interopRequireDefault(require("../Lozenge"));
|
|
23
22
|
var _styles = require("../styles");
|
|
24
23
|
var _extensionUtils = require("./extension-utils");
|
|
@@ -102,8 +101,7 @@ function ExtensionWithPluginState(props) {
|
|
|
102
101
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
103
102
|
'with-hover-border': (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
104
103
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
105
|
-
'without-frame': removeBorder
|
|
106
|
-
'legacy-content': (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
|
|
104
|
+
'without-frame': removeBorder
|
|
107
105
|
}, _styles2.widerLayoutClassName, shouldBreakout));
|
|
108
106
|
var overflowClassNames = (0, _classnames2.default)('extension-overflow-wrapper', {
|
|
109
107
|
'with-body': hasBody,
|
|
@@ -146,20 +144,7 @@ function ExtensionWithPluginState(props) {
|
|
|
146
144
|
}
|
|
147
145
|
};
|
|
148
146
|
var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
|
|
149
|
-
return (0, _react2.jsx)(_react.Fragment, null,
|
|
150
|
-
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
152
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
-
,
|
|
154
|
-
onMouseEnter: function onMouseEnter() {
|
|
155
|
-
return handleMouseEvent(true);
|
|
156
|
-
}
|
|
157
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
158
|
-
,
|
|
159
|
-
onMouseLeave: function onMouseLeave() {
|
|
160
|
-
return handleMouseEvent(false);
|
|
161
|
-
}
|
|
162
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && (0, _react2.jsx)(_Lozenge.default, {
|
|
147
|
+
return (0, _react2.jsx)(_react.Fragment, null, !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && (0, _react2.jsx)(_Lozenge.default, {
|
|
163
148
|
isNodeSelected: isNodeSelected,
|
|
164
149
|
isNodeHovered: isNodeHovered,
|
|
165
150
|
isNodeNested: isNodeNested,
|
|
@@ -34,15 +34,8 @@ Object.defineProperty(exports, "ExtensionNodeWrapper", {
|
|
|
34
34
|
return _ExtensionNodeWrapper.ExtensionNodeWrapper;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
Object.defineProperty(exports, "LegacyContentHeader", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _LegacyContentHeader.LegacyContentHeader;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
37
|
var _ExtensionNodeWrapper = require("./ExtensionNodeWrapper");
|
|
44
38
|
var _Extension = require("./Extension");
|
|
45
|
-
var _LegacyContentHeader = require("./Extension/LegacyContentHeader");
|
|
46
39
|
var _extensionNodeView = _interopRequireWildcard(require("./extensionNodeView"));
|
|
47
40
|
var _ExtensionComponent = require("./ExtensionComponent");
|
|
48
41
|
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); }
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -251,5 +251,51 @@ export const aiMessages = defineMessages({
|
|
|
251
251
|
id: 'fabric.editor.ai.config.item.blockMenuNestedMenu.title',
|
|
252
252
|
defaultMessage: 'View more actions',
|
|
253
253
|
description: 'Title for the nested menu in the block menu'
|
|
254
|
+
},
|
|
255
|
+
// Smartlink action messages
|
|
256
|
+
smartlinkListKeyTopics: {
|
|
257
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyTopics',
|
|
258
|
+
defaultMessage: 'List key topics',
|
|
259
|
+
description: 'Action to list key topics from the linked content'
|
|
260
|
+
},
|
|
261
|
+
smartlinkListKeyThemes: {
|
|
262
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyThemes',
|
|
263
|
+
defaultMessage: 'List key themes',
|
|
264
|
+
description: 'Action to list key themes from the linked content'
|
|
265
|
+
},
|
|
266
|
+
smartlinkExtractInsights: {
|
|
267
|
+
id: 'fabric.editor.ai.smartlink.action.extractInsights',
|
|
268
|
+
defaultMessage: 'Extract insights',
|
|
269
|
+
description: 'Action to extract insights from the linked content'
|
|
270
|
+
},
|
|
271
|
+
smartlinkExtractUserQuotes: {
|
|
272
|
+
id: 'fabric.editor.ai.smartlink.action.extractUserQuotes',
|
|
273
|
+
defaultMessage: 'Extract user quotes',
|
|
274
|
+
description: 'Action to extract user quotes from the linked content'
|
|
275
|
+
},
|
|
276
|
+
smartlinkAddDecisions: {
|
|
277
|
+
id: 'fabric.editor.ai.smartlink.action.addDecisions',
|
|
278
|
+
defaultMessage: 'Add decisions',
|
|
279
|
+
description: 'Action to add decisions from the linked content'
|
|
280
|
+
},
|
|
281
|
+
smartlinkDefineActionItems: {
|
|
282
|
+
id: 'fabric.editor.ai.smartlink.action.defineActionItems',
|
|
283
|
+
defaultMessage: 'Define action items',
|
|
284
|
+
description: 'Action to define action items from the linked content'
|
|
285
|
+
},
|
|
286
|
+
smartlinkSummarizeChanges: {
|
|
287
|
+
id: 'fabric.editor.ai.smartlink.action.summarizeChanges',
|
|
288
|
+
defaultMessage: 'Summarize changes',
|
|
289
|
+
description: 'Action to summarize changes in the linked content'
|
|
290
|
+
},
|
|
291
|
+
smartlinkAddRelatedWorkItems: {
|
|
292
|
+
id: 'fabric.editor.ai.smartlink.action.addRelatedWorkItems',
|
|
293
|
+
defaultMessage: 'Add related work items',
|
|
294
|
+
description: 'Action to add related work items from the linked content'
|
|
295
|
+
},
|
|
296
|
+
smartlinkListTodos: {
|
|
297
|
+
id: 'fabric.editor.ai.smartlink.action.listTodos',
|
|
298
|
+
defaultMessage: 'List to-dos',
|
|
299
|
+
description: 'Action to list to-dos from the linked content'
|
|
254
300
|
}
|
|
255
301
|
});
|
|
@@ -15,7 +15,6 @@ import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
|
15
15
|
import { overflowShadow } from '../../../ui';
|
|
16
16
|
import { calculateBreakoutStyles } from '../../../utils';
|
|
17
17
|
import { shouldExtensionBreakout } from '../../utils/should-extension-breakout';
|
|
18
|
-
import { LegacyContentHeader } from '../LegacyContentHeader';
|
|
19
18
|
import ExtensionLozenge from '../Lozenge';
|
|
20
19
|
import { overlay } from '../styles';
|
|
21
20
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
@@ -96,7 +95,6 @@ function ExtensionWithPluginState(props) {
|
|
|
96
95
|
'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
97
96
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
98
97
|
'without-frame': removeBorder,
|
|
99
|
-
'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader,
|
|
100
98
|
[widerLayoutClassName]: shouldBreakout
|
|
101
99
|
});
|
|
102
100
|
const overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
@@ -146,16 +144,7 @@ function ExtensionWithPluginState(props) {
|
|
|
146
144
|
}
|
|
147
145
|
};
|
|
148
146
|
const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
149
|
-
return jsx(Fragment, null,
|
|
150
|
-
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
152
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
-
,
|
|
154
|
-
onMouseEnter: () => handleMouseEvent(true)
|
|
155
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
|
-
,
|
|
157
|
-
onMouseLeave: () => handleMouseEvent(false)
|
|
158
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
147
|
+
return jsx(Fragment, null, !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
159
148
|
isNodeSelected: isNodeSelected,
|
|
160
149
|
isNodeHovered: isNodeHovered,
|
|
161
150
|
isNodeNested: isNodeNested,
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
|
|
4
4
|
export { ExtensionNodeWrapper } from './ExtensionNodeWrapper';
|
|
5
5
|
export { Extension } from './Extension';
|
|
6
|
-
export { LegacyContentHeader } from './Extension/LegacyContentHeader';
|
|
7
6
|
export { default as ExtensionNodeView, ExtensionNode } from './extensionNodeView';
|
|
8
7
|
export { ExtensionComponent } from './ExtensionComponent';
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// 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 = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -251,5 +251,51 @@ export var aiMessages = defineMessages({
|
|
|
251
251
|
id: 'fabric.editor.ai.config.item.blockMenuNestedMenu.title',
|
|
252
252
|
defaultMessage: 'View more actions',
|
|
253
253
|
description: 'Title for the nested menu in the block menu'
|
|
254
|
+
},
|
|
255
|
+
// Smartlink action messages
|
|
256
|
+
smartlinkListKeyTopics: {
|
|
257
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyTopics',
|
|
258
|
+
defaultMessage: 'List key topics',
|
|
259
|
+
description: 'Action to list key topics from the linked content'
|
|
260
|
+
},
|
|
261
|
+
smartlinkListKeyThemes: {
|
|
262
|
+
id: 'fabric.editor.ai.smartlink.action.listKeyThemes',
|
|
263
|
+
defaultMessage: 'List key themes',
|
|
264
|
+
description: 'Action to list key themes from the linked content'
|
|
265
|
+
},
|
|
266
|
+
smartlinkExtractInsights: {
|
|
267
|
+
id: 'fabric.editor.ai.smartlink.action.extractInsights',
|
|
268
|
+
defaultMessage: 'Extract insights',
|
|
269
|
+
description: 'Action to extract insights from the linked content'
|
|
270
|
+
},
|
|
271
|
+
smartlinkExtractUserQuotes: {
|
|
272
|
+
id: 'fabric.editor.ai.smartlink.action.extractUserQuotes',
|
|
273
|
+
defaultMessage: 'Extract user quotes',
|
|
274
|
+
description: 'Action to extract user quotes from the linked content'
|
|
275
|
+
},
|
|
276
|
+
smartlinkAddDecisions: {
|
|
277
|
+
id: 'fabric.editor.ai.smartlink.action.addDecisions',
|
|
278
|
+
defaultMessage: 'Add decisions',
|
|
279
|
+
description: 'Action to add decisions from the linked content'
|
|
280
|
+
},
|
|
281
|
+
smartlinkDefineActionItems: {
|
|
282
|
+
id: 'fabric.editor.ai.smartlink.action.defineActionItems',
|
|
283
|
+
defaultMessage: 'Define action items',
|
|
284
|
+
description: 'Action to define action items from the linked content'
|
|
285
|
+
},
|
|
286
|
+
smartlinkSummarizeChanges: {
|
|
287
|
+
id: 'fabric.editor.ai.smartlink.action.summarizeChanges',
|
|
288
|
+
defaultMessage: 'Summarize changes',
|
|
289
|
+
description: 'Action to summarize changes in the linked content'
|
|
290
|
+
},
|
|
291
|
+
smartlinkAddRelatedWorkItems: {
|
|
292
|
+
id: 'fabric.editor.ai.smartlink.action.addRelatedWorkItems',
|
|
293
|
+
defaultMessage: 'Add related work items',
|
|
294
|
+
description: 'Action to add related work items from the linked content'
|
|
295
|
+
},
|
|
296
|
+
smartlinkListTodos: {
|
|
297
|
+
id: 'fabric.editor.ai.smartlink.action.listTodos',
|
|
298
|
+
defaultMessage: 'List to-dos',
|
|
299
|
+
description: 'Action to list to-dos from the linked content'
|
|
254
300
|
}
|
|
255
301
|
});
|
|
@@ -20,7 +20,6 @@ import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
|
20
20
|
import { overflowShadow } from '../../../ui';
|
|
21
21
|
import { calculateBreakoutStyles } from '../../../utils';
|
|
22
22
|
import { shouldExtensionBreakout } from '../../utils/should-extension-breakout';
|
|
23
|
-
import { LegacyContentHeader } from '../LegacyContentHeader';
|
|
24
23
|
import ExtensionLozenge from '../Lozenge';
|
|
25
24
|
import { overlay } from '../styles';
|
|
26
25
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
@@ -95,8 +94,7 @@ function ExtensionWithPluginState(props) {
|
|
|
95
94
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
96
95
|
'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
97
96
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
98
|
-
'without-frame': removeBorder
|
|
99
|
-
'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
|
|
97
|
+
'without-frame': removeBorder
|
|
100
98
|
}, widerLayoutClassName, shouldBreakout));
|
|
101
99
|
var overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
102
100
|
'with-body': hasBody,
|
|
@@ -139,20 +137,7 @@ function ExtensionWithPluginState(props) {
|
|
|
139
137
|
}
|
|
140
138
|
};
|
|
141
139
|
var extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
142
|
-
return jsx(Fragment, null,
|
|
143
|
-
isNodeSelected: isNodeSelected,
|
|
144
|
-
isNodeHovered: isNodeHovered
|
|
145
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
146
|
-
,
|
|
147
|
-
onMouseEnter: function onMouseEnter() {
|
|
148
|
-
return handleMouseEvent(true);
|
|
149
|
-
}
|
|
150
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
151
|
-
,
|
|
152
|
-
onMouseLeave: function onMouseLeave() {
|
|
153
|
-
return handleMouseEvent(false);
|
|
154
|
-
}
|
|
155
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
140
|
+
return jsx(Fragment, null, !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
156
141
|
isNodeSelected: isNodeSelected,
|
|
157
142
|
isNodeHovered: isNodeHovered,
|
|
158
143
|
isNodeNested: isNodeNested,
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
|
|
4
4
|
export { ExtensionNodeWrapper } from './ExtensionNodeWrapper';
|
|
5
5
|
export { Extension } from './Extension';
|
|
6
|
-
export { LegacyContentHeader } from './Extension/LegacyContentHeader';
|
|
7
6
|
export { default as ExtensionNodeView, ExtensionNode } from './extensionNodeView';
|
|
8
7
|
export { ExtensionComponent } from './ExtensionComponent';
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// 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 = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|