@atlaskit/editor-common 93.6.1 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## 93.6.1
4
16
 
5
17
  ### 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 && {}.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.1";
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.1";
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 _adfSchema = require("@atlaskit/adf-schema");
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)(_adfSchema.uuid.generate()),
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.1";
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.1";
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 { uuid } from '@atlaskit/adf-schema';
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(uuid.generate());
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.1";
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.1";
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 { uuid } from '@atlaskit/adf-schema';
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(uuid.generate()),
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.1",
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/"