@atlaskit/editor-plugin-block-type 3.0.12 → 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 +6 -0
- package/dist/cjs/plugin/styles.js +2 -2
- package/dist/cjs/plugin/ui/ToolbarBlockType/styled.js +3 -3
- package/dist/es2019/plugin/styles.js +2 -2
- package/dist/es2019/plugin/ui/ToolbarBlockType/styled.js +3 -3
- package/dist/esm/plugin/styles.js +2 -2
- package/dist/esm/plugin/ui/ToolbarBlockType/styled.js +3 -3
- package/dist/types/plugin/styles.d.ts +1 -2
- package/dist/types/plugin/ui/ToolbarBlockType/styled.d.ts +1 -2
- package/dist/types-ts4.5/plugin/styles.d.ts +1 -2
- package/dist/types-ts4.5/plugin/ui/ToolbarBlockType/styled.d.ts +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 3.0.12
|
|
4
10
|
|
|
5
11
|
### 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(
|
|
13
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)(
|
|
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 (
|
|
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)(
|
|
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:
|
|
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 =
|
|
3
|
+
export const blocktypeStyles = () => css`
|
|
4
4
|
.ProseMirror {
|
|
5
5
|
${blockquoteSharedStyles};
|
|
6
|
-
${headingsSharedStyles(
|
|
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
|
|
10
|
-
${headingsSharedStyles(
|
|
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(
|
|
6
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n ", ";\n }\n"])), blockquoteSharedStyles, headingsSharedStyles(
|
|
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 (
|
|
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(
|
|
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:
|
|
20
|
+
export var expandIconWrapperStyle = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|