@atlaskit/editor-plugin-card 4.1.0 → 4.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 +16 -0
- package/dist/cjs/nodeviews/blockCard.js +5 -14
- package/dist/cjs/nodeviews/datasource.js +1 -1
- package/dist/cjs/nodeviews/embedCard.js +7 -14
- package/dist/cjs/ui/ResizableEmbedCard.js +4 -8
- package/dist/es2019/nodeviews/blockCard.js +3 -9
- package/dist/es2019/nodeviews/datasource.js +1 -1
- package/dist/es2019/nodeviews/embedCard.js +6 -9
- package/dist/es2019/ui/ResizableEmbedCard.js +4 -6
- package/dist/esm/nodeviews/blockCard.js +5 -14
- package/dist/esm/nodeviews/datasource.js +1 -1
- package/dist/esm/nodeviews/embedCard.js +7 -14
- package/dist/esm/ui/ResizableEmbedCard.js +4 -8
- package/dist/types/nodeviews/blockCard.d.ts +1 -1
- package/dist/types/nodeviews/embedCard.d.ts +1 -1
- package/dist/types/ui/ResizableEmbedCard.d.ts +1 -2
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +1 -1
- package/dist/types-ts4.5/ui/ResizableEmbedCard.d.ts +1 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#150201](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150201)
|
|
8
|
+
[`850f81903fc73`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/850f81903fc73) -
|
|
9
|
+
Remove usage of UNSAFE lifecycles from card
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#147618](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147618)
|
|
14
|
+
[`e187b02ef8540`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e187b02ef8540) -
|
|
15
|
+
Clean up feature flag platform.linking-platform.datasource-word_wrap. This enables the
|
|
16
|
+
line-wrapping toggle in datasource tables for all customers.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -31,13 +31,10 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
31
31
|
var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
32
32
|
(0, _inherits2.default)(BlockCardComponent, _React$PureComponent);
|
|
33
33
|
var _super = _createSuper(BlockCardComponent);
|
|
34
|
-
function BlockCardComponent() {
|
|
34
|
+
function BlockCardComponent(props) {
|
|
35
35
|
var _this;
|
|
36
36
|
(0, _classCallCheck2.default)(this, BlockCardComponent);
|
|
37
|
-
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
37
|
+
_this = _super.call(this, props);
|
|
41
38
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onResolve", function (data) {
|
|
42
39
|
var _this$props = _this.props,
|
|
43
40
|
getPos = _this$props.getPos,
|
|
@@ -81,16 +78,10 @@ var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_Re
|
|
|
81
78
|
throw err;
|
|
82
79
|
}
|
|
83
80
|
});
|
|
81
|
+
_this.scrollContainer = (0, _ui.findOverflowScrollParent)(props.view.dom) || undefined;
|
|
84
82
|
return _this;
|
|
85
83
|
}
|
|
86
84
|
(0, _createClass2.default)(BlockCardComponent, [{
|
|
87
|
-
key: "UNSAFE_componentWillMount",
|
|
88
|
-
value: function UNSAFE_componentWillMount() {
|
|
89
|
-
var view = this.props.view;
|
|
90
|
-
var scrollContainer = (0, _ui.findOverflowScrollParent)(view.dom);
|
|
91
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
85
|
key: "render",
|
|
95
86
|
value: function render() {
|
|
96
87
|
var _this$props2 = this.props,
|
|
@@ -132,8 +123,8 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
132
123
|
function BlockCard() {
|
|
133
124
|
var _this2;
|
|
134
125
|
(0, _classCallCheck2.default)(this, BlockCard);
|
|
135
|
-
for (var
|
|
136
|
-
args[
|
|
126
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
127
|
+
args[_key] = arguments[_key];
|
|
137
128
|
}
|
|
138
129
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
139
130
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "updateContentEditable", function (editorViewModeState, divElement) {
|
|
@@ -208,7 +208,7 @@ var DatasourceComponent = exports.DatasourceComponent = /*#__PURE__*/function (_
|
|
|
208
208
|
url: attrs === null || attrs === void 0 ? void 0 : attrs.url,
|
|
209
209
|
onColumnResize: this.handleColumnResize,
|
|
210
210
|
columnCustomSizes: columnCustomSizes,
|
|
211
|
-
onWrappedColumnChange:
|
|
211
|
+
onWrappedColumnChange: this.handleWrappedColumnChange,
|
|
212
212
|
wrappedColumnKeys: wrappedColumnKeys
|
|
213
213
|
})));
|
|
214
214
|
}
|
|
@@ -104,13 +104,10 @@ var CardInner = function CardInner(_ref) {
|
|
|
104
104
|
var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
105
105
|
(0, _inherits2.default)(EmbedCardComponent, _React$PureComponent);
|
|
106
106
|
var _super = _createSuper(EmbedCardComponent);
|
|
107
|
-
function EmbedCardComponent() {
|
|
107
|
+
function EmbedCardComponent(props) {
|
|
108
108
|
var _this;
|
|
109
109
|
(0, _classCallCheck2.default)(this, EmbedCardComponent);
|
|
110
|
-
|
|
111
|
-
args[_key] = arguments[_key];
|
|
112
|
-
}
|
|
113
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
110
|
+
_this = _super.call(this, props);
|
|
114
111
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "embedIframeRef", /*#__PURE__*/_react.default.createRef());
|
|
115
112
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
|
|
116
113
|
hasPreview: true
|
|
@@ -249,16 +246,12 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
|
|
|
249
246
|
throw err;
|
|
250
247
|
}
|
|
251
248
|
});
|
|
249
|
+
_this.scrollContainer = (0, _ui.findOverflowScrollParent)(props.view.dom) || undefined;
|
|
252
250
|
return _this;
|
|
253
251
|
}
|
|
252
|
+
|
|
253
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
254
254
|
(0, _createClass2.default)(EmbedCardComponent, [{
|
|
255
|
-
key: "UNSAFE_componentWillMount",
|
|
256
|
-
value: function UNSAFE_componentWillMount() {
|
|
257
|
-
var view = this.props.view;
|
|
258
|
-
var scrollContainer = (0, _ui.findOverflowScrollParent)(view.dom);
|
|
259
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
255
|
key: "render",
|
|
263
256
|
value: function render() {
|
|
264
257
|
var _this$props = this.props,
|
|
@@ -350,8 +343,8 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
350
343
|
function EmbedCard() {
|
|
351
344
|
var _this2;
|
|
352
345
|
(0, _classCallCheck2.default)(this, EmbedCard);
|
|
353
|
-
for (var
|
|
354
|
-
args[
|
|
346
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
347
|
+
args[_key] = arguments[_key];
|
|
355
348
|
}
|
|
356
349
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
357
350
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "updateContentEditable", function (editorViewModeState, divElement) {
|
|
@@ -138,26 +138,22 @@ var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Compone
|
|
|
138
138
|
}
|
|
139
139
|
(0, _createClass2.default)(ResizableEmbedCard, [{
|
|
140
140
|
key: "componentDidUpdate",
|
|
141
|
-
value: function componentDidUpdate() {
|
|
141
|
+
value: function componentDidUpdate(prevProps) {
|
|
142
142
|
var offsetLeft = this.calcOffsetLeft();
|
|
143
143
|
if (offsetLeft !== this.state.offsetLeft && offsetLeft >= 0) {
|
|
144
144
|
this.setState({
|
|
145
145
|
offsetLeft: offsetLeft
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
+
if (this.props.layout !== prevProps.layout) {
|
|
149
|
+
this.checkLayout(prevProps.layout, this.props.layout);
|
|
150
|
+
}
|
|
148
151
|
}
|
|
149
152
|
}, {
|
|
150
153
|
key: "wrappedLayout",
|
|
151
154
|
get: function get() {
|
|
152
155
|
return _ui.wrappedLayouts.indexOf(this.props.layout) > -1;
|
|
153
156
|
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
156
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
157
|
-
if (this.props.layout !== nextProps.layout) {
|
|
158
|
-
this.checkLayout(this.props.layout, nextProps.layout);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
157
|
|
|
162
158
|
/**
|
|
163
159
|
* When returning to center layout from a wrapped/aligned layout, it might actually
|
|
@@ -14,8 +14,8 @@ import { Card } from './genericCard';
|
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
16
16
|
export class BlockCardComponent extends React.PureComponent {
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
17
|
+
constructor(props) {
|
|
18
|
+
super(props);
|
|
19
19
|
_defineProperty(this, "onResolve", data => {
|
|
20
20
|
const {
|
|
21
21
|
getPos,
|
|
@@ -63,13 +63,7 @@ export class BlockCardComponent extends React.PureComponent {
|
|
|
63
63
|
throw err;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
|
|
67
|
-
UNSAFE_componentWillMount() {
|
|
68
|
-
const {
|
|
69
|
-
view
|
|
70
|
-
} = this.props;
|
|
71
|
-
const scrollContainer = findOverflowScrollParent(view.dom);
|
|
72
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
66
|
+
this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
73
67
|
}
|
|
74
68
|
render() {
|
|
75
69
|
const {
|
|
@@ -173,7 +173,7 @@ export class DatasourceComponent extends React.PureComponent {
|
|
|
173
173
|
url: attrs === null || attrs === void 0 ? void 0 : attrs.url,
|
|
174
174
|
onColumnResize: this.handleColumnResize,
|
|
175
175
|
columnCustomSizes: columnCustomSizes,
|
|
176
|
-
onWrappedColumnChange:
|
|
176
|
+
onWrappedColumnChange: this.handleWrappedColumnChange,
|
|
177
177
|
wrappedColumnKeys: wrappedColumnKeys
|
|
178
178
|
})));
|
|
179
179
|
}
|
|
@@ -86,8 +86,8 @@ const CardInner = ({
|
|
|
86
86
|
};
|
|
87
87
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
88
88
|
export class EmbedCardComponent extends React.PureComponent {
|
|
89
|
-
constructor(
|
|
90
|
-
super(
|
|
89
|
+
constructor(props) {
|
|
90
|
+
super(props);
|
|
91
91
|
_defineProperty(this, "embedIframeRef", /*#__PURE__*/React.createRef());
|
|
92
92
|
_defineProperty(this, "state", {
|
|
93
93
|
hasPreview: true
|
|
@@ -238,14 +238,11 @@ export class EmbedCardComponent extends React.PureComponent {
|
|
|
238
238
|
throw err;
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
+
this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
241
242
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
} = this.props;
|
|
246
|
-
const scrollContainer = findOverflowScrollParent(view.dom);
|
|
247
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
248
|
-
}
|
|
243
|
+
|
|
244
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
245
|
+
|
|
249
246
|
render() {
|
|
250
247
|
const {
|
|
251
248
|
node,
|
|
@@ -126,22 +126,20 @@ export default class ResizableEmbedCard extends React.Component {
|
|
|
126
126
|
return highlight;
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
componentDidUpdate() {
|
|
129
|
+
componentDidUpdate(prevProps) {
|
|
130
130
|
const offsetLeft = this.calcOffsetLeft();
|
|
131
131
|
if (offsetLeft !== this.state.offsetLeft && offsetLeft >= 0) {
|
|
132
132
|
this.setState({
|
|
133
133
|
offsetLeft
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
+
if (this.props.layout !== prevProps.layout) {
|
|
137
|
+
this.checkLayout(prevProps.layout, this.props.layout);
|
|
138
|
+
}
|
|
136
139
|
}
|
|
137
140
|
get wrappedLayout() {
|
|
138
141
|
return wrappedLayouts.indexOf(this.props.layout) > -1;
|
|
139
142
|
}
|
|
140
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
141
|
-
if (this.props.layout !== nextProps.layout) {
|
|
142
|
-
this.checkLayout(this.props.layout, nextProps.layout);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
143
|
|
|
146
144
|
/**
|
|
147
145
|
* When returning to center layout from a wrapped/aligned layout, it might actually
|
|
@@ -25,13 +25,10 @@ import { Card } from './genericCard';
|
|
|
25
25
|
export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
26
|
_inherits(BlockCardComponent, _React$PureComponent);
|
|
27
27
|
var _super = _createSuper(BlockCardComponent);
|
|
28
|
-
function BlockCardComponent() {
|
|
28
|
+
function BlockCardComponent(props) {
|
|
29
29
|
var _this;
|
|
30
30
|
_classCallCheck(this, BlockCardComponent);
|
|
31
|
-
|
|
32
|
-
args[_key] = arguments[_key];
|
|
33
|
-
}
|
|
34
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
31
|
+
_this = _super.call(this, props);
|
|
35
32
|
_defineProperty(_assertThisInitialized(_this), "onResolve", function (data) {
|
|
36
33
|
var _this$props = _this.props,
|
|
37
34
|
getPos = _this$props.getPos,
|
|
@@ -75,16 +72,10 @@ export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
75
72
|
throw err;
|
|
76
73
|
}
|
|
77
74
|
});
|
|
75
|
+
_this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
78
76
|
return _this;
|
|
79
77
|
}
|
|
80
78
|
_createClass(BlockCardComponent, [{
|
|
81
|
-
key: "UNSAFE_componentWillMount",
|
|
82
|
-
value: function UNSAFE_componentWillMount() {
|
|
83
|
-
var view = this.props.view;
|
|
84
|
-
var scrollContainer = findOverflowScrollParent(view.dom);
|
|
85
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
79
|
key: "render",
|
|
89
80
|
value: function render() {
|
|
90
81
|
var _this$props2 = this.props,
|
|
@@ -126,8 +117,8 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
126
117
|
function BlockCard() {
|
|
127
118
|
var _this2;
|
|
128
119
|
_classCallCheck(this, BlockCard);
|
|
129
|
-
for (var
|
|
130
|
-
args[
|
|
120
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
121
|
+
args[_key] = arguments[_key];
|
|
131
122
|
}
|
|
132
123
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
133
124
|
_defineProperty(_assertThisInitialized(_this2), "updateContentEditable", function (editorViewModeState, divElement) {
|
|
@@ -204,7 +204,7 @@ export var DatasourceComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
204
204
|
url: attrs === null || attrs === void 0 ? void 0 : attrs.url,
|
|
205
205
|
onColumnResize: this.handleColumnResize,
|
|
206
206
|
columnCustomSizes: columnCustomSizes,
|
|
207
|
-
onWrappedColumnChange:
|
|
207
|
+
onWrappedColumnChange: this.handleWrappedColumnChange,
|
|
208
208
|
wrappedColumnKeys: wrappedColumnKeys
|
|
209
209
|
})));
|
|
210
210
|
}
|
|
@@ -97,13 +97,10 @@ var CardInner = function CardInner(_ref) {
|
|
|
97
97
|
export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
98
98
|
_inherits(EmbedCardComponent, _React$PureComponent);
|
|
99
99
|
var _super = _createSuper(EmbedCardComponent);
|
|
100
|
-
function EmbedCardComponent() {
|
|
100
|
+
function EmbedCardComponent(props) {
|
|
101
101
|
var _this;
|
|
102
102
|
_classCallCheck(this, EmbedCardComponent);
|
|
103
|
-
|
|
104
|
-
args[_key] = arguments[_key];
|
|
105
|
-
}
|
|
106
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
103
|
+
_this = _super.call(this, props);
|
|
107
104
|
_defineProperty(_assertThisInitialized(_this), "embedIframeRef", /*#__PURE__*/React.createRef());
|
|
108
105
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
109
106
|
hasPreview: true
|
|
@@ -242,16 +239,12 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
242
239
|
throw err;
|
|
243
240
|
}
|
|
244
241
|
});
|
|
242
|
+
_this.scrollContainer = findOverflowScrollParent(props.view.dom) || undefined;
|
|
245
243
|
return _this;
|
|
246
244
|
}
|
|
245
|
+
|
|
246
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
247
247
|
_createClass(EmbedCardComponent, [{
|
|
248
|
-
key: "UNSAFE_componentWillMount",
|
|
249
|
-
value: function UNSAFE_componentWillMount() {
|
|
250
|
-
var view = this.props.view;
|
|
251
|
-
var scrollContainer = findOverflowScrollParent(view.dom);
|
|
252
|
-
this.scrollContainer = scrollContainer || undefined;
|
|
253
|
-
}
|
|
254
|
-
}, {
|
|
255
248
|
key: "render",
|
|
256
249
|
value: function render() {
|
|
257
250
|
var _this$props = this.props,
|
|
@@ -343,8 +336,8 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
343
336
|
function EmbedCard() {
|
|
344
337
|
var _this2;
|
|
345
338
|
_classCallCheck(this, EmbedCard);
|
|
346
|
-
for (var
|
|
347
|
-
args[
|
|
339
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
340
|
+
args[_key] = arguments[_key];
|
|
348
341
|
}
|
|
349
342
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
350
343
|
_defineProperty(_assertThisInitialized(_this2), "updateContentEditable", function (editorViewModeState, divElement) {
|
|
@@ -134,26 +134,22 @@ var ResizableEmbedCard = /*#__PURE__*/function (_React$Component) {
|
|
|
134
134
|
}
|
|
135
135
|
_createClass(ResizableEmbedCard, [{
|
|
136
136
|
key: "componentDidUpdate",
|
|
137
|
-
value: function componentDidUpdate() {
|
|
137
|
+
value: function componentDidUpdate(prevProps) {
|
|
138
138
|
var offsetLeft = this.calcOffsetLeft();
|
|
139
139
|
if (offsetLeft !== this.state.offsetLeft && offsetLeft >= 0) {
|
|
140
140
|
this.setState({
|
|
141
141
|
offsetLeft: offsetLeft
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
+
if (this.props.layout !== prevProps.layout) {
|
|
145
|
+
this.checkLayout(prevProps.layout, this.props.layout);
|
|
146
|
+
}
|
|
144
147
|
}
|
|
145
148
|
}, {
|
|
146
149
|
key: "wrappedLayout",
|
|
147
150
|
get: function get() {
|
|
148
151
|
return wrappedLayouts.indexOf(this.props.layout) > -1;
|
|
149
152
|
}
|
|
150
|
-
}, {
|
|
151
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
152
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
153
|
-
if (this.props.layout !== nextProps.layout) {
|
|
154
|
-
this.checkLayout(this.props.layout, nextProps.layout);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
153
|
|
|
158
154
|
/**
|
|
159
155
|
* When returning to center layout from a wrapped/aligned layout, it might actually
|
|
@@ -11,7 +11,7 @@ export declare class BlockCardComponent extends React.PureComponent<SmartCardPro
|
|
|
11
11
|
static contextTypes: {
|
|
12
12
|
contextAdapter: PropTypes.Requireable<object>;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
constructor(props: SmartCardProps);
|
|
15
15
|
onResolve: (data: {
|
|
16
16
|
url?: string | undefined;
|
|
17
17
|
title?: string | undefined;
|
|
@@ -15,12 +15,12 @@ export type EmbedCardState = {
|
|
|
15
15
|
export declare class EmbedCardComponent extends React.PureComponent<SmartCardProps, EmbedCardState> {
|
|
16
16
|
private scrollContainer?;
|
|
17
17
|
private embedIframeRef;
|
|
18
|
+
constructor(props: SmartCardProps);
|
|
18
19
|
context: any;
|
|
19
20
|
static contextTypes: {
|
|
20
21
|
contextAdapter: PropTypes.Requireable<object>;
|
|
21
22
|
};
|
|
22
23
|
state: EmbedCardState;
|
|
23
|
-
UNSAFE_componentWillMount(): void;
|
|
24
24
|
private getPosSafely;
|
|
25
25
|
onResolve: (data: {
|
|
26
26
|
url?: string | undefined;
|
|
@@ -20,9 +20,8 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
|
|
|
20
20
|
aspectRatio: number;
|
|
21
21
|
};
|
|
22
22
|
state: State;
|
|
23
|
-
componentDidUpdate(): void;
|
|
23
|
+
componentDidUpdate(prevProps: Props): void;
|
|
24
24
|
get wrappedLayout(): boolean;
|
|
25
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
26
25
|
/**
|
|
27
26
|
* When returning to center layout from a wrapped/aligned layout, it might actually
|
|
28
27
|
* be wide or full-width
|
|
@@ -11,7 +11,7 @@ export declare class BlockCardComponent extends React.PureComponent<SmartCardPro
|
|
|
11
11
|
static contextTypes: {
|
|
12
12
|
contextAdapter: PropTypes.Requireable<object>;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
constructor(props: SmartCardProps);
|
|
15
15
|
onResolve: (data: {
|
|
16
16
|
url?: string | undefined;
|
|
17
17
|
title?: string | undefined;
|
|
@@ -15,12 +15,12 @@ export type EmbedCardState = {
|
|
|
15
15
|
export declare class EmbedCardComponent extends React.PureComponent<SmartCardProps, EmbedCardState> {
|
|
16
16
|
private scrollContainer?;
|
|
17
17
|
private embedIframeRef;
|
|
18
|
+
constructor(props: SmartCardProps);
|
|
18
19
|
context: any;
|
|
19
20
|
static contextTypes: {
|
|
20
21
|
contextAdapter: PropTypes.Requireable<object>;
|
|
21
22
|
};
|
|
22
23
|
state: EmbedCardState;
|
|
23
|
-
UNSAFE_componentWillMount(): void;
|
|
24
24
|
private getPosSafely;
|
|
25
25
|
onResolve: (data: {
|
|
26
26
|
url?: string | undefined;
|
|
@@ -20,9 +20,8 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
|
|
|
20
20
|
aspectRatio: number;
|
|
21
21
|
};
|
|
22
22
|
state: State;
|
|
23
|
-
componentDidUpdate(): void;
|
|
23
|
+
componentDidUpdate(prevProps: Props): void;
|
|
24
24
|
get wrappedLayout(): boolean;
|
|
25
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
26
25
|
/**
|
|
27
26
|
* When returning to center layout from a wrapped/aligned layout, it might actually
|
|
28
27
|
* be wide or full-width
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
36
36
|
"@atlaskit/custom-steps": "^0.7.0",
|
|
37
|
-
"@atlaskit/editor-common": "^93.
|
|
37
|
+
"@atlaskit/editor-common": "^93.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/menu": "2.12.7",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/primitives": "^12.2.0",
|
|
58
|
-
"@atlaskit/smart-card": "^29.
|
|
58
|
+
"@atlaskit/smart-card": "^29.2.0",
|
|
59
59
|
"@atlaskit/theme": "^13.0.0",
|
|
60
60
|
"@atlaskit/tmp-editor-statsig": "^2.3.0",
|
|
61
61
|
"@atlaskit/tokens": "^2.0.0",
|
|
@@ -117,9 +117,6 @@
|
|
|
117
117
|
"platform.linking-platform.enable-datasource-edit-dropdown-toolbar": {
|
|
118
118
|
"type": "boolean"
|
|
119
119
|
},
|
|
120
|
-
"platform.linking-platform.datasource-word_wrap": {
|
|
121
|
-
"type": "boolean"
|
|
122
|
-
},
|
|
123
120
|
"linking-platform-contenteditable-false-live-view": {
|
|
124
121
|
"type": "boolean"
|
|
125
122
|
},
|