@atlaskit/editor-plugin-selection-marker 3.0.7 → 3.0.8

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
+ ## 3.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f0b0ea63f59bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0b0ea63f59bc) -
8
+ [ux] ED-28803 Register Delete Button in block menu and add delete functionality and hover styles
9
+ - Updated dependencies
10
+
3
11
  ## 3.0.7
4
12
 
5
13
  ### Patch Changes
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.GlobalStylesWrapper = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
8
9
  /**
9
10
  * @jsxRuntime classic
10
11
  * @jsx jsx
@@ -26,8 +27,14 @@ var globalStyles = (0, _react.css)({
26
27
  background: 'unset'
27
28
  }
28
29
  });
30
+ var hideSelectionStyles = (0, _react.css)({
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
32
+ '.ProseMirror *.danger::selection': {
33
+ background: 'transparent'
34
+ }
35
+ });
29
36
  var GlobalStylesWrapper = exports.GlobalStylesWrapper = function GlobalStylesWrapper() {
30
37
  return (0, _react.jsx)(_react.Global, {
31
- styles: globalStyles
38
+ styles: [globalStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) && hideSelectionStyles]
32
39
  });
33
40
  };
@@ -4,6 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, Global, jsx } from '@emotion/react';
7
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
8
 
8
9
  /**
9
10
  * Unset the selection background color as we are using our own
@@ -20,8 +21,14 @@ const globalStyles = css({
20
21
  background: 'unset'
21
22
  }
22
23
  });
24
+ const hideSelectionStyles = css({
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
26
+ '.ProseMirror *.danger::selection': {
27
+ background: 'transparent'
28
+ }
29
+ });
23
30
  export const GlobalStylesWrapper = () => {
24
31
  return jsx(Global, {
25
- styles: globalStyles
32
+ styles: [globalStyles, expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && hideSelectionStyles]
26
33
  });
27
34
  };
@@ -4,6 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, Global, jsx } from '@emotion/react';
7
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
7
8
 
8
9
  /**
9
10
  * Unset the selection background color as we are using our own
@@ -20,8 +21,14 @@ var globalStyles = css({
20
21
  background: 'unset'
21
22
  }
22
23
  });
24
+ var hideSelectionStyles = css({
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
26
+ '.ProseMirror *.danger::selection': {
27
+ background: 'transparent'
28
+ }
29
+ });
23
30
  export var GlobalStylesWrapper = function GlobalStylesWrapper() {
24
31
  return jsx(Global, {
25
- styles: globalStyles
32
+ styles: [globalStyles, expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && hideSelectionStyles]
26
33
  });
27
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,14 +39,14 @@
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/primitives": "^14.11.0",
41
41
  "@atlaskit/theme": "^19.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^11.5.0",
42
+ "@atlaskit/tmp-editor-statsig": "^11.6.0",
43
43
  "@atlaskit/tokens": "^6.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
46
  "lodash": "^4.17.21"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^107.28.0",
49
+ "@atlaskit/editor-common": "^107.29.0",
50
50
  "react": "^18.2.0",
51
51
  "react-dom": "^18.2.0"
52
52
  },