@atlaskit/smart-card 27.19.0 → 27.19.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,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 27.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6993bb3b59334`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6993bb3b59334) -
8
+ Added check if entrypoint wrapper is available then pass it to the the wrapper prop of
9
+ action-group-item
10
+
3
11
  ## 27.19.0
4
12
 
5
13
  ### Minor Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "27.19.0"
25
+ packageVersion: "27.19.1"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -53,6 +53,9 @@ var ActionGroupItem = function ActionGroupItem(_ref) {
53
53
  if (hideIcon) {
54
54
  actionProps.icon = undefined;
55
55
  }
56
+ if (item !== null && item !== void 0 && item.entryPointWrapper) {
57
+ actionProps.wrapper = item.entryPointWrapper;
58
+ }
56
59
  return (0, _react.jsx)(Action, (0, _extends2.default)({
57
60
  asDropDownItem: asDropDownItems,
58
61
  size: size,
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "27.19.0",
20
+ packageVersion: "27.19.1",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "27.19.0"
7
+ packageVersion: "27.19.1"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -43,6 +43,9 @@ const ActionGroupItem = ({
43
43
  if (hideIcon) {
44
44
  actionProps.icon = undefined;
45
45
  }
46
+ if (item !== null && item !== void 0 && item.entryPointWrapper) {
47
+ actionProps.wrapper = item.entryPointWrapper;
48
+ }
46
49
  return jsx(Action, _extends({
47
50
  asDropDownItem: asDropDownItems,
48
51
  size: size,
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "27.19.0",
10
+ packageVersion: "27.19.1",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "27.19.0"
18
+ packageVersion: "27.19.1"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -43,6 +43,9 @@ var ActionGroupItem = function ActionGroupItem(_ref) {
43
43
  if (hideIcon) {
44
44
  actionProps.icon = undefined;
45
45
  }
46
+ if (item !== null && item !== void 0 && item.entryPointWrapper) {
47
+ actionProps.wrapper = item.entryPointWrapper;
48
+ }
46
49
  return jsx(Action, _extends({
47
50
  asDropDownItem: asDropDownItems,
48
51
  size: size,
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "27.19.0",
13
+ packageVersion: "27.19.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -185,7 +185,11 @@ export type CustomActionItem = BaseActionItem & {
185
185
  href?: string;
186
186
  ariaLabel?: string;
187
187
  } & ((Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>) | ((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>));
188
- export type ActionItem = NamedActionItem | NamedDataActionItem | CustomActionItem;
188
+ export type ActionItem = (NamedActionItem | NamedDataActionItem | CustomActionItem) & {
189
+ entryPointWrapper?: React.FC<{
190
+ children: React.ReactNode;
191
+ }>;
192
+ };
189
193
  export type OnActionMenuOpenChangeOptions = {
190
194
  isOpen: boolean;
191
195
  };
@@ -185,7 +185,11 @@ export type CustomActionItem = BaseActionItem & {
185
185
  href?: string;
186
186
  ariaLabel?: string;
187
187
  } & ((Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>) | ((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>));
188
- export type ActionItem = NamedActionItem | NamedDataActionItem | CustomActionItem;
188
+ export type ActionItem = (NamedActionItem | NamedDataActionItem | CustomActionItem) & {
189
+ entryPointWrapper?: React.FC<{
190
+ children: React.ReactNode;
191
+ }>;
192
+ };
189
193
  export type OnActionMenuOpenChangeOptions = {
190
194
  isOpen: boolean;
191
195
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "27.19.0",
3
+ "version": "27.19.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"