@atlaskit/renderer 108.8.3 → 108.8.5
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 +12 -0
- package/dist/cjs/actions/index.js +2 -2
- package/dist/cjs/react/index.js +4 -4
- package/dist/cjs/steps/index.js +2 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/react/index.js +2 -2
- package/dist/es2019/steps/index.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/react/index.js +2 -2
- package/dist/esm/steps/index.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +2 -2
- package/dist/types/actions/matches-utils.d.ts +1 -1
- package/dist/types/react/index.d.ts +1 -1
- package/dist/types/react/marks/annotation.d.ts +1 -1
- package/dist/types/react/marks/code.d.ts +1 -1
- package/dist/types/react/marks/index.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
- package/dist/types/react/nodes/bulletList.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +1 -1
- package/dist/types/react/nodes/heading.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/inlineExtension.d.ts +1 -1
- package/dist/types/react/nodes/orderedList.d.ts +1 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table/types.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +1 -1
- package/dist/types/react/renderer-node.d.ts +1 -1
- package/dist/types/react/types.d.ts +1 -1
- package/dist/types/react/utils/lists.d.ts +1 -1
- package/dist/types/render-document.d.ts +1 -1
- package/dist/types/serializer.d.ts +1 -1
- package/dist/types/steps/index.d.ts +2 -2
- package/dist/types/text/index.d.ts +1 -1
- package/dist/types/text/nodes/index.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/dist/types-ts4.5/actions/index.d.ts +2 -2
- package/dist/types-ts4.5/actions/matches-utils.d.ts +1 -1
- package/dist/types-ts4.5/react/index.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/annotation.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/index.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/heading.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/react/renderer-node.d.ts +1 -1
- package/dist/types-ts4.5/react/types.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/lists.d.ts +1 -1
- package/dist/types-ts4.5/render-document.d.ts +1 -1
- package/dist/types-ts4.5/serializer.d.ts +1 -1
- package/dist/types-ts4.5/steps/index.d.ts +2 -2
- package/dist/types-ts4.5/text/index.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +1 -1
- package/dist/types-ts4.5/ui/renderer-props.d.ts +1 -1
- package/dist/types-ts4.5/utils.d.ts +2 -2
- package/package.json +8 -10
- package/report.api.md +4 -4
- package/tmp/api-report-tmp.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
8
|
+
|
|
9
|
+
## 108.8.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 108.8.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
12
12
|
var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
13
13
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
14
14
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
15
|
-
var
|
|
15
|
+
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
16
16
|
var _steps = require("../steps");
|
|
17
17
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
18
18
|
var _matchesUtils = require("./matches-utils");
|
|
@@ -96,7 +96,7 @@ var RendererActions = /*#__PURE__*/function () {
|
|
|
96
96
|
if (from === undefined || to === undefined) {
|
|
97
97
|
return false;
|
|
98
98
|
}
|
|
99
|
-
var step = new
|
|
99
|
+
var step = new _transform.RemoveMarkStep(from, to, mark);
|
|
100
100
|
var _step$apply = step.apply(this.doc),
|
|
101
101
|
doc = _step$apply.doc,
|
|
102
102
|
failed = _step$apply.failed;
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
16
16
|
var _links = require("./utils/links");
|
|
17
17
|
var _nodes = require("./nodes");
|
|
18
18
|
var _textWrapper = _interopRequireDefault(require("./nodes/text-wrapper"));
|
|
@@ -20,7 +20,7 @@ var _marks = require("./marks");
|
|
|
20
20
|
var _validator = require("@atlaskit/editor-common/validator");
|
|
21
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
22
22
|
var _utils2 = require("../utils");
|
|
23
|
-
var
|
|
23
|
+
var _utils3 = require("@atlaskit/editor-prosemirror/utils");
|
|
24
24
|
var _rendererNode = require("./renderer-node");
|
|
25
25
|
var _code = require("./marks/code");
|
|
26
26
|
var _excluded = ["key"];
|
|
@@ -29,7 +29,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
29
29
|
function mergeMarks(marksAndNodes) {
|
|
30
30
|
return marksAndNodes.reduce(function (acc, markOrNode) {
|
|
31
31
|
var prev = acc.length && acc[acc.length - 1] || null;
|
|
32
|
-
if (markOrNode.type instanceof
|
|
32
|
+
if (markOrNode.type instanceof _model.MarkType && prev && prev.type instanceof _model.MarkType && Array.isArray(prev.content) && (0, _validator.isSameMark)(prev, markOrNode)) {
|
|
33
33
|
prev.content = mergeMarks(prev.content.concat(markOrNode.content));
|
|
34
34
|
} else {
|
|
35
35
|
acc.push(markOrNode);
|
|
@@ -562,7 +562,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
562
562
|
if (!(0, _links.isNestedHeaderLinksEnabled)(this.allowHeadingAnchorLinks)) {
|
|
563
563
|
return this.getProps(node);
|
|
564
564
|
}
|
|
565
|
-
var nestedHeaderIds = (0,
|
|
565
|
+
var nestedHeaderIds = (0, _utils3.findChildrenByType)(node, node.type.schema.nodes.heading).map(function (_ref4) {
|
|
566
566
|
var node = _ref4.node;
|
|
567
567
|
return _this7.getHeadingId(node, _this7.expandHeadingIds);
|
|
568
568
|
});
|
package/dist/cjs/steps/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createAnnotationStep = createAnnotationStep;
|
|
7
7
|
exports.getPosFromRange = getPosFromRange;
|
|
8
8
|
exports.resolvePos = resolvePos;
|
|
9
|
-
var
|
|
9
|
+
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
10
10
|
function getStartPos(element) {
|
|
11
11
|
return parseInt(element.dataset.rendererStartPos || '-1', 10);
|
|
12
12
|
}
|
|
@@ -121,7 +121,7 @@ function getPosFromRange(range) {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
function createAnnotationStep(from, to, opts) {
|
|
124
|
-
return new
|
|
124
|
+
return new _transform.AddMarkStep(Math.min(from, to), Math.max(from, to), opts.schema.marks.annotation.create({
|
|
125
125
|
id: opts.annotationId,
|
|
126
126
|
annotationType: opts.annotationType
|
|
127
127
|
}));
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.8.
|
|
58
|
+
var packageVersion = "108.8.5";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
3
|
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { RemoveMarkStep } from 'prosemirror
|
|
5
|
+
import { RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
6
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { getIndexMatch } from './matches-utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { MarkType } from 'prosemirror
|
|
4
|
+
import { MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
6
6
|
import { Doc, DocWithSelectAllTrap, mergeTextNodes, isTextWrapper, isTextNode, toReact } from './nodes';
|
|
7
7
|
import TextWrapperComponent from './nodes/text-wrapper';
|
|
@@ -9,7 +9,7 @@ import { toReact as markToReact, isAnnotationMark } from './marks';
|
|
|
9
9
|
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
10
10
|
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { getText } from '../utils';
|
|
12
|
-
import { findChildrenByType } from 'prosemirror
|
|
12
|
+
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
13
13
|
import { insideBreakoutLayout } from './renderer-node';
|
|
14
14
|
import { isCodeMark } from './marks/code';
|
|
15
15
|
function mergeMarks(marksAndNodes) {
|
|
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
35
35
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
36
36
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
37
37
|
const packageName = "@atlaskit/renderer";
|
|
38
|
-
const packageVersion = "108.8.
|
|
38
|
+
const packageVersion = "108.8.5";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
package/dist/es2019/version.json
CHANGED
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
6
6
|
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
8
|
-
import { RemoveMarkStep } from 'prosemirror
|
|
8
|
+
import { RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
9
9
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
import { getIndexMatch } from './matches-utils';
|
package/dist/esm/react/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var _excluded = ["key"];
|
|
|
8
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { MarkType } from 'prosemirror
|
|
11
|
+
import { MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
12
12
|
import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
13
13
|
import { Doc, DocWithSelectAllTrap, mergeTextNodes, isTextWrapper, isTextNode, toReact } from './nodes';
|
|
14
14
|
import TextWrapperComponent from './nodes/text-wrapper';
|
|
@@ -16,7 +16,7 @@ import { toReact as markToReact, isAnnotationMark } from './marks';
|
|
|
16
16
|
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
17
17
|
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import { getText } from '../utils';
|
|
19
|
-
import { findChildrenByType } from 'prosemirror
|
|
19
|
+
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
20
20
|
import { insideBreakoutLayout } from './renderer-node';
|
|
21
21
|
import { isCodeMark } from './marks/code';
|
|
22
22
|
function mergeMarks(marksAndNodes) {
|
package/dist/esm/steps/index.js
CHANGED
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.8.
|
|
48
|
+
var packageVersion = "108.8.5";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
package/dist/esm/version.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
3
|
import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { Node, Schema, Mark } from 'prosemirror
|
|
6
|
-
import { Step, RemoveMarkStep } from 'prosemirror
|
|
5
|
+
import { Node, Schema, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import { Step, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
7
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
8
8
|
type ActionResult = {
|
|
9
9
|
step: Step;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node, Schema } from 'prosemirror
|
|
1
|
+
import { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
|
|
3
3
|
numMatches: number;
|
|
4
4
|
matchIndex: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Fragment, Mark, Node } from 'prosemirror
|
|
2
|
+
import { Fragment, Mark, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { Serializer } from '../';
|
|
4
4
|
import { RendererAppearance, StickyHeaderConfig, HeadingAnchorLinksProps, NodeComponentsProps } from '../ui/Renderer/types';
|
|
5
5
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MarkProps, AnnotationMarkMeta } from '../types';
|
|
3
|
-
import { Mark } from 'prosemirror
|
|
3
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare const isAnnotationMark: (mark: Mark) => boolean;
|
|
5
5
|
declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, }: MarkProps<AnnotationMarkMeta>) => JSX.Element;
|
|
6
6
|
export default AnnotationComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { Mark } from 'prosemirror
|
|
3
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { MarkProps } from '../types';
|
|
5
5
|
export declare const isCodeMark: (mark: Mark) => boolean;
|
|
6
6
|
export declare function CodeWithIntl(props: MarkProps<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Mark as PMMark, Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { Serializer } from '../..';
|
|
5
5
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Mark as PMMark, Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { NodeProps } from '../types';
|
|
4
4
|
import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
5
5
|
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { Fragment, Node, Mark } from 'prosemirror
|
|
3
|
+
import { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import Blockquote from './blockquote';
|
|
5
5
|
import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
|
|
6
6
|
import BulletList from './bulletList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RendererContext } from '../types';
|
|
3
|
-
import { Mark as PMMark } from 'prosemirror
|
|
3
|
+
import { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
export interface Props {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { Node as PMNode } from 'prosemirror
|
|
4
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
6
6
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
7
7
|
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
4
4
|
export type SharedTableProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node } from 'prosemirror
|
|
1
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const isLayoutNode: (node: Node) => boolean;
|
|
3
3
|
export declare const hasBreakOutMark: (node: Node) => boolean;
|
|
4
4
|
export declare const insideBreakoutLayout: (path: Node[]) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Node as PMNode, NodeType, Schema } from 'prosemirror
|
|
2
|
+
import { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from 'prosemirror
|
|
1
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getListIndentLevel(path: Node[]): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Serializer } from './serializer';
|
|
2
2
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { Node as PMNode, Schema } from 'prosemirror
|
|
4
|
+
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { AnalyticsEventPayload } from './analytics/events';
|
|
6
6
|
import { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export interface RenderOutput<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror
|
|
2
|
-
import { AddMarkStep } from 'prosemirror
|
|
1
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
export declare function resolvePos(node: Node | null, offset: number): number | false;
|
|
4
4
|
interface AnnotationStepOptions {
|
|
5
5
|
schema: Schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from 'prosemirror
|
|
1
|
+
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type NodeReducer = (node: PMNode, schema: Schema) => string;
|
|
3
3
|
export declare const reduce: NodeReducer;
|
|
4
4
|
export declare const nodeToReducerMapping: {
|
|
@@ -4,7 +4,7 @@ import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { Mark as PMMark } from 'prosemirror
|
|
7
|
+
import { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
export interface Props {
|
|
9
9
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
10
10
|
extensionHandlers?: ExtensionHandlers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Schema } from 'prosemirror
|
|
2
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Schema } from 'prosemirror
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { Node as PMNode } from 'prosemirror
|
|
5
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
8
|
export declare class ADFEncoder<T> {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
3
|
import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { Node, Schema, Mark } from 'prosemirror
|
|
6
|
-
import { Step, RemoveMarkStep } from 'prosemirror
|
|
5
|
+
import { Node, Schema, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import { Step, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
7
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
8
8
|
type ActionResult = {
|
|
9
9
|
step: Step;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node, Schema } from 'prosemirror
|
|
1
|
+
import { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
|
|
3
3
|
numMatches: number;
|
|
4
4
|
matchIndex: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Fragment, Mark, Node } from 'prosemirror
|
|
2
|
+
import { Fragment, Mark, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { Serializer } from '../';
|
|
4
4
|
import { RendererAppearance, StickyHeaderConfig, HeadingAnchorLinksProps, NodeComponentsProps } from '../ui/Renderer/types';
|
|
5
5
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MarkProps, AnnotationMarkMeta } from '../types';
|
|
3
|
-
import { Mark } from 'prosemirror
|
|
3
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare const isAnnotationMark: (mark: Mark) => boolean;
|
|
5
5
|
declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, }: MarkProps<AnnotationMarkMeta>) => JSX.Element;
|
|
6
6
|
export default AnnotationComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { Mark } from 'prosemirror
|
|
3
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { MarkProps } from '../types';
|
|
5
5
|
export declare const isCodeMark: (mark: Mark) => boolean;
|
|
6
6
|
export declare function CodeWithIntl(props: MarkProps<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Mark as PMMark, Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { Serializer } from '../..';
|
|
5
5
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Mark as PMMark, Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { NodeProps } from '../types';
|
|
4
4
|
import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
5
5
|
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { Fragment, Node, Mark } from 'prosemirror
|
|
3
|
+
import { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import Blockquote from './blockquote';
|
|
5
5
|
import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
|
|
6
6
|
import BulletList from './bulletList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RendererContext } from '../types';
|
|
3
|
-
import { Mark as PMMark } from 'prosemirror
|
|
3
|
+
import { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
export interface Props {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { Node as PMNode } from 'prosemirror
|
|
4
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
6
6
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
7
7
|
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
4
4
|
export type SharedTableProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node } from 'prosemirror
|
|
1
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const isLayoutNode: (node: Node) => boolean;
|
|
3
3
|
export declare const hasBreakOutMark: (node: Node) => boolean;
|
|
4
4
|
export declare const insideBreakoutLayout: (path: Node[]) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Node as PMNode, NodeType, Schema } from 'prosemirror
|
|
2
|
+
import { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from 'prosemirror
|
|
1
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getListIndentLevel(path: Node[]): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Serializer } from './serializer';
|
|
2
2
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { Node as PMNode, Schema } from 'prosemirror
|
|
4
|
+
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { AnalyticsEventPayload } from './analytics/events';
|
|
6
6
|
import { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export interface RenderOutput<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror
|
|
2
|
-
import { AddMarkStep } from 'prosemirror
|
|
1
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
export declare function resolvePos(node: Node | null, offset: number): number | false;
|
|
4
4
|
interface AnnotationStepOptions {
|
|
5
5
|
schema: Schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from 'prosemirror
|
|
1
|
+
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type NodeReducer = (node: PMNode, schema: Schema) => string;
|
|
3
3
|
export declare const reduce: NodeReducer;
|
|
4
4
|
export declare const nodeToReducerMapping: {
|
|
@@ -4,7 +4,7 @@ import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { Mark as PMMark } from 'prosemirror
|
|
7
|
+
import { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
export interface Props {
|
|
9
9
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
10
10
|
extensionHandlers?: ExtensionHandlers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Schema } from 'prosemirror
|
|
2
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Schema } from 'prosemirror
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { Node as PMNode } from 'prosemirror
|
|
5
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
8
|
export declare class ADFEncoder<T> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.8.
|
|
3
|
+
"version": "108.8.5",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,20 +24,21 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^26.
|
|
27
|
+
"@atlaskit/adf-schema": "^26.4.0",
|
|
28
28
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
32
32
|
"@atlaskit/button": "^16.8.0",
|
|
33
33
|
"@atlaskit/code": "^14.6.0",
|
|
34
|
-
"@atlaskit/editor-common": "^74.
|
|
34
|
+
"@atlaskit/editor-common": "^74.29.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.5.1",
|
|
37
|
-
"@atlaskit/editor-
|
|
37
|
+
"@atlaskit/editor-prosemirror": "1.0.2",
|
|
38
|
+
"@atlaskit/editor-shared-styles": "^2.5.0",
|
|
38
39
|
"@atlaskit/emoji": "^67.4.0",
|
|
39
40
|
"@atlaskit/icon": "^21.12.0",
|
|
40
|
-
"@atlaskit/link-datasource": "^0.
|
|
41
|
+
"@atlaskit/link-datasource": "^0.30.0",
|
|
41
42
|
"@atlaskit/media-card": "^76.1.0",
|
|
42
43
|
"@atlaskit/media-client": "^23.1.0",
|
|
43
44
|
"@atlaskit/media-common": "^7.1.0",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@atlaskit/media-ui": "^23.2.0",
|
|
46
47
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
47
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
48
|
-
"@atlaskit/smart-card": "^26.
|
|
49
|
+
"@atlaskit/smart-card": "^26.13.0",
|
|
49
50
|
"@atlaskit/status": "^1.3.0",
|
|
50
51
|
"@atlaskit/task-decision": "^17.7.0",
|
|
51
52
|
"@atlaskit/theme": "^12.5.0",
|
|
@@ -55,9 +56,6 @@
|
|
|
55
56
|
"@emotion/react": "^11.7.1",
|
|
56
57
|
"lodash": "^4.17.21",
|
|
57
58
|
"memoize-one": "^6.0.0",
|
|
58
|
-
"prosemirror-model": "1.16.0",
|
|
59
|
-
"prosemirror-transform": "1.3.2",
|
|
60
|
-
"prosemirror-utils": "^1.0.0-0",
|
|
61
59
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
62
60
|
"react-loadable": "^5.1.0",
|
|
63
61
|
"uuid": "^3.1.0"
|
|
@@ -74,7 +72,7 @@
|
|
|
74
72
|
"@atlaskit/css-reset": "^6.5.0",
|
|
75
73
|
"@atlaskit/editor-test-helpers": "^18.10.0",
|
|
76
74
|
"@atlaskit/link-provider": "^1.6.0",
|
|
77
|
-
"@atlaskit/link-test-helpers": "^
|
|
75
|
+
"@atlaskit/link-test-helpers": "^6.0.0",
|
|
78
76
|
"@atlaskit/media-core": "^34.1.0",
|
|
79
77
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
80
78
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
package/report.api.md
CHANGED
|
@@ -28,16 +28,16 @@ import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
|
28
28
|
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
29
29
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
30
30
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
31
|
-
import { Fragment } from 'prosemirror
|
|
31
|
+
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
32
32
|
import { jsx } from '@emotion/react';
|
|
33
|
-
import { Mark } from 'prosemirror
|
|
33
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
34
34
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
35
35
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
36
|
-
import { Node as Node_2 } from 'prosemirror
|
|
36
|
+
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
37
37
|
import { OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
38
38
|
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
39
39
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
40
|
-
import { Schema } from 'prosemirror
|
|
40
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
41
41
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
42
42
|
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
43
43
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -17,16 +17,16 @@ import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
|
17
17
|
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
18
18
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
19
19
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
20
|
-
import { Fragment } from 'prosemirror
|
|
20
|
+
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
21
21
|
import { jsx } from '@emotion/react';
|
|
22
|
-
import { Mark } from 'prosemirror
|
|
22
|
+
import { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
23
23
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
24
24
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
25
|
-
import { Node as Node_2 } from 'prosemirror
|
|
25
|
+
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
26
26
|
import { OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
27
27
|
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
28
28
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
29
|
-
import { Schema } from 'prosemirror
|
|
29
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
30
30
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
31
31
|
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
32
32
|
import { SortOrder } from '@atlaskit/editor-common/types';
|