@atlaskit/renderer 120.3.7 → 120.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/react/index.js +1 -1
- package/dist/cjs/react/nodes/index.js +2 -1
- package/dist/cjs/react/nodes/loosely-lazy.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/index.js +1 -1
- package/dist/es2019/react/nodes/index.js +2 -1
- package/dist/es2019/react/nodes/loosely-lazy.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +1 -1
- package/dist/esm/react/nodes/index.js +2 -1
- package/dist/esm/react/nodes/loosely-lazy.js +2 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/actions/index.d.ts +0 -1
- package/dist/types/react/hooks/use-in-viewport.d.ts +0 -1
- package/dist/types/react/index.d.ts +0 -1
- package/dist/types/react/marks/code.d.ts +2 -2
- package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +0 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +0 -1
- package/dist/types/react/nodes/embedCard.d.ts +0 -1
- package/dist/types/react/nodes/emoji.d.ts +0 -1
- package/dist/types/react/nodes/extension.d.ts +11 -11
- package/dist/types/react/nodes/extensionFrame.d.ts +0 -1
- package/dist/types/react/nodes/index.d.ts +23 -23
- package/dist/types/react/nodes/inlineCard.d.ts +0 -1
- package/dist/types/react/nodes/table.d.ts +1 -1
- package/dist/types/react/nodes/tableNew.d.ts +1 -1
- package/dist/types/react/utils/EditorMediaClientProvider.d.ts +1 -1
- package/dist/types/react/utils/appearance.d.ts +4 -4
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types/ui/Renderer/ValidationContext.d.ts +0 -1
- package/dist/types/ui/Renderer/types.d.ts +0 -1
- package/dist/types/ui/annotations/context.d.ts +0 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +2 -2
- package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +3 -3
- package/dist/types/ui/annotations/element/mark.d.ts +9 -9
- package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/user-selection.d.ts +0 -1
- package/dist/types/ui/annotations/index.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +0 -1
- package/dist/types/ui/renderer-props.d.ts +0 -1
- package/dist/types/use-feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/actions/index.d.ts +0 -1
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +0 -1
- package/dist/types-ts4.5/react/index.d.ts +0 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +11 -11
- package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +23 -23
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/tableNew.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/appearance.d.ts +4 -4
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +0 -1
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/context.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +2 -2
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +3 -3
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +9 -9
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/types.d.ts +0 -1
- package/dist/types-ts4.5/ui/renderer-props.d.ts +0 -1
- package/dist/types-ts4.5/use-feature-flags.d.ts +1 -1
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 120.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
8
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
9
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 120.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`13a1ad07bb39e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13a1ad07bb39e) -
|
|
17
|
+
[ux] EDITOR-1146 | EDITOR-1176 Introduce `blockTaskItem` node to Renderer and Editor
|
|
18
|
+
`editor-plugin-tasks-and-decisions` which adopts the same code and functionality as the regular
|
|
19
|
+
`taskItem` except that it allows block content such as extensions to be inserted. This is to
|
|
20
|
+
facilitate TinyMCE migration which requires usage of the Legacy Content Extension.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 120.3.7
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -67,7 +67,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
67
67
|
parentInfo = _ref.parentInfo;
|
|
68
68
|
var pos = _this.startPos;
|
|
69
69
|
var currentPath = parentInfo && parentInfo.path || [];
|
|
70
|
-
var parentIsIncompleteTask = node.type.name === 'taskItem' && node.attrs.state !== 'DONE';
|
|
70
|
+
var parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && (0, _expValEquals.expValEquals)('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
|
|
71
71
|
var nodeKey = "".concat(node.type.name, "__").concat(_this.startPos);
|
|
72
72
|
var serializedContent = _this.serializeFragment(node.content, _this.getNodeProps(node, parentInfo), (0, _nodes.toReact)(node, {
|
|
73
73
|
allowSelectAllTrap: _this.allowSelectAllTrap,
|
|
@@ -477,7 +477,8 @@ var nodeToReact = exports.nodeToReact = {
|
|
|
477
477
|
unsupportedInline: _ui.UnsupportedInline,
|
|
478
478
|
expand: Expand,
|
|
479
479
|
nestedExpand: Expand,
|
|
480
|
-
embedCard: EmbedCard
|
|
480
|
+
embedCard: EmbedCard,
|
|
481
|
+
blockTaskItem: TaskItem
|
|
481
482
|
};
|
|
482
483
|
var toReact = exports.toReact = function toReact(node, flags, nodeComponents
|
|
483
484
|
// Ignored via go/ees005
|
|
@@ -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.
|
|
66
|
+
var packageVersion = "120.4.0";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -52,7 +52,7 @@ export default class ReactSerializer {
|
|
|
52
52
|
}) => {
|
|
53
53
|
const pos = this.startPos;
|
|
54
54
|
const currentPath = parentInfo && parentInfo.path || [];
|
|
55
|
-
const parentIsIncompleteTask = node.type.name === 'taskItem' && node.attrs.state !== 'DONE';
|
|
55
|
+
const parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
|
|
56
56
|
const nodeKey = `${node.type.name}__${this.startPos}`;
|
|
57
57
|
const serializedContent = this.serializeFragment(node.content, this.getNodeProps(node, parentInfo), toReact(node, {
|
|
58
58
|
allowSelectAllTrap: this.allowSelectAllTrap,
|
|
@@ -169,7 +169,8 @@ export const nodeToReact = {
|
|
|
169
169
|
unsupportedInline: UnsupportedInline,
|
|
170
170
|
expand: Expand,
|
|
171
171
|
nestedExpand: Expand,
|
|
172
|
-
embedCard: EmbedCard
|
|
172
|
+
embedCard: EmbedCard,
|
|
173
|
+
blockTaskItem: TaskItem
|
|
173
174
|
};
|
|
174
175
|
export const toReact = (node, flags, nodeComponents
|
|
175
176
|
// Ignored via go/ees005
|
|
@@ -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.
|
|
52
|
+
const packageVersion = "120.4.0";
|
|
53
53
|
const setAsQueryContainerStyles = css({
|
|
54
54
|
containerName: 'ak-renderer-wrapper',
|
|
55
55
|
containerType: 'inline-size'
|
package/dist/esm/react/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
60
60
|
parentInfo = _ref.parentInfo;
|
|
61
61
|
var pos = _this.startPos;
|
|
62
62
|
var currentPath = parentInfo && parentInfo.path || [];
|
|
63
|
-
var parentIsIncompleteTask = node.type.name === 'taskItem' && node.attrs.state !== 'DONE';
|
|
63
|
+
var parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
|
|
64
64
|
var nodeKey = "".concat(node.type.name, "__").concat(_this.startPos);
|
|
65
65
|
var serializedContent = _this.serializeFragment(node.content, _this.getNodeProps(node, parentInfo), toReact(node, {
|
|
66
66
|
allowSelectAllTrap: _this.allowSelectAllTrap,
|
|
@@ -286,7 +286,8 @@ export var nodeToReact = {
|
|
|
286
286
|
unsupportedInline: UnsupportedInline,
|
|
287
287
|
expand: Expand,
|
|
288
288
|
nestedExpand: Expand,
|
|
289
|
-
embedCard: EmbedCard
|
|
289
|
+
embedCard: EmbedCard,
|
|
290
|
+
blockTaskItem: TaskItem
|
|
290
291
|
};
|
|
291
292
|
export var toReact = function toReact(node, flags, nodeComponents
|
|
292
293
|
// Ignored via go/ees005
|
|
@@ -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.
|
|
57
|
+
var packageVersion = "120.4.0";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -9,12 +9,12 @@ export declare function CodeWithIntl(props: MarkProps<{
|
|
|
9
9
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
11
|
} & import("../types").MarkMeta & {
|
|
12
|
-
children?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode | undefined;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
codeBidiWarningTooltipEnabled: boolean;
|
|
16
16
|
} & import("../types").MarkMeta & {
|
|
17
|
-
children?: React.ReactNode;
|
|
17
|
+
children?: React.ReactNode | undefined;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -29,12 +29,12 @@ type RenderExtensionOptions = {
|
|
|
29
29
|
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean, extensionId?: string, extensionViewportSizes?: ExtensionViewportSize[], nodeHeight?: string) => React.JSX.Element;
|
|
30
30
|
declare const _default: {
|
|
31
31
|
new (props: (Props & OverflowShadowProps) | Readonly<Props & OverflowShadowProps>): {
|
|
32
|
-
overflowContainer?: HTMLElement | null
|
|
33
|
-
container?: HTMLElement
|
|
34
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver
|
|
32
|
+
overflowContainer?: HTMLElement | null;
|
|
33
|
+
container?: HTMLElement;
|
|
34
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
35
35
|
overflowContainerWidth: number;
|
|
36
|
-
scrollable?: NodeList
|
|
37
|
-
diff?: number
|
|
36
|
+
scrollable?: NodeList;
|
|
37
|
+
diff?: number;
|
|
38
38
|
state: {
|
|
39
39
|
showLeftShadow: boolean;
|
|
40
40
|
showRightShadow: boolean;
|
|
@@ -68,12 +68,12 @@ declare const _default: {
|
|
|
68
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
69
69
|
};
|
|
70
70
|
new (props: Props & OverflowShadowProps, context: any): {
|
|
71
|
-
overflowContainer?: HTMLElement | null
|
|
72
|
-
container?: HTMLElement
|
|
73
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver
|
|
71
|
+
overflowContainer?: HTMLElement | null;
|
|
72
|
+
container?: HTMLElement;
|
|
73
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
74
74
|
overflowContainerWidth: number;
|
|
75
|
-
scrollable?: NodeList
|
|
76
|
-
diff?: number
|
|
75
|
+
scrollable?: NodeList;
|
|
76
|
+
diff?: number;
|
|
77
77
|
state: {
|
|
78
78
|
showLeftShadow: boolean;
|
|
79
79
|
showRightShadow: boolean;
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
initShadowObserver(): void;
|
|
90
90
|
render(): React.JSX.Element;
|
|
91
91
|
context: unknown;
|
|
92
|
-
setState<
|
|
92
|
+
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
93
93
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
94
94
|
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
95
95
|
refs: {
|
|
@@ -35,42 +35,42 @@ declare const Status: React.ComponentType<import("./status").Props> & Loadable.L
|
|
|
35
35
|
declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
|
|
36
36
|
declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
|
|
37
37
|
declare const EmbedCard: React.ComponentType<{
|
|
38
|
-
url?: string
|
|
39
|
-
data?: object
|
|
40
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
41
|
-
portal?: HTMLElement
|
|
42
|
-
originalHeight?: number
|
|
43
|
-
originalWidth?: number
|
|
44
|
-
width?: number
|
|
38
|
+
url?: string;
|
|
39
|
+
data?: object;
|
|
40
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
41
|
+
portal?: HTMLElement;
|
|
42
|
+
originalHeight?: number;
|
|
43
|
+
originalWidth?: number;
|
|
44
|
+
width?: number;
|
|
45
45
|
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
46
46
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
47
|
-
isInsideOfBlockNode?: boolean
|
|
48
|
-
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions
|
|
49
|
-
isInsideOfInlineExtension?: boolean
|
|
47
|
+
isInsideOfBlockNode?: boolean;
|
|
48
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
|
|
49
|
+
isInsideOfInlineExtension?: boolean;
|
|
50
50
|
}> & Loadable.LoadableComponent;
|
|
51
51
|
declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
52
52
|
declare const BlockCard: React.ComponentType<{
|
|
53
|
-
url?: string
|
|
54
|
-
data?: object
|
|
55
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
56
|
-
datasource?: import("@atlaskit/adf-schema").DatasourceAttributeProperties
|
|
57
|
-
portal?: HTMLElement
|
|
53
|
+
url?: string;
|
|
54
|
+
data?: object;
|
|
55
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
56
|
+
datasource?: import("@atlaskit/adf-schema").DatasourceAttributeProperties;
|
|
57
|
+
portal?: HTMLElement;
|
|
58
58
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
59
|
-
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions
|
|
60
|
-
layout?: string
|
|
61
|
-
isNodeNested?: boolean
|
|
59
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
|
|
60
|
+
layout?: string;
|
|
61
|
+
isNodeNested?: boolean;
|
|
62
62
|
}> & Loadable.LoadableComponent;
|
|
63
63
|
declare const Media: React.ComponentType<React.PropsWithChildren<import("./media").MediaProps>> & Loadable.LoadableComponent;
|
|
64
64
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
65
65
|
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<{
|
|
66
66
|
id: string;
|
|
67
67
|
providers: import("@atlaskit/editor-common/provider-factory").ProviderFactory;
|
|
68
|
-
collection?: string
|
|
69
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
68
|
+
collection?: string;
|
|
69
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
70
70
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
71
|
-
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags
|
|
72
|
-
marks?: Mark
|
|
73
|
-
ssr?: import("../..").MediaSSR
|
|
71
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags;
|
|
72
|
+
marks?: Array<Mark>;
|
|
73
|
+
ssr?: import("../..").MediaSSR;
|
|
74
74
|
} & import("react-intl-next").WrappedComponentProps & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
75
75
|
declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
76
76
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
@@ -14,7 +14,7 @@ export type TableArrayMapped = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
|
|
16
16
|
export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
|
|
17
|
-
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps[
|
|
17
|
+
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
|
|
18
18
|
export declare const hasRowspan: (row: PMNode) => boolean;
|
|
19
19
|
export declare const getRefTop: (refElement: HTMLElement) => number;
|
|
20
20
|
export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
@@ -15,7 +15,7 @@ export type TableArrayMapped = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
|
|
17
17
|
export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
|
|
18
|
-
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps[
|
|
18
|
+
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
|
|
19
19
|
export declare const hasRowspan: (row: PMNode) => boolean;
|
|
20
20
|
export declare const getRefTop: (refElement: HTMLElement) => number;
|
|
21
21
|
export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RendererAppearance } from '../../ui/Renderer/types';
|
|
2
|
-
export declare const isFullWidthAppearance: (appearance: RendererAppearance) =>
|
|
3
|
-
export declare const isFullPageAppearance: (appearance: RendererAppearance) =>
|
|
4
|
-
export declare const isCommentAppearance: (appearance: RendererAppearance) =>
|
|
5
|
-
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) =>
|
|
2
|
+
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
|
|
3
|
+
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
4
|
+
export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
|
|
5
|
+
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page" | "full-width";
|
|
@@ -29,7 +29,7 @@ interface Props {
|
|
|
29
29
|
}
|
|
30
30
|
export default function ExtensionRenderer(props: Props): JSX.Element;
|
|
31
31
|
export declare const InlineNodeRendererWrapper: ({ children, ssrPlaceholder, ssrPlaceholderReplace, }: React.PropsWithChildren<{
|
|
32
|
-
ssrPlaceholder?: string
|
|
33
|
-
ssrPlaceholderReplace?: string
|
|
32
|
+
ssrPlaceholder?: string;
|
|
33
|
+
ssrPlaceholderReplace?: string;
|
|
34
34
|
}>) => jsx.JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
3
|
export declare const ProvidersContext: import("react").Context<AnnotationProviders | null | undefined>;
|
|
@@ -63,8 +63,8 @@ type AnnotationManagerAction = {
|
|
|
63
63
|
};
|
|
64
64
|
export declare const AnnotationManagerProvider: ({ children, annotationManager, updateSubscriber, }: {
|
|
65
65
|
children?: ReactNode;
|
|
66
|
-
annotationManager?: AnnotationManager
|
|
67
|
-
updateSubscriber?: AnnotationUpdateEmitter
|
|
66
|
+
annotationManager?: AnnotationManager;
|
|
67
|
+
updateSubscriber?: AnnotationUpdateEmitter;
|
|
68
68
|
}) => React.JSX.Element;
|
|
69
69
|
export declare const useAnnotationManagerState: () => AnnotationManagerStateContext;
|
|
70
70
|
export declare const useAnnotationManagerDispatch: () => AnnotationManagerDispatchContext;
|
|
@@ -38,12 +38,12 @@ export declare const AnnotationRangeStateContext: React.Context<AnnotationRangeS
|
|
|
38
38
|
export declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispatchContext>;
|
|
39
39
|
export declare const AnnotationRangeProviderInner: ({ children, allowCommentsOnMedia, }: {
|
|
40
40
|
children?: ReactNode;
|
|
41
|
-
allowCommentsOnMedia?: boolean
|
|
41
|
+
allowCommentsOnMedia?: boolean;
|
|
42
42
|
}) => React.JSX.Element;
|
|
43
43
|
export declare const AnnotationRangeProvider: ({ children, allowCommentsOnMedia, isNestedRender, }: {
|
|
44
44
|
children?: ReactNode;
|
|
45
|
-
allowCommentsOnMedia?: boolean
|
|
46
|
-
isNestedRender?: boolean
|
|
45
|
+
allowCommentsOnMedia?: boolean;
|
|
46
|
+
isNestedRender?: boolean;
|
|
47
47
|
}) => React.JSX.Element;
|
|
48
48
|
export declare const useAnnotationRangeState: () => AnnotationRangeStateContext;
|
|
49
49
|
export declare const useAnnotationRangeDispatch: () => AnnotationRangeDispatchContext;
|
|
@@ -24,8 +24,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
24
24
|
} | undefined;
|
|
25
25
|
'data-mark-type': string;
|
|
26
26
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
27
|
-
'data-id':
|
|
28
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
27
|
+
'data-id': AnnotationId;
|
|
28
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
29
29
|
'aria-disabled': boolean;
|
|
30
30
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
31
31
|
id: string;
|
|
@@ -40,7 +40,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
40
40
|
'data-is-hovered': boolean;
|
|
41
41
|
'data-mark-type': string;
|
|
42
42
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
43
|
-
'data-id':
|
|
43
|
+
'data-id': AnnotationId;
|
|
44
44
|
'aria-disabled': boolean;
|
|
45
45
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
46
46
|
id: string;
|
|
@@ -52,8 +52,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
52
52
|
} | undefined;
|
|
53
53
|
'data-mark-type': string;
|
|
54
54
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
55
|
-
'data-id':
|
|
56
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
55
|
+
'data-id': AnnotationId;
|
|
56
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
57
57
|
role?: undefined;
|
|
58
58
|
tabIndex?: undefined;
|
|
59
59
|
onKeyDown?: undefined;
|
|
@@ -73,7 +73,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
73
73
|
'data-is-hovered': boolean;
|
|
74
74
|
'data-mark-type': string;
|
|
75
75
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
76
|
-
'data-id':
|
|
76
|
+
'data-id': AnnotationId;
|
|
77
77
|
role?: undefined;
|
|
78
78
|
tabIndex?: undefined;
|
|
79
79
|
onKeyDown?: undefined;
|
|
@@ -90,8 +90,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
90
90
|
} | undefined;
|
|
91
91
|
'data-mark-type': string;
|
|
92
92
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
93
|
-
'data-id':
|
|
94
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
93
|
+
'data-id': AnnotationId;
|
|
94
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
95
95
|
role: string;
|
|
96
96
|
tabIndex: number;
|
|
97
97
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
@@ -111,7 +111,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
111
111
|
'data-is-hovered': boolean;
|
|
112
112
|
'data-mark-type': string;
|
|
113
113
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
114
|
-
'data-id':
|
|
114
|
+
'data-id': AnnotationId;
|
|
115
115
|
role: string;
|
|
116
116
|
tabIndex: number;
|
|
117
117
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
@@ -18,5 +18,5 @@ export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventPro
|
|
|
18
18
|
isHovered: boolean;
|
|
19
19
|
};
|
|
20
20
|
type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
|
|
21
|
-
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps,
|
|
21
|
+
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, "updateSubscriber" | "createAnalyticsEvent" | "isNestedRender">) => AnnotationsWithClickTarget;
|
|
22
22
|
export {};
|
|
@@ -3,5 +3,5 @@ import { type AnnotationsWrapperProps } from './types';
|
|
|
3
3
|
export declare const AnnotationsPositionContext: React.Context<{
|
|
4
4
|
startPos: number;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const AnnotationsWrapperInner: (props: Omit<AnnotationsWrapperProps,
|
|
6
|
+
export declare const AnnotationsWrapperInner: (props: Omit<AnnotationsWrapperProps, "annotationProvider">) => React.JSX.Element;
|
|
7
7
|
export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type RendererContextProps } from './renderer-context';
|
|
2
|
-
export declare const useFeatureFlags: () => RendererContextProps[
|
|
2
|
+
export declare const useFeatureFlags: () => RendererContextProps["featureFlags"] | undefined;
|
|
@@ -9,12 +9,12 @@ export declare function CodeWithIntl(props: MarkProps<{
|
|
|
9
9
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
11
|
} & import("../types").MarkMeta & {
|
|
12
|
-
children?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode | undefined;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
codeBidiWarningTooltipEnabled: boolean;
|
|
16
16
|
} & import("../types").MarkMeta & {
|
|
17
|
-
children?: React.ReactNode;
|
|
17
|
+
children?: React.ReactNode | undefined;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -29,12 +29,12 @@ type RenderExtensionOptions = {
|
|
|
29
29
|
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean, extensionId?: string, extensionViewportSizes?: ExtensionViewportSize[], nodeHeight?: string) => React.JSX.Element;
|
|
30
30
|
declare const _default: {
|
|
31
31
|
new (props: (Props & OverflowShadowProps) | Readonly<Props & OverflowShadowProps>): {
|
|
32
|
-
overflowContainer?: HTMLElement | null
|
|
33
|
-
container?: HTMLElement
|
|
34
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver
|
|
32
|
+
overflowContainer?: HTMLElement | null;
|
|
33
|
+
container?: HTMLElement;
|
|
34
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
35
35
|
overflowContainerWidth: number;
|
|
36
|
-
scrollable?: NodeList
|
|
37
|
-
diff?: number
|
|
36
|
+
scrollable?: NodeList;
|
|
37
|
+
diff?: number;
|
|
38
38
|
state: {
|
|
39
39
|
showLeftShadow: boolean;
|
|
40
40
|
showRightShadow: boolean;
|
|
@@ -68,12 +68,12 @@ declare const _default: {
|
|
|
68
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
69
69
|
};
|
|
70
70
|
new (props: Props & OverflowShadowProps, context: any): {
|
|
71
|
-
overflowContainer?: HTMLElement | null
|
|
72
|
-
container?: HTMLElement
|
|
73
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver
|
|
71
|
+
overflowContainer?: HTMLElement | null;
|
|
72
|
+
container?: HTMLElement;
|
|
73
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
74
74
|
overflowContainerWidth: number;
|
|
75
|
-
scrollable?: NodeList
|
|
76
|
-
diff?: number
|
|
75
|
+
scrollable?: NodeList;
|
|
76
|
+
diff?: number;
|
|
77
77
|
state: {
|
|
78
78
|
showLeftShadow: boolean;
|
|
79
79
|
showRightShadow: boolean;
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
initShadowObserver(): void;
|
|
90
90
|
render(): React.JSX.Element;
|
|
91
91
|
context: unknown;
|
|
92
|
-
setState<
|
|
92
|
+
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
93
93
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
94
94
|
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
95
95
|
refs: {
|
|
@@ -35,42 +35,42 @@ declare const Status: React.ComponentType<import("./status").Props> & Loadable.L
|
|
|
35
35
|
declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
|
|
36
36
|
declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
|
|
37
37
|
declare const EmbedCard: React.ComponentType<{
|
|
38
|
-
url?: string
|
|
39
|
-
data?: object
|
|
40
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
41
|
-
portal?: HTMLElement
|
|
42
|
-
originalHeight?: number
|
|
43
|
-
originalWidth?: number
|
|
44
|
-
width?: number
|
|
38
|
+
url?: string;
|
|
39
|
+
data?: object;
|
|
40
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
41
|
+
portal?: HTMLElement;
|
|
42
|
+
originalHeight?: number;
|
|
43
|
+
originalWidth?: number;
|
|
44
|
+
width?: number;
|
|
45
45
|
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
46
46
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
47
|
-
isInsideOfBlockNode?: boolean
|
|
48
|
-
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions
|
|
49
|
-
isInsideOfInlineExtension?: boolean
|
|
47
|
+
isInsideOfBlockNode?: boolean;
|
|
48
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
|
|
49
|
+
isInsideOfInlineExtension?: boolean;
|
|
50
50
|
}> & Loadable.LoadableComponent;
|
|
51
51
|
declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
52
52
|
declare const BlockCard: React.ComponentType<{
|
|
53
|
-
url?: string
|
|
54
|
-
data?: object
|
|
55
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
56
|
-
datasource?: import("@atlaskit/adf-schema").DatasourceAttributeProperties
|
|
57
|
-
portal?: HTMLElement
|
|
53
|
+
url?: string;
|
|
54
|
+
data?: object;
|
|
55
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
56
|
+
datasource?: import("@atlaskit/adf-schema").DatasourceAttributeProperties;
|
|
57
|
+
portal?: HTMLElement;
|
|
58
58
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
59
|
-
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions
|
|
60
|
-
layout?: string
|
|
61
|
-
isNodeNested?: boolean
|
|
59
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
|
|
60
|
+
layout?: string;
|
|
61
|
+
isNodeNested?: boolean;
|
|
62
62
|
}> & Loadable.LoadableComponent;
|
|
63
63
|
declare const Media: React.ComponentType<React.PropsWithChildren<import("./media").MediaProps>> & Loadable.LoadableComponent;
|
|
64
64
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
65
65
|
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<{
|
|
66
66
|
id: string;
|
|
67
67
|
providers: import("@atlaskit/editor-common/provider-factory").ProviderFactory;
|
|
68
|
-
collection?: string
|
|
69
|
-
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers
|
|
68
|
+
collection?: string;
|
|
69
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
|
|
70
70
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
71
|
-
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags
|
|
72
|
-
marks?: Mark
|
|
73
|
-
ssr?: import("../..").MediaSSR
|
|
71
|
+
featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags;
|
|
72
|
+
marks?: Array<Mark>;
|
|
73
|
+
ssr?: import("../..").MediaSSR;
|
|
74
74
|
} & import("react-intl-next").WrappedComponentProps & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
75
75
|
declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
76
76
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
@@ -14,7 +14,7 @@ export type TableArrayMapped = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
|
|
16
16
|
export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
|
|
17
|
-
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps[
|
|
17
|
+
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
|
|
18
18
|
export declare const hasRowspan: (row: PMNode) => boolean;
|
|
19
19
|
export declare const getRefTop: (refElement: HTMLElement) => number;
|
|
20
20
|
export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
@@ -15,7 +15,7 @@ export type TableArrayMapped = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
|
|
17
17
|
export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
|
|
18
|
-
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps[
|
|
18
|
+
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
|
|
19
19
|
export declare const hasRowspan: (row: PMNode) => boolean;
|
|
20
20
|
export declare const getRefTop: (refElement: HTMLElement) => number;
|
|
21
21
|
export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RendererAppearance } from '../../ui/Renderer/types';
|
|
2
|
-
export declare const isFullWidthAppearance: (appearance: RendererAppearance) =>
|
|
3
|
-
export declare const isFullPageAppearance: (appearance: RendererAppearance) =>
|
|
4
|
-
export declare const isCommentAppearance: (appearance: RendererAppearance) =>
|
|
5
|
-
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) =>
|
|
2
|
+
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
|
|
3
|
+
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
4
|
+
export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
|
|
5
|
+
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page" | "full-width";
|
|
@@ -29,7 +29,7 @@ interface Props {
|
|
|
29
29
|
}
|
|
30
30
|
export default function ExtensionRenderer(props: Props): JSX.Element;
|
|
31
31
|
export declare const InlineNodeRendererWrapper: ({ children, ssrPlaceholder, ssrPlaceholderReplace, }: React.PropsWithChildren<{
|
|
32
|
-
ssrPlaceholder?: string
|
|
33
|
-
ssrPlaceholderReplace?: string
|
|
32
|
+
ssrPlaceholder?: string;
|
|
33
|
+
ssrPlaceholderReplace?: string;
|
|
34
34
|
}>) => jsx.JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
3
|
export declare const ProvidersContext: import("react").Context<AnnotationProviders | null | undefined>;
|
|
@@ -63,8 +63,8 @@ type AnnotationManagerAction = {
|
|
|
63
63
|
};
|
|
64
64
|
export declare const AnnotationManagerProvider: ({ children, annotationManager, updateSubscriber, }: {
|
|
65
65
|
children?: ReactNode;
|
|
66
|
-
annotationManager?: AnnotationManager
|
|
67
|
-
updateSubscriber?: AnnotationUpdateEmitter
|
|
66
|
+
annotationManager?: AnnotationManager;
|
|
67
|
+
updateSubscriber?: AnnotationUpdateEmitter;
|
|
68
68
|
}) => React.JSX.Element;
|
|
69
69
|
export declare const useAnnotationManagerState: () => AnnotationManagerStateContext;
|
|
70
70
|
export declare const useAnnotationManagerDispatch: () => AnnotationManagerDispatchContext;
|
|
@@ -38,12 +38,12 @@ export declare const AnnotationRangeStateContext: React.Context<AnnotationRangeS
|
|
|
38
38
|
export declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispatchContext>;
|
|
39
39
|
export declare const AnnotationRangeProviderInner: ({ children, allowCommentsOnMedia, }: {
|
|
40
40
|
children?: ReactNode;
|
|
41
|
-
allowCommentsOnMedia?: boolean
|
|
41
|
+
allowCommentsOnMedia?: boolean;
|
|
42
42
|
}) => React.JSX.Element;
|
|
43
43
|
export declare const AnnotationRangeProvider: ({ children, allowCommentsOnMedia, isNestedRender, }: {
|
|
44
44
|
children?: ReactNode;
|
|
45
|
-
allowCommentsOnMedia?: boolean
|
|
46
|
-
isNestedRender?: boolean
|
|
45
|
+
allowCommentsOnMedia?: boolean;
|
|
46
|
+
isNestedRender?: boolean;
|
|
47
47
|
}) => React.JSX.Element;
|
|
48
48
|
export declare const useAnnotationRangeState: () => AnnotationRangeStateContext;
|
|
49
49
|
export declare const useAnnotationRangeDispatch: () => AnnotationRangeDispatchContext;
|
|
@@ -24,8 +24,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
24
24
|
} | undefined;
|
|
25
25
|
'data-mark-type': string;
|
|
26
26
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
27
|
-
'data-id':
|
|
28
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
27
|
+
'data-id': AnnotationId;
|
|
28
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
29
29
|
'aria-disabled': boolean;
|
|
30
30
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
31
31
|
id: string;
|
|
@@ -40,7 +40,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
40
40
|
'data-is-hovered': boolean;
|
|
41
41
|
'data-mark-type': string;
|
|
42
42
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
43
|
-
'data-id':
|
|
43
|
+
'data-id': AnnotationId;
|
|
44
44
|
'aria-disabled': boolean;
|
|
45
45
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
46
46
|
id: string;
|
|
@@ -52,8 +52,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
52
52
|
} | undefined;
|
|
53
53
|
'data-mark-type': string;
|
|
54
54
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
55
|
-
'data-id':
|
|
56
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
55
|
+
'data-id': AnnotationId;
|
|
56
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
57
57
|
role?: undefined;
|
|
58
58
|
tabIndex?: undefined;
|
|
59
59
|
onKeyDown?: undefined;
|
|
@@ -73,7 +73,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
73
73
|
'data-is-hovered': boolean;
|
|
74
74
|
'data-mark-type': string;
|
|
75
75
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
76
|
-
'data-id':
|
|
76
|
+
'data-id': AnnotationId;
|
|
77
77
|
role?: undefined;
|
|
78
78
|
tabIndex?: undefined;
|
|
79
79
|
onKeyDown?: undefined;
|
|
@@ -90,8 +90,8 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
90
90
|
} | undefined;
|
|
91
91
|
'data-mark-type': string;
|
|
92
92
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
93
|
-
'data-id':
|
|
94
|
-
'data-mark-annotation-state'?: AnnotationMarkStates
|
|
93
|
+
'data-id': AnnotationId;
|
|
94
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
95
95
|
role: string;
|
|
96
96
|
tabIndex: number;
|
|
97
97
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
@@ -111,7 +111,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
111
111
|
'data-is-hovered': boolean;
|
|
112
112
|
'data-mark-type': string;
|
|
113
113
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
114
|
-
'data-id':
|
|
114
|
+
'data-id': AnnotationId;
|
|
115
115
|
role: string;
|
|
116
116
|
tabIndex: number;
|
|
117
117
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
@@ -18,5 +18,5 @@ export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventPro
|
|
|
18
18
|
isHovered: boolean;
|
|
19
19
|
};
|
|
20
20
|
type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
|
|
21
|
-
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps,
|
|
21
|
+
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, "updateSubscriber" | "createAnalyticsEvent" | "isNestedRender">) => AnnotationsWithClickTarget;
|
|
22
22
|
export {};
|
|
@@ -3,5 +3,5 @@ import { type AnnotationsWrapperProps } from './types';
|
|
|
3
3
|
export declare const AnnotationsPositionContext: React.Context<{
|
|
4
4
|
startPos: number;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const AnnotationsWrapperInner: (props: Omit<AnnotationsWrapperProps,
|
|
6
|
+
export declare const AnnotationsWrapperInner: (props: Omit<AnnotationsWrapperProps, "annotationProvider">) => React.JSX.Element;
|
|
7
7
|
export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type RendererContextProps } from './renderer-context';
|
|
2
|
-
export declare const useFeatureFlags: () => RendererContextProps[
|
|
2
|
+
export declare const useFeatureFlags: () => RendererContextProps["featureFlags"] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "120.
|
|
3
|
+
"version": "120.4.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^50.2.0",
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.21.0",
|
|
28
28
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
29
29
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.25.0",
|
|
34
34
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
36
|
+
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
37
37
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
38
38
|
"@atlaskit/emoji": "^69.3.0",
|
|
39
39
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
40
|
-
"@atlaskit/icon": "^27.
|
|
40
|
+
"@atlaskit/icon": "^27.11.0",
|
|
41
41
|
"@atlaskit/link": "^3.2.0",
|
|
42
42
|
"@atlaskit/link-datasource": "^4.19.0",
|
|
43
|
-
"@atlaskit/media-card": "^79.
|
|
44
|
-
"@atlaskit/media-client": "^35.
|
|
43
|
+
"@atlaskit/media-card": "^79.5.0",
|
|
44
|
+
"@atlaskit/media-client": "^35.3.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
46
46
|
"@atlaskit/media-common": "^12.3.0",
|
|
47
47
|
"@atlaskit/media-filmstrip": "^51.0.0",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/media-viewer": "^52.4.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
52
|
-
"@atlaskit/react-ufo": "^4.
|
|
53
|
-
"@atlaskit/smart-card": "^40.
|
|
52
|
+
"@atlaskit/react-ufo": "^4.2.0",
|
|
53
|
+
"@atlaskit/smart-card": "^40.8.0",
|
|
54
54
|
"@atlaskit/status": "^3.0.0",
|
|
55
55
|
"@atlaskit/task-decision": "^19.2.0",
|
|
56
56
|
"@atlaskit/theme": "^19.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^9.27.0",
|
|
58
58
|
"@atlaskit/tokens": "^6.0.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.4.0",
|
|
60
60
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^107.
|
|
71
|
+
"@atlaskit/editor-common": "^107.20.0",
|
|
72
72
|
"@atlaskit/link-provider": "^3.4.0",
|
|
73
73
|
"@atlaskit/media-core": "^37.0.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"@atlaskit/mention": "^24.2.0",
|
|
90
90
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
91
91
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",
|
|
92
|
-
"@atlaskit/profilecard": "^24.
|
|
93
|
-
"@atlaskit/util-data-test": "^18.
|
|
92
|
+
"@atlaskit/profilecard": "^24.3.0",
|
|
93
|
+
"@atlaskit/util-data-test": "^18.1.0",
|
|
94
94
|
"@atlaskit/visual-regression": "workspace:^",
|
|
95
95
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
96
96
|
"@testing-library/react": "^13.4.0",
|
|
@@ -109,7 +109,6 @@
|
|
|
109
109
|
"react-test-renderer": "^18.2.0",
|
|
110
110
|
"rxjs": "^5.5.0",
|
|
111
111
|
"sinon": "^2.2.0",
|
|
112
|
-
"typescript": "~5.4.2",
|
|
113
112
|
"worker-plugin": "^4.0.2"
|
|
114
113
|
},
|
|
115
114
|
"techstack": {
|