@atlaskit/editor-plugin-selection-marker 1.3.0 → 1.3.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,59 +1,91 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#95182](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95182)
14
+ [`3d3dd335b8e8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d3dd335b8e8) -
15
+ The internal composition of this component has changed. There is no expected change in behavior.
16
+
3
17
  ## 1.3.0
4
18
 
5
19
  ### Minor Changes
6
20
 
7
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
21
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
22
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
23
+ bumped editor-prosemirror version to 4.0.0
8
24
 
9
25
  ### Patch Changes
10
26
 
11
- - Updated dependencies
27
+ - Updated dependencies
12
28
 
13
29
  ## 1.2.2
14
30
 
15
31
  ### Patch Changes
16
32
 
17
- - [#91886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91886) [`5c0443e007d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c0443e007d9) - [ux] Fix bug where selection marker shows when focussing on the expand title with the keyboard.
33
+ - [#91886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91886)
34
+ [`5c0443e007d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c0443e007d9) -
35
+ [ux] Fix bug where selection marker shows when focussing on the expand title with the keyboard.
18
36
 
19
37
  ## 1.2.1
20
38
 
21
39
  ### Patch Changes
22
40
 
23
- - [#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.
41
+ - [#90925](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90925)
42
+ [`431c0d17e3e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/431c0d17e3e3) -
43
+ [ux] Improve the selection marker by hiding it when in an expand and improving styling by making
44
+ it more subtle.
24
45
 
25
46
  ## 1.2.0
26
47
 
27
48
  ### Minor Changes
28
49
 
29
- - [#90866](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90866) [`519e3bd71a35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/519e3bd71a35) - [ux] [ED-22985] - Limit selection-marker plugin to only decorate text nodes
50
+ - [#90866](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90866)
51
+ [`519e3bd71a35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/519e3bd71a35) -
52
+ [ux] [ED-22985] - Limit selection-marker plugin to only decorate text nodes
30
53
 
31
54
  ## 1.1.3
32
55
 
33
56
  ### Patch Changes
34
57
 
35
- - [#79359](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79359) [`3441b8062083`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3441b8062083) - [ux] Make the selection marker styling more subtle.
58
+ - [#79359](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79359)
59
+ [`3441b8062083`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3441b8062083) -
60
+ [ux] Make the selection marker styling more subtle.
36
61
 
37
62
  ## 1.1.2
38
63
 
39
64
  ### Patch Changes
40
65
 
41
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
66
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
67
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
68
+ Upgrade Typescript from `4.9.5` to `5.4.2`
42
69
 
43
70
  ## 1.1.1
44
71
 
45
72
  ### Patch Changes
46
73
 
47
- - Updated dependencies
74
+ - Updated dependencies
48
75
 
49
76
  ## 1.1.0
50
77
 
51
78
  ### Minor Changes
52
79
 
53
- - [#80131](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80131) [`336116d18762`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/336116d18762) - Expose a new method hideDecoration on selection marker which can be used to temporarily disable the selection marker behaviour.
80
+ - [#80131](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80131)
81
+ [`336116d18762`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/336116d18762) -
82
+ Expose a new method hideDecoration on selection marker which can be used to temporarily disable
83
+ the selection marker behaviour.
54
84
 
55
85
  ## 1.0.1
56
86
 
57
87
  ### Patch Changes
58
88
 
59
- - [#81026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81026) [`9f75ed822487`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f75ed822487) - [ux] Fix selection marker background with input fields (ie. expands).
89
+ - [#81026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81026)
90
+ [`9f75ed822487`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f75ed822487) -
91
+ [ux] Fix selection marker background with input fields (ie. expands).
@@ -23,9 +23,9 @@ var selectionMarkerHighlightStyles = (0, _primitives.xcss)({
23
23
  backgroundSize: 'contain',
24
24
  aspectRatio: '3/20',
25
25
  left: '0px',
26
- marginLeft: '-0.1em',
26
+ marginLeft: 'space.negative.025',
27
27
  right: '0px',
28
- marginRight: '-0.1em',
28
+ marginRight: 'space.negative.025',
29
29
  pointerEvents: 'none'
30
30
  });
31
31
  var selectionMarkerCursorStyles = (0, _primitives.xcss)({
@@ -37,16 +37,16 @@ var selectionMarkerCursorStyles = (0, _primitives.xcss)({
37
37
  top: 'space.0',
38
38
  bottom: "var(--ds-space-negative-025, -2px)",
39
39
  left: '1px',
40
- marginLeft: '-0.1em',
40
+ marginLeft: 'space.negative.025',
41
41
  right: '0px',
42
- marginRight: '-0.1em',
42
+ marginRight: 'space.negative.025',
43
43
  pointerEvents: 'none'
44
44
  });
45
45
  var Widget = function Widget(_ref) {
46
46
  var type = _ref.type,
47
47
  isHighlight = _ref.isHighlight;
48
48
  return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
49
- as: 'span',
49
+ as: "span",
50
50
  xcss: isHighlight ? selectionMarkerHighlightStyles : selectionMarkerCursorStyles,
51
51
  testId: "selection-marker-".concat(type, "-cursor"),
52
52
  contentEditable: false
@@ -16,9 +16,9 @@ const selectionMarkerHighlightStyles = xcss({
16
16
  backgroundSize: 'contain',
17
17
  aspectRatio: '3/20',
18
18
  left: '0px',
19
- marginLeft: '-0.1em',
19
+ marginLeft: 'space.negative.025',
20
20
  right: '0px',
21
- marginRight: '-0.1em',
21
+ marginRight: 'space.negative.025',
22
22
  pointerEvents: 'none'
23
23
  });
24
24
  const selectionMarkerCursorStyles = xcss({
@@ -30,9 +30,9 @@ const selectionMarkerCursorStyles = xcss({
30
30
  top: 'space.0',
31
31
  bottom: "var(--ds-space-negative-025, -2px)",
32
32
  left: '1px',
33
- marginLeft: '-0.1em',
33
+ marginLeft: 'space.negative.025',
34
34
  right: '0px',
35
- marginRight: '-0.1em',
35
+ marginRight: 'space.negative.025',
36
36
  pointerEvents: 'none'
37
37
  });
38
38
  const Widget = ({
@@ -40,7 +40,7 @@ const Widget = ({
40
40
  isHighlight
41
41
  }) => {
42
42
  return /*#__PURE__*/React.createElement(Box, {
43
- as: 'span',
43
+ as: "span",
44
44
  xcss: isHighlight ? selectionMarkerHighlightStyles : selectionMarkerCursorStyles,
45
45
  testId: `selection-marker-${type}-cursor`,
46
46
  contentEditable: false
@@ -16,9 +16,9 @@ var selectionMarkerHighlightStyles = xcss({
16
16
  backgroundSize: 'contain',
17
17
  aspectRatio: '3/20',
18
18
  left: '0px',
19
- marginLeft: '-0.1em',
19
+ marginLeft: 'space.negative.025',
20
20
  right: '0px',
21
- marginRight: '-0.1em',
21
+ marginRight: 'space.negative.025',
22
22
  pointerEvents: 'none'
23
23
  });
24
24
  var selectionMarkerCursorStyles = xcss({
@@ -30,16 +30,16 @@ var selectionMarkerCursorStyles = xcss({
30
30
  top: 'space.0',
31
31
  bottom: "var(--ds-space-negative-025, -2px)",
32
32
  left: '1px',
33
- marginLeft: '-0.1em',
33
+ marginLeft: 'space.negative.025',
34
34
  right: '0px',
35
- marginRight: '-0.1em',
35
+ marginRight: 'space.negative.025',
36
36
  pointerEvents: 'none'
37
37
  });
38
38
  var Widget = function Widget(_ref) {
39
39
  var type = _ref.type,
40
40
  isHighlight = _ref.isHighlight;
41
41
  return /*#__PURE__*/React.createElement(Box, {
42
- as: 'span',
42
+ as: "span",
43
43
  xcss: isHighlight ? selectionMarkerHighlightStyles : selectionMarkerCursorStyles,
44
44
  testId: "selection-marker-".concat(type, "-cursor"),
45
45
  contentEditable: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,13 +31,13 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^78.31.0",
34
+ "@atlaskit/editor-common": "^79.0.0",
35
35
  "@atlaskit/editor-plugin-focus": "^1.2.0",
36
36
  "@atlaskit/editor-plugin-type-ahead": "^1.1.0",
37
37
  "@atlaskit/editor-prosemirror": "4.0.0",
38
- "@atlaskit/primitives": "^5.5.0",
38
+ "@atlaskit/primitives": "^5.7.0",
39
39
  "@atlaskit/theme": "^12.7.0",
40
- "@atlaskit/tokens": "^1.43.0",
40
+ "@atlaskit/tokens": "^1.45.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },