@atlaskit/editor-plugin-selection-marker 1.2.2 → 1.3.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,21 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#95182](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95182) [`3d3dd335b8e8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d3dd335b8e8) - The internal composition of this component has changed. There is no expected change in behavior.
8
+
9
+ ## 1.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.2.2
4
20
 
5
21
  ### Patch Changes
@@ -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.2.2",
3
+ "version": "1.3.1",
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.29.0",
35
- "@atlaskit/editor-plugin-focus": "^1.1.0",
36
- "@atlaskit/editor-plugin-type-ahead": "^1.0.2",
37
- "@atlaskit/editor-prosemirror": "3.0.0",
38
- "@atlaskit/primitives": "^5.5.0",
34
+ "@atlaskit/editor-common": "^78.36.0",
35
+ "@atlaskit/editor-plugin-focus": "^1.2.0",
36
+ "@atlaskit/editor-plugin-type-ahead": "^1.1.0",
37
+ "@atlaskit/editor-prosemirror": "4.0.0",
38
+ "@atlaskit/primitives": "^5.6.0",
39
39
  "@atlaskit/theme": "^12.7.0",
40
- "@atlaskit/tokens": "^1.43.0",
40
+ "@atlaskit/tokens": "^1.44.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },