polen 0.10.0-next.18 → 0.10.0-next.20

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 (128) hide show
  1. package/README.md +2 -2
  2. package/build/api/api.d.ts +1 -0
  3. package/build/api/api.d.ts.map +1 -1
  4. package/build/api/api.js +1 -0
  5. package/build/api/api.js.map +1 -1
  6. package/build/api/builder/builder.d.ts +8 -2
  7. package/build/api/builder/builder.d.ts.map +1 -1
  8. package/build/api/builder/builder.js +5 -18
  9. package/build/api/builder/builder.js.map +1 -1
  10. package/build/api/config/configurator.d.ts +31 -8
  11. package/build/api/config/configurator.d.ts.map +1 -1
  12. package/build/api/config/configurator.js +9 -10
  13. package/build/api/config/configurator.js.map +1 -1
  14. package/build/api/config/merge.d.ts.map +1 -1
  15. package/build/api/config/merge.js +9 -16
  16. package/build/api/config/merge.js.map +1 -1
  17. package/build/api/project/index.d.ts +2 -0
  18. package/build/api/project/index.d.ts.map +1 -0
  19. package/build/api/project/index.js +2 -0
  20. package/build/api/project/index.js.map +1 -0
  21. package/build/api/project/validate.d.ts +11 -0
  22. package/build/api/project/validate.d.ts.map +1 -0
  23. package/build/api/project/validate.js +30 -0
  24. package/build/api/project/validate.js.map +1 -0
  25. package/build/api/vite/plugins/core.d.ts.map +1 -1
  26. package/build/api/vite/plugins/core.js +1 -0
  27. package/build/api/vite/plugins/core.js.map +1 -1
  28. package/build/api/vite/plugins/pages.d.ts.map +1 -1
  29. package/build/api/vite/plugins/pages.js +12 -0
  30. package/build/api/vite/plugins/pages.js.map +1 -1
  31. package/build/api/vite/plugins/serve.js +1 -1
  32. package/build/api/vite/plugins/serve.js.map +1 -1
  33. package/build/cli/_/parameters.d.ts +6 -0
  34. package/build/cli/_/parameters.d.ts.map +1 -0
  35. package/build/cli/_/parameters.js +9 -0
  36. package/build/cli/_/parameters.js.map +1 -0
  37. package/build/cli/commands/build.js +17 -10
  38. package/build/cli/commands/build.js.map +1 -1
  39. package/build/cli/commands/config/create.js +12 -1
  40. package/build/cli/commands/config/create.js.map +1 -1
  41. package/build/cli/commands/create.js +3 -5
  42. package/build/cli/commands/create.js.map +1 -1
  43. package/build/cli/commands/dev.js +14 -4
  44. package/build/cli/commands/dev.js.map +1 -1
  45. package/build/exports/mdx.d.ts +2 -0
  46. package/build/exports/mdx.d.ts.map +1 -0
  47. package/build/exports/mdx.js +2 -0
  48. package/build/exports/mdx.js.map +1 -0
  49. package/build/lib/graphql-document/components/GraphQLDocument.d.ts +2 -0
  50. package/build/lib/graphql-document/components/GraphQLDocument.d.ts.map +1 -1
  51. package/build/lib/graphql-document/components/GraphQLDocument.js +4 -2
  52. package/build/lib/graphql-document/components/GraphQLDocument.js.map +1 -1
  53. package/build/lib/kit-temp.d.ts +33 -0
  54. package/build/lib/kit-temp.d.ts.map +1 -1
  55. package/build/lib/kit-temp.js +48 -0
  56. package/build/lib/kit-temp.js.map +1 -1
  57. package/build/project-data.d.ts +1 -0
  58. package/build/project-data.d.ts.map +1 -1
  59. package/build/template/components/CodeBlock.d.ts +6 -3
  60. package/build/template/components/CodeBlock.d.ts.map +1 -1
  61. package/build/template/components/CodeBlock.js +19 -2
  62. package/build/template/components/CodeBlock.js.map +1 -1
  63. package/build/template/components/CodeHikePre.d.ts +16 -0
  64. package/build/template/components/CodeHikePre.d.ts.map +1 -0
  65. package/build/template/components/CodeHikePre.js +37 -0
  66. package/build/template/components/CodeHikePre.js.map +1 -0
  67. package/build/template/layouts/SidebarLayout.d.ts.map +1 -0
  68. package/build/template/{components/layouts → layouts}/SidebarLayout.js +3 -3
  69. package/build/template/layouts/SidebarLayout.js.map +1 -0
  70. package/build/template/layouts/index.d.ts.map +1 -0
  71. package/build/template/layouts/index.js.map +1 -0
  72. package/build/template/routes/reference.d.ts.map +1 -1
  73. package/build/template/routes/reference.js +1 -2
  74. package/build/template/routes/reference.js.map +1 -1
  75. package/build/template/routes/root.d.ts.map +1 -1
  76. package/build/template/routes/root.js +64 -7
  77. package/build/template/routes/root.js.map +1 -1
  78. package/build/template/server/main.js +2 -1
  79. package/build/template/server/main.js.map +1 -1
  80. package/package.json +7 -6
  81. package/src/api/api.ts +1 -0
  82. package/src/api/builder/builder.ts +12 -21
  83. package/src/api/config/configurator.ts +41 -19
  84. package/src/api/config/merge.ts +13 -16
  85. package/src/api/project/index.ts +1 -0
  86. package/src/api/project/validate.ts +41 -0
  87. package/src/api/vite/plugins/core.ts +1 -0
  88. package/src/api/vite/plugins/pages.ts +13 -0
  89. package/src/api/vite/plugins/serve.ts +1 -1
  90. package/src/cli/_/parameters.ts +10 -0
  91. package/src/cli/commands/build.ts +25 -10
  92. package/src/cli/commands/config/create.ts +18 -1
  93. package/src/cli/commands/create.ts +4 -4
  94. package/src/cli/commands/dev.ts +19 -5
  95. package/src/exports/mdx.ts +1 -0
  96. package/src/lib/graphql-document/components/GraphQLDocument.tsx +12 -3
  97. package/src/lib/kit-temp.test.ts +85 -1
  98. package/src/lib/kit-temp.ts +51 -0
  99. package/src/project-data.ts +1 -0
  100. package/src/template/components/CodeBlock.tsx +29 -13
  101. package/src/template/components/CodeHikePre.tsx +51 -0
  102. package/src/template/{components/layouts → layouts}/SidebarLayout.tsx +3 -3
  103. package/src/template/routes/reference.tsx +1 -2
  104. package/src/template/routes/root.tsx +99 -8
  105. package/src/template/server/main.ts +2 -1
  106. package/build/exports/components.d.ts +0 -5
  107. package/build/exports/components.d.ts.map +0 -1
  108. package/build/exports/components.js +0 -5
  109. package/build/exports/components.js.map +0 -1
  110. package/build/template/components/MDXComponents.d.ts +0 -10
  111. package/build/template/components/MDXComponents.d.ts.map +0 -1
  112. package/build/template/components/MDXComponents.js +0 -12
  113. package/build/template/components/MDXComponents.js.map +0 -1
  114. package/build/template/components/TestComponent.d.ts +0 -5
  115. package/build/template/components/TestComponent.d.ts.map +0 -1
  116. package/build/template/components/TestComponent.js +0 -7
  117. package/build/template/components/TestComponent.js.map +0 -1
  118. package/build/template/components/layouts/SidebarLayout.d.ts.map +0 -1
  119. package/build/template/components/layouts/SidebarLayout.js.map +0 -1
  120. package/build/template/components/layouts/index.d.ts.map +0 -1
  121. package/build/template/components/layouts/index.js.map +0 -1
  122. package/src/exports/components.ts +0 -4
  123. package/src/template/components/MDXComponents.tsx +0 -17
  124. package/src/template/components/TestComponent.tsx +0 -6
  125. /package/build/template/{components/layouts → layouts}/SidebarLayout.d.ts +0 -0
  126. /package/build/template/{components/layouts → layouts}/index.d.ts +0 -0
  127. /package/build/template/{components/layouts → layouts}/index.js +0 -0
  128. /package/src/template/{components/layouts → layouts}/index.ts +0 -0
