@atlaskit/smart-card 38.13.3 → 38.14.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/index.js +12 -0
  3. package/dist/cjs/utils/analytics/analytics.js +1 -1
  4. package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
  5. package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
  6. package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
  7. package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
  8. package/dist/cjs/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +37 -0
  9. package/dist/cjs/view/FlexibleCard/components/elements/custom-by-status-element/index.js +36 -0
  10. package/dist/cjs/view/FlexibleCard/components/elements/index.js +15 -1
  11. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
  12. package/dist/cjs/view/FlexibleCard/external.js +25 -5
  13. package/dist/cjs/view/FlexibleCard/utils.js +11 -4
  14. package/dist/cjs/view/LinkUrl/index.js +1 -1
  15. package/dist/es2019/index.js +1 -1
  16. package/dist/es2019/utils/analytics/analytics.js +1 -1
  17. package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
  18. package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
  19. package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
  20. package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
  21. package/dist/es2019/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +28 -0
  22. package/dist/es2019/view/FlexibleCard/components/elements/custom-by-status-element/index.js +27 -0
  23. package/dist/es2019/view/FlexibleCard/components/elements/index.js +3 -1
  24. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
  25. package/dist/es2019/view/FlexibleCard/external.js +13 -5
  26. package/dist/es2019/view/FlexibleCard/utils.js +9 -3
  27. package/dist/es2019/view/LinkUrl/index.js +1 -1
  28. package/dist/esm/index.js +1 -1
  29. package/dist/esm/utils/analytics/analytics.js +1 -1
  30. package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
  31. package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
  32. package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
  33. package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
  34. package/dist/esm/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +30 -0
  35. package/dist/esm/view/FlexibleCard/components/elements/custom-by-status-element/index.js +29 -0
  36. package/dist/esm/view/FlexibleCard/components/elements/index.js +3 -1
  37. package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
  38. package/dist/esm/view/FlexibleCard/external.js +13 -5
  39. package/dist/esm/view/FlexibleCard/utils.js +11 -4
  40. package/dist/esm/view/LinkUrl/index.js +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/types/state/flexible-ui-context/types.d.ts +1 -0
  43. package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +7 -1
  44. package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +1 -0
  45. package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +7 -1
  46. package/dist/types/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +7 -0
  47. package/dist/types/view/FlexibleCard/components/elements/custom-by-status-element/index.d.ts +9 -0
  48. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +2 -0
  49. package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
  50. package/dist/types/view/FlexibleCard/external.d.ts +4 -4
  51. package/dist/types-ts4.5/index.d.ts +1 -1
  52. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +1 -0
  53. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +7 -1
  54. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +1 -0
  55. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +7 -1
  56. package/dist/types-ts4.5/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +7 -0
  57. package/dist/types-ts4.5/view/FlexibleCard/components/elements/custom-by-status-element/index.d.ts +9 -0
  58. package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +2 -0
  59. package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
  60. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +4 -4
  61. package/package.json +6 -3
@@ -11,6 +11,7 @@ import { messages } from '../../messages';
11
11
  import { handleOnClick } from '../../utils';
12
12
  import { getForbiddenJsonLd } from '../../utils/jsonld';
13
13
  export const getContextByStatus = params => {
14
+ var _response$meta, _response$meta$reques;
14
15
  const {
15
16
  onClick,
16
17
  response,
@@ -44,7 +45,12 @@ export const getContextByStatus = params => {
44
45
  provider: extractSmartLinkProviderIcon(response),
45
46
  actions: fg('platform-linking-flexible-card-unresolved-action') ? {
46
47
  [InternalActionName.UnresolvedAction]: getRetryOptions(url, status, response, params.onAuthorize)
47
- } : undefined
48
+ } : undefined,
49
+ ...(fg('bandicoots-smart-card-teamwork-context') ? {
50
+ meta: {
51
+ accessType: response === null || response === void 0 ? void 0 : (_response$meta = response.meta) === null || _response$meta === void 0 ? void 0 : (_response$meta$reques = _response$meta.requestAccess) === null || _response$meta$reques === void 0 ? void 0 : _response$meta$reques.accessType
52
+ }
53
+ } : undefined)
48
54
  };
49
55
  }
50
56
  };
@@ -67,7 +73,7 @@ const getForbiddenMessageKey = meta => {
67
73
  }
68
74
  };
69
75
  export const getRetryOptions = (url, status, response, onAuthorize) => {
70
- var _response$meta, _access$action, _access$buttonDisable;
76
+ var _response$meta2, _access$action, _access$buttonDisable;
71
77
  const provider = extractSmartLinkProvider(response);
72
78
  const context = provider === null || provider === void 0 ? void 0 : provider.text;
73
79
  const values = context ? {
@@ -75,7 +81,7 @@ export const getRetryOptions = (url, status, response, onAuthorize) => {
75
81
  } : undefined;
76
82
  switch (status) {
77
83
  case SmartLinkStatus.Forbidden:
78
- const meta = (_response$meta = response === null || response === void 0 ? void 0 : response.meta) !== null && _response$meta !== void 0 ? _response$meta : getForbiddenJsonLd().meta;
84
+ const meta = (_response$meta2 = response === null || response === void 0 ? void 0 : response.meta) !== null && _response$meta2 !== void 0 ? _response$meta2 : getForbiddenJsonLd().meta;
79
85
  const access = extractRequestAccessContextImproved({
80
86
  jsonLd: meta,
81
87
  url,
@@ -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: "38.13.2",
13
+ packageVersion: "38.14.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
package/dist/esm/index.js CHANGED
@@ -14,7 +14,7 @@ export { loadingPlaceholderClassName } from './view/CardWithUrl/component-lazy/L
14
14
  // Flexible UI
15
15
  export { ActionName, ElementName, MediaPlacement, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkTheme } from './constants';
16
16
  export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, CustomBlock } from './view/FlexibleCard/components/blocks';
17
- export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement } from './view/FlexibleCard/external';
17
+ export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement, CustomByAccessTypeElement, CustomByStatusElement } from './view/FlexibleCard/external';
18
18
  export { CopyLinkAction, CustomAction, DownloadAction, FollowAction, PreviewAction, UnresolvedAction } from './view/FlexibleCard/external';
19
19
  /** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-661 Internal documentation for deprecation (no external access)} */
20
20
  export { editorCardProvider, EditorCardProvider } from '@atlaskit/link-provider';
@@ -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: "38.13.2"
7
+ packageVersion: "38.14.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,4 +1,6 @@
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)}
1
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)}
2
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)}
3
5
  ._18m915vq{overflow-y:hidden}
4
6
  ._1bto1l2s{text-overflow:ellipsis}
@@ -24,6 +24,12 @@ var typeToDescriptorMap = {
24
24
  absolute: messages.sent_on_absolute
25
25
  }
26
26
  };
