@atlaskit/editor-plugin-card 2.9.1 → 2.9.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 +19 -0
- package/dist/cjs/nodeviews/blockCard.js +45 -2
- package/dist/cjs/nodeviews/embedCard.js +29 -2
- package/dist/cjs/nodeviews/lazy-block-card.js +32 -0
- package/dist/cjs/nodeviews/lazy-embed-card.js +32 -0
- package/dist/cjs/plugin.js +4 -2
- package/dist/cjs/pm-plugins/main.js +29 -60
- package/dist/cjs/toDOM-fixes/blockCard.js +53 -0
- package/dist/cjs/toDOM-fixes/embedCard.js +118 -0
- package/dist/es2019/nodeviews/blockCard.js +46 -2
- package/dist/es2019/nodeviews/embedCard.js +29 -1
- package/dist/es2019/nodeviews/lazy-block-card.js +21 -0
- package/dist/es2019/nodeviews/lazy-embed-card.js +21 -0
- package/dist/es2019/plugin.js +5 -3
- package/dist/es2019/pm-plugins/main.js +23 -58
- package/dist/es2019/toDOM-fixes/blockCard.js +47 -0
- package/dist/es2019/toDOM-fixes/embedCard.js +111 -0
- package/dist/esm/nodeviews/blockCard.js +45 -2
- package/dist/esm/nodeviews/embedCard.js +28 -1
- package/dist/esm/nodeviews/lazy-block-card.js +20 -0
- package/dist/esm/nodeviews/lazy-embed-card.js +20 -0
- package/dist/esm/plugin.js +5 -3
- package/dist/esm/pm-plugins/main.js +23 -54
- package/dist/esm/toDOM-fixes/blockCard.js +46 -0
- package/dist/esm/toDOM-fixes/embedCard.js +112 -0
- package/dist/types/nodeviews/blockCard.d.ts +15 -2
- package/dist/types/nodeviews/embedCard.d.ts +14 -0
- package/dist/types/nodeviews/lazy-block-card.d.ts +2 -0
- package/dist/types/nodeviews/lazy-embed-card.d.ts +2 -0
- package/dist/types/toDOM-fixes/blockCard.d.ts +1 -0
- package/dist/types/toDOM-fixes/embedCard.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +15 -2
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +14 -0
- package/dist/types-ts4.5/nodeviews/lazy-block-card.d.ts +2 -0
- package/dist/types-ts4.5/nodeviews/lazy-embed-card.d.ts +2 -0
- package/dist/types-ts4.5/toDOM-fixes/blockCard.d.ts +1 -0
- package/dist/types-ts4.5/toDOM-fixes/embedCard.d.ts +1 -0
- package/package.json +13 -6
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
/**
|
|
5
|
+
* Some of these functions and styling are duplicated from their custom node view equivalents
|
|
6
|
+
*
|
|
7
|
+
* WHY?
|
|
8
|
+
* This will eventually move to `@atlaskit/adf-schema` and we cannot reference
|
|
9
|
+
* `@atlaskit/editor-common` from here or it will cause dependency issues.
|
|
10
|
+
*
|
|
11
|
+
* In the long term likely `toDOM` will move back out of `adf-schema` in which
|
|
12
|
+
* case we can consolidate them.
|
|
13
|
+
*/
|
|
14
|
+
import { embedCard } from '@atlaskit/adf-schema';
|
|
15
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
16
|
+
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
// From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
|
|
19
|
+
function calcMargin(layout) {
|
|
20
|
+
switch (layout) {
|
|
21
|
+
case 'wrap-right':
|
|
22
|
+
return '12px auto 12px 12px';
|
|
23
|
+
case 'wrap-left':
|
|
24
|
+
return '12px 12px 12px auto';
|
|
25
|
+
default:
|
|
26
|
+
return '24px auto';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
|
|
31
|
+
function float(layout) {
|
|
32
|
+
switch (layout) {
|
|
33
|
+
case 'wrap-right':
|
|
34
|
+
return 'right';
|
|
35
|
+
case 'wrap-left':
|
|
36
|
+
return 'left';
|
|
37
|
+
default:
|
|
38
|
+
return 'none';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// From `packages/editor/editor-common/src/media-single/constants.ts`
|
|
43
|
+
var MEDIA_SINGLE_GUTTER_SIZE = 24;
|
|
44
|
+
|
|
45
|
+
// From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
|
|
46
|
+
function calcPxFromPct(pct, lineLength) {
|
|
47
|
+
var maxWidth = lineLength + MEDIA_SINGLE_GUTTER_SIZE;
|
|
48
|
+
return maxWidth * pct - MEDIA_SINGLE_GUTTER_SIZE;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ED-24488: We can't retrieve the editor width from here easily.
|
|
52
|
+
// For now we're using the default line length here, but this will be
|
|
53
|
+
// incorrect on smaller devices.
|
|
54
|
+
var LINE_LENGTH = 760;
|
|
55
|
+
|
|
56
|
+
// @nodeSpecException:toDOM patch
|
|
57
|
+
export var embedCardSpecWithFixedToDOM = function embedCardSpecWithFixedToDOM() {
|
|
58
|
+
if (!fg('platform_editor_lazy-node-views')) {
|
|
59
|
+
return embedCard;
|
|
60
|
+
}
|
|
61
|
+
return _objectSpread(_objectSpread({}, embedCard), {}, {
|
|
62
|
+
toDOM: function toDOM(node) {
|
|
63
|
+
var _node$attrs = node.attrs,
|
|
64
|
+
url = _node$attrs.url,
|
|
65
|
+
layout = _node$attrs.layout,
|
|
66
|
+
width = _node$attrs.width,
|
|
67
|
+
originalWidth = _node$attrs.originalWidth,
|
|
68
|
+
originalHeight = _node$attrs.originalHeight;
|
|
69
|
+
var aspectRatio = originalWidth && originalHeight ? originalWidth / originalHeight : DEFAULT_EMBED_CARD_WIDTH / DEFAULT_EMBED_CARD_HEIGHT;
|
|
70
|
+
var attrs = {
|
|
71
|
+
'data-embed-card': '',
|
|
72
|
+
'data-card-url': url,
|
|
73
|
+
'data-layout': layout,
|
|
74
|
+
'data-width': width,
|
|
75
|
+
'data-original-width': originalWidth,
|
|
76
|
+
'data-original-height': originalHeight,
|
|
77
|
+
class: 'embedCardView-content-wrap',
|
|
78
|
+
// From `packages/editor/editor-plugin-card/src/ui/ResizableEmbedCard.tsx`
|
|
79
|
+
style: convertToInlineCss({
|
|
80
|
+
margin: calcMargin(layout),
|
|
81
|
+
width: "".concat(Math.ceil(calcPxFromPct(width / 100, LINE_LENGTH)), "px"),
|
|
82
|
+
marginRight: layout === 'align-end' ? '0' : '',
|
|
83
|
+
marginLeft: layout === 'align-start' ? '0' : '',
|
|
84
|
+
float: float(layout)
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
return ['div', attrs,
|
|
88
|
+
// This is the only modification to the embed card `toDOM`
|
|
89
|
+
// This is to match the behaviour of Card which lazy loads
|
|
90
|
+
// and uses just a URL as a fallback
|
|
91
|
+
//
|
|
92
|
+
// To match: `packages/linking-platform/smart-card/src/view/CardWithUrl/component-lazy/LoadingCardLink.tsx`
|
|
93
|
+
['a', {
|
|
94
|
+
style: convertToInlineCss({
|
|
95
|
+
marginLeft: "var(--ds-space-negative-025, -2px)",
|
|
96
|
+
boxDecorationBreak: 'clone',
|
|
97
|
+
WebkitBoxDecorationBreak: 'clone',
|
|
98
|
+
padding: "var(--ds-space-025, 2px)".concat(" 0px"),
|
|
99
|
+
lineHeight: '22px'
|
|
100
|
+
})
|
|
101
|
+
}, url !== null && url !== void 0 ? url : ''],
|
|
102
|
+
// From `packages/editor/editor-plugin-card/src/ui/ResizableEmbedCard.tsx`
|
|
103
|
+
// The `getHeightDefiningComponent` that defines the height of the element
|
|
104
|
+
['span', {
|
|
105
|
+
style: convertToInlineCss({
|
|
106
|
+
display: 'block',
|
|
107
|
+
paddingBottom: "calc(".concat((1 / aspectRatio * 100).toFixed(3), "% + ", "var(--ds-space-400, 32px)", ")")
|
|
108
|
+
})
|
|
109
|
+
}]];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
3
|
+
import ReactNodeView, { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { Decoration, DecorationSource } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { Decoration, DecorationSource, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import { Datasource } from '../nodeviews/datasource';
|
|
6
8
|
import type { SmartCardProps } from './genericCard';
|
|
7
9
|
export declare class BlockCardComponent extends React.PureComponent<SmartCardProps> {
|
|
8
10
|
private scrollContainer?;
|
|
@@ -30,3 +32,14 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
30
32
|
render(): JSX.Element;
|
|
31
33
|
destroy(): void;
|
|
32
34
|
}
|
|
35
|
+
export interface BlockCardNodeViewProperties {
|
|
36
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
37
|
+
platform: BlockCardNodeViewProps['platform'];
|
|
38
|
+
actionOptions: BlockCardNodeViewProps['actionOptions'];
|
|
39
|
+
showServerActions: BlockCardNodeViewProps['showServerActions'];
|
|
40
|
+
pluginInjectionApi: BlockCardNodeViewProps['pluginInjectionApi'];
|
|
41
|
+
onClickCallback: BlockCardNodeViewProps['onClickCallback'];
|
|
42
|
+
allowDatasource: boolean | undefined;
|
|
43
|
+
inlineCardViewProducer: ReturnType<typeof getInlineNodeViewProducer>;
|
|
44
|
+
}
|
|
45
|
+
export declare const blockCardNodeView: ({ pmPluginFactoryParams, platform, actionOptions, showServerActions, pluginInjectionApi, onClickCallback, allowDatasource, inlineCardViewProducer, }: BlockCardNodeViewProperties) => (node: Node, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration[]) => Datasource | BlockCard | import("prosemirror-view").NodeView;
|
|
@@ -2,7 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
5
|
+
import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { cardPlugin } from '../index';
|
|
6
9
|
import type { SmartCardProps } from './genericCard';
|
|
7
10
|
export type EmbedCardState = {
|
|
8
11
|
hasPreview: boolean;
|
|
@@ -47,3 +50,14 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
47
50
|
render(): JSX.Element;
|
|
48
51
|
destroy(): void;
|
|
49
52
|
}
|
|
53
|
+
export interface EmbedCardNodeViewProperties {
|
|
54
|
+
allowResizing: EmbedCardNodeViewProps['allowResizing'];
|
|
55
|
+
platform: EmbedCardNodeViewProps['platform'];
|
|
56
|
+
fullWidthMode: EmbedCardNodeViewProps['fullWidthMode'];
|
|
57
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
58
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
59
|
+
actionOptions: EmbedCardNodeViewProps['actionOptions'];
|
|
60
|
+
showServerActions: EmbedCardNodeViewProps['showServerActions'];
|
|
61
|
+
onClickCallback: EmbedCardNodeViewProps['onClickCallback'];
|
|
62
|
+
}
|
|
63
|
+
export declare const embedCardNodeView: ({ allowResizing, platform, fullWidthMode, pmPluginFactoryParams, pluginInjectionApi, actionOptions, showServerActions, onClickCallback, }: EmbedCardNodeViewProperties) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => EmbedCard;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { type BlockCardNodeViewProperties } from './blockCard';
|
|
2
|
+
export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined, decorations: readonly import("prosemirror-view").Decoration[]) => import("./datasource").Datasource | import("./blockCard").BlockCard | import("prosemirror-view").NodeView) | import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { type EmbedCardNodeViewProperties } from './embedCard';
|
|
2
|
+
export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor | ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined) => import("./embedCard").EmbedCard);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockCardSpecWithFixedToDOM: () => import("prosemirror-model").NodeSpec;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const embedCardSpecWithFixedToDOM: () => import("prosemirror-model").NodeSpec;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
3
|
+
import ReactNodeView, { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { Decoration, DecorationSource } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { Decoration, DecorationSource, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import { Datasource } from '../nodeviews/datasource';
|
|
6
8
|
import type { SmartCardProps } from './genericCard';
|
|
7
9
|
export declare class BlockCardComponent extends React.PureComponent<SmartCardProps> {
|
|
8
10
|
private scrollContainer?;
|
|
@@ -30,3 +32,14 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
30
32
|
render(): JSX.Element;
|
|
31
33
|
destroy(): void;
|
|
32
34
|
}
|
|
35
|
+
export interface BlockCardNodeViewProperties {
|
|
36
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
37
|
+
platform: BlockCardNodeViewProps['platform'];
|
|
38
|
+
actionOptions: BlockCardNodeViewProps['actionOptions'];
|
|
39
|
+
showServerActions: BlockCardNodeViewProps['showServerActions'];
|
|
40
|
+
pluginInjectionApi: BlockCardNodeViewProps['pluginInjectionApi'];
|
|
41
|
+
onClickCallback: BlockCardNodeViewProps['onClickCallback'];
|
|
42
|
+
allowDatasource: boolean | undefined;
|
|
43
|
+
inlineCardViewProducer: ReturnType<typeof getInlineNodeViewProducer>;
|
|
44
|
+
}
|
|
45
|
+
export declare const blockCardNodeView: ({ pmPluginFactoryParams, platform, actionOptions, showServerActions, pluginInjectionApi, onClickCallback, allowDatasource, inlineCardViewProducer, }: BlockCardNodeViewProperties) => (node: Node, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration[]) => Datasource | BlockCard | import("prosemirror-view").NodeView;
|
|
@@ -2,7 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
5
|
+
import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { cardPlugin } from '../index';
|
|
6
9
|
import type { SmartCardProps } from './genericCard';
|
|
7
10
|
export type EmbedCardState = {
|
|
8
11
|
hasPreview: boolean;
|
|
@@ -47,3 +50,14 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
47
50
|
render(): JSX.Element;
|
|
48
51
|
destroy(): void;
|
|
49
52
|
}
|
|
53
|
+
export interface EmbedCardNodeViewProperties {
|
|
54
|
+
allowResizing: EmbedCardNodeViewProps['allowResizing'];
|
|
55
|
+
platform: EmbedCardNodeViewProps['platform'];
|
|
56
|
+
fullWidthMode: EmbedCardNodeViewProps['fullWidthMode'];
|
|
57
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
58
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
59
|
+
actionOptions: EmbedCardNodeViewProps['actionOptions'];
|
|
60
|
+
showServerActions: EmbedCardNodeViewProps['showServerActions'];
|
|
61
|
+
onClickCallback: EmbedCardNodeViewProps['onClickCallback'];
|
|
62
|
+
}
|
|
63
|
+
export declare const embedCardNodeView: ({ allowResizing, platform, fullWidthMode, pmPluginFactoryParams, pluginInjectionApi, actionOptions, showServerActions, onClickCallback, }: EmbedCardNodeViewProperties) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => EmbedCard;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { type BlockCardNodeViewProperties } from './blockCard';
|
|
2
|
+
export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined, decorations: readonly import("prosemirror-view").Decoration[]) => import("./datasource").Datasource | import("./blockCard").BlockCard | import("prosemirror-view").NodeView) | import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { type EmbedCardNodeViewProperties } from './embedCard';
|
|
2
|
+
export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor | ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined) => import("./embedCard").EmbedCard);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockCardSpecWithFixedToDOM: () => import("prosemirror-model").NodeSpec;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const embedCardSpecWithFixedToDOM: () => import("prosemirror-model").NodeSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/adf-schema": "^40.3.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
37
|
"@atlaskit/custom-steps": "^0.6.0",
|
|
38
|
-
"@atlaskit/editor-common": "^87.
|
|
38
|
+
"@atlaskit/editor-common": "^87.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
49
49
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.10.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
52
|
-
"@atlaskit/link-client-extension": "^1.
|
|
52
|
+
"@atlaskit/link-client-extension": "^1.11.0",
|
|
53
53
|
"@atlaskit/link-datasource": "^2.9.0",
|
|
54
54
|
"@atlaskit/linking-common": "^5.8.0",
|
|
55
55
|
"@atlaskit/linking-types": "^8.12.0",
|
|
56
56
|
"@atlaskit/menu": "2.9.0",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
58
58
|
"@atlaskit/primitives": "^11.1.0",
|
|
59
|
-
"@atlaskit/smart-card": "^27.
|
|
59
|
+
"@atlaskit/smart-card": "^27.12.0",
|
|
60
60
|
"@atlaskit/theme": "^12.11.0",
|
|
61
|
-
"@atlaskit/tokens": "^1.
|
|
61
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
64
64
|
"lodash": "^4.17.21",
|
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"platform-feature-flags": {
|
|
107
|
+
"enable_datasource_react_sweet_state": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"referenceOnly": true
|
|
110
|
+
},
|
|
107
111
|
"enable_datasource_nourl_edit_dropdown_datafetch": {
|
|
108
112
|
"type": "boolean"
|
|
109
113
|
},
|
|
@@ -125,6 +129,9 @@
|
|
|
125
129
|
"platform.linking-platform.datasource.enable-confluence-search-modal": {
|
|
126
130
|
"type": "boolean"
|
|
127
131
|
},
|
|
132
|
+
"platform_editor_lazy-node-views": {
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
128
135
|
"platform.editor.card.inject-settings-button": {
|
|
129
136
|
"type": "boolean"
|
|
130
137
|
},
|