@atlaskit/editor-plugin-card 8.0.1 → 8.1.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 +13 -0
- package/dist/cjs/ui/DatasourceAppearanceButton.js +8 -4
- package/dist/cjs/ui/EditToolbarButton/EditToolbarButtonPresentation.js +20 -12
- package/dist/cjs/ui/EditToolbarButton/index.js +33 -15
- package/dist/cjs/ui/HyperlinkToolbarAppearance.js +10 -4
- package/dist/cjs/ui/HyperlinkToolbarAppearanceDropdown.js +11 -6
- package/dist/cjs/ui/LinkToolbarAppearance.js +3 -2
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +4 -2
- package/dist/cjs/ui/OpenPreviewButton/index.js +6 -5
- package/dist/cjs/ui/toolbar.js +44 -32
- package/dist/es2019/ui/DatasourceAppearanceButton.js +8 -4
- package/dist/es2019/ui/EditToolbarButton/EditToolbarButtonPresentation.js +20 -12
- package/dist/es2019/ui/EditToolbarButton/index.js +33 -15
- package/dist/es2019/ui/HyperlinkToolbarAppearance.js +10 -4
- package/dist/es2019/ui/HyperlinkToolbarAppearanceDropdown.js +11 -6
- package/dist/es2019/ui/LinkToolbarAppearance.js +3 -2
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +4 -2
- package/dist/es2019/ui/OpenPreviewButton/index.js +6 -5
- package/dist/es2019/ui/toolbar.js +44 -32
- package/dist/esm/ui/DatasourceAppearanceButton.js +8 -4
- package/dist/esm/ui/EditToolbarButton/EditToolbarButtonPresentation.js +20 -12
- package/dist/esm/ui/EditToolbarButton/index.js +33 -15
- package/dist/esm/ui/HyperlinkToolbarAppearance.js +10 -4
- package/dist/esm/ui/HyperlinkToolbarAppearanceDropdown.js +11 -6
- package/dist/esm/ui/LinkToolbarAppearance.js +3 -2
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +4 -2
- package/dist/esm/ui/OpenPreviewButton/index.js +6 -5
- package/dist/esm/ui/toolbar.js +44 -32
- package/dist/types/cardPluginType.d.ts +3 -1
- package/dist/types/ui/DatasourceAppearanceButton.d.ts +2 -1
- package/dist/types/ui/EditToolbarButton/EditToolbarButtonPresentation.d.ts +1 -1
- package/dist/types/ui/EditToolbarButton/types.d.ts +1 -0
- package/dist/types/ui/LinkToolbarAppearance.d.ts +1 -0
- package/dist/types/ui/LinkToolbarAppearanceDropdown.d.ts +1 -1
- package/dist/types/ui/OpenPreviewButton/index.d.ts +2 -1
- package/dist/types-ts4.5/cardPluginType.d.ts +3 -1
- package/dist/types-ts4.5/ui/DatasourceAppearanceButton.d.ts +2 -1
- package/dist/types-ts4.5/ui/EditToolbarButton/EditToolbarButtonPresentation.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditToolbarButton/types.d.ts +1 -0
- package/dist/types-ts4.5/ui/LinkToolbarAppearance.d.ts +1 -0
- package/dist/types-ts4.5/ui/LinkToolbarAppearanceDropdown.d.ts +1 -1
- package/dist/types-ts4.5/ui/OpenPreviewButton/index.d.ts +2 -1
- package/package.json +9 -8
|
@@ -43,7 +43,8 @@ export var LinkToolbarAppearance = /*#__PURE__*/function (_React$Component) {
|
|
|
43
43
|
editorAnalyticsApi = _this$props.editorAnalyticsApi,
|
|
44
44
|
_this$props$showUpgra = _this$props.showUpgradeDiscoverability,
|
|
45
45
|
showUpgradeDiscoverability = _this$props$showUpgra === void 0 ? true : _this$props$showUpgra,
|
|
46
|
-
isDatasourceView = _this$props.isDatasourceView
|
|
46
|
+
isDatasourceView = _this$props.isDatasourceView,
|
|
47
|
+
areAnyNewToolbarFlagsEnabled = _this$props.areAnyNewToolbarFlagsEnabled;
|
|
47
48
|
var preview = allowEmbeds && cardContext && url && cardContext.extractors.getPreview(url, 'web');
|
|
48
49
|
var defaultCommand = function defaultCommand() {
|
|
49
50
|
return false;
|
|
@@ -106,7 +107,7 @@ export var LinkToolbarAppearance = /*#__PURE__*/function (_React$Component) {
|
|
|
106
107
|
var LinkToolbarButtons = /*#__PURE__*/React.createElement(LinkToolbarButtonGroup, {
|
|
107
108
|
key: "link-toolbar-button-group",
|
|
108
109
|
options: options.map(function (option) {
|
|
109
|
-
return getButtonGroupOption(intl, dispatchCommand, _objectSpread(_objectSpread({}, option), {}, {
|
|
110
|
+
return getButtonGroupOption(intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, _objectSpread(_objectSpread({}, option), {}, {
|
|
110
111
|
onClick: commandWithMetadata(option.onClick, {
|
|
111
112
|
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
112
113
|
})
|
|
@@ -136,7 +136,8 @@ export var getLinkAppearanceDropdown = function getLinkAppearanceDropdown(_ref2)
|
|
|
136
136
|
_ref2$showUpgradeDisc = _ref2.showUpgradeDiscoverability,
|
|
137
137
|
showUpgradeDiscoverability = _ref2$showUpgradeDisc === void 0 ? true : _ref2$showUpgradeDisc,
|
|
138
138
|
isDatasourceView = _ref2.isDatasourceView,
|
|
139
|
-
settingsConfig = _ref2.settingsConfig
|
|
139
|
+
settingsConfig = _ref2.settingsConfig,
|
|
140
|
+
areAnyNewToolbarFlagsEnabled = _ref2.areAnyNewToolbarFlagsEnabled;
|
|
140
141
|
var alignmentItemOptions = {
|
|
141
142
|
render: function render(props) {
|
|
142
143
|
return /*#__PURE__*/React.createElement(LinkAppearanceMenu, {
|
|
@@ -151,7 +152,8 @@ export var getLinkAppearanceDropdown = function getLinkAppearanceDropdown(_ref2)
|
|
|
151
152
|
isDatasourceView: isDatasourceView,
|
|
152
153
|
allowDatasource: allowDatasource,
|
|
153
154
|
dispatchCommand: props.dispatchCommand,
|
|
154
|
-
settingsConfig: settingsConfig
|
|
155
|
+
settingsConfig: settingsConfig,
|
|
156
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
155
157
|
});
|
|
156
158
|
},
|
|
157
159
|
width: 200,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { linkMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
-
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
4
3
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
5
4
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
6
5
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
@@ -8,7 +7,8 @@ import { Inline, Box, Flex } from '@atlaskit/primitives/compiled';
|
|
|
8
7
|
import { getObjectAri, getObjectIconUrl, getObjectName } from '@atlaskit/smart-card';
|
|
9
8
|
export var OpenPreviewPanelToolbarButton = function OpenPreviewPanelToolbarButton(_ref) {
|
|
10
9
|
var node = _ref.node,
|
|
11
|
-
intl = _ref.intl
|
|
10
|
+
intl = _ref.intl,
|
|
11
|
+
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
12
12
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
13
13
|
store = _useSmartLinkContext.store,
|
|
14
14
|
isPreviewPanelAvailable = _useSmartLinkContext.isPreviewPanelAvailable,
|
|
@@ -33,13 +33,13 @@ export var OpenPreviewPanelToolbarButton = function OpenPreviewPanelToolbarButto
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
var title = intl.formatMessage(linkMessages.openPreviewPanel);
|
|
36
|
-
var icon =
|
|
36
|
+
var icon = areAnyNewToolbarFlagsEnabled ? /*#__PURE__*/React.createElement(PanelRightIcon, {
|
|
37
37
|
label: "",
|
|
38
38
|
spacing: "spacious"
|
|
39
39
|
}) :
|
|
40
40
|
/*#__PURE__*/
|
|
41
41
|
// This is a hack required for Jira until areToolbarFlagsEnabled are enabled to ensure the icon has padding
|
|
42
|
-
// Padding is removed when
|
|
42
|
+
// Padding is removed when areToolbarFlagsEnabled for a button with icon only in platform/packages/editor/editor-common/src/ui/FloatingToolbar/Button.tsx
|
|
43
43
|
React.createElement(Inline, {
|
|
44
44
|
as: "span",
|
|
45
45
|
space: "space.050",
|
|
@@ -63,7 +63,8 @@ export var OpenPreviewPanelToolbarButton = function OpenPreviewPanelToolbarButto
|
|
|
63
63
|
testId: "open-preview-panel-floating-toolbar-button",
|
|
64
64
|
onClick: handleOpenGlancePanelClick,
|
|
65
65
|
icon: icon,
|
|
66
|
-
title: title
|
|
66
|
+
title: title,
|
|
67
|
+
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
67
68
|
}));
|
|
68
69
|
}
|
|
69
70
|
}
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -167,8 +167,8 @@ var unlinkCard = function unlinkCard(node, state, editorAnalyticsApi) {
|
|
|
167
167
|
return false;
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
-
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions) {
|
|
171
|
-
if (
|
|
170
|
+
var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPluginDependencyApi, analyticsApi, cardOptions, areAnyNewToolbarFlagsEnabled) {
|
|
171
|
+
if (areAnyNewToolbarFlagsEnabled) {
|
|
172
172
|
return buildLayoutDropdown(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);
|
|
173
173
|
}
|
|
174
174
|
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);
|
|
@@ -213,7 +213,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
213
213
|
title: title
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var areAllNewToolbarFlagsDisabled = !areToolbarFlagsEnabled(Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar));
|
|
217
217
|
var currentAppearance = appearanceForNodeType(node.type);
|
|
218
218
|
var _ref2 = (_pluginInjectionApi$d = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$d2 = pluginInjectionApi.decorations) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : _pluginInjectionApi$d2.actions) !== null && _pluginInjectionApi$d !== void 0 ? _pluginInjectionApi$d : {},
|
|
219
219
|
hoverDecoration = _ref2.hoverDecoration;
|
|
@@ -269,7 +269,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
269
269
|
editorAnalyticsApi: editorAnalyticsApi,
|
|
270
270
|
editorView: editorView,
|
|
271
271
|
onLinkEditClick: getEditLinkCallback(editorAnalyticsApi, true),
|
|
272
|
-
currentAppearance: currentAppearance
|
|
272
|
+
currentAppearance: currentAppearance,
|
|
273
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
273
274
|
});
|
|
274
275
|
}
|
|
275
276
|
}] : [{
|
|
@@ -309,7 +310,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
309
310
|
editorAnalyticsApi: editorAnalyticsApi,
|
|
310
311
|
editorView: editorView,
|
|
311
312
|
onLinkEditClick: getEditLinkCallback(editorAnalyticsApi, true),
|
|
312
|
-
currentAppearance: currentAppearance
|
|
313
|
+
currentAppearance: currentAppearance,
|
|
314
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
313
315
|
});
|
|
314
316
|
}
|
|
315
317
|
}] : [{
|
|
@@ -331,11 +333,12 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
331
333
|
return /*#__PURE__*/React.createElement(OpenPreviewPanelToolbarButton, {
|
|
332
334
|
node: node,
|
|
333
335
|
intl: intl,
|
|
334
|
-
editorAnalyticsApi: editorAnalyticsApi
|
|
336
|
+
editorAnalyticsApi: editorAnalyticsApi,
|
|
337
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
335
338
|
});
|
|
336
339
|
}
|
|
337
340
|
}] : [];
|
|
338
|
-
var toolbarItems =
|
|
341
|
+
var toolbarItems = areAllNewToolbarFlagsDisabled ? [].concat(editItems, commentItems, openPreviewPanelItems, [{
|
|
339
342
|
id: 'editor.link.openLink',
|
|
340
343
|
type: 'button',
|
|
341
344
|
icon: LinkExternalIcon,
|
|
@@ -348,7 +351,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
348
351
|
target: '_blank'
|
|
349
352
|
}, {
|
|
350
353
|
type: 'separator'
|
|
351
|
-
}], _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
|
|
354
|
+
}], _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
|
|
352
355
|
type: 'copy-button',
|
|
353
356
|
items: [{
|
|
354
357
|
state: state,
|
|
@@ -372,10 +375,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
372
375
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
373
376
|
title: intl.formatMessage(commonMessages.remove),
|
|
374
377
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
375
|
-
}]) : [].concat(openPreviewPanelItems, editButtonItems, _toConsumableArray(fg('platform_editor_controls_patch_15') ? [].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
|
|
378
|
+
}]) : [].concat(openPreviewPanelItems, editButtonItems, _toConsumableArray(fg('platform_editor_controls_patch_15') ? [].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
|
|
376
379
|
type: 'separator',
|
|
377
380
|
fullHeight: true
|
|
378
|
-
}]) : getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
|
|
381
|
+
}]) : getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
|
|
379
382
|
id: 'editor.link.openLink',
|
|
380
383
|
type: 'button',
|
|
381
384
|
icon: LinkExternalIcon,
|
|
@@ -392,8 +395,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
392
395
|
}, commentItems[0]] : commentItems));
|
|
393
396
|
if (currentAppearance === 'embed') {
|
|
394
397
|
var _pluginInjectionApi$a4;
|
|
395
|
-
var alignmentOptions = buildAlignmentOptions(state, intl, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.width, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions, cardOptions);
|
|
396
|
-
if (alignmentOptions.length &&
|
|
398
|
+
var alignmentOptions = buildAlignmentOptions(state, intl, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.width, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions, cardOptions, !areAllNewToolbarFlagsDisabled);
|
|
399
|
+
if (alignmentOptions.length && areAllNewToolbarFlagsDisabled) {
|
|
397
400
|
alignmentOptions.push({
|
|
398
401
|
type: 'separator'
|
|
399
402
|
});
|
|
@@ -408,7 +411,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
408
411
|
// For url appearance, please see HyperlinkToolbarAppearanceProps
|
|
409
412
|
if (currentAppearance) {
|
|
410
413
|
var showDatasourceAppearance = allowDatasource && url;
|
|
411
|
-
toolbarItems.unshift.apply(toolbarItems, _toConsumableArray(getToolbarViewedItem(url, currentAppearance)).concat([
|
|
414
|
+
toolbarItems.unshift.apply(toolbarItems, _toConsumableArray(getToolbarViewedItem(url, currentAppearance)).concat([areAllNewToolbarFlagsDisabled ? {
|
|
412
415
|
type: 'custom',
|
|
413
416
|
fallback: [],
|
|
414
417
|
render: function render(editorView) {
|
|
@@ -422,7 +425,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
422
425
|
allowEmbeds: allowEmbeds,
|
|
423
426
|
allowBlockCards: allowBlockCards,
|
|
424
427
|
editorAnalyticsApi: editorAnalyticsApi,
|
|
425
|
-
showUpgradeDiscoverability: showUpgradeDiscoverability
|
|
428
|
+
showUpgradeDiscoverability: showUpgradeDiscoverability,
|
|
429
|
+
areAnyNewToolbarFlagsEnabled: false
|
|
426
430
|
});
|
|
427
431
|
}
|
|
428
432
|
} : getLinkAppearanceDropdown({
|
|
@@ -436,8 +440,9 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
436
440
|
allowDatasource: cardOptions.allowDatasource,
|
|
437
441
|
showUpgradeDiscoverability: showUpgradeDiscoverability,
|
|
438
442
|
settingsConfig: getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink),
|
|
439
|
-
isDatasourceView: isDatasource
|
|
440
|
-
|
|
443
|
+
isDatasourceView: isDatasource,
|
|
444
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
445
|
+
})], _toConsumableArray(showDatasourceAppearance && areAllNewToolbarFlagsDisabled ? [{
|
|
441
446
|
type: 'custom',
|
|
442
447
|
fallback: [],
|
|
443
448
|
render: function render(editorView) {
|
|
@@ -447,14 +452,15 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
447
452
|
url: url,
|
|
448
453
|
editorView: editorView,
|
|
449
454
|
editorState: state,
|
|
450
|
-
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
455
|
+
inputMethod: INPUT_METHOD.FLOATING_TB,
|
|
456
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
451
457
|
});
|
|
452
458
|
}
|
|
453
|
-
}] : []), _toConsumableArray(!
|
|
459
|
+
}] : []), _toConsumableArray(!areAllNewToolbarFlagsDisabled ? [] : [{
|
|
454
460
|
type: 'separator'
|
|
455
461
|
}])));
|
|
456
462
|
}
|
|
457
|
-
if (!
|
|
463
|
+
if (!areAllNewToolbarFlagsDisabled) {
|
|
458
464
|
var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
|
|
459
465
|
return {
|
|
460
466
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
@@ -497,7 +503,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
497
503
|
}
|
|
498
504
|
};
|
|
499
505
|
};
|
|
500
|
-
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi) {
|
|
506
|
+
var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, areAnyNewToolbarFlagsEnabled) {
|
|
501
507
|
return node.type === inlineCard ? [{
|
|
502
508
|
id: 'editor.link.unlink',
|
|
503
509
|
focusEditoronEnter: true,
|
|
@@ -506,7 +512,7 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
|
|
|
506
512
|
icon: LinkBrokenIcon,
|
|
507
513
|
iconFallback: UnlinkIcon,
|
|
508
514
|
onClick: withToolbarMetadata(unlinkCard(node, state, editorAnalyticsApi))
|
|
509
|
-
}].concat(_toConsumableArray(
|
|
515
|
+
}].concat(_toConsumableArray(areAnyNewToolbarFlagsEnabled ? [] : [{
|
|
510
516
|
type: 'separator'
|
|
511
517
|
}])) : [];
|
|
512
518
|
};
|
|
@@ -525,7 +531,7 @@ export var getSettingsButton = function getSettingsButton(intl, editorAnalyticsA
|
|
|
525
531
|
var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance, pluginInjectionApi) {
|
|
526
532
|
var _node$attrs2;
|
|
527
533
|
var toolbarItems = [];
|
|
528
|
-
var
|
|
534
|
+
var areAllNewToolbarFlagsDisabled = !areToolbarFlagsEnabled(Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar));
|
|
529
535
|
var canShowAppearanceSwitch = function canShowAppearanceSwitch() {
|
|
530
536
|
// we do not show smart-link or the datasource icons when the node does not have a url to resolve
|
|
531
537
|
if (!metadata.url) {
|
|
@@ -538,7 +544,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
538
544
|
allowEmbeds = cardOptions.allowEmbeds,
|
|
539
545
|
showUpgradeDiscoverability = cardOptions.showUpgradeDiscoverability;
|
|
540
546
|
var url = metadata.url;
|
|
541
|
-
if (
|
|
547
|
+
if (areAllNewToolbarFlagsDisabled) {
|
|
542
548
|
toolbarItems.push({
|
|
543
549
|
type: 'custom',
|
|
544
550
|
fallback: [],
|
|
@@ -554,7 +560,8 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
554
560
|
allowBlockCards: allowBlockCards,
|
|
555
561
|
editorAnalyticsApi: editorAnalyticsApi,
|
|
556
562
|
showUpgradeDiscoverability: showUpgradeDiscoverability,
|
|
557
|
-
isDatasourceView: true
|
|
563
|
+
isDatasourceView: true,
|
|
564
|
+
areAnyNewToolbarFlagsEnabled: false
|
|
558
565
|
});
|
|
559
566
|
}
|
|
560
567
|
}, {
|
|
@@ -568,7 +575,8 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
568
575
|
editorView: editorView,
|
|
569
576
|
editorState: state,
|
|
570
577
|
selected: true,
|
|
571
|
-
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
578
|
+
inputMethod: INPUT_METHOD.FLOATING_TB,
|
|
579
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
572
580
|
});
|
|
573
581
|
}
|
|
574
582
|
}, {
|
|
@@ -586,7 +594,8 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
586
594
|
allowDatasource: cardOptions.allowDatasource,
|
|
587
595
|
showUpgradeDiscoverability: showUpgradeDiscoverability,
|
|
588
596
|
settingsConfig: getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink),
|
|
589
|
-
isDatasourceView: true
|
|
597
|
+
isDatasourceView: true,
|
|
598
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
590
599
|
}), {
|
|
591
600
|
type: 'separator'
|
|
592
601
|
});
|
|
@@ -606,7 +615,8 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
606
615
|
editorAnalyticsApi: editorAnalyticsApi,
|
|
607
616
|
editorView: editorView,
|
|
608
617
|
onLinkEditClick: getEditLinkCallback(editorAnalyticsApi, false),
|
|
609
|
-
currentAppearance: "datasource"
|
|
618
|
+
currentAppearance: "datasource",
|
|
619
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
610
620
|
});
|
|
611
621
|
}
|
|
612
622
|
});
|
|
@@ -623,13 +633,13 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
623
633
|
href: node.attrs.url,
|
|
624
634
|
target: '_blank'
|
|
625
635
|
});
|
|
626
|
-
if (
|
|
636
|
+
if (areAllNewToolbarFlagsDisabled) {
|
|
627
637
|
toolbarItems.push({
|
|
628
638
|
type: 'separator'
|
|
629
639
|
});
|
|
630
640
|
}
|
|
631
641
|
}
|
|
632
|
-
if (
|
|
642
|
+
if (areAllNewToolbarFlagsDisabled) {
|
|
633
643
|
toolbarItems.push({
|
|
634
644
|
type: 'copy-button',
|
|
635
645
|
supportsViewMode: true,
|
|
@@ -717,6 +727,7 @@ export var shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEna
|
|
|
717
727
|
};
|
|
718
728
|
export var getStartingToolbarItems = function getStartingToolbarItems(options, api) {
|
|
719
729
|
return function (intl, link, onEditLink, metadata, state) {
|
|
730
|
+
var areAllNewToolbarFlagsDisabled = !areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar));
|
|
720
731
|
var editLinkItem = options.allowDatasource ? [{
|
|
721
732
|
type: 'custom',
|
|
722
733
|
fallback: [],
|
|
@@ -732,7 +743,8 @@ export var getStartingToolbarItems = function getStartingToolbarItems(options, a
|
|
|
732
743
|
url: link,
|
|
733
744
|
editorView: editorView,
|
|
734
745
|
onLinkEditClick: onEditLink,
|
|
735
|
-
currentAppearance: "url"
|
|
746
|
+
currentAppearance: "url",
|
|
747
|
+
areAnyNewToolbarFlagsEnabled: !areAllNewToolbarFlagsDisabled
|
|
736
748
|
});
|
|
737
749
|
}
|
|
738
750
|
}] : [{
|
|
@@ -747,7 +759,7 @@ export var getStartingToolbarItems = function getStartingToolbarItems(options, a
|
|
|
747
759
|
}, {
|
|
748
760
|
type: 'separator'
|
|
749
761
|
}];
|
|
750
|
-
if (
|
|
762
|
+
if (!areAllNewToolbarFlagsDisabled) {
|
|
751
763
|
var _api$analytics2, _api$analytics3;
|
|
752
764
|
var hyperlinkAppearance = [getCustomHyperlinkAppearanceDropdown({
|
|
753
765
|
url: link,
|
|
@@ -811,7 +823,7 @@ export var getEndingToolbarItems = function getEndingToolbarItems(options, api)
|
|
|
811
823
|
* Require either provider to be supplied (controls link preferences)
|
|
812
824
|
* Or explicit user preferences config in order to enable button
|
|
813
825
|
*/
|
|
814
|
-
if ((options.provider || options.userPreferencesLink) && !areToolbarFlagsEnabled()) {
|
|
826
|
+
if ((options.provider || options.userPreferencesLink) && !areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar))) {
|
|
815
827
|
var _api$analytics5;
|
|
816
828
|
return [{
|
|
817
829
|
type: 'separator'
|
|
@@ -12,6 +12,7 @@ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
12
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
13
13
|
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
14
14
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
15
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
16
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
16
17
|
import type { CardPluginOptions, CardPluginState } from './types';
|
|
17
18
|
type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
|
|
@@ -32,7 +33,8 @@ export type CardPluginDependencies = [
|
|
|
32
33
|
OptionalPlugin<SelectionPlugin>,
|
|
33
34
|
OptionalPlugin<DummyAnnotationPlugin>,
|
|
34
35
|
OptionalPlugin<ConnectivityPlugin>,
|
|
35
|
-
OptionalPlugin<BasePlugin
|
|
36
|
+
OptionalPlugin<BasePlugin>,
|
|
37
|
+
OptionalPlugin<ToolbarPlugin>
|
|
36
38
|
];
|
|
37
39
|
export type CardPlugin = NextEditorPlugin<'card', {
|
|
38
40
|
actions: CardPluginActions;
|
|
@@ -5,6 +5,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { type CardContext } from '@atlaskit/link-provider';
|
|
7
7
|
export interface DatasourceAppearanceButtonProps {
|
|
8
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
8
9
|
cardContext?: CardContext;
|
|
9
10
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
10
11
|
editorState: EditorState;
|
|
@@ -14,4 +15,4 @@ export interface DatasourceAppearanceButtonProps {
|
|
|
14
15
|
selected?: boolean;
|
|
15
16
|
url: string;
|
|
16
17
|
}
|
|
17
|
-
export declare const DatasourceAppearanceButton: ({ intl, editorAnalyticsApi, url, editorView, editorState, selected, inputMethod, }: DatasourceAppearanceButtonProps) => jsx.JSX.Element;
|
|
18
|
+
export declare const DatasourceAppearanceButton: ({ intl, editorAnalyticsApi, url, editorView, editorState, selected, inputMethod, areAnyNewToolbarFlagsEnabled, }: DatasourceAppearanceButtonProps) => jsx.JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface EditToolbarPresentationProps extends EditDatasourceToolbarButtonWithCo
|
|
|
5
5
|
editVariant: EditVariant;
|
|
6
6
|
extensionKey?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const EditToolbarButtonPresentation: ({ datasourceId, currentAppearance, editorAnalyticsApi, editVariant, editorView, extensionKey, onLinkEditClick, intl, }: EditToolbarPresentationProps) => jsx.JSX.Element | null;
|
|
8
|
+
declare const EditToolbarButtonPresentation: ({ datasourceId, currentAppearance, editorAnalyticsApi, editVariant, editorView, extensionKey, onLinkEditClick, intl, areAnyNewToolbarFlagsEnabled, }: EditToolbarPresentationProps) => jsx.JSX.Element | null;
|
|
9
9
|
export default EditToolbarButtonPresentation;
|
|
@@ -7,6 +7,7 @@ import type { CardContext } from '@atlaskit/link-provider';
|
|
|
7
7
|
import { type CardType } from '../../types';
|
|
8
8
|
export type EditVariant = 'none' | 'edit-link' | 'edit-datasource' | 'edit-dropdown';
|
|
9
9
|
export interface EditDatasourceToolbarButtonWithCommonProps {
|
|
10
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
10
11
|
currentAppearance?: CardType;
|
|
11
12
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
12
13
|
editorView?: EditorView;
|
|
@@ -8,6 +8,7 @@ import type { CardContext } from '@atlaskit/link-provider';
|
|
|
8
8
|
export interface LinkToolbarAppearanceProps {
|
|
9
9
|
allowBlockCards?: boolean;
|
|
10
10
|
allowEmbeds?: boolean;
|
|
11
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
11
12
|
currentAppearance?: CardAppearance;
|
|
12
13
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
13
14
|
editorState: EditorState;
|
|
@@ -7,7 +7,7 @@ type Props = LinkToolbarAppearanceProps & {
|
|
|
7
7
|
settingsConfig: FloatingToolbarItem<Command>;
|
|
8
8
|
};
|
|
9
9
|
export declare const LinkAppearanceMenu: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, isDatasourceView, dispatchCommand, settingsConfig, }: Props) => React.JSX.Element | null;
|
|
10
|
-
export declare const getLinkAppearanceDropdown: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, showUpgradeDiscoverability, isDatasourceView, settingsConfig, }: LinkToolbarAppearanceProps & {
|
|
10
|
+
export declare const getLinkAppearanceDropdown: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, showUpgradeDiscoverability, isDatasourceView, settingsConfig, areAnyNewToolbarFlagsEnabled, }: LinkToolbarAppearanceProps & {
|
|
11
11
|
allowDatasource?: boolean;
|
|
12
12
|
settingsConfig: FloatingToolbarItem<Command>;
|
|
13
13
|
}) => FloatingToolbarDropdown<Command>;
|
|
@@ -3,9 +3,10 @@ import { type IntlShape } from 'react-intl-next';
|
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
type OpenPreviewPanelToolbarButtonProps = {
|
|
6
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
6
7
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
7
8
|
intl: IntlShape;
|
|
8
9
|
node: PMNode;
|
|
9
10
|
};
|
|
10
|
-
export declare const OpenPreviewPanelToolbarButton: ({ node, intl, }: OpenPreviewPanelToolbarButtonProps) => React.JSX.Element | null;
|
|
11
|
+
export declare const OpenPreviewPanelToolbarButton: ({ node, intl, areAnyNewToolbarFlagsEnabled, }: OpenPreviewPanelToolbarButtonProps) => React.JSX.Element | null;
|
|
11
12
|
export {};
|
|
@@ -12,6 +12,7 @@ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
12
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
13
13
|
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
14
14
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
15
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
16
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
16
17
|
import type { CardPluginOptions, CardPluginState } from './types';
|
|
17
18
|
type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
|
|
@@ -32,7 +33,8 @@ export type CardPluginDependencies = [
|
|
|
32
33
|
OptionalPlugin<SelectionPlugin>,
|
|
33
34
|
OptionalPlugin<DummyAnnotationPlugin>,
|
|
34
35
|
OptionalPlugin<ConnectivityPlugin>,
|
|
35
|
-
OptionalPlugin<BasePlugin
|
|
36
|
+
OptionalPlugin<BasePlugin>,
|
|
37
|
+
OptionalPlugin<ToolbarPlugin>
|
|
36
38
|
];
|
|
37
39
|
export type CardPlugin = NextEditorPlugin<'card', {
|
|
38
40
|
actions: CardPluginActions;
|
|
@@ -5,6 +5,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { type CardContext } from '@atlaskit/link-provider';
|
|
7
7
|
export interface DatasourceAppearanceButtonProps {
|
|
8
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
8
9
|
cardContext?: CardContext;
|
|
9
10
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
10
11
|
editorState: EditorState;
|
|
@@ -14,4 +15,4 @@ export interface DatasourceAppearanceButtonProps {
|
|
|
14
15
|
selected?: boolean;
|
|
15
16
|
url: string;
|
|
16
17
|
}
|
|
17
|
-
export declare const DatasourceAppearanceButton: ({ intl, editorAnalyticsApi, url, editorView, editorState, selected, inputMethod, }: DatasourceAppearanceButtonProps) => jsx.JSX.Element;
|
|
18
|
+
export declare const DatasourceAppearanceButton: ({ intl, editorAnalyticsApi, url, editorView, editorState, selected, inputMethod, areAnyNewToolbarFlagsEnabled, }: DatasourceAppearanceButtonProps) => jsx.JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface EditToolbarPresentationProps extends EditDatasourceToolbarButtonWithCo
|
|
|
5
5
|
editVariant: EditVariant;
|
|
6
6
|
extensionKey?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const EditToolbarButtonPresentation: ({ datasourceId, currentAppearance, editorAnalyticsApi, editVariant, editorView, extensionKey, onLinkEditClick, intl, }: EditToolbarPresentationProps) => jsx.JSX.Element | null;
|
|
8
|
+
declare const EditToolbarButtonPresentation: ({ datasourceId, currentAppearance, editorAnalyticsApi, editVariant, editorView, extensionKey, onLinkEditClick, intl, areAnyNewToolbarFlagsEnabled, }: EditToolbarPresentationProps) => jsx.JSX.Element | null;
|
|
9
9
|
export default EditToolbarButtonPresentation;
|
|
@@ -7,6 +7,7 @@ import type { CardContext } from '@atlaskit/link-provider';
|
|
|
7
7
|
import { type CardType } from '../../types';
|
|
8
8
|
export type EditVariant = 'none' | 'edit-link' | 'edit-datasource' | 'edit-dropdown';
|
|
9
9
|
export interface EditDatasourceToolbarButtonWithCommonProps {
|
|
10
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
10
11
|
currentAppearance?: CardType;
|
|
11
12
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
12
13
|
editorView?: EditorView;
|
|
@@ -8,6 +8,7 @@ import type { CardContext } from '@atlaskit/link-provider';
|
|
|
8
8
|
export interface LinkToolbarAppearanceProps {
|
|
9
9
|
allowBlockCards?: boolean;
|
|
10
10
|
allowEmbeds?: boolean;
|
|
11
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
11
12
|
currentAppearance?: CardAppearance;
|
|
12
13
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
13
14
|
editorState: EditorState;
|
|
@@ -7,7 +7,7 @@ type Props = LinkToolbarAppearanceProps & {
|
|
|
7
7
|
settingsConfig: FloatingToolbarItem<Command>;
|
|
8
8
|
};
|
|
9
9
|
export declare const LinkAppearanceMenu: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, isDatasourceView, dispatchCommand, settingsConfig, }: Props) => React.JSX.Element | null;
|
|
10
|
-
export declare const getLinkAppearanceDropdown: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, showUpgradeDiscoverability, isDatasourceView, settingsConfig, }: LinkToolbarAppearanceProps & {
|
|
10
|
+
export declare const getLinkAppearanceDropdown: ({ url, intl, currentAppearance, editorState, allowEmbeds, allowBlockCards, allowDatasource, editorAnalyticsApi, showUpgradeDiscoverability, isDatasourceView, settingsConfig, areAnyNewToolbarFlagsEnabled, }: LinkToolbarAppearanceProps & {
|
|
11
11
|
allowDatasource?: boolean;
|
|
12
12
|
settingsConfig: FloatingToolbarItem<Command>;
|
|
13
13
|
}) => FloatingToolbarDropdown<Command>;
|
|
@@ -3,9 +3,10 @@ import { type IntlShape } from 'react-intl-next';
|
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
type OpenPreviewPanelToolbarButtonProps = {
|
|
6
|
+
areAnyNewToolbarFlagsEnabled: boolean;
|
|
6
7
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
7
8
|
intl: IntlShape;
|
|
8
9
|
node: PMNode;
|
|
9
10
|
};
|
|
10
|
-
export declare const OpenPreviewPanelToolbarButton: ({ node, intl, }: OpenPreviewPanelToolbarButtonProps) => React.JSX.Element | null;
|
|
11
|
+
export declare const OpenPreviewPanelToolbarButton: ({ node, intl, areAnyNewToolbarFlagsEnabled, }: OpenPreviewPanelToolbarButtonProps) => React.JSX.Element | null;
|
|
11
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-editor-disabled": "^4.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-feature-flags": "^3.0.0",
|
|
44
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^6.
|
|
44
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^6.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-grid": "^4.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-toolbar": "^1.2.0",
|
|
46
47
|
"@atlaskit/editor-plugin-width": "^5.0.0",
|
|
47
48
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
48
49
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
@@ -54,14 +55,14 @@
|
|
|
54
55
|
"@atlaskit/link-datasource": "^4.21.0",
|
|
55
56
|
"@atlaskit/linking-common": "^9.5.0",
|
|
56
57
|
"@atlaskit/linking-types": "^14.0.0",
|
|
57
|
-
"@atlaskit/menu": "^8.
|
|
58
|
+
"@atlaskit/menu": "^8.4.0",
|
|
58
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
59
60
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
60
|
-
"@atlaskit/primitives": "^14.
|
|
61
|
-
"@atlaskit/smart-card": "^40.
|
|
61
|
+
"@atlaskit/primitives": "^14.14.0",
|
|
62
|
+
"@atlaskit/smart-card": "^40.21.0",
|
|
62
63
|
"@atlaskit/theme": "^20.0.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
64
|
-
"@atlaskit/tokens": "^6.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
65
|
+
"@atlaskit/tokens": "^6.3.0",
|
|
65
66
|
"@babel/runtime": "^7.0.0",
|
|
66
67
|
"@emotion/react": "^11.7.1",
|
|
67
68
|
"lodash": "^4.17.21",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"uuid": "^3.1.0"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^108.
|
|
74
|
+
"@atlaskit/editor-common": "^108.6.0",
|
|
74
75
|
"@atlaskit/link-provider": "^3.7.0",
|
|
75
76
|
"react": "^18.2.0",
|
|
76
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|