@atlaskit/editor-plugin-insert-block 16.0.13 → 16.0.14
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 +10 -0
- package/dist/cjs/insertBlockPlugin.js +4 -4
- package/dist/cjs/ui/ToolbarInsertBlock/create-items.js +2 -2
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +2 -2
- package/dist/es2019/insertBlockPlugin.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +1 -1
- package/dist/esm/insertBlockPlugin.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 16.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 16.0.13
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ var _types = require("@atlaskit/editor-common/types");
|
|
|
15
15
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
16
16
|
var _consts = require("@atlaskit/editor-plugin-block-type/consts");
|
|
17
17
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
18
|
-
var
|
|
18
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
20
|
var _toolbarActionExperiences = require("./pm-plugins/experiences/toolbar-action-experiences");
|
|
21
21
|
var _toggleInsertBlock = require("./pm-plugins/toggleInsertBlock");
|
|
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
27
27
|
|
|
28
28
|
var toolbarSizeToButtons = exports.toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize, appearance) {
|
|
29
29
|
// Different button numbers for full-page to better match full page toolbar breakpoints
|
|
30
|
-
if (appearance === 'full-page' && (0,
|
|
30
|
+
if (appearance === 'full-page' && (0, _fg.fg)('platform_editor_toolbar_responsive_fixes')) {
|
|
31
31
|
switch (toolbarSize) {
|
|
32
32
|
case _types.ToolbarSize.XXL:
|
|
33
33
|
case _types.ToolbarSize.XL:
|
|
@@ -39,7 +39,7 @@ var toolbarSizeToButtons = exports.toolbarSizeToButtons = function toolbarSizeTo
|
|
|
39
39
|
return 0;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
if ((0,
|
|
42
|
+
if ((0, _fg.fg)('platform_editor_toolbar_responsive_fixes')) {
|
|
43
43
|
switch (toolbarSize) {
|
|
44
44
|
case _types.ToolbarSize.XXL:
|
|
45
45
|
case _types.ToolbarSize.XL:
|
|
@@ -231,7 +231,7 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
231
231
|
return (0, _toggleInsertBlock.toggleInsertBlockPmPlugin)();
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
-
if ((0,
|
|
234
|
+
if ((0, _fg.fg)('platform_editor_experience_tracking_toolbar_button')) {
|
|
235
235
|
plugins.push({
|
|
236
236
|
name: 'toolbarActionExperiences',
|
|
237
237
|
plugin: function plugin() {
|
|
@@ -12,7 +12,7 @@ var _memoize = _interopRequireDefault(require("lodash/memoize"));
|
|
|
12
12
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
13
13
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var
|
|
15
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
16
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
17
17
|
var _item = require("./item");
|
|
18
18
|
var _shallowEquals = require("./shallow-equals");
|
|
@@ -252,7 +252,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
|
|
|
252
252
|
// correct downstream.
|
|
253
253
|
var filteredItems = itemFilter ? items.filter(itemFilter) : items;
|
|
254
254
|
var numButtonsAdjusted = numberOfButtons;
|
|
255
|
-
if ((0,
|
|
255
|
+
if ((0, _fg.fg)('platform_editor_toolbar_responsive_fixes')) {
|
|
256
256
|
if (filteredItems.slice(0, numButtonsAdjusted).some(function (item) {
|
|
257
257
|
return item.value.name === 'table selector';
|
|
258
258
|
})) {
|
|
@@ -25,7 +25,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
25
25
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
26
26
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
27
27
|
var _picker = require("@atlaskit/emoji/picker");
|
|
28
|
-
var
|
|
28
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
29
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
30
30
|
var _filterDropdownItems = require("../toolbar-components/hooks/filterDropdownItems");
|
|
31
31
|
var _blockInsertMenu = require("./block-insert-menu");
|
|
@@ -130,7 +130,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
130
130
|
(0, _defineProperty2.default)(_this, "togglePlusMenuVisibility", function (event) {
|
|
131
131
|
var isPlusMenuOpen = _this.state.isPlusMenuOpen;
|
|
132
132
|
var pluginInjectionApi = _this.props.pluginInjectionApi;
|
|
133
|
-
if (pluginInjectionApi && (0,
|
|
133
|
+
if (pluginInjectionApi && (0, _fg.fg)('platform_editor_ease_of_use_metrics')) {
|
|
134
134
|
pluginInjectionApi.core.actions.execute(function (_ref2) {
|
|
135
135
|
var tr = _ref2.tr;
|
|
136
136
|
if (isPlusMenuOpen) {
|
|
@@ -7,7 +7,7 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
9
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
import { getToolbarActionExperiencesPlugin } from './pm-plugins/experiences/toolbar-action-experiences';
|
|
13
13
|
import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
|
|
@@ -3,7 +3,7 @@ import memoize from 'lodash/memoize';
|
|
|
3
3
|
import memoizeOne from 'memoize-one';
|
|
4
4
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { blockTypeMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
8
|
import { action, blockquote, codeblock, date, decision, emoji, expand, horizontalrule, imageUpload, layout, link, media, mention, panel, placeholder, status, table, tableSelector } from './item';
|
|
9
9
|
import { shallowEquals } from './shallow-equals';
|
|
@@ -20,7 +20,7 @@ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
20
20
|
import { EmojiPicker as AkEmojiPicker } from '@atlaskit/emoji/picker';
|
|
21
21
|
// Ignored via go/ees005
|
|
22
22
|
// eslint-disable-next-line import/no-namespace
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
24
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
25
25
|
import { LINK_BUTTON_KEY } from '../toolbar-components/hooks/filterDropdownItems';
|
|
26
26
|
import { BlockInsertMenu } from './block-insert-menu';
|
|
@@ -7,7 +7,7 @@ import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
9
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
import { getToolbarActionExperiencesPlugin } from './pm-plugins/experiences/toolbar-action-experiences';
|
|
13
13
|
import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
|
|
@@ -7,7 +7,7 @@ import memoize from 'lodash/memoize';
|
|
|
7
7
|
import memoizeOne from 'memoize-one';
|
|
8
8
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
9
9
|
import { blockTypeMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
import { action, blockquote, codeblock, date, decision, emoji, expand, horizontalrule, imageUpload, layout, link, media, mention, panel, placeholder, status, table, tableSelector } from './item';
|
|
13
13
|
import { shallowEquals } from './shallow-equals';
|
|
@@ -35,7 +35,7 @@ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
35
35
|
import { EmojiPicker as AkEmojiPicker } from '@atlaskit/emoji/picker';
|
|
36
36
|
// Ignored via go/ees005
|
|
37
37
|
// eslint-disable-next-line import/no-namespace
|
|
38
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
38
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
39
39
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
40
40
|
import { LINK_BUTTON_KEY } from '../toolbar-components/hooks/filterDropdownItems';
|
|
41
41
|
import { BlockInsertMenu } from './block-insert-menu';
|