@atlaskit/spotlight 0.5.1 → 0.6.0

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,12 @@
1
1
  # @atlaskit/spotlight
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c43cbdde6f08c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c43cbdde6f08c) -
8
+ `PopoverContent` `dismiss` prop is now required.
9
+
3
10
  ## 0.5.1
4
11
 
5
12
  ### Patch Changes
@@ -89,9 +89,6 @@ var PopoverContent = exports.PopoverContent = function PopoverContent(_ref) {
89
89
  if (!focusWithin) {
90
90
  return;
91
91
  }
92
- if (!dismiss) {
93
- return;
94
- }
95
92
  dismiss(event);
96
93
  });
97
94
  return /*#__PURE__*/React.createElement(_popper.Popper, {
@@ -75,9 +75,6 @@ export const PopoverContent = ({
75
75
  if (!focusWithin) {
76
76
  return;
77
77
  }
78
- if (!dismiss) {
79
- return;
80
- }
81
78
  dismiss(event);
82
79
  });
83
80
  return /*#__PURE__*/React.createElement(Popper, {
@@ -80,9 +80,6 @@ export var PopoverContent = function PopoverContent(_ref) {
80
80
  if (!focusWithin) {
81
81
  return;
82
82
  }
83
- if (!dismiss) {
84
- return;
85
- }
86
83
  dismiss(event);
87
84
  });
88
85
  return /*#__PURE__*/React.createElement(Popper, {
@@ -13,7 +13,7 @@ export interface PopoverContentProps {
13
13
  testId?: string;
14
14
  placement: Placement;
15
15
  isVisible?: boolean;
16
- dismiss?: (event: KeyboardEvent) => void;
16
+ dismiss: (event: KeyboardEvent) => void;
17
17
  children: ReactNode;
18
18
  }
19
19
  /**
@@ -13,7 +13,7 @@ export interface PopoverContentProps {
13
13
  testId?: string;
14
14
  placement: Placement;
15
15
  isVisible?: boolean;
16
- dismiss?: (event: KeyboardEvent) => void;
16
+ dismiss: (event: KeyboardEvent) => void;
17
17
  children: ReactNode;
18
18
  }
19
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/spotlight",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "A spotlight introduces users to various points of interest across Atlassian through focused messages or multi-step tours.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",