@atlaskit/smart-card 40.3.0 → 40.4.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.
Files changed (24) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/FlexibleCard/components/elements/custom-by-access-type-element/index.compiled.css +15 -0
  4. package/dist/cjs/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +38 -11
  5. package/dist/cjs/view/LinkUrl/index.js +1 -1
  6. package/dist/es2019/utils/analytics/analytics.js +1 -1
  7. package/dist/es2019/view/FlexibleCard/components/elements/custom-by-access-type-element/index.compiled.css +15 -0
  8. package/dist/es2019/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +36 -11
  9. package/dist/es2019/view/LinkUrl/index.js +1 -1
  10. package/dist/esm/utils/analytics/analytics.js +1 -1
  11. package/dist/esm/view/FlexibleCard/components/elements/custom-by-access-type-element/index.compiled.css +15 -0
  12. package/dist/esm/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +38 -11
  13. package/dist/esm/view/LinkUrl/index.js +1 -1
  14. package/dist/types/__fixtures__/conversation-entity.d.ts +1 -1
  15. package/dist/types/__fixtures__/message-entity.d.ts +1 -1
  16. package/dist/types/extractors/flexible/utils.d.ts +1 -1
  17. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +1 -1
  18. package/dist/types/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +6 -2
  19. package/dist/types-ts4.5/__fixtures__/conversation-entity.d.ts +1 -1
  20. package/dist/types-ts4.5/__fixtures__/message-entity.d.ts +1 -1
  21. package/dist/types-ts4.5/extractors/flexible/utils.d.ts +1 -1
  22. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +1 -1
  23. package/dist/types-ts4.5/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +6 -2
  24. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 40.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#188355](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188355)
8
+ [`07b7e58bfcd24`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/07b7e58bfcd24) -
9
+ [ux] Modify CustomByStatusElement props to accept a React.ReactNode and MessageDescriptor
10
+
3
11
  ## 40.3.0
4
12
 
5
13
  ### Minor Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "40.2.0"
14
+ packageVersion: "40.3.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -0,0 +1,15 @@
1
+ ._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
+ ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
+ ._18m915vq{overflow-y:hidden}
6
+ ._1bto1l2s{text-overflow:ellipsis}
7
+ ._1e0ccj1k{display:-webkit-box}
8
+ ._1nmz1hna{word-break:break-word}
9
+ ._1reo15vq{overflow-x:hidden}
10
+ ._1ul9idpf{min-width:0}
11
+ ._1yyjkb7n{-webkit-line-clamp:1}
12
+ ._o5724jg8{white-space:normal}
13
+ ._sudp1e54{-webkit-box-orient:vertical}
14
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
15
+ @supports not (-webkit-line-clamp:1){._102k1j6v{max-height:1rem}}
@@ -1,3 +1,4 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -5,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
8
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
13
  var _react = _interopRequireDefault(require("react"));
@@ -12,6 +15,17 @@ var _constants = require("../../../../../constants");
12
15
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
13
16
  var _common = require("../common");
14
17
  var _excluded = ["className", "testId"];
