@atlaskit/renderer 128.3.5 → 128.3.6
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 +8 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/utils/inject-props.js +0 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/utils/inject-props.js +0 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/analytics/analyticsContext.d.ts +1 -1
- package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types/react/index.d.ts +1 -1
- package/dist/types/react/marks/code.d.ts +2 -2
- package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types/react/marks/data-consumer.d.ts +2 -2
- package/dist/types/react/marks/em.d.ts +1 -1
- package/dist/types/react/marks/fontSize.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 +1 -1
- package/dist/types/react/marks/strong.d.ts +1 -1
- package/dist/types/react/marks/subsup.d.ts +2 -2
- package/dist/types/react/marks/underline.d.ts +1 -1
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -1
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -1
- package/dist/types/react/nodes/caption.d.ts +1 -1
- package/dist/types/react/nodes/date.d.ts +2 -2
- package/dist/types/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +4 -4
- package/dist/types/react/nodes/extension.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +2 -2
- package/dist/types/react/nodes/inlineCard.d.ts +3 -7
- package/dist/types/react/nodes/mention.d.ts +1 -1
- package/dist/types/react/nodes/paragraph.d.ts +1 -1
- package/dist/types/react/nodes/status.d.ts +2 -2
- package/dist/types/react/nodes/table.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +3 -2
- package/dist/types/react/nodes/taskItem.d.ts +3 -2
- package/dist/types/react/nodes/taskList.d.ts +2 -1
- package/dist/types/react/utils/appearance.d.ts +1 -1
- package/dist/types/react/utils/inject-props.d.ts +1 -1
- package/dist/types/react/utils/links.d.ts +1 -1
- package/dist/types/react/utils/lists.d.ts +1 -1
- package/dist/types/render-document.d.ts +4 -4
- package/dist/types/serializer.d.ts +1 -1
- package/dist/types/text/index.d.ts +2 -2
- package/dist/types/text/nodes/blockquote.d.ts +1 -1
- package/dist/types/text/nodes/bulletList.d.ts +1 -1
- package/dist/types/text/nodes/date.d.ts +1 -1
- package/dist/types/text/nodes/decisionItem.d.ts +1 -1
- package/dist/types/text/nodes/hardBreak.d.ts +1 -1
- package/dist/types/text/nodes/heading.d.ts +1 -1
- package/dist/types/text/nodes/index.d.ts +1 -1
- package/dist/types/text/nodes/inlineCard.d.ts +1 -1
- package/dist/types/text/nodes/listItem.d.ts +1 -1
- package/dist/types/text/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/text/nodes/mention.d.ts +1 -1
- package/dist/types/text/nodes/orderedList.d.ts +1 -1
- package/dist/types/text/nodes/panel.d.ts +1 -1
- package/dist/types/text/nodes/paragraph.d.ts +1 -1
- package/dist/types/text/nodes/rule.d.ts +1 -1
- package/dist/types/text/nodes/status.d.ts +1 -1
- package/dist/types/text/nodes/table.d.ts +1 -1
- package/dist/types/text/nodes/taskItem.d.ts +1 -1
- package/dist/types/text/nodes/unknown.d.ts +1 -1
- package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +1 -1
- package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
- package/dist/types/ui/RendererActionsContext/index.d.ts +2 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/draft/position.d.ts +2 -1
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types/ui/annotations/index.d.ts +1 -1
- package/dist/types/ui/annotations/view/index.d.ts +1 -1
- package/dist/types/use-feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types-ts4.5/react/index.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/em.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/fontSize.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 +1 -1
- package/dist/types-ts4.5/react/marks/strong.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/underline.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/caption.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/extension.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +3 -7
- package/dist/types-ts4.5/react/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +3 -2
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -2
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -1
- package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/links.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/lists.d.ts +1 -1
- package/dist/types-ts4.5/render-document.d.ts +4 -4
- package/dist/types-ts4.5/serializer.d.ts +1 -1
- package/dist/types-ts4.5/text/index.d.ts +2 -2
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/heading.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/panel.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/rule.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +1 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -1
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +1 -1
- package/dist/types-ts4.5/use-feature-flags.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 128.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9245d3bb1916d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9245d3bb1916d) -
|
|
8
|
+
Mechanical type-import autofix for renderer.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 128.3.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "128.3.
|
|
74
|
+
var packageVersion = "128.3.5";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "128.3.
|
|
60
|
+
const packageVersion = "128.3.5";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "128.3.
|
|
65
|
+
var packageVersion = "128.3.5";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
|
|
2
2
|
import type { Fragment, Mark, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
4
4
|
import type { Serializer } from '../serializer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { MarkProps } from '../types';
|
|
5
5
|
export declare const isCodeMark: (mark: Mark) => boolean;
|
|
6
6
|
export declare function CodeWithIntl(props: MarkProps<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { DataConsumerAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MarkProps } from '../types';
|
|
4
4
|
export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MarkProps } from '../types';
|
|
4
4
|
export default function FontSize(props: MarkProps<FontSizeMarkAttrs>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { FragmentAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MarkProps } from '../types';
|
|
4
4
|
export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MarkProps } from '../types';
|
|
4
4
|
export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SubSupAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MarkProps } from '../types';
|
|
4
4
|
export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
4
4
|
export interface Props extends MarkDataAttributes {
|
|
5
5
|
parentIsIncompleteTask?: boolean;
|
|
6
6
|
timestamp: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
6
|
+
import type { EmojiAttributes } from '@atlaskit/adf-schema';
|
|
7
7
|
export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
|
|
8
8
|
allowTextFallback?: boolean;
|
|
9
9
|
fitToHeight?: number;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { RendererContext, ExtensionViewportSize } from '../types';
|
|
8
|
+
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
9
9
|
import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
|
-
import {
|
|
10
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
11
|
import type { OverflowShadowProps, OverflowShadowState, ShadowObserver } from '@atlaskit/editor-common/ui';
|
|
12
12
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
13
13
|
interface Props {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @jsxFrag
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { NodeProps } from '../types';
|
|
9
|
-
import {
|
|
9
|
+
import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
10
10
|
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
11
11
|
type HeadingProps = NodeProps<{
|
|
12
12
|
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type Context, type ErrorInfo, type JSX, type ReactInstance } from 'react';
|
|
6
|
-
import { type Mark } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Context, ErrorInfo, JSX, ReactInstance } from 'react';
|
|
2
|
+
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
7
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
8
4
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
9
5
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
10
|
-
import {
|
|
6
|
+
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
11
7
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
12
8
|
import type { AnalyticsEventPayload } from '../../analytics/events';
|
|
13
9
|
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import {
|
|
4
|
+
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
5
5
|
export interface Props extends MarkDataAttributes {
|
|
6
6
|
accessLevel?: string;
|
|
7
7
|
eventHandlers?: EventHandlers;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { Color } from '@atlaskit/status/element';
|
|
3
|
+
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
4
4
|
export interface Props extends MarkDataAttributes {
|
|
5
5
|
color: Color;
|
|
6
6
|
localId?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import {
|
|
4
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
7
7
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import {
|
|
4
|
+
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
5
|
interface Props {
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
contentRef?: ContentRef;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React, { PureComponent
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import {
|
|
4
|
+
import type { RendererContext, NodeProps } from '../types';
|
|
4
5
|
export interface Props {
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
2
2
|
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
|
|
3
3
|
export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
|
|
4
4
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
2
2
|
export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
|
|
3
3
|
export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getListIndentLevel(path: Node[]): number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { AnalyticsEventPayload } from './analytics/events';
|
|
5
|
+
import type { Serializer } from './serializer';
|
|
6
|
+
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export interface RenderOutput<T> {
|
|
8
8
|
pmDoc?: PMNode;
|
|
9
9
|
result: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Serializer } from '../serializer';
|
|
3
3
|
export default class TextSerializer implements Serializer<string> {
|
|
4
4
|
private schema;
|
|
5
5
|
constructor(schema: Schema);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type NodeReducer = (node: PMNode, schema: Schema) => string;
|
|
3
3
|
export declare const reduce: NodeReducer;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import {
|
|
6
|
+
import type { RendererWrapperProps } from './index';
|
|
7
7
|
export declare const textHighlightPaddingStyles: import("@emotion/utils").SerializedStyles;
|
|
8
8
|
type RendererStyleContainerProps = Pick<RendererWrapperProps, 'onClick' | 'onMouseDown' | 'appearance' | 'contentMode' | 'allowNestedHeaderLinks' | 'allowColumnSorting' | 'useBlockRenderForCodeBlock' | 'allowAnnotations' | 'allowTableResizing' | 'innerRef' | 'children' | 'allowRendererContainerStyles'> & {
|
|
9
9
|
testId?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
2
3
|
import RendererActions from '../../actions/index';
|
|
3
4
|
export declare const RendererContext: React.Context<RendererActions>;
|
|
4
5
|
type RendererActionsContextProps = PropsWithChildren<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
type TaskItemsDone = boolean | undefined;
|
|
3
4
|
type TaskItemsStateContext = [TaskItemsDone, React.Dispatch<TaskItemsFormatReducerAction>];
|
|
4
5
|
type TaskItemsFormatReducerAction = boolean | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
|
+
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
3
5
|
import type { AnnotationManager, ActionResult } from '@atlaskit/editor-common/annotation';
|
|
4
|
-
import {
|
|
6
|
+
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
5
7
|
interface AnnotationState {
|
|
6
8
|
id: AnnotationId;
|
|
7
9
|
markState: AnnotationMarkStates;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { InsertDraftPosition
|
|
1
|
+
import { InsertDraftPosition } from '../types';
|
|
2
|
+
import type { Position, TextPosition } from '../types';
|
|
2
3
|
export declare const calcInsertDraftPositionOnText: ({ start: startTextPosition, end: endTextPosition }: TextPosition, position: Position) => InsertDraftPosition | false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TextPosition, Position } from '../types';
|
|
3
3
|
export declare const findTextString: (reactNode: React.ReactNode) => string | null;
|
|
4
4
|
type Offset = {
|
|
5
5
|
endOffset: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
type MarkElementProps = React.PropsWithChildren<{
|
|
4
4
|
annotationParentIds: AnnotationId[];
|
|
5
5
|
annotationType: AnnotationTypes;
|