@atlaskit/editor-plugin-block-type 20.1.4 → 20.1.5
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
|
@@ -8,7 +8,10 @@ exports.blockTypePlugin = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _blockquote = require("@atlaskit/adf-schema/blockquote");
|
|
12
|
+
var _fontSize = require("@atlaskit/adf-schema/font-size");
|
|
13
|
+
var _hardBreak = require("@atlaskit/adf-schema/hard-break");
|
|
14
|
+
var _heading = require("@atlaskit/adf-schema/heading");
|
|
12
15
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
16
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
14
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
@@ -157,13 +160,13 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
|
157
160
|
nodes: function nodes() {
|
|
158
161
|
var nodes = [{
|
|
159
162
|
name: 'heading',
|
|
160
|
-
node:
|
|
163
|
+
node: _heading.heading
|
|
161
164
|
}, {
|
|
162
165
|
name: 'blockquote',
|
|
163
|
-
node: (0, _fg.fg)('platform_editor_adf_with_localid') ?
|
|
166
|
+
node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _blockquote.extendedBlockquoteWithLocalId : _blockquote.extendedBlockquote
|
|
164
167
|
}, {
|
|
165
168
|
name: 'hardBreak',
|
|
166
|
-
node:
|
|
169
|
+
node: _hardBreak.hardBreak
|
|
167
170
|
}];
|
|
168
171
|
if (options && options.allowBlockType) {
|
|
169
172
|
var exclude = options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
|
|
@@ -177,7 +180,7 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
|
177
180
|
if (options !== null && options !== void 0 && options.allowFontSize && (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true)) {
|
|
178
181
|
return [{
|
|
179
182
|
name: 'fontSize',
|
|
180
|
-
mark:
|
|
183
|
+
mark: _fontSize.fontSize
|
|
181
184
|
}];
|
|
182
185
|
}
|
|
183
186
|
return [];
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { extendedBlockquote, extendedBlockquoteWithLocalId
|
|
2
|
+
import { extendedBlockquote, extendedBlockquoteWithLocalId } from '@atlaskit/adf-schema/blockquote';
|
|
3
|
+
import { fontSize } from '@atlaskit/adf-schema/font-size';
|
|
4
|
+
import { hardBreak } from '@atlaskit/adf-schema/hard-break';
|
|
5
|
+
import { heading } from '@atlaskit/adf-schema/heading';
|
|
3
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
7
|
import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
5
8
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -3,7 +3,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { extendedBlockquote, extendedBlockquoteWithLocalId
|
|
6
|
+
import { extendedBlockquote, extendedBlockquoteWithLocalId } from '@atlaskit/adf-schema/blockquote';
|
|
7
|
+
import { fontSize } from '@atlaskit/adf-schema/font-size';
|
|
8
|
+
import { hardBreak } from '@atlaskit/adf-schema/hard-break';
|
|
9
|
+
import { heading } from '@atlaskit/adf-schema/heading';
|
|
7
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
11
|
import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
9
12
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.5",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
27
|
-
"@atlaskit/editor-plugin-block-menu": "^15.
|
|
27
|
+
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-interaction": "^27.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-list": "^18.1.0",
|
|
30
30
|
"@atlaskit/editor-plugin-primary-toolbar": "^17.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/primitives": "^22.5.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^16.11.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@compiled/react": "^1.0.2",
|