27
+ var fontOverrideStyleMap = {
28
+ 'font.body': "_11c82smr",
29
+ 'font.body.large': "_11c81ixg",
30
+ 'font.body.small': "_11c81o8v",
31
+ 'font.body.UNSAFE_small': "_11c8dcr7"
32
+ };
27
33
  /**
28
34
  * A base element that displays an ISO Timestamp in text.
29
35
  * @internal
@@ -42,7 +48,8 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
42
48
  text = _ref.text,
43
49
  _ref$hideDatePrefix = _ref.hideDatePrefix,
44
50
  hideDatePrefix = _ref$hideDatePrefix === void 0 ? false : _ref$hideDatePrefix,
45
- color = _ref.color;
51
+ color = _ref.color,
52
+ fontSize = _ref.fontSize;
46
53
  var _useIntl = useIntl(),
47
54
  formatRelativeTime = _useIntl.formatRelativeTime,
48
55
  formatDate = _useIntl.formatDate;
@@ -90,7 +97,7 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
90
97
  "data-testid": testId
91
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
92
99
  ,
93
- className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", className])
100
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k1j6v", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], className])
94
101
  }, content);
95
102
  };
96
103
  export default BaseDateTimeElement;
@@ -1,4 +1,6 @@
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)}
1
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)}
2
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)}
3
5
  ._18m915vq{overflow-y:hidden}
4
6
  ._1bto1l2s{text-overflow:ellipsis}
@@ -7,6 +7,12 @@ import { getFormattedMessage } from '../../../utils';
7
7
  // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
8
8
  var baseStyleOld = null;
9
9
  var baseStyle = null;
10
+ var fontOverrideStyleMap = {
11
+ 'font.body': "_11c82smr",
12
+ 'font.body.large': "_11c81ixg",
13
+ 'font.body.small': "_11c81o8v",
14
+ 'font.body.UNSAFE_small': "_11c8dcr7"
15
+ };
10
16
  /**
11
17
  * A base element that displays some Text.
12
18
  * @internal
@@ -24,7 +30,8 @@ export var BaseTextElement = function BaseTextElement(_ref) {
24
30
  testId = _ref$testId === void 0 ? 'smart-element-text' : _ref$testId,
25
31
  _ref$hideFormat = _ref.hideFormat,
26
32
  hideFormat = _ref$hideFormat === void 0 ? false : _ref$hideFormat,
27
- color = _ref.color;
33
+ color = _ref.color,
34
+ fontSize = _ref.fontSize;
28
35
  if (!message && !content) {
29
36
  return null;
30
37
  }
@@ -38,7 +45,7 @@ export var BaseTextElement = function BaseTextElement(_ref) {
38
45
  "data-testid": testId
39
46
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
40
47
  ,
41
- className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102klxil", className]),
48
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8dcr7 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", fg('platform-linking-visual-refresh-v1') && "_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
42
49
  style: {
43
50
  color: color && fg('platform-linking-additional-flexible-element-props') ? color : undefined,
44
51
  "--_1erfju8": ix(maxLines),
@@ -0,0 +1,30 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "testId"];
4
+ import React from 'react';
5
+ import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context';
6
+ import { BaseTextElement } from '../common';
7
+ var CustomElementByAccessType = function CustomElementByAccessType(_ref) {
8
+ var _context$data, _props;
9
+ var className = _ref.className,
10
+ _ref$testId = _ref.testId,
11
+ testId = _ref$testId === void 0 ? 'custom-by-access-type-element' : _ref$testId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ var context = useFlexibleCardContext();
14
+ 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;
15
+ var text = (_props = props[accessType]) !== null && _props !== void 0 ? _props : props.fallback;
16
+ if (!text) {
17
+ return null;
18
+ }
19
+ return (
20
+ /*#__PURE__*/
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
22
+ React.createElement(BaseTextElement, _extends({}, props, {
23
+ content: text,
24
+ className: className,
25
+ testId: testId,
26
+ hideFormat: true
27
+ }))
28
+ );
29
+ };
30
+ export default CustomElementByAccessType;
@@ -0,0 +1,29 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
+ var _excluded = ["className", "testId"];
3
+ import React from 'react';
4
+ import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context';
5
+ var CustomByStatusElement = function CustomByStatusElement(_ref) {
6
+ var className = _ref.className,
7
+ _ref$testId = _ref.testId,
8
+ testId = _ref$testId === void 0 ? 'custom-by-status-element' : _ref$testId,
9
+ props = _objectWithoutProperties(_ref, _excluded);
10
+ var context = useFlexibleCardContext();
11
+ var status = context === null || context === void 0 ? void 0 : context.status;
12
+ if (!status) {
13
+ return null;
14
+ }
15
+ var component = props[status];
16
+ if (!component) {
17
+ return null;
18
+ }
19
+ return /*#__PURE__*/React.createElement("span", {
20
+ "data-separator": true,
21
+ "data-smart-element": "custom-element",
22
+ "data-smart-element-text": true,
23
+ "data-testid": testId
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
25
+ ,
26
+ className: className
27
+ }, component);
28
+ };
29
+ export default CustomByStatusElement;
@@ -32,4 +32,6 @@ export { default as TargetBranch } from './target-branch-element';
32
32
  export { default as Title } from './title-element';
33
33
  export { default as ViewCount } from './view-count-element';
34
34
  export { default as VoteCount } from './vote-count-element';
35
- export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
35
+ export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
36
+ export { default as CustomByAccessTypeElement } from './custom-by-access-type-element';
37
+ export { default as CustomByStatusElement } from './custom-by-status-element';
@@ -7,9 +7,15 @@ import { ElementName } from '../../../../../constants';
7
7
  import { messages } from '../../../../../messages';
8
8
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
9
9
  import { BaseTextElement, toFormattedTextProps } from '../common';
