@atlaskit/editor-plugin-block-type 3.15.8 → 3.16.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,27 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 3.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
8
+ [`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
9
+ [ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
10
+ blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
11
+ pasted external images to media groups.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 3.15.9
18
+
19
+ ### Patch Changes
20
+
21
+ - [#150384](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150384)
22
+ [`6d48c5b6ce65e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d48c5b6ce65e) -
23
+ [ED-25083] Typograpghy migration
24
+
3
25
  ## 3.15.8
4
26
 
5
27
  ### Patch Changes
@@ -14,6 +14,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
14
14
  var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
15
15
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/text-style"));
16
16
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
17
+ var _primitives = require("@atlaskit/primitives");
17
18
  var _blockTypes = require("../../block-types");
18
19
  var _styled = require("./styled");
19
20
  /**
@@ -23,6 +24,15 @@ var _styled = require("./styled");
23
24
 
24
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
26
 
27
+ var buttonContentStyle = (0, _primitives.xcss)({
28
+ minWidth: "calc(80px + 2*".concat("var(--ds-space-075, 6px)", ")"),
29
+ overflow: 'hidden',
30
+ padding: 'space.075'
31
+ });
32
+ var buttonContentReducedSpacingStyle = (0, _primitives.xcss)({
33
+ padding: 'space.100',
34
+ minWidth: "calc(80px + 2*".concat("var(--ds-space-100, 8px)", ")")
35
+ });
26
36
  var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props) {
27
37
  var blockTypeName = props.blockTypeName || '';
28
38
  var labelTextStyles = props.formatMessage(_messages.toolbarMessages.textStyles, {
@@ -59,11 +69,7 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
59
69
  color: "currentColor",
60
70
  LEGACY_margin: "0 0 0 -8px"
61
71
  }))))
62
- }, !props.isSmall && (0, _react2.jsx)("span", {
63
- css: [
64
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
65
- _styled.buttonContentStyle,
66
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
67
- props.isReducedSpacing && _styled.buttonContentReducedSpacingStyle]
72
+ }, !props.isSmall && (0, _react2.jsx)(_primitives.Box, {
73
+ xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
68
74
  }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, props.title || _blockTypes.NORMAL_TEXT.title)));
69
75
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.wrapperSmallStyle = exports.keyboardShortcutSelect = exports.keyboardShortcut = exports.expandIconWrapperStyle = exports.buttonContentStyle = exports.buttonContentReducedSpacingStyle = exports.blockTypeMenuItemStyle = void 0;
6
+ exports.wrapperSmallStyle = exports.keyboardShortcutSelect = exports.keyboardShortcut = exports.expandIconWrapperStyle = exports.blockTypeMenuItemStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _styles = require("@atlaskit/editor-common/styles");
9
9
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
@@ -45,22 +45,6 @@ var keyboardShortcutSelect = exports.keyboardShortcutSelect = (0, _react.css)({
45
45
  color: "var(--ds-icon, ".concat(_colors.N400, ")")
46
46
  });
47
47
 
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
49
- var buttonContentStyle = exports.buttonContentStyle = (0, _react.css)({
50
- display: 'flex',
51
- minWidth: '80px',
52
- alignItems: 'center',
53
- overflow: 'hidden',
54
- justifyContent: 'center',
55
- flexDirection: 'column',
56
- padding: "var(--ds-space-075, 6px)"
57
- });
58
-
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
60
- var buttonContentReducedSpacingStyle = exports.buttonContentReducedSpacingStyle = (0, _react.css)({
61
- padding: "var(--ds-space-100, 8px)"
62
- });
63
-
64
48
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
65
49
  var wrapperSmallStyle = exports.wrapperSmallStyle = (0, _react.css)({
66
50
  marginLeft: "var(--ds-space-050, 4px)",
@@ -13,8 +13,18 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import TextIcon from '@atlaskit/icon/core/text';
14
14
  import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
15
15
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
16
+ import { Box, xcss } from '@atlaskit/primitives';
16
17
  import { NORMAL_TEXT } from '../../block-types';
17
- import { buttonContentReducedSpacingStyle, buttonContentStyle, wrapperSmallStyle } from './styled';
18
+ import { wrapperSmallStyle } from './styled';
19
+ const buttonContentStyle = xcss({
20
+ minWidth: `calc(80px + 2*${"var(--ds-space-075, 6px)"})`,
21
+ overflow: 'hidden',
22
+ padding: 'space.075'
23
+ });
24
+ const buttonContentReducedSpacingStyle = xcss({
25
+ padding: 'space.100',
26
+ minWidth: `calc(80px + 2*${"var(--ds-space-100, 8px)"})`
27
+ });
18
28
  export const BlockTypeButton = props => {
19
29
  const blockTypeName = props.blockTypeName || '';
20
30
  const labelTextStyles = props.formatMessage(toolbarMessages.textStyles, {
@@ -51,11 +61,7 @@ export const BlockTypeButton = props => {
51
61
  color: "currentColor",
52
62
  LEGACY_margin: "0 0 0 -8px"
53
63
  }))))
54
- }, !props.isSmall && jsx("span", {
55
- css: [
56
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
57
- buttonContentStyle,
58
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
- props.isReducedSpacing && buttonContentReducedSpacingStyle]
64
+ }, !props.isSmall && jsx(Box, {
65
+ xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
60
66
  }, jsx(FormattedMessage, props.title || NORMAL_TEXT.title)));
61
67
  };
@@ -36,22 +36,6 @@ export const keyboardShortcutSelect = css({
36
36
  color: `var(--ds-icon, ${N400})`
37
37
  });
38
38
 
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
- export const buttonContentStyle = css({
41
- display: 'flex',
42
- minWidth: '80px',
43
- alignItems: 'center',
44
- overflow: 'hidden',
45
- justifyContent: 'center',
46
- flexDirection: 'column',
47
- padding: "var(--ds-space-075, 6px)"
48
- });
49
-
50
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
51
- export const buttonContentReducedSpacingStyle = css({
52
- padding: "var(--ds-space-100, 8px)"
53
- });
54
-
55
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
56
40
  export const wrapperSmallStyle = css({
57
41
  marginLeft: "var(--ds-space-050, 4px)",
@@ -13,8 +13,18 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import TextIcon from '@atlaskit/icon/core/text';
14
14
  import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
15
15
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
16
+ import { Box, xcss } from '@atlaskit/primitives';
16
17
  import { NORMAL_TEXT } from '../../block-types';
17
- import { buttonContentReducedSpacingStyle, buttonContentStyle, wrapperSmallStyle } from './styled';
18
+ import { wrapperSmallStyle } from './styled';
19
+ var buttonContentStyle = xcss({
20
+ minWidth: "calc(80px + 2*".concat("var(--ds-space-075, 6px)", ")"),
21
+ overflow: 'hidden',
22
+ padding: 'space.075'
23
+ });
24
+ var buttonContentReducedSpacingStyle = xcss({
25
+ padding: 'space.100',
26
+ minWidth: "calc(80px + 2*".concat("var(--ds-space-100, 8px)", ")")
27
+ });
18
28
  export var BlockTypeButton = function BlockTypeButton(props) {
19
29
  var blockTypeName = props.blockTypeName || '';
20
30
  var labelTextStyles = props.formatMessage(toolbarMessages.textStyles, {
@@ -51,11 +61,7 @@ export var BlockTypeButton = function BlockTypeButton(props) {
51
61
  color: "currentColor",
52
62
  LEGACY_margin: "0 0 0 -8px"
53
63
  }))))
54
- }, !props.isSmall && jsx("span", {
55
- css: [
56
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
57
- buttonContentStyle,
58
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
- props.isReducedSpacing && buttonContentReducedSpacingStyle]
64
+ }, !props.isSmall && jsx(Box, {
65
+ xcss: [buttonContentStyle, props.isReducedSpacing && buttonContentReducedSpacingStyle]
60
66
  }, jsx(FormattedMessage, props.title || NORMAL_TEXT.title)));
61
67
  };
@@ -38,22 +38,6 @@ export var keyboardShortcutSelect = css({
38
38
  color: "var(--ds-icon, ".concat(N400, ")")
39
39
  });
40
40
 
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
42
- export var buttonContentStyle = css({
43
- display: 'flex',
44
- minWidth: '80px',
45
- alignItems: 'center',
46
- overflow: 'hidden',
47
- justifyContent: 'center',
48
- flexDirection: 'column',
49
- padding: "var(--ds-space-075, 6px)"
50
- });
51
-
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
53
- export var buttonContentReducedSpacingStyle = css({
54
- padding: "var(--ds-space-100, 8px)"
55
- });
56
-
57
41
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
58
42
  export var wrapperSmallStyle = css({
59
43
  marginLeft: "var(--ds-space-050, 4px)",
@@ -1,7 +1,5 @@
1
1
  export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => () => import("@emotion/react").SerializedStyles;
2
2
  export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
3
3
  export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
4
- export declare const buttonContentStyle: import("@emotion/react").SerializedStyles;
5
- export declare const buttonContentReducedSpacingStyle: import("@emotion/react").SerializedStyles;
6
4
  export declare const wrapperSmallStyle: import("@emotion/react").SerializedStyles;
7
5
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
@@ -1,7 +1,5 @@
1
1
  export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => () => import("@emotion/react").SerializedStyles;
2
2
  export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
3
3
  export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
4
- export declare const buttonContentStyle: import("@emotion/react").SerializedStyles;
5
- export declare const buttonContentReducedSpacingStyle: import("@emotion/react").SerializedStyles;
6
4
  export declare const wrapperSmallStyle: import("@emotion/react").SerializedStyles;
7
5
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "3.15.8",
3
+ "version": "3.16.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,16 @@
33
33
  "./styles": "./src/styles.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^40.9.0",
37
- "@atlaskit/editor-common": "^93.0.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.8.0",
36
+ "@atlaskit/adf-schema": "^40.9.4",
37
+ "@atlaskit/editor-common": "^93.3.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.9.0",
39
39
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
40
40
  "@atlaskit/editor-prosemirror": "6.0.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.0.0",
42
42
  "@atlaskit/editor-tables": "^2.8.0",
43
- "@atlaskit/icon": "^22.20.0",
43
+ "@atlaskit/icon": "^22.22.0",
44
44
  "@atlaskit/platform-feature-flags": "^0.3.0",
45
+ "@atlaskit/primitives": "^12.2.0",
45
46
  "@atlaskit/prosemirror-input-rules": "^3.2.0",
46
47
  "@atlaskit/theme": "^13.0.0",
47
48
  "@atlaskit/tmp-editor-statsig": "*",
@@ -57,7 +58,7 @@
57
58
  "@af/visual-regression": "*",
58
59
  "@atlaskit/analytics-next": "^10.1.0",
59
60
  "@atlaskit/editor-plugin-quick-insert": "^1.4.0",
60
- "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
61
+ "@atlaskit/editor-plugin-type-ahead": "^1.9.0",
61
62
  "@atlaskit/ssr": "*",
62
63
  "@atlaskit/visual-regression": "*",
63
64
  "@testing-library/react": "^12.1.5",