@atlaskit/editor-plugin-card 18.1.2 → 18.1.4

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,20 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 18.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`1e91a4b881a3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e91a4b881a3e) -
14
+ Fire the `confluence_editor_paste_3p_link_actions_menu` exposure only for single-link pastes
15
+ instead of during menu setup. Experiment checks now use `expValEqualsNoExposure`, and the exposure
16
+ is fired separately when a single link is pasted.
17
+
3
18
  ## 18.1.2
4
19
 
5
20
  ### Patch Changes
@@ -28,7 +28,7 @@ var _smartLinkEmbed = _interopRequireDefault(require("@atlaskit/icon/core/smart-
28
28
  var _smartLinkInline = _interopRequireDefault(require("@atlaskit/icon/core/smart-link-inline"));
29
29
  var _context2 = require("@atlaskit/link-provider/context");
30
30
  var _compiled = require("@atlaskit/primitives/compiled");
31
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
31
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
32
32
  var _doc = require("../pm-plugins/doc");
33
33
  var _currentPastedSmartLink = require("./currentPastedSmartLink");
34
34
  var _pasteDisplayAsUtils = require("./pasteDisplayAsUtils");
@@ -351,7 +351,7 @@ var getPasteDisplayAsMenuComponents = exports.getPasteDisplayAsMenuComponents =
351
351
  }
352
352
  return _context.abrupt("return", false);
353
353
  case 1:
354
- isEnabled = (0, _expValEquals.expValEquals)('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
354
+ isEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
355
355
  smartCardClient = smartCardClientRef === null || smartCardClientRef === void 0 ? void 0 : smartCardClientRef.current;
356
356
  if (!(!isEnabled || !smartCardClient)) {
357
357
  _context.next = 2;
@@ -390,7 +390,7 @@ var getPasteDisplayAsMenuComponents = exports.getPasteDisplayAsMenuComponents =
390
390
  isAsyncHidden: smartlinkAsyncHidden,
391
391
  isHidden: function isHidden() {
392
392
  var _apiWithPasteOptionsT, _apiWithPasteOptionsT2;
393
- if (!(0, _expValEquals.expValEquals)('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
393
+ if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
394
394
  return true;
395
395
  }
396
396
  var apiWithPasteOptionsToolbar = api;
@@ -18,7 +18,7 @@ import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
18
18
  import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
19
19
  import { useSmartCardContext } from '@atlaskit/link-provider/context';
20
20
  import { Box, Flex, Pressable } from '@atlaskit/primitives/compiled';
21
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
22
22
  import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
23
23
  import { getSingleSmartLinkUrlFromSlice } from './currentPastedSmartLink';
24
24
  import { getCardAtPasteRange } from './pasteDisplayAsUtils';
@@ -345,7 +345,7 @@ export const getPasteDisplayAsMenuComponents = ({
345
345
  if (!pastedUrl) {
346
346
  return false;
347
347
  }
348
- const isEnabled = expValEquals('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
348
+ const isEnabled = expValEqualsNoExposure('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
349
349
  const smartCardClient = smartCardClientRef === null || smartCardClientRef === void 0 ? void 0 : smartCardClientRef.current;
350
350
  if (!isEnabled || !smartCardClient) {
351
351
  return true;
@@ -370,7 +370,7 @@ export const getPasteDisplayAsMenuComponents = ({
370
370
  isAsyncHidden: smartlinkAsyncHidden,
371
371
  isHidden: () => {
372
372
  var _apiWithPasteOptionsT, _apiWithPasteOptionsT2;
373
- if (!expValEquals('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
373
+ if (!expValEqualsNoExposure('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
374
374
  return true;
375
375
  }
376
376
  const apiWithPasteOptionsToolbar = api;
@@ -20,7 +20,7 @@ import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
20
20
  import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
21
21
  import { useSmartCardContext } from '@atlaskit/link-provider/context';
22
22
  import { Box, Flex, Pressable } from '@atlaskit/primitives/compiled';
23
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
24
24
  import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
25
25
  import { getSingleSmartLinkUrlFromSlice } from './currentPastedSmartLink';
26
26
  import { getCardAtPasteRange } from './pasteDisplayAsUtils';
@@ -342,7 +342,7 @@ export var getPasteDisplayAsMenuComponents = function getPasteDisplayAsMenuCompo
342
342
  }
343
343
  return _context.abrupt("return", false);
344
344
  case 1:
345
- isEnabled = expValEquals('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
345
+ isEnabled = expValEqualsNoExposure('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true);
346
346
  smartCardClient = smartCardClientRef === null || smartCardClientRef === void 0 ? void 0 : smartCardClientRef.current;
347
347
  if (!(!isEnabled || !smartCardClient)) {
348
348
  _context.next = 2;
@@ -381,7 +381,7 @@ export var getPasteDisplayAsMenuComponents = function getPasteDisplayAsMenuCompo
381
381
  isAsyncHidden: smartlinkAsyncHidden,
382
382
  isHidden: function isHidden() {
383
383
  var _apiWithPasteOptionsT, _apiWithPasteOptionsT2;
384
- if (!expValEquals('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
384
+ if (!expValEqualsNoExposure('confluence_editor_paste_3p_link_actions_menu', 'isEnabled', true)) {
385
385
  return true;
386
386
  }
387
387
  var apiWithPasteOptionsToolbar = api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "18.1.2",
3
+ "version": "18.1.4",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/editor-smart-link-draggable": "^1.1.0",
45
45
  "@atlaskit/editor-toolbar": "^2.1.0",
46
46
  "@atlaskit/frontend-utilities": "^4.1.0",
47
- "@atlaskit/icon": "^36.2.0",
47
+ "@atlaskit/icon": "^37.0.0",
48
48
  "@atlaskit/json-ld-types": "^2.0.0",
49
49
  "@atlaskit/link": "^4.1.0",
50
50
  "@atlaskit/link-analytics": "^12.1.0",
@@ -53,13 +53,13 @@
53
53
  "@atlaskit/link-extractors": "^3.2.0",
54
54
  "@atlaskit/linking-common": "^11.0.0",
55
55
  "@atlaskit/linking-types": "^15.0.0",
56
- "@atlaskit/menu": "^9.1.0",
56
+ "@atlaskit/menu": "^9.2.0",
57
57
  "@atlaskit/platform-feature-flags": "^2.0.0",
58
58
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
59
59
  "@atlaskit/primitives": "^20.5.0",
60
60
  "@atlaskit/prosemirror-history": "^1.0.0",
61
61
  "@atlaskit/smart-card": "^45.8.0",
62
- "@atlaskit/tmp-editor-statsig": "^124.0.0",
62
+ "@atlaskit/tmp-editor-statsig": "^124.1.0",
63
63
  "@atlaskit/tokens": "^15.5.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
@@ -69,7 +69,7 @@
69
69
  "uuid": "^3.1.0"
70
70
  },
71
71
  "peerDependencies": {
72
- "@atlaskit/editor-common": "^116.24.0",
72
+ "@atlaskit/editor-common": "^116.25.0",
73
73
  "@atlaskit/link-provider": "^5.2.0",
74
74
  "react": "^18.2.0",
75
75
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"