10
+ var getOwnedByText = function getOwnedByText(context, textPrefix) {
11
+ if (!fg('bandicoots-smart-card-teamwork-context')) {
12
+ return context.ownedBy;
13
+ }
14
+ return textPrefix ? "".concat(textPrefix, " ").concat(context.ownedBy).trim() : context.ownedBy;
15
+ };
10
16
  var OwnedByElement = function OwnedByElement(props) {
11
17
  var context = useFlexibleUiContext();
12
- var data = context ? toFormattedTextProps(messages.owned_by, context.ownedBy) : null;
18
+ var data = context ? toFormattedTextProps(messages.owned_by, getOwnedByText(context, props === null || props === void 0 ? void 0 : props.textPrefix)) : null;
13
19
  var _ref = props || {},
14
20
  onRender = _ref.onRender,
15
21
  restProps = _objectWithoutProperties(_ref, _excluded);
@@ -73,18 +73,22 @@ export var ModifiedOnElement = function ModifiedOnElement(props) {
73
73
  return /*#__PURE__*/React.createElement(ModifiedOn, {
74
74
  hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
75
75
  color: props === null || props === void 0 ? void 0 : props.color,
76
- onRender: props === null || props === void 0 ? void 0 : props.onRender
76
+ onRender: props === null || props === void 0 ? void 0 : props.onRender,
77
+ fontSize: props === null || props === void 0 ? void 0 : props.fontSize
77
78
  });
78
79
  }
79
80
  return /*#__PURE__*/React.createElement(ModifiedOn, null);
80
81
  };
81
82
  export var OwnedByElement = function OwnedByElement(props) {
82
83
  if (fg('platform-linking-additional-flexible-element-props')) {
83
- return /*#__PURE__*/React.createElement(OwnedBy, {
84
+ return /*#__PURE__*/React.createElement(OwnedBy, _extends({
84
85
  hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
85
86
  color: props === null || props === void 0 ? void 0 : props.color,
86
87
  onRender: props === null || props === void 0 ? void 0 : props.onRender
87
- });
88
+ }, fg('bandicoots-smart-card-teamwork-context') ? {
89
+ textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
90
+ fontSize: props === null || props === void 0 ? void 0 : props.fontSize
91
+ } : undefined));
88
92
  }
89
93
  return /*#__PURE__*/React.createElement(OwnedBy, null);
90
94
  };
@@ -157,7 +161,10 @@ export var TitleElement = function TitleElement(props) {
157
161
  hideTooltip: props === null || props === void 0 ? void 0 : props.hideTooltip,
158
162
  maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
159
163
  target: props === null || props === void 0 ? void 0 : props.target
160
- }, props !== null && props !== void 0 && props.text ? {
164
+ }, fg('bandicoots-smart-card-teamwork-context') ? {
165
+ theme: props === null || props === void 0 ? void 0 : props.theme,
166
+ size: props === null || props === void 0 ? void 0 : props.size
167
+ } : undefined, props !== null && props !== void 0 && props.text ? {
161
168
  text: props === null || props === void 0 ? void 0 : props.text
162
169
  } : undefined));
163
170
  };
@@ -197,4 +204,5 @@ export var PreviewAction = function PreviewAction(props) {
197
204
  };
198
205
  export var UnresolvedAction = function UnresolvedAction() {
199
206
  return /*#__PURE__*/React.createElement(UnresolvedActionComponent, null);
200
- };
207
+ };
208
+ export { CustomByAccessTypeElement, CustomByStatusElement } from './components/elements';
@@ -1,4 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2
4
  import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
3
5
  import { fg } from '@atlaskit/platform-feature-flags';
4
6
  import { InternalActionName, SmartLinkStatus } from '../../constants';
@@ -12,6 +14,7 @@ import { messages } from '../../messages';
12
14
  import { handleOnClick } from '../../utils';
13
15
  import { getForbiddenJsonLd } from '../../utils/jsonld';
