@atlaskit/editor-common 88.12.1 → 88.13.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 +9 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/error-reporter.js +2 -2
- package/dist/cjs/utils/index.js +2 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/error-reporter.js +1 -1
- package/dist/es2019/utils/index.js +41 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/error-reporter.js +2 -3
- package/dist/esm/utils/index.js +41 -3
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/index.d.ts +41 -3
- package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
- package/dist/types-ts4.5/utils/index.d.ts +41 -3
- package/error-reporter/package.json +15 -0
- package/package.json +5 -2
- package/performance/measure-tti/package.json +15 -0
- package/use-component-render-tracking/package.json +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 88.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#138801](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138801)
|
|
8
|
+
[`eeb1f7ad41211`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeb1f7ad41211) -
|
|
9
|
+
Adding new entry-points to editor-common to optimise bundle size and move away from "utils"
|
|
10
|
+
entry-point.
|
|
11
|
+
|
|
3
12
|
## 88.12.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "88.
|
|
20
|
+
var packageVersion = "88.13.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
25
25
|
* @jsx jsx
|
|
26
26
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var packageName = "@atlaskit/editor-common";
|
|
28
|
-
var packageVersion = "88.
|
|
28
|
+
var packageVersion = "88.13.0";
|
|
29
29
|
var halfFocusRing = 1;
|
|
30
30
|
var dropOffset = '0, 8';
|
|
31
31
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -4,11 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.ErrorReporter = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var ErrorReporter = exports.
|
|
11
|
+
var ErrorReporter = exports.ErrorReporter = /*#__PURE__*/function () {
|
|
12
12
|
function ErrorReporter() {
|
|
13
13
|
(0, _classCallCheck2.default)(this, ErrorReporter);
|
|
14
14
|
(0, _defineProperty2.default)(this, "handlerStorage", null);
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "DONTLINKIFY_REGEXP", {
|
|
|
19
19
|
Object.defineProperty(exports, "ErrorReporter", {
|
|
20
20
|
enumerable: true,
|
|
21
21
|
get: function get() {
|
|
22
|
-
return _errorReporter.
|
|
22
|
+
return _errorReporter.ErrorReporter;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "FILEPATH_REGEXP", {
|
|
@@ -1149,7 +1149,7 @@ var _shouldAutoLinkifyTld = require("./should-auto-linkify-tld");
|
|
|
1149
1149
|
var _annotation = require("./annotation");
|
|
1150
1150
|
var _macro = require("./macro");
|
|
1151
1151
|
var _browser = require("./browser");
|
|
1152
|
-
var _errorReporter =
|
|
1152
|
+
var _errorReporter = require("./error-reporter");
|
|
1153
1153
|
var _date = require("./date");
|
|
1154
1154
|
var _imageLoader = require("./imageLoader");
|
|
1155
1155
|
var _breakout = require("./breakout");
|
|
@@ -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 = "88.
|
|
4
|
+
const packageVersion = "88.13.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "88.
|
|
17
|
+
const packageVersion = "88.13.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
class DropList extends Component {
|
|
@@ -12,7 +12,14 @@ export {
|
|
|
12
12
|
* Please use `@atlaskit/editor-common/browser` entry-point instead.
|
|
13
13
|
*/
|
|
14
14
|
browser } from './browser';
|
|
15
|
-
export {
|
|
15
|
+
export {
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* @deprecated
|
|
19
|
+
*
|
|
20
|
+
* Please use `@atlaskit/editor-common/error-reporter` entry-point instead.
|
|
21
|
+
*/
|
|
22
|
+
ErrorReporter } from './error-reporter';
|
|
16
23
|
export { isPastDate, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC } from './date';
|
|
17
24
|
export { isElementInTableCell, isTextSelection, isLastItemMediaGroup, setNodeSelection, setTextSelection, setAllSelection, setCellSelection, nonNullable, stepAddsOneOf, stepHasSlice, extractSliceFromStep, isValidPosition, isEmptyParagraph, isInLayoutColumn, removeBlockMarks, filterChildrenBetween } from './editor-core-utils';
|
|
18
25
|
export { withImageLoader } from './imageLoader';
|
|
@@ -71,7 +78,31 @@ getDistortedDurationMonitor,
|
|
|
71
78
|
*/
|
|
72
79
|
measureRender } from './performance/measure-render';
|
|
73
80
|
export { startMeasure, stopMeasure, clearMeasure } from './performance/measure';
|
|
74
|
-
export {
|
|
81
|
+
export {
|
|
82
|
+
/**
|
|
83
|
+
* @private
|
|
84
|
+
* @deprecated
|
|
85
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
86
|
+
*/
|
|
87
|
+
measureTTI,
|
|
88
|
+
/**
|
|
89
|
+
* @private
|
|
90
|
+
* @deprecated
|
|
91
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
92
|
+
*/
|
|
93
|
+
getTTISeverity,
|
|
94
|
+
/**
|
|
95
|
+
* @private
|
|
96
|
+
* @deprecated
|
|
97
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
98
|
+
*/
|
|
99
|
+
TTI_SEVERITY_THRESHOLD_DEFAULTS,
|
|
100
|
+
/**
|
|
101
|
+
* @private
|
|
102
|
+
* @deprecated
|
|
103
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
104
|
+
*/
|
|
105
|
+
TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS } from './performance/measure-tti';
|
|
75
106
|
/**
|
|
76
107
|
* @private
|
|
77
108
|
* @deprecated
|
|
@@ -103,7 +134,14 @@ export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
|
103
134
|
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
104
135
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
105
136
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
106
|
-
export {
|
|
137
|
+
export {
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
* @deprecated
|
|
141
|
+
*
|
|
142
|
+
* Private API do not use - if you really need it use `@atlaskit/editor-common/use-component-render-tracking`;
|
|
143
|
+
*/
|
|
144
|
+
useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
|
|
107
145
|
/**
|
|
108
146
|
* @private
|
|
109
147
|
* @deprecated
|
|
@@ -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 = "88.
|
|
10
|
+
var packageVersion = "88.13.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,7 +22,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
22
22
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
23
|
import Layer from '../Layer';
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "88.
|
|
25
|
+
var packageVersion = "88.13.0";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var ErrorReporter = /*#__PURE__*/function () {
|
|
4
|
+
export var ErrorReporter = /*#__PURE__*/function () {
|
|
5
5
|
function ErrorReporter() {
|
|
6
6
|
_classCallCheck(this, ErrorReporter);
|
|
7
7
|
_defineProperty(this, "handlerStorage", null);
|
|
@@ -27,5 +27,4 @@ var ErrorReporter = /*#__PURE__*/function () {
|
|
|
27
27
|
}
|
|
28
28
|
}]);
|
|
29
29
|
return ErrorReporter;
|
|
30
|
-
}();
|
|
31
|
-
export { ErrorReporter as default };
|
|
30
|
+
}();
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -12,7 +12,14 @@ export {
|
|
|
12
12
|
* Please use `@atlaskit/editor-common/browser` entry-point instead.
|
|
13
13
|
*/
|
|
14
14
|
browser } from './browser';
|
|
15
|
-
export {
|
|
15
|
+
export {
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* @deprecated
|
|
19
|
+
*
|
|
20
|
+
* Please use `@atlaskit/editor-common/error-reporter` entry-point instead.
|
|
21
|
+
*/
|
|
22
|
+
ErrorReporter } from './error-reporter';
|
|
16
23
|
export { isPastDate, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC } from './date';
|
|
17
24
|
export { isElementInTableCell, isTextSelection, isLastItemMediaGroup, setNodeSelection, setTextSelection, setAllSelection, setCellSelection, nonNullable, stepAddsOneOf, stepHasSlice, extractSliceFromStep, isValidPosition, isEmptyParagraph, isInLayoutColumn, removeBlockMarks, filterChildrenBetween } from './editor-core-utils';
|
|
18
25
|
export { withImageLoader } from './imageLoader';
|
|
@@ -71,7 +78,31 @@ getDistortedDurationMonitor,
|
|
|
71
78
|
*/
|
|
72
79
|
measureRender } from './performance/measure-render';
|
|
73
80
|
export { startMeasure, stopMeasure, clearMeasure } from './performance/measure';
|
|
74
|
-
export {
|
|
81
|
+
export {
|
|
82
|
+
/**
|
|
83
|
+
* @private
|
|
84
|
+
* @deprecated
|
|
85
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
86
|
+
*/
|
|
87
|
+
measureTTI,
|
|
88
|
+
/**
|
|
89
|
+
* @private
|
|
90
|
+
* @deprecated
|
|
91
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
92
|
+
*/
|
|
93
|
+
getTTISeverity,
|
|
94
|
+
/**
|
|
95
|
+
* @private
|
|
96
|
+
* @deprecated
|
|
97
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
98
|
+
*/
|
|
99
|
+
TTI_SEVERITY_THRESHOLD_DEFAULTS,
|
|
100
|
+
/**
|
|
101
|
+
* @private
|
|
102
|
+
* @deprecated
|
|
103
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
104
|
+
*/
|
|
105
|
+
TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS } from './performance/measure-tti';
|
|
75
106
|
/**
|
|
76
107
|
* @private
|
|
77
108
|
* @deprecated
|
|
@@ -103,7 +134,14 @@ export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
|
103
134
|
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
104
135
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
105
136
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
106
|
-
export {
|
|
137
|
+
export {
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
* @deprecated
|
|
141
|
+
*
|
|
142
|
+
* Private API do not use - if you really need it use `@atlaskit/editor-common/use-component-render-tracking`;
|
|
143
|
+
*/
|
|
144
|
+
useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
|
|
107
145
|
/**
|
|
108
146
|
* @private
|
|
109
147
|
* @deprecated
|
|
@@ -5,7 +5,7 @@ export interface ErrorReportingHandler {
|
|
|
5
5
|
captureMessage: (msg: string, tags?: ErrorReporterTags) => void;
|
|
6
6
|
captureException: (err: Error, tags?: ErrorReporterTags) => void;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare class ErrorReporter {
|
|
9
9
|
private handlerStorage;
|
|
10
10
|
captureMessage(msg: string, tags?: ErrorReporterTags): void;
|
|
11
11
|
captureException(err: Error, tags?: ErrorReporterTags): void;
|
|
@@ -13,7 +13,14 @@ export {
|
|
|
13
13
|
* Please use `@atlaskit/editor-common/browser` entry-point instead.
|
|
14
14
|
*/
|
|
15
15
|
browser, } from './browser';
|
|
16
|
-
export {
|
|
16
|
+
export {
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @deprecated
|
|
20
|
+
*
|
|
21
|
+
* Please use `@atlaskit/editor-common/error-reporter` entry-point instead.
|
|
22
|
+
*/
|
|
23
|
+
ErrorReporter, } from './error-reporter';
|
|
17
24
|
export type { ErrorReportingHandler } from './error-reporter';
|
|
18
25
|
export { isPastDate, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC, } from './date';
|
|
19
26
|
export type { Date } from './date';
|
|
@@ -79,7 +86,31 @@ getDistortedDurationMonitor,
|
|
|
79
86
|
*/
|
|
80
87
|
measureRender, } from './performance/measure-render';
|
|
81
88
|
export { startMeasure, stopMeasure, clearMeasure } from './performance/measure';
|
|
82
|
-
export {
|
|
89
|
+
export {
|
|
90
|
+
/**
|
|
91
|
+
* @private
|
|
92
|
+
* @deprecated
|
|
93
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
94
|
+
*/
|
|
95
|
+
measureTTI,
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
* @deprecated
|
|
99
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
100
|
+
*/
|
|
101
|
+
getTTISeverity,
|
|
102
|
+
/**
|
|
103
|
+
* @private
|
|
104
|
+
* @deprecated
|
|
105
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
106
|
+
*/
|
|
107
|
+
TTI_SEVERITY_THRESHOLD_DEFAULTS,
|
|
108
|
+
/**
|
|
109
|
+
* @private
|
|
110
|
+
* @deprecated
|
|
111
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
112
|
+
*/
|
|
113
|
+
TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS, } from './performance/measure-tti';
|
|
83
114
|
/**
|
|
84
115
|
* @private
|
|
85
116
|
* @deprecated
|
|
@@ -114,7 +145,14 @@ export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
|
114
145
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
115
146
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
116
147
|
export type { ShallowPropsDifference, PropsDifference } from './compare-props';
|
|
117
|
-
export {
|
|
148
|
+
export {
|
|
149
|
+
/**
|
|
150
|
+
* @private
|
|
151
|
+
* @deprecated
|
|
152
|
+
*
|
|
153
|
+
* Private API do not use - if you really need it use `@atlaskit/editor-common/use-component-render-tracking`;
|
|
154
|
+
*/
|
|
155
|
+
useComponentRenderTracking, } from './performance/hooks/use-component-render-tracking';
|
|
118
156
|
export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-component-render-tracking';
|
|
119
157
|
/**
|
|
120
158
|
* @private
|
|
@@ -5,7 +5,7 @@ export interface ErrorReportingHandler {
|
|
|
5
5
|
captureMessage: (msg: string, tags?: ErrorReporterTags) => void;
|
|
6
6
|
captureException: (err: Error, tags?: ErrorReporterTags) => void;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare class ErrorReporter {
|
|
9
9
|
private handlerStorage;
|
|
10
10
|
captureMessage(msg: string, tags?: ErrorReporterTags): void;
|
|
11
11
|
captureException(err: Error, tags?: ErrorReporterTags): void;
|
|
@@ -13,7 +13,14 @@ export {
|
|
|
13
13
|
* Please use `@atlaskit/editor-common/browser` entry-point instead.
|
|
14
14
|
*/
|
|
15
15
|
browser, } from './browser';
|
|
16
|
-
export {
|
|
16
|
+
export {
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @deprecated
|
|
20
|
+
*
|
|
21
|
+
* Please use `@atlaskit/editor-common/error-reporter` entry-point instead.
|
|
22
|
+
*/
|
|
23
|
+
ErrorReporter, } from './error-reporter';
|
|
17
24
|
export type { ErrorReportingHandler } from './error-reporter';
|
|
18
25
|
export { isPastDate, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC, } from './date';
|
|
19
26
|
export type { Date } from './date';
|
|
@@ -79,7 +86,31 @@ getDistortedDurationMonitor,
|
|
|
79
86
|
*/
|
|
80
87
|
measureRender, } from './performance/measure-render';
|
|
81
88
|
export { startMeasure, stopMeasure, clearMeasure } from './performance/measure';
|
|
82
|
-
export {
|
|
89
|
+
export {
|
|
90
|
+
/**
|
|
91
|
+
* @private
|
|
92
|
+
* @deprecated
|
|
93
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
94
|
+
*/
|
|
95
|
+
measureTTI,
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
* @deprecated
|
|
99
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
100
|
+
*/
|
|
101
|
+
getTTISeverity,
|
|
102
|
+
/**
|
|
103
|
+
* @private
|
|
104
|
+
* @deprecated
|
|
105
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
106
|
+
*/
|
|
107
|
+
TTI_SEVERITY_THRESHOLD_DEFAULTS,
|
|
108
|
+
/**
|
|
109
|
+
* @private
|
|
110
|
+
* @deprecated
|
|
111
|
+
* Private API - should not be used. Use `@atlaskit/editor-common/performance/measure-tti` if required.
|
|
112
|
+
*/
|
|
113
|
+
TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS, } from './performance/measure-tti';
|
|
83
114
|
/**
|
|
84
115
|
* @private
|
|
85
116
|
* @deprecated
|
|
@@ -114,7 +145,14 @@ export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
|
114
145
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
115
146
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
116
147
|
export type { ShallowPropsDifference, PropsDifference } from './compare-props';
|
|
117
|
-
export {
|
|
148
|
+
export {
|
|
149
|
+
/**
|
|
150
|
+
* @private
|
|
151
|
+
* @deprecated
|
|
152
|
+
*
|
|
153
|
+
* Private API do not use - if you really need it use `@atlaskit/editor-common/use-component-render-tracking`;
|
|
154
|
+
*/
|
|
155
|
+
useComponentRenderTracking, } from './performance/hooks/use-component-render-tracking';
|
|
118
156
|
export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-component-render-tracking';
|
|
119
157
|
/**
|
|
120
158
|
* @private
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/error-reporter",
|
|
3
|
+
"main": "../dist/cjs/utils/error-reporter.js",
|
|
4
|
+
"module": "../dist/esm/utils/error-reporter.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/utils/error-reporter.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/utils/error-reporter.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/utils/error-reporter.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "88.
|
|
3
|
+
"version": "88.13.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/"
|
|
@@ -92,10 +92,13 @@
|
|
|
92
92
|
"./annotation": "./src/annotation/index.ts",
|
|
93
93
|
"./constants": "./src/link/constants.ts",
|
|
94
94
|
"./is-performance-api-available": "./src/utils/performance/is-performance-api-available.ts",
|
|
95
|
-
"./performance/navigation": "./src/utils/performance/navigation.ts",
|
|
96
95
|
"./performance/measure-render": "./src/utils/performance/measure-render.ts",
|
|
97
96
|
"./count-nodes": "./src/utils/count-nodes.ts",
|
|
98
97
|
"./process-raw-value": "./src/utils/processRawValue.ts",
|
|
98
|
+
"./performance/navigation": "./src/utils/performance/navigation.ts",
|
|
99
|
+
"./performance/measure-tti": "./src/utils/performance/measure-tti.ts",
|
|
100
|
+
"./use-component-render-tracking": "./src/utils/performance/hooks/use-component-render-tracking/index.tsx",
|
|
101
|
+
"./error-reporter": "./src/utils/error-reporter.ts",
|
|
99
102
|
"./doc-utils": "./src/doc-utils/index.ts",
|
|
100
103
|
"./expand": "./src/expand/index.ts",
|
|
101
104
|
"./intl-error-boundary": "./src/ui/IntlErrorBoundary/index.tsx",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/performance/measure-tti",
|
|
3
|
+
"main": "../../dist/cjs/utils/performance/measure-tti.js",
|
|
4
|
+
"module": "../../dist/esm/utils/performance/measure-tti.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/utils/performance/measure-tti.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/utils/performance/measure-tti.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../../dist/types-ts4.5/utils/performance/measure-tti.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/use-component-render-tracking",
|
|
3
|
+
"main": "../dist/cjs/utils/performance/hooks/use-component-render-tracking/index.js",
|
|
4
|
+
"module": "../dist/esm/utils/performance/hooks/use-component-render-tracking/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/utils/performance/hooks/use-component-render-tracking/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|