@atlaskit/editor-plugin-block-controls 16.0.11 → 16.0.12
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-block-controls
|
|
2
2
|
|
|
3
|
+
## 16.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7d9913d23d739`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7d9913d23d739) -
|
|
8
|
+
Clean up feature gate `platform_editor_track_node_types`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 16.0.11
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getMultiSelectAnalyticsAttributes = exports.fireInsertLayoutAnalytics = exports.attachMoveNodeAnalytics = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var attachMoveNodeAnalytics = exports.attachMoveNodeAnalytics = function attachMoveNodeAnalytics(tr, inputMethod, fromDepth, fromNodeTypes, toDepth, toNodeType, isSameParent, api, hasSelectedMultipleNodes) {
|
|
12
11
|
var _api$analytics;
|
|
13
12
|
return api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 ? void 0 : _api$analytics.attachAnalyticsEvent({
|
|
@@ -60,7 +59,7 @@ var getMultiSelectAnalyticsAttributes = exports.getMultiSelectAnalyticsAttribute
|
|
|
60
59
|
return false;
|
|
61
60
|
});
|
|
62
61
|
return {
|
|
63
|
-
nodeTypes: (0,
|
|
62
|
+
nodeTypes: (0, _toConsumableArray2.default)(new Set(nodeTypes)).sort().join(','),
|
|
64
63
|
hasSelectedMultipleNodes: nodeTypes.length > 1
|
|
65
64
|
};
|
|
66
65
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
export const attachMoveNodeAnalytics = (tr, inputMethod, fromDepth, fromNodeTypes, toDepth, toNodeType, isSameParent, api, hasSelectedMultipleNodes) => {
|
|
4
3
|
var _api$analytics, _api$analytics$action;
|
|
5
4
|
return api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.attachAnalyticsEvent({
|
|
@@ -52,7 +51,7 @@ export const getMultiSelectAnalyticsAttributes = (tr, anchor, head) => {
|
|
|
52
51
|
return false;
|
|
53
52
|
});
|
|
54
53
|
return {
|
|
55
|
-
nodeTypes:
|
|
54
|
+
nodeTypes: [...new Set(nodeTypes)].sort().join(','),
|
|
56
55
|
hasSelectedMultipleNodes: nodeTypes.length > 1
|
|
57
56
|
};
|
|
58
57
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
export var attachMoveNodeAnalytics = function attachMoveNodeAnalytics(tr, inputMethod, fromDepth, fromNodeTypes, toDepth, toNodeType, isSameParent, api, hasSelectedMultipleNodes) {
|
|
5
4
|
var _api$analytics;
|
|
6
5
|
return api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 ? void 0 : _api$analytics.attachAnalyticsEvent({
|
|
@@ -53,7 +52,7 @@ export var getMultiSelectAnalyticsAttributes = function getMultiSelectAnalyticsA
|
|
|
53
52
|
return false;
|
|
54
53
|
});
|
|
55
54
|
return {
|
|
56
|
-
nodeTypes:
|
|
55
|
+
nodeTypes: _toConsumableArray(new Set(nodeTypes)).sort().join(','),
|
|
57
56
|
hasSelectedMultipleNodes: nodeTypes.length > 1
|
|
58
57
|
};
|
|
59
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.12",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"uuid": "^3.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^119.
|
|
64
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
65
65
|
"react": "^18.2.0 || ^19.2.0",
|
|
66
66
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
67
67
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"platform-feature-flags": {
|
|
108
|
-
"platform_editor_track_node_types": {
|
|
109
|
-
"type": "boolean"
|
|
110
|
-
},
|
|
111
108
|
"platform_editor_elements_dnd_shift_click_select": {
|
|
112
109
|
"type": "boolean"
|
|
113
110
|
},
|