@atlaskit/editor-plugin-block-type 3.6.0 → 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 CHANGED
@@ -1,5 +1,25 @@
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
+
15
+ ## 3.6.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#111357](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111357)
20
+ [`cf6122614ec5f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cf6122614ec5f) -
21
+ [ux] Adjusted the shortcut displayed for block quote on quick insert dropdown.
22
+
3
23
  ## 3.6.0
4
24
 
5
25
  ### Minor Changes
@@ -82,7 +82,7 @@ var blockquotePluginOptions = function blockquotePluginOptions(_ref2, isAllowed,
82
82
  title: formatMessage(_messages.blockTypeMessages.blockquote),
83
83
  description: formatMessage(_messages.blockTypeMessages.blockquoteDescription),
84
84
  priority: 1300,
85
- keyshortcut: (0, _keymaps.tooltip)(_keymaps.toggleBlockQuote),
85
+ keyshortcut: '>',
86
86
  icon: function icon() {
87
87
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconQuote, null);
88
88
  },
@@ -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: headingNode
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, {
@@ -37,22 +39,22 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
37
39
  "aria-haspopup": true,
38
40
  "aria-expanded": props['aria-expanded'],
39
41
  iconAfter: (0, _react2.jsx)("span", {
40
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
42
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
41
43
  css: [_styles.wrapperStyle, props.isSmall && _styled.wrapperSmallStyle],
42
44
  "data-testid": "toolbar-block-type-text-styles-icon"
43
45
  }, props.isSmall && (0, _react2.jsx)(_textStyle.default, {
44
46
  label: labelTextStyles
45
47
  }), (0, _react2.jsx)("span", {
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
48
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
49
  css: _styled.expandIconWrapperStyle
48
50
  }, (0, _react2.jsx)(_chevronDown.default, {
49
51
  label: ""
50
52
  })))
51
53
  }, !props.isSmall && (0, _react2.jsx)("span", {
52
54
  css: [
53
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
55
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
54
56
  _styled.buttonContentStyle,
55
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
57
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
56
58
  props.isReducedSpacing && _styled.buttonContentReducedSpacingStyle]
57
59
  }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, props.title || _blockTypes.NORMAL_TEXT.title)));
58
60
  };
@@ -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);
@@ -74,7 +74,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
74
74
  var keyMap = (0, _keymaps.findKeymapByDescription)(blockType.title.defaultMessage);
75
75
  return {
76
76
  content:
77
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
77
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
78
78
  (0, _react2.jsx)("div", {
79
79
  css: (0, _styled.blockTypeMenuItemStyle)(tagName, isActive)
80
80
  }, (0, _react2.jsx)(Tag, null, formatMessage(blockType.title))),
@@ -84,7 +84,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
84
84
  keyShortcuts: (0, _keymaps.getAriaKeyshortcuts)(keyMap),
85
85
  key: "".concat(blockType.name, "-").concat(index),
86
86
  elemAfter:
87
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
87
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
88
88
  (0, _react2.jsx)("div", {
89
89
  css: [_styled.keyboardShortcut, isActive && _styled.keyboardShortcutSelect]
90
90
  }, (0, _keymaps.tooltip)(keyMap)),
@@ -143,7 +143,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
143
143
  if (!this.props.isDisabled && !blockTypesDisabled) {
144
144
  var items = this.createItems();
145
145
  return (
146
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
146
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
147
147
  (0, _react2.jsx)("span", {
148
148
  css: _styles.wrapperStyle
149
149
  }, (0, _react2.jsx)(_uiMenu.DropdownMenuWithKeyboardNavigation, {
@@ -179,13 +179,13 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
179
179
  "aria-expanded": active,
180
180
  blockTypeName: currentBlockType.name
181
181
  })), !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _react2.jsx)("span", {
182
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
182
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
183
183
  css: _styles.separatorStyles
184
184
  }))
185
185
  );
186
186
  }
187
187
  return (
188
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
188
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
189
189
  (0, _react2.jsx)("span", {
190
190
  css: _styles.wrapperStyle
191
191
  }, (0, _react2.jsx)(_blocktypeButton.BlockTypeButton, {
@@ -200,7 +200,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
200
200
  "aria-expanded": active,
201
201
  blockTypeName: currentBlockType.name
202
202
  }), !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _react2.jsx)("span", {
203
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
203
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
204
204
  css: _styles.separatorStyles
205
205
  }))
206
206
  );
@@ -9,27 +9,40 @@ 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
15
16
  var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
16
17
  return function () {
17
- return (0, _react.css)((0, _styles.headingsSharedStyles)(), {
18
+ return (0, _react.css)(
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
20
+ (0, _styles.headingsSharedStyles)(), {
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
18
22
  '>': {
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
19
24
  'h1, h2, h3, h4, h5, h6': {
20
25
  marginTop: 0
21
26
  }
22
27
  }
23
- }, selectedStyle);
28
+ },
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
+ selectedStyle);
24
31
  };
25
32
  };
33
+
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
35
  var keyboardShortcut = exports.keyboardShortcut = (0, _react.css)(_shortcut.shortcutStyle, {
27
36
  marginLeft: "var(--ds-space-200, 16px)",
28
37
  color: "var(--ds-icon, ".concat(_colors.N400, ")")
29
38
  });
39
+
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
30
41
  var keyboardShortcutSelect = exports.keyboardShortcutSelect = (0, _react.css)({
31
42
  color: "var(--ds-icon, ".concat(_colors.N400, ")")
32
43
  });
44
+
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
33
46
  var buttonContentStyle = exports.buttonContentStyle = (0, _react.css)({
34
47
  display: 'flex',
35
48
  minWidth: '80px',
@@ -39,13 +52,19 @@ var buttonContentStyle = exports.buttonContentStyle = (0, _react.css)({
39
52
  flexDirection: 'column',
40
53
  padding: "var(--ds-space-075, 6px)"
41
54
  });
55
+
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
42
57
  var buttonContentReducedSpacingStyle = exports.buttonContentReducedSpacingStyle = (0, _react.css)({
43
58
  padding: "var(--ds-space-100, 8px)"
44
59
  });
60
+
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
45
62
  var wrapperSmallStyle = exports.wrapperSmallStyle = (0, _react.css)({
46
63
  marginLeft: "var(--ds-space-050, 4px)",
47
64
  minWidth: '40px'
48
65
  });
66
+
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
49
68
  var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)({
50
69
  marginLeft: "var(--ds-space-negative-100, -8px)"
51
70
  });
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { blockquote, blockquoteWithList, hardBreak, heading, headingStage0 } from '@atlaskit/adf-schema';
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
- import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
4
+ import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconHeading, IconQuote } from '@atlaskit/editor-common/quick-insert';
7
7
  import { ToolbarSize } from '@atlaskit/editor-common/types';
@@ -68,7 +68,7 @@ const blockquotePluginOptions = ({
68
68
  title: formatMessage(messages.blockquote),
69
69
  description: formatMessage(messages.blockquoteDescription),
70
70
  priority: 1300,
71
- keyshortcut: tooltip(toggleBlockQuote),
71
+ keyshortcut: '>',
72
72
  icon: () => /*#__PURE__*/React.createElement(IconQuote, null),
73
73
  action(insert, state) {
74
74
  const tr = insert(state.schema.nodes.blockquote.createChecked({}, state.schema.nodes.paragraph.createChecked()));
@@ -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: headingNode
118
+ node: heading
120
119
  }, {
121
120
  name: 'blockquote',
122
121
  node: blockquoteNode
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
3
4
 
@@ -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';
@@ -29,22 +31,22 @@ export const BlockTypeButton = props => {
29
31
  "aria-haspopup": true,
30
32
  "aria-expanded": props['aria-expanded'],
31
33
  iconAfter: jsx("span", {
32
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
34
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
35
  css: [wrapperStyle, props.isSmall && wrapperSmallStyle],
34
36
  "data-testid": "toolbar-block-type-text-styles-icon"
35
37
  }, props.isSmall && jsx(TextStyleIcon, {
36
38
  label: labelTextStyles
37
39
  }), jsx("span", {
38
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
40
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
39
41
  css: expandIconWrapperStyle
40
42
  }, jsx(ExpandIcon, {
41
43
  label: ""
42
44
  })))
43
45
  }, !props.isSmall && jsx("span", {
44
46
  css: [
45
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
48
  buttonContentStyle,
47
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
49
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
50
  props.isReducedSpacing && buttonContentReducedSpacingStyle]
49
51
  }, jsx(FormattedMessage, props.title || NORMAL_TEXT.title)));
50
52
  };
@@ -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';
@@ -57,7 +59,7 @@ class ToolbarBlockType extends React.PureComponent {
57
59
  const keyMap = findKeymapByDescription(blockType.title.defaultMessage);
58
60
  return {
59
61
  content:
60
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
62
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
63
  jsx("div", {
62
64
  css: blockTypeMenuItemStyle(tagName, isActive)
63
65
  }, jsx(Tag, null, formatMessage(blockType.title))),
@@ -67,7 +69,7 @@ class ToolbarBlockType extends React.PureComponent {
67
69
  keyShortcuts: getAriaKeyshortcuts(keyMap),
68
70
  key: `${blockType.name}-${index}`,
69
71
  elemAfter:
70
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
72
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
71
73
  jsx("div", {
72
74
  css: [keyboardShortcut, isActive && keyboardShortcutSelect]
73
75
  }, tooltip(keyMap)),
@@ -122,7 +124,7 @@ class ToolbarBlockType extends React.PureComponent {
122
124
  if (!this.props.isDisabled && !blockTypesDisabled) {
123
125
  const items = this.createItems();
124
126
  return (
125
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
127
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
126
128
  jsx("span", {
127
129
  css: wrapperStyle
128
130
  }, jsx(DropdownMenu, {
@@ -159,13 +161,13 @@ class ToolbarBlockType extends React.PureComponent {
159
161
  "aria-expanded": active,
160
162
  blockTypeName: currentBlockType.name
161
163
  })), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
162
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
164
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
163
165
  css: separatorStyles
164
166
  }))
165
167
  );
166
168
  }
167
169
  return (
168
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
170
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
169
171
  jsx("span", {
170
172
  css: wrapperStyle
171
173
  }, jsx(BlockTypeButton, {
@@ -180,7 +182,7 @@ class ToolbarBlockType extends React.PureComponent {
180
182
  "aria-expanded": active,
181
183
  blockTypeName: currentBlockType.name
182
184
  }), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
183
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
185
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
184
186
  css: separatorStyles
185
187
  }))
186
188
  );
@@ -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';
@@ -6,21 +7,33 @@ import { N400 } from '@atlaskit/theme/colors';
6
7
  export const blockTypeMenuItemStyle = (tagName, selected) => {
7
8
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
8
9
  const selectedStyle = selected ? `${tagName} { color: ${"var(--ds-text, white)"} !important; }` : '';
9
- return () => css(headingsSharedStyles(), {
10
+ return () => css(
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
+ headingsSharedStyles(), {
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
10
14
  '>': {
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
11
16
  'h1, h2, h3, h4, h5, h6': {
12
17
  marginTop: 0
13
18
  }
14
19
  }
15
- }, selectedStyle);
20
+ },
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
+ selectedStyle);
16
23
  };
24
+
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
26
  export const keyboardShortcut = css(shortcutStyle, {
18
27
  marginLeft: "var(--ds-space-200, 16px)",
19
28
  color: `var(--ds-icon, ${N400})`
20
29
  });
30
+
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
21
32
  export const keyboardShortcutSelect = css({
22
33
  color: `var(--ds-icon, ${N400})`
23
34
  });
35
+
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
24
37
  export const buttonContentStyle = css({
25
38
  display: 'flex',
26
39
  minWidth: '80px',
@@ -30,13 +43,19 @@ export const buttonContentStyle = css({
30
43
  flexDirection: 'column',
31
44
  padding: "var(--ds-space-075, 6px)"
32
45
  });
46
+
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
33
48
  export const buttonContentReducedSpacingStyle = css({
34
49
  padding: "var(--ds-space-100, 8px)"
35
50
  });
51
+
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
36
53
  export const wrapperSmallStyle = css({
37
54
  marginLeft: "var(--ds-space-050, 4px)",
38
55
  minWidth: '40px'
39
56
  });
57
+
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
40
59
  export const expandIconWrapperStyle = css({
41
60
  marginLeft: "var(--ds-space-negative-100, -8px)"
42
61
  });
@@ -1,8 +1,8 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
- import { blockquote, blockquoteWithList, hardBreak, heading, headingStage0 } from '@atlaskit/adf-schema';
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
- import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
5
+ import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
6
6
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
7
7
  import { IconHeading, IconQuote } from '@atlaskit/editor-common/quick-insert';
8
8
  import { ToolbarSize } from '@atlaskit/editor-common/types';
@@ -69,7 +69,7 @@ var blockquotePluginOptions = function blockquotePluginOptions(_ref2, isAllowed,
69
69
  title: formatMessage(messages.blockquote),
70
70
  description: formatMessage(messages.blockquoteDescription),
71
71
  priority: 1300,
72
- keyshortcut: tooltip(toggleBlockQuote),
72
+ keyshortcut: '>',
73
73
  icon: function icon() {
74
74
  return /*#__PURE__*/React.createElement(IconQuote, null);
75
75
  },
@@ -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: headingNode
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';
@@ -29,22 +31,22 @@ export var BlockTypeButton = function BlockTypeButton(props) {
29
31
  "aria-haspopup": true,
30
32
  "aria-expanded": props['aria-expanded'],
31
33
  iconAfter: jsx("span", {
32
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
34
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
35
  css: [wrapperStyle, props.isSmall && wrapperSmallStyle],
34
36
  "data-testid": "toolbar-block-type-text-styles-icon"
35
37
  }, props.isSmall && jsx(TextStyleIcon, {
36
38
  label: labelTextStyles
37
39
  }), jsx("span", {
38
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
40
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
39
41
  css: expandIconWrapperStyle
40
42
  }, jsx(ExpandIcon, {
41
43
  label: ""
42
44
  })))
43
45
  }, !props.isSmall && jsx("span", {
44
46
  css: [
45
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
48
  buttonContentStyle,
47
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
49
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
50
  props.isReducedSpacing && buttonContentReducedSpacingStyle]
49
51
  }, jsx(FormattedMessage, props.title || NORMAL_TEXT.title)));
50
52
  };
@@ -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';
@@ -68,7 +70,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
68
70
  var keyMap = findKeymapByDescription(blockType.title.defaultMessage);
69
71
  return {
70
72
  content:
71
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
73
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
72
74
  jsx("div", {
73
75
  css: blockTypeMenuItemStyle(tagName, isActive)
74
76
  }, jsx(Tag, null, formatMessage(blockType.title))),
@@ -78,7 +80,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
78
80
  keyShortcuts: getAriaKeyshortcuts(keyMap),
79
81
  key: "".concat(blockType.name, "-").concat(index),
80
82
  elemAfter:
81
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
83
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
82
84
  jsx("div", {
83
85
  css: [keyboardShortcut, isActive && keyboardShortcutSelect]
84
86
  }, tooltip(keyMap)),
@@ -137,7 +139,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
137
139
  if (!this.props.isDisabled && !blockTypesDisabled) {
138
140
  var items = this.createItems();
139
141
  return (
140
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
142
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
141
143
  jsx("span", {
142
144
  css: wrapperStyle
143
145
  }, jsx(DropdownMenu, {
@@ -173,13 +175,13 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
173
175
  "aria-expanded": active,
174
176
  blockTypeName: currentBlockType.name
175
177
  })), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
176
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
178
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
177
179
  css: separatorStyles
178
180
  }))
179
181
  );
180
182
  }
181
183
  return (
182
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
184
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
183
185
  jsx("span", {
184
186
  css: wrapperStyle
185
187
  }, jsx(BlockTypeButton, {
@@ -194,7 +196,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
194
196
  "aria-expanded": active,
195
197
  blockTypeName: currentBlockType.name
196
198
  }), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
197
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
199
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
198
200
  css: separatorStyles
199
201
  }))
200
202
  );
@@ -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';
@@ -7,22 +8,34 @@ export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, sel
7
8
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
8
9
  var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
9
10
  return function () {
10
- return css(headingsSharedStyles(), {
11
+ return css(
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
13
+ headingsSharedStyles(), {
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
11
15
  '>': {
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
12
17
  'h1, h2, h3, h4, h5, h6': {
13
18
  marginTop: 0
14
19
  }
15
20
  }
16
- }, selectedStyle);
21
+ },
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
+ selectedStyle);
17
24
  };
18
25
  };
26
+
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
28
  export var keyboardShortcut = css(shortcutStyle, {
20
29
  marginLeft: "var(--ds-space-200, 16px)",
21
30
  color: "var(--ds-icon, ".concat(N400, ")")
22
31
  });
32
+
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
23
34
  export var keyboardShortcutSelect = css({
24
35
  color: "var(--ds-icon, ".concat(N400, ")")
25
36
  });
37
+
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
26
39
  export var buttonContentStyle = css({
27
40
  display: 'flex',
28
41
  minWidth: '80px',
@@ -32,13 +45,19 @@ export var buttonContentStyle = css({
32
45
  flexDirection: 'column',
33
46
  padding: "var(--ds-space-075, 6px)"
34
47
  });
48
+
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
35
50
  export var buttonContentReducedSpacingStyle = css({
36
51
  padding: "var(--ds-space-100, 8px)"
37
52
  });
53
+
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
38
55
  export var wrapperSmallStyle = css({
39
56
  marginLeft: "var(--ds-space-050, 4px)",
40
57
  minWidth: '40px'
41
58
  });
59
+
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
42
61
  export var expandIconWrapperStyle = css({
43
62
  marginLeft: "var(--ds-space-negative-100, -8px)"
44
63
  });
package/package.json CHANGED
@@ -1,112 +1,109 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "3.6.0",
4
- "description": "BlockType plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Lego",
12
- "singleton": true,
13
- "inPublicMirror": false,
14
- "releaseModel": "continuous",
15
- "runReact18": false
16
- },
17
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
- "main": "dist/cjs/index.js",
19
- "module": "dist/esm/index.js",
20
- "module:es2019": "dist/es2019/index.js",
21
- "types": "dist/types/index.d.ts",
22
- "typesVersions": {
23
- ">=4.5 <4.9": {
24
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
- "sideEffects": false,
31
- "atlaskit:src": "src/index.ts",
32
- "af:exports": {
33
- ".": "./src/index.ts",
34
- "./consts": "./src/consts.ts",
35
- "./styles": "./src/styles.ts"
36
- },
37
- "dependencies": {
38
- "@atlaskit/adf-schema": "^36.10.7",
39
- "@atlaskit/editor-common": "^82.3.0",
40
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
41
- "@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
42
- "@atlaskit/editor-prosemirror": "4.0.1",
43
- "@atlaskit/editor-shared-styles": "^2.12.0",
44
- "@atlaskit/editor-tables": "^2.7.0",
45
- "@atlaskit/icon": "^22.3.0",
46
- "@atlaskit/platform-feature-flags": "^0.2.5",
47
- "@atlaskit/prosemirror-input-rules": "^3.1.0",
48
- "@atlaskit/theme": "^12.9.0",
49
- "@atlaskit/tokens": "^1.50.0",
50
- "@babel/runtime": "^7.0.0",
51
- "@emotion/react": "^11.7.1"
52
- },
53
- "peerDependencies": {
54
- "react": "^16.8.0",
55
- "react-intl-next": "npm:react-intl@^5.18.1"
56
- },
57
- "devDependencies": {
58
- "@af/visual-regression": "*",
59
- "@atlaskit/analytics-next": "^9.3.0",
60
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
61
- "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
63
- "@atlaskit/ssr": "*",
64
- "@atlaskit/visual-regression": "*",
65
- "@testing-library/react": "^12.1.5",
66
- "@testing-library/user-event": "^14.4.3",
67
- "react-dom": "^16.8.0",
68
- "typescript": "~5.4.2",
69
- "wait-for-expect": "^1.2.0"
70
- },
71
- "techstack": {
72
- "@atlassian/frontend": {
73
- "import-structure": [
74
- "atlassian-conventions"
75
- ],
76
- "circular-dependencies": [
77
- "file-and-folder-level"
78
- ]
79
- },
80
- "@repo/internal": {
81
- "dom-events": "use-bind-event-listener",
82
- "analytics": [
83
- "analytics-next"
84
- ],
85
- "design-tokens": [
86
- "color"
87
- ],
88
- "theming": [
89
- "react-context"
90
- ],
91
- "ui-components": [
92
- "lite-mode"
93
- ],
94
- "deprecation": "no-deprecated-imports",
95
- "styling": [
96
- "emotion",
97
- "emotion"
98
- ],
99
- "imports": [
100
- "import-no-extraneous-disable-for-examples-and-docs"
101
- ]
102
- }
103
- },
104
- "platform-feature-flags": {
105
- "platform.editor.allow-list-in-blockquote": {
106
- "type": "boolean"
107
- },
108
- "platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
109
- "type": "boolean"
110
- }
111
- }
112
- }
2
+ "name": "@atlaskit/editor-plugin-block-type",
3
+ "version": "3.7.0",
4
+ "description": "BlockType plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Lego",
12
+ "singleton": true,
13
+ "inPublicMirror": false,
14
+ "releaseModel": "continuous",
15
+ "runReact18": false
16
+ },
17
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
+ "main": "dist/cjs/index.js",
19
+ "module": "dist/esm/index.js",
20
+ "module:es2019": "dist/es2019/index.js",
21
+ "types": "dist/types/index.d.ts",
22
+ "typesVersions": {
23
+ ">=4.5 <4.9": {
24
+ "*": [
25
+ "dist/types-ts4.5/*",
26
+ "dist/types-ts4.5/index.d.ts"
27
+ ]
28
+ }
29
+ },
30
+ "sideEffects": false,
31
+ "atlaskit:src": "src/index.ts",
32
+ "af:exports": {
33
+ ".": "./src/index.ts",
34
+ "./consts": "./src/consts.ts",
35
+ "./styles": "./src/styles.ts"
36
+ },
37
+ "dependencies": {
38
+ "@atlaskit/adf-schema": "^37.0.0",
39
+ "@atlaskit/editor-common": "^82.12.0",
40
+ "@atlaskit/editor-plugin-analytics": "^1.3.0",
41
+ "@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
42
+ "@atlaskit/editor-prosemirror": "4.0.1",
43
+ "@atlaskit/editor-shared-styles": "^2.12.0",
44
+ "@atlaskit/editor-tables": "^2.7.0",
45
+ "@atlaskit/icon": "^22.4.0",
46
+ "@atlaskit/platform-feature-flags": "^0.2.5",
47
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
48
+ "@atlaskit/theme": "^12.11.0",
49
+ "@atlaskit/tokens": "^1.53.0",
50
+ "@babel/runtime": "^7.0.0",
51
+ "@emotion/react": "^11.7.1"
52
+ },
53
+ "peerDependencies": {
54
+ "react": "^16.8.0",
55
+ "react-intl-next": "npm:react-intl@^5.18.1"
56
+ },
57
+ "devDependencies": {
58
+ "@af/visual-regression": "*",
59
+ "@atlaskit/analytics-next": "^9.3.0",
60
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
61
+ "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.3.0",
63
+ "@atlaskit/ssr": "*",
64
+ "@atlaskit/visual-regression": "*",
65
+ "@testing-library/react": "^12.1.5",
66
+ "@testing-library/user-event": "^14.4.3",
67
+ "react-dom": "^16.8.0",
68
+ "typescript": "~5.4.2",
69
+ "wait-for-expect": "^1.2.0"
70
+ },
71
+ "techstack": {
72
+ "@atlassian/frontend": {
73
+ "import-structure": [
74
+ "atlassian-conventions"
75
+ ],
76
+ "circular-dependencies": [
77
+ "file-and-folder-level"
78
+ ]
79
+ },
80
+ "@repo/internal": {
81
+ "dom-events": "use-bind-event-listener",
82
+ "analytics": [
83
+ "analytics-next"
84
+ ],
85
+ "design-tokens": [
86
+ "color"
87
+ ],
88
+ "theming": [
89
+ "react-context"
90
+ ],
91
+ "ui-components": [
92
+ "lite-mode"
93
+ ],
94
+ "deprecation": "no-deprecated-imports",
95
+ "styling": [
96
+ "emotion",
97
+ "emotion"
98
+ ],
99
+ "imports": [
100
+ "import-no-extraneous-disable-for-examples-and-docs"
101
+ ]
102
+ }
103
+ },
104
+ "platform-feature-flags": {
105
+ "platform.editor.allow-list-in-blockquote": {
106
+ "type": "boolean"
107
+ }
108
+ }
109
+ }