polen 0.11.0-next.25 → 0.11.0-next.27

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.
Files changed (230) hide show
  1. package/build/api/config/input.d.ts +183 -0
  2. package/build/api/config/input.d.ts.map +1 -1
  3. package/build/api/config/input.js +2 -0
  4. package/build/api/config/input.js.map +1 -1
  5. package/build/api/config/normalized.d.ts +297 -0
  6. package/build/api/config/normalized.d.ts.map +1 -1
  7. package/build/api/config/normalized.js +47 -0
  8. package/build/api/config/normalized.js.map +1 -1
  9. package/build/api/config-template/template.d.ts +81 -0
  10. package/build/api/config-template/template.d.ts.map +1 -1
  11. package/build/api/config-template/template.js +18 -1
  12. package/build/api/config-template/template.js.map +1 -1
  13. package/build/api/examples/scanner.d.ts.map +1 -1
  14. package/build/api/examples/scanner.js +11 -0
  15. package/build/api/examples/scanner.js.map +1 -1
  16. package/build/api/examples/schemas/catalog.d.ts +36 -0
  17. package/build/api/examples/schemas/catalog.d.ts.map +1 -1
  18. package/build/api/examples/schemas/example/example.d.ts +37 -0
  19. package/build/api/examples/schemas/example/example.d.ts.map +1 -1
  20. package/build/api/examples/schemas/example/example.js +5 -0
  21. package/build/api/examples/schemas/example/example.js.map +1 -1
  22. package/build/api/reference/$.d.ts +4 -0
  23. package/build/api/reference/$.d.ts.map +1 -0
  24. package/build/api/reference/$.js +4 -0
  25. package/build/api/reference/$.js.map +1 -0
  26. package/build/api/reference/catalog.d.ts +69 -0
  27. package/build/api/reference/catalog.d.ts.map +1 -0
  28. package/build/api/reference/catalog.js +44 -0
  29. package/build/api/reference/catalog.js.map +1 -0
  30. package/build/api/reference/config.d.ts +616 -0
  31. package/build/api/reference/config.d.ts.map +1 -0
  32. package/build/api/reference/config.js +162 -0
  33. package/build/api/reference/config.js.map +1 -0
  34. package/build/api/reference/scanner.d.ts +26 -0
  35. package/build/api/reference/scanner.d.ts.map +1 -0
  36. package/build/api/reference/scanner.js +27 -0
  37. package/build/api/reference/scanner.js.map +1 -0
  38. package/build/lib/grafaid/schema/format-default-value.d.ts +11 -0
  39. package/build/lib/grafaid/schema/format-default-value.d.ts.map +1 -0
  40. package/build/lib/grafaid/schema/format-default-value.js +20 -0
  41. package/build/lib/grafaid/schema/format-default-value.js.map +1 -0
  42. package/build/lib/grafaid/schema/schema.d.ts +1 -0
  43. package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
  44. package/build/lib/grafaid/schema/schema.js +1 -0
  45. package/build/lib/grafaid/schema/schema.js.map +1 -1
  46. package/build/template/components/ArgumentAnnotation.d.ts +2 -1
  47. package/build/template/components/ArgumentAnnotation.d.ts.map +1 -1
  48. package/build/template/components/ArgumentAnnotation.js +14 -4
  49. package/build/template/components/ArgumentAnnotation.js.map +1 -1
  50. package/build/template/components/ArgumentListAnnotation.d.ts +1 -0
  51. package/build/template/components/ArgumentListAnnotation.d.ts.map +1 -1
  52. package/build/template/components/ArgumentListAnnotation.js +21 -8
  53. package/build/template/components/ArgumentListAnnotation.js.map +1 -1
  54. package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
  55. package/build/template/components/Changelog/groups/FieldArgument.js +0 -1
  56. package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
  57. package/build/template/components/CodeBlock.d.ts.map +1 -1
  58. package/build/template/components/CodeBlock.js +1 -1
  59. package/build/template/components/CodeBlock.js.map +1 -1
  60. package/build/template/components/Description.js +1 -1
  61. package/build/template/components/Description.js.map +1 -1
  62. package/build/template/components/ExampleLink.d.ts.map +1 -1
  63. package/build/template/components/ExampleLink.js +2 -1
  64. package/build/template/components/ExampleLink.js.map +1 -1
  65. package/build/template/components/Field.d.ts +2 -0
  66. package/build/template/components/Field.d.ts.map +1 -1
  67. package/build/template/components/Field.js +42 -4
  68. package/build/template/components/Field.js.map +1 -1
  69. package/build/template/components/FieldList.d.ts +2 -1
  70. package/build/template/components/FieldList.d.ts.map +1 -1
  71. package/build/template/components/FieldList.js +14 -3
  72. package/build/template/components/FieldList.js.map +1 -1
  73. package/build/template/components/FieldListSection.d.ts.map +1 -1
  74. package/build/template/components/FieldListSection.js +6 -1
  75. package/build/template/components/FieldListSection.js.map +1 -1
  76. package/build/template/components/GraphQLDocument.d.ts.map +1 -1
  77. package/build/template/components/GraphQLDocument.js +2 -1
  78. package/build/template/components/GraphQLDocument.js.map +1 -1
  79. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +2 -0
  80. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
  81. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +4 -3
  82. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
  83. package/build/template/components/GraphQLInteractive/lib/parser.d.ts +2 -2
  84. package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
  85. package/build/template/components/GraphQLInteractive/lib/parser.js +17 -12
  86. package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
  87. package/build/template/components/IAPIndicator.d.ts +12 -0
  88. package/build/template/components/IAPIndicator.d.ts.map +1 -0
  89. package/build/template/components/IAPIndicator.js +21 -0
  90. package/build/template/components/IAPIndicator.js.map +1 -0
  91. package/build/template/components/Link.d.ts +1 -2
  92. package/build/template/components/Link.d.ts.map +1 -1
  93. package/build/template/components/Link.js +5 -2
  94. package/build/template/components/Link.js.map +1 -1
  95. package/build/template/components/NamedType.d.ts.map +1 -1
  96. package/build/template/components/NamedType.js +9 -5
  97. package/build/template/components/NamedType.js.map +1 -1
  98. package/build/template/components/ReferenceLink.d.ts +3 -2
  99. package/build/template/components/ReferenceLink.d.ts.map +1 -1
  100. package/build/template/components/ReferenceLink.js +5 -3
  101. package/build/template/components/ReferenceLink.js.map +1 -1
  102. package/build/template/components/TypeAnnotation.d.ts +2 -0
  103. package/build/template/components/TypeAnnotation.d.ts.map +1 -1
  104. package/build/template/components/TypeAnnotation.js +4 -4
  105. package/build/template/components/TypeAnnotation.js.map +1 -1
  106. package/build/template/components/ViewModeToggle.d.ts +3 -0
  107. package/build/template/components/ViewModeToggle.d.ts.map +1 -0
  108. package/build/template/components/ViewModeToggle.js +9 -0
  109. package/build/template/components/ViewModeToggle.js.map +1 -0
  110. package/build/template/components/graphql/type-link.d.ts +2 -0
  111. package/build/template/components/graphql/type-link.d.ts.map +1 -1
  112. package/build/template/components/graphql/type-link.js +17 -4
  113. package/build/template/components/graphql/type-link.js.map +1 -1
  114. package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -1
  115. package/build/template/components/home/PlaygroundPreview.js +3 -2
  116. package/build/template/components/home/PlaygroundPreview.js.map +1 -1
  117. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  118. package/build/template/components/sidebar/SidebarItem.js +18 -5
  119. package/build/template/components/sidebar/SidebarItem.js.map +1 -1
  120. package/build/template/contexts/ReferenceConfigContext.d.ts +16 -0
  121. package/build/template/contexts/ReferenceConfigContext.d.ts.map +1 -0
  122. package/build/template/contexts/ReferenceConfigContext.js +14 -0
  123. package/build/template/contexts/ReferenceConfigContext.js.map +1 -0
  124. package/build/template/contexts/ViewModeContext.d.ts +14 -0
  125. package/build/template/contexts/ViewModeContext.d.ts.map +1 -0
  126. package/build/template/contexts/ViewModeContext.js +40 -0
  127. package/build/template/contexts/ViewModeContext.js.map +1 -0
  128. package/build/template/hooks/use-examples.d.ts +3 -0
  129. package/build/template/hooks/use-examples.d.ts.map +1 -1
  130. package/build/template/hooks/useAlignedColumns.d.ts +10 -0
  131. package/build/template/hooks/useAlignedColumns.d.ts.map +1 -0
  132. package/build/template/hooks/useAlignedColumns.js +17 -0
  133. package/build/template/hooks/useAlignedColumns.js.map +1 -0
  134. package/build/template/routes/examples/_.d.ts +9 -0
  135. package/build/template/routes/examples/_.d.ts.map +1 -1
  136. package/build/template/routes/examples/_index.d.ts +6 -0
  137. package/build/template/routes/examples/_index.d.ts.map +1 -1
  138. package/build/template/routes/examples/name.d.ts +9 -0
  139. package/build/template/routes/examples/name.d.ts.map +1 -1
  140. package/build/template/routes/examples/name.js +6 -2
  141. package/build/template/routes/examples/name.js.map +1 -1
  142. package/build/template/routes/reference.d.ts.map +1 -1
  143. package/build/template/routes/reference.js +37 -10
  144. package/build/template/routes/reference.js.map +1 -1
  145. package/build/vite/plugins/core.d.ts.map +1 -1
  146. package/build/vite/plugins/core.js +6 -0
  147. package/build/vite/plugins/core.js.map +1 -1
  148. package/build/vite/plugins/examples.d.ts.map +1 -1
  149. package/build/vite/plugins/examples.js +10 -1
  150. package/build/vite/plugins/examples.js.map +1 -1
  151. package/build/vite/plugins/index.d.ts +1 -0
  152. package/build/vite/plugins/index.d.ts.map +1 -1
  153. package/build/vite/plugins/index.js +1 -0
  154. package/build/vite/plugins/index.js.map +1 -1
  155. package/build/vite/plugins/navbar.d.ts.map +1 -1
  156. package/build/vite/plugins/navbar.js +3 -1
  157. package/build/vite/plugins/navbar.js.map +1 -1
  158. package/build/vite/plugins/reference.d.ts +19 -0
  159. package/build/vite/plugins/reference.d.ts.map +1 -0
  160. package/build/vite/plugins/reference.js +96 -0
  161. package/build/vite/plugins/reference.js.map +1 -0
  162. package/package.json +1 -7
  163. package/src/api/config/input.ts +2 -0
  164. package/src/api/config/normalized.ts +54 -0
  165. package/src/api/config-template/template.ts +18 -1
  166. package/src/api/examples/scanner.ts +14 -0
  167. package/src/api/examples/schemas/example/example.ts +6 -0
  168. package/src/api/reference/$.ts +3 -0
  169. package/src/api/reference/catalog.ts +55 -0
  170. package/src/api/reference/config.ts +193 -0
  171. package/src/api/reference/scanner.ts +53 -0
  172. package/src/lib/grafaid/schema/format-default-value.ts +22 -0
  173. package/src/lib/grafaid/schema/schema.ts +2 -0
  174. package/src/template/components/ArgumentAnnotation.tsx +58 -9
  175. package/src/template/components/ArgumentListAnnotation.tsx +50 -17
  176. package/src/template/components/Changelog/groups/FieldArgument.tsx +0 -1
  177. package/src/template/components/CodeBlock.tsx +1 -0
  178. package/src/template/components/Description.tsx +1 -1
  179. package/src/template/components/ExampleLink.tsx +2 -1
  180. package/src/template/components/Field.tsx +148 -20
  181. package/src/template/components/FieldList.tsx +28 -13
  182. package/src/template/components/FieldListSection.tsx +12 -2
  183. package/src/template/components/GraphQLDocument.tsx +2 -0
  184. package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +6 -1
  185. package/src/template/components/GraphQLInteractive/lib/parser.ts +16 -3
  186. package/src/template/components/IAPIndicator.tsx +73 -0
  187. package/src/template/components/Link.tsx +9 -3
  188. package/src/template/components/NamedType.tsx +54 -28
  189. package/src/template/components/ReferenceLink.tsx +17 -10
  190. package/src/template/components/TypeAnnotation.tsx +17 -5
  191. package/src/template/components/ViewModeToggle.tsx +27 -0
  192. package/src/template/components/graphql/type-link.tsx +52 -9
  193. package/src/template/components/home/PlaygroundPreview.tsx +3 -0
  194. package/src/template/components/sidebar/SidebarItem.tsx +21 -5
  195. package/src/template/contexts/ReferenceConfigContext.tsx +37 -0
  196. package/src/template/contexts/ViewModeContext.tsx +64 -0
  197. package/src/template/hooks/useAlignedColumns.ts +19 -0
  198. package/src/template/routes/examples/name.tsx +13 -1
  199. package/src/template/routes/reference.tsx +67 -23
  200. package/src/types/virtual-modules.d.ts +5 -0
  201. package/src/vite/plugins/core.ts +6 -0
  202. package/src/vite/plugins/examples.ts +12 -0
  203. package/src/vite/plugins/index.ts +1 -0
  204. package/src/vite/plugins/navbar.ts +4 -1
  205. package/src/vite/plugins/reference.ts +130 -0
  206. package/build/lib/extensible-data/$.d.ts +0 -2
  207. package/build/lib/extensible-data/$.d.ts.map +0 -1
  208. package/build/lib/extensible-data/$.js +0 -2
  209. package/build/lib/extensible-data/$.js.map +0 -1
  210. package/build/lib/extensible-data/extensible-data.d.ts +0 -17
  211. package/build/lib/extensible-data/extensible-data.d.ts.map +0 -1
  212. package/build/lib/extensible-data/extensible-data.js +0 -24
  213. package/build/lib/extensible-data/extensible-data.js.map +0 -1
  214. package/build/lib/vite-plugin-reactive-data/$.d.ts +0 -2
  215. package/build/lib/vite-plugin-reactive-data/$.d.ts.map +0 -1
  216. package/build/lib/vite-plugin-reactive-data/$.js +0 -2
  217. package/build/lib/vite-plugin-reactive-data/$.js.map +0 -1
  218. package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +0 -32
  219. package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts.map +0 -1
  220. package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.js +0 -85
  221. package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.js.map +0 -1
  222. package/build/template/components/ArgumentList.d.ts +0 -6
  223. package/build/template/components/ArgumentList.d.ts.map +0 -1
  224. package/build/template/components/ArgumentList.js +0 -9
  225. package/build/template/components/ArgumentList.js.map +0 -1
  226. package/src/lib/extensible-data/$.ts +0 -1
  227. package/src/lib/extensible-data/extensible-data.ts +0 -38
  228. package/src/lib/vite-plugin-reactive-data/$.ts +0 -1
  229. package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +0 -124
  230. package/src/template/components/ArgumentList.tsx +0 -22
