@atlaskit/renderer 130.2.12 → 130.2.15
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 +19 -0
- package/dist/cjs/react/nodes/tableNew.js +1 -1
- package/dist/cjs/react/utils/getCardClickHandler.js +2 -1
- package/dist/cjs/steps/index.js +2 -0
- package/dist/cjs/ui/Expand.js +4 -1
- package/dist/cjs/ui/ExtensionRenderer.js +4 -1
- package/dist/cjs/ui/Renderer/PortalContext.js +2 -0
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -1
- package/dist/cjs/ui/Renderer/breakout-ssr.js +5 -1
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +8 -7
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -1
- package/dist/cjs/ui/Renderer/useMemoFromPropsDerivative.js +2 -0
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -0
- package/dist/cjs/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +2 -0
- package/dist/cjs/ui/active-header-id-provider.js +3 -3
- package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/cjs/ui/annotations/draft/component.js +2 -1
- package/dist/cjs/ui/annotations/draft/dom.js +2 -0
- package/dist/cjs/ui/annotations/element/mark.js +1 -0
- package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +2 -0
- package/dist/es2019/react/nodes/tableNew.js +1 -1
- package/dist/es2019/react/utils/getCardClickHandler.js +2 -2
- package/dist/es2019/steps/index.js +1 -0
- package/dist/es2019/ui/Expand.js +4 -1
- package/dist/es2019/ui/ExtensionRenderer.js +4 -2
- package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +3 -2
- package/dist/es2019/ui/Renderer/breakout-ssr.js +4 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +9 -8
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +2 -2
- package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/es2019/ui/RendererActionsContext/index.js +1 -0
- package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/es2019/ui/active-header-id-provider.js +3 -4
- package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/es2019/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/es2019/ui/annotations/draft/component.js +3 -2
- package/dist/es2019/ui/annotations/draft/dom.js +2 -0
- package/dist/es2019/ui/annotations/element/mark.js +1 -0
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/esm/react/nodes/tableNew.js +1 -1
- package/dist/esm/react/utils/getCardClickHandler.js +2 -2
- package/dist/esm/steps/index.js +1 -0
- package/dist/esm/ui/Expand.js +4 -1
- package/dist/esm/ui/ExtensionRenderer.js +4 -2
- package/dist/esm/ui/Renderer/PortalContext.js +1 -0
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +3 -2
- package/dist/esm/ui/Renderer/breakout-ssr.js +4 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -0
- package/dist/esm/ui/Renderer/index.js +9 -8
- package/dist/esm/ui/Renderer/truncated-wrapper.js +2 -2
- package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/esm/ui/RendererActionsContext/index.js +1 -0
- package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/esm/ui/active-header-id-provider.js +3 -3
- package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/esm/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/esm/ui/annotations/draft/component.js +3 -2
- package/dist/esm/ui/annotations/draft/dom.js +2 -0
- package/dist/esm/ui/annotations/element/mark.js +1 -0
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +57 -32
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -1
- package/dist/types/ui/MediaCard.d.ts +2 -2
- package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +2 -2
- package/dist/types/ui/Renderer/ValidationContext.d.ts +3 -2
- package/dist/types/ui/Renderer/get-base-font-size.d.ts +1 -1
- package/dist/types/ui/Renderer/index.d.ts +2 -3
- package/dist/types/ui/annotations/context.d.ts +3 -2
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +83 -82
- package/dist/types/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +57 -32
- package/dist/types-ts4.5/ui/Expand.d.ts +3 -3
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +2 -1
- package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +3 -2
- package/dist/types-ts4.5/ui/Renderer/get-base-font-size.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/annotations/context.d.ts +3 -2
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +83 -82
- package/dist/types-ts4.5/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
- package/package.json +9 -9
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import type React from 'react';
|
|
6
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
6
7
|
import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
8
9
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
9
10
|
type MarkComponentProps = {
|
|
10
11
|
annotationParentIds: AnnotationId[];
|
|
@@ -17,108 +18,108 @@ type MarkComponentProps = {
|
|
|
17
18
|
useBlockLevel?: boolean;
|
|
18
19
|
};
|
|
19
20
|
export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, isHovered, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
|
|
20
|
-
|
|
21
|
+
"aria-disabled": boolean;
|
|
22
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
23
|
+
"data-id": AnnotationId;
|
|
24
|
+
"data-mark-annotation-state"?: AnnotationMarkStates;
|
|
25
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
26
|
+
"data-mark-type": string;
|
|
27
|
+
id: string;
|
|
28
|
+
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
21
29
|
style?: {
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
31
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
24
32
|
} | undefined;
|
|
25
|
-
'data-id': AnnotationId;
|
|
26
|
-
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
27
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
28
|
-
'data-mark-type': string;
|
|
29
|
-
'aria-disabled': boolean;
|
|
30
|
-
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
31
|
-
id: string;
|
|
32
33
|
} | {
|
|
33
|
-
|
|
34
|
+
"aria-disabled": boolean;
|
|
35
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
36
|
+
"data-has-focus": boolean;
|
|
37
|
+
"data-id": AnnotationId;
|
|
38
|
+
"data-is-hovered": boolean;
|
|
39
|
+
"data-mark-annotation-state": AnnotationMarkStates;
|
|
40
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
41
|
+
"data-mark-type": string;
|
|
42
|
+
id: string;
|
|
43
|
+
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
34
44
|
style?: {
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
46
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
37
47
|
} | undefined;
|
|
38
|
-
'data-mark-annotation-state': AnnotationMarkStates;
|
|
39
|
-
'data-has-focus': boolean;
|
|
40
|
-
'data-is-hovered': boolean;
|
|
41
|
-
'data-id': AnnotationId;
|
|
42
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
43
|
-
'data-mark-type': string;
|
|
44
|
-
'aria-disabled': boolean;
|
|
45
|
-
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
46
|
-
id: string;
|
|
47
48
|
} | {
|
|
48
|
-
|
|
49
|
+
"aria-details": string;
|
|
50
|
+
"aria-disabled"?: undefined;
|
|
51
|
+
"aria-expanded"?: undefined;
|
|
52
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
53
|
+
"data-id": AnnotationId;
|
|
54
|
+
"data-mark-annotation-state"?: AnnotationMarkStates;
|
|
55
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
56
|
+
"data-mark-type": string;
|
|
57
|
+
id: string;
|
|
58
|
+
onKeyDown?: undefined;
|
|
59
|
+
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
60
|
+
role?: undefined;
|
|
49
61
|
style?: {
|
|
50
|
-
|
|
51
|
-
|
|
62
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
63
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
52
64
|
} | undefined;
|
|
53
|
-
'data-id': AnnotationId;
|
|
54
|
-
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
55
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
56
|
-
'data-mark-type': string;
|
|
57
|
-
role?: undefined;
|
|
58
65
|
tabIndex?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
"aria-details": string;
|
|
68
|
+
"aria-disabled"?: undefined;
|
|
69
|
+
"aria-expanded"?: undefined;
|
|
70
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
71
|
+
"data-has-focus": boolean;
|
|
72
|
+
"data-id": AnnotationId;
|
|
73
|
+
"data-is-hovered": boolean;
|
|
74
|
+
"data-mark-annotation-state": AnnotationMarkStates;
|
|
75
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
76
|
+
"data-mark-type": string;
|
|
77
|
+
id: string;
|
|
59
78
|
onKeyDown?: undefined;
|
|
60
|
-
'aria-expanded'?: undefined;
|
|
61
|
-
'aria-details': string;
|
|
62
|
-
'aria-disabled'?: undefined;
|
|
63
79
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
64
|
-
|
|
65
|
-
} | {
|
|
66
|
-
css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
|
|
80
|
+
role?: undefined;
|
|
67
81
|
style?: {
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
83
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
70
84
|
} | undefined;
|
|
71
|
-
'data-mark-annotation-state': AnnotationMarkStates;
|
|
72
|
-
'data-has-focus': boolean;
|
|
73
|
-
'data-is-hovered': boolean;
|
|
74
|
-
'data-id': AnnotationId;
|
|
75
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
76
|
-
'data-mark-type': string;
|
|
77
|
-
role?: undefined;
|
|
78
85
|
tabIndex?: undefined;
|
|
79
|
-
onKeyDown?: undefined;
|
|
80
|
-
'aria-expanded'?: undefined;
|
|
81
|
-
'aria-details': string;
|
|
82
|
-
'aria-disabled'?: undefined;
|
|
83
|
-
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
84
|
-
id: string;
|
|
85
86
|
} | {
|
|
86
|
-
|
|
87
|
+
"aria-details": string;
|
|
88
|
+
"aria-disabled"?: undefined;
|
|
89
|
+
"aria-expanded": boolean;
|
|
90
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
91
|
+
"data-id": AnnotationId;
|
|
92
|
+
"data-mark-annotation-state"?: AnnotationMarkStates;
|
|
93
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
94
|
+
"data-mark-type": string;
|
|
95
|
+
id: string;
|
|
96
|
+
onKeyDown: (evt: KeyboardEvent) => void;
|
|
97
|
+
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
98
|
+
role: string;
|
|
87
99
|
style?: {
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
101
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
90
102
|
} | undefined;
|
|
91
|
-
'data-id': AnnotationId;
|
|
92
|
-
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
93
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
94
|
-
'data-mark-type': string;
|
|
95
|
-
role: string;
|
|
96
103
|
tabIndex: number;
|
|
104
|
+
} | {
|
|
105
|
+
"aria-details": string;
|
|
106
|
+
"aria-disabled"?: undefined;
|
|
107
|
+
"aria-expanded": boolean;
|
|
108
|
+
css?: (false | SerializedStyles)[] | undefined;
|
|
109
|
+
"data-has-focus": boolean;
|
|
110
|
+
"data-id": AnnotationId;
|
|
111
|
+
"data-is-hovered": boolean;
|
|
112
|
+
"data-mark-annotation-state": AnnotationMarkStates;
|
|
113
|
+
"data-mark-annotation-type": AnnotationTypes;
|
|
114
|
+
"data-mark-type": string;
|
|
115
|
+
id: string;
|
|
97
116
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
98
|
-
'aria-expanded': boolean;
|
|
99
|
-
'aria-details': string;
|
|
100
|
-
'aria-disabled'?: undefined;
|
|
101
117
|
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
102
|
-
|
|
103
|
-
} | {
|
|
104
|
-
css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
|
|
118
|
+
role: string;
|
|
105
119
|
style?: {
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
"--ak-renderer-annotation-endmarker": string;
|
|
121
|
+
"--ak-renderer-annotation-startmarker": string;
|
|
108
122
|
} | undefined;
|
|
109
|
-
'data-mark-annotation-state': AnnotationMarkStates;
|
|
110
|
-
'data-has-focus': boolean;
|
|
111
|
-
'data-is-hovered': boolean;
|
|
112
|
-
'data-id': AnnotationId;
|
|
113
|
-
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
114
|
-
'data-mark-type': string;
|
|
115
|
-
role: string;
|
|
116
123
|
tabIndex: number;
|
|
117
|
-
|
|
118
|
-
'aria-expanded': boolean;
|
|
119
|
-
'aria-details': string;
|
|
120
|
-
'aria-disabled'?: undefined;
|
|
121
|
-
ref: ((node: HTMLElement | null) => void) | undefined;
|
|
122
|
-
id: string;
|
|
123
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
124
|
+
}>;
|
|
124
125
|
export {};
|
|
@@ -4,21 +4,21 @@ export type MarkDataAttributes = {
|
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export declare function useInlineAnnotationProps(props: MarkDataAttributes): {
|
|
7
|
-
'data-renderer-mark'?: undefined;
|
|
8
7
|
'data-annotation-draft-mark'?: undefined;
|
|
9
8
|
'data-annotation-inline-node'?: undefined;
|
|
10
|
-
'data-renderer-start-pos'?: undefined;
|
|
11
9
|
'data-annotation-mark'?: undefined;
|
|
10
|
+
'data-renderer-mark'?: undefined;
|
|
11
|
+
'data-renderer-start-pos'?: undefined;
|
|
12
12
|
} | {
|
|
13
|
-
'data-renderer-mark': boolean;
|
|
14
13
|
'data-annotation-draft-mark': boolean;
|
|
15
14
|
'data-annotation-inline-node': boolean;
|
|
16
|
-
'data-renderer-start-pos': number;
|
|
17
15
|
'data-annotation-mark'?: undefined;
|
|
16
|
+
'data-renderer-mark': boolean;
|
|
17
|
+
'data-renderer-start-pos': number;
|
|
18
18
|
} | {
|
|
19
|
+
'data-annotation-draft-mark'?: undefined;
|
|
19
20
|
'data-annotation-inline-node': boolean;
|
|
20
21
|
'data-annotation-mark': boolean;
|
|
21
|
-
'data-renderer-start-pos': number;
|
|
22
22
|
'data-renderer-mark'?: undefined;
|
|
23
|
-
'data-
|
|
23
|
+
'data-renderer-start-pos': number;
|
|
24
24
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
2
|
+
export declare const useInlineCommentSubscriberContext: () => AnnotationUpdateEmitter | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "130.2.
|
|
3
|
+
"version": "130.2.15",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"@atlaskit/link-datasource": "^5.2.0",
|
|
52
52
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
53
53
|
"@atlaskit/linking-common": "^9.11.0",
|
|
54
|
-
"@atlaskit/media-card": "^80.
|
|
54
|
+
"@atlaskit/media-card": "^80.3.0",
|
|
55
55
|
"@atlaskit/media-client": "^36.0.0",
|
|
56
|
-
"@atlaskit/media-client-react": "^5.
|
|
57
|
-
"@atlaskit/media-common": "^13.
|
|
58
|
-
"@atlaskit/media-filmstrip": "^51.
|
|
59
|
-
"@atlaskit/media-ui": "^29.
|
|
60
|
-
"@atlaskit/media-viewer": "^53.
|
|
56
|
+
"@atlaskit/media-client-react": "^5.1.0",
|
|
57
|
+
"@atlaskit/media-common": "^13.1.0",
|
|
58
|
+
"@atlaskit/media-filmstrip": "^51.3.0",
|
|
59
|
+
"@atlaskit/media-ui": "^29.1.0",
|
|
60
|
+
"@atlaskit/media-viewer": "^53.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
63
63
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/status": "^4.0.0",
|
|
67
67
|
"@atlaskit/task-decision": "^20.0.0",
|
|
68
68
|
"@atlaskit/theme": "^23.2.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.2.0",
|
|
72
72
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"uuid": "^3.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@atlaskit/editor-common": "^114.
|
|
82
|
+
"@atlaskit/editor-common": "^114.12.0",
|
|
83
83
|
"@atlaskit/link-provider": "^4.3.0",
|
|
84
84
|
"@atlaskit/media-core": "^37.0.0",
|
|
85
85
|
"react": "^18.2.0",
|