@atlaskit/renderer 125.4.0 → 126.0.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 +18 -0
- package/afm-products/tsconfig.json +1 -1
- package/dist/cjs/react/index.js +15 -5
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/tableNew.js +6 -2
- package/dist/cjs/react/utils/merge-inlined-extension.js +92 -0
- package/dist/cjs/ui/MediaCard.js +2 -3
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +12 -11
- package/dist/cjs/ui/Renderer/index.js +3 -2
- package/dist/es2019/react/index.js +15 -5
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/tableNew.js +6 -2
- package/dist/es2019/react/utils/merge-inlined-extension.js +75 -0
- package/dist/es2019/ui/MediaCard.js +2 -3
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +12 -11
- package/dist/es2019/ui/Renderer/index.js +3 -2
- package/dist/esm/react/index.js +15 -5
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/esm/react/nodes/tableNew.js +6 -2
- package/dist/esm/react/utils/merge-inlined-extension.js +86 -0
- package/dist/esm/ui/MediaCard.js +2 -3
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +12 -11
- package/dist/esm/ui/Renderer/index.js +3 -2
- package/dist/types/react/index.d.ts +4 -3
- package/dist/types/react/utils/merge-inlined-extension.d.ts +25 -0
- package/dist/types/ui/renderer-props.d.ts +7 -1
- package/dist/types-ts4.5/react/index.d.ts +4 -3
- package/dist/types-ts4.5/react/utils/merge-inlined-extension.d.ts +25 -0
- package/dist/types-ts4.5/ui/renderer-props.d.ts +7 -1
- package/docs/0-intro.tsx +30 -28
- package/package.json +3 -3
- package/build/tsconfig.json +0 -23
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
const _default_1: any = md`
|
|
5
6
|
${(<AtlassianInternalWarning />)}
|
|
6
7
|
|
|
7
8
|
This component provides a renderer for ADF documents.
|
|
@@ -18,16 +19,16 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} />, container);
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
20
21
|
${(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
)}
|
|
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
|
+
)}
|
|
31
32
|
|
|
32
33
|
## Best practices to prevent performance issues
|
|
33
34
|
|
|
@@ -128,16 +129,16 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} truncated={true} maxHeight={7
|
|
|
128
129
|
`}
|
|
129
130
|
|
|
130
131
|
${(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
)}
|
|
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
|
+
)}
|
|
141
142
|
|
|
142
143
|
## Theming and dark mode support
|
|
143
144
|
To render certain ADF content correctly in different color themes, such as light and dark mode, this package utilise
|
|
@@ -148,11 +149,12 @@ Full light and dark mode support for the Editor is a work in progress. Currently
|
|
|
148
149
|
- Custom table backgrounds
|
|
149
150
|
|
|
150
151
|
${(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
)}
|
|
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
|
+
)}
|
|
158
159
|
`;
|
|
160
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "126.0.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,8 +57,8 @@
|
|
|
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": "^16.
|
|
61
|
-
"@atlaskit/tokens": "^
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
61
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.14.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
package/build/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"paths": {}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"../src/**/*.ts",
|
|
10
|
-
"../src/**/*.tsx"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*",
|
|
16
|
-
"../src/**/examples.*",
|
|
17
|
-
"../src/**/examples/*",
|
|
18
|
-
"../src/**/examples/**/*",
|
|
19
|
-
"../src/**/*.stories.*",
|
|
20
|
-
"../src/**/stories/*",
|
|
21
|
-
"../src/**/stories/**/*"
|
|
22
|
-
]
|
|
23
|
-
}
|