@atlaskit/editor-plugin-card 11.5.10 → 11.5.12
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 +14 -0
- package/dist/cjs/ui/InlineCardOverlay/index.js +2 -2
- package/dist/cjs/ui/LayoutButton/index.js +4 -4
- package/dist/cjs/ui/toolbar.js +7 -11
- package/dist/es2019/ui/InlineCardOverlay/index.js +1 -1
- package/dist/es2019/ui/LayoutButton/index.js +2 -2
- package/dist/es2019/ui/toolbar.js +8 -12
- package/dist/esm/ui/InlineCardOverlay/index.js +1 -1
- package/dist/esm/ui/LayoutButton/index.js +2 -2
- package/dist/esm/ui/toolbar.js +8 -12
- package/dist/types/ui/preview/PreviewInvoker.d.ts +1 -1
- package/dist/types-ts4.5/ui/preview/PreviewInvoker.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 11.5.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
8
|
+
Icon entrypoint migration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.5.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.5.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
19
|
-
var
|
|
19
|
+
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
21
|
var _utils = require("./utils");
|
|
22
22
|
var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
|
|
@@ -257,7 +257,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
|
|
|
257
257
|
className: ICON_AND_LABEL_CLASSNAME
|
|
258
258
|
}, (0, _react2.jsx)("span", {
|
|
259
259
|
css: iconStyles
|
|
260
|
-
}, (0, _react2.jsx)(
|
|
260
|
+
}, (0, _react2.jsx)(_customize.default, {
|
|
261
261
|
label: label,
|
|
262
262
|
LEGACY_size: iconSize.current,
|
|
263
263
|
testId: "".concat(testId, "-icon")
|
|
@@ -13,8 +13,8 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
13
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
15
15
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var _growHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/grow-horizontal"));
|
|
17
|
+
var _shrinkHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-horizontal"));
|
|
18
18
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
19
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
20
|
var _actions = require("../../pm-plugins/actions");
|
|
@@ -70,9 +70,9 @@ var LayoutButton = exports.LayoutButton = function LayoutButton(_ref) {
|
|
|
70
70
|
css: toolbarButtonWrapperStyles,
|
|
71
71
|
title: title,
|
|
72
72
|
onClick: handleClick,
|
|
73
|
-
iconBefore: layout === 'full-width' ? (0, _react2.jsx)(
|
|
73
|
+
iconBefore: layout === 'full-width' ? (0, _react2.jsx)(_shrinkHorizontal.default, {
|
|
74
74
|
label: title
|
|
75
|
-
}) : (0, _react2.jsx)(
|
|
75
|
+
}) : (0, _react2.jsx)(_growHorizontal.default, {
|
|
76
76
|
label: title
|
|
77
77
|
})
|
|
78
78
|
}));
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -27,10 +27,6 @@ var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
|
27
27
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
28
28
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
29
29
|
var _comment2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/comment"));
|
|
30
|
-
var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
|
|
31
|
-
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
32
|
-
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
33
|
-
var _settingsEditorSettings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings--editor-settings"));
|
|
34
30
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
35
31
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
36
32
|
var _doc = require("../pm-plugins/doc");
|
|
@@ -351,7 +347,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
351
347
|
id: 'editor.link.openLink',
|
|
352
348
|
type: 'button',
|
|
353
349
|
icon: _linkExternal.default,
|
|
354
|
-
iconFallback:
|
|
350
|
+
iconFallback: _linkExternal.default,
|
|
355
351
|
metadata: metadata,
|
|
356
352
|
className: 'hyperlink-open-link',
|
|
357
353
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -377,7 +373,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
377
373
|
type: 'button',
|
|
378
374
|
appearance: 'danger',
|
|
379
375
|
icon: _delete.default,
|
|
380
|
-
iconFallback:
|
|
376
|
+
iconFallback: _delete.default,
|
|
381
377
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
382
378
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
383
379
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -391,7 +387,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
391
387
|
id: 'editor.link.openLink',
|
|
392
388
|
type: 'button',
|
|
393
389
|
icon: _linkExternal.default,
|
|
394
|
-
iconFallback:
|
|
390
|
+
iconFallback: _linkExternal.default,
|
|
395
391
|
metadata: metadata,
|
|
396
392
|
className: 'hyperlink-open-link',
|
|
397
393
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -519,7 +515,7 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
|
|
|
519
515
|
type: 'button',
|
|
520
516
|
title: intl.formatMessage(_messages.linkToolbarMessages.unlink),
|
|
521
517
|
icon: _linkBroken.default,
|
|
522
|
-
iconFallback:
|
|
518
|
+
iconFallback: _linkBroken.default,
|
|
523
519
|
onClick: withToolbarMetadata(unlinkCard(node, state, editorAnalyticsApi))
|
|
524
520
|
}].concat((0, _toConsumableArray2.default)(areAnyNewToolbarFlagsEnabled ? [] : [{
|
|
525
521
|
type: 'separator'
|
|
@@ -530,7 +526,7 @@ var getSettingsButton = exports.getSettingsButton = function getSettingsButton(i
|
|
|
530
526
|
id: 'editor.link.settings',
|
|
531
527
|
type: 'button',
|
|
532
528
|
icon: _settings.default,
|
|
533
|
-
iconFallback:
|
|
529
|
+
iconFallback: _settings.default,
|
|
534
530
|
title: intl.formatMessage(_messages.linkToolbarMessages.settingsLink),
|
|
535
531
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
536
532
|
href: userPreferencesLink || (0, _link.getLinkPreferencesURLFromENV)(),
|
|
@@ -634,7 +630,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
634
630
|
id: 'editor.link.openLink',
|
|
635
631
|
type: 'button',
|
|
636
632
|
icon: _linkExternal.default,
|
|
637
|
-
iconFallback:
|
|
633
|
+
iconFallback: _linkExternal.default,
|
|
638
634
|
metadata: metadata,
|
|
639
635
|
className: 'hyperlink-open-link',
|
|
640
636
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -667,7 +663,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
667
663
|
type: 'button',
|
|
668
664
|
appearance: 'danger',
|
|
669
665
|
icon: _delete.default,
|
|
670
|
-
iconFallback:
|
|
666
|
+
iconFallback: _delete.default,
|
|
671
667
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
672
668
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
673
669
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -13,7 +13,7 @@ import debounce from 'lodash/debounce';
|
|
|
13
13
|
import { useIntl } from 'react-intl-next';
|
|
14
14
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
|
|
16
|
-
import CustomizeIcon from '@atlaskit/icon/core/
|
|
16
|
+
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
17
17
|
import { B100, N0, N700 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
|
|
19
19
|
const DEBOUNCE_IN_MS = 5;
|
|
@@ -11,8 +11,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
11
11
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
12
12
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
|
|
14
|
-
import GrowHorizontalIcon from '@atlaskit/icon/core/
|
|
15
|
-
import ShrinkHorizontalIcon from '@atlaskit/icon/core/
|
|
14
|
+
import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
|
|
15
|
+
import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
|
|
16
16
|
import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
|
|
17
17
|
import { B300, N20A, N300 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { setCardLayout } from '../../pm-plugins/actions';
|
|
@@ -17,11 +17,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
17
17
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
18
18
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
19
19
|
import LegacyCommentIcon from '@atlaskit/icon/core/migration/comment';
|
|
20
|
-
import
|
|
21
|
-
import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
22
|
-
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
23
|
-
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
24
|
-
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
20
|
+
import CogIcon from '@atlaskit/icon/core/settings';
|
|
25
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
26
22
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
27
23
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -339,7 +335,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
339
335
|
id: 'editor.link.openLink',
|
|
340
336
|
type: 'button',
|
|
341
337
|
icon: LinkExternalIcon,
|
|
342
|
-
iconFallback:
|
|
338
|
+
iconFallback: LinkExternalIcon,
|
|
343
339
|
metadata: metadata,
|
|
344
340
|
className: 'hyperlink-open-link',
|
|
345
341
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -365,7 +361,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
365
361
|
type: 'button',
|
|
366
362
|
appearance: 'danger',
|
|
367
363
|
icon: DeleteIcon,
|
|
368
|
-
iconFallback:
|
|
364
|
+
iconFallback: DeleteIcon,
|
|
369
365
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
370
366
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
371
367
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -379,7 +375,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
379
375
|
id: 'editor.link.openLink',
|
|
380
376
|
type: 'button',
|
|
381
377
|
icon: LinkExternalIcon,
|
|
382
|
-
iconFallback:
|
|
378
|
+
iconFallback: LinkExternalIcon,
|
|
383
379
|
metadata: metadata,
|
|
384
380
|
className: 'hyperlink-open-link',
|
|
385
381
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -504,7 +500,7 @@ const getUnlinkButtonGroup = (state, intl, node, inlineCard, editorAnalyticsApi,
|
|
|
504
500
|
type: 'button',
|
|
505
501
|
title: intl.formatMessage(linkToolbarMessages.unlink),
|
|
506
502
|
icon: LinkBrokenIcon,
|
|
507
|
-
iconFallback:
|
|
503
|
+
iconFallback: LinkBrokenIcon,
|
|
508
504
|
onClick: withToolbarMetadata(unlinkCard(node, state, editorAnalyticsApi))
|
|
509
505
|
}, ...(areAnyNewToolbarFlagsEnabled ? [] : [{
|
|
510
506
|
type: 'separator'
|
|
@@ -514,7 +510,7 @@ export const getSettingsButton = (intl, editorAnalyticsApi, userPreferencesLink)
|
|
|
514
510
|
return {
|
|
515
511
|
id: 'editor.link.settings',
|
|
516
512
|
type: 'button',
|
|
517
|
-
icon:
|
|
513
|
+
icon: CogIcon,
|
|
518
514
|
iconFallback: CogIcon,
|
|
519
515
|
title: intl.formatMessage(linkToolbarMessages.settingsLink),
|
|
520
516
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
@@ -619,7 +615,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
619
615
|
id: 'editor.link.openLink',
|
|
620
616
|
type: 'button',
|
|
621
617
|
icon: LinkExternalIcon,
|
|
622
|
-
iconFallback:
|
|
618
|
+
iconFallback: LinkExternalIcon,
|
|
623
619
|
metadata: metadata,
|
|
624
620
|
className: 'hyperlink-open-link',
|
|
625
621
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -652,7 +648,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
652
648
|
type: 'button',
|
|
653
649
|
appearance: 'danger',
|
|
654
650
|
icon: DeleteIcon,
|
|
655
|
-
iconFallback:
|
|
651
|
+
iconFallback: DeleteIcon,
|
|
656
652
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
657
653
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
658
654
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -17,7 +17,7 @@ import debounce from 'lodash/debounce';
|
|
|
17
17
|
import { useIntl } from 'react-intl-next';
|
|
18
18
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
19
19
|
import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
|
|
20
|
-
import CustomizeIcon from '@atlaskit/icon/core/
|
|
20
|
+
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
21
21
|
import { B100, N0, N700 } from '@atlaskit/theme/colors';
|
|
22
22
|
import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
|
|
23
23
|
var DEBOUNCE_IN_MS = 5;
|
|
@@ -14,8 +14,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
14
14
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
16
16
|
import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
|
|
17
|
-
import GrowHorizontalIcon from '@atlaskit/icon/core/
|
|
18
|
-
import ShrinkHorizontalIcon from '@atlaskit/icon/core/
|
|
17
|
+
import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
|
|
18
|
+
import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
|
|
19
19
|
import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
|
|
20
20
|
import { B300, N20A, N300 } from '@atlaskit/theme/colors';
|
|
21
21
|
import { setCardLayout } from '../../pm-plugins/actions';
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -21,11 +21,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
21
21
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
22
22
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
23
23
|
import LegacyCommentIcon from '@atlaskit/icon/core/migration/comment';
|
|
24
|
-
import
|
|
25
|
-
import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
26
|
-
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
27
|
-
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
28
|
-
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
24
|
+
import CogIcon from '@atlaskit/icon/core/settings';
|
|
29
25
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
30
26
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
31
27
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -342,7 +338,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
342
338
|
id: 'editor.link.openLink',
|
|
343
339
|
type: 'button',
|
|
344
340
|
icon: LinkExternalIcon,
|
|
345
|
-
iconFallback:
|
|
341
|
+
iconFallback: LinkExternalIcon,
|
|
346
342
|
metadata: metadata,
|
|
347
343
|
className: 'hyperlink-open-link',
|
|
348
344
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -368,7 +364,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
368
364
|
type: 'button',
|
|
369
365
|
appearance: 'danger',
|
|
370
366
|
icon: DeleteIcon,
|
|
371
|
-
iconFallback:
|
|
367
|
+
iconFallback: DeleteIcon,
|
|
372
368
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
373
369
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
374
370
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -382,7 +378,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
382
378
|
id: 'editor.link.openLink',
|
|
383
379
|
type: 'button',
|
|
384
380
|
icon: LinkExternalIcon,
|
|
385
|
-
iconFallback:
|
|
381
|
+
iconFallback: LinkExternalIcon,
|
|
386
382
|
metadata: metadata,
|
|
387
383
|
className: 'hyperlink-open-link',
|
|
388
384
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -510,7 +506,7 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
|
|
|
510
506
|
type: 'button',
|
|
511
507
|
title: intl.formatMessage(linkToolbarMessages.unlink),
|
|
512
508
|
icon: LinkBrokenIcon,
|
|
513
|
-
iconFallback:
|
|
509
|
+
iconFallback: LinkBrokenIcon,
|
|
514
510
|
onClick: withToolbarMetadata(unlinkCard(node, state, editorAnalyticsApi))
|
|
515
511
|
}].concat(_toConsumableArray(areAnyNewToolbarFlagsEnabled ? [] : [{
|
|
516
512
|
type: 'separator'
|
|
@@ -520,7 +516,7 @@ export var getSettingsButton = function getSettingsButton(intl, editorAnalyticsA
|
|
|
520
516
|
return {
|
|
521
517
|
id: 'editor.link.settings',
|
|
522
518
|
type: 'button',
|
|
523
|
-
icon:
|
|
519
|
+
icon: CogIcon,
|
|
524
520
|
iconFallback: CogIcon,
|
|
525
521
|
title: intl.formatMessage(linkToolbarMessages.settingsLink),
|
|
526
522
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
@@ -625,7 +621,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
625
621
|
id: 'editor.link.openLink',
|
|
626
622
|
type: 'button',
|
|
627
623
|
icon: LinkExternalIcon,
|
|
628
|
-
iconFallback:
|
|
624
|
+
iconFallback: LinkExternalIcon,
|
|
629
625
|
metadata: metadata,
|
|
630
626
|
className: 'hyperlink-open-link',
|
|
631
627
|
title: intl.formatMessage(linkMessages.openLink),
|
|
@@ -658,7 +654,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
658
654
|
type: 'button',
|
|
659
655
|
appearance: 'danger',
|
|
660
656
|
icon: DeleteIcon,
|
|
661
|
-
iconFallback:
|
|
657
|
+
iconFallback: DeleteIcon,
|
|
662
658
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
663
659
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
664
660
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -8,5 +8,5 @@ type PreviewInvokerProps = {
|
|
|
8
8
|
}) => ReactNode;
|
|
9
9
|
url: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const PreviewInvoker: ({ url, appearance, children }: PreviewInvokerProps) => React.JSX.Element;
|
|
11
|
+
export declare const PreviewInvoker: ({ url, appearance, children, }: PreviewInvokerProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -8,5 +8,5 @@ type PreviewInvokerProps = {
|
|
|
8
8
|
}) => ReactNode;
|
|
9
9
|
url: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const PreviewInvoker: ({ url, appearance, children }: PreviewInvokerProps) => React.JSX.Element;
|
|
11
|
+
export declare const PreviewInvoker: ({ url, appearance, children, }: PreviewInvokerProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.12",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@atlaskit/editor-plugin-grid": "^6.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
46
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
46
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
49
|
-
"@atlaskit/icon": "^29.
|
|
49
|
+
"@atlaskit/icon": "^29.1.0",
|
|
50
50
|
"@atlaskit/link": "^3.2.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
60
60
|
"@atlaskit/primitives": "^16.4.0",
|
|
61
61
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
62
|
-
"@atlaskit/smart-card": "^43.
|
|
62
|
+
"@atlaskit/smart-card": "^43.16.0",
|
|
63
63
|
"@atlaskit/theme": "^21.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
-
"@atlaskit/tokens": "^8.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
65
|
+
"@atlaskit/tokens": "^8.5.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"lodash": "^4.17.21",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.44.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|