@atlaskit/renderer 120.5.0 → 120.5.2
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 +17 -0
- package/afm-cc/tsconfig.json +2 -2
- package/dist/cjs/react/nodes/inlineCard.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/inlineCard.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/inlineCard.js +2 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/actions/index.d.ts +2 -2
- package/dist/types/actions/matches-utils.d.ts +2 -2
- package/dist/types/analytics/events.d.ts +18 -18
- package/dist/types/analytics/unsupported-content.d.ts +2 -2
- package/dist/types/react/index.d.ts +32 -32
- package/dist/types/react/marks/link.d.ts +1 -1
- package/dist/types/react/nodes/blockCard.d.ts +4 -4
- package/dist/types/react/nodes/bodiedExtension.d.ts +9 -9
- package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +3 -3
- package/dist/types/react/nodes/date.d.ts +1 -1
- package/dist/types/react/nodes/embedCard.d.ts +6 -6
- package/dist/types/react/nodes/emoji.d.ts +2 -2
- package/dist/types/react/nodes/extension.d.ts +7 -7
- package/dist/types/react/nodes/extensionFrame.d.ts +8 -8
- package/dist/types/react/nodes/fallback.d.ts +3 -3
- package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types/react/nodes/heading.d.ts +4 -4
- package/dist/types/react/nodes/index.d.ts +18 -18
- package/dist/types/react/nodes/inlineCard.d.ts +3 -3
- package/dist/types/react/nodes/inlineExtension.d.ts +5 -5
- package/dist/types/react/nodes/media/index.d.ts +11 -11
- package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types/react/nodes/mediaSingle/index.d.ts +9 -9
- package/dist/types/react/nodes/mention.d.ts +3 -3
- package/dist/types/react/nodes/multiBodiedExtension/actions.d.ts +2 -2
- package/dist/types/react/nodes/multiBodiedExtension/context.d.ts +2 -2
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +8 -8
- package/dist/types/react/nodes/multiBodiedExtensionOld.d.ts +8 -8
- package/dist/types/react/nodes/orderedList.d.ts +3 -3
- package/dist/types/react/nodes/panel.d.ts +4 -4
- package/dist/types/react/nodes/placeholder.d.ts +1 -1
- package/dist/types/react/nodes/status.d.ts +1 -1
- package/dist/types/react/nodes/table/sticky.d.ts +11 -11
- package/dist/types/react/nodes/table/table.d.ts +2 -2
- package/dist/types/react/nodes/table/types.d.ts +6 -6
- package/dist/types/react/nodes/table.d.ts +6 -6
- package/dist/types/react/nodes/tableCell.d.ts +5 -5
- package/dist/types/react/nodes/tableNew.d.ts +5 -5
- package/dist/types/react/nodes/tableRow.d.ts +4 -4
- package/dist/types/react/nodes/task-item-with-providers.d.ts +9 -9
- package/dist/types/react/nodes/taskItem.d.ts +3 -3
- package/dist/types/react/nodes/taskList.d.ts +1 -1
- package/dist/types/react/nodes/text-wrapper.d.ts +3 -3
- package/dist/types/react/types.d.ts +29 -29
- package/dist/types/react/utils/segment-text.d.ts +3 -3
- package/dist/types/render-document.d.ts +2 -2
- package/dist/types/steps/index.d.ts +1 -1
- package/dist/types/types/i18n.d.ts +2 -2
- package/dist/types/types/mediaOptions.d.ts +3 -3
- package/dist/types/types/smartLinksOptions.d.ts +19 -19
- package/dist/types/ui/Expand.d.ts +2 -2
- package/dist/types/ui/ExtensionRenderer.d.ts +11 -11
- package/dist/types/ui/MediaCard.d.ts +18 -18
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +4 -4
- package/dist/types/ui/Renderer/ValidationContext.d.ts +1 -1
- package/dist/types/ui/Renderer/index.d.ts +12 -12
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +2 -2
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +15 -15
- package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +15 -15
- package/dist/types/ui/annotations/draft/component.d.ts +5 -5
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +2 -2
- package/dist/types/ui/annotations/element/mark.d.ts +2 -2
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -2
- package/dist/types/ui/annotations/hover/mounter.d.ts +6 -6
- package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +6 -6
- package/dist/types/ui/annotations/selection/range-validator.d.ts +2 -2
- package/dist/types/ui/annotations/types.d.ts +6 -6
- package/dist/types/ui/annotations/wrapper.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +62 -62
- package/dist/types-ts4.5/actions/index.d.ts +2 -2
- package/dist/types-ts4.5/actions/matches-utils.d.ts +2 -2
- package/dist/types-ts4.5/analytics/events.d.ts +18 -18
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +2 -2
- package/dist/types-ts4.5/react/index.d.ts +32 -32
- package/dist/types-ts4.5/react/marks/link.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +9 -9
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +6 -6
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/extension.d.ts +7 -7
- package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +8 -8
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/heading.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/index.d.ts +18 -18
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +5 -5
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +11 -11
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +9 -9
- package/dist/types-ts4.5/react/nodes/mention.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension/actions.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension/context.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +8 -8
- package/dist/types-ts4.5/react/nodes/multiBodiedExtensionOld.d.ts +8 -8
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/panel.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +11 -11
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +6 -6
- package/dist/types-ts4.5/react/nodes/table.d.ts +6 -6
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +5 -5
- package/dist/types-ts4.5/react/nodes/tableNew.d.ts +5 -5
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +9 -9
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +3 -3
- package/dist/types-ts4.5/react/types.d.ts +29 -29
- package/dist/types-ts4.5/react/utils/segment-text.d.ts +3 -3
- package/dist/types-ts4.5/render-document.d.ts +2 -2
- package/dist/types-ts4.5/steps/index.d.ts +1 -1
- package/dist/types-ts4.5/types/i18n.d.ts +2 -2
- package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -3
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +19 -19
- package/dist/types-ts4.5/ui/Expand.d.ts +2 -2
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +11 -11
- package/dist/types-ts4.5/ui/MediaCard.d.ts +18 -18
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +4 -4
- package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +12 -12
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +15 -15
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +15 -15
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +5 -5
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +6 -6
- package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +6 -6
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/types.d.ts +6 -6
- package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +1 -1
- package/dist/types-ts4.5/ui/renderer-props.d.ts +62 -62
- package/package.json +5 -6
|
@@ -19,58 +19,6 @@ interface RawObjectFeatureFlags {
|
|
|
19
19
|
['renderer-render-tracking']: string;
|
|
20
20
|
}
|
|
21
21
|
export interface RendererProps {
|
|
22
|
-
document: DocNode;
|
|
23
|
-
dataProviders?: ProviderFactory;
|
|
24
|
-
eventHandlers?: EventHandlers;
|
|
25
|
-
extensionHandlers?: ExtensionHandlers;
|
|
26
|
-
enableSsrInlineScripts?: boolean;
|
|
27
|
-
noOpSSRInlineScript?: boolean;
|
|
28
|
-
onComplete?: (stat: RenderOutputStat) => void;
|
|
29
|
-
onError?: (error: any) => void;
|
|
30
|
-
portal?: HTMLElement;
|
|
31
|
-
rendererContext?: RendererContext;
|
|
32
|
-
schema?: Schema;
|
|
33
|
-
appearance?: RendererAppearance;
|
|
34
|
-
adfStage?: ADFStage;
|
|
35
|
-
disableHeadingIDs?: boolean;
|
|
36
|
-
disableActions?: boolean;
|
|
37
|
-
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
38
|
-
allowPlaceholderText?: boolean;
|
|
39
|
-
maxHeight?: number;
|
|
40
|
-
fadeOutHeight?: number;
|
|
41
|
-
truncated?: boolean;
|
|
42
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
43
|
-
allowColumnSorting?: boolean;
|
|
44
|
-
shouldOpenMediaViewer?: boolean;
|
|
45
|
-
allowAltTextOnImages?: boolean;
|
|
46
|
-
stickyHeaders?: StickyHeaderProps;
|
|
47
|
-
media?: MediaOptions;
|
|
48
|
-
emojiResourceConfig?: EmojiResourceConfig;
|
|
49
|
-
smartLinks?: SmartLinksOptions;
|
|
50
|
-
extensionViewportSizes?: ExtensionViewportSize[];
|
|
51
|
-
getExtensionHeight?: GetPMNodeHeight;
|
|
52
|
-
allowAnnotations?: boolean;
|
|
53
|
-
annotationProvider?: AnnotationProviders | null;
|
|
54
|
-
innerRef?: React.RefObject<HTMLDivElement>;
|
|
55
|
-
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-3649 Internal documentation for deprecation (no external access)} This prop will be removed and set as default enabled, as the same flag on the Editor is also now default enabled. */
|
|
56
|
-
useSpecBasedValidator?: boolean;
|
|
57
|
-
allowCopyToClipboard?: boolean;
|
|
58
|
-
allowWrapCodeBlock?: boolean;
|
|
59
|
-
allowCustomPanels?: boolean;
|
|
60
|
-
analyticsEventSeverityTracking?: {
|
|
61
|
-
enabled: boolean;
|
|
62
|
-
severityNormalThreshold: number;
|
|
63
|
-
severityDegradedThreshold: number;
|
|
64
|
-
};
|
|
65
|
-
allowUgcScrubber?: boolean;
|
|
66
|
-
allowSelectAllTrap?: boolean;
|
|
67
|
-
unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
|
|
68
|
-
nodeComponents?: NodeComponentsProps;
|
|
69
|
-
isInsideOfInlineExtension?: boolean;
|
|
70
|
-
isTopLevelRenderer?: boolean;
|
|
71
|
-
includeNodesCountInStats?: boolean;
|
|
72
|
-
allowRendererContainerStyles?: boolean;
|
|
73
|
-
shouldRemoveEmptySpaceAroundContent?: boolean;
|
|
74
22
|
/**
|
|
75
23
|
* When enabled a trailing telepointer will be added to the rendered document
|
|
76
24
|
* following content updates.
|
|
@@ -81,18 +29,46 @@ export interface RendererProps {
|
|
|
81
29
|
* is updated as a result of a content update.
|
|
82
30
|
*/
|
|
83
31
|
addTelepointer?: boolean;
|
|
84
|
-
|
|
32
|
+
adfStage?: ADFStage;
|
|
33
|
+
allowAltTextOnImages?: boolean;
|
|
34
|
+
allowAnnotations?: boolean;
|
|
35
|
+
allowColumnSorting?: boolean;
|
|
36
|
+
allowCopyToClipboard?: boolean;
|
|
37
|
+
allowCustomPanels?: boolean;
|
|
38
|
+
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
39
|
+
allowPlaceholderText?: boolean;
|
|
40
|
+
allowRendererContainerStyles?: boolean;
|
|
41
|
+
allowSelectAllTrap?: boolean;
|
|
42
|
+
allowUgcScrubber?: boolean;
|
|
43
|
+
allowWrapCodeBlock?: boolean;
|
|
44
|
+
analyticsEventSeverityTracking?: {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
severityDegradedThreshold: number;
|
|
47
|
+
severityNormalThreshold: number;
|
|
48
|
+
};
|
|
49
|
+
annotationProvider?: AnnotationProviders | null;
|
|
50
|
+
appearance?: RendererAppearance;
|
|
51
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
85
52
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* Elements currently affected: Tables.
|
|
53
|
+
* Creates a new `Serializer` to transform the ADF `document` into `JSX.Element`.
|
|
54
|
+
* Allows Confluence to implement {@link https://hello.atlassian.net/wiki/spaces/~lmarinov/pages/5177285037/COMPLEXIT+Progressive+rendering+of+ADF progressive rendering}.
|
|
89
55
|
*/
|
|
90
|
-
|
|
56
|
+
createSerializer?(init: ReactSerializerInit): Serializer<JSX.Element> | null;
|
|
57
|
+
dataProviders?: ProviderFactory;
|
|
58
|
+
disableActions?: boolean;
|
|
59
|
+
disableHeadingIDs?: boolean;
|
|
91
60
|
/**
|
|
92
61
|
* When true, disables the overflow shadow (visual indication) on the edges
|
|
93
62
|
* of tables.
|
|
94
63
|
*/
|
|
95
64
|
disableTableOverflowShadow?: boolean;
|
|
65
|
+
document: DocNode;
|
|
66
|
+
emojiResourceConfig?: EmojiResourceConfig;
|
|
67
|
+
enableSsrInlineScripts?: boolean;
|
|
68
|
+
eventHandlers?: EventHandlers;
|
|
69
|
+
extensionHandlers?: ExtensionHandlers;
|
|
70
|
+
extensionViewportSizes?: ExtensionViewportSize[];
|
|
71
|
+
fadeOutHeight?: number;
|
|
96
72
|
/**
|
|
97
73
|
* @default undefined
|
|
98
74
|
* @description
|
|
@@ -124,14 +100,38 @@ export interface RendererProps {
|
|
|
124
100
|
featureFlags?: {
|
|
125
101
|
[featureFlag: string]: boolean;
|
|
126
102
|
} | Partial<RawObjectFeatureFlags>;
|
|
127
|
-
|
|
128
|
-
|
|
103
|
+
getExtensionHeight?: GetPMNodeHeight;
|
|
104
|
+
includeNodesCountInStats?: boolean;
|
|
105
|
+
innerRef?: React.RefObject<HTMLDivElement>;
|
|
106
|
+
isInsideOfInlineExtension?: boolean;
|
|
107
|
+
isTopLevelRenderer?: boolean;
|
|
108
|
+
maxHeight?: number;
|
|
109
|
+
media?: MediaOptions;
|
|
110
|
+
nodeComponents?: NodeComponentsProps;
|
|
111
|
+
noOpSSRInlineScript?: boolean;
|
|
112
|
+
onComplete?: (stat: RenderOutputStat) => void;
|
|
113
|
+
onError?: (error: any) => void;
|
|
114
|
+
portal?: HTMLElement;
|
|
115
|
+
rendererContext?: RendererContext;
|
|
116
|
+
schema?: Schema;
|
|
117
|
+
shouldOpenMediaViewer?: boolean;
|
|
118
|
+
shouldRemoveEmptySpaceAroundContent?: boolean;
|
|
119
|
+
smartLinks?: SmartLinksOptions;
|
|
120
|
+
stickyHeaders?: StickyHeaderProps;
|
|
121
|
+
textHighlighter?: TextHighlighter;
|
|
122
|
+
truncated?: boolean;
|
|
129
123
|
UNSTABLE_allowTableAlignment?: boolean;
|
|
130
124
|
UNSTABLE_allowTableResizing?: boolean;
|
|
131
125
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
126
|
+
* When true, elements may render without their default semantic roles
|
|
127
|
+
* (e.g., using role="presentation"), indicating that they are used solely for layout or styling purposes.
|
|
128
|
+
* Elements currently affected: Tables.
|
|
134
129
|
*/
|
|
135
|
-
|
|
130
|
+
UNSTABLE_isPresentational?: boolean;
|
|
131
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26490 Internal documentation for deprecation (no external access)} This prop has been marked stable and therefore replaced by the `textHighlighter` prop. Please use `textHighlighter` prop instead. */
|
|
132
|
+
UNSTABLE_textHighlighter?: TextHighlighter;
|
|
133
|
+
unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
|
|
134
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-3649 Internal documentation for deprecation (no external access)} This prop will be removed and set as default enabled, as the same flag on the Editor is also now default enabled. */
|
|
135
|
+
useSpecBasedValidator?: boolean;
|
|
136
136
|
}
|
|
137
137
|
export {};
|
|
@@ -6,8 +6,8 @@ import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
|
6
6
|
import { RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
7
|
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
8
8
|
type ActionResult = {
|
|
9
|
-
step: Step;
|
|
10
9
|
doc: JSONDocNode;
|
|
10
|
+
step: Step;
|
|
11
11
|
} | false;
|
|
12
12
|
type Position = {
|
|
13
13
|
from: number;
|
|
@@ -24,9 +24,9 @@ interface RendererActionsOptions {
|
|
|
24
24
|
}
|
|
25
25
|
export type ApplyAnnotation = (pos: Position, annotation: Annotation) => AnnotationActionResult;
|
|
26
26
|
interface AnnotationsRendererActionsOptions {
|
|
27
|
-
isValidAnnotationPosition: (pos: Position) => boolean;
|
|
28
27
|
applyAnnotation: ApplyAnnotation;
|
|
29
28
|
getAnnotationMarks: () => Mark[];
|
|
29
|
+
isValidAnnotationPosition: (pos: Position) => boolean;
|
|
30
30
|
}
|
|
31
31
|
interface PositionRendererActionsOptions {
|
|
32
32
|
getPositionFromRange: (range: Range) => Position | false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
|
|
3
|
-
|
|
3
|
+
blockNodePos?: number;
|
|
4
4
|
matchIndex: number;
|
|
5
|
+
numMatches: number;
|
|
5
6
|
textContent: string;
|
|
6
|
-
blockNodePos?: number;
|
|
7
7
|
};
|
|
8
8
|
export declare function countMatches(searchString: string, query: string): number;
|
|
@@ -15,40 +15,40 @@ type RendererStartAEP = AEP<ACTION.STARTED, ACTION_SUBJECT.RENDERER, undefined,
|
|
|
15
15
|
platform: PLATFORM.WEB;
|
|
16
16
|
}, EVENT_TYPE.UI>;
|
|
17
17
|
type RendererRenderedAEP = AEP<ACTION.RENDERED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
18
|
-
platform: PLATFORM.WEB;
|
|
19
|
-
duration: number;
|
|
20
18
|
distortedDuration: boolean;
|
|
21
|
-
|
|
19
|
+
duration: number;
|
|
22
20
|
nodes: Record<string, number>;
|
|
21
|
+
platform: PLATFORM.WEB;
|
|
23
22
|
severity?: SEVERITY;
|
|
23
|
+
ttfb?: number;
|
|
24
24
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
25
25
|
export type ComponentCrashErrorAEP = OperationalAEP<ACTION.CRASHED, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
26
|
-
platform: PLATFORM.WEB;
|
|
27
|
-
errorMessage?: string;
|
|
28
|
-
errorStack?: string;
|
|
29
26
|
componentStack?: string;
|
|
27
|
+
errorMessage?: string;
|
|
30
28
|
errorRethrown?: boolean;
|
|
29
|
+
errorStack?: string;
|
|
30
|
+
platform: PLATFORM.WEB;
|
|
31
31
|
}>;
|
|
32
32
|
export type ComponentCaughtDomErrorAEP = OperationalAEP<ACTION.CAUGHT_DOM_ERROR, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
33
33
|
errorMessage: string;
|
|
34
34
|
platform: PLATFORM.WEB;
|
|
35
35
|
}>;
|
|
36
36
|
type InvalidProsemirrorDocumentErrorAEP = AEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
37
|
-
platform: PLATFORM.WEB;
|
|
38
37
|
errorStack?: string;
|
|
38
|
+
platform: PLATFORM.WEB;
|
|
39
39
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
40
40
|
type RendererUnsupportedContentLevelsTrackingSucceeded = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
41
41
|
appearance?: string;
|
|
42
42
|
platform: PLATFORM.WEB;
|
|
43
|
-
|
|
43
|
+
supportedNodesCount: number;
|
|
44
44
|
unsupportedContentLevelPercentage: number;
|
|
45
|
+
unsupportedContentLevelSeverity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
|
|
45
46
|
unsupportedNodesCount: number;
|
|
46
|
-
supportedNodesCount: number;
|
|
47
47
|
unsupportedNodeTypeCount: Record<string, number>;
|
|
48
48
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
49
49
|
type RendererUnsupportedContentLevelsTrackingErrored = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
50
|
-
platform: PLATFORM.WEB;
|
|
51
50
|
error: string;
|
|
51
|
+
platform: PLATFORM.WEB;
|
|
52
52
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
53
53
|
type RendererSelectAllCaughtAEP = AEP<ACTION.SELECT_ALL_CAUGHT, ACTION_SUBJECT.RENDERER, undefined, {
|
|
54
54
|
platform: PLATFORM.WEB;
|
|
@@ -59,8 +59,8 @@ type RendererSelectAllEscapedAEP = AEP<ACTION.SELECT_ALL_ESCAPED, ACTION_SUBJECT
|
|
|
59
59
|
type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, EVENT_TYPE.UI>;
|
|
60
60
|
type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ActionSubjectID, Attributes>;
|
|
61
61
|
type AnchorLinkAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.ANCHOR_LINK, undefined, {
|
|
62
|
-
platform: PLATFORM.WEB;
|
|
63
62
|
mode: MODE.RENDERER;
|
|
63
|
+
platform: PLATFORM.WEB;
|
|
64
64
|
}>;
|
|
65
65
|
type CodeBlockCopyAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_COPY, undefined>;
|
|
66
66
|
type CodeBlockWrapAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_WRAP, {
|
|
@@ -68,27 +68,27 @@ type CodeBlockWrapAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_WRAP, {
|
|
|
68
68
|
}>;
|
|
69
69
|
type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
|
|
70
70
|
type TableSortColumnNotAllowedAEP = AEP<ACTION.SORT_COLUMN_NOT_ALLOWED, ACTION_SUBJECT.TABLE, undefined, {
|
|
71
|
-
platform: PLATFORM.WEB;
|
|
72
71
|
mode: MODE.RENDERER;
|
|
72
|
+
platform: PLATFORM.WEB;
|
|
73
73
|
}, EVENT_TYPE.TRACK>;
|
|
74
74
|
type TableSortColumnAEP = AEP<ACTION.SORT_COLUMN, ACTION_SUBJECT.TABLE, undefined, {
|
|
75
|
-
|
|
75
|
+
columnIndex: number;
|
|
76
76
|
mode: MODE.RENDERER;
|
|
77
|
+
platform: PLATFORM.WEB;
|
|
77
78
|
sortOrder: SortOrder;
|
|
78
|
-
columnIndex: number;
|
|
79
79
|
}, EVENT_TYPE.TRACK>;
|
|
80
80
|
type VisitLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.LINK, undefined, {
|
|
81
|
-
platform: PLATFORM.WEB;
|
|
82
81
|
mode: MODE.RENDERER;
|
|
82
|
+
platform: PLATFORM.WEB;
|
|
83
83
|
}, EVENT_TYPE.TRACK>;
|
|
84
84
|
type VisitMediaLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.LINK, {
|
|
85
|
-
platform: PLATFORM.WEB;
|
|
86
85
|
mode: MODE.RENDERER;
|
|
86
|
+
platform: PLATFORM.WEB;
|
|
87
87
|
}, EVENT_TYPE.TRACK>;
|
|
88
88
|
type ExpandAEP = AEP<ACTION.TOGGLE_EXPAND, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
89
|
-
platform: PLATFORM.WEB;
|
|
90
|
-
mode: MODE.RENDERER;
|
|
91
89
|
expanded: boolean;
|
|
90
|
+
mode: MODE.RENDERER;
|
|
91
|
+
platform: PLATFORM.WEB;
|
|
92
92
|
}, EVENT_TYPE.TRACK>;
|
|
93
93
|
type AnnotationActionType = ACTION.INSERTED | ACTION.CLOSED | ACTION.EDITED | ACTION.DELETED | ACTION.OPENED | ACTION.RESOLVED | ACTION.VIEWED | ACTION.CREATE_NOT_ALLOWED;
|
|
94
94
|
type AnnotationAEPAttributes = AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
|
|
@@ -2,9 +2,9 @@ import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/u
|
|
|
2
2
|
import type { AnalyticsEventPayload } from './events';
|
|
3
3
|
type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
4
4
|
type DocumentData = {
|
|
5
|
-
rendererId: string;
|
|
6
|
-
doc: any;
|
|
7
5
|
appearance?: string;
|
|
6
|
+
doc: any;
|
|
7
|
+
rendererId: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const trackUnsupportedContentLevels: (item: DocumentData, trackingOptions: UnsupportedContentLevelsTracking, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => void;
|
|
10
10
|
export {};
|
|
@@ -12,47 +12,47 @@ import type { MediaOptions } from '../types/mediaOptions';
|
|
|
12
12
|
import type { SmartLinksOptions } from '../types/smartLinksOptions';
|
|
13
13
|
import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
14
14
|
export interface ReactSerializerInit {
|
|
15
|
+
allowAltTextOnImages?: boolean;
|
|
16
|
+
allowAnnotations?: boolean;
|
|
17
|
+
allowColumnSorting?: boolean;
|
|
18
|
+
allowCopyToClipboard?: boolean;
|
|
19
|
+
allowCustomPanels?: boolean;
|
|
20
|
+
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
21
|
+
allowMediaLinking?: boolean;
|
|
22
|
+
allowPlaceholderText?: boolean;
|
|
23
|
+
allowSelectAllTrap?: boolean;
|
|
24
|
+
allowTableAlignment?: boolean;
|
|
25
|
+
allowTableResizing?: boolean;
|
|
26
|
+
allowWindowedCodeBlock?: boolean;
|
|
27
|
+
allowWrapCodeBlock?: boolean;
|
|
28
|
+
appearance?: RendererAppearance;
|
|
29
|
+
disableActions?: boolean;
|
|
30
|
+
disableHeadingIDs?: boolean;
|
|
31
|
+
disableTableOverflowShadow?: boolean;
|
|
32
|
+
emojiResourceConfig?: EmojiResourceConfig;
|
|
33
|
+
eventHandlers?: EventHandlers;
|
|
34
|
+
extensionHandlers?: ExtensionHandlers;
|
|
35
|
+
extensionViewportSizes?: ExtensionViewportSize[];
|
|
36
|
+
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
37
|
+
getExtensionHeight?: GetPMNodeHeight;
|
|
38
|
+
isInsideOfInlineExtension?: boolean;
|
|
39
|
+
isPresentational?: boolean;
|
|
40
|
+
media?: MediaOptions;
|
|
41
|
+
nodeComponents?: NodeComponentsProps;
|
|
42
|
+
objectContext?: RendererContext;
|
|
43
|
+
portal?: HTMLElement;
|
|
44
|
+
providers?: ProviderFactory;
|
|
45
|
+
shouldOpenMediaViewer?: boolean;
|
|
46
|
+
smartLinks?: SmartLinksOptions;
|
|
15
47
|
/**
|
|
16
48
|
* Used for to set positions on nodes for annotations.
|
|
17
49
|
*
|
|
18
50
|
* When not provided defaults to 1.
|
|
19
51
|
*/
|
|
20
52
|
startPos?: number;
|
|
21
|
-
providers?: ProviderFactory;
|
|
22
|
-
eventHandlers?: EventHandlers;
|
|
23
|
-
extensionHandlers?: ExtensionHandlers;
|
|
24
|
-
portal?: HTMLElement;
|
|
25
|
-
objectContext?: RendererContext;
|
|
26
|
-
appearance?: RendererAppearance;
|
|
27
|
-
disableHeadingIDs?: boolean;
|
|
28
|
-
disableActions?: boolean;
|
|
29
|
-
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
30
|
-
allowColumnSorting?: boolean;
|
|
31
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
32
|
-
shouldOpenMediaViewer?: boolean;
|
|
33
|
-
allowAltTextOnImages?: boolean;
|
|
34
53
|
stickyHeaders?: StickyHeaderConfig;
|
|
35
|
-
allowMediaLinking?: boolean;
|
|
36
54
|
surroundTextNodesWithTextWrapper?: boolean;
|
|
37
|
-
media?: MediaOptions;
|
|
38
|
-
emojiResourceConfig?: EmojiResourceConfig;
|
|
39
|
-
smartLinks?: SmartLinksOptions;
|
|
40
|
-
extensionViewportSizes?: ExtensionViewportSize[];
|
|
41
|
-
getExtensionHeight?: GetPMNodeHeight;
|
|
42
|
-
allowCopyToClipboard?: boolean;
|
|
43
|
-
allowWrapCodeBlock?: boolean;
|
|
44
|
-
allowPlaceholderText?: boolean;
|
|
45
|
-
allowCustomPanels?: boolean;
|
|
46
|
-
allowAnnotations?: boolean;
|
|
47
|
-
allowSelectAllTrap?: boolean;
|
|
48
|
-
nodeComponents?: NodeComponentsProps;
|
|
49
|
-
allowWindowedCodeBlock?: boolean;
|
|
50
|
-
isInsideOfInlineExtension?: boolean;
|
|
51
55
|
textHighlighter?: TextHighlighter;
|
|
52
|
-
allowTableAlignment?: boolean;
|
|
53
|
-
allowTableResizing?: boolean;
|
|
54
|
-
isPresentational?: boolean;
|
|
55
|
-
disableTableOverflowShadow?: boolean;
|
|
56
56
|
}
|
|
57
57
|
interface ParentInfo {
|
|
58
58
|
parentIsIncompleteTask: boolean;
|
|
@@ -2,8 +2,8 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { LinkAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
interface LinkProps extends LinkAttributes {
|
|
5
|
-
target?: string;
|
|
6
5
|
isMediaLink?: boolean;
|
|
6
|
+
target?: string;
|
|
7
7
|
}
|
|
8
8
|
export default function Link(props: MarkProps<LinkProps>): jsx.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -8,13 +8,13 @@ import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
|
8
8
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
9
9
|
import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/schema';
|
|
10
10
|
export default function BlockCard(props: {
|
|
11
|
-
url?: string;
|
|
12
11
|
data?: object;
|
|
13
|
-
eventHandlers?: EventHandlers;
|
|
14
12
|
datasource?: DatasourceAttributeProperties;
|
|
13
|
+
eventHandlers?: EventHandlers;
|
|
14
|
+
isNodeNested?: boolean;
|
|
15
|
+
layout?: string;
|
|
15
16
|
portal?: HTMLElement;
|
|
16
17
|
rendererAppearance?: RendererAppearance;
|
|
17
18
|
smartLinks?: SmartLinksOptions;
|
|
18
|
-
|
|
19
|
-
isNodeNested?: boolean;
|
|
19
|
+
url?: string;
|
|
20
20
|
}): jsx.JSX.Element;
|
|
@@ -6,21 +6,21 @@ import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
|
6
6
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
7
7
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
interface Props {
|
|
9
|
-
|
|
9
|
+
content?: any;
|
|
10
10
|
extensionHandlers?: ExtensionHandlers;
|
|
11
|
-
rendererContext: RendererContext;
|
|
12
|
-
providers: ProviderFactory;
|
|
13
|
-
extensionType: string;
|
|
14
11
|
extensionKey: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
parameters?: any;
|
|
18
|
-
content?: any;
|
|
12
|
+
extensionType: string;
|
|
13
|
+
extensionViewportSizes?: ExtensionViewportSize[];
|
|
19
14
|
layout?: ExtensionLayout;
|
|
20
15
|
localId?: string;
|
|
21
16
|
marks?: PMMark[];
|
|
17
|
+
originalContent?: any;
|
|
18
|
+
parameters?: any;
|
|
19
|
+
path?: PMNode[];
|
|
20
|
+
providers: ProviderFactory;
|
|
21
|
+
rendererContext: RendererContext;
|
|
22
|
+
serializer: Serializer<any>;
|
|
22
23
|
startPos: number;
|
|
23
|
-
extensionViewportSizes?: ExtensionViewportSize[];
|
|
24
24
|
}
|
|
25
25
|
declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
|
|
26
26
|
export default BodiedExtension;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
2
|
import type { SupportedLanguages } from '@atlaskit/code';
|
|
3
3
|
export interface Props {
|
|
4
|
-
text: string;
|
|
5
|
-
language: SupportedLanguages;
|
|
6
4
|
allowCopyToClipboard?: boolean;
|
|
7
5
|
allowWrapCodeBlock?: boolean;
|
|
8
|
-
codeBidiWarningTooltipEnabled: boolean;
|
|
9
6
|
className?: string;
|
|
7
|
+
codeBidiWarningTooltipEnabled: boolean;
|
|
8
|
+
language: SupportedLanguages;
|
|
9
|
+
text: string;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
4
4
|
export interface Props extends MarkDataAttributes {
|
|
5
|
-
timestamp: string;
|
|
6
5
|
parentIsIncompleteTask?: boolean;
|
|
6
|
+
timestamp: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -8,18 +8,18 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
|
8
8
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
9
9
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
10
10
|
type EmbedCardInternalProps = {
|
|
11
|
-
url?: string;
|
|
12
11
|
data?: object;
|
|
13
12
|
eventHandlers?: EventHandlers;
|
|
14
|
-
|
|
13
|
+
isInsideOfBlockNode?: boolean;
|
|
14
|
+
isInsideOfInlineExtension?: boolean;
|
|
15
|
+
layout: RichMediaLayout;
|
|
15
16
|
originalHeight?: number;
|
|
16
17
|
originalWidth?: number;
|
|
17
|
-
|
|
18
|
-
layout: RichMediaLayout;
|
|
18
|
+
portal?: HTMLElement;
|
|
19
19
|
rendererAppearance?: RendererAppearance;
|
|
20
|
-
isInsideOfBlockNode?: boolean;
|
|
21
20
|
smartLinks?: SmartLinksOptions;
|
|
22
|
-
|
|
21
|
+
url?: string;
|
|
22
|
+
width?: number;
|
|
23
23
|
};
|
|
24
24
|
export declare const EmbedOrBlockCardInternal: ({ url, data, eventHandlers, portal, originalHeight, originalWidth, width: embedWidth, layout, rendererAppearance, isInsideOfBlockNode, smartLinks, isInsideOfInlineExtension, }: EmbedCardInternalProps) => jsx.JSX.Element;
|
|
25
25
|
declare const EmbedCardWithCondition: import("react").FC<EmbedCardInternalProps>;
|
|
@@ -10,10 +10,10 @@ import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineA
|
|
|
10
10
|
import { type EmojiAttributes } from '@atlaskit/adf-schema';
|
|
11
11
|
export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
|
|
12
12
|
allowTextFallback?: boolean;
|
|
13
|
-
providers?: ProviderFactory;
|
|
14
13
|
fitToHeight?: number;
|
|
15
|
-
|
|
14
|
+
providers?: ProviderFactory;
|
|
16
15
|
resourceConfig?: EmojiResourceConfig;
|
|
16
|
+
showTooltip?: boolean;
|
|
17
17
|
}
|
|
18
18
|
declare function EmojiItem(props: EmojiProps): jsx.JSX.Element;
|
|
19
19
|
declare namespace EmojiItem {
|
|
@@ -7,18 +7,18 @@ import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
7
7
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
8
8
|
interface Props {
|
|
9
9
|
extensionHandlers?: ExtensionHandlers;
|
|
10
|
-
providers: ProviderFactory;
|
|
11
|
-
rendererContext: RendererContext;
|
|
12
|
-
extensionType: string;
|
|
13
10
|
extensionKey: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
parameters?: any;
|
|
11
|
+
extensionType: string;
|
|
12
|
+
extensionViewportSizes?: ExtensionViewportSize[];
|
|
17
13
|
layout?: ExtensionLayout;
|
|
18
14
|
localId?: string;
|
|
19
15
|
marks?: PMMark[];
|
|
20
|
-
extensionViewportSizes?: ExtensionViewportSize[];
|
|
21
16
|
nodeHeight?: string;
|
|
17
|
+
parameters?: any;
|
|
18
|
+
path?: PMNode[];
|
|
19
|
+
providers: ProviderFactory;
|
|
20
|
+
rendererContext: RendererContext;
|
|
21
|
+
text?: string;
|
|
22
22
|
}
|
|
23
23
|
type AllOrNone<T> = T | {
|
|
24
24
|
[K in keyof T]?: never;
|
|
@@ -10,18 +10,18 @@ import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
|
10
10
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
11
11
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
12
12
|
type Props = React.PropsWithChildren<{
|
|
13
|
-
|
|
13
|
+
content?: any;
|
|
14
14
|
extensionHandlers?: ExtensionHandlers;
|
|
15
|
-
rendererContext: RendererContext;
|
|
16
|
-
providers: ProviderFactory;
|
|
17
|
-
extensionType: string;
|
|
18
15
|
extensionKey: string;
|
|
19
|
-
|
|
20
|
-
originalContent?: any;
|
|
21
|
-
parameters?: any;
|
|
22
|
-
content?: any;
|
|
16
|
+
extensionType: string;
|
|
23
17
|
layout?: ExtensionLayout;
|
|
24
18
|
localId?: string;
|
|
19
|
+
originalContent?: any;
|
|
20
|
+
parameters?: any;
|
|
21
|
+
path?: PMNode[];
|
|
22
|
+
providers: ProviderFactory;
|
|
23
|
+
rendererContext: RendererContext;
|
|
24
|
+
serializer: Serializer<any>;
|
|
25
25
|
}>;
|
|
26
26
|
declare const ExtensionFrame: (props: Props) => jsx.JSX.Element;
|
|
27
27
|
export default ExtensionFrame;
|
|
@@ -3,11 +3,11 @@ type CardErrorBoundaryProps = {
|
|
|
3
3
|
unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
4
4
|
};
|
|
5
5
|
export declare class CardErrorBoundary extends React.PureComponent<{
|
|
6
|
-
url?: string;
|
|
7
|
-
onClick?: (e: React.MouseEvent<HTMLElement>, url?: string) => void;
|
|
8
|
-
isDatasource?: boolean;
|
|
9
6
|
children?: React.ReactNode;
|
|
10
7
|
datasourceId?: string;
|
|
8
|
+
isDatasource?: boolean;
|
|
9
|
+
onClick?: (e: React.MouseEvent<HTMLElement>, url?: string) => void;
|
|
10
|
+
url?: string;
|
|
11
11
|
} & CardErrorBoundaryProps> {
|
|
12
12
|
state: {
|
|
13
13
|
isError: boolean;
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
4
|
type Props = {
|
|
5
|
-
onCopyText: () => Promise<void>;
|
|
6
5
|
enableNestedHeaderLinks?: boolean;
|
|
7
|
-
level: number;
|
|
8
|
-
hideFromScreenReader?: boolean;
|
|
9
6
|
headingId?: string;
|
|
7
|
+
hideFromScreenReader?: boolean;
|
|
8
|
+
level: number;
|
|
9
|
+
onCopyText: () => Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
type HeadingAnchorProps = Props & React.PropsWithChildren<unknown> & WrappedComponentProps;
|
|
12
12
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
|
|
@@ -4,11 +4,11 @@ import { type NodeProps } from '../types';
|
|
|
4
4
|
import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
5
5
|
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
declare function Heading(props: NodeProps<{
|
|
7
|
-
level: HeadingLevels;
|
|
8
|
-
headingId?: string;
|
|
9
|
-
showAnchorLink?: boolean;
|
|
10
7
|
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
11
|
-
|
|
8
|
+
headingId?: string;
|
|
12
9
|
invisible?: boolean;
|
|
10
|
+
level: HeadingLevels;
|
|
11
|
+
marks?: PMNode['marks'];
|
|
12
|
+
showAnchorLink?: boolean;
|
|
13
13
|
}>): React.JSX.Element;
|
|
14
14
|
export default Heading;
|