@atlaskit/editor-plugin-code-block-advanced 15.0.5 → 15.0.6
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block-advanced
|
|
2
2
|
|
|
3
|
+
## 15.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f5de88cbdfe3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5de88cbdfe3e) -
|
|
8
|
+
Clean up feature flag platform_editor_code_block_folding_analytics. Code block folding analytics
|
|
9
|
+
are now fired unconditionally.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 15.0.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -66,9 +66,6 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
|
|
|
66
66
|
});
|
|
67
67
|
(0, _defineProperty2.default)(this, "fireCodeFoldingAnalytics", function (folded, trigger) {
|
|
68
68
|
var _this$config$api;
|
|
69
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_code_block_folding_analytics')) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
69
|
(_this$config$api = _this.config.api) === null || _this$config$api === void 0 || (_this$config$api = _this$config$api.analytics) === null || _this$config$api === void 0 || _this$config$api.actions.fireAnalyticsEvent((0, _analytics.getCodeFoldingAnalyticsPayload)(folded, trigger));
|
|
73
70
|
});
|
|
74
71
|
(0, _defineProperty2.default)(this, "handleBorderAreaMouseDown", function (event) {
|
|
@@ -48,9 +48,6 @@ class CodeBlockAdvancedNodeView {
|
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(this, "fireCodeFoldingAnalytics", (folded, trigger) => {
|
|
50
50
|
var _this$config$api, _this$config$api$anal;
|
|
51
|
-
if (!fg('platform_editor_code_block_folding_analytics')) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
51
|
(_this$config$api = this.config.api) === null || _this$config$api === void 0 ? void 0 : (_this$config$api$anal = _this$config$api.analytics) === null || _this$config$api$anal === void 0 ? void 0 : _this$config$api$anal.actions.fireAnalyticsEvent(getCodeFoldingAnalyticsPayload(folded, trigger));
|
|
55
52
|
});
|
|
56
53
|
_defineProperty(this, "handleBorderAreaMouseDown", event => {
|
|
@@ -59,9 +59,6 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
|
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(this, "fireCodeFoldingAnalytics", function (folded, trigger) {
|
|
61
61
|
var _this$config$api;
|
|
62
|
-
if (!fg('platform_editor_code_block_folding_analytics')) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
62
|
(_this$config$api = _this.config.api) === null || _this$config$api === void 0 || (_this$config$api = _this$config$api.analytics) === null || _this$config$api === void 0 || _this$config$api.actions.fireAnalyticsEvent(getCodeFoldingAnalyticsPayload(folded, trigger));
|
|
66
63
|
});
|
|
67
64
|
_defineProperty(this, "handleBorderAreaMouseDown", function (event) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block-advanced",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.6",
|
|
4
4
|
"description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
33
33
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^152.0.0",
|
|
35
35
|
"@atlaskit/tokens": "^16.7.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@codemirror/autocomplete": "6.18.4",
|
|
@@ -97,9 +97,6 @@
|
|
|
97
97
|
"platform_editor_content_mode_button_mvp": {
|
|
98
98
|
"type": "boolean"
|
|
99
99
|
},
|
|
100
|
-
"platform_editor_code_block_folding_analytics": {
|
|
101
|
-
"type": "boolean"
|
|
102
|
-
},
|
|
103
100
|
"platform_editor_code_block_mermaid_language": {
|
|
104
101
|
"type": "boolean"
|
|
105
102
|
}
|
|
@@ -374,10 +374,6 @@ class CodeBlockAdvancedNodeView implements NodeView {
|
|
|
374
374
|
};
|
|
375
375
|
|
|
376
376
|
private fireCodeFoldingAnalytics = (folded: boolean, trigger: CodeFoldingTrigger) => {
|
|
377
|
-
if (!fg('platform_editor_code_block_folding_analytics')) {
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
377
|
this.config.api?.analytics?.actions.fireAnalyticsEvent(
|
|
382
378
|
getCodeFoldingAnalyticsPayload(folded, trigger),
|
|
383
379
|
);
|