@atlaskit/editor-plugin-block-type 5.1.7 → 5.1.9

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,21 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 5.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [#130218](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130218)
14
+ [`7decc0df6c7e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7decc0df6c7e9) -
15
+ [ED-26003] This change is cleaning up the feature gate
16
+ platform_editor_toolbar_fix_for_disabled_options.
17
+ - Updated dependencies
18
+
3
19
  ## 5.1.7
4
20
 
5
21
  ### Patch Changes
@@ -7,7 +7,6 @@ exports.areBlockTypesDisabled = areBlockTypesDisabled;
7
7
  exports.isNodeAWrappingBlockNode = exports.hasBlockQuoteInOptions = exports.createWrappingTextBlockRule = exports.createJoinNodesRule = exports.checkFormattingIsPresent = void 0;
8
8
  var _mark = require("@atlaskit/editor-common/mark");
9
9
  var _utils = require("@atlaskit/editor-common/utils");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
11
  var _blockTypes = require("./block-types");
13
12
  var isNodeAWrappingBlockNode = exports.isNodeAWrappingBlockNode = function isNodeAWrappingBlockNode(node) {
@@ -67,9 +66,7 @@ function getSelectedWrapperNodes(state) {
67
66
  taskItem = _state$schema$nodes.taskItem,
68
67
  taskList = _state$schema$nodes.taskList;
69
68
  var wrapperNodes = [blockquote, panel, orderedList, bulletList, listItem, codeBlock, decisionItem, decisionList, taskItem, taskList];
70
- if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_fix_for_disabled_options')) {
71
- wrapperNodes.push(caption);
72
- }
69
+ wrapperNodes.push(caption);
73
70
  state.doc.nodesBetween($from.pos, $to.pos, function (node) {
74
71
  if (node.isBlock && wrapperNodes.indexOf(node.type) >= 0) {
75
72
  nodes.push(node.type);
@@ -1,6 +1,5 @@
1
1
  import { anyMarkActive } from '@atlaskit/editor-common/mark';
2
2
  import { createRule, createWrappingJoinRule } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { WRAPPER_BLOCK_TYPES, FORMATTING_NODE_TYPES, FORMATTING_MARK_TYPES } from './block-types';
6
5
  export const isNodeAWrappingBlockNode = node => {
@@ -59,9 +58,7 @@ function getSelectedWrapperNodes(state) {
59
58
  taskList
60
59
  } = state.schema.nodes;
61
60
  const wrapperNodes = [blockquote, panel, orderedList, bulletList, listItem, codeBlock, decisionItem, decisionList, taskItem, taskList];
62
- if (fg('platform_editor_toolbar_fix_for_disabled_options')) {
63
- wrapperNodes.push(caption);
64
- }
61
+ wrapperNodes.push(caption);
65
62
  state.doc.nodesBetween($from.pos, $to.pos, node => {
66
63
  if (node.isBlock && wrapperNodes.indexOf(node.type) >= 0) {
67
64
  nodes.push(node.type);
@@ -1,6 +1,5 @@
1
1
  import { anyMarkActive } from '@atlaskit/editor-common/mark';
2
2
  import { createRule, createWrappingJoinRule } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { WRAPPER_BLOCK_TYPES, FORMATTING_NODE_TYPES, FORMATTING_MARK_TYPES } from './block-types';
6
5
  export var isNodeAWrappingBlockNode = function isNodeAWrappingBlockNode(node) {
@@ -60,9 +59,7 @@ function getSelectedWrapperNodes(state) {
60
59
  taskItem = _state$schema$nodes.taskItem,
61
60
  taskList = _state$schema$nodes.taskList;
62
61
  var wrapperNodes = [blockquote, panel, orderedList, bulletList, listItem, codeBlock, decisionItem, decisionList, taskItem, taskList];
63
- if (fg('platform_editor_toolbar_fix_for_disabled_options')) {
64
- wrapperNodes.push(caption);
65
- }
62
+ wrapperNodes.push(caption);
66
63
  state.doc.nodesBetween($from.pos, $to.pos, function (node) {
67
64
  if (node.isBlock && wrapperNodes.indexOf(node.type) >= 0) {
68
65
  nodes.push(node.type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "5.1.7",
3
+ "version": "5.1.9",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,19 +36,19 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/adf-schema": "^47.6.0",
39
- "@atlaskit/editor-common": "^102.10.0",
39
+ "@atlaskit/editor-common": "^102.13.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
41
- "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
42
- "@atlaskit/editor-plugin-selection-toolbar": "^2.1.0",
41
+ "@atlaskit/editor-plugin-primary-toolbar": "^3.1.0",
42
+ "@atlaskit/editor-plugin-selection-toolbar": "^3.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.4.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
- "@atlaskit/icon": "^25.0.0",
46
+ "@atlaskit/icon": "^25.2.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/primitives": "^14.1.0",
48
+ "@atlaskit/primitives": "^14.2.0",
49
49
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
50
50
  "@atlaskit/theme": "^18.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^4.1.0",
51
+ "@atlaskit/tmp-editor-statsig": "^4.4.0",
52
52
  "@atlaskit/tokens": "^4.5.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1"
@@ -61,8 +61,8 @@
61
61
  "devDependencies": {
62
62
  "@af/visual-regression": "^1.3.0",
63
63
  "@atlaskit/analytics-next": "^11.0.0",
64
- "@atlaskit/editor-plugin-quick-insert": "^2.1.0",
65
- "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
64
+ "@atlaskit/editor-plugin-quick-insert": "^2.2.0",
65
+ "@atlaskit/editor-plugin-type-ahead": "^2.2.0",
66
66
  "@atlaskit/ssr": "^0.4.0",
67
67
  "@atlaskit/visual-regression": "^0.10.0",
68
68
  "@testing-library/react": "^13.4.0",
@@ -109,9 +109,6 @@
109
109
  "platform-feature-flags": {
110
110
  "platform_editor_toolbar_responsive_fixes": {
111
111
  "type": "boolean"
112
- },
113
- "platform_editor_toolbar_fix_for_disabled_options": {
114
- "type": "boolean"
115
112
  }
116
113
  }
117
114
  }