@atlaskit/smart-card 46.13.5 → 46.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4ae03b7faac86`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4ae03b7faac86) -
8
+ Make the shipped Google Smart Link post-auth Rovo Chat treatment permanent behind its feature
9
+ gate.
10
+ - Updated dependencies
11
+
3
12
  ## 46.13.5
4
13
 
5
14
  ### Patch Changes
@@ -15,7 +15,6 @@ var _actions = require("@atlaskit/linking-common/actions");
15
15
  var _auth = require("@atlaskit/outbound-auth-flow-client/auth");
16
16
  var _fg = require("@atlaskit/platform-feature-flags/fg");
17
17
  var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
18
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
20
19
  var _constants = require("../../constants");
21
20
  var _rovo = require("../../utils/rovo");
@@ -283,12 +282,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
283
282
  // authed 3P link as context, for supported providers (e.g. Google Drive).
284
283
  // Provider eligibility is derived from the pre-auth SmartLink state.
285
284
  var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && (0, _fg.fg)('platform_sl_3p_post_auth_chat_open_fg') && (0, _rovo.getIsRovoChatEnabled)(rovoOptionsRef.current);
286
-
287
- // Experiment check: fires exposure for both control and treatment.
288
- // Only reached after eligibility preconditions + kill switch pass, so
289
- // exposure is counted for the triggered eligible pool.
290
- var isPostAuthChatTreatment = isEligibleForPostAuthChat && (0, _expValEquals.expValEquals)('platform_sl_3p_post_auth_chat_open_exp', 'isEnabled', true);
291
- if (status === 'unauthorized' && !isPostAuthChatTreatment) {
285
+ if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
292
286
  var provider = (0, _extractSmartLinkProvider.extractSmartLinkProvider)(details);
293
287
  flags.showConnectFlag({
294
288
  id: "smart-link-connect-success-".concat(extensionKey),
@@ -296,7 +290,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
296
290
  });
297
291
  }
298
292
  reload();
299
- if (isPostAuthChatTreatment) {
293
+ if (isEligibleForPostAuthChat) {
300
294
  sendPostAuthChatOpenMessage(url, (0, _extractSmartLinkTitle.extractSmartLinkTitle)(details));
301
295
  }
302
296
  }, function (err) {
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
25
25
  var context = exports.context = {
26
26
  componentName: 'smart-cards',
27
27
  packageName: "@atlaskit/smart-card" || '',
28
- packageVersion: "46.13.4" || ''
28
+ packageVersion: "46.13.5" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "46.13.4",
22
+ packageVersion: "46.13.5",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -6,7 +6,6 @@ import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@at
6
6
  import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
7
7
  import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
11
10
  import { SmartLinkStatus } from '../../constants';
12
11
  import { getIsRovoChatEnabled } from '../../utils/rovo';
@@ -247,12 +246,7 @@ export const useSmartCardActions = (id, url) => {
247
246
  // authed 3P link as context, for supported providers (e.g. Google Drive).
248
247
  // Provider eligibility is derived from the pre-auth SmartLink state.
249
248
  const isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && fg('platform_sl_3p_post_auth_chat_open_fg') && getIsRovoChatEnabled(rovoOptionsRef.current);
250
-
251
- // Experiment check: fires exposure for both control and treatment.
252
- // Only reached after eligibility preconditions + kill switch pass, so
253
- // exposure is counted for the triggered eligible pool.
254
- const isPostAuthChatTreatment = isEligibleForPostAuthChat && expValEquals('platform_sl_3p_post_auth_chat_open_exp', 'isEnabled', true);
255
- if (status === 'unauthorized' && !isPostAuthChatTreatment) {
249
+ if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
256
250
  const provider = extractSmartLinkProvider(details);
257
251
  flags.showConnectFlag({
258
252
  id: `smart-link-connect-success-${extensionKey}`,
@@ -260,7 +254,7 @@ export const useSmartCardActions = (id, url) => {
260
254
  });
261
255
  }
262
256
  reload();
263
- if (isPostAuthChatTreatment) {
257
+ if (isEligibleForPostAuthChat) {
264
258
  sendPostAuthChatOpenMessage(url, extractSmartLinkTitle(details));
265
259
  }
266
260
  }, err => {
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "46.13.4" || ''
7
+ packageVersion: "46.13.5" || ''
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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: "46.13.4",
12
+ packageVersion: "46.13.5",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -8,7 +8,6 @@ import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@at
8
8
  import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
13
12
  import { SmartLinkStatus } from '../../constants';
14
13
  import { getIsRovoChatEnabled } from '../../utils/rovo';
@@ -276,12 +275,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url) {
276
275
  // authed 3P link as context, for supported providers (e.g. Google Drive).
277
276
  // Provider eligibility is derived from the pre-auth SmartLink state.
278
277
  var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && fg('platform_sl_3p_post_auth_chat_open_fg') && getIsRovoChatEnabled(rovoOptionsRef.current);
279
-
280
- // Experiment check: fires exposure for both control and treatment.
281
- // Only reached after eligibility preconditions + kill switch pass, so
282
- // exposure is counted for the triggered eligible pool.
283
- var isPostAuthChatTreatment = isEligibleForPostAuthChat && expValEquals('platform_sl_3p_post_auth_chat_open_exp', 'isEnabled', true);
284
- if (status === 'unauthorized' && !isPostAuthChatTreatment) {
278
+ if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
285
279
  var provider = extractSmartLinkProvider(details);
286
280
  flags.showConnectFlag({
287
281
  id: "smart-link-connect-success-".concat(extensionKey),
@@ -289,7 +283,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url) {
289
283
  });
290
284
  }
291
285
  reload();
292
- if (isPostAuthChatTreatment) {
286
+ if (isEligibleForPostAuthChat) {
293
287
  sendPostAuthChatOpenMessage(url, extractSmartLinkTitle(details));
294
288
  }
295
289
  }, function (err) {
@@ -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: "46.13.4" || ''
7
+ packageVersion: "46.13.5" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "46.13.4",
15
+ packageVersion: "46.13.5",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "46.13.5",
3
+ "version": "46.13.6",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -94,7 +94,7 @@
94
94
  "@atlaskit/textfield": "^10.3.0",
95
95
  "@atlaskit/theme": "^28.2.0",
96
96
  "@atlaskit/tile": "^5.0.0",
97
- "@atlaskit/tmp-editor-statsig": "^255.0.0",
97
+ "@atlaskit/tmp-editor-statsig": "^256.0.0",
98
98
  "@atlaskit/tokens": "^20.9.0",
99
99
  "@atlaskit/tooltip": "^24.4.0",
100
100
  "@atlaskit/top-layer": "^7.1.0",