@atlaskit/editor-plugin-block-type 3.6.1 → 3.7.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 +12 -0
- package/dist/cjs/plugin/index.js +1 -2
- package/dist/cjs/plugin/styles.js +1 -1
- package/dist/cjs/plugin/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/cjs/plugin/ui/ToolbarBlockType/index.js +1 -1
- package/dist/cjs/plugin/ui/ToolbarBlockType/styled.js +1 -0
- package/dist/es2019/plugin/index.js +2 -3
- package/dist/es2019/plugin/styles.js +1 -0
- package/dist/es2019/plugin/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/es2019/plugin/ui/ToolbarBlockType/index.js +2 -0
- package/dist/es2019/plugin/ui/ToolbarBlockType/styled.js +1 -0
- package/dist/esm/plugin/index.js +2 -3
- package/dist/esm/plugin/styles.js +1 -0
- package/dist/esm/plugin/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/esm/plugin/ui/ToolbarBlockType/index.js +2 -0
- package/dist/esm/plugin/ui/ToolbarBlockType/styled.js +1 -0
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
2
2
|
|
3
|
+
## 3.7.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
8
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
9
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- Updated dependencies
|
14
|
+
|
3
15
|
## 3.6.1
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin/index.js
CHANGED
@@ -127,10 +127,9 @@ 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;
|
131
130
|
var nodes = [{
|
132
131
|
name: 'heading',
|
133
|
-
node:
|
132
|
+
node: _adfSchema.heading
|
134
133
|
}, {
|
135
134
|
name: 'blockquote',
|
136
135
|
node: blockquoteNode
|
@@ -8,7 +8,7 @@ exports.blocktypeStyles = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
9
9
|
var _react = require("@emotion/react");
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
11
|
-
var _templateObject;
|
11
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
13
13
|
var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles() {
|
14
14
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)());
|
@@ -17,6 +17,8 @@ var _blockTypes = require("../../block-types");
|
|
17
17
|
var _styled = require("./styled");
|
18
18
|
/** @jsx jsx */
|
19
19
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
21
|
+
|
20
22
|
var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props) {
|
21
23
|
var blockTypeName = props.blockTypeName || '';
|
22
24
|
var labelTextStyles = props.formatMessage(_messages.toolbarMessages.textStyles, {
|
@@ -24,7 +24,7 @@ var _styled = require("./styled");
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
27
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
28
28
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
29
29
|
var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
30
30
|
(0, _inherits2.default)(ToolbarBlockType, _React$PureComponent);
|
@@ -9,6 +9,7 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
9
9
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
11
11
|
/** @jsx jsx */
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
12
13
|
|
13
14
|
var blockTypeMenuItemStyle = exports.blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
|
14
15
|
// TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { blockquote, blockquoteWithList, hardBreak, heading
|
2
|
+
import { blockquote, blockquoteWithList, hardBreak, heading } 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, tooltip } from '@atlaskit/editor-common/keymaps';
|
5
5
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
@@ -113,10 +113,9 @@ 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;
|
117
116
|
const nodes = [{
|
118
117
|
name: 'heading',
|
119
|
-
node:
|
118
|
+
node: heading
|
120
119
|
}, {
|
121
120
|
name: 'blockquote',
|
122
121
|
node: blockquoteNode
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/** @jsx jsx */
|
2
2
|
import React from 'react';
|
3
|
+
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
3
5
|
import { jsx } from '@emotion/react';
|
4
6
|
import { FormattedMessage } from 'react-intl-next';
|
5
7
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
/** @jsx jsx */
|
3
3
|
import React from 'react';
|
4
|
+
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
4
6
|
import { jsx } from '@emotion/react';
|
5
7
|
import { injectIntl } from 'react-intl-next';
|
6
8
|
import { findKeymapByDescription, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/** @jsx jsx */
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
2
3
|
import { css } from '@emotion/react';
|
3
4
|
import { headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
4
5
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
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
|
3
|
+
import { blockquote, blockquoteWithList, hardBreak, heading } 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, tooltip } from '@atlaskit/editor-common/keymaps';
|
6
6
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
@@ -114,10 +114,9 @@ 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;
|
118
117
|
var nodes = [{
|
119
118
|
name: 'heading',
|
120
|
-
node:
|
119
|
+
node: heading
|
121
120
|
}, {
|
122
121
|
name: 'blockquote',
|
123
122
|
node: blockquoteNode
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
2
|
var _templateObject;
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
3
4
|
import { css } from '@emotion/react';
|
4
5
|
import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
5
6
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/** @jsx jsx */
|
2
2
|
import React from 'react';
|
3
|
+
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
3
5
|
import { jsx } from '@emotion/react';
|
4
6
|
import { FormattedMessage } from 'react-intl-next';
|
5
7
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
@@ -11,6 +11,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
12
12
|
/** @jsx jsx */
|
13
13
|
import React from 'react';
|
14
|
+
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
14
16
|
import { jsx } from '@emotion/react';
|
15
17
|
import { injectIntl } from 'react-intl-next';
|
16
18
|
import { findKeymapByDescription, getAriaKeyshortcuts, tooltip } from '@atlaskit/editor-common/keymaps';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/** @jsx jsx */
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
2
3
|
import { css } from '@emotion/react';
|
3
4
|
import { headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
4
5
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.7.0",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,18 +35,18 @@
|
|
35
35
|
"./styles": "./src/styles.ts"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@atlaskit/adf-schema": "^
|
39
|
-
"@atlaskit/editor-common": "^82.
|
40
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
38
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
39
|
+
"@atlaskit/editor-common": "^82.12.0",
|
40
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
42
42
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
43
43
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
44
44
|
"@atlaskit/editor-tables": "^2.7.0",
|
45
|
-
"@atlaskit/icon": "^22.
|
45
|
+
"@atlaskit/icon": "^22.4.0",
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
48
|
-
"@atlaskit/theme": "^12.
|
49
|
-
"@atlaskit/tokens": "^1.
|
48
|
+
"@atlaskit/theme": "^12.11.0",
|
49
|
+
"@atlaskit/tokens": "^1.53.0",
|
50
50
|
"@babel/runtime": "^7.0.0",
|
51
51
|
"@emotion/react": "^11.7.1"
|
52
52
|
},
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"@atlaskit/analytics-next": "^9.3.0",
|
60
60
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
61
61
|
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
62
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
62
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
63
63
|
"@atlaskit/ssr": "*",
|
64
64
|
"@atlaskit/visual-regression": "*",
|
65
65
|
"@testing-library/react": "^12.1.5",
|
@@ -104,9 +104,6 @@
|
|
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"
|
110
107
|
}
|
111
108
|
}
|
112
109
|
}
|