@atlaskit/editor-plugin-block-type 25.0.2 → 25.0.4
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 25.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e339b127f827a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e339b127f827a) -
|
|
8
|
+
Route `platform_editor_controls` checks that used `expValEquals` / `expValEqualsNoExposure`
|
|
9
|
+
through `editorExperiment`, so they respect the per-product experiment key (Confluence
|
|
10
|
+
`platform_editor_controls`, Jira `platform_editor_controls_jira`). Previously these checks always
|
|
11
|
+
read the Confluence experiment, which evaluated to control in Jira.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 25.0.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 25.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
14
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
15
15
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
16
16
|
var _primitives = require("@atlaskit/primitives");
|
|
17
|
-
var
|
|
17
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
18
18
|
var _blockTypes = require("../../block-types");
|
|
19
19
|
var _styled = require("./styled");
|
|
20
20
|
/**
|
|
@@ -41,13 +41,13 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
|
|
|
41
41
|
blockTypeName: blockTypeName
|
|
42
42
|
});
|
|
43
43
|
var toolipTextStyles = props.formatMessage(_messages.toolbarMessages.textStylesTooltip);
|
|
44
|
-
var icon = (0,
|
|
44
|
+
var icon = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && props.blockTypeIcon ? props.blockTypeIcon : (0, _react2.jsx)(_text.default, {
|
|
45
45
|
label: labelTextStyles,
|
|
46
46
|
spacing: "spacious",
|
|
47
47
|
color: "currentColor"
|
|
48
48
|
});
|
|
49
|
-
var chevronIconSpacing = (0,
|
|
50
|
-
var shouldUseIconAsButton = props.isSmall || (0,
|
|
49
|
+
var chevronIconSpacing = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? 'spacious' : 'none';
|
|
50
|
+
var shouldUseIconAsButton = props.isSmall || (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1');
|
|
51
51
|
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
52
52
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
53
53
|
selected: props.selected
|
|
@@ -13,7 +13,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
13
13
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
15
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
16
|
-
import {
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { NORMAL_TEXT } from '../../block-types';
|
|
18
18
|
import { wrapperSmallStyle } from './styled';
|
|
19
19
|
const buttonContentStyle = xcss({
|
|
@@ -31,13 +31,13 @@ export const BlockTypeButton = props => {
|
|
|
31
31
|
blockTypeName
|
|
32
32
|
});
|
|
33
33
|
const toolipTextStyles = props.formatMessage(toolbarMessages.textStylesTooltip);
|
|
34
|
-
const icon =
|
|
34
|
+
const icon = editorExperiment('platform_editor_controls', 'variant1') && props.blockTypeIcon ? props.blockTypeIcon : jsx(TextIcon, {
|
|
35
35
|
label: labelTextStyles,
|
|
36
36
|
spacing: "spacious",
|
|
37
37
|
color: "currentColor"
|
|
38
38
|
});
|
|
39
|
-
const chevronIconSpacing =
|
|
40
|
-
const shouldUseIconAsButton = props.isSmall ||
|
|
39
|
+
const chevronIconSpacing = editorExperiment('platform_editor_controls', 'variant1') ? 'spacious' : 'none';
|
|
40
|
+
const shouldUseIconAsButton = props.isSmall || editorExperiment('platform_editor_controls', 'variant1');
|
|
41
41
|
return jsx(ToolbarButton, {
|
|
42
42
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
43
43
|
selected: props.selected
|
|
@@ -13,7 +13,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
13
13
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
15
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
16
|
-
import {
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { NORMAL_TEXT } from '../../block-types';
|
|
18
18
|
import { wrapperSmallStyle } from './styled';
|
|
19
19
|
var buttonContentStyle = xcss({
|
|
@@ -31,13 +31,13 @@ export var BlockTypeButton = function BlockTypeButton(props) {
|
|
|
31
31
|
blockTypeName: blockTypeName
|
|
32
32
|
});
|
|
33
33
|
var toolipTextStyles = props.formatMessage(toolbarMessages.textStylesTooltip);
|
|
34
|
-
var icon =
|
|
34
|
+
var icon = editorExperiment('platform_editor_controls', 'variant1') && props.blockTypeIcon ? props.blockTypeIcon : jsx(TextIcon, {
|
|
35
35
|
label: labelTextStyles,
|
|
36
36
|
spacing: "spacious",
|
|
37
37
|
color: "currentColor"
|
|
38
38
|
});
|
|
39
|
-
var chevronIconSpacing =
|
|
40
|
-
var shouldUseIconAsButton = props.isSmall ||
|
|
39
|
+
var chevronIconSpacing = editorExperiment('platform_editor_controls', 'variant1') ? 'spacious' : 'none';
|
|
40
|
+
var shouldUseIconAsButton = props.isSmall || editorExperiment('platform_editor_controls', 'variant1');
|
|
41
41
|
return jsx(ToolbarButton, {
|
|
42
42
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
43
43
|
selected: props.selected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.4",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
37
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
38
38
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
39
39
|
"@atlaskit/icon": "^38.0.0",
|
|
40
|
-
"@atlaskit/icon-lab": "^7.
|
|
40
|
+
"@atlaskit/icon-lab": "^7.10.0",
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
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": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^208.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^20.0.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": "^125.
|
|
53
|
+
"@atlaskit/editor-common": "^125.3.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"
|