@atlaskit/smart-card 32.7.12 → 32.8.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,18 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 32.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 32.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`87170893b911d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/87170893b911d) -
14
+ Clean up platform-smart-card-view-related-urls-action feature gate
15
+
3
16
  ## 32.7.12
4
17
 
5
18
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.extractFlexibleCardActions = exports.default = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _constants = require("../../../constants");
11
10
  var _extractAiSummaryAction = require("./extract-ai-summary-action");
12
11
  var _extractAutomationAction = require("./extract-automation-action");
@@ -15,8 +14,6 @@ var _extractDownloadAction = require("./extract-download-action");
15
14
  var _extractFollowAction = _interopRequireDefault(require("./extract-follow-action"));
16
15
  var _extractPreviewAction = require("./extract-preview-action");
17
16
  var _extractViewRelatedLinksAction = require("./extract-view-related-links-action");
18
- 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; }
19
- 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) { (0, _defineProperty2.default)(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; }
20
17
  var extractFlexibleCardActions = exports.extractFlexibleCardActions = function extractFlexibleCardActions(_ref) {
21
18
  var actionOptions = _ref.actionOptions,
22
19
  aiSummaryConfig = _ref.aiSummaryConfig,
@@ -26,7 +23,7 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
26
23
  origin = _ref.origin,
27
24
  response = _ref.response,
28
25
  url = _ref.url;
29
- var action = _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.ActionName.CopyLinkAction, (0, _extractCopyLinkAction.extractCopyLinkClientAction)({
26
+ var action = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.ActionName.CopyLinkAction, (0, _extractCopyLinkAction.extractCopyLinkClientAction)({
30
27
  actionOptions: actionOptions,
31
28
  appearance: appearance,
32
29
  id: id,
@@ -43,7 +40,7 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
43
40
  id: id,
44
41
  origin: origin,
45
42
  response: response
46
- })), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), (0, _platformFeatureFlags.fg)('platform-smart-card-view-related-urls-action') ? (0, _defineProperty2.default)({}, _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response)) : {});
43
+ })), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response));
47
44
  return Object.values(action).some(function (value) {
48
45
  return Boolean(value);
49
46
  }) ? action : undefined;
@@ -55,7 +52,7 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
55
52
  */
56
53
  var extractActions = function extractActions(response, url, actionOptions, id, aiSummaryConfig) {
57
54
  var data = response.data;
58
- var action = _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.ActionName.CopyLinkAction, (0, _extractCopyLinkAction.extractCopyLinkAction)(data, actionOptions)), _constants.ActionName.DownloadAction, (0, _extractDownloadAction.extractDownloadAction)(data, actionOptions)), _constants.ActionName.FollowAction, (0, _extractFollowAction.default)(response, actionOptions, id)), _constants.ActionName.PreviewAction, (0, _extractPreviewAction.extractPreviewAction)(response, actionOptions)), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), (0, _platformFeatureFlags.fg)('platform-smart-card-view-related-urls-action') ? (0, _defineProperty2.default)({}, _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response)) : {});
55
+ var action = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.ActionName.CopyLinkAction, (0, _extractCopyLinkAction.extractCopyLinkAction)(data, actionOptions)), _constants.ActionName.DownloadAction, (0, _extractDownloadAction.extractDownloadAction)(data, actionOptions)), _constants.ActionName.FollowAction, (0, _extractFollowAction.default)(response, actionOptions, id)), _constants.ActionName.PreviewAction, (0, _extractPreviewAction.extractPreviewAction)(response, actionOptions)), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response));
59
56
  return Object.values(action).some(function (value) {
60
57
  return Boolean(value);
61
58
  }) ? action : undefined;
@@ -15,7 +15,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
15
15
  var context = exports.context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "32.7.12"
18
+ packageVersion: "32.8.1"
19
19
  };
20
20
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "32.7.12",
23
+ packageVersion: "32.8.1",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { ActionName, InternalActionName } from '../../../constants';
3
2
  import { extractAISummaryAction } from './extract-ai-summary-action';
4
3
  import { extractAutomationAction } from './extract-automation-action';
@@ -41,9 +40,7 @@ export const extractFlexibleCardActions = ({
41
40
  }),
42
41
  [ActionName.AutomationAction]: extractAutomationAction(response),
43
42
  [InternalActionName.AISummaryAction]: extractAISummaryAction(response, url, actionOptions, aiSummaryConfig),
44
- ...(fg('platform-smart-card-view-related-urls-action') ? {
45
- [InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
46
- } : {})
43
+ [InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
47
44
  };
48
45
  return Object.values(action).some(value => Boolean(value)) ? action : undefined;
49
46
  };
@@ -61,9 +58,7 @@ const extractActions = (response, url, actionOptions, id, aiSummaryConfig) => {
61
58
  [ActionName.PreviewAction]: extractPreviewAction(response, actionOptions),
62
59
  [ActionName.AutomationAction]: extractAutomationAction(response),
63
60
  [InternalActionName.AISummaryAction]: extractAISummaryAction(response, url, actionOptions, aiSummaryConfig),
64
- ...(fg('platform-smart-card-view-related-urls-action') ? {
65
- [InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
66
- } : {})
61
+ [InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
67
62
  };
68
63
  return Object.values(action).some(value => Boolean(value)) ? action : undefined;
69
64
  };
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
3
3
  export const context = {
4
4
  componentName: 'smart-cards',
5
5
  packageName: "@atlaskit/smart-card",
6
- packageVersion: "32.7.12"
6
+ packageVersion: "32.8.1"
7
7
  };
8
8
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
9
9
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "32.7.12",
13
+ packageVersion: "32.8.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -1,7 +1,4 @@
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; }
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
2
  import { ActionName, InternalActionName } from '../../../constants';
6
3
  import { extractAISummaryAction } from './extract-ai-summary-action';
7
4
  import { extractAutomationAction } from './extract-automation-action';
@@ -19,7 +16,7 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
19
16
  origin = _ref.origin,
20
17
  response = _ref.response,
21
18
  url = _ref.url;
22
- var action = _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkClientAction({
19
+ var action = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkClientAction({
23
20
  actionOptions: actionOptions,
24
21
  appearance: appearance,
25
22
  id: id,
@@ -36,7 +33,7 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
36
33
  id: id,
37
34
  origin: origin,
38
35
  response: response
39
- })), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
36
+ })), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response));
40
37
  return Object.values(action).some(function (value) {
41
38
  return Boolean(value);
42
39
  }) ? action : undefined;
@@ -48,7 +45,7 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
48
45
  */
49
46
  var extractActions = function extractActions(response, url, actionOptions, id, aiSummaryConfig) {
50
47
  var data = response.data;
51
- var action = _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
48
+ var action = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response));
52
49
  return Object.values(action).some(function (value) {
53
50
  return Boolean(value);
54
51
  }) ? action : undefined;
@@ -8,7 +8,7 @@ export var ANALYTICS_CHANNEL = 'media';
8
8
  export var context = {
9
9
  componentName: 'smart-cards',
10
10
  packageName: "@atlaskit/smart-card",
11
- packageVersion: "32.7.12"
11
+ packageVersion: "32.8.1"
12
12
  };
13
13
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
14
14
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "32.7.12",
16
+ packageVersion: "32.8.1",
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": "32.7.12",
3
+ "version": "32.8.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,7 +33,7 @@
33
33
  "@atlaskit/button": "^20.3.0",
34
34
  "@atlaskit/checkbox": "^15.2.0",
35
35
  "@atlaskit/dropdown-menu": "^12.23.0",
36
- "@atlaskit/form": "^10.6.0",
36
+ "@atlaskit/form": "^11.0.0",
37
37
  "@atlaskit/frontend-utilities": "^2.7.0",
38
38
  "@atlaskit/heading": "^4.0.0",
39
39
  "@atlaskit/icon": "^23.1.0",
@@ -159,9 +159,6 @@
159
159
  ".": "./src/index.ts"
160
160
  },
161
161
  "platform-feature-flags": {
162
- "platform-smart-card-view-related-urls-action": {
163
- "type": "boolean"
164
- },
165
162
  "send-smart-link-rendered-ufo-event-half-time": {
166
163
  "type": "boolean"
167
164
  },