@atlaskit/smart-card 26.11.1 → 26.12.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,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 26.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update dependency json-ld-types@3.8.0
8
+
9
+ ## 26.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`5eea09cd864`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eea09cd864) - Standalone Hover Preview: Add zIndex prop to pass to DS Popup
14
+
3
15
  ## 26.11.1
4
16
 
5
17
  ### Patch Changes
package/compass.yml CHANGED
@@ -15,7 +15,7 @@ links:
15
15
  url: 'https://atlassian.slack.com/app_redirect?channel=linking-platform'
16
16
  - name: ''
17
17
  type: ON_CALL
18
- url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/98927e5e-f400-41a3-bdd1-b580c9b1d78b'
18
+ url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
19
19
  - name: ''
20
20
  type: DOCUMENT
21
21
  url: 'https://hello.atlassian.net/wiki/spaces/TWPLP/overview'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.11.1",
3
+ "version": "26.12.1",
4
4
  "sideEffects": false
5
5
  }
@@ -43,7 +43,9 @@ var HoverCardComponent = function HoverCardComponent(_ref) {
43
43
  _ref$showServerAction = _ref.showServerActions,
44
44
  showServerActions = _ref$showServerAction === void 0 ? false : _ref$showServerAction,
45
45
  _ref$allowEventPropag = _ref.allowEventPropagation,
46
- allowEventPropagation = _ref$allowEventPropag === void 0 ? false : _ref$allowEventPropag;
46
+ allowEventPropagation = _ref$allowEventPropag === void 0 ? false : _ref$allowEventPropag,
47
+ _ref$zIndex = _ref.zIndex,
48
+ zIndex = _ref$zIndex === void 0 ? _styled.HOVER_CARD_Z_INDEX : _ref$zIndex;
47
49
  var _React$useState = _react2.default.useState(false),
48
50
  _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
49
51
  isOpen = _React$useState2[0],
@@ -222,7 +224,7 @@ var HoverCardComponent = function HoverCardComponent(_ref) {
222
224
  autoFocus: false,
223
225
  content: content,
224
226
  trigger: trigger,
225
- zIndex: _styled.HOVER_CARD_Z_INDEX
227
+ zIndex: zIndex
226
228
  });
227
229
  };
228
230
  exports.HoverCardComponent = HoverCardComponent;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.11.1",
3
+ "version": "26.12.1",
4
4
  "sideEffects": false
5
5
  }
@@ -25,7 +25,8 @@ export const HoverCardComponent = ({
25
25
  closeOnChildClick = false,
26
26
  hidePreviewButton = false,
27
27
  showServerActions = false,
28
- allowEventPropagation = false
28
+ allowEventPropagation = false,
29
+ zIndex = HOVER_CARD_Z_INDEX
29
30
  }) => {
30
31
  const [isOpen, setIsOpen] = React.useState(false);
31
32
  const fadeOutTimeoutId = useRef();
@@ -195,6 +196,6 @@ export const HoverCardComponent = ({
195
196
  autoFocus: false,
196
197
  content: content,
197
198
  trigger: trigger,
198
- zIndex: HOVER_CARD_Z_INDEX
199
+ zIndex: zIndex
199
200
  });
200
201
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.11.1",
3
+ "version": "26.12.1",
4
4
  "sideEffects": false
5
5
  }
@@ -32,7 +32,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
32
32
  _ref$showServerAction = _ref.showServerActions,
33
33
  showServerActions = _ref$showServerAction === void 0 ? false : _ref$showServerAction,
34
34
  _ref$allowEventPropag = _ref.allowEventPropagation,
35
- allowEventPropagation = _ref$allowEventPropag === void 0 ? false : _ref$allowEventPropag;
35
+ allowEventPropagation = _ref$allowEventPropag === void 0 ? false : _ref$allowEventPropag,
36
+ _ref$zIndex = _ref.zIndex,
37
+ zIndex = _ref$zIndex === void 0 ? HOVER_CARD_Z_INDEX : _ref$zIndex;
36
38
  var _React$useState = React.useState(false),
37
39
  _React$useState2 = _slicedToArray(_React$useState, 2),
38
40
  isOpen = _React$useState2[0],
@@ -211,6 +213,6 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
211
213
  autoFocus: false,
212
214
  content: content,
213
215
  trigger: trigger,
214
- zIndex: HOVER_CARD_Z_INDEX
216
+ zIndex: zIndex
215
217
  });
216
218
  };
@@ -43,6 +43,11 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
43
43
  * Determines whether to show available server actions.
44
44
  */
45
45
  showServerActions?: boolean;
46
+ /**
47
+ * Z-index that the hover card should be displayed in.
48
+ * This is passed to the portal component.
49
+ */
50
+ zIndex?: number;
46
51
  }
47
52
  /**
48
53
  * An internal props that internal smart-card components can use to configure
@@ -43,6 +43,11 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
43
43
  * Determines whether to show available server actions.
44
44
  */
45
45
  showServerActions?: boolean;
46
+ /**
47
+ * Z-index that the hover card should be displayed in.
48
+ * This is passed to the portal component.
49
+ */
50
+ zIndex?: number;
46
51
  }
47
52
  /**
48
53
  * An internal props that internal smart-card components can use to configure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.11.1",
3
+ "version": "26.12.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -56,7 +56,7 @@
56
56
  "@emotion/styled": "^11.0.0",
57
57
  "@formatjs/intl-utils": "^3.8.4",
58
58
  "facepaint": "^1.2.1",
59
- "json-ld-types": "3.7.0",
59
+ "json-ld-types": "3.8.0",
60
60
  "react-error-boundary": "^3.1.3",
61
61
  "react-lazily-render": "^1.2.0",
62
62
  "react-loadable": "^5.1.0",
@@ -74,7 +74,7 @@
74
74
  "@af/visual-regression": "*",
75
75
  "@atlaskit/avatar": "^21.3.0",
76
76
  "@atlaskit/css-reset": "^6.5.0",
77
- "@atlaskit/link-test-helpers": "^5.0.0",
77
+ "@atlaskit/link-test-helpers": "^6.0.0",
78
78
  "@atlaskit/lozenge": "^11.4.0",
79
79
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
80
80
  "@atlaskit/media-test-helpers": "^33.0.0",