@atlaskit/editor-common 131.2.0 → 131.2.2

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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 131.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bf97ae26b480d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf97ae26b480d) -
8
+ Add a `sourceLocation` analytics attribute (`description` | `custom-field`) to synced block create
9
+ and get-source-info events for Jira sources, behind the `platform_editor_blocks_patch_13` feature
10
+ gate and the `editor_synced_blocks_jira_custom_rich_text` experiment. With the gate off, events
11
+ are unchanged. Add an optional `getParentAri()` method to the synced block data provider.
12
+ - Updated dependencies
13
+
14
+ ## 131.2.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 131.2.0
4
21
 
5
22
  ### Minor 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 = "131.1.1";
30
+ var packageVersion = "131.2.1";
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 = "131.1.1";
27
+ var packageVersion = "131.2.1";
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 = "131.1.1";
16
+ const packageVersion = "131.2.1";
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 = "131.1.1";
17
+ const packageVersion = "131.2.1";
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 = "131.1.1";
22
+ var packageVersion = "131.2.1";
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 = "131.1.1";
24
+ var packageVersion = "131.2.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -3,6 +3,7 @@ import type { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, INSERT_MEDIA_VIA } from './enums';
4
4
  import type { InsertNativeEmbedAEP } from './native-embed-events';
5
5
  import type { InsertSmartLinkAEP } from './smart-links';
6
+ import type { SyncedBlockSourceLocationAttribute } from './sync-block-events';
6
7
  import type { InsertAEP, TrackAEP, OperationalAEP } from './utils';
7
8
  export declare enum USER_CONTEXT {
8
9
  EDIT = "edit",
@@ -163,6 +164,7 @@ type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOC
163
164
  }, undefined>;
164
165
  export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
165
166
  resourceId: string;
167
+ sourceLocation?: SyncedBlockSourceLocationAttribute;
166
168
  }, undefined>;
167
169
  export declare const TEMPLATE_GALLERY_INPUT_SOURCE: 'templateGallery';
168
170
  export type InsertSnippetInputMethod = INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | typeof TEMPLATE_GALLERY_INPUT_SOURCE;
@@ -14,9 +14,17 @@ import type { OperationalAEP, TrackAEP } from './utils';
14
14
  * to it without `editor-common` depending on the provider.
15
15
  */
16
16
  export type SyncedBlockErrorReasonAttribute = 'errored' | 'not_found' | 'forbidden' | 'invalid_request' | 'rate_limited' | 'conflict' | 'server_error' | 'invalid_content' | 'offline' | 'unpublished' | 'aborted' | 'entity_not_found' | 'unknown' | 'source_deleted' | 'source_unpublished' | 'source_unsynced' | 'source_not_found' | 'permission_denied' | 'unauthenticated' | 'websocket_drop' | 'websocket_exhausted' | 'network' | 'data_provider_not_ready';
17
+ /**
18
+ * Mirrors the provider's `SyncBlockSourceLocation` union: which Jira work item field holds
19
+ * the source block. Only emitted for Jira sources when
20
+ * `editor_synced_blocks_jira_custom_rich_text` is enabled, so Confluence sources and the
21
+ * control cohort leave it unset.
22
+ */
23
+ export type SyncedBlockSourceLocationAttribute = 'description' | 'custom-field';
17
24
  type SyncedBlockErrorAttributes = {
18
25
  error: string;
19
26
  resourceId?: string;
27
+ sourceLocation?: SyncedBlockSourceLocationAttribute;
20
28
  /**
21
29
  * The product the source block lives in, derived from `resourceId` when present.
22
30
  * Always optional because batch / subscription init paths fire without a `resourceId`.
@@ -85,6 +93,7 @@ type SyncedBlockCreateSuccessAttributes = SyncedBlockSuccessAttributes & {
85
93
  createdEmpty?: boolean;
86
94
  inputMethod?: INPUT_METHOD;
87
95
  nodeTypes?: string[];
96
+ sourceLocation?: SyncedBlockSourceLocationAttribute;
88
97
  };
89
98
  /** First-content-added attrs: join keys only (no user content, PII-safe). */
90
99
  type SyncedBlockAddContentAttributes = SyncedBlockSuccessAttributes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "131.2.0",
3
+ "version": "131.2.2",
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/"
@@ -54,13 +54,13 @@
54
54
  "@atlaskit/feature-gate-js-client": "^7.0.0",
55
55
  "@atlaskit/icon": "^38.0.0",
56
56
  "@atlaskit/link": "^5.1.0",
57
- "@atlaskit/link-datasource": "^7.3.0",
57
+ "@atlaskit/link-datasource": "^7.4.0",
58
58
  "@atlaskit/link-picker": "^6.12.0",
59
59
  "@atlaskit/logo": "^23.3.0",
60
60
  "@atlaskit/media-card": "^82.1.0",
61
- "@atlaskit/media-client": "^39.1.0",
61
+ "@atlaskit/media-client": "^39.2.0",
62
62
  "@atlaskit/media-client-react": "^7.0.0",
63
- "@atlaskit/media-common": "^14.6.0",
63
+ "@atlaskit/media-common": "^14.7.0",
64
64
  "@atlaskit/media-file-preview": "^2.0.0",
65
65
  "@atlaskit/media-picker": "^73.1.0",
66
66
  "@atlaskit/media-ui": "^31.3.0",
@@ -85,8 +85,8 @@
85
85
  "@atlaskit/task-decision": "^21.12.0",
86
86
  "@atlaskit/teams-app-config": "^3.1.0",
87
87
  "@atlaskit/textfield": "^10.2.0",
88
- "@atlaskit/tmp-editor-statsig": "^239.0.0",
89
- "@atlaskit/tokens": "^20.5.0",
88
+ "@atlaskit/tmp-editor-statsig": "^240.0.0",
89
+ "@atlaskit/tokens": "^20.6.0",
90
90
  "@atlaskit/tooltip": "^24.4.0",
91
91
  "@atlaskit/width-detector": "^7.2.0",
92
92
  "@babel/runtime": "^7.0.0",
@@ -130,7 +130,7 @@
130
130
  "@atlassian/a11y-jest-testing": "^0.17.0",
131
131
  "@atlassian/experiment-test-utils": "^0.2.0",
132
132
  "@atlassian/feature-flags-test-utils": "^1.3.0",
133
- "@atlassian/testing-library": "^0.11.0",
133
+ "@atlassian/testing-library": "^0.12.0",
134
134
  "@testing-library/dom": "^10.1.0",
135
135
  "@testing-library/jest-dom": "^6.4.5",
136
136
  "@testing-library/react": "^16.3.0",