@atlaskit/renderer 126.10.0 → 126.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
- package/docs/0-intro.tsx +27 -27
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 126.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c085330e0dde8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c085330e0dde8) -
|
|
8
|
+
Remove new icon button styling hack
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 126.10.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 126.10.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "126.
|
|
74
|
+
var packageVersion = "126.10.1";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "126.
|
|
60
|
+
const packageVersion = "126.10.1";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "126.
|
|
65
|
+
var packageVersion = "126.10.1";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
isNestedRender: boolean;
|
|
8
8
|
onLoadComplete?: LoadCompleteHandler;
|
|
9
9
|
};
|
|
10
|
-
export declare const useLoadAnnotations: ({ adfDocument, isNestedRender, onLoadComplete }: Props) => void;
|
|
10
|
+
export declare const useLoadAnnotations: ({ adfDocument, isNestedRender, onLoadComplete, }: Props) => void;
|
|
11
11
|
export {};
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
isNestedRender: boolean;
|
|
8
8
|
onLoadComplete?: LoadCompleteHandler;
|
|
9
9
|
};
|
|
10
|
-
export declare const useLoadAnnotations: ({ adfDocument, isNestedRender, onLoadComplete }: Props) => void;
|
|
10
|
+
export declare const useLoadAnnotations: ({ adfDocument, isNestedRender, onLoadComplete, }: Props) => void;
|
|
11
11
|
export {};
|
package/docs/0-intro.tsx
CHANGED
|
@@ -19,16 +19,16 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} />, container);
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
21
21
|
${(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
<Example
|
|
23
|
+
// Ignored via go/ees005
|
|
24
|
+
// eslint-disable-next-line import/no-commonjs
|
|
25
|
+
Component={require('../examples/1-with-providers').default}
|
|
26
|
+
title="With Providers"
|
|
27
|
+
// Ignored via go/ees005
|
|
28
|
+
// eslint-disable-next-line import/no-commonjs
|
|
29
|
+
source={require('!!raw-loader!../examples/1-with-providers')}
|
|
30
|
+
/>
|
|
31
|
+
)}
|
|
32
32
|
|
|
33
33
|
## Best practices to prevent performance issues
|
|
34
34
|
|
|
@@ -129,16 +129,16 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} truncated={true} maxHeight={7
|
|
|
129
129
|
`}
|
|
130
130
|
|
|
131
131
|
${(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
132
|
+
<Example
|
|
133
|
+
// Ignored via go/ees005
|
|
134
|
+
// eslint-disable-next-line import/no-commonjs
|
|
135
|
+
Component={require('../examples/15-truncated').default}
|
|
136
|
+
title="Truncated"
|
|
137
|
+
// Ignored via go/ees005
|
|
138
|
+
// eslint-disable-next-line import/no-commonjs
|
|
139
|
+
source={require('!!raw-loader!../examples/15-truncated')}
|
|
140
|
+
/>
|
|
141
|
+
)}
|
|
142
142
|
|
|
143
143
|
## Theming and dark mode support
|
|
144
144
|
To render certain ADF content correctly in different color themes, such as light and dark mode, this package utilise
|
|
@@ -149,12 +149,12 @@ Full light and dark mode support for the Editor is a work in progress. Currently
|
|
|
149
149
|
- Custom table backgrounds
|
|
150
150
|
|
|
151
151
|
${(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
<Props
|
|
153
|
+
heading="Props"
|
|
154
|
+
// Ignored via go/ees005
|
|
155
|
+
// eslint-disable-next-line import/no-commonjs
|
|
156
|
+
props={require('!!extract-react-types-loader!../src/ui/Renderer/index')}
|
|
157
|
+
/>
|
|
158
|
+
)}
|
|
159
159
|
`;
|
|
160
160
|
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "126.10.
|
|
3
|
+
"version": "126.10.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"@atlaskit/media-viewer": "^52.8.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
55
|
-
"@atlaskit/react-ufo": "^5.
|
|
55
|
+
"@atlaskit/react-ufo": "^5.3.0",
|
|
56
56
|
"@atlaskit/smart-card": "^43.25.0",
|
|
57
57
|
"@atlaskit/status": "^3.1.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.2.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^29.1.0",
|
|
61
61
|
"@atlaskit/tokens": "^11.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.14.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^111.
|
|
74
|
+
"@atlaskit/editor-common": "^111.17.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.2.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|