@atlaskit/editor-plugin-block-type 3.2.1 → 3.3.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 +16 -0
- package/dist/cjs/plugin/index.js +2 -1
- package/dist/es2019/plugin/index.js +3 -2
- package/dist/esm/plugin/index.js +3 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
2
2
|
|
3
|
+
## 3.3.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#102243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102243)
|
8
|
+
[`cfc95dac3d82`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cfc95dac3d82) -
|
9
|
+
Use new paragraph and heading NodeSpecs
|
10
|
+
|
11
|
+
## 3.2.2
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
16
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
17
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
18
|
+
|
3
19
|
## 3.2.1
|
4
20
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/plugin/index.js
CHANGED
@@ -108,9 +108,10 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
108
108
|
name: 'blockType',
|
109
109
|
nodes: function nodes() {
|
110
110
|
var blockquoteNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-list-in-blockquote') ? _adfSchema.blockquoteWithList : _adfSchema.blockquote;
|
111
|
+
var headingNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? _adfSchema.headingStage0 : _adfSchema.heading;
|
111
112
|
var nodes = [{
|
112
113
|
name: 'heading',
|
113
|
-
node:
|
114
|
+
node: headingNode
|
114
115
|
}, {
|
115
116
|
name: 'blockquote',
|
116
117
|
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';
|
@@ -92,9 +92,10 @@ const blockTypePlugin = ({
|
|
92
92
|
name: 'blockType',
|
93
93
|
nodes() {
|
94
94
|
const blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
|
95
|
+
const headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
|
95
96
|
const nodes = [{
|
96
97
|
name: 'heading',
|
97
|
-
node:
|
98
|
+
node: headingNode
|
98
99
|
}, {
|
99
100
|
name: 'blockquote',
|
100
101
|
node: blockquoteNode
|
package/dist/esm/plugin/index.js
CHANGED
@@ -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';
|
@@ -95,9 +95,10 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
|
|
95
95
|
name: 'blockType',
|
96
96
|
nodes: function nodes() {
|
97
97
|
var blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
|
98
|
+
var headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
|
98
99
|
var nodes = [{
|
99
100
|
name: 'heading',
|
100
|
-
node:
|
101
|
+
node: headingNode
|
101
102
|
}, {
|
102
103
|
name: 'blockquote',
|
103
104
|
node: blockquoteNode
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.0",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,17 +35,17 @@
|
|
35
35
|
"./styles": "./src/styles.ts"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@atlaskit/adf-schema": "^36.
|
38
|
+
"@atlaskit/adf-schema": "^36.8.0",
|
39
39
|
"@atlaskit/editor-common": "^80.4.0",
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.11.0",
|
43
43
|
"@atlaskit/editor-tables": "^2.7.0",
|
44
|
-
"@atlaskit/icon": "^22.
|
44
|
+
"@atlaskit/icon": "^22.3.0",
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
47
47
|
"@atlaskit/theme": "^12.8.0",
|
48
|
-
"@atlaskit/tokens": "^1.
|
48
|
+
"@atlaskit/tokens": "^1.49.0",
|
49
49
|
"@babel/runtime": "^7.0.0",
|
50
50
|
"@emotion/react": "^11.7.1"
|
51
51
|
},
|
@@ -105,6 +105,9 @@
|
|
105
105
|
"platform-feature-flags": {
|
106
106
|
"platform.editor.allow-list-in-blockquote": {
|
107
107
|
"type": "boolean"
|
108
|
+
},
|
109
|
+
"platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
|
110
|
+
"type": "boolean"
|
108
111
|
}
|
109
112
|
}
|
110
113
|
}
|