@atlaskit/editor-plugin-show-diff 14.4.2 → 14.5.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 14.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a47ac4819a984`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a47ac4819a984) -
|
|
8
|
+
Attribution colouring now applies to single-actor diffs. Previously colouring required two or more
|
|
9
|
+
distinct actors to be worth distinguishing; it now surfaces the participant colour as soon as
|
|
10
|
+
there is an identifiable actor, while still respecting the attribution-colour gates.
|
|
11
|
+
|
|
12
|
+
## 14.4.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 14.4.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -98,10 +98,13 @@ var isAttributionColoringEnabled = exports.isAttributionColoringEnabled = functi
|
|
|
98
98
|
if (!areAttributionColorGatesEnabled() || !(stepAttributions !== null && stepAttributions !== void 0 && stepAttributions.length)) {
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
|
|
102
|
+
// Colour whenever a step names an identifiable actor; a single actor still surfaces its
|
|
103
|
+
// participant colour. Only bail when nothing is attributable, so the attributed changeset is
|
|
104
|
+
// not built for a diff with no identities to colour.
|
|
105
|
+
return stepAttributions.some(function (attribution) {
|
|
106
|
+
return getAttributionKey(attribution) !== undefined;
|
|
107
|
+
});
|
|
105
108
|
};
|
|
106
109
|
|
|
107
110
|
/**
|
|
@@ -75,8 +75,11 @@ export const isAttributionColoringEnabled = stepAttributions => {
|
|
|
75
75
|
if (!areAttributionColorGatesEnabled() || !(stepAttributions !== null && stepAttributions !== void 0 && stepAttributions.length)) {
|
|
76
76
|
return false;
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
|
|
79
|
+
// Colour whenever a step names an identifiable actor; a single actor still surfaces its
|
|
80
|
+
// participant colour. Only bail when nothing is attributable, so the attributed changeset is
|
|
81
|
+
// not built for a diff with no identities to colour.
|
|
82
|
+
return stepAttributions.some(attribution => getAttributionKey(attribution) !== undefined);
|
|
80
83
|
};
|
|
81
84
|
|
|
82
85
|
/**
|
|
@@ -92,10 +92,13 @@ export var isAttributionColoringEnabled = function isAttributionColoringEnabled(
|
|
|
92
92
|
if (!areAttributionColorGatesEnabled() || !(stepAttributions !== null && stepAttributions !== void 0 && stepAttributions.length)) {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
|
|
96
|
+
// Colour whenever a step names an identifiable actor; a single actor still surfaces its
|
|
97
|
+
// participant colour. Only bail when nothing is attributable, so the attributed changeset is
|
|
98
|
+
// not built for a diff with no identities to colour.
|
|
99
|
+
return stepAttributions.some(function (attribution) {
|
|
100
|
+
return getAttributionKey(attribution) !== undefined;
|
|
101
|
+
});
|
|
99
102
|
};
|
|
100
103
|
|
|
101
104
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
35
35
|
"@atlaskit/primitives": "^22.5.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^177.0.0",
|
|
37
37
|
"@atlaskit/tokens": "^16.11.0",
|
|
38
38
|
"@atlaskit/tooltip": "^24.3.0",
|
|
39
39
|
"@atlaskit/visually-hidden": "^4.4.0",
|