@atlaskit/editor-plugin-analytics 7.0.7 → 7.0.8

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,13 @@
1
1
  # @atlaskit/editor-plugin-analytics
2
2
 
3
+ ## 7.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7ba3979b92b42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ba3979b92b42) -
8
+ Remove platform_synced_block_dogfooding feature gate
9
+ - Updated dependencies
10
+
3
11
  ## 7.0.7
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,22 @@
1
- # Editor plugin analytics
1
+ # Editor Plugin Analytics
2
2
 
3
3
  Analytics plugin for @atlaskit/editor-core
4
4
 
5
5
  **Note:** This component is designed for internal Atlassian development.
6
6
  External contributors will be able to use this component but will not be able to submit issues.
7
7
 
8
+ ## Overview
9
+
10
+ The Analytics plugin provides comprehensive event tracking and performance monitoring capabilities for the Atlassian Editor. It integrates with `@atlaskit/analytics-next` to capture, process, and dispatch analytics events during editor operations.
11
+
12
+ ## Key features
13
+
14
+ - **Event tracking** - Capture and track editor actions and state changes
15
+ - **Performance monitoring** - Measure render performance and DOM update timings
16
+ - **Event queuing** - Queue analytics events when dependencies are not yet available
17
+ - **Flexible configuration** - Configure analytics event creation and performance tracking options
18
+ - **Transaction integration** - Attach analytics payloads directly to ProseMirror transactions
19
+
8
20
  ## Install
9
21
  ---
10
22
  - **Install** - *yarn add @atlaskit/editor-plugin-analytics*
@@ -10,7 +10,6 @@ var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
11
  var _utils = require("@atlaskit/editor-prosemirror/utils");
12
12
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
14
  function getSelectionType(selection) {
16
15
  var _selection$constructo;
@@ -80,7 +79,7 @@ function getStateContext(selection, payload, tr) {
80
79
  }
81
80
  if (payload.action === _analytics.ACTION.INSERTED && payload.actionSubject === _analytics.ACTION_SUBJECT.DOCUMENT && payload.attributes) {
82
81
  payload.attributes.insertLocation = insertLocation;
83
- if ((0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding')) {
82
+ if ((0, _experiments.editorExperiment)('platform_synced_block', true)) {
84
83
  var bodiedSyncBlock = selection.$from.doc.type.schema.nodes.bodiedSyncBlock;
85
84
  payload.attributes.isInsideSyncedBlock = Boolean((0, _utils.findParentNodeOfType)(bodiedSyncBlock)(selection));
86
85
  }
@@ -3,7 +3,6 @@ import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
3
3
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
7
  export function getSelectionType(selection) {
9
8
  var _selection$constructo;
@@ -79,7 +78,7 @@ export function getStateContext(selection, payload, tr) {
79
78
  }
80
79
  if (payload.action === ACTION.INSERTED && payload.actionSubject === ACTION_SUBJECT.DOCUMENT && payload.attributes) {
81
80
  payload.attributes.insertLocation = insertLocation;
82
- if (editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding')) {
81
+ if (editorExperiment('platform_synced_block', true)) {
83
82
  const {
84
83
  bodiedSyncBlock
85
84
  } = selection.$from.doc.type.schema.nodes;
@@ -3,7 +3,6 @@ import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
3
3
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
7
  export function getSelectionType(selection) {
9
8
  var _selection$constructo;
@@ -73,7 +72,7 @@ export function getStateContext(selection, payload, tr) {
73
72
  }
74
73
  if (payload.action === ACTION.INSERTED && payload.actionSubject === ACTION_SUBJECT.DOCUMENT && payload.attributes) {
75
74
  payload.attributes.insertLocation = insertLocation;
76
- if (editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding')) {
75
+ if (editorExperiment('platform_synced_block', true)) {
77
76
  var bodiedSyncBlock = selection.$from.doc.type.schema.nodes.bodiedSyncBlock;
78
77
  payload.attributes.isInsideSyncedBlock = Boolean(findParentNodeOfType(bodiedSyncBlock)(selection));
79
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "description": "Analytics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-prosemirror": "^7.3.0",
35
35
  "@atlaskit/editor-tables": "^2.9.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^22.0.0",
37
+ "@atlaskit/tmp-editor-statsig": "^22.1.0",
38
38
  "@babel/runtime": "^7.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -74,11 +74,6 @@
74
74
  ]
75
75
  }
76
76
  },
77
- "platform-feature-flags": {
78
- "platform_synced_block_dogfooding": {
79
- "type": "boolean"
80
- }
81
- },
82
77
  "stricter": {
83
78
  "no-unused-dependencies": {
84
79
  "checkDevDependencies": true