@atlaskit/editor-common 111.8.12 → 111.8.13
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 +11 -0
- package/dist/cjs/messages/syncBlock.js +50 -10
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/syncBlock.js +50 -10
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/syncBlock.js +50 -10
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/syncBlock.d.ts +41 -1
- package/dist/types-ts4.5/messages/syncBlock.d.ts +41 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.8.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41d5a8796f3e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41d5a8796f3e1) -
|
|
8
|
+
[EDITOR-4472] Update content copy for sync block
|
|
9
|
+
- [`28434cbe03f1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28434cbe03f1e) -
|
|
10
|
+
[ux] [EDITOR-2851]
|
|
11
|
+
- Implement unsync feature for source sync block
|
|
12
|
+
- Update deletion confirmation modal and reference block UI after source deletion
|
|
13
|
+
|
|
3
14
|
## 111.8.12
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -22,8 +22,8 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
22
22
|
description: 'Button label for editing the source of sync block element'
|
|
23
23
|
},
|
|
24
24
|
editSourceTooltip: {
|
|
25
|
-
id: 'fabric.editor.
|
|
26
|
-
defaultMessage: 'Edit at
|
|
25
|
+
id: 'fabric.editor.editSourceTooltipEnabled',
|
|
26
|
+
defaultMessage: 'Edit synced content at source location',
|
|
27
27
|
description: 'Tooltip for the button to navigate to the source page of the sync block element'
|
|
28
28
|
},
|
|
29
29
|
editSourceTooltipDisabled: {
|
|
@@ -96,10 +96,15 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
96
96
|
defaultMessage: 'This content is synced. Edit it at the source.',
|
|
97
97
|
description: 'Tooltip that shows when you hover over a task in the destination synced block'
|
|
98
98
|
},
|
|
99
|
-
|
|
100
|
-
id: 'fabric.editor.
|
|
101
|
-
defaultMessage:
|
|
102
|
-
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block'
|
|
99
|
+
deleteConfirmationModalTitleSingle: {
|
|
100
|
+
id: 'fabric.editor.deleteConfirmationModalTitleSingle',
|
|
101
|
+
defaultMessage: 'Delete synced block?',
|
|
102
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has no reference'
|
|
103
|
+
},
|
|
104
|
+
deleteConfirmationModalTitleMultiple: {
|
|
105
|
+
id: 'fabric.editor.deleteConfirmationModalTitleMultiple',
|
|
106
|
+
defaultMessage: 'Delete content in {count} locations?',
|
|
107
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has references'
|
|
103
108
|
},
|
|
104
109
|
deleteConfirmationModalCancelButton: {
|
|
105
110
|
id: 'fabric.editor.deleteConfirmationModalCancelButton',
|
|
@@ -121,6 +126,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
121
126
|
defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
|
|
122
127
|
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
123
128
|
},
|
|
129
|
+
deleteConfirmationModalDescriptionNoRef: {
|
|
130
|
+
id: 'fabric.editor.deleteConfirmationModalDescriptionNoRef',
|
|
131
|
+
defaultMessage: "You'll no longer be able to reuse this synced block to keep content updated across locations. ",
|
|
132
|
+
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
133
|
+
},
|
|
124
134
|
createSyncBlockLabel: {
|
|
125
135
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
126
136
|
defaultMessage: 'Create synced block',
|
|
@@ -142,8 +152,8 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
142
152
|
description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
|
|
143
153
|
},
|
|
144
154
|
cannotDeleteTitle: {
|
|
145
|
-
id: 'fabric.editor.error.title.cannotDelete',
|
|
146
|
-
defaultMessage:
|
|
155
|
+
id: 'fabric.editor.error.flag.title.cannotDelete',
|
|
156
|
+
defaultMessage: 'Failed to delete synced block',
|
|
147
157
|
description: 'Title in flag which appears when a sync block cannot be deleted'
|
|
148
158
|
},
|
|
149
159
|
cannotDeleteDescription: {
|
|
@@ -186,14 +196,24 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
186
196
|
defaultMessage: 'We’re unable to display this content as its source has been deleted or archived.',
|
|
187
197
|
description: 'Description for error state where the synced block cannot be found'
|
|
188
198
|
},
|
|
199
|
+
sourceUnsyncedDescription: {
|
|
200
|
+
id: 'fabric.editor.syncedBlockSourceUnsyncedDescription.non-final',
|
|
201
|
+
defaultMessage: "We're unable to display this content as it's been unsynced from source document",
|
|
202
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
203
|
+
},
|
|
204
|
+
sourceDeletedDescription: {
|
|
205
|
+
id: 'fabric.editor.syncedBlockSourceDeletedDescription.non-final',
|
|
206
|
+
defaultMessage: "We're unable to display this content as it's been deleted from source document.",
|
|
207
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
208
|
+
},
|
|
189
209
|
retryButton: {
|
|
190
210
|
id: 'fabric.editor.retrySyncedBlock',
|
|
191
211
|
defaultMessage: 'Try again',
|
|
192
212
|
description: 'Label for button which retries loading the synced block'
|
|
193
213
|
},
|
|
194
214
|
offlineError: {
|
|
195
|
-
id: 'fabric.editor.error.description.offline',
|
|
196
|
-
defaultMessage: "We're unable to display
|
|
215
|
+
id: 'fabric.editor.error.description.reference.offline',
|
|
216
|
+
defaultMessage: "We're unable to display synced blocks when you're offline",
|
|
197
217
|
description: 'Error message which is shown over sync block when the editor is offline'
|
|
198
218
|
},
|
|
199
219
|
syncBlockCopiedTitle: {
|
|
@@ -270,5 +290,25 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
270
290
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
271
291
|
defaultMessage: 'Unsync',
|
|
272
292
|
description: 'Text on the button which unsyncs the sync block'
|
|
293
|
+
},
|
|
294
|
+
deleteConfirmationModalUnsyncButton: {
|
|
295
|
+
id: 'fabric.editor.deleteConfirmationModalUnsyncButton',
|
|
296
|
+
defaultMessage: 'Unsync',
|
|
297
|
+
description: 'Text on button which confirms unsyncing the sync block when user was trying to unsync source synced block'
|
|
298
|
+
},
|
|
299
|
+
unsyncConfirmationModalTitle: {
|
|
300
|
+
id: 'fabric.editor.unsyncConfirmationModalTitle',
|
|
301
|
+
defaultMessage: 'Unsync this content?',
|
|
302
|
+
description: 'Title of unsync confirmation modal that appears when user tries to unsync source synced block'
|
|
303
|
+
},
|
|
304
|
+
unsyncConfirmationModalDescriptionSingle: {
|
|
305
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionSingle',
|
|
306
|
+
defaultMessage: 'Your content will stay here. It will no longer be a synced block.',
|
|
307
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with no reference'
|
|
308
|
+
},
|
|
309
|
+
unsyncConfirmationModalDescriptionMultiple: {
|
|
310
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionMultiple',
|
|
311
|
+
defaultMessage: 'Your content will stay here. In {syncBlockCount} other synced locations it will appear as an “Unsynced block”. ',
|
|
312
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with multiple references'
|
|
273
313
|
}
|
|
274
314
|
});
|
|
@@ -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 = "111.8.
|
|
22
|
+
var packageVersion = "111.8.12";
|
|
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 = "111.8.
|
|
27
|
+
var packageVersion = "111.8.12";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -16,8 +16,8 @@ export const syncBlockMessages = defineMessages({
|
|
|
16
16
|
description: 'Button label for editing the source of sync block element'
|
|
17
17
|
},
|
|
18
18
|
editSourceTooltip: {
|
|
19
|
-
id: 'fabric.editor.
|
|
20
|
-
defaultMessage: 'Edit at
|
|
19
|
+
id: 'fabric.editor.editSourceTooltipEnabled',
|
|
20
|
+
defaultMessage: 'Edit synced content at source location',
|
|
21
21
|
description: 'Tooltip for the button to navigate to the source page of the sync block element'
|
|
22
22
|
},
|
|
23
23
|
editSourceTooltipDisabled: {
|
|
@@ -90,10 +90,15 @@ export const syncBlockMessages = defineMessages({
|
|
|
90
90
|
defaultMessage: 'This content is synced. Edit it at the source.',
|
|
91
91
|
description: 'Tooltip that shows when you hover over a task in the destination synced block'
|
|
92
92
|
},
|
|
93
|
-
|
|
94
|
-
id: 'fabric.editor.
|
|
95
|
-
defaultMessage:
|
|
96
|
-
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block'
|
|
93
|
+
deleteConfirmationModalTitleSingle: {
|
|
94
|
+
id: 'fabric.editor.deleteConfirmationModalTitleSingle',
|
|
95
|
+
defaultMessage: 'Delete synced block?',
|
|
96
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has no reference'
|
|
97
|
+
},
|
|
98
|
+
deleteConfirmationModalTitleMultiple: {
|
|
99
|
+
id: 'fabric.editor.deleteConfirmationModalTitleMultiple',
|
|
100
|
+
defaultMessage: 'Delete content in {count} locations?',
|
|
101
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has references'
|
|
97
102
|
},
|
|
98
103
|
deleteConfirmationModalCancelButton: {
|
|
99
104
|
id: 'fabric.editor.deleteConfirmationModalCancelButton',
|
|
@@ -115,6 +120,11 @@ export const syncBlockMessages = defineMessages({
|
|
|
115
120
|
defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
|
|
116
121
|
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
117
122
|
},
|
|
123
|
+
deleteConfirmationModalDescriptionNoRef: {
|
|
124
|
+
id: 'fabric.editor.deleteConfirmationModalDescriptionNoRef',
|
|
125
|
+
defaultMessage: "You'll no longer be able to reuse this synced block to keep content updated across locations. ",
|
|
126
|
+
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
127
|
+
},
|
|
118
128
|
createSyncBlockLabel: {
|
|
119
129
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
120
130
|
defaultMessage: 'Create synced block',
|
|
@@ -136,8 +146,8 @@ export const syncBlockMessages = defineMessages({
|
|
|
136
146
|
description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
|
|
137
147
|
},
|
|
138
148
|
cannotDeleteTitle: {
|
|
139
|
-
id: 'fabric.editor.error.title.cannotDelete',
|
|
140
|
-
defaultMessage:
|
|
149
|
+
id: 'fabric.editor.error.flag.title.cannotDelete',
|
|
150
|
+
defaultMessage: 'Failed to delete synced block',
|
|
141
151
|
description: 'Title in flag which appears when a sync block cannot be deleted'
|
|
142
152
|
},
|
|
143
153
|
cannotDeleteDescription: {
|
|
@@ -180,14 +190,24 @@ export const syncBlockMessages = defineMessages({
|
|
|
180
190
|
defaultMessage: 'We’re unable to display this content as its source has been deleted or archived.',
|
|
181
191
|
description: 'Description for error state where the synced block cannot be found'
|
|
182
192
|
},
|
|
193
|
+
sourceUnsyncedDescription: {
|
|
194
|
+
id: 'fabric.editor.syncedBlockSourceUnsyncedDescription.non-final',
|
|
195
|
+
defaultMessage: "We're unable to display this content as it's been unsynced from source document",
|
|
196
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
197
|
+
},
|
|
198
|
+
sourceDeletedDescription: {
|
|
199
|
+
id: 'fabric.editor.syncedBlockSourceDeletedDescription.non-final',
|
|
200
|
+
defaultMessage: "We're unable to display this content as it's been deleted from source document.",
|
|
201
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
202
|
+
},
|
|
183
203
|
retryButton: {
|
|
184
204
|
id: 'fabric.editor.retrySyncedBlock',
|
|
185
205
|
defaultMessage: 'Try again',
|
|
186
206
|
description: 'Label for button which retries loading the synced block'
|
|
187
207
|
},
|
|
188
208
|
offlineError: {
|
|
189
|
-
id: 'fabric.editor.error.description.offline',
|
|
190
|
-
defaultMessage: `We're unable to display
|
|
209
|
+
id: 'fabric.editor.error.description.reference.offline',
|
|
210
|
+
defaultMessage: `We're unable to display synced blocks when you're offline`,
|
|
191
211
|
description: 'Error message which is shown over sync block when the editor is offline'
|
|
192
212
|
},
|
|
193
213
|
syncBlockCopiedTitle: {
|
|
@@ -264,5 +284,25 @@ export const syncBlockMessages = defineMessages({
|
|
|
264
284
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
265
285
|
defaultMessage: 'Unsync',
|
|
266
286
|
description: 'Text on the button which unsyncs the sync block'
|
|
287
|
+
},
|
|
288
|
+
deleteConfirmationModalUnsyncButton: {
|
|
289
|
+
id: 'fabric.editor.deleteConfirmationModalUnsyncButton',
|
|
290
|
+
defaultMessage: 'Unsync',
|
|
291
|
+
description: 'Text on button which confirms unsyncing the sync block when user was trying to unsync source synced block'
|
|
292
|
+
},
|
|
293
|
+
unsyncConfirmationModalTitle: {
|
|
294
|
+
id: 'fabric.editor.unsyncConfirmationModalTitle',
|
|
295
|
+
defaultMessage: 'Unsync this content?',
|
|
296
|
+
description: 'Title of unsync confirmation modal that appears when user tries to unsync source synced block'
|
|
297
|
+
},
|
|
298
|
+
unsyncConfirmationModalDescriptionSingle: {
|
|
299
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionSingle',
|
|
300
|
+
defaultMessage: 'Your content will stay here. It will no longer be a synced block.',
|
|
301
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with no reference'
|
|
302
|
+
},
|
|
303
|
+
unsyncConfirmationModalDescriptionMultiple: {
|
|
304
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionMultiple',
|
|
305
|
+
defaultMessage: 'Your content will stay here. In {syncBlockCount} other synced locations it will appear as an “Unsynced block”. ',
|
|
306
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with multiple references'
|
|
267
307
|
}
|
|
268
308
|
});
|
|
@@ -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 = "111.8.
|
|
7
|
+
const packageVersion = "111.8.12";
|
|
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 = "111.8.
|
|
17
|
+
const packageVersion = "111.8.12";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -16,8 +16,8 @@ export var syncBlockMessages = defineMessages({
|
|
|
16
16
|
description: 'Button label for editing the source of sync block element'
|
|
17
17
|
},
|
|
18
18
|
editSourceTooltip: {
|
|
19
|
-
id: 'fabric.editor.
|
|
20
|
-
defaultMessage: 'Edit at
|
|
19
|
+
id: 'fabric.editor.editSourceTooltipEnabled',
|
|
20
|
+
defaultMessage: 'Edit synced content at source location',
|
|
21
21
|
description: 'Tooltip for the button to navigate to the source page of the sync block element'
|
|
22
22
|
},
|
|
23
23
|
editSourceTooltipDisabled: {
|
|
@@ -90,10 +90,15 @@ export var syncBlockMessages = defineMessages({
|
|
|
90
90
|
defaultMessage: 'This content is synced. Edit it at the source.',
|
|
91
91
|
description: 'Tooltip that shows when you hover over a task in the destination synced block'
|
|
92
92
|
},
|
|
93
|
-
|
|
94
|
-
id: 'fabric.editor.
|
|
95
|
-
defaultMessage:
|
|
96
|
-
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block'
|
|
93
|
+
deleteConfirmationModalTitleSingle: {
|
|
94
|
+
id: 'fabric.editor.deleteConfirmationModalTitleSingle',
|
|
95
|
+
defaultMessage: 'Delete synced block?',
|
|
96
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has no reference'
|
|
97
|
+
},
|
|
98
|
+
deleteConfirmationModalTitleMultiple: {
|
|
99
|
+
id: 'fabric.editor.deleteConfirmationModalTitleMultiple',
|
|
100
|
+
defaultMessage: 'Delete content in {count} locations?',
|
|
101
|
+
description: 'Title of delete confirmation modal that appears when user tries to delete source synced block that has references'
|
|
97
102
|
},
|
|
98
103
|
deleteConfirmationModalCancelButton: {
|
|
99
104
|
id: 'fabric.editor.deleteConfirmationModalCancelButton',
|
|
@@ -115,6 +120,11 @@ export var syncBlockMessages = defineMessages({
|
|
|
115
120
|
defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
|
|
116
121
|
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
117
122
|
},
|
|
123
|
+
deleteConfirmationModalDescriptionNoRef: {
|
|
124
|
+
id: 'fabric.editor.deleteConfirmationModalDescriptionNoRef',
|
|
125
|
+
defaultMessage: "You'll no longer be able to reuse this synced block to keep content updated across locations. ",
|
|
126
|
+
description: 'Description of delete confirmation modal that appears when user tries to delete source synced block'
|
|
127
|
+
},
|
|
118
128
|
createSyncBlockLabel: {
|
|
119
129
|
id: 'fabric.editor.createSyncBlockLabel',
|
|
120
130
|
defaultMessage: 'Create synced block',
|
|
@@ -136,8 +146,8 @@ export var syncBlockMessages = defineMessages({
|
|
|
136
146
|
description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
|
|
137
147
|
},
|
|
138
148
|
cannotDeleteTitle: {
|
|
139
|
-
id: 'fabric.editor.error.title.cannotDelete',
|
|
140
|
-
defaultMessage:
|
|
149
|
+
id: 'fabric.editor.error.flag.title.cannotDelete',
|
|
150
|
+
defaultMessage: 'Failed to delete synced block',
|
|
141
151
|
description: 'Title in flag which appears when a sync block cannot be deleted'
|
|
142
152
|
},
|
|
143
153
|
cannotDeleteDescription: {
|
|
@@ -180,14 +190,24 @@ export var syncBlockMessages = defineMessages({
|
|
|
180
190
|
defaultMessage: 'We’re unable to display this content as its source has been deleted or archived.',
|
|
181
191
|
description: 'Description for error state where the synced block cannot be found'
|
|
182
192
|
},
|
|
193
|
+
sourceUnsyncedDescription: {
|
|
194
|
+
id: 'fabric.editor.syncedBlockSourceUnsyncedDescription.non-final',
|
|
195
|
+
defaultMessage: "We're unable to display this content as it's been unsynced from source document",
|
|
196
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
197
|
+
},
|
|
198
|
+
sourceDeletedDescription: {
|
|
199
|
+
id: 'fabric.editor.syncedBlockSourceDeletedDescription.non-final',
|
|
200
|
+
defaultMessage: "We're unable to display this content as it's been deleted from source document.",
|
|
201
|
+
description: 'Description for error state where the synced block has its source unsynced'
|
|
202
|
+
},
|
|
183
203
|
retryButton: {
|
|
184
204
|
id: 'fabric.editor.retrySyncedBlock',
|
|
185
205
|
defaultMessage: 'Try again',
|
|
186
206
|
description: 'Label for button which retries loading the synced block'
|
|
187
207
|
},
|
|
188
208
|
offlineError: {
|
|
189
|
-
id: 'fabric.editor.error.description.offline',
|
|
190
|
-
defaultMessage: "We're unable to display
|
|
209
|
+
id: 'fabric.editor.error.description.reference.offline',
|
|
210
|
+
defaultMessage: "We're unable to display synced blocks when you're offline",
|
|
191
211
|
description: 'Error message which is shown over sync block when the editor is offline'
|
|
192
212
|
},
|
|
193
213
|
syncBlockCopiedTitle: {
|
|
@@ -264,5 +284,25 @@ export var syncBlockMessages = defineMessages({
|
|
|
264
284
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
265
285
|
defaultMessage: 'Unsync',
|
|
266
286
|
description: 'Text on the button which unsyncs the sync block'
|
|
287
|
+
},
|
|
288
|
+
deleteConfirmationModalUnsyncButton: {
|
|
289
|
+
id: 'fabric.editor.deleteConfirmationModalUnsyncButton',
|
|
290
|
+
defaultMessage: 'Unsync',
|
|
291
|
+
description: 'Text on button which confirms unsyncing the sync block when user was trying to unsync source synced block'
|
|
292
|
+
},
|
|
293
|
+
unsyncConfirmationModalTitle: {
|
|
294
|
+
id: 'fabric.editor.unsyncConfirmationModalTitle',
|
|
295
|
+
defaultMessage: 'Unsync this content?',
|
|
296
|
+
description: 'Title of unsync confirmation modal that appears when user tries to unsync source synced block'
|
|
297
|
+
},
|
|
298
|
+
unsyncConfirmationModalDescriptionSingle: {
|
|
299
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionSingle',
|
|
300
|
+
defaultMessage: 'Your content will stay here. It will no longer be a synced block.',
|
|
301
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with no reference'
|
|
302
|
+
},
|
|
303
|
+
unsyncConfirmationModalDescriptionMultiple: {
|
|
304
|
+
id: 'fabric.editor.unsyncConfirmationModalDescriptionMultiple',
|
|
305
|
+
defaultMessage: 'Your content will stay here. In {syncBlockCount} other synced locations it will appear as an “Unsynced block”. ',
|
|
306
|
+
description: 'Description of unsync confirmation modal that appears when user tries to unsync source synced block with multiple references'
|
|
267
307
|
}
|
|
268
308
|
});
|
|
@@ -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 = "111.8.
|
|
13
|
+
var packageVersion = "111.8.12";
|
|
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 = "111.8.
|
|
24
|
+
var packageVersion = "111.8.12";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -89,7 +89,12 @@ export declare const syncBlockMessages: {
|
|
|
89
89
|
defaultMessage: string;
|
|
90
90
|
description: string;
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
deleteConfirmationModalTitleSingle: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
deleteConfirmationModalTitleMultiple: {
|
|
93
98
|
id: string;
|
|
94
99
|
defaultMessage: string;
|
|
95
100
|
description: string;
|
|
@@ -114,6 +119,11 @@ export declare const syncBlockMessages: {
|
|
|
114
119
|
defaultMessage: string;
|
|
115
120
|
description: string;
|
|
116
121
|
};
|
|
122
|
+
deleteConfirmationModalDescriptionNoRef: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
117
127
|
createSyncBlockLabel: {
|
|
118
128
|
id: string;
|
|
119
129
|
defaultMessage: string;
|
|
@@ -179,6 +189,16 @@ export declare const syncBlockMessages: {
|
|
|
179
189
|
defaultMessage: string;
|
|
180
190
|
description: string;
|
|
181
191
|
};
|
|
192
|
+
sourceUnsyncedDescription: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
sourceDeletedDescription: {
|
|
198
|
+
id: string;
|
|
199
|
+
defaultMessage: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
182
202
|
retryButton: {
|
|
183
203
|
id: string;
|
|
184
204
|
defaultMessage: string;
|
|
@@ -264,4 +284,24 @@ export declare const syncBlockMessages: {
|
|
|
264
284
|
defaultMessage: string;
|
|
265
285
|
description: string;
|
|
266
286
|
};
|
|
287
|
+
deleteConfirmationModalUnsyncButton: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
unsyncConfirmationModalTitle: {
|
|
293
|
+
id: string;
|
|
294
|
+
defaultMessage: string;
|
|
295
|
+
description: string;
|
|
296
|
+
};
|
|
297
|
+
unsyncConfirmationModalDescriptionSingle: {
|
|
298
|
+
id: string;
|
|
299
|
+
defaultMessage: string;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
unsyncConfirmationModalDescriptionMultiple: {
|
|
303
|
+
id: string;
|
|
304
|
+
defaultMessage: string;
|
|
305
|
+
description: string;
|
|
306
|
+
};
|
|
267
307
|
};
|
|
@@ -89,7 +89,12 @@ export declare const syncBlockMessages: {
|
|
|
89
89
|
defaultMessage: string;
|
|
90
90
|
description: string;
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
deleteConfirmationModalTitleSingle: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
deleteConfirmationModalTitleMultiple: {
|
|
93
98
|
id: string;
|
|
94
99
|
defaultMessage: string;
|
|
95
100
|
description: string;
|
|
@@ -114,6 +119,11 @@ export declare const syncBlockMessages: {
|
|
|
114
119
|
defaultMessage: string;
|
|
115
120
|
description: string;
|
|
116
121
|
};
|
|
122
|
+
deleteConfirmationModalDescriptionNoRef: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
117
127
|
createSyncBlockLabel: {
|
|
118
128
|
id: string;
|
|
119
129
|
defaultMessage: string;
|
|
@@ -179,6 +189,16 @@ export declare const syncBlockMessages: {
|
|
|
179
189
|
defaultMessage: string;
|
|
180
190
|
description: string;
|
|
181
191
|
};
|
|
192
|
+
sourceUnsyncedDescription: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
sourceDeletedDescription: {
|
|
198
|
+
id: string;
|
|
199
|
+
defaultMessage: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
182
202
|
retryButton: {
|
|
183
203
|
id: string;
|
|
184
204
|
defaultMessage: string;
|
|
@@ -264,4 +284,24 @@ export declare const syncBlockMessages: {
|
|
|
264
284
|
defaultMessage: string;
|
|
265
285
|
description: string;
|
|
266
286
|
};
|
|
287
|
+
deleteConfirmationModalUnsyncButton: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
292
|
+
unsyncConfirmationModalTitle: {
|
|
293
|
+
id: string;
|
|
294
|
+
defaultMessage: string;
|
|
295
|
+
description: string;
|
|
296
|
+
};
|
|
297
|
+
unsyncConfirmationModalDescriptionSingle: {
|
|
298
|
+
id: string;
|
|
299
|
+
defaultMessage: string;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
unsyncConfirmationModalDescriptionMultiple: {
|
|
303
|
+
id: string;
|
|
304
|
+
defaultMessage: string;
|
|
305
|
+
description: string;
|
|
306
|
+
};
|
|
267
307
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.8.
|
|
3
|
+
"version": "111.8.13",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.31.0",
|
|
85
85
|
"@atlaskit/tokens": "^10.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|