18
+ var baseStyle = null;
19
+ var isMessageDescriptor = function isMessageDescriptor(x) {
20
+ return ! /*#__PURE__*/_react.default.isValidElement(x);
21
+ };
22
+ var fontOverrideStyleMap = {
23
+ 'font.body': "_11c82smr",
24
+ 'font.body.large': "_11c81ixg",
25
+ 'font.body.small': "_11c81o8v",
26
+ 'font.body.UNSAFE_small': "_11c8dcr7"
27
+ };
28
+ var maxLinesCss = null;
15
29
  var CustomElementByAccessType = function CustomElementByAccessType(_ref) {
16
30
  var _context$data, _props, _context$data2;
17
31
  var className = _ref.className,
@@ -20,21 +34,34 @@ var CustomElementByAccessType = function CustomElementByAccessType(_ref) {
20
34
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
21
35
  var context = (0, _flexibleUiContext.useFlexibleCardContext)();
22
36
  var accessType = context === null || context === void 0 || (_context$data = context.data) === null || _context$data === void 0 || (_context$data = _context$data.meta) === null || _context$data === void 0 ? void 0 : _context$data.accessType;
23
- var descriptor = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
24
- if (!descriptor) {
37
+ var contentForAccessType = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
38
+ if (!contentForAccessType) {
25
39
  return null;
26
40
  }
27
41
  var values = context === null || context === void 0 || (_context$data2 = context.data) === null || _context$data2 === void 0 || (_context$data2 = _context$data2.actions) === null || _context$data2 === void 0 || (_context$data2 = _context$data2[_constants.InternalActionName.UnresolvedAction]) === null || _context$data2 === void 0 ? void 0 : _context$data2.values;
28
- return /*#__PURE__*/_react.default.createElement(_common.BaseTextElement, (0, _extends2.default)({}, props, {
29
- message: {
30
- descriptor: descriptor,
31
- values: values
32
- }
42
+ if (isMessageDescriptor(contentForAccessType)) {
43
+ return /*#__PURE__*/_react.default.createElement(_common.BaseTextElement, (0, _extends2.default)({}, props, {
44
+ message: {
45
+ descriptor: contentForAccessType,
46
+ values: values
47
+ }
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
49
+ ,
50
+ className: className,
51
+ testId: testId,
52
+ hideFormat: true
53
+ }));
54
+ }
55
+ return /*#__PURE__*/_react.default.createElement("span", {
56
+ style: {
57
+ color: props.color
58
+ },
59
+ "data-separator": true,
60
+ "data-smart-element-text": true,
61
+ "data-testid": testId
33
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
34
63
  ,
35
- className: className,
36
- testId: testId,
37
- hideFormat: true
38
- }));
64
+ className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", props.fontSize !== undefined && fontOverrideStyleMap[props.fontSize], "_1yyjkb7n _102k1j6v", className])
65
+ }, contentForAccessType);
39
66
  };
40
67
  var _default = exports.default = CustomElementByAccessType;
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "40.2.0",
23
+ packageVersion: "40.3.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "40.2.0"
5
+ packageVersion: "40.3.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -0,0 +1,15 @@
1
+ ._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
+ ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
+ ._18m915vq{overflow-y:hidden}
6
+ ._1bto1l2s{text-overflow:ellipsis}
7
+ ._1e0ccj1k{display:-webkit-box}
8
+ ._1nmz1hna{word-break:break-word}
9
+ ._1reo15vq{overflow-x:hidden}
10
+ ._1ul9idpf{min-width:0}
11
+ ._1yyjkb7n{-webkit-line-clamp:1}
12
+ ._o5724jg8{white-space:normal}
13
+ ._sudp1e54{-webkit-box-orient:vertical}
14
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
15
+ @supports not (-webkit-line-clamp:1){._102k1j6v{max-height:1rem}}
@@ -1,8 +1,20 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import "./index.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
2
5
  import React from 'react';
3
6
  import { InternalActionName } from '../../../../../constants';
4
7
  import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context';
5
8
  import { BaseTextElement } from '../common';
9
+ const baseStyle = null;
10
+ const isMessageDescriptor = x => ! /*#__PURE__*/React.isValidElement(x);
11
+ const fontOverrideStyleMap = {
12
+ 'font.body': "_11c82smr",
13
+ 'font.body.large': "_11c81ixg",
14
+ 'font.body.small': "_11c81o8v",
15
+ 'font.body.UNSAFE_small': "_11c8dcr7"
16
+ };
17
+ const maxLinesCss = null;
6
18
  const CustomElementByAccessType = ({
7
19
  className,
8
20
  testId = 'custom-by-access-type-element',
@@ -11,21 +23,34 @@ const CustomElementByAccessType = ({
11
23
  var _context$data, _context$data$meta, _props, _context$data2, _context$data2$action, _context$data2$action2;
12
24
  const context = useFlexibleCardContext();
13
25
  const accessType = context === null || context === void 0 ? void 0 : (_context$data = context.data) === null || _context$data === void 0 ? void 0 : (_context$data$meta = _context$data.meta) === null || _context$data$meta === void 0 ? void 0 : _context$data$meta.accessType;
14
- const descriptor = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
15
- if (!descriptor) {
26
+ const contentForAccessType = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
27
+ if (!contentForAccessType) {
16
28
  return null;
17
29
  }
18
30
  const values = context === null || context === void 0 ? void 0 : (_context$data2 = context.data) === null || _context$data2 === void 0 ? void 0 : (_context$data2$action = _context$data2.actions) === null || _context$data2$action === void 0 ? void 0 : (_context$data2$action2 = _context$data2$action[InternalActionName.UnresolvedAction]) === null || _context$data2$action2 === void 0 ? void 0 : _context$data2$action2.values;
19
- return /*#__PURE__*/React.createElement(BaseTextElement, _extends({}, props, {
20
- message: {
21
- descriptor,
22
- values
23
- }
31
+ if (isMessageDescriptor(contentForAccessType)) {
32
+ return /*#__PURE__*/React.createElement(BaseTextElement, _extends({}, props, {
33
+ message: {
34
+ descriptor: contentForAccessType,
35
+ values
36
+ }
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
38
+ ,
39
+ className: className,
40
+ testId: testId,
41
+ hideFormat: true
42
+ }));
43
+ }
44
+ return /*#__PURE__*/React.createElement("span", {
45
+ style: {
46
+ color: props.color
47
+ },
48
+ "data-separator": true,
49
+ "data-smart-element-text": true,
50
+ "data-testid": testId
24
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
25
52
  ,
26
- className: className,
27
- testId: testId,
28
- hideFormat: true
29
- }));
53
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", props.fontSize !== undefined && fontOverrideStyleMap[props.fontSize], "_1yyjkb7n _102k1j6v", className])
54
+ }, contentForAccessType);
30
55
  };
31
56
  export default CustomElementByAccessType;
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "40.2.0",
13
+ packageVersion: "40.3.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "40.2.0"
7
+ packageVersion: "40.3.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -0,0 +1,15 @@
1
+ ._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
+ ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
+ ._18m915vq{overflow-y:hidden}
6
+ ._1bto1l2s{text-overflow:ellipsis}
7
+ ._1e0ccj1k{display:-webkit-box}
8
+ ._1nmz1hna{word-break:break-word}
9
+ ._1reo15vq{overflow-x:hidden}
10
+ ._1ul9idpf{min-width:0}
11
+ ._1yyjkb7n{-webkit-line-clamp:1}
12
+ ._o5724jg8{white-space:normal}
13
+ ._sudp1e54{-webkit-box-orient:vertical}
14
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
15
+ @supports not (-webkit-line-clamp:1){._102k1j6v{max-height:1rem}}
@@ -1,10 +1,24 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  var _excluded = ["className", "testId"];
5
+ import "./index.compiled.css";
6
+ import { ax, ix } from "@compiled/react/runtime";
4
7
  import React from 'react';
5
8
  import { InternalActionName } from '../../../../../constants';
6
9
  import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context';
7
10
  import { BaseTextElement } from '../common';
11
+ var baseStyle = null;
12
+ var isMessageDescriptor = function isMessageDescriptor(x) {
13
+ return ! /*#__PURE__*/React.isValidElement(x);
14
+ };
15
+ var fontOverrideStyleMap = {
16
+ 'font.body': "_11c82smr",
17
+ 'font.body.large': "_11c81ixg",
18
+ 'font.body.small': "_11c81o8v",
19
+ 'font.body.UNSAFE_small': "_11c8dcr7"
20
+ };
21
+ var maxLinesCss = null;
8
22
  var CustomElementByAccessType = function CustomElementByAccessType(_ref) {
9
23
  var _context$data, _props, _context$data2;
10
24
  var className = _ref.className,
@@ -13,21 +27,34 @@ var CustomElementByAccessType = function CustomElementByAccessType(_ref) {
13
27
  props = _objectWithoutProperties(_ref, _excluded);
14
28
  var context = useFlexibleCardContext();
15
29
  var accessType = context === null || context === void 0 || (_context$data = context.data) === null || _context$data === void 0 || (_context$data = _context$data.meta) === null || _context$data === void 0 ? void 0 : _context$data.accessType;
16
- var descriptor = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
17
- if (!descriptor) {
30
+ var contentForAccessType = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
31
+ if (!contentForAccessType) {
18
32
  return null;
19
33
  }
20
34
  var values = context === null || context === void 0 || (_context$data2 = context.data) === null || _context$data2 === void 0 || (_context$data2 = _context$data2.actions) === null || _context$data2 === void 0 || (_context$data2 = _context$data2[InternalActionName.UnresolvedAction]) === null || _context$data2 === void 0 ? void 0 : _context$data2.values;
21
- return /*#__PURE__*/React.createElement(BaseTextElement, _extends({}, props, {
22
- message: {
23
- descriptor: descriptor,
24
- values: values
25
- }
35
+ if (isMessageDescriptor(contentForAccessType)) {
36
+ return /*#__PURE__*/React.createElement(BaseTextElement, _extends({}, props, {
37
+ message: {
38
+ descriptor: contentForAccessType,
39
+ values: values
40
+ }
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
42
+ ,
43
+ className: className,
44
+ testId: testId,
45
+ hideFormat: true
46
+ }));
47
+ }
48
+ return /*#__PURE__*/React.createElement("span", {
49
+ style: {
50
+ color: props.color
51
+ },
52
+ "data-separator": true,
53
+ "data-smart-element-text": true,
54
+ "data-testid": testId
26
55
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
27
56
  ,
28
- className: className,
29
- testId: testId,
30
- hideFormat: true
31
- }));
57
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", props.fontSize !== undefined && fontOverrideStyleMap[props.fontSize], "_1yyjkb7n _102k1j6v", className])
58
+ }, contentForAccessType);
32
59
  };
33
60
  export default CustomElementByAccessType;
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "40.2.0",
16
+ packageVersion: "40.3.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -1,3 +1,3 @@
1
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
1
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
2
2
  declare const _default: SmartLinkResponse;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
1
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
2
2
  declare const _default: SmartLinkResponse;
3
3
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { type JsonLd } from '@atlaskit/json-ld-types';
2
2
  import { type LinkPerson } from '@atlaskit/link-extractors';
3
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
3
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
4
4
  import { type LinkLocation } from '../../state/flexible-ui-context/types';
5
5
  export type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
6
6
  export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
@@ -6,4 +6,4 @@ export declare const addPath: (baseUrl: string, path: string) => string;
6
6
  *
7
7
  * @see https://developer.atlassian.com/platform/assistance-service/security/entitlements/#approach
8
8
  */
9
- export declare const getXProductHeaderValue: (product: ProductType | undefined) => "CONFLUENCE" | "ATLAS" | "BITBUCKET" | "TRELLO" | "JSM" | "JPD" | "ELEVATE" | "JIRA-SOFTWARE" | "JIRA-CORE" | undefined;
9
+ export declare const getXProductHeaderValue: (product: ProductType | undefined) => "CONFLUENCE" | "ATLAS" | "BITBUCKET" | "TRELLO" | "CSM" | "JSM" | "JPD" | "ELEVATE" | "JIRA-SOFTWARE" | "JIRA-CORE" | undefined;
@@ -1,8 +1,12 @@
1
- /// <reference types="react" />
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
2
6
  import { type MessageDescriptor } from 'react-intl-next';
3
7
  import type { Prettify } from '@atlaskit/linking-common';
4
8
  import { type BaseTextElementProps } from '../common';
5
9
  type AccessType = 'DIRECT_ACCESS' | 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDDEN' | 'DENIED_REQUEST_EXISTS';
6
- export type CustomElementByAccessTypeProps = Prettify<Pick<BaseTextElementProps, 'className' | 'testId' | 'color' | 'fontSize'> & Partial<Record<AccessType | 'fallback', MessageDescriptor>>>;
10
+ export type CustomElementByAccessTypeProps = Prettify<Pick<BaseTextElementProps, 'className' | 'testId' | 'color' | 'fontSize'> & Partial<Record<AccessType | 'fallback', MessageDescriptor | React.ReactNode>>>;
7
11
  declare const CustomElementByAccessType: ({ className, testId, ...props }: CustomElementByAccessTypeProps) => JSX.Element | null;
8
12
  export default CustomElementByAccessType;
@@ -1,3 +1,3 @@
1
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
1
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
2
2
  declare const _default: SmartLinkResponse;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
1
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
2
2
  declare const _default: SmartLinkResponse;
3
3
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { type JsonLd } from '@atlaskit/json-ld-types';
2
2
  import { type LinkPerson } from '@atlaskit/link-extractors';
3
- import type { SmartLinkResponse } from "@atlaskit/linking-types";
3
+ import type { SmartLinkResponse } from '@atlaskit/linking-types';
4
4
  import { type LinkLocation } from '../../state/flexible-ui-context/types';
5
5
  export type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
6
6
  export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
@@ -6,4 +6,4 @@ export declare const addPath: (baseUrl: string, path: string) => string;
6
6
  *
7
7
  * @see https://developer.atlassian.com/platform/assistance-service/security/entitlements/#approach
8
8
  */
9
- export declare const getXProductHeaderValue: (product: ProductType | undefined) => "CONFLUENCE" | "ATLAS" | "BITBUCKET" | "TRELLO" | "JSM" | "JPD" | "ELEVATE" | "JIRA-SOFTWARE" | "JIRA-CORE" | undefined;
9
+ export declare const getXProductHeaderValue: (product: ProductType | undefined) => "CONFLUENCE" | "ATLAS" | "BITBUCKET" | "TRELLO" | "CSM" | "JSM" | "JPD" | "ELEVATE" | "JIRA-SOFTWARE" | "JIRA-CORE" | undefined;
@@ -1,8 +1,12 @@
1
- /// <reference types="react" />
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
2
6
  import { type MessageDescriptor } from 'react-intl-next';
3
7
  import type { Prettify } from '@atlaskit/linking-common';
4
8
  import { type BaseTextElementProps } from '../common';
5
9
  type AccessType = 'DIRECT_ACCESS' | 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDDEN' | 'DENIED_REQUEST_EXISTS';
6
- export type CustomElementByAccessTypeProps = Prettify<Pick<BaseTextElementProps, 'className' | 'testId' | 'color' | 'fontSize'> & Partial<Record<AccessType | 'fallback', MessageDescriptor>>>;
10
+ export type CustomElementByAccessTypeProps = Prettify<Pick<BaseTextElementProps, 'className' | 'testId' | 'color' | 'fontSize'> & Partial<Record<AccessType | 'fallback', MessageDescriptor | React.ReactNode>>>;
7
11
  declare const CustomElementByAccessType: ({ className, testId, ...props }: CustomElementByAccessTypeProps) => JSX.Element | null;
8
12
  export default CustomElementByAccessType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "40.3.0",
3
+ "version": "40.4.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,13 +34,13 @@
34
34
  "@atlaskit/button": "^23.2.0",
35
35
  "@atlaskit/checkbox": "^17.1.0",
36
36
  "@atlaskit/css": "^0.12.0",
37
- "@atlaskit/dropdown-menu": "^16.1.0",
37
+ "@atlaskit/dropdown-menu": "^16.2.0",
38
38
  "@atlaskit/form": "^12.0.0",
39
39
  "@atlaskit/frontend-utilities": "^3.1.0",
40
40
  "@atlaskit/heading": "^5.2.0",
41
41
  "@atlaskit/icon": "^27.3.0",
42
42
  "@atlaskit/icon-file-type": "^7.0.0",
43
- "@atlaskit/icon-lab": "^5.1.0",
43
+ "@atlaskit/icon-lab": "^5.2.0",
44
44
  "@atlaskit/icon-object": "^7.1.0",
45
45
  "@atlaskit/icon-priority": "^6.3.0",
46
46
  "@atlaskit/image": "^3.0.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/link-client-extension": "^5.0.0",
52
52
  "@atlaskit/link-extractors": "^2.4.0",
53
53
  "@atlaskit/link-test-helpers": "^8.2.0",
54
- "@atlaskit/linking-common": "^9.1.0",
54
+ "@atlaskit/linking-common": "^9.2.0",
55
55
  "@atlaskit/linking-types": "^14.0.0",
56
56
  "@atlaskit/logo": "^19.5.0",
57
57
  "@atlaskit/lozenge": "^13.0.0",