@atlaskit/renderer 112.12.2 → 112.12.3
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 +14 -0
- package/dist/cjs/react/nodes/table.js +6 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/table.js +6 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/table.js +6 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/marks/annotation.d.ts +2 -2
- package/dist/types/react/marks/backgroundColor.d.ts +2 -2
- package/dist/types/react/marks/code.d.ts +1 -1
- package/dist/types/react/marks/confluence-inline-comment.d.ts +2 -2
- package/dist/types/react/marks/data-consumer.d.ts +2 -2
- package/dist/types/react/marks/em.d.ts +2 -2
- package/dist/types/react/marks/fragment.d.ts +2 -2
- package/dist/types/react/marks/indentation.d.ts +2 -2
- package/dist/types/react/marks/strike.d.ts +2 -2
- package/dist/types/react/marks/strong.d.ts +2 -2
- package/dist/types/react/marks/subsup.d.ts +2 -2
- package/dist/types/react/marks/textColor.d.ts +2 -2
- package/dist/types/react/marks/underline.d.ts +2 -2
- package/dist/types/react/marks/unsupportedMark.d.ts +2 -2
- package/dist/types/react/marks/unsupportedNodeAttribute.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 +1 -1
- package/dist/types/react/nodes/caption.d.ts +2 -2
- package/dist/types/react/nodes/date.d.ts +1 -1
- package/dist/types/react/nodes/decisionItem.d.ts +2 -2
- package/dist/types/react/nodes/decisionList.d.ts +2 -2
- package/dist/types/react/nodes/doc.d.ts +3 -3
- package/dist/types/react/nodes/extension.d.ts +5 -6
- 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.d.ts +2 -2
- package/dist/types/react/nodes/inlineCard.d.ts +2 -2
- package/dist/types/react/nodes/inlineExtension.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/mediaGroup.d.ts +2 -2
- package/dist/types/react/nodes/orderedList.d.ts +1 -1
- package/dist/types/react/nodes/paragraph.d.ts +2 -2
- package/dist/types/react/nodes/placeholder.d.ts +2 -2
- package/dist/types/react/nodes/rule.d.ts +2 -2
- package/dist/types/react/nodes/table/colgroup.d.ts +2 -2
- package/dist/types/react/nodes/table/table.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +4 -4
- package/dist/types/react/nodes/tableCell.d.ts +3 -3
- package/dist/types/react/nodes/tableRow.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
- package/dist/types/react/nodes/taskItem.d.ts +2 -2
- package/dist/types/react/nodes/taskList.d.ts +2 -2
- package/dist/types/react/nodes/text-wrapper.d.ts +2 -1
- package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
- package/dist/types/react/utils/EditorMediaClientProvider.d.ts +1 -1
- package/dist/types/react/utils/render-text-segments.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +2 -2
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +2 -2
- package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
- package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types/ui/SmartCardStorage.d.ts +3 -3
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
- package/dist/types/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/index.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/view/index.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/annotation.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/code.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/em.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/strike.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/strong.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/textColor.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/underline.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.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 +1 -1
- package/dist/types-ts4.5/react/nodes/caption.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
- 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.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineExtension.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/mediaGroup.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/table.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +2 -2
- package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +2 -2
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +3 -3
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/context.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
- package/package.json +14 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 112.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110251](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110251)
|
|
8
|
+
[`b6adb9244b072`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6adb9244b072) -
|
|
9
|
+
[ux] Visual refresh of the EmbedCard component
|
|
10
|
+
- [#110634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110634)
|
|
11
|
+
[`62224d53da886`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/62224d53da886) -
|
|
12
|
+
[ux] [ED-26283] CSS Selector fix for table with shadows when there are nested tables. It will only
|
|
13
|
+
select direct children now and not descendants which prevents unnecessary shadow on parent table
|
|
14
|
+
when there is a nested table.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 112.12.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -592,7 +592,12 @@ var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Comp
|
|
|
592
592
|
}]);
|
|
593
593
|
}(_react.default.Component);
|
|
594
594
|
var TableWithShadows = (0, _ui.overflowShadow)(TableProcessor, {
|
|
595
|
-
|
|
595
|
+
/**
|
|
596
|
+
* The :scope is in reference to table container and we are selecting only
|
|
597
|
+
* direct children that match the table node wrapper selector, not their
|
|
598
|
+
* descendants.
|
|
599
|
+
*/
|
|
600
|
+
overflowSelector: ":scope > .".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER),
|
|
596
601
|
useShadowObserver: true
|
|
597
602
|
});
|
|
598
603
|
var TableWithWidth = function TableWithWidth(props) {
|
|
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
64
64
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
65
65
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
66
66
|
var packageName = "@atlaskit/renderer";
|
|
67
|
-
var packageVersion = "112.12.
|
|
67
|
+
var packageVersion = "112.12.3";
|
|
68
68
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size',
|
|
@@ -531,7 +531,12 @@ export class TableProcessor extends React.Component {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
const TableWithShadows = overflowShadow(TableProcessor, {
|
|
534
|
-
|
|
534
|
+
/**
|
|
535
|
+
* The :scope is in reference to table container and we are selecting only
|
|
536
|
+
* direct children that match the table node wrapper selector, not their
|
|
537
|
+
* descendants.
|
|
538
|
+
*/
|
|
539
|
+
overflowSelector: `:scope > .${TableSharedCssClassName.TABLE_NODE_WRAPPER}`,
|
|
535
540
|
useShadowObserver: true
|
|
536
541
|
});
|
|
537
542
|
const TableWithWidth = props => {
|
|
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
|
|
|
45
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
const packageName = "@atlaskit/renderer";
|
|
48
|
-
const packageVersion = "112.12.
|
|
48
|
+
const packageVersion = "112.12.3";
|
|
49
49
|
const setAsQueryContainerStyles = css({
|
|
50
50
|
containerName: 'ak-renderer-wrapper',
|
|
51
51
|
containerType: 'inline-size',
|
|
@@ -585,7 +585,12 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
585
585
|
}]);
|
|
586
586
|
}(React.Component);
|
|
587
587
|
var TableWithShadows = overflowShadow(TableProcessor, {
|
|
588
|
-
|
|
588
|
+
/**
|
|
589
|
+
* The :scope is in reference to table container and we are selecting only
|
|
590
|
+
* direct children that match the table node wrapper selector, not their
|
|
591
|
+
* descendants.
|
|
592
|
+
*/
|
|
593
|
+
overflowSelector: ":scope > .".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER),
|
|
589
594
|
useShadowObserver: true
|
|
590
595
|
});
|
|
591
596
|
var TableWithWidth = function TableWithWidth(props) {
|
|
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
|
|
|
54
54
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
55
55
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
var packageName = "@atlaskit/renderer";
|
|
57
|
-
var packageVersion = "112.12.
|
|
57
|
+
var packageVersion = "112.12.3";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { MarkProps, AnnotationMarkMeta } from '../types';
|
|
3
3
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
export declare const isAnnotationMark: (mark: Mark) => boolean;
|
|
5
|
-
declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => JSX.Element;
|
|
5
|
+
declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => React.JSX.Element;
|
|
6
6
|
export default AnnotationComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { TextColorAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
|
-
export default function BackgroundColor(props: MarkProps<TextColorAttributes>): JSX.Element;
|
|
4
|
+
export default function BackgroundColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
|
|
@@ -5,7 +5,7 @@ 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
|
-
}> & WrappedComponentProps): JSX.Element;
|
|
8
|
+
}> & WrappedComponentProps): React.JSX.Element;
|
|
9
9
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
11
|
} & import("../types").MarkMeta & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
3
|
interface Props {
|
|
4
4
|
reference: string;
|
|
5
5
|
}
|
|
6
6
|
export default class ConfluenceInlineComment extends Component<MarkProps<Props>, Object> {
|
|
7
|
-
render(): JSX.Element;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type DataConsumerAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { type MarkProps } from '../types';
|
|
4
|
-
export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): JSX.Element;
|
|
4
|
+
export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function Em(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function Em(props: MarkProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type FragmentAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { type MarkProps } from '../types';
|
|
4
|
-
export default function FragmentMark(props: MarkProps<FragmentAttributes>): JSX.Element;
|
|
4
|
+
export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type IndentationMarkAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { type MarkProps } from '../types';
|
|
4
|
-
export default function Indentation(props: MarkProps<IndentationMarkAttributes>): JSX.Element;
|
|
4
|
+
export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function Strike(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function Strike(props: MarkProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function Strong(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function Strong(props: MarkProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type SubSupAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { type MarkProps } from '../types';
|
|
4
|
-
export default function SubSup(props: MarkProps<SubSupAttributes>): JSX.Element;
|
|
4
|
+
export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { TextColorAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
|
-
export default function TextColor(props: MarkProps<TextColorAttributes>): JSX.Element;
|
|
4
|
+
export default function TextColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function Underline(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function Underline(props: MarkProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function UnsupportedMark(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function UnsupportedMark(props: MarkProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type MarkProps } from '../types';
|
|
3
|
-
export default function UnsupportedNodeAttribute(props: MarkProps): JSX.Element;
|
|
3
|
+
export default function UnsupportedNodeAttribute(props: MarkProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
2
|
+
export default function Blockquote(props: React.PropsWithChildren<unknown>): React.JSX.Element;
|
|
@@ -21,5 +21,5 @@ interface Props {
|
|
|
21
21
|
marks?: PMMark[];
|
|
22
22
|
startPos: number;
|
|
23
23
|
}
|
|
24
|
-
declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => JSX.Element;
|
|
24
|
+
declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
|
|
25
25
|
export default BodiedExtension;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type NodeProps } from '../types';
|
|
3
|
-
declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => JSX.Element;
|
|
3
|
+
declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => React.JSX.Element;
|
|
4
4
|
export default RenderCaption;
|
|
@@ -8,5 +8,5 @@ export interface Props extends MarkDataAttributes {
|
|
|
8
8
|
export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
10
10
|
};
|
|
11
|
-
declare function DateWithFormatContext(props: Props): JSX.Element;
|
|
11
|
+
declare function DateWithFormatContext(props: Props): React.JSX.Element;
|
|
12
12
|
export default DateWithFormatContext;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type NodeProps } from '../types';
|
|
3
|
-
export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
|
|
3
|
+
export default function DecisionItem({ children, dataAttributes }: NodeProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
export interface Props {
|
|
3
3
|
children?: JSX.Element | JSX.Element[];
|
|
4
4
|
}
|
|
5
5
|
export default class DecisionList extends PureComponent<Props, Object> {
|
|
6
|
-
render(): JSX.Element | null;
|
|
6
|
+
render(): React.JSX.Element | null;
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default function Doc(props: any): JSX.Element;
|
|
3
|
-
export declare function DocWithSelectAllTrap(props: any): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Doc(props: any): React.JSX.Element;
|
|
3
|
+
export declare function DocWithSelectAllTrap(props: any): React.JSX.Element;
|
|
@@ -24,7 +24,7 @@ type AllOrNone<T> = T | {
|
|
|
24
24
|
type RenderExtensionOptions = {
|
|
25
25
|
isTopLevel?: boolean;
|
|
26
26
|
} & AllOrNone<OverflowShadowProps>;
|
|
27
|
-
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => JSX.Element;
|
|
27
|
+
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => React.JSX.Element;
|
|
28
28
|
declare const _default: {
|
|
29
29
|
new (props: Props | Readonly<Props>): {
|
|
30
30
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -46,7 +46,7 @@ declare const _default: {
|
|
|
46
46
|
calcScrollableWidth: () => number;
|
|
47
47
|
handleContainer: (container: HTMLElement | null) => void;
|
|
48
48
|
initShadowObserver(): void;
|
|
49
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
50
|
context: unknown;
|
|
51
51
|
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(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;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -73,10 +73,9 @@ declare const _default: {
|
|
|
73
73
|
scrollable?: NodeList | undefined;
|
|
74
74
|
diff?: number | undefined;
|
|
75
75
|
state: {
|
|
76
|
-
showLeftShadow: boolean;
|
|
77
|
-
/** We keep rendering the default content */
|
|
76
|
+
showLeftShadow: boolean;
|
|
78
77
|
showRightShadow: boolean;
|
|
79
|
-
};
|
|
78
|
+
}; /** We keep rendering the default content */
|
|
80
79
|
componentWillUnmount(): void;
|
|
81
80
|
componentDidUpdate(): void;
|
|
82
81
|
handleScroll: (event: Event) => void;
|
|
@@ -86,7 +85,7 @@ declare const _default: {
|
|
|
86
85
|
calcScrollableWidth: () => number;
|
|
87
86
|
handleContainer: (container: HTMLElement | null) => void;
|
|
88
87
|
initShadowObserver(): void;
|
|
89
|
-
render(): JSX.Element;
|
|
88
|
+
render(): React.JSX.Element;
|
|
90
89
|
context: unknown;
|
|
91
90
|
setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(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;
|
|
92
91
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -18,7 +18,7 @@ export declare class CardErrorBoundary extends React.PureComponent<{
|
|
|
18
18
|
isError: boolean;
|
|
19
19
|
error: Error;
|
|
20
20
|
};
|
|
21
|
-
render(): string | number | boolean | React.
|
|
21
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
22
22
|
componentDidCatch(_error: Error): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
forceNewLine?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
|
|
5
|
+
declare const HardBreak: ({ forceNewLine }: Props) => React.JSX.Element;
|
|
6
6
|
export default HardBreak;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { type NodeProps } from '../types';
|
|
4
4
|
import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
@@ -10,5 +10,5 @@ declare function Heading(props: NodeProps<{
|
|
|
10
10
|
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
11
11
|
marks?: PMNode['marks'];
|
|
12
12
|
invisible?: boolean;
|
|
13
|
-
}>): JSX.Element;
|
|
13
|
+
}>): React.JSX.Element;
|
|
14
14
|
export default Heading;
|
|
@@ -14,7 +14,7 @@ export interface InlineCardProps extends MarkDataAttributes {
|
|
|
14
14
|
}
|
|
15
15
|
declare const _default: {
|
|
16
16
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): import("react").JSX.Element;
|
|
18
18
|
context: unknown;
|
|
19
19
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
20
20
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
38
|
};
|
|
39
39
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
40
|
-
render(): JSX.Element;
|
|
40
|
+
render(): import("react").JSX.Element;
|
|
41
41
|
context: unknown;
|
|
42
42
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
43
43
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from '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 @@ interface Props {
|
|
|
14
14
|
localId?: string;
|
|
15
15
|
marks?: PMMark[];
|
|
16
16
|
}
|
|
17
|
-
declare const InlineExtension: (props: Props) => JSX.Element;
|
|
17
|
+
declare const InlineExtension: (props: Props) => React.JSX.Element;
|
|
18
18
|
export default InlineExtension;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
2
|
+
export default function ListItem(props: React.PropsWithChildren<unknown>): React.JSX.Element;
|
|
@@ -19,12 +19,12 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
|
|
|
19
19
|
state: MediaGroupState;
|
|
20
20
|
private handleSize;
|
|
21
21
|
private handleScroll;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
24
24
|
renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
25
25
|
onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
|
|
26
26
|
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
27
|
-
renderStrip(): JSX.Element;
|
|
27
|
+
renderStrip(): React.JSX.Element;
|
|
28
28
|
private mapMediaPropsToIdentifier;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type NodeProps } from '../types';
|
|
3
|
-
export default function Paragraph({ children, dataAttributes }: NodeProps): JSX.Element;
|
|
3
|
+
export default function Paragraph({ children, dataAttributes }: NodeProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
text: string;
|
|
4
4
|
allowPlaceholderText?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export default function Placeholder(props: Props): JSX.Element;
|
|
6
|
+
export default function Placeholder(props: Props): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function Rule(): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Rule(): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { SharedTableProps } from './types';
|
|
3
|
-
export declare const Colgroup: (props: SharedTableProps) => JSX.Element | null;
|
|
3
|
+
export declare const Colgroup: (props: SharedTableProps) => React.JSX.Element | null;
|
|
@@ -4,5 +4,5 @@ type TableProps = SharedTableProps & {
|
|
|
4
4
|
innerRef?: React.RefObject<HTMLTableElement>;
|
|
5
5
|
children: React.ReactNode[];
|
|
6
6
|
};
|
|
7
|
-
export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, tableNode, rendererAppearance, isInsideOfBlockNode, isInsideOfTable, isinsideMultiBodiedExtension, allowTableResizing, }: TableProps) => JSX.Element>;
|
|
7
|
+
export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, tableNode, rendererAppearance, isInsideOfBlockNode, isInsideOfTable, isinsideMultiBodiedExtension, allowTableResizing, }: TableProps) => React.JSX.Element>;
|
|
8
8
|
export {};
|
|
@@ -50,7 +50,7 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
|
|
|
50
50
|
get pinTop(): number | undefined;
|
|
51
51
|
get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
|
|
52
52
|
get stickyTop(): number | undefined;
|
|
53
|
-
render(): JSX.Element;
|
|
53
|
+
render(): React.JSX.Element;
|
|
54
54
|
private grabFirstRowRef;
|
|
55
55
|
}
|
|
56
56
|
type TableProcessorState = {
|
|
@@ -60,7 +60,7 @@ export declare class TableProcessor extends React.Component<TableProps & Overflo
|
|
|
60
60
|
state: {
|
|
61
61
|
tableOrderStatus: undefined;
|
|
62
62
|
};
|
|
63
|
-
render(): JSX.Element | null;
|
|
63
|
+
render(): React.JSX.Element | null;
|
|
64
64
|
private addSortableColumn;
|
|
65
65
|
private changeSortOrder;
|
|
66
66
|
private addNumberColumnIndexes;
|
|
@@ -87,7 +87,7 @@ declare const _default: {
|
|
|
87
87
|
allowTableAlignment?: boolean | undefined;
|
|
88
88
|
allowTableResizing?: boolean | undefined;
|
|
89
89
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
|
|
90
|
-
render(): JSX.Element;
|
|
90
|
+
render(): React.JSX.Element;
|
|
91
91
|
context: unknown;
|
|
92
92
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
93
93
|
renderWidth?: number | undefined;
|
|
@@ -210,7 +210,7 @@ declare const _default: {
|
|
|
210
210
|
allowTableAlignment?: boolean | undefined;
|
|
211
211
|
allowTableResizing?: boolean | undefined;
|
|
212
212
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context: any): {
|
|
213
|
-
render(): JSX.Element;
|
|
213
|
+
render(): React.JSX.Element;
|
|
214
214
|
context: unknown;
|
|
215
215
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
216
216
|
renderWidth?: number | undefined;
|
|
@@ -18,7 +18,7 @@ export type CellWithSortingProps = CellProps & {
|
|
|
18
18
|
sortOrdered?: SortOrder;
|
|
19
19
|
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
20
20
|
};
|
|
21
|
-
export declare const withSortableColumn: (WrapperComponent: React.ElementType) => (props: CellWithSortingProps) => JSX.Element;
|
|
22
|
-
export declare const TableHeader: (props: CellWithSortingProps) => JSX.Element;
|
|
23
|
-
export declare const TableCell: (props: CellProps) => JSX.Element;
|
|
21
|
+
export declare const withSortableColumn: (WrapperComponent: React.ElementType) => (props: CellWithSortingProps) => React.JSX.Element;
|
|
22
|
+
export declare const TableHeader: (props: CellWithSortingProps) => React.JSX.Element;
|
|
23
|
+
export declare const TableCell: (props: CellProps) => React.JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -19,6 +19,6 @@ export default class TableRow extends React.Component<Props, State> {
|
|
|
19
19
|
state: State;
|
|
20
20
|
addSortableColumn: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
21
21
|
addColGroupWidth: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { type ContentRef, type TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
4
|
interface Props {
|
|
@@ -17,5 +17,5 @@ interface Props {
|
|
|
17
17
|
[key: string]: string | number;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
export default function TaskItemWithProviders(props: Props): JSX.Element;
|
|
20
|
+
export default function TaskItemWithProviders(props: Props): React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent, type ReactNode } from 'react';
|
|
1
|
+
import React, { PureComponent, type ReactNode } from 'react';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { type RendererContext, type NodeProps } from '../types';
|
|
4
4
|
export interface Props {
|
|
@@ -14,5 +14,5 @@ export default class TaskItem extends PureComponent<NodeProps<Props>, Object> {
|
|
|
14
14
|
constructor(props: NodeProps<Props>);
|
|
15
15
|
componentWillUnmount(): void;
|
|
16
16
|
private renderWithProvider;
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PureComponent, type ReactNode } from 'react';
|
|
1
|
+
import React, { PureComponent, type ReactNode } from 'react';
|
|
2
2
|
export interface Props {
|
|
3
3
|
localId?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export default class TaskList extends PureComponent<Props, Object> {
|
|
7
|
-
render(): JSX.Element | null;
|
|
7
|
+
render(): React.JSX.Element | null;
|
|
8
8
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { TextHighlighter } from '../types';
|
|
3
4
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
type Props = {
|
|
@@ -8,5 +9,5 @@ type Props = {
|
|
|
8
9
|
textHighlighter?: TextHighlighter;
|
|
9
10
|
marks?: readonly Mark[];
|
|
10
11
|
};
|
|
11
|
-
declare const TextWrapper: (props: Props) => JSX.Element | null;
|
|
12
|
+
declare const TextWrapper: (props: Props) => React.JSX.Element | null;
|
|
12
13
|
export default TextWrapper;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function UnknownBlock(props: React.PropsWithChildren<unknown>): JSX.Element;
|
|
2
|
+
export default function UnknownBlock(props: React.PropsWithChildren<unknown>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { TextSegment } from './segment-text';
|
|
4
4
|
import type { TextHighlighter } from '../types';
|
|
5
|
-
export declare function renderTextSegments(segments: Array<TextSegment>, textHighlighter: TextHighlighter | undefined, marksList: readonly Mark[], startPos: number): string | JSX.Element;
|
|
5
|
+
export declare function renderTextSegments(segments: Array<TextSegment>, textHighlighter: TextHighlighter | undefined, marksList: readonly Mark[], startPos: number): string | React.JSX.Element;
|