@atlaskit/editor-common 114.46.0 → 114.47.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/markdown-mode.js +5 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/markdown-mode.js +5 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/markdown-mode.js +5 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/general-events.d.ts +1 -0
- package/dist/types/analytics/types/node-events.d.ts +8 -1
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.47.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a0dc04472d27b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0dc04472d27b) -
|
|
8
|
+
Add recently used code block languages and analytics metadata
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 114.47.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`6767563047c0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6767563047c0e) -
|
|
16
|
+
Add distributeLayoutColumns command that equalises widths of selected layout columns; wire into
|
|
17
|
+
drag-handle column menu and floating toolbar
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 114.46.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -18,7 +18,7 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
18
18
|
groupLabel: {
|
|
19
19
|
id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
|
|
20
20
|
defaultMessage: 'View mode',
|
|
21
|
-
description: 'Accessible label announced for the group of three view-mode toggle buttons (
|
|
21
|
+
description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
|
|
22
22
|
},
|
|
23
23
|
source: {
|
|
24
24
|
id: 'fabric.editor.markdownMode.viewToggle.source',
|
|
@@ -27,13 +27,13 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
27
27
|
},
|
|
28
28
|
wysiwyg: {
|
|
29
29
|
id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
|
|
30
|
-
defaultMessage: '
|
|
31
|
-
description: 'Tooltip and accessible label for the toggle button that switches the editor into the
|
|
30
|
+
defaultMessage: 'Preview editor',
|
|
31
|
+
description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
|
|
32
32
|
},
|
|
33
33
|
preview: {
|
|
34
34
|
id: 'fabric.editor.markdownMode.viewToggle.preview',
|
|
35
35
|
defaultMessage: 'Split view (coming soon)',
|
|
36
|
-
description: 'Tooltip and accessible label for the toggle button that will switch the editor into
|
|
36
|
+
description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
|
|
37
37
|
},
|
|
38
38
|
sourceAriaLabel: {
|
|
39
39
|
id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
|
|
@@ -63,7 +63,7 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
63
63
|
confirmDialogToMarkdownToggle: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
65
65
|
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
66
|
-
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between
|
|
66
|
+
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
|
|
67
67
|
},
|
|
68
68
|
confirmDialogToMarkdownVersionHistory: {
|
|
69
69
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
@@ -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 = "114.
|
|
22
|
+
var packageVersion = "114.47.0";
|
|
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 = "114.
|
|
27
|
+
var packageVersion = "114.47.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -13,7 +13,7 @@ export const markdownModeMessages = defineMessages({
|
|
|
13
13
|
groupLabel: {
|
|
14
14
|
id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
|
|
15
15
|
defaultMessage: 'View mode',
|
|
16
|
-
description: 'Accessible label announced for the group of three view-mode toggle buttons (
|
|
16
|
+
description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
|
|
17
17
|
},
|
|
18
18
|
source: {
|
|
19
19
|
id: 'fabric.editor.markdownMode.viewToggle.source',
|
|
@@ -22,13 +22,13 @@ export const markdownModeMessages = defineMessages({
|
|
|
22
22
|
},
|
|
23
23
|
wysiwyg: {
|
|
24
24
|
id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
|
|
25
|
-
defaultMessage: '
|
|
26
|
-
description: 'Tooltip and accessible label for the toggle button that switches the editor into the
|
|
25
|
+
defaultMessage: 'Preview editor',
|
|
26
|
+
description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
|
|
27
27
|
},
|
|
28
28
|
preview: {
|
|
29
29
|
id: 'fabric.editor.markdownMode.viewToggle.preview',
|
|
30
30
|
defaultMessage: 'Split view (coming soon)',
|
|
31
|
-
description: 'Tooltip and accessible label for the toggle button that will switch the editor into
|
|
31
|
+
description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
|
|
32
32
|
},
|
|
33
33
|
sourceAriaLabel: {
|
|
34
34
|
id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
|
|
@@ -58,7 +58,7 @@ export const markdownModeMessages = defineMessages({
|
|
|
58
58
|
confirmDialogToMarkdownToggle: {
|
|
59
59
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
60
60
|
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
61
|
-
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between
|
|
61
|
+
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
|
|
62
62
|
},
|
|
63
63
|
confirmDialogToMarkdownVersionHistory: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
@@ -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 = "114.
|
|
7
|
+
const packageVersion = "114.47.0";
|
|
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 = "114.
|
|
17
|
+
const packageVersion = "114.47.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -13,7 +13,7 @@ export var markdownModeMessages = defineMessages({
|
|
|
13
13
|
groupLabel: {
|
|
14
14
|
id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
|
|
15
15
|
defaultMessage: 'View mode',
|
|
16
|
-
description: 'Accessible label announced for the group of three view-mode toggle buttons (
|
|
16
|
+
description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
|
|
17
17
|
},
|
|
18
18
|
source: {
|
|
19
19
|
id: 'fabric.editor.markdownMode.viewToggle.source',
|
|
@@ -22,13 +22,13 @@ export var markdownModeMessages = defineMessages({
|
|
|
22
22
|
},
|
|
23
23
|
wysiwyg: {
|
|
24
24
|
id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
|
|
25
|
-
defaultMessage: '
|
|
26
|
-
description: 'Tooltip and accessible label for the toggle button that switches the editor into the
|
|
25
|
+
defaultMessage: 'Preview editor',
|
|
26
|
+
description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
|
|
27
27
|
},
|
|
28
28
|
preview: {
|
|
29
29
|
id: 'fabric.editor.markdownMode.viewToggle.preview',
|
|
30
30
|
defaultMessage: 'Split view (coming soon)',
|
|
31
|
-
description: 'Tooltip and accessible label for the toggle button that will switch the editor into
|
|
31
|
+
description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
|
|
32
32
|
},
|
|
33
33
|
sourceAriaLabel: {
|
|
34
34
|
id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
|
|
@@ -58,7 +58,7 @@ export var markdownModeMessages = defineMessages({
|
|
|
58
58
|
confirmDialogToMarkdownToggle: {
|
|
59
59
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
60
60
|
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
61
|
-
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between
|
|
61
|
+
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
|
|
62
62
|
},
|
|
63
63
|
confirmDialogToMarkdownVersionHistory: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
@@ -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 = "114.
|
|
13
|
+
var packageVersion = "114.47.0";
|
|
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 = "114.
|
|
24
|
+
var packageVersion = "114.47.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -159,6 +159,7 @@ type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE
|
|
|
159
159
|
}, undefined>;
|
|
160
160
|
type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
161
161
|
language: string;
|
|
162
|
+
selectionSource?: 'all' | 'pinned' | 'recentlyUsed' | 'search';
|
|
162
163
|
}, undefined>;
|
|
163
164
|
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
164
165
|
type MediaSingleWidthTransformedAEP = OperationalAEP<ACTION.MEDIA_SINGLE_WIDTH_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
@@ -69,6 +69,13 @@ type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_S
|
|
|
69
69
|
updatedCount: number;
|
|
70
70
|
valign: 'top' | 'middle' | 'bottom';
|
|
71
71
|
}, undefined>;
|
|
72
|
+
type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
73
|
+
columnCount: number;
|
|
74
|
+
endIndex: number;
|
|
75
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
|
|
76
|
+
selectedCount: number;
|
|
77
|
+
startIndex: number;
|
|
78
|
+
}, undefined>;
|
|
72
79
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
73
80
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
74
81
|
}, undefined>;
|
|
@@ -79,5 +86,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
|
|
|
79
86
|
type: string;
|
|
80
87
|
};
|
|
81
88
|
}, undefined>;
|
|
82
|
-
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
89
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
83
90
|
export {};
|
|
@@ -159,6 +159,7 @@ type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE
|
|
|
159
159
|
}, undefined>;
|
|
160
160
|
type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
161
161
|
language: string;
|
|
162
|
+
selectionSource?: 'all' | 'pinned' | 'recentlyUsed' | 'search';
|
|
162
163
|
}, undefined>;
|
|
163
164
|
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
164
165
|
type MediaSingleWidthTransformedAEP = OperationalAEP<ACTION.MEDIA_SINGLE_WIDTH_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
@@ -69,6 +69,13 @@ type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_S
|
|
|
69
69
|
updatedCount: number;
|
|
70
70
|
valign: 'top' | 'middle' | 'bottom';
|
|
71
71
|
}, undefined>;
|
|
72
|
+
type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
73
|
+
columnCount: number;
|
|
74
|
+
endIndex: number;
|
|
75
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
|
|
76
|
+
selectedCount: number;
|
|
77
|
+
startIndex: number;
|
|
78
|
+
}, undefined>;
|
|
72
79
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
73
80
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
74
81
|
}, undefined>;
|
|
@@ -79,5 +86,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
|
|
|
79
86
|
type: string;
|
|
80
87
|
};
|
|
81
88
|
}, undefined>;
|
|
82
|
-
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
89
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
83
90
|
export {};
|
package/package.json
CHANGED