@atlaskit/editor-plugin-show-diff 5.0.8 → 5.0.9
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 +7 -0
- package/dist/cjs/pm-plugins/decorations/utils/wrapBlockNodeView.js +14 -28
- package/dist/es2019/pm-plugins/decorations/utils/wrapBlockNodeView.js +15 -26
- package/dist/esm/pm-plugins/decorations/utils/wrapBlockNodeView.js +16 -29
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 5.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`db37927f35395`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db37927f35395) -
|
|
8
|
+
Cleanup platform_editor_ai_aifc_patch_ga_blockers flag.
|
|
9
|
+
|
|
3
10
|
## 5.0.8
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.wrapBlockNodeView = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
7
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
8
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
9
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
10
|
var _standard = require("../colorSchemes/standard");
|
|
14
11
|
var _traditional = require("../colorSchemes/traditional");
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
12
|
var lozengeStyle = (0, _lazyNodeView.convertToInlineCss)({
|
|
18
13
|
display: 'inline-flex',
|
|
19
14
|
boxSizing: 'border-box',
|
|
@@ -44,13 +39,13 @@ var getDeletedStyleNode = function getDeletedStyleNode(nodeName, colorScheme) {
|
|
|
44
39
|
var isTraditional = colorScheme === 'traditional';
|
|
45
40
|
switch (nodeName) {
|
|
46
41
|
case 'blockquote':
|
|
47
|
-
return
|
|
42
|
+
return isTraditional ? _traditional.deletedTraditionalStyleQuoteNode : _standard.deletedStyleQuoteNodeWithLozenge;
|
|
48
43
|
case 'expand':
|
|
49
44
|
case 'decisionList':
|
|
50
|
-
return isTraditional
|
|
45
|
+
return isTraditional ? _traditional.deletedTraditionalBlockOutline : _standard.deletedBlockOutline;
|
|
51
46
|
case 'panel':
|
|
52
47
|
case 'codeBlock':
|
|
53
|
-
return isTraditional
|
|
48
|
+
return isTraditional ? _traditional.deletedTraditionalBlockOutlineRounded : _standard.deletedBlockOutlineRounded;
|
|
54
49
|
default:
|
|
55
50
|
return undefined;
|
|
56
51
|
}
|
|
@@ -65,7 +60,7 @@ var shouldShowRemovedLozenge = function shouldShowRemovedLozenge(nodeName) {
|
|
|
65
60
|
return true;
|
|
66
61
|
case 'embedCard':
|
|
67
62
|
case 'blockquote':
|
|
68
|
-
return
|
|
63
|
+
return true;
|
|
69
64
|
default:
|
|
70
65
|
return false;
|
|
71
66
|
}
|
|
@@ -76,7 +71,7 @@ var shouldAddShowDiffDeletedNodeClass = function shouldAddShowDiffDeletedNodeCla
|
|
|
76
71
|
case 'embedCard':
|
|
77
72
|
return true;
|
|
78
73
|
case 'blockquote':
|
|
79
|
-
return
|
|
74
|
+
return true;
|
|
80
75
|
default:
|
|
81
76
|
return false;
|
|
82
77
|
}
|
|
@@ -87,31 +82,22 @@ var shouldAddShowDiffDeletedNodeClass = function shouldAddShowDiffDeletedNodeCla
|
|
|
87
82
|
* to preserve natural block-level margins
|
|
88
83
|
*/
|
|
89
84
|
var shouldApplyStylesDirectly = function shouldApplyStylesDirectly(nodeName) {
|
|
90
|
-
return nodeName === 'heading'
|
|
85
|
+
return nodeName === 'heading';
|
|
91
86
|
};
|
|
92
87
|
|
|
93
88
|
/**
|
|
94
89
|
* Creates a "Removed" lozenge to be displayed at the top right corner of deleted block nodes
|
|
95
90
|
*/
|
|
96
|
-
var createRemovedLozenge = function createRemovedLozenge(intl
|
|
91
|
+
var createRemovedLozenge = function createRemovedLozenge(intl) {
|
|
97
92
|
var container = document.createElement('span');
|
|
98
|
-
var
|
|
99
|
-
if (['expand', 'decisionList'].includes(nodeName || '')) {
|
|
100
|
-
borderTopRightRadius = "var(--ds-radius-small, 4px)";
|
|
101
|
-
} else if (['panel', 'codeBlock', 'mediaSingle'].includes(nodeName || '')) {
|
|
102
|
-
borderTopRightRadius = "calc(".concat("var(--ds-radius-xsmall, 2px)", " + 1px)");
|
|
103
|
-
}
|
|
104
|
-
var containerStyle = (0, _lazyNodeView.convertToInlineCss)(_objectSpread({
|
|
93
|
+
var containerStyle = (0, _lazyNodeView.convertToInlineCss)({
|
|
105
94
|
position: 'absolute',
|
|
106
|
-
top:
|
|
107
|
-
right:
|
|
95
|
+
top: "var(--ds-space-075, 6px)",
|
|
96
|
+
right: "var(--ds-space-075, 6px)",
|
|
108
97
|
zIndex: 2,
|
|
109
98
|
pointerEvents: 'none',
|
|
110
99
|
display: 'flex'
|
|
111
|
-
}
|
|
112
|
-
overflow: 'hidden',
|
|
113
|
-
borderTopRightRadius: borderTopRightRadius
|
|
114
|
-
} : {}));
|
|
100
|
+
});
|
|
115
101
|
container.setAttribute('style', containerStyle);
|
|
116
102
|
container.setAttribute('data-testid', 'show-diff-removed-lozenge');
|
|
117
103
|
|
|
@@ -231,7 +217,7 @@ var handleMediaSingleWithLozenge = function handleMediaSingleWithLozenge(_ref4)
|
|
|
231
217
|
|
|
232
218
|
// Add deleted node class if needed
|
|
233
219
|
if (shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
234
|
-
var showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
220
|
+
var showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
235
221
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
236
222
|
}
|
|
237
223
|
dom.append(nodeView);
|
|
@@ -256,7 +242,7 @@ var wrapBlockNode = function wrapBlockNode(_ref5) {
|
|
|
256
242
|
targetNode: targetNode,
|
|
257
243
|
lozenge: lozenge,
|
|
258
244
|
colorScheme: colorScheme
|
|
259
|
-
})
|
|
245
|
+
})) {
|
|
260
246
|
return;
|
|
261
247
|
}
|
|
262
248
|
if (handleMediaSingleWithLozenge({
|
|
@@ -277,7 +263,7 @@ var wrapBlockNode = function wrapBlockNode(_ref5) {
|
|
|
277
263
|
});
|
|
278
264
|
blockWrapper.append(contentWrapper);
|
|
279
265
|
if (nodeView instanceof HTMLElement && shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
280
|
-
var showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
266
|
+
var showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
281
267
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
282
268
|
}
|
|
283
269
|
dom.append(blockWrapper);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
2
|
import { trackChangesMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { deletedBlockOutline, deletedBlockOutlineRounded, deletedContentStyle, deletedContentStyleActive, deletedContentStyleNew, deletedContentStyleNewActive, deletedStyleQuoteNodeWithLozenge } from '../colorSchemes/standard';
|
|
5
|
+
import { deletedTraditionalBlockOutline, deletedTraditionalBlockOutlineRounded, deletedTraditionalContentStyle, deletedTraditionalStyleQuoteNode } from '../colorSchemes/traditional';
|
|
7
6
|
const lozengeStyle = convertToInlineCss({
|
|
8
7
|
display: 'inline-flex',
|
|
9
8
|
boxSizing: 'border-box',
|
|
@@ -33,13 +32,13 @@ const getDeletedStyleNode = (nodeName, colorScheme) => {
|
|
|
33
32
|
const isTraditional = colorScheme === 'traditional';
|
|
34
33
|
switch (nodeName) {
|
|
35
34
|
case 'blockquote':
|
|
36
|
-
return
|
|
35
|
+
return isTraditional ? deletedTraditionalStyleQuoteNode : deletedStyleQuoteNodeWithLozenge;
|
|
37
36
|
case 'expand':
|
|
38
37
|
case 'decisionList':
|
|
39
|
-
return isTraditional
|
|
38
|
+
return isTraditional ? deletedTraditionalBlockOutline : deletedBlockOutline;
|
|
40
39
|
case 'panel':
|
|
41
40
|
case 'codeBlock':
|
|
42
|
-
return isTraditional
|
|
41
|
+
return isTraditional ? deletedTraditionalBlockOutlineRounded : deletedBlockOutlineRounded;
|
|
43
42
|
default:
|
|
44
43
|
return undefined;
|
|
45
44
|
}
|
|
@@ -54,7 +53,7 @@ const shouldShowRemovedLozenge = nodeName => {
|
|
|
54
53
|
return true;
|
|
55
54
|
case 'embedCard':
|
|
56
55
|
case 'blockquote':
|
|
57
|
-
return
|
|
56
|
+
return true;
|
|
58
57
|
default:
|
|
59
58
|
return false;
|
|
60
59
|
}
|
|
@@ -65,7 +64,7 @@ const shouldAddShowDiffDeletedNodeClass = nodeName => {
|
|
|
65
64
|
case 'embedCard':
|
|
66
65
|
return true;
|
|
67
66
|
case 'blockquote':
|
|
68
|
-
return
|
|
67
|
+
return true;
|
|
69
68
|
default:
|
|
70
69
|
return false;
|
|
71
70
|
}
|
|
@@ -76,31 +75,21 @@ const shouldAddShowDiffDeletedNodeClass = nodeName => {
|
|
|
76
75
|
* to preserve natural block-level margins
|
|
77
76
|
*/
|
|
78
77
|
const shouldApplyStylesDirectly = nodeName => {
|
|
79
|
-
return nodeName === 'heading'
|
|
78
|
+
return nodeName === 'heading';
|
|
80
79
|
};
|
|
81
80
|
|
|
82
81
|
/**
|
|
83
82
|
* Creates a "Removed" lozenge to be displayed at the top right corner of deleted block nodes
|
|
84
83
|
*/
|
|
85
|
-
const createRemovedLozenge =
|
|
84
|
+
const createRemovedLozenge = intl => {
|
|
86
85
|
const container = document.createElement('span');
|
|
87
|
-
let borderTopRightRadius;
|
|
88
|
-
if (['expand', 'decisionList'].includes(nodeName || '')) {
|
|
89
|
-
borderTopRightRadius = "var(--ds-radius-small, 4px)";
|
|
90
|
-
} else if (['panel', 'codeBlock', 'mediaSingle'].includes(nodeName || '')) {
|
|
91
|
-
borderTopRightRadius = `calc(${"var(--ds-radius-xsmall, 2px)"} + 1px)`;
|
|
92
|
-
}
|
|
93
86
|
const containerStyle = convertToInlineCss({
|
|
94
87
|
position: 'absolute',
|
|
95
|
-
top:
|
|
96
|
-
right:
|
|
88
|
+
top: "var(--ds-space-075, 6px)",
|
|
89
|
+
right: "var(--ds-space-075, 6px)",
|
|
97
90
|
zIndex: 2,
|
|
98
91
|
pointerEvents: 'none',
|
|
99
|
-
display: 'flex'
|
|
100
|
-
...(!fg('platform_editor_ai_aifc_patch_ga_blockers') ? {
|
|
101
|
-
overflow: 'hidden',
|
|
102
|
-
borderTopRightRadius
|
|
103
|
-
} : {})
|
|
92
|
+
display: 'flex'
|
|
104
93
|
});
|
|
105
94
|
container.setAttribute('style', containerStyle);
|
|
106
95
|
container.setAttribute('data-testid', 'show-diff-removed-lozenge');
|
|
@@ -225,7 +214,7 @@ const handleMediaSingleWithLozenge = ({
|
|
|
225
214
|
|
|
226
215
|
// Add deleted node class if needed
|
|
227
216
|
if (shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
228
|
-
const showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
217
|
+
const showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
229
218
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
230
219
|
}
|
|
231
220
|
dom.append(nodeView);
|
|
@@ -251,7 +240,7 @@ const wrapBlockNode = ({
|
|
|
251
240
|
targetNode,
|
|
252
241
|
lozenge,
|
|
253
242
|
colorScheme
|
|
254
|
-
})
|
|
243
|
+
})) {
|
|
255
244
|
return;
|
|
256
245
|
}
|
|
257
246
|
if (handleMediaSingleWithLozenge({
|
|
@@ -272,7 +261,7 @@ const wrapBlockNode = ({
|
|
|
272
261
|
});
|
|
273
262
|
blockWrapper.append(contentWrapper);
|
|
274
263
|
if (nodeView instanceof HTMLElement && shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
275
|
-
const showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
264
|
+
const showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
276
265
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
277
266
|
}
|
|
278
267
|
dom.append(blockWrapper);
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
5
2
|
import { trackChangesMessages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { deletedBlockOutline, deletedBlockOutlineRounded, deletedContentStyle, deletedContentStyleActive, deletedContentStyleNew, deletedContentStyleNewActive, deletedStyleQuoteNodeWithLozenge } from '../colorSchemes/standard';
|
|
5
|
+
import { deletedTraditionalBlockOutline, deletedTraditionalBlockOutlineRounded, deletedTraditionalContentStyle, deletedTraditionalStyleQuoteNode } from '../colorSchemes/traditional';
|
|
10
6
|
var lozengeStyle = convertToInlineCss({
|
|
11
7
|
display: 'inline-flex',
|
|
12
8
|
boxSizing: 'border-box',
|
|
@@ -37,13 +33,13 @@ var getDeletedStyleNode = function getDeletedStyleNode(nodeName, colorScheme) {
|
|
|
37
33
|
var isTraditional = colorScheme === 'traditional';
|
|
38
34
|
switch (nodeName) {
|
|
39
35
|
case 'blockquote':
|
|
40
|
-
return
|
|
36
|
+
return isTraditional ? deletedTraditionalStyleQuoteNode : deletedStyleQuoteNodeWithLozenge;
|
|
41
37
|
case 'expand':
|
|
42
38
|
case 'decisionList':
|
|
43
|
-
return isTraditional
|
|
39
|
+
return isTraditional ? deletedTraditionalBlockOutline : deletedBlockOutline;
|
|
44
40
|
case 'panel':
|
|
45
41
|
case 'codeBlock':
|
|
46
|
-
return isTraditional
|
|
42
|
+
return isTraditional ? deletedTraditionalBlockOutlineRounded : deletedBlockOutlineRounded;
|
|
47
43
|
default:
|
|
48
44
|
return undefined;
|
|
49
45
|
}
|
|
@@ -58,7 +54,7 @@ var shouldShowRemovedLozenge = function shouldShowRemovedLozenge(nodeName) {
|
|
|
58
54
|
return true;
|
|
59
55
|
case 'embedCard':
|
|
60
56
|
case 'blockquote':
|
|
61
|
-
return
|
|
57
|
+
return true;
|
|
62
58
|
default:
|
|
63
59
|
return false;
|
|
64
60
|
}
|
|
@@ -69,7 +65,7 @@ var shouldAddShowDiffDeletedNodeClass = function shouldAddShowDiffDeletedNodeCla
|
|
|
69
65
|
case 'embedCard':
|
|
70
66
|
return true;
|
|
71
67
|
case 'blockquote':
|
|
72
|
-
return
|
|
68
|
+
return true;
|
|
73
69
|
default:
|
|
74
70
|
return false;
|
|
75
71
|
}
|
|
@@ -80,31 +76,22 @@ var shouldAddShowDiffDeletedNodeClass = function shouldAddShowDiffDeletedNodeCla
|
|
|
80
76
|
* to preserve natural block-level margins
|
|
81
77
|
*/
|
|
82
78
|
var shouldApplyStylesDirectly = function shouldApplyStylesDirectly(nodeName) {
|
|
83
|
-
return nodeName === 'heading'
|
|
79
|
+
return nodeName === 'heading';
|
|
84
80
|
};
|
|
85
81
|
|
|
86
82
|
/**
|
|
87
83
|
* Creates a "Removed" lozenge to be displayed at the top right corner of deleted block nodes
|
|
88
84
|
*/
|
|
89
|
-
var createRemovedLozenge = function createRemovedLozenge(intl
|
|
85
|
+
var createRemovedLozenge = function createRemovedLozenge(intl) {
|
|
90
86
|
var container = document.createElement('span');
|
|
91
|
-
var
|
|
92
|
-
if (['expand', 'decisionList'].includes(nodeName || '')) {
|
|
93
|
-
borderTopRightRadius = "var(--ds-radius-small, 4px)";
|
|
94
|
-
} else if (['panel', 'codeBlock', 'mediaSingle'].includes(nodeName || '')) {
|
|
95
|
-
borderTopRightRadius = "calc(".concat("var(--ds-radius-xsmall, 2px)", " + 1px)");
|
|
96
|
-
}
|
|
97
|
-
var containerStyle = convertToInlineCss(_objectSpread({
|
|
87
|
+
var containerStyle = convertToInlineCss({
|
|
98
88
|
position: 'absolute',
|
|
99
|
-
top:
|
|
100
|
-
right:
|
|
89
|
+
top: "var(--ds-space-075, 6px)",
|
|
90
|
+
right: "var(--ds-space-075, 6px)",
|
|
101
91
|
zIndex: 2,
|
|
102
92
|
pointerEvents: 'none',
|
|
103
93
|
display: 'flex'
|
|
104
|
-
}
|
|
105
|
-
overflow: 'hidden',
|
|
106
|
-
borderTopRightRadius: borderTopRightRadius
|
|
107
|
-
} : {}));
|
|
94
|
+
});
|
|
108
95
|
container.setAttribute('style', containerStyle);
|
|
109
96
|
container.setAttribute('data-testid', 'show-diff-removed-lozenge');
|
|
110
97
|
|
|
@@ -224,7 +211,7 @@ var handleMediaSingleWithLozenge = function handleMediaSingleWithLozenge(_ref4)
|
|
|
224
211
|
|
|
225
212
|
// Add deleted node class if needed
|
|
226
213
|
if (shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
227
|
-
var showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
214
|
+
var showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
228
215
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
229
216
|
}
|
|
230
217
|
dom.append(nodeView);
|
|
@@ -249,7 +236,7 @@ var wrapBlockNode = function wrapBlockNode(_ref5) {
|
|
|
249
236
|
targetNode: targetNode,
|
|
250
237
|
lozenge: lozenge,
|
|
251
238
|
colorScheme: colorScheme
|
|
252
|
-
})
|
|
239
|
+
})) {
|
|
253
240
|
return;
|
|
254
241
|
}
|
|
255
242
|
if (handleMediaSingleWithLozenge({
|
|
@@ -270,7 +257,7 @@ var wrapBlockNode = function wrapBlockNode(_ref5) {
|
|
|
270
257
|
});
|
|
271
258
|
blockWrapper.append(contentWrapper);
|
|
272
259
|
if (nodeView instanceof HTMLElement && shouldAddShowDiffDeletedNodeClass(targetNode.type.name)) {
|
|
273
|
-
var showDiffDeletedNodeClass = colorScheme === 'traditional'
|
|
260
|
+
var showDiffDeletedNodeClass = colorScheme === 'traditional' ? 'show-diff-deleted-node-traditional' : 'show-diff-deleted-node';
|
|
274
261
|
nodeView.classList.add(showDiffDeletedNodeClass);
|
|
275
262
|
}
|
|
276
263
|
dom.append(blockWrapper);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { showDiffPlugin } from './showDiffPlugin';
|
|
2
|
-
export type {
|
|
2
|
+
export type { DiffParams, PMDiffParams, ShowDiffPlugin } from './showDiffPluginType';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { showDiffPlugin } from './showDiffPlugin';
|
|
2
|
-
export type {
|
|
2
|
+
export type { DiffParams, PMDiffParams, ShowDiffPlugin } from './showDiffPluginType';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.9",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -86,9 +86,6 @@
|
|
|
86
86
|
"platform-feature-flags": {
|
|
87
87
|
"platform_editor_show_diff_scroll_navigation": {
|
|
88
88
|
"type": "boolean"
|
|
89
|
-
},
|
|
90
|
-
"platform_editor_ai_aifc_patch_ga_blockers": {
|
|
91
|
-
"type": "boolean"
|
|
92
89
|
}
|
|
93
90
|
}
|
|
94
91
|
}
|