@atlaskit/editor-plugin-selection-marker 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/ui/selection-decoration.js +1 -1
- package/dist/cjs/ui/widget-decoration.js +1 -1
- package/dist/es2019/ui/selection-decoration.js +1 -1
- package/dist/es2019/ui/widget-decoration.js +1 -1
- package/dist/esm/ui/selection-decoration.js +1 -1
- package/dist/esm/ui/widget-decoration.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-marker
|
|
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
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.selectionDecoration = void 0;
|
|
7
7
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
8
8
|
var decorationStyle = "\n background-color: ".concat("var(--ds-background-neutral, #DCDFE4)", ";\n ");
|
|
9
|
-
var decorationHighlightStyle = "\n background-color: ".concat("var(--ds-background-accent-blue-subtlest, #E9F2FF)", ";\n border-bottom: 2px solid ", "var(--ds-background-accent-blue-subtler, #cce0ff)", ";\n ");
|
|
9
|
+
var decorationHighlightStyle = "\n background-color: ".concat("var(--ds-background-accent-blue-subtlest, #E9F2FF)", ";\n border-bottom: ", "var(--ds-border-width-selected, 2px)", " solid ", "var(--ds-background-accent-blue-subtler, #cce0ff)", ";\n ");
|
|
10
10
|
var selectionDecoration = exports.selectionDecoration = function selectionDecoration(doc, selection, isHighlight) {
|
|
11
11
|
var selectionDecorations = [];
|
|
12
12
|
doc.nodesBetween(selection.from, selection.to, function (currentNode, nodePos) {
|
|
@@ -52,7 +52,7 @@ var selectionMarkerInlineCursorStyles = {
|
|
|
52
52
|
content: "''",
|
|
53
53
|
position: 'relative',
|
|
54
54
|
pointerEvents: 'none',
|
|
55
|
-
borderLeft: "1px
|
|
55
|
+
borderLeft: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-text, ".concat(_colors.N500, ")")),
|
|
56
56
|
marginLeft: '-1px',
|
|
57
57
|
left: '0.5px'
|
|
58
58
|
};
|
|
@@ -4,7 +4,7 @@ const decorationStyle = `
|
|
|
4
4
|
`;
|
|
5
5
|
const decorationHighlightStyle = `
|
|
6
6
|
background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
|
|
7
|
-
border-bottom: 2px solid ${"var(--ds-background-accent-blue-subtler, #cce0ff)"};
|
|
7
|
+
border-bottom: ${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-background-accent-blue-subtler, #cce0ff)"};
|
|
8
8
|
`;
|
|
9
9
|
export const selectionDecoration = (doc, selection, isHighlight) => {
|
|
10
10
|
const selectionDecorations = [];
|
|
@@ -44,7 +44,7 @@ const selectionMarkerInlineCursorStyles = {
|
|
|
44
44
|
content: "''",
|
|
45
45
|
position: 'relative',
|
|
46
46
|
pointerEvents: 'none',
|
|
47
|
-
borderLeft:
|
|
47
|
+
borderLeft: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-text, ${N500})`}`,
|
|
48
48
|
marginLeft: '-1px',
|
|
49
49
|
left: '0.5px'
|
|
50
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
var decorationStyle = "\n background-color: ".concat("var(--ds-background-neutral, #DCDFE4)", ";\n ");
|
|
3
|
-
var decorationHighlightStyle = "\n background-color: ".concat("var(--ds-background-accent-blue-subtlest, #E9F2FF)", ";\n border-bottom: 2px solid ", "var(--ds-background-accent-blue-subtler, #cce0ff)", ";\n ");
|
|
3
|
+
var decorationHighlightStyle = "\n background-color: ".concat("var(--ds-background-accent-blue-subtlest, #E9F2FF)", ";\n border-bottom: ", "var(--ds-border-width-selected, 2px)", " solid ", "var(--ds-background-accent-blue-subtler, #cce0ff)", ";\n ");
|
|
4
4
|
export var selectionDecoration = function selectionDecoration(doc, selection, isHighlight) {
|
|
5
5
|
var selectionDecorations = [];
|
|
6
6
|
doc.nodesBetween(selection.from, selection.to, function (currentNode, nodePos) {
|
|
@@ -45,7 +45,7 @@ var selectionMarkerInlineCursorStyles = {
|
|
|
45
45
|
content: "''",
|
|
46
46
|
position: 'relative',
|
|
47
47
|
pointerEvents: 'none',
|
|
48
|
-
borderLeft: "1px
|
|
48
|
+
borderLeft: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-text, ".concat(N500, ")")),
|
|
49
49
|
marginLeft: '-1px',
|
|
50
50
|
left: '0.5px'
|
|
51
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-marker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Selection marker plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
],
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
32
|
-
"@atlaskit/editor-plugin-focus": "^
|
|
33
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
34
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
31
|
+
"@atlaskit/editor-plugin-editor-disabled": "^6.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-focus": "^5.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-toolbar": "^3.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
36
|
"@atlaskit/link": "^3.2.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
|
-
"@atlaskit/primitives": "^14.
|
|
38
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
39
39
|
"@atlaskit/theme": "^21.0.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^12.31.0",
|
|
41
41
|
"@atlaskit/tokens": "^6.3.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/react": "^11.7.1",
|
|
44
44
|
"lodash": "^4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^
|
|
47
|
+
"@atlaskit/editor-common": "^110.0.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0"
|
|
50
50
|
},
|