@atlaskit/editor-plugin-guideline 5.0.1 → 6.0.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 +14 -0
- package/dist/cjs/guidelinePlugin.js +3 -0
- package/dist/cjs/ui/guideline.js +2 -2
- package/dist/es2019/guidelinePlugin.js +10 -5
- package/dist/es2019/ui/guideline.js +2 -2
- package/dist/esm/guidelinePlugin.js +3 -0
- package/dist/esm/ui/guideline.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-guideline
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`6fb79942fc3a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fb79942fc3a5) -
|
|
14
|
+
Internal changes to how borders are applied.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.0.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -138,6 +138,9 @@ var guidelinePlugin = exports.guidelinePlugin = function guidelinePlugin(_ref4)
|
|
|
138
138
|
},
|
|
139
139
|
contentComponent: function contentComponent(_ref5) {
|
|
140
140
|
var editorView = _ref5.editorView;
|
|
141
|
+
if (!editorView) {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
141
144
|
return (0, _react.jsx)(ContentComponent, {
|
|
142
145
|
editorView: editorView,
|
|
143
146
|
options: options,
|
package/dist/cjs/ui/guideline.js
CHANGED
|
@@ -24,12 +24,12 @@ var basicGuidelineStyles = (0, _react.css)({
|
|
|
24
24
|
borderStyle: 'solid'
|
|
25
25
|
});
|
|
26
26
|
var verticalStyles = (0, _react.css)({
|
|
27
|
-
borderWidth: "0 0 0 1px",
|
|
27
|
+
borderWidth: "0 0 0 ".concat("var(--ds-border-width, 1px)"),
|
|
28
28
|
width: '1px',
|
|
29
29
|
height: '100%'
|
|
30
30
|
});
|
|
31
31
|
var horizontalStyles = (0, _react.css)({
|
|
32
|
-
borderWidth: "1px 0 0 0",
|
|
32
|
+
borderWidth: "var(--ds-border-width, 1px)".concat(" 0 0 0"),
|
|
33
33
|
width: '100%',
|
|
34
34
|
height: '1px'
|
|
35
35
|
});
|
|
@@ -137,9 +137,14 @@ export const guidelinePlugin = ({
|
|
|
137
137
|
},
|
|
138
138
|
contentComponent: ({
|
|
139
139
|
editorView
|
|
140
|
-
}) =>
|
|
141
|
-
editorView
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
}) => {
|
|
141
|
+
if (!editorView) {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
return jsx(ContentComponent, {
|
|
145
|
+
editorView: editorView,
|
|
146
|
+
options: options,
|
|
147
|
+
api: api
|
|
148
|
+
});
|
|
149
|
+
}
|
|
145
150
|
});
|
|
@@ -16,12 +16,12 @@ const basicGuidelineStyles = css({
|
|
|
16
16
|
borderStyle: 'solid'
|
|
17
17
|
});
|
|
18
18
|
const verticalStyles = css({
|
|
19
|
-
borderWidth: `0 0 0 1px`,
|
|
19
|
+
borderWidth: `0 0 0 ${"var(--ds-border-width, 1px)"}`,
|
|
20
20
|
width: '1px',
|
|
21
21
|
height: '100%'
|
|
22
22
|
});
|
|
23
23
|
const horizontalStyles = css({
|
|
24
|
-
borderWidth:
|
|
24
|
+
borderWidth: `${"var(--ds-border-width, 1px)"} 0 0 0`,
|
|
25
25
|
width: '100%',
|
|
26
26
|
height: '1px'
|
|
27
27
|
});
|
|
@@ -133,6 +133,9 @@ export var guidelinePlugin = function guidelinePlugin(_ref4) {
|
|
|
133
133
|
},
|
|
134
134
|
contentComponent: function contentComponent(_ref5) {
|
|
135
135
|
var editorView = _ref5.editorView;
|
|
136
|
+
if (!editorView) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
136
139
|
return jsx(ContentComponent, {
|
|
137
140
|
editorView: editorView,
|
|
138
141
|
options: options,
|
package/dist/esm/ui/guideline.js
CHANGED
|
@@ -19,12 +19,12 @@ var basicGuidelineStyles = css({
|
|
|
19
19
|
borderStyle: 'solid'
|
|
20
20
|
});
|
|
21
21
|
var verticalStyles = css({
|
|
22
|
-
borderWidth: "0 0 0 1px",
|
|
22
|
+
borderWidth: "0 0 0 ".concat("var(--ds-border-width, 1px)"),
|
|
23
23
|
width: '1px',
|
|
24
24
|
height: '100%'
|
|
25
25
|
});
|
|
26
26
|
var horizontalStyles = css({
|
|
27
|
-
borderWidth: "1px 0 0 0",
|
|
27
|
+
borderWidth: "var(--ds-border-width, 1px)".concat(" 0 0 0"),
|
|
28
28
|
width: '100%',
|
|
29
29
|
height: '1px'
|
|
30
30
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-guideline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "guideline plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/editor-plugin-width": "^
|
|
24
|
+
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
26
26
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
27
27
|
"@atlaskit/theme": "^21.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@emotion/react": "^11.7.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/editor-common": "^110.0.0",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|