@atlaskit/editor-plugin-card 16.4.1 → 16.4.3

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,19 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 16.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d94df511393a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d94df511393a9) -
8
+ Removing FG platform_editor_a11y_eslint_fix
9
+ - Updated dependencies
10
+
11
+ ## 16.4.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 16.4.1
4
18
 
5
19
  ### Patch Changes
@@ -9,7 +9,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
9
9
  var _react = require("react");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _link = require("@atlaskit/editor-common/link");
12
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
12
  /**
14
13
  * @jsxRuntime classic
15
14
  * @jsx jsx
@@ -42,27 +41,21 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
42
41
  setShowConfigureButton(false);
43
42
  }
44
43
  }, []);
44
+ var showOverlay = (0, _react.useCallback)(function () {
45
+ setShowConfigureButton(true);
46
+ hoverCallback(true);
47
+ }, [hoverCallback]);
48
+ var hideOverlay = (0, _react.useCallback)(function () {
49
+ if (!dropdownOpen) {
50
+ setShowConfigureButton(false);
51
+ hoverCallback(false);
52
+ }
53
+ }, [dropdownOpen, hoverCallback]);
45
54
  return (0, _react2.jsx)("span", {
46
- onMouseEnter: function onMouseEnter() {
47
- setShowConfigureButton(true);
48
- hoverCallback(true);
49
- },
50
- onMouseLeave: function onMouseLeave() {
51
- if (!dropdownOpen) {
52
- setShowConfigureButton(false);
53
- hoverCallback(false);
54
- }
55
- },
56
- onFocus: (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? function () {
57
- setShowConfigureButton(true);
58
- hoverCallback(true);
59
- } : undefined,
60
- onBlur: (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? function () {
61
- if (!dropdownOpen) {
62
- setShowConfigureButton(false);
63
- hoverCallback(false);
64
- }
65
- } : undefined,
55
+ onMouseEnter: showOverlay,
56
+ onMouseLeave: hideOverlay,
57
+ onFocus: showOverlay,
58
+ onBlur: hideOverlay,
66
59
  "data-testid": "inline-card-overlay-wrapper"
67
60
  }, (0, _react2.jsx)("span", {
68
61
  css: ConfigureOverlayWrapperStyles
@@ -8,7 +8,6 @@ import { useCallback, useState } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { OverlayButton } from '@atlaskit/editor-common/link';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  const ConfigureOverlayWrapperStyles = css({
13
12
  position: 'relative',
14
13
  left: "var(--ds-space-025, 2px)"
@@ -28,27 +27,21 @@ const OverlayWrapper = ({
28
27
  setShowConfigureButton(false);
29
28
  }
30
29
  }, []);
30
+ const showOverlay = useCallback(() => {
31
+ setShowConfigureButton(true);
32
+ hoverCallback(true);
33
+ }, [hoverCallback]);
34
+ const hideOverlay = useCallback(() => {
35
+ if (!dropdownOpen) {
36
+ setShowConfigureButton(false);
37
+ hoverCallback(false);
38
+ }
39
+ }, [dropdownOpen, hoverCallback]);
31
40
  return jsx("span", {
32
- onMouseEnter: () => {
33
- setShowConfigureButton(true);
34
- hoverCallback(true);
35
- },
36
- onMouseLeave: () => {
37
- if (!dropdownOpen) {
38
- setShowConfigureButton(false);
39
- hoverCallback(false);
40
- }
41
- },
42
- onFocus: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? () => {
43
- setShowConfigureButton(true);
44
- hoverCallback(true);
45
- } : undefined,
46
- onBlur: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? () => {
47
- if (!dropdownOpen) {
48
- setShowConfigureButton(false);
49
- hoverCallback(false);
50
- }
51
- } : undefined,
41
+ onMouseEnter: showOverlay,
42
+ onMouseLeave: hideOverlay,
43
+ onFocus: showOverlay,
44
+ onBlur: hideOverlay,
52
45
  "data-testid": "inline-card-overlay-wrapper"
53
46
  }, jsx("span", {
54
47
  css: ConfigureOverlayWrapperStyles
@@ -9,7 +9,6 @@ import { useCallback, useState } from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { OverlayButton } from '@atlaskit/editor-common/link';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  var ConfigureOverlayWrapperStyles = css({
14
13
  position: 'relative',
15
14
  left: "var(--ds-space-025, 2px)"
@@ -34,27 +33,21 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
34
33
  setShowConfigureButton(false);
35
34
  }
36
35
  }, []);
36
+ var showOverlay = useCallback(function () {
37
+ setShowConfigureButton(true);
38
+ hoverCallback(true);
39
+ }, [hoverCallback]);
40
+ var hideOverlay = useCallback(function () {
41
+ if (!dropdownOpen) {
42
+ setShowConfigureButton(false);
43
+ hoverCallback(false);
44
+ }
45
+ }, [dropdownOpen, hoverCallback]);
37
46
  return jsx("span", {
38
- onMouseEnter: function onMouseEnter() {
39
- setShowConfigureButton(true);
40
- hoverCallback(true);
41
- },
42
- onMouseLeave: function onMouseLeave() {
43
- if (!dropdownOpen) {
44
- setShowConfigureButton(false);
45
- hoverCallback(false);
46
- }
47
- },
48
- onFocus: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? function () {
49
- setShowConfigureButton(true);
50
- hoverCallback(true);
51
- } : undefined,
52
- onBlur: expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true) ? function () {
53
- if (!dropdownOpen) {
54
- setShowConfigureButton(false);
55
- hoverCallback(false);
56
- }
57
- } : undefined,
47
+ onMouseEnter: showOverlay,
48
+ onMouseLeave: hideOverlay,
49
+ onFocus: showOverlay,
50
+ onBlur: hideOverlay,
58
51
  "data-testid": "inline-card-overlay-wrapper"
59
52
  }, jsx("span", {
60
53
  css: ConfigureOverlayWrapperStyles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "16.4.1",
3
+ "version": "16.4.3",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/primitives": "^19.0.0",
63
63
  "@atlaskit/prosemirror-history": "^0.2.0",
64
64
  "@atlaskit/smart-card": "^44.3.0",
65
- "@atlaskit/tmp-editor-statsig": "^70.4.0",
65
+ "@atlaskit/tmp-editor-statsig": "^72.0.0",
66
66
  "@atlaskit/tokens": "^13.0.0",
67
67
  "@babel/runtime": "^7.0.0",
68
68
  "@emotion/react": "^11.7.1",
@@ -72,7 +72,7 @@
72
72
  "uuid": "^3.1.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^114.12.0",
75
+ "@atlaskit/editor-common": "^114.13.0",
76
76
  "@atlaskit/link-provider": "^4.3.0",
77
77
  "react": "^18.2.0",
78
78
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"