@atlaskit/editor-plugin-block-type 3.5.0 → 3.6.0

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,17 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#110262](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110262)
8
+ [`5a9ede4b76193`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a9ede4b76193) -
9
+ Added paragraph and heading NodeSpecs flag back
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 3.5.0
4
16
 
5
17
  ### Minor Changes
@@ -127,9 +127,10 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
127
127
  name: 'blockType',
128
128
  nodes: function nodes() {
129
129
  var blockquoteNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-list-in-blockquote') ? _adfSchema.blockquoteWithList : _adfSchema.blockquote;
130
+ var headingNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? _adfSchema.headingStage0 : _adfSchema.heading;
130
131
  var nodes = [{
131
132
  name: 'heading',
132
- node: _adfSchema.heading
133
+ node: headingNode
133
134
  }, {
134
135
  name: 'blockquote',
135
136
  node: blockquoteNode
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { blockquote, blockquoteWithList, hardBreak, heading } from '@atlaskit/adf-schema';
2
+ import { blockquote, blockquoteWithList, hardBreak, heading, headingStage0 } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
@@ -113,9 +113,10 @@ const blockTypePlugin = ({
113
113
  name: 'blockType',
114
114
  nodes() {
115
115
  const blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
116
+ const headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
116
117
  const nodes = [{
117
118
  name: 'heading',
118
- node: heading
119
+ node: headingNode
119
120
  }, {
120
121
  name: 'blockquote',
121
122
  node: blockquoteNode
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
- import { blockquote, blockquoteWithList, hardBreak, heading } from '@atlaskit/adf-schema';
3
+ import { blockquote, blockquoteWithList, hardBreak, heading, headingStage0 } from '@atlaskit/adf-schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
6
6
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
@@ -114,9 +114,10 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
114
114
  name: 'blockType',
115
115
  nodes: function nodes() {
116
116
  var blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
117
+ var headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
117
118
  var nodes = [{
118
119
  name: 'heading',
119
- node: heading
120
+ node: headingNode
120
121
  }, {
121
122
  name: 'blockquote',
122
123
  node: blockquoteNode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/adf-schema": "^36.10.7",
39
- "@atlaskit/editor-common": "^82.0.0",
39
+ "@atlaskit/editor-common": "^82.3.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
41
41
  "@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
42
42
  "@atlaskit/editor-prosemirror": "4.0.1",
@@ -45,8 +45,8 @@
45
45
  "@atlaskit/icon": "^22.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.2.5",
47
47
  "@atlaskit/prosemirror-input-rules": "^3.1.0",
48
- "@atlaskit/theme": "^12.8.0",
49
- "@atlaskit/tokens": "^1.49.0",
48
+ "@atlaskit/theme": "^12.9.0",
49
+ "@atlaskit/tokens": "^1.50.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },
@@ -104,6 +104,9 @@
104
104
  "platform-feature-flags": {
105
105
  "platform.editor.allow-list-in-blockquote": {
106
106
  "type": "boolean"
107
+ },
108
+ "platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
109
+ "type": "boolean"
107
110
  }
108
111
  }
109
112
  }