@atlaskit/editor-core 182.0.2 → 182.0.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-core
2
2
 
3
+ ## 182.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bcdf4f2913f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bcdf4f2913f) - add missing border mark data to the media analytic context
8
+
3
9
  ## 182.0.2
4
10
 
5
11
  ### Patch Changes
@@ -15,6 +15,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
15
15
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _utils = require("@atlaskit/editor-common/utils");
18
+ var _analyticsNext = require("@atlaskit/analytics-next");
19
+ var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
18
20
  var _mediaCard = require("@atlaskit/media-card");
19
21
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
20
22
  var _react = _interopRequireWildcard(require("react"));
@@ -209,6 +211,10 @@ var MediaNode = /*#__PURE__*/function (_Component) {
209
211
  onContextMenu: this.selectMediaSingle,
210
212
  borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
211
213
  selected: selected
214
+ }, /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
215
+ data: (0, _defineProperty2.default)({}, _analyticsNamespacedContext.MEDIA_CONTEXT, {
216
+ border: !!borderMark
217
+ })
212
218
  }, /*#__PURE__*/_react.default.createElement(_mediaCard.Card, {
213
219
  mediaClientConfig: mediaClientConfig,
214
220
  resizeMode: "stretchy-fit",
@@ -225,7 +231,7 @@ var MediaNode = /*#__PURE__*/function (_Component) {
225
231
  featureFlags: mediaOptions && mediaOptions.featureFlags,
226
232
  contextId: contextId,
227
233
  alt: alt
228
- }));
234
+ })));
229
235
  }
230
236
  }]);
231
237
  return MediaNode;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "182.0.2";
9
+ var version = "182.0.3";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.0.2",
3
+ "version": "182.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { withImageLoader } from '@atlaskit/editor-common/utils';
3
+ import { AnalyticsContext } from '@atlaskit/analytics-next';
4
+ import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
3
5
  import { Card, CardLoading } from '@atlaskit/media-card';
4
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
7
  import React, { Component } from 'react';
@@ -142,6 +144,12 @@ export class MediaNode extends Component {
142
144
  onContextMenu: this.selectMediaSingle,
143
145
  borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
144
146
  selected: selected
147
+ }, /*#__PURE__*/React.createElement(AnalyticsContext, {
148
+ data: {
149
+ [MEDIA_CONTEXT]: {
150
+ border: !!borderMark
151
+ }
152
+ }
145
153
  }, /*#__PURE__*/React.createElement(Card, {
146
154
  mediaClientConfig: mediaClientConfig,
147
155
  resizeMode: "stretchy-fit",
@@ -158,7 +166,7 @@ export class MediaNode extends Component {
158
166
  featureFlags: mediaOptions && mediaOptions.featureFlags,
159
167
  contextId: contextId,
160
168
  alt: alt
161
- }));
169
+ })));
162
170
  }
163
171
  }
164
172
  export default withImageLoader(MediaNode);
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "182.0.2";
2
+ export const version = "182.0.3";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.0.2",
3
+ "version": "182.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -11,6 +11,8 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  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; } }
13
13
  import { withImageLoader } from '@atlaskit/editor-common/utils';
14
+ import { AnalyticsContext } from '@atlaskit/analytics-next';
15
+ import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
14
16
  import { Card, CardLoading } from '@atlaskit/media-card';
15
17
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
16
18
  import React, { Component } from 'react';
@@ -198,6 +200,10 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
198
200
  onContextMenu: this.selectMediaSingle,
199
201
  borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
200
202
  selected: selected
203
+ }, /*#__PURE__*/React.createElement(AnalyticsContext, {
204
+ data: _defineProperty({}, MEDIA_CONTEXT, {
205
+ border: !!borderMark
206
+ })
201
207
  }, /*#__PURE__*/React.createElement(Card, {
202
208
  mediaClientConfig: mediaClientConfig,
203
209
  resizeMode: "stretchy-fit",
@@ -214,7 +220,7 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
214
220
  featureFlags: mediaOptions && mediaOptions.featureFlags,
215
221
  contextId: contextId,
216
222
  alt: alt
217
- }));
223
+ })));
218
224
  }
219
225
  }]);
220
226
  return MediaNode;
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "182.0.2";
2
+ export var version = "182.0.3";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.0.2",
3
+ "version": "182.0.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.0.2",
3
+ "version": "182.0.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"