@atlaskit/smart-card 44.3.7 → 44.3.9

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 (73) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-multiple-providers--default.png +3 -0
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--default.png +2 -2
  5. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
  6. package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view--default.png +2 -2
  7. package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
  8. package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
  9. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
  10. package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.png +2 -2
  11. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  12. package/dist/cjs/extractors/flexible/index.js +3 -5
  13. package/dist/cjs/utils/analytics/analytics.js +1 -1
  14. package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
  15. package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +22 -28
  16. package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
  17. package/dist/cjs/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
  18. package/dist/cjs/view/FlexibleCard/utils.js +3 -7
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -3
  21. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-multiple-providers--default.png +3 -0
  22. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
  23. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--default.png +2 -2
  24. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
  25. package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view--default.png +2 -2
  26. package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
  27. package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
  28. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
  29. package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.png +2 -2
  30. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  31. package/dist/es2019/extractors/flexible/index.js +1 -4
  32. package/dist/es2019/utils/analytics/analytics.js +1 -1
  33. package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
  34. package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +22 -28
  35. package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
  36. package/dist/es2019/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
  37. package/dist/es2019/view/FlexibleCard/utils.js +1 -4
  38. package/dist/es2019/view/LinkUrl/index.js +1 -1
  39. package/dist/es2019/view/common/UnauthorisedViewContent.js +2 -3
  40. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-multiple-providers--default.png +3 -0
  41. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
  42. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--default.png +2 -2
  43. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
  44. package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view--default.png +2 -2
  45. package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
  46. package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
  47. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
  48. package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.png +2 -2
  49. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  50. package/dist/esm/extractors/flexible/index.js +3 -5
  51. package/dist/esm/utils/analytics/analytics.js +1 -1
  52. package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
  53. package/dist/esm/view/BlockCard/views/UnauthorisedView.js +22 -28
  54. package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
  55. package/dist/esm/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
  56. package/dist/esm/view/FlexibleCard/utils.js +3 -7
  57. package/dist/esm/view/LinkUrl/index.js +1 -1
  58. package/dist/esm/view/common/UnauthorisedViewContent.js +2 -3
  59. package/package.json +2 -2
  60. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
  61. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
  62. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
  63. package/dist/cjs/utils/experiments.js +0 -16
  64. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
  65. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
  66. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
  67. package/dist/es2019/utils/experiments.js +0 -9
  68. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
  69. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
  70. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
  71. package/dist/esm/utils/experiments.js +0 -10
  72. package/dist/types/utils/experiments.d.ts +0 -1
  73. package/dist/types-ts4.5/utils/experiments.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 44.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6655b2d3fda01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6655b2d3fda01) -
