@atlaskit/editor-shared-styles 4.3.25 → 4.3.27

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-shared-styles
2
2
 
3
+ ## 4.3.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dec0b5dd31b2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dec0b5dd31b2f) -
8
+ Add Figma, Lovable, and Replit contributor tags behind
9
+ confluence_ncs_step_diffing_version_history.
10
+ - Updated dependencies
11
+
12
+ ## 4.3.26
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 4.3.25
4
19
 
5
20
  ### Patch Changes
package/dist/cjs/utils.js CHANGED
@@ -11,24 +11,20 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  var _consts = require("./consts");
12
12
  /**
13
13
  * Fixed telepointer palette slot for each `@atlaskit/agent-color` brand this editor recognises by
14
- * a reserved identity colour rather than a hashed one.
15
- *
16
- * Claude uses orange (`participantColors[7]`), Rovo purple (`[4]`), and ChatGPT gray (`[9]`).
17
- * Brands in `BRAND_EXACT_COLOR_SCHEMES` use their registered brand colours in those fixed slots.
18
- * The palette's numbered positions also back the telepointer CSS classes, so preserve these
19
- * positions when editing the palette. Brands `@atlaskit/agent-color` resolves but this table omits
20
- * (e.g. Figma, Replit) fall through to the identity-hashed colour below.
14
+ * a reserved identity colour rather than a hashed one. Positions also back the telepointer CSS
15
+ * classes, so preserve them when editing the palette.
21
16
  */
22
17
  var BRAND_PARTICIPANT_COLOR_INDEX = {
23
18
  'agent-brand-claude': 7,
24
19
  'agent-brand-rovo': 4,
25
- 'agent-brand-chatgpt': 9
20
+ 'agent-brand-chatgpt': 9,
21
+ 'agent-brand-figma': 9,
22
+ 'agent-brand-lovable': 9,
23
+ 'agent-brand-replit': 9
26
24
  };
27
25
 
28
- /**
29
- * Brands whose registered `bold`/`boldText` values take precedence over their palette slot.
30
- */
31
- var BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo']);
26
+ /** Brands whose registered `bold`/`boldText` values take precedence over their palette slot. */
27
+ var BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo', 'agent-brand-figma', 'agent-brand-lovable', 'agent-brand-replit']);
32
28
 
33
29
  /** Maps Agent Studio's semantic palette to the established telepointer palette slots. */
