@atlaskit/editor-common 137.3.0 → 137.4.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 +15 -0
- package/dist/cjs/extensions/native-embed-experience-id.js +25 -0
- package/dist/cjs/messages/track-changes.js +20 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensions/native-embed-experience-id.js +19 -0
- package/dist/es2019/messages/track-changes.js +20 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensions/native-embed-experience-id.js +19 -0
- package/dist/esm/messages/track-changes.js +20 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/native-embed-events.d.ts +1 -0
- package/dist/types/analytics/types/node-events.d.ts +1 -0
- package/dist/types/extensions/native-embed-experience-id.d.ts +6 -0
- package/dist/types/messages/track-changes.d.ts +21 -1
- package/extensions/native-embed-experience-id/package.json +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 137.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ba3e95a3be114`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba3e95a3be114) -
|
|
8
|
+
Add optional experienceId attribute to the nativeEmbed inserted and changedType analytics event
|
|
9
|
+
payloads. Add the `@atlaskit/editor-common/extensions/native-embed-experience-id` entry point with
|
|
10
|
+
`getNativeEmbedExperienceIdFromExtensionKey`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`66839b67aad09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/66839b67aad09) -
|
|
15
|
+
Add localized reading-order cues for inserted and deleted text behind a11y_remediation_pipeline_2.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 137.3.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getNativeEmbedExperienceIdFromExtensionKey = void 0;
|
|
7
|
+
var _manifestHelpers = require("./manifest-helpers");
|
|
8
|
+
var NATIVE_EMBED_EXPERIENCE_PREFIX = "".concat(_manifestHelpers.NATIVE_EMBED_EXTENSION_KEY, ":");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns the experience id from a native-embed `extensionKey`, e.g.
|
|
12
|
+
* `native-embed:database` → `database`. Handles keys where other segments
|
|
13
|
+
* appear before the prefix (e.g. `…:native-embed:database`).
|
|
14
|
+
*/
|
|
15
|
+
var getNativeEmbedExperienceIdFromExtensionKey = exports.getNativeEmbedExperienceIdFromExtensionKey = function getNativeEmbedExperienceIdFromExtensionKey(extensionKey) {
|
|
16
|
+
if (!extensionKey) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
var idx = extensionKey.indexOf(NATIVE_EMBED_EXPERIENCE_PREFIX);
|
|
20
|
+
if (idx === -1) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
var id = extensionKey.slice(idx + NATIVE_EMBED_EXPERIENCE_PREFIX.length);
|
|
24
|
+
return id || undefined;
|
|
25
|
+
};
|
|
@@ -20,5 +20,25 @@ var trackChangesMessages = exports.trackChangesMessages = (0, _reactIntl.defineM
|
|
|
20
20
|
id: 'editor.trackChanges.added',
|
|
21
21
|
defaultMessage: 'Added',
|
|
22
22
|
description: 'Label for content that has been added in track changes'
|
|
23
|
+
},
|
|
24
|
+
diffInsertStart: {
|
|
25
|
+
id: 'editor.trackChanges.diffInsertStart',
|
|
26
|
+
defaultMessage: 'Newly updated text',
|
|
27
|
+
description: 'Screen reader cue before inserted text in a document comparison.'
|
|
28
|
+
},
|
|
29
|
+
diffInsertEnd: {
|
|
30
|
+
id: 'editor.trackChanges.diffInsertEnd',
|
|
31
|
+
defaultMessage: 'End of newly updated text',
|
|
32
|
+
description: 'Screen reader cue after inserted text in a document comparison.'
|
|
33
|
+
},
|
|
34
|
+
diffDeleteStart: {
|
|
35
|
+
id: 'editor.trackChanges.diffDeleteStart',
|
|
36
|
+
defaultMessage: 'Deleted text',
|
|
37
|
+
description: 'Screen reader cue before deleted text in a document comparison.'
|
|
38
|
+
},
|
|
39
|
+
diffDeleteEnd: {
|
|
40
|
+
id: 'editor.trackChanges.diffDeleteEnd',
|
|
41
|
+
defaultMessage: 'End of deleted text',
|
|
42
|
+
description: 'Screen reader cue after deleted text in a document comparison.'
|
|
23
43
|
}
|
|
24
44
|
});
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "137.
|
|
30
|
+
var packageVersion = "137.3.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "137.
|
|
26
|
+
var packageVersion = "137.3.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NATIVE_EMBED_EXTENSION_KEY } from './manifest-helpers';
|
|
2
|
+
const NATIVE_EMBED_EXPERIENCE_PREFIX = `${NATIVE_EMBED_EXTENSION_KEY}:`;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns the experience id from a native-embed `extensionKey`, e.g.
|
|
6
|
+
* `native-embed:database` → `database`. Handles keys where other segments
|
|
7
|
+
* appear before the prefix (e.g. `…:native-embed:database`).
|
|
8
|
+
*/
|
|
9
|
+
export const getNativeEmbedExperienceIdFromExtensionKey = extensionKey => {
|
|
10
|
+
if (!extensionKey) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const idx = extensionKey.indexOf(NATIVE_EMBED_EXPERIENCE_PREFIX);
|
|
14
|
+
if (idx === -1) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
const id = extensionKey.slice(idx + NATIVE_EMBED_EXPERIENCE_PREFIX.length);
|
|
18
|
+
return id || undefined;
|
|
19
|
+
};
|
|
@@ -14,5 +14,25 @@ export const trackChangesMessages = defineMessages({
|
|
|
14
14
|
id: 'editor.trackChanges.added',
|
|
15
15
|
defaultMessage: 'Added',
|
|
16
16
|
description: 'Label for content that has been added in track changes'
|
|
17
|
+
},
|
|
18
|
+
diffInsertStart: {
|
|
19
|
+
id: 'editor.trackChanges.diffInsertStart',
|
|
20
|
+
defaultMessage: 'Newly updated text',
|
|
21
|
+
description: 'Screen reader cue before inserted text in a document comparison.'
|
|
22
|
+
},
|
|
23
|
+
diffInsertEnd: {
|
|
24
|
+
id: 'editor.trackChanges.diffInsertEnd',
|
|
25
|
+
defaultMessage: 'End of newly updated text',
|
|
26
|
+
description: 'Screen reader cue after inserted text in a document comparison.'
|
|
27
|
+
},
|
|
28
|
+
diffDeleteStart: {
|
|
29
|
+
id: 'editor.trackChanges.diffDeleteStart',
|
|
30
|
+
defaultMessage: 'Deleted text',
|
|
31
|
+
description: 'Screen reader cue before deleted text in a document comparison.'
|
|
32
|
+
},
|
|
33
|
+
diffDeleteEnd: {
|
|
34
|
+
id: 'editor.trackChanges.diffDeleteEnd',
|
|
35
|
+
defaultMessage: 'End of deleted text',
|
|
36
|
+
description: 'Screen reader cue after deleted text in a document comparison.'
|
|
17
37
|
}
|
|
18
38
|
});
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "137.
|
|
16
|
+
const packageVersion = "137.3.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "137.
|
|
16
|
+
const packageVersion = "137.3.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NATIVE_EMBED_EXTENSION_KEY } from './manifest-helpers';
|
|
2
|
+
var NATIVE_EMBED_EXPERIENCE_PREFIX = "".concat(NATIVE_EMBED_EXTENSION_KEY, ":");
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns the experience id from a native-embed `extensionKey`, e.g.
|
|
6
|
+
* `native-embed:database` → `database`. Handles keys where other segments
|
|
7
|
+
* appear before the prefix (e.g. `…:native-embed:database`).
|
|
8
|
+
*/
|
|
9
|
+
export var getNativeEmbedExperienceIdFromExtensionKey = function getNativeEmbedExperienceIdFromExtensionKey(extensionKey) {
|
|
10
|
+
if (!extensionKey) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
var idx = extensionKey.indexOf(NATIVE_EMBED_EXPERIENCE_PREFIX);
|
|
14
|
+
if (idx === -1) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
var id = extensionKey.slice(idx + NATIVE_EMBED_EXPERIENCE_PREFIX.length);
|
|
18
|
+
return id || undefined;
|
|
19
|
+
};
|
|
@@ -14,5 +14,25 @@ export var trackChangesMessages = defineMessages({
|
|
|
14
14
|
id: 'editor.trackChanges.added',
|
|
15
15
|
defaultMessage: 'Added',
|
|
16
16
|
description: 'Label for content that has been added in track changes'
|
|
17
|
+
},
|
|
18
|
+
diffInsertStart: {
|
|
19
|
+
id: 'editor.trackChanges.diffInsertStart',
|
|
20
|
+
defaultMessage: 'Newly updated text',
|
|
21
|
+
description: 'Screen reader cue before inserted text in a document comparison.'
|
|
22
|
+
},
|
|
23
|
+
diffInsertEnd: {
|
|
24
|
+
id: 'editor.trackChanges.diffInsertEnd',
|
|
25
|
+
defaultMessage: 'End of newly updated text',
|
|
26
|
+
description: 'Screen reader cue after inserted text in a document comparison.'
|
|
27
|
+
},
|
|
28
|
+
diffDeleteStart: {
|
|
29
|
+
id: 'editor.trackChanges.diffDeleteStart',
|
|
30
|
+
defaultMessage: 'Deleted text',
|
|
31
|
+
description: 'Screen reader cue before deleted text in a document comparison.'
|
|
32
|
+
},
|
|
33
|
+
diffDeleteEnd: {
|
|
34
|
+
id: 'editor.trackChanges.diffDeleteEnd',
|
|
35
|
+
defaultMessage: 'End of deleted text',
|
|
36
|
+
description: 'Screen reader cue after deleted text in a document comparison.'
|
|
17
37
|
}
|
|
18
38
|
});
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
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 = "137.
|
|
22
|
+
var packageVersion = "137.3.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "137.
|
|
23
|
+
var packageVersion = "137.3.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -2,6 +2,7 @@ import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
|
2
2
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
3
|
export type InputMethodInsertNativeEmbed = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
|
|
4
4
|
export type InsertNativeEmbedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.NATIVE_EMBED, undefined, {
|
|
5
|
+
experienceId?: string;
|
|
5
6
|
inputMethod: InputMethodInsertNativeEmbed;
|
|
6
7
|
insertedCount: number;
|
|
7
8
|
}, undefined>;
|
|
@@ -24,6 +24,7 @@ type ChangePanelAEP = ChangeTypeAEP<ACTION_SUBJECT.PANEL, undefined, {
|
|
|
24
24
|
previousType: PanelType;
|
|
25
25
|
}, undefined>;
|
|
26
26
|
type ChangeNativeEmbedAEP = ChangeTypeAEP<ACTION_SUBJECT.NATIVE_EMBED, undefined, {
|
|
27
|
+
experienceId?: string;
|
|
27
28
|
newType: 'nativeEmbed' | SMART_LINK_TYPE;
|
|
28
29
|
previousType: 'nativeEmbed' | SMART_LINK_TYPE;
|
|
29
30
|
}, undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the experience id from a native-embed `extensionKey`, e.g.
|
|
3
|
+
* `native-embed:database` → `database`. Handles keys where other segments
|
|
4
|
+
* appear before the prefix (e.g. `…:native-embed:database`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const getNativeEmbedExperienceIdFromExtensionKey: (extensionKey: string | undefined) => string | undefined;
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
export declare const trackChangesMessages: {
|
|
2
|
-
|
|
2
|
+
diffDeleteEnd: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
diffDeleteStart: {
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
diffInsertEnd: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
3
15
|
id: string;
|
|
16
|
+
};
|
|
17
|
+
diffInsertStart: {
|
|
4
18
|
defaultMessage: string;
|
|
5
19
|
description: string;
|
|
20
|
+
id: string;
|
|
6
21
|
};
|
|
7
22
|
removed: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
8
25
|
id: string;
|
|
26
|
+
};
|
|
27
|
+
toolbarIconLabel: {
|
|
9
28
|
defaultMessage: string;
|
|
10
29
|
description: string;
|
|
30
|
+
id: string;
|
|
11
31
|
};
|
|
12
32
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/extensions/native-embed-experience-id",
|
|
3
|
+
"main": "../../dist/cjs/extensions/native-embed-experience-id.js",
|
|
4
|
+
"module": "../../dist/esm/extensions/native-embed-experience-id.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/extensions/native-embed-experience-id.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/extensions/native-embed-experience-id.d.ts"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "137.
|
|
3
|
+
"version": "137.4.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/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/media-common": "^14.7.0",
|
|
65
65
|
"@atlaskit/media-file-preview": "^2.0.0",
|
|
66
66
|
"@atlaskit/media-picker": "^73.3.0",
|
|
67
|
-
"@atlaskit/media-ui": "^31.
|
|
67
|
+
"@atlaskit/media-ui": "^31.11.0",
|
|
68
68
|
"@atlaskit/media-viewer": "^54.12.0",
|
|
69
69
|
"@atlaskit/mention": "^30.10.0",
|
|
70
70
|
"@atlaskit/menu": "^11.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/react-ufo": "^8.5.0",
|
|
83
83
|
"@atlaskit/section-message": "^10.3.0",
|
|
84
84
|
"@atlaskit/smart-card": "^46.19.0",
|
|
85
|
-
"@atlaskit/smart-user-picker": "^12.
|
|
85
|
+
"@atlaskit/smart-user-picker": "^12.15.0",
|
|
86
86
|
"@atlaskit/spinner": "^20.4.0",
|
|
87
87
|
"@atlaskit/task-decision": "^21.16.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^3.1.0",
|