@atlaskit/editor-core 224.0.3 → 224.0.5

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-core
2
2
 
3
+ ## 224.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 224.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`24a6057e3d2f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24a6057e3d2f3) -
14
+ Clean up experiment `platform_editor_dom_node_count`. `editorDomSize` is now always reported on
15
+ the editor `inp` and `proseMirrorRendered` events.
16
+ - Updated dependencies
17
+
3
18
  ## 224.0.3
4
19
 
5
20
  ### Patch Changes
@@ -11,7 +11,6 @@ var _useAnalyticsEvents = require("@atlaskit/analytics-next/useAnalyticsEvents")
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _inp = require("@atlaskit/editor-performance-metrics/inp");
13
13
  var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
14
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
14
  var _getEditorDomSize = require("../utils/getEditorDomSize");
16
15
  var EditorINPMetrics = exports.EditorINPMetrics = function EditorINPMetrics(_ref) {
17
16
  var editorViewRef = _ref.editorViewRef;
@@ -25,13 +24,8 @@ var EditorINPMetrics = exports.EditorINPMetrics = function EditorINPMetrics(_ref
25
24
  var value = _ref2.value;
26
25
  var interaction = (0, _interactionMetrics.getActiveInteraction)();
27
26
  var ufoName = interaction === null || interaction === void 0 ? void 0 : interaction.ufoName;
28
- var editorDomSize;
29
- if ((0, _expValEquals.expValEquals)('platform_editor_dom_node_count', 'isEnabled', true)) {
30
- var editorView = editorViewRef.current;
31
- if (editorView) {
32
- editorDomSize = (0, _getEditorDomSize.getEditorDomSize)(editorView);
33
- }
34
- }
27
+ var editorView = editorViewRef.current;
28
+ var editorDomSize = editorView ? (0, _getEditorDomSize.getEditorDomSize)(editorView) : undefined;
35
29
  sendAnalytics(analyticsEvents.createAnalyticsEvent, value, ufoName, editorDomSize);
36
30
  });
37
31
  });
@@ -737,7 +737,7 @@ function ReactEditorView(props) {
737
737
  } : {},
738
738
  totalNodes = _ref4.totalNodes,
739
739
  nodeSizeBucket = _ref4.nodeSizeBucket;
740
- var editorDomSize = (0, _expValEquals.expValEquals)('platform_editor_dom_node_count', 'isEnabled', true) ? (0, _getEditorDomSize.getEditorDomSize)(viewRef.current) : undefined;
740
+ var editorDomSize = (0, _getEditorDomSize.getEditorDomSize)(viewRef.current);
741
741
  var interaction = (0, _interactionMetrics.getActiveInteraction)();
742
742
  var pageLoadType = interaction === null || interaction === void 0 ? void 0 : interaction.type;
743
743
  var pageType = interaction === null || interaction === void 0 ? void 0 : interaction.routeName;
@@ -773,11 +773,9 @@ function ReactEditorView(props) {
773
773
  extensionKeys: extensionKeys,
774
774
  ufoInteractionId: (0, _interactionIdContext.getInteractionId)().current
775
775
  };
776
- if (editorDomSize !== undefined) {
777
- (0, _customData.addUFOCustomData)({
778
- editorDomSize: editorDomSize
779
- });
780
- }
776
+ (0, _customData.addUFOCustomData)({
777
+ editorDomSize: editorDomSize
778
+ });
781
779
  dispatchAnalyticsEvent({
782
780
  action: _analytics.ACTION.PROSEMIRROR_RENDERED,
783
781
  actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "224.0.2";
9
+ var version = exports.version = "224.0.4";
@@ -4,7 +4,6 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
4
4
  import { ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import { setupINPTracking } from '@atlaskit/editor-performance-metrics/inp';
6
6
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { getEditorDomSize } from '../utils/getEditorDomSize';
9
8
  export const EditorINPMetrics = ({
10
9
  editorViewRef
@@ -20,13 +19,8 @@ export const EditorINPMetrics = ({
20
19
  }) => {
21
20
  const interaction = getActiveInteraction();
22
21
  const ufoName = interaction === null || interaction === void 0 ? void 0 : interaction.ufoName;
23
- let editorDomSize;
24
- if (expValEquals('platform_editor_dom_node_count', 'isEnabled', true)) {
25
- const editorView = editorViewRef.current;
26
- if (editorView) {
27
- editorDomSize = getEditorDomSize(editorView);
28
- }
29
- }
22
+ const editorView = editorViewRef.current;
23
+ const editorDomSize = editorView ? getEditorDomSize(editorView) : undefined;
30
24
  sendAnalytics(analyticsEvents.createAnalyticsEvent, value, ufoName, editorDomSize);
31
25
  });
32
26
  });
@@ -688,7 +688,7 @@ export function ReactEditorView(props) {
688
688
  }
689
689
  })()
690
690
  } : {};
691
- const editorDomSize = expValEquals('platform_editor_dom_node_count', 'isEnabled', true) ? getEditorDomSize(viewRef.current) : undefined;
691
+ const editorDomSize = getEditorDomSize(viewRef.current);
692
692
  const interaction = getActiveInteraction();
693
693
  const pageLoadType = interaction === null || interaction === void 0 ? void 0 : interaction.type;
694
694
  const pageType = interaction === null || interaction === void 0 ? void 0 : interaction.routeName;
