@atlaskit/editor-plugin-block-menu 15.0.8 → 15.0.10
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 +19 -0
- package/dist/cjs/blockMenuPlugin.js +2 -2
- package/dist/cjs/ui/block-menu.js +1 -1
- package/dist/cjs/ui/copy-link.js +1 -1
- package/dist/cjs/ui/delete-button.js +1 -1
- package/dist/cjs/ui/move-down.js +1 -1
- package/dist/cjs/ui/move-up.js +1 -1
- package/dist/es2019/blockMenuPlugin.js +2 -2
- package/dist/es2019/ui/block-menu.js +1 -1
- package/dist/es2019/ui/copy-link.js +1 -1
- package/dist/es2019/ui/delete-button.js +1 -1
- package/dist/es2019/ui/move-down.js +1 -1
- package/dist/es2019/ui/move-up.js +1 -1
- package/dist/esm/blockMenuPlugin.js +2 -2
- package/dist/esm/ui/block-menu.js +1 -1
- package/dist/esm/ui/copy-link.js +1 -1
- package/dist/esm/ui/delete-button.js +1 -1
- package/dist/esm/ui/move-down.js +1 -1
- package/dist/esm/ui/move-up.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 15.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`08bf773f7599a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08bf773f7599a) -
|
|
8
|
+
Migrate experiments to use the new platform experiment API. This major release removes the
|
|
9
|
+
migrated experiment entries from `@atlaskit/tmp-editor-statsig`'s `editorExperimentsConfig` and
|
|
10
|
+
test overrides. Consumers must replace legacy `expVal`/`expValEquals` calls with
|
|
11
|
+
`@atlaskit/platform-feature-experiments` APIs, using `isExperimentEnabled` for boolean `isEnabled`
|
|
12
|
+
experiments and `expVal` for parameterized experiments; use `mockExpEnabled`/`mockExpDisabled` in
|
|
13
|
+
tests.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 15.0.9
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 15.0.8
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ exports.blockMenuPlugin = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
11
|
-
var
|
|
11
|
+
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
12
12
|
var _editorActions = require("./editor-actions");
|
|
13
13
|
var _isTransformToTargetDisabled = require("./editor-actions/isTransformToTargetDisabled");
|
|
14
14
|
var _transformSourceRegistry = require("./editor-actions/transformSourceRegistry");
|
|
@@ -44,7 +44,7 @@ var blockMenuPlugin = exports.blockMenuPlugin = function blockMenuPlugin(_ref) {
|
|
|
44
44
|
plugin: function plugin() {
|
|
45
45
|
return (0, _keymap.keymapPlugin)(api, config);
|
|
46
46
|
}
|
|
47
|
-
}].concat((0, _toConsumableArray2.default)((0,
|
|
47
|
+
}].concat((0, _toConsumableArray2.default)((0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
|
|
48
48
|
name: 'blockMenuExperiences',
|
|
49
49
|
plugin: function plugin() {
|
|
50
50
|
return (0, _blockMenuExperiences.getBlockMenuExperiencesPlugin)({
|
|
@@ -368,6 +368,6 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
368
368
|
})));
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
371
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
372
372
|
var _default_1 = (0, _reactIntl.injectIntl)(BlockMenu);
|
|
373
373
|
var _default = exports.default = _default_1;
|
package/dist/cjs/ui/copy-link.js
CHANGED
|
@@ -103,5 +103,5 @@ var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
|
|
|
103
103
|
}, formatMessage(_messages.blockMenuMessages.copyLinkToSelection));
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
107
107
|
var CopyLinkDropdownItem = exports.CopyLinkDropdownItem = (0, _reactIntl.injectIntl)(CopyLinkDropdownItemContent);
|
|
@@ -127,5 +127,5 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
|
|
|
127
127
|
}, formatMessage(_messages.blockMenuMessages.deleteBlock))));
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
131
131
|
var DeleteDropdownItem = exports.DeleteDropdownItem = (0, _reactIntl.injectIntl)(DeleteDropdownItemContent);
|
package/dist/cjs/ui/move-down.js
CHANGED
|
@@ -79,5 +79,5 @@ var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
|
|
|
79
79
|
}, formatMessage(_messages.blockMenuMessages.moveDownBlock));
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
83
83
|
var MoveDownDropdownItem = exports.MoveDownDropdownItem = (0, _reactIntl.injectIntl)(MoveDownDropdownItemContent);
|
package/dist/cjs/ui/move-up.js
CHANGED
|
@@ -77,5 +77,5 @@ var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
|
|
|
77
77
|
}, formatMessage(_messages.blockMenuMessages.moveUpBlock));
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
81
81
|
var MoveUpDropdownItem = exports.MoveUpDropdownItem = (0, _reactIntl.injectIntl)(MoveUpDropdownItemContent);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
|
-
import {
|
|
3
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
4
4
|
import { createBlockMenuRegistry } from './editor-actions';
|
|
5
5
|
import { isTransformToTargetDisabled } from './editor-actions/isTransformToTargetDisabled';
|
|
6
6
|
import { createBlockMenuTransformSourceRegistry } from './editor-actions/transformSourceRegistry';
|
|
@@ -33,7 +33,7 @@ export const blockMenuPlugin = ({
|
|
|
33
33
|
}, {
|
|
34
34
|
name: 'blockMenuKeymap',
|
|
35
35
|
plugin: () => keymapPlugin(api, config)
|
|
36
|
-
}, ...(
|
|
36
|
+
}, ...(UNSAFE_expValNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
|
|
37
37
|
name: 'blockMenuExperiences',
|
|
38
38
|
plugin: () => getBlockMenuExperiencesPlugin({
|
|
39
39
|
refs,
|
|
@@ -102,5 +102,5 @@ const CopyLinkDropdownItemContent = ({
|
|
|
102
102
|
}, formatMessage(messages.copyLinkToSelection));
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
106
106
|
export const CopyLinkDropdownItem = injectIntl(CopyLinkDropdownItemContent);
|
|
@@ -121,5 +121,5 @@ const DeleteDropdownItemContent = ({
|
|
|
121
121
|
}, formatMessage(blockMenuMessages.deleteBlock))));
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
124
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
125
125
|
export const DeleteDropdownItem = injectIntl(DeleteDropdownItemContent);
|
|
@@ -76,5 +76,5 @@ const MoveDownDropdownItemContent = ({
|
|
|
76
76
|
}, formatMessage(messages.moveDownBlock));
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
80
80
|
export const MoveDownDropdownItem = injectIntl(MoveDownDropdownItemContent);
|
|
@@ -74,5 +74,5 @@ const MoveUpDropdownItemContent = ({
|
|
|
74
74
|
}, formatMessage(messages.moveUpBlock));
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
78
78
|
export const MoveUpDropdownItem = injectIntl(MoveUpDropdownItemContent);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
|
-
import {
|
|
4
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
5
5
|
import { createBlockMenuRegistry } from './editor-actions';
|
|
6
6
|
import { isTransformToTargetDisabled } from './editor-actions/isTransformToTargetDisabled';
|
|
7
7
|
import { createBlockMenuTransformSourceRegistry } from './editor-actions/transformSourceRegistry';
|
|
@@ -37,7 +37,7 @@ export var blockMenuPlugin = function blockMenuPlugin(_ref) {
|
|
|
37
37
|
plugin: function plugin() {
|
|
38
38
|
return keymapPlugin(api, config);
|
|
39
39
|
}
|
|
40
|
-
}].concat(_toConsumableArray(
|
|
40
|
+
}].concat(_toConsumableArray(UNSAFE_expValNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
|
|
41
41
|
name: 'blockMenuExperiences',
|
|
42
42
|
plugin: function plugin() {
|
|
43
43
|
return getBlockMenuExperiencesPlugin({
|
|
@@ -359,6 +359,6 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
359
359
|
})));
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
363
363
|
var _default_1 = injectIntl(BlockMenu);
|
|
364
364
|
export default _default_1;
|
package/dist/esm/ui/copy-link.js
CHANGED
|
@@ -94,5 +94,5 @@ var CopyLinkDropdownItemContent = function CopyLinkDropdownItemContent(_ref) {
|
|
|
94
94
|
}, formatMessage(messages.copyLinkToSelection));
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
98
98
|
export var CopyLinkDropdownItem = injectIntl(CopyLinkDropdownItemContent);
|
|
@@ -116,5 +116,5 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
|
|
|
116
116
|
}, formatMessage(blockMenuMessages.deleteBlock))));
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
120
120
|
export var DeleteDropdownItem = injectIntl(DeleteDropdownItemContent);
|
package/dist/esm/ui/move-down.js
CHANGED
|
@@ -70,5 +70,5 @@ var MoveDownDropdownItemContent = function MoveDownDropdownItemContent(_ref) {
|
|
|
70
70
|
}, formatMessage(messages.moveDownBlock));
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
74
74
|
export var MoveDownDropdownItem = injectIntl(MoveDownDropdownItemContent);
|
package/dist/esm/ui/move-up.js
CHANGED
|
@@ -68,5 +68,5 @@ var MoveUpDropdownItemContent = function MoveUpDropdownItemContent(_ref) {
|
|
|
68
68
|
}, formatMessage(messages.moveUpBlock));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
72
72
|
export var MoveUpDropdownItem = injectIntl(MoveUpDropdownItemContent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.10",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
24
24
|
"@atlaskit/css": "^1.1.0",
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
26
|
-
"@atlaskit/editor-plugin-block-controls": "^17.
|
|
27
|
-
"@atlaskit/editor-plugin-decorations": "^16.
|
|
28
|
-
"@atlaskit/editor-plugin-selection": "^16.
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
26
|
+
"@atlaskit/editor-plugin-block-controls": "^17.3.0",
|
|
27
|
+
"@atlaskit/editor-plugin-decorations": "^16.1.0",
|
|
28
|
+
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
29
29
|
"@atlaskit/editor-plugin-user-intent": "^14.0.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
31
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
32
|
-
"@atlaskit/editor-tables": "^3.
|
|
31
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
32
|
+
"@atlaskit/editor-tables": "^3.1.0",
|
|
33
33
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
34
|
-
"@atlaskit/flag": "^18.
|
|
35
|
-
"@atlaskit/icon": "^37.
|
|
34
|
+
"@atlaskit/flag": "^18.5.0",
|
|
35
|
+
"@atlaskit/icon": "^37.6.0",
|
|
36
36
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
37
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
38
|
-
"@atlaskit/primitives": "^22.
|
|
37
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
38
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
39
39
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
-
"@atlaskit/tokens": "^16.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^169.0.0",
|
|
41
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"bind-event-listener": "^3.0.0",
|
|
44
44
|
"memoize-one": "^6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^120.
|
|
47
|
+
"@atlaskit/editor-common": "^120.10.0",
|
|
48
48
|
"react": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
50
50
|
},
|