@atlaskit/editor-common 122.1.0 → 122.2.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,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 122.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8c22b996302b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8c22b996302b5) -
8
+ Clean up the permanently enabled `platform_editor_table_fit_to_content_auto_convert` experiment
9
+ and keep table fit-to-content conversion enabled across the editor and renderer.
10
+ - Updated dependencies
11
+
12
+ ## 122.2.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [`85253e0fa5828`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85253e0fa5828) -
17
+ Add `rovo_chat_people_entity_hover_cards` and `rovo_chat_inferred_project_hover_cards` gated
18
+ entity-annotation coverage, rendered-trigger, and hover-card engagement tracking. Person
19
+ annotation mentions carry a reserved local ID marker so only annotation-originated profile card
20
+ opens are tracked.
21
+
3
22
  ## 122.1.0
4
23
 
5
24
  ### 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 = "122.0.0";
30
+ var packageVersion = "122.2.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -11,7 +11,6 @@ Object.defineProperty(exports, "hasTableColumnBeenResized", {
11
11
  }
12
12
  });
13
13
  exports.isTableInContentMode = void 0;
14
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
14
  var _hasTableColumnBeenResized = require("./hasTableColumnBeenResized");
16
15
  /**
17
16
  * Returns true if the table has been explicitly resized — either the table itself has a width
@@ -30,21 +29,17 @@ var hasTableBeenResized = exports.hasTableBeenResized = function hasTableBeenRes
30
29
  * feature flags / props before calling this function.
31
30
  *
32
31
  * A table is in content mode when ALL of the following are true:
33
- * 1. The `platform_editor_table_fit_to_content_auto_convert` experiment is enabled
34
- * 2. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
35
- * 3. The table is not nested inside another table or block node
36
- * 4. The table node exists
37
- * 5. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
38
- * 6. The table's layout is `'align-start'`
32
+ * 1. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
33
+ * 2. The table is not nested inside another table or block node
34
+ * 3. The table node exists
35
+ * 4. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
36
+ * 5. The table's layout is `'align-start'`
39
37
  */
40
38
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
41
39
  var isTableInContentMode = exports.isTableInContentMode = function isTableInContentMode(_ref) {
42
40
  var tableNode = _ref.tableNode,
43
41
  isSupported = _ref.isSupported,
44
42
  isTableNested = _ref.isTableNested;
45
- if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true)) {
46
- return false;
47
- }
48
43
  if (!tableNode || isTableNested) {
49
44
  return false;
50
45
  }
@@ -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 = "122.0.0";
27
+ var packageVersion = "122.2.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -100,6 +100,7 @@ function MentionWithProfileCard(_ref) {
100
100
  userId: id,
101
101
  cloudId: cloudId,
102
102
  children: mention,
103
+ localId: localId,
103
104
  prefilledProfileData: prefilledProfileData
104
105
  }));
105
106
  }
@@ -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 = "122.0.0";
16
+ const packageVersion = "122.2.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -1,4 +1,3 @@
1
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
2
1
  import { hasTableColumnBeenResized } from './hasTableColumnBeenResized';
3
2
 
4
3
  /**
@@ -16,12 +15,11 @@ export const hasTableBeenResized = tableNode => tableNode.attrs.width !== null |
16
15
  * feature flags / props before calling this function.
17
16
  *
18
17
  * A table is in content mode when ALL of the following are true:
19
- * 1. The `platform_editor_table_fit_to_content_auto_convert` experiment is enabled
20
- * 2. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
21
- * 3. The table is not nested inside another table or block node
22
- * 4. The table node exists
23
- * 5. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
24
- * 6. The table's layout is `'align-start'`
18
+ * 1. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
19
+ * 2. The table is not nested inside another table or block node
20
+ * 3. The table node exists
21
+ * 4. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
22
+ * 5. The table's layout is `'align-start'`
25
23
  */
26
24
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
27
25
  export const isTableInContentMode = ({
@@ -29,9 +27,6 @@ export const isTableInContentMode = ({
29
27
  isSupported,
30
28
  isTableNested
31
29
  }) => {
32
- if (!expValEqualsNoExposure('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true)) {
33
- return false;
34
- }
35
30
  if (!tableNode || isTableNested) {
36
31
  return false;
37
32
  }
@@ -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 = "122.0.0";
17
+ const packageVersion = "122.2.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -85,6 +85,7 @@ export default function MentionWithProfileCard({
85
85
  userId: id,
86
86
  cloudId,
87
87
  children: mention,
88
+ localId,
88
89
  prefilledProfileData
89
90
  }));
90
91
  }
