@atlaskit/editor-common 112.19.0 → 112.19.1

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,12 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`24dad72901730`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24dad72901730) -
8
+ Editor-6083: Fix border no shown when resize embed inside synced block
9
+
3
10
  ## 112.19.0
4
11
 
5
12
  ### Minor Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "112.18.10";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "112.18.10";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -65,9 +65,13 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
65
65
  displayGrid = _this$props.displayGrid,
66
66
  layout = _this$props.layout,
67
67
  width = _this$props.width,
68
- snapPoints = _this$props.snapPoints;
68
+ snapPoints = _this$props.snapPoints,
69
+ onResizeStart = _this$props.onResizeStart;
69
70
  // prevent creating a drag event on Firefox
70
71
  event.preventDefault();
72
+ if (onResizeStart) {
73
+ onResizeStart();
74
+ }
71
75
  _this.setState({
72
76
  isResizing: true
73
77
  }, function () {
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "112.18.10";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "112.18.10";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -43,10 +43,14 @@ export default class Resizer extends React.Component {
43
43
  displayGrid,
44
44
  layout,
45
45
  width,
46
- snapPoints
46
+ snapPoints,
47
+ onResizeStart
47
48
  } = this.props;
48
49
  // prevent creating a drag event on Firefox
49
50
  event.preventDefault();
51
+ if (onResizeStart) {
52
+ onResizeStart();
53
+ }
50
54
  this.setState({
51
55
  isResizing: true
52
56
  }, () => {
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "112.18.10";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "112.18.10";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -58,9 +58,13 @@ var Resizer = /*#__PURE__*/function (_React$Component) {
58
58
  displayGrid = _this$props.displayGrid,
59
59
  layout = _this$props.layout,
60
60
  width = _this$props.width,
61
- snapPoints = _this$props.snapPoints;
61
+ snapPoints = _this$props.snapPoints,
62
+ onResizeStart = _this$props.onResizeStart;
62
63
  // prevent creating a drag event on Firefox
63
64
  event.preventDefault();
65
+ if (onResizeStart) {
66
+ onResizeStart();
67
+ }
64
68
  _this.setState({
65
69
  isResizing: true
66
70
  }, function () {
@@ -22,6 +22,7 @@ export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> &
22
22
  highlights: (width: number, snapPoints: number[]) => number[] | string[];
23
23
  innerPadding?: number;
24
24
  nodeType?: 'media' | 'embed';
25
+ onResizeStart?: () => void;
25
26
  ratio?: string;
26
27
  scaleFactor?: number;
27
28
  selected?: boolean;
@@ -22,6 +22,7 @@ export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> &
22
22
  highlights: (width: number, snapPoints: number[]) => number[] | string[];
23
23
  innerPadding?: number;
24
24
  nodeType?: 'media' | 'embed';
25
+ onResizeStart?: () => void;
25
26
  ratio?: string;
26
27
  scaleFactor?: number;
27
28
  selected?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "112.19.0",
3
+ "version": "112.19.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"