@atlaskit/editor-plugin-card 23.0.0 → 23.0.3

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,43 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 23.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0a67d0abf59c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a67d0abf59c1) -
8
+ Disable Slides entrypoints when cc-mui-slides-opted-out is enabled.
9
+ - Updated dependencies
10
+
11
+ ## 23.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 23.0.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [`b94131fcee276`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b94131fcee276) -
22
+ Removes the `platform_smartlink_xpc_url_wrapping` feature gate and makes cross-product URL
23
+ wrapping for Smart Links permanent, on for all consumers.
24
+
25
+ What this behavior does: when a resolved Smart Link points to a first-party Atlassian destination
26
+ (e.g. a Jira issue, Confluence page), the URL used for navigation — via click, "Open link", or any
27
+ other destination-URL usage — now has a short-lived interaction-session query parameter (`xpis`)
28
+ appended automatically. This lets the destination product attribute the visit back to the product
29
+ and surface the link was opened from, powering cross-product usage analytics. It has no effect on:
30
+ - third-party (non-Atlassian) links,
31
+ - links that are not yet resolved,
32
+ - URLs that already contain the parameter.
33
+
34
+ No API shape changes: this only affects the resolved value returned by existing Smart Link
35
+ URL/navigation behavior (e.g. `Card`, `useSmartLinkDestinationUrl`, inline/block/embed card
36
+ click-through, and datasource table link cells). No new props, exports, or configuration are
37
+ introduced, and no action is required from consumers.
38
+
39
+ - Updated dependencies
40
+
3
41
  ## 23.0.0
4
42
 
5
43
  ### Patch Changes
@@ -25,6 +25,7 @@ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-
25
25
  var _utils = require("@atlaskit/editor-common/utils");
26
26
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
27
27
  var _editorSmartLinkDraggable = require("@atlaskit/editor-smart-link-draggable");
28
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
28
29
  var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
29
30
  var _smartCard = require("@atlaskit/smart-card");
30
31
  var _ssr = require("@atlaskit/smart-card/ssr");
@@ -52,7 +53,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
52
53
  * @internal Exported for testing only.
53
54
  */
