@atlaskit/editor-plugin-block-type 6.0.3 → 6.0.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 +17 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +4 -3
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +1 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -3
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +1 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -3
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +1 -0
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 6.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#185723](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185723)
|
|
8
|
+
[`751aeb4580469`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751aeb4580469) -
|
|
9
|
+
ED-28315 clean up fg platform_editor_controls_patch_13
|
|
10
|
+
|
|
11
|
+
## 6.0.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#187144](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187144)
|
|
16
|
+
[`a16147d8fbdfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a16147d8fbdfe) -
|
|
17
|
+
Bump @atlaskit/adf-schema to v49.0.5
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 6.0.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
14
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
15
15
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
16
16
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/text-style"));
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _primitives = require("@atlaskit/primitives");
|
|
19
18
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
20
19
|
var _blockTypes = require("../../block-types");
|
|
@@ -26,6 +25,8 @@ var _styled = require("./styled");
|
|
|
26
25
|
|
|
27
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
27
|
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
29
|
+
|
|
29
30
|
var buttonContentStyle = (0, _primitives.xcss)({
|
|
30
31
|
minWidth: "calc(80px + 2*".concat("var(--ds-space-075, 6px)", ")"),
|
|
31
32
|
overflow: 'hidden',
|
|
@@ -47,8 +48,8 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
|
|
|
47
48
|
color: "currentColor",
|
|
48
49
|
LEGACY_fallbackIcon: _textStyle.default
|
|
49
50
|
});
|
|
50
|
-
var chevronIconSpacing = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')
|
|
51
|
-
var shouldUseIconAsButton = props.isSmall || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')
|
|
51
|
+
var chevronIconSpacing = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
|
|
52
|
+
var shouldUseIconAsButton = props.isSmall || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1');
|
|
52
53
|
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
53
54
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
54
55
|
selected: props.selected
|
|
@@ -33,6 +33,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
33
33
|
* @jsxRuntime classic
|
|
34
34
|
* @jsx jsx
|
|
35
35
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
36
37
|
var buttonWrapperStyles = (0, _primitives.xcss)({
|
|
37
38
|
flexShrink: 0
|
|
38
39
|
});
|
|
@@ -13,7 +13,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
14
14
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
15
15
|
import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
|
|
16
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
17
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
19
19
|
import { NORMAL_TEXT } from '../../block-types';
|
|
@@ -39,8 +39,8 @@ export const BlockTypeButton = props => {
|
|
|
39
39
|
color: "currentColor",
|
|
40
40
|
LEGACY_fallbackIcon: TextStyleIconLegacy
|
|
41
41
|
});
|
|
42
|
-
const chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
43
|
-
const shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
42
|
+
const chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
|
|
43
|
+
const shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1');
|
|
44
44
|
return jsx(ToolbarButton, {
|
|
45
45
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
46
46
|
selected: props.selected
|
|
@@ -14,6 +14,7 @@ import { separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
|
14
14
|
import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
|
|
15
15
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
18
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
20
|
import { ThemeMutationObserver } from '@atlaskit/tokens';
|
|
@@ -13,7 +13,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
14
14
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
15
15
|
import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
|
|
16
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
17
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
19
19
|
import { NORMAL_TEXT } from '../../block-types';
|
|
@@ -39,8 +39,8 @@ export var BlockTypeButton = function BlockTypeButton(props) {
|
|
|
39
39
|
color: "currentColor",
|
|
40
40
|
LEGACY_fallbackIcon: TextStyleIconLegacy
|
|
41
41
|
});
|
|
42
|
-
var chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
43
|
-
var shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
42
|
+
var chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
|
|
43
|
+
var shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1');
|
|
44
44
|
return jsx(ToolbarButton, {
|
|
45
45
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
46
46
|
selected: props.selected
|
|
@@ -23,6 +23,7 @@ import { separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
|
23
23
|
import { DropdownMenuWithKeyboardNavigation as DropdownMenu } from '@atlaskit/editor-common/ui-menu';
|
|
24
24
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
25
25
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
27
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
27
28
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
28
29
|
import { ThemeMutationObserver } from '@atlaskit/tokens';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"./styles": "./src/ui/styles.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/adf-schema": "^
|
|
37
|
+
"@atlaskit/adf-schema": "^49.0.6",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^4.
|
|
40
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^4.
|
|
39
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
40
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^4.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
44
44
|
"@atlaskit/icon": "^27.3.0",
|
|
45
45
|
"@atlaskit/icon-lab": "^5.1.0",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@atlaskit/primitives": "^14.10.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
49
|
"@atlaskit/theme": "^19.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^9.8.0",
|
|
51
|
+
"@atlaskit/tokens": "^5.5.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^107.
|
|
56
|
+
"@atlaskit/editor-common": "^107.8.0",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -113,9 +113,6 @@
|
|
|
113
113
|
"platform_editor_nested_dnd_styles_changes": {
|
|
114
114
|
"type": "boolean"
|
|
115
115
|
},
|
|
116
|
-
"platform_editor_controls_patch_13": {
|
|
117
|
-
"type": "boolean"
|
|
118
|
-
},
|
|
119
116
|
"platform_editor_use_preferences_plugin": {
|
|
120
117
|
"type": "boolean"
|
|
121
118
|
}
|