34
30
  var AGENT_COLOR_TO_PARTICIPANT_COLOR_INDEX = {
@@ -83,7 +79,9 @@ function getHashCode(str) {
83
79
  * @returns The palette colour and index; `isFixed` prevents callers from reallocating brand colours.
84
80
  */
85
81
  function getParticipantColor(str, agentType) {
82
+ // `agentType` may be a named id (e.g. `mcp_lovable_agent`) or a display name (e.g. `lovable`).
86
83
  var brand = agentType ? (0, _getThirdPartyAgentColor.getThirdPartyAgentColor)({
84
+ agentNamedId: agentType,
87
85
  agentName: agentType
88
86
  }) : undefined;
89
87
  if (brand) {
@@ -5,24 +5,20 @@ import { participantColors } from './consts';
5
5
 
6
6
  /**
7
7
  * Fixed telepointer palette slot for each `@atlaskit/agent-color` brand this editor recognises by
8
- * a reserved identity colour rather than a hashed one.
9
- *
10
- * Claude uses orange (`participantColors[7]`), Rovo purple (`[4]`), and ChatGPT gray (`[9]`).
11
- * Brands in `BRAND_EXACT_COLOR_SCHEMES` use their registered brand colours in those fixed slots.
12
- * The palette's numbered positions also back the telepointer CSS classes, so preserve these
13
- * positions when editing the palette. Brands `@atlaskit/agent-color` resolves but this table omits
14
- * (e.g. Figma, Replit) fall through to the identity-hashed colour below.
8
+ * a reserved identity colour rather than a hashed one. Positions also back the telepointer CSS
9
+ * classes, so preserve them when editing the palette.
15
10
  */
16
11
  const BRAND_PARTICIPANT_COLOR_INDEX = {
17
12
  'agent-brand-claude': 7,
18
13
  'agent-brand-rovo': 4,
19
- 'agent-brand-chatgpt': 9
14
+ 'agent-brand-chatgpt': 9,
15
+ 'agent-brand-figma': 9,
16
+ 'agent-brand-lovable': 9,
17
+ 'agent-brand-replit': 9
20
18
  };
21
19
 
22
- /**
23
- * Brands whose registered `bold`/`boldText` values take precedence over their palette slot.
24
- */
25
- const BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo']);
20
+ /** Brands whose registered `bold`/`boldText` values take precedence over their palette slot. */
21
+ const BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo', 'agent-brand-figma', 'agent-brand-lovable', 'agent-brand-replit']);
26
22
 
27
23
  /** Maps Agent Studio's semantic palette to the established telepointer palette slots. */
28
24
  const AGENT_COLOR_TO_PARTICIPANT_COLOR_INDEX = {
@@ -77,7 +73,9 @@ export function getHashCode(str) {
77
73
  * @returns The palette colour and index; `isFixed` prevents callers from reallocating brand colours.
78
74
  */
79
75
  export function getParticipantColor(str, agentType) {
76
+ // `agentType` may be a named id (e.g. `mcp_lovable_agent`) or a display name (e.g. `lovable`).
80
77
  const brand = agentType ? getThirdPartyAgentColor({
78
+ agentNamedId: agentType,
81
79
  agentName: agentType
82
80
  }) : undefined;
83
81
  if (brand) {
package/dist/esm/utils.js CHANGED
@@ -5,24 +5,20 @@ import { participantColors } from './consts';
5
5
 
6
6
  /**
7
7
  * Fixed telepointer palette slot for each `@atlaskit/agent-color` brand this editor recognises by
8
- * a reserved identity colour rather than a hashed one.
9
- *
10
- * Claude uses orange (`participantColors[7]`), Rovo purple (`[4]`), and ChatGPT gray (`[9]`).
11
- * Brands in `BRAND_EXACT_COLOR_SCHEMES` use their registered brand colours in those fixed slots.
12
- * The palette's numbered positions also back the telepointer CSS classes, so preserve these
13
- * positions when editing the palette. Brands `@atlaskit/agent-color` resolves but this table omits
14
- * (e.g. Figma, Replit) fall through to the identity-hashed colour below.
8
+ * a reserved identity colour rather than a hashed one. Positions also back the telepointer CSS
9
+ * classes, so preserve them when editing the palette.
15
10
  */
16
11
  var BRAND_PARTICIPANT_COLOR_INDEX = {
17
12
  'agent-brand-claude': 7,
18
13
  'agent-brand-rovo': 4,
19
- 'agent-brand-chatgpt': 9
14
+ 'agent-brand-chatgpt': 9,
15
+ 'agent-brand-figma': 9,
16
+ 'agent-brand-lovable': 9,
17
+ 'agent-brand-replit': 9
20
18
  };
21
19
 
22
- /**
23
- * Brands whose registered `bold`/`boldText` values take precedence over their palette slot.
24
- */
25
- var BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo']);
20
+ /** Brands whose registered `bold`/`boldText` values take precedence over their palette slot. */
21
+ var BRAND_EXACT_COLOR_SCHEMES = new Set(['agent-brand-chatgpt', 'agent-brand-rovo', 'agent-brand-figma', 'agent-brand-lovable', 'agent-brand-replit']);
26
22
 
27
23
  /** Maps Agent Studio's semantic palette to the established telepointer palette slots. */
28
24
  var AGENT_COLOR_TO_PARTICIPANT_COLOR_INDEX = {
@@ -77,7 +73,9 @@ export function getHashCode(str) {
77
73
  * @returns The palette colour and index; `isFixed` prevents callers from reallocating brand colours.
78
74
  */
79
75
  export function getParticipantColor(str, agentType) {
76
+ // `agentType` may be a named id (e.g. `mcp_lovable_agent`) or a display name (e.g. `lovable`).
80
77
  var brand = agentType ? getThirdPartyAgentColor({
78
+ agentNamedId: agentType,
81
79
  agentName: agentType
82
80
  }) : undefined;
83
81
  if (brand) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-shared-styles",
3
- "version": "4.3.25",
3
+ "version": "4.3.27",
4
4
  "description": "Style values used in the editor/renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/agent-color": "^1.0.0",
33
33
  "@atlaskit/platform-feature-flags": "^2.2.0",
34
- "@atlaskit/tmp-editor-statsig": "^207.0.0",
34
+ "@atlaskit/tmp-editor-statsig": "^209.0.0",
35
35
  "@atlaskit/tokens": "^20.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1"