@@ -724,11 +724,9 @@ export function ReactEditorView(props) {
724
724
  extensionKeys,
725
725
  ufoInteractionId: getInteractionId().current
726
726
  };
727
- if (editorDomSize !== undefined) {
728
- addUFOCustomData({
729
- editorDomSize
730
- });
731
- }
727
+ addUFOCustomData({
728
+ editorDomSize
729
+ });
732
730
  dispatchAnalyticsEvent({
733
731
  action: ACTION.PROSEMIRROR_RENDERED,
734
732
  actionSubject: ACTION_SUBJECT.EDITOR,
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "224.0.2";
3
+ export const version = "224.0.4";
@@ -4,7 +4,6 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
4
4
  import { ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import { setupINPTracking } from '@atlaskit/editor-performance-metrics/inp';
6
6
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { getEditorDomSize } from '../utils/getEditorDomSize';
9
8
  export var EditorINPMetrics = function EditorINPMetrics(_ref) {
10
9
  var editorViewRef = _ref.editorViewRef;
@@ -18,13 +17,8 @@ export var EditorINPMetrics = function EditorINPMetrics(_ref) {
18
17
  var value = _ref2.value;
19
18
  var interaction = getActiveInteraction();
20
19
  var ufoName = interaction === null || interaction === void 0 ? void 0 : interaction.ufoName;
21
- var editorDomSize;
22
- if (expValEquals('platform_editor_dom_node_count', 'isEnabled', true)) {
23
- var editorView = editorViewRef.current;
24
- if (editorView) {
25
- editorDomSize = getEditorDomSize(editorView);
26
- }
27
- }
20
+ var editorView = editorViewRef.current;
21
+ var editorDomSize = editorView ? getEditorDomSize(editorView) : undefined;
28
22
  sendAnalytics(analyticsEvents.createAnalyticsEvent, value, ufoName, editorDomSize);
29
23
  });
30
24
  });
@@ -728,7 +728,7 @@ export function ReactEditorView(props) {
728
728
  } : {},
729
729
  totalNodes = _ref4.totalNodes,
730
730
  nodeSizeBucket = _ref4.nodeSizeBucket;
731
- var editorDomSize = expValEquals('platform_editor_dom_node_count', 'isEnabled', true) ? getEditorDomSize(viewRef.current) : undefined;
731
+ var editorDomSize = getEditorDomSize(viewRef.current);
732
732
  var interaction = getActiveInteraction();
733
733
  var pageLoadType = interaction === null || interaction === void 0 ? void 0 : interaction.type;
734
734
  var pageType = interaction === null || interaction === void 0 ? void 0 : interaction.routeName;
@@ -764,11 +764,9 @@ export function ReactEditorView(props) {
764
764
  extensionKeys: extensionKeys,
765
765
  ufoInteractionId: getInteractionId().current
766
766
  };
767
- if (editorDomSize !== undefined) {
768
- addUFOCustomData({
769
- editorDomSize: editorDomSize
770
- });
771
- }
767
+ addUFOCustomData({
768
+ editorDomSize: editorDomSize
769
+ });
772
770
  dispatchAnalyticsEvent({
773
771
  action: ACTION.PROSEMIRROR_RENDERED,
774
772
  actionSubject: ACTION_SUBJECT.EDITOR,
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "224.0.2";
3
+ export var version = "224.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "224.0.3",
3
+ "version": "224.0.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,13 +50,13 @@
50
50
  "@atlaskit/editor-plugin-connectivity": "^15.0.0",
51
51
  "@atlaskit/editor-plugin-quick-insert": "^15.0.0",
52
52
  "@atlaskit/editor-plugin-user-preferences": "^13.0.0",
53
- "@atlaskit/editor-plugins": "^16.0.0",
53
+ "@atlaskit/editor-plugins": "^16.1.0",
54
54
  "@atlaskit/editor-prosemirror": "^8.0.0",
55
55
  "@atlaskit/editor-shared-styles": "^4.0.0",
56
56
  "@atlaskit/editor-ssr-renderer": "^10.0.0",
57
57
  "@atlaskit/editor-toolbar": "^2.4.0",
58
58
  "@atlaskit/editor-toolbar-model": "^1.2.0",
59
- "@atlaskit/emoji": "^71.17.0",
59
+ "@atlaskit/emoji": "^72.0.0",
60
60
  "@atlaskit/feature-gate-js-client": "^6.0.0",
61
61
  "@atlaskit/icon": "^37.3.0",
62
62
  "@atlaskit/insm": "^2.0.0",
@@ -69,7 +69,7 @@
69
69
  "@atlaskit/react-compiler-gating": "^0.2.0",
70
70
  "@atlaskit/react-ufo": "^7.6.0",
71
71
  "@atlaskit/task-decision": "^21.8.0",
72
- "@atlaskit/tmp-editor-statsig": "^147.1.0",
72
+ "@atlaskit/tmp-editor-statsig": "^148.0.0",
73
73
  "@atlaskit/tokens": "^16.7.0",
74
74
  "@atlaskit/tooltip": "^24.0.0",
75
75
  "@atlaskit/width-detector": "^7.0.0",
@@ -87,7 +87,7 @@
87
87
  "uuid": "^3.1.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@atlaskit/editor-common": "^119.4.0",
90
+ "@atlaskit/editor-common": "^119.5.0",
91
91
  "@atlaskit/link-provider": "^5.3.0",
92
92
  "@atlaskit/media-core": "^38.0.0",
93
93
  "react": "^18.2.0",