@atlaskit/editor-common 111.28.3 → 111.29.0

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,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`528cef02f2f27`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/528cef02f2f27) -
8
+ EDITOR-5532 improve duplicate media error handling in editor
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 111.28.4
15
+
16
+ ### Patch Changes
17
+
18
+ - [`1a05924d64777`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a05924d64777) -
19
+ [EDITOR-5528] Fix bodiedSyncBlock mutation
20
+ - Updated dependencies
21
+
3
22
  ## 111.28.3
4
23
 
5
24
  ### Patch Changes
@@ -567,6 +567,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
567
567
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
568
568
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
569
569
  ACTION_SUBJECT_ID["SYNCED_BLOCK_CLICK_SYNCED_LOCATION"] = "syncedBlockClickSyncedLocation";
570
+ ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
570
571
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
571
572
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
572
573
  return ACTION_SUBJECT_ID;
@@ -16,7 +16,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
18
  var FORGE_EXTENSION_TYPE = exports.FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
19
- var NATIVE_EMBED_EXTENSION_TYPE = exports.NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
19
+ var NATIVE_EMBED_EXTENSION_TYPE = exports.NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.confluence.macro.core';
20
20
  var NATIVE_EMBED_EXTENSION_KEY = exports.NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
21
21
  var getExtensionKeyAndNodeKey = exports.getExtensionKeyAndNodeKey = function getExtensionKeyAndNodeKey(extensionKey, extensionType) {
22
22
  // Forge macro extensionKey has a user generated string, so splitting on
@@ -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 = "111.28.2";
22
+ var packageVersion = "111.28.4";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -33,6 +33,7 @@ var expandClassNames = exports.expandClassNames = {
33
33
  iconSvg: "".concat(prefix, "__icon-svg"),
34
34
  titleInput: "".concat(prefix, "__title-input"),
35
35
  content: "".concat(prefix, "__content"),
36
+ contentCollapsed: "".concat(prefix, "__content--collapsed"),
36
37
  type: function type(_type) {
37
38
  return "".concat(prefix, "__type-").concat(_type);
38
39
  }
@@ -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 = "111.28.2";
27
+ var packageVersion = "111.28.4";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -561,6 +561,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
561
561
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
562
562
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
563
563
  ACTION_SUBJECT_ID["SYNCED_BLOCK_CLICK_SYNCED_LOCATION"] = "syncedBlockClickSyncedLocation";
564
+ ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
564
565
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
565
566
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
566
567
  return ACTION_SUBJECT_ID;
@@ -1,5 +1,5 @@
1
1
  export const FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
2
- export const NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
2
+ export const NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.confluence.macro.core';
3
3
  export const NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
4
4
  export const getExtensionKeyAndNodeKey = (extensionKey, extensionType) => {
5
5
  // Forge macro extensionKey has a user generated string, so splitting on
@@ -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 = "111.28.2";
7
+ const packageVersion = "111.28.4";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -26,5 +26,6 @@ export const expandClassNames = {
26
26
  iconSvg: `${prefix}__icon-svg`,
27
27
  titleInput: `${prefix}__title-input`,
28
28
  content: `${prefix}__content`,
29
+ contentCollapsed: `${prefix}__content--collapsed`,
29
30
  type: type => `${prefix}__type-${type}`
30
31
  };
@@ -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 = "111.28.2";
17
+ const packageVersion = "111.28.4";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -561,6 +561,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
561
561
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
562
562
  ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
563
563
  ACTION_SUBJECT_ID["SYNCED_BLOCK_CLICK_SYNCED_LOCATION"] = "syncedBlockClickSyncedLocation";
564
+ ACTION_SUBJECT_ID["SYNCED_BLOCK_LABEL"] = "syncedBlockLabel";
564
565
  ACTION_SUBJECT_ID["SYNCED_BLOCK_SSR_ERROR"] = "syncedBlockSSRError";
565
566
  ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
566
567
  return ACTION_SUBJECT_ID;
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  export var FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
8
- export var NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.native-embeds';
8
+ export var NATIVE_EMBED_EXTENSION_TYPE = 'com.atlassian.confluence.macro.core';
9
9
  export var NATIVE_EMBED_EXTENSION_KEY = 'native-embed';
10
10
  export var getExtensionKeyAndNodeKey = function getExtensionKeyAndNodeKey(extensionKey, extensionType) {
11
11
  // Forge macro extensionKey has a user generated string, so splitting on
@@ -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 = "111.28.2";
13
+ var packageVersion = "111.28.4";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -26,6 +26,7 @@ export var expandClassNames = {
26
26
  iconSvg: "".concat(prefix, "__icon-svg"),
27
27
  titleInput: "".concat(prefix, "__title-input"),
28
28
  content: "".concat(prefix, "__content"),
29
+ contentCollapsed: "".concat(prefix, "__content--collapsed"),
29
30
  type: function type(_type) {
30
31
  return "".concat(prefix, "__type-").concat(_type);
31
32
  }
@@ -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 = "111.28.2";
24
+ var packageVersion = "111.28.4";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -553,6 +553,7 @@ export declare enum ACTION_SUBJECT_ID {
553
553
  SYNCED_BLOCK_FETCH = "syncedBlockFetch",
554
554
  SYNCED_BLOCK_FETCH_REFERENCES = "syncedBlockFetchReferences",
555
555
  SYNCED_BLOCK_CLICK_SYNCED_LOCATION = "syncedBlockClickSyncedLocation",
556
+ SYNCED_BLOCK_LABEL = "syncedBlockLabel",
556
557
  SYNCED_BLOCK_SSR_ERROR = "syncedBlockSSRError",
557
558
  TABLE_STICKY_HEADER = "tableStickyHeader"
558
559
  }
@@ -44,6 +44,8 @@ export type MediaViewerEventAction = UIAEP<ACTION.OPENED, ACTION_SUBJECT.MEDIA_V
44
44
  export type MediaAltTextActionType = ACTION.ADDED | ACTION.CLOSED | ACTION.EDITED | ACTION.CLEARED | ACTION.OPENED;
45
45
  export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.MEDIA, {
46
46
  external?: boolean;
47
+ isDuplicateError?: boolean;
48
+ nestedUnder?: string;
47
49
  reason: string;
48
50
  }, undefined>;
49
51
  export type MediaEventPayload = MediaLinkAEP | MediaAltTextAction | MediaUIAction | MediaResizeTrackAction | MediaInputResizeTrackAction | MediaBorderTrackAction | CaptionTrackAction | ChangeMediaAEP | MediaViewerEventAction | MediaRenderErrorEvent;
@@ -2,7 +2,7 @@ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtensionKey, ExtensionManifest, ExtensionModuleAction, ExtensionModuleActionObject, ExtensionModuleKey, ExtensionType, Module } from './types/extension-manifest';
3
3
  import type { Parameters } from './types/extension-parameters';
4
4
  export declare const FORGE_EXTENSION_TYPE = "com.atlassian.ecosystem";
5
- export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.native-embeds";
5
+ export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.confluence.macro.core";
6
6
  export declare const NATIVE_EMBED_EXTENSION_KEY = "native-embed";
7
7
  export declare const getExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, extensionType: ExtensionType) => string[];
8
8
  export declare const buildExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, nodeKey?: ExtensionModuleKey) => string;
@@ -16,5 +16,6 @@ export declare const expandClassNames: {
16
16
  iconSvg: string;
17
17
  titleInput: string;
18
18
  content: string;
19
+ contentCollapsed: string;
19
20
  type: (type: string) => string;
20
21
  };
@@ -553,6 +553,7 @@ export declare enum ACTION_SUBJECT_ID {
553
553
  SYNCED_BLOCK_FETCH = "syncedBlockFetch",
554
554
  SYNCED_BLOCK_FETCH_REFERENCES = "syncedBlockFetchReferences",
555
555
  SYNCED_BLOCK_CLICK_SYNCED_LOCATION = "syncedBlockClickSyncedLocation",
556
+ SYNCED_BLOCK_LABEL = "syncedBlockLabel",
556
557
  SYNCED_BLOCK_SSR_ERROR = "syncedBlockSSRError",
557
558
  TABLE_STICKY_HEADER = "tableStickyHeader"
558
559
  }
@@ -44,6 +44,8 @@ export type MediaViewerEventAction = UIAEP<ACTION.OPENED, ACTION_SUBJECT.MEDIA_V
44
44
  export type MediaAltTextActionType = ACTION.ADDED | ACTION.CLOSED | ACTION.EDITED | ACTION.CLEARED | ACTION.OPENED;
45
45
  export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.MEDIA, {
46
46
  external?: boolean;
47
+ isDuplicateError?: boolean;
48
+ nestedUnder?: string;
47
49
  reason: string;
48
50
  }, undefined>;
49
51
  export type MediaEventPayload = MediaLinkAEP | MediaAltTextAction | MediaUIAction | MediaResizeTrackAction | MediaInputResizeTrackAction | MediaBorderTrackAction | CaptionTrackAction | ChangeMediaAEP | MediaViewerEventAction | MediaRenderErrorEvent;
@@ -2,7 +2,7 @@ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtensionKey, ExtensionManifest, ExtensionModuleAction, ExtensionModuleActionObject, ExtensionModuleKey, ExtensionType, Module } from './types/extension-manifest';
3
3
  import type { Parameters } from './types/extension-parameters';
4
4
  export declare const FORGE_EXTENSION_TYPE = "com.atlassian.ecosystem";
5
- export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.native-embeds";
5
+ export declare const NATIVE_EMBED_EXTENSION_TYPE = "com.atlassian.confluence.macro.core";
6
6
  export declare const NATIVE_EMBED_EXTENSION_KEY = "native-embed";
7
7
  export declare const getExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, extensionType: ExtensionType) => string[];
8
8
  export declare const buildExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, nodeKey?: ExtensionModuleKey) => string;
@@ -16,5 +16,6 @@ export declare const expandClassNames: {
16
16
  iconSvg: string;
17
17
  titleInput: string;
18
18
  content: string;
19
+ contentCollapsed: string;
19
20
  type: (type: string) => string;
20
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.28.3",
3
+ "version": "111.29.0",
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/"
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/task-decision": "^19.3.0",
83
83
  "@atlaskit/textfield": "^8.2.0",
84
84
  "@atlaskit/theme": "^22.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^34.0.0",
85
+ "@atlaskit/tmp-editor-statsig": "^34.3.0",
86
86
  "@atlaskit/tokens": "^11.0.0",
87
87
  "@atlaskit/tooltip": "^20.14.0",
88
88
  "@atlaskit/width-detector": "^5.0.0",