@atlaskit/editor-plugin-card 7.0.3 → 7.0.5
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 +15 -0
- package/dist/cjs/nodeviews/blockCard.js +3 -24
- package/dist/cjs/nodeviews/embedCard.js +3 -24
- package/dist/es2019/nodeviews/blockCard.js +3 -24
- package/dist/es2019/nodeviews/embedCard.js +3 -24
- package/dist/esm/nodeviews/blockCard.js +3 -24
- package/dist/esm/nodeviews/embedCard.js +3 -24
- package/dist/types/nodeviews/blockCard.d.ts +0 -2
- package/dist/types/nodeviews/embedCard.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +0 -2
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 7.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#184895](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184895)
|
|
14
|
+
[`facd697d9125e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/facd697d9125e) -
|
|
15
|
+
Cleanup feature gate to remove card from state on destroy.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 7.0.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -18,7 +18,6 @@ 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");
|
|
22
21
|
var _smartCard = require("@atlaskit/smart-card");
|
|
23
22
|
var _datasource = require("../nodeviews/datasource");
|
|
24
23
|
var _actions = require("../pm-plugins/actions");
|
|
@@ -87,14 +86,12 @@ var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_Re
|
|
|
87
86
|
return (0, _createClass2.default)(BlockCardComponent, [{
|
|
88
87
|
key: "componentWillUnmount",
|
|
89
88
|
value: function componentWillUnmount() {
|
|
90
|
-
|
|
91
|
-
this.removeCard();
|
|
92
|
-
}
|
|
89
|
+
this.removeCard();
|
|
93
90
|
}
|
|
94
91
|
}, {
|
|
95
92
|
key: "removeCard",
|
|
96
93
|
value: function removeCard() {
|
|
97
|
-
if (this.removeCardDispatched
|
|
94
|
+
if (this.removeCardDispatched) {
|
|
98
95
|
return;
|
|
99
96
|
}
|
|
100
97
|
this.removeCardDispatched = true;
|
|
@@ -149,7 +146,6 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
149
146
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
150
147
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
151
148
|
});
|
|
152
|
-
(0, _defineProperty2.default)(_this2, "removeCardDispatched", false);
|
|
153
149
|
return _this2;
|
|
154
150
|
}
|
|
155
151
|
(0, _inherits2.default)(BlockCard, _ReactNodeView);
|
|
@@ -212,24 +208,7 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
212
208
|
value: function destroy() {
|
|
213
209
|
var _this$unsubscribe;
|
|
214
210
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
|
|
215
|
-
|
|
216
|
-
_superPropGet(BlockCard, "destroy", this, 3)([]);
|
|
217
|
-
} else {
|
|
218
|
-
this.removeCard();
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}, {
|
|
222
|
-
key: "removeCard",
|
|
223
|
-
value: function removeCard() {
|
|
224
|
-
if (this.removeCardDispatched && (0, _platformFeatureFlags.fg)('platform_editor_cards_maxcallstackfix')) {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
this.removeCardDispatched = true;
|
|
228
|
-
var tr = this.view.state.tr;
|
|
229
|
-
(0, _actions.removeCard)({
|
|
230
|
-
id: this.id
|
|
231
|
-
})(tr);
|
|
232
|
-
this.view.dispatch(tr);
|
|
211
|
+
_superPropGet(BlockCard, "destroy", this, 3)([]);
|
|
233
212
|
}
|
|
234
213
|
}]);
|
|
235
214
|
}(_reactNodeView.default);
|
|
@@ -22,7 +22,6 @@ var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/rea
|
|
|
22
22
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
23
23
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _smartCard = require("@atlaskit/smart-card");
|
|
27
26
|
var _actions = require("../pm-plugins/actions");
|
|
28
27
|
var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
|
|
@@ -281,14 +280,12 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
|
|
|
281
280
|
return (0, _createClass2.default)(EmbedCardComponent, [{
|
|
282
281
|
key: "componentWillUnmount",
|
|
283
282
|
value: function componentWillUnmount() {
|
|
284
|
-
|
|
285
|
-
this.removeCard();
|
|
286
|
-
}
|
|
283
|
+
this.removeCard();
|
|
287
284
|
}
|
|
288
285
|
}, {
|
|
289
286
|
key: "removeCard",
|
|
290
287
|
value: function removeCard() {
|
|
291
|
-
if (this.removeCardDispatched
|
|
288
|
+
if (this.removeCardDispatched) {
|
|
292
289
|
return;
|
|
293
290
|
}
|
|
294
291
|
this.removeCardDispatched = true;
|
|
@@ -388,7 +385,6 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
388
385
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
389
386
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
390
387
|
});
|
|
391
|
-
(0, _defineProperty2.default)(_this2, "removeCardDispatched", false);
|
|
392
388
|
return _this2;
|
|
393
389
|
}
|
|
394
390
|
(0, _inherits2.default)(EmbedCard, _ReactNodeView);
|
|
@@ -446,24 +442,7 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
446
442
|
value: function destroy() {
|
|
447
443
|
var _this$unsubscribe;
|
|
448
444
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
|
|
449
|
-
|
|
450
|
-
_superPropGet(EmbedCard, "destroy", this, 3)([]);
|
|
451
|
-
} else {
|
|
452
|
-
this.removeCard();
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}, {
|
|
456
|
-
key: "removeCard",
|
|
457
|
-
value: function removeCard() {
|
|
458
|
-
if (this.removeCardDispatched && (0, _platformFeatureFlags.fg)('platform_editor_cards_maxcallstackfix')) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
this.removeCardDispatched = true;
|
|
462
|
-
var tr = this.view.state.tr;
|
|
463
|
-
(0, _actions.removeCard)({
|
|
464
|
-
id: this.id
|
|
465
|
-
})(tr);
|
|
466
|
-
this.view.dispatch(tr);
|
|
445
|
+
_superPropGet(EmbedCard, "destroy", this, 3)([]);
|
|
467
446
|
}
|
|
468
447
|
}]);
|
|
469
448
|
}(_reactNodeView.default);
|
|
@@ -5,7 +5,6 @@ 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';
|
|
9
8
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
10
9
|
import { Datasource } from '../nodeviews/datasource';
|
|
11
10
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
@@ -70,12 +69,10 @@ export class BlockCardComponent extends React.PureComponent {
|
|
|
70
69
|
this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
71
70
|
}
|
|
72
71
|
componentWillUnmount() {
|
|
73
|
-
|
|
74
|
-
this.removeCard();
|
|
75
|
-
}
|
|
72
|
+
this.removeCard();
|
|
76
73
|
}
|
|
77
74
|
removeCard() {
|
|
78
|
-
if (this.removeCardDispatched
|
|
75
|
+
if (this.removeCardDispatched) {
|
|
79
76
|
return;
|
|
80
77
|
}
|
|
81
78
|
this.removeCardDispatched = true;
|
|
@@ -126,7 +123,6 @@ export class BlockCard extends ReactNodeView {
|
|
|
126
123
|
_defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
|
|
127
124
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
128
125
|
});
|
|
129
|
-
_defineProperty(this, "removeCardDispatched", false);
|
|
130
126
|
}
|
|
131
127
|
createDomRef() {
|
|
132
128
|
var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
|
|
@@ -174,24 +170,7 @@ export class BlockCard extends ReactNodeView {
|
|
|
174
170
|
destroy() {
|
|
175
171
|
var _this$unsubscribe;
|
|
176
172
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 ? void 0 : _this$unsubscribe.call(this);
|
|
177
|
-
|
|
178
|
-
super.destroy();
|
|
179
|
-
} else {
|
|
180
|
-
this.removeCard();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
removeCard() {
|
|
184
|
-
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
this.removeCardDispatched = true;
|
|
188
|
-
const {
|
|
189
|
-
tr
|
|
190
|
-
} = this.view.state;
|
|
191
|
-
removeCard({
|
|
192
|
-
id: this.id
|
|
193
|
-
})(tr);
|
|
194
|
-
this.view.dispatch(tr);
|
|
173
|
+
super.destroy();
|
|
195
174
|
}
|
|
196
175
|
}
|
|
197
176
|
export const blockCardNodeView = ({
|
|
@@ -9,7 +9,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
|
9
9
|
import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
14
13
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
15
14
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -272,12 +271,10 @@ export class EmbedCardComponent extends React.PureComponent {
|
|
|
272
271
|
this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
273
272
|
}
|
|
274
273
|
componentWillUnmount() {
|
|
275
|
-
|
|
276
|
-
this.removeCard();
|
|
277
|
-
}
|
|
274
|
+
this.removeCard();
|
|
278
275
|
}
|
|
279
276
|
removeCard() {
|
|
280
|
-
if (this.removeCardDispatched
|
|
277
|
+
if (this.removeCardDispatched) {
|
|
281
278
|
return;
|
|
282
279
|
}
|
|
283
280
|
this.removeCardDispatched = true;
|
|
@@ -374,7 +371,6 @@ export class EmbedCard extends ReactNodeView {
|
|
|
374
371
|
_defineProperty(this, "updateContentEditable", (editorViewModeState, divElement) => {
|
|
375
372
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
376
373
|
});
|
|
377
|
-
_defineProperty(this, "removeCardDispatched", false);
|
|
378
374
|
}
|
|
379
375
|
viewShouldUpdate(nextNode) {
|
|
380
376
|
if (this.node.attrs !== nextNode.attrs) {
|
|
@@ -420,24 +416,7 @@ export class EmbedCard extends ReactNodeView {
|
|
|
420
416
|
destroy() {
|
|
421
417
|
var _this$unsubscribe;
|
|
422
418
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 ? void 0 : _this$unsubscribe.call(this);
|
|
423
|
-
|
|
424
|
-
super.destroy();
|
|
425
|
-
} else {
|
|
426
|
-
this.removeCard();
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
removeCard() {
|
|
430
|
-
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
this.removeCardDispatched = true;
|
|
434
|
-
const {
|
|
435
|
-
tr
|
|
436
|
-
} = this.view.state;
|
|
437
|
-
removeCard({
|
|
438
|
-
id: this.id
|
|
439
|
-
})(tr);
|
|
440
|
-
this.view.dispatch(tr);
|
|
419
|
+
super.destroy();
|
|
441
420
|
}
|
|
442
421
|
}
|
|
443
422
|
export const embedCardNodeView = ({
|
|
@@ -14,7 +14,6 @@ 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';
|
|
18
17
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
19
18
|
import { Datasource } from '../nodeviews/datasource';
|
|
20
19
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
@@ -81,14 +80,12 @@ export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
81
80
|
return _createClass(BlockCardComponent, [{
|
|
82
81
|
key: "componentWillUnmount",
|
|
83
82
|
value: function componentWillUnmount() {
|
|
84
|
-
|
|
85
|
-
this.removeCard();
|
|
86
|
-
}
|
|
83
|
+
this.removeCard();
|
|
87
84
|
}
|
|
88
85
|
}, {
|
|
89
86
|
key: "removeCard",
|
|
90
87
|
value: function removeCard() {
|
|
91
|
-
if (this.removeCardDispatched
|
|
88
|
+
if (this.removeCardDispatched) {
|
|
92
89
|
return;
|
|
93
90
|
}
|
|
94
91
|
this.removeCardDispatched = true;
|
|
@@ -143,7 +140,6 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
143
140
|
_defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
144
141
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
145
142
|
});
|
|
146
|
-
_defineProperty(_this2, "removeCardDispatched", false);
|
|
147
143
|
return _this2;
|
|
148
144
|
}
|
|
149
145
|
_inherits(BlockCard, _ReactNodeView);
|
|
@@ -206,24 +202,7 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
206
202
|
value: function destroy() {
|
|
207
203
|
var _this$unsubscribe;
|
|
208
204
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
|
|
209
|
-
|
|
210
|
-
_superPropGet(BlockCard, "destroy", this, 3)([]);
|
|
211
|
-
} else {
|
|
212
|
-
this.removeCard();
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}, {
|
|
216
|
-
key: "removeCard",
|
|
217
|
-
value: function removeCard() {
|
|
218
|
-
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
this.removeCardDispatched = true;
|
|
222
|
-
var tr = this.view.state.tr;
|
|
223
|
-
_removeCard({
|
|
224
|
-
id: this.id
|
|
225
|
-
})(tr);
|
|
226
|
-
this.view.dispatch(tr);
|
|
205
|
+
_superPropGet(BlockCard, "destroy", this, 3)([]);
|
|
227
206
|
}
|
|
228
207
|
}]);
|
|
229
208
|
}(ReactNodeView);
|
|
@@ -20,7 +20,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
|
20
20
|
import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
21
21
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
|
|
22
22
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
23
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
25
24
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
26
25
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -274,14 +273,12 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
274
273
|
return _createClass(EmbedCardComponent, [{
|
|
275
274
|
key: "componentWillUnmount",
|
|
276
275
|
value: function componentWillUnmount() {
|
|
277
|
-
|
|
278
|
-
this.removeCard();
|
|
279
|
-
}
|
|
276
|
+
this.removeCard();
|
|
280
277
|
}
|
|
281
278
|
}, {
|
|
282
279
|
key: "removeCard",
|
|
283
280
|
value: function removeCard() {
|
|
284
|
-
if (this.removeCardDispatched
|
|
281
|
+
if (this.removeCardDispatched) {
|
|
285
282
|
return;
|
|
286
283
|
}
|
|
287
284
|
this.removeCardDispatched = true;
|
|
@@ -381,7 +378,6 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
381
378
|
_defineProperty(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
382
379
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
383
380
|
});
|
|
384
|
-
_defineProperty(_this2, "removeCardDispatched", false);
|
|
385
381
|
return _this2;
|
|
386
382
|
}
|
|
387
383
|
_inherits(EmbedCard, _ReactNodeView);
|
|
@@ -439,24 +435,7 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
439
435
|
value: function destroy() {
|
|
440
436
|
var _this$unsubscribe;
|
|
441
437
|
(_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
|
|
442
|
-
|
|
443
|
-
_superPropGet(EmbedCard, "destroy", this, 3)([]);
|
|
444
|
-
} else {
|
|
445
|
-
this.removeCard();
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
}, {
|
|
449
|
-
key: "removeCard",
|
|
450
|
-
value: function removeCard() {
|
|
451
|
-
if (this.removeCardDispatched && fg('platform_editor_cards_maxcallstackfix')) {
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
this.removeCardDispatched = true;
|
|
455
|
-
var tr = this.view.state.tr;
|
|
456
|
-
_removeCard({
|
|
457
|
-
id: this.id
|
|
458
|
-
})(tr);
|
|
459
|
-
this.view.dispatch(tr);
|
|
438
|
+
_superPropGet(EmbedCard, "destroy", this, 3)([]);
|
|
460
439
|
}
|
|
461
440
|
}]);
|
|
462
441
|
}(ReactNodeView);
|
|
@@ -35,8 +35,6 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
35
35
|
update(node: Node, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
|
|
36
36
|
render(): React.JSX.Element;
|
|
37
37
|
destroy(): void;
|
|
38
|
-
private removeCardDispatched;
|
|
39
|
-
private removeCard;
|
|
40
38
|
}
|
|
41
39
|
export interface BlockCardNodeViewProperties {
|
|
42
40
|
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
@@ -52,8 +52,6 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
52
52
|
private updateContentEditable;
|
|
53
53
|
render(): React.JSX.Element;
|
|
54
54
|
destroy(): void;
|
|
55
|
-
private removeCardDispatched;
|
|
56
|
-
private removeCard;
|
|
57
55
|
}
|
|
58
56
|
export interface EmbedCardNodeViewProperties {
|
|
59
57
|
allowResizing: EmbedCardNodeViewProps['allowResizing'];
|
|
@@ -35,8 +35,6 @@ export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
|
35
35
|
update(node: Node, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
|
|
36
36
|
render(): React.JSX.Element;
|
|
37
37
|
destroy(): void;
|
|
38
|
-
private removeCardDispatched;
|
|
39
|
-
private removeCard;
|
|
40
38
|
}
|
|
41
39
|
export interface BlockCardNodeViewProperties {
|
|
42
40
|
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
@@ -52,8 +52,6 @@ export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
|
52
52
|
private updateContentEditable;
|
|
53
53
|
render(): React.JSX.Element;
|
|
54
54
|
destroy(): void;
|
|
55
|
-
private removeCardDispatched;
|
|
56
|
-
private removeCard;
|
|
57
55
|
}
|
|
58
56
|
export interface EmbedCardNodeViewProperties {
|
|
59
57
|
allowResizing: EmbedCardNodeViewProps['allowResizing'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^49.0.5",
|
|
36
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
37
|
"@atlaskit/button": "^23.2.0",
|
|
38
38
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@atlaskit/menu": "^8.0.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/primitives": "^14.10.0",
|
|
62
|
-
"@atlaskit/smart-card": "^
|
|
62
|
+
"@atlaskit/smart-card": "^40.0.0",
|
|
63
63
|
"@atlaskit/theme": "^19.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
65
|
-
"@atlaskit/tokens": "^5.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^9.5.0",
|
|
65
|
+
"@atlaskit/tokens": "^5.5.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"lodash": "^4.17.21",
|
|
@@ -125,9 +125,6 @@
|
|
|
125
125
|
"platform_ssr_smartlinks_editor": {
|
|
126
126
|
"type": "boolean"
|
|
127
127
|
},
|
|
128
|
-
"platform_editor_fix_advanced_code_crash": {
|
|
129
|
-
"type": "boolean"
|
|
130
|
-
},
|
|
131
128
|
"prompt_whiteboard_competitor_link_gate": {
|
|
132
129
|
"type": "boolean"
|
|
133
130
|
},
|