@atlaskit/editor-common 110.48.0 → 110.48.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.48.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`342bed74cf6e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/342bed74cf6e9) -
8
+ EDITOR-4037 Block menu selection extension click handling
9
+ - Updated dependencies
10
+
3
11
  ## 110.48.0
4
12
 
5
13
  ### 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 = "0.0.0-development";
22
+ var packageVersion = "110.48.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -10,6 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
12
12
  var _excluded = ["level"];
13
+ function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
13
14
  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" != (0, _typeof2.default)(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); }
14
15
  var IconAction = exports.IconAction = (0, _reactLoadable.default)({
15
16
  loader: function loader() {
@@ -304,52 +305,52 @@ function importHeading(level) {
304
305
  case 1:
305
306
  return function (specifier) {
306
307
  return new Promise(function (r) {
307
- return r(specifier);
308
+ return r("".concat(specifier));
308
309
  }).then(function (s) {
309
310
  return _interopRequireWildcard(require(s));
310
311
  });
311
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */"./heading1");
312
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */_tsRewriteRelativeImportExtensions("./heading1"));
312
313
  case 2:
313
314
  return function (specifier) {
314
315
  return new Promise(function (r) {
315
- return r(specifier);
316
+ return r("".concat(specifier));
316
317
  }).then(function (s) {
317
318
  return _interopRequireWildcard(require(s));
318
319
  });
319
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */"./heading2");
320
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */_tsRewriteRelativeImportExtensions("./heading2"));
320
321
  case 3:
321
322
  return function (specifier) {
322
323
  return new Promise(function (r) {
323
- return r(specifier);
324
+ return r("".concat(specifier));
324
325
  }).then(function (s) {
325
326
  return _interopRequireWildcard(require(s));
326
327
  });
327
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */"./heading3");
328
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */_tsRewriteRelativeImportExtensions("./heading3"));
328
329
  case 4:
329
330
  return function (specifier) {
330
331
  return new Promise(function (r) {
331
- return r(specifier);
332
+ return r("".concat(specifier));
332
333
  }).then(function (s) {
333
334
  return _interopRequireWildcard(require(s));
334
335
  });
335
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */"./heading4");
336
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */_tsRewriteRelativeImportExtensions("./heading4"));
336
337
  case 5:
337
338
  return function (specifier) {
338
339
  return new Promise(function (r) {
339
- return r(specifier);
340
+ return r("".concat(specifier));
340
341
  }).then(function (s) {
341
342
  return _interopRequireWildcard(require(s));
342
343
  });
343
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */"./heading5");
344
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */_tsRewriteRelativeImportExtensions("./heading5"));
344
345
  case 6:
345
346
  default:
346
347
  return function (specifier) {
347
348
  return new Promise(function (r) {
348
- return r(specifier);
349
+ return r("".concat(specifier));
349
350
  }).then(function (s) {
350
351
  return _interopRequireWildcard(require(s));
351
352
  });
352
- }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */"./heading6");
353
+ }( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */_tsRewriteRelativeImportExtensions("./heading6"));
353
354
  }
354
355
  }
355
356
  var IconHeading = exports.IconHeading = function IconHeading(_ref) {
@@ -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 = "0.0.0-development";
27
+ var packageVersion = "110.48.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -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 = "0.0.0-development";
7
+ const packageVersion = "110.48.0";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -1,3 +1,4 @@
1
+ function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
1
2
  import React from 'react';
2
3
  import Loadable from 'react-loadable';
3
4
  export const IconAction = Loadable({
@@ -99,18 +100,18 @@ export const IconFiveColumnLayout = Loadable({
99
100
  function importHeading(level) {
100
101
  switch (level) {
101
102
  case 1:
102
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */`./heading1`);
103
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */_tsRewriteRelativeImportExtensions(`./heading1`));
103
104
  case 2:
104
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */`./heading2`);
105
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */_tsRewriteRelativeImportExtensions(`./heading2`));
105
106
  case 3:
106
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */`./heading3`);
107
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */_tsRewriteRelativeImportExtensions(`./heading3`));
107
108
  case 4:
108
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */`./heading4`);
109
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */_tsRewriteRelativeImportExtensions(`./heading4`));
109
110
  case 5:
110
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */`./heading5`);
111
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */_tsRewriteRelativeImportExtensions(`./heading5`));
111
112
  case 6:
112
113
  default:
113
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */`./heading6`);
114
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */_tsRewriteRelativeImportExtensions(`./heading6`));
114
115
  }
115
116
  }
116
117
  export const IconHeading = ({
@@ -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 = "0.0.0-development";
17
+ const packageVersion = "110.48.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -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 = "0.0.0-development";
13
+ var packageVersion = "110.48.0";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -1,5 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["level"];
3
+ function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
3
4
  import React from 'react';
4
5
  import Loadable from 'react-loadable';
5
6
  export var IconAction = Loadable({
@@ -245,18 +246,18 @@ export var IconFiveColumnLayout = Loadable({
245
246
  function importHeading(level) {
246
247
  switch (level) {
247
248
  case 1:
248
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */"./heading1");
249
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-1" */_tsRewriteRelativeImportExtensions("./heading1"));
249
250
  case 2:
250
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */"./heading2");
251
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-2" */_tsRewriteRelativeImportExtensions("./heading2"));
251
252
  case 3:
252
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */"./heading3");
253
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-3" */_tsRewriteRelativeImportExtensions("./heading3"));
253
254
  case 4:
254
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */"./heading4");
255
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-4" */_tsRewriteRelativeImportExtensions("./heading4"));
255
256
  case 5:
256
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */"./heading5");
257
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-5" */_tsRewriteRelativeImportExtensions("./heading5"));
257
258
  case 6:
258
259
  default:
259
- return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */"./heading6");
260
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */_tsRewriteRelativeImportExtensions("./heading6"));
260
261
  }
261
262
  }
262
263
  export var IconHeading = function IconHeading(_ref) {
@@ -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 = "0.0.0-development";
24
+ var packageVersion = "110.48.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -3,9 +3,16 @@ import type { TrackAEP } from './utils';
3
3
  type SelectionExtensionActionType = ACTION.VIEWED | ACTION.CLICKED | ACTION.CLOSED;
4
4
  type SelectionExtensionSubjectType = ACTION_SUBJECT.BUTTON | ACTION_SUBJECT.EDITOR_PLUGIN_SELECTION_EXTENSION;
5
5
  type SelectionExtensionSubjectIdType = ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN | ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT | ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM;
6
- type SelectionExtensionAttributeType = {
6
+ type SelectionExtensionLegacyAttributeType = {
7
7
  toggle: ACTION.OPENED | ACTION.CLOSED;
8
8
  };
9
- type SelectionExtensionAEP = TrackAEP<SelectionExtensionActionType, SelectionExtensionSubjectType, SelectionExtensionSubjectIdType, SelectionExtensionAttributeType, undefined>;
9
+ type SelectionExtensionAttributeType = {
10
+ extensionKey: string;
11
+ extensionSource: string;
12
+ extensionLocation: 'inline-toolbar' | 'primary-toolbar' | 'block-menu';
13
+ extensionElement: 'button' | 'dropdown' | 'nested-dropdown' | 'dropdown-item';
14
+ extensionItemKey?: string;
15
+ };
16
+ type SelectionExtensionAEP = TrackAEP<SelectionExtensionActionType, SelectionExtensionSubjectType, SelectionExtensionSubjectIdType, SelectionExtensionAttributeType | SelectionExtensionLegacyAttributeType, undefined>;
10
17
  export type SelectionExtensionEventPayload = SelectionExtensionAEP;
11
18
  export {};
@@ -3,9 +3,16 @@ import type { TrackAEP } from './utils';
3
3
  type SelectionExtensionActionType = ACTION.VIEWED | ACTION.CLICKED | ACTION.CLOSED;
4
4
  type SelectionExtensionSubjectType = ACTION_SUBJECT.BUTTON | ACTION_SUBJECT.EDITOR_PLUGIN_SELECTION_EXTENSION;
5
5
  type SelectionExtensionSubjectIdType = ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN | ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT | ACTION_SUBJECT_ID.EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM;
6
- type SelectionExtensionAttributeType = {
6
+ type SelectionExtensionLegacyAttributeType = {
7
7
  toggle: ACTION.OPENED | ACTION.CLOSED;
8
8
  };
9
- type SelectionExtensionAEP = TrackAEP<SelectionExtensionActionType, SelectionExtensionSubjectType, SelectionExtensionSubjectIdType, SelectionExtensionAttributeType, undefined>;
9
+ type SelectionExtensionAttributeType = {
10
+ extensionKey: string;
11
+ extensionSource: string;
12
+ extensionLocation: 'inline-toolbar' | 'primary-toolbar' | 'block-menu';
13
+ extensionElement: 'button' | 'dropdown' | 'nested-dropdown' | 'dropdown-item';
14
+ extensionItemKey?: string;
15
+ };
16
+ type SelectionExtensionAEP = TrackAEP<SelectionExtensionActionType, SelectionExtensionSubjectType, SelectionExtensionSubjectIdType, SelectionExtensionAttributeType | SelectionExtensionLegacyAttributeType, undefined>;
10
17
  export type SelectionExtensionEventPayload = SelectionExtensionAEP;
11
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.48.0",
3
+ "version": "110.48.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/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.2.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^16.1.0",
84
+ "@atlaskit/tmp-editor-statsig": "^16.2.0",
85
85
  "@atlaskit/tokens": "^9.0.0",
86
86
  "@atlaskit/tooltip": "^20.11.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",