@atlaskit/editor-common 123.1.2 → 123.2.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,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 123.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fcc5d229eacdb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fcc5d229eacdb) -
8
+ Resolve consistent agent labels and colours for collaborators, filter local acknowledgements under
9
+ M1, and use shared display defaults instead of legacy streaming settings.
10
+ - [`fcc5d229eacdb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fcc5d229eacdb) -
11
+ Keep agent highlights associated with their actor and invocation under
12
+ platform_editor_ai_streaming_ux_experience_m1.
13
+ - [`fcc5d229eacdb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fcc5d229eacdb) -
14
+ Carry complete agent display identity through the shared update-command adapter and collaboration
15
+ step attribution while preserving account ID semantics.
16
+
3
17
  ## 123.1.2
4
18
 
5
19
  ### Patch Changes
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "123.1.1";
30
+ var packageVersion = "123.1.2";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -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 = "123.1.1";
27
+ var packageVersion = "123.1.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "123.1.1";
16
+ const packageVersion = "123.1.2";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "123.1.1";
17
+ const packageVersion = "123.1.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
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 = "123.1.1";
22
+ var packageVersion = "123.1.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "123.1.1";
24
+ var packageVersion = "123.1.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -10,6 +10,8 @@ export type AgentEditChromeRange = {
10
10
  to: number;
11
11
  };
12
12
  export type AgentEditChromeData = {
13
+ actorUserId?: string;
14
+ invocationId?: string;
13
15
  /**
14
16
  * The agent's own id in its source system (e.g. Rovo's fixed agent UUID). Distinct from
15
17
  * `agentIdentityAccountId`: this identifies *which agent*, not an Atlassian identity.
@@ -24,8 +26,19 @@ export type AgentEditChromeData = {
24
26
  * out-of-the-box and third-party agents their own avatar.
25
27
  */
26
28
  agentNamedId?: string;
29
+ /**
30
+ * The agent's machine type from collab step attribution (e.g. `convo-ai`). Lets observers that
31
+ * only receive attribution identify the default Rovo agent, which streams with this type and no
32
+ * agent ids.
33
+ */
34
+ agentType?: string;
27
35
  /** Lifetime of both the highlight and telepointer. Omission uses the shared static default; 0 prevents rendering. */
28
36
  autoDismissAfterMs?: number;
37
+ /**
38
+ * True for a Forge / third-party / remote agent. Drives the third-party telepointer treatment
39
+ * (neutral pill plus the agent name) for producers that only observe step attribution.
40
+ */
41
+ isThirdParty?: boolean;
29
42
  /** Runtime CSS color value. Consumers should pass an ADS token value. */
30
43
  highlightBackgroundColor?: string;
31
44
  /** Runtime CSS color value. Consumers should pass an ADS token value. */
@@ -305,7 +305,15 @@ export interface StepMetadata {
305
305
  }
306
306
  export interface BaseStepPM extends StepMetadata {
307
307
  agentId?: string;
308
+ /** Agent display name, so collaborators can label the agent without an async lookup. */
309
+ agentName?: string;
310
+ /** External config reference (named_id) for OOTB agent avatar and brand colour lookup. */
311
+ agentNamedId?: string;
312
+ /** The agent's own id, as opposed to `agentId`, which carries its Atlassian account id. */
313
+ agentSourceId?: string;
308
314
  agentType?: string;
315
+ /** True for a Forge / third-party / remote agent, so collaborators match its presentation. */
316
+ isThirdPartyAgent?: boolean;
309
317
  clientId: number | string;
310
318
  from?: number;
311
319
  /**
@@ -2,5 +2,13 @@
2
2
  export declare const AGENT_ATTRIBUTION_META = "agentAttribution";
3
3
  export type AgentAttributionTransactionMeta = {
4
4
  agentId?: string;
5
+ /** Display name, so collaborators can label the agent without an async lookup. */
6
+ agentName?: string;
7
+ /** External config reference (named_id), used for OOTB agent avatar and brand colour lookup. */
8
+ agentNamedId?: string;
9
+ /** The agent's own id, used as the primary avatar-resolution key. */
10
+ agentSourceId?: string;
5
11
  agentType: string;
12
+ /** True for a Forge / third-party / remote agent, derived from the agent record's `creator_type`. */
13
+ isThirdParty?: boolean;
6
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "123.1.2",
3
+ "version": "123.2.0",
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/"