@atlaskit/smart-card 40.4.1 → 40.4.3

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 (56) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/views/ErroredView.js +2 -2
  4. package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -2
  5. package/dist/cjs/view/EmbedModal/components/link-info/index.js +3 -3
  6. package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +2 -2
  7. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +2 -2
  8. package/dist/cjs/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
  9. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
  10. package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
  11. package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +2 -2
  12. package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
  13. package/dist/cjs/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
  14. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
  15. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
  16. package/dist/cjs/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
  17. package/dist/cjs/view/FlexibleCard/external.js +32 -53
  18. package/dist/cjs/view/InlineCard/ErroredView/index.js +2 -2
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/es2019/utils/analytics/analytics.js +1 -1
  21. package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
  22. package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
  23. package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
  24. package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
  25. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
  26. package/dist/es2019/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
  27. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
  28. package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
  29. package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -1
  30. package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
  31. package/dist/es2019/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
  32. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
  33. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
  34. package/dist/es2019/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
  35. package/dist/es2019/view/FlexibleCard/external.js +32 -53
  36. package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -1
  37. package/dist/es2019/view/LinkUrl/index.js +1 -1
  38. package/dist/esm/utils/analytics/analytics.js +1 -1
  39. package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
  40. package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
  41. package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
  42. package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
  43. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
  44. package/dist/esm/view/FlexibleCard/components/elements/comment-count-element/index.js +3 -9
  45. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -2
  46. package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +2 -2
  47. package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +1 -1
  48. package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +5 -16
  49. package/dist/esm/view/FlexibleCard/components/elements/modified-on-element/index.js +3 -8
  50. package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +3 -8
  51. package/dist/esm/view/FlexibleCard/components/elements/owned-by-group-element/index.js +3 -8
  52. package/dist/esm/view/FlexibleCard/components/elements/react-count-element/index.js +3 -8
  53. package/dist/esm/view/FlexibleCard/external.js +32 -53
  54. package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
  55. package/dist/esm/view/LinkUrl/index.js +1 -1
  56. package/package.json +2 -5
@@ -33,13 +33,10 @@ export var CollaboratorGroupElement = function CollaboratorGroupElement() {
33
33
  return /*#__PURE__*/React.createElement(CollaboratorGroup, null);
34
34
  };
35
35
  export var CommentCountElement = function CommentCountElement(props) {
36
- if (fg('platform-linking-additional-flexible-element-props')) {
37
- return /*#__PURE__*/React.createElement(CommentCount, {
38
- color: props === null || props === void 0 ? void 0 : props.color,
39
- onRender: props === null || props === void 0 ? void 0 : props.onRender
40
- });
41
- }
42
- return /*#__PURE__*/React.createElement(CommentCount, null);
36
+ return /*#__PURE__*/React.createElement(CommentCount, {
37
+ color: props === null || props === void 0 ? void 0 : props.color,
38
+ onRender: props === null || props === void 0 ? void 0 : props.onRender
39
+ });
43
40
  };
