@atlaskit/editor-common 86.7.1 → 86.8.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 86.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#124190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124190)
8
+ [`9ab9c4ca2b9df`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9ab9c4ca2b9df) -
9
+ Clean-up platform.editor.refactor-highlight-toolbar_mo0pj feature flag
10
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
11
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
12
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 86.7.1
4
19
 
5
20
  ### 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 = "86.7.1";
20
+ var packageVersion = "86.8.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
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "86.7.1";
26
+ var packageVersion = "86.8.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -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 = "86.7.1";
4
+ const packageVersion = "86.8.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
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "86.7.1";
15
+ const packageVersion = "86.8.0";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -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 = "86.7.1";
10
+ var packageVersion = "86.8.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
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "86.7.1";
23
+ var packageVersion = "86.8.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,7 +1,8 @@
1
1
  import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
4
  export declare function getSelectedNodeOrNodeParentByNodeType({ nodeType, selection, }: {
4
5
  nodeType: NodeType | Array<NodeType>;
5
6
  selection: Transaction['selection'];
6
- }): import("prosemirror-utils/dist/types").FindResult;
7
+ }): ContentNodeWithPos | undefined;
7
8
  export declare const toDOM: (node: PMNode, schema: Schema) => Node;
@@ -1,6 +1,7 @@
1
1
  import { Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
5
  export declare function transformSliceToJoinAdjacentCodeBlocks(slice: Slice): Slice;
5
6
  export declare const transformSingleLineCodeBlockToCodeMark: (slice: Slice, schema: Schema) => Slice;
6
- export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
7
+ export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => ContentNodeWithPos | undefined;
@@ -1,7 +1,8 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
- export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
4
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
+ export declare const findExpand: (state: EditorState, selection?: Selection | null) => ContentNodeWithPos | undefined;
5
6
  export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
6
7
  export declare const transformSliceToRemoveOpenNestedExpand: (slice: Slice, schema: Schema) => Slice;
7
8
  export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
@@ -1,7 +1,8 @@
1
1
  import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
4
  export declare function getSelectedNodeOrNodeParentByNodeType({ nodeType, selection, }: {
4
5
  nodeType: NodeType | Array<NodeType>;
5
6
  selection: Transaction['selection'];
6
- }): import("prosemirror-utils/dist/types").FindResult;
7
+ }): ContentNodeWithPos | undefined;
7
8
  export declare const toDOM: (node: PMNode, schema: Schema) => Node;
@@ -1,6 +1,7 @@
1
1
  import { Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
5
  export declare function transformSliceToJoinAdjacentCodeBlocks(slice: Slice): Slice;
5
6
  export declare const transformSingleLineCodeBlockToCodeMark: (slice: Slice, schema: Schema) => Slice;
6
- export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
7
+ export declare const findCodeBlock: (state: EditorState, selection?: Selection | null) => ContentNodeWithPos | undefined;
@@ -1,7 +1,8 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
4
- export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
4
+ import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
+ export declare const findExpand: (state: EditorState, selection?: Selection | null) => ContentNodeWithPos | undefined;
5
6
  export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
6
7
  export declare const transformSliceToRemoveOpenNestedExpand: (slice: Slice, schema: Schema) => Slice;
7
8
  export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "86.7.1",
3
+ "version": "86.8.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/"
@@ -99,7 +99,7 @@
99
99
  "dependencies": {
100
100
  "@atlaskit/activity-provider": "^2.4.0",
101
101
  "@atlaskit/adf-schema": "^40.3.0",
102
- "@atlaskit/adf-utils": "^19.5.0",
102
+ "@atlaskit/adf-utils": "^19.6.0",
103
103
  "@atlaskit/analytics-listeners": "^8.10.0",
104
104
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
105
105
  "@atlaskit/analytics-next": "^9.3.0",
@@ -107,17 +107,17 @@
107
107
  "@atlaskit/button": "^19.1.0",
108
108
  "@atlaskit/code": "^15.4.0",
109
109
  "@atlaskit/codemod-utils": "^4.2.0",
110
- "@atlaskit/custom-steps": "^0.5.0",
110
+ "@atlaskit/custom-steps": "^0.6.0",
111
111
  "@atlaskit/dropdown-menu": "^12.13.0",
112
- "@atlaskit/editor-json-transformer": "^8.16.0",
112
+ "@atlaskit/editor-json-transformer": "^8.17.0",
113
113
  "@atlaskit/editor-palette": "1.6.0",
114
- "@atlaskit/editor-prosemirror": "4.0.1",
114
+ "@atlaskit/editor-prosemirror": "5.0.1",
115
115
  "@atlaskit/editor-shared-styles": "^2.13.0",
116
- "@atlaskit/editor-tables": "^2.7.0",
116
+ "@atlaskit/editor-tables": "^2.8.0",
117
117
  "@atlaskit/emoji": "^67.6.0",
118
118
  "@atlaskit/icon": "^22.7.0",
119
119
  "@atlaskit/icon-object": "^6.4.0",
120
- "@atlaskit/link-datasource": "^2.7.0",
120
+ "@atlaskit/link-datasource": "^2.8.0",
121
121
  "@atlaskit/link-picker": "^1.41.0",
122
122
  "@atlaskit/media-card": "^78.0.0",
123
123
  "@atlaskit/media-client": "^27.3.0",
@@ -180,7 +180,6 @@
180
180
  "@atlaskit/media-test-helpers": "^34.0.0",
181
181
  "@atlaskit/util-data-test": "^17.9.0",
182
182
  "@atlaskit/visual-regression": "*",
183
- "@atlassian/feature-flags-test-utils": "*",
184
183
  "@testing-library/dom": "^10.1.0",
185
184
  "@testing-library/jest-dom": "^6.4.5",
186
185
  "@testing-library/react": "^12.1.5",