@atlaskit/renderer 120.5.1 → 120.5.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 +16 -0
- package/afm-cc/tsconfig.json +2 -2
- package/dist/cjs/react/nodes/blockCard.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/react/nodes/embedCard.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/react/nodes/embedCard.js +1 -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 +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 120.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2dbce9ef92219`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2dbce9ef92219) -
|
|
8
|
+
Added a jira specific featuer flag to SSR the EmbedCard and BlockCard.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 120.5.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
16
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 120.5.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -127,7 +127,7 @@ function BlockCard(props) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
var cardComponent;
|
|
130
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (0, _platformFeatureFlags.fg)('platform_ssr_smartlink_cards')) {
|
|
130
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && ((0, _platformFeatureFlags.fg)('platform_ssr_smartlink_cards') || (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-links'))) {
|
|
131
131
|
cardComponent = (0, _react.jsx)(_ssr.CardSSR, (0, _extends2.default)({
|
|
132
132
|
appearance: "block",
|
|
133
133
|
platform: platform
|
|
@@ -156,7 +156,7 @@ function EmbedCardInternal(props) {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
var cardComponent;
|
|
159
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (0, _platformFeatureFlags.fg)('platform_ssr_smartlink_embeds')) {
|
|
159
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && ((0, _platformFeatureFlags.fg)('platform_ssr_smartlink_embeds') || (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-links'))) {
|
|
160
160
|
var _smartLinks$frameStyl2;
|
|
161
161
|
var ssrCardProps = {
|
|
162
162
|
url: url,
|
|
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "120.5.
|
|
66
|
+
var packageVersion = "120.5.2";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -114,7 +114,7 @@ export default function BlockCard(props) {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
let cardComponent;
|
|
117
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && fg('platform_ssr_smartlink_cards')) {
|
|
117
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
|
|
118
118
|
cardComponent = jsx(CardSSR, _extends({
|
|
119
119
|
appearance: "block",
|
|
120
120
|
platform: platform
|
|
@@ -144,7 +144,7 @@ function EmbedCardInternal(props) {
|
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
let cardComponent;
|
|
147
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && fg('platform_ssr_smartlink_embeds')) {
|
|
147
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_embeds') || fg('jfp-magma-ssr-iv-editor-links'))) {
|
|
148
148
|
var _smartLinks$frameStyl2;
|
|
149
149
|
const ssrCardProps = {
|
|
150
150
|
url,
|
|
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
|
|
|
49
49
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
50
50
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
51
51
|
const packageName = "@atlaskit/renderer";
|
|
52
|
-
const packageVersion = "120.5.
|
|
52
|
+
const packageVersion = "120.5.2";
|
|
53
53
|
const setAsQueryContainerStyles = css({
|
|
54
54
|
containerName: 'ak-renderer-wrapper',
|
|
55
55
|
containerType: 'inline-size'
|
|
@@ -119,7 +119,7 @@ export default function BlockCard(props) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
var cardComponent;
|
|
122
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && fg('platform_ssr_smartlink_cards')) {
|
|
122
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
|
|
123
123
|
cardComponent = jsx(CardSSR, _extends({
|
|
124
124
|
appearance: "block",
|
|
125
125
|
platform: platform
|
|
@@ -148,7 +148,7 @@ function EmbedCardInternal(props) {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
var cardComponent;
|
|
151
|
-
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && fg('platform_ssr_smartlink_embeds')) {
|
|
151
|
+
if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_embeds') || fg('jfp-magma-ssr-iv-editor-links'))) {
|
|
152
152
|
var _smartLinks$frameStyl2;
|
|
153
153
|
var ssrCardProps = {
|
|
154
154
|
url: url,
|
|
@@ -54,7 +54,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
|
|
|
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 = "120.5.
|
|
57
|
+
var packageVersion = "120.5.2";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -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;
|