@atlaskit/renderer 109.7.0 → 109.7.1
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 +6 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -4
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/marks/index.d.ts +2 -2
- package/dist/types/react/nodes/blockquote.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
- package/dist/types/react/nodes/bulletList.d.ts +3 -3
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +2 -3
- package/dist/types/react/nodes/extensionFrame.d.ts +2 -1
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/react/nodes/hardBreak.d.ts +2 -2
- package/dist/types/react/nodes/heading-anchor.d.ts +2 -9
- package/dist/types/react/nodes/index.d.ts +2 -2
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/react/nodes/layoutColumn.d.ts +2 -2
- package/dist/types/react/nodes/layoutSection.d.ts +1 -1
- package/dist/types/react/nodes/listItem.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +2 -3
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
- package/dist/types/react/utils/EditorMediaClientProvider.d.ts +4 -4
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -0
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +2 -1
- package/dist/types/ui/Renderer/types.d.ts +1 -1
- package/dist/types/ui/SmartCardStorage.d.ts +2 -2
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/draft/component.d.ts +4 -3
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +2 -1
- package/dist/types/ui/annotations/index.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +2 -2
- package/dist/types/ui/annotations/selection/range-validator.d.ts +2 -2
- package/dist/types/ui/annotations/view/index.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/index.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/blockquote.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 +3 -3
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +2 -3
- package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +2 -9
- package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +2 -3
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +4 -4
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -0
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +2 -1
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/context.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +4 -3
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +2 -1
- package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#78877](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78877) [`e5ca78a1788d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e5ca78a1788d) - Upgrade @atlaskit/renderer types to be React 18 compatible
|
|
8
|
+
|
|
3
9
|
## 109.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
9
|
var _react = require("@emotion/react");
|
|
11
|
-
var _react2 =
|
|
10
|
+
var _react2 = require("react");
|
|
12
11
|
var _reactIntlNext = require("react-intl-next");
|
|
13
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
13
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
@@ -17,8 +16,6 @@ var _clipboard = require("../../../utils/clipboard");
|
|
|
17
16
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
17
|
var _enums = require("../../../../analytics/enums");
|
|
19
18
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
19
|
/** @jsx jsx */
|
|
23
20
|
|
|
24
21
|
var CopyButton = function CopyButton(_ref) {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var _react2 = _interopRequireDefault(require("react"));
|
|
10
9
|
var _reactIntlNext = require("react-intl-next");
|
|
11
10
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
55
55
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "109.7.
|
|
58
|
+
var packageVersion = "109.7.1";
|
|
59
59
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import
|
|
3
|
+
import { useState } from 'react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
36
36
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
37
37
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
38
38
|
const packageName = "@atlaskit/renderer";
|
|
39
|
-
const packageVersion = "109.7.
|
|
39
|
+
const packageVersion = "109.7.1";
|
|
40
40
|
export class Renderer extends PureComponent {
|
|
41
41
|
constructor(props) {
|
|
42
42
|
super(props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import
|
|
4
|
+
import { useState } from 'react';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
46
46
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
47
47
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
48
48
|
var packageName = "@atlaskit/renderer";
|
|
49
|
-
var packageVersion = "109.7.
|
|
49
|
+
var packageVersion = "109.7.1";
|
|
50
50
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
51
51
|
_inherits(Renderer, _PureComponent);
|
|
52
52
|
var _super = _createSuper(Renderer);
|
|
@@ -16,7 +16,7 @@ import FragmentMark from './fragment';
|
|
|
16
16
|
import Annotation, { isAnnotationMark } from './annotation';
|
|
17
17
|
import Border from './border';
|
|
18
18
|
export declare const markToReact: {
|
|
19
|
-
[key: string]: ComponentType<any
|
|
19
|
+
[key: string]: ComponentType<React.PropsWithChildren<any>>;
|
|
20
20
|
};
|
|
21
|
-
export declare const toReact: (mark: Mark) => ComponentType<any
|
|
21
|
+
export declare const toReact: (mark: Mark) => ComponentType<React.PropsWithChildren<any>>;
|
|
22
22
|
export { Code, Em, Link, Strike, Strong, Subsup, TextColor, Underline, Breakout, Annotation, Border, UnsupportedMark, isAnnotationMark, UnsupportedNodeAttribute, DataConsumer, FragmentMark, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function Blockquote(props: React.
|
|
2
|
+
export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export default function BulletList(props: {
|
|
2
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
export default function BulletList(props: React.PropsWithChildren<{
|
|
4
4
|
path?: Node[];
|
|
5
|
-
}
|
|
5
|
+
}>): JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
type Props = {
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default:
|
|
7
|
-
WrappedComponent:
|
|
6
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
7
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
3
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
3
|
type Props = {
|
|
5
4
|
setWrapLongLines: Dispatch<SetStateAction<boolean>>;
|
|
6
5
|
wrapLongLines?: boolean;
|
|
7
6
|
};
|
|
8
|
-
declare const _default:
|
|
9
|
-
WrappedComponent:
|
|
7
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
8
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
10
9
|
};
|
|
11
10
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import type { RendererContext } from '../types';
|
|
@@ -20,5 +21,5 @@ export interface Props {
|
|
|
20
21
|
layout?: ExtensionLayout;
|
|
21
22
|
localId?: string;
|
|
22
23
|
}
|
|
23
|
-
declare const ExtensionFrame: React.
|
|
24
|
+
declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
24
25
|
export default ExtensionFrame;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type CardErrorBoundaryProps = {
|
|
3
|
-
unsupportedComponent: React.ComponentType
|
|
3
|
+
unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
4
4
|
};
|
|
5
5
|
export declare class CardErrorBoundary extends React.PureComponent<{
|
|
6
6
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface Props {
|
|
3
3
|
forceNewLine?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const HardBreak:
|
|
5
|
+
declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
|
|
6
6
|
export default HardBreak;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
enableNestedHeaderLinks?: boolean;
|
|
7
|
-
level: number;
|
|
8
|
-
};
|
|
9
|
-
type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<HeadingAnchorProps>;
|
|
3
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<any>> & {
|
|
4
|
+
WrappedComponent: React.ComponentType<any>;
|
|
12
5
|
};
|
|
13
6
|
export default _default;
|
|
@@ -71,13 +71,13 @@ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithInt
|
|
|
71
71
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
72
72
|
declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
73
73
|
export declare const nodeToReact: {
|
|
74
|
-
[key: string]: React.ComponentType<any
|
|
74
|
+
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
75
75
|
};
|
|
76
76
|
export interface ToReactFlags {
|
|
77
77
|
allowSelectAllTrap?: boolean;
|
|
78
78
|
allowWindowedCodeBlock?: boolean;
|
|
79
79
|
}
|
|
80
|
-
export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<any
|
|
80
|
+
export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<React.PropsWithChildren<any>>;
|
|
81
81
|
export interface TextWrapper {
|
|
82
82
|
type: {
|
|
83
83
|
name: 'textWrapper';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { RendererContext } from '../types';
|
|
3
3
|
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
@@ -14,5 +14,5 @@ export interface Props {
|
|
|
14
14
|
localId?: string;
|
|
15
15
|
marks?: PMMark[];
|
|
16
16
|
}
|
|
17
|
-
declare const InlineExtension:
|
|
17
|
+
declare const InlineExtension: (props: Props) => JSX.Element;
|
|
18
18
|
export default InlineExtension;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
export default function LayoutSection(props: {
|
|
4
|
+
export default function LayoutSection(props: React.PropsWithChildren<{
|
|
5
5
|
width?: number;
|
|
6
|
-
}
|
|
6
|
+
}>): jsx.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function LayoutSection(props: React.
|
|
2
|
+
export default function LayoutSection(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function ListItem(props: React.
|
|
2
|
+
export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -3,7 +3,6 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { FileIdentifier } from '@atlaskit/media-client';
|
|
5
5
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
|
-
import type { FC } from 'react';
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
9
8
|
import type { ClipboardAttrs } from '../../ui/MediaCard';
|
|
@@ -32,8 +31,8 @@ export type MediaInlineProps = {
|
|
|
32
31
|
marks?: Array<Mark>;
|
|
33
32
|
ssr?: MediaSSR;
|
|
34
33
|
};
|
|
35
|
-
export declare const RenderMediaInline:
|
|
36
|
-
declare const _default: FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
34
|
+
export declare const RenderMediaInline: ({ rendererAppearance, clipboardAttrs, collection: collectionName, eventHandlers, identifier, }: RenderMediaInlineProps) => JSX.Element;
|
|
35
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
37
36
|
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
|
|
38
37
|
};
|
|
39
38
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import type { RendererContext } from '../types';
|
|
@@ -21,5 +22,5 @@ export interface Props {
|
|
|
21
22
|
localId?: string;
|
|
22
23
|
marks?: PMMark[];
|
|
23
24
|
}
|
|
24
|
-
declare const MultiBodiedExtension: React.
|
|
25
|
+
declare const MultiBodiedExtension: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
25
26
|
export default MultiBodiedExtension;
|
|
@@ -13,7 +13,7 @@ interface FixedProps {
|
|
|
13
13
|
mode: StickyMode;
|
|
14
14
|
rendererAppearance: RendererAppearance;
|
|
15
15
|
}
|
|
16
|
-
export declare const FixedTableDiv: React.
|
|
16
|
+
export declare const FixedTableDiv: (props: React.PropsWithChildren<FixedProps>) => jsx.JSX.Element;
|
|
17
17
|
export type StickyTableProps = {
|
|
18
18
|
left?: number;
|
|
19
19
|
top?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function UnknownBlock(props: React.
|
|
2
|
+
export default function UnknownBlock(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { MediaSSR } from '../../types/mediaOptions';
|
|
3
|
-
export declare const EditorMediaClientProvider:
|
|
4
|
-
ssr?: MediaSSR;
|
|
5
|
-
}
|
|
3
|
+
export declare const EditorMediaClientProvider: ({ children, ssr, }: React.PropsWithChildren<{
|
|
4
|
+
ssr?: MediaSSR | undefined;
|
|
5
|
+
}>) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { ComponentCrashErrorAEP } from '../../analytics/events';
|
|
4
4
|
interface ErrorBoundaryProps {
|
|
5
5
|
component: ComponentCrashErrorAEP['actionSubject'];
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
componentId?: ComponentCrashErrorAEP['actionSubjectId'];
|
|
7
8
|
fallbackComponent?: React.ReactNode;
|
|
8
9
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
@@ -5,8 +5,9 @@ export interface TruncatedWrapperProps {
|
|
|
5
5
|
height?: number;
|
|
6
6
|
fadeHeight?: number;
|
|
7
7
|
backgroundColor?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
|
-
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps,
|
|
10
|
+
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, unknown> {
|
|
10
11
|
constructor(props: TruncatedWrapperProps);
|
|
11
12
|
render(): jsx.JSX.Element;
|
|
12
13
|
}
|
|
@@ -11,6 +11,6 @@ export type HeadingAnchorLinksConfig = {
|
|
|
11
11
|
allowNestedHeaderLinks?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export type NodeComponentsProps = {
|
|
14
|
-
[key: string]: React.ComponentType<any
|
|
14
|
+
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
15
15
|
};
|
|
16
16
|
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
@@ -4,8 +4,8 @@ export interface WithSmartCardStorageProps {
|
|
|
4
4
|
smartCardStorage: Map<string, string>;
|
|
5
5
|
}
|
|
6
6
|
export declare const Context: React.Context<Map<string, string>>;
|
|
7
|
-
export declare const Provider: React.
|
|
8
|
-
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props
|
|
7
|
+
export declare const Provider: ({ children, }: React.PropsWithChildren<unknown>) => JSX.Element;
|
|
8
|
+
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
|
|
9
9
|
new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
10
|
render(): JSX.Element;
|
|
11
11
|
context: any;
|
|
@@ -6,7 +6,7 @@ type ChildrenProps = {
|
|
|
6
6
|
applyAnnotationDraftAt: (position: Position) => void;
|
|
7
7
|
clearAnnotationDraft: () => void;
|
|
8
8
|
};
|
|
9
|
-
export type RenderCallbackType = React.
|
|
9
|
+
export type RenderCallbackType = (props: React.PropsWithChildren<ChildrenProps>) => React.ReactNode;
|
|
10
10
|
type Props = {
|
|
11
11
|
children: RenderCallbackType;
|
|
12
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
4
5
|
import type { Position } from '../types';
|
|
5
6
|
import { InsertDraftPosition } from '../types';
|
|
6
|
-
export declare const AnnotationDraft: React.
|
|
7
|
+
export declare const AnnotationDraft: ({ draftPosition, children, }: React.PropsWithChildren<{
|
|
7
8
|
draftPosition: Position;
|
|
8
|
-
}
|
|
9
|
+
}>) => jsx.JSX.Element;
|
|
9
10
|
type ApplyAnnotationsProps = {
|
|
10
11
|
texts: string[];
|
|
11
12
|
shouldApplyAnnotationAt: InsertDraftPosition.INSIDE | InsertDraftPosition.START | InsertDraftPosition.END;
|
|
@@ -18,5 +19,5 @@ type Props = {
|
|
|
18
19
|
endPos: number;
|
|
19
20
|
children: ReactNode;
|
|
20
21
|
};
|
|
21
|
-
export declare const TextWithAnnotationDraft:
|
|
22
|
+
export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, }: Props) => jsx.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -6,5 +6,5 @@ type MarkElementProps = {
|
|
|
6
6
|
dataAttributes: AnnotationDataAttributes;
|
|
7
7
|
annotationType: AnnotationTypes;
|
|
8
8
|
};
|
|
9
|
-
declare const MarkElement: React.
|
|
9
|
+
declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: React.PropsWithChildren<MarkElementProps>) => JSX.Element;
|
|
10
10
|
export { MarkElement };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
|
|
4
5
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
@@ -10,5 +11,5 @@ type MarkComponentProps = {
|
|
|
10
11
|
hasFocus: boolean;
|
|
11
12
|
onClick: (props: OnAnnotationClickPayload) => void;
|
|
12
13
|
};
|
|
13
|
-
export declare const MarkComponent: React.
|
|
14
|
+
export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: React.PropsWithChildren<MarkComponentProps>) => jsx.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnnotationsWrapperProps } from './types';
|
|
3
|
-
export declare const AnnotationsWrapper: React.
|
|
3
|
+
export declare const AnnotationsWrapper: (props: React.PropsWithChildren<AnnotationsWrapperProps>) => JSX.Element;
|
|
4
4
|
export { TextWithAnnotationDraft } from './draft';
|
|
5
5
|
export { MarkElement as AnnotationMark } from './element';
|
|
@@ -5,7 +5,7 @@ import { Position } from '../types';
|
|
|
5
5
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
6
|
type Props = {
|
|
7
7
|
range: Range;
|
|
8
|
-
component: React.ComponentType<InlineCommentSelectionComponentProps
|
|
8
|
+
component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
|
|
9
9
|
wrapperDOM: React.RefObject<HTMLDivElement>;
|
|
10
10
|
documentPosition: Position | false;
|
|
11
11
|
isAnnotationAllowed: boolean;
|
|
@@ -16,5 +16,5 @@ type Props = {
|
|
|
16
16
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
17
17
|
generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
|
|
18
18
|
};
|
|
19
|
-
export declare const SelectionInlineCommentMounter: React.
|
|
19
|
+
export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => JSX.Element>;
|
|
20
20
|
export {};
|
|
@@ -3,11 +3,11 @@ import { Position } from '../types';
|
|
|
3
3
|
import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
type Props = {
|
|
6
|
-
selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps
|
|
6
|
+
selectionComponent: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
|
|
7
7
|
rendererRef: React.RefObject<HTMLDivElement>;
|
|
8
8
|
applyAnnotationDraftAt: (position: Position) => void;
|
|
9
9
|
clearAnnotationDraft: () => void;
|
|
10
10
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
11
11
|
};
|
|
12
|
-
export declare const SelectionRangeValidator:
|
|
12
|
+
export declare const SelectionRangeValidator: (props: Props) => JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
type Props = {
|
|
4
4
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
5
5
|
};
|
|
6
|
-
declare const AnnotationView:
|
|
6
|
+
declare const AnnotationView: (props: Props) => JSX.Element | null;
|
|
7
7
|
export { AnnotationView };
|
|
@@ -16,7 +16,7 @@ import FragmentMark from './fragment';
|
|
|
16
16
|
import Annotation, { isAnnotationMark } from './annotation';
|
|
17
17
|
import Border from './border';
|
|
18
18
|
export declare const markToReact: {
|
|
19
|
-
[key: string]: ComponentType<any
|
|
19
|
+
[key: string]: ComponentType<React.PropsWithChildren<any>>;
|
|
20
20
|
};
|
|
21
|
-
export declare const toReact: (mark: Mark) => ComponentType<any
|
|
21
|
+
export declare const toReact: (mark: Mark) => ComponentType<React.PropsWithChildren<any>>;
|
|
22
22
|
export { Code, Em, Link, Strike, Strong, Subsup, TextColor, Underline, Breakout, Annotation, Border, UnsupportedMark, isAnnotationMark, UnsupportedNodeAttribute, DataConsumer, FragmentMark, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function Blockquote(props: React.
|
|
2
|
+
export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export default function BulletList(props: {
|
|
2
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
export default function BulletList(props: React.PropsWithChildren<{
|
|
4
4
|
path?: Node[];
|
|
5
|
-
}
|
|
5
|
+
}>): JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
type Props = {
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default:
|
|
7
|
-
WrappedComponent:
|
|
6
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
7
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
3
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
3
|
type Props = {
|
|
5
4
|
setWrapLongLines: Dispatch<SetStateAction<boolean>>;
|
|
6
5
|
wrapLongLines?: boolean;
|
|
7
6
|
};
|
|
8
|
-
declare const _default:
|
|
9
|
-
WrappedComponent:
|
|
7
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
8
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
10
9
|
};
|
|
11
10
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import type { RendererContext } from '../types';
|
|
@@ -20,5 +21,5 @@ export interface Props {
|
|
|
20
21
|
layout?: ExtensionLayout;
|
|
21
22
|
localId?: string;
|
|
22
23
|
}
|
|
23
|
-
declare const ExtensionFrame: React.
|
|
24
|
+
declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
24
25
|
export default ExtensionFrame;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type CardErrorBoundaryProps = {
|
|
3
|
-
unsupportedComponent: React.ComponentType
|
|
3
|
+
unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
4
4
|
};
|
|
5
5
|
export declare class CardErrorBoundary extends React.PureComponent<{
|
|
6
6
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface Props {
|
|
3
3
|
forceNewLine?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const HardBreak:
|
|
5
|
+
declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
|
|
6
6
|
export default HardBreak;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
enableNestedHeaderLinks?: boolean;
|
|
7
|
-
level: number;
|
|
8
|
-
};
|
|
9
|
-
type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<HeadingAnchorProps>;
|
|
3
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<any>> & {
|
|
4
|
+
WrappedComponent: React.ComponentType<any>;
|
|
12
5
|
};
|
|
13
6
|
export default _default;
|
|
@@ -71,13 +71,13 @@ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithInt
|
|
|
71
71
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
72
72
|
declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
73
73
|
export declare const nodeToReact: {
|
|
74
|
-
[key: string]: React.ComponentType<any
|
|
74
|
+
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
75
75
|
};
|
|
76
76
|
export interface ToReactFlags {
|
|
77
77
|
allowSelectAllTrap?: boolean;
|
|
78
78
|
allowWindowedCodeBlock?: boolean;
|
|
79
79
|
}
|
|
80
|
-
export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<any
|
|
80
|
+
export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<React.PropsWithChildren<any>>;
|
|
81
81
|
export interface TextWrapper {
|
|
82
82
|
type: {
|
|
83
83
|
name: 'textWrapper';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { RendererContext } from '../types';
|
|
3
3
|
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
@@ -14,5 +14,5 @@ export interface Props {
|
|
|
14
14
|
localId?: string;
|
|
15
15
|
marks?: PMMark[];
|
|
16
16
|
}
|
|
17
|
-
declare const InlineExtension:
|
|
17
|
+
declare const InlineExtension: (props: Props) => JSX.Element;
|
|
18
18
|
export default InlineExtension;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
export default function LayoutSection(props: {
|
|
4
|
+
export default function LayoutSection(props: React.PropsWithChildren<{
|
|
5
5
|
width?: number;
|
|
6
|
-
}
|
|
6
|
+
}>): jsx.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function LayoutSection(props: React.
|
|
2
|
+
export default function LayoutSection(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function ListItem(props: React.
|
|
2
|
+
export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -3,7 +3,6 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { FileIdentifier } from '@atlaskit/media-client';
|
|
5
5
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
|
-
import type { FC } from 'react';
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
9
8
|
import type { ClipboardAttrs } from '../../ui/MediaCard';
|
|
@@ -32,8 +31,8 @@ export type MediaInlineProps = {
|
|
|
32
31
|
marks?: Array<Mark>;
|
|
33
32
|
ssr?: MediaSSR;
|
|
34
33
|
};
|
|
35
|
-
export declare const RenderMediaInline:
|
|
36
|
-
declare const _default: FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
34
|
+
export declare const RenderMediaInline: ({ rendererAppearance, clipboardAttrs, collection: collectionName, eventHandlers, identifier, }: RenderMediaInlineProps) => JSX.Element;
|
|
35
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
37
36
|
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
|
|
38
37
|
};
|
|
39
38
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import type { RendererContext } from '../types';
|
|
@@ -21,5 +22,5 @@ export interface Props {
|
|
|
21
22
|
localId?: string;
|
|
22
23
|
marks?: PMMark[];
|
|
23
24
|
}
|
|
24
|
-
declare const MultiBodiedExtension: React.
|
|
25
|
+
declare const MultiBodiedExtension: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
25
26
|
export default MultiBodiedExtension;
|
|
@@ -13,7 +13,7 @@ interface FixedProps {
|
|
|
13
13
|
mode: StickyMode;
|
|
14
14
|
rendererAppearance: RendererAppearance;
|
|
15
15
|
}
|
|
16
|
-
export declare const FixedTableDiv: React.
|
|
16
|
+
export declare const FixedTableDiv: (props: React.PropsWithChildren<FixedProps>) => jsx.JSX.Element;
|
|
17
17
|
export type StickyTableProps = {
|
|
18
18
|
left?: number;
|
|
19
19
|
top?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function UnknownBlock(props: React.
|
|
2
|
+
export default function UnknownBlock(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { MediaSSR } from '../../types/mediaOptions';
|
|
3
|
-
export declare const EditorMediaClientProvider:
|
|
4
|
-
ssr?: MediaSSR;
|
|
5
|
-
}
|
|
3
|
+
export declare const EditorMediaClientProvider: ({ children, ssr, }: React.PropsWithChildren<{
|
|
4
|
+
ssr?: MediaSSR | undefined;
|
|
5
|
+
}>) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { ComponentCrashErrorAEP } from '../../analytics/events';
|
|
4
4
|
interface ErrorBoundaryProps {
|
|
5
5
|
component: ComponentCrashErrorAEP['actionSubject'];
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
componentId?: ComponentCrashErrorAEP['actionSubjectId'];
|
|
7
8
|
fallbackComponent?: React.ReactNode;
|
|
8
9
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
@@ -5,8 +5,9 @@ export interface TruncatedWrapperProps {
|
|
|
5
5
|
height?: number;
|
|
6
6
|
fadeHeight?: number;
|
|
7
7
|
backgroundColor?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
|
-
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps,
|
|
10
|
+
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, unknown> {
|
|
10
11
|
constructor(props: TruncatedWrapperProps);
|
|
11
12
|
render(): jsx.JSX.Element;
|
|
12
13
|
}
|
|
@@ -11,6 +11,6 @@ export type HeadingAnchorLinksConfig = {
|
|
|
11
11
|
allowNestedHeaderLinks?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export type NodeComponentsProps = {
|
|
14
|
-
[key: string]: React.ComponentType<any
|
|
14
|
+
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
15
15
|
};
|
|
16
16
|
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
@@ -4,8 +4,8 @@ export interface WithSmartCardStorageProps {
|
|
|
4
4
|
smartCardStorage: Map<string, string>;
|
|
5
5
|
}
|
|
6
6
|
export declare const Context: React.Context<Map<string, string>>;
|
|
7
|
-
export declare const Provider: React.
|
|
8
|
-
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props
|
|
7
|
+
export declare const Provider: ({ children, }: React.PropsWithChildren<unknown>) => JSX.Element;
|
|
8
|
+
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
|
|
9
9
|
new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
10
|
render(): JSX.Element;
|
|
11
11
|
context: any;
|
|
@@ -6,7 +6,7 @@ type ChildrenProps = {
|
|
|
6
6
|
applyAnnotationDraftAt: (position: Position) => void;
|
|
7
7
|
clearAnnotationDraft: () => void;
|
|
8
8
|
};
|
|
9
|
-
export type RenderCallbackType = React.
|
|
9
|
+
export type RenderCallbackType = (props: React.PropsWithChildren<ChildrenProps>) => React.ReactNode;
|
|
10
10
|
type Props = {
|
|
11
11
|
children: RenderCallbackType;
|
|
12
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
4
5
|
import type { Position } from '../types';
|
|
5
6
|
import { InsertDraftPosition } from '../types';
|
|
6
|
-
export declare const AnnotationDraft: React.
|
|
7
|
+
export declare const AnnotationDraft: ({ draftPosition, children, }: React.PropsWithChildren<{
|
|
7
8
|
draftPosition: Position;
|
|
8
|
-
}
|
|
9
|
+
}>) => jsx.JSX.Element;
|
|
9
10
|
type ApplyAnnotationsProps = {
|
|
10
11
|
texts: string[];
|
|
11
12
|
shouldApplyAnnotationAt: InsertDraftPosition.INSIDE | InsertDraftPosition.START | InsertDraftPosition.END;
|
|
@@ -18,5 +19,5 @@ type Props = {
|
|
|
18
19
|
endPos: number;
|
|
19
20
|
children: ReactNode;
|
|
20
21
|
};
|
|
21
|
-
export declare const TextWithAnnotationDraft:
|
|
22
|
+
export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, }: Props) => jsx.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -6,5 +6,5 @@ type MarkElementProps = {
|
|
|
6
6
|
dataAttributes: AnnotationDataAttributes;
|
|
7
7
|
annotationType: AnnotationTypes;
|
|
8
8
|
};
|
|
9
|
-
declare const MarkElement: React.
|
|
9
|
+
declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: React.PropsWithChildren<MarkElementProps>) => JSX.Element;
|
|
10
10
|
export { MarkElement };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
|
|
4
5
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
@@ -10,5 +11,5 @@ type MarkComponentProps = {
|
|
|
10
11
|
hasFocus: boolean;
|
|
11
12
|
onClick: (props: OnAnnotationClickPayload) => void;
|
|
12
13
|
};
|
|
13
|
-
export declare const MarkComponent: React.
|
|
14
|
+
export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: React.PropsWithChildren<MarkComponentProps>) => jsx.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnnotationsWrapperProps } from './types';
|
|
3
|
-
export declare const AnnotationsWrapper: React.
|
|
3
|
+
export declare const AnnotationsWrapper: (props: React.PropsWithChildren<AnnotationsWrapperProps>) => JSX.Element;
|
|
4
4
|
export { TextWithAnnotationDraft } from './draft';
|
|
5
5
|
export { MarkElement as AnnotationMark } from './element';
|
|
@@ -5,7 +5,7 @@ import { Position } from '../types';
|
|
|
5
5
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
6
|
type Props = {
|
|
7
7
|
range: Range;
|
|
8
|
-
component: React.ComponentType<InlineCommentSelectionComponentProps
|
|
8
|
+
component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
|
|
9
9
|
wrapperDOM: React.RefObject<HTMLDivElement>;
|
|
10
10
|
documentPosition: Position | false;
|
|
11
11
|
isAnnotationAllowed: boolean;
|
|
@@ -16,5 +16,5 @@ type Props = {
|
|
|
16
16
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
17
17
|
generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
|
|
18
18
|
};
|
|
19
|
-
export declare const SelectionInlineCommentMounter: React.
|
|
19
|
+
export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => JSX.Element>;
|
|
20
20
|
export {};
|
|
@@ -3,11 +3,11 @@ import { Position } from '../types';
|
|
|
3
3
|
import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
type Props = {
|
|
6
|
-
selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps
|
|
6
|
+
selectionComponent: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
|
|
7
7
|
rendererRef: React.RefObject<HTMLDivElement>;
|
|
8
8
|
applyAnnotationDraftAt: (position: Position) => void;
|
|
9
9
|
clearAnnotationDraft: () => void;
|
|
10
10
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
11
11
|
};
|
|
12
|
-
export declare const SelectionRangeValidator:
|
|
12
|
+
export declare const SelectionRangeValidator: (props: Props) => JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
type Props = {
|
|
4
4
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
5
5
|
};
|
|
6
|
-
declare const AnnotationView:
|
|
6
|
+
declare const AnnotationView: (props: Props) => JSX.Element | null;
|
|
7
7
|
export { AnnotationView };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.7.
|
|
3
|
+
"version": "109.7.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
45
45
|
"@atlaskit/media-common": "^11.0.0",
|
|
46
46
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
47
|
-
"@atlaskit/media-ui": "^25.
|
|
47
|
+
"@atlaskit/media-ui": "^25.4.0",
|
|
48
48
|
"@atlaskit/media-viewer": "^48.3.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
50
50
|
"@atlaskit/smart-card": "^26.48.0",
|