@@ -1,7 +0,0 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- export const TestComponent = ({ children }) => {
4
- console.log(`TestComponent rendered!`);
5
- return _jsxs("div", { style: { border: `2px solid red`, padding: `10px` }, children: ["TEST: ", children] });
6
- };
7
- //# sourceMappingURL=TestComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestComponent.js","sourceRoot":"","sources":["../../../src/template/components/TestComponent.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,MAAM,aAAa,GAA4C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;IACtC,OAAO,eAAK,KAAK,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,uBAAS,QAAQ,IAAO,CAAA;AACzF,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../../src/template/components/layouts/SidebarLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,C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AE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,aAGvC,aAAa,IAAI,CAChB,KAAC,GAAG,IAAC,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAC,GAAG,YACpD,KAAC,aAAa,IACZ,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,GAAG,EAAE;wBACb,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAA;oBACpC,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;wBACZ,iBAAiB,CAAC,KAAK,CAAC,CAAA;oBAC1B,CAAC,EACD,WAAW,EAAE,OAAO,GACpB,GACE,CACP,EAGA,aAAa,IAAI,CAChB,KAAC,GAAG,IACF,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EACjE,UAAU,EAAC,OAAO,EAClB,OAAO,EAAC,UAAU,YAElB,KAAC,OAAO,IAAC,IAAI,EAAE,OAAO,GAAI,GACtB,CACP,EAED,KAAC,GAAG,IAAC,QAAQ,EAAC,8BAA8B,EAAC,SAAS,EAAC,OAAO,YAC3D,QAAQ,GACL,IACD,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/components/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/template/components/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,4 +0,0 @@
1
- export { Callout, Tabs } from '@radix-ui/themes'
2
- export { GraphQLDocumentWithSchema } from '../template/components/content/GraphQLDocumentWrapper.js'
3
- export { mdxComponents } from '../template/components/MDXComponents.js'
4
- export { TestComponent } from '../template/components/TestComponent.js'
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
-
3
- interface PreProps {
4
- children: React.ReactNode
5
- className?: string
6
- }
7
-
8
- /**
9
- * Simple pre component that renders code blocks as-is
10
- */
11
- const Pre: React.FC<PreProps> = ({ children, className, ...props }) => {
12
- return <pre className={className} {...props}>{children}</pre>
13
- }
14
-
15
- export const mdxComponents = {
16
- pre: Pre,
17
- }
@@ -1,6 +0,0 @@
1
- import React from 'react'
2
-
3
- export const TestComponent: React.FC<{ children: React.ReactNode }> = ({ children }) => {
4
- console.log(`TestComponent rendered!`)
5
- return <div style={{ border: `2px solid red`, padding: `10px` }}>TEST: {children}</div>
6
- }