@atlaskit/smart-card 43.28.4 → 43.28.6

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
+ ## 43.28.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f838a5a7535df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f838a5a7535df) -
8
+ VULN-1914676 disabling parsing of raw html for ai summary markdown
9
+
10
+ ## 43.28.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 43.28.4
4
17
 
5
18
  ### Patch 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: "43.28.3"
14
+ packageVersion: "43.28.5"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "43.28.3",
25
+ packageVersion: "43.28.5",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -10,11 +10,14 @@ exports.default = void 0;
10
10
  require("./index.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
14
  var _markdownToJsx = _interopRequireDefault(require("markdown-to-jsx"));
14
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
17
  var _ulist = _interopRequireDefault(require("./ulist"));
17
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
+ 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; }
20
+ 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; }
18
21
  var baseStyle = null;
19
22
  var textStyleNew = null;
20
23
  var textStyleOld = null;
@@ -41,12 +44,14 @@ var AISummary = function AISummary(_ref) {
41
44
  ,
42
45
  className: (0, _runtime.ax)(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? "_syazi7uo" : "_syazazsu", className]),
43
46
  children: content,
44
- options: {
47
+ options: _objectSpread({
45
48
  forceWrapper: true,
46
49
  overrides: {
47
50
  ul: _ulist.default
48
51
  }
49
- },
52
+ }, (0, _platformFeatureFlags.fg)('navx-vuln-1914676-fix-xss-in-ai-summaries') ? {
53
+ disableParsingRawHTML: true
54
+ } : {}),
50
55
  style: {
51
56
  minHeight: minHeight
52
57
  }
@@ -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: "43.28.3"
5
+ packageVersion: "43.28.5"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "43.28.3",
15
+ packageVersion: "43.28.5",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -34,7 +34,10 @@ const AISummary = ({
34
34
  forceWrapper: true,
35
35
  overrides: {
36
36
  ul: UList
37
- }
37
+ },
38
+ ...(fg('navx-vuln-1914676-fix-xss-in-ai-summaries') ? {
39
+ disableParsingRawHTML: true
40
+ } : {})
38
41
  },
39
42
  style: {
40
43
  minHeight: minHeight
@@ -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: "43.28.3"
7
+ packageVersion: "43.28.5"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "43.28.3",
18
+ packageVersion: "43.28.5",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
@@ -1,7 +1,10 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  import "./index.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
6
+ 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; }
7
+ 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; }
5
8
  import Markdown from 'markdown-to-jsx';
6
9
  import { fg } from '@atlaskit/platform-feature-flags';
7
10
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -32,12 +35,14 @@ var AISummary = function AISummary(_ref) {
32
35
  ,
33
36
  className: ax(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true) && fg('platform_sl_3p_auth_rovo_action_kill_switch') ? "_syazi7uo" : "_syazazsu", className]),
34
37
  children: content,
35
- options: {
38
+ options: _objectSpread({
36
39
  forceWrapper: true,
37
40
  overrides: {
38
41
  ul: UList
39
42
  }
40
- },
43
+ }, fg('navx-vuln-1914676-fix-xss-in-ai-summaries') ? {
44
+ disableParsingRawHTML: true
45
+ } : {}),
41
46
  style: {
42
47
  minHeight: minHeight
43
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.28.4",
3
+ "version": "43.28.6",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -69,13 +69,13 @@
69
69
  "@atlaskit/react-ufo": "^5.7.0",
70
70
  "@atlaskit/rovo-triggers": "^5.34.0",
71
71
  "@atlaskit/section-message": "^8.12.0",
72
- "@atlaskit/select": "^21.8.0",
72
+ "@atlaskit/select": "^21.9.0",
73
73
  "@atlaskit/spinner": "^19.0.0",
74
74
  "@atlaskit/textarea": "^8.2.0",
75
75
  "@atlaskit/textfield": "^8.2.0",
76
76
  "@atlaskit/theme": "^22.0.0",
77
77
  "@atlaskit/tile": "^1.0.0",
78
- "@atlaskit/tmp-editor-statsig": "^49.0.0",
78
+ "@atlaskit/tmp-editor-statsig": "^50.0.0",
79
79
  "@atlaskit/tokens": "^11.4.0",
80
80
  "@atlaskit/tooltip": "^21.0.0",
81
81
  "@atlaskit/ufo": "^0.4.0",
@@ -233,6 +233,9 @@
233
233
  },
234
234
  "platform_navx_smart_link_icon_label_a11y": {
235
235
  "type": "boolean"
236
+ },
237
+ "navx-vuln-1914676-fix-xss-in-ai-summaries": {
238
+ "type": "boolean"
236
239
  }
237
240
  },
238
241
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"