@graphql-markdown/printer-legacy 1.19.2 → 1.19.3

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.
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.printCodeUnion = exports.printUnionMetadata = void 0;
8
8
  const graphql_1 = require("@graphql-markdown/graphql");
9
- const section_1 = require("../section");
9
+ const section_ts_1 = require("../section.js");
10
10
  /**
11
11
  * Generates metadata documentation for a GraphQL Union type.
12
12
  * @param type - The GraphQL type to process
@@ -17,7 +17,7 @@ const printUnionMetadata = (type, options) => {
17
17
  if (!(0, graphql_1.isUnionType)(type)) {
18
18
  return undefined;
19
19
  }
20
- return (0, section_1.printSection)(type.getTypes(), "Possible types", {
20
+ return (0, section_ts_1.printSection)(type.getTypes(), "Possible types", {
21
21
  ...options,
22
22
  parentType: type.name,
23
23
  });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { Printer } from "./printer";
2
- export { buildCustomDirectiveDecorators, RESERVED_SECTION_NAMES, } from "./decorator";
3
- export { PrintCodeEvent, PrintTypeEvent, BeforeComposePageTypeEvent, } from "./events";
4
- export type { PageSection, PageSections, PrintCodeEventData, PrintTypeEventData, ComposePageTypeEventData, } from "./events";
1
+ export { Printer } from "./printer.ts";
2
+ export { buildCustomDirectiveDecorators, RESERVED_SECTION_NAMES, } from "./decorator.ts";
3
+ export { PrintCodeEvent, PrintTypeEvent, BeforeComposePageTypeEvent, } from "./events.ts";
4
+ export type { PageSection, PageSections, PrintCodeEventData, PrintTypeEventData, ComposePageTypeEventData, } from "./events.ts";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BeforeComposePageTypeEvent = exports.PrintTypeEvent = exports.PrintCodeEvent = exports.RESERVED_SECTION_NAMES = exports.buildCustomDirectiveDecorators = exports.Printer = void 0;
4
- var printer_1 = require("./printer");
5
- Object.defineProperty(exports, "Printer", { enumerable: true, get: function () { return printer_1.Printer; } });
6
- var decorator_1 = require("./decorator");
7
- Object.defineProperty(exports, "buildCustomDirectiveDecorators", { enumerable: true, get: function () { return decorator_1.buildCustomDirectiveDecorators; } });
8
- Object.defineProperty(exports, "RESERVED_SECTION_NAMES", { enumerable: true, get: function () { return decorator_1.RESERVED_SECTION_NAMES; } });
9
- var events_1 = require("./events");
10
- Object.defineProperty(exports, "PrintCodeEvent", { enumerable: true, get: function () { return events_1.PrintCodeEvent; } });
11
- Object.defineProperty(exports, "PrintTypeEvent", { enumerable: true, get: function () { return events_1.PrintTypeEvent; } });
12
- Object.defineProperty(exports, "BeforeComposePageTypeEvent", { enumerable: true, get: function () { return events_1.BeforeComposePageTypeEvent; } });
4
+ var printer_ts_1 = require("./printer.js");
5
+ Object.defineProperty(exports, "Printer", { enumerable: true, get: function () { return printer_ts_1.Printer; } });
6
+ var decorator_ts_1 = require("./decorator.js");
7
+ Object.defineProperty(exports, "buildCustomDirectiveDecorators", { enumerable: true, get: function () { return decorator_ts_1.buildCustomDirectiveDecorators; } });
8
+ Object.defineProperty(exports, "RESERVED_SECTION_NAMES", { enumerable: true, get: function () { return decorator_ts_1.RESERVED_SECTION_NAMES; } });
9
+ var events_ts_1 = require("./events.js");
10
+ Object.defineProperty(exports, "PrintCodeEvent", { enumerable: true, get: function () { return events_ts_1.PrintCodeEvent; } });
11
+ Object.defineProperty(exports, "PrintTypeEvent", { enumerable: true, get: function () { return events_ts_1.PrintTypeEvent; } });
12
+ Object.defineProperty(exports, "BeforeComposePageTypeEvent", { enumerable: true, get: function () { return events_ts_1.BeforeComposePageTypeEvent; } });
package/dist/link.js CHANGED
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.printParentLink = exports.printLink = exports.printLinkAttributes = exports.getRelationLink = exports.toLink = exports.getLinkApiGroupFolder = exports.hasOptionParentType = exports.hasOptionWithAttributes = exports.getLinkCategoryFolder = exports.getCategoryLocale = exports.hasPrintableDirective = exports.API_GROUPS = void 0;
9
9
  const graphql_1 = require("@graphql-markdown/graphql");
10
10
  const utils_1 = require("@graphql-markdown/utils");
11
- const group_1 = require("./group");
12
- const strings_1 = require("./const/strings");
13
- const options_1 = require("./const/options");
11
+ const group_ts_1 = require("./group.js");
12
+ const strings_ts_1 = require("./const/strings.js");
13
+ const options_ts_1 = require("./const/options.js");
14
14
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
15
15
  exports.API_GROUPS = {
16
16
  operations: "operations",
@@ -51,21 +51,21 @@ exports.hasPrintableDirective = hasPrintableDirective;
51
51
  const getCategoryLocale = (type) => {
52
52
  switch (true) {
53
53
  case (0, graphql_1.isDirectiveType)(type):
54
- return strings_1.ROOT_TYPE_LOCALE.DIRECTIVE;
54
+ return strings_ts_1.ROOT_TYPE_LOCALE.DIRECTIVE;
55
55
  case (0, graphql_1.isEnumType)(type):
56
- return strings_1.ROOT_TYPE_LOCALE.ENUM;
56
+ return strings_ts_1.ROOT_TYPE_LOCALE.ENUM;
57
57
  case (0, graphql_1.isInputType)(type):
58
- return strings_1.ROOT_TYPE_LOCALE.INPUT;
58
+ return strings_ts_1.ROOT_TYPE_LOCALE.INPUT;
59
59
  case (0, graphql_1.isInterfaceType)(type):
60
- return strings_1.ROOT_TYPE_LOCALE.INTERFACE;
60
+ return strings_ts_1.ROOT_TYPE_LOCALE.INTERFACE;
61
61
  case (0, graphql_1.isObjectType)(type):
62
- return strings_1.ROOT_TYPE_LOCALE.TYPE;
62
+ return strings_ts_1.ROOT_TYPE_LOCALE.TYPE;
63
63
  case (0, graphql_1.isOperation)(type):
64
- return strings_1.ROOT_TYPE_LOCALE.OPERATION;
64
+ return strings_ts_1.ROOT_TYPE_LOCALE.OPERATION;
65
65
  case (0, graphql_1.isScalarType)(type):
66
- return strings_1.ROOT_TYPE_LOCALE.SCALAR;
66
+ return strings_ts_1.ROOT_TYPE_LOCALE.SCALAR;
67
67
  case (0, graphql_1.isUnionType)(type):
68
- return strings_1.ROOT_TYPE_LOCALE.UNION;
68
+ return strings_ts_1.ROOT_TYPE_LOCALE.UNION;
69
69
  }
70
70
  return undefined;
71
71
  };
@@ -84,7 +84,7 @@ const getLinkCategoryFolder = (type, operationLocale) => {
84
84
  return undefined;
85
85
  }
86
86
  // special case for relation map
87
- if (categoryLocale === strings_1.ROOT_TYPE_LOCALE.OPERATION) {
87
+ if (categoryLocale === strings_ts_1.ROOT_TYPE_LOCALE.OPERATION) {
88
88
  if (!operationLocale) {
89
89
  return undefined;
90
90
  }
@@ -146,7 +146,7 @@ exports.getLinkApiGroupFolder = getLinkApiGroupFolder;
146
146
  * @returns The folder name for deprecated types
147
147
  */
