@atlaskit/editor-plugin-card 6.1.2 → 6.2.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 +22 -0
- package/dist/cjs/nodeviews/blockCard.js +6 -0
- package/dist/cjs/nodeviews/embedCard.js +6 -0
- package/dist/cjs/ui/toolbar.js +12 -12
- package/dist/es2019/nodeviews/blockCard.js +6 -0
- package/dist/es2019/nodeviews/embedCard.js +6 -0
- package/dist/es2019/ui/toolbar.js +5 -5
- package/dist/esm/nodeviews/blockCard.js +6 -0
- package/dist/esm/nodeviews/embedCard.js +6 -0
- package/dist/esm/ui/toolbar.js +5 -5
- package/dist/types/nodeviews/blockCard.d.ts +1 -0
- package/dist/types/nodeviews/embedCard.d.ts +1 -0
- package/dist/types/ui/OpenButtonOverlay/types.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +1 -0
- package/dist/types-ts4.5/ui/OpenButtonOverlay/types.d.ts +1 -1
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#158037](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158037)
|
|
8
|
+
[`f217faa73de90`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f217faa73de90) -
|
|
9
|
+
[ux] ENGHEALTH-30614 updating legacy icon imports for iconography uplift migration linking
|
|
10
|
+
platform
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 6.1.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#150558](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150558)
|
|
21
|
+
[`2b8be3c33b348`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b8be3c33b348) -
|
|
22
|
+
ED-27612: prevent infinite loop on card delete
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 6.1.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _v = _interopRequireDefault(require("uuid/v4"));
|
|
|
18
18
|
var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/react-node-view"));
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _smartCard = require("@atlaskit/smart-card");
|
|
22
23
|
var _datasource = require("../nodeviews/datasource");
|
|
23
24
|
var _actions = require("../pm-plugins/actions");
|
|
@@ -125,6 +126,7 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
125
126
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
126
127
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
127
128
|
});
|
|
129
|
+
(0, _defineProperty2.default)(_this2, "removeCardDispatched", false);
|
|
128
130
|
return _this2;
|
|
129
131
|
}
|
|
130
132
|
(0, _inherits2.default)(BlockCard, _ReactNodeView);
|
|
@@ -190,6 +192,10 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
190
192
|
}, {
|
|
191
193
|
key: "removeCard",
|
|
192
194
|
value: function removeCard() {
|
|
195
|
+
if (this.removeCardDispatched && (0, _platformFeatureFlags.fg)('platform_editor_cards_maxcallstackfix')) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
this.removeCardDispatched = true;
|
|
193
199
|
var tr = this.view.state.tr;
|
|
194
200
|
(0, _actions.removeCard)({
|
|
195
201
|
id: this.id
|
|
@@ -23,6 +23,7 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
23
23
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
24
24
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
25
25
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
26
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
27
|
var _smartCard = require("@atlaskit/smart-card");
|
|
27
28
|
var _actions = require("../pm-plugins/actions");
|
|
28
29
|
var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
|
|
@@ -364,6 +365,7 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
364
365
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
365
366
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
366
367
|
});
|
|
368
|
+
(0, _defineProperty2.default)(_this2, "removeCardDispatched", false);
|
|
367
369
|
return _this2;
|
|
368
370
|
}
|
|
369
371
|
(0, _inherits2.default)(EmbedCard, _ReactNodeView);
|
|
@@ -424,6 +426,10 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
424
426
|
}, {
|
|
425
427
|
key: "removeCard",
|
|
426
428
|
value: function removeCard() {
|
|
429
|
+
if (this.removeCardDispatched && (0, _platformFeatureFlags.fg)('platform_editor_cards_maxcallstackfix')) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
this.removeCardDispatched = true;
|
|
427
433
|
var tr = this.view.state.tr;
|
|
428
434
|
(0, _actions.removeCard)({
|
|
429
435
|
id: this.id
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -25,12 +25,12 @@ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
|
25
25
|
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
26
26
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
27
27
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
28
|
+
var _comment2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/comment"));
|
|
29
|
+
var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
|
|
30
|
+
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
31
|
+
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
32
|
+
var _settingsEditorSettings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings--editor-settings"));
|
|
28
33
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
29
|
-
var _comment2 = _interopRequireDefault(require("@atlaskit/icon/glyph/comment"));
|
|
30
|
-
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
31
|
-
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/settings"));
|
|
32
|
-
var _unlink = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/unlink"));
|
|
33
|
-
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
34
34
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
35
35
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
36
36
|
var _doc = require("../pm-plugins/doc");
|
|
@@ -353,7 +353,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
353
353
|
id: 'editor.link.openLink',
|
|
354
354
|
type: 'button',
|
|
355
355
|
icon: _linkExternal.default,
|
|
356
|
-
iconFallback:
|
|
356
|
+
iconFallback: _linkExternalShortcut.default,
|
|
357
357
|
metadata: metadata,
|
|
358
358
|
className: 'hyperlink-open-link',
|
|
359
359
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -380,7 +380,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
380
380
|
type: 'button',
|
|
381
381
|
appearance: 'danger',
|
|
382
382
|
icon: _delete.default,
|
|
383
|
-
iconFallback:
|
|
383
|
+
iconFallback: _deleteEditorRemove.default,
|
|
384
384
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
385
385
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
386
386
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -393,7 +393,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
393
393
|
id: 'editor.link.openLink',
|
|
394
394
|
type: 'button',
|
|
395
395
|
icon: _linkExternal.default,
|
|
396
|
-
iconFallback:
|
|
396
|
+
iconFallback: _linkExternalShortcut.default,
|
|
397
397
|
metadata: metadata,
|
|
398
398
|
className: 'hyperlink-open-link',
|
|
399
399
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -519,7 +519,7 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
|
|
|
519
519
|
type: 'button',
|
|
520
520
|
title: intl.formatMessage(_messages.linkToolbarMessages.unlink),
|
|
521
521
|
icon: _linkBroken.default,
|
|
522
|
-
iconFallback:
|
|
522
|
+
iconFallback: _linkBrokenEditorUnlink.default,
|
|
523
523
|
onClick: withToolbarMetadata(unlinkCard(node, state, editorAnalyticsApi))
|
|
524
524
|
}].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? [] : [{
|
|
525
525
|
type: 'separator'
|
|
@@ -530,7 +530,7 @@ var getSettingsButton = exports.getSettingsButton = function getSettingsButton(i
|
|
|
530
530
|
id: 'editor.link.settings',
|
|
531
531
|
type: 'button',
|
|
532
532
|
icon: _settings.default,
|
|
533
|
-
iconFallback:
|
|
533
|
+
iconFallback: _settingsEditorSettings.default,
|
|
534
534
|
title: intl.formatMessage(_messages.linkToolbarMessages.settingsLink),
|
|
535
535
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
536
536
|
href: userPreferencesLink || (0, _link.getLinkPreferencesURLFromENV)(),
|
|
@@ -629,7 +629,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
629
629
|
id: 'editor.link.openLink',
|
|
630
630
|
type: 'button',
|
|
631
631
|
icon: _linkExternal.default,
|
|
632
|
-
iconFallback:
|
|
632
|
+
iconFallback: _linkExternalShortcut.default,
|
|
633
633
|
metadata: metadata,
|
|
634
634
|
className: 'hyperlink-open-link',
|
|
635
635
|
title: intl.formatMessage(_messages.linkMessages.openLink),
|
|
@@ -663,7 +663,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
663
663
|
type: 'button',
|
|
664
664
|
appearance: 'danger',
|
|
665
665
|
icon: _delete.default,
|
|
666
|
-
iconFallback:
|
|
666
|
+
iconFallback: _deleteEditorRemove.default,
|
|
667
667
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
668
668
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
669
669
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
@@ -5,6 +5,7 @@ import uuid from 'uuid/v4';
|
|
|
5
5
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
6
6
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { browser, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
9
10
|
import { Datasource } from '../nodeviews/datasource';
|
|
10
11
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
@@ -104,6 +105,7 @@ export class BlockCard extends ReactNodeView {
|
|
|
104
105
|
_defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
|
|
105
106
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
106
107
|
});
|
|
108
|
+
_defineProperty(this, "removeCardDispatched", false);
|
|
107
109
|
}
|
|
108
110
|
createDomRef() {
|
|
109
111
|
var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
|
|
@@ -152,6 +154,10 @@ export class BlockCard extends ReactNodeView {
|
|
|
152
154
|
this.removeCard();
|
|
153
155
|
}
|
|
154
156
|
removeCard() {
|
|
157
|
+
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
this.removeCardDispatched = true;
|
|
155
161
|
const {
|
|
156
162
|
tr
|
|
157
163
|
} = this.view.state;
|
|
@@ -10,6 +10,7 @@ import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedB
|
|
|
10
10
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
11
11
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
|
|
12
12
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
14
15
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
15
16
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -352,6 +353,7 @@ export class EmbedCard extends ReactNodeView {
|
|
|
352
353
|
_defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
|
|
353
354
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
354
355
|
});
|
|
356
|
+
_defineProperty(this, "removeCardDispatched", false);
|
|
355
357
|
}
|
|
356
358
|
viewShouldUpdate(nextNode) {
|
|
357
359
|
if (this.node.attrs !== nextNode.attrs) {
|
|
@@ -398,6 +400,10 @@ export class EmbedCard extends ReactNodeView {
|
|
|
398
400
|
this.removeCard();
|
|
399
401
|
}
|
|
400
402
|
removeCard() {
|
|
403
|
+
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
this.removeCardDispatched = true;
|
|
401
407
|
const {
|
|
402
408
|
tr
|
|
403
409
|
} = this.view.state;
|
|
@@ -15,12 +15,12 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
|
15
15
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
16
16
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
17
17
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
18
|
+
import LegacyCommentIcon from '@atlaskit/icon/core/migration/comment';
|
|
19
|
+
import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
|
|
20
|
+
import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
21
|
+
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
22
|
+
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
18
23
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
19
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
20
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
21
|
-
import CogIcon from '@atlaskit/icon/glyph/editor/settings';
|
|
22
|
-
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
23
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
24
24
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
25
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
26
26
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -14,6 +14,7 @@ import uuid from 'uuid/v4';
|
|
|
14
14
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
15
15
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
16
16
|
import { browser, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
18
19
|
import { Datasource } from '../nodeviews/datasource';
|
|
19
20
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
@@ -119,6 +120,7 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
119
120
|
_defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
120
121
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
121
122
|
});
|
|
123
|
+
_defineProperty(_this2, "removeCardDispatched", false);
|
|
122
124
|
return _this2;
|
|
123
125
|
}
|
|
124
126
|
_inherits(BlockCard, _ReactNodeView);
|
|
@@ -184,6 +186,10 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
184
186
|
}, {
|
|
185
187
|
key: "removeCard",
|
|
186
188
|
value: function removeCard() {
|
|
189
|
+
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
this.removeCardDispatched = true;
|
|
187
193
|
var tr = this.view.state.tr;
|
|
188
194
|
_removeCard({
|
|
189
195
|
id: this.id
|
|
@@ -21,6 +21,7 @@ import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedB
|
|
|
21
21
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
22
22
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
|
|
23
23
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
24
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
25
26
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
26
27
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -357,6 +358,7 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
357
358
|
_defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
358
359
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
359
360
|
});
|
|
361
|
+
_defineProperty(_this2, "removeCardDispatched", false);
|
|
360
362
|
return _this2;
|
|
361
363
|
}
|
|
362
364
|
_inherits(EmbedCard, _ReactNodeView);
|
|
@@ -417,6 +419,10 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
417
419
|
}, {
|
|
418
420
|
key: "removeCard",
|
|
419
421
|
value: function removeCard() {
|
|
422
|
+
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
this.removeCardDispatched = true;
|
|
420
426
|
var tr = this.view.state.tr;
|
|
421
427
|
_removeCard({
|
|
422
428
|
id: this.id
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -19,12 +19,12 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
|
19
19
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
20
20
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
21
21
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
22
|
+
import LegacyCommentIcon from '@atlaskit/icon/core/migration/comment';
|
|
23
|
+
import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
|
|
24
|
+
import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
25
|
+
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
26
|
+
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
22
27
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
23
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
24
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
25
|
-
import CogIcon from '@atlaskit/icon/glyph/editor/settings';
|
|
26
|
-
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
27
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
29
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
30
30
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -32,6 +32,7 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
32
32
|
update(node: Node, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
|
|
33
33
|
render(): React.JSX.Element;
|
|
34
34
|
destroy(): void;
|
|
35
|
+
private removeCardDispatched;
|
|
35
36
|
private removeCard;
|
|
36
37
|
}
|
|
37
38
|
export interface BlockCardNodeViewProperties {
|
|
@@ -49,6 +49,7 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
49
49
|
private updateContentEditable;
|
|
50
50
|
render(): React.JSX.Element;
|
|
51
51
|
destroy(): void;
|
|
52
|
+
private removeCardDispatched;
|
|
52
53
|
private removeCard;
|
|
53
54
|
}
|
|
54
55
|
export interface EmbedCardNodeViewProperties {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
export type OpenButtonOverlayProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
6
6
|
isVisible?: boolean;
|
|
@@ -32,6 +32,7 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
32
32
|
update(node: Node, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
|
|
33
33
|
render(): React.JSX.Element;
|
|
34
34
|
destroy(): void;
|
|
35
|
+
private removeCardDispatched;
|
|
35
36
|
private removeCard;
|
|
36
37
|
}
|
|
37
38
|
export interface BlockCardNodeViewProperties {
|
|
@@ -49,6 +49,7 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
49
49
|
private updateContentEditable;
|
|
50
50
|
render(): React.JSX.Element;
|
|
51
51
|
destroy(): void;
|
|
52
|
+
private removeCardDispatched;
|
|
52
53
|
private removeCard;
|
|
53
54
|
}
|
|
54
55
|
export interface EmbedCardNodeViewProperties {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
export type OpenButtonOverlayProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
6
6
|
isVisible?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
|
-
"@atlaskit/button": "^23.
|
|
38
|
+
"@atlaskit/button": "^23.2.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^105.
|
|
40
|
+
"@atlaskit/editor-common": "^105.6.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",
|
|
@@ -51,19 +51,19 @@
|
|
|
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.1.0",
|
|
55
55
|
"@atlaskit/link-analytics": "^10.0.0",
|
|
56
56
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
57
57
|
"@atlaskit/link-datasource": "^4.10.0",
|
|
58
58
|
"@atlaskit/linking-common": "^9.0.0",
|
|
59
59
|
"@atlaskit/linking-types": "^9.10.0",
|
|
60
|
-
"@atlaskit/menu": "^7.
|
|
60
|
+
"@atlaskit/menu": "^7.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
|
-
"@atlaskit/primitives": "^14.
|
|
63
|
-
"@atlaskit/smart-card": "^38.
|
|
62
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
63
|
+
"@atlaskit/smart-card": "^38.2.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
65
|
"@atlaskit/tmp-editor-statsig": "^4.22.0",
|
|
66
|
-
"@atlaskit/tokens": "^4.
|
|
66
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
@@ -157,6 +157,9 @@
|
|
|
157
157
|
},
|
|
158
158
|
"prompt_whiteboard_competitor_link_gate": {
|
|
159
159
|
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"platform_editor_cards_maxcallstackfix": {
|
|
162
|
+
"type": "boolean"
|
|
160
163
|
}
|
|
161
164
|
},
|
|
162
165
|
"stricter": {
|