14
16
  export var getContextByStatus = function getContextByStatus(params) {
17
+ var _response$meta;
15
18
  var _ref = params !== null && params !== void 0 ? params : {},
16
19
  onClick = _ref.onClick,
17
20
  response = _ref.response,
@@ -35,7 +38,7 @@ export var getContextByStatus = function getContextByStatus(params) {
35
38
  case SmartLinkStatus.Errored:
36
39
  case SmartLinkStatus.Fallback:
37
40
  default:
38
- return {
41
+ return _objectSpread({
39
42
  url: url,
40
43
  title: fg('platform-linking-flexible-card-context') ? undefined : url,
41
44
  linkIcon: extractErrorIcon(response, status),
@@ -43,7 +46,11 @@ export var getContextByStatus = function getContextByStatus(params) {
43
46
  preview: extractSmartLinkPreviewImage(response),
44
47
  provider: extractSmartLinkProviderIcon(response),
45
48
  actions: fg('platform-linking-flexible-card-unresolved-action') ? _defineProperty({}, InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)) : undefined
46
- };
49
+ }, fg('bandicoots-smart-card-teamwork-context') ? {
50
+ meta: {
51
+ accessType: response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.requestAccess) === null || _response$meta === void 0 ? void 0 : _response$meta.accessType
52
+ }
53
+ } : undefined);
47
54
  }
48
55
  };
49
56
  var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
@@ -65,7 +72,7 @@ var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
65
72
  }
66
73
  };
67
74
  export var getRetryOptions = function getRetryOptions(url, status, response, onAuthorize) {
68
- var _response$meta, _access$action, _access$buttonDisable;
75
+ var _response$meta2, _access$action, _access$buttonDisable;
69
76
  var provider = extractSmartLinkProvider(response);
70
77
  var context = provider === null || provider === void 0 ? void 0 : provider.text;
71
78
  var values = context ? {
@@ -73,7 +80,7 @@ export var getRetryOptions = function getRetryOptions(url, status, response, onA
73
80
  } : undefined;
74
81
  switch (status) {
75
82
  case SmartLinkStatus.Forbidden:
76
- var meta = (_response$meta = response === null || response === void 0 ? void 0 : response.meta) !== null && _response$meta !== void 0 ? _response$meta : getForbiddenJsonLd().meta;
83
+ var meta = (_response$meta2 = response === null || response === void 0 ? void 0 : response.meta) !== null && _response$meta2 !== void 0 ? _response$meta2 : getForbiddenJsonLd().meta;
77
84
  var access = extractRequestAccessContextImproved({
78
85
  jsonLd: meta,
79
86
  url: url,
@@ -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: "38.13.2",
16
+ packageVersion: "38.14.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -10,7 +10,7 @@ export { contentFooterClassName, metadataListClassName, blockCardResolvingViewCl
10
10
  export { loadingPlaceholderClassName } from './view/CardWithUrl/component-lazy/LazyFallback';
11
11
  export { ActionName, ElementName, MediaPlacement, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, } from './constants';
12
12
  export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, CustomBlock, } from './view/FlexibleCard/components/blocks';
13
- export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement, } from './view/FlexibleCard/external';
13
+ export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement, CustomByAccessTypeElement, CustomByStatusElement, } from './view/FlexibleCard/external';
14
14
  export { CopyLinkAction, CustomAction, DownloadAction, FollowAction, PreviewAction, UnresolvedAction, } from './view/FlexibleCard/external';
15
15
  export type { ActionItem, ElementItem, OnActionMenuOpenChangeOptions, } from './view/FlexibleCard/components/blocks/types';
16
16
  export type { AnalyticsAction, AnalyticsActionSubject, AnalyticsPayload, AnalyticsHandler, } from './utils/types';
@@ -250,6 +250,7 @@ export type FlexibleUiDataContext = {
250
250
  objectId?: string;
251
251
  resourceType?: string;
252
252
  tenantId?: string;
253
+ accessType?: string;
253
254
  };
254
255
  };
255
256
  export type LinkTitle = {
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import type { Prettify } from '@atlaskit/linking-common';
3
+ import { token } from '@atlaskit/tokens';
2
4
  import type { ElementProps } from '../../../elements';
3
5
  export type DateTimeType = 'created' | 'modified' | 'sent';
4
6
  export type BaseDateTimeElementProps = ElementProps & {
@@ -22,6 +24,10 @@ export type BaseDateTimeElementProps = ElementProps & {
22
24
  * Color of the text
23
25
  */
24
26
  color?: string;
27
+ /**
28
+ * Override the default font size.
29
+ */
30
+ fontSize?: Prettify<Extract<Parameters<typeof token>[0], 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small'>>;
25
31
  };
26
32
  /**
27
33
  * A base element that displays an ISO Timestamp in text.
@@ -31,6 +37,6 @@ export type BaseDateTimeElementProps = ElementProps & {
31
37
  * @see ModifiedOn
32
38
  * @see SentOn
33
39
  */
34
- declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeElementProps) => JSX.Element | null;
40
+ declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, fontSize, }: BaseDateTimeElementProps) => JSX.Element | null;
35
41
  export default BaseDateTimeElement;