8
+ NAVX-4681: Remove platform_sl_3p_unauth_paste_as_block_card experiment (winning:
9
+ card_by_default_and_new_design), platform_sl_3p_unauth_paste_as_block_card_gate, and
10
+ platform_sl_3p_unauth_experiment_gate feature flags
11
+ - [`6655b2d3fda01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6655b2d3fda01) -
12
+ NAVX-4681: Fix UnauthorisedView prop typing and ensure title always has accessible text after
13
+ platform_sl_3p_unauth_paste_as_block_card experiment cleanup
14
+ - Updated dependencies
15
+
16
+ ## 44.3.8
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 44.3.7
4
23
 
5
24
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b69cbe716ed7cefdf6c1c11451d83320e344bd9447053b2becdf708498f8c89a
3
+ size 95722
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbeee38e9b1bccbdfb3a356f23dbc03168cd336ed1d3706ff5f8969758f13fae
3
- size 14685
2
+ oid sha256:8ec25a1e57ff977d9e808bf1aca781b738215126781f36a3b0cf9974fd041f4e
3
+ size 17798
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:23c2bab3323dcb5c3e3a71b0dd5820cef0c76a520d5c4d992c5c1217ba4a3642
3
- size 11320
2
+ oid sha256:749ae995186262b627fdaf52854843785e51614355292789dd7dfcdc6cb19451
3
+ size 12486
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6e086bcb8c84558ecb8b1c584356c9c99df4f2427fa4b234e5a41f03a8b630d
3
- size 19896
2
+ oid sha256:f0bdf05636ffef07dbcd840489cd4d6d38c54572d1c7e80716c5568cec171944
3
+ size 21291
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9b275771311257aa24e29891070046560e117815ee7d35ac09f37b3cadc3c89
3
- size 31492
2
+ oid sha256:e908794028e92b29475138fb619fb8b8184fedf03432e11aeed2b072db10cf1d
3
+ size 27271
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34870f63b2e758ef38abcc00f96fa438054fa9494e31e17ef0d60c914e322bc6
3
- size 29551
2
+ oid sha256:88490a8067c24156fd0e5199a2e97fa305b4808ba6004a1c919662e63a298576
3
+ size 25344
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad3299e56b3dc47e417017b3869558b0d0cb51566bc5f7154ec6d20d9fce52b7
3
- size 26340
2
+ oid sha256:8fbfda98f519d69c29ee5a54edb40d3f2631b2ea76882aa7245d8e3b1cffe534
3
+ size 21830
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5e19011a0a4ec5bfcd6913735f62a96a7cb6f1e6464678ea3cc5f8cdac0657d
3
- size 28424
2
+ oid sha256:c4c95f2a1cdcfb52893bba97c9bc9768262b9ac09a7417bc85a01ca7672f57cc
3
+ size 29864
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf13e3f7e0611e19fd6a1bac110f2263351d3c2c637dea81ef090f5c3adb6a90
3
- size 28887
2
+ oid sha256:5da0018682256152afd654a1dc7a8625629e440b21d4ccf02644961a663891b3
3
+ size 30189
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4a410347ab9a62f38c2387c43e9dda88fc99579b03184d15bb56669aa4a4dd1
3
- size 24832
2
+ oid sha256:5c6db3e054762487df1d46235e404950480972dc70353cd899987c112699f1e0
3
+ size 22332
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _linkExtractors = require("@atlaskit/link-extractors");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
- var _experiments = require("../../utils/experiments");
13
12
  var _extractSummary = require("../common/primitives/extractSummary");
14
13
  var _actions = require("./actions");
15
14
  var _collaboratorGroup = require("./collaboratorGroup");
@@ -47,7 +46,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
47
46
  var data = response.data;
48
47
  var meta = response.meta;
49
48
  var url = (0, _linkExtractors.extractSmartLinkUrl)(response);
50
- return _objectSpread({
49
+ return {
51
50
  actions: (0, _actions.extractFlexibleCardActions)(_objectSpread(_objectSpread({
52
51
  actionOptions: actionOptions,
53
52
  aiSummaryConfig: aiSummaryConfig,
@@ -110,9 +109,8 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
110
109
  objectId: (0, _utils.extractMetaObjectId)(meta),
111
110
  resourceType: (0, _utils.extractMetaResourceType)(meta),
112
111
  tenantId: (0, _utils.extractMetaTenantId)(meta)
113
- }
114
- }, (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)() && {
112
+ },
115
113
  hostName: (0, _utils.extractHostName)(response)
116
- });
114
+ };
117
115
  };
118
116
  var _default = exports.default = extractFlexibleUiContext;
@@ -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: "44.3.6"
14
+ packageVersion: "44.3.8"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1,4 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
2
  ._zulpidpf{gap:0}
4
3
  ._zulputpp{gap:var(--ds-space-150,9pt)}
5
4
  ._12vemgnk{background-repeat:no-repeat}
@@ -21,7 +21,6 @@ var _constants = require("../../../constants");
21
21
  var _messages = require("../../../messages");
22
22
  var _flexibleUiContext = require("../../../state/flexible-ui-context");
23
23
  var _helpers = require("../../../state/helpers");
24
- var _experiments = require("../../../utils/experiments");
25
24
  var _UnauthorisedViewContent = _interopRequireDefault(require("../../common/UnauthorisedViewContent"));
26
25
  var _FlexibleCard = _interopRequireDefault(require("../../FlexibleCard"));
27
26
  var _actionGroup = _interopRequireDefault(require("../../FlexibleCard/components/blocks/action-group"));
@@ -31,13 +30,11 @@ var _utils = require("../../FlexibleCard/components/blocks/utils");
31
30
  var _elements = require("../../FlexibleCard/components/elements");
32
31
  var _AuthorizeAction = require("../actions/AuthorizeAction");
33
32
  var _general2x = _interopRequireDefault(require("./assets/general@2x.png"));
34
- var _unresolvedView = _interopRequireDefault(require("./unresolved-view"));
35
33
  var _utils2 = require("./utils");
36
34
  var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyle");
37
35
  var _excluded = ["testId"];
38
36
  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); }
39
37
  var contentStyles = null;
40
- var newContentStyles = null;
41
38
  var contentAdditionalStyles = null;
42
39
  var newTitleBlockStyles = null;
43
40
  var intermediumGapStyles = null;
@@ -89,14 +86,18 @@ var getBetterTitle = function getBetterTitle(url) {
89
86
  search = _URL.search;
90
87
  if (pathname.length > 1) {
91
88
  return pathname.substring(1);
92
- } else {
89
+ }
90
+ if (search) {
93
91
  return search;
94
92
  }
93
+ // Fall back to the full URL when there is no useful path/search to display,
94
+ // so the title (and the underlying link) always has accessible text.
95
+ return url;
95
96
  } catch (_unused) {
96
97
  return url;
97
98
  }
98
99
  };
99
- var NewUnauthorisedBlock = function NewUnauthorisedBlock(_ref) {
100
+ var UnauthorisedBlock = function UnauthorisedBlock(_ref) {
100
101
  var _useFlexibleCardConte, _data$preview$url, _data$preview;
101
102
  var actions = _ref.actions,
102
103
  children = _ref.children,
@@ -200,29 +201,22 @@ var UnauthorisedView = function UnauthorisedView(_ref3) {
200
201
  var actions = (0, _react.useMemo)(function () {
201
202
  return onAuthorize ? [(0, _AuthorizeAction.AuthorizeAction)(handleAuthorize, providerName)] : [];
202
203
  }, [handleAuthorize, onAuthorize, providerName]);
203
- if ((0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)(true)) {
204
- return /*#__PURE__*/React.createElement(_FlexibleCard.default, (0, _extends2.default)({
205
- appearance: "block",
206
- onAuthorize: onAuthorize,
207
- origin: "smartLinkCard",
208
- testId: testId,
209
- ui: _utils2.FlexibleCardUiOptions
210
- }, props), /*#__PURE__*/React.createElement(NewUnauthorisedBlock, (0, _extends2.default)({}, props, {
211
- actions: actions,
212
- testId: testId
213
- }), /*#__PURE__*/React.createElement("div", {
214
- "data-testid": "".concat(testId, "-content"),
215
- className: (0, _runtime.ax)(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
216
- }, content)));
217
- } else {
218
- return /*#__PURE__*/React.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
219
- actions: actions,
220
- testId: testId
221
- }), /*#__PURE__*/React.createElement("div", {
222
- "data-testid": "".concat(testId, "-content"),
223
- className: (0, _runtime.ax)(["_11c8wadc _syazi7uo _19pku2gc"])
224
- }, content));
225
- }
204
+ return /*#__PURE__*/React.createElement(_FlexibleCard.default, (0, _extends2.default)({
205
+ appearance: "block",
206
+ onAuthorize: onAuthorize,
207
+ origin: "smartLinkCard",
208
+ testId: testId,
209
+ ui: _utils2.FlexibleCardUiOptions
210
+ }, props), /*#__PURE__*/React.createElement(UnauthorisedBlock, {
211
+ actions: actions,
212
+ cardState: props.cardState,
213
+ CompetitorPrompt: props.CompetitorPrompt,
214
+ testId: testId,
215
+ url: props.url
216
+ }, /*#__PURE__*/React.createElement("div", {
217
+ "data-testid": "".concat(testId, "-content"),
218
+ className: (0, _runtime.ax)(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
219
+ }, content)));
226
220
  };
227
221
  var _default_1 = (0, _withFlexibleUIBlockCardStyle.withFlexibleUIBlockCardStyle)(UnauthorisedView);
228
222
  var _default = exports.default = _default_1;
@@ -20,7 +20,6 @@ var _compiled = require("@atlaskit/primitives/compiled");
20
20
  var _tile = _interopRequireDefault(require("@atlaskit/tile"));
21
21
  var _constants = require("../../../../../../constants");
22
22
  var _utils = require("../../../../../../utils");
23
- var _experiments = require("../../../../../../utils/experiments");
24
23
  var _atlaskitIcon = _interopRequireDefault(require("../../../common/atlaskit-icon"));
25
24
  var _imageIcon = _interopRequireDefault(require("../../../common/image-icon"));
26
25
  var _utils2 = require("../../../utils");
@@ -157,7 +156,7 @@ var IconElement = function IconElement(_ref) {
157
156
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
158
157
  ,
159
158
  className: (0, _runtime.ax)([styles.container, positionStyleMap[position], render && customRenderStyleMap[size], className])
160
- }, isTiledIcon && ((0, _platformFeatureFlags.fg)('platform_sl_3p_preauth_better_hovercard_killswitch') || (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)()) ? /*#__PURE__*/React.createElement(_tile.default, {
159
+ }, isTiledIcon ? /*#__PURE__*/React.createElement(_tile.default, {
161
160
  size: size,
162
161
  hasBorder: true,
163
162
  backgroundColor: "white",
@@ -14,7 +14,6 @@ var _react = _interopRequireWildcard(require("react"));
14
14
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
15
15
  var _constants = require("../../../../../../constants");
16
16
  var _useLinkClicked = require("../../../../../../state/analytics/useLinkClicked");
17
- var _experiments = require("../../../../../../utils/experiments");
18
17
  var _utils = require("../../../utils");
19
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); }
20
19
  /* eslint-disable @compiled/shorthand-property-sorting */
@@ -119,7 +118,7 @@ var BaseLinkElement = function BaseLinkElement(_ref) {
119
118
  }), text);
120
119
  return /*#__PURE__*/_react.default.createElement("span", {
121
120
  className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug"])
122
- }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) && (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)() ? url : text, testId));
121
+ }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) ? url : text, testId));
123
122
  };
124
123
  var _default = exports.default = BaseLinkElement;
125
124
  var toLinkProps = exports.toLinkProps = function toLinkProps(text, url) {
@@ -18,10 +18,7 @@ var _extractProviderIcon = require("../../extractors/flexible/icon/extract-provi
18
18
  var _utils = require("../../extractors/flexible/utils");
19
19
  var _messages = require("../../messages");
20
20
  var _utils2 = require("../../utils");
21
- var _experiments = require("../../utils/experiments");
22
21
  var _jsonld = require("../../utils/jsonld");
23
- 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; }
24
- 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; }
25
22
  var getContextByStatus = exports.getContextByStatus = function getContextByStatus(params) {
26
23
  var _response$meta;
27
24
  var _ref = params !== null && params !== void 0 ? params : {},
@@ -44,7 +41,7 @@ var getContextByStatus = exports.getContextByStatus = function getContextByStatu
44
41
  case _constants.SmartLinkStatus.Errored:
45
42
  case _constants.SmartLinkStatus.Fallback:
46
43
  default:
47
- return _objectSpread({
44
+ return {
48
45
  url: url,
49
46
  linkIcon: (0, _icon.extractErrorIcon)(response, status),
50
47
  linkTitle: (0, _extractLinkTitle.default)(status, url, response, onClick),
@@ -53,10 +50,9 @@ var getContextByStatus = exports.getContextByStatus = function getContextByStatu
53
50
  actions: (0, _defineProperty2.default)({}, _constants.InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)),
54
51
  meta: {
55
52
  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
56
- }
57
- }, (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)() && {
53
+ },
58
54
  hostName: (0, _utils.extractHostName)(response)
59
- });
55
+ };
60
56
  }
61
57
  };
62
58
  var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
@@ -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: "44.3.6",
25
+ packageVersion: "44.3.8",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -14,7 +14,6 @@ var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
15
15
  var _constants = require("../../constants");
16
16
  var _messages = require("../../messages");
17
- var _experiments = require("../../utils/experiments");
18
17
  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
18
  /**
20
19
  * This component is used in unauthorized views of a smart link.
@@ -31,12 +30,12 @@ var UnauthorisedViewContent = function UnauthorisedViewContent(_ref) {
31
30
  fireEvent('ui.button.clicked.learnMore', {});
32
31
  }, [fireEvent]);
33
32
  var learnMoreMessage = isProductIntegrationSupported ? (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.learn_more_about_connecting_account_appify : _messages.messages.learn_more_about_connecting_account : _messages.messages.learn_more_about_smart_links;
34
- var unauthorizedAccountDescriptionMessage = (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)() ? _messages.messages.learn_more_about_connecting_account_experiment_shorter : (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.connect_unauthorised_account_description_appify : _messages.messages.connect_unauthorised_account_description;
33
+ var unauthorizedAccountDescriptionMessage = _messages.messages.learn_more_about_connecting_account_experiment_shorter;
35
34
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, providerName ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, unauthorizedAccountDescriptionMessage, {
36
35
  values: {
37
36
  context: providerName
38
37
  }
39
- })) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.connect_unauthorised_account_description_no_provider_appify : _messages.messages.connect_unauthorised_account_description_no_provider), (0, _experiments.isNewBlockcardUnauthorizedRefreshExperimentEnabled)() ? /*#__PURE__*/_react.default.createElement("br", null) : ' ', /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
38
+ })) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _platformFeatureFlags.fg)('product-terminology-refresh') ? _messages.messages.connect_unauthorised_account_description_no_provider_appify : _messages.messages.connect_unauthorised_account_description_no_provider), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
40
39
  href: isProductIntegrationSupported ? _constants.CONTENT_URL_3P_ACCOUNT_AUTH : _constants.CONTENT_URL_SECURITY_AND_PERMISSIONS,
41
40
  target: "_blank",
42
41
  testId: "".concat(testId, "-learn-more"),
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b69cbe716ed7cefdf6c1c11451d83320e344bd9447053b2becdf708498f8c89a
3
+ size 95722
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbeee38e9b1bccbdfb3a356f23dbc03168cd336ed1d3706ff5f8969758f13fae
3
- size 14685
2
+ oid sha256:8ec25a1e57ff977d9e808bf1aca781b738215126781f36a3b0cf9974fd041f4e
3
+ size 17798
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:23c2bab3323dcb5c3e3a71b0dd5820cef0c76a520d5c4d992c5c1217ba4a3642
3
- size 11320
2
+ oid sha256:749ae995186262b627fdaf52854843785e51614355292789dd7dfcdc6cb19451
3
+ size 12486
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6e086bcb8c84558ecb8b1c584356c9c99df4f2427fa4b234e5a41f03a8b630d
3
- size 19896
2
+ oid sha256:f0bdf05636ffef07dbcd840489cd4d6d38c54572d1c7e80716c5568cec171944
3
+ size 21291
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9b275771311257aa24e29891070046560e117815ee7d35ac09f37b3cadc3c89
3
- size 31492
2
+ oid sha256:e908794028e92b29475138fb619fb8b8184fedf03432e11aeed2b072db10cf1d
3
+ size 27271
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34870f63b2e758ef38abcc00f96fa438054fa9494e31e17ef0d60c914e322bc6
3
- size 29551
2
+ oid sha256:88490a8067c24156fd0e5199a2e97fa305b4808ba6004a1c919662e63a298576
3
+ size 25344
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad3299e56b3dc47e417017b3869558b0d0cb51566bc5f7154ec6d20d9fce52b7
3
- size 26340
2
+ oid sha256:8fbfda98f519d69c29ee5a54edb40d3f2631b2ea76882aa7245d8e3b1cffe534
3
+ size 21830
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5e19011a0a4ec5bfcd6913735f62a96a7cb6f1e6464678ea3cc5f8cdac0657d
3
- size 28424
2
+ oid sha256:c4c95f2a1cdcfb52893bba97c9bc9768262b9ac09a7417bc85a01ca7672f57cc
3
+ size 29864
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf13e3f7e0611e19fd6a1bac110f2263351d3c2c637dea81ef090f5c3adb6a90
3
- size 28887
2
+ oid sha256:5da0018682256152afd654a1dc7a8625629e440b21d4ccf02644961a663891b3
3
+ size 30189
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4a410347ab9a62f38c2387c43e9dda88fc99579b03184d15bb56669aa4a4dd1
3
- size 24832
2
+ oid sha256:5c6db3e054762487df1d46235e404950480972dc70353cd899987c112699f1e0
3
+ size 22332
@@ -1,6 +1,5 @@
1
1
  import { extractPersonOwnedBy, extractSmartLinkAri, extractSmartLinkAuthorGroup, extractSmartLinkCreatedBy, extractSmartLinkCreatedOn, extractSmartLinkModifiedBy, extractSmartLinkModifiedOn, extractSmartLinkUrl, extractType } from '@atlaskit/link-extractors';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
4
3
  import { extractSmartLinkSummary } from '../common/primitives/extractSummary';
5
4
  import { extractFlexibleCardActions } from './actions';
6
5
  import { extractPersonsUpdatedBy } from './collaboratorGroup';
@@ -99,9 +98,7 @@ const extractFlexibleUiContext = ({
99
98
  resourceType: extractMetaResourceType(meta),
100
99
  tenantId: extractMetaTenantId(meta)
101
100
  },
102
- ...(isNewBlockcardUnauthorizedRefreshExperimentEnabled() && {
103
- hostName: extractHostName(response)
104
- })
101
+ hostName: extractHostName(response)
105
102
  };
106
103
  };
107
104
  export default extractFlexibleUiContext;
@@ -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.3.6"
5
+ packageVersion: "44.3.8"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1,4 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
2
  ._zulpidpf{gap:0}
4
3
  ._zulputpp{gap:var(--ds-space-150,9pt)}
5
4
  ._12vemgnk{background-repeat:no-repeat}
@@ -12,7 +12,6 @@ import { ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '
12
12
  import { messages } from '../../../messages';
13
13
  import { useFlexibleCardContext } from '../../../state/flexible-ui-context';
14
14
  import { hasAuthScopeOverrides } from '../../../state/helpers';
15
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../utils/experiments';
16
15
  import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
17
16
  import FlexibleCard from '../../FlexibleCard';
18
17
  import ActionGroup from '../../FlexibleCard/components/blocks/action-group';
@@ -22,11 +21,9 @@ import { renderElementItems } from '../../FlexibleCard/components/blocks/utils';
22
21
  import { LinkIcon, Title } from '../../FlexibleCard/components/elements';
23
22
  import { AuthorizeAction } from '../actions/AuthorizeAction';
24
23
  import unauthIllustrationGeneral from './assets/general@2x.png';
25
- import UnresolvedView from './unresolved-view';
26
24
  import { FlexibleCardUiOptions, titleBlockOptions } from './utils';
27
25
  import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
28
26
  const contentStyles = null;
29
- const newContentStyles = null;
30
27
  const contentAdditionalStyles = null;
31
28
  const newTitleBlockStyles = null;
32
29
  const intermediumGapStyles = null;
@@ -78,14 +75,18 @@ const getBetterTitle = url => {
78
75
  } = new URL(url);
79
76
  if (pathname.length > 1) {
80
77
  return pathname.substring(1);
81
- } else {
78
+ }
79
+ if (search) {
82
80
  return search;
83
81
  }
82
+ // Fall back to the full URL when there is no useful path/search to display,
83
+ // so the title (and the underlying link) always has accessible text.
84
+ return url;
84
85
  } catch {
85
86
  return url;
86
87
  }
87
88
  };
88
- const NewUnauthorisedBlock = ({
89
+ const UnauthorisedBlock = ({
89
90
  actions,
90
91
  children,
91
92
  url,
@@ -192,29 +193,22 @@ const UnauthorisedView = ({
192
193
  }
193
194
  })), [isProductIntegrationSupported, onAuthorize, providerName, testId]);
194
195
  const actions = useMemo(() => onAuthorize ? [AuthorizeAction(handleAuthorize, providerName)] : [], [handleAuthorize, onAuthorize, providerName]);
195
- if (isNewBlockcardUnauthorizedRefreshExperimentEnabled(true)) {
196
- return /*#__PURE__*/React.createElement(FlexibleCard, _extends({
197
- appearance: "block",
198
- onAuthorize: onAuthorize,
199
- origin: "smartLinkCard",
200
- testId: testId,
201
- ui: FlexibleCardUiOptions
202
- }, props), /*#__PURE__*/React.createElement(NewUnauthorisedBlock, _extends({}, props, {
203
- actions: actions,
204
- testId: testId
205
- }), /*#__PURE__*/React.createElement("div", {
206
- "data-testid": `${testId}-content`,
207
- className: ax(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
208
- }, content)));
209
- } else {
210
- return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
211
- actions: actions,
212
- testId: testId
213
- }), /*#__PURE__*/React.createElement("div", {
214
- "data-testid": `${testId}-content`,
215
- className: ax(["_11c8wadc _syazi7uo _19pku2gc"])
216
- }, content));
217
- }
196
+ return /*#__PURE__*/React.createElement(FlexibleCard, _extends({
197
+ appearance: "block",
198
+ onAuthorize: onAuthorize,
199
+ origin: "smartLinkCard",
200
+ testId: testId,
201
+ ui: FlexibleCardUiOptions
202
+ }, props), /*#__PURE__*/React.createElement(UnauthorisedBlock, {
203
+ actions: actions,
204
+ cardState: props.cardState,
205
+ CompetitorPrompt: props.CompetitorPrompt,
206
+ testId: testId,
207
+ url: props.url
208
+ }, /*#__PURE__*/React.createElement("div", {
209
+ "data-testid": `${testId}-content`,
210
+ className: ax(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
211
+ }, content)));
218
212
  };
219
213
  const _default_1 = withFlexibleUIBlockCardStyle(UnauthorisedView);
220
214
  export default _default_1;
@@ -14,7 +14,6 @@ import { Box } from '@atlaskit/primitives/compiled';
14
14
  import Tile from '@atlaskit/tile';
15
15
  import { SmartLinkPosition, SmartLinkSize } from '../../../../../../constants';
16
16
  import { isProfileType } from '../../../../../../utils';
17
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
18
17
  import AtlaskitIcon from '../../../common/atlaskit-icon';
19
18
  import ImageIcon from '../../../common/image-icon';
20
19
  import { getIconWidth } from '../../../utils';
@@ -132,7 +131,7 @@ const IconElement = ({
132
131
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
133
132
  ,
134
133
  className: ax([styles.container, positionStyleMap[position], render && customRenderStyleMap[size], className])
135
- }, isTiledIcon && (fg('platform_sl_3p_preauth_better_hovercard_killswitch') || isNewBlockcardUnauthorizedRefreshExperimentEnabled()) ? /*#__PURE__*/React.createElement(Tile, {
134
+ }, isTiledIcon ? /*#__PURE__*/React.createElement(Tile, {
136
135
  size: size,
137
136
  hasBorder: true,
138
137
  backgroundColor: "white",
@@ -9,7 +9,6 @@ import React, { useMemo } from 'react';
9
9
  import Tooltip from '@atlaskit/tooltip';
10
10
  import { SmartLinkSize, SmartLinkTheme } from '../../../../../../constants';
11
11
  import { useMouseDownEvent } from '../../../../../../state/analytics/useLinkClicked';
12
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
13
12
  import { hasWhiteSpace } from '../../../utils';
14
13
  const DEFAULT_MAX_LINES = 2;
15
14
  const MAXIMUM_MAX_LINES = 2;
@@ -103,7 +102,7 @@ const BaseLinkElement = ({
103
102
  }), text);
104
103
  return /*#__PURE__*/React.createElement("span", {
105
104
  className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug"])
106
- }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) && isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? url : text, testId));
105
+ }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) ? url : text, testId));
107
106
  };
108
107
  export default BaseLinkElement;
109
108
  export const toLinkProps = (text, url) => {
@@ -10,7 +10,6 @@ import { extractSmartLinkProviderIcon } from '../../extractors/flexible/icon/ext
10
10
  import { extractHostName } from '../../extractors/flexible/utils';
11
11
  import { messages } from '../../messages';
12
12
  import { handleOnClick } from '../../utils';
13
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
14
13
  import { getForbiddenJsonLd } from '../../utils/jsonld';
15
14
  export const getContextByStatus = params => {
16
15
  var _response$meta, _response$meta$reques;
@@ -47,9 +46,7 @@ export const getContextByStatus = params => {
47
46
  meta: {
48
47
  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
49
48
  },
50
- ...(isNewBlockcardUnauthorizedRefreshExperimentEnabled() && {
51
- hostName: extractHostName(response)
52
- })
49
+ hostName: extractHostName(response)
53
50
  };
54
51
  }
55
52
  };
@@ -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: "44.3.6",
15
+ packageVersion: "44.3.8",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -6,7 +6,6 @@ import { Anchor } from '@atlaskit/primitives/compiled';
6
6
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
7
7
  import { CONTENT_URL_3P_ACCOUNT_AUTH, CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../constants';
8
8
  import { messages } from '../../messages';
9
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
10
9
  /**
11
10
  * This component is used in unauthorized views of a smart link.
12
11
  * It represents the main text that provides a user with information on how to connect their account
@@ -23,12 +22,12 @@ const UnauthorisedViewContent = ({
23
22
  fireEvent('ui.button.clicked.learnMore', {});
24
23
  }, [fireEvent]);
25
24
  const learnMoreMessage = isProductIntegrationSupported ? fg('product-terminology-refresh') ? messages.learn_more_about_connecting_account_appify : messages.learn_more_about_connecting_account : messages.learn_more_about_smart_links;
26
- const unauthorizedAccountDescriptionMessage = isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? messages.learn_more_about_connecting_account_experiment_shorter : fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_appify : messages.connect_unauthorised_account_description;
25
+ const unauthorizedAccountDescriptionMessage = messages.learn_more_about_connecting_account_experiment_shorter;
27
26
  return /*#__PURE__*/React.createElement(React.Fragment, null, providerName ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, unauthorizedAccountDescriptionMessage, {
28
27
  values: {
29
28
  context: providerName
30
29
  }
31
- })) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider), isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? /*#__PURE__*/React.createElement("br", null) : ' ', /*#__PURE__*/React.createElement(Anchor, {
30
+ })) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Anchor, {
32
31
  href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
33
32
  target: "_blank",
34
33
  testId: `${testId}-learn-more`,
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b69cbe716ed7cefdf6c1c11451d83320e344bd9447053b2becdf708498f8c89a
3
+ size 95722
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbeee38e9b1bccbdfb3a356f23dbc03168cd336ed1d3706ff5f8969758f13fae
3
- size 14685
2
+ oid sha256:8ec25a1e57ff977d9e808bf1aca781b738215126781f36a3b0cf9974fd041f4e
3
+ size 17798
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:23c2bab3323dcb5c3e3a71b0dd5820cef0c76a520d5c4d992c5c1217ba4a3642
3
- size 11320
2
+ oid sha256:749ae995186262b627fdaf52854843785e51614355292789dd7dfcdc6cb19451
3
+ size 12486
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6e086bcb8c84558ecb8b1c584356c9c99df4f2427fa4b234e5a41f03a8b630d
3
- size 19896
2
+ oid sha256:f0bdf05636ffef07dbcd840489cd4d6d38c54572d1c7e80716c5568cec171944
3
+ size 21291
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9b275771311257aa24e29891070046560e117815ee7d35ac09f37b3cadc3c89
3
- size 31492
2
+ oid sha256:e908794028e92b29475138fb619fb8b8184fedf03432e11aeed2b072db10cf1d
3
+ size 27271
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34870f63b2e758ef38abcc00f96fa438054fa9494e31e17ef0d60c914e322bc6
3
- size 29551
2
+ oid sha256:88490a8067c24156fd0e5199a2e97fa305b4808ba6004a1c919662e63a298576
3
+ size 25344
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad3299e56b3dc47e417017b3869558b0d0cb51566bc5f7154ec6d20d9fce52b7
3
- size 26340
2
+ oid sha256:8fbfda98f519d69c29ee5a54edb40d3f2631b2ea76882aa7245d8e3b1cffe534
3
+ size 21830
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5e19011a0a4ec5bfcd6913735f62a96a7cb6f1e6464678ea3cc5f8cdac0657d
3
- size 28424
2
+ oid sha256:c4c95f2a1cdcfb52893bba97c9bc9768262b9ac09a7417bc85a01ca7672f57cc
3
+ size 29864
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf13e3f7e0611e19fd6a1bac110f2263351d3c2c637dea81ef090f5c3adb6a90
3
- size 28887
2
+ oid sha256:5da0018682256152afd654a1dc7a8625629e440b21d4ccf02644961a663891b3
3
+ size 30189
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4a410347ab9a62f38c2387c43e9dda88fc99579b03184d15bb56669aa4a4dd1
3
- size 24832
2
+ oid sha256:5c6db3e054762487df1d46235e404950480972dc70353cd899987c112699f1e0
3
+ size 22332
@@ -5,7 +5,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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; }
6
6
  import { extractPersonOwnedBy, extractSmartLinkAri, extractSmartLinkAuthorGroup, extractSmartLinkCreatedBy, extractSmartLinkCreatedOn, extractSmartLinkModifiedBy, extractSmartLinkModifiedOn, extractSmartLinkUrl, extractType } from '@atlaskit/link-extractors';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
9
8
  import { extractSmartLinkSummary } from '../common/primitives/extractSummary';
10
9
  import { extractFlexibleCardActions } from './actions';
11
10
  import { extractPersonsUpdatedBy } from './collaboratorGroup';
@@ -40,7 +39,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
40
39
  var data = response.data;
41
40
  var meta = response.meta;
42
41
  var url = extractSmartLinkUrl(response);
43
- return _objectSpread({
42
+ return {
44
43
  actions: extractFlexibleCardActions(_objectSpread(_objectSpread({
45
44
  actionOptions: actionOptions,
46
45
  aiSummaryConfig: aiSummaryConfig,
@@ -103,9 +102,8 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
103
102
  objectId: extractMetaObjectId(meta),
104
103
  resourceType: extractMetaResourceType(meta),
105
104
  tenantId: extractMetaTenantId(meta)
106
- }
107
- }, isNewBlockcardUnauthorizedRefreshExperimentEnabled() && {
105
+ },
108
106
  hostName: extractHostName(response)
109
- });
107
+ };
110
108
  };
111
109
  export default extractFlexibleUiContext;
@@ -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: "44.3.6"
7
+ packageVersion: "44.3.8"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,5 +1,4 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
2
  ._zulpidpf{gap:0}
4
3
  ._zulputpp{gap:var(--ds-space-150,9pt)}
5
4
  ._12vemgnk{background-repeat:no-repeat}
@@ -14,7 +14,6 @@ import { ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '
14
14
  import { messages } from '../../../messages';
15
15
  import { useFlexibleCardContext } from '../../../state/flexible-ui-context';
16
16
  import { hasAuthScopeOverrides } from '../../../state/helpers';
17
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../utils/experiments';
18
17
  import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
19
18
  import FlexibleCard from '../../FlexibleCard';
20
19
  import ActionGroup from '../../FlexibleCard/components/blocks/action-group';
@@ -24,11 +23,9 @@ import { renderElementItems } from '../../FlexibleCard/components/blocks/utils';
24
23
  import { LinkIcon, Title } from '../../FlexibleCard/components/elements';
25
24
  import { AuthorizeAction } from '../actions/AuthorizeAction';
26
25
  import unauthIllustrationGeneral from './assets/general@2x.png';
27
- import UnresolvedView from './unresolved-view';
28
26
  import { FlexibleCardUiOptions, titleBlockOptions } from './utils';
29
27
  import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
30
28
  var contentStyles = null;
31
- var newContentStyles = null;
32
29
  var contentAdditionalStyles = null;
33
30
  var newTitleBlockStyles = null;
34
31
  var intermediumGapStyles = null;
@@ -80,14 +77,18 @@ var getBetterTitle = function getBetterTitle(url) {
80
77
  search = _URL.search;
81
78
  if (pathname.length > 1) {
82
79
  return pathname.substring(1);
83
- } else {
80
+ }
81
+ if (search) {
84
82
  return search;
85
83
  }
84
+ // Fall back to the full URL when there is no useful path/search to display,
85
+ // so the title (and the underlying link) always has accessible text.
86
+ return url;
86
87
  } catch (_unused) {
87
88
  return url;
88
89
  }
89
90
  };
90
- var NewUnauthorisedBlock = function NewUnauthorisedBlock(_ref) {
91
+ var UnauthorisedBlock = function UnauthorisedBlock(_ref) {
91
92
  var _useFlexibleCardConte, _data$preview$url, _data$preview;
92
93
  var actions = _ref.actions,
93
94
  children = _ref.children,
@@ -191,29 +192,22 @@ var UnauthorisedView = function UnauthorisedView(_ref3) {
191
192
  var actions = useMemo(function () {
192
193
  return onAuthorize ? [AuthorizeAction(handleAuthorize, providerName)] : [];
193
194
  }, [handleAuthorize, onAuthorize, providerName]);
194
- if (isNewBlockcardUnauthorizedRefreshExperimentEnabled(true)) {
195
- return /*#__PURE__*/React.createElement(FlexibleCard, _extends({
196
- appearance: "block",
197
- onAuthorize: onAuthorize,
198
- origin: "smartLinkCard",
199
- testId: testId,
200
- ui: FlexibleCardUiOptions
201
- }, props), /*#__PURE__*/React.createElement(NewUnauthorisedBlock, _extends({}, props, {
202
- actions: actions,
203
- testId: testId
204
- }), /*#__PURE__*/React.createElement("div", {
205
- "data-testid": "".concat(testId, "-content"),
206
- className: ax(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
207
- }, content)));
208
- } else {
209
- return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
210
- actions: actions,
211
- testId: testId
212
- }), /*#__PURE__*/React.createElement("div", {
213
- "data-testid": "".concat(testId, "-content"),
214
- className: ax(["_11c8wadc _syazi7uo _19pku2gc"])
215
- }, content));
216
- }
195
+ return /*#__PURE__*/React.createElement(FlexibleCard, _extends({
196
+ appearance: "block",
197
+ onAuthorize: onAuthorize,
198
+ origin: "smartLinkCard",
199
+ testId: testId,
200
+ ui: FlexibleCardUiOptions
201
+ }, props), /*#__PURE__*/React.createElement(UnauthorisedBlock, {
202
+ actions: actions,
203
+ cardState: props.cardState,
204
+ CompetitorPrompt: props.CompetitorPrompt,
205
+ testId: testId,
206
+ url: props.url
207
+ }, /*#__PURE__*/React.createElement("div", {
208
+ "data-testid": "".concat(testId, "-content"),
209
+ className: ax(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
210
+ }, content)));
217
211
  };
218
212
  var _default_1 = withFlexibleUIBlockCardStyle(UnauthorisedView);
219
213
  export default _default_1;
@@ -18,7 +18,6 @@ import { Box } from '@atlaskit/primitives/compiled';
18
18
  import Tile from '@atlaskit/tile';
19
19
  import { SmartLinkPosition, SmartLinkSize } from '../../../../../../constants';
20
20
  import { isProfileType } from '../../../../../../utils';
21
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
22
21
  import AtlaskitIcon from '../../../common/atlaskit-icon';
23
22
  import ImageIcon from '../../../common/image-icon';
24
23
  import { getIconWidth } from '../../../utils';
@@ -152,7 +151,7 @@ var IconElement = function IconElement(_ref) {
152
151
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
153
152
  ,
154
153
  className: ax([styles.container, positionStyleMap[position], render && customRenderStyleMap[size], className])
155
- }, isTiledIcon && (fg('platform_sl_3p_preauth_better_hovercard_killswitch') || isNewBlockcardUnauthorizedRefreshExperimentEnabled()) ? /*#__PURE__*/React.createElement(Tile, {
154
+ }, isTiledIcon ? /*#__PURE__*/React.createElement(Tile, {
156
155
  size: size,
157
156
  hasBorder: true,
158
157
  backgroundColor: "white",
@@ -9,7 +9,6 @@ import React, { useMemo } from 'react';
9
9
  import Tooltip from '@atlaskit/tooltip';
10
10
  import { SmartLinkSize, SmartLinkTheme } from '../../../../../../constants';
11
11
  import { useMouseDownEvent } from '../../../../../../state/analytics/useLinkClicked';
12
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
13
12
  import { hasWhiteSpace } from '../../../utils';
14
13
  var DEFAULT_MAX_LINES = 2;
15
14
  var MAXIMUM_MAX_LINES = 2;
@@ -111,7 +110,7 @@ var BaseLinkElement = function BaseLinkElement(_ref) {
111
110
  }), text);
112
111
  return /*#__PURE__*/React.createElement("span", {
113
112
  className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug"])
114
- }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) && isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? url : text, testId));
113
+ }, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) ? url : text, testId));
115
114
  };
116
115
  export default BaseLinkElement;
117
116
  export var toLinkProps = function toLinkProps(text, url) {
@@ -1,6 +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
2
  import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
5
3
  import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { InternalActionName, SmartLinkStatus } from '../../constants';
@@ -13,7 +11,6 @@ import { extractSmartLinkProviderIcon } from '../../extractors/flexible/icon/ext
13
11
  import { extractHostName } from '../../extractors/flexible/utils';
14
12
  import { messages } from '../../messages';
15
13
  import { handleOnClick } from '../../utils';
16
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
17
14
  import { getForbiddenJsonLd } from '../../utils/jsonld';
18
15
  export var getContextByStatus = function getContextByStatus(params) {
19
16
  var _response$meta;
@@ -37,7 +34,7 @@ export var getContextByStatus = function getContextByStatus(params) {
37
34
  case SmartLinkStatus.Errored:
38
35
  case SmartLinkStatus.Fallback:
39
36
  default:
40
- return _objectSpread({
37
+ return {
41
38
  url: url,
42
39
  linkIcon: extractErrorIcon(response, status),
43
40
  linkTitle: extractLinkTitle(status, url, response, onClick),
@@ -46,10 +43,9 @@ export var getContextByStatus = function getContextByStatus(params) {
46
43
  actions: _defineProperty({}, InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)),
47
44
  meta: {
48
45
  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
49
- }
50
- }, isNewBlockcardUnauthorizedRefreshExperimentEnabled() && {
46
+ },
51
47
  hostName: extractHostName(response)
52
- });
48
+ };
53
49
  }
54
50
  };
55
51
  var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
@@ -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: "44.3.6",
18
+ packageVersion: "44.3.8",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
@@ -6,7 +6,6 @@ import { Anchor } from '@atlaskit/primitives/compiled';
6
6
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
7
7
  import { CONTENT_URL_3P_ACCOUNT_AUTH, CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../constants';
8
8
  import { messages } from '../../messages';
9
- import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
10
9
  /**
11
10
  * This component is used in unauthorized views of a smart link.
12
11
  * It represents the main text that provides a user with information on how to connect their account
@@ -22,12 +21,12 @@ var UnauthorisedViewContent = function UnauthorisedViewContent(_ref) {
22
21
  fireEvent('ui.button.clicked.learnMore', {});
23
22
  }, [fireEvent]);
24
23
  var learnMoreMessage = isProductIntegrationSupported ? fg('product-terminology-refresh') ? messages.learn_more_about_connecting_account_appify : messages.learn_more_about_connecting_account : messages.learn_more_about_smart_links;
25
- var unauthorizedAccountDescriptionMessage = isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? messages.learn_more_about_connecting_account_experiment_shorter : fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_appify : messages.connect_unauthorised_account_description;
24
+ var unauthorizedAccountDescriptionMessage = messages.learn_more_about_connecting_account_experiment_shorter;
26
25
  return /*#__PURE__*/React.createElement(React.Fragment, null, providerName ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, unauthorizedAccountDescriptionMessage, {
27
26
  values: {
28
27
  context: providerName
29
28
  }
30
- })) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider), isNewBlockcardUnauthorizedRefreshExperimentEnabled() ? /*#__PURE__*/React.createElement("br", null) : ' ', /*#__PURE__*/React.createElement(Anchor, {
29
+ })) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Anchor, {
31
30
  href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
32
31
  target: "_blank",
33
32
  testId: "".concat(testId, "-learn-more"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "44.3.7",
3
+ "version": "44.3.9",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/textfield": "^8.3.0",
85
85
  "@atlaskit/theme": "^23.1.0",
86
86
  "@atlaskit/tile": "^1.0.0",
87
- "@atlaskit/tmp-editor-statsig": "^66.1.0",
87
+ "@atlaskit/tmp-editor-statsig": "^68.0.0",
88
88
  "@atlaskit/tokens": "^13.0.0",
89
89
  "@atlaskit/tooltip": "^21.2.0",
90
90
  "@atlaskit/ufo": "^0.4.0",
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7539dc58765cc3a644800473955f56a8410e7750b326a8a043680cfe70263d8a
3
- size 95118
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isNewBlockcardUnauthorizedRefreshExperimentEnabled = void 0;
7
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
9
- var isNewBlockcardUnauthorizedRefreshExperimentEnabled = exports.isNewBlockcardUnauthorizedRefreshExperimentEnabled = function isNewBlockcardUnauthorizedRefreshExperimentEnabled() {
10
- var fireExperimentExposure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
11
- if (fireExperimentExposure) {
12
- return (0, _expValEquals.expValEquals)('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
13
- } else {
14
- return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
15
- }
16
- };
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7539dc58765cc3a644800473955f56a8410e7750b326a8a043680cfe70263d8a
3
- size 95118
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,9 +0,0 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
- export const isNewBlockcardUnauthorizedRefreshExperimentEnabled = (fireExperimentExposure = false) => {
4
- if (fireExperimentExposure) {
5
- return expValEquals('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
6
- } else {
7
- return expValEqualsNoExposure('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
8
- }
9
- };
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7539dc58765cc3a644800473955f56a8410e7750b326a8a043680cfe70263d8a
3
- size 95118
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73e28a19f9f29bd26dcc41c8e5df2986e6ef990f9dc9ab9ce45c8ea6110dda3e
3
- size 106984
@@ -1,10 +0,0 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
- export var isNewBlockcardUnauthorizedRefreshExperimentEnabled = function isNewBlockcardUnauthorizedRefreshExperimentEnabled() {
4
- var fireExperimentExposure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
5
- if (fireExperimentExposure) {
6
- return expValEquals('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
7
- } else {
8
- return expValEqualsNoExposure('platform_sl_3p_unauth_paste_as_block_card', 'cohort', 'card_by_default_and_new_design', 'control');
9
- }
10
- };
@@ -1 +0,0 @@
1
- export declare const isNewBlockcardUnauthorizedRefreshExperimentEnabled: (fireExperimentExposure?: boolean) => boolean;
@@ -1 +0,0 @@
1
- export declare const isNewBlockcardUnauthorizedRefreshExperimentEnabled: (fireExperimentExposure?: boolean) => boolean;