@atlaskit/editor-plugin-show-diff 16.0.0 → 16.0.1

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,14 @@
1
1
  # @atlaskit/editor-plugin-show-diff
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a8b0726ce1e34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8b0726ce1e34) -
8
+ Adds shared semantic agent colour resolution and aligns diff history with agent telepointers
9
+ behind `confluence_ncs_step_diffing_version_history`.
10
+ - Updated dependencies
11
+
3
12
  ## 16.0.0
4
13
 
5
14
  ### Patch Changes
@@ -166,7 +166,7 @@ var createAttributionColorMap = exports.createAttributionColorMap = function cre
166
166
  if (!_identity || colors.has(_identity.key)) {
167
167
  continue;
168
168
  }
169
- var _getParticipantColor2 = (0, _utils.getParticipantColor)(_identity.colorSeed),
169
+ var _getParticipantColor2 = (0, _utils.getParticipantColor)(_identity.colorSeed, _attribution === null || _attribution === void 0 ? void 0 : _attribution.agentType),
170
170
  _index = _getParticipantColor2.index;
171
171
  var hashedColor = HASHED_PARTICIPANT_COLOR_SCHEMES[_index];
172
172
  if (!hashedColor) {
@@ -127,7 +127,7 @@ export const createAttributionColorMap = stepAttributions => {
127
127
  }
128
128
  const {
129
129
  index
130
- } = getParticipantColor(identity.colorSeed);
130
+ } = getParticipantColor(identity.colorSeed, attribution === null || attribution === void 0 ? void 0 : attribution.agentType);
131
131
  const hashedColor = HASHED_PARTICIPANT_COLOR_SCHEMES[index];
132
132
  if (!hashedColor) {
133
133
  continue;
@@ -160,7 +160,7 @@ export var createAttributionColorMap = function createAttributionColorMap(stepAt
160
160
  if (!_identity || colors.has(_identity.key)) {
161
161
  continue;
162
162
  }
163
- var _getParticipantColor2 = getParticipantColor(_identity.colorSeed),
163
+ var _getParticipantColor2 = getParticipantColor(_identity.colorSeed, _attribution === null || _attribution === void 0 ? void 0 : _attribution.agentType),
164
164
  _index = _getParticipantColor2.index;
165
165
  var hashedColor = HASHED_PARTICIPANT_COLOR_SCHEMES[_index];
166
166
  if (!hashedColor) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-show-diff",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "ShowDiff plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/editor-plugin-analytics": "^18.0.0",
27
27
  "@atlaskit/editor-plugin-user-intent": "^16.0.0",
28
28
  "@atlaskit/editor-prosemirror": "^8.0.0",
29
- "@atlaskit/editor-shared-styles": "^4.2.0",
29
+ "@atlaskit/editor-shared-styles": "^4.3.0",
30
30
  "@atlaskit/editor-tables": "^3.2.0",
31
31
  "@atlaskit/platform-feature-experiments": "^0.3.0",
32
32
  "@atlaskit/platform-feature-flags": "^2.2.0",
@@ -63,7 +63,7 @@
63
63
  "react-intl": "^7.0.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "@atlaskit/editor-common": "^122.0.0",
66
+ "@atlaskit/editor-common": "^122.2.0",
67
67
  "react": "^18.2.0 || ^19.2.0",
68
68
  "react-dom": "^18.2.0 || ^19.2.0",
69
69
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"