@powerlines/plugin-env 0.15.121 → 0.15.122

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 (277) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -4
  2. package/dist/babel/plugin.cjs +11 -11
  3. package/dist/babel/plugin.d.mts +2 -2
  4. package/dist/babel/plugin.mjs +5 -5
  5. package/dist/components/docs.cjs +8 -8
  6. package/dist/components/docs.d.mts +1 -1
  7. package/dist/components/docs.mjs +4 -4
  8. package/dist/components/env.cjs +43 -42
  9. package/dist/components/env.d.mts +2 -2
  10. package/dist/components/env.mjs +11 -11
  11. package/dist/deepkit/schemas/reflection.cjs +5426 -0
  12. package/dist/deepkit/schemas/reflection.mjs +5423 -0
  13. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  14. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  15. package/dist/deepkit/src/capnp.cjs +1692 -0
  16. package/dist/deepkit/src/capnp.mjs +1690 -0
  17. package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
  18. package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
  19. package/dist/deepkit/src/reflect-type.cjs +40 -0
  20. package/dist/deepkit/src/reflect-type.mjs +38 -0
  21. package/dist/deepkit/src/resolve-reflections.cjs +23 -0
  22. package/dist/deepkit/src/resolve-reflections.mjs +22 -0
  23. package/dist/deepkit/src/transformer.cjs +92 -0
  24. package/dist/deepkit/src/transformer.mjs +89 -0
  25. package/dist/deepkit/src/transpile.cjs +39 -0
  26. package/dist/deepkit/src/transpile.mjs +37 -0
  27. package/dist/deepkit/src/types.cjs +22 -0
  28. package/dist/deepkit/src/types.mjs +21 -0
  29. package/dist/deepkit/src/utilities.cjs +184 -0
  30. package/dist/deepkit/src/utilities.mjs +183 -0
  31. package/dist/helpers/automd-generator.cjs +4 -4
  32. package/dist/helpers/automd-generator.d.mts +1 -1
  33. package/dist/helpers/automd-generator.mjs +2 -2
  34. package/dist/helpers/docs-helper.cjs +3 -2
  35. package/dist/helpers/docs-helper.mjs +1 -1
  36. package/dist/helpers/load.cjs +15 -14
  37. package/dist/helpers/load.mjs +10 -10
  38. package/dist/helpers/persistence.cjs +23 -23
  39. package/dist/helpers/persistence.d.mts +1 -1
  40. package/dist/helpers/persistence.mjs +5 -5
  41. package/dist/helpers/reflect.cjs +9 -9
  42. package/dist/helpers/reflect.mjs +3 -3
  43. package/dist/helpers/source-file-env.cjs +1 -1
  44. package/dist/helpers/source-file-env.mjs +1 -1
  45. package/dist/index.cjs +24 -26
  46. package/dist/index.d.mts +1 -1
  47. package/dist/index.mjs +14 -14
  48. package/dist/plugin-alloy/src/core/components/output.cjs +43 -0
  49. package/dist/plugin-alloy/src/core/components/output.mjs +42 -0
  50. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  51. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  52. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  53. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  54. package/dist/plugin-alloy/src/core/contexts/context.cjs +134 -0
  55. package/dist/plugin-alloy/src/core/contexts/context.mjs +126 -0
  56. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  57. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  58. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
  59. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
  60. package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
  61. package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
  62. package/dist/plugin-alloy/src/index.cjs +105 -0
  63. package/dist/plugin-alloy/src/index.mjs +103 -0
  64. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  65. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  66. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  67. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  68. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
  69. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
  70. package/dist/plugin-alloy/src/types/components.cjs +22 -0
  71. package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/components.d.mts +1 -1
  72. package/dist/plugin-alloy/src/types/components.mjs +21 -0
  73. package/dist/plugin-alloy/src/types/plugin.cjs +53 -0
  74. package/dist/plugin-alloy/src/types/plugin.mjs +50 -0
  75. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +62 -0
  76. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +61 -0
  77. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +131 -0
  78. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +129 -0
  79. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +451 -0
  80. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/tsdoc.d.mts +1 -1
  81. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +442 -0
  82. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +216 -0
  83. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
  84. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +213 -0
  85. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +72 -0
  86. package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
  87. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +71 -0
  88. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  89. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  90. package/dist/plugin-automd/src/index.cjs +127 -0
  91. package/dist/plugin-automd/src/index.mjs +124 -0
  92. package/dist/plugin-automd/src/types/plugin.cjs +47 -0
  93. package/dist/plugin-automd/src/types/plugin.mjs +47 -0
  94. package/dist/plugin-automd/src/types/toc.cjs +26 -0
  95. package/dist/plugin-automd/src/types/toc.mjs +25 -0
  96. package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
  97. package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
  98. package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
  99. package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
  100. package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
  101. package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
  102. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  103. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  104. package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
  105. package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
  106. package/dist/plugin-babel/src/helpers/options.cjs +73 -0
  107. package/dist/plugin-babel/src/helpers/options.mjs +70 -0
  108. package/dist/plugin-babel/src/index.cjs +125 -0
  109. package/dist/plugin-babel/src/index.mjs +123 -0
  110. package/dist/plugin-babel/src/types/plugin.cjs +42 -0
  111. package/dist/plugin-babel/src/types/plugin.mjs +39 -0
  112. package/dist/powerlines/src/internal/helpers/hooks.cjs +136 -0
  113. package/dist/powerlines/src/internal/helpers/hooks.mjs +134 -0
  114. package/dist/powerlines/src/lib/build/esbuild.cjs +142 -0
  115. package/dist/powerlines/src/lib/build/esbuild.mjs +140 -0
  116. package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
  117. package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
  118. package/dist/powerlines/src/lib/entry.cjs +195 -0
  119. package/dist/powerlines/src/lib/entry.mjs +194 -0
  120. package/dist/powerlines/src/lib/logger.cjs +108 -0
  121. package/dist/powerlines/src/lib/logger.mjs +106 -0
  122. package/dist/powerlines/src/lib/unplugin/helpers.cjs +41 -0
  123. package/dist/powerlines/src/lib/unplugin/helpers.mjs +40 -0
  124. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +98 -0
  125. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +97 -0
  126. package/dist/powerlines/src/lib/unplugin/plugin.cjs +139 -0
  127. package/dist/powerlines/src/lib/unplugin/plugin.mjs +138 -0
  128. package/dist/powerlines/src/lib/utilities/bundle.cjs +74 -0
  129. package/dist/powerlines/src/lib/utilities/bundle.mjs +72 -0
  130. package/dist/powerlines/src/lib/utilities/resolve.cjs +69 -0
  131. package/dist/powerlines/src/lib/utilities/resolve.mjs +68 -0
  132. package/dist/powerlines/src/lib/utilities/source-file.cjs +68 -0
  133. package/dist/powerlines/src/lib/utilities/source-file.mjs +66 -0
  134. package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
  135. package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
  136. package/dist/powerlines/src/types/api.cjs +62 -0
  137. package/dist/powerlines/src/types/api.mjs +62 -0
  138. package/dist/powerlines/src/types/babel.cjs +156 -0
  139. package/dist/powerlines/src/types/babel.mjs +147 -0
  140. package/dist/powerlines/src/types/build.cjs +127 -0
  141. package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +6 -6
  142. package/dist/powerlines/src/types/build.mjs +121 -0
  143. package/dist/powerlines/src/types/commands.cjs +16 -0
  144. package/dist/powerlines/src/types/commands.mjs +15 -0
  145. package/dist/powerlines/src/types/config.cjs +420 -0
  146. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +2 -1
  147. package/dist/powerlines/src/types/config.mjs +397 -0
  148. package/dist/powerlines/src/types/context.cjs +388 -0
  149. package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +2 -2
  150. package/dist/powerlines/src/types/context.mjs +371 -0
  151. package/dist/powerlines/src/types/fs.cjs +78 -0
  152. package/dist/powerlines/src/types/fs.mjs +75 -0
  153. package/dist/powerlines/src/types/hooks.cjs +71 -0
  154. package/dist/powerlines/src/types/hooks.mjs +68 -0
  155. package/dist/powerlines/src/types/index.cjs +11 -0
  156. package/dist/powerlines/src/types/index.mjs +13 -0
  157. package/dist/powerlines/src/types/plugin.cjs +184 -0
  158. package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +1 -1
  159. package/dist/powerlines/src/types/plugin.mjs +178 -0
  160. package/dist/powerlines/src/types/resolved.cjs +149 -0
  161. package/dist/powerlines/src/types/resolved.mjs +144 -0
  162. package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
  163. package/dist/powerlines/src/types/unplugin.cjs +64 -0
  164. package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +1 -1
  165. package/dist/powerlines/src/types/unplugin.mjs +62 -0
  166. package/dist/types/plugin.cjs +18 -19
  167. package/dist/types/plugin.d.mts +6 -6
  168. package/dist/types/plugin.mjs +4 -4
  169. package/package.json +7 -7
  170. package/dist/_virtual/rolldown_runtime.mjs +0 -33
  171. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
  172. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -37
  173. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
  174. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs +0 -14
  175. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
  176. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -14
  177. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
  178. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
  179. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
  180. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
  181. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
  182. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
  183. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
  184. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -19
  185. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
  186. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -63
  187. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
  188. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
  189. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
  190. package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -16
  191. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
  192. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -32
  193. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.cjs +0 -28
  194. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.mjs +0 -28
  195. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs +0 -106
  196. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs +0 -106
  197. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.cjs +0 -12
  198. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.mjs +0 -8
  199. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.cjs +0 -15
  200. package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.mjs +0 -14
  201. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +0 -346
  202. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +0 -346
  203. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +0 -786
  204. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +0 -786
  205. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +0 -3
  206. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +0 -3
  207. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +0 -23
  208. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +0 -22
  209. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +0 -405
  210. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +0 -404
  211. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +0 -657
  212. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +0 -657
  213. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +0 -1054
  214. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +0 -1054
  215. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  216. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  217. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  218. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -45
  219. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +0 -288
  220. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +0 -285
  221. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +0 -71
  222. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +0 -68
  223. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  224. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1007
  225. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  226. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -13
  227. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2698
  228. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2685
  229. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  230. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4454
  231. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  232. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -29
  233. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  234. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -176
  235. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  236. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -17
  237. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  238. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3962
  239. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11768
  240. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11763
  241. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
  242. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -20
  243. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  244. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -17
  245. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +0 -194
  246. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +0 -191
  247. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  248. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -12
  249. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  250. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  251. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  252. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -138
  253. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -127
  254. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -125
  255. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  256. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -136
  257. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  258. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -627
  259. /package/dist/{packages/deepkit → deepkit}/schemas/reflection.d.mts +0 -0
  260. /package/dist/{packages/deepkit → deepkit}/src/types.d.mts +0 -0
  261. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/core/components/source-file.d.mts +0 -0
  262. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/markdown/components/markdown-file.d.mts +0 -0
  263. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/index.d.mts +0 -0
  264. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/plugin.d.mts +0 -0
  265. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
  266. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/plugin.d.mts +0 -0
  267. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/toc.d.mts +0 -0
  268. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/index.d.mts +0 -0
  269. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/plugin.d.mts +0 -0
  270. /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  271. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  272. /package/dist/{packages/powerlines → powerlines}/src/types/babel.d.mts +0 -0
  273. /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
  274. /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
  275. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  276. /package/dist/{packages/powerlines → powerlines}/src/types/index.d.mts +0 -0
  277. /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
