@atlaskit/editor-plugin-block-type 12.1.7 → 12.1.8
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 +6 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +4 -1
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +4 -1
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -74,7 +74,9 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
|
|
|
74
74
|
color: "currentColor",
|
|
75
75
|
size: "small"
|
|
76
76
|
}))))
|
|
77
|
-
}, !shouldUseIconAsButton && (0, _react2.jsx)(_primitives.Box
|
|
77
|
+
}, !shouldUseIconAsButton && (0, _react2.jsx)(_primitives.Box
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
, {
|
|
78
80
|
xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
|
|
79
81
|
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage
|
|
80
82
|
// Ignored via go/ees005
|
|
@@ -253,12 +253,15 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
253
253
|
scrollableElement: popupsScrollableElement,
|
|
254
254
|
zIndex: _editorSharedStyles.akEditorMenuZIndex,
|
|
255
255
|
fitHeight: 360,
|
|
256
|
-
fitWidth: 106
|
|
256
|
+
fitWidth: 106
|
|
257
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
|
+
,
|
|
257
259
|
section: {
|
|
258
260
|
hasSeparator: true
|
|
259
261
|
},
|
|
260
262
|
shouldUseDefaultRole: shouldUseDefaultRole
|
|
261
263
|
// hasSeparator={true}
|
|
264
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
262
265
|
,
|
|
263
266
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
264
267
|
if (isOpenedByKeyboard) {
|
|
@@ -65,7 +65,9 @@ export const BlockTypeButton = props => {
|
|
|
65
65
|
color: "currentColor",
|
|
66
66
|
size: "small"
|
|
67
67
|
}))))
|
|
68
|
-
}, !shouldUseIconAsButton && jsx(Box
|
|
68
|
+
}, !shouldUseIconAsButton && jsx(Box
|
|
69
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
70
|
+
, {
|
|
69
71
|
xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
|
|
70
72
|
}, jsx(FormattedMessage
|
|
71
73
|
// Ignored via go/ees005
|
|
@@ -223,12 +223,15 @@ class ToolbarBlockType extends React.PureComponent {
|
|
|
223
223
|
scrollableElement: popupsScrollableElement,
|
|
224
224
|
zIndex: akEditorMenuZIndex,
|
|
225
225
|
fitHeight: 360,
|
|
226
|
-
fitWidth: 106
|
|
226
|
+
fitWidth: 106
|
|
227
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
228
|
+
,
|
|
227
229
|
section: {
|
|
228
230
|
hasSeparator: true
|
|
229
231
|
},
|
|
230
232
|
shouldUseDefaultRole: shouldUseDefaultRole
|
|
231
233
|
// hasSeparator={true}
|
|
234
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
232
235
|
,
|
|
233
236
|
shouldFocusFirstItem: () => {
|
|
234
237
|
if (isOpenedByKeyboard) {
|
|
@@ -65,7 +65,9 @@ export var BlockTypeButton = function BlockTypeButton(props) {
|
|
|
65
65
|
color: "currentColor",
|
|
66
66
|
size: "small"
|
|
67
67
|
}))))
|
|
68
|
-
}, !shouldUseIconAsButton && jsx(Box
|
|
68
|
+
}, !shouldUseIconAsButton && jsx(Box
|
|
69
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
70
|
+
, {
|
|
69
71
|
xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
|
|
70
72
|
}, jsx(FormattedMessage
|
|
71
73
|
// Ignored via go/ees005
|
|
@@ -249,12 +249,15 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
249
249
|
scrollableElement: popupsScrollableElement,
|
|
250
250
|
zIndex: akEditorMenuZIndex,
|
|
251
251
|
fitHeight: 360,
|
|
252
|
-
fitWidth: 106
|
|
252
|
+
fitWidth: 106
|
|
253
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
254
|
+
,
|
|
253
255
|
section: {
|
|
254
256
|
hasSeparator: true
|
|
255
257
|
},
|
|
256
258
|
shouldUseDefaultRole: shouldUseDefaultRole
|
|
257
259
|
// hasSeparator={true}
|
|
260
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
261
|
,
|
|
259
262
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
260
263
|
if (isOpenedByKeyboard) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.8",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
51
51
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
52
52
|
"@atlaskit/theme": "^22.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^11.1.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@compiled/react": "^0.20.0",
|