54
55
  var getAspectRatioForUrl = exports.getAspectRatioForUrl = function getAspectRatioForUrl(url) {
55
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-mui-slides-experiment', 'isEnabled', true) && url && (0, _urlCheckers.isConfluenceSlideUrl)(url)) {
56
+ if (url && (0, _urlCheckers.isConfluenceSlideUrl)(url) && !(0, _fg.fg)('cc-mui-slides-opted-out') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-mui-slides-experiment', 'isEnabled', true)) {
56
57
  // Slides have a 16:9 canvas
57
58
  return 16 / 9;
58
59
  }
@@ -12,7 +12,6 @@ var _uuid = require("uuid");
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _ui = require("@atlaskit/editor-common/ui");
14
14
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
- var _fg = require("@atlaskit/platform-feature-flags/fg");
16
15
  var _smartCard = require("@atlaskit/smart-card");
17
16
  var _ssr = require("@atlaskit/smart-card/ssr");
18
17
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
@@ -108,7 +107,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
108
107
  var _ref3 = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {},
109
108
  editorAnalyticsApi = _ref3.actions;
110
109
  (0, _toolbar.visitCardLinkAnalytics)(editorAnalyticsApi, _analytics.INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
111
- window.open((0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? (_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url : url, '_blank');
110
+ window.open((_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url, '_blank');
112
111
  } else {
113
112
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
114
113
  propsOnClick === null || propsOnClick === void 0 || propsOnClick(event);
@@ -17,7 +17,6 @@ var _reactIntl = require("react-intl");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _whitespace = require("@atlaskit/editor-common/whitespace");
19
19
  var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
20
- var _fg = require("@atlaskit/platform-feature-flags/fg");
21
20
  var _useSmartLinkDestinationUrl = require("@atlaskit/smart-card/hook/use-smart-link-destination-url");
22
21
  var _utils = require("./utils");
23
22
  var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
@@ -244,7 +243,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
244
243
  width: availableWidth
245
244
  },
246
245
  "data-testid": testId,
247
- href: (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? destinationUrl : url,
246
+ href: destinationUrl,
248
247
  onClick: function onClick(e) {
249
248
  return e.preventDefault();
250
249
  },
@@ -14,7 +14,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
14
14
  /**
15
15
  * Toolbar button that opens a Smart Link URL in a new tab, with the XPC-wrapped destination URL.
16
16
  *
17
- * This component is only rendered when `fg('platform_smartlink_xpc_url_wrapping')` is ON.
18
17
  * It wraps `FloatingToolbarButton` and replaces `href` with the resolved destination URL
19
18
  * (cross-product analytics parameters appended), falling back to the raw `url` when the
20
19
  * link is unresolved or not a first-party Atlassian link.
@@ -28,7 +28,6 @@ var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
28
28
  var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
29
29
  var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
30
30
  var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
31
- var _fg = require("@atlaskit/platform-feature-flags/fg");
32
31
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
33
32
  var _doc = require("../pm-plugins/doc");
34
33
  var _pluginKey = require("../pm-plugins/plugin-key");
@@ -378,7 +377,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
378
377
  href: url,
379
378
  target: '_blank'
380
379
  };
381
- var openLinkToolbarItem = (0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? {
380
+ var openLinkToolbarItem = {
382
381
  type: 'custom',
383
382
  fallback: [openLinkToolbarItemFallback],
384
383
  render: function render(editorView) {
@@ -390,7 +389,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
390
389
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
391
390
  }) : null;
392
391
  }
393
- } : openLinkToolbarItemFallback;
392
+ };
394
393
  var toolbarItems = areAllNewToolbarFlagsDisabled ? [].concat(editItems, commentItems, openPreviewPanelItems, [openLinkToolbarItem, {
395
394
  type: 'separator'
396
395
  }], (0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
@@ -666,7 +665,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
666
665
  href: node.attrs.url,
667
666
  target: '_blank'
668
667
  };
669
- toolbarItems.push((0, _fg.fg)('platform_smartlink_xpc_url_wrapping') ? {
668
+ toolbarItems.push({
670
669
  type: 'custom',
671
670
  fallback: [openLinkToolbarItemFallback],
672
671
  render: function render(editorView) {
@@ -679,7 +678,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
679
678
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
680
679
  }) : null;
681
680
  }
682
- } : openLinkToolbarItemFallback);
681
+ });
683
682
  if (areAllNewToolbarFlagsDisabled) {
684
683
  toolbarItems.push({
685
684
  type: 'separator'
@@ -13,6 +13,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
13
13
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
14
14
  import { akEditorFullPageNarrowBreakout, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
15
15
  import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
16
17
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
17
18
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
18
19
  import { CardSSR } from '@atlaskit/smart-card/ssr';
@@ -36,7 +37,7 @@ import { Card } from './genericCard';
36
37
  * @internal Exported for testing only.
37
38
  */
38
39
  export const getAspectRatioForUrl = url => {
39
- if (expValEqualsNoExposure('cc-mui-slides-experiment', 'isEnabled', true) && url && isConfluenceSlideUrl(url)) {
40
+ if (url && isConfluenceSlideUrl(url) && !fg('cc-mui-slides-opted-out') && expValEqualsNoExposure('cc-mui-slides-experiment', 'isEnabled', true)) {
40
41
  // Slides have a 16:9 canvas
41
42
  return 16 / 9;
42
43
  }
@@ -5,7 +5,6 @@ import { v4 as uuid } from 'uuid';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { Card as SmartCard } from '@atlaskit/smart-card';
10
9
  import { CardSSR } from '@atlaskit/smart-card/ssr';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
@@ -106,7 +105,7 @@ export const InlineCard = /*#__PURE__*/memo(({
106
105
  actions: editorAnalyticsApi
107
106
  } = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {};
108
107
  visitCardLinkAnalytics(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
109
- window.open(fg('platform_smartlink_xpc_url_wrapping') ? (_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url : url, '_blank');
108
+ window.open((_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url, '_blank');
110
109
  } else {
111
110
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
112
111
  propsOnClick === null || propsOnClick === void 0 ? void 0 : propsOnClick(event);
@@ -14,7 +14,6 @@ import { useIntl } from 'react-intl';
14
14
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
15
15
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
16
16
  import CustomizeIcon from '@atlaskit/icon/core/customize';
17
- import { fg } from '@atlaskit/platform-feature-flags/fg';
18
17
  import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-link-destination-url';
19
18
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
20
19
  const DEBOUNCE_IN_MS = 5;
@@ -227,7 +226,7 @@ const InlineCardOverlay = ({
227
226
  width: availableWidth
228
227
  },
229
228
  "data-testid": testId,
230
- href: fg('platform_smartlink_xpc_url_wrapping') ? destinationUrl : url,
229
+ href: destinationUrl,
231
230
  onClick: e => e.preventDefault(),
232
231
  tabIndex: -1
233
232
  }, jsx("span", {
@@ -5,7 +5,6 @@ import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-
5
5
  /**
6
6
  * Toolbar button that opens a Smart Link URL in a new tab, with the XPC-wrapped destination URL.
7
7
  *
8
- * This component is only rendered when `fg('platform_smartlink_xpc_url_wrapping')` is ON.
9
8
  * It wraps `FloatingToolbarButton` and replaces `href` with the resolved destination URL
10
9
  * (cross-product analytics parameters appended), falling back to the raw `url` when the
11
10
  * link is unresolved or not a first-party Atlassian link.
@@ -18,7 +18,6 @@ import EditIcon from '@atlaskit/icon/core/edit';
18
18
  import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
19
19
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
20
20
  import CogIcon from '@atlaskit/icon/core/settings';
21
- import { fg } from '@atlaskit/platform-feature-flags/fg';
22
21
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
23
22
  import { changeSelectedCardToText } from '../pm-plugins/doc';
24
23
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -363,7 +362,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
363
362
  href: url,
364
363
  target: '_blank'
365
364
  };
366
- const openLinkToolbarItem = fg('platform_smartlink_xpc_url_wrapping') ? {
365
+ const openLinkToolbarItem = {
367
366
  type: 'custom',
368
367
  fallback: [openLinkToolbarItemFallback],
369
368
  render: editorView => editorView && url ? /*#__PURE__*/React.createElement(OpenLinkToolbarButton, {
@@ -373,7 +372,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
373
372
  onClick: fireOpenLinkToolbarAnalytics(editorAnalyticsApi, openLinkInputMethod, resolvedToolbarAttributes),
374
373
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
375
374
  }) : null
376
- } : openLinkToolbarItemFallback;
375
+ };
377
376
  const toolbarItems = areAllNewToolbarFlagsDisabled ? [...editItems, ...commentItems, ...openPreviewPanelItems, openLinkToolbarItem, {
378
377
  type: 'separator'
379
378
  }, ...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled), {
@@ -646,7 +645,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
646
645
  href: node.attrs.url,
647
646
  target: '_blank'
648
647
  };
649
- toolbarItems.push(fg('platform_smartlink_xpc_url_wrapping') ? {
648
+ toolbarItems.push({
650
649
  type: 'custom',
651
650
  fallback: [openLinkToolbarItemFallback],
652
651
  render: editorView => {
@@ -659,7 +658,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
659
658
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
660
659
  }) : null;
661
660
  }
662
- } : openLinkToolbarItemFallback);
661
+ });
663
662
  if (areAllNewToolbarFlagsDisabled) {
664
663
  toolbarItems.push({
665
664
  type: 'separator'
@@ -24,6 +24,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
24
24
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
25
25
  import { akEditorFullPageNarrowBreakout, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
26
26
  import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
27
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
27
28
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
28
29
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
29
30
  import { CardSSR } from '@atlaskit/smart-card/ssr';
@@ -47,7 +48,7 @@ import { Card } from './genericCard';
47
48
  * @internal Exported for testing only.
48
49
  */
49
50
  export var getAspectRatioForUrl = function getAspectRatioForUrl(url) {
50
- if (expValEqualsNoExposure('cc-mui-slides-experiment', 'isEnabled', true) && url && isConfluenceSlideUrl(url)) {
51
+ if (url && isConfluenceSlideUrl(url) && !fg('cc-mui-slides-opted-out') && expValEqualsNoExposure('cc-mui-slides-experiment', 'isEnabled', true)) {
51
52
  // Slides have a 16:9 canvas
52
53
  return 16 / 9;
53
54
  }
@@ -5,7 +5,6 @@ import { v4 as uuid } from 'uuid';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { Card as SmartCard } from '@atlaskit/smart-card';
10
9
  import { CardSSR } from '@atlaskit/smart-card/ssr';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
@@ -98,7 +97,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
98
97
  var _ref3 = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {},
99
98
  editorAnalyticsApi = _ref3.actions;
100
99
  visitCardLinkAnalytics(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
101
- window.open(fg('platform_smartlink_xpc_url_wrapping') ? (_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url : url, '_blank');
100
+ window.open((_data$destinationUrl = data === null || data === void 0 ? void 0 : data.destinationUrl) !== null && _data$destinationUrl !== void 0 ? _data$destinationUrl : url, '_blank');
102
101
  } else {
103
102
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
104
103
  propsOnClick === null || propsOnClick === void 0 || propsOnClick(event);
@@ -18,7 +18,6 @@ import { useIntl } from 'react-intl';
18
18
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
19
19
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
20
20
  import CustomizeIcon from '@atlaskit/icon/core/customize';
21
- import { fg } from '@atlaskit/platform-feature-flags/fg';
22
21
  import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-link-destination-url';
23
22
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
24
23
  var DEBOUNCE_IN_MS = 5;
@@ -236,7 +235,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
236
235
  width: availableWidth
237
236
  },
238
237
  "data-testid": testId,
239
- href: fg('platform_smartlink_xpc_url_wrapping') ? destinationUrl : url,
238
+ href: destinationUrl,
240
239
  onClick: function onClick(e) {
241
240
  return e.preventDefault();
242
241
  },
@@ -5,7 +5,6 @@ import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-
5
5
  /**
6
6
  * Toolbar button that opens a Smart Link URL in a new tab, with the XPC-wrapped destination URL.
7
7
  *
8
- * This component is only rendered when `fg('platform_smartlink_xpc_url_wrapping')` is ON.
9
8
  * It wraps `FloatingToolbarButton` and replaces `href` with the resolved destination URL
10
9
  * (cross-product analytics parameters appended), falling back to the raw `url` when the
11
10
  * link is unresolved or not a first-party Atlassian link.
@@ -22,7 +22,6 @@ import EditIcon from '@atlaskit/icon/core/edit';
22
22
  import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
23
23
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
24
24
  import CogIcon from '@atlaskit/icon/core/settings';
25
- import { fg } from '@atlaskit/platform-feature-flags/fg';
26
25
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
27
26
  import { changeSelectedCardToText } from '../pm-plugins/doc';
28
27
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -369,7 +368,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
369
368
  href: url,
370
369
  target: '_blank'
371
370
  };
372
- var openLinkToolbarItem = fg('platform_smartlink_xpc_url_wrapping') ? {
371
+ var openLinkToolbarItem = {
373
372
  type: 'custom',
374
373
  fallback: [openLinkToolbarItemFallback],
375
374
  render: function render(editorView) {
@@ -381,7 +380,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
381
380
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
382
381
  }) : null;
383
382
  }
384
- } : openLinkToolbarItemFallback;
383
+ };
385
384
  var toolbarItems = areAllNewToolbarFlagsDisabled ? [].concat(editItems, commentItems, openPreviewPanelItems, [openLinkToolbarItem, {
386
385
  type: 'separator'
387
386
  }], _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
@@ -657,7 +656,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
657
656
  href: node.attrs.url,
658
657
  target: '_blank'
659
658
  };
660
- toolbarItems.push(fg('platform_smartlink_xpc_url_wrapping') ? {
659
+ toolbarItems.push({
661
660
  type: 'custom',
662
661
  fallback: [openLinkToolbarItemFallback],
663
662
  render: function render(editorView) {
@@ -670,7 +669,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
670
669
  areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
671
670
  }) : null;
672
671
  }
673
- } : openLinkToolbarItemFallback);
672
+ });
674
673
  if (areAllNewToolbarFlagsDisabled) {
675
674
  toolbarItems.push({
676
675
  type: 'separator'
@@ -11,7 +11,6 @@ type OpenLinkToolbarButtonProps = {
11
11
  /**
12
12
  * Toolbar button that opens a Smart Link URL in a new tab, with the XPC-wrapped destination URL.
13
13
  *
14
- * This component is only rendered when `fg('platform_smartlink_xpc_url_wrapping')` is ON.
15
14
  * It wraps `FloatingToolbarButton` and replaces `href` with the resolved destination URL
16
15
  * (cross-product analytics parameters appended), falling back to the raw `url` when the
17
16
  * link is unresolved or not a first-party Atlassian link.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "23.0.0",
3
+ "version": "23.0.3",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/link": "^5.1.0",
53
53
  "@atlaskit/link-analytics": "^12.3.0",
54
54
  "@atlaskit/link-client-extension": "^7.3.0",
55
- "@atlaskit/link-datasource": "^6.11.0",
55
+ "@atlaskit/link-datasource": "^6.12.0",
56
56
  "@atlaskit/link-extractors": "^4.2.0",
57
57
  "@atlaskit/linking-common": "^12.1.0",
58
58
  "@atlaskit/linking-types": "^15.2.0",
@@ -62,8 +62,8 @@
62
62
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
63
63
  "@atlaskit/primitives": "^22.5.0",
64
64
  "@atlaskit/prosemirror-history": "^1.2.0",
65
- "@atlaskit/smart-card": "^45.20.0",
66
- "@atlaskit/tmp-editor-statsig": "^179.0.0",
65
+ "@atlaskit/smart-card": "^45.21.0",
66
+ "@atlaskit/tmp-editor-statsig": "^182.0.0",
67
67
  "@atlaskit/tokens": "^16.11.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -73,12 +73,16 @@
73
73
  "uuid": "^11.1.1"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^121.0.0",
76
+ "@atlaskit/editor-common": "^121.1.0",
77
77
  "@atlaskit/link-provider": "^5.5.0",
78
78
  "react": "^18.2.0 || ^19.2.0",
79
79
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
80
80
  },
81
81
  "platform-feature-flags": {
82
+ "cc-mui-slides-opted-out": {
83
+ "type": "boolean",
84
+ "referenceOnly": true
85
+ },
82
86
  "confluence_editor_paste_3p_link_actions_menu": {
83
87
  "type": "boolean"
84
88
  },
@@ -91,10 +95,6 @@
91
95
  "platform_editor_adf_with_localid": {
92
96
  "type": "boolean"
93
97
  },
94
- "platform_smartlink_xpc_url_wrapping": {
95
- "type": "boolean",
96
- "referenceOnly": true
97
- },
98
98
  "platform_lp_sllv_table_settings_menu": {
99
99
  "type": "boolean"
100
100
  },