@atlaskit/editor-plugin-block-type 3.14.9 → 3.15.1
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 +19 -0
- package/dist/cjs/plugin/styles.js +1 -1
- package/dist/es2019/plugin/styles.js +11 -3
- package/dist/esm/plugin/styles.js +2 -3
- package/package.json +4 -4
- package/.eslintrc.js +0 -14
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
2
2
|
|
3
|
+
## 3.15.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
|
9
|
+
## 3.15.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [#142806](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142806)
|
14
|
+
[`f73667130fb7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f73667130fb7d) -
|
15
|
+
[ux] Update styles for nested dnd to only apply to full page editor. Removed
|
16
|
+
blockquoteSharedStylesNew export.
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- Updated dependencies
|
21
|
+
|
3
22
|
## 3.14.9
|
4
23
|
|
5
24
|
### Patch Changes
|
@@ -12,5 +12,5 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
12
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
14
14
|
var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles() {
|
15
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), (0, _experiments.editorExperiment)('nested-dnd', true)
|
15
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)(), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror blockquote {\n\t\tpadding-left: ".concat("var(--ds-space-250, 20px)", ";\n\t}\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote {\n\t\tpadding-left: ", "var(--ds-space-200, 16px)", ";\n\t}"));
|
16
16
|
};
|
@@ -1,12 +1,20 @@
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
2
2
|
import { css } from '@emotion/react';
|
3
|
-
import { blockquoteSharedStyles,
|
3
|
+
import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
4
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
5
|
-
|
6
5
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
7
6
|
export const blocktypeStyles = () => css`
|
8
7
|
.ProseMirror {
|
9
|
-
${
|
8
|
+
${blockquoteSharedStyles};
|
10
9
|
${headingsSharedStyles()};
|
11
10
|
}
|
11
|
+
|
12
|
+
${editorExperiment('nested-dnd', true) && `.ak-editor-content-area.appearance-full-page .ProseMirror blockquote {
|
13
|
+
padding-left: ${"var(--ds-space-250, 20px)"};
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Don't want extra padding for inline editor (nested) */
|
17
|
+
.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote {
|
18
|
+
padding-left: ${"var(--ds-space-200, 16px)"};
|
19
|
+
}`}
|
12
20
|
`;
|
@@ -2,10 +2,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
2
2
|
var _templateObject;
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
4
4
|
import { css } from '@emotion/react';
|
5
|
-
import { blockquoteSharedStyles,
|
5
|
+
import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
7
|
-
|
8
7
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
9
8
|
export var blocktypeStyles = function blocktypeStyles() {
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), editorExperiment('nested-dnd', true)
|
9
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n"])), blockquoteSharedStyles, headingsSharedStyles(), editorExperiment('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror blockquote {\n\t\tpadding-left: ".concat("var(--ds-space-250, 20px)", ";\n\t}\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote {\n\t\tpadding-left: ", "var(--ds-space-200, 16px)", ";\n\t}"));
|
11
10
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.15.1",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
36
|
"@atlaskit/adf-schema": "^40.9.0",
|
37
|
-
"@atlaskit/editor-common": "^
|
37
|
+
"@atlaskit/editor-common": "^91.0.0",
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
39
39
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
46
46
|
"@atlaskit/theme": "^13.0.0",
|
47
47
|
"@atlaskit/tmp-editor-statsig": "*",
|
48
|
-
"@atlaskit/tokens": "^1.
|
48
|
+
"@atlaskit/tokens": "^1.61.0",
|
49
49
|
"@babel/runtime": "^7.0.0",
|
50
50
|
"@emotion/react": "^11.7.1"
|
51
51
|
},
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"devDependencies": {
|
57
57
|
"@af/visual-regression": "*",
|
58
58
|
"@atlaskit/analytics-next": "^10.1.0",
|
59
|
-
"@atlaskit/editor-plugin-quick-insert": "^1.
|
59
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.4.0",
|
60
60
|
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
61
61
|
"@atlaskit/ssr": "*",
|
62
62
|
"@atlaskit/visual-regression": "*",
|
package/.eslintrc.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
rules: {
|
3
|
-
'@typescript-eslint/no-duplicate-imports': 'error',
|
4
|
-
'@typescript-eslint/no-explicit-any': 'error',
|
5
|
-
},
|
6
|
-
overrides: [
|
7
|
-
{
|
8
|
-
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
9
|
-
rules: {
|
10
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
11
|
-
},
|
12
|
-
},
|
13
|
-
],
|
14
|
-
};
|