@atlaskit/smart-card 44.16.4 → 44.16.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  4. package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +1 -1
  5. package/dist/cjs/extractors/action/extract-invoke-download-action.js +1 -1
  6. package/dist/cjs/extractors/action/extract-invoke-preview-action.js +7 -7
  7. package/dist/cjs/extractors/action/extract-invoke-view-action.js +1 -1
  8. package/dist/cjs/state/actions/index.js +7 -7
  9. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +46 -46
  10. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/readStream.js +44 -44
  11. package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +34 -34
  12. package/dist/cjs/state/hooks/use-invoke/index.js +4 -4
  13. package/dist/cjs/state/hooks/use-invoke-client-action/index.js +12 -12
  14. package/dist/cjs/state/hooks/use-resolve/index.js +4 -4
  15. package/dist/cjs/state/hooks/usePrefetch.js +14 -14
  16. package/dist/cjs/state/services/current-site-cloud-id/index.js +16 -16
  17. package/dist/cjs/state/services/personalization/index.js +23 -23
  18. package/dist/cjs/utils/analytics/analytics.js +1 -1
  19. package/dist/cjs/utils/index.js +26 -25
  20. package/dist/cjs/utils/mocks.js +16 -16
  21. package/dist/cjs/view/EmbedModal/utils.js +4 -4
  22. package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +17 -17
  23. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +8 -8
  24. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
  25. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +10 -10
  26. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +31 -31
  27. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +10 -10
  28. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +4 -4
  29. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +1 -1
  30. package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +34 -34
  31. package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +1 -1
  32. package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -1
  33. package/dist/cjs/view/LinkUrl/index.js +1 -1
  34. package/dist/cjs/view/RelatedLinksModal/index.js +41 -41
  35. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  36. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  37. package/dist/es2019/utils/analytics/analytics.js +1 -1
  38. package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +1 -1
  39. package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -1
  40. package/dist/es2019/view/LinkUrl/index.js +1 -1
  41. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  42. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  43. package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +1 -1
  44. package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
  45. package/dist/esm/extractors/action/extract-invoke-preview-action.js +7 -7
  46. package/dist/esm/extractors/action/extract-invoke-view-action.js +1 -1
  47. package/dist/esm/state/actions/index.js +7 -7
  48. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +46 -46
  49. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/readStream.js +44 -44
  50. package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +34 -34
  51. package/dist/esm/state/hooks/use-invoke/index.js +4 -4
  52. package/dist/esm/state/hooks/use-invoke-client-action/index.js +11 -11
  53. package/dist/esm/state/hooks/use-resolve/index.js +4 -4
  54. package/dist/esm/state/hooks/usePrefetch.js +14 -14
  55. package/dist/esm/state/services/current-site-cloud-id/index.js +16 -16
  56. package/dist/esm/state/services/personalization/index.js +23 -23
  57. package/dist/esm/utils/analytics/analytics.js +1 -1
  58. package/dist/esm/utils/index.js +25 -24
  59. package/dist/esm/utils/mocks.js +16 -16
  60. package/dist/esm/view/EmbedModal/utils.js +4 -4
  61. package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +16 -16
  62. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +8 -8
  63. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
  64. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +10 -10
  65. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +30 -30
  66. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +10 -10
  67. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +4 -4
  68. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +1 -1
  69. package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +33 -33
  70. package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +1 -1
  71. package/dist/esm/view/InlineCard/common/action-button/index.js +1 -1
  72. package/dist/esm/view/LinkUrl/index.js +1 -1
  73. package/dist/esm/view/RelatedLinksModal/index.js +40 -40
  74. package/package.json +9 -9
@@ -21,7 +21,7 @@ var _errored = _interopRequireDefault(require("./views/errored"));
21
21
  var _resolved = _interopRequireDefault(require("./views/resolved"));
22
22
  var _resolving = _interopRequireDefault(require("./views/resolving"));
23
23
  var _unavailable = _interopRequireDefault(require("./views/unavailable"));
