@atlaskit/editor-common 110.41.5 → 110.41.6
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 +8 -2
- package/dist/cjs/messages/syncBlock.js +9 -9
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/sync-block.js +2 -1
- package/dist/cjs/transforms/sync-block.js +4 -14
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/syncBlock.js +9 -9
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/sync-block.js +2 -1
- package/dist/es2019/transforms/sync-block.js +4 -14
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/syncBlock.js +9 -9
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/sync-block.js +2 -1
- package/dist/esm/transforms/sync-block.js +4 -14
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/syncBlock.d.ts +3 -3
- package/dist/types/styles/shared/sync-block.d.ts +1 -0
- package/dist/types-ts4.5/messages/syncBlock.d.ts +3 -3
- package/dist/types-ts4.5/styles/shared/sync-block.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.41.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dcc6a3e73f414`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dcc6a3e73f414) -
|
|
8
|
+
[ux] EDITOR-3304 add offline error state for sync blocks and update other error UI to match new
|
|
9
|
+
designs
|
|
10
|
+
|
|
3
11
|
## 110.41.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1982,8 +1990,6 @@
|
|
|
1982
1990
|
|
|
1983
1991
|
### Patch Changes
|
|
1984
1992
|
|
|
1985
|
-
- [`9383d1ef58fe1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9383d1ef58fe1) -
|
|
1986
|
-
Cleanup feature gate cc_mention_ssr_placeholder
|
|
1987
1993
|
- Updated dependencies
|
|
1988
1994
|
|
|
1989
1995
|
## 107.32.0
|
|
@@ -43,12 +43,12 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
43
43
|
},
|
|
44
44
|
permissionDeniedHeading: {
|
|
45
45
|
id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
|
|
46
|
-
defaultMessage: "
|
|
46
|
+
defaultMessage: "Request access to view synced block",
|
|
47
47
|
description: 'Heading for error state where the user does not have permission to view the synced block'
|
|
48
48
|
},
|
|
49
49
|
permissionDeniedDescription: {
|
|
50
50
|
id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
|
|
51
|
-
defaultMessage: "
|
|
51
|
+
defaultMessage: "You don't have access to view the source content of this synced block.",
|
|
52
52
|
description: 'Description for error state where the user does not have permission to view the synced block'
|
|
53
53
|
},
|
|
54
54
|
permissionDeniedAltText: {
|
|
@@ -163,14 +163,9 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
163
163
|
},
|
|
164
164
|
generalErrorDescription: {
|
|
165
165
|
id: 'fabric.editor.syncedBlockGeneralErrorDescription',
|
|
166
|
-
defaultMessage: '
|
|
166
|
+
defaultMessage: "We're unable to display this content at the moment.",
|
|
167
167
|
description: 'Description for general error state of the synced block'
|
|
168
168
|
},
|
|
169
|
-
notFoundDescription: {
|
|
170
|
-
id: 'fabric.editor.syncedBlockNotFoundDescription',
|
|
171
|
-
defaultMessage: 'We’re unable to load this synced block.',
|
|
172
|
-
description: 'Description for error state where the synced block cannot be found or no longer exists'
|
|
173
|
-
},
|
|
174
169
|
notFoundAltText: {
|
|
175
170
|
id: 'fabric.editor.syncedBlockNotFoundIconAltText',
|
|
176
171
|
defaultMessage: 'Synced block not found.',
|
|
@@ -178,7 +173,12 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
178
173
|
},
|
|
179
174
|
retryButton: {
|
|
180
175
|
id: 'fabric.editor.retrySyncedBlock',
|
|
181
|
-
defaultMessage: '
|
|
176
|
+
defaultMessage: 'Try again',
|
|
182
177
|
description: 'Label for button which retries loading the synced block'
|
|
178
|
+
},
|
|
179
|
+
offlineError: {
|
|
180
|
+
id: 'fabric.editor.error.description.offline',
|
|
181
|
+
defaultMessage: "We're unable to display this content at the moment because you are offline.",
|
|
182
|
+
description: 'Error message which is shown over sync block when the editor is offline'
|
|
183
183
|
}
|
|
184
184
|
});
|
|
@@ -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 = "110.41.
|
|
22
|
+
var packageVersion = "110.41.5";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -8,7 +8,8 @@ var prefix = 'ak-editor-sync-block';
|
|
|
8
8
|
var SyncBlockSharedCssClassName = exports.SyncBlockSharedCssClassName = {
|
|
9
9
|
prefix: prefix,
|
|
10
10
|
renderer: "".concat(prefix, "__renderer"),
|
|
11
|
-
error: "".concat(prefix, "__error_state")
|
|
11
|
+
error: "".concat(prefix, "__error_state"),
|
|
12
|
+
loading: "".concat(prefix, "__loading_state")
|
|
12
13
|
};
|
|
13
14
|
var bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
14
15
|
var BodiedSyncBlockSharedCssClassName = exports.BodiedSyncBlockSharedCssClassName = {
|
|
@@ -23,24 +23,14 @@ var transformSyncBlockNode = function transformSyncBlockNode(node, schema, isFro
|
|
|
23
23
|
});
|
|
24
24
|
return schema.nodes.syncBlock.create(newAttrs, null, (0, _toConsumableArray2.default)(node.marks));
|
|
25
25
|
};
|
|
26
|
-
var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node,
|
|
26
|
+
var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, isFromEditor) {
|
|
27
27
|
// if copying from renderer, flatten out the content and remove the bodied sync block
|
|
28
28
|
if (!isFromEditor) {
|
|
29
29
|
return node.content;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
var newAttrs = {
|
|
35
|
-
resourceId: node.attrs.resourceId,
|
|
36
|
-
localId: _adfSchema.uuid.generate()
|
|
37
|
-
};
|
|
38
|
-
var newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(function (mark) {
|
|
39
|
-
var _schema$nodes$syncBlo;
|
|
40
|
-
return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
|
|
41
|
-
}) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
|
|
42
|
-
|
|
43
|
-
return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
|
|
32
|
+
// this is not possible.
|
|
33
|
+
return node;
|
|
44
34
|
};
|
|
45
35
|
|
|
46
36
|
/**
|
|
@@ -53,7 +43,7 @@ var transformSyncBlock = exports.transformSyncBlock = function transformSyncBloc
|
|
|
53
43
|
if (node.type === schema.nodes.syncBlock) {
|
|
54
44
|
return transformSyncBlockNode(node, schema, isFromEditor);
|
|
55
45
|
} else if (node.type === schema.nodes.bodiedSyncBlock) {
|
|
56
|
-
return transformBodiedSyncBlockNode(node,
|
|
46
|
+
return transformBodiedSyncBlockNode(node, isFromEditor);
|
|
57
47
|
}
|
|
58
48
|
return node;
|
|
59
49
|
});
|
|
@@ -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 = "110.41.
|
|
27
|
+
var packageVersion = "110.41.5";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -37,12 +37,12 @@ export const syncBlockMessages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
permissionDeniedHeading: {
|
|
39
39
|
id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
|
|
40
|
-
defaultMessage: "
|
|
40
|
+
defaultMessage: "Request access to view synced block",
|
|
41
41
|
description: 'Heading for error state where the user does not have permission to view the synced block'
|
|
42
42
|
},
|
|
43
43
|
permissionDeniedDescription: {
|
|
44
44
|
id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
|
|
45
|
-
defaultMessage: "
|
|
45
|
+
defaultMessage: "You don't have access to view the source content of this synced block.",
|
|
46
46
|
description: 'Description for error state where the user does not have permission to view the synced block'
|
|
47
47
|
},
|
|
48
48
|
permissionDeniedAltText: {
|
|
@@ -157,14 +157,9 @@ export const syncBlockMessages = defineMessages({
|
|
|
157
157
|
},
|
|
158
158
|
generalErrorDescription: {
|
|
159
159
|
id: 'fabric.editor.syncedBlockGeneralErrorDescription',
|
|
160
|
-
defaultMessage: '
|
|
160
|
+
defaultMessage: `We're unable to display this content at the moment.`,
|
|
161
161
|
description: 'Description for general error state of the synced block'
|
|
162
162
|
},
|
|
163
|
-
notFoundDescription: {
|
|
164
|
-
id: 'fabric.editor.syncedBlockNotFoundDescription',
|
|
165
|
-
defaultMessage: 'We’re unable to load this synced block.',
|
|
166
|
-
description: 'Description for error state where the synced block cannot be found or no longer exists'
|
|
167
|
-
},
|
|
168
163
|
notFoundAltText: {
|
|
169
164
|
id: 'fabric.editor.syncedBlockNotFoundIconAltText',
|
|
170
165
|
defaultMessage: 'Synced block not found.',
|
|
@@ -172,7 +167,12 @@ export const syncBlockMessages = defineMessages({
|
|
|
172
167
|
},
|
|
173
168
|
retryButton: {
|
|
174
169
|
id: 'fabric.editor.retrySyncedBlock',
|
|
175
|
-
defaultMessage: '
|
|
170
|
+
defaultMessage: 'Try again',
|
|
176
171
|
description: 'Label for button which retries loading the synced block'
|
|
172
|
+
},
|
|
173
|
+
offlineError: {
|
|
174
|
+
id: 'fabric.editor.error.description.offline',
|
|
175
|
+
defaultMessage: `We're unable to display this content at the moment because you are offline.`,
|
|
176
|
+
description: 'Error message which is shown over sync block when the editor is offline'
|
|
177
177
|
}
|
|
178
178
|
});
|
|
@@ -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 = "110.41.
|
|
7
|
+
const packageVersion = "110.41.5";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -2,7 +2,8 @@ const prefix = 'ak-editor-sync-block';
|
|
|
2
2
|
export const SyncBlockSharedCssClassName = {
|
|
3
3
|
prefix,
|
|
4
4
|
renderer: `${prefix}__renderer`,
|
|
5
|
-
error: `${prefix}__error_state
|
|
5
|
+
error: `${prefix}__error_state`,
|
|
6
|
+
loading: `${prefix}__loading_state`
|
|
6
7
|
};
|
|
7
8
|
const bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
8
9
|
export const BodiedSyncBlockSharedCssClassName = {
|
|
@@ -13,24 +13,14 @@ const transformSyncBlockNode = (node, schema, isFromEditor) => {
|
|
|
13
13
|
};
|
|
14
14
|
return schema.nodes.syncBlock.create(newAttrs, null, [...node.marks]);
|
|
15
15
|
};
|
|
16
|
-
const transformBodiedSyncBlockNode = (node,
|
|
16
|
+
const transformBodiedSyncBlockNode = (node, isFromEditor) => {
|
|
17
17
|
// if copying from renderer, flatten out the content and remove the bodied sync block
|
|
18
18
|
if (!isFromEditor) {
|
|
19
19
|
return node.content;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
const newAttrs = {
|
|
25
|
-
resourceId: node.attrs.resourceId,
|
|
26
|
-
localId: uuid.generate()
|
|
27
|
-
};
|
|
28
|
-
const newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(mark => {
|
|
29
|
-
var _schema$nodes$syncBlo;
|
|
30
|
-
return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
|
|
31
|
-
}) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
|
|
32
|
-
|
|
33
|
-
return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
|
|
22
|
+
// this is not possible.
|
|
23
|
+
return node;
|
|
34
24
|
};
|
|
35
25
|
|
|
36
26
|
/**
|
|
@@ -43,7 +33,7 @@ export const transformSyncBlock = (slice, schema, pasteSource) => {
|
|
|
43
33
|
if (node.type === schema.nodes.syncBlock) {
|
|
44
34
|
return transformSyncBlockNode(node, schema, isFromEditor);
|
|
45
35
|
} else if (node.type === schema.nodes.bodiedSyncBlock) {
|
|
46
|
-
return transformBodiedSyncBlockNode(node,
|
|
36
|
+
return transformBodiedSyncBlockNode(node, isFromEditor);
|
|
47
37
|
}
|
|
48
38
|
return node;
|
|
49
39
|
});
|
|
@@ -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 = "110.41.
|
|
17
|
+
const packageVersion = "110.41.5";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -37,12 +37,12 @@ export var syncBlockMessages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
permissionDeniedHeading: {
|
|
39
39
|
id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
|
|
40
|
-
defaultMessage: "
|
|
40
|
+
defaultMessage: "Request access to view synced block",
|
|
41
41
|
description: 'Heading for error state where the user does not have permission to view the synced block'
|
|
42
42
|
},
|
|
43
43
|
permissionDeniedDescription: {
|
|
44
44
|
id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
|
|
45
|
-
defaultMessage: "
|
|
45
|
+
defaultMessage: "You don't have access to view the source content of this synced block.",
|
|
46
46
|
description: 'Description for error state where the user does not have permission to view the synced block'
|
|
47
47
|
},
|
|
48
48
|
permissionDeniedAltText: {
|
|
@@ -157,14 +157,9 @@ export var syncBlockMessages = defineMessages({
|
|
|
157
157
|
},
|
|
158
158
|
generalErrorDescription: {
|
|
159
159
|
id: 'fabric.editor.syncedBlockGeneralErrorDescription',
|
|
160
|
-
defaultMessage: '
|
|
160
|
+
defaultMessage: "We're unable to display this content at the moment.",
|
|
161
161
|
description: 'Description for general error state of the synced block'
|
|
162
162
|
},
|
|
163
|
-
notFoundDescription: {
|
|
164
|
-
id: 'fabric.editor.syncedBlockNotFoundDescription',
|
|
165
|
-
defaultMessage: 'We’re unable to load this synced block.',
|
|
166
|
-
description: 'Description for error state where the synced block cannot be found or no longer exists'
|
|
167
|
-
},
|
|
168
163
|
notFoundAltText: {
|
|
169
164
|
id: 'fabric.editor.syncedBlockNotFoundIconAltText',
|
|
170
165
|
defaultMessage: 'Synced block not found.',
|
|
@@ -172,7 +167,12 @@ export var syncBlockMessages = defineMessages({
|
|
|
172
167
|
},
|
|
173
168
|
retryButton: {
|
|
174
169
|
id: 'fabric.editor.retrySyncedBlock',
|
|
175
|
-
defaultMessage: '
|
|
170
|
+
defaultMessage: 'Try again',
|
|
176
171
|
description: 'Label for button which retries loading the synced block'
|
|
172
|
+
},
|
|
173
|
+
offlineError: {
|
|
174
|
+
id: 'fabric.editor.error.description.offline',
|
|
175
|
+
defaultMessage: "We're unable to display this content at the moment because you are offline.",
|
|
176
|
+
description: 'Error message which is shown over sync block when the editor is offline'
|
|
177
177
|
}
|
|
178
178
|
});
|
|
@@ -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 = "110.41.
|
|
13
|
+
var packageVersion = "110.41.5";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -2,7 +2,8 @@ var prefix = 'ak-editor-sync-block';
|
|
|
2
2
|
export var SyncBlockSharedCssClassName = {
|
|
3
3
|
prefix: prefix,
|
|
4
4
|
renderer: "".concat(prefix, "__renderer"),
|
|
5
|
-
error: "".concat(prefix, "__error_state")
|
|
5
|
+
error: "".concat(prefix, "__error_state"),
|
|
6
|
+
loading: "".concat(prefix, "__loading_state")
|
|
6
7
|
};
|
|
7
8
|
var bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
8
9
|
export var BodiedSyncBlockSharedCssClassName = {
|
|
@@ -16,24 +16,14 @@ var transformSyncBlockNode = function transformSyncBlockNode(node, schema, isFro
|
|
|
16
16
|
});
|
|
17
17
|
return schema.nodes.syncBlock.create(newAttrs, null, _toConsumableArray(node.marks));
|
|
18
18
|
};
|
|
19
|
-
var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node,
|
|
19
|
+
var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, isFromEditor) {
|
|
20
20
|
// if copying from renderer, flatten out the content and remove the bodied sync block
|
|
21
21
|
if (!isFromEditor) {
|
|
22
22
|
return node.content;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
//
|
|
26
|
-
|
|
27
|
-
var newAttrs = {
|
|
28
|
-
resourceId: node.attrs.resourceId,
|
|
29
|
-
localId: uuid.generate()
|
|
30
|
-
};
|
|
31
|
-
var newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(function (mark) {
|
|
32
|
-
var _schema$nodes$syncBlo;
|
|
33
|
-
return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
|
|
34
|
-
}) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
|
|
35
|
-
|
|
36
|
-
return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
|
|
25
|
+
// this is not possible.
|
|
26
|
+
return node;
|
|
37
27
|
};
|
|
38
28
|
|
|
39
29
|
/**
|
|
@@ -46,7 +36,7 @@ export var transformSyncBlock = function transformSyncBlock(slice, schema, paste
|
|
|
46
36
|
if (node.type === schema.nodes.syncBlock) {
|
|
47
37
|
return transformSyncBlockNode(node, schema, isFromEditor);
|
|
48
38
|
} else if (node.type === schema.nodes.bodiedSyncBlock) {
|
|
49
|
-
return transformBodiedSyncBlockNode(node,
|
|
39
|
+
return transformBodiedSyncBlockNode(node, isFromEditor);
|
|
50
40
|
}
|
|
51
41
|
return node;
|
|
52
42
|
});
|
|
@@ -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 = "110.41.
|
|
24
|
+
var packageVersion = "110.41.5";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -159,17 +159,17 @@ export declare const syncBlockMessages: {
|
|
|
159
159
|
defaultMessage: string;
|
|
160
160
|
description: string;
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
notFoundAltText: {
|
|
163
163
|
id: string;
|
|
164
164
|
defaultMessage: string;
|
|
165
165
|
description: string;
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
retryButton: {
|
|
168
168
|
id: string;
|
|
169
169
|
defaultMessage: string;
|
|
170
170
|
description: string;
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
offlineError: {
|
|
173
173
|
id: string;
|
|
174
174
|
defaultMessage: string;
|
|
175
175
|
description: string;
|
|
@@ -159,17 +159,17 @@ export declare const syncBlockMessages: {
|
|
|
159
159
|
defaultMessage: string;
|
|
160
160
|
description: string;
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
notFoundAltText: {
|
|
163
163
|
id: string;
|
|
164
164
|
defaultMessage: string;
|
|
165
165
|
description: string;
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
retryButton: {
|
|
168
168
|
id: string;
|
|
169
169
|
defaultMessage: string;
|
|
170
170
|
description: string;
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
offlineError: {
|
|
173
173
|
id: string;
|
|
174
174
|
defaultMessage: string;
|
|
175
175
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.41.
|
|
3
|
+
"version": "110.41.6",
|
|
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/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/link-datasource": "^4.30.0",
|
|
57
57
|
"@atlaskit/link-picker": "^4.1.0",
|
|
58
58
|
"@atlaskit/media-card": "^79.9.0",
|
|
59
|
-
"@atlaskit/media-client": "^35.
|
|
59
|
+
"@atlaskit/media-client": "^35.7.0",
|
|
60
60
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
61
61
|
"@atlaskit/media-common": "^12.3.0",
|
|
62
62
|
"@atlaskit/media-file-preview": "^0.15.0",
|