@atlaskit/editor-plugin-card 0.3.2 → 0.3.3

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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`02d1ab1d57d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02d1ab1d57d) - Improve DnD Experience in Datasource Table view
8
+
3
9
  ## 0.3.2
4
10
 
5
11
  ### Patch Changes
@@ -23,10 +23,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
23
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
- var containerStyles = (0, _react2.css)({
27
- height: '500px',
28
- overflow: 'auto'
29
- });
30
26
  // eslint-disable-next-line @repo/internal/react/no-class-components
31
27
  var DatasourceComponent = /*#__PURE__*/function (_React$PureComponent) {
32
28
  (0, _inherits2.default)(DatasourceComponent, _React$PureComponent);
@@ -157,7 +153,6 @@ var Datasource = /*#__PURE__*/function (_ReactNodeView) {
157
153
  var calculatedWidth = this.calcTableWidth(attrs.layout, this.tableWidth);
158
154
  return (0, _react2.jsx)("div", {
159
155
  className: _styles.DATASOURCE_INNER_CONTAINER_CLASSNAME,
160
- css: containerStyles,
161
156
  style: {
162
157
  minWidth: calculatedWidth
163
158
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,16 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  import React from 'react';
4
- import { css, jsx } from '@emotion/react';
4
+ import { jsx } from '@emotion/react';
5
5
  import PropTypes from 'prop-types';
6
6
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
7
7
  import { DATASOURCE_INNER_CONTAINER_CLASSNAME, SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
8
8
  import { calcBreakoutWidthPx } from '@atlaskit/editor-common/utils';
9
9
  import { DatasourceTableView } from '@atlaskit/link-datasource';
10
- const containerStyles = css({
11
- height: '500px',
12
- overflow: 'auto'
13
- });
14
10
  // eslint-disable-next-line @repo/internal/react/no-class-components
15
11
  export class DatasourceComponent extends React.PureComponent {
16
12
  constructor(props) {
@@ -124,7 +120,6 @@ export class Datasource extends ReactNodeView {
124
120
  const calculatedWidth = this.calcTableWidth(attrs.layout, this.tableWidth);
125
121
  return jsx("div", {
126
122
  className: DATASOURCE_INNER_CONTAINER_CLASSNAME,
127
- css: containerStyles,
128
123
  style: {
129
124
  minWidth: calculatedWidth
130
125
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -11,16 +11,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
11
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
12
  /** @jsx jsx */
13
13
  import React from 'react';
14
- import { css, jsx } from '@emotion/react';
14
+ import { jsx } from '@emotion/react';
15
15
  import PropTypes from 'prop-types';
16
16
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
17
17
  import { DATASOURCE_INNER_CONTAINER_CLASSNAME, SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
18
18
  import { calcBreakoutWidthPx } from '@atlaskit/editor-common/utils';
19
19
  import { DatasourceTableView } from '@atlaskit/link-datasource';
20
- var containerStyles = css({
21
- height: '500px',
22
- overflow: 'auto'
23
- });
24
20
  // eslint-disable-next-line @repo/internal/react/no-class-components
25
21
  export var DatasourceComponent = /*#__PURE__*/function (_React$PureComponent) {
26
22
  _inherits(DatasourceComponent, _React$PureComponent);
@@ -150,7 +146,6 @@ export var Datasource = /*#__PURE__*/function (_ReactNodeView) {
150
146
  var calculatedWidth = this.calcTableWidth(attrs.layout, this.tableWidth);
151
147
  return jsx("div", {
152
148
  className: DATASOURCE_INNER_CONTAINER_CLASSNAME,
153
- css: containerStyles,
154
149
  style: {
155
150
  minWidth: calculatedWidth
156
151
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^26.4.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/editor-common": "^74.29.0",
36
+ "@atlaskit/editor-common": "^74.30.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.1.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/link-analytics": "^8.2.0",
48
48
  "@atlaskit/link-datasource": "^0.31.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.0",
50
- "@atlaskit/smart-card": "^26.13.0",
50
+ "@atlaskit/smart-card": "^26.14.0",
51
51
  "@atlaskit/theme": "^12.5.0",
52
52
  "@atlaskit/tokens": "^1.13.0",
53
53
  "@babel/runtime": "^7.0.0",