@atlaskit/editor-common 93.6.0 → 93.6.2
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 +18 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/performance/hooks/use-component-render-tracking/index.js +3 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/performance/hooks/use-component-render-tracking/index.js +2 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/performance/hooks/use-component-render-tracking/index.js +2 -2
- package/dist/types/collab/index.d.ts +1 -0
- package/dist/types-ts4.5/collab/index.d.ts +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 93.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#154162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154162)
|
|
8
|
+
[`5982815965267`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5982815965267) -
|
|
9
|
+
Updated performanceTracking and inputSampling props to hardcoded values as we're removing this
|
|
10
|
+
feature flag
|
|
11
|
+
- [#153986](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153986)
|
|
12
|
+
[`ce61c835c3b6a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce61c835c3b6a) -
|
|
13
|
+
allow editorApi to be used to update state in collab plugin
|
|
14
|
+
|
|
15
|
+
## 93.6.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 93.6.0
|
|
4
22
|
|
|
5
23
|
### Minor 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 && {}.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 = "93.6.
|
|
20
|
+
var packageVersion = "93.6.2";
|
|
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
|
|
@@ -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 = "93.6.
|
|
27
|
+
var packageVersion = "93.6.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.useComponentRenderTracking = useComponentRenderTracking;
|
|
7
8
|
var _react = require("react");
|
|
8
|
-
var
|
|
9
|
+
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
9
10
|
var _compareProps = require("../../../compare-props");
|
|
10
11
|
function useComponentRenderTracking(_ref) {
|
|
11
12
|
var onRender = _ref.onRender,
|
|
@@ -14,7 +15,7 @@ function useComponentRenderTracking(_ref) {
|
|
|
14
15
|
zeroBasedCount = _ref$zeroBasedCount === void 0 ? true : _ref$zeroBasedCount;
|
|
15
16
|
var propsRef = (0, _react.useRef)();
|
|
16
17
|
var renderCountRef = (0, _react.useRef)(zeroBasedCount ? 0 : 1);
|
|
17
|
-
var _useRef = (0, _react.useRef)(
|
|
18
|
+
var _useRef = (0, _react.useRef)((0, _v.default)()),
|
|
18
19
|
componentId = _useRef.current;
|
|
19
20
|
(0, _react.useEffect)(function () {
|
|
20
21
|
var lastProps = propsRef.current;
|
|
@@ -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 = "93.6.
|
|
4
|
+
const packageVersion = "93.6.2";
|
|
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
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "93.6.
|
|
16
|
+
const packageVersion = "93.6.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import uuidv4 from 'uuid/v4';
|
|
3
3
|
import { getPropsDifference, getShallowPropsDifference } from '../../../compare-props';
|
|
4
4
|
export function useComponentRenderTracking({
|
|
5
5
|
onRender,
|
|
@@ -10,7 +10,7 @@ export function useComponentRenderTracking({
|
|
|
10
10
|
const renderCountRef = useRef(zeroBasedCount ? 0 : 1);
|
|
11
11
|
const {
|
|
12
12
|
current: componentId
|
|
13
|
-
} = useRef(
|
|
13
|
+
} = useRef(uuidv4());
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
const lastProps = propsRef.current;
|
|
16
16
|
const renderCount = renderCountRef.current;
|
|
@@ -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 = "93.6.
|
|
10
|
+
var packageVersion = "93.6.2";
|
|
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
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "93.6.
|
|
24
|
+
var packageVersion = "93.6.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import uuidv4 from 'uuid/v4';
|
|
3
3
|
import { getPropsDifference, getShallowPropsDifference } from '../../../compare-props';
|
|
4
4
|
export function useComponentRenderTracking(_ref) {
|
|
5
5
|
var onRender = _ref.onRender,
|
|
@@ -8,7 +8,7 @@ export function useComponentRenderTracking(_ref) {
|
|
|
8
8
|
zeroBasedCount = _ref$zeroBasedCount === void 0 ? true : _ref$zeroBasedCount;
|
|
9
9
|
var propsRef = useRef();
|
|
10
10
|
var renderCountRef = useRef(zeroBasedCount ? 0 : 1);
|
|
11
|
-
var _useRef = useRef(
|
|
11
|
+
var _useRef = useRef(uuidv4()),
|
|
12
12
|
componentId = _useRef.current;
|
|
13
13
|
useEffect(function () {
|
|
14
14
|
var lastProps = propsRef.current;
|
|
@@ -381,6 +381,7 @@ export interface CollabEditProvider<Events extends CollabEvents = CollabEvents>
|
|
|
381
381
|
initialize(getState: () => any, createStep: (json: object) => Step): this;
|
|
382
382
|
setup(props: {
|
|
383
383
|
getState?: () => EditorState;
|
|
384
|
+
editorApi?: any;
|
|
384
385
|
onSyncUpError?: SyncUpErrorFunction;
|
|
385
386
|
}): this;
|
|
386
387
|
send(tr: Transaction, oldState: EditorState, newState: EditorState): void;
|
|
@@ -381,6 +381,7 @@ export interface CollabEditProvider<Events extends CollabEvents = CollabEvents>
|
|
|
381
381
|
initialize(getState: () => any, createStep: (json: object) => Step): this;
|
|
382
382
|
setup(props: {
|
|
383
383
|
getState?: () => EditorState;
|
|
384
|
+
editorApi?: any;
|
|
384
385
|
onSyncUpError?: SyncUpErrorFunction;
|
|
385
386
|
}): this;
|
|
386
387
|
send(tr: Transaction, oldState: EditorState, newState: EditorState): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "93.6.
|
|
3
|
+
"version": "93.6.2",
|
|
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/"
|
|
@@ -138,16 +138,16 @@
|
|
|
138
138
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
139
139
|
"@atlaskit/media-picker": "^66.7.0",
|
|
140
140
|
"@atlaskit/media-ui": "^25.16.0",
|
|
141
|
-
"@atlaskit/media-viewer": "49.2.
|
|
141
|
+
"@atlaskit/media-viewer": "49.2.1",
|
|
142
142
|
"@atlaskit/mention": "^23.3.0",
|
|
143
143
|
"@atlaskit/menu": "^2.13.0",
|
|
144
144
|
"@atlaskit/onboarding": "^11.2.0",
|
|
145
145
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
146
146
|
"@atlaskit/primitives": "^12.2.0",
|
|
147
|
-
"@atlaskit/profilecard": "^20.
|
|
147
|
+
"@atlaskit/profilecard": "^20.6.0",
|
|
148
148
|
"@atlaskit/section-message": "^6.6.0",
|
|
149
149
|
"@atlaskit/smart-card": "^30.1.0",
|
|
150
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
150
|
+
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
151
151
|
"@atlaskit/spinner": "^16.3.0",
|
|
152
152
|
"@atlaskit/task-decision": "^17.11.0",
|
|
153
153
|
"@atlaskit/textfield": "^6.5.0",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"@af/visual-regression": "*",
|
|
192
192
|
"@atlaskit/media-core": "^34.3.0",
|
|
193
193
|
"@atlaskit/media-test-helpers": "^34.5.0",
|
|
194
|
-
"@atlaskit/util-data-test": "^17.
|
|
194
|
+
"@atlaskit/util-data-test": "^17.11.0",
|
|
195
195
|
"@atlaskit/visual-regression": "*",
|
|
196
196
|
"@testing-library/dom": "^10.1.0",
|
|
197
197
|
"@testing-library/jest-dom": "^6.4.5",
|