@atlaskit/renderer 109.30.1 → 109.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/react/marks/alignment.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +2 -2
- package/dist/cjs/react/nodes/media/index.js +4 -3
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -2
- package/dist/cjs/react/nodes/panel.js +2 -2
- package/dist/cjs/react/nodes/table/colgroup.js +8 -8
- package/dist/cjs/ui/Expand.js +3 -3
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/Renderer/style.js +9 -9
- package/dist/cjs/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/react/marks/alignment.js +2 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +26 -19
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +9 -9
- package/dist/es2019/react/nodes/media/index.js +16 -15
- package/dist/es2019/react/nodes/multiBodiedExtension.js +24 -24
- package/dist/es2019/react/nodes/panel.js +15 -15
- package/dist/es2019/react/nodes/table/colgroup.js +8 -8
- package/dist/es2019/ui/Expand.js +13 -13
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +575 -585
- package/dist/es2019/ui/annotations/element/mark.js +10 -10
- package/dist/esm/react/marks/alignment.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +2 -2
- package/dist/esm/react/nodes/media/index.js +4 -3
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -2
- package/dist/esm/react/nodes/panel.js +2 -2
- package/dist/esm/react/nodes/table/colgroup.js +8 -8
- package/dist/esm/ui/Expand.js +3 -3
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/style.js +9 -9
- package/dist/esm/ui/annotations/element/mark.js +1 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +1 -2
- package/dist/types/react/nodes/table/colgroup.d.ts +1 -1
- package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types/ui/SmartCardStorage.d.ts +1 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -4
- package/dist/types/ui/TaskItemsFormatContext/index.d.ts +1 -1
- package/dist/types/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types-ts4.5/actions.d.ts +1 -1
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -2
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +1 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +1 -1
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
- package/docs/0-intro.tsx +12 -21
- package/package.json +2 -2
- package/report.api.md +478 -492
|
@@ -12,7 +12,7 @@ type UseAnnotationUpdateSatteByEventProps = {
|
|
|
12
12
|
updateSubscriber: AnnotationUpdateEmitter | null;
|
|
13
13
|
};
|
|
14
14
|
export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
|
|
15
|
-
export declare const useHasFocusEvent: ({ id, updateSubscriber
|
|
15
|
+
export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventProps) => boolean;
|
|
16
16
|
type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
|
|
17
17
|
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, "createAnalyticsEvent" | "updateSubscriber"> & {
|
|
18
18
|
isCommentsOnMediaAnalyticsEnabled?: boolean | undefined;
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
md,
|
|
4
|
-
Example,
|
|
5
|
-
Props,
|
|
6
|
-
code,
|
|
7
|
-
AtlassianInternalWarning,
|
|
8
|
-
} from '@atlaskit/docs';
|
|
2
|
+
import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
9
3
|
|
|
10
4
|
export default md`
|
|
11
5
|
${(<AtlassianInternalWarning />)}
|
|
@@ -24,11 +18,11 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} />, container);
|
|
|
24
18
|
## Example
|
|
25
19
|
|
|
26
20
|
${(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
<Example
|
|
22
|
+
Component={require('../examples/1-with-providers').default}
|
|
23
|
+
title="With Providers"
|
|
24
|
+
source={require('!!raw-loader!../examples/1-with-providers')}
|
|
25
|
+
/>
|
|
32
26
|
)}
|
|
33
27
|
|
|
34
28
|
## Best practices to prevent performance issues
|
|
@@ -130,11 +124,11 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} truncated={true} maxHeight={7
|
|
|
130
124
|
`}
|
|
131
125
|
|
|
132
126
|
${(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
127
|
+
<Example
|
|
128
|
+
Component={require('../examples/15-truncated').default}
|
|
129
|
+
title="Truncated"
|
|
130
|
+
source={require('!!raw-loader!../examples/15-truncated')}
|
|
131
|
+
/>
|
|
138
132
|
)}
|
|
139
133
|
|
|
140
134
|
## Theming and dark mode support
|
|
@@ -146,9 +140,6 @@ Full light and dark mode support for the Editor is a work in progress. Currently
|
|
|
146
140
|
- Custom table backgrounds
|
|
147
141
|
|
|
148
142
|
${(
|
|
149
|
-
|
|
150
|
-
heading="Props"
|
|
151
|
-
props={require('!!extract-react-types-loader!../src/ui/Renderer/index')}
|
|
152
|
-
/>
|
|
143
|
+
<Props heading="Props" props={require('!!extract-react-types-loader!../src/ui/Renderer/index')} />
|
|
153
144
|
)}
|
|
154
145
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.
|
|
3
|
+
"version": "109.31.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
32
32
|
"@atlaskit/button": "^17.17.0",
|
|
33
33
|
"@atlaskit/code": "^15.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^81.
|
|
34
|
+
"@atlaskit/editor-common": "^81.2.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.13.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "4.0.1",
|