@atlaskit/editor-plugin-block-type 12.1.14 → 12.1.15

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.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`da0d44bd1fc45`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da0d44bd1fc45) -
8
+ Cleanup history feature flag bug fix
9
+ - Updated dependencies
10
+
3
11
  ## 12.1.14
4
12
 
5
13
  ### Patch Changes
@@ -10,7 +10,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
10
10
  var _browser = require("@atlaskit/editor-common/browser");
11
11
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
14
  var _blockTypes = require("./block-types");
16
15
  var _blockType = require("./commands/block-type");
@@ -99,11 +98,7 @@ var createPlugin = exports.createPlugin = function createPlugin(editorAPI, dispa
99
98
  var lastNode = pos.node(1);
100
99
  var paragraph = newState.schema.nodes.paragraph;
101
100
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
102
- if ((0, _platformFeatureFlags.fg)('platform_editor_fix_insert_paragraph_undo')) {
103
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
104
- } else {
105
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create()).setMeta('addToHistory', false);
106
- }
101
+ return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
107
102
  }
108
103
  }
109
104
  },
@@ -2,7 +2,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
  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';
8
7
  import { setHeadingWithAnalytics, setNormalTextWithAnalytics, setSmallTextWithAnalytics } from './commands/block-type';
@@ -88,11 +87,7 @@ export const createPlugin = (editorAPI, dispatch, lastNodeMustBeParagraph, inclu
88
87
  paragraph
89
88
  } = newState.schema.nodes;
90
89
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
91
- if (fg('platform_editor_fix_insert_paragraph_undo')) {
92
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
93
- } else {
94
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create()).setMeta('addToHistory', false);
95
- }
90
+ return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
96
91
  }
97
92
  }
98
93
  },
@@ -5,7 +5,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  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';
11
10
  import { setHeadingWithAnalytics, setNormalTextWithAnalytics, setSmallTextWithAnalytics } from './commands/block-type';
@@ -92,11 +91,7 @@ export var createPlugin = function createPlugin(editorAPI, dispatch, lastNodeMus
92
91
  var lastNode = pos.node(1);
93
92
  var paragraph = newState.schema.nodes.paragraph;
94
93
  if (lastNode && lastNode.isBlock && lastNode.type !== paragraph) {
95
- if (fg('platform_editor_fix_insert_paragraph_undo')) {
96
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
97
- } else {
98
- return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create()).setMeta('addToHistory', false);
99
- }
94
+ return newState.tr.insert(newState.doc.content.size, newState.schema.nodes.paragraph.create());
100
95
  }
101
96
  }
102
97
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "12.1.14",
3
+ "version": "12.1.15",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -118,9 +118,6 @@
118
118
  "platform_editor_use_preferences_plugin": {
119
119
  "type": "boolean"
120
120
  },
121
- "platform_editor_fix_insert_paragraph_undo": {
122
- "type": "boolean"
123
- },
124
121
  "platform_editor_adf_with_localid": {
125
122
  "type": "boolean"
126
123
  }