polen 0.11.0-next.1 → 0.11.0-next.11

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 (215) hide show
  1. package/build/api/api.d.ts +2 -1
  2. package/build/api/api.d.ts.map +1 -1
  3. package/build/api/api.js +5 -1
  4. package/build/api/api.js.map +1 -1
  5. package/build/api/config/configurator.d.ts +35 -23
  6. package/build/api/config/configurator.d.ts.map +1 -1
  7. package/build/api/config/configurator.js +0 -6
  8. package/build/api/config/configurator.js.map +1 -1
  9. package/build/api/config/merge.d.ts.map +1 -1
  10. package/build/api/config/merge.js +0 -11
  11. package/build/api/config/merge.js.map +1 -1
  12. package/build/api/content/metadata.d.ts +8 -2
  13. package/build/api/content/metadata.d.ts.map +1 -1
  14. package/build/api/content/metadata.js +1 -1
  15. package/build/api/content/metadata.js.map +1 -1
  16. package/build/api/iso/$$.d.ts +2 -0
  17. package/build/api/iso/$$.d.ts.map +1 -0
  18. package/build/api/iso/$$.js +2 -0
  19. package/build/api/iso/$$.js.map +1 -0
  20. package/build/api/iso/$.d.ts +2 -0
  21. package/build/api/iso/$.d.ts.map +1 -0
  22. package/build/api/iso/$.js +2 -0
  23. package/build/api/iso/$.js.map +1 -0
  24. package/build/api/iso/schema/$$.d.ts +4 -0
  25. package/build/api/iso/schema/$$.d.ts.map +1 -0
  26. package/build/api/iso/schema/$$.js +3 -0
  27. package/build/api/iso/schema/$$.js.map +1 -0
  28. package/build/api/iso/schema/$.d.ts +2 -0
  29. package/build/api/iso/schema/$.d.ts.map +1 -0
  30. package/build/api/iso/schema/$.js +2 -0
  31. package/build/api/iso/schema/$.js.map +1 -0
  32. package/build/api/iso/schema/constants.d.ts +25 -0
  33. package/build/api/iso/schema/constants.d.ts.map +1 -0
  34. package/build/api/iso/schema/constants.js +42 -0
  35. package/build/api/iso/schema/constants.js.map +1 -0
  36. package/build/api/iso/schema/routing.d.ts +22 -0
  37. package/build/api/iso/schema/routing.d.ts.map +1 -0
  38. package/build/api/iso/schema/routing.js +39 -0
  39. package/build/api/iso/schema/routing.js.map +1 -0
  40. package/build/api/iso.d.ts +2 -0
  41. package/build/api/iso.d.ts.map +1 -0
  42. package/build/api/iso.js +2 -0
  43. package/build/api/iso.js.map +1 -0
  44. package/build/api/schema/data-sources/data-sources.d.ts +1 -0
  45. package/build/api/schema/data-sources/data-sources.d.ts.map +1 -1
  46. package/build/api/schema/data-sources/data-sources.js +1 -0
  47. package/build/api/schema/data-sources/data-sources.js.map +1 -1
  48. package/build/api/schema/data-sources/introspection/introspection.d.ts +83 -0
  49. package/build/api/schema/data-sources/introspection/introspection.d.ts.map +1 -0
  50. package/build/api/schema/data-sources/introspection/introspection.js +110 -0
  51. package/build/api/schema/data-sources/introspection/introspection.js.map +1 -0
  52. package/build/api/schema/metadata.d.ts +11 -3
  53. package/build/api/schema/metadata.d.ts.map +1 -1
  54. package/build/api/schema/metadata.js +1 -1
  55. package/build/api/schema/metadata.js.map +1 -1
  56. package/build/api/schema/read.d.ts +83 -9
  57. package/build/api/schema/read.d.ts.map +1 -1
  58. package/build/api/schema/read.js +15 -6
  59. package/build/api/schema/read.js.map +1 -1
  60. package/build/api/schema/schema.d.ts +3 -25
  61. package/build/api/schema/schema.d.ts.map +1 -1
  62. package/build/api/schema/schema.js +5 -42
  63. package/build/api/schema/schema.js.map +1 -1
  64. package/build/api/schema-source/schema-source.d.ts +1 -1
  65. package/build/api/schema-source/schema-source.d.ts.map +1 -1
  66. package/build/api/schema-source/schema-source.js.map +1 -1
  67. package/build/api/static/manifest.d.ts +1 -2
  68. package/build/api/static/manifest.d.ts.map +1 -1
  69. package/build/api/static/manifest.js +1 -1
  70. package/build/api/static/manifest.js.map +1 -1
  71. package/build/api/vite/plugins/build.d.ts.map +1 -1
  72. package/build/api/vite/plugins/build.js +3 -0
  73. package/build/api/vite/plugins/build.js.map +1 -1
  74. package/build/api/vite/plugins/core.d.ts.map +1 -1
  75. package/build/api/vite/plugins/core.js +11 -14
  76. package/build/api/vite/plugins/core.js.map +1 -1
  77. package/build/api/vite/plugins/main.d.ts.map +1 -1
  78. package/build/api/vite/plugins/main.js +1 -8
  79. package/build/api/vite/plugins/main.js.map +1 -1
  80. package/build/api/vite/plugins/schema-assets.d.ts.map +1 -1
  81. package/build/api/vite/plugins/schema-assets.js +52 -11
  82. package/build/api/vite/plugins/schema-assets.js.map +1 -1
  83. package/build/cli/commands/open.js +1 -1
  84. package/build/cli/commands/open.js.map +1 -1
  85. package/build/lib/grafaid/schema/schema.d.ts +1 -1
  86. package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
  87. package/build/lib/grafaid/schema/schema.js +1 -1
  88. package/build/lib/grafaid/schema/schema.js.map +1 -1
  89. package/build/lib/kit-temp.js +2 -2
  90. package/build/lib/kit-temp.js.map +1 -1
  91. package/build/lib/react-router-aid/react-router-aid.d.ts +5 -3
  92. package/build/lib/react-router-aid/react-router-aid.d.ts.map +1 -1
  93. package/build/lib/react-router-aid/react-router-aid.js +7 -4
  94. package/build/lib/react-router-aid/react-router-aid.js.map +1 -1
  95. package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
  96. package/build/template/components/GraphQLInteractive/lib/parser.js +32 -10
  97. package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
  98. package/build/template/components/HamburgerMenu.d.ts +1 -0
  99. package/build/template/components/HamburgerMenu.d.ts.map +1 -1
  100. package/build/template/components/HamburgerMenu.js +2 -2
  101. package/build/template/components/HamburgerMenu.js.map +1 -1
  102. package/build/template/components/ReferenceLink.d.ts.map +1 -1
  103. package/build/template/components/ReferenceLink.js +2 -4
  104. package/build/template/components/ReferenceLink.js.map +1 -1
  105. package/build/template/components/VersionSelector.d.ts +3 -2
  106. package/build/template/components/VersionSelector.d.ts.map +1 -1
  107. package/build/template/components/VersionSelector.js +7 -15
  108. package/build/template/components/VersionSelector.js.map +1 -1
  109. package/build/template/components/sidebar/Sidebar.d.ts +3 -2
  110. package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
  111. package/build/template/components/sidebar/Sidebar.js +7 -6
  112. package/build/template/components/sidebar/Sidebar.js.map +1 -1
  113. package/build/template/components/sidebar/SidebarContext.d.ts +6 -0
  114. package/build/template/components/sidebar/SidebarContext.d.ts.map +1 -0
  115. package/build/template/components/sidebar/SidebarContext.js +3 -0
  116. package/build/template/components/sidebar/SidebarContext.js.map +1 -0
  117. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  118. package/build/template/components/sidebar/SidebarItem.js +11 -4
  119. package/build/template/components/sidebar/SidebarItem.js.map +1 -1
  120. package/build/template/hooks/useVersionPath.d.ts.map +1 -1
  121. package/build/template/hooks/useVersionPath.js +3 -1
  122. package/build/template/hooks/useVersionPath.js.map +1 -1
  123. package/build/template/layouts/SidebarLayout.d.ts +3 -2
  124. package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
  125. package/build/template/layouts/SidebarLayout.js +2 -2
  126. package/build/template/layouts/SidebarLayout.js.map +1 -1
  127. package/build/template/routes/changelog.js +2 -2
  128. package/build/template/routes/changelog.js.map +1 -1
  129. package/build/template/routes/index.js +2 -2
  130. package/build/template/routes/index.js.map +1 -1
  131. package/build/template/routes/pages.js +2 -2
  132. package/build/template/routes/pages.js.map +1 -1
  133. package/build/template/routes/reference.d.ts +27 -4
  134. package/build/template/routes/reference.d.ts.map +1 -1
  135. package/build/template/routes/reference.js +82 -24
  136. package/build/template/routes/reference.js.map +1 -1
  137. package/build/template/routes/root.js +3 -3
  138. package/build/template/routes/root.js.map +1 -1
  139. package/build/template/server/ssg/get-route-paths.d.ts.map +1 -1
  140. package/build/template/server/ssg/get-route-paths.js +81 -9
  141. package/build/template/server/ssg/get-route-paths.js.map +1 -1
  142. package/build/template/sources/schema-source.d.ts +1 -1
  143. package/build/template/sources/schema-source.d.ts.map +1 -1
  144. package/build/template/sources/schema-source.js +2 -1
  145. package/build/template/sources/schema-source.js.map +1 -1
  146. package/package.json +19 -17
  147. package/src/api/api.ts +7 -1
  148. package/src/api/config/configurator.ts +35 -30
  149. package/src/api/config/merge.ts +0 -16
  150. package/src/api/content/metadata.ts +1 -1
  151. package/src/api/iso/$$.ts +1 -0
  152. package/src/api/iso/$.ts +1 -0
  153. package/src/api/iso/schema/$$.ts +5 -0
  154. package/src/api/iso/schema/$.ts +1 -0
  155. package/src/api/iso/schema/constants.ts +49 -0
  156. package/src/api/iso/schema/routing.ts +53 -0
  157. package/src/api/iso.ts +1 -0
  158. package/src/api/schema/data-sources/data-sources.ts +1 -0
  159. package/src/api/schema/data-sources/introspection/introspection.ts +213 -0
  160. package/src/api/schema/metadata.ts +1 -1
  161. package/src/api/schema/read.ts +107 -16
  162. package/src/api/schema/schema.ts +6 -53
  163. package/src/api/schema-source/schema-source.ts +3 -3
  164. package/src/api/static/manifest.ts +1 -1
  165. package/src/api/vite/plugins/build.ts +3 -0
  166. package/src/api/vite/plugins/core.ts +11 -14
  167. package/src/api/vite/plugins/main.ts +1 -9
  168. package/src/api/vite/plugins/schema-assets.ts +59 -12
  169. package/src/cli/commands/open.ts +1 -1
  170. package/src/lib/grafaid/schema/schema.ts +1 -0
  171. package/src/lib/kit-temp.ts +2 -2
  172. package/src/lib/mask/$.test.ts +3 -3
  173. package/src/lib/react-router-aid/react-router-aid.ts +12 -6
  174. package/src/template/components/GraphQLInteractive/lib/parser.ts +32 -16
  175. package/src/template/components/HamburgerMenu.tsx +3 -1
  176. package/src/template/components/ReferenceLink.tsx +7 -4
  177. package/src/template/components/VersionSelector.tsx +10 -18
  178. package/src/template/components/sidebar/Sidebar.tsx +20 -16
  179. package/src/template/components/sidebar/SidebarContext.tsx +7 -0
  180. package/src/template/components/sidebar/SidebarItem.tsx +11 -4
  181. package/src/template/hooks/useVersionPath.ts +3 -1
  182. package/src/template/layouts/SidebarLayout.tsx +5 -3
  183. package/src/template/routes/changelog.tsx +2 -2
  184. package/src/template/routes/index.tsx +2 -2
  185. package/src/template/routes/pages.tsx +2 -2
  186. package/src/template/routes/reference.tsx +90 -25
  187. package/src/template/routes/root.tsx +3 -3
  188. package/src/template/server/ssg/get-route-paths.test.ts +145 -0
  189. package/src/template/server/ssg/get-route-paths.ts +80 -9
  190. package/src/template/sources/schema-source.ts +2 -1
  191. package/build/template/lib/schema-utils/constants.d.ts +0 -5
  192. package/build/template/lib/schema-utils/constants.d.ts.map +0 -1
  193. package/build/template/lib/schema-utils/constants.js +0 -5
  194. package/build/template/lib/schema-utils/constants.js.map +0 -1
  195. package/build/template/routes/reference.$type.$field.d.ts +0 -5
  196. package/build/template/routes/reference.$type.$field.d.ts.map +0 -1
  197. package/build/template/routes/reference.$type.$field.js +0 -31
  198. package/build/template/routes/reference.$type.$field.js.map +0 -1
  199. package/build/template/routes/reference.$type.d.ts +0 -9
  200. package/build/template/routes/reference.$type.d.ts.map +0 -1
  201. package/build/template/routes/reference.$type.js +0 -25
  202. package/build/template/routes/reference.$type.js.map +0 -1
  203. package/build/template/routes/reference.version.$version.$type.$field.d.ts +0 -6
  204. package/build/template/routes/reference.version.$version.$type.$field.d.ts.map +0 -1
  205. package/build/template/routes/reference.version.$version.$type.$field.js +0 -32
  206. package/build/template/routes/reference.version.$version.$type.$field.js.map +0 -1
  207. package/build/template/routes/reference.version.$version.$type.d.ts +0 -11
  208. package/build/template/routes/reference.version.$version.$type.d.ts.map +0 -1
  209. package/build/template/routes/reference.version.$version.$type.js +0 -26
  210. package/build/template/routes/reference.version.$version.$type.js.map +0 -1
  211. package/src/template/lib/schema-utils/constants.ts +0 -4
  212. package/src/template/routes/reference.$type.$field.tsx +0 -34
  213. package/src/template/routes/reference.$type.tsx +0 -29
  214. package/src/template/routes/reference.version.$version.$type.$field.tsx +0 -35
  215. package/src/template/routes/reference.version.$version.$type.tsx +0 -30
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-exports of schema constants for template usage
3
- */
4
- export { dateToVersionString, VERSION_LATEST } from '#api/schema/schema';
5
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/template/lib/schema-utils/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-exports of schema constants for template usage
3
- */
4
- export { dateToVersionString, VERSION_LATEST } from '#api/schema/schema';
5
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/template/lib/schema-utils/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const reference$type$field: {
2
- path: string;
3
- Component: () => string | import("react/jsx-runtime").JSX.Element;
4
- };
5
- //# sourceMappingURL=reference.$type.$field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.$type.$field.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.$type.$field.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,oBAAoB;;;CAG/B,CAAA"}
@@ -1,31 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Grafaid } from '#lib/grafaid/index';
3
- import { ReactRouterAid } from '#lib/react-router-aid/index';
4
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader';
5
- import { useParams } from 'react-router';
6
- import { Field } from '../components/Field.js';
7
- import { MissingSchema } from '../components/MissingSchema.js';
8
- const Component = () => {
9
- const params = useParams();
10
- const data = useLoaderData(`reference`);
11
- if (!data.schema) {
12
- return _jsx(MissingSchema, {});
13
- }
14
- const type = data.schema.getType(params.type);
15
- if (!type)
16
- return `Could not find type ${params.type}`;
17
- if (!Grafaid.Schema.TypesLike.isFielded(type)) {
18
- return `Type ${params.type} does not have fields`;
19
- }
20
- const fields = type.getFields();
21
- const field = fields[params.field];
22
- if (!field) {
23
- return `Could not find field ${params.field} on type ${params.type}`;
24
- }
25
- return _jsx(Field, { data: field });
26
- };
27
- export const reference$type$field = ReactRouterAid.createRoute({
28
- path: `:field`,
29
- Component,
30
- });
31
- //# sourceMappingURL=reference.$type.$field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.$type.$field.js","sourceRoot":"","sources":["../../../src/template/routes/reference.$type.$field.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAG9D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAAG,SAAS,EAAqC,CAAA;IAC7D,MAAM,IAAI,GAAG,aAAa,CAA0B,WAAW,CAAC,CAAA;IAChE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,KAAC,aAAa,KAAG,CAAA;IAC1B,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7C,IAAI,CAAC,IAAI;QAAE,OAAO,uBAAuB,MAAM,CAAC,IAAI,EAAE,CAAA;IACtD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,OAAO,QAAQ,MAAM,CAAC,IAAI,uBAAuB,CAAA;IACnD,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;IAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,wBAAwB,MAAM,CAAC,KAAK,YAAY,MAAM,CAAC,IAAI,EAAE,CAAA;IACtE,CAAC;IAED,OAAO,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,GAAI,CAAA;AAC/B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,WAAW,CAAC;IAC7D,IAAI,EAAE,QAAQ;IACd,SAAS;CACV,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- export declare const reference$type: {
2
- path: string;
3
- Component: () => string | import("react/jsx-runtime").JSX.Element;
4
- children: {
5
- path: string;
6
- Component: () => string | import("react/jsx-runtime").JSX.Element;
7
- }[];
8
- };
9
- //# sourceMappingURL=reference.$type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.$type.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.$type.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,cAAc;;;;;;;CAIzB,CAAA"}
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createRoute } from '#lib/react-router-aid/react-router-aid';
3
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader';
4
- import { useParams } from 'react-router';
5
- import { MissingSchema } from '../components/MissingSchema.js';
6
- import { NamedType } from '../components/NamedType.js';
7
- import { reference$type$field } from './reference.$type.$field.js';
8
- const Component = () => {
9
- const params = useParams();
10
- const data = useLoaderData(`reference`);
11
- if (!data.schema) {
12
- return _jsx(MissingSchema, {});
13
- }
14
- const type = data.schema.getType(params.type);
15
- if (!type) {
16
- return `Could not find type ${params.type}`;
17
- }
18
- return _jsx(NamedType, { data: type });
19
- };
20
- export const reference$type = createRoute({
21
- path: `:type`,
22
- Component,
23
- children: [reference$type$field],
24
- });
25
- //# sourceMappingURL=reference.$type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.$type.js","sourceRoot":"","sources":["../../../src/template/routes/reference.$type.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAGlE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAAG,SAAS,EAAsB,CAAA;IAE9C,MAAM,IAAI,GAAG,aAAa,CAA0B,WAAW,CAAC,CAAA;IAChE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,KAAC,aAAa,KAAG,CAAA;IAC1B,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,uBAAuB,MAAM,CAAC,IAAI,EAAE,CAAA;IAC7C,CAAC;IAED,OAAO,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;IACxC,IAAI,EAAE,OAAO;IACb,SAAS;IACT,QAAQ,EAAE,CAAC,oBAAoB,CAAC;CACjC,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const referenceVersion$version$type$field: {
2
- id: string;
3
- path: string;
4
- Component: () => string | import("react/jsx-runtime").JSX.Element;
5
- };
6
- //# sourceMappingURL=reference.version.$version.$type.$field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.version.$version.$type.$field.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.version.$version.$type.$field.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mCAAmC;;;;CAI9C,CAAA"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Grafaid } from '#lib/grafaid/index';
3
- import { createRoute } from '#lib/react-router-aid/react-router-aid';
4
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader';
5
- import { useParams } from 'react-router';
6
- import { Field } from '../components/Field.js';
7
- import { MissingSchema } from '../components/MissingSchema.js';
8
- const Component = () => {
9
- const params = useParams();
10
- const data = useLoaderData(`reference`);
11
- if (!data.schema) {
12
- return _jsx(MissingSchema, {});
13
- }
14
- const type = data.schema.getType(params.type);
15
- if (!type)
16
- return `Could not find type ${params.type}`;
17
- if (!Grafaid.Schema.TypesLike.isFielded(type)) {
18
- return `Type ${params.type} does not have fields`;
19
- }
20
- const fields = type.getFields();
21
- const field = fields[params.field];
22
- if (!field) {
23
- return `Could not find field ${params.field} on type ${params.type}`;
24
- }
25
- return _jsx(Field, { data: field });
26
- };
27
- export const referenceVersion$version$type$field = createRoute({
28
- id: `reference-version-type-field`,
29
- path: `:field`,
30
- Component,
31
- });
32
- //# sourceMappingURL=reference.version.$version.$type.$field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.version.$version.$type.$field.js","sourceRoot":"","sources":["../../../src/template/routes/reference.version.$version.$type.$field.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAG9D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAAG,SAAS,EAAsD,CAAA;IAC9E,MAAM,IAAI,GAAG,aAAa,CAA0B,WAAW,CAAC,CAAA;IAChE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,KAAC,aAAa,KAAG,CAAA;IAC1B,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7C,IAAI,CAAC,IAAI;QAAE,OAAO,uBAAuB,MAAM,CAAC,IAAI,EAAE,CAAA;IACtD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,OAAO,QAAQ,MAAM,CAAC,IAAI,uBAAuB,CAAA;IACnD,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;IAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,wBAAwB,MAAM,CAAC,KAAK,YAAY,MAAM,CAAC,IAAI,EAAE,CAAA;IACtE,CAAC;IAED,OAAO,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,GAAI,CAAA;AAC/B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,WAAW,CAAC;IAC7D,EAAE,EAAE,8BAA8B;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS;CACV,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- export declare const referenceVersion$version$type: {
2
- id: string;
3
- path: string;
4
- Component: () => import("react/jsx-runtime").JSX.Element;
5
- children: {
6
- id: string;
7
- path: string;
8
- Component: () => string | import("react/jsx-runtime").JSX.Element;
9
- }[];
10
- };
11
- //# sourceMappingURL=reference.version.$version.$type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.version.$version.$type.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.version.$version.$type.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,6BAA6B;;;;;;;;;CAKxC,CAAA"}
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { createRoute } from '#lib/react-router-aid/react-router-aid';
3
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader';
4
- import { useParams } from 'react-router';
5
- import { MissingSchema } from '../components/MissingSchema.js';
6
- import { NamedType } from '../components/NamedType.js';
7
- import { referenceVersion$version$type$field } from './reference.version.$version.$type.$field.js';
8
- const Component = () => {
9
- const params = useParams();
10
- const data = useLoaderData(`reference`);
11
- if (!data.schema) {
12
- return _jsx(MissingSchema, {});
13
- }
14
- const type = data.schema.getType(params.type);
15
- if (!type) {
16
- return _jsxs("div", { children: ["Type not found: ", params.type] });
17
- }
18
- return _jsx(NamedType, { data: type });
19
- };
20
- export const referenceVersion$version$type = createRoute({
21
- id: `reference-version-type`,
22
- path: `:type`,
23
- Component,
24
- children: [referenceVersion$version$type$field],
25
- });
26
- //# sourceMappingURL=reference.version.$version.$type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.version.$version.$type.js","sourceRoot":"","sources":["../../../src/template/routes/reference.version.$version.$type.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAA;AAElG,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAAG,SAAS,EAAuC,CAAA;IAE/D,MAAM,IAAI,GAAG,aAAa,CAA0B,WAAW,CAAC,CAAA;IAChE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,KAAC,aAAa,KAAG,CAAA;IAC1B,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,8CAAsB,MAAM,CAAC,IAAI,IAAO,CAAA;IACjD,CAAC;IAED,OAAO,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;IACvD,EAAE,EAAE,wBAAwB;IAC5B,IAAI,EAAE,OAAO;IACb,SAAS;IACT,QAAQ,EAAE,CAAC,mCAAmC,CAAC;CAChD,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- /**
2
- * Re-exports of schema constants for template usage
3
- */
4
- export { dateToVersionString, VERSION_LATEST } from '#api/schema/schema'
@@ -1,34 +0,0 @@
1
- import { Grafaid } from '#lib/grafaid/index'
2
- import { ReactRouterAid } from '#lib/react-router-aid/index'
3
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader'
4
- import { useParams } from 'react-router'
5
- import { Field } from '../components/Field.js'
6
- import { MissingSchema } from '../components/MissingSchema.js'
7
- import type { reference } from './reference.js'
8
-
9
- const Component = () => {
10
- const params = useParams() as { type: string; field: string }
11
- const data = useLoaderData<typeof reference.loader>(`reference`)
12
- if (!data.schema) {
13
- return <MissingSchema />
14
- }
15
-
16
- const type = data.schema.getType(params.type)
17
- if (!type) return `Could not find type ${params.type}`
18
- if (!Grafaid.Schema.TypesLike.isFielded(type)) {
19
- return `Type ${params.type} does not have fields`
20
- }
21
-
22
- const fields = type.getFields()
23
- const field = fields[params.field]
24
- if (!field) {
25
- return `Could not find field ${params.field} on type ${params.type}`
26
- }
27
-
28
- return <Field data={field} />
29
- }
30
-
31
- export const reference$type$field = ReactRouterAid.createRoute({
32
- path: `:field`,
33
- Component,
34
- })
@@ -1,29 +0,0 @@
1
- import { createRoute } from '#lib/react-router-aid/react-router-aid'
2
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader'
3
- import { useParams } from 'react-router'
4
- import { MissingSchema } from '../components/MissingSchema.js'
5
- import { NamedType } from '../components/NamedType.js'
6
- import { reference$type$field } from './reference.$type.$field.js'
7
- import type { reference } from './reference.js'
8
-
9
- const Component = () => {
10
- const params = useParams() as { type: string }
11
-
12
- const data = useLoaderData<typeof reference.loader>(`reference`)
13
- if (!data.schema) {
14
- return <MissingSchema />
15
- }
16
-
17
- const type = data.schema.getType(params.type)
18
- if (!type) {
19
- return `Could not find type ${params.type}`
20
- }
21
-
22
- return <NamedType data={type} />
23
- }
24
-
25
- export const reference$type = createRoute({
26
- path: `:type`,
27
- Component,
28
- children: [reference$type$field],
29
- })
@@ -1,35 +0,0 @@
1
- import { Grafaid } from '#lib/grafaid/index'
2
- import { createRoute } from '#lib/react-router-aid/react-router-aid'
3
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader'
4
- import { useParams } from 'react-router'
5
- import { Field } from '../components/Field.js'
6
- import { MissingSchema } from '../components/MissingSchema.js'
7
- import type { reference } from './reference.js'
8
-
9
- const Component = () => {
10
- const params = useParams() as { type: string; field: string; version: string }
11
- const data = useLoaderData<typeof reference.loader>(`reference`)
12
- if (!data.schema) {
13
- return <MissingSchema />
14
- }
15
-
16
- const type = data.schema.getType(params.type)
17
- if (!type) return `Could not find type ${params.type}`
18
- if (!Grafaid.Schema.TypesLike.isFielded(type)) {
19
- return `Type ${params.type} does not have fields`
20
- }
21
-
22
- const fields = type.getFields()
23
- const field = fields[params.field]
24
- if (!field) {
25
- return `Could not find field ${params.field} on type ${params.type}`
26
- }
27
-
28
- return <Field data={field} />
29
- }
30
-
31
- export const referenceVersion$version$type$field = createRoute({
32
- id: `reference-version-type-field`,
33
- path: `:field`,
34
- Component,
35
- })
@@ -1,30 +0,0 @@
1
- import { createRoute } from '#lib/react-router-aid/react-router-aid'
2
- import { useLoaderData } from '#lib/react-router-loader/react-router-loader'
3
- import { useParams } from 'react-router'
4
- import { MissingSchema } from '../components/MissingSchema.js'
5
- import { NamedType } from '../components/NamedType.js'
6
- import type { reference } from './reference.js'
7
- import { referenceVersion$version$type$field } from './reference.version.$version.$type.$field.js'
8
-
9
- const Component = () => {
10
- const params = useParams() as { type: string; version: string }
11
-
12
- const data = useLoaderData<typeof reference.loader>(`reference`)
13
- if (!data.schema) {
14
- return <MissingSchema />
15
- }
16
-
17
- const type = data.schema.getType(params.type)
18
- if (!type) {
19
- return <div>Type not found: {params.type}</div>
20
- }
21
-
22
- return <NamedType data={type} />
23
- }
24
-
25
- export const referenceVersion$version$type = createRoute({
26
- id: `reference-version-type`,
27
- path: `:type`,
28
- Component,
29
- children: [referenceVersion$version$type$field],
30
- })