@atlaskit/editor-plugin-analytics 15.0.2 → 15.0.3
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,29 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 15.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
|
|
8
|
+
Enable launched synced block integrations and remove obsolete experiment scaffolding.
|
|
9
|
+
|
|
10
|
+
BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
|
|
11
|
+
experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
|
|
12
|
+
enable synced-block integrations will no longer be able to look up that experiment; synced-block
|
|
13
|
+
integrations are now enabled by default. Remove each lookup and its conditional branch:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// Before
|
|
17
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
18
|
+
enableSyncedBlocks();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// After
|
|
22
|
+
enableSyncedBlocks();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 15.0.2
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -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 _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
// oxlint-disable-next-line import/no-duplicates
|
|
15
14
|
|
|
16
15
|
function getSelectionType(selection) {
|
|
@@ -85,10 +84,8 @@ function getStateContext(selection, payload, tr) {
|
|
|
85
84
|
}
|
|
86
85
|
if (payload.action === _analytics.ACTION.INSERTED && payload.actionSubject === _analytics.ACTION_SUBJECT.DOCUMENT && payload.attributes) {
|
|
87
86
|
payload.attributes.insertLocation = insertLocation;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
payload.attributes.isInsideSyncedBlock = Boolean((0, _utils.findParentNodeOfType)(bodiedSyncBlock)(selection));
|
|
91
|
-
}
|
|
87
|
+
var bodiedSyncBlock = selection.$from.doc.type.schema.nodes.bodiedSyncBlock;
|
|
88
|
+
payload.attributes.isInsideSyncedBlock = Boolean((0, _utils.findParentNodeOfType)(bodiedSyncBlock)(selection));
|
|
92
89
|
} else {
|
|
93
90
|
payload.attributes.nodeLocation = insertLocation;
|
|
94
91
|
}
|
|
@@ -5,7 +5,6 @@ import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
7
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
export function getSelectionType(selection) {
|
|
10
9
|
var _selection$constructo;
|
|
11
10
|
let type;
|
|
@@ -84,12 +83,10 @@ export function getStateContext(selection, payload, tr) {
|
|
|
84
83
|
}
|
|
85
84
|
if (payload.action === ACTION.INSERTED && payload.actionSubject === ACTION_SUBJECT.DOCUMENT && payload.attributes) {
|
|
86
85
|
payload.attributes.insertLocation = insertLocation;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
payload.attributes.isInsideSyncedBlock = Boolean(findParentNodeOfType(bodiedSyncBlock)(selection));
|
|
92
|
-
}
|
|
86
|
+
const {
|
|
87
|
+
bodiedSyncBlock
|
|
88
|
+
} = selection.$from.doc.type.schema.nodes;
|
|
89
|
+
payload.attributes.isInsideSyncedBlock = Boolean(findParentNodeOfType(bodiedSyncBlock)(selection));
|
|
93
90
|
} else {
|
|
94
91
|
payload.attributes.nodeLocation = insertLocation;
|
|
95
92
|
}
|
|
@@ -5,7 +5,6 @@ import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
7
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
export function getSelectionType(selection) {
|
|
10
9
|
var _selection$constructo;
|
|
11
10
|
var type;
|
|
@@ -78,10 +77,8 @@ export function getStateContext(selection, payload, tr) {
|
|
|
78
77
|
}
|
|
79
78
|
if (payload.action === ACTION.INSERTED && payload.actionSubject === ACTION_SUBJECT.DOCUMENT && payload.attributes) {
|
|
80
79
|
payload.attributes.insertLocation = insertLocation;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
payload.attributes.isInsideSyncedBlock = Boolean(findParentNodeOfType(bodiedSyncBlock)(selection));
|
|
84
|
-
}
|
|
80
|
+
var bodiedSyncBlock = selection.$from.doc.type.schema.nodes.bodiedSyncBlock;
|
|
81
|
+
payload.attributes.isInsideSyncedBlock = Boolean(findParentNodeOfType(bodiedSyncBlock)(selection));
|
|
85
82
|
} else {
|
|
86
83
|
payload.attributes.nodeLocation = insertLocation;
|
|
87
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^149.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^119.
|
|
33
|
+
"@atlaskit/editor-common": "^119.7.0",
|
|
34
34
|
"react": "^18.2.0 || ^19.2.0"
|
|
35
35
|
},
|
|
36
36
|
"techstack": {
|