@graphql-markdown/printer-legacy 1.12.3 → 1.12.5
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/dist/badge.d.ts +4 -3
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +2 -2
- package/dist/code.d.ts +2 -1
- package/dist/code.d.ts.map +1 -0
- package/dist/code.js +24 -22
- package/dist/common.d.ts +7 -8
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +3 -5
- package/dist/const/options.d.ts +2 -1
- package/dist/const/options.d.ts.map +1 -0
- package/dist/const/strings.d.ts +1 -0
- package/dist/const/strings.d.ts.map +1 -0
- package/dist/directive.d.ts +4 -3
- package/dist/directive.d.ts.map +1 -0
- package/dist/directive.js +7 -8
- package/dist/example.d.ts +1 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/format-helpers.d.ts +42 -0
- package/dist/format-helpers.d.ts.map +1 -0
- package/dist/format-helpers.js +74 -0
- package/dist/formatter.d.ts +28 -0
- package/dist/formatter.d.ts.map +1 -0
- package/dist/formatter.js +63 -0
- package/dist/frontmatter.d.ts +1 -0
- package/dist/frontmatter.d.ts.map +1 -0
- package/dist/graphql/directive.d.ts +3 -2
- package/dist/graphql/directive.d.ts.map +1 -0
- package/dist/graphql/directive.js +1 -1
- package/dist/graphql/enum.d.ts +3 -2
- package/dist/graphql/enum.d.ts.map +1 -0
- package/dist/graphql/index.d.ts +1 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/input.d.ts +2 -1
- package/dist/graphql/input.d.ts.map +1 -0
- package/dist/graphql/input.js +2 -1
- package/dist/graphql/interface.d.ts +2 -1
- package/dist/graphql/interface.d.ts.map +1 -0
- package/dist/graphql/interface.js +2 -1
- package/dist/graphql/object.d.ts +1 -0
- package/dist/graphql/object.d.ts.map +1 -0
- package/dist/graphql/operation.d.ts +4 -3
- package/dist/graphql/operation.d.ts.map +1 -0
- package/dist/graphql/operation.js +3 -3
- package/dist/graphql/scalar.d.ts +4 -3
- package/dist/graphql/scalar.d.ts.map +1 -0
- package/dist/graphql/union.d.ts +3 -2
- package/dist/graphql/union.d.ts.map +1 -0
- package/dist/group.d.ts +3 -2
- package/dist/group.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/link.d.ts +5 -7
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +12 -13
- package/dist/mdx/index.d.ts +2 -1
- package/dist/mdx/index.d.ts.map +1 -0
- package/dist/mdx/index.js +2 -2
- package/dist/printer.d.ts +8 -12
- package/dist/printer.d.ts.map +1 -0
- package/dist/printer.js +24 -25
- package/dist/relation.d.ts +8 -7
- package/dist/relation.d.ts.map +1 -0
- package/dist/relation.js +9 -9
- package/dist/section.d.ts +5 -4
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +1 -1
- package/package.json +9 -9
package/dist/section.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type { MDXString, PrintTypeOptions } from "@graphql-markdown/types";
|
|
|
13
13
|
*
|
|
14
14
|
* @template T - Type of the GraphQL element being printed
|
|
15
15
|
*/
|
|
16
|
-
export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) =>
|
|
16
|
+
export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) => string | MDXString;
|
|
17
17
|
/**
|
|
18
18
|
* Prints an array of section items with consistent formatting.
|
|
19
19
|
*
|
|
@@ -23,7 +23,7 @@ export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) =
|
|
|
23
23
|
*
|
|
24
24
|
* @template V - Type of the values being printed
|
|
25
25
|
*/
|
|
26
|
-
export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeOptions) =>
|
|
26
|
+
export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeOptions) => string | MDXString;
|
|
27
27
|
/**
|
|
28
28
|
* Prints a complete section with title and content.
|
|
29
29
|
*
|
|
@@ -34,7 +34,7 @@ export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeO
|
|
|
34
34
|
*
|
|
35
35
|
* @template V - Type of the values being printed
|
|
36
36
|
*/
|
|
37
|
-
export declare const printSection: <V>(values: V[] | readonly V[], section: string, options: PrintTypeOptions) =>
|
|
37
|
+
export declare const printSection: <V>(values: V[] | readonly V[], section: string, options: PrintTypeOptions) => string | MDXString;
|
|
38
38
|
/**
|
|
39
39
|
* Prints a metadata section with special handling for deprecated items.
|
|
40
40
|
*
|
|
@@ -47,4 +47,5 @@ export declare const printSection: <V>(values: V[] | readonly V[], section: stri
|
|
|
47
47
|
* @template T - Type of the parent element
|
|
48
48
|
* @template V - Type of the values being printed
|
|
49
49
|
*/
|
|
50
|
-
export declare const printMetadataSection: <T, V>(type: T, values: V | V[] | readonly V[], section: string, options: PrintTypeOptions) =>
|
|
50
|
+
export declare const printMetadataSection: <T, V>(type: T, values: V | V[] | readonly V[], section: string, options: PrintTypeOptions) => string | MDXString;
|
|
51
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAEV,SAAS,EACT,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAYjC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,2DAuCjC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,mEAuBlC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,+FAqC7B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,CAAC,4GAsDxC,CAAC"}
|
package/dist/section.js
CHANGED
|
@@ -44,7 +44,7 @@ const printSectionItem = (type, options) => {
|
|
|
44
44
|
section += (0, exports.printSectionItems)(type.args, {
|
|
45
45
|
...options,
|
|
46
46
|
level: 5,
|
|
47
|
-
parentType:
|
|
47
|
+
parentType: options.parentType === undefined
|
|
48
48
|
? type.name
|
|
49
49
|
: `${options.parentType}.${type.name}`,
|
|
50
50
|
});
|
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.12.
|
|
8
|
+
"version": "1.12.5",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -49,18 +49,17 @@
|
|
|
49
49
|
"./package.json": "./package.json"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"prepack": "pinst --disable",
|
|
53
|
-
"postpack": "pinst --enable",
|
|
54
52
|
"stryker": "stryker run",
|
|
55
|
-
"clean": "rm -rf ./dist",
|
|
56
|
-
"docs": "typedoc"
|
|
53
|
+
"clean": "tsgo --build --clean && rm -rf ./dist",
|
|
54
|
+
"docs": "typedoc",
|
|
55
|
+
"build": "tsgo --build"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
58
|
"@graphql-markdown/graphql": "^1.1.9",
|
|
60
|
-
"@graphql-markdown/utils": "^1.9.
|
|
59
|
+
"@graphql-markdown/utils": "^1.9.1"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@graphql-markdown/types": "^1.
|
|
62
|
+
"@graphql-markdown/types": "^1.9.0"
|
|
64
63
|
},
|
|
65
64
|
"resolutions": {
|
|
66
65
|
"micromatch": "4.0.8"
|
|
@@ -69,11 +68,12 @@
|
|
|
69
68
|
"test": "tests"
|
|
70
69
|
},
|
|
71
70
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
71
|
+
"node": ">=20"
|
|
73
72
|
},
|
|
74
73
|
"publishConfig": {
|
|
75
74
|
"directory": "dist",
|
|
76
|
-
"access": "public"
|
|
75
|
+
"access": "public",
|
|
76
|
+
"scripts": {}
|
|
77
77
|
},
|
|
78
78
|
"typescript": {
|
|
79
79
|
"definition": "dist/index.d.ts"
|