@atlaskit/editor-common 110.17.0 → 110.17.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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`74c8f9fcfdf9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/74c8f9fcfdf9d) -
8
+ Selection toolbar experience tracking
9
+ - Updated dependencies
10
+
3
11
  ## 110.17.0
4
12
 
5
13
  ### Minor Changes
@@ -24,7 +24,10 @@ var Experience = exports.Experience = /*#__PURE__*/function () {
24
24
  if (!this._ufoExperience) {
25
25
  this._ufoExperience = new _ufo.UFOExperience(this.id, {
26
26
  type: _ufo.ExperienceTypes.Experience,
27
- performanceType: _ufo.ExperiencePerformanceTypes.InlineResult
27
+ performanceType: _ufo.ExperiencePerformanceTypes.InlineResult,
28
+ platform: {
29
+ component: 'editor'
30
+ }
28
31
  });
29
32
  }
30
33
  return this._ufoExperience;
@@ -30,7 +30,7 @@ var ExperienceCheckDomMutation = exports.ExperienceCheckDomMutation = /*#__PURE_
30
30
  var _this = this;
31
31
  this.stop();
32
32
  var config = this.observeConfig();
33
- if (!config) {
33
+ if (!(config !== null && config !== void 0 && config.target)) {
34
34
  callback({
35
35
  status: 'failure',
36
36
  reason: _consts.EXPERIENCE_FAILURE_REASON.DOM_MUTATION_TARGET_NOT_FOUND
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.16.3";
19
+ var packageVersion = "110.17.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "110.16.3";
27
+ var packageVersion = "110.17.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -11,7 +11,10 @@ export class Experience {
11
11
  if (!this._ufoExperience) {
12
12
  this._ufoExperience = new UFOExperience(this.id, {
13
13
  type: ExperienceTypes.Experience,
14
- performanceType: ExperiencePerformanceTypes.InlineResult
14
+ performanceType: ExperiencePerformanceTypes.InlineResult,
15
+ platform: {
16
+ component: 'editor'
17
+ }
15
18
  });
16
19
  }
17
20
  return this._ufoExperience;
@@ -18,7 +18,7 @@ export class ExperienceCheckDomMutation {
18
18
  start(callback) {
19
19
  this.stop();
20
20
  const config = this.observeConfig();
21
- if (!config) {
21
+ if (!(config !== null && config !== void 0 && config.target)) {
22
22
  callback({
23
23
  status: 'failure',
24
24
  reason: EXPERIENCE_FAILURE_REASON.DOM_MUTATION_TARGET_NOT_FOUND
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "110.16.3";
4
+ const packageVersion = "110.17.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // 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 = "110.16.3";
17
+ const packageVersion = "110.17.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -17,7 +17,10 @@ export var Experience = /*#__PURE__*/function () {
17
17
  if (!this._ufoExperience) {
18
18
  this._ufoExperience = new UFOExperience(this.id, {
19
19
  type: ExperienceTypes.Experience,
20
- performanceType: ExperiencePerformanceTypes.InlineResult
20
+ performanceType: ExperiencePerformanceTypes.InlineResult,
21
+ platform: {
22
+ component: 'editor'
23
+ }
21
24
  });
22
25
  }
23
26
  return this._ufoExperience;
@@ -23,7 +23,7 @@ export var ExperienceCheckDomMutation = /*#__PURE__*/function () {
23
23
  var _this = this;
24
24
  this.stop();
25
25
  var config = this.observeConfig();
26
- if (!config) {
26
+ if (!(config !== null && config !== void 0 && config.target)) {
27
27
  callback({
28
28
  status: 'failure',
29
29
  reason: EXPERIENCE_FAILURE_REASON.DOM_MUTATION_TARGET_NOT_FOUND
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "110.16.3";
10
+ var packageVersion = "110.17.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // 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 = "110.16.3";
24
+ var packageVersion = "110.17.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -7,11 +7,13 @@ export type ExperienceCheckDomMutationObserveConfig = {
7
7
  * MutationObserver options specifying what types of mutations to observe
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe
9
9
  */
10
- options: MutationObserverInit;
10
+ options?: MutationObserverInit;
11
11
  /**
12
12
  * Target element to observe for mutations
13
+ *
14
+ * If null or undefined, the experience will fail with reason 'target-not-found'.
13
15
  */
14
- target: Node;
16
+ target?: Node | null;
15
17
  };
16
18
  export type ExperienceCheckDomMutationConfig = {
17
19
  /**
@@ -7,11 +7,13 @@ export type ExperienceCheckDomMutationObserveConfig = {
7
7
  * MutationObserver options specifying what types of mutations to observe
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe
9
9
  */
10
- options: MutationObserverInit;
10
+ options?: MutationObserverInit;
11
11
  /**
12
12
  * Target element to observe for mutations
13
+ *
14
+ * If null or undefined, the experience will fail with reason 'target-not-found'.
13
15
  */
14
- target: Node;
16
+ target?: Node | null;
15
17
  };
16
18
  export type ExperienceCheckDomMutationConfig = {
17
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.17.0",
3
+ "version": "110.17.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/"
@@ -75,7 +75,7 @@
75
75
  "@atlaskit/prosemirror-history": "^0.2.0",
76
76
  "@atlaskit/react-ufo": "^4.12.0",
77
77
  "@atlaskit/section-message": "^8.7.0",
78
- "@atlaskit/smart-card": "^43.2.0",
78
+ "@atlaskit/smart-card": "^43.3.0",
79
79
  "@atlaskit/smart-user-picker": "^8.3.0",
80
80
  "@atlaskit/spinner": "^19.0.0",
81
81
  "@atlaskit/status": "^3.0.0",