@atlaskit/editor-plugin-selection-marker 1.2.0 → 1.2.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#90925](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90925) [`431c0d17e3e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/431c0d17e3e3) - [ux] Improve the selection marker by hiding it when in an expand and improving styling by making it more subtle.
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.selectionDecoration = void 0;
7
7
  var _view = require("@atlaskit/editor-prosemirror/view");
8
- var decorationStyle = "\n background-color: ".concat("var(--ds-background-accent-gray-subtler, #DCDFE4)", ";\n ");
8
+ var decorationStyle = "\n background-color: ".concat("var(--ds-background-neutral, #DCDFE4)", ";\n ");
9
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 ");
10
10
  var selectionDecoration = exports.selectionDecoration = function selectionDecoration(doc, selection, isHighlight) {
11
11
  var selectionDecorations = [];
@@ -32,7 +32,7 @@ var selectionMarkerCursorStyles = (0, _primitives.xcss)({
32
32
  content: "''",
33
33
  position: 'absolute',
34
34
  background: "var(--ds-text, ".concat(_colors.N500, ")"),
35
- width: "var(--ds-space-025, 2px)",
35
+ width: '1px',
36
36
  display: 'inline-block',
37
37
  top: 'space.0',
38
38
  bottom: "var(--ds-space-negative-025, -2px)",
@@ -1,6 +1,6 @@
1
1
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
2
2
  const decorationStyle = `
3
- background-color: ${"var(--ds-background-accent-gray-subtler, #DCDFE4)"};
3
+ background-color: ${"var(--ds-background-neutral, #DCDFE4)"};
4
4
  `;
5
5
  const decorationHighlightStyle = `
6
6
  background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
@@ -25,7 +25,7 @@ const selectionMarkerCursorStyles = xcss({
25
25
  content: "''",
26
26
  position: 'absolute',
27
27
  background: `var(--ds-text, ${N500})`,
28
- width: "var(--ds-space-025, 2px)",
28
+ width: '1px',
29
29
  display: 'inline-block',
30
30
  top: 'space.0',
31
31
  bottom: "var(--ds-space-negative-025, -2px)",
@@ -1,5 +1,5 @@
1
1
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
2
- var decorationStyle = "\n background-color: ".concat("var(--ds-background-accent-gray-subtler, #DCDFE4)", ";\n ");
2
+ var decorationStyle = "\n background-color: ".concat("var(--ds-background-neutral, #DCDFE4)", ";\n ");
3
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 ");
4
4
  export var selectionDecoration = function selectionDecoration(doc, selection, isHighlight) {
5
5
  var selectionDecorations = [];
@@ -25,7 +25,7 @@ var selectionMarkerCursorStyles = xcss({
25
25
  content: "''",
26
26
  position: 'absolute',
27
27
  background: "var(--ds-text, ".concat(N500, ")"),
28
- width: "var(--ds-space-025, 2px)",
28
+ width: '1px',
29
29
  display: 'inline-block',
30
30
  top: 'space.0',
31
31
  bottom: "var(--ds-space-negative-025, -2px)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",