@atlaskit/smart-card 46.19.7 → 46.19.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.19.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 46.19.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`759822ed19ecb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/759822ed19ecb) -
14
+ Remove the fully rolled out `platform_sl_3p_post_auth_chat_open_fg` gate and its package
15
+ registration, retaining automatic Rovo chat launch for eligible Smart Links.
16
+
3
17
  ## 46.19.7
4
18
 
5
19
  ### Patch Changes
@@ -14,7 +14,6 @@ var _extractSmartLinkTitle = require("@atlaskit/link-extractors/extract-smart-li
14
14
  var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
15
15
  var _actions = require("@atlaskit/linking-common/actions");
16
16
  var _auth = require("@atlaskit/outbound-auth-flow-client/auth");
17
- var _fg = require("@atlaskit/platform-feature-flags/fg");
18
17
  var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
19
18
  var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
20
19
  var _constants = require("../../constants");
@@ -282,7 +281,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
282
281
  // Post-auth Chat onboarding: auto-open Rovo Chat mini-modal with the
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
- var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && (0, _fg.fg)('platform_sl_3p_post_auth_chat_open_fg') && (0, _rovo.getIsRovoChatEnabled)(rovoOptionsRef.current);
284
+ var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && (0, _rovo.getIsRovoChatEnabled)(rovoOptionsRef.current);
286
285
  if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
287
286
  var provider = (0, _extractSmartLinkProvider.extractSmartLinkProvider)(details);
288
287
  flags.showConnectFlag({
@@ -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.19.6" || ''
28
+ packageVersion: "46.19.8" || ''
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.19.6",
22
+ packageVersion: "46.19.8",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -4,7 +4,6 @@ import { extractSmartLinkTitle } from '@atlaskit/link-extractors/extract-smart-l
4
4
  import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
5
5
  import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
6
6
  import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
9
8
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
10
9
  import { SmartLinkStatus } from '../../constants';
@@ -266,7 +265,7 @@ export const useSmartCardActions = (id, url) => {
266
265
  // Post-auth Chat onboarding: auto-open Rovo Chat mini-modal with the
267
266
  // authed 3P link as context, for supported providers (e.g. Google Drive).
268
267
  // Provider eligibility is derived from the pre-auth SmartLink state.
269
- const isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && fg('platform_sl_3p_post_auth_chat_open_fg') && getIsRovoChatEnabled(rovoOptionsRef.current);
268
+ const isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && getIsRovoChatEnabled(rovoOptionsRef.current);
270
269
  if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
271
270
  const provider = extractSmartLinkProvider(details);
272
271
  flags.showConnectFlag({
@@ -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.19.6" || ''
7
+ packageVersion: "46.19.8" || ''
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.19.6",
12
+ packageVersion: "46.19.8",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -9,7 +9,6 @@ import { extractSmartLinkTitle } from '@atlaskit/link-extractors/extract-smart-l
9
9
  import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
10
10
  import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
11
11
  import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
12
- import { fg } from '@atlaskit/platform-feature-flags/fg';
13
12
  import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
14
13
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
15
14
  import { SmartLinkStatus } from '../../constants';
@@ -275,7 +274,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url) {
275
274
  // Post-auth Chat onboarding: auto-open Rovo Chat mini-modal with the
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
- var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && fg('platform_sl_3p_post_auth_chat_open_fg') && getIsRovoChatEnabled(rovoOptionsRef.current);
277
+ var isEligibleForPostAuthChat = status === 'unauthorized' && isSupportedPostAuthChatExtensionKey && getIsRovoChatEnabled(rovoOptionsRef.current);
279
278
  if (status === 'unauthorized' && !isEligibleForPostAuthChat) {
280
279
  var provider = extractSmartLinkProvider(details);
281
280
  flags.showConnectFlag({
@@ -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.19.6" || ''
7
+ packageVersion: "46.19.8" || ''
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.19.6",
15
+ packageVersion: "46.19.8",
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.19.7",
3
+ "version": "46.19.9",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -95,7 +95,7 @@
95
95
  "@atlaskit/textfield": "^11.0.0",
96
96
  "@atlaskit/theme": "^28.2.0",
97
97
  "@atlaskit/tile": "^5.0.0",
98
- "@atlaskit/tmp-editor-statsig": "^267.0.0",
98
+ "@atlaskit/tmp-editor-statsig": "^268.0.0",
99
99
  "@atlaskit/tokens": "^20.14.0",
100
100
  "@atlaskit/tooltip": "^24.4.0",
101
101
  "@atlaskit/top-layer": "^8.1.0",