36
42
  export declare const toDateTimeProps: (type: 'created' | 'modified' | 'sent', dateString?: string) => Partial<BaseDateTimeElementProps> | undefined;
@@ -51,6 +51,7 @@ export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof Flexibl
51
51
  objectId?: string | undefined;
52
52
  resourceType?: string | undefined;
53
53
  tenantId?: string | undefined;
54
+ accessType?: string | undefined;
54
55
  } | {
55
56
  appearance: string;
56
57
  icon?: IconType | undefined;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { MessageDescriptor } from 'react-intl-next';
3
+ import type { Prettify } from '@atlaskit/linking-common';
4
+ import { token } from '@atlaskit/tokens';
3
5
  import type { MessageProps } from '../../../types';
4
6
  import { type ElementProps } from '../../index';
5
7
  export type BaseTextElementProps = ElementProps & {
@@ -25,6 +27,10 @@ export type BaseTextElementProps = ElementProps & {
25
27
  * Text color to override the default text color.
26
28
  */
27
29
  color?: string;
30
+ /**
31
+ * Override the default font size.
32
+ */
33
+ fontSize?: Prettify<Extract<Parameters<typeof token>[0], 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small'>>;
28
34
  };
29
35
  /**
30
36
  * A base element that displays some Text.
@@ -32,7 +38,7 @@ export type BaseTextElementProps = ElementProps & {
32
38
  * @param {TextProps} TextProps - The props necessary for the Text element.
33
39
  * @see Title
34
40
  */
35
- export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: BaseTextElementProps) => JSX.Element | null;
41
+ export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, fontSize, }: BaseTextElementProps) => JSX.Element | null;
36
42
  export default BaseTextElement;
37
43
  export declare const toFormattedTextProps: (descriptor: MessageDescriptor, context?: string) => Partial<BaseTextElementProps> | undefined;
38
44
  export declare const toTextProps: (content?: string) => Partial<BaseTextElementProps> | undefined;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Prettify } from '@atlaskit/linking-common';
3
+ import type { ElementProps } from '../index';
4
+ type AccessType = 'DIRECT_ACCESS' | 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDDEN' | 'DENIED_REQUEST_EXISTS';
5
+ export type CustomElementByAccessTypeProps = Prettify<Pick<ElementProps, 'className' | 'testId'> & Partial<Record<AccessType | 'fallback', string>>>;
6
+ declare const CustomElementByAccessType: ({ className, testId, ...props }: CustomElementByAccessTypeProps) => JSX.Element | null;
7
+ export default CustomElementByAccessType;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Prettify } from '@atlaskit/linking-common';
3
+ import type { SmartLinkStatus } from '../../../../../constants';
4
+ import type { ElementProps } from '../index';
5
+ export type CustomElementProps = Prettify<Pick<ElementProps, 'className' | 'testId'> & {
6
+ content?: string;
7
+ } & Partial<Record<SmartLinkStatus, React.ReactNode>>>;
8
+ declare const CustomByStatusElement: ({ className, testId, ...props }: CustomElementProps) => JSX.Element | null;
9
+ export default CustomByStatusElement;
@@ -56,3 +56,5 @@ export { default as Title } from './title-element';
56
56
  export { default as ViewCount } from './view-count-element';
57
57
  export { default as VoteCount } from './vote-count-element';
58
58
  export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
59
+ export { default as CustomByAccessTypeElement } from './custom-by-access-type-element';
60
+ export { default as CustomByStatusElement } from './custom-by-status-element';
@@ -1,6 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { type BaseTextElementProps } from '../common';
3
3
  export type OwnedByElementProps = BaseTextElementProps & {
4
+ /**
5
+ * The text prefix to display before the owned by text.
6
+ * Best used when hideFormat is enabled
7
+ */
8
+ textPrefix?: string;
4
9
  onRender?: (hasData: boolean) => void;
5
10
  };
