@atlaskit/editor-plugin-card 4.0.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 CHANGED
@@ -1,5 +1,29 @@
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
+
19
+ ## 4.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#150349](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150349)
24
+ [`3930014486c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3930014486c26) -
25
+ Clean up FF that disables inline smart-card overlay in view mode
26
+
3
27
  ## 4.0.0
4
28
 
5
29
  ### Major 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
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
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 _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
136
- args[_key2] = arguments[_key2];
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: (0, _platformFeatureFlags.fg)('platform.linking-platform.datasource-word_wrap') ? this.handleWrappedColumnChange : undefined,
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
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
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 _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
354
- args[_key2] = arguments[_key2];
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) {
@@ -162,7 +162,7 @@ function InlineCardNodeView(props) {
162
162
  useAlternativePreloader: useAlternativePreloader,
163
163
  pluginInjectionApi: pluginInjectionApi,
164
164
  onClickCallback: onClickCallback
165
- }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, (0, _platformFeatureFlags.fg)('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
165
+ }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
166
166
  }
167
167
  var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref2) {
168
168
  var inlineCardViewProducer = _ref2.inlineCardViewProducer;
@@ -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(...args) {
18
- super(...args);
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: fg('platform.linking-platform.datasource-word_wrap') ? this.handleWrappedColumnChange : undefined,
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(...args) {
90
- super(...args);
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
- UNSAFE_componentWillMount() {
243
- const {
244
- view
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,
@@ -151,7 +151,7 @@ export function InlineCardNodeView(props) {
151
151
  useAlternativePreloader: useAlternativePreloader,
152
152
  pluginInjectionApi: pluginInjectionApi,
153
153
  onClickCallback: onClickCallback
154
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, fg('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
154
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
155
155
  }
156
156
  export const inlineCardNodeView = ({
157
157
  inlineCardViewProducer
@@ -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
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
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 _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
130
- args[_key2] = arguments[_key2];
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: fg('platform.linking-platform.datasource-word_wrap') ? this.handleWrappedColumnChange : undefined,
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
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
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 _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
347
- args[_key2] = arguments[_key2];
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) {
@@ -150,7 +150,7 @@ export function InlineCardNodeView(props) {
150
150
  useAlternativePreloader: useAlternativePreloader,
151
151
  pluginInjectionApi: pluginInjectionApi,
152
152
  onClickCallback: onClickCallback
153
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, fg('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
153
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
154
154
  }
155
155
  export var inlineCardNodeView = function inlineCardNodeView(_ref2) {
156
156
  var inlineCardViewProducer = _ref2.inlineCardViewProducer;
@@ -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
- UNSAFE_componentWillMount(): void;
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
- UNSAFE_componentWillMount(): void;
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.0.0",
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.1.0",
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",
@@ -46,16 +46,16 @@
46
46
  "@atlaskit/editor-prosemirror": "6.0.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.0.0",
48
48
  "@atlaskit/frontend-utilities": "^2.7.0",
49
- "@atlaskit/icon": "^22.21.0",
49
+ "@atlaskit/icon": "^22.22.0",
50
50
  "@atlaskit/link-analytics": "^8.5.0",
51
51
  "@atlaskit/link-client-extension": "^2.4.0",
52
- "@atlaskit/link-datasource": "^3.4.0",
52
+ "@atlaskit/link-datasource": "^3.5.0",
53
53
  "@atlaskit/linking-common": "^5.11.0",
54
54
  "@atlaskit/linking-types": "^9.0.0",
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.0.0",
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
  },
@@ -132,9 +129,6 @@
132
129
  "platform_linking_enable_transaction_filtering": {
133
130
  "type": "boolean"
134
131
  },
135
- "linking_platform_disable_live_view_inline_overlay": {
136
- "type": "boolean"
137
- },
138
132
  "linking_platform_smart_links_in_live_pages": {
139
133
  "type": "boolean"
140
134
  },