@@ -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 = "122.0.0";
22
+ var packageVersion = "122.2.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,4 +1,3 @@
1
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
2
1
  import { hasTableColumnBeenResized } from './hasTableColumnBeenResized';
3
2
 
4
3
  /**
@@ -18,21 +17,17 @@ export var hasTableBeenResized = function hasTableBeenResized(tableNode) {
18
17
  * feature flags / props before calling this function.
19
18
  *
20
19
  * A table is in content mode when ALL of the following are true:
21
- * 1. The `platform_editor_table_fit_to_content_auto_convert` experiment is enabled
22
- * 2. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
23
- * 3. The table is not nested inside another table or block node
24
- * 4. The table node exists
25
- * 5. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
26
- * 6. The table's layout is `'align-start'`
20
+ * 1. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
21
+ * 2. The table is not nested inside another table or block node
22
+ * 3. The table node exists
23
+ * 4. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
24
+ * 5. The table's layout is `'align-start'`
27
25
  */
28
26
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
29
27
  export var isTableInContentMode = function isTableInContentMode(_ref) {
30
28
  var tableNode = _ref.tableNode,
31
29
  isSupported = _ref.isSupported,
32
30
  isTableNested = _ref.isTableNested;
33
- if (!expValEqualsNoExposure('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true)) {
34
- return false;
35
- }
36
31
  if (!tableNode || isTableNested) {
37
32
  return false;
38
33
  }
@@ -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 = "122.0.0";
24
+ var packageVersion = "122.2.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -90,6 +90,7 @@ export default function MentionWithProfileCard(_ref) {
90
90
  userId: id,
91
91
  cloudId: cloudId,
92
92
  children: mention,
93
+ localId: localId,
93
94
  prefilledProfileData: prefilledProfileData
94
95
  }));
95
96
  }
@@ -16,6 +16,8 @@ import type ProfileClient from '@atlaskit/profilecard/profile-card-client';
16
16
  export type RenderUserMentionCard = (props: {
17
17
  children: ReactNode;
18
18
  cloudId: string;
19
+ /** Optional mention-local marker supplied by the renderer. */
20
+ localId?: string;
19
21
  /** Known identity to prefill the card with, giving its trigger a concrete accessible name. */
20
22
  prefilledProfileData?: {
21
23
  accountId: string;
@@ -13,12 +13,11 @@ export declare const hasTableBeenResized: (tableNode: PMNode) => boolean;
13
13
  * feature flags / props before calling this function.
14
14
  *
15
15
  * A table is in content mode when ALL of the following are true:
16
- * 1. The `platform_editor_table_fit_to_content_auto_convert` experiment is enabled
17
- * 2. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
18
- * 3. The table is not nested inside another table or block node
19
- * 4. The table node exists
20
- * 5. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
21
- * 6. The table's layout is `'align-start'`
16
+ * 1. `isSupported` is true (caller has verified resizing is allowed and appearance is full-page)
17
+ * 2. The table is not nested inside another table or block node
18
+ * 3. The table node exists
19
+ * 4. The table has not been explicitly resized (`width === null` and no `colwidth` on cells)
20
+ * 5. The table's layout is `'align-start'`
22
21
  */
23
22
  export declare const isTableInContentMode: ({ tableNode, isSupported, isTableNested, }: {
24
23
  /** Whether the current environment supports content mode (resizing enabled, full-page appearance). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "122.1.0",
3
+ "version": "122.2.1",
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/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/editor-json-transformer": "^9.8.0",
46
46
  "@atlaskit/editor-palette": "^3.5.0",
47
47
  "@atlaskit/editor-prosemirror": "^8.0.0",
48
- "@atlaskit/editor-shared-styles": "^4.2.0",
48
+ "@atlaskit/editor-shared-styles": "^4.3.0",
49
49
  "@atlaskit/editor-tables": "^3.2.0",
50
50
  "@atlaskit/editor-toolbar": "^2.6.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.2.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/task-decision": "^21.9.0",
85
85
  "@atlaskit/teams-app-config": "^3.1.0",
86
86
  "@atlaskit/textfield": "^10.2.0",
87
- "@atlaskit/tmp-editor-statsig": "^188.0.0",
87
+ "@atlaskit/tmp-editor-statsig": "^189.0.0",
88
88
  "@atlaskit/tokens": "^16.12.0",
89
89
  "@atlaskit/tooltip": "^24.3.0",
90
90
  "@atlaskit/width-detector": "^7.2.0",