@atlaskit/editor-plugin-card 4.5.16 → 4.5.17
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 +6 -0
- package/dist/cjs/nodeviews/blockCard.js +1 -4
- package/dist/cjs/nodeviews/inlineCard.js +1 -4
- package/dist/cjs/pm-plugins/doc.js +5 -25
- package/dist/cjs/pm-plugins/util/resolve.js +2 -8
- package/dist/cjs/pm-plugins/utils.js +1 -4
- package/dist/cjs/ui/EditLinkToolbar.js +2 -8
- package/dist/cjs/ui/ResizableEmbedCard.js +1 -1
- package/dist/cjs/ui/analytics/events-from-tr.js +0 -3
- package/dist/cjs/ui/analytics/utils.js +1 -4
- package/dist/cjs/ui/editDatasourceAction.js +1 -4
- package/dist/cjs/ui/toolbar.js +7 -28
- package/dist/es2019/nodeviews/blockCard.js +1 -4
- package/dist/es2019/nodeviews/inlineCard.js +1 -4
- package/dist/es2019/pm-plugins/doc.js +7 -33
- package/dist/es2019/pm-plugins/util/resolve.js +2 -8
- package/dist/es2019/pm-plugins/utils.js +2 -8
- package/dist/es2019/ui/EditLinkToolbar.js +2 -8
- package/dist/es2019/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/ui/analytics/events-from-tr.js +0 -3
- package/dist/es2019/ui/analytics/utils.js +1 -4
- package/dist/es2019/ui/editDatasourceAction.js +1 -4
- package/dist/es2019/ui/toolbar.js +7 -28
- package/dist/esm/nodeviews/blockCard.js +1 -4
- package/dist/esm/nodeviews/inlineCard.js +1 -4
- package/dist/esm/pm-plugins/doc.js +5 -25
- package/dist/esm/pm-plugins/util/resolve.js +2 -8
- package/dist/esm/pm-plugins/utils.js +1 -4
- package/dist/esm/ui/EditLinkToolbar.js +2 -8
- package/dist/esm/ui/ResizableEmbedCard.js +1 -1
- package/dist/esm/ui/analytics/events-from-tr.js +0 -3
- package/dist/esm/ui/analytics/utils.js +1 -4
- package/dist/esm/ui/editDatasourceAction.js +1 -4
- package/dist/esm/ui/toolbar.js +7 -28
- package/dist/types/ui/datasourceErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasourceErrorBoundary.d.ts +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -195,10 +195,7 @@ var blockCardNodeView = exports.blockCardNodeView = function blockCardNodeView(_
|
|
|
195
195
|
onClickCallback = _ref3.onClickCallback,
|
|
196
196
|
allowDatasource = _ref3.allowDatasource,
|
|
197
197
|
inlineCardViewProducer = _ref3.inlineCardViewProducer;
|
|
198
|
-
return function (node, view, getPos, decorations
|
|
199
|
-
// Ignored via go/ees005
|
|
200
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
201
|
-
) {
|
|
198
|
+
return function (node, view, getPos, decorations) {
|
|
202
199
|
var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
|
|
203
200
|
eventDispatcher = pmPluginFactoryParams.eventDispatcher;
|
|
204
201
|
var reactComponentProps = {
|
|
@@ -170,10 +170,7 @@ function InlineCardNodeView(props) {
|
|
|
170
170
|
}
|
|
171
171
|
var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
172
172
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
173
|
-
return function (node, view, getPos, decorations
|
|
174
|
-
// Ignored via go/ees005
|
|
175
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
176
|
-
) {
|
|
173
|
+
return function (node, view, getPos, decorations) {
|
|
177
174
|
return inlineCardViewProducer(node, view, getPos, decorations);
|
|
178
175
|
};
|
|
179
176
|
};
|
|
@@ -24,8 +24,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
24
24
|
/**
|
|
25
25
|
* Attempt to replace the link into the respective card.
|
|
26
26
|
*/
|
|
27
|
-
// Ignored via go/ees005
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
29
27
|
function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
30
28
|
var inlineCard = schema.nodes.inlineCard;
|
|
31
29
|
var url = request.url;
|
|
@@ -63,10 +61,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
63
61
|
}
|
|
64
62
|
return $pos.node($pos.depth - 1).type.name;
|
|
65
63
|
}
|
|
66
|
-
var replaceQueuedUrlWithCard = exports.replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent
|
|
67
|
-
// Ignored via go/ees005
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
69
|
-
) {
|
|
64
|
+
var replaceQueuedUrlWithCard = exports.replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) {
|
|
70
65
|
return function (editorState, dispatch) {
|
|
71
66
|
var state = _pluginKey.pluginKey.getState(editorState);
|
|
72
67
|
if (!state) {
|
|
@@ -204,10 +199,7 @@ var queueCardsFromChangedTr = exports.queueCardsFromChangedTr = function queueCa
|
|
|
204
199
|
var queueCardFromChangedTr = exports.queueCardFromChangedTr = function queueCardFromChangedTr(state, tr, source, analyticsAction) {
|
|
205
200
|
var normalizeLinkText = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
206
201
|
var sourceEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined;
|
|
207
|
-
var previousAppearance
|
|
208
|
-
// Ignored via go/ees005
|
|
209
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
210
|
-
= arguments.length > 6 ? arguments[6] : undefined;
|
|
202
|
+
var previousAppearance = arguments.length > 6 ? arguments[6] : undefined;
|
|
211
203
|
var schema = state.schema;
|
|
212
204
|
var link = schema.marks.link;
|
|
213
205
|
var requests = [];
|
|
@@ -267,10 +259,7 @@ var convertHyperlinkToSmartCard = exports.convertHyperlinkToSmartCard = function
|
|
|
267
259
|
});
|
|
268
260
|
return (0, _actions.queueCards)(requests)(state.tr);
|
|
269
261
|
};
|
|
270
|
-
var changeSelectedCardToLink = exports.changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
271
|
-
// Ignored via go/ees005
|
|
272
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
273
|
-
) {
|
|
262
|
+
var changeSelectedCardToLink = exports.changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sendAnalytics, node, pos, editorAnalyticsApi) {
|
|
274
263
|
return function (state, dispatch) {
|
|
275
264
|
var selectedNode = state.selection instanceof _state.NodeSelection ? state.selection.node : undefined;
|
|
276
265
|
var tr;
|
|
@@ -299,10 +288,7 @@ var changeSelectedCardToLink = exports.changeSelectedCardToLink = function chang
|
|
|
299
288
|
return true;
|
|
300
289
|
};
|
|
301
290
|
};
|
|
302
|
-
var changeSelectedCardToLinkFallback = exports.changeSelectedCardToLinkFallback = function changeSelectedCardToLinkFallback(text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
303
|
-
// Ignored via go/ees005
|
|
304
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
305
|
-
) {
|
|
291
|
+
var changeSelectedCardToLinkFallback = exports.changeSelectedCardToLinkFallback = function changeSelectedCardToLinkFallback(text, href, sendAnalytics, node, pos, editorAnalyticsApi) {
|
|
306
292
|
return function (state, dispatch) {
|
|
307
293
|
var tr;
|
|
308
294
|
if (node && pos) {
|
|
@@ -353,9 +339,6 @@ function cardToLinkWithTransaction(state, text, href) {
|
|
|
353
339
|
})]), false);
|
|
354
340
|
return tr;
|
|
355
341
|
}
|
|
356
|
-
|
|
357
|
-
// Ignored via go/ees005
|
|
358
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
359
342
|
function cardNodeToLinkWithTransaction(state, text, href, node, pos) {
|
|
360
343
|
var link = state.schema.marks.link;
|
|
361
344
|
var url = node.attrs.url || node.attrs.data.url;
|
|
@@ -521,10 +504,7 @@ var updateCardViaDatasource = exports.updateCardViaDatasource = function updateC
|
|
|
521
504
|
}
|
|
522
505
|
view.dispatch(tr.scrollIntoView());
|
|
523
506
|
};
|
|
524
|
-
var insertDatasource = exports.insertDatasource = function insertDatasource(state, adf, view, sourceEvent
|
|
525
|
-
// Ignored via go/ees005
|
|
526
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
527
|
-
) {
|
|
507
|
+
var insertDatasource = exports.insertDatasource = function insertDatasource(state, adf, view, sourceEvent) {
|
|
528
508
|
var tr = state.tr,
|
|
529
509
|
from = state.selection.from,
|
|
530
510
|
schemaNodes = state.schema.nodes;
|
|
@@ -34,10 +34,7 @@ var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
|
34
34
|
// ============================================================================ //
|
|
35
35
|
// Used for all interactions with the EditorCardProvider.
|
|
36
36
|
// ============================================================================ //
|
|
37
|
-
var resolveWithProvider = exports.resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent
|
|
38
|
-
// Ignored via go/ees005
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
40
|
-
) {
|
|
37
|
+
var resolveWithProvider = exports.resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) {
|
|
41
38
|
var isEmbedFriendlyLocation = (0, _platformFeatureFlags.fg)('hardcoded-embeds-only-on-new-line') ? isFreshlyPastedOnNewLine(view) : true;
|
|
42
39
|
|
|
43
40
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
@@ -67,10 +64,7 @@ var updateCardType = function updateCardType(resolvedCard, options) {
|
|
|
67
64
|
resolvedCard.type = 'inlineCard';
|
|
68
65
|
}
|
|
69
66
|
};
|
|
70
|
-
var handleResolved = function handleResolved(view, request, editorAnalyticsApi, createAnalyticsEvent, options
|
|
71
|
-
// Ignored via go/ees005
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
73
|
-
) {
|
|
67
|
+
var handleResolved = function handleResolved(view, request, editorAnalyticsApi, createAnalyticsEvent, options) {
|
|
74
68
|
return function (resolvedCard) {
|
|
75
69
|
updateCardType(resolvedCard, options);
|
|
76
70
|
(0, _doc.replaceQueuedUrlWithCard)(request.url, resolvedCard, request.analyticsAction, editorAnalyticsApi, createAnalyticsEvent)(view.state, view.dispatch);
|
|
@@ -57,10 +57,7 @@ var findCardInfo = exports.findCardInfo = function findCardInfo(state) {
|
|
|
57
57
|
return cardInfo.pos === state.selection.from;
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
var isAppearanceSupportedInParent = function isAppearanceSupportedInParent(currentNodePosition, editorState, fragment, currentAppearance
|
|
61
|
-
// Ignored via go/ees005
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
|
-
) {
|
|
60
|
+
var isAppearanceSupportedInParent = function isAppearanceSupportedInParent(currentNodePosition, editorState, fragment, currentAppearance) {
|
|
64
61
|
var resolvedPosition = editorState.doc.resolve(currentNodePosition);
|
|
65
62
|
var parent = currentAppearance === 'embed' || currentAppearance === 'block' ? resolvedPosition.node() : resolvedPosition.node(-1);
|
|
66
63
|
return parent && parent.type.validContent(fragment);
|
|
@@ -102,10 +102,7 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
102
102
|
// via the floating toolbar
|
|
103
103
|
,
|
|
104
104
|
invokeMethod: _analytics.INPUT_METHOD.FLOATING_TB,
|
|
105
|
-
lpLinkPicker: lpLinkPicker
|
|
106
|
-
// Ignored via go/ees005
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
108
|
-
,
|
|
105
|
+
lpLinkPicker: lpLinkPicker,
|
|
109
106
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
110
107
|
_this.hideLinkToolbar();
|
|
111
108
|
if (_onSubmit) {
|
|
@@ -176,10 +173,7 @@ var buildEditLinkToolbar = exports.buildEditLinkToolbar = function buildEditLink
|
|
|
176
173
|
text: displayInfo.title || '',
|
|
177
174
|
node: node,
|
|
178
175
|
lpLinkPicker: lpLinkPicker,
|
|
179
|
-
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector
|
|
180
|
-
// Ignored via go/ees005
|
|
181
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
182
|
-
,
|
|
176
|
+
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector,
|
|
183
177
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
184
178
|
var urlChanged = newHref !== displayInfo.url;
|
|
185
179
|
var titleChanged = newText !== displayInfo.title;
|
|
@@ -315,7 +315,7 @@ var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Compone
|
|
|
315
315
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
316
316
|
display: 'block',
|
|
317
317
|
/* Fixes extra padding problem in Firefox */
|
|
318
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
318
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
319
319
|
fontSize: 0,
|
|
320
320
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
321
321
|
lineHeight: 0
|
|
@@ -83,9 +83,6 @@ var findChanged = exports.findChanged = function findChanged(tr, state) {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
// Ignored via go/ees005
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
89
86
|
stepMap.forEach(function (oldStart, oldEnd, newStart, newEnd) {
|
|
90
87
|
var _tr$docs2;
|
|
91
88
|
var before = tr.docs[i];
|
|
@@ -92,10 +92,7 @@ var findAtPositions = exports.findAtPositions = function findAtPositions(tr, pos
|
|
|
92
92
|
}
|
|
93
93
|
return entities;
|
|
94
94
|
};
|
|
95
|
-
var findInNodeRange = exports.findInNodeRange = function findInNodeRange(doc, from, to, predicate
|
|
96
|
-
// Ignored via go/ees005
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
98
|
-
) {
|
|
95
|
+
var findInNodeRange = exports.findInNodeRange = function findInNodeRange(doc, from, to, predicate) {
|
|
99
96
|
var entities = [];
|
|
100
97
|
doc.nodesBetween(from, to, function (node, pos) {
|
|
101
98
|
if (predicate(node)) {
|
|
@@ -7,10 +7,7 @@ exports.editDatasource = void 0;
|
|
|
7
7
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _actions = require("../pm-plugins/actions");
|
|
10
|
-
var editDatasource = exports.editDatasource = function editDatasource(datasourceId, editorAnalyticsApi, appearance, extensionKey
|
|
11
|
-
// Ignored via go/ees005
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
13
|
-
) {
|
|
10
|
+
var editDatasource = exports.editDatasource = function editDatasource(datasourceId, editorAnalyticsApi, appearance, extensionKey) {
|
|
14
11
|
return function (state, dispatch) {
|
|
15
12
|
var datasourceType = (0, _utils.getDatasourceType)(datasourceId);
|
|
16
13
|
if (dispatch && datasourceType) {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -103,10 +103,7 @@ var openLinkSettings = exports.openLinkSettings = function openLinkSettings(edit
|
|
|
103
103
|
return true;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
var floatingToolbar = exports.floatingToolbar = function floatingToolbar(cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar
|
|
107
|
-
// Ignored via go/ees005
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
109
|
-
) {
|
|
106
|
+
var floatingToolbar = exports.floatingToolbar = function floatingToolbar(cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar) {
|
|
110
107
|
return function (state, intl, providerFactory) {
|
|
111
108
|
if (disableFloatingToolbar) {
|
|
112
109
|
return;
|
|
@@ -171,10 +168,7 @@ var unlinkCard = function unlinkCard(node, state, editorAnalyticsApi) {
|
|
|
171
168
|
return false;
|
|
172
169
|
};
|
|
173
170
|
};
|
|
174
|
-
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions
|
|
175
|
-
// Ignored via go/ees005
|
|
176
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
177
|
-
) {
|
|
171
|
+
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions) {
|
|
178
172
|
return (0, _card.buildLayoutButtons)(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
|
|
179
173
|
};
|
|
180
174
|
var withToolbarMetadata = function withToolbarMetadata(command) {
|
|
@@ -199,10 +193,7 @@ var getToolbarViewedItem = function getToolbarViewedItem(url, display) {
|
|
|
199
193
|
}
|
|
200
194
|
}];
|
|
201
195
|
};
|
|
202
|
-
var generateToolbarItems = function generateToolbarItems(state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi
|
|
203
|
-
// Ignored via go/ees005
|
|
204
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
205
|
-
) {
|
|
196
|
+
var generateToolbarItems = function generateToolbarItems(state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi) {
|
|
206
197
|
return function (node) {
|
|
207
198
|
var _pluginInjectionApi$a, _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$a2, _node$attrs;
|
|
208
199
|
var _titleUrlPairFromNode2 = (0, _utils3.titleUrlPairFromNode)(node),
|
|
@@ -395,10 +386,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
395
386
|
}
|
|
396
387
|
};
|
|
397
388
|
};
|
|
398
|
-
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi
|
|
399
|
-
// Ignored via go/ees005
|
|
400
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
401
|
-
) {
|
|
389
|
+
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi) {
|
|
402
390
|
return node.type === inlineCard ? [{
|
|
403
391
|
id: 'editor.link.unlink',
|
|
404
392
|
focusEditoronEnter: true,
|
|
@@ -423,10 +411,7 @@ var getSettingsButton = exports.getSettingsButton = function getSettingsButton(i
|
|
|
423
411
|
target: '_blank'
|
|
424
412
|
};
|
|
425
413
|
};
|
|
426
|
-
var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance
|
|
427
|
-
// Ignored via go/ees005
|
|
428
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
429
|
-
) {
|
|
414
|
+
var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) {
|
|
430
415
|
var _node$attrs2;
|
|
431
416
|
var toolbarItems = [];
|
|
432
417
|
var canShowAppearanceSwitch = function canShowAppearanceSwitch() {
|
|
@@ -535,17 +520,11 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
535
520
|
});
|
|
536
521
|
return toolbarItems;
|
|
537
522
|
};
|
|
538
|
-
var shouldRenderToolbarPulse = exports.shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled
|
|
539
|
-
// Ignored via go/ees005
|
|
540
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
541
|
-
) {
|
|
523
|
+
var shouldRenderToolbarPulse = exports.shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
|
|
542
524
|
return embedEnabled && appearance === 'inline' && status === 'resolved' && isDiscoverabilityEnabled;
|
|
543
525
|
};
|
|
544
526
|
var getStartingToolbarItems = exports.getStartingToolbarItems = function getStartingToolbarItems(options, api) {
|
|
545
|
-
return function (intl, link, onEditLink, metadata
|
|
546
|
-
// Ignored via go/ees005
|
|
547
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
548
|
-
) {
|
|
527
|
+
return function (intl, link, onEditLink, metadata) {
|
|
549
528
|
var editLinkItem = options.allowDatasource ? [{
|
|
550
529
|
type: 'custom',
|
|
551
530
|
fallback: [],
|
|
@@ -159,10 +159,7 @@ export const blockCardNodeView = ({
|
|
|
159
159
|
onClickCallback,
|
|
160
160
|
allowDatasource,
|
|
161
161
|
inlineCardViewProducer
|
|
162
|
-
}) => (node, view, getPos, decorations
|
|
163
|
-
// Ignored via go/ees005
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
165
|
-
) => {
|
|
162
|
+
}) => (node, view, getPos, decorations) => {
|
|
166
163
|
const {
|
|
167
164
|
portalProviderAPI,
|
|
168
165
|
eventDispatcher
|
|
@@ -159,9 +159,6 @@ export function InlineCardNodeView(props) {
|
|
|
159
159
|
}
|
|
160
160
|
export const inlineCardNodeView = ({
|
|
161
161
|
inlineCardViewProducer
|
|
162
|
-
}) => (node, view, getPos, decorations
|
|
163
|
-
// Ignored via go/ees005
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
165
|
-
) => {
|
|
162
|
+
}) => (node, view, getPos, decorations) => {
|
|
166
163
|
return inlineCardViewProducer(node, view, getPos, decorations);
|
|
167
164
|
};
|
|
@@ -14,8 +14,6 @@ import { appearanceForNodeType, isDatasourceConfigEditable, isDatasourceNode, se
|
|
|
14
14
|
/**
|
|
15
15
|
* Attempt to replace the link into the respective card.
|
|
16
16
|
*/
|
|
17
|
-
// Ignored via go/ees005
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
19
17
|
function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
20
18
|
const {
|
|
21
19
|
inlineCard
|
|
@@ -57,10 +55,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
57
55
|
}
|
|
58
56
|
return $pos.node($pos.depth - 1).type.name;
|
|
59
57
|
}
|
|
60
|
-
export const replaceQueuedUrlWithCard = (url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent
|
|
61
|
-
// Ignored via go/ees005
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
|
-
) => (editorState, dispatch) => {
|
|
58
|
+
export const replaceQueuedUrlWithCard = (url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) => (editorState, dispatch) => {
|
|
64
59
|
const state = pluginKey.getState(editorState);
|
|
65
60
|
if (!state) {
|
|
66
61
|
return false;
|
|
@@ -144,10 +139,7 @@ export const handleFallbackWithAnalytics = (request, editorAnalyticsApi) => (sta
|
|
|
144
139
|
}
|
|
145
140
|
return true;
|
|
146
141
|
};
|
|
147
|
-
export const queueCardsFromChangedTr = (state, tr, source, analyticsAction, normalizeLinkText = true, sourceEvent = undefined, appearance = 'inline'
|
|
148
|
-
// Ignored via go/ees005
|
|
149
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
150
|
-
) => {
|
|
142
|
+
export const queueCardsFromChangedTr = (state, tr, source, analyticsAction, normalizeLinkText = true, sourceEvent = undefined, appearance = 'inline') => {
|
|
151
143
|
const {
|
|
152
144
|
schema
|
|
153
145
|
} = state;
|
|
@@ -183,10 +175,7 @@ export const queueCardsFromChangedTr = (state, tr, source, analyticsAction, norm
|
|
|
183
175
|
}
|
|
184
176
|
return queueCards(requests)(tr);
|
|
185
177
|
};
|
|
186
|
-
export const queueCardFromChangedTr = (state, tr, source, analyticsAction, normalizeLinkText = true, sourceEvent = undefined, previousAppearance
|
|
187
|
-
// Ignored via go/ees005
|
|
188
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
189
|
-
) => {
|
|
178
|
+
export const queueCardFromChangedTr = (state, tr, source, analyticsAction, normalizeLinkText = true, sourceEvent = undefined, previousAppearance) => {
|
|
190
179
|
const {
|
|
191
180
|
schema
|
|
192
181
|
} = state;
|
|
@@ -221,10 +210,7 @@ export const queueCardFromChangedTr = (state, tr, source, analyticsAction, norma
|
|
|
221
210
|
});
|
|
222
211
|
return queueCards(requests)(tr);
|
|
223
212
|
};
|
|
224
|
-
export const convertHyperlinkToSmartCard = (state, source, appearance, normalizeLinkText = true
|
|
225
|
-
// Ignored via go/ees005
|
|
226
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
227
|
-
) => {
|
|
213
|
+
export const convertHyperlinkToSmartCard = (state, source, appearance, normalizeLinkText = true) => {
|
|
228
214
|
const {
|
|
229
215
|
schema
|
|
230
216
|
} = state;
|
|
@@ -252,10 +238,7 @@ export const convertHyperlinkToSmartCard = (state, source, appearance, normalize
|
|
|
252
238
|
});
|
|
253
239
|
return queueCards(requests)(state.tr);
|
|
254
240
|
};
|
|
255
|
-
export const changeSelectedCardToLink = (text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
256
|
-
// Ignored via go/ees005
|
|
257
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
258
|
-
) => (state, dispatch) => {
|
|
241
|
+
export const changeSelectedCardToLink = (text, href, sendAnalytics, node, pos, editorAnalyticsApi) => (state, dispatch) => {
|
|
259
242
|
const selectedNode = state.selection instanceof NodeSelection ? state.selection.node : undefined;
|
|
260
243
|
let tr;
|
|
261
244
|
if (node && pos) {
|
|
@@ -282,10 +265,7 @@ export const changeSelectedCardToLink = (text, href, sendAnalytics, node, pos, e
|
|
|
282
265
|
}
|
|
283
266
|
return true;
|
|
284
267
|
};
|
|
285
|
-
export const changeSelectedCardToLinkFallback = (text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
286
|
-
// Ignored via go/ees005
|
|
287
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
288
|
-
) => (state, dispatch) => {
|
|
268
|
+
export const changeSelectedCardToLinkFallback = (text, href, sendAnalytics, node, pos, editorAnalyticsApi) => (state, dispatch) => {
|
|
289
269
|
let tr;
|
|
290
270
|
if (node && pos) {
|
|
291
271
|
tr = cardNodeToLinkWithTransaction(state, text, href, node, pos);
|
|
@@ -334,9 +314,6 @@ function cardToLinkWithTransaction(state, text, href) {
|
|
|
334
314
|
})]), false);
|
|
335
315
|
return tr;
|
|
336
316
|
}
|
|
337
|
-
|
|
338
|
-
// Ignored via go/ees005
|
|
339
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
340
317
|
function cardNodeToLinkWithTransaction(state, text, href, node, pos) {
|
|
341
318
|
const {
|
|
342
319
|
link
|
|
@@ -505,10 +482,7 @@ export const updateCardViaDatasource = args => {
|
|
|
505
482
|
}
|
|
506
483
|
view.dispatch(tr.scrollIntoView());
|
|
507
484
|
};
|
|
508
|
-
export const insertDatasource = (state, adf, view, sourceEvent
|
|
509
|
-
// Ignored via go/ees005
|
|
510
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
511
|
-
) => {
|
|
485
|
+
export const insertDatasource = (state, adf, view, sourceEvent) => {
|
|
512
486
|
const {
|
|
513
487
|
tr,
|
|
514
488
|
selection: {
|
|
@@ -31,10 +31,7 @@ const isFreshlyPastedOnNewLine = view => {
|
|
|
31
31
|
// ============================================================================ //
|
|
32
32
|
// Used for all interactions with the EditorCardProvider.
|
|
33
33
|
// ============================================================================ //
|
|
34
|
-
export const resolveWithProvider = (view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent
|
|
35
|
-
// Ignored via go/ees005
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
37
|
-
) => {
|
|
34
|
+
export const resolveWithProvider = (view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) => {
|
|
38
35
|
const isEmbedFriendlyLocation = fg('hardcoded-embeds-only-on-new-line') ? isFreshlyPastedOnNewLine(view) : true;
|
|
39
36
|
|
|
40
37
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
@@ -64,10 +61,7 @@ const updateCardType = (resolvedCard, options) => {
|
|
|
64
61
|
resolvedCard.type = 'inlineCard';
|
|
65
62
|
}
|
|
66
63
|
};
|
|
67
|
-
const handleResolved = (view, request, editorAnalyticsApi, createAnalyticsEvent, options
|
|
68
|
-
// Ignored via go/ees005
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
70
|
-
) => resolvedCard => {
|
|
64
|
+
const handleResolved = (view, request, editorAnalyticsApi, createAnalyticsEvent, options) => resolvedCard => {
|
|
71
65
|
updateCardType(resolvedCard, options);
|
|
72
66
|
replaceQueuedUrlWithCard(request.url, resolvedCard, request.analyticsAction, editorAnalyticsApi, createAnalyticsEvent)(view.state, view.dispatch);
|
|
73
67
|
return resolvedCard;
|
|
@@ -47,10 +47,7 @@ export const findCardInfo = state => {
|
|
|
47
47
|
}
|
|
48
48
|
return pluginState.cards.find(cardInfo => cardInfo.pos === state.selection.from);
|
|
49
49
|
};
|
|
50
|
-
const isAppearanceSupportedInParent = (currentNodePosition, editorState, fragment, currentAppearance
|
|
51
|
-
// Ignored via go/ees005
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
53
|
-
) => {
|
|
50
|
+
const isAppearanceSupportedInParent = (currentNodePosition, editorState, fragment, currentAppearance) => {
|
|
54
51
|
const resolvedPosition = editorState.doc.resolve(currentNodePosition);
|
|
55
52
|
const parent = currentAppearance === 'embed' || currentAppearance === 'block' ? resolvedPosition.node() : resolvedPosition.node(-1);
|
|
56
53
|
return parent && parent.type.validContent(fragment);
|
|
@@ -118,10 +115,7 @@ export const focusEditorView = editorView => {
|
|
|
118
115
|
editorView.focus();
|
|
119
116
|
}
|
|
120
117
|
};
|
|
121
|
-
export const getAwarenessProps = (editorState, getPos, allowEmbeds, allowBlockCards, disableOverlay = false
|
|
122
|
-
// Ignored via go/ees005
|
|
123
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
124
|
-
) => {
|
|
118
|
+
export const getAwarenessProps = (editorState, getPos, allowEmbeds, allowBlockCards, disableOverlay = false) => {
|
|
125
119
|
var _editorState$selectio, _editorState$selectio2, _editorState$selectio3;
|
|
126
120
|
const getPosFunction = typeof getPos !== 'boolean' ? getPos : undefined;
|
|
127
121
|
const linkPosition = getPosFunction === null || getPosFunction === void 0 ? void 0 : getPosFunction();
|
|
@@ -75,10 +75,7 @@ export class EditLinkToolbar extends React.Component {
|
|
|
75
75
|
// via the floating toolbar
|
|
76
76
|
,
|
|
77
77
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
78
|
-
lpLinkPicker: lpLinkPicker
|
|
79
|
-
// Ignored via go/ees005
|
|
80
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
81
|
-
,
|
|
78
|
+
lpLinkPicker: lpLinkPicker,
|
|
82
79
|
onSubmit: (href, title, displayText, inputMethod, analytic) => {
|
|
83
80
|
this.hideLinkToolbar();
|
|
84
81
|
if (onSubmit) {
|
|
@@ -153,10 +150,7 @@ export const buildEditLinkToolbar = ({
|
|
|
153
150
|
text: displayInfo.title || '',
|
|
154
151
|
node: node,
|
|
155
152
|
lpLinkPicker: lpLinkPicker,
|
|
156
|
-
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : (_pluginInjectionApi$f2 = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.forceFocusSelector
|
|
157
|
-
// Ignored via go/ees005
|
|
158
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
159
|
-
,
|
|
153
|
+
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : (_pluginInjectionApi$f2 = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.forceFocusSelector,
|
|
160
154
|
onSubmit: (newHref, newText, inputMethod, analytic) => {
|
|
161
155
|
const urlChanged = newHref !== displayInfo.url;
|
|
162
156
|
const titleChanged = newText !== displayInfo.title;
|
|
@@ -296,7 +296,7 @@ export default class ResizableEmbedCard extends React.Component {
|
|
|
296
296
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
297
297
|
display: 'block',
|
|
298
298
|
/* Fixes extra padding problem in Firefox */
|
|
299
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
300
300
|
fontSize: 0,
|
|
301
301
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
302
302
|
lineHeight: 0,
|
|
@@ -74,9 +74,6 @@ export const findChanged = (tr, state) => {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
// Ignored via go/ees005
|
|
79
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
80
77
|
stepMap.forEach((oldStart, oldEnd, newStart, newEnd) => {
|
|
81
78
|
var _tr$docs2;
|
|
82
79
|
const before = tr.docs[i];
|
|
@@ -81,10 +81,7 @@ export const findAtPositions = (tr, positions) => {
|
|
|
81
81
|
}
|
|
82
82
|
return entities;
|
|
83
83
|
};
|
|
84
|
-
export const findInNodeRange = (doc, from, to, predicate
|
|
85
|
-
// Ignored via go/ees005
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
87
|
-
) => {
|
|
84
|
+
export const findInNodeRange = (doc, from, to, predicate) => {
|
|
88
85
|
const entities = [];
|
|
89
86
|
doc.nodesBetween(from, to, (node, pos) => {
|
|
90
87
|
if (predicate(node)) {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { getDatasourceType } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { showDatasourceModal } from '../pm-plugins/actions';
|
|
4
|
-
export const editDatasource = (datasourceId, editorAnalyticsApi, appearance, extensionKey
|
|
5
|
-
// Ignored via go/ees005
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
7
|
-
) => (state, dispatch) => {
|
|
4
|
+
export const editDatasource = (datasourceId, editorAnalyticsApi, appearance, extensionKey) => (state, dispatch) => {
|
|
8
5
|
const datasourceType = getDatasourceType(datasourceId);
|
|
9
6
|
if (dispatch && datasourceType) {
|
|
10
7
|
const {
|
|
@@ -96,10 +96,7 @@ export const openLinkSettings = editorAnalyticsApi => (state, dispatch) => {
|
|
|
96
96
|
}
|
|
97
97
|
return true;
|
|
98
98
|
};
|
|
99
|
-
export const floatingToolbar = (cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar
|
|
100
|
-
// Ignored via go/ees005
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
102
|
-
) => {
|
|
99
|
+
export const floatingToolbar = (cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar) => {
|
|
103
100
|
return (state, intl, providerFactory) => {
|
|
104
101
|
if (disableFloatingToolbar) {
|
|
105
102
|
return;
|
|
@@ -164,10 +161,7 @@ const unlinkCard = (node, state, editorAnalyticsApi) => {
|
|
|
164
161
|
}
|
|
165
162
|
return () => false;
|
|
166
163
|
};
|
|
167
|
-
const buildAlignmentOptions = (state, intl, widthPluginDependencyApi, analyticsApi, cardOptions
|
|
168
|
-
// Ignored via go/ees005
|
|
169
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
170
|
-
) => {
|
|
164
|
+
const buildAlignmentOptions = (state, intl, widthPluginDependencyApi, analyticsApi, cardOptions) => {
|
|
171
165
|
return buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
|
|
172
166
|
};
|
|
173
167
|
const withToolbarMetadata = command => commandWithMetadata(command, {
|
|
@@ -188,10 +182,7 @@ const getToolbarViewedItem = (url, display) => {
|
|
|
188
182
|
})
|
|
189
183
|
}];
|
|
190
184
|
};
|
|
191
|
-
const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi
|
|
192
|
-
// Ignored via go/ees005
|
|
193
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
194
|
-
) => node => {
|
|
185
|
+
const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi) => node => {
|
|
195
186
|
var _pluginInjectionApi$a, _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$a2, _node$attrs, _node$attrs$datasourc;
|
|
196
187
|
const {
|
|
197
188
|
url
|
|
@@ -384,10 +375,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
384
375
|
return toolbarItems;
|
|
385
376
|
}
|
|
386
377
|
};
|
|
387
|
-
const getUnlinkButtonGroup = (state, intl, node, inlineCard, editorAnalyticsApi
|
|
388
|
-
// Ignored via go/ees005
|
|
389
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
390
|
-
) => {
|
|
378
|
+
const getUnlinkButtonGroup = (state, intl, node, inlineCard, editorAnalyticsApi) => {
|
|
391
379
|
return node.type === inlineCard ? [{
|
|
392
380
|
id: 'editor.link.unlink',
|
|
393
381
|
focusEditoronEnter: true,
|
|
@@ -412,10 +400,7 @@ export const getSettingsButton = (intl, editorAnalyticsApi, userPreferencesLink)
|
|
|
412
400
|
target: '_blank'
|
|
413
401
|
};
|
|
414
402
|
};
|
|
415
|
-
const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance
|
|
416
|
-
// Ignored via go/ees005
|
|
417
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
418
|
-
) => {
|
|
403
|
+
const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) => {
|
|
419
404
|
var _node$attrs2;
|
|
420
405
|
const toolbarItems = [];
|
|
421
406
|
const canShowAppearanceSwitch = () => {
|
|
@@ -524,17 +509,11 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
524
509
|
});
|
|
525
510
|
return toolbarItems;
|
|
526
511
|
};
|
|
527
|
-
export const shouldRenderToolbarPulse = (embedEnabled, appearance, status, isDiscoverabilityEnabled
|
|
528
|
-
// Ignored via go/ees005
|
|
529
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
530
|
-
) => {
|
|
512
|
+
export const shouldRenderToolbarPulse = (embedEnabled, appearance, status, isDiscoverabilityEnabled) => {
|
|
531
513
|
return embedEnabled && appearance === 'inline' && status === 'resolved' && isDiscoverabilityEnabled;
|
|
532
514
|
};
|
|
533
515
|
export const getStartingToolbarItems = (options, api) => {
|
|
534
|
-
return (intl, link, onEditLink, metadata
|
|
535
|
-
// Ignored via go/ees005
|
|
536
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
537
|
-
) => {
|
|
516
|
+
return (intl, link, onEditLink, metadata) => {
|
|
538
517
|
const editLinkItem = options.allowDatasource ? [{
|
|
539
518
|
type: 'custom',
|
|
540
519
|
fallback: [],
|
|
@@ -189,10 +189,7 @@ export var blockCardNodeView = function blockCardNodeView(_ref3) {
|
|
|
189
189
|
onClickCallback = _ref3.onClickCallback,
|
|
190
190
|
allowDatasource = _ref3.allowDatasource,
|
|
191
191
|
inlineCardViewProducer = _ref3.inlineCardViewProducer;
|
|
192
|
-
return function (node, view, getPos, decorations
|
|
193
|
-
// Ignored via go/ees005
|
|
194
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
195
|
-
) {
|
|
192
|
+
return function (node, view, getPos, decorations) {
|
|
196
193
|
var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
|
|
197
194
|
eventDispatcher = pmPluginFactoryParams.eventDispatcher;
|
|
198
195
|
var reactComponentProps = {
|
|
@@ -158,10 +158,7 @@ export function InlineCardNodeView(props) {
|
|
|
158
158
|
}
|
|
159
159
|
export var inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
160
160
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
161
|
-
return function (node, view, getPos, decorations
|
|
162
|
-
// Ignored via go/ees005
|
|
163
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
164
|
-
) {
|
|
161
|
+
return function (node, view, getPos, decorations) {
|
|
165
162
|
return inlineCardViewProducer(node, view, getPos, decorations);
|
|
166
163
|
};
|
|
167
164
|
};
|
|
@@ -18,8 +18,6 @@ import { appearanceForNodeType, isDatasourceConfigEditable, isDatasourceNode, se
|
|
|
18
18
|
/**
|
|
19
19
|
* Attempt to replace the link into the respective card.
|
|
20
20
|
*/
|
|
21
|
-
// Ignored via go/ees005
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
23
21
|
function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
24
22
|
var inlineCard = schema.nodes.inlineCard;
|
|
25
23
|
var url = request.url;
|
|
@@ -57,10 +55,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
57
55
|
}
|
|
58
56
|
return $pos.node($pos.depth - 1).type.name;
|
|
59
57
|
}
|
|
60
|
-
export var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent
|
|
61
|
-
// Ignored via go/ees005
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
|
-
) {
|
|
58
|
+
export var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) {
|
|
64
59
|
return function (editorState, dispatch) {
|
|
65
60
|
var state = pluginKey.getState(editorState);
|
|
66
61
|
if (!state) {
|
|
@@ -198,10 +193,7 @@ export var queueCardsFromChangedTr = function queueCardsFromChangedTr(state, tr,
|
|
|
198
193
|
export var queueCardFromChangedTr = function queueCardFromChangedTr(state, tr, source, analyticsAction) {
|
|
199
194
|
var normalizeLinkText = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
200
195
|
var sourceEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined;
|
|
201
|
-
var previousAppearance
|
|
202
|
-
// Ignored via go/ees005
|
|
203
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
204
|
-
= arguments.length > 6 ? arguments[6] : undefined;
|
|
196
|
+
var previousAppearance = arguments.length > 6 ? arguments[6] : undefined;
|
|
205
197
|
var schema = state.schema;
|
|
206
198
|
var link = schema.marks.link;
|
|
207
199
|
var requests = [];
|
|
@@ -261,10 +253,7 @@ export var convertHyperlinkToSmartCard = function convertHyperlinkToSmartCard(st
|
|
|
261
253
|
});
|
|
262
254
|
return queueCards(requests)(state.tr);
|
|
263
255
|
};
|
|
264
|
-
export var changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
265
|
-
// Ignored via go/ees005
|
|
266
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
267
|
-
) {
|
|
256
|
+
export var changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sendAnalytics, node, pos, editorAnalyticsApi) {
|
|
268
257
|
return function (state, dispatch) {
|
|
269
258
|
var selectedNode = state.selection instanceof NodeSelection ? state.selection.node : undefined;
|
|
270
259
|
var tr;
|
|
@@ -293,10 +282,7 @@ export var changeSelectedCardToLink = function changeSelectedCardToLink(text, hr
|
|
|
293
282
|
return true;
|
|
294
283
|
};
|
|
295
284
|
};
|
|
296
|
-
export var changeSelectedCardToLinkFallback = function changeSelectedCardToLinkFallback(text, href, sendAnalytics, node, pos, editorAnalyticsApi
|
|
297
|
-
// Ignored via go/ees005
|
|
298
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
299
|
-
) {
|
|
285
|
+
export var changeSelectedCardToLinkFallback = function changeSelectedCardToLinkFallback(text, href, sendAnalytics, node, pos, editorAnalyticsApi) {
|
|
300
286
|
return function (state, dispatch) {
|
|
301
287
|
var tr;
|
|
302
288
|
if (node && pos) {
|
|
@@ -347,9 +333,6 @@ function cardToLinkWithTransaction(state, text, href) {
|
|
|
347
333
|
})]), false);
|
|
348
334
|
return tr;
|
|
349
335
|
}
|
|
350
|
-
|
|
351
|
-
// Ignored via go/ees005
|
|
352
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
353
336
|
function cardNodeToLinkWithTransaction(state, text, href, node, pos) {
|
|
354
337
|
var link = state.schema.marks.link;
|
|
355
338
|
var url = node.attrs.url || node.attrs.data.url;
|
|
@@ -515,10 +498,7 @@ export var updateCardViaDatasource = function updateCardViaDatasource(args) {
|
|
|
515
498
|
}
|
|
516
499
|
view.dispatch(tr.scrollIntoView());
|
|
517
500
|
};
|
|
518
|
-
export var insertDatasource = function insertDatasource(state, adf, view, sourceEvent
|
|
519
|
-
// Ignored via go/ees005
|
|
520
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
521
|
-
) {
|
|
501
|
+
export var insertDatasource = function insertDatasource(state, adf, view, sourceEvent) {
|
|
522
502
|
var tr = state.tr,
|
|
523
503
|
from = state.selection.from,
|
|
524
504
|
schemaNodes = state.schema.nodes;
|
|
@@ -28,10 +28,7 @@ var isFreshlyPastedOnNewLine = function isFreshlyPastedOnNewLine(view) {
|
|
|
28
28
|
// ============================================================================ //
|
|
29
29
|
// Used for all interactions with the EditorCardProvider.
|
|
30
30
|
// ============================================================================ //
|
|
31
|
-
export var resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent
|
|
32
|
-
// Ignored via go/ees005
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
34
|
-
) {
|
|
31
|
+
export var resolveWithProvider = function resolveWithProvider(view, provider, request, options, editorAnalyticsApi, createAnalyticsEvent) {
|
|
35
32
|
var isEmbedFriendlyLocation = fg('hardcoded-embeds-only-on-new-line') ? isFreshlyPastedOnNewLine(view) : true;
|
|
36
33
|
|
|
37
34
|
// When user manually changes appearance from blue link to smart link, we should respect that,
|
|
@@ -61,10 +58,7 @@ var updateCardType = function updateCardType(resolvedCard, options) {
|
|
|
61
58
|
resolvedCard.type = 'inlineCard';
|
|
62
59
|
}
|
|
63
60
|
};
|
|
64
|
-
var handleResolved = function handleResolved(view, request, editorAnalyticsApi, createAnalyticsEvent, options
|
|
65
|
-
// Ignored via go/ees005
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
67
|
-
) {
|
|
61
|
+
var handleResolved = function handleResolved(view, request, editorAnalyticsApi, createAnalyticsEvent, options) {
|
|
68
62
|
return function (resolvedCard) {
|
|
69
63
|
updateCardType(resolvedCard, options);
|
|
70
64
|
replaceQueuedUrlWithCard(request.url, resolvedCard, request.analyticsAction, editorAnalyticsApi, createAnalyticsEvent)(view.state, view.dispatch);
|
|
@@ -50,10 +50,7 @@ export var findCardInfo = function findCardInfo(state) {
|
|
|
50
50
|
return cardInfo.pos === state.selection.from;
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
var isAppearanceSupportedInParent = function isAppearanceSupportedInParent(currentNodePosition, editorState, fragment, currentAppearance
|
|
54
|
-
// Ignored via go/ees005
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
56
|
-
) {
|
|
53
|
+
var isAppearanceSupportedInParent = function isAppearanceSupportedInParent(currentNodePosition, editorState, fragment, currentAppearance) {
|
|
57
54
|
var resolvedPosition = editorState.doc.resolve(currentNodePosition);
|
|
58
55
|
var parent = currentAppearance === 'embed' || currentAppearance === 'block' ? resolvedPosition.node() : resolvedPosition.node(-1);
|
|
59
56
|
return parent && parent.type.validContent(fragment);
|
|
@@ -93,10 +93,7 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
93
93
|
// via the floating toolbar
|
|
94
94
|
,
|
|
95
95
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
96
|
-
lpLinkPicker: lpLinkPicker
|
|
97
|
-
// Ignored via go/ees005
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
99
|
-
,
|
|
96
|
+
lpLinkPicker: lpLinkPicker,
|
|
100
97
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
101
98
|
_this.hideLinkToolbar();
|
|
102
99
|
if (_onSubmit) {
|
|
@@ -167,10 +164,7 @@ export var buildEditLinkToolbar = function buildEditLinkToolbar(_ref2) {
|
|
|
167
164
|
text: displayInfo.title || '',
|
|
168
165
|
node: node,
|
|
169
166
|
lpLinkPicker: lpLinkPicker,
|
|
170
|
-
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector
|
|
171
|
-
// Ignored via go/ees005
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
173
|
-
,
|
|
167
|
+
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector,
|
|
174
168
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
175
169
|
var urlChanged = newHref !== displayInfo.url;
|
|
176
170
|
var titleChanged = newText !== displayInfo.title;
|
|
@@ -311,7 +311,7 @@ var ResizableEmbedCard = /*#__PURE__*/function (_React$Component) {
|
|
|
311
311
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
312
312
|
display: 'block',
|
|
313
313
|
/* Fixes extra padding problem in Firefox */
|
|
314
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
314
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
315
315
|
fontSize: 0,
|
|
316
316
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
317
317
|
lineHeight: 0
|
|
@@ -76,9 +76,6 @@ export var findChanged = function findChanged(tr, state) {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
// Ignored via go/ees005
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
82
79
|
stepMap.forEach(function (oldStart, oldEnd, newStart, newEnd) {
|
|
83
80
|
var _tr$docs2;
|
|
84
81
|
var before = tr.docs[i];
|
|
@@ -81,10 +81,7 @@ export var findAtPositions = function findAtPositions(tr, positions) {
|
|
|
81
81
|
}
|
|
82
82
|
return entities;
|
|
83
83
|
};
|
|
84
|
-
export var findInNodeRange = function findInNodeRange(doc, from, to, predicate
|
|
85
|
-
// Ignored via go/ees005
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
87
|
-
) {
|
|
84
|
+
export var findInNodeRange = function findInNodeRange(doc, from, to, predicate) {
|
|
88
85
|
var entities = [];
|
|
89
86
|
doc.nodesBetween(from, to, function (node, pos) {
|
|
90
87
|
if (predicate(node)) {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { getDatasourceType } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { showDatasourceModal } from '../pm-plugins/actions';
|
|
4
|
-
export var editDatasource = function editDatasource(datasourceId, editorAnalyticsApi, appearance, extensionKey
|
|
5
|
-
// Ignored via go/ees005
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
7
|
-
) {
|
|
4
|
+
export var editDatasource = function editDatasource(datasourceId, editorAnalyticsApi, appearance, extensionKey) {
|
|
8
5
|
return function (state, dispatch) {
|
|
9
6
|
var datasourceType = getDatasourceType(datasourceId);
|
|
10
7
|
if (dispatch && datasourceType) {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -93,10 +93,7 @@ export var openLinkSettings = function openLinkSettings(editorAnalyticsApi) {
|
|
|
93
93
|
return true;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
-
export var floatingToolbar = function floatingToolbar(cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar
|
|
97
|
-
// Ignored via go/ees005
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
99
|
-
) {
|
|
96
|
+
export var floatingToolbar = function floatingToolbar(cardOptions, lpLinkPicker, linkPickerOptions, pluginInjectionApi, disableFloatingToolbar) {
|
|
100
97
|
return function (state, intl, providerFactory) {
|
|
101
98
|
if (disableFloatingToolbar) {
|
|
102
99
|
return;
|
|
@@ -161,10 +158,7 @@ var unlinkCard = function unlinkCard(node, state, editorAnalyticsApi) {
|
|
|
161
158
|
return false;
|
|
162
159
|
};
|
|
163
160
|
};
|
|
164
|
-
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions
|
|
165
|
-
// Ignored via go/ees005
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
167
|
-
) {
|
|
161
|
+
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions) {
|
|
168
162
|
return buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
|
|
169
163
|
};
|
|
170
164
|
var withToolbarMetadata = function withToolbarMetadata(command) {
|
|
@@ -189,10 +183,7 @@ var getToolbarViewedItem = function getToolbarViewedItem(url, display) {
|
|
|
189
183
|
}
|
|
190
184
|
}];
|
|
191
185
|
};
|
|
192
|
-
var generateToolbarItems = function generateToolbarItems(state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi
|
|
193
|
-
// Ignored via go/ees005
|
|
194
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
195
|
-
) {
|
|
186
|
+
var generateToolbarItems = function generateToolbarItems(state, intl, providerFactory, cardOptions, lpLinkPicker, linkPicker, pluginInjectionApi) {
|
|
196
187
|
return function (node) {
|
|
197
188
|
var _pluginInjectionApi$a, _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$a2, _node$attrs;
|
|
198
189
|
var _titleUrlPairFromNode2 = titleUrlPairFromNode(node),
|
|
@@ -385,10 +376,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
385
376
|
}
|
|
386
377
|
};
|
|
387
378
|
};
|
|
388
|
-
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi
|
|
389
|
-
// Ignored via go/ees005
|
|
390
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
391
|
-
) {
|
|
379
|
+
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi) {
|
|
392
380
|
return node.type === inlineCard ? [{
|
|
393
381
|
id: 'editor.link.unlink',
|
|
394
382
|
focusEditoronEnter: true,
|
|
@@ -413,10 +401,7 @@ export var getSettingsButton = function getSettingsButton(intl, editorAnalyticsA
|
|
|
413
401
|
target: '_blank'
|
|
414
402
|
};
|
|
415
403
|
};
|
|
416
|
-
var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance
|
|
417
|
-
// Ignored via go/ees005
|
|
418
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
419
|
-
) {
|
|
404
|
+
var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) {
|
|
420
405
|
var _node$attrs2;
|
|
421
406
|
var toolbarItems = [];
|
|
422
407
|
var canShowAppearanceSwitch = function canShowAppearanceSwitch() {
|
|
@@ -525,17 +510,11 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
525
510
|
});
|
|
526
511
|
return toolbarItems;
|
|
527
512
|
};
|
|
528
|
-
export var shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled
|
|
529
|
-
// Ignored via go/ees005
|
|
530
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
531
|
-
) {
|
|
513
|
+
export var shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
|
|
532
514
|
return embedEnabled && appearance === 'inline' && status === 'resolved' && isDiscoverabilityEnabled;
|
|
533
515
|
};
|
|
534
516
|
export var getStartingToolbarItems = function getStartingToolbarItems(options, api) {
|
|
535
|
-
return function (intl, link, onEditLink, metadata
|
|
536
|
-
// Ignored via go/ees005
|
|
537
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
538
|
-
) {
|
|
517
|
+
return function (intl, link, onEditLink, metadata) {
|
|
539
518
|
var editLinkItem = options.allowDatasource ? [{
|
|
540
519
|
type: 'custom',
|
|
541
520
|
fallback: [],
|
|
@@ -20,5 +20,5 @@ export declare class DatasourceErrorBoundary extends React.Component<DatasourceE
|
|
|
20
20
|
error: Error | APIError;
|
|
21
21
|
};
|
|
22
22
|
componentDidCatch(error: Error | APIError): void;
|
|
23
|
-
render(): React.
|
|
23
|
+
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
24
24
|
}
|
|
@@ -20,5 +20,5 @@ export declare class DatasourceErrorBoundary extends React.Component<DatasourceE
|
|
|
20
20
|
error: Error | APIError;
|
|
21
21
|
};
|
|
22
22
|
componentDidCatch(error: Error | APIError): void;
|
|
23
|
-
render(): React.
|
|
23
|
+
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.17",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,35 +32,35 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/analytics-next": "^10.
|
|
35
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
36
36
|
"@atlaskit/custom-steps": "^0.9.0",
|
|
37
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
39
39
|
"@atlaskit/editor-plugin-base": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-connectivity": "^1.1.0",
|
|
41
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
41
|
+
"@atlaskit/editor-plugin-decorations": "^1.4.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.4.0",
|
|
43
43
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
45
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^1.
|
|
46
|
-
"@atlaskit/editor-plugin-grid": "^1.
|
|
45
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.16.0",
|
|
46
|
+
"@atlaskit/editor-plugin-grid": "^1.3.0",
|
|
47
47
|
"@atlaskit/editor-plugin-width": "^2.0.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
50
|
-
"@atlaskit/frontend-utilities": "^2.
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
52
|
-
"@atlaskit/link-analytics": "^8.
|
|
53
|
-
"@atlaskit/link-client-extension": "^3.
|
|
54
|
-
"@atlaskit/link-datasource": "^3.
|
|
55
|
-
"@atlaskit/linking-common": "^6.
|
|
56
|
-
"@atlaskit/linking-types": "^9.
|
|
57
|
-
"@atlaskit/menu": "2.
|
|
50
|
+
"@atlaskit/frontend-utilities": "^2.9.0",
|
|
51
|
+
"@atlaskit/icon": "^23.5.0",
|
|
52
|
+
"@atlaskit/link-analytics": "^8.7.0",
|
|
53
|
+
"@atlaskit/link-client-extension": "^3.1.0",
|
|
54
|
+
"@atlaskit/link-datasource": "^3.17.0",
|
|
55
|
+
"@atlaskit/linking-common": "^6.2.0",
|
|
56
|
+
"@atlaskit/linking-types": "^9.6.0",
|
|
57
|
+
"@atlaskit/menu": "2.14.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
59
|
-
"@atlaskit/primitives": "^13.
|
|
60
|
-
"@atlaskit/smart-card": "^34.
|
|
61
|
-
"@atlaskit/theme": "^14.
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
63
|
-
"@atlaskit/tokens": "^3.
|
|
59
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
60
|
+
"@atlaskit/smart-card": "^34.8.0",
|
|
61
|
+
"@atlaskit/theme": "^14.1.0",
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
63
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"lodash": "^4.17.21",
|