@atlaskit/editor-plugin-card 18.1.2 → 18.1.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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 18.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1e91a4b881a3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e91a4b881a3e) -
|
|
8
|
+
Fire the `confluence_editor_paste_3p_link_actions_menu` exposure only for single-link pastes
|
|
9
|
+
instead of during menu setup. Experiment checks now use `expValEqualsNoExposure`, and the exposure
|
|
10
|
+
is fired separately when a single link is pasted.
|
|
11
|
+
|
|
3
12
|
## 18.1.2
|
|
4
13
|
|
|
5
14
|
### 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
|
|
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,
|
|
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,
|
|
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 {
|
|
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 =
|
|
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 (!
|
|
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 {
|
|
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 =
|
|
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 (!
|
|
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.
|
|
3
|
+
"version": "18.1.3",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
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.
|
|
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.
|
|
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"
|