148
148
  const getLinkDeprecatedFolder = (type, option) => {
149
- return option === "group" && (0, graphql_1.isDeprecated)(type) ? strings_1.DEPRECATED : "";
149
+ return option === "group" && (0, graphql_1.isDeprecated)(type) ? strings_ts_1.DEPRECATED : "";
150
150
  };
151
151
  const isHierarchy = (options, hierarchy) => {
152
152
  return options?.hierarchy?.[hierarchy] !== undefined;
@@ -201,7 +201,7 @@ const toLink = (type, name, operation, options) => {
201
201
  // GraphQL overload resolution can include a void branch in this monorepo; runtime value is a named type here.
202
202
  // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
203
203
  const graphQLNamedType = (0, graphql_1.getNamedType)(type);
204
- const isFlat = isHierarchy(options, options_1.TypeHierarchy.FLAT);
204
+ const isFlat = isHierarchy(options, options_ts_1.TypeHierarchy.FLAT);
205
205
  // Under flat hierarchy there are no folders to keep same-named entities of
206
206
  // different kinds apart (a `type User` and a `Query.user` field both
207
207
  // slugify to "user") — `renderer.ts`'s `renderTypeEntities` prefixes the
@@ -222,9 +222,9 @@ const toLink = (type, name, operation, options) => {
222
222
  ? getLinkDeprecatedFolder(type, options.deprecated)
223
223
  : "";
224
224
  groupFolder = options.groups
225
- ? (0, group_1.getGroup)(type, options.groups, category)
225
+ ? (0, group_ts_1.getGroup)(type, options.groups, category)
226
226
  : "";
227
- apiGroupFolder = isHierarchy(options, options_1.TypeHierarchy.API)
227
+ apiGroupFolder = isHierarchy(options, options_ts_1.TypeHierarchy.API)
228
228
  ? (0, exports.getLinkApiGroupFolder)(type)
229
229
  : "";
230
230
  }
package/dist/printer.d.ts CHANGED
@@ -8,8 +8,8 @@
8
8
  * @packageDocumentation
9
9
  */
10
10
  import type { Badge, Formatter, GraphQLSchema, IPrinter, Maybe, MDXString, PageSection, PrinterEventEmitter, PrinterInitOptions, PrintTypeOptions } from "@graphql-markdown/types";
11
- import { printDescription } from "./common";
12
- import { printDecorators } from "./decorator";
11
+ import { printDescription } from "./common.ts";
12
+ import { printDecorators } from "./decorator.ts";
13
13
  /**
14
14
  * The Printer class implements the core functionality for generating Markdown documentation
15
15
  * from GraphQL schema types.
@@ -1 +1 @@
1
- {"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../src/printer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,KAAK,EAEL,SAAS,EACT,aAAa,EACb,QAAQ,EACR,KAAK,EACL,SAAS,EACT,WAAW,EAEX,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AAiDjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAIL,eAAe,EAEhB,MAAM,aAAa,CAAC;AAsFrB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,OAAQ,YAAW,QAAQ;IACtC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,0BAAoB;IAEpD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,eAAe,yBAAmB;IAElD,OAAO,CAAC,MAAM,CAAC,aAAa,CAA6B;IAEzD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAoC;IAE3D,OAAO,CAAC,MAAM,CAAC,eAAe,CAA0B;IAExD;;OAEG;IACH,MAAM,KAAK,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAEtD;IAED;;;;OAIG;IACH,MAAM,KAAK,YAAY,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAEpD;IAED;;OAEG;IACH,MAAM,KAAK,cAAc,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAEnD;IAED,MAAM,KAAK,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,EAE5D;IAED,MAAM,KAAK,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,EAE/D;IAED,MAAM,KAAK,cAAc,CAAC,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAA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CAAC,SAAS,CAAC,CAAC,CAqH1B;IAEF;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAsDvC;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAO9C;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,CAO7C;IAEF;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,CAgBlD;IAEF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAY1C;CACH"}
package/dist/printer.js CHANGED
@@ -37,17 +37,17 @@ const TYPE_PAGE_SECTION_ORDER = [
37
37
  ];
38
38
  const graphql_1 = require("@graphql-markdown/graphql");
39
39
  const utils_1 = require("@graphql-markdown/utils");
40
- const relation_1 = require("./relation");
41
- const badge_1 = require("./badge");
42
- const common_1 = require("./common");
43
- const decorator_1 = require("./decorator");
44
- const frontmatter_1 = require("./frontmatter");
45
- const graphql_2 = require("./graphql");
46
- const link_1 = require("./link");
47
- const strings_1 = require("./const/strings");
48
- const formatter_1 = require("./formatter");
49
- const options_1 = require("./const/options");
50
- const events_1 = require("./events");
40
+ const relation_ts_1 = require("./relation.js");
41
+ const badge_ts_1 = require("./badge.js");
42
+ const common_ts_1 = require("./common.js");
43
+ const decorator_ts_1 = require("./decorator.js");
44
+ const frontmatter_ts_1 = require("./frontmatter.js");
45
+ const index_ts_1 = require("./graphql/index.js");
46
+ const link_ts_1 = require("./link.js");
47
+ const strings_ts_1 = require("./const/strings.js");
48
+ const formatter_ts_1 = require("./formatter.js");
49
+ const options_ts_1 = require("./const/options.js");
50
+ const events_ts_1 = require("./events.js");
51
51
  /**
52
52
  * Default initialization options for the Printer class.
53
53
  * @internal
@@ -110,11 +110,11 @@ class Printer {
110
110
  /**
111
111
  * Prints type descriptions
112
112
  */
113
- static printDescription = common_1.printDescription;
113
+ static printDescription = common_ts_1.printDescription;
114
114
  /**
115
115
  * Prints predicate-driven decorators
116
116
  */
117
- static printDecorators = decorator_1.printDecorators;
117
+ static printDecorators = decorator_ts_1.printDecorators;
118
118
  static _eventEmitter;
119
119
  static _options;
120
120
  static _mdxDeclaration;
@@ -163,7 +163,7 @@ class Printer {
163
163
  Printer.eventEmitter = eventEmitter ?? null;
164
164
  if (Printer.options === undefined) {
165
165
  Printer.options = {
166
- ...options_1.DEFAULT_OPTIONS,
166
+ ...options_ts_1.DEFAULT_OPTIONS,
167
167
  basePath: utils_1.pathUrl.join(linkRoot ?? "", baseURL ?? ""),
168
168
  decorators,
169
169
  exampleSection: typeof printTypeOptions?.exampleSection === "object"
@@ -171,21 +171,21 @@ class Printer {
171
171
  : undefined,
172
172
  groups,
173
173
  parentTypePrefix: printTypeOptions?.parentTypePrefix ??
174
- options_1.PRINT_TYPE_DEFAULT_OPTIONS.parentTypePrefix,
174
+ options_ts_1.PRINT_TYPE_DEFAULT_OPTIONS.parentTypePrefix,
175
175
  deprecated: printTypeOptions?.deprecated ??
176
176
  deprecated ??
177
- options_1.PRINT_TYPE_DEFAULT_OPTIONS.deprecated,
177
+ options_ts_1.PRINT_TYPE_DEFAULT_OPTIONS.deprecated,
178
178
  schema,
179
179
  onlyDocDirectives: onlyDocDirectives ?? [],
180
180
  skipDocDirectives: skipDocDirectives ?? [],
181
- sectionHeaderId: sectionHeaderId ?? options_1.DEFAULT_OPTIONS.sectionHeaderId,
182
- typeBadges: printTypeOptions?.typeBadges ?? options_1.PRINT_TYPE_DEFAULT_OPTIONS.typeBadges,
181
+ sectionHeaderId: sectionHeaderId ?? options_ts_1.DEFAULT_OPTIONS.sectionHeaderId,
182
+ typeBadges: printTypeOptions?.typeBadges ?? options_ts_1.PRINT_TYPE_DEFAULT_OPTIONS.typeBadges,
183
183
  metatags: metatags ?? [],
184
184
  hierarchy: normalizeHierarchy(printTypeOptions?.hierarchy) ??
185
- options_1.PRINT_TYPE_DEFAULT_OPTIONS.hierarchy,
185
+ options_ts_1.PRINT_TYPE_DEFAULT_OPTIONS.hierarchy,
186
186
  meta: meta,
187
187
  // Merge formatter functions: default formatter with any overrides
188
- ...(0, formatter_1.createDefaultFormatter)(),
188
+ ...(0, formatter_ts_1.createDefaultFormatter)(),
189
189
  ...formatter,
190
190
  };
191
191
  Printer.mdxDeclaration = mdxDeclaration ?? "";
@@ -201,10 +201,10 @@ class Printer {
201
201
  */
202
202
  static printHeader = (id, title, options) => {
203
203
  if (options.frontMatter === false) {
204
- return `# ${title}${strings_1.MARKDOWN_EOP}`;
204
+ return `# ${title}${strings_ts_1.MARKDOWN_EOP}`;
205
205
  }
206
- const fmOptions = options.frontMatter ?? options_1.DEFAULT_OPTIONS.frontMatter;
207
- return (0, frontmatter_1.printFrontMatter)(title, { ...fmOptions, id }, options);
206
+ const fmOptions = options.frontMatter ?? options_ts_1.DEFAULT_OPTIONS.frontMatter;
207
+ return (0, frontmatter_ts_1.printFrontMatter)(title, { ...fmOptions, id }, options);
208
208
  };
209
209
  /**
210
210
  * Prints the GraphQL type definition as code block
@@ -217,33 +217,33 @@ class Printer {
217
217
  let code;
218
218
  switch (true) {
219
219
  case (0, graphql_1.isOperation)(type):
220
- code = (0, graphql_2.printCodeOperation)(type, options);
220
+ code = (0, index_ts_1.printCodeOperation)(type, options);
221
221
  break;
222
222
  case (0, graphql_1.isEnumType)(type):
223
- code = (0, graphql_2.printCodeEnum)(type, options);
223
+ code = (0, index_ts_1.printCodeEnum)(type, options);
224
224
  break;
225
225
  case (0, graphql_1.isUnionType)(type):
226
- code = (0, graphql_2.printCodeUnion)(type, options);
226
+ code = (0, index_ts_1.printCodeUnion)(type, options);
227
227
  break;
228
228
  case (0, graphql_1.isInterfaceType)(type):
229
- code = (0, graphql_2.printCodeInterface)(type, options);
229
+ code = (0, index_ts_1.printCodeInterface)(type, options);
230
230
  break;
231
231
  case (0, graphql_1.isObjectType)(type):
232
- code = (0, graphql_2.printCodeObject)(type, options);
232
+ code = (0, index_ts_1.printCodeObject)(type, options);
233
233
  break;
234
234
  case (0, graphql_1.isInputType)(type):
235
- code = (0, graphql_2.printCodeInput)(type, options);
235
+ code = (0, index_ts_1.printCodeInput)(type, options);
236
236
  break;
237
237
  case (0, graphql_1.isScalarType)(type):
238
- code = (0, graphql_2.printCodeScalar)(type, options);
238
+ code = (0, index_ts_1.printCodeScalar)(type, options);
239
239
  break;
240
240
  case (0, graphql_1.isDirectiveType)(type):
241
- code = (0, graphql_2.printCodeDirective)(type, options);
241
+ code = (0, index_ts_1.printCodeDirective)(type, options);
242
242
  break;
243
243
  default:
244
244
  code = `"${(0, graphql_1.getTypeName)(type)}" not supported`;
245
245
  }
246
- return strings_1.MARKDOWN_SOC + code.trim() + strings_1.MARKDOWN_EOC;
246
+ return strings_ts_1.MARKDOWN_SOC + code.trim() + strings_ts_1.MARKDOWN_EOC;
247
247
  };
248
248
  /**
249
249
  * Formats a single badge into MDX string format
@@ -255,7 +255,7 @@ class Printer {
255
255
  * otherwise
256
256
  */
257
257
  static printBadge = (badge, options) => {
258
- return (0, badge_1.printBadge)(badge, options);
258
+ return (0, badge_ts_1.printBadge)(badge, options);
259
259
  };
260
260
  /**
261
261
  * Prints the GraphQL type definition as code block with event emission support.
@@ -283,7 +283,7 @@ class Printer {
283
283
  // Create mutable event data - handlers can modify options
284
284
  const eventData = { type, typeName, options: { ...options } };
285
285
  // Emit BEFORE event - handlers can modify inputs or prevent default
286
- const beforeEvent = new events_1.PrintCodeEvent(eventData, "");
286
+ const beforeEvent = new events_ts_1.PrintCodeEvent(eventData, "");
287
287
  await Printer.eventEmitter.emitAsync(PrintTypeEvents.BEFORE_PRINT_CODE, beforeEvent);
288
288
  // If prevented, handlers should have set the output they want
289
289
  if (beforeEvent.defaultPrevented) {
@@ -292,7 +292,7 @@ class Printer {
292
292
  // Generate code using the (potentially modified) options from event data
293
293
  const output = Printer.printCode(type, eventData.options);
294
294
  // Emit AFTER event - handlers can modify the output
295
- const afterEvent = new events_1.PrintCodeEvent(eventData, output);
295
+ const afterEvent = new events_ts_1.PrintCodeEvent(eventData, output);
296
296
  await Printer.eventEmitter.emitAsync(PrintTypeEvents.AFTER_PRINT_CODE, afterEvent);
297
297
  return afterEvent.output;
298
298
  };
@@ -304,7 +304,7 @@ class Printer {
304
304
  * @returns Example page section or undefined when no example is available
305
305
  */
306
306
  static printExample = (type, options) => {
307
- return (0, decorator_1.printDecorator)(type, (0, decorator_1.getExampleSectionDefinition)(), options);
307
+ return (0, decorator_ts_1.printDecorator)(type, (0, decorator_ts_1.getExampleSectionDefinition)(), options);
308
308
  };
309
309
  /**
310
310
  * Prints metadata information for a GraphQL type
@@ -316,21 +316,21 @@ class Printer {
316
316
  static printTypeMetadata = (type, options) => {
317
317
  switch (true) {
318
318
  case (0, graphql_1.isScalarType)(type):
319
- return (0, graphql_2.printScalarMetadata)(type, options);
319
+ return (0, index_ts_1.printScalarMetadata)(type, options);
320
320
  case (0, graphql_1.isEnumType)(type):
321
- return (0, graphql_2.printEnumMetadata)(type, options);
321
+ return (0, index_ts_1.printEnumMetadata)(type, options);
322
322
  case (0, graphql_1.isUnionType)(type):
323
- return (0, graphql_2.printUnionMetadata)(type, options);
323
+ return (0, index_ts_1.printUnionMetadata)(type, options);
324
324
  case (0, graphql_1.isObjectType)(type):
325
- return (0, graphql_2.printObjectMetadata)(type, options);
325
+ return (0, index_ts_1.printObjectMetadata)(type, options);
326
326
  case (0, graphql_1.isInterfaceType)(type):
327
- return (0, graphql_2.printInterfaceMetadata)(type, options);
327
+ return (0, index_ts_1.printInterfaceMetadata)(type, options);
328
328
  case (0, graphql_1.isInputType)(type):
329
- return (0, graphql_2.printInputMetadata)(type, options);
329
+ return (0, index_ts_1.printInputMetadata)(type, options);
330
330
  case (0, graphql_1.isDirectiveType)(type):
331
- return (0, graphql_2.printDirectiveMetadata)(type, options);
331
+ return (0, index_ts_1.printDirectiveMetadata)(type, options);
332
332
  case (0, graphql_1.isOperation)(type):
333
- return (0, graphql_2.printOperationMetadata)(type, options);
333
+ return (0, index_ts_1.printOperationMetadata)(type, options);
334
334
  default:
335
335
  return undefined;
336
336
  }
@@ -343,7 +343,7 @@ class Printer {
343
343
  * @returns Formatted relations section as MDX or plain string
344
344
  */
345
345
  static printRelations = (type, options) => {
346
- return (0, relation_1.printRelations)(type, options);
346
+ return (0, relation_ts_1.printRelations)(type, options);
347
347
  };
348
348
  /**
349
349
  * Prints HTML meta tags for the documentation
@@ -362,7 +362,7 @@ class Printer {
362
362
  });
363
363
  return `<meta ${props.join(" ")} />`;
364
364
  });
365
- return ["<head>", ...meta, "</head>"].join(strings_1.MARKDOWN_EOL);
365
+ return ["<head>", ...meta, "</head>"].join(strings_ts_1.MARKDOWN_EOL);
366
366
  };
367
367
  /**
368
368
  * Main method to print complete documentation for a GraphQL type
@@ -397,18 +397,18 @@ class Printer {
397
397
  */
398
398
  static printType = async (name, type, options) => {
399
399
  const printTypeOptions = {
400
- ...options_1.DEFAULT_OPTIONS,
400
+ ...options_ts_1.DEFAULT_OPTIONS,
401
401
  ...Printer.options,
402
402
  ...options,
403
403
  };
404
- if (!name || !(0, link_1.hasPrintableDirective)(type, printTypeOptions)) {
404
+ if (!name || !(0, link_ts_1.hasPrintableDirective)(type, printTypeOptions)) {
405
405
  return undefined;
406
406
  }
407
407
  // Create event data for potential before event
408
408
  const eventData = { type, name, options: printTypeOptions };
409
409
  // Emit BEFORE_PRINT_TYPE event if emitter is configured
410
410
  if (Printer.eventEmitter) {
411
- const beforeEvent = new events_1.PrintTypeEvent(eventData, undefined);
411
+ const beforeEvent = new events_ts_1.PrintTypeEvent(eventData, undefined);
412
412
  await Printer.eventEmitter.emitAsync(PrintTypeEvents.BEFORE_PRINT_TYPE, beforeEvent);
413
413
  // If prevented, return the output set by handlers (or undefined)
414
414
  if (beforeEvent.defaultPrevented) {
@@ -425,7 +425,7 @@ class Printer {
425
425
  // `customDirective`'s `tag` handlers reach this line via the decorators
426
426
  // pipeline (`printSlotDecorators`, not a dedicated call) — see
427
427
  // `buildCustomDirectiveDecorators` in `./decorator`.
428
- const tags = (0, decorator_1.printSlotDecorators)("tags", type, printTypeOptions)
428
+ const tags = (0, decorator_ts_1.printSlotDecorators)("tags", type, printTypeOptions)
429
429
  .filter(Boolean)
430
430
  .join(" ");
431
431
  const metadata = Printer.printTypeMetadata(type, printTypeOptions);
@@ -448,10 +448,10 @@ class Printer {
448
448
  relations: Printer.normalizePageSection(relations),
449
449
  ...Printer.printDecorators(type, printTypeOptions),
450
450
  };
451
- let sectionOrder = (0, decorator_1.getDecoratorsOrder)(TYPE_PAGE_SECTION_ORDER, printTypeOptions);
451
+ let sectionOrder = (0, decorator_ts_1.getDecoratorsOrder)(TYPE_PAGE_SECTION_ORDER, printTypeOptions);
452
452
  // Emit BEFORE_COMPOSE_PAGE_TYPE event if emitter is configured
453
453
  if (Printer.eventEmitter) {
454
- const beforeComposeEvent = new events_1.BeforeComposePageTypeEvent({ type, name, options: printTypeOptions, sections }, sectionOrder);
454
+ const beforeComposeEvent = new events_ts_1.BeforeComposePageTypeEvent({ type, name, options: printTypeOptions, sections }, sectionOrder);
455
455
  await Printer.eventEmitter.emitAsync(PrintTypeEvents.BEFORE_COMPOSE_PAGE_TYPE, beforeComposeEvent);
456
456
  sectionOrder = Printer.sanitizeTypePageSectionOrder(beforeComposeEvent.output, sections);
457
457
  }
@@ -467,11 +467,11 @@ class Printer {
467
467
  .filter((section) => {
468
468
  return section.length > 0;
469
469
  })
470
- .join(strings_1.MARKDOWN_EOP)
470
+ .join(strings_ts_1.MARKDOWN_EOP)
471
471
  .trim();
472
472
  // Emit AFTER_PRINT_TYPE event if emitter is configured
473
473
  if (Printer.eventEmitter) {
474
- const afterEvent = new events_1.PrintTypeEvent(eventData, output);
474
+ const afterEvent = new events_ts_1.PrintTypeEvent(eventData, output);
475
475
  await Printer.eventEmitter.emitAsync(PrintTypeEvents.AFTER_PRINT_TYPE, afterEvent);
476
476
  output = afterEvent.output ?? output;
477
477
  }
@@ -510,7 +510,7 @@ class Printer {
510
510
  .filter((entry) => {
511
511
  return entry.length > 0;
512
512
  })
513
- .join(strings_1.MARKDOWN_EOP);
513
+ .join(strings_ts_1.MARKDOWN_EOP);
514
514
  }
515
515
  else if (typeof section.content === "string") {
516
516
  content = section.content;
@@ -531,7 +531,7 @@ class Printer {
531
531
  return content;
532
532
  }
533
533
  const level = Math.max(1, section.level ?? 3);
534
- const title = `${options_1.SectionLevels.LEVEL.repeat(level)} ${section.title}${strings_1.MARKDOWN_EOP}`;
534
+ const title = `${options_ts_1.SectionLevels.LEVEL.repeat(level)} ${section.title}${strings_ts_1.MARKDOWN_EOP}`;
535
535
  if (!content || content.trim().length === 0) {
536
536
  return title;
537
537
  }
package/dist/relation.js CHANGED
@@ -7,10 +7,10 @@
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.printRelations = exports.printRelationOf = exports.getRootTypeLocaleFromString = void 0;
9
9
  const graphql_1 = require("@graphql-markdown/graphql");
10
- const link_1 = require("./link");
11
- const badge_1 = require("./badge");
12
- const strings_1 = require("./const/strings");
13
- const options_1 = require("./const/options");
10
+ const link_ts_1 = require("./link.js");
11
+ const badge_ts_1 = require("./badge.js");
12
+ const strings_ts_1 = require("./const/strings.js");
13
+ const options_ts_1 = require("./const/options.js");
14
14
  /**
15
15
  * Converts a string representation of a root type to its corresponding `TypeLocale`
16
16
  * @param text - The string to convert to a `TypeLocale`
@@ -22,9 +22,9 @@ const options_1 = require("./const/options");
22
22
  */
23
23
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
24
24
  const getRootTypeLocaleFromString = (text) => {
25
- for (const [type, props] of Object.entries(strings_1.ROOT_TYPE_LOCALE)) {
25
+ for (const [type, props] of Object.entries(strings_ts_1.ROOT_TYPE_LOCALE)) {
26
26
  if (Object.values(props).includes(text)) {
27
- return strings_1.ROOT_TYPE_LOCALE[type];
27
+ return strings_ts_1.ROOT_TYPE_LOCALE[type];
28
28
  }
29
29
  }
30
30
  return undefined;
@@ -63,12 +63,12 @@ const printRelationOf = (type, section, getRelation, options) => {
63
63
  continue;
64
64
  }
65
65
  const category = (0, exports.getRootTypeLocaleFromString)(relation);
66
- const badge = (0, badge_1.printBadge)({
66
+ const badge = (0, badge_ts_1.printBadge)({
67
67
  text: category,
68
- classname: badge_1.CSS_BADGE_CLASSNAME.RELATION,
68
+ classname: badge_ts_1.CSS_BADGE_CLASSNAME.RELATION,
69
69
  }, options);
70
70
  data.push(...types.map((t) => {
71
- const link = (0, link_1.getRelationLink)(category, t, options);
71
+ const link = (0, link_ts_1.getRelationLink)(category, t, options);
72
72
  return link ? `[\`${link.text}\`](${link.url}) ${badge}` : "";
73
73
  }));
74
74
  }
@@ -80,7 +80,7 @@ const printRelationOf = (type, section, getRelation, options) => {
80
80
  return a.localeCompare(b);
81
81
  })
82
82
  .join(options.formatMDXBullet());
83
- return `${options_1.SectionLevels.LEVEL.repeat(3)} ${section}${strings_1.MARKDOWN_EOP}${content}${strings_1.MARKDOWN_EOP}`;
83
+ return `${options_ts_1.SectionLevels.LEVEL.repeat(3)} ${section}${strings_ts_1.MARKDOWN_EOP}${content}${strings_ts_1.MARKDOWN_EOP}`;
84
84
  };
85
85
  exports.printRelationOf = printRelationOf;
86
86
  /**
package/dist/section.js CHANGED
@@ -8,12 +8,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.printMetadataSection = exports.printSection = exports.printSectionItems = exports.printSectionItem = void 0;
9
9
  const utils_1 = require("@graphql-markdown/utils");
10
10
  const graphql_1 = require("@graphql-markdown/graphql");
11
- const common_1 = require("./common");
12
- const badge_1 = require("./badge");
13
- const decorator_1 = require("./decorator");
14
- const link_1 = require("./link");
15
- const strings_1 = require("./const/strings");
16
- const options_1 = require("./const/options");
11
+ const common_ts_1 = require("./common.js");
12
+ const badge_ts_1 = require("./badge.js");
13
+ const decorator_ts_1 = require("./decorator.js");
14
+ const link_ts_1 = require("./link.js");
15
+ const strings_ts_1 = require("./const/strings.js");
16
+ const options_ts_1 = require("./const/options.js");
17
17
  /**
18
18
  * Prints a permalink for the section header if enabled in the options.
19
19
  *
@@ -27,7 +27,7 @@ const printPermalink = (id, options) => {
27
27
  if (!options.sectionHeaderId || !id) {
28
28
  return undefined;
29
29
  }
30
- const format = options.formatMDXPermalink ?? options_1.DEFAULT_OPTIONS.formatMDXPermalink;
30
+ const format = options.formatMDXPermalink ?? options_ts_1.DEFAULT_OPTIONS.formatMDXPermalink;
31
31
  return format(id);
32
32
  };
33
33
  /**
@@ -42,30 +42,30 @@ const printPermalink = (id, options) => {
42
42
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
43
43
  const printSectionItem = (type, options) => {
44
44
  const level = "level" in options && typeof options.level === "number" ? options.level : 4;
45
- if (!(0, link_1.hasPrintableDirective)(type, options)) {
45
+ if (!(0, link_ts_1.hasPrintableDirective)(type, options)) {
46
46
  return "";
47
47
  }
48
- const link = (0, link_1.toLink)(type, (0, graphql_1.getTypeName)(type, (0, utils_1.toString)(type)), undefined, options);
49
- const typeNameLink = (0, link_1.printLink)(link, {
48
+ const link = (0, link_ts_1.toLink)(type, (0, graphql_1.getTypeName)(type, (0, utils_1.toString)(type)), undefined, options);
49
+ const typeNameLink = (0, link_ts_1.printLink)(link, {
50
50
  ...options,
51
51
  withAttributes: false,
52
52
  });
53
53
  const badges = [
54
- (0, badge_1.printBadges)(type, options),
55
- ...(0, decorator_1.printSlotDecorators)("badges", type, options),
54
+ (0, badge_ts_1.printBadges)(type, options),
55
+ ...(0, decorator_ts_1.printSlotDecorators)("badges", type, options),
56
56
  ]
57
57
  .filter(Boolean)
58
58
  .join(" ");
59
59
  // `customDirective`'s `tag` handlers reach this line via the decorators
60
60
  // pipeline (`printSlotDecorators`), not a dedicated call — see
61
61
  // `buildCustomDirectiveDecorators` in `./decorator`.
62
- const tags = (0, decorator_1.printSlotDecorators)("tags", type, options)
62
+ const tags = (0, decorator_ts_1.printSlotDecorators)("tags", type, options)
63
63
  .filter(Boolean)
64
64
  .join(" ");
65
- const parentTypeLink = (0, link_1.printParentLink)(type, options);
65
+ const parentTypeLink = (0, link_ts_1.printParentLink)(type, options);
66
66
  const permalink = [
67
67
  printPermalink(link.id, options),
68
- ...(0, decorator_1.printSlotDecorators)("permalink", type, options),
68
+ ...(0, decorator_ts_1.printSlotDecorators)("permalink", type, options),
69
69
  ]
70
70
  .filter(Boolean)
71
71
  .join(" ");
@@ -73,15 +73,15 @@ const printSectionItem = (type, options) => {
73
73
  badges,
74
74
  tags,
75
75
  permalink,
76
- ...(0, decorator_1.printSlotDecorators)("metadata", type, options),
76
+ ...(0, decorator_ts_1.printSlotDecorators)("metadata", type, options),
77
77
  ]
78
78
  .filter(Boolean)
79
79
  .join(" ");
80
- const title = `${options_1.SectionLevels.LEVEL.repeat(level)} ${typeNameLink}${parentTypeLink} ${metadata} ${strings_1.MARKDOWN_EOL}`;
81
- const description = (0, common_1.printDescription)(type, options, "")
80
+ const title = `${options_ts_1.SectionLevels.LEVEL.repeat(level)} ${typeNameLink}${parentTypeLink} ${metadata} ${strings_ts_1.MARKDOWN_EOL}`;
81
+ const description = (0, common_ts_1.printDescription)(type, options, "")
82
82
  .trim()
83
- .replaceAll("\n", `${strings_1.MARKDOWN_EOL}`);
84
- let section = `${title}${description}${strings_1.MARKDOWN_EOL}`;
83
+ .replaceAll("\n", `${strings_ts_1.MARKDOWN_EOL}`);
84
+ let section = `${title}${description}${strings_ts_1.MARKDOWN_EOL}`;
85
85
  if ((0, graphql_1.isGraphQLFieldType)(type)) {
86
86
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
87
87
  section += (0, exports.printSectionItems)(type.args, {
@@ -116,7 +116,7 @@ const printSectionItems = (values, options) => {
116
116
  level,
117
117
  });
118
118
  });
119
- return items.join(strings_1.MARKDOWN_EOP);
119
+ return items.join(strings_ts_1.MARKDOWN_EOP);
120
120
  };
121
121
  exports.printSectionItems = printSectionItems;
122
122
  /**
@@ -139,7 +139,7 @@ const printSection = (values, section, options) => {
139
139
  typeof options.collapsible.dataClose === "string") {
140
140
  return options.formatMDXDetails(options.collapsible).split(`\r`);
141
141
  }
142
- return ["", strings_1.MARKDOWN_EOP];
142
+ return ["", strings_ts_1.MARKDOWN_EOP];
143
143
  })();
144
144
  const items = (0, exports.printSectionItems)(values, {
145
145
  ...options,
@@ -196,8 +196,8 @@ const printMetadataSection = (type, values, section, options) => {
196
196
  parentType: type.name,
197
197
  level: 0,
198
198
  collapsible: {
199
- dataOpen: strings_1.DEPRECATED,
200
- dataClose: strings_1.DEPRECATED,
199
+ dataOpen: strings_ts_1.DEPRECATED,
200
+ dataClose: strings_ts_1.DEPRECATED,
201
201
  },
202
202
  });
203
203
  const content = [meta?.content, deprecatedMeta?.content]