6
11
  declare const OwnedByElement: (props: OwnedByElementProps) => JSX.Element | null;
@@ -27,9 +27,9 @@ type LinkIconElementProps = Prettify<Pick<React.ComponentProps<typeof LinkIcon>,
27
27
  export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
28
28
  export declare const LocationElement: () => React.JSX.Element;
29
29
  export declare const ModifiedByElement: () => React.JSX.Element;
30
- type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color' | 'onRender'>;
30
+ type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color' | 'onRender' | 'fontSize'>;
31
31
  export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
32
- type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color' | 'onRender'>;
32
+ type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color' | 'onRender' | 'textPrefix' | 'fontSize'>;
33
33
  export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
34
34
  type OwnedByGroupElementProps = Pick<React.ComponentProps<typeof OwnedByGroup>, 'onRender'>;
35
35
  export declare const OwnedByGroupElement: (props?: OwnedByGroupElementProps) => React.JSX.Element;
@@ -54,7 +54,7 @@ export declare const StoryPointsElement: () => React.JSX.Element;
54
54
  export declare const SubscriberCountElement: () => React.JSX.Element;
55
55
  export declare const SubTasksProgressElement: () => React.JSX.Element;
56
56
  export declare const TargetBranchElement: () => React.JSX.Element;
57
- export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
57
+ export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text' | 'theme' | 'size'>;
58
58
  export declare const TitleElement: (props?: TitleElementProps) => React.JSX.Element;
59
59
  export declare const ViewCountElement: () => React.JSX.Element;
60
60
  export declare const VoteCountElement: () => React.JSX.Element;
@@ -79,4 +79,4 @@ export declare const FollowAction: (props: FollowActionProps) => React.JSX.Eleme
79
79
  export type PreviewActionProps = BaseActionProps;
80
80
  export declare const PreviewAction: (props: PreviewActionProps) => React.JSX.Element;
81
81
  export declare const UnresolvedAction: () => React.JSX.Element;
82
- export {};
82
+ export { CustomByAccessTypeElement, CustomByStatusElement } from './components/elements';
@@ -10,7 +10,7 @@ export { contentFooterClassName, metadataListClassName, blockCardResolvingViewCl
10
10
  export { loadingPlaceholderClassName } from './view/CardWithUrl/component-lazy/LazyFallback';
11
11
  export { ActionName, ElementName, MediaPlacement, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, } from './constants';
12
12
  export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, CustomBlock, } from './view/FlexibleCard/components/blocks';
13
- export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement, } from './view/FlexibleCard/external';
13
+ export { AssignedToElement, AssignedToGroupElement, AttachmentCountElement, AuthorGroupElement, ChecklistProgressElement, CollaboratorGroupElement, CommentCountElement, CreatedOnElement, CreatedByElement, DueOnElement, LatestCommitElement, LinkIconElement, LocationElement, ModifiedByElement, ModifiedOnElement, OwnedByElement, OwnedByGroupElement, PreviewElement, PriorityElement, ProgrammingLanguageElement, ProviderElement, ReactCountElement, ReadTimeElement, SentOnElement, SnippetElement, SourceBranchElement, StateElement, StoryPointsElement, SubscriberCountElement, SubTasksProgressElement, TargetBranchElement, TitleElement, ViewCountElement, VoteCountElement, CustomByAccessTypeElement, CustomByStatusElement, } from './view/FlexibleCard/external';
14
14
  export { CopyLinkAction, CustomAction, DownloadAction, FollowAction, PreviewAction, UnresolvedAction, } from './view/FlexibleCard/external';
15
15
  export type { ActionItem, ElementItem, OnActionMenuOpenChangeOptions, } from './view/FlexibleCard/components/blocks/types';
16
16
  export type { AnalyticsAction, AnalyticsActionSubject, AnalyticsPayload, AnalyticsHandler, } from './utils/types';
@@ -250,6 +250,7 @@ export type FlexibleUiDataContext = {
250
250
  objectId?: string;
251
251
  resourceType?: string;
252
252
  tenantId?: string;
253
+ accessType?: string;
253
254
  };
254
255
  };
