@atlaskit/editor-plugin-block-type 20.1.4 → 20.1.6

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
+ ## 20.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 20.1.4
4
16
 
5
17
  ### Patch Changes
@@ -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 _adfSchema = require("@atlaskit/adf-schema");
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: _adfSchema.heading
163
+ node: _heading.heading
161
164
  }, {
162
165
  name: 'blockquote',
163
- node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _adfSchema.extendedBlockquoteWithLocalId : _adfSchema.extendedBlockquote
166
+ node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _blockquote.extendedBlockquoteWithLocalId : _blockquote.extendedBlockquote
164
167
  }, {
165
168
  name: 'hardBreak',
166
- node: _adfSchema.hardBreak
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: _adfSchema.fontSize
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, fontSize, hardBreak, heading } from '@atlaskit/adf-schema';
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, fontSize, hardBreak, heading } from '@atlaskit/adf-schema';
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.4",
3
+ "version": "20.1.6",
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.0.0",
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,14 +43,14 @@
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": "^172.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^174.0.0",
47
47
  "@atlaskit/tokens": "^16.11.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^120.11.0",
53
+ "@atlaskit/editor-common": "^120.12.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"