@atlaskit/editor-plugin-card 6.3.2 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/compass.yml +11 -3
- package/dist/cjs/nodeviews/inlineCard.js +1 -2
- package/dist/cjs/ui/OpenButtonOverlay/index.js +39 -12
- package/dist/es2019/nodeviews/inlineCard.js +1 -2
- package/dist/es2019/ui/OpenButtonOverlay/index.js +39 -12
- package/dist/esm/nodeviews/inlineCard.js +1 -2
- package/dist/esm/ui/OpenButtonOverlay/index.js +39 -12
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#161266](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161266)
|
|
8
|
+
[`3eb1f4c974f21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3eb1f4c974f21) -
|
|
9
|
+
Improved load performance by moving recalculate logic on interaction
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.3.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#159655](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159655)
|
|
20
|
+
[`24f8c627d50f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24f8c627d50f2) - ##
|
|
21
|
+
WHAT? Remove experimental graceful edit mode from view mode plugin and associated props.
|
|
22
|
+
|
|
23
|
+
## WHY?
|
|
24
|
+
|
|
25
|
+
This experiment is being cleaned up and we are no longer proceeding in this direction.
|
|
26
|
+
|
|
27
|
+
## HOW to adjust?
|
|
28
|
+
|
|
29
|
+
This experiment was only enabled for Confluence and should not have been enabled in other places.
|
|
30
|
+
If for some reason any of the following props/state/methdos were used please remove them:
|
|
31
|
+
|
|
32
|
+
- isConsumption
|
|
33
|
+
- contentMode
|
|
34
|
+
- initialContentMode
|
|
35
|
+
- updateContentMode
|
|
36
|
+
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
|
|
3
39
|
## 6.3.2
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/b3ffe2fd-7f29-4a07-81cd-67c57914ec9a'
|
|
1
2
|
name: '@atlaskit/editor-plugin-card'
|
|
2
3
|
description: |-
|
|
3
4
|
This is an editor plugin for Atlassian's rich text editor that enables support for "smart cards" and advanced linking features within the editor. It integrates with the Atlassian linking platform to allow users to insert, display, and interact with rich link previews (smart cards) directly in the editor surface.
|
|
@@ -18,11 +19,18 @@ links:
|
|
|
18
19
|
- name: '#help-twg-linking-platform'
|
|
19
20
|
type: CHAT_CHANNEL
|
|
20
21
|
url: 'https://atlassian.enterprise.slack.com/archives/CFKGAQZRV'
|
|
21
|
-
- name:
|
|
22
|
+
- name: ''
|
|
22
23
|
type: ON_CALL
|
|
23
24
|
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
|
|
24
25
|
- name: source code
|
|
25
26
|
type: REPOSITORY
|
|
26
|
-
url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-card'
|
|
27
|
+
url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/editor-plugin-card'
|
|
27
28
|
customFields: []
|
|
28
|
-
relationships:
|
|
29
|
+
relationships:
|
|
30
|
+
DEPENDS_ON:
|
|
31
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/27e8ffab-42db-4c16-9afb-9eefd72d02ec' # link-analytics
|
|
32
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/37dc08cd-d81c-4bbb-9b26-5d6d8a417ea3' # link-client-extension
|
|
33
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/2833bb40-a2e4-4b79-b74b-147d0d23fdb1' # link-datasource
|
|
34
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/18157dad-b7fb-4cde-8b74-e905b5757611' # link-provider
|
|
35
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/3d229125-4f9d-4091-a303-84ae4eb643fb' # linking-common
|
|
36
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/c9898540-33b1-4cd4-9399-16e575bcedae' # smart-card
|
|
@@ -21,7 +21,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
22
|
var _smartCard = require("@atlaskit/smart-card");
|
|
23
23
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
24
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
25
24
|
var _actions = require("../pm-plugins/actions");
|
|
26
25
|
var _utils = require("../pm-plugins/utils");
|
|
27
26
|
var _ConfigureOverlay = _interopRequireDefault(require("../ui/ConfigureOverlay"));
|
|
@@ -230,7 +229,7 @@ function InlineCardNodeView(props) {
|
|
|
230
229
|
appearance: "inline"
|
|
231
230
|
// Ignored via go/ees005
|
|
232
231
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
233
|
-
}, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards,
|
|
232
|
+
}, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
234
233
|
}
|
|
235
234
|
var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
236
235
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
@@ -15,6 +15,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
15
15
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
17
|
var _primitives = require("@atlaskit/primitives");
|
|
18
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
18
19
|
var _toolbar = require("../toolbar");
|
|
19
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -98,19 +99,23 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
98
99
|
setHovered = _useState4[1];
|
|
99
100
|
var openTextWidthRef = (0, _react.useRef)(DEFAULT_OPEN_TEXT_WIDTH);
|
|
100
101
|
(0, _react.useLayoutEffect)(function () {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
if ((0, _experiments.editorExperiment)('platform_editor_smart_card_open_overlay_perf', false, {
|
|
103
|
+
exposure: true
|
|
104
|
+
})) {
|
|
105
|
+
var hiddenText = hiddenTextRef.current;
|
|
106
|
+
if (!hiddenText) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
// Measure the width of the hidden text
|
|
110
|
+
// Temporarily make the element visible to measure its width
|
|
111
|
+
hiddenText.style.visibility = 'hidden';
|
|
112
|
+
hiddenText.style.display = 'inline';
|
|
113
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
110
114
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
// Reset the hiddenText's display property
|
|
116
|
+
hiddenText.style.display = 'none';
|
|
117
|
+
hiddenText.style.visibility = 'inherit';
|
|
118
|
+
}
|
|
114
119
|
}, []);
|
|
115
120
|
(0, _react.useLayoutEffect)(function () {
|
|
116
121
|
var _containerRef$current, _openButtonRef$curren;
|
|
@@ -119,6 +124,28 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
119
124
|
}
|
|
120
125
|
var cardWidth = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth;
|
|
121
126
|
var openButtonWidth = (_openButtonRef$curren = openButtonRef.current) === null || _openButtonRef$curren === void 0 ? void 0 : _openButtonRef$curren.offsetWidth;
|
|
127
|
+
|
|
128
|
+
// Get the hidden text width
|
|
129
|
+
if ((0, _experiments.editorExperiment)('platform_editor_smart_card_open_overlay_perf', true, {
|
|
130
|
+
exposure: true
|
|
131
|
+
})) {
|
|
132
|
+
if (!openTextWidthRef.current) {
|
|
133
|
+
var hiddenText = hiddenTextRef.current;
|
|
134
|
+
if (!hiddenText) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Measure the width of the hidden text
|
|
139
|
+
// Temporarily make the element visible to measure its width
|
|
140
|
+
hiddenText.style.visibility = 'hidden';
|
|
141
|
+
hiddenText.style.display = 'inline';
|
|
142
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
143
|
+
|
|
144
|
+
// Reset the hiddenText's display property
|
|
145
|
+
hiddenText.style.display = 'none';
|
|
146
|
+
hiddenText.style.visibility = 'inherit';
|
|
147
|
+
}
|
|
148
|
+
}
|
|
122
149
|
if (!cardWidth || !openButtonWidth) {
|
|
123
150
|
return;
|
|
124
151
|
}
|
|
@@ -10,7 +10,6 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
12
12
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
13
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
13
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
15
14
|
import { getAwarenessProps } from '../pm-plugins/utils';
|
|
16
15
|
import OverlayWrapper from '../ui/ConfigureOverlay';
|
|
@@ -224,7 +223,7 @@ export function InlineCardNodeView(props) {
|
|
|
224
223
|
appearance: "inline"
|
|
225
224
|
// Ignored via go/ees005
|
|
226
225
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
227
|
-
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards,
|
|
226
|
+
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
228
227
|
}
|
|
229
228
|
export const inlineCardNodeView = ({
|
|
230
229
|
inlineCardViewProducer
|
|
@@ -13,6 +13,7 @@ import { cardMessages } from '@atlaskit/editor-common/messages';
|
|
|
13
13
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
17
|
import { visitCardLinkAnalyticsOnly } from '../toolbar';
|
|
17
18
|
const containerStyles = css({
|
|
18
19
|
position: 'relative'
|
|
@@ -78,19 +79,23 @@ const OpenButtonOverlay = ({
|
|
|
78
79
|
const [isHovered, setHovered] = useState(false);
|
|
79
80
|
const openTextWidthRef = useRef(DEFAULT_OPEN_TEXT_WIDTH);
|
|
80
81
|
useLayoutEffect(() => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
if (editorExperiment('platform_editor_smart_card_open_overlay_perf', false, {
|
|
83
|
+
exposure: true
|
|
84
|
+
})) {
|
|
85
|
+
const hiddenText = hiddenTextRef.current;
|
|
86
|
+
if (!hiddenText) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
// Measure the width of the hidden text
|
|
90
|
+
// Temporarily make the element visible to measure its width
|
|
91
|
+
hiddenText.style.visibility = 'hidden';
|
|
92
|
+
hiddenText.style.display = 'inline';
|
|
93
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
// Reset the hiddenText's display property
|
|
96
|
+
hiddenText.style.display = 'none';
|
|
97
|
+
hiddenText.style.visibility = 'inherit';
|
|
98
|
+
}
|
|
94
99
|
}, []);
|
|
95
100
|
useLayoutEffect(() => {
|
|
96
101
|
var _containerRef$current, _openButtonRef$curren;
|
|
@@ -99,6 +104,28 @@ const OpenButtonOverlay = ({
|
|
|
99
104
|
}
|
|
100
105
|
const cardWidth = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth;
|
|
101
106
|
const openButtonWidth = (_openButtonRef$curren = openButtonRef.current) === null || _openButtonRef$curren === void 0 ? void 0 : _openButtonRef$curren.offsetWidth;
|
|
107
|
+
|
|
108
|
+
// Get the hidden text width
|
|
109
|
+
if (editorExperiment('platform_editor_smart_card_open_overlay_perf', true, {
|
|
110
|
+
exposure: true
|
|
111
|
+
})) {
|
|
112
|
+
if (!openTextWidthRef.current) {
|
|
113
|
+
const hiddenText = hiddenTextRef.current;
|
|
114
|
+
if (!hiddenText) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Measure the width of the hidden text
|
|
119
|
+
// Temporarily make the element visible to measure its width
|
|
120
|
+
hiddenText.style.visibility = 'hidden';
|
|
121
|
+
hiddenText.style.display = 'inline';
|
|
122
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
123
|
+
|
|
124
|
+
// Reset the hiddenText's display property
|
|
125
|
+
hiddenText.style.display = 'none';
|
|
126
|
+
hiddenText.style.visibility = 'inherit';
|
|
127
|
+
}
|
|
128
|
+
}
|
|
102
129
|
if (!cardWidth || !openButtonWidth) {
|
|
103
130
|
return;
|
|
104
131
|
}
|
|
@@ -11,7 +11,6 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
13
13
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
14
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
14
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
16
15
|
import { getAwarenessProps } from '../pm-plugins/utils';
|
|
17
16
|
import OverlayWrapper from '../ui/ConfigureOverlay';
|
|
@@ -218,7 +217,7 @@ export function InlineCardNodeView(props) {
|
|
|
218
217
|
appearance: "inline"
|
|
219
218
|
// Ignored via go/ees005
|
|
220
219
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
221
|
-
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards,
|
|
220
|
+
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
222
221
|
}
|
|
223
222
|
export var inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
224
223
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
@@ -14,6 +14,7 @@ import { cardMessages } from '@atlaskit/editor-common/messages';
|
|
|
14
14
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { visitCardLinkAnalyticsOnly } from '../toolbar';
|
|
18
19
|
var containerStyles = css({
|
|
19
20
|
position: 'relative'
|
|
@@ -84,19 +85,23 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
84
85
|
setHovered = _useState4[1];
|
|
85
86
|
var openTextWidthRef = useRef(DEFAULT_OPEN_TEXT_WIDTH);
|
|
86
87
|
useLayoutEffect(function () {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
if (editorExperiment('platform_editor_smart_card_open_overlay_perf', false, {
|
|
89
|
+
exposure: true
|
|
90
|
+
})) {
|
|
91
|
+
var hiddenText = hiddenTextRef.current;
|
|
92
|
+
if (!hiddenText) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
// Measure the width of the hidden text
|
|
96
|
+
// Temporarily make the element visible to measure its width
|
|
97
|
+
hiddenText.style.visibility = 'hidden';
|
|
98
|
+
hiddenText.style.display = 'inline';
|
|
99
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
// Reset the hiddenText's display property
|
|
102
|
+
hiddenText.style.display = 'none';
|
|
103
|
+
hiddenText.style.visibility = 'inherit';
|
|
104
|
+
}
|
|
100
105
|
}, []);
|
|
101
106
|
useLayoutEffect(function () {
|
|
102
107
|
var _containerRef$current, _openButtonRef$curren;
|
|
@@ -105,6 +110,28 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
105
110
|
}
|
|
106
111
|
var cardWidth = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth;
|
|
107
112
|
var openButtonWidth = (_openButtonRef$curren = openButtonRef.current) === null || _openButtonRef$curren === void 0 ? void 0 : _openButtonRef$curren.offsetWidth;
|
|
113
|
+
|
|
114
|
+
// Get the hidden text width
|
|
115
|
+
if (editorExperiment('platform_editor_smart_card_open_overlay_perf', true, {
|
|
116
|
+
exposure: true
|
|
117
|
+
})) {
|
|
118
|
+
if (!openTextWidthRef.current) {
|
|
119
|
+
var hiddenText = hiddenTextRef.current;
|
|
120
|
+
if (!hiddenText) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Measure the width of the hidden text
|
|
125
|
+
// Temporarily make the element visible to measure its width
|
|
126
|
+
hiddenText.style.visibility = 'hidden';
|
|
127
|
+
hiddenText.style.display = 'inline';
|
|
128
|
+
openTextWidthRef.current = hiddenText.offsetWidth;
|
|
129
|
+
|
|
130
|
+
// Reset the hiddenText's display property
|
|
131
|
+
hiddenText.style.display = 'none';
|
|
132
|
+
hiddenText.style.visibility = 'inherit';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
108
135
|
if (!cardWidth || !openButtonWidth) {
|
|
109
136
|
return;
|
|
110
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/button": "^23.2.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^105.
|
|
40
|
+
"@atlaskit/editor-common": "^105.11.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
46
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
46
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
48
48
|
"@atlaskit/editor-plugin-floating-toolbar": "^4.1.0",
|
|
49
49
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
54
|
-
"@atlaskit/icon": "^26.
|
|
54
|
+
"@atlaskit/icon": "^26.4.0",
|
|
55
55
|
"@atlaskit/link": "^3.2.0",
|
|
56
56
|
"@atlaskit/link-analytics": "^10.0.0",
|
|
57
57
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@atlaskit/menu": "^8.0.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.8.0",
|
|
64
|
-
"@atlaskit/smart-card": "^38.
|
|
64
|
+
"@atlaskit/smart-card": "^38.5.0",
|
|
65
65
|
"@atlaskit/theme": "^18.0.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^5.2.0",
|
|
67
67
|
"@atlaskit/tokens": "^4.9.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/link-provider": "^3.
|
|
76
|
+
"@atlaskit/link-provider": "^3.1.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
79
79
|
},
|
|
@@ -173,5 +173,6 @@
|
|
|
173
173
|
"no-unused-dependencies": {
|
|
174
174
|
"checkDevDependencies": true
|
|
175
175
|
}
|
|
176
|
-
}
|
|
176
|
+
},
|
|
177
|
+
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/e6f3220b-0ca2-445a-a4c5-78cff6ca2a34"
|
|
177
178
|
}
|