@@ -0,0 +1,105 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_index = require('../../plugin-babel/src/index.cjs');
3
+ const require_output = require('./core/components/output.cjs');
4
+ let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
5
+ let __alloy_js_core = require("@alloy-js/core");
6
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
+ let __stryke_json_storm_json = require("@stryke/json/storm-json");
8
+ let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
9
+ __alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
10
+
11
+ //#region ../plugin-alloy/src/index.tsx
12
+ /**
13
+ * Alloy-js plugin for Powerlines.
14
+ *
15
+ * @param options - The Alloy-js plugin user configuration options.
16
+ * @returns A Powerlines plugin that integrates Alloy-js transformations.
17
+ */
18
+ const plugin = (options = {}) => {
19
+ return [
20
+ require_index.default(),
21
+ {
22
+ name: "alloy:config",
23
+ config() {
24
+ this.debug("Updating configuration options to support Alloy-js builds.");
25
+ return {
26
+ alloy: {
27
+ typescript: true,
28
+ ...options
29
+ },
30
+ transform: { babel: { presets: [[
31
+ (0, __alloy_js_babel_preset.default)({ addSourceInfo: this.config.mode === "development" }),
32
+ {},
33
+ (_, id) => /^(?:m|c)?tsx?$/.test((0, __stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true }))
34
+ ]] } },
35
+ build: {
36
+ inputOptions: { transform: { jsx: "preserve" } },
37
+ external: [
38
+ "@alloy-js/core",
39
+ "@alloy-js/typescript",
40
+ "@alloy-js/json",
41
+ "@alloy-js/markdown"
42
+ ]
43
+ }
44
+ };
45
+ },
46
+ async configResolved() {
47
+ this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
48
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
49
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
50
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
51
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
52
+ await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
53
+ }
54
+ }
55
+ },
56
+ {
57
+ name: "alloy:create-render",
58
+ configResolved: {
59
+ order: "pre",
60
+ async handler() {
61
+ this.debug("Attaching the `render` method to the context object.");
62
+ this.render = async (children) => {
63
+ const _self$ = this;
64
+ const meta = {};
65
+ await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
66
+ context: _self$,
67
+ meta,
68
+ get basePath() {
69
+ return _self$.workspaceConfig.workspaceRoot;
70
+ },
71
+ children
72
+ })), {
73
+ visitDirectory: (directory) => {
74
+ if (this.fs.existsSync(directory.path)) return;
75
+ this.fs.mkdirSync(directory.path);
76
+ },
77
+ visitFile: (file) => {
78
+ if ("contents" in file) {
79
+ const metadata = meta[file.path] ?? {};
80
+ if (metadata.kind === "builtin") {
81
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
82
+ this.emitBuiltinSync(file.contents, metadata.id, {
83
+ skipFormat: metadata.skipFormat,
84
+ storage: metadata.storage,
85
+ extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
86
+ });
87
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
88
+ skipFormat: metadata.skipFormat,
89
+ storage: metadata.storage,
90
+ ...metadata.typeDefinition ?? {}
91
+ });
92
+ else this.emitSync(file.contents, file.path, metadata);
93
+ } else this.fs.copySync(file.sourcePath, file.path);
94
+ }
95
+ });
96
+ };
97
+ }
98
+ }
99
+ }
100
+ ];
101
+ };
102
+ var src_default$1 = plugin;
103
+
104
+ //#endregion
105
+ exports.default = src_default$1;
@@ -0,0 +1,103 @@
1
+ import src_default from "../../plugin-babel/src/index.mjs";
2
+ import { Output as Output$1 } from "./core/components/output.mjs";
3
+ import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
4
+ import { renderAsync, traverseOutput } from "@alloy-js/core";
5
+ import { createComponent } from "@alloy-js/core/jsx-runtime";
6
+ import { StormJSON } from "@stryke/json/storm-json";
7
+ import alloyPreset from "@alloy-js/babel-preset";
8
+
9
+ //#region ../plugin-alloy/src/index.tsx
10
+ /**
11
+ * Alloy-js plugin for Powerlines.
12
+ *
13
+ * @param options - The Alloy-js plugin user configuration options.
14
+ * @returns A Powerlines plugin that integrates Alloy-js transformations.
15
+ */
16
+ const plugin = (options = {}) => {
17
+ return [
18
+ src_default(),
19
+ {
20
+ name: "alloy:config",
21
+ config() {
22
+ this.debug("Updating configuration options to support Alloy-js builds.");
23
+ return {
24
+ alloy: {
25
+ typescript: true,
26
+ ...options
27
+ },
28
+ transform: { babel: { presets: [[
29
+ alloyPreset({ addSourceInfo: this.config.mode === "development" }),
30
+ {},
31
+ (_, id) => /^(?:m|c)?tsx?$/.test(findFileExtensionSafe(id, { fullExtension: true }))
32
+ ]] } },
33
+ build: {
34
+ inputOptions: { transform: { jsx: "preserve" } },
35
+ external: [
36
+ "@alloy-js/core",
37
+ "@alloy-js/typescript",
38
+ "@alloy-js/json",
39
+ "@alloy-js/markdown"
40
+ ]
41
+ }
42
+ };
43
+ },
44
+ async configResolved() {
45
+ this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
46
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
47
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
48
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
49
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
50
+ await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
51
+ }
52
+ }
53
+ },
54
+ {
55
+ name: "alloy:create-render",
56
+ configResolved: {
57
+ order: "pre",
58
+ async handler() {
59
+ this.debug("Attaching the `render` method to the context object.");
60
+ this.render = async (children) => {
61
+ const _self$ = this;
62
+ const meta = {};
63
+ await traverseOutput(await renderAsync(createComponent(Output$1, {
64
+ context: _self$,
65
+ meta,
66
+ get basePath() {
67
+ return _self$.workspaceConfig.workspaceRoot;
68
+ },
69
+ children
70
+ })), {
71
+ visitDirectory: (directory) => {
72
+ if (this.fs.existsSync(directory.path)) return;
73
+ this.fs.mkdirSync(directory.path);
74
+ },
75
+ visitFile: (file) => {
76
+ if ("contents" in file) {
77
+ const metadata = meta[file.path] ?? {};
78
+ if (metadata.kind === "builtin") {
79
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
80
+ this.emitBuiltinSync(file.contents, metadata.id, {
81
+ skipFormat: metadata.skipFormat,
82
+ storage: metadata.storage,
83
+ extension: findFileExtension(file.path)
84
+ });
85
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
86
+ skipFormat: metadata.skipFormat,
87
+ storage: metadata.storage,
88
+ ...metadata.typeDefinition ?? {}
89
+ });
90
+ else this.emitSync(file.contents, file.path, metadata);
91
+ } else this.fs.copySync(file.sourcePath, file.path);
92
+ }
93
+ });
94
+ };
95
+ }
96
+ }
97
+ }
98
+ ];
99
+ };
100
+ var src_default$1 = plugin;
101
+
102
+ //#endregion
103
+ export { src_default$1 as default };
@@ -0,0 +1,115 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../../core/contexts/context.cjs');
3
+ const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
4
+ const require_source_file = require('../../core/components/source-file.cjs');
5
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
6
+ let __alloy_js_core = require("@alloy-js/core");
7
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
8
+ let __alloy_js_markdown = require("@alloy-js/markdown");
9
+
10
+ //#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
11
+ /**
12
+ * A base component representing a Powerlines generated markdown source file.
13
+ *
14
+ * @param props - The properties for the source file.
15
+ * @returns The rendered source file component.
16
+ */
17
+ function MarkdownFile(props) {
18
+ const [{ children, storage }, rest] = (0, __alloy_js_core.splitProps)(props, ["children", "storage"]);
19
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
20
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, {});
21
+ } }, rest, {
22
+ filetype: "md",
23
+ reference: __alloy_js_markdown.Link,
24
+ storage,
25
+ get children() {
26
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
27
+ get when() {
28
+ return Boolean(children);
29
+ },
30
+ children
31
+ });
32
+ }
33
+ }));
34
+ }
35
+ /**
36
+ * Renders the header for a Powerlines Typescript source file.
37
+ *
38
+ * @param props - The properties for the source file header.
39
+ * @returns The rendered source file header.
40
+ */
41
+ function MarkdownFileHeader(props) {
42
+ const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __alloy_js_core.splitProps)(props, [
43
+ "children",
44
+ "disableEslint",
45
+ "disableBiome",
46
+ "disablePrettier"
47
+ ]);
48
+ const context = require_context.usePowerlinesSafe();
49
+ return [
50
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
51
+ get when() {
52
+ return Boolean(disableEslint);
53
+ },
54
+ get children() {
55
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
56
+ variant: "markdown",
57
+ children: "eslint-disable"
58
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
59
+ }
60
+ }),
61
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
62
+ get when() {
63
+ return Boolean(disablePrettier);
64
+ },
65
+ get children() {
66
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
67
+ variant: "markdown",
68
+ children: "prettier-ignore"
69
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
70
+ }
71
+ }),
72
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
73
+ get when() {
74
+ return Boolean(disableBiome);
75
+ },
76
+ get children() {
77
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
78
+ variant: "markdown",
79
+ children: "biome-ignore lint: disable"
80
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
81
+ }
82
+ }),
83
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
84
+ get when() {
85
+ return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
86
+ },
87
+ get children() {
88
+ return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
89
+ }
90
+ }),
91
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
92
+ get when() {
93
+ return Boolean(children);
94
+ },
95
+ get children() {
96
+ return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
97
+ }
98
+ }),
99
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
100
+ variant: "markdown",
101
+ get children() {
102
+ return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
103
+ }
104
+ }),
105
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
106
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
107
+ variant: "markdown",
108
+ children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
109
+ }),
110
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
111
+ ];
112
+ }
113
+
114
+ //#endregion
115
+ exports.MarkdownFile = MarkdownFile;
@@ -0,0 +1,114 @@
1
+ import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
2
+ import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
3
+ import { SourceFile } from "../../core/components/source-file.mjs";
4
+ import { titleCase } from "@stryke/string-format/title-case";
5
+ import { Show, code, splitProps } from "@alloy-js/core";
6
+ import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
7
+ import { Link } from "@alloy-js/markdown";
8
+
9
+ //#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
10
+ /**
11
+ * A base component representing a Powerlines generated markdown source file.
12
+ *
13
+ * @param props - The properties for the source file.
14
+ * @returns The rendered source file component.
15
+ */
16
+ function MarkdownFile(props) {
17
+ const [{ children, storage }, rest] = splitProps(props, ["children", "storage"]);
18
+ return createComponent(SourceFile, mergeProps({ get header() {
19
+ return createComponent(MarkdownFileHeader, {});
20
+ } }, rest, {
21
+ filetype: "md",
22
+ reference: Link,
23
+ storage,
24
+ get children() {
25
+ return createComponent(Show, {
26
+ get when() {
27
+ return Boolean(children);
28
+ },
29
+ children
30
+ });
31
+ }
32
+ }));
33
+ }
34
+ /**
35
+ * Renders the header for a Powerlines Typescript source file.
36
+ *
37
+ * @param props - The properties for the source file header.
38
+ * @returns The rendered source file header.
39
+ */
40
+ function MarkdownFileHeader(props) {
41
+ const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = splitProps(props, [
42
+ "children",
43
+ "disableEslint",
44
+ "disableBiome",
45
+ "disablePrettier"
46
+ ]);
47
+ const context = usePowerlinesSafe();
48
+ return [
49
+ createComponent(Show, {
50
+ get when() {
51
+ return Boolean(disableEslint);
52
+ },
53
+ get children() {
54
+ return [createComponent(SingleLineComment, {
55
+ variant: "markdown",
56
+ children: "eslint-disable"
57
+ }), createIntrinsic("hbr", {})];
58
+ }
59
+ }),
60
+ createComponent(Show, {
61
+ get when() {
62
+ return Boolean(disablePrettier);
63
+ },
64
+ get children() {
65
+ return [createComponent(SingleLineComment, {
66
+ variant: "markdown",
67
+ children: "prettier-ignore"
68
+ }), createIntrinsic("hbr", {})];
69
+ }
70
+ }),
71
+ createComponent(Show, {
72
+ get when() {
73
+ return Boolean(disableBiome);
74
+ },
75
+ get children() {
76
+ return [createComponent(SingleLineComment, {
77
+ variant: "markdown",
78
+ children: "biome-ignore lint: disable"
79
+ }), createIntrinsic("hbr", {})];
80
+ }
81
+ }),
82
+ createComponent(Show, {
83
+ get when() {
84
+ return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
85
+ },
86
+ get children() {
87
+ return createIntrinsic("hbr", {});
88
+ }
89
+ }),
90
+ createComponent(Show, {
91
+ get when() {
92
+ return Boolean(children);
93
+ },
94
+ get children() {
95
+ return [children, createIntrinsic("hbr", {})];
96
+ }
97
+ }),
98
+ createComponent(SingleLineComment, {
99
+ variant: "markdown",
100
+ get children() {
101
+ return `Generated by ${titleCase(context?.config?.framework) || "Powerlines"}`;
102
+ }
103
+ }),
104
+ createIntrinsic("hbr", {}),
105
+ createComponent(SingleLineComment, {
106
+ variant: "markdown",
107
+ children: code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
108
+ }),
109
+ createIntrinsic("hbr", {})
110
+ ];
111
+ }
112
+
113
+ //#endregion
114
+ export { MarkdownFile };
@@ -0,0 +1,39 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_markdown_table = require('../contexts/markdown-table.cjs');
3
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
4
+ let __alloy_js_core = require("@alloy-js/core");
5
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
7
+
8
+ //#region ../plugin-alloy/src/markdown/components/markdown-table.tsx
9
+ /**
10
+ * Component that provides a context for rendering markdown tables.
11
+ */
12
+ function MarkdownTable(props) {
13
+ const [{ children, data }] = (0, __alloy_js_core.splitProps)(props, ["children", "data"]);
14
+ const columns = (0, __alloy_js_core.computed)(() => Object.keys(data).map((name, index) => ({
15
+ index,
16
+ name,
17
+ align: "left",
18
+ width: 20
19
+ })));
20
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_table.MarkdownTableContext.Provider, {
21
+ get value() {
22
+ return {
23
+ columns: columns.value,
24
+ data
25
+ };
26
+ },
27
+ get children() {
28
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
29
+ get when() {
30
+ return Boolean(children);
31
+ },
32
+ children
33
+ });
34
+ }
35
+ });
36
+ }
37
+
38
+ //#endregion
39
+ exports.MarkdownTable = MarkdownTable;
@@ -0,0 +1,38 @@
1
+ import { MarkdownTableContext } from "../contexts/markdown-table.mjs";
2
+ import { titleCase } from "@stryke/string-format/title-case";
3
+ import { Prose, Show, code, computed, splitProps } from "@alloy-js/core";
4
+ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
+ import { isUndefined } from "@stryke/type-checks/is-undefined";
6
+
7
+ //#region ../plugin-alloy/src/markdown/components/markdown-table.tsx
8
+ /**
9
+ * Component that provides a context for rendering markdown tables.
10
+ */
11
+ function MarkdownTable(props) {
12
+ const [{ children, data }] = splitProps(props, ["children", "data"]);
13
+ const columns = computed(() => Object.keys(data).map((name, index) => ({
14
+ index,
15
+ name,
16
+ align: "left",
17
+ width: 20
18
+ })));
19
+ return createComponent(MarkdownTableContext.Provider, {
20
+ get value() {
21
+ return {
22
+ columns: columns.value,
23
+ data
24
+ };
25
+ },
26
+ get children() {
27
+ return createComponent(Show, {
28
+ get when() {
29
+ return Boolean(children);
30
+ },
31
+ children
32
+ });
33
+ }
34
+ });
35
+ }
36
+
37
+ //#endregion
38
+ export { MarkdownTable };
@@ -0,0 +1,72 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ let __alloy_js_core = require("@alloy-js/core");
3
+
4
+ //#region ../plugin-alloy/src/markdown/contexts/markdown-table.ts
5
+ const __ΩRecord = [
6
+ "K",
7
+ "T",
8
+ "Record",
9
+ "l'e#\"Rb!b\"Pde\"!N#!w#y"
10
+ ];
11
+ const __ΩMarkdownTableColumnContextInterface = [
12
+ () => __ΩRecord,
13
+ "T",
14
+ "index",
15
+ "name",
16
+ "left",
17
+ "right",
18
+ "center",
19
+ "align",
20
+ "width",
21
+ "MarkdownTableColumnContextInterface",
22
+ "&\"o!#c\"P'4#e\"!g4$P.%.&.'J4('4)Mw*y"
23
+ ];
24
+ /**
25
+ * The Powerlines context used in template rendering.
26
+ */
27
+ const MarkdownTableColumnContext = (__alloy_js_core.createNamedContext.Ω = [[() => __ΩMarkdownTableColumnContextInterface, "n!"]], (0, __alloy_js_core.createNamedContext)("markdown-table-column", {}));
28
+ /**
29
+ * Hook to access the Powerlines Context.
30
+ *
31
+ * @returns The Context.
32
+ */
33
+ function useMarkdownTableColumn() {
34
+ return __alloy_js_core.useContext.Ω = [[() => __ΩMarkdownTableColumnContextInterface, "n!"]], (0, __alloy_js_core.useContext)(MarkdownTableColumnContext);
35
+ }
36
+ useMarkdownTableColumn.__type = [
37
+ "useMarkdownTableColumn",
38
+ "Hook to access the Powerlines Context.",
39
+ "P\"/!?\""
40
+ ];
41
+ const __ΩMarkdownTableContextInterface = [
42
+ () => __ΩRecord,
43
+ "T",
44
+ () => __ΩMarkdownTableColumnContextInterface,
45
+ "columns",
46
+ "data",
47
+ "MarkdownTableContextInterface",
48
+ "&\"o!#c\"Pe\"!o#\"F4$e\"!F4%Mw&y"
49
+ ];
50
+ /**
51
+ * The Powerlines context used in template rendering.
52
+ */
53
+ const MarkdownTableContext = (__alloy_js_core.createContext.Ω = [[() => __ΩMarkdownTableContextInterface, "n!"]], (0, __alloy_js_core.createContext)({
54
+ columns: [],
55
+ data: []
56
+ }));
57
+ /**
58
+ * Hook to access the Powerlines Context.
59
+ *
60
+ * @returns The Context.
61
+ */
62
+ function useMarkdownTable() {
63
+ return __alloy_js_core.useContext.Ω = [[() => __ΩMarkdownTableContextInterface, "n!"]], (0, __alloy_js_core.useContext)(MarkdownTableContext);
64
+ }
65
+ useMarkdownTable.__type = [
66
+ "useMarkdownTable",
67
+ "Hook to access the Powerlines Context.",
68
+ "P\"/!?\""
69
+ ];
70
+
71
+ //#endregion
72
+ exports.MarkdownTableContext = MarkdownTableContext;
@@ -0,0 +1,71 @@
1
+ import { createContext, createNamedContext, useContext } from "@alloy-js/core";
2
+
3
+ //#region ../plugin-alloy/src/markdown/contexts/markdown-table.ts
4
+ const __ΩRecord = [
5
+ "K",
6
+ "T",
7
+ "Record",
8
+ "l'e#\"Rb!b\"Pde\"!N#!w#y"
9
+ ];
10
+ const __ΩMarkdownTableColumnContextInterface = [
11
+ () => __ΩRecord,
12
+ "T",
13
+ "index",
14
+ "name",
15
+ "left",
16
+ "right",
17
+ "center",
18
+ "align",
19
+ "width",
20
+ "MarkdownTableColumnContextInterface",
21
+ "&\"o!#c\"P'4#e\"!g4$P.%.&.'J4('4)Mw*y"
22
+ ];
23
+ /**
24
+ * The Powerlines context used in template rendering.
25
+ */
26
+ const MarkdownTableColumnContext = (createNamedContext.Ω = [[() => __ΩMarkdownTableColumnContextInterface, "n!"]], createNamedContext("markdown-table-column", {}));
27
+ /**
28
+ * Hook to access the Powerlines Context.
29
+ *
30
+ * @returns The Context.
31
+ */
32
+ function useMarkdownTableColumn() {
33
+ return useContext.Ω = [[() => __ΩMarkdownTableColumnContextInterface, "n!"]], useContext(MarkdownTableColumnContext);
34
+ }
35
+ useMarkdownTableColumn.__type = [
36
+ "useMarkdownTableColumn",
37
+ "Hook to access the Powerlines Context.",
38
+ "P\"/!?\""
39
+ ];
40
+ const __ΩMarkdownTableContextInterface = [
41
+ () => __ΩRecord,
42
+ "T",
43
+ () => __ΩMarkdownTableColumnContextInterface,
44
+ "columns",
45
+ "data",
46
+ "MarkdownTableContextInterface",
47
+ "&\"o!#c\"Pe\"!o#\"F4$e\"!F4%Mw&y"
48
+ ];
49
+ /**
50
+ * The Powerlines context used in template rendering.
51
+ */
52
+ const MarkdownTableContext = (createContext.Ω = [[() => __ΩMarkdownTableContextInterface, "n!"]], createContext({
53
+ columns: [],
54
+ data: []
55
+ }));
56
+ /**
57
+ * Hook to access the Powerlines Context.
58
+ *
59
+ * @returns The Context.
60
+ */
61
+ function useMarkdownTable() {
62
+ return useContext.Ω = [[() => __ΩMarkdownTableContextInterface, "n!"]], useContext(MarkdownTableContext);
63
+ }
64
+ useMarkdownTable.__type = [
65
+ "useMarkdownTable",
66
+ "Hook to access the Powerlines Context.",
67
+ "P\"/!?\""
68
+ ];
69
+
70
+ //#endregion
71
+ export { MarkdownTableContext };
@@ -0,0 +1,22 @@
1
+
2
+ //#region ../plugin-alloy/src/types/components.ts
3
+ const __ΩPartial = [
4
+ "T",
5
+ "Partial",
6
+ "l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
7
+ ];
8
+ const __ΩReflectionOverrideInterface = [
9
+ "T",
10
+ "Children",
11
+ "name",
12
+ "type",
13
+ false,
14
+ "extends",
15
+ () => __ΩPartial,
16
+ "defaultValue",
17
+ "ReflectionOverrideInterface",
18
+ "b!PP&\"w\"J4#8P&\"w\"J4$8P&.%J4&8e\"!o'\"4(8Mw)y"
19
+ ];
20
+
21
+ //#endregion
22
+ exports.__ΩReflectionOverrideInterface = __ΩReflectionOverrideInterface;
@@ -1,6 +1,6 @@
1
1
  import "../../../powerlines/src/types/resolved.mjs";
2
2
  import { Children } from "@alloy-js/core";
3
- import "@alloy-js/typescript";
3
+ import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
4
4
 
5
5
  //#region ../plugin-alloy/src/types/components.d.ts
6
6