@atlaskit/editor-plugin-block-type 31.0.5 → 32.0.1
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/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +7 -4
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +5 -3
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +3 -1
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +3 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -14,7 +14,8 @@ var _plugins = require("@atlaskit/editor-common/styles/plugins");
|
|
|
14
14
|
var _ToolbarButton = _interopRequireDefault(require("@atlaskit/editor-common/ui-menu/ToolbarButton"));
|
|
15
15
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
16
16
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
17
|
-
var
|
|
17
|
+
var _box = require("@atlaskit/primitives/box");
|
|
18
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
18
19
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
19
20
|
var _blockTypes = require("../../block-types");
|
|
20
21
|
var _styled = require("./styled");
|
|
@@ -27,12 +28,14 @@ var _styled = require("./styled");
|
|
|
27
28
|
|
|
28
29
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
32
|
+
|
|
33
|
+
var buttonContentStyle = (0, _xcss.xcss)({
|
|
31
34
|
minWidth: "calc(80px + 2*".concat("var(--ds-space-075, 6px)", ")"),
|
|
32
35
|
overflow: 'hidden',
|
|
33
36
|
padding: 'space.075'
|
|
34
37
|
});
|
|
35
|
-
var buttonContentReducedSpacingStyle = (0,
|
|
38
|
+
var buttonContentReducedSpacingStyle = (0, _xcss.xcss)({
|
|
36
39
|
padding: 'space.100',
|
|
37
40
|
minWidth: "calc(80px + 2*".concat("var(--ds-space-100, 8px)", ")")
|
|
38
41
|
});
|
|
@@ -75,7 +78,7 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
|
|
|
75
78
|
color: "currentColor",
|
|
76
79
|
size: "small"
|
|
77
80
|
}))))
|
|
78
|
-
}, !shouldUseIconAsButton && (0, _react2.jsx)(
|
|
81
|
+
}, !shouldUseIconAsButton && (0, _react2.jsx)(_box.Box
|
|
79
82
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
83
|
, {
|
|
81
84
|
xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
|
|
@@ -20,7 +20,8 @@ var _plugins = require("@atlaskit/editor-common/styles/plugins");
|
|
|
20
20
|
var _DropdownMenu = require("@atlaskit/editor-common/ui-menu/DropdownMenu");
|
|
21
21
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
22
22
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
23
|
-
var
|
|
23
|
+
var _box = require("@atlaskit/primitives/box");
|
|
24
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
24
25
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
25
26
|
var _themeMutationObserver = require("@atlaskit/tokens/theme-mutation-observer");
|
|
26
27
|
var _blockTypes = require("../../block-types");
|
|
@@ -34,7 +35,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
34
35
|
* @jsx jsx
|
|
35
36
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
36
37
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
37
|
-
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
39
|
+
var buttonWrapperStyles = (0, _xcss.xcss)({
|
|
38
40
|
flexShrink: 0
|
|
39
41
|
});
|
|
40
42
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -270,7 +272,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
270
272
|
}
|
|
271
273
|
return isOpenedByKeyboard;
|
|
272
274
|
}
|
|
273
|
-
}, (0, _react2.jsx)(
|
|
275
|
+
}, (0, _react2.jsx)(_box.Box, {
|
|
274
276
|
xcss: buttonWrapperStyles
|
|
275
277
|
}, button)), !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _react2.jsx)("span", {
|
|
276
278
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -13,7 +13,9 @@ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
14
14
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
|
-
import { Box
|
|
16
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
17
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
20
|
import { NORMAL_TEXT } from '../../block-types';
|
|
19
21
|
import { wrapperSmallStyle } from './styled';
|
|
@@ -15,7 +15,9 @@ import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/ed
|
|
|
15
15
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
16
16
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
|
-
import { Box
|
|
18
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
19
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
20
22
|
import { ThemeMutationObserver } from '@atlaskit/tokens/theme-mutation-observer';
|
|
21
23
|
import { NORMAL_TEXT } from '../../block-types';
|
|
@@ -13,7 +13,9 @@ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
14
14
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
|
-
import { Box
|
|
16
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
17
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
20
|
import { NORMAL_TEXT } from '../../block-types';
|
|
19
21
|
import { wrapperSmallStyle } from './styled';
|
|
@@ -24,7 +24,9 @@ import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/ed
|
|
|
24
24
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
25
25
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
26
26
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
27
|
-
import { Box
|
|
27
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
29
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
28
30
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
29
31
|
import { ThemeMutationObserver } from '@atlaskit/tokens/theme-mutation-observer';
|
|
30
32
|
import { NORMAL_TEXT } from '../../block-types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.1",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
27
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
28
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
29
|
-
"@atlaskit/editor-plugin-list": "^
|
|
30
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
31
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
32
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
33
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^28.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-block-menu": "^27.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-interaction": "^42.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-list": "^30.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^29.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-selection": "^28.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^29.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-toolbar": "^25.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
35
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
35
|
+
"@atlaskit/editor-shared-styles": "^4.5.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
37
37
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
38
38
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
|
-
"@atlaskit/primitives": "^22.
|
|
43
|
+
"@atlaskit/primitives": "^22.6.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^241.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^20.6.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": "^
|
|
53
|
+
"@atlaskit/editor-common": "^132.0.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"
|