@atlaskit/editor-plugin-block-type 16.1.12 → 16.1.13

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
+ ## 16.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0b938a9924936`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b938a9924936) -
8
+ Clean up feature gate `platform_editor_block_menu_jira_patch_2`.
9
+ - Updated dependencies
10
+
3
11
  ## 16.1.12
4
12
 
5
13
  ### Patch Changes
@@ -11,7 +11,6 @@ var _blockType = require("@atlaskit/editor-common/block-type");
11
11
  var _browser = require("@atlaskit/editor-common/browser");
12
12
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _blockTypes = require("./block-types");
17
16
  var _blockType2 = require("./commands/block-type");
@@ -101,7 +100,7 @@ var createPlugin = exports.createPlugin = function createPlugin(editorAPI, dispa
101
100
  var paragraph = newState.schema.nodes.paragraph;
102
101
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
103
102
  var tr = newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
104
- return (0, _platformFeatureFlags.fg)('platform_editor_block_menu_jira_patch_2') ? tr.setMeta(_blockType.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true) : tr;
103
+ return tr.setMeta(_blockType.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true);
105
104
  }
106
105
  }
107
106
  },
@@ -3,7 +3,6 @@ import { INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META } from '@atlaskit/editor-
3
3
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { BLOCK_QUOTE, CODE_BLOCK, HEADING_1, HEADING_2, HEADING_3, HEADING_4, HEADING_5, HEADING_6, HEADINGS_BY_LEVEL, NORMAL_TEXT, OTHER, PANEL, TEXT_BLOCK_TYPES, WRAPPER_BLOCK_TYPES, getBlockTypesInDropdown, SMALL_TEXT } from './block-types';
9
8
  import { setHeadingWithAnalytics, setNormalTextWithAnalytics, setSmallTextWithAnalytics } from './commands/block-type';
@@ -90,7 +89,7 @@ export const createPlugin = (editorAPI, dispatch, lastNodeMustBeParagraph, inclu
90
89
  } = newState.schema.nodes;
91
90
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
92
91
  const tr = newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
93
- return fg('platform_editor_block_menu_jira_patch_2') ? tr.setMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true) : tr;
92
+ return tr.setMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true);
94
93
  }
95
94
  }
96
95
  },
@@ -6,7 +6,6 @@ import { INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META } from '@atlaskit/editor-
6
6
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
7
7
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
10
  import { BLOCK_QUOTE, CODE_BLOCK, HEADING_1, HEADING_2, HEADING_3, HEADING_4, HEADING_5, HEADING_6, HEADINGS_BY_LEVEL, NORMAL_TEXT, OTHER, PANEL, TEXT_BLOCK_TYPES, WRAPPER_BLOCK_TYPES, getBlockTypesInDropdown, SMALL_TEXT } from './block-types';
12
11
  import { setHeadingWithAnalytics, setNormalTextWithAnalytics, setSmallTextWithAnalytics } from './commands/block-type';
@@ -94,7 +93,7 @@ export var createPlugin = function createPlugin(editorAPI, dispatch, lastNodeMus
94
93
  var paragraph = newState.schema.nodes.paragraph;
95
94
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
96
95
  var tr = newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
97
- return fg('platform_editor_block_menu_jira_patch_2') ? tr.setMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true) : tr;
96
+ return tr.setMeta(INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META, true);
98
97
  }
99
98
  }
100
99
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "16.1.12",
3
+ "version": "16.1.13",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^56.0.0",
24
+ "@atlaskit/adf-schema": "^56.1.0",
25
25
  "@atlaskit/css": "^1.0.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
27
27
  "@atlaskit/editor-plugin-block-menu": "^11.1.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/primitives": "^20.3.0",
43
43
  "@atlaskit/prosemirror-history": "^1.0.0",
44
44
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^121.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^121.1.0",
46
46
  "@atlaskit/tokens": "^15.4.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@compiled/react": "^0.20.0",
@@ -90,7 +90,6 @@
90
90
  ],
91
91
  "deprecation": "no-deprecated-imports",
92
92
  "styling": [
93
- "emotion",
94
93
  "emotion"
95
94
  ],
96
95
  "imports": [
@@ -99,9 +98,6 @@
99
98
  }
100
99
  },
101
100
  "platform-feature-flags": {
102
- "platform_editor_block_menu_jira_patch_2": {
103
- "type": "boolean"
104
- },
105
101
  "platform_editor_change_normal_text_icon": {
106
102
  "type": "boolean"
107
103
  },