@graphql-markdown/printer-legacy 1.1.3 → 1.1.4
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/package.json +2 -2
- package/src/const/mdx.js +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/graphql-markdown/graphql-markdown/issues"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.1.
|
|
8
|
+
"version": "1.1.4",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "src/index.js",
|
|
11
11
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"stryker": "stryker run"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@graphql-markdown/utils": "^1.1.
|
|
25
|
+
"@graphql-markdown/utils": "^1.1.3"
|
|
26
26
|
},
|
|
27
27
|
"directories": {
|
|
28
28
|
"test": "tests"
|
package/src/const/mdx.js
CHANGED
|
@@ -3,5 +3,5 @@ export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5
|
|
|
3
3
|
|
|
4
4
|
export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></>
|
|
5
5
|
|
|
6
|
-
export const Badge = (props) => <><span
|
|
6
|
+
export const Badge = (props) => <><span className={'badge badge--' + props.class}>{props.text}</span></>
|
|
7
7
|
`;
|
package/src/index.js
CHANGED
|
@@ -151,7 +151,7 @@ module.exports = class Printer {
|
|
|
151
151
|
return "";
|
|
152
152
|
}
|
|
153
153
|
const link = this.toLink(type, type.name, category);
|
|
154
|
-
return `[\`${link.text}\`](${link.url}) <Badge
|
|
154
|
+
return `[\`${link.text}\`](${link.url}) <Badge className="secondary" text="${category.singular}"/>`;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
printSection(
|
|
@@ -454,7 +454,7 @@ module.exports = class Printer {
|
|
|
454
454
|
const reason = type.deprecationReason
|
|
455
455
|
? ": " + escapeMDX(type.deprecationReason)
|
|
456
456
|
: "";
|
|
457
|
-
return `<Badge
|
|
457
|
+
return `<Badge className="warning" text="DEPRECATED${reason}"/>${MARKDOWN_EOP}`;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
printDescription(type, noText = NO_DESCRIPTION_TEXT) {
|