@atlaskit/editor-plugin-card 6.6.8 → 6.6.10
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 +18 -0
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +1 -2
- package/dist/cjs/nodeviews/lazy-block-card.js +1 -3
- package/dist/cjs/nodeviews/lazy-embed-card.js +1 -3
- package/dist/cjs/pm-plugins/doc.js +1 -1
- package/dist/cjs/ui/OpenButtonOverlay/index.js +2 -3
- package/dist/cjs/ui/toolbar.js +2 -2
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +1 -2
- package/dist/es2019/nodeviews/lazy-block-card.js +1 -3
- package/dist/es2019/nodeviews/lazy-embed-card.js +1 -3
- package/dist/es2019/pm-plugins/doc.js +1 -1
- package/dist/es2019/ui/OpenButtonOverlay/index.js +2 -3
- package/dist/es2019/ui/toolbar.js +2 -2
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +1 -2
- package/dist/esm/nodeviews/lazy-block-card.js +1 -3
- package/dist/esm/nodeviews/lazy-embed-card.js +1 -3
- package/dist/esm/pm-plugins/doc.js +1 -1
- package/dist/esm/ui/OpenButtonOverlay/index.js +2 -3
- package/dist/esm/ui/toolbar.js +2 -2
- package/package.json +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.6.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#174513](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174513)
|
|
8
|
+
[`9190f78c5c704`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9190f78c5c704) -
|
|
9
|
+
Remove platform_editor_exp_disable_lnv experiment key.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.6.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#173379](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173379)
|
|
17
|
+
[`99e2b882f5cf0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99e2b882f5cf0) -
|
|
18
|
+
Clean up platform_editor_controls_patch_3
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 6.6.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
12
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
var _actions = require("../pm-plugins/actions");
|
|
16
15
|
var _pluginKey = require("../pm-plugins/plugin-key");
|
|
@@ -123,7 +122,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
123
122
|
});
|
|
124
123
|
}, [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed, pluginInjectionApi]);
|
|
125
124
|
var shouldShowOpenButtonOverlay = (0, _react.useMemo)(function () {
|
|
126
|
-
var shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless'
|
|
125
|
+
var shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless';
|
|
127
126
|
return (mode === 'edit' || editorAppearance === 'comment' || shouldShowOpenButtonOverlayInChomeless) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
|
|
128
127
|
}, [mode, editorAppearance]);
|
|
129
128
|
var innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
@@ -11,9 +11,7 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
11
11
|
var _blockCard = require("./blockCard");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var lazyBlockCardView = exports.lazyBlockCardView = function lazyBlockCardView(props) {
|
|
14
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)
|
|
15
|
-
exposure: true
|
|
16
|
-
})) {
|
|
14
|
+
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
17
15
|
return (0, _blockCard.blockCardNodeView)(props);
|
|
18
16
|
}
|
|
19
17
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -11,9 +11,7 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
11
11
|
var _embedCard = require("./embedCard");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var lazyEmbedCardView = exports.lazyEmbedCardView = function lazyEmbedCardView(props) {
|
|
14
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)
|
|
15
|
-
exposure: true
|
|
16
|
-
})) {
|
|
14
|
+
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
17
15
|
return (0, _embedCard.embedCardNodeView)(props);
|
|
18
16
|
}
|
|
19
17
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -251,7 +251,7 @@ var convertHyperlinkToSmartCard = exports.convertHyperlinkToSmartCard = function
|
|
|
251
251
|
shouldReplaceLink: true
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
|
-
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
254
|
+
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
255
255
|
var activeLinkMark = (0, _link.getActiveLinkMark)(state);
|
|
256
256
|
if (activeLinkMark) {
|
|
257
257
|
var linkMark = activeLinkMark.node.marks.find(function (mark) {
|
|
@@ -13,7 +13,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _primitives = require("@atlaskit/primitives");
|
|
18
17
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
18
|
var _toolbar = require("../toolbar");
|
|
@@ -82,7 +81,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
82
81
|
view = _ref.view;
|
|
83
82
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
84
83
|
formatMessage = _useIntl.formatMessage;
|
|
85
|
-
var label =
|
|
84
|
+
var label = formatMessage(_messages.cardMessages.openButtonTitle);
|
|
86
85
|
var containerRef = (0, _react.useRef)(null);
|
|
87
86
|
var openButtonRef = (0, _react.useRef)(null);
|
|
88
87
|
var hiddenTextRef = (0, _react.useRef)(null);
|
|
@@ -193,7 +192,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
193
192
|
href: url,
|
|
194
193
|
target: "_blank",
|
|
195
194
|
style: {
|
|
196
|
-
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless'
|
|
195
|
+
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless' ? '1px' : "var(--ds-space-025, 2px)"
|
|
197
196
|
},
|
|
198
197
|
onClick: handleClick
|
|
199
198
|
}, (0, _react2.jsx)(_primitives.Box, {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -478,7 +478,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
478
478
|
};
|
|
479
479
|
// testId is required to show focus on trigger button on ESC key press
|
|
480
480
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
481
|
-
var testId =
|
|
481
|
+
var testId = 'card-overflow-dropdown-trigger';
|
|
482
482
|
var overflowMenuConfig = [{
|
|
483
483
|
type: 'separator',
|
|
484
484
|
fullHeight: true
|
|
@@ -672,7 +672,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
672
672
|
} else {
|
|
673
673
|
// testId is required to show focus on trigger button on ESC key press
|
|
674
674
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
675
|
-
var testId =
|
|
675
|
+
var testId = 'datasource-overflow-dropdown-trigger';
|
|
676
676
|
|
|
677
677
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
678
678
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { registerRemoveOverlay } from '../pm-plugins/actions';
|
|
7
6
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -101,7 +100,7 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
101
100
|
pluginInjectionApi: pluginInjectionApi
|
|
102
101
|
}), [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed, pluginInjectionApi]);
|
|
103
102
|
const shouldShowOpenButtonOverlay = useMemo(() => {
|
|
104
|
-
const shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless'
|
|
103
|
+
const shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless';
|
|
105
104
|
return (mode === 'edit' || editorAppearance === 'comment' || shouldShowOpenButtonOverlayInChomeless) && editorExperiment('platform_editor_controls', 'variant1');
|
|
106
105
|
}, [mode, editorAppearance]);
|
|
107
106
|
const innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
@@ -2,9 +2,7 @@ import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
3
|
import { blockCardNodeView } from './blockCard';
|
|
4
4
|
export const lazyBlockCardView = props => {
|
|
5
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
6
|
-
exposure: true
|
|
7
|
-
})) {
|
|
5
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
6
|
return blockCardNodeView(props);
|
|
9
7
|
}
|
|
10
8
|
return withLazyLoading({
|
|
@@ -2,9 +2,7 @@ import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
3
|
import { embedCardNodeView } from './embedCard';
|
|
4
4
|
export const lazyEmbedCardView = props => {
|
|
5
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
6
|
-
exposure: true
|
|
7
|
-
})) {
|
|
5
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
6
|
return embedCardNodeView(props);
|
|
9
7
|
}
|
|
10
8
|
return withLazyLoading({
|
|
@@ -230,7 +230,7 @@ export const convertHyperlinkToSmartCard = (state, source, appearance, normalize
|
|
|
230
230
|
analyticsAction: ACTION.CHANGED_TYPE,
|
|
231
231
|
shouldReplaceLink: true
|
|
232
232
|
});
|
|
233
|
-
if (editorExperiment('platform_editor_controls', 'variant1')
|
|
233
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
234
234
|
const activeLinkMark = getActiveLinkMark(state);
|
|
235
235
|
if (activeLinkMark) {
|
|
236
236
|
const linkMark = activeLinkMark.node.marks.find(mark => mark.type === link);
|
|
@@ -11,7 +11,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
11
11
|
import { cardMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
16
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
16
|
import { visitCardLinkAnalyticsOnly } from '../toolbar';
|
|
@@ -69,7 +68,7 @@ const OpenButtonOverlay = ({
|
|
|
69
68
|
const {
|
|
70
69
|
formatMessage
|
|
71
70
|
} = useIntl();
|
|
72
|
-
const label =
|
|
71
|
+
const label = formatMessage(cardMessages.openButtonTitle);
|
|
73
72
|
const containerRef = useRef(null);
|
|
74
73
|
const openButtonRef = useRef(null);
|
|
75
74
|
const hiddenTextRef = useRef(null);
|
|
@@ -170,7 +169,7 @@ const OpenButtonOverlay = ({
|
|
|
170
169
|
href: url,
|
|
171
170
|
target: "_blank",
|
|
172
171
|
style: {
|
|
173
|
-
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless'
|
|
172
|
+
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless' ? '1px' : "var(--ds-space-025, 2px)"
|
|
174
173
|
},
|
|
175
174
|
onClick: handleClick
|
|
176
175
|
}, jsx(Box, {
|
|
@@ -469,7 +469,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
469
469
|
});
|
|
470
470
|
// testId is required to show focus on trigger button on ESC key press
|
|
471
471
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
472
|
-
const testId =
|
|
472
|
+
const testId = 'card-overflow-dropdown-trigger';
|
|
473
473
|
const overflowMenuConfig = [{
|
|
474
474
|
type: 'separator',
|
|
475
475
|
fullHeight: true
|
|
@@ -665,7 +665,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
665
665
|
} else {
|
|
666
666
|
// testId is required to show focus on trigger button on ESC key press
|
|
667
667
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
668
|
-
const testId =
|
|
668
|
+
const testId = 'datasource-overflow-dropdown-trigger';
|
|
669
669
|
|
|
670
670
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
671
671
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
|
@@ -2,7 +2,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
3
3
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { registerRemoveOverlay } from '../pm-plugins/actions';
|
|
8
7
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -114,7 +113,7 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
114
113
|
});
|
|
115
114
|
}, [actionOptions, cardContext, getPos, isHovered, node, onClick, onResolve, useAlternativePreloader, view, isPageSSRed, pluginInjectionApi]);
|
|
116
115
|
var shouldShowOpenButtonOverlay = useMemo(function () {
|
|
117
|
-
var shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless'
|
|
116
|
+
var shouldShowOpenButtonOverlayInChomeless = editorAppearance === 'chromeless';
|
|
118
117
|
return (mode === 'edit' || editorAppearance === 'comment' || shouldShowOpenButtonOverlayInChomeless) && editorExperiment('platform_editor_controls', 'variant1');
|
|
119
118
|
}, [mode, editorAppearance]);
|
|
120
119
|
var innerCard = shouldShowOpenButtonOverlay ? innerCardWithOpenButtonOverlay : innerCardOriginal;
|
|
@@ -2,9 +2,7 @@ import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
3
|
import { blockCardNodeView } from './blockCard';
|
|
4
4
|
export var lazyBlockCardView = function lazyBlockCardView(props) {
|
|
5
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
6
|
-
exposure: true
|
|
7
|
-
})) {
|
|
5
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
6
|
return blockCardNodeView(props);
|
|
9
7
|
}
|
|
10
8
|
return withLazyLoading({
|
|
@@ -2,9 +2,7 @@ import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
3
|
import { embedCardNodeView } from './embedCard';
|
|
4
4
|
export var lazyEmbedCardView = function lazyEmbedCardView(props) {
|
|
5
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)
|
|
6
|
-
exposure: true
|
|
7
|
-
})) {
|
|
5
|
+
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
6
|
return embedCardNodeView(props);
|
|
9
7
|
}
|
|
10
8
|
return withLazyLoading({
|
|
@@ -245,7 +245,7 @@ export var convertHyperlinkToSmartCard = function convertHyperlinkToSmartCard(st
|
|
|
245
245
|
shouldReplaceLink: true
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
|
-
if (editorExperiment('platform_editor_controls', 'variant1')
|
|
248
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
249
249
|
var activeLinkMark = getActiveLinkMark(state);
|
|
250
250
|
if (activeLinkMark) {
|
|
251
251
|
var linkMark = activeLinkMark.node.marks.find(function (mark) {
|
|
@@ -12,7 +12,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
12
12
|
import { cardMessages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { visitCardLinkAnalyticsOnly } from '../toolbar';
|
|
@@ -69,7 +68,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
69
68
|
view = _ref.view;
|
|
70
69
|
var _useIntl = useIntl(),
|
|
71
70
|
formatMessage = _useIntl.formatMessage;
|
|
72
|
-
var label =
|
|
71
|
+
var label = formatMessage(cardMessages.openButtonTitle);
|
|
73
72
|
var containerRef = useRef(null);
|
|
74
73
|
var openButtonRef = useRef(null);
|
|
75
74
|
var hiddenTextRef = useRef(null);
|
|
@@ -180,7 +179,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
180
179
|
href: url,
|
|
181
180
|
target: "_blank",
|
|
182
181
|
style: {
|
|
183
|
-
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless'
|
|
182
|
+
paddingBlock: editorAppearance === 'comment' || editorAppearance === 'chromeless' ? '1px' : "var(--ds-space-025, 2px)"
|
|
184
183
|
},
|
|
185
184
|
onClick: handleClick
|
|
186
185
|
}, jsx(Box, {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -469,7 +469,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
469
469
|
};
|
|
470
470
|
// testId is required to show focus on trigger button on ESC key press
|
|
471
471
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
472
|
-
var testId =
|
|
472
|
+
var testId = 'card-overflow-dropdown-trigger';
|
|
473
473
|
var overflowMenuConfig = [{
|
|
474
474
|
type: 'separator',
|
|
475
475
|
fullHeight: true
|
|
@@ -663,7 +663,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
663
663
|
} else {
|
|
664
664
|
// testId is required to show focus on trigger button on ESC key press
|
|
665
665
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
666
|
-
var testId =
|
|
666
|
+
var testId = 'datasource-overflow-dropdown-trigger';
|
|
667
667
|
|
|
668
668
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
669
669
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.10",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
58
58
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
59
59
|
"@atlaskit/linking-common": "^9.1.0",
|
|
60
|
-
"@atlaskit/linking-types": "^12.
|
|
60
|
+
"@atlaskit/linking-types": "^12.1.0",
|
|
61
61
|
"@atlaskit/menu": "^8.0.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.9.0",
|
|
64
|
-
"@atlaskit/smart-card": "^38.
|
|
64
|
+
"@atlaskit/smart-card": "^38.13.0",
|
|
65
65
|
"@atlaskit/theme": "^18.0.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^8.0.0",
|
|
67
67
|
"@atlaskit/tokens": "^5.3.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -126,9 +126,6 @@
|
|
|
126
126
|
"platform_ssr_smartlinks_editor": {
|
|
127
127
|
"type": "boolean"
|
|
128
128
|
},
|
|
129
|
-
"platform_editor_controls_patch_3": {
|
|
130
|
-
"type": "boolean"
|
|
131
|
-
},
|
|
132
129
|
"platform_editor_controls_patch_9": {
|
|
133
130
|
"type": "boolean"
|
|
134
131
|
},
|
|
@@ -141,9 +138,6 @@
|
|
|
141
138
|
"platform_editor_fix_advanced_code_crash": {
|
|
142
139
|
"type": "boolean"
|
|
143
140
|
},
|
|
144
|
-
"platform_editor_controls_patch_8": {
|
|
145
|
-
"type": "boolean"
|
|
146
|
-
},
|
|
147
141
|
"prompt_whiteboard_competitor_link_gate": {
|
|
148
142
|
"type": "boolean"
|
|
149
143
|
},
|