@@ -22,9 +22,19 @@ export declare const Example: S.Struct<{
22
22
  }>, S.TaggedStruct<"DocumentVersioned", {
23
23
  versionDocuments: S.HashMap<S.Union<[typeof import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
24
24
  }>]>;
25
+ /**
26
+ * Optional description file for this example.
27
+ * Points to a markdown/MDX file that describes the example.
28
+ */
29
+ description: S.optional<S.Struct<{
30
+ path: typeof S.String;
31
+ }>>;
25
32
  }>;
26
33
  export type Example = S.Schema.Type<typeof Example>;
27
34
  export declare const make: (props: {
35
+ readonly description?: {
36
+ readonly path: string;
37
+ } | undefined;
28
38
  readonly path: string;
29
39
  readonly name: string;
30
40
  readonly document: {
@@ -35,6 +45,9 @@ export declare const make: (props: {
35
45
  readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
36
46
  };
37
47
  }, options?: S.MakeOptions) => {
48
+ readonly description?: {
49
+ readonly path: string;
50
+ } | undefined;
38
51
  readonly path: string;
39
52
  readonly name: string;
40
53
  readonly document: {
@@ -47,6 +60,9 @@ export declare const make: (props: {
47
60
  };
48
61
  export declare const order: Order.Order<Example>;
49
62
  export declare const equivalent: import("effect/Equivalence").Equivalence<{
63
+ readonly description?: {
64
+ readonly path: string;
65
+ } | undefined;
50
66
  readonly path: string;
51
67
  readonly name: string;
52
68
  readonly document: {
@@ -58,6 +74,9 @@ export declare const equivalent: import("effect/Equivalence").Equivalence<{
58
74
  };
59
75
  }>;
60
76
  export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
77
+ readonly description?: {
78
+ readonly path: string;
79
+ } | undefined;
61
80
  readonly path: string;
62
81
  readonly name: string;
63
82
  readonly document: {
@@ -80,7 +99,13 @@ export declare const decode: (i: {
80
99
  readonly _tag: "VersionCoverageUnversioned";
81
100
  }, string])[];
82
101
  };
102
+ readonly description?: {
103
+ readonly path: string;
104
+ } | undefined;
83
105
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
106
+ readonly description?: {
107
+ readonly path: string;
108
+ } | undefined;
84
109
  readonly path: string;
85
110
  readonly name: string;
86
111
  readonly document: {
@@ -103,7 +128,13 @@ export declare const decodeSync: (i: {
103
128
  readonly _tag: "VersionCoverageUnversioned";
104
129
  }, string])[];
105
130
  };
131
+ readonly description?: {
132
+ readonly path: string;
133
+ } | undefined;
106
134
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
135
+ readonly description?: {
136
+ readonly path: string;
137
+ } | undefined;
107
138
  readonly path: string;
108
139
  readonly name: string;
109
140
  readonly document: {
@@ -115,6 +146,9 @@ export declare const decodeSync: (i: {
115
146
  };
116
147
  };
117
148
  export declare const encode: (a: {
149
+ readonly description?: {
150
+ readonly path: string;
151
+ } | undefined;
118
152
  readonly path: string;
119
153
  readonly name: string;
120
154
  readonly document: {
@@ -136,5 +170,8 @@ export declare const encode: (a: {
136
170
  readonly _tag: "VersionCoverageUnversioned";
137
171
  }, string])[];
138
172
  };
173
+ readonly description?: {
174
+ readonly path: string;
175
+ } | undefined;
139
176
  }, import("effect/ParseResult").ParseError, never>;
140
177
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;EAKH,CAAA;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAAe,CAAA;AAMhC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAGtC,CAAA;AAMD,eAAO,MAAM,UAAU;;;;;;;;;;EAAyB,CAAA;AAMhD,eAAO,MAAM,EAAE;;;;;;;;;;CAAgB,CAAA;AAM/B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA"}
1
+ {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;IAGH;;;OAGG;;;;EAKH,CAAA;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAA;AAMhC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAGtC,CAAA;AAMD,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAAyB,CAAA;AAMhD,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAAgB,CAAA;AAM/B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA"}
@@ -22,6 +22,11 @@ export const Example = S.Struct({
22
22
  * The document content, which can be unversioned, versioned, or partially versioned.
23
23
  */
24
24
  document: Document.Document,
25
+ /**
26
+ * Optional description file for this example.
27
+ * Points to a markdown/MDX file that describes the example.
28
+ */
29
+ description: S.optional(S.Struct({ path: S.String })),
25
30
  }).annotations({
26
31
  identifier: 'Example',
27
32
  description: 'A GraphQL example that contains a document with optional versioning support',
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,QAAQ;CAC5B,CAAC,CAAC,WAAW,CAAC;IACb,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,6EAA6E;CAC3F,CAAC,CAAA;AAQF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AAEhC,+EAA+E;AAC/E,WAAW;AACX,+EAA+E;AAE/E,MAAM,CAAC,MAAM,KAAK,GAAyB,KAAK,CAAC,QAAQ,CACvD,KAAK,CAAC,MAAM,EACZ,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CACnC,CAAA;AAED,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AAEhD,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;AAE/B,+EAA+E;AAC/E,QAAQ;AACR,+EAA+E;AAE/E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AAC/C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,QAAQ;IAE3B;;;OAGG;IACH,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACtD,CAAC,CAAC,WAAW,CAAC;IACb,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,6EAA6E;CAC3F,CAAC,CAAA;AAQF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AAEhC,+EAA+E;AAC/E,WAAW;AACX,+EAA+E;AAE/E,MAAM,CAAC,MAAM,KAAK,GAAyB,KAAK,CAAC,QAAQ,CACvD,KAAK,CAAC,MAAM,EACZ,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CACnC,CAAA;AAED,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AAEhD,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;AAE/B,+EAA+E;AAC/E,QAAQ;AACR,+EAA+E;AAE/E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AAC/C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * as Catalog from './catalog.js';
2
+ export * as Config from './config.js';
3
+ export * from './scanner.js';
4
+ //# sourceMappingURL=$.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/api/reference/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * as Catalog from './catalog.js';
2
+ export * as Config from './config.js';
3
+ export * from './scanner.js';
4
+ //# sourceMappingURL=$.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/api/reference/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { S } from '#lib/kit-temp/effect';
2
+ export declare const Catalog: S.Struct<{
3
+ /**
4
+ * Optional index file metadata for custom reference landing page.
5
+ * If not provided, the app will redirect to the Query type.
6
+ */
7
+ index: S.optional<S.Struct<{
8
+ /**
9
+ * Path to the index.md or index.mdx file
10
+ */
11
+ path: typeof S.String;
12
+ }>>;
13
+ }>;
14
+ export type Catalog = S.Schema.Type<typeof Catalog>;
15
+ export declare const make: (props: void | {
16
+ readonly index?: {
17
+ readonly path: string;
18
+ } | undefined;
19
+ }, options?: S.MakeOptions) => {
20
+ readonly index?: {
21
+ readonly path: string;
22
+ } | undefined;
23
+ };
24
+ export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
25
+ readonly index?: {
26
+ readonly path: string;
27
+ } | undefined;
28
+ };
29
+ /**
30
+ * Check if the catalog has a custom index page
31
+ */
32
+ export declare const hasIndex: (catalog: Catalog) => boolean;
33
+ export declare const decode: (i: {
34
+ readonly index?: {
35
+ readonly path: string;
36
+ } | undefined;
37
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
38
+ readonly index?: {
39
+ readonly path: string;
40
+ } | undefined;
41
+ }, import("effect/ParseResult").ParseError, never>;
42
+ export declare const decodeSync: (i: {
43
+ readonly index?: {
44
+ readonly path: string;
45
+ } | undefined;
46
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
47
+ readonly index?: {
48
+ readonly path: string;
49
+ } | undefined;
50
+ };
51
+ export declare const encode: (a: {
52
+ readonly index?: {
53
+ readonly path: string;
54
+ } | undefined;
55
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
56
+ readonly index?: {
57
+ readonly path: string;
58
+ } | undefined;
59
+ }, import("effect/ParseResult").ParseError, never>;
60
+ export declare const encodeSync: (a: {
61
+ readonly index?: {
62
+ readonly path: string;
63
+ } | undefined;
64
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
65
+ readonly index?: {
66
+ readonly path: string;
67
+ } | undefined;
68
+ };
69
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/api/reference/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAMxC,eAAO,MAAM,OAAO;IAClB;;;OAGG;;QAED;;WAEG;;;EAML,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI;;;;;;;;CAAe,CAAA;AAMhC,eAAO,MAAM,EAAE;;;;CAAgB,CAAA;AAM/B;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,SAAS,OAAO,KAAG,OAE3C,CAAA;AAMD,eAAO,MAAM,MAAM;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;CAAwB,CAAA"}
@@ -0,0 +1,44 @@
1
+ import { S } from '#lib/kit-temp/effect';
2
+ // ============================================================================
3
+ // Schema and Type
4
+ // ============================================================================
5
+ export const Catalog = S.Struct({
6
+ /**
7
+ * Optional index file metadata for custom reference landing page.
8
+ * If not provided, the app will redirect to the Query type.
9
+ */
10
+ index: S.optional(S.Struct({
11
+ /**
12
+ * Path to the index.md or index.mdx file
13
+ */
14
+ path: S.String,
15
+ })),
16
+ }).annotations({
17
+ identifier: 'ReferenceCatalog',
18
+ description: 'A catalog of reference documentation metadata',
19
+ });
20
+ // ============================================================================
21
+ // Constructors
22
+ // ============================================================================
23
+ export const make = Catalog.make;
24
+ // ============================================================================
25
+ // Type Guards
26
+ // ============================================================================
27
+ export const is = S.is(Catalog);
28
+ // ============================================================================
29
+ // State Predicates
30
+ // ============================================================================
31
+ /**
32
+ * Check if the catalog has a custom index page
33
+ */
34
+ export const hasIndex = (catalog) => {
35
+ return catalog.index !== undefined;
36
+ };
37
+ // ============================================================================
38
+ // Codec
39
+ // ============================================================================
40
+ export const decode = S.decode(Catalog);
41
+ export const decodeSync = S.decodeSync(Catalog);
42
+ export const encode = S.encode(Catalog);
43
+ export const encodeSync = S.encodeSync(Catalog);
44
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/api/reference/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B;;;OAGG;IACH,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB;;WAEG;QACH,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC,CAAC;CACJ,CAAC,CAAC,WAAW,CAAC;IACb,UAAU,EAAE,kBAAkB;IAC9B,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAA;AAIF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;AAEhC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;AAE/B,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAgB,EAAW,EAAE;IACpD,OAAO,OAAO,CAAC,KAAK,KAAK,SAAS,CAAA;AACpC,CAAC,CAAA;AAED,+EAA+E;AAC/E,QAAQ;AACR,+EAA+E;AAE/E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AAC/C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA"}