@atlaskit/editor-plugin-card 23.0.1 → 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,19 @@
|
|
|
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
|
+
|
|
3
17
|
## 23.0.1
|
|
4
18
|
|
|
5
19
|
### 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)
|
|
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
|
}
|
|
@@ -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)
|
|
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
|
}
|
|
@@ -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)
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "23.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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
65
65
|
"@atlaskit/smart-card": "^45.21.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
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",
|
|
@@ -79,6 +79,10 @@
|
|
|
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
|
},
|