24
- 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); }
24
+ 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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
25
25
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
26
26
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
27
27
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -63,72 +63,72 @@ var RelatedLinksModal = function RelatedLinksModal(_ref) {
63
63
  */
64
64
  var resolveAris = (0, _react.useCallback)( /*#__PURE__*/function () {
65
65
  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(aris) {
66
- var urlArray, batchResponse, _iterator, _step, res, url;
67
- return _regenerator.default.wrap(function _callee$(_context) {
66
+ var urlArray, batchResponse, _iterator, _step, res, url, _t;
67
+ return _regenerator.default.wrap(function (_context) {
68
68
  while (1) switch (_context.prev = _context.next) {
69
69
  case 0:
70
70
  if (!(aris.length === 0)) {
71
- _context.next = 2;
71
+ _context.next = 1;
72
72
  break;
73
73
  }
74
74
  return _context.abrupt("return", []);
75
- case 2:
75
+ case 1:
76
76
  urlArray = [];
77
- _context.next = 5;
77
+ _context.next = 2;
78
78
  return connections.client.fetchDataAris(aris);
79
- case 5:
79
+ case 2:
80
80
  batchResponse = _context.sent;
81
81
  _iterator = _createForOfIteratorHelper(batchResponse);
82
- _context.prev = 7;
82
+ _context.prev = 3;
83
83
  _iterator.s();
84
- case 9:
84
+ case 4:
85
85
  if ((_step = _iterator.n()).done) {
86
- _context.next = 22;
86
+ _context.next = 9;
87
87
  break;
88
88
  }
89
89
  res = _step.value;
90
90
  if (isGrantedResponse(res)) {
91
- _context.next = 13;
91
+ _context.next = 5;
92
92
  break;
93
93
  }
94
- return _context.abrupt("continue", 20);
95
- case 13:
94
+ return _context.abrupt("continue", 8);
95
+ case 5:
96
96
  if (res.body.data) {
97
- _context.next = 15;
97
+ _context.next = 6;
98
98
  break;
99
99
  }
100
- return _context.abrupt("continue", 20);
101
- case 15:
100
+ return _context.abrupt("continue", 8);
101
+ case 6:
102
102
  url = 'url' in res.body.data && (0, _linkExtractors.extractLink)(res.body.data);
103
103
  if (url) {
104
- _context.next = 18;
104
+ _context.next = 7;
105
105
  break;
106
106
  }
107
- return _context.abrupt("continue", 20);
108
- case 18:
107
+ return _context.abrupt("continue", 8);
108
+ case 7:
109
109
  handleResolvedLinkResponse(url, res.body, false, false);
110
110
  urlArray.push(url);
111
- case 20:
112
- _context.next = 9;
111
+ case 8:
112
+ _context.next = 4;
113
113
  break;
114
- case 22:
115
- _context.next = 27;
114
+ case 9:
115
+ _context.next = 11;
116
116
  break;
117
- case 24:
118
- _context.prev = 24;
119
- _context.t0 = _context["catch"](7);
120
- _iterator.e(_context.t0);
121
- case 27:
122
- _context.prev = 27;
117
+ case 10:
118
+ _context.prev = 10;
119
+ _t = _context["catch"](3);
120
+ _iterator.e(_t);
121
+ case 11:
122
+ _context.prev = 11;
123
123
  _iterator.f();
124
- return _context.finish(27);
125
- case 30:
124
+ return _context.finish(11);
125
+ case 12:
126
126
  return _context.abrupt("return", urlArray);
127
- case 31:
127
+ case 13:
128
128
  case "end":
129
129
  return _context.stop();
130
130
  }
131
- }, _callee, null, [[7, 24, 27, 30]]);
131
+ }, _callee, null, [[3, 10, 11, 12]]);
132
132
  }));
133
133
  return function (_x) {
134
134
  return _ref2.apply(this, arguments);
@@ -141,39 +141,39 @@ var RelatedLinksModal = function RelatedLinksModal(_ref) {
141
141
  */
142
142
  var fetchIncomingOutgoingData = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
143
143
  var _yield$getIncomingOut, incomingAris, outgoingAris, incomingRejected, outGoingRejected, _yield$Promise$all, _yield$Promise$all2, incomingUrls, outgoingUrls;
144
- return _regenerator.default.wrap(function _callee2$(_context2) {
144
+ return _regenerator.default.wrap(function (_context2) {
145
145
  while (1) switch (_context2.prev = _context2.next) {
146
146
  case 0:
147
- _context2.next = 2;
147
+ _context2.next = 1;
148
148
  return getIncomingOutgoingAris(ari);
149
- case 2:
149
+ case 1:
150
150
  _yield$getIncomingOut = _context2.sent;
151
151
  incomingAris = _yield$getIncomingOut.incomingAris;
152
152
  outgoingAris = _yield$getIncomingOut.outgoingAris;
153
153
  incomingRejected = false;
154
154
  outGoingRejected = false;
155
- _context2.next = 9;
155
+ _context2.next = 2;
156
156
  return Promise.all([resolveAris(incomingAris).catch(function () {
157
157
  incomingRejected = true;
158
158
  }), resolveAris(outgoingAris).catch(function () {
159
159
  outGoingRejected = true;
160
160
  })]);
161
- case 9:
161
+ case 2:
162
162
  _yield$Promise$all = _context2.sent;
163
163
  _yield$Promise$all2 = (0, _slicedToArray2.default)(_yield$Promise$all, 2);
164
164
  incomingUrls = _yield$Promise$all2[0];
165
165
  outgoingUrls = _yield$Promise$all2[1];
166
166
  if (!(incomingRejected && outGoingRejected)) {
167
- _context2.next = 15;
167
+ _context2.next = 3;
168
168
  break;
169
169
  }
170
170
  throw new Error('both incoming and outgoing resolve request were rejected');
171
- case 15:
171
+ case 3:
172
172
  return _context2.abrupt("return", {
173
173
  incomingUrls: incomingUrls !== null && incomingUrls !== void 0 ? incomingUrls : [],
174
174
  outgoingUrls: outgoingUrls !== null && outgoingUrls !== void 0 ? outgoingUrls : []
175
175
  });
176
- case 16:
176
+ case 4:
177
177
  case "end":
178
178
  return _context2.stop();
179
179
  }
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c6db3e054762487df1d46235e404950480972dc70353cd899987c112699f1e0
3
- size 22332
2
+ oid sha256:d750a5131240af4f7d635606bfe3b2d20b734bd64e7ba8b3ced70d4fc666f41b
3
+ size 22011
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:86d3feb74e0dc30b01e710e0365f33bb02e9be4796acba15938c020ce1507f62
3
- size 36426
2
+ oid sha256:94d62ea32479515465c359fbb0e4c962187bae2f87a37231f9de61788071fec6
3
+ size 36260
@@ -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: "44.16.3" || ''
5
+ packageVersion: "44.16.5" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -13,7 +13,7 @@
13
13
  ._4cvr1h6o{align-items:center}
14
14
  ._80om13gf{cursor:not-allowed}
15
15
  ._80omtlke{cursor:pointer}
16
- ._bfhkby5v{background-color:var(--ds-background-disabled,#17171708)}
16
+ ._bfhk187o{background-color:var(--ds-background-disabled,#0515240f)}
17
17
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
18
18
  ._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
19
19
  ._ca0qt94y{padding-top:1px}
@@ -11,7 +11,7 @@ const styles = {
11
11
  innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
12
12
  innerContainerSocialProofConnect: "_2rko12b0 _syaz15cr _80omtlke _bfhkjmqp _2hwxv77o _1e0c1nu9 _4cvr1h6o _1wybtjj4 _1y1m1u8q _16d9qvcn _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _s7n4t94y _o5721btx _1nmz9jpi _irr31q28 _1di612kk",
13
13
  enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
14
- disabled: "_syaz1gmx _80om13gf _bfhkby5v",
14
+ disabled: "_syaz1gmx _80om13gf _bfhk187o",
15
15
  unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
16
16
  };
17
17
 
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "44.16.3",
12
+ packageVersion: "44.16.5",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c6db3e054762487df1d46235e404950480972dc70353cd899987c112699f1e0
3
- size 22332
2
+ oid sha256:d750a5131240af4f7d635606bfe3b2d20b734bd64e7ba8b3ced70d4fc666f41b
3
+ size 22011
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:86d3feb74e0dc30b01e710e0365f33bb02e9be4796acba15938c020ce1507f62
3
- size 36426
2
+ oid sha256:94d62ea32479515465c359fbb0e4c962187bae2f87a37231f9de61788071fec6
3
+ size 36260
@@ -20,7 +20,7 @@ export var extractInvokeCopyLinkAction = function extractInvokeCopyLinkAction(_r
20
20
  return {
21
21
  actionFn: function () {
22
22
  var _actionFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
23
- return _regeneratorRuntime.wrap(function _callee$(_context) {
23
+ return _regeneratorRuntime.wrap(function (_context) {
24
24
  while (1) switch (_context.prev = _context.next) {
25
25
  case 0:
26
26
  return _context.abrupt("return", navigator.clipboard.writeText(url));
@@ -24,7 +24,7 @@ export var extractInvokeDownloadAction = function extractInvokeDownloadAction(_r
24
24
  return {
25
25
  actionFn: function () {
26
26
  var _actionFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
27
- return _regeneratorRuntime.wrap(function _callee$(_context) {
27
+ return _regeneratorRuntime.wrap(function (_context) {
28
28
  while (1) switch (_context.prev = _context.next) {
29
29
  case 0:
30
30
  return _context.abrupt("return", download(downloadUrl));
@@ -67,11 +67,11 @@ export var extractInvokePreviewAction = function extractInvokePreviewAction(para
67
67
  actionFn: function () {
68
68
  var _actionFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
69
69
  var _extractSmartLinkEmbe, resolvedUrl, responseUrl, _extractSmartLinkProv, _extractSmartLinkEmbe2, _actionOptions$previe, _actionOptions$previe2;
70
- return _regeneratorRuntime.wrap(function _callee$(_context) {
70
+ return _regeneratorRuntime.wrap(function (_context) {
71
71
  while (1) switch (_context.prev = _context.next) {
72
72
  case 0:
73
73
  if (!hasPreviewPanel) {
74
- _context.next = 7;
74
+ _context.next = 1;
75
75
  break;
76
76
  }
77
77
  resolvedUrl = url;
@@ -91,10 +91,10 @@ export var extractInvokePreviewAction = function extractInvokePreviewAction(para
91
91
  expValEquals('platform_hover_card_preview_panel', 'cohort', 'test') && firePreviewActionUIEvent({
92
92
  previewType: 'panel'
93
93
  });
94
- _context.next = 10;
94
+ _context.next = 3;
95
95
  break;
96
- case 7:
97
- _context.next = 9;
96
+ case 1:
97
+ _context.next = 2;
98
98
  return openEmbedModal(_objectSpread({
99
99
  fireEvent: fireEvent,
100
100
  extensionKey: extensionKey,
@@ -115,11 +115,11 @@ export var extractInvokePreviewAction = function extractInvokePreviewAction(para
115
115
  }, expValEquals('platform_hover_card_preview_panel', 'cohort', 'test') && {
116
116
  isInPreviewPanel: isInPreviewPanel
117
117
  }));
118
- case 9:
118
+ case 2:
119
119
  expValEquals('platform_hover_card_preview_panel', 'cohort', 'test') && firePreviewActionUIEvent({
120
120
  previewType: 'modal'
121
121
  });
122
- case 10:
122
+ case 3:
123
123
  case "end":
124
124
  return _context.stop();
125
125
  }
@@ -26,7 +26,7 @@ export var extractInvokeViewAction = function extractInvokeViewAction(_ref, forc
26
26
  return {
27
27
  actionFn: function () {
28
28
  var _actionFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
29
- return _regeneratorRuntime.wrap(function _callee$(_context) {
29
+ return _regeneratorRuntime.wrap(function (_context) {
30
30
  while (1) switch (_context.prev = _context.next) {
31
31
  case 0:
32
32
  return _context.abrupt("return", openUrl(url));
@@ -50,14 +50,14 @@ export var useSmartCardActions = function useSmartCardActions(id, url) {
50
50
  isReloading,
51
51
  isMetadataRequest,
52
52
  _args = arguments;
53
- return _regeneratorRuntime.wrap(function _callee$(_context) {
53
+ return _regeneratorRuntime.wrap(function (_context) {
54
54
  while (1) switch (_context.prev = _context.next) {
55
55
  case 0:
56
56
  resourceUrl = _args.length > 0 && _args[0] !== undefined ? _args[0] : url;
57
57
  isReloading = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
58
58
  isMetadataRequest = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
59
59
  return _context.abrupt("return", resolveUrl(resourceUrl, isReloading, isMetadataRequest, id));
60
- case 4:
60
+ case 1:
61
61
  case "end":
62
62
  return _context.stop();
63
63
  }
@@ -161,25 +161,25 @@ export var useSmartCardActions = function useSmartCardActions(id, url) {
161
161
  var invoke = useCallback( /*#__PURE__*/function () {
162
162
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(opts, appearance) {
163
163
  var key, action, source;
164
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
164
+ return _regeneratorRuntime.wrap(function (_context2) {
165
165
  while (1) switch (_context2.prev = _context2.next) {
166
166
  case 0:
167
167
  key = opts.key, action = opts.action;
168
168
  source = opts.source || appearance;
169
169
  if (!(opts.type === 'client')) {
170
- _context2.next = 6;
170
+ _context2.next = 2;
171
171
  break;
172
172
  }
173
- _context2.next = 5;
173
+ _context2.next = 1;
174
174
  return invokeClientAction({
175
175
  actionFn: opts.action.promise,
176
176
  actionType: action.type,
177
177
  display: source,
178
178
  extensionKey: key
179
179
  });
180
- case 5:
180
+ case 1:
181
181
  return _context2.abrupt("return", _context2.sent);
182
- case 6:
182
+ case 2:
183
183
  case "end":
184
184
  return _context2.stop();
185
185
  }
@@ -36,7 +36,7 @@ export var AISummaryService = /*#__PURE__*/function () {
36
36
  });
37
37
  _defineProperty(this, "fetchStream", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
38
38
  var payload, options, response;
39
- return _regeneratorRuntime.wrap(function _callee$(_context) {
39
+ return _regeneratorRuntime.wrap(function (_context) {
40
40
  while (1) switch (_context.prev = _context.next) {
41
41
  case 0:
42
42
  payload = _objectSpread({
@@ -61,18 +61,18 @@ export var AISummaryService = /*#__PURE__*/function () {
61
61
  body: JSON.stringify(payload),
62
62
  credentials: 'include'
63
63
  };
64
- _context.next = 4;
64
+ _context.next = 1;
65
65
  return fetch(_this.config.requestUrl, options);
66
- case 4:
66
+ case 1:
67
67
  response = _context.sent;
68
68
  if (!(!response.ok || response.status >= 400)) {
69
- _context.next = 9;
69
+ _context.next = 2;
70
70
  break;
71
71
  }
72
72
  throw new Error("Status: ".concat(response.status, "\n URL: ").concat(_this.url, "\n StatusText ").concat(response.statusText));
73
- case 9:
73
+ case 2:
74
74
  return _context.abrupt("return", readStream(response));
75
- case 10:
75
+ case 3:
76
76
  case "end":
77
77
  return _context.stop();
78
78
  }
@@ -97,8 +97,8 @@ export var AISummaryService = /*#__PURE__*/function () {
97
97
  key: "summariseUrl",
98
98
  value: function () {
99
99
  var _summariseUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
100
- var _iterator2, _step2, _subscriber, id, _this$onStart, _this$onSuccess, stream, bufferContent, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, _iterator3, _step3, subscriber, _chunk$message, _this$onError, message, _iterator4, _step4, _subscriber2;
101
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
100
+ var _iterator2, _step2, _subscriber, id, _this$onStart, _this$onSuccess, stream, bufferContent, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, _iterator3, _step3, subscriber, _chunk$message, _this$onError, message, _iterator4, _step4, _subscriber2, _t, _t2;
101
+ return _regeneratorRuntime.wrap(function (_context2) {
102
102
  while (1) switch (_context2.prev = _context2.next) {
103
103
  case 0:
104
104
  this.state = {
@@ -119,23 +119,23 @@ export var AISummaryService = /*#__PURE__*/function () {
119
119
  _iterator2.f();
120
120
  }
121
121
  id = uuid();
122
- _context2.prev = 4;
122
+ _context2.prev = 1;
123
123
  (_this$onStart = this.onStart) === null || _this$onStart === void 0 || _this$onStart.call(this, id);
124
- _context2.next = 8;
124
+ _context2.next = 2;
125
125
  return this.fetchStream();
126
- case 8:
126
+ case 2:
127
127
  stream = _context2.sent;
128
128
  bufferContent = '';
129
129
  _iteratorAbruptCompletion = false;
130
130
  _didIteratorError = false;
131
- _context2.prev = 12;
131
+ _context2.prev = 3;
132
132
  _iterator = _asyncIterator(stream);
133
- case 14:
134
- _context2.next = 16;
133
+ case 4:
134
+ _context2.next = 5;
135
135
  return _iterator.next();
136
- case 16:
136
+ case 5:
137
137
  if (!(_iteratorAbruptCompletion = !(_step = _context2.sent).done)) {
138
- _context2.next = 25;
138
+ _context2.next = 7;
139
139
  break;
140
140
  }
141
141
  chunk = _step.value;
@@ -161,61 +161,61 @@ export var AISummaryService = /*#__PURE__*/function () {
161
161
  bufferContent = chunk.message.content;
162
162
  }
163
163
  if (!(chunk.type === 'ERROR')) {
164
- _context2.next = 22;
164
+ _context2.next = 6;
165
165
  break;
166
166
  }
167
167
  throw new ChunkProcessingError(chunk === null || chunk === void 0 || (_chunk$message = chunk.message) === null || _chunk$message === void 0 ? void 0 : _chunk$message.message_template);
168
- case 22:
168
+ case 6:
169
169
  _iteratorAbruptCompletion = false;
170
- _context2.next = 14;
170
+ _context2.next = 4;
171
171
  break;
172
- case 25:
173
- _context2.next = 31;
172
+ case 7:
173
+ _context2.next = 9;
174
174
  break;
175
- case 27:
176
- _context2.prev = 27;
177
- _context2.t0 = _context2["catch"](12);
175
+ case 8:
176
+ _context2.prev = 8;
177
+ _t = _context2["catch"](3);
178
178
  _didIteratorError = true;
179
- _iteratorError = _context2.t0;
180
- case 31:
181
- _context2.prev = 31;
182
- _context2.prev = 32;
179
+ _iteratorError = _t;
180
+ case 9:
181
+ _context2.prev = 9;
182
+ _context2.prev = 10;
183
183
  if (!(_iteratorAbruptCompletion && _iterator.return != null)) {
184
- _context2.next = 36;
184
+ _context2.next = 11;
185
185
  break;
186
186
  }
187
- _context2.next = 36;
187
+ _context2.next = 11;
188
188
  return _iterator.return();
189
- case 36:
190
- _context2.prev = 36;
189
+ case 11:
190
+ _context2.prev = 11;
191
191
  if (!_didIteratorError) {
192
- _context2.next = 39;
192
+ _context2.next = 12;
193
193
  break;
194
194
  }
195
195
  throw _iteratorError;
196
- case 39:
197
- return _context2.finish(36);
198
- case 40:
199
- return _context2.finish(31);
200
- case 41:
196
+ case 12:
197
+ return _context2.finish(11);
198
+ case 13:
199
+ return _context2.finish(9);
200
+ case 14:
201
201
  (_this$onSuccess = this.onSuccess) === null || _this$onSuccess === void 0 || _this$onSuccess.call(this, id);
202
202
  this.state = {
203
203
  status: 'done',
204
204
  content: bufferContent
205
205
  };
206
- _context2.next = 50;
206
+ _context2.next = 16;
207
207
  break;
208
- case 45:
209
- _context2.prev = 45;
210
- _context2.t1 = _context2["catch"](4);
211
- message = _context2.t1 instanceof ChunkProcessingError ? _context2.t1.message : 'UNEXPECTED';
208
+ case 15:
209
+ _context2.prev = 15;
210
+ _t2 = _context2["catch"](1);
211
+ message = _t2 instanceof ChunkProcessingError ? _t2.message : 'UNEXPECTED';
212
212
  (_this$onError = this.onError) === null || _this$onError === void 0 || _this$onError.call(this, id, message);
213
213
  this.state = {
214
214
  status: 'error',
215
215
  content: '',
216
216
  error: message
217
217
  };
218
- case 50:
218
+ case 16:
219
219
  _iterator4 = _createForOfIteratorHelper(this.subscribedStateSetters);
220
220
  try {
221
221
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -228,11 +228,11 @@ export var AISummaryService = /*#__PURE__*/function () {
228
228
  _iterator4.f();
229
229
  }
230
230
  return _context2.abrupt("return", this.state);
231
- case 53:
231
+ case 17:
232
232
  case "end":
233
233
  return _context2.stop();
234
234
  }
235
- }, _callee2, this, [[4, 45], [12, 27, 31, 41], [32,, 36, 40]]);
235
+ }, _callee2, this, [[1, 15], [3, 8, 9, 14], [10,, 11, 13]]);
236
236
  }));
237
237
  function summariseUrl() {
238
238
  return _summariseUrl.apply(this, arguments);