@atlaskit/editor-plugin-block-type 12.1.6 → 12.1.7
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-type
|
|
2
2
|
|
|
3
|
+
## 12.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
|
|
8
|
+
Replace feature experiment util with cross platform alternative for platform_editor_block_menu
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 12.1.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
|
16
16
|
var _types = require("@atlaskit/editor-common/types");
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
20
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
20
|
var _blockType = require("./pm-plugins/commands/block-type");
|
|
22
21
|
var _inputRule = _interopRequireDefault(require("./pm-plugins/input-rule"));
|
|
@@ -139,7 +138,7 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
|
139
138
|
component: primaryToolbarComponent
|
|
140
139
|
});
|
|
141
140
|
}
|
|
142
|
-
if ((0,
|
|
141
|
+
if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
|
|
143
142
|
var _api$blockMenu;
|
|
144
143
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents((0, _ui.getBlockTypeComponents)(api));
|
|
145
144
|
}
|
|
@@ -7,7 +7,6 @@ import { IconHeading, IconQuote } from '@atlaskit/editor-common/quick-insert';
|
|
|
7
7
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { clearFormatting, insertBlockQuoteWithAnalytics, insertBlockQuoteWithAnalyticsCommand, setBlockTypeWithAnalytics } from './pm-plugins/commands/block-type';
|
|
13
12
|
import inputRulePlugin from './pm-plugins/input-rule';
|
|
@@ -128,7 +127,7 @@ const blockTypePlugin = ({
|
|
|
128
127
|
component: primaryToolbarComponent
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
|
-
if (
|
|
130
|
+
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
132
131
|
var _api$blockMenu;
|
|
133
132
|
api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api));
|
|
134
133
|
}
|
|
@@ -11,7 +11,6 @@ import { IconHeading, IconQuote } from '@atlaskit/editor-common/quick-insert';
|
|
|
11
11
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { clearFormatting as _clearFormatting, insertBlockQuoteWithAnalytics, insertBlockQuoteWithAnalyticsCommand, setBlockTypeWithAnalytics } from './pm-plugins/commands/block-type';
|
|
17
16
|
import inputRulePlugin from './pm-plugins/input-rule';
|
|
@@ -132,7 +131,7 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
|
|
|
132
131
|
component: primaryToolbarComponent
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
|
-
if (
|
|
134
|
+
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
136
135
|
var _api$blockMenu;
|
|
137
136
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api));
|
|
138
137
|
}
|