@atlaskit/editor-plugin-card 16.4.0 → 16.4.2
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 16.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3a31723096050`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a31723096050) -
|
|
14
|
+
Swap feature gate from `platform-native-embeds-short-link-expansion` to
|
|
15
|
+
`platform_native_embeds_rollout_non_maui_experience` for Confluence short-link URL expansion in
|
|
16
|
+
native embeds. This consolidates the short-link expansion behaviour under the existing non-MaUI
|
|
17
|
+
experience rollout gate.
|
|
18
|
+
|
|
3
19
|
## 16.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -80,7 +80,7 @@ var replaceQueuedUrlWithCard = exports.replaceQueuedUrlWithCard = function repla
|
|
|
80
80
|
|
|
81
81
|
// If an embed card transformer is provided and the resolved card is an embedCard,
|
|
82
82
|
// attempt to transform it into an alternative node representation first.
|
|
83
|
-
if (cardData.type === 'embedCard' && embedCardNodeTransformer && (0, _platformFeatureFlags.fg)('
|
|
83
|
+
if (cardData.type === 'embedCard' && embedCardNodeTransformer && (0, _platformFeatureFlags.fg)('platform_native_embeds_rollout_non_maui_experience')) {
|
|
84
84
|
var transformResult = embedCardNodeTransformer(schema, cardData.attrs);
|
|
85
85
|
// The transformer may return a Promise for async transformations (e.g. short-link expansion).
|
|
86
86
|
// When async, we snapshot the current requests and positions now (before any dispatch),
|
|
@@ -70,7 +70,7 @@ export const replaceQueuedUrlWithCard = (url, cardData, analyticsAction, editorA
|
|
|
70
70
|
|
|
71
71
|
// If an embed card transformer is provided and the resolved card is an embedCard,
|
|
72
72
|
// attempt to transform it into an alternative node representation first.
|
|
73
|
-
if (cardData.type === 'embedCard' && embedCardNodeTransformer && fg('
|
|
73
|
+
if (cardData.type === 'embedCard' && embedCardNodeTransformer && fg('platform_native_embeds_rollout_non_maui_experience')) {
|
|
74
74
|
const transformResult = embedCardNodeTransformer(schema, cardData.attrs);
|
|
75
75
|
// The transformer may return a Promise for async transformations (e.g. short-link expansion).
|
|
76
76
|
// When async, we snapshot the current requests and positions now (before any dispatch),
|
|
@@ -74,7 +74,7 @@ export var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, car
|
|
|
74
74
|
|
|
75
75
|
// If an embed card transformer is provided and the resolved card is an embedCard,
|
|
76
76
|
// attempt to transform it into an alternative node representation first.
|
|
77
|
-
if (cardData.type === 'embedCard' && embedCardNodeTransformer && fg('
|
|
77
|
+
if (cardData.type === 'embedCard' && embedCardNodeTransformer && fg('platform_native_embeds_rollout_non_maui_experience')) {
|
|
78
78
|
var transformResult = embedCardNodeTransformer(schema, cardData.attrs);
|
|
79
79
|
// The transformer may return a Promise for async transformations (e.g. short-link expansion).
|
|
80
80
|
// When async, we snapshot the current requests and positions now (before any dispatch),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.2",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/primitives": "^19.0.0",
|
|
63
63
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
64
64
|
"@atlaskit/smart-card": "^44.3.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
66
66
|
"@atlaskit/tokens": "^13.0.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"platform-feature-flags": {
|
|
114
|
-
"
|
|
114
|
+
"platform_native_embeds_rollout_non_maui_experience": {
|
|
115
115
|
"type": "boolean"
|
|
116
116
|
},
|
|
117
117
|
"cc_drag_and_drop_smart_link_from_content_to_tree": {
|