@atlaskit/editor-common 112.18.10 → 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,19 @@
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
+
10
+ ## 112.19.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`aafeeed5d38f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aafeeed5d38f9) -
15
+ [ux] add beta lozenge to admin skills in editor popup menu
16
+
3
17
  ## 112.18.10
4
18
 
5
19
  ### Patch Changes
@@ -466,7 +466,7 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref8) {
466
466
  space: "space.025"
467
467
  }, (0, _react2.jsx)("div", {
468
468
  css: itemTitleWrapper
469
- }, (0, _experiments.editorExperiment)('platform_synced_block', true) ? (0, _react2.jsx)(_compiled.Flex, {
469
+ }, (0, _experiments.editorExperiment)('platform_synced_block', true) || lozenge ? (0, _react2.jsx)(_compiled.Flex, {
470
470
  alignItems: "center",
471
471
  gap: "space.050"
472
472
  }, (0, _react2.jsx)(_compiled.Text, {
@@ -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.9";
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.9";
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 () {
@@ -457,7 +457,7 @@ const ItemContent = /*#__PURE__*/memo(({
457
457
  space: "space.025"
458
458
  }, jsx("div", {
459
459
  css: itemTitleWrapper
460
- }, editorExperiment('platform_synced_block', true) ? jsx(Flex, {
460
+ }, editorExperiment('platform_synced_block', true) || lozenge ? jsx(Flex, {
461
461
  alignItems: "center",
462
462
  gap: "space.050"
463
463
  }, jsx(Text, {
@@ -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.9";
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.9";
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
  }, () => {
@@ -455,7 +455,7 @@ var ItemContent = /*#__PURE__*/memo(function (_ref8) {
455
455
  space: "space.025"
456
456
  }, jsx("div", {
457
457
  css: itemTitleWrapper
458
- }, editorExperiment('platform_synced_block', true) ? jsx(Flex, {
458
+ }, editorExperiment('platform_synced_block', true) || lozenge ? jsx(Flex, {
459
459
  alignItems: "center",
460
460
  gap: "space.050"
461
461
  }, jsx(Text, {
@@ -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.9";
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.9";
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.18.10",
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/"