255
256
  export type LinkTitle = {
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import type { Prettify } from '@atlaskit/linking-common';
3
+ import { token } from '@atlaskit/tokens';
2
4
  import type { ElementProps } from '../../../elements';
3
5
  export type DateTimeType = 'created' | 'modified' | 'sent';
4
6
  export type BaseDateTimeElementProps = ElementProps & {
@@ -22,6 +24,10 @@ export type BaseDateTimeElementProps = ElementProps & {
22
24
  * Color of the text
23
25
  */
24
26
  color?: string;
27
+ /**
28
+ * Override the default font size.
29
+ */
30
+ fontSize?: Prettify<Extract<Parameters<typeof token>[0], 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small'>>;
25
31
  };
26
32
  /**
27
33
  * A base element that displays an ISO Timestamp in text.
@@ -31,6 +37,6 @@ export type BaseDateTimeElementProps = ElementProps & {
31
37
  * @see ModifiedOn
32
38
  * @see SentOn
33
39
  */
34
- declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeElementProps) => JSX.Element | null;
40
+ declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, fontSize, }: BaseDateTimeElementProps) => JSX.Element | null;
35
41
  export default BaseDateTimeElement;
36
42
  export declare const toDateTimeProps: (type: 'created' | 'modified' | 'sent', dateString?: string) => Partial<BaseDateTimeElementProps> | undefined;
@@ -51,6 +51,7 @@ export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof Flexibl
51
51
  objectId?: string | undefined;
52
52
  resourceType?: string | undefined;
53
53
  tenantId?: string | undefined;
54
+ accessType?: string | undefined;
54
55
  } | {
55
56
  appearance: string;
56
57
  icon?: IconType | undefined;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { MessageDescriptor } from 'react-intl-next';
3
+ import type { Prettify } from '@atlaskit/linking-common';
4
+ import { token } from '@atlaskit/tokens';
3
5
  import type { MessageProps } from '../../../types';
4
6
  import { type ElementProps } from '../../index';
5
7
  export type BaseTextElementProps = ElementProps & {
@@ -25,6 +27,10 @@ export type BaseTextElementProps = ElementProps & {
25
27
  * Text color to override the default text color.
26
28
  */
27
29
  color?: string;
30
+ /**
31
+ * Override the default font size.
32
+ */
33
+ fontSize?: Prettify<Extract<Parameters<typeof token>[0], 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small'>>;
28
34
  };
29
35
  /**
30
36
  * A base element that displays some Text.
@@ -32,7 +38,7 @@ export type BaseTextElementProps = ElementProps & {
32
38
  * @param {TextProps} TextProps - The props necessary for the Text element.
33
39
  * @see Title
34
40
  */
35
- export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: BaseTextElementProps) => JSX.Element | null;
41
+ export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, fontSize, }: BaseTextElementProps) => JSX.Element | null;
36
42
  export default BaseTextElement;
37
43
  export declare const toFormattedTextProps: (descriptor: MessageDescriptor, context?: string) => Partial<BaseTextElementProps> | undefined;
38
44
  export declare const toTextProps: (content?: string) => Partial<BaseTextElementProps> | undefined;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Prettify } from '@atlaskit/linking-common';
3
+ import type { ElementProps } from '../index';
4
+ type AccessType = 'DIRECT_ACCESS' | 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDDEN' | 'DENIED_REQUEST_EXISTS';
5
+ export type CustomElementByAccessTypeProps = Prettify<Pick<ElementProps, 'className' | 'testId'> & Partial<Record<AccessType | 'fallback', string>>>;
6
+ declare const CustomElementByAccessType: ({ className, testId, ...props }: CustomElementByAccessTypeProps) => JSX.Element | null;
7
+ export default CustomElementByAccessType;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Prettify } from '@atlaskit/linking-common';
3
+ import type { SmartLinkStatus } from '../../../../../constants';
4
+ import type { ElementProps } from '../index';
5
+ export type CustomElementProps = Prettify<Pick<ElementProps, 'className' | 'testId'> & {
6
+ content?: string;
7
+ } & Partial<Record<SmartLinkStatus, React.ReactNode>>>;
8
+ declare const CustomByStatusElement: ({ className, testId, ...props }: CustomElementProps) => JSX.Element | null;
9
+ export default CustomByStatusElement;