44
41
  export var CreatedOnElement = function CreatedOnElement() {
45
42
  return /*#__PURE__*/React.createElement(CreatedOn, null);
@@ -54,13 +51,10 @@ export var LatestCommitElement = function LatestCommitElement() {
54
51
  return /*#__PURE__*/React.createElement(LatestCommit, null);
55
52
  };
56
53
  export var LinkIconElement = function LinkIconElement(props) {
57
- if (fg('platform-linking-additional-flexible-element-props')) {
58
- return /*#__PURE__*/React.createElement(LinkIcon, {
59
- size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? SmartLinkSize.Large : SmartLinkSize.Medium,
60
- render: props === null || props === void 0 ? void 0 : props.render
61
- });
62
- }
63
- return /*#__PURE__*/React.createElement(LinkIcon, null);
54
+ return /*#__PURE__*/React.createElement(LinkIcon, {
55
+ size: (props === null || props === void 0 ? void 0 : props.iconTileSize) === 24 ? SmartLinkSize.Large : SmartLinkSize.Medium,
56
+ render: props === null || props === void 0 ? void 0 : props.render
57
+ });
64
58
  };
65
59
  export var LocationElement = function LocationElement() {
66
60
  return /*#__PURE__*/React.createElement(Location, null);
@@ -69,44 +63,32 @@ export var ModifiedByElement = function ModifiedByElement() {
69
63
  return /*#__PURE__*/React.createElement(ModifiedBy, null);
70
64
  };
71
65
  export var ModifiedOnElement = function ModifiedOnElement(props) {
72
- if (fg('platform-linking-additional-flexible-element-props')) {
73
- return /*#__PURE__*/React.createElement(ModifiedOn, {
74
- hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
75
- color: props === null || props === void 0 ? void 0 : props.color,
76
- onRender: props === null || props === void 0 ? void 0 : props.onRender,
77
- fontSize: props === null || props === void 0 ? void 0 : props.fontSize
78
- });
79
- }
80
- return /*#__PURE__*/React.createElement(ModifiedOn, null);
66
+ return /*#__PURE__*/React.createElement(ModifiedOn, {
67
+ hideDatePrefix: props === null || props === void 0 ? void 0 : props.hideDatePrefix,
68
+ color: props === null || props === void 0 ? void 0 : props.color,
69
+ onRender: props === null || props === void 0 ? void 0 : props.onRender,
70
+ fontSize: props === null || props === void 0 ? void 0 : props.fontSize
71
+ });
81
72
  };
82
73
  export var OwnedByElement = function OwnedByElement(props) {
83
- if (fg('platform-linking-additional-flexible-element-props')) {
84
- return /*#__PURE__*/React.createElement(OwnedBy, _extends({
85
- hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
86
- color: props === null || props === void 0 ? void 0 : props.color,
87
- onRender: props === null || props === void 0 ? void 0 : props.onRender
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));
92
- }
93
- return /*#__PURE__*/React.createElement(OwnedBy, null);
74
+ return /*#__PURE__*/React.createElement(OwnedBy, _extends({
75
+ hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
76
+ color: props === null || props === void 0 ? void 0 : props.color,
77
+ onRender: props === null || props === void 0 ? void 0 : props.onRender
78
+ }, fg('bandicoots-smart-card-teamwork-context') ? {
79
+ textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
80
+ fontSize: props === null || props === void 0 ? void 0 : props.fontSize
81
+ } : undefined));
94
82
  };
95
83
  export var OwnedByGroupElement = function OwnedByGroupElement(props) {
96
- if (fg('platform-linking-additional-flexible-element-props')) {
97
- return /*#__PURE__*/React.createElement(OwnedByGroup, {
98
- onRender: props === null || props === void 0 ? void 0 : props.onRender
99
- });
100
- }
101
- return /*#__PURE__*/React.createElement(OwnedByGroup, null);
84
+ return /*#__PURE__*/React.createElement(OwnedByGroup, {
85
+ onRender: props === null || props === void 0 ? void 0 : props.onRender
86
+ });
102
87
  };
103
88
  export var PreviewElement = function PreviewElement(props) {
104
- if (fg('platform-linking-additional-flexible-element-props')) {
105
- return /*#__PURE__*/React.createElement(Preview, {
106
- overrideUrl: props === null || props === void 0 ? void 0 : props.url
107
- });
108
- }
109
- return /*#__PURE__*/React.createElement(Preview, null);
89
+ return /*#__PURE__*/React.createElement(Preview, {
90
+ overrideUrl: props === null || props === void 0 ? void 0 : props.url
91
+ });
110
92
  };
111
93
  export var PriorityElement = function PriorityElement() {
112
94
  return /*#__PURE__*/React.createElement(Priority, null);
@@ -118,13 +100,10 @@ export var ProviderElement = function ProviderElement() {
118
100
  return /*#__PURE__*/React.createElement(Provider, null);
119
101
  };
120
102
  export var ReactCountElement = function ReactCountElement(props) {
121
- if (fg('platform-linking-additional-flexible-element-props')) {
122
- return /*#__PURE__*/React.createElement(ReactCount, {
123
- color: props === null || props === void 0 ? void 0 : props.color,
124
- onRender: props === null || props === void 0 ? void 0 : props.onRender
125
- });
126
- }
127
- return /*#__PURE__*/React.createElement(ReactCount, null);
103
+ return /*#__PURE__*/React.createElement(ReactCount, {
104
+ color: props === null || props === void 0 ? void 0 : props.color,
105
+ onRender: props === null || props === void 0 ? void 0 : props.onRender
106
+ });
128
107
  };
129
108
  export var ReadTimeElement = function ReadTimeElement() {
130
109
  return /*#__PURE__*/React.createElement(ReadTime, null);
@@ -2,7 +2,7 @@
2
2
  import { ax, ix } from "@compiled/react/runtime";
3
3
  import React from 'react';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
- import ErrorIcon from '@atlaskit/icon/core/migration/error';
5
+ import ErrorIcon from '@atlaskit/icon/core/migration/status-error--error';
6
6
  import { messages } from '../../../messages';
7
7
  import { HoverCard } from '../../HoverCard';
8
8
  import { ActionButton } from '../common/action-button';
@@ -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.4.0",
16
+ packageVersion: "40.4.2",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "40.4.1",
3
+ "version": "40.4.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -96,7 +96,7 @@
96
96
  "@atlaskit/analytics-listeners": "^9.0.0",
97
97
  "@atlaskit/css-reset": "^7.3.0",
98
98
  "@atlaskit/media-test-helpers": "^37.0.0",
99
- "@atlaskit/react-ufo": "^4.0.0",
99
+ "@atlaskit/react-ufo": "^4.1.0",
100
100
  "@atlaskit/ssr": "workspace:^",
101
101
  "@atlaskit/visual-regression": "workspace:^",
102
102
  "@atlassian/analytics-tooling": "^0.5.0",
@@ -214,9 +214,6 @@
214
214
  "platform-smart-card-remove-legacy-button": {
215
215
  "type": "boolean"
216
216
  },
217
- "platform-linking-additional-flexible-element-props": {
218
- "type": "boolean"
219
- },
220
217
  "platform-linking-ai-summary-migration-to-convo-ai": {
221
218
  "type": "boolean"
222
219
  },