@atlaskit/renderer 127.3.0 → 127.4.0
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 +8 -0
- package/afm-cc/tsconfig.json +6 -0
- package/afm-jira/tsconfig.json +6 -0
- package/afm-products/tsconfig.json +6 -0
- package/dist/cjs/react/nodes/blockCard.js +7 -2
- package/dist/cjs/react/nodes/embedCard.js +7 -2
- package/dist/cjs/react/nodes/inlineCard.js +7 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +7 -2
- package/dist/es2019/react/nodes/embedCard.js +7 -2
- package/dist/es2019/react/nodes/inlineCard.js +7 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +7 -2
- package/dist/esm/react/nodes/embedCard.js +7 -2
- package/dist/esm/react/nodes/inlineCard.js +7 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 127.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`9f0d822dc201f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f0d822dc201f) -
|
|
8
|
+
[ux] Wraps block, embed, and inline card nodeviews in the renderer with SmartLinkDraggable. Enable
|
|
9
|
+
dragging smart links from the editor to the content tree.
|
|
10
|
+
|
|
3
11
|
## 127.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
{
|
|
60
60
|
"path": "../../editor-shared-styles/afm-cc/tsconfig.json"
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../editor-smart-link-draggable/afm-cc/tsconfig.json"
|
|
64
|
+
},
|
|
62
65
|
{
|
|
63
66
|
"path": "../../../elements/emoji/afm-cc/tsconfig.json"
|
|
64
67
|
},
|
|
@@ -107,6 +110,9 @@
|
|
|
107
110
|
{
|
|
108
111
|
"path": "../../../platform/feature-flags-react/afm-cc/tsconfig.json"
|
|
109
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"path": "../../../pragmatic-drag-and-drop/core/afm-cc/tsconfig.json"
|
|
115
|
+
},
|
|
110
116
|
{
|
|
111
117
|
"path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
|
|
112
118
|
},
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
{
|
|
60
60
|
"path": "../../editor-shared-styles/afm-jira/tsconfig.json"
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../editor-smart-link-draggable/afm-jira/tsconfig.json"
|
|
64
|
+
},
|
|
62
65
|
{
|
|
63
66
|
"path": "../../../elements/emoji/afm-jira/tsconfig.json"
|
|
64
67
|
},
|
|
@@ -107,6 +110,9 @@
|
|
|
107
110
|
{
|
|
108
111
|
"path": "../../../platform/feature-flags-react/afm-jira/tsconfig.json"
|
|
109
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"path": "../../../pragmatic-drag-and-drop/core/afm-jira/tsconfig.json"
|
|
115
|
+
},
|
|
110
116
|
{
|
|
111
117
|
"path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
|
|
112
118
|
},
|
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
{
|
|
60
60
|
"path": "../../editor-shared-styles/afm-products/tsconfig.json"
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../editor-smart-link-draggable/afm-products/tsconfig.json"
|
|
64
|
+
},
|
|
62
65
|
{
|
|
63
66
|
"path": "../../../elements/emoji/afm-products/tsconfig.json"
|
|
64
67
|
},
|
|
@@ -107,6 +110,9 @@
|
|
|
107
110
|
{
|
|
108
111
|
"path": "../../../platform/feature-flags-react/afm-products/tsconfig.json"
|
|
109
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"path": "../../../pragmatic-drag-and-drop/core/afm-products/tsconfig.json"
|
|
115
|
+
},
|
|
110
116
|
{
|
|
111
117
|
"path": "../../../react-ufo/atlaskit/afm-products/tsconfig.json"
|
|
112
118
|
},
|
|
@@ -10,6 +10,7 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _smartCard = require("@atlaskit/smart-card");
|
|
11
11
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
12
|
var _fallback = require("./fallback");
|
|
13
|
+
var _editorSmartLinkDraggable = require("@atlaskit/editor-smart-link-draggable");
|
|
13
14
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
14
15
|
var _inlineCard = _interopRequireDefault(require("./inlineCard"));
|
|
15
16
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
@@ -189,7 +190,11 @@ function BlockCard(props) {
|
|
|
189
190
|
onError: onError
|
|
190
191
|
}));
|
|
191
192
|
}
|
|
192
|
-
return (0, _react.jsx)(
|
|
193
|
+
return (0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
194
|
+
url: url || '',
|
|
195
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPERANCE.BLOCK,
|
|
196
|
+
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
|
+
}, (0, _react.jsx)(_analyticsNext.AnalyticsContext, {
|
|
193
198
|
data: analyticsData
|
|
194
199
|
}, (0, _react.jsx)("div", {
|
|
195
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -203,5 +208,5 @@ function BlockCard(props) {
|
|
|
203
208
|
onSetLinkTarget: onSetLinkTarget
|
|
204
209
|
// Ignored via go/ees005
|
|
205
210
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
206
|
-
}, cardProps), cardComponent)));
|
|
211
|
+
}, cardProps), cardComponent))));
|
|
207
212
|
}
|
|
@@ -19,6 +19,7 @@ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react
|
|
|
19
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
21
|
var _fallback = require("./fallback");
|
|
22
|
+
var _editorSmartLinkDraggable = require("@atlaskit/editor-smart-link-draggable");
|
|
22
23
|
var _consts = require("../../consts");
|
|
23
24
|
var _style = require("../../ui/Renderer/style");
|
|
24
25
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
@@ -201,7 +202,11 @@ function EmbedCardInternal(props) {
|
|
|
201
202
|
}
|
|
202
203
|
return (
|
|
203
204
|
// Ignored via go/ees005
|
|
204
|
-
(0, _react.jsx)(
|
|
205
|
+
(0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
206
|
+
url: url || '',
|
|
207
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPERANCE.EMBED,
|
|
208
|
+
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
209
|
+
}, (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
205
210
|
unsupportedComponent: _ui.UnsupportedBlock,
|
|
206
211
|
onSetLinkTarget: onSetLinkTarget
|
|
207
212
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -239,7 +244,7 @@ function EmbedCardInternal(props) {
|
|
|
239
244
|
className: _consts.RendererCssClassName.EMBED_CARD_CENTER_WRAPPER + ' ' + _consts.RendererCssClassName.FLEX_CENTER_WRAPPER,
|
|
240
245
|
css: embedCardCenterWrapperStyles
|
|
241
246
|
}, mediaSingle) : mediaSingle;
|
|
242
|
-
}()))
|
|
247
|
+
}())))
|
|
243
248
|
);
|
|
244
249
|
}));
|
|
245
250
|
}
|
|
@@ -22,6 +22,7 @@ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react
|
|
|
22
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
24
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
25
|
+
var _editorSmartLinkDraggable = require("@atlaskit/editor-smart-link-draggable");
|
|
25
26
|
var _fallback = require("./fallback");
|
|
26
27
|
var _SmartCardStorage = require("../../ui/SmartCardStorage");
|
|
27
28
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
@@ -301,7 +302,11 @@ var InlineCard = function InlineCard(props) {
|
|
|
301
302
|
disablePreviewPanel: true
|
|
302
303
|
}))), CompetitorPromptComponent);
|
|
303
304
|
}
|
|
304
|
-
return (0, _react2.jsx)(
|
|
305
|
+
return (0, _react2.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
306
|
+
url: url || '',
|
|
307
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPERANCE.INLINE,
|
|
308
|
+
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
309
|
+
}, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
305
310
|
data: analyticsData
|
|
306
311
|
}, (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
307
312
|
"data-inline-card": true,
|
|
@@ -340,7 +345,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
340
345
|
disablePreviewPanel: (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true, {
|
|
341
346
|
exposure: true
|
|
342
347
|
})
|
|
343
|
-
})))), CompetitorPromptComponent)));
|
|
348
|
+
})))), CompetitorPromptComponent))));
|
|
344
349
|
};
|
|
345
350
|
var _default_1 = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
346
351
|
var _default = exports.default = _default_1;
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "127.
|
|
74
|
+
var packageVersion = "127.3.0";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -8,6 +8,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { Card } from '@atlaskit/smart-card';
|
|
9
9
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { CardErrorBoundary } from './fallback';
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
11
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
12
13
|
import InlineCard from './inlineCard';
|
|
13
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -178,7 +179,11 @@ export default function BlockCard(props) {
|
|
|
178
179
|
onError: onError
|
|
179
180
|
}));
|
|
180
181
|
}
|
|
181
|
-
return jsx(
|
|
182
|
+
return jsx(SmartLinkDraggable, {
|
|
183
|
+
url: url || '',
|
|
184
|
+
appearance: SMART_LINK_APPERANCE.BLOCK,
|
|
185
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
186
|
+
}, jsx(AnalyticsContext, {
|
|
182
187
|
data: analyticsData
|
|
183
188
|
}, jsx("div", {
|
|
184
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -192,5 +197,5 @@ export default function BlockCard(props) {
|
|
|
192
197
|
onSetLinkTarget: onSetLinkTarget
|
|
193
198
|
// Ignored via go/ees005
|
|
194
199
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
195
|
-
}, cardProps), cardComponent)));
|
|
200
|
+
}, cardProps), cardComponent))));
|
|
196
201
|
}
|
|
@@ -17,6 +17,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import { CardErrorBoundary } from './fallback';
|
|
20
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
20
21
|
import { RendererCssClassName } from '../../consts';
|
|
21
22
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
22
23
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -189,7 +190,11 @@ function EmbedCardInternal(props) {
|
|
|
189
190
|
}
|
|
190
191
|
return (
|
|
191
192
|
// Ignored via go/ees005
|
|
192
|
-
jsx(
|
|
193
|
+
jsx(SmartLinkDraggable, {
|
|
194
|
+
url: url || '',
|
|
195
|
+
appearance: SMART_LINK_APPERANCE.EMBED,
|
|
196
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
|
+
}, jsx(CardErrorBoundary, _extends({
|
|
193
198
|
unsupportedComponent: UnsupportedBlock,
|
|
194
199
|
onSetLinkTarget: onSetLinkTarget
|
|
195
200
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -227,7 +232,7 @@ function EmbedCardInternal(props) {
|
|
|
227
232
|
className: RendererCssClassName.EMBED_CARD_CENTER_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER,
|
|
228
233
|
css: embedCardCenterWrapperStyles
|
|
229
234
|
}, mediaSingle) : mediaSingle;
|
|
230
|
-
})()))
|
|
235
|
+
})())))
|
|
231
236
|
);
|
|
232
237
|
}));
|
|
233
238
|
}
|
|
@@ -20,6 +20,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
20
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
22
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
23
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
23
24
|
import { CardErrorBoundary } from './fallback';
|
|
24
25
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
25
26
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -286,7 +287,11 @@ const InlineCard = props => {
|
|
|
286
287
|
disablePreviewPanel: true
|
|
287
288
|
}))), CompetitorPromptComponent);
|
|
288
289
|
}
|
|
289
|
-
return jsx(
|
|
290
|
+
return jsx(SmartLinkDraggable, {
|
|
291
|
+
url: url || '',
|
|
292
|
+
appearance: SMART_LINK_APPERANCE.INLINE,
|
|
293
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
294
|
+
}, jsx(AnalyticsContext, {
|
|
290
295
|
data: analyticsData
|
|
291
296
|
}, jsx("span", _extends({
|
|
292
297
|
"data-inline-card": true,
|
|
@@ -325,7 +330,7 @@ const InlineCard = props => {
|
|
|
325
330
|
disablePreviewPanel: editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
326
331
|
exposure: true
|
|
327
332
|
})
|
|
328
|
-
})))), CompetitorPromptComponent)));
|
|
333
|
+
})))), CompetitorPromptComponent))));
|
|
329
334
|
};
|
|
330
335
|
const _default_1 = withSmartCardStorage(InlineCard);
|
|
331
336
|
export default _default_1;
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "127.
|
|
60
|
+
const packageVersion = "127.3.0";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -8,6 +8,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { Card } from '@atlaskit/smart-card';
|
|
9
9
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { CardErrorBoundary } from './fallback';
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
11
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
12
13
|
import InlineCard from './inlineCard';
|
|
13
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -181,7 +182,11 @@ export default function BlockCard(props) {
|
|
|
181
182
|
onError: onError
|
|
182
183
|
}));
|
|
183
184
|
}
|
|
184
|
-
return jsx(
|
|
185
|
+
return jsx(SmartLinkDraggable, {
|
|
186
|
+
url: url || '',
|
|
187
|
+
appearance: SMART_LINK_APPERANCE.BLOCK,
|
|
188
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
189
|
+
}, jsx(AnalyticsContext, {
|
|
185
190
|
data: analyticsData
|
|
186
191
|
}, jsx("div", {
|
|
187
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -195,5 +200,5 @@ export default function BlockCard(props) {
|
|
|
195
200
|
onSetLinkTarget: onSetLinkTarget
|
|
196
201
|
// Ignored via go/ees005
|
|
197
202
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
198
|
-
}, cardProps), cardComponent)));
|
|
203
|
+
}, cardProps), cardComponent))));
|
|
199
204
|
}
|
|
@@ -18,6 +18,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
20
|
import { CardErrorBoundary } from './fallback';
|
|
21
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
21
22
|
import { RendererCssClassName } from '../../consts';
|
|
22
23
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
23
24
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -193,7 +194,11 @@ function EmbedCardInternal(props) {
|
|
|
193
194
|
}
|
|
194
195
|
return (
|
|
195
196
|
// Ignored via go/ees005
|
|
196
|
-
jsx(
|
|
197
|
+
jsx(SmartLinkDraggable, {
|
|
198
|
+
url: url || '',
|
|
199
|
+
appearance: SMART_LINK_APPERANCE.EMBED,
|
|
200
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
201
|
+
}, jsx(CardErrorBoundary, _extends({
|
|
197
202
|
unsupportedComponent: UnsupportedBlock,
|
|
198
203
|
onSetLinkTarget: onSetLinkTarget
|
|
199
204
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -231,7 +236,7 @@ function EmbedCardInternal(props) {
|
|
|
231
236
|
className: RendererCssClassName.EMBED_CARD_CENTER_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER,
|
|
232
237
|
css: embedCardCenterWrapperStyles
|
|
233
238
|
}, mediaSingle) : mediaSingle;
|
|
234
|
-
}()))
|
|
239
|
+
}())))
|
|
235
240
|
);
|
|
236
241
|
}));
|
|
237
242
|
}
|
|
@@ -21,6 +21,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
21
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
23
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
24
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
24
25
|
import { CardErrorBoundary } from './fallback';
|
|
25
26
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
26
27
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -292,7 +293,11 @@ var InlineCard = function InlineCard(props) {
|
|
|
292
293
|
disablePreviewPanel: true
|
|
293
294
|
}))), CompetitorPromptComponent);
|
|
294
295
|
}
|
|
295
|
-
return jsx(
|
|
296
|
+
return jsx(SmartLinkDraggable, {
|
|
297
|
+
url: url || '',
|
|
298
|
+
appearance: SMART_LINK_APPERANCE.INLINE,
|
|
299
|
+
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
300
|
+
}, jsx(AnalyticsContext, {
|
|
296
301
|
data: analyticsData
|
|
297
302
|
}, jsx("span", _extends({
|
|
298
303
|
"data-inline-card": true,
|
|
@@ -331,7 +336,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
331
336
|
disablePreviewPanel: editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
332
337
|
exposure: true
|
|
333
338
|
})
|
|
334
|
-
})))), CompetitorPromptComponent)));
|
|
339
|
+
})))), CompetitorPromptComponent))));
|
|
335
340
|
};
|
|
336
341
|
var _default_1 = withSmartCardStorage(InlineCard);
|
|
337
342
|
export default _default_1;
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "127.
|
|
65
|
+
var packageVersion = "127.3.0";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "127.
|
|
3
|
+
"version": "127.4.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
39
|
+
"@atlaskit/editor-smart-link-draggable": "^0.1.0",
|
|
39
40
|
"@atlaskit/emoji": "^69.10.0",
|
|
40
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
41
42
|
"@atlaskit/icon": "^32.0.0",
|
|
@@ -52,13 +53,14 @@
|
|
|
52
53
|
"@atlaskit/media-viewer": "^52.8.0",
|
|
53
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
55
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
56
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
55
57
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
56
58
|
"@atlaskit/smart-card": "^43.26.0",
|
|
57
59
|
"@atlaskit/status": "^3.1.0",
|
|
58
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
59
61
|
"@atlaskit/theme": "^22.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
61
|
-
"@atlaskit/tokens": "^11.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^35.5.0",
|
|
63
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
62
64
|
"@atlaskit/tooltip": "^20.14.0",
|
|
63
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
64
66
|
"@babel/runtime": "^7.0.0",
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
"uuid": "^3.1.0"
|
|
72
74
|
},
|
|
73
75
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^111.
|
|
76
|
+
"@atlaskit/editor-common": "^111.32.0",
|
|
75
77
|
"@atlaskit/link-provider": "^4.2.0",
|
|
76
78
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
79
|
"react": "^18.2.0",
|
|
@@ -90,7 +92,7 @@
|
|
|
90
92
|
"@atlaskit/mention": "^24.5.0",
|
|
91
93
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
92
94
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
93
|
-
"@atlaskit/profilecard": "^24.
|
|
95
|
+
"@atlaskit/profilecard": "^24.43.0",
|
|
94
96
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
95
97
|
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
96
98
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|