@atlaskit/renderer 83.0.0 → 85.0.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 +81 -0
- package/dist/cjs/actions/index.js +3 -3
- package/dist/cjs/actions/matches-utils.js +1 -1
- package/dist/cjs/analytics/enums.js +2 -1
- package/dist/cjs/analytics/events.js +1 -1
- package/dist/cjs/analytics/unsupported-content.js +3 -3
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/messages.js +4 -4
- package/dist/cjs/react/index.js +13 -9
- package/dist/cjs/react/marks/annotation.js +3 -3
- package/dist/cjs/react/marks/breakout.js +6 -4
- package/dist/cjs/react/marks/code.js +3 -3
- package/dist/cjs/react/marks/index.js +24 -24
- package/dist/cjs/react/marks/textColor.js +15 -4
- package/dist/cjs/react/nodes/blockCard.js +2 -2
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
- package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
- package/dist/cjs/react/nodes/date.js +8 -6
- package/dist/cjs/react/nodes/doc.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +5 -5
- package/dist/cjs/react/nodes/emoji.js +2 -2
- package/dist/cjs/react/nodes/extension.js +7 -5
- package/dist/cjs/react/nodes/heading-anchor.js +5 -3
- package/dist/cjs/react/nodes/index.js +92 -58
- package/dist/cjs/react/nodes/inlineCard.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media.js +5 -3
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +2 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +6 -6
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
- package/dist/cjs/react/nodes/mention.js +2 -2
- package/dist/cjs/react/nodes/panel.js +18 -20
- package/dist/cjs/react/nodes/table/colgroup.js +3 -3
- package/dist/cjs/react/nodes/table/sticky.js +5 -5
- package/dist/cjs/react/nodes/table.js +19 -13
- package/dist/cjs/react/nodes/tableCell.js +16 -14
- package/dist/cjs/react/nodes/tableRow.js +6 -4
- package/dist/cjs/react/nodes/task-item-with-providers.js +3 -1
- package/dist/cjs/react/nodes/taskItem.js +3 -3
- package/dist/cjs/react/renderer-node.js +1 -1
- package/dist/cjs/react/utils/links.js +1 -1
- package/dist/cjs/render-document.js +24 -4
- package/dist/cjs/renderer-context.js +1 -1
- package/dist/cjs/steps/index.js +2 -2
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/text/nodes/index.js +1 -1
- package/dist/cjs/ui/Expand.js +11 -11
- package/dist/cjs/ui/ExtensionRenderer.js +8 -4
- package/dist/cjs/ui/MediaCard.js +5 -5
- package/dist/cjs/ui/Renderer/breakout-ssr.js +4 -4
- package/dist/cjs/ui/Renderer/index.js +27 -23
- package/dist/cjs/ui/Renderer/style.js +9 -7
- package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
- package/dist/cjs/ui/SortingIcon.js +9 -9
- package/dist/cjs/ui/active-header-id-provider.js +1 -1
- package/dist/cjs/ui/annotations/context.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +3 -3
- package/dist/cjs/ui/annotations/draft/index.js +4 -4
- package/dist/cjs/ui/annotations/draft/text.js +1 -1
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +4 -4
- package/dist/cjs/ui/annotations/hooks/index.js +8 -8
- package/dist/cjs/ui/annotations/hooks/use-events.js +12 -12
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
- package/dist/cjs/ui/annotations/index.js +5 -5
- package/dist/cjs/utils.js +6 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/react/index.js +2 -1
- package/dist/es2019/react/marks/breakout.js +2 -1
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/textColor.js +7 -4
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/date.js +3 -2
- package/dist/es2019/react/nodes/embedCard.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +2 -1
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/index.js +32 -7
- package/dist/es2019/react/nodes/inlineCard.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media.js +2 -1
- package/dist/es2019/react/nodes/mediaInline.js +1 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +2 -2
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/panel.js +14 -12
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table.js +4 -1
- package/dist/es2019/react/nodes/tableCell.js +2 -1
- package/dist/es2019/react/nodes/tableRow.js +2 -1
- package/dist/es2019/react/nodes/taskItem.js +1 -1
- package/dist/es2019/render-document.js +20 -2
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -2
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +8 -6
- package/dist/es2019/ui/Renderer/style.js +3 -1
- package/dist/es2019/ui/SortingIcon.js +2 -2
- package/dist/es2019/ui/annotations/draft/component.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/react/index.js +6 -4
- package/dist/esm/react/marks/annotation.js +2 -2
- package/dist/esm/react/marks/breakout.js +2 -1
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/textColor.js +8 -4
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/date.js +3 -2
- package/dist/esm/react/nodes/embedCard.js +1 -1
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +2 -1
- package/dist/esm/react/nodes/heading-anchor.js +4 -2
- package/dist/esm/react/nodes/index.js +62 -7
- package/dist/esm/react/nodes/inlineCard.js +1 -1
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media.js +2 -1
- package/dist/esm/react/nodes/mediaGroup.js +2 -2
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +2 -2
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/panel.js +14 -12
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table.js +4 -1
- package/dist/esm/react/nodes/tableCell.js +2 -1
- package/dist/esm/react/nodes/tableRow.js +2 -1
- package/dist/esm/react/nodes/task-item-with-providers.js +2 -1
- package/dist/esm/react/nodes/taskItem.js +1 -1
- package/dist/esm/render-document.js +20 -2
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/ui/Expand.js +2 -2
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/index.js +10 -8
- package/dist/esm/ui/Renderer/style.js +4 -3
- package/dist/esm/ui/SortingIcon.js +2 -2
- package/dist/esm/ui/annotations/draft/component.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
- package/dist/esm/utils.js +3 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +8 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/react/index.d.ts +4 -1
- package/dist/types/react/marks/alignment.d.ts +1 -0
- package/dist/types/react/marks/annotation.d.ts +1 -0
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/marks/data-consumer.d.ts +1 -0
- package/dist/types/react/marks/em.d.ts +1 -0
- package/dist/types/react/marks/fragment.d.ts +1 -0
- package/dist/types/react/marks/indentation.d.ts +1 -0
- package/dist/types/react/marks/link.d.ts +1 -0
- package/dist/types/react/marks/strike.d.ts +1 -0
- package/dist/types/react/marks/strong.d.ts +1 -0
- package/dist/types/react/marks/subsup.d.ts +1 -0
- package/dist/types/react/marks/textColor.d.ts +1 -0
- package/dist/types/react/marks/underline.d.ts +1 -0
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/react/nodes/blockCard.d.ts +2 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/caption.d.ts +1 -0
- package/dist/types/react/nodes/codeBlock.d.ts +11 -3
- package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
- package/dist/types/react/nodes/date.d.ts +3 -3
- package/dist/types/react/nodes/decisionItem.d.ts +1 -0
- package/dist/types/react/nodes/doc.d.ts +1 -0
- package/dist/types/react/nodes/embedCard.d.ts +2 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +14 -13
- package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +1 -0
- package/dist/types/react/nodes/index.d.ts +41 -17
- package/dist/types/react/nodes/inlineCard.d.ts +21 -21
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
- package/dist/types/react/nodes/media.d.ts +2 -2
- package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +1 -1
- package/dist/types/react/nodes/mediaSingle/index.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
- package/dist/types/react/nodes/mention.d.ts +2 -1
- package/dist/types/react/nodes/panel.d.ts +3 -1
- package/dist/types/react/nodes/paragraph.d.ts +1 -0
- package/dist/types/react/nodes/placeholder.d.ts +1 -0
- package/dist/types/react/nodes/rule.d.ts +1 -0
- package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +22 -21
- package/dist/types/react/nodes/tableCell.d.ts +1 -1
- package/dist/types/react/nodes/tableRow.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -0
- package/dist/types/react/types.d.ts +3 -1
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/render-document.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
- package/dist/types/ui/MediaCard.d.ts +3 -2
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
- package/dist/types/ui/SortingIcon.d.ts +2 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +6 -1
- package/dist/types/utils.d.ts +3 -1
- package/package.json +20 -20
|
@@ -5,12 +5,12 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
5
5
|
|
|
6
6
|
var _templateObject;
|
|
7
7
|
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
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
|
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
10
|
+
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; }
|
|
11
11
|
|
|
12
12
|
import React, { useMemo, useCallback } from 'react';
|
|
13
|
-
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common';
|
|
13
|
+
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
14
14
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
15
15
|
import styled from 'styled-components';
|
|
16
16
|
var MarkStyled = styled.mark(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState.blur, AnnotationSharedCSSByState.focus);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
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; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
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; }
|
|
7
7
|
|
|
8
8
|
import { useLayoutEffect, useState } from 'react';
|
|
9
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
|
|
9
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
10
10
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
11
11
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../../analytics/enums';
|
|
12
12
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
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; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
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; }
|
|
6
6
|
|
|
7
7
|
import { useContext, useEffect } from 'react';
|
|
8
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
|
|
8
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
9
9
|
import { ProvidersContext } from '../context';
|
|
10
10
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
11
11
|
export var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import { defaultSchema } from '@atlaskit/adf-schema';
|
|
3
4
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
@@ -8,12 +9,12 @@ function createEncoder(parser, encoder) {
|
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export var ADFEncoder = function ADFEncoder(createTransformerWithSchema) {
|
|
12
|
+
export var ADFEncoder = /*#__PURE__*/_createClass(function ADFEncoder(createTransformerWithSchema) {
|
|
12
13
|
_classCallCheck(this, ADFEncoder);
|
|
13
14
|
|
|
14
15
|
var transformer = createTransformerWithSchema(defaultSchema);
|
|
15
16
|
this.encode = createEncoder(transformer, new JSONTransformer());
|
|
16
|
-
};
|
|
17
|
+
});
|
|
17
18
|
export var getText = function getText(node) {
|
|
18
19
|
return node.text || node.attrs && (node.attrs.text || node.attrs.shortName) || "[".concat(typeof node.type === 'string' ? node.type : node.type.name, "]");
|
|
19
20
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common';
|
|
3
|
+
import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
5
|
import { Node, Schema, Mark } from 'prosemirror-model';
|
|
6
6
|
import { Step, RemoveMarkStep } from 'prosemirror-transform';
|
|
@@ -8,6 +8,7 @@ export declare enum ACTION {
|
|
|
8
8
|
STARTED = "started",
|
|
9
9
|
RENDERED = "rendered",
|
|
10
10
|
CRASHED = "unhandledErrorCaught",
|
|
11
|
+
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
11
12
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
12
13
|
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
13
14
|
CLICKED = "clicked",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, AEP, EVENT_TYPE, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
-
import {
|
|
2
|
+
import { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
5
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
|
|
4
6
|
export declare enum PLATFORM {
|
|
5
7
|
NATIVE = "mobileNative",
|
|
@@ -27,6 +29,10 @@ export declare type ComponentCrashErrorAEP = AEP<ACTION.CRASHED, ACTION_SUBJECT.
|
|
|
27
29
|
componentStack?: string;
|
|
28
30
|
errorRethrown?: boolean;
|
|
29
31
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
32
|
+
declare type InvalidProsemirrorDocumentErrorAEP = AEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
33
|
+
platform: PLATFORM.WEB;
|
|
34
|
+
errorStack?: string;
|
|
35
|
+
}, EVENT_TYPE.OPERATIONAL>;
|
|
30
36
|
declare type RendererUnsupportedContentLevelsTrackingSucceeded = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
31
37
|
appearance?: string;
|
|
32
38
|
platform: PLATFORM.WEB;
|
|
@@ -90,5 +96,5 @@ export declare enum RESOLVE_METHOD {
|
|
|
90
96
|
ORPHANED = "orphaned"
|
|
91
97
|
}
|
|
92
98
|
export declare type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
93
|
-
export declare type AnalyticsEventPayload = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP;
|
|
99
|
+
export declare type AnalyticsEventPayload = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | InvalidProsemirrorDocumentErrorAEP;
|
|
94
100
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common';
|
|
1
|
+
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { AnalyticsEventPayload } from './events';
|
|
3
3
|
declare type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
4
4
|
declare type DocumentData = {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Fragment, Mark, Node } from 'prosemirror-model';
|
|
2
3
|
import { Serializer } from '../';
|
|
3
4
|
import { RendererAppearance, StickyHeaderConfig, HeadingAnchorLinksProps } from '../ui/Renderer/types';
|
|
4
5
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
5
6
|
import { TextWrapper } from './nodes';
|
|
6
|
-
import {
|
|
7
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
8
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
7
10
|
import { RendererContext } from './types';
|
|
8
11
|
import { MediaOptions } from '../types/mediaOptions';
|
|
9
12
|
export interface ReactSerializerInit {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { Mark } from '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<{
|
|
7
7
|
codeBidiWarningTooltipEnabled: boolean;
|
|
8
|
-
}> &
|
|
9
|
-
declare const _default: React.
|
|
8
|
+
}> & WrappedComponentProps): JSX.Element;
|
|
9
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
|
-
} & import("../types").MarkMeta
|
|
12
|
-
WrappedComponent:
|
|
11
|
+
} & import("../types").MarkMeta & WrappedComponentProps<"intl">>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<{
|
|
13
13
|
codeBidiWarningTooltipEnabled: boolean;
|
|
14
|
-
} & import("../types").MarkMeta &
|
|
14
|
+
} & import("../types").MarkMeta & WrappedComponentProps<"intl">>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
2
3
|
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
3
4
|
export default function BlockCard(props: {
|
|
4
5
|
url?: string;
|
|
@@ -3,7 +3,8 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { Serializer } from '../..';
|
|
5
5
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
6
|
-
import { ExtensionHandlers
|
|
6
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
7
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
8
|
export interface Props {
|
|
8
9
|
serializer: Serializer<any>;
|
|
9
10
|
extensionHandlers?: ExtensionHandlers;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
1
3
|
import { SupportedLanguages } from '@atlaskit/code';
|
|
2
4
|
export interface Props {
|
|
3
5
|
text: string;
|
|
@@ -6,11 +8,17 @@ export interface Props {
|
|
|
6
8
|
codeBidiWarningTooltipEnabled: boolean;
|
|
7
9
|
className?: string;
|
|
8
10
|
}
|
|
9
|
-
declare const _default: import("styled-components").StyledComponentClass<(Props &
|
|
11
|
+
declare const _default: import("styled-components").StyledComponentClass<(Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
12
|
+
forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
13
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
14
|
+
forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
15
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
16
|
+
forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
17
|
+
} & import("@atlaskit/theme").NoThemeProps), any, (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
10
18
|
theme?: any;
|
|
11
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<Props
|
|
19
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
12
20
|
theme?: any;
|
|
13
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props
|
|
21
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
14
22
|
theme?: any;
|
|
15
23
|
} & import("@atlaskit/theme").NoThemeProps)>;
|
|
16
24
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: React.
|
|
7
|
-
WrappedComponent:
|
|
6
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
7
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export interface Props {
|
|
4
4
|
timestamp: string;
|
|
5
5
|
parentIsIncompleteTask?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: React.
|
|
8
|
-
WrappedComponent:
|
|
7
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
2
3
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
3
4
|
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
4
5
|
export default function EmbedCard(props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmojiAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
3
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
export interface EmojiProps extends EmojiAttributes {
|
|
5
5
|
providers?: ProviderFactory;
|
|
6
6
|
fitToHeight?: number;
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { ExtensionHandlers
|
|
5
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
6
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
6
8
|
export interface Props {
|
|
7
9
|
extensionHandlers?: ExtensionHandlers;
|
|
8
10
|
providers: ProviderFactory;
|
|
@@ -42,7 +44,7 @@ declare const _default: {
|
|
|
42
44
|
handleContainer: (container: HTMLElement | null) => void;
|
|
43
45
|
render(): JSX.Element;
|
|
44
46
|
context: any;
|
|
45
|
-
setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
47
|
+
setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
46
48
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
47
49
|
readonly props: Readonly<Props> & Readonly<{
|
|
48
50
|
children?: React.ReactNode;
|
|
@@ -51,16 +53,15 @@ declare const _default: {
|
|
|
51
53
|
[key: string]: React.ReactInstance;
|
|
52
54
|
};
|
|
53
55
|
componentDidMount?(): void;
|
|
54
|
-
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
|
|
56
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
55
57
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
56
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
|
|
58
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
57
59
|
componentWillMount?(): void;
|
|
58
60
|
UNSAFE_componentWillMount?(): void;
|
|
59
61
|
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
62
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
63
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
64
65
|
};
|
|
65
66
|
new (props: Props, context?: any): {
|
|
66
67
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -81,7 +82,7 @@ declare const _default: {
|
|
|
81
82
|
handleContainer: (container: HTMLElement | null) => void;
|
|
82
83
|
render(): JSX.Element;
|
|
83
84
|
context: any;
|
|
84
|
-
setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
85
|
+
setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
85
86
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
87
|
readonly props: Readonly<Props> & Readonly<{
|
|
87
88
|
children?: React.ReactNode;
|
|
@@ -90,15 +91,15 @@ declare const _default: {
|
|
|
90
91
|
[key: string]: React.ReactInstance;
|
|
91
92
|
};
|
|
92
93
|
componentDidMount?(): void;
|
|
93
|
-
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
|
|
94
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
94
95
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
95
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
|
|
96
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
96
97
|
componentWillMount?(): void;
|
|
97
98
|
UNSAFE_componentWillMount?(): void;
|
|
98
99
|
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
99
100
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
100
|
-
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
101
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
101
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
102
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
102
103
|
};
|
|
103
104
|
contextType?: React.Context<any> | undefined;
|
|
104
105
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
4
|
declare type Props = {
|
|
5
5
|
onCopyText: () => Promise<void>;
|
|
6
6
|
enableNestedHeaderLinks?: boolean;
|
|
7
7
|
level: number;
|
|
8
8
|
};
|
|
9
|
-
declare type HeadingAnchorProps = Props & React.Props<any> &
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
9
|
+
declare type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<HeadingAnchorProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Loadable from 'react-loadable';
|
|
2
3
|
import { Fragment, Node, Mark } from 'prosemirror-model';
|
|
3
4
|
import Blockquote from './blockquote';
|
|
4
5
|
import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
|
|
5
6
|
import BulletList from './bulletList';
|
|
6
|
-
import DecisionList from './decisionList';
|
|
7
7
|
import Doc, { DocWithSelectAllTrap } from './doc';
|
|
8
8
|
import Extension, { Props as ExtensionProps } from './extension';
|
|
9
9
|
import HardBreak from './hardBreak';
|
|
@@ -12,57 +12,81 @@ import InlineExtension, { Props as InlineExtensionProps } from './inlineExtensio
|
|
|
12
12
|
import LayoutSection from './layoutSection';
|
|
13
13
|
import LayoutColumn from './layoutColumn';
|
|
14
14
|
import ListItem from './listItem';
|
|
15
|
-
import MediaSingle from './mediaSingle';
|
|
16
15
|
import Caption from './caption';
|
|
17
16
|
import OrderedList from './orderedList';
|
|
18
|
-
import Panel from './panel';
|
|
19
17
|
import Paragraph from './paragraph';
|
|
20
18
|
import Placeholder from './placeholder';
|
|
21
19
|
import Rule from './rule';
|
|
22
|
-
import TaskList from './taskList';
|
|
23
20
|
import Table from './table';
|
|
24
21
|
import { TableCell } from './tableCell';
|
|
25
22
|
import TableRow from './tableRow';
|
|
26
23
|
import UnknownBlock from './unknownBlock';
|
|
27
|
-
|
|
28
|
-
import EmbedCard from './embedCard';
|
|
29
|
-
declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
24
|
+
declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
30
25
|
theme?: any;
|
|
31
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("./codeBlock").Props
|
|
26
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
32
27
|
theme?: any;
|
|
33
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("./codeBlock").Props
|
|
28
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
34
29
|
theme?: any;
|
|
35
|
-
} & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("./codeBlock").Props
|
|
30
|
+
} & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
36
31
|
theme?: any;
|
|
37
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("./codeBlock").Props
|
|
32
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
38
33
|
theme?: any;
|
|
39
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("./codeBlock").Props
|
|
34
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
40
35
|
theme?: any;
|
|
41
36
|
} & import("@atlaskit/theme").NoThemeProps), any>> & Loadable.LoadableComponent);
|
|
37
|
+
declare const TaskList: (React.ComponentClass<import("./taskList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./taskList").Props> & Loadable.LoadableComponent);
|
|
42
38
|
declare const TaskItem: (React.ComponentClass<import("../types").NodeProps<import("./taskItem").Props>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent);
|
|
39
|
+
declare const DecisionList: (React.ComponentClass<import("./decisionList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./decisionList").Props> & Loadable.LoadableComponent);
|
|
43
40
|
declare const DecisionItem: (React.ComponentClass<import("../types").NodeMeta, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeMeta> & Loadable.LoadableComponent);
|
|
44
|
-
declare const Date: (React.ComponentClass<import("./date").Props
|
|
41
|
+
declare const Date: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
45
42
|
declare const Status: (React.ComponentClass<import("./status").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./status").Props> & Loadable.LoadableComponent);
|
|
46
43
|
declare const Emoji: (React.ComponentClass<import("./emoji").EmojiProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./emoji").EmojiProps> & Loadable.LoadableComponent);
|
|
47
|
-
declare const
|
|
44
|
+
declare const Panel: (React.ComponentClass<import("./panel").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./panel").Props> & Loadable.LoadableComponent);
|
|
45
|
+
declare const EmbedCard: (React.ComponentClass<{
|
|
46
|
+
url?: string | undefined;
|
|
47
|
+
data?: object | undefined;
|
|
48
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
49
|
+
portal?: HTMLElement | undefined;
|
|
50
|
+
originalHeight?: number | undefined;
|
|
51
|
+
originalWidth?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
54
|
+
rendererAppearance?: import("../..").RendererAppearance;
|
|
55
|
+
isInsideOfBlockNode?: boolean | undefined;
|
|
56
|
+
allowDynamicTextSizing?: boolean | undefined;
|
|
57
|
+
}, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
|
|
58
|
+
url?: string | undefined;
|
|
59
|
+
data?: object | undefined;
|
|
60
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
61
|
+
portal?: HTMLElement | undefined;
|
|
62
|
+
originalHeight?: number | undefined;
|
|
63
|
+
originalWidth?: number | undefined;
|
|
64
|
+
width?: number | undefined;
|
|
65
|
+
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
66
|
+
rendererAppearance?: import("../..").RendererAppearance;
|
|
67
|
+
isInsideOfBlockNode?: boolean | undefined;
|
|
68
|
+
allowDynamicTextSizing?: boolean | undefined;
|
|
69
|
+
}> & Loadable.LoadableComponent);
|
|
70
|
+
declare const InlineCard: (React.ComponentClass<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">> & Loadable.LoadableComponent);
|
|
48
71
|
declare const BlockCard: (React.ComponentClass<{
|
|
49
72
|
url?: string | undefined;
|
|
50
73
|
data?: object | undefined;
|
|
51
|
-
eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
|
|
74
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
52
75
|
portal?: HTMLElement | undefined;
|
|
53
76
|
rendererAppearance?: import("../..").RendererAppearance;
|
|
54
77
|
}, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
|
|
55
78
|
url?: string | undefined;
|
|
56
79
|
data?: object | undefined;
|
|
57
|
-
eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
|
|
80
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
58
81
|
portal?: HTMLElement | undefined;
|
|
59
82
|
rendererAppearance?: import("../..").RendererAppearance;
|
|
60
83
|
}> & Loadable.LoadableComponent);
|
|
61
84
|
declare const Media: (React.ComponentClass<import("./media").MediaProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./media").MediaProps> & Loadable.LoadableComponent);
|
|
62
85
|
declare const MediaGroup: (React.ComponentClass<import("./mediaGroup").MediaGroupProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent);
|
|
63
86
|
declare const MediaInline: (React.ComponentClass<import("./mediaInline").MediaInlineProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent);
|
|
87
|
+
declare const MediaSingle: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
64
88
|
declare const Mention: (React.ComponentClass<import("./mention").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mention").Props> & Loadable.LoadableComponent);
|
|
65
|
-
declare const Expand: (React.ComponentClass<import("../../ui/Expand").ExpandProps
|
|
89
|
+
declare const Expand: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
66
90
|
export declare const nodeToReact: {
|
|
67
91
|
[key: string]: React.ComponentType<any>;
|
|
68
92
|
};
|