@atlaskit/editor-common 114.37.0 → 114.38.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/messages/codeBlockButton.js +15 -0
- package/dist/cjs/messages/markdown-mode.js +15 -25
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/codeBlockButton.js +15 -0
- package/dist/es2019/messages/markdown-mode.js +15 -25
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/codeBlockButton.js +15 -0
- package/dist/esm/messages/markdown-mode.js +15 -25
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/codeBlockButton.d.ts +15 -0
- package/dist/types/messages/markdown-mode.d.ts +0 -10
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +15 -0
- package/dist/types-ts4.5/messages/markdown-mode.d.ts +0 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.38.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f4a8bbaef8ffa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f4a8bbaef8ffa) -
|
|
8
|
+
Consolidate markdown conversion dialogs by removing the separate unlink-synced-blocks modal and
|
|
9
|
+
handling synced-block warnings directly inside the convert dialog, including updated copy and
|
|
10
|
+
iconography for markdown and live-doc conversion variants.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`47e7189edb428`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47e7189edb428) -
|
|
15
|
+
Refresh code block language picker UI
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 114.37.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -52,5 +52,20 @@ var codeBlockButtonMessages = exports.codeBlockButtonMessages = (0, _reactIntl.d
|
|
|
52
52
|
id: 'fabric.editor.selectLanguage',
|
|
53
53
|
defaultMessage: 'Select language',
|
|
54
54
|
description: 'Code blocks display software code. A prompt to select the software language the code is written in.'
|
|
55
|
+
},
|
|
56
|
+
detectLanguage: {
|
|
57
|
+
id: 'fabric.editor.codeBlock.detectLanguage',
|
|
58
|
+
defaultMessage: 'Detect language',
|
|
59
|
+
description: 'Option in the code block language picker that clears the selected language so the editor can detect it automatically.'
|
|
60
|
+
},
|
|
61
|
+
recentlyUsed: {
|
|
62
|
+
id: 'fabric.editor.codeBlock.recentlyUsed',
|
|
63
|
+
defaultMessage: 'Recently used',
|
|
64
|
+
description: 'Section heading for recently used languages in the code block language picker.'
|
|
65
|
+
},
|
|
66
|
+
all: {
|
|
67
|
+
id: 'fabric.editor.codeBlock.all',
|
|
68
|
+
defaultMessage: 'All',
|
|
69
|
+
description: 'Section heading for all languages in the code block language picker.'
|
|
55
70
|
}
|
|
56
71
|
});
|
|
@@ -42,62 +42,62 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
42
42
|
},
|
|
43
43
|
confirmDialogTitleToMarkdown: {
|
|
44
44
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdown',
|
|
45
|
-
defaultMessage: 'Convert to markdown
|
|
45
|
+
defaultMessage: 'Convert to markdown',
|
|
46
46
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from rich text into markdown mode.'
|
|
47
47
|
},
|
|
48
48
|
confirmDialogTitleToMarkdownLossy: {
|
|
49
49
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdownLossy',
|
|
50
|
-
defaultMessage: 'Convert to
|
|
50
|
+
defaultMessage: 'Convert to markdown',
|
|
51
51
|
description: 'Title of the warning dialog shown when the user is about to convert a Live Doc whose rich-text content cannot fully round-trip through markdown (lossy conversion).'
|
|
52
52
|
},
|
|
53
53
|
confirmDialogTitleToRichText: {
|
|
54
54
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toRichText',
|
|
55
|
-
defaultMessage: 'Convert to rich text
|
|
55
|
+
defaultMessage: 'Convert to rich text',
|
|
56
56
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from markdown back to rich text mode.'
|
|
57
57
|
},
|
|
58
58
|
confirmDialogToMarkdownToolsRemoved: {
|
|
59
59
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toolsRemoved',
|
|
60
|
-
defaultMessage: '
|
|
60
|
+
defaultMessage: 'Use basic formatting',
|
|
61
61
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the rich-text editor toolbar disappears once the document is in markdown mode.'
|
|
62
62
|
},
|
|
63
63
|
confirmDialogToMarkdownToggle: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
65
|
-
defaultMessage: 'Toggle between syntax and
|
|
65
|
+
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
66
66
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
|
|
67
67
|
},
|
|
68
68
|
confirmDialogToMarkdownVersionHistory: {
|
|
69
69
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
70
|
-
defaultMessage: '
|
|
70
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
71
71
|
description: 'Body row inside the convert-to-markdown confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
72
72
|
},
|
|
73
73
|
confirmDialogToMarkdownLossyRichContent: {
|
|
74
74
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.richContent',
|
|
75
|
-
defaultMessage: 'Your content
|
|
75
|
+
defaultMessage: 'Your content may look different as converting removes rich text formatting',
|
|
76
76
|
description: 'Body row in the lossy convert-to-markdown warning dialog; explains that rich-text formatting may not survive the conversion.'
|
|
77
77
|
},
|
|
78
78
|
confirmDialogToMarkdownLossyVersionHistory: {
|
|
79
79
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.versionHistory',
|
|
80
|
-
defaultMessage: '
|
|
80
|
+
defaultMessage: 'To restore formatting, access previous drafts from version history',
|
|
81
81
|
description: 'Body row in the lossy convert-to-markdown warning dialog; reassures the user that the pre-conversion version is recoverable from version history.'
|
|
82
82
|
},
|
|
83
83
|
confirmDialogToMarkdownLossyCta: {
|
|
84
84
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.cta',
|
|
85
|
-
defaultMessage: 'Convert
|
|
85
|
+
defaultMessage: 'Convert',
|
|
86
86
|
description: 'Primary (warning-styled) action button label in the lossy convert-to-markdown warning dialog.'
|
|
87
87
|
},
|
|
88
88
|
confirmDialogToRichTextStandardTools: {
|
|
89
89
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.standardTools',
|
|
90
|
-
defaultMessage: '
|
|
90
|
+
defaultMessage: 'Use all rich text tools',
|
|
91
91
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
92
92
|
},
|
|
93
93
|
confirmDialogToRichTextInstantEdits: {
|
|
94
94
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
95
|
-
defaultMessage: '
|
|
95
|
+
defaultMessage: 'Edit and save as a live doc',
|
|
96
96
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
97
97
|
},
|
|
98
98
|
confirmDialogToRichTextVersionHistory: {
|
|
99
99
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
100
|
-
defaultMessage: '
|
|
100
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
101
101
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
102
102
|
},
|
|
103
103
|
confirmDialogCancel: {
|
|
@@ -117,23 +117,13 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
117
117
|
},
|
|
118
118
|
unlinkSyncedBlocksTitle: {
|
|
119
119
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.title',
|
|
120
|
-
defaultMessage: '
|
|
120
|
+
defaultMessage: 'Delete synced content?',
|
|
121
121
|
description: 'Title of the modal shown when the user tries to convert a page to markdown but the page contains synced blocks. The dialog asks them to unlink (unsync) the blocks first.'
|
|
122
122
|
},
|
|
123
123
|
unlinkSyncedBlocksBody: {
|
|
124
124
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.body',
|
|
125
|
-
defaultMessage: '
|
|
126
|
-
description: 'Body copy
|
|
127
|
-
},
|
|
128
|
-
unlinkSyncedBlocksLearnMore: {
|
|
129
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.learnMore',
|
|
130
|
-
defaultMessage: 'Learn more',
|
|
131
|
-
description: 'Footer link in the unlink-synced-blocks dialog that opens external documentation about managing synced blocks.'
|
|
132
|
-
},
|
|
133
|
-
unlinkSyncedBlocksUnderstood: {
|
|
134
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.understood',
|
|
135
|
-
defaultMessage: 'Understood',
|
|
136
|
-
description: 'Primary acknowledgement button label in the unlink-synced-blocks dialog. Dismisses the dialog — there is no "convert anyway" action.'
|
|
125
|
+
defaultMessage: 'Converting will delete synced blocks and their content. This cannot be restored in version history.',
|
|
126
|
+
description: 'Body copy for the warning section shown in the convert dialog when synced blocks are present.'
|
|
137
127
|
},
|
|
138
128
|
labsLozenge: {
|
|
139
129
|
id: 'fabric.editor.markdownMode.labsLozenge',
|
|
@@ -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.37.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.37.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -46,5 +46,20 @@ export const codeBlockButtonMessages = defineMessages({
|
|
|
46
46
|
id: 'fabric.editor.selectLanguage',
|
|
47
47
|
defaultMessage: 'Select language',
|
|
48
48
|
description: 'Code blocks display software code. A prompt to select the software language the code is written in.'
|
|
49
|
+
},
|
|
50
|
+
detectLanguage: {
|
|
51
|
+
id: 'fabric.editor.codeBlock.detectLanguage',
|
|
52
|
+
defaultMessage: 'Detect language',
|
|
53
|
+
description: 'Option in the code block language picker that clears the selected language so the editor can detect it automatically.'
|
|
54
|
+
},
|
|
55
|
+
recentlyUsed: {
|
|
56
|
+
id: 'fabric.editor.codeBlock.recentlyUsed',
|
|
57
|
+
defaultMessage: 'Recently used',
|
|
58
|
+
description: 'Section heading for recently used languages in the code block language picker.'
|
|
59
|
+
},
|
|
60
|
+
all: {
|
|
61
|
+
id: 'fabric.editor.codeBlock.all',
|
|
62
|
+
defaultMessage: 'All',
|
|
63
|
+
description: 'Section heading for all languages in the code block language picker.'
|
|
49
64
|
}
|
|
50
65
|
});
|
|
@@ -37,62 +37,62 @@ export const markdownModeMessages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
confirmDialogTitleToMarkdown: {
|
|
39
39
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdown',
|
|
40
|
-
defaultMessage: 'Convert to markdown
|
|
40
|
+
defaultMessage: 'Convert to markdown',
|
|
41
41
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from rich text into markdown mode.'
|
|
42
42
|
},
|
|
43
43
|
confirmDialogTitleToMarkdownLossy: {
|
|
44
44
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdownLossy',
|
|
45
|
-
defaultMessage: 'Convert to
|
|
45
|
+
defaultMessage: 'Convert to markdown',
|
|
46
46
|
description: 'Title of the warning dialog shown when the user is about to convert a Live Doc whose rich-text content cannot fully round-trip through markdown (lossy conversion).'
|
|
47
47
|
},
|
|
48
48
|
confirmDialogTitleToRichText: {
|
|
49
49
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toRichText',
|
|
50
|
-
defaultMessage: 'Convert to rich text
|
|
50
|
+
defaultMessage: 'Convert to rich text',
|
|
51
51
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from markdown back to rich text mode.'
|
|
52
52
|
},
|
|
53
53
|
confirmDialogToMarkdownToolsRemoved: {
|
|
54
54
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toolsRemoved',
|
|
55
|
-
defaultMessage: '
|
|
55
|
+
defaultMessage: 'Use basic formatting',
|
|
56
56
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the rich-text editor toolbar disappears once the document is in markdown mode.'
|
|
57
57
|
},
|
|
58
58
|
confirmDialogToMarkdownToggle: {
|
|
59
59
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
60
|
-
defaultMessage: 'Toggle between syntax and
|
|
60
|
+
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
61
61
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
|
|
62
62
|
},
|
|
63
63
|
confirmDialogToMarkdownVersionHistory: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
65
|
-
defaultMessage: '
|
|
65
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
66
66
|
description: 'Body row inside the convert-to-markdown confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
67
67
|
},
|
|
68
68
|
confirmDialogToMarkdownLossyRichContent: {
|
|
69
69
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.richContent',
|
|
70
|
-
defaultMessage: 'Your content
|
|
70
|
+
defaultMessage: 'Your content may look different as converting removes rich text formatting',
|
|
71
71
|
description: 'Body row in the lossy convert-to-markdown warning dialog; explains that rich-text formatting may not survive the conversion.'
|
|
72
72
|
},
|
|
73
73
|
confirmDialogToMarkdownLossyVersionHistory: {
|
|
74
74
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.versionHistory',
|
|
75
|
-
defaultMessage: '
|
|
75
|
+
defaultMessage: 'To restore formatting, access previous drafts from version history',
|
|
76
76
|
description: 'Body row in the lossy convert-to-markdown warning dialog; reassures the user that the pre-conversion version is recoverable from version history.'
|
|
77
77
|
},
|
|
78
78
|
confirmDialogToMarkdownLossyCta: {
|
|
79
79
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.cta',
|
|
80
|
-
defaultMessage: 'Convert
|
|
80
|
+
defaultMessage: 'Convert',
|
|
81
81
|
description: 'Primary (warning-styled) action button label in the lossy convert-to-markdown warning dialog.'
|
|
82
82
|
},
|
|
83
83
|
confirmDialogToRichTextStandardTools: {
|
|
84
84
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.standardTools',
|
|
85
|
-
defaultMessage: '
|
|
85
|
+
defaultMessage: 'Use all rich text tools',
|
|
86
86
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
87
87
|
},
|
|
88
88
|
confirmDialogToRichTextInstantEdits: {
|
|
89
89
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
90
|
-
defaultMessage: '
|
|
90
|
+
defaultMessage: 'Edit and save as a live doc',
|
|
91
91
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
92
92
|
},
|
|
93
93
|
confirmDialogToRichTextVersionHistory: {
|
|
94
94
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
95
|
-
defaultMessage: '
|
|
95
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
96
96
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
97
97
|
},
|
|
98
98
|
confirmDialogCancel: {
|
|
@@ -112,23 +112,13 @@ export const markdownModeMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
unlinkSyncedBlocksTitle: {
|
|
114
114
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.title',
|
|
115
|
-
defaultMessage: '
|
|
115
|
+
defaultMessage: 'Delete synced content?',
|
|
116
116
|
description: 'Title of the modal shown when the user tries to convert a page to markdown but the page contains synced blocks. The dialog asks them to unlink (unsync) the blocks first.'
|
|
117
117
|
},
|
|
118
118
|
unlinkSyncedBlocksBody: {
|
|
119
119
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.body',
|
|
120
|
-
defaultMessage: '
|
|
121
|
-
description: 'Body copy
|
|
122
|
-
},
|
|
123
|
-
unlinkSyncedBlocksLearnMore: {
|
|
124
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.learnMore',
|
|
125
|
-
defaultMessage: 'Learn more',
|
|
126
|
-
description: 'Footer link in the unlink-synced-blocks dialog that opens external documentation about managing synced blocks.'
|
|
127
|
-
},
|
|
128
|
-
unlinkSyncedBlocksUnderstood: {
|
|
129
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.understood',
|
|
130
|
-
defaultMessage: 'Understood',
|
|
131
|
-
description: 'Primary acknowledgement button label in the unlink-synced-blocks dialog. Dismisses the dialog — there is no "convert anyway" action.'
|
|
120
|
+
defaultMessage: 'Converting will delete synced blocks and their content. This cannot be restored in version history.',
|
|
121
|
+
description: 'Body copy for the warning section shown in the convert dialog when synced blocks are present.'
|
|
132
122
|
},
|
|
133
123
|
labsLozenge: {
|
|
134
124
|
id: 'fabric.editor.markdownMode.labsLozenge',
|
|
@@ -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.37.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.37.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -46,5 +46,20 @@ export var codeBlockButtonMessages = defineMessages({
|
|
|
46
46
|
id: 'fabric.editor.selectLanguage',
|
|
47
47
|
defaultMessage: 'Select language',
|
|
48
48
|
description: 'Code blocks display software code. A prompt to select the software language the code is written in.'
|
|
49
|
+
},
|
|
50
|
+
detectLanguage: {
|
|
51
|
+
id: 'fabric.editor.codeBlock.detectLanguage',
|
|
52
|
+
defaultMessage: 'Detect language',
|
|
53
|
+
description: 'Option in the code block language picker that clears the selected language so the editor can detect it automatically.'
|
|
54
|
+
},
|
|
55
|
+
recentlyUsed: {
|
|
56
|
+
id: 'fabric.editor.codeBlock.recentlyUsed',
|
|
57
|
+
defaultMessage: 'Recently used',
|
|
58
|
+
description: 'Section heading for recently used languages in the code block language picker.'
|
|
59
|
+
},
|
|
60
|
+
all: {
|
|
61
|
+
id: 'fabric.editor.codeBlock.all',
|
|
62
|
+
defaultMessage: 'All',
|
|
63
|
+
description: 'Section heading for all languages in the code block language picker.'
|
|
49
64
|
}
|
|
50
65
|
});
|
|
@@ -37,62 +37,62 @@ export var markdownModeMessages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
confirmDialogTitleToMarkdown: {
|
|
39
39
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdown',
|
|
40
|
-
defaultMessage: 'Convert to markdown
|
|
40
|
+
defaultMessage: 'Convert to markdown',
|
|
41
41
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from rich text into markdown mode.'
|
|
42
42
|
},
|
|
43
43
|
confirmDialogTitleToMarkdownLossy: {
|
|
44
44
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdownLossy',
|
|
45
|
-
defaultMessage: 'Convert to
|
|
45
|
+
defaultMessage: 'Convert to markdown',
|
|
46
46
|
description: 'Title of the warning dialog shown when the user is about to convert a Live Doc whose rich-text content cannot fully round-trip through markdown (lossy conversion).'
|
|
47
47
|
},
|
|
48
48
|
confirmDialogTitleToRichText: {
|
|
49
49
|
id: 'fabric.editor.markdownMode.confirmDialog.title.toRichText',
|
|
50
|
-
defaultMessage: 'Convert to rich text
|
|
50
|
+
defaultMessage: 'Convert to rich text',
|
|
51
51
|
description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from markdown back to rich text mode.'
|
|
52
52
|
},
|
|
53
53
|
confirmDialogToMarkdownToolsRemoved: {
|
|
54
54
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toolsRemoved',
|
|
55
|
-
defaultMessage: '
|
|
55
|
+
defaultMessage: 'Use basic formatting',
|
|
56
56
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the rich-text editor toolbar disappears once the document is in markdown mode.'
|
|
57
57
|
},
|
|
58
58
|
confirmDialogToMarkdownToggle: {
|
|
59
59
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
|
|
60
|
-
defaultMessage: 'Toggle between syntax and
|
|
60
|
+
defaultMessage: 'Toggle between the syntax and preview editor',
|
|
61
61
|
description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
|
|
62
62
|
},
|
|
63
63
|
confirmDialogToMarkdownVersionHistory: {
|
|
64
64
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
|
|
65
|
-
defaultMessage: '
|
|
65
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
66
66
|
description: 'Body row inside the convert-to-markdown confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
67
67
|
},
|
|
68
68
|
confirmDialogToMarkdownLossyRichContent: {
|
|
69
69
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.richContent',
|
|
70
|
-
defaultMessage: 'Your content
|
|
70
|
+
defaultMessage: 'Your content may look different as converting removes rich text formatting',
|
|
71
71
|
description: 'Body row in the lossy convert-to-markdown warning dialog; explains that rich-text formatting may not survive the conversion.'
|
|
72
72
|
},
|
|
73
73
|
confirmDialogToMarkdownLossyVersionHistory: {
|
|
74
74
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.versionHistory',
|
|
75
|
-
defaultMessage: '
|
|
75
|
+
defaultMessage: 'To restore formatting, access previous drafts from version history',
|
|
76
76
|
description: 'Body row in the lossy convert-to-markdown warning dialog; reassures the user that the pre-conversion version is recoverable from version history.'
|
|
77
77
|
},
|
|
78
78
|
confirmDialogToMarkdownLossyCta: {
|
|
79
79
|
id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.cta',
|
|
80
|
-
defaultMessage: 'Convert
|
|
80
|
+
defaultMessage: 'Convert',
|
|
81
81
|
description: 'Primary (warning-styled) action button label in the lossy convert-to-markdown warning dialog.'
|
|
82
82
|
},
|
|
83
83
|
confirmDialogToRichTextStandardTools: {
|
|
84
84
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.standardTools',
|
|
85
|
-
defaultMessage: '
|
|
85
|
+
defaultMessage: 'Use all rich text tools',
|
|
86
86
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
87
87
|
},
|
|
88
88
|
confirmDialogToRichTextInstantEdits: {
|
|
89
89
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
90
|
-
defaultMessage: '
|
|
90
|
+
defaultMessage: 'Edit and save as a live doc',
|
|
91
91
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
92
92
|
},
|
|
93
93
|
confirmDialogToRichTextVersionHistory: {
|
|
94
94
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
95
|
-
defaultMessage: '
|
|
95
|
+
defaultMessage: 'Restore previous drafts with version history',
|
|
96
96
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.'
|
|
97
97
|
},
|
|
98
98
|
confirmDialogCancel: {
|
|
@@ -112,23 +112,13 @@ export var markdownModeMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
unlinkSyncedBlocksTitle: {
|
|
114
114
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.title',
|
|
115
|
-
defaultMessage: '
|
|
115
|
+
defaultMessage: 'Delete synced content?',
|
|
116
116
|
description: 'Title of the modal shown when the user tries to convert a page to markdown but the page contains synced blocks. The dialog asks them to unlink (unsync) the blocks first.'
|
|
117
117
|
},
|
|
118
118
|
unlinkSyncedBlocksBody: {
|
|
119
119
|
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.body',
|
|
120
|
-
defaultMessage: '
|
|
121
|
-
description: 'Body copy
|
|
122
|
-
},
|
|
123
|
-
unlinkSyncedBlocksLearnMore: {
|
|
124
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.learnMore',
|
|
125
|
-
defaultMessage: 'Learn more',
|
|
126
|
-
description: 'Footer link in the unlink-synced-blocks dialog that opens external documentation about managing synced blocks.'
|
|
127
|
-
},
|
|
128
|
-
unlinkSyncedBlocksUnderstood: {
|
|
129
|
-
id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.understood',
|
|
130
|
-
defaultMessage: 'Understood',
|
|
131
|
-
description: 'Primary acknowledgement button label in the unlink-synced-blocks dialog. Dismisses the dialog — there is no "convert anyway" action.'
|
|
120
|
+
defaultMessage: 'Converting will delete synced blocks and their content. This cannot be restored in version history.',
|
|
121
|
+
description: 'Body copy for the warning section shown in the convert dialog when synced blocks are present.'
|
|
132
122
|
},
|
|
133
123
|
labsLozenge: {
|
|
134
124
|
id: 'fabric.editor.markdownMode.labsLozenge',
|
|
@@ -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.37.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.37.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const codeBlockButtonMessages: {
|
|
2
|
+
all: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
2
7
|
copiedCodeToClipboard: {
|
|
3
8
|
defaultMessage: string;
|
|
4
9
|
description: string;
|
|
@@ -9,11 +14,21 @@ export declare const codeBlockButtonMessages: {
|
|
|
9
14
|
description: string;
|
|
10
15
|
id: string;
|
|
11
16
|
};
|
|
17
|
+
detectLanguage: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
12
22
|
hideLineNumbersLabel: {
|
|
13
23
|
defaultMessage: string;
|
|
14
24
|
description: string;
|
|
15
25
|
id: string;
|
|
16
26
|
};
|
|
27
|
+
recentlyUsed: {
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
17
32
|
selectLanguage: {
|
|
18
33
|
defaultMessage: string;
|
|
19
34
|
description: string;
|
|
@@ -113,21 +113,11 @@ export declare const markdownModeMessages: {
|
|
|
113
113
|
description: string;
|
|
114
114
|
id: string;
|
|
115
115
|
};
|
|
116
|
-
unlinkSyncedBlocksLearnMore: {
|
|
117
|
-
defaultMessage: string;
|
|
118
|
-
description: string;
|
|
119
|
-
id: string;
|
|
120
|
-
};
|
|
121
116
|
unlinkSyncedBlocksTitle: {
|
|
122
117
|
defaultMessage: string;
|
|
123
118
|
description: string;
|
|
124
119
|
id: string;
|
|
125
120
|
};
|
|
126
|
-
unlinkSyncedBlocksUnderstood: {
|
|
127
|
-
defaultMessage: string;
|
|
128
|
-
description: string;
|
|
129
|
-
id: string;
|
|
130
|
-
};
|
|
131
121
|
wysiwyg: {
|
|
132
122
|
defaultMessage: string;
|
|
133
123
|
description: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const codeBlockButtonMessages: {
|
|
2
|
+
all: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
2
7
|
copiedCodeToClipboard: {
|
|
3
8
|
defaultMessage: string;
|
|
4
9
|
description: string;
|
|
@@ -9,11 +14,21 @@ export declare const codeBlockButtonMessages: {
|
|
|
9
14
|
description: string;
|
|
10
15
|
id: string;
|
|
11
16
|
};
|
|
17
|
+
detectLanguage: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
12
22
|
hideLineNumbersLabel: {
|
|
13
23
|
defaultMessage: string;
|
|
14
24
|
description: string;
|
|
15
25
|
id: string;
|
|
16
26
|
};
|
|
27
|
+
recentlyUsed: {
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
17
32
|
selectLanguage: {
|
|
18
33
|
defaultMessage: string;
|
|
19
34
|
description: string;
|
|
@@ -113,21 +113,11 @@ export declare const markdownModeMessages: {
|
|
|
113
113
|
description: string;
|
|
114
114
|
id: string;
|
|
115
115
|
};
|
|
116
|
-
unlinkSyncedBlocksLearnMore: {
|
|
117
|
-
defaultMessage: string;
|
|
118
|
-
description: string;
|
|
119
|
-
id: string;
|
|
120
|
-
};
|
|
121
116
|
unlinkSyncedBlocksTitle: {
|
|
122
117
|
defaultMessage: string;
|
|
123
118
|
description: string;
|
|
124
119
|
id: string;
|
|
125
120
|
};
|
|
126
|
-
unlinkSyncedBlocksUnderstood: {
|
|
127
|
-
defaultMessage: string;
|
|
128
|
-
description: string;
|
|
129
|
-
id: string;
|
|
130
|
-
};
|
|
131
121
|
wysiwyg: {
|
|
132
122
|
defaultMessage: string;
|
|
133
123
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.38.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/"
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
57
57
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
58
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
58
|
+
"@atlaskit/editor-toolbar": "^1.7.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
60
60
|
"@atlaskit/emoji": "^70.10.0",
|
|
61
61
|
"@atlaskit/icon": "^35.0.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
63
|
-
"@atlaskit/link-datasource": "^5.
|
|
63
|
+
"@atlaskit/link-datasource": "^5.4.0",
|
|
64
64
|
"@atlaskit/link-picker": "^5.1.0",
|
|
65
65
|
"@atlaskit/media-card": "^80.5.0",
|
|
66
66
|
"@atlaskit/media-client": "^36.3.0",
|