@atlaskit/editor-common 118.5.0 → 118.7.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 +42 -0
- package/dist/cjs/ai-messages/ai.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai.js +5 -0
- 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 +5 -0
- package/dist/types/extensions/types/extension-manifest.d.ts +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 118.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`882186c3b96b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/882186c3b96b6) -
|
|
8
|
+
Add an optional `hideCopyButton` capability to extension manifest nodes (`ExtensionModuleNode`).
|
|
9
|
+
When set, the extension's selection floating toolbar hides the copy button. Used by the redaction
|
|
10
|
+
extension so redacted content is delete-only (no copy, no configure).
|
|
11
|
+
|
|
12
|
+
The new toolbar behaviour is gated behind `platform_editor_extension_hide_copy_button`. When the
|
|
13
|
+
gate is off, the toolbar renders exactly as before. When the copy button is hidden, the trailing
|
|
14
|
+
toolbar separator is also hidden so delete-only toolbars do not render an orphaned divider.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
const manifest: ExtensionManifest = {
|
|
18
|
+
// ...
|
|
19
|
+
modules: {
|
|
20
|
+
nodes: {
|
|
21
|
+
default: {
|
|
22
|
+
type: 'inlineExtension',
|
|
23
|
+
render: () => import('./MyExtension'),
|
|
24
|
+
// Hide the copy button on this node's selection toolbar
|
|
25
|
+
hideCopyButton: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 118.6.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- [`dfef77237944a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dfef77237944a) -
|
|
37
|
+
Add a configurable, localized product identity for document-streaming telepointers.
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import type { StreamingTelepointerIdentity } from '@atlassian/editor-plugin-ai/types';
|
|
41
|
+
|
|
42
|
+
const streamingTelepointerIdentity: StreamingTelepointerIdentity = 'planner';
|
|
43
|
+
```
|
|
44
|
+
|
|
3
45
|
## 118.5.0
|
|
4
46
|
|
|
5
47
|
### Minor Changes
|
|
@@ -271,6 +271,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntl.defineMessages)({
|
|
|
271
271
|
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
272
272
|
},
|
|
273
273
|
// Telepointer
|
|
274
|
+
aiPlannerTelepointer: {
|
|
275
|
+
id: 'fabric.editor.ai.telepointer.planner',
|
|
276
|
+
defaultMessage: 'Planner',
|
|
277
|
+
description: 'Product name shown beside the streaming cursor when Planner writes content'
|
|
278
|
+
},
|
|
274
279
|
aiRovoTelepointer: {
|
|
275
280
|
id: 'fabric.editor.ai.telepointer.rovo',
|
|
276
281
|
defaultMessage: 'Rovo',
|
|
@@ -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 = "118.
|
|
31
|
+
var packageVersion = "118.6.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 = "118.
|
|
27
|
+
var packageVersion = "118.6.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -265,6 +265,11 @@ export const aiMessages = defineMessages({
|
|
|
265
265
|
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
266
266
|
},
|
|
267
267
|
// Telepointer
|
|
268
|
+
aiPlannerTelepointer: {
|
|
269
|
+
id: 'fabric.editor.ai.telepointer.planner',
|
|
270
|
+
defaultMessage: 'Planner',
|
|
271
|
+
description: 'Product name shown beside the streaming cursor when Planner writes content'
|
|
272
|
+
},
|
|
268
273
|
aiRovoTelepointer: {
|
|
269
274
|
id: 'fabric.editor.ai.telepointer.rovo',
|
|
270
275
|
defaultMessage: 'Rovo',
|
|
@@ -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 = "118.
|
|
17
|
+
const packageVersion = "118.6.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 = "118.
|
|
17
|
+
const packageVersion = "118.6.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -265,6 +265,11 @@ export var aiMessages = defineMessages({
|
|
|
265
265
|
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
266
266
|
},
|
|
267
267
|
// Telepointer
|
|
268
|
+
aiPlannerTelepointer: {
|
|
269
|
+
id: 'fabric.editor.ai.telepointer.planner',
|
|
270
|
+
defaultMessage: 'Planner',
|
|
271
|
+
description: 'Product name shown beside the streaming cursor when Planner writes content'
|
|
272
|
+
},
|
|
268
273
|
aiRovoTelepointer: {
|
|
269
274
|
id: 'fabric.editor.ai.telepointer.rovo',
|
|
270
275
|
defaultMessage: 'Rovo',
|
|
@@ -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 = "118.
|
|
23
|
+
var packageVersion = "118.6.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 = "118.
|
|
24
|
+
var packageVersion = "118.6.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -24,6 +24,11 @@ export declare const aiMessages: {
|
|
|
24
24
|
description: string;
|
|
25
25
|
id: string;
|
|
26
26
|
};
|
|
27
|
+
aiPlannerTelepointer: {
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
27
32
|
aiRovoTelepointer: {
|
|
28
33
|
defaultMessage: string;
|
|
29
34
|
description: string;
|
|
@@ -43,6 +43,11 @@ export type DynamicFieldDefinitions<T> = (parameters: T) => FieldDefinition[];
|
|
|
43
43
|
export type ExtensionModuleNode<T extends Parameters = Parameters> = {
|
|
44
44
|
blockTransform?: BlockTransformExtension;
|
|
45
45
|
getFieldsDefinition?: (extensionParameters: T) => Promise<FieldDefinition[] | DynamicFieldDefinitions<T>>;
|
|
46
|
+
/**
|
|
47
|
+
* When true, the copy button is hidden from this node's selection toolbar.
|
|
48
|
+
* Use for nodes whose content should not be copied (e.g. redactions).
|
|
49
|
+
*/
|
|
50
|
+
hideCopyButton?: boolean;
|
|
46
51
|
render: () => ExtensionComponentModule<T>;
|
|
47
52
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension' | 'multiBodiedExtension';
|
|
48
53
|
update?: UpdateExtension<T>;
|
package/package.json
CHANGED