@atlaskit/editor-plugin-block-type 3.0.11 → 3.0.13

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,17 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 3.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923) [`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) - Remove legacy theming logic from all Editor plugin packages. Theming is still available via the @atlaskit/tokens package.
8
+
9
+ ## 3.0.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165) [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
14
+
3
15
  ## 3.0.11
4
16
 
5
17
  ### Patch Changes
@@ -9,6 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _react = require("@emotion/react");
10
10
  var _styles = require("@atlaskit/editor-common/styles");
11
11
  var _templateObject;
12
- var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles(props) {
13
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)(props));
12
+ var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles() {
13
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)());
14
14
  };
@@ -15,8 +15,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
15
15
  var blockTypeMenuItemStyle = exports.blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
16
16
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
17
17
  var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
18
- return function (themeProps) {
19
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), (0, _styles.headingsSharedStyles)(themeProps), selectedStyle);
18
+ return function () {
19
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), (0, _styles.headingsSharedStyles)(), selectedStyle);
20
20
  };
21
21
  };
22
22
  var keyboardShortcut = exports.keyboardShortcut = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n margin-left: ", ";\n"])), _shortcut.shortcutStyle, "var(--ds-space-200, 16px)");
@@ -24,4 +24,4 @@ var keyboardShortcutSelect = exports.keyboardShortcutSelect = (0, _react.css)(_t
24
24
  var buttonContentStyle = exports.buttonContentStyle = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n min-width: 80px;\n align-items: center;\n overflow: hidden;\n justify-content: center;\n flex-direction: column;\n padding: ", ";\n"])), "var(--ds-space-075, 6px)");
25
25
  var buttonContentReducedSpacingStyle = exports.buttonContentReducedSpacingStyle = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", ";\n"])), "var(--ds-space-100, 8px)");
26
26
  var wrapperSmallStyle = exports.wrapperSmallStyle = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n min-width: 40px;\n"])), "var(--ds-space-050, 4px)");
27
- var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: -8px;\n"])));
27
+ var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
@@ -1,8 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
3
- export const blocktypeStyles = props => css`
3
+ export const blocktypeStyles = () => css`
4
4
  .ProseMirror {
5
5
  ${blockquoteSharedStyles};
6
- ${headingsSharedStyles(props)};
6
+ ${headingsSharedStyles()};
7
7
  }
8
8
  `;
@@ -6,8 +6,8 @@ import { N400 } from '@atlaskit/theme/colors';
6
6
  export const blockTypeMenuItemStyle = (tagName, selected) => {
7
7
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
8
8
  const selectedStyle = selected ? `${tagName} { color: ${"var(--ds-text, white)"} !important; }` : '';
9
- return themeProps => css`
10
- ${headingsSharedStyles(themeProps)};
9
+ return () => css`
10
+ ${headingsSharedStyles()};
11
11
  > {
12
12
  h1,
13
13
  h2,
@@ -45,5 +45,5 @@ export const wrapperSmallStyle = css`
45
45
  min-width: 40px;
46
46
  `;
47
47
  export const expandIconWrapperStyle = css`
48
- margin-left: -8px;
48
+ margin-left: ${"var(--ds-space-negative-100, -8px)"};
49
49
  `;
@@ -2,6 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
5
- export var blocktypeStyles = function blocktypeStyles(props) {
6
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), blockquoteSharedStyles, headingsSharedStyles(props));
5
+ export var blocktypeStyles = function blocktypeStyles() {
6
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), blockquoteSharedStyles, headingsSharedStyles());
7
7
  };
@@ -8,8 +8,8 @@ import { N400 } from '@atlaskit/theme/colors';
8
8
  export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
9
9
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
10
10
  var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
11
- return function (themeProps) {
12
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), headingsSharedStyles(themeProps), selectedStyle);
11
+ return function () {
12
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), headingsSharedStyles(), selectedStyle);
13
13
  };
14
14
  };
15
15
  export var keyboardShortcut = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n margin-left: ", ";\n"])), shortcutStyle, "var(--ds-space-200, 16px)");
@@ -17,4 +17,4 @@ export var keyboardShortcutSelect = css(_templateObject3 || (_templateObject3 =
17
17
  export var buttonContentStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n min-width: 80px;\n align-items: center;\n overflow: hidden;\n justify-content: center;\n flex-direction: column;\n padding: ", ";\n"])), "var(--ds-space-075, 6px)");
18
18
  export var buttonContentReducedSpacingStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: ", ";\n"])), "var(--ds-space-100, 8px)");
19
19
  export var wrapperSmallStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: ", ";\n min-width: 40px;\n"])), "var(--ds-space-050, 4px)");
20
- export var expandIconWrapperStyle = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
20
+ export var expandIconWrapperStyle = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
@@ -1,2 +1 @@
1
- import type { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const blocktypeStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const blocktypeStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,5 +1,4 @@
1
- import type { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => (themeProps: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => () => import("@emotion/react").SerializedStyles;
3
2
  export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
4
3
  export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
5
4
  export declare const buttonContentStyle: import("@emotion/react").SerializedStyles;
@@ -1,2 +1 @@
1
- import type { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const blocktypeStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const blocktypeStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,5 +1,4 @@
1
- import type { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => (themeProps: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => () => import("@emotion/react").SerializedStyles;
3
2
  export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
4
3
  export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
5
4
  export declare const buttonContentStyle: 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.0.11",
3
+ "version": "3.0.13",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "./styles": "./src/styles.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/adf-schema": "^35.1.1",
40
+ "@atlaskit/adf-schema": "^35.2.0",
41
41
  "@atlaskit/editor-common": "^76.27.0",
42
42
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
43
43
  "@atlaskit/editor-prosemirror": "1.1.0",