@atlaskit/editor-plugin-selection-marker 5.0.1 → 5.0.2

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,13 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 5.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6fb79942fc3a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fb79942fc3a5) -
8
+ Internal changes to how borders are applied.
9
+ - Updated dependencies
10
+
3
11
  ## 5.0.1
4
12
 
5
13
  ### 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 solid ".concat("var(--ds-text, ".concat(_colors.N500, ")")),
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: `1px solid ${`var(--ds-text, ${N500})`}`,
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 solid ".concat("var(--ds-text, ".concat(N500, ")")),
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": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,20 +31,20 @@
31
31
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
32
32
  "@atlaskit/editor-plugin-focus": "^4.0.0",
33
33
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
34
- "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
34
+ "@atlaskit/editor-plugin-type-ahead": "^5.2.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
38
  "@atlaskit/primitives": "^14.14.0",
39
39
  "@atlaskit/theme": "^21.0.0",
40
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
40
+ "@atlaskit/tmp-editor-statsig": "^12.24.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": "^109.1.0",
47
+ "@atlaskit/editor-common": "^109.8.0",
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0"
50
50
  },