@atlaskit/editor-common 80.4.0 → 80.4.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,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 80.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#101355](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101355)
8
+ [`040f4ffe7af0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/040f4ffe7af0) -
9
+ Add analytic event to table alignment command
10
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
11
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
12
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
13
+
3
14
  ## 80.4.0
4
15
 
5
16
  ### Minor Changes
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TABLE_STATUS = exports.TABLE_OVERFLOW_CHANGE_TRIGGER = exports.TABLE_DISPLAY_MODE = exports.TABLE_BREAKOUT = exports.TABLE_ACTION = void 0;
7
- //#region Constants
8
7
  var TABLE_ACTION = exports.TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
9
8
  TABLE_ACTION["DELETED"] = "deleted";
10
9
  TABLE_ACTION["CLEARED"] = "cleared";
@@ -38,6 +37,7 @@ var TABLE_ACTION = exports.TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
38
37
  TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
39
38
  TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
40
39
  TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
40
+ TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
41
41
  return TABLE_ACTION;
42
42
  }({});
43
43
  var TABLE_BREAKOUT = exports.TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
@@ -45,7 +45,7 @@ var TABLE_BREAKOUT = exports.TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAK
45
45
  TABLE_BREAKOUT["FULL_WIDTH"] = "fullWidth";
46
46
  TABLE_BREAKOUT["NORMAL"] = "normal";
47
47
  return TABLE_BREAKOUT;
48
- }({}); //#endregion
48
+ }({});
49
49
  var TABLE_OVERFLOW_CHANGE_TRIGGER = exports.TABLE_OVERFLOW_CHANGE_TRIGGER = /*#__PURE__*/function (TABLE_OVERFLOW_CHANGE_TRIGGER) {
50
50
  TABLE_OVERFLOW_CHANGE_TRIGGER["EXTERNAL"] = "external";
51
51
  TABLE_OVERFLOW_CHANGE_TRIGGER["ADDED_COLUMN"] = "addedColumn";
@@ -62,12 +62,10 @@ var TABLE_STATUS = exports.TABLE_STATUS = /*#__PURE__*/function (TABLE_STATUS) {
62
62
  TABLE_STATUS["CANCELLED"] = "cancelled";
63
63
  TABLE_STATUS["INVALID"] = "invalid";
64
64
  return TABLE_STATUS;
65
- }({}); //#region Type Helpers
66
- //#endregion
67
- //#region Analytic Event Payloads
65
+ }({});
68
66
  var TABLE_DISPLAY_MODE = exports.TABLE_DISPLAY_MODE = /*#__PURE__*/function (TABLE_DISPLAY_MODE) {
69
67
  TABLE_DISPLAY_MODE["FIXED"] = "fixed";
70
68
  TABLE_DISPLAY_MODE["DEFAULT"] = "default";
71
69
  TABLE_DISPLAY_MODE["INITIAL"] = "initial";
72
70
  return TABLE_DISPLAY_MODE;
73
- }({});
71
+ }({}); // currently duplicated in editor-plugin-table/src/types.ts
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
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 = "80.4.0";
19
+ var packageVersion = "80.4.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "80.4.0";
23
+ var packageVersion = "80.4.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,4 +1,3 @@
1
- //#region Constants
2
1
  export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
3
2
  TABLE_ACTION["DELETED"] = "deleted";
4
3
  TABLE_ACTION["CLEARED"] = "cleared";
@@ -32,6 +31,7 @@ export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
32
31
  TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
33
32
  TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
34
33
  TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
34
+ TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
35
35
  return TABLE_ACTION;
36
36
  }({});
37
37
  export let TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
@@ -40,8 +40,6 @@ export let TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
40
40
  TABLE_BREAKOUT["NORMAL"] = "normal";
41
41
  return TABLE_BREAKOUT;
42
42
  }({});
43
- //#endregion
44
-
45
43
  export let TABLE_OVERFLOW_CHANGE_TRIGGER = /*#__PURE__*/function (TABLE_OVERFLOW_CHANGE_TRIGGER) {
46
44
  TABLE_OVERFLOW_CHANGE_TRIGGER["EXTERNAL"] = "external";
47
45
  TABLE_OVERFLOW_CHANGE_TRIGGER["ADDED_COLUMN"] = "addedColumn";
@@ -59,16 +57,11 @@ export let TABLE_STATUS = /*#__PURE__*/function (TABLE_STATUS) {
59
57
  TABLE_STATUS["INVALID"] = "invalid";
60
58
  return TABLE_STATUS;
61
59
  }({});
62
-
63
- //#region Type Helpers
64
-
65
- //#endregion
66
-
67
- //#region Analytic Event Payloads
68
-
69
60
  export let TABLE_DISPLAY_MODE = /*#__PURE__*/function (TABLE_DISPLAY_MODE) {
70
61
  TABLE_DISPLAY_MODE["FIXED"] = "fixed";
71
62
  TABLE_DISPLAY_MODE["DEFAULT"] = "default";
72
63
  TABLE_DISPLAY_MODE["INITIAL"] = "initial";
73
64
  return TABLE_DISPLAY_MODE;
74
- }({});
65
+ }({});
66
+
67
+ // currently duplicated in editor-plugin-table/src/types.ts
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "80.4.0";
3
+ const packageVersion = "80.4.1";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "80.4.0";
10
+ const packageVersion = "80.4.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -1,4 +1,3 @@
1
- //#region Constants
2
1
  export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
3
2
  TABLE_ACTION["DELETED"] = "deleted";
4
3
  TABLE_ACTION["CLEARED"] = "cleared";
@@ -32,6 +31,7 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
32
31
  TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
33
32
  TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
34
33
  TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
34
+ TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
35
35
  return TABLE_ACTION;
36
36
  }({});
37
37
  export var TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
@@ -40,8 +40,6 @@ export var TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
40
40
  TABLE_BREAKOUT["NORMAL"] = "normal";
41
41
  return TABLE_BREAKOUT;
42
42
  }({});
43
- //#endregion
44
-
45
43
  export var TABLE_OVERFLOW_CHANGE_TRIGGER = /*#__PURE__*/function (TABLE_OVERFLOW_CHANGE_TRIGGER) {
46
44
  TABLE_OVERFLOW_CHANGE_TRIGGER["EXTERNAL"] = "external";
47
45
  TABLE_OVERFLOW_CHANGE_TRIGGER["ADDED_COLUMN"] = "addedColumn";
@@ -59,16 +57,11 @@ export var TABLE_STATUS = /*#__PURE__*/function (TABLE_STATUS) {
59
57
  TABLE_STATUS["INVALID"] = "invalid";
60
58
  return TABLE_STATUS;
61
59
  }({});
62
-
63
- //#region Type Helpers
64
-
65
- //#endregion
66
-
67
- //#region Analytic Event Payloads
68
-
69
60
  export var TABLE_DISPLAY_MODE = /*#__PURE__*/function (TABLE_DISPLAY_MODE) {
70
61
  TABLE_DISPLAY_MODE["FIXED"] = "fixed";
71
62
  TABLE_DISPLAY_MODE["DEFAULT"] = "default";
72
63
  TABLE_DISPLAY_MODE["INITIAL"] = "initial";
73
64
  return TABLE_DISPLAY_MODE;
74
- }({});
65
+ }({});
66
+
67
+ // currently duplicated in editor-plugin-table/src/types.ts
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "80.4.0";
9
+ var packageVersion = "80.4.1";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "80.4.0";
18
+ var packageVersion = "80.4.1";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -37,7 +37,8 @@ export declare enum TABLE_ACTION {
37
37
  * the MOVED_ROW | MOVED_COLUMN actions if you want to track events which move row/cols in a single step.
38
38
  */
39
39
  ROW_OR_COLUMN_MOVED = "rowOrColumnMoved",
40
- CHANGED_DISPLAY_MODE = "changedDisplayMode"
40
+ CHANGED_DISPLAY_MODE = "changedDisplayMode",
41
+ CHANGED_ALIGNMENT = "changedAlignment"
41
42
  }
42
43
  export declare enum TABLE_BREAKOUT {
43
44
  WIDE = "wide",
@@ -188,5 +189,12 @@ type TableChangedDisplayModeAEP = TableAEP<TABLE_ACTION.CHANGED_DISPLAY_MODE, {
188
189
  newDisplayMode: TABLE_DISPLAY_MODE;
189
190
  tableWidth: number | null;
190
191
  } & TotalRowAndColCount, undefined>;
191
- export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP;
192
+ type AlignmentOptions = 'center' | 'align-start';
193
+ type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
194
+ newAlignment: AlignmentOptions;
195
+ previousAlignment: AlignmentOptions | null;
196
+ tableWidth: number | null;
197
+ inputMethod: INPUT_METHOD.FLOATING_TB;
198
+ } & TotalRowAndColCount, undefined>;
199
+ export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableChangedAlignmentAEP;
192
200
  export {};
@@ -253,6 +253,14 @@ export type FeatureFlags = {
253
253
  * @default false
254
254
  */
255
255
  commentsOnMediaBugFix?: boolean;
256
+ /**
257
+ * @description
258
+ * Toggle fix to mediaInline node with annotation
259
+ *
260
+ * @see https://product-fabric.atlassian.net/browse/ED-23094
261
+ * @default false
262
+ */
263
+ commentsOnMediaMediaInlineBugFix?: boolean;
256
264
  /**
257
265
  * @description
258
266
  * Enables extra analytics to be added for comments on media
@@ -37,7 +37,8 @@ export declare enum TABLE_ACTION {
37
37
  * the MOVED_ROW | MOVED_COLUMN actions if you want to track events which move row/cols in a single step.
38
38
  */
39
39
  ROW_OR_COLUMN_MOVED = "rowOrColumnMoved",
40
- CHANGED_DISPLAY_MODE = "changedDisplayMode"
40
+ CHANGED_DISPLAY_MODE = "changedDisplayMode",
41
+ CHANGED_ALIGNMENT = "changedAlignment"
41
42
  }
42
43
  export declare enum TABLE_BREAKOUT {
43
44
  WIDE = "wide",
@@ -188,5 +189,12 @@ type TableChangedDisplayModeAEP = TableAEP<TABLE_ACTION.CHANGED_DISPLAY_MODE, {
188
189
  newDisplayMode: TABLE_DISPLAY_MODE;
189
190
  tableWidth: number | null;
190
191
  } & TotalRowAndColCount, undefined>;
191
- export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP;
192
+ type AlignmentOptions = 'center' | 'align-start';
193
+ type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
194
+ newAlignment: AlignmentOptions;
195
+ previousAlignment: AlignmentOptions | null;
196
+ tableWidth: number | null;
197
+ inputMethod: INPUT_METHOD.FLOATING_TB;
198
+ } & TotalRowAndColCount, undefined>;
199
+ export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableChangedAlignmentAEP;
192
200
  export {};
@@ -253,6 +253,14 @@ export type FeatureFlags = {
253
253
  * @default false
254
254
  */
255
255
  commentsOnMediaBugFix?: boolean;
256
+ /**
257
+ * @description
258
+ * Toggle fix to mediaInline node with annotation
259
+ *
260
+ * @see https://product-fabric.atlassian.net/browse/ED-23094
261
+ * @default false
262
+ */
263
+ commentsOnMediaMediaInlineBugFix?: boolean;
256
264
  /**
257
265
  * @description
258
266
  * Enables extra analytics to be added for comments on media
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "80.4.0",
3
+ "version": "80.4.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/"
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@atlaskit/activity-provider": "^2.4.0",
100
- "@atlaskit/adf-schema": "^36.3.0",
100
+ "@atlaskit/adf-schema": "^36.8.0",
101
101
  "@atlaskit/adf-utils": "^19.2.0",
102
102
  "@atlaskit/analytics-listeners": "^8.9.0",
103
103
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/icon": "^22.2.0",
117
117
  "@atlaskit/icon-object": "^6.4.0",
118
118
  "@atlaskit/in-product-testing": "^0.2.0",
119
- "@atlaskit/link-datasource": "^2.2.0",
119
+ "@atlaskit/link-datasource": "^2.3.0",
120
120
  "@atlaskit/link-picker": "^1.36.0",
121
121
  "@atlaskit/media-card": "^77.11.0",
122
122
  "@atlaskit/media-client": "^27.0.0",
@@ -132,7 +132,7 @@
132
132
  "@atlaskit/primitives": "^6.2.0",
133
133
  "@atlaskit/profilecard": "^19.13.0",
134
134
  "@atlaskit/section-message": "^6.5.0",
135
- "@atlaskit/smart-card": "^26.68.0",
135
+ "@atlaskit/smart-card": "^26.69.0",
136
136
  "@atlaskit/smart-user-picker": "^6.9.0",
137
137
  "@atlaskit/spinner": "^16.1.0",
138
138
  "@atlaskit/task-decision": "^17.10.0",