@atlaskit/editor-common 110.11.0 → 110.11.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 +11 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/analytics.js +13 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/analytics.js +10 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/analytics.js +12 -1
- package/dist/types/analytics/types/table-events.d.ts +5 -0
- package/dist/types/utils/analytics.d.ts +8 -0
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +5 -0
- package/dist/types-ts4.5/utils/analytics.d.ts +8 -0
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`71cac2e4cf915`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71cac2e4cf915) -
|
|
8
|
+
[FF-CLEANUP] platform_editor_add_border_for_nested_panel
|
|
9
|
+
- [`c0ef0bedb49c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0ef0bedb49c0) -
|
|
10
|
+
EDITOR-1391 only send table width information events if there are tables, add enums and boolean
|
|
11
|
+
values for table width, editor width and scrollbar existence for ingestion in signalfx
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 110.11.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -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.
|
|
19
|
+
var packageVersion = "110.11.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.
|
|
27
|
+
var packageVersion = "110.11.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.analyticsEventKey = exports.SEVERITY = void 0;
|
|
7
7
|
exports.findInsertLocation = findInsertLocation;
|
|
8
|
-
exports.getAnalyticsEventSeverity = exports.getAnalyticsEditorAppearance = exports.getAnalyticsAppearance = void 0;
|
|
8
|
+
exports.getBreakpointKey = exports.getAnalyticsEventSeverity = exports.getAnalyticsEditorAppearance = exports.getAnalyticsAppearance = void 0;
|
|
9
9
|
var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
@@ -59,4 +59,15 @@ var SEVERITY = exports.SEVERITY = /*#__PURE__*/function (SEVERITY) {
|
|
|
59
59
|
SEVERITY["BLOCKING"] = "blocking";
|
|
60
60
|
return SEVERITY;
|
|
61
61
|
}({});
|
|
62
|
-
var analyticsEventKey = exports.analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
62
|
+
var analyticsEventKey = exports.analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
63
|
+
var EDITOR_BREAKPOINT_WIDTH = {
|
|
64
|
+
S: 760,
|
|
65
|
+
M: 1600,
|
|
66
|
+
L: Infinity
|
|
67
|
+
};
|
|
68
|
+
var TABLE_BREAKPOINT_KEYS = Object.keys(EDITOR_BREAKPOINT_WIDTH);
|
|
69
|
+
var getBreakpointKey = exports.getBreakpointKey = function getBreakpointKey(width) {
|
|
70
|
+
return TABLE_BREAKPOINT_KEYS.find(function (key) {
|
|
71
|
+
return width <= EDITOR_BREAKPOINT_WIDTH[key];
|
|
72
|
+
}) || 'L';
|
|
73
|
+
};
|
|
@@ -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.
|
|
4
|
+
const packageVersion = "110.11.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.
|
|
17
|
+
const packageVersion = "110.11.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -48,4 +48,13 @@ export let SEVERITY = /*#__PURE__*/function (SEVERITY) {
|
|
|
48
48
|
SEVERITY["BLOCKING"] = "blocking";
|
|
49
49
|
return SEVERITY;
|
|
50
50
|
}({});
|
|
51
|
-
export const analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
51
|
+
export const analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
52
|
+
const EDITOR_BREAKPOINT_WIDTH = {
|
|
53
|
+
S: 760,
|
|
54
|
+
M: 1600,
|
|
55
|
+
L: Infinity
|
|
56
|
+
};
|
|
57
|
+
const TABLE_BREAKPOINT_KEYS = Object.keys(EDITOR_BREAKPOINT_WIDTH);
|
|
58
|
+
export const getBreakpointKey = width => {
|
|
59
|
+
return TABLE_BREAKPOINT_KEYS.find(key => width <= EDITOR_BREAKPOINT_WIDTH[key]) || 'L';
|
|
60
|
+
};
|
|
@@ -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.
|
|
10
|
+
var packageVersion = "110.11.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.
|
|
24
|
+
var packageVersion = "110.11.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -51,4 +51,15 @@ export var SEVERITY = /*#__PURE__*/function (SEVERITY) {
|
|
|
51
51
|
SEVERITY["BLOCKING"] = "blocking";
|
|
52
52
|
return SEVERITY;
|
|
53
53
|
}({});
|
|
54
|
-
export var analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
54
|
+
export var analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
|
|
55
|
+
var EDITOR_BREAKPOINT_WIDTH = {
|
|
56
|
+
S: 760,
|
|
57
|
+
M: 1600,
|
|
58
|
+
L: Infinity
|
|
59
|
+
};
|
|
60
|
+
var TABLE_BREAKPOINT_KEYS = Object.keys(EDITOR_BREAKPOINT_WIDTH);
|
|
61
|
+
export var getBreakpointKey = function getBreakpointKey(width) {
|
|
62
|
+
return TABLE_BREAKPOINT_KEYS.find(function (key) {
|
|
63
|
+
return width <= EDITOR_BREAKPOINT_WIDTH[key];
|
|
64
|
+
}) || 'L';
|
|
65
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
|
+
import type { EditorBreakpointKey } from '../../utils/analytics';
|
|
2
3
|
import type { ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
4
|
import type { OperationalAEP, TableAEP, UIAEP } from './utils';
|
|
4
5
|
export declare enum TABLE_ACTION {
|
|
@@ -208,6 +209,10 @@ type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
|
|
|
208
209
|
type TableBackgroundColorFixAEP = TableAEP<TABLE_ACTION.TABLE_CELL_BACKGROUND_FIXED, undefined, undefined>;
|
|
209
210
|
type TableWidthInfoAEP = TableAEP<TABLE_ACTION.TABLE_WIDTH_INFO, {
|
|
210
211
|
editorWidth: number;
|
|
212
|
+
editorWidthBreakpoint: EditorBreakpointKey;
|
|
213
|
+
hasTableWiderThanEditor: boolean;
|
|
214
|
+
hasTableWithScrollbar: boolean;
|
|
215
|
+
maxTableWidthBreakpoint: EditorBreakpointKey;
|
|
211
216
|
mode: 'editor' | 'renderer';
|
|
212
217
|
tableWidthInfo: Array<{
|
|
213
218
|
hasScrollbar: boolean;
|
|
@@ -10,3 +10,11 @@ export declare enum SEVERITY {
|
|
|
10
10
|
BLOCKING = "blocking"
|
|
11
11
|
}
|
|
12
12
|
export declare const analyticsEventKey = "EDITOR_ANALYTICS_EVENT";
|
|
13
|
+
declare const EDITOR_BREAKPOINT_WIDTH: {
|
|
14
|
+
S: number;
|
|
15
|
+
M: number;
|
|
16
|
+
L: number;
|
|
17
|
+
};
|
|
18
|
+
export type EditorBreakpointKey = keyof typeof EDITOR_BREAKPOINT_WIDTH;
|
|
19
|
+
export declare const getBreakpointKey: (width: number) => EditorBreakpointKey;
|
|
20
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
|
+
import type { EditorBreakpointKey } from '../../utils/analytics';
|
|
2
3
|
import type { ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
4
|
import type { OperationalAEP, TableAEP, UIAEP } from './utils';
|
|
4
5
|
export declare enum TABLE_ACTION {
|
|
@@ -208,6 +209,10 @@ type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
|
|
|
208
209
|
type TableBackgroundColorFixAEP = TableAEP<TABLE_ACTION.TABLE_CELL_BACKGROUND_FIXED, undefined, undefined>;
|
|
209
210
|
type TableWidthInfoAEP = TableAEP<TABLE_ACTION.TABLE_WIDTH_INFO, {
|
|
210
211
|
editorWidth: number;
|
|
212
|
+
editorWidthBreakpoint: EditorBreakpointKey;
|
|
213
|
+
hasTableWiderThanEditor: boolean;
|
|
214
|
+
hasTableWithScrollbar: boolean;
|
|
215
|
+
maxTableWidthBreakpoint: EditorBreakpointKey;
|
|
211
216
|
mode: 'editor' | 'renderer';
|
|
212
217
|
tableWidthInfo: Array<{
|
|
213
218
|
hasScrollbar: boolean;
|
|
@@ -10,3 +10,11 @@ export declare enum SEVERITY {
|
|
|
10
10
|
BLOCKING = "blocking"
|
|
11
11
|
}
|
|
12
12
|
export declare const analyticsEventKey = "EDITOR_ANALYTICS_EVENT";
|
|
13
|
+
declare const EDITOR_BREAKPOINT_WIDTH: {
|
|
14
|
+
S: number;
|
|
15
|
+
M: number;
|
|
16
|
+
L: number;
|
|
17
|
+
};
|
|
18
|
+
export type EditorBreakpointKey = keyof typeof EDITOR_BREAKPOINT_WIDTH;
|
|
19
|
+
export declare const getBreakpointKey: (width: number) => EditorBreakpointKey;
|
|
20
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.11.
|
|
3
|
+
"version": "110.11.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/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
72
72
|
"@atlaskit/popper": "^7.1.0",
|
|
73
73
|
"@atlaskit/primitives": "^14.15.0",
|
|
74
|
-
"@atlaskit/profilecard": "^24.
|
|
74
|
+
"@atlaskit/profilecard": "^24.19.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^4.11.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.7.0",
|
|
@@ -233,9 +233,6 @@
|
|
|
233
233
|
"platform_editor_refactor_view_more": {
|
|
234
234
|
"type": "boolean"
|
|
235
235
|
},
|
|
236
|
-
"platform_editor_add_border_for_nested_panel": {
|
|
237
|
-
"type": "boolean"
|
|
238
|
-
},
|
|
239
236
|
"platform_editor_bordered_panel_nested_in_table": {
|
|
240
237
|
"type": "boolean"
|
|
241
238
|
},
|