File tree 3 files changed +18
-20
lines changed
3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 20
20
"@rjsf/core" : " ^5.6.2" ,
21
21
"@rjsf/utils" : " ^5.6.2" ,
22
22
"@rjsf/validator-ajv8" : " ^5.6.2" ,
23
- "@stoplight/json-schema-viewer" : " ^4.9.0" ,
24
23
"@stoplight/markdown-viewer" : " ^5" ,
25
24
"@stoplight/mosaic" : " ^1.32" ,
26
25
"@stoplight/mosaic-code-viewer" : " ^1.32" ,
29
28
"jest-transform-css" : " ^2.0.0" ,
30
29
"json-schema" : " ^0.2.3" ,
31
30
"lodash" : " ^4.17.15" ,
31
+ "mm-json-schema-viewer" : " ^0.0.1" ,
32
32
"qs" : " ^6.11.1" ,
33
33
"react-markdown" : " ^8.0.7" ,
34
34
"react-syntax-highlighter" : " ^15.4.3"
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import ReactMarkdown from "react-markdown";
4
4
import { ContentDescriptorObject } from "@open-rpc/meta-schema" ;
5
5
import "./ContentDescriptor.css" ;
6
6
import MarkdownDescription from "../MarkdownDescription/MarkdownDescription" ;
7
- import { JsonSchemaViewer } from "@stoplight/json-schema-viewer" ;
8
-
7
+ import { JsonSchemaViewer } from "mm-json-schema-viewer/dist/index" ;
9
8
10
9
interface IProps {
11
10
contentDescriptor ?: ContentDescriptorObject ;
@@ -20,21 +19,20 @@ class ContentDescriptor extends Component<IProps> {
20
19
const entries = Object . entries ( contentDescriptor ) ;
21
20
if ( entries . length === 0 ) { return null ; }
22
21
return (
23
- < >
22
+ < div style = { { paddingLeft : 'var(--ifm-list-left-padding)' } } >
24
23
{ contentDescriptor . description &&
25
24
< MarkdownDescription
26
25
uiSchema = { uiSchema }
27
26
source = { contentDescriptor . description }
28
27
className = "content-descriptor-description"
29
28
/>
30
29
}
31
- < h4 style = { { marginBottom : "0px" } } > Schema:</ h4 >
32
30
{ contentDescriptor . schema &&
33
31
< JsonSchemaViewer
34
32
schema = { contentDescriptor . schema }
35
33
/>
36
34
}
37
- </ >
35
+ </ div >
38
36
) ;
39
37
40
38
/* return (
Original file line number Diff line number Diff line change 859
859
" @types/json-schema" " ^7.0.7"
860
860
magic-error "0.0.1"
861
861
862
- " @stoplight/json-schema-viewer@^4.9.0 " :
863
- version "4.9.0"
864
- resolved "https://registry.yarnpkg.com/@stoplight/json-schema-viewer/-/json-schema-viewer-4.9.0.tgz#3009e6a9af77756017f48ea3f1ee3e3012f63da0"
865
- integrity sha512-xuOt1FFeFxiy/bJrD0++9rjKY0NlaxH7y6jDZGCMGmH0y2vykpC2ZbHji+ol7/rB5TvVp7oE0NwlpK8TVizinw==
866
- dependencies :
867
- " @stoplight/json" " ^3.20.1"
868
- " @stoplight/json-schema-tree" " ^2.2.2"
869
- " @stoplight/react-error-boundary" " ^2.0.0"
870
- " @types/json-schema" " ^7.0.7"
871
- classnames "^2.2.6"
872
- fnv-plus "^1.3.1"
873
- jotai "^1.4.5"
874
- lodash "^4.17.19"
875
-
876
862
" @stoplight/json@^3.12.0" , "@stoplight/json@^3.20.1":
877
863
version "3.20.2"
878
864
resolved "https://registry.yarnpkg.com/@stoplight/json/-/json-3.20.2.tgz#466ba5c6381cfd141f1726439442fbd579804c8e"
@@ -3800,6 +3786,20 @@ mkdirp@^0.5.1:
3800
3786
dependencies :
3801
3787
minimist "^1.2.6"
3802
3788
3789
+ mm-json-schema-viewer@^0.0.1 :
3790
+ version "0.0.1"
3791
+ resolved "https://registry.yarnpkg.com/mm-json-schema-viewer/-/mm-json-schema-viewer-0.0.1.tgz#995b60f211ecfeee604fa24cc965340a251f8ad3"
3792
+ integrity sha512-Nmly2cwMyIxNIBEPO7Bu9TzcdeuL0gj3ogfB+SWZPGjiXqwHBphMHkR2uPgnL+RPDycs6bS8j/qXDkMN8FYWPw==
3793
+ dependencies :
3794
+ " @stoplight/json" " ^3.20.1"
3795
+ " @stoplight/json-schema-tree" " ^2.2.2"
3796
+ " @stoplight/react-error-boundary" " ^2.0.0"
3797
+ " @types/json-schema" " ^7.0.7"
3798
+ classnames "^2.2.6"
3799
+ fnv-plus "^1.3.1"
3800
+ jotai "^1.4.5"
3801
+ lodash "^4.17.19"
3802
+
3803
3803
mri@^1.1.0 :
3804
3804
version "1.2.0"
3805
3805
resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
You can’t perform that action at this time.
0 commit comments