@atlaskit/editor-plugin-card 6.5.2 → 6.5.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
|
+
## 6.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#166381](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/166381)
|
|
8
|
+
[`e7b0081a1b221`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7b0081a1b221) -
|
|
9
|
+
EDM-12154 cleaning up hardcoded embed only on new line feature flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.5.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 6.5.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.resolveWithProvider = exports.handleProvider = void 0;
|
|
7
7
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var _actions = require("../actions");
|
|
10
9
|
var _doc = require("../doc");
|
|
11
10
|
var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
@@ -35,7 +34,7 @@ var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
|
35
34
|
// Used for all interactions with the EditorCardProvider.
|
|
36
35
|
// ============================================================================ //
|
|
37
36
|
var resolveWithProvider = exports.resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) {
|
|
38
|
-
var isEmbedFriendlyLocation =
|
|
37
|
+
var isEmbedFriendlyLocation = isFreshlyPastedOnNewLine(view);
|
|
39
38
|
|
|
40
39
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
41
40
|
var shouldForceAppearance =
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { canRenderDatasource, hasDocAsParent } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { setProvider } from '../actions';
|
|
4
3
|
import { handleFallbackWithAnalytics, replaceQueuedUrlWithCard } from '../doc';
|
|
5
4
|
const isFreshlyPastedOnNewLine = view => {
|
|
@@ -32,7 +31,7 @@ const isFreshlyPastedOnNewLine = view => {
|
|
|
32
31
|
// Used for all interactions with the EditorCardProvider.
|
|
33
32
|
// ============================================================================ //
|
|
34
33
|
export const resolveWithProvider = (view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) => {
|
|
35
|
-
const isEmbedFriendlyLocation =
|
|
34
|
+
const isEmbedFriendlyLocation = isFreshlyPastedOnNewLine(view);
|
|
36
35
|
|
|
37
36
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
38
37
|
const shouldForceAppearance =
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { canRenderDatasource, hasDocAsParent } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { setProvider } from '../actions';
|
|
4
3
|
import { handleFallbackWithAnalytics, replaceQueuedUrlWithCard } from '../doc';
|
|
5
4
|
var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
@@ -29,7 +28,7 @@ var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
|
29
28
|
// Used for all interactions with the EditorCardProvider.
|
|
30
29
|
// ============================================================================ //
|
|
31
30
|
export var resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) {
|
|
32
|
-
var isEmbedFriendlyLocation =
|
|
31
|
+
var isEmbedFriendlyLocation = isFreshlyPastedOnNewLine(view);
|
|
33
32
|
|
|
34
33
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
35
34
|
var shouldForceAppearance =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.4",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
38
|
"@atlaskit/button": "^23.2.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^106.
|
|
40
|
+
"@atlaskit/editor-common": "^106.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
58
58
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
59
59
|
"@atlaskit/linking-common": "^9.0.0",
|
|
60
|
-
"@atlaskit/linking-types": "^
|
|
60
|
+
"@atlaskit/linking-types": "^12.0.0",
|
|
61
61
|
"@atlaskit/menu": "^8.0.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.8.0",
|
|
64
|
-
"@atlaskit/smart-card": "^38.
|
|
64
|
+
"@atlaskit/smart-card": "^38.8.0",
|
|
65
65
|
"@atlaskit/theme": "^18.0.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^5.13.0",
|
|
67
67
|
"@atlaskit/tokens": "^5.0.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -117,9 +117,6 @@
|
|
|
117
117
|
"editor_inline_comments_paste_insert_nodes": {
|
|
118
118
|
"type": "boolean"
|
|
119
119
|
},
|
|
120
|
-
"hardcoded-embeds-only-on-new-line": {
|
|
121
|
-
"type": "boolean"
|
|
122
|
-
},
|
|
123
120
|
"linking_platform_smart_links_in_live_pages": {
|
|
124
121
|
"type": "boolean"
|
|
125
122
|
},
|