@powerlines/plugin-alloy 0.25.49 → 0.25.51

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 (334) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  3. package/dist/core/components/index.cjs +10 -0
  4. package/dist/core/components/index.d.cts +5 -0
  5. package/dist/core/components/index.d.mts +5 -0
  6. package/dist/core/components/index.mjs +6 -0
  7. package/dist/core/components/output.cjs +41 -0
  8. package/dist/core/components/output.d.cts +24 -0
  9. package/dist/core/components/output.d.cts.map +1 -0
  10. package/dist/core/components/output.d.mts +24 -0
  11. package/dist/core/components/output.d.mts.map +1 -0
  12. package/dist/core/components/output.mjs +40 -0
  13. package/dist/core/components/output.mjs.map +1 -0
  14. package/dist/core/components/single-line-comment.cjs +23 -0
  15. package/dist/core/components/single-line-comment.d.cts +23 -0
  16. package/dist/core/components/single-line-comment.d.cts.map +1 -0
  17. package/dist/core/components/single-line-comment.d.mts +23 -0
  18. package/dist/core/components/single-line-comment.d.mts.map +1 -0
  19. package/dist/core/components/single-line-comment.mjs +22 -0
  20. package/dist/core/components/single-line-comment.mjs.map +1 -0
  21. package/dist/core/components/source-file.cjs +64 -0
  22. package/dist/core/components/source-file.d.cts +33 -0
  23. package/dist/core/components/source-file.d.cts.map +1 -0
  24. package/dist/core/components/source-file.d.mts +33 -0
  25. package/dist/core/components/source-file.d.mts.map +1 -0
  26. package/dist/core/components/source-file.mjs +62 -0
  27. package/dist/core/components/source-file.mjs.map +1 -0
  28. package/dist/core/components/spacing.cjs +20 -0
  29. package/dist/core/components/spacing.d.cts +24 -0
  30. package/dist/core/components/spacing.d.cts.map +1 -0
  31. package/dist/core/components/spacing.d.mts +24 -0
  32. package/dist/core/components/spacing.d.mts.map +1 -0
  33. package/dist/core/components/spacing.mjs +19 -0
  34. package/dist/core/components/spacing.mjs.map +1 -0
  35. package/dist/core/contexts/context.cjs +41 -0
  36. package/dist/core/contexts/context.d.cts +29 -0
  37. package/dist/core/contexts/context.d.cts.map +1 -0
  38. package/dist/core/contexts/context.d.mts +29 -0
  39. package/dist/core/contexts/context.d.mts.map +1 -0
  40. package/dist/core/contexts/context.mjs +37 -0
  41. package/dist/core/contexts/context.mjs.map +1 -0
  42. package/dist/core/contexts/index.cjs +21 -0
  43. package/dist/core/contexts/index.d.cts +4 -0
  44. package/dist/core/contexts/index.d.mts +4 -0
  45. package/dist/core/contexts/index.mjs +5 -0
  46. package/dist/core/contexts/meta.cjs +41 -0
  47. package/dist/core/contexts/meta.d.cts +48 -0
  48. package/dist/core/contexts/meta.d.cts.map +1 -0
  49. package/dist/core/contexts/meta.d.mts +48 -0
  50. package/dist/core/contexts/meta.d.mts.map +1 -0
  51. package/dist/core/contexts/meta.mjs +37 -0
  52. package/dist/core/contexts/meta.mjs.map +1 -0
  53. package/dist/core/contexts/reflection.cjs +69 -0
  54. package/dist/core/contexts/reflection.d.cts +53 -0
  55. package/dist/core/contexts/reflection.d.cts.map +1 -0
  56. package/dist/core/contexts/reflection.d.mts +53 -0
  57. package/dist/core/contexts/reflection.d.mts.map +1 -0
  58. package/dist/core/contexts/reflection.mjs +61 -0
  59. package/dist/core/contexts/reflection.mjs.map +1 -0
  60. package/dist/core/helpers/code.cjs +34 -0
  61. package/dist/core/helpers/code.d.cts +29 -0
  62. package/dist/core/helpers/code.d.cts.map +1 -0
  63. package/dist/core/helpers/code.d.mts +29 -0
  64. package/dist/core/helpers/code.d.mts.map +1 -0
  65. package/dist/core/helpers/code.mjs +33 -0
  66. package/dist/core/helpers/code.mjs.map +1 -0
  67. package/dist/core/helpers/index.cjs +4 -0
  68. package/dist/core/helpers/index.d.cts +2 -0
  69. package/dist/core/helpers/index.d.mts +2 -0
  70. package/dist/core/helpers/index.mjs +3 -0
  71. package/dist/core/index.cjs +34 -0
  72. package/dist/core/index.d.cts +9 -0
  73. package/dist/core/index.d.mts +9 -0
  74. package/dist/core/index.mjs +13 -0
  75. package/dist/helpers/capnp.cjs +277 -0
  76. package/dist/helpers/capnp.d.cts +87 -0
  77. package/dist/helpers/capnp.d.cts.map +1 -0
  78. package/dist/helpers/capnp.d.mts +87 -0
  79. package/dist/helpers/capnp.d.mts.map +1 -0
  80. package/dist/helpers/capnp.mjs +260 -0
  81. package/dist/helpers/capnp.mjs.map +1 -0
  82. package/dist/helpers/create-builtin.cjs +20 -0
  83. package/dist/helpers/create-builtin.d.cts +16 -0
  84. package/dist/helpers/create-builtin.d.cts.map +1 -0
  85. package/dist/helpers/create-builtin.d.mts +16 -0
  86. package/dist/helpers/create-builtin.d.mts.map +1 -0
  87. package/dist/helpers/create-builtin.mjs +19 -0
  88. package/dist/helpers/create-builtin.mjs.map +1 -0
  89. package/dist/helpers/index.cjs +25 -0
  90. package/dist/helpers/index.d.cts +5 -0
  91. package/dist/helpers/index.d.mts +5 -0
  92. package/dist/helpers/index.mjs +6 -0
  93. package/dist/helpers/refkey.cjs +17 -0
  94. package/dist/helpers/refkey.d.cts +13 -0
  95. package/dist/helpers/refkey.d.cts.map +1 -0
  96. package/dist/helpers/refkey.d.mts +13 -0
  97. package/dist/helpers/refkey.d.mts.map +1 -0
  98. package/dist/helpers/refkey.mjs +16 -0
  99. package/dist/helpers/refkey.mjs.map +1 -0
  100. package/dist/helpers/typescript.cjs +47 -0
  101. package/dist/helpers/typescript.d.cts +26 -0
  102. package/dist/helpers/typescript.d.cts.map +1 -0
  103. package/dist/helpers/typescript.d.mts +26 -0
  104. package/dist/helpers/typescript.d.mts.map +1 -0
  105. package/dist/helpers/typescript.mjs +46 -0
  106. package/dist/helpers/typescript.mjs.map +1 -0
  107. package/dist/index.cjs +48 -0
  108. package/dist/index.d.cts +19 -0
  109. package/dist/index.d.cts.map +1 -0
  110. package/dist/index.d.mts +19 -0
  111. package/dist/index.d.mts.map +1 -0
  112. package/dist/index.mjs +45 -0
  113. package/dist/index.mjs.map +1 -0
  114. package/dist/markdown/components/front-matter.cjs +29 -0
  115. package/dist/markdown/components/front-matter.d.cts +16 -0
  116. package/dist/markdown/components/front-matter.d.cts.map +1 -0
  117. package/dist/markdown/components/front-matter.d.mts +16 -0
  118. package/dist/markdown/components/front-matter.d.mts.map +1 -0
  119. package/dist/markdown/components/front-matter.mjs +28 -0
  120. package/dist/markdown/components/front-matter.mjs.map +1 -0
  121. package/dist/markdown/components/index.cjs +11 -0
  122. package/dist/markdown/components/index.d.cts +4 -0
  123. package/dist/markdown/components/index.d.mts +4 -0
  124. package/dist/markdown/components/index.mjs +5 -0
  125. package/dist/markdown/components/markdown-file.cjs +135 -0
  126. package/dist/markdown/components/markdown-file.d.cts +29 -0
  127. package/dist/markdown/components/markdown-file.d.cts.map +1 -0
  128. package/dist/markdown/components/markdown-file.d.mts +29 -0
  129. package/dist/markdown/components/markdown-file.d.mts.map +1 -0
  130. package/dist/markdown/components/markdown-file.mjs +133 -0
  131. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  132. package/dist/markdown/components/markdown-table.cjs +102 -0
  133. package/dist/markdown/components/markdown-table.d.cts +28 -0
  134. package/dist/markdown/components/markdown-table.d.cts.map +1 -0
  135. package/dist/markdown/components/markdown-table.d.mts +28 -0
  136. package/dist/markdown/components/markdown-table.d.mts.map +1 -0
  137. package/dist/markdown/components/markdown-table.mjs +99 -0
  138. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  139. package/dist/markdown/contexts/index.cjs +7 -0
  140. package/dist/markdown/contexts/index.d.cts +2 -0
  141. package/dist/markdown/contexts/index.d.mts +2 -0
  142. package/dist/markdown/contexts/index.mjs +3 -0
  143. package/dist/markdown/contexts/markdown-table.cjs +38 -0
  144. package/dist/markdown/contexts/markdown-table.d.cts +38 -0
  145. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
  146. package/dist/markdown/contexts/markdown-table.d.mts +38 -0
  147. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
  148. package/dist/markdown/contexts/markdown-table.mjs +34 -0
  149. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  150. package/dist/markdown/index.cjs +18 -0
  151. package/dist/markdown/index.d.cts +5 -0
  152. package/dist/markdown/index.d.mts +5 -0
  153. package/dist/markdown/index.mjs +8 -0
  154. package/dist/render.cjs +91 -0
  155. package/dist/render.d.cts +38 -0
  156. package/dist/render.d.cts.map +1 -0
  157. package/dist/render.d.mts +38 -0
  158. package/dist/render.d.mts.map +1 -0
  159. package/dist/render.mjs +89 -0
  160. package/dist/render.mjs.map +1 -0
  161. package/dist/types/components.cjs +0 -0
  162. package/dist/types/components.d.cts +142 -0
  163. package/dist/types/components.d.cts.map +1 -0
  164. package/dist/types/components.d.mts +142 -0
  165. package/dist/types/components.d.mts.map +1 -0
  166. package/dist/types/components.mjs +1 -0
  167. package/dist/types/index.cjs +0 -0
  168. package/dist/types/index.d.cts +3 -0
  169. package/dist/types/index.d.mts +3 -0
  170. package/dist/types/index.mjs +1 -0
  171. package/dist/types/plugin.cjs +0 -0
  172. package/dist/types/plugin.d.cts +39 -0
  173. package/dist/types/plugin.d.cts.map +1 -0
  174. package/dist/types/plugin.d.mts +39 -0
  175. package/dist/types/plugin.d.mts.map +1 -0
  176. package/dist/types/plugin.mjs +1 -0
  177. package/dist/typescript/components/builtin-file.cjs +63 -0
  178. package/dist/typescript/components/builtin-file.d.cts +35 -0
  179. package/dist/typescript/components/builtin-file.d.cts.map +1 -0
  180. package/dist/typescript/components/builtin-file.d.mts +35 -0
  181. package/dist/typescript/components/builtin-file.d.mts.map +1 -0
  182. package/dist/typescript/components/builtin-file.mjs +62 -0
  183. package/dist/typescript/components/builtin-file.mjs.map +1 -0
  184. package/dist/typescript/components/class-declaration.cjs +291 -0
  185. package/dist/typescript/components/class-declaration.d.cts +145 -0
  186. package/dist/typescript/components/class-declaration.d.cts.map +1 -0
  187. package/dist/typescript/components/class-declaration.d.mts +145 -0
  188. package/dist/typescript/components/class-declaration.d.mts.map +1 -0
  189. package/dist/typescript/components/class-declaration.mjs +285 -0
  190. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  191. package/dist/typescript/components/dynamic-import-statement.cjs +26 -0
  192. package/dist/typescript/components/dynamic-import-statement.d.cts +33 -0
  193. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
  194. package/dist/typescript/components/dynamic-import-statement.d.mts +33 -0
  195. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
  196. package/dist/typescript/components/dynamic-import-statement.mjs +25 -0
  197. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  198. package/dist/typescript/components/entry-file.cjs +43 -0
  199. package/dist/typescript/components/entry-file.d.cts +28 -0
  200. package/dist/typescript/components/entry-file.d.cts.map +1 -0
  201. package/dist/typescript/components/entry-file.d.mts +28 -0
  202. package/dist/typescript/components/entry-file.d.mts.map +1 -0
  203. package/dist/typescript/components/entry-file.mjs +41 -0
  204. package/dist/typescript/components/entry-file.mjs.map +1 -0
  205. package/dist/typescript/components/index.cjs +65 -0
  206. package/dist/typescript/components/index.d.cts +15 -0
  207. package/dist/typescript/components/index.d.mts +15 -0
  208. package/dist/typescript/components/index.mjs +16 -0
  209. package/dist/typescript/components/infrastructure-file.cjs +40 -0
  210. package/dist/typescript/components/infrastructure-file.d.cts +21 -0
  211. package/dist/typescript/components/infrastructure-file.d.cts.map +1 -0
  212. package/dist/typescript/components/infrastructure-file.d.mts +21 -0
  213. package/dist/typescript/components/infrastructure-file.d.mts.map +1 -0
  214. package/dist/typescript/components/infrastructure-file.mjs +38 -0
  215. package/dist/typescript/components/infrastructure-file.mjs.map +1 -0
  216. package/dist/typescript/components/interface-declaration.cjs +229 -0
  217. package/dist/typescript/components/interface-declaration.d.cts +86 -0
  218. package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
  219. package/dist/typescript/components/interface-declaration.d.mts +86 -0
  220. package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
  221. package/dist/typescript/components/interface-declaration.mjs +225 -0
  222. package/dist/typescript/components/interface-declaration.mjs.map +1 -0
  223. package/dist/typescript/components/object-declaration.cjs +128 -0
  224. package/dist/typescript/components/object-declaration.d.cts +30 -0
  225. package/dist/typescript/components/object-declaration.d.cts.map +1 -0
  226. package/dist/typescript/components/object-declaration.d.mts +30 -0
  227. package/dist/typescript/components/object-declaration.d.mts.map +1 -0
  228. package/dist/typescript/components/object-declaration.mjs +126 -0
  229. package/dist/typescript/components/object-declaration.mjs.map +1 -0
  230. package/dist/typescript/components/property-name.cjs +32 -0
  231. package/dist/typescript/components/property-name.d.cts +24 -0
  232. package/dist/typescript/components/property-name.d.cts.map +1 -0
  233. package/dist/typescript/components/property-name.d.mts +24 -0
  234. package/dist/typescript/components/property-name.d.mts.map +1 -0
  235. package/dist/typescript/components/property-name.mjs +31 -0
  236. package/dist/typescript/components/property-name.mjs.map +1 -0
  237. package/dist/typescript/components/record-expression.cjs +13 -0
  238. package/dist/typescript/components/record-expression.d.cts +13 -0
  239. package/dist/typescript/components/record-expression.d.cts.map +1 -0
  240. package/dist/typescript/components/record-expression.d.mts +13 -0
  241. package/dist/typescript/components/record-expression.d.mts.map +1 -0
  242. package/dist/typescript/components/record-expression.mjs +12 -0
  243. package/dist/typescript/components/record-expression.mjs.map +1 -0
  244. package/dist/typescript/components/tsdoc-reflection.cjs +310 -0
  245. package/dist/typescript/components/tsdoc-reflection.d.cts +44 -0
  246. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
  247. package/dist/typescript/components/tsdoc-reflection.d.mts +44 -0
  248. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
  249. package/dist/typescript/components/tsdoc-reflection.mjs +304 -0
  250. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
  251. package/dist/typescript/components/tsdoc.cjs +477 -0
  252. package/dist/typescript/components/tsdoc.d.cts +164 -0
  253. package/dist/typescript/components/tsdoc.d.cts.map +1 -0
  254. package/dist/typescript/components/tsdoc.d.mts +164 -0
  255. package/dist/typescript/components/tsdoc.d.mts.map +1 -0
  256. package/dist/typescript/components/tsdoc.mjs +457 -0
  257. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  258. package/dist/typescript/components/type-declaration.cjs +39 -0
  259. package/dist/typescript/components/type-declaration.d.cts +18 -0
  260. package/dist/typescript/components/type-declaration.d.cts.map +1 -0
  261. package/dist/typescript/components/type-declaration.d.mts +18 -0
  262. package/dist/typescript/components/type-declaration.d.mts.map +1 -0
  263. package/dist/typescript/components/type-declaration.mjs +38 -0
  264. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  265. package/dist/typescript/components/type-parameters.cjs +82 -0
  266. package/dist/typescript/components/type-parameters.d.cts +24 -0
  267. package/dist/typescript/components/type-parameters.d.cts.map +1 -0
  268. package/dist/typescript/components/type-parameters.d.mts +24 -0
  269. package/dist/typescript/components/type-parameters.d.mts.map +1 -0
  270. package/dist/typescript/components/type-parameters.mjs +81 -0
  271. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  272. package/dist/typescript/components/typescript-file.cjs +221 -0
  273. package/dist/typescript/components/typescript-file.d.cts +50 -0
  274. package/dist/typescript/components/typescript-file.d.cts.map +1 -0
  275. package/dist/typescript/components/typescript-file.d.mts +50 -0
  276. package/dist/typescript/components/typescript-file.d.mts.map +1 -0
  277. package/dist/typescript/components/typescript-file.mjs +218 -0
  278. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  279. package/dist/typescript/contexts/index.cjs +4 -0
  280. package/dist/typescript/contexts/index.d.cts +2 -0
  281. package/dist/typescript/contexts/index.d.mts +2 -0
  282. package/dist/typescript/contexts/index.mjs +3 -0
  283. package/dist/typescript/contexts/lexical-scope.cjs +26 -0
  284. package/dist/typescript/contexts/lexical-scope.d.cts +17 -0
  285. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
  286. package/dist/typescript/contexts/lexical-scope.d.mts +17 -0
  287. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
  288. package/dist/typescript/contexts/lexical-scope.mjs +25 -0
  289. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  290. package/dist/typescript/contexts/member-scope.cjs +24 -0
  291. package/dist/typescript/contexts/member-scope.d.cts +20 -0
  292. package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
  293. package/dist/typescript/contexts/member-scope.d.mts +20 -0
  294. package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
  295. package/dist/typescript/contexts/member-scope.mjs +23 -0
  296. package/dist/typescript/contexts/member-scope.mjs.map +1 -0
  297. package/dist/typescript/helpers/get-call-signature-props.cjs +26 -0
  298. package/dist/typescript/helpers/get-call-signature-props.d.cts +14 -0
  299. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
  300. package/dist/typescript/helpers/get-call-signature-props.d.mts +14 -0
  301. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
  302. package/dist/typescript/helpers/get-call-signature-props.mjs +25 -0
  303. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  304. package/dist/typescript/helpers/index.cjs +6 -0
  305. package/dist/typescript/helpers/index.d.cts +3 -0
  306. package/dist/typescript/helpers/index.d.mts +3 -0
  307. package/dist/typescript/helpers/index.mjs +4 -0
  308. package/dist/typescript/helpers/utilities.cjs +15 -0
  309. package/dist/typescript/helpers/utilities.d.cts +11 -0
  310. package/dist/typescript/helpers/utilities.d.cts.map +1 -0
  311. package/dist/typescript/helpers/utilities.d.mts +11 -0
  312. package/dist/typescript/helpers/utilities.d.mts.map +1 -0
  313. package/dist/typescript/helpers/utilities.mjs +14 -0
  314. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  315. package/dist/typescript/index.cjs +74 -0
  316. package/dist/typescript/index.d.cts +18 -0
  317. package/dist/typescript/index.d.mts +18 -0
  318. package/dist/typescript/index.mjs +22 -0
  319. package/dist/yaml/components/index.cjs +5 -0
  320. package/dist/yaml/components/index.d.cts +2 -0
  321. package/dist/yaml/components/index.d.mts +2 -0
  322. package/dist/yaml/components/index.mjs +3 -0
  323. package/dist/yaml/components/yaml-file.cjs +149 -0
  324. package/dist/yaml/components/yaml-file.d.cts +34 -0
  325. package/dist/yaml/components/yaml-file.d.cts.map +1 -0
  326. package/dist/yaml/components/yaml-file.d.mts +34 -0
  327. package/dist/yaml/components/yaml-file.d.mts.map +1 -0
  328. package/dist/yaml/components/yaml-file.mjs +147 -0
  329. package/dist/yaml/components/yaml-file.mjs.map +1 -0
  330. package/dist/yaml/index.cjs +6 -0
  331. package/dist/yaml/index.d.cts +2 -0
  332. package/dist/yaml/index.d.mts +2 -0
  333. package/dist/yaml/index.mjs +4 -0
  334. package/package.json +7 -7
@@ -0,0 +1,29 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+
29
+ exports.__toESM = __toESM;
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+
3
+ export { };
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_core_components_output = require('./output.cjs');
3
+ const require_core_components_single_line_comment = require('./single-line-comment.cjs');
4
+ const require_core_components_source_file = require('./source-file.cjs');
5
+ const require_core_components_spacing = require('./spacing.cjs');
6
+
7
+ exports.Output = require_core_components_output.Output;
8
+ exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
9
+ exports.SourceFile = require_core_components_source_file.SourceFile;
10
+ exports.Spacing = require_core_components_spacing.Spacing;
@@ -0,0 +1,5 @@
1
+ import { Output, OutputProps, __ΩOutputProps } from "./output.cjs";
2
+ import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.cjs";
3
+ import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.cjs";
4
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.cjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
@@ -0,0 +1,5 @@
1
+ import { Output, OutputProps, __ΩOutputProps } from "./output.mjs";
2
+ import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.mjs";
3
+ import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.mjs";
4
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.mjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
@@ -0,0 +1,6 @@
1
+ import { Output } from "./output.mjs";
2
+ import { SingleLineComment } from "./single-line-comment.mjs";
3
+ import { SourceFile } from "./source-file.mjs";
4
+ import { Spacing } from "./spacing.mjs";
5
+
6
+ export { Output, SingleLineComment, SourceFile, Spacing };
@@ -0,0 +1,41 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ const require_core_contexts_context = require('../contexts/context.cjs');
4
+ const require_core_contexts_meta = require('../contexts/meta.cjs');
5
+ require('../contexts/index.cjs');
6
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
+ let _alloy_js_core = require("@alloy-js/core");
8
+
9
+ //#region src/core/components/output.tsx
10
+ /**
11
+ * Output component for rendering the Powerlines plugin's output files via templates.
12
+ */
13
+ function Output(props) {
14
+ const [{ children, context, meta = {} }, rest] = (0, _alloy_js_core.splitProps)(props, [
15
+ "children",
16
+ "context",
17
+ "meta"
18
+ ]);
19
+ const contextRef = (0, _alloy_js_core.computed)(() => context);
20
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_meta.MetaContext.Provider, {
21
+ value: meta,
22
+ get children() {
23
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
24
+ get value() {
25
+ return contextRef.value;
26
+ },
27
+ get children() {
28
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Output, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
29
+ get basePath() {
30
+ return contextRef.value.workspaceConfig.workspaceRoot;
31
+ },
32
+ children
33
+ }));
34
+ }
35
+ });
36
+ }
37
+ });
38
+ }
39
+
40
+ //#endregion
41
+ exports.Output = Output;
@@ -0,0 +1,24 @@
1
+ import { MetaItem } from "../contexts/meta.cjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { OutputProps as OutputProps$1 } from "@alloy-js/core";
4
+ import { PluginContext } from "@powerlines/core";
5
+
6
+ //#region src/core/components/output.d.ts
7
+ interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
8
+ /**
9
+ * The current Powerlines process context.
10
+ */
11
+ context: TContext;
12
+ /**
13
+ * The file metadata collected during rendering.
14
+ */
15
+ meta?: Record<string, MetaItem>;
16
+ }
17
+ /**
18
+ * Output component for rendering the Powerlines plugin's output files via templates.
19
+ */
20
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
21
+ declare type __ΩOutputProps = any[];
22
+ //#endregion
23
+ export { Output, OutputProps, __ΩOutputProps };
24
+ //# sourceMappingURL=output.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,eAAA,CAAU,QAAA;AAAA"}
@@ -0,0 +1,24 @@
1
+ import { MetaItem } from "../contexts/meta.mjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { OutputProps as OutputProps$1 } from "@alloy-js/core";
4
+ import { PluginContext } from "@powerlines/core";
5
+
6
+ //#region src/core/components/output.d.ts
7
+ interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
8
+ /**
9
+ * The current Powerlines process context.
10
+ */
11
+ context: TContext;
12
+ /**
13
+ * The file metadata collected during rendering.
14
+ */
15
+ meta?: Record<string, MetaItem>;
16
+ }
17
+ /**
18
+ * Output component for rendering the Powerlines plugin's output files via templates.
19
+ */
20
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
21
+ declare type __ΩOutputProps = any[];
22
+ //#endregion
23
+ export { Output, OutputProps, __ΩOutputProps };
24
+ //# sourceMappingURL=output.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,eAAA,CAAU,QAAA;AAAA"}
@@ -0,0 +1,40 @@
1
+ import { PowerlinesContext } from "../contexts/context.mjs";
2
+ import { MetaContext } from "../contexts/meta.mjs";
3
+ import "../contexts/index.mjs";
4
+ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
+ import { Output as Output$1, computed, splitProps } from "@alloy-js/core";
6
+
7
+ //#region src/core/components/output.tsx
8
+ /**
9
+ * Output component for rendering the Powerlines plugin's output files via templates.
10
+ */
11
+ function Output(props) {
12
+ const [{ children, context, meta = {} }, rest] = splitProps(props, [
13
+ "children",
14
+ "context",
15
+ "meta"
16
+ ]);
17
+ const contextRef = computed(() => context);
18
+ return createComponent(MetaContext.Provider, {
19
+ value: meta,
20
+ get children() {
21
+ return createComponent(PowerlinesContext.Provider, {
22
+ get value() {
23
+ return contextRef.value;
24
+ },
25
+ get children() {
26
+ return createComponent(Output$1, mergeProps(rest, {
27
+ get basePath() {
28
+ return contextRef.value.workspaceConfig.workspaceRoot;
29
+ },
30
+ children
31
+ }));
32
+ }
33
+ });
34
+ }
35
+ });
36
+ }
37
+
38
+ //#endregion
39
+ export { Output };
40
+ //# sourceMappingURL=output.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.mjs","names":[],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport type { PluginContext } from \"@powerlines/core\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta?: Record<string, MetaItem>;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, meta = {} }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal\n {...rest}\n basePath={contextRef.value.workspaceConfig.workspaceRoot}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;AAuCA,SAAU,OAA6D,OAAa;CAClF,MAAA,CAAA,EACF,UACE,SACA,OAAA,EAAA,IACA,QAAS,WAAU,OAAS;EAAA;EAAa;EAAQ;EAAW,CAAA;CAC5D,MAAG,aAAS,eAAA,QAAA;AACZ,QAAG,gBAAQ,YAAA,UAAA;EACT,OAAK;EACL,IAAA,WAAA;;IAEI,IAAA,QAAY;;;IAGf,IAAA,WAAY;AACV,YAAA,gBAA2B,UAAiB,WAAO,MAAA;MACjD,IAAA,WAAA;AACK,cAAI,WAAA,MAAA,gBAAA;;MAEC;MACT,CAAA,CAAA;;IAEJ,CAAA;;EAEN,CAAA"}
@@ -0,0 +1,23 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
+ let _alloy_js_core = require("@alloy-js/core");
5
+
6
+ //#region src/core/components/single-line-comment.tsx
7
+ /**
8
+ * A single line comment block. The children are rendered as a prose element, which means that they
9
+ * are broken into multiple lines
10
+ */
11
+ function SingleLineComment(props) {
12
+ const { variant = "double-slash", children } = props;
13
+ const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : variant === "yaml" ? "# " : "// ";
14
+ return [commentStart, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
15
+ string: commentStart,
16
+ get children() {
17
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
18
+ }
19
+ })];
20
+ }
21
+
22
+ //#endregion
23
+ exports.SingleLineComment = SingleLineComment;
@@ -0,0 +1,23 @@
1
+ import { ComponentProps } from "../../types/components.cjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+
4
+ //#region src/core/components/single-line-comment.d.ts
5
+ type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
6
+ interface SingleLineCommentProps extends ComponentProps {
7
+ /**
8
+ * The variant of the single line comment.
9
+ *
10
+ * @defaultValue "double-slash"
11
+ */
12
+ variant?: SingleLineCommentVariant;
13
+ }
14
+ /**
15
+ * A single line comment block. The children are rendered as a prose element, which means that they
16
+ * are broken into multiple lines
17
+ */
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
19
+ declare type __ΩSingleLineCommentVariant = any[];
20
+ declare type __ΩSingleLineCommentProps = any[];
21
+ //#endregion
22
+ export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
23
+ //# sourceMappingURL=single-line-comment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-line-comment.d.cts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UAQK,sBAAA,SAA+B,cAAA;;AARhD;;;;EAcE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,23 @@
1
+ import { ComponentProps } from "../../types/components.mjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+
4
+ //#region src/core/components/single-line-comment.d.ts
5
+ type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
6
+ interface SingleLineCommentProps extends ComponentProps {
7
+ /**
8
+ * The variant of the single line comment.
9
+ *
10
+ * @defaultValue "double-slash"
11
+ */
12
+ variant?: SingleLineCommentVariant;
13
+ }
14
+ /**
15
+ * A single line comment block. The children are rendered as a prose element, which means that they
16
+ * are broken into multiple lines
17
+ */
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
19
+ declare type __ΩSingleLineCommentVariant = any[];
20
+ declare type __ΩSingleLineCommentProps = any[];
21
+ //#endregion
22
+ export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
23
+ //# sourceMappingURL=single-line-comment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-line-comment.d.mts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UAQK,sBAAA,SAA+B,cAAA;;AARhD;;;;EAcE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { Prose } from "@alloy-js/core";
3
+
4
+ //#region src/core/components/single-line-comment.tsx
5
+ /**
6
+ * A single line comment block. The children are rendered as a prose element, which means that they
7
+ * are broken into multiple lines
8
+ */
9
+ function SingleLineComment(props) {
10
+ const { variant = "double-slash", children } = props;
11
+ const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : variant === "yaml" ? "# " : "// ";
12
+ return [commentStart, createIntrinsic("align", {
13
+ string: commentStart,
14
+ get children() {
15
+ return [createComponent(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
16
+ }
17
+ })];
18
+ }
19
+
20
+ //#endregion
21
+ export { SingleLineComment };
22
+ //# sourceMappingURL=single-line-comment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-line-comment.mjs","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\"\n | \"yaml\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : variant === \"yaml\"\n ? \"# \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAmCA,SAAY,kBAAA,OAAwB;CACpC,MAAA,4BAEE,aACG;CACH,MAAK,eAAY,YAAS,eAAA,QAAA,YAAA,oBAAA,SAAA,YAAA,iBAAA,SAAA,YAAA,aAAA,UAAA,YAAA,SAAA,OAAA;AAC1B,QAAA,CAAA,cAAA,gBAAA,SAAA;EACF,QAAO;EACL,IAAM,WAAW;oCAEX,UACJ,CAAA,EAAA,YAAkB,gBAAK,YAAA,oBAAA,SAAA,YAAA,aAAA,SAAA,GAAA;;EAExB,CAAC,CAAC"}
@@ -0,0 +1,64 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ const require_core_contexts_meta = require('../contexts/meta.cjs');
4
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
+ let _alloy_js_core = require("@alloy-js/core");
6
+ let _stryke_path_append = require("@stryke/path/append");
7
+ let defu = require("defu");
8
+ defu = require_runtime.__toESM(defu);
9
+
10
+ //#region src/core/components/source-file.tsx
11
+ /**
12
+ * A base component representing a Powerlines generated source file.
13
+ *
14
+ * @param props - The properties for the source file.
15
+ * @returns The rendered source file component.
16
+ */
17
+ function SourceFile(props) {
18
+ const [{ children, meta, path, header, storage, filetype, reference }] = (0, _alloy_js_core.splitProps)(props, [
19
+ "children",
20
+ "meta",
21
+ "path",
22
+ "header",
23
+ "storage",
24
+ "filetype",
25
+ "reference"
26
+ ]);
27
+ const metadata = require_core_contexts_meta.useMeta();
28
+ const parentDirectory = (0, _alloy_js_core.useContext)(_alloy_js_core.SourceDirectoryContext);
29
+ const sourceFile = {
30
+ path: (0, _stryke_path_append.appendPath)(path, parentDirectory.path),
31
+ filetype,
32
+ reference
33
+ };
34
+ parentDirectory?.addContent(sourceFile);
35
+ const printOptions = (0, _alloy_js_core.useFormatOptions)({
36
+ printWidth: props.printWidth,
37
+ tabWidth: props.tabWidth,
38
+ useTabs: props.useTabs,
39
+ insertFinalNewLine: props.insertFinalNewLine
40
+ });
41
+ const nodeContext = (0, _alloy_js_core.getContext)();
42
+ nodeContext.meta = (0, defu.default)({
43
+ sourceFile,
44
+ printOptions
45
+ }, meta ?? {});
46
+ if (metadata) metadata[sourceFile.path] = {
47
+ storage,
48
+ ...meta ?? {}
49
+ };
50
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.SourceFileContext.Provider, {
51
+ value: sourceFile,
52
+ get children() {
53
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
54
+ when: header !== void 0,
55
+ get children() {
56
+ return [header, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
57
+ }
58
+ }), children];
59
+ }
60
+ });
61
+ }
62
+
63
+ //#endregion
64
+ exports.SourceFile = SourceFile;
@@ -0,0 +1,33 @@
1
+ import { ComponentProps } from "../../types/components.cjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
4
+ import { StoragePreset } from "powerlines";
5
+
6
+ //#region src/core/components/source-file.d.ts
7
+ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
8
+ /**
9
+ * The storage preset for the output files.
10
+ *
11
+ * @remarks
12
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
13
+ */
14
+ storage?: StoragePreset;
15
+ /**
16
+ * The metadata associated with the source file.
17
+ *
18
+ * @remarks
19
+ * The values stored in the metadata will be available in the rendering context.
20
+ */
21
+ meta?: Record<string, any>;
22
+ };
23
+ /**
24
+ * A base component representing a Powerlines generated source file.
25
+ *
26
+ * @param props - The properties for the source file.
27
+ * @returns The rendered source file component.
28
+ */
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
30
+ declare type __ΩSourceFileProps = any[];
31
+ //#endregion
32
+ export { SourceFile, SourceFileProps, __ΩSourceFileProps };
33
+ //# sourceMappingURL=source-file.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,33 @@
1
+ import { ComponentProps } from "../../types/components.mjs";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
4
+ import { StoragePreset } from "powerlines";
5
+
6
+ //#region src/core/components/source-file.d.ts
7
+ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
8
+ /**
9
+ * The storage preset for the output files.
10
+ *
11
+ * @remarks
12
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
13
+ */
14
+ storage?: StoragePreset;
15
+ /**
16
+ * The metadata associated with the source file.
17
+ *
18
+ * @remarks
19
+ * The values stored in the metadata will be available in the rendering context.
20
+ */
21
+ meta?: Record<string, any>;
22
+ };
23
+ /**
24
+ * A base component representing a Powerlines generated source file.
25
+ *
26
+ * @param props - The properties for the source file.
27
+ * @returns The rendered source file component.
28
+ */
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
30
+ declare type __ΩSourceFileProps = any[];
31
+ //#endregion
32
+ export { SourceFile, SourceFileProps, __ΩSourceFileProps };
33
+ //# sourceMappingURL=source-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,62 @@
1
+ import { useMeta } from "../contexts/meta.mjs";
2
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
3
+ import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
4
+ import { appendPath } from "@stryke/path/append";
5
+ import defu from "defu";
6
+
7
+ //#region src/core/components/source-file.tsx
8
+ /**
9
+ * A base component representing a Powerlines generated source file.
10
+ *
11
+ * @param props - The properties for the source file.
12
+ * @returns The rendered source file component.
13
+ */
14
+ function SourceFile(props) {
15
+ const [{ children, meta, path, header, storage, filetype, reference }] = splitProps(props, [
16
+ "children",
17
+ "meta",
18
+ "path",
19
+ "header",
20
+ "storage",
21
+ "filetype",
22
+ "reference"
23
+ ]);
24
+ const metadata = useMeta();
25
+ const parentDirectory = useContext(SourceDirectoryContext);
26
+ const sourceFile = {
27
+ path: appendPath(path, parentDirectory.path),
28
+ filetype,
29
+ reference
30
+ };
31
+ parentDirectory?.addContent(sourceFile);
32
+ const printOptions = useFormatOptions({
33
+ printWidth: props.printWidth,
34
+ tabWidth: props.tabWidth,
35
+ useTabs: props.useTabs,
36
+ insertFinalNewLine: props.insertFinalNewLine
37
+ });
38
+ const nodeContext = getContext();
39
+ nodeContext.meta = defu({
40
+ sourceFile,
41
+ printOptions
42
+ }, meta ?? {});
43
+ if (metadata) metadata[sourceFile.path] = {
44
+ storage,
45
+ ...meta ?? {}
46
+ };
47
+ return createComponent(SourceFileContext.Provider, {
48
+ value: sourceFile,
49
+ get children() {
50
+ return [createComponent(Show, {
51
+ when: header !== void 0,
52
+ get children() {
53
+ return [header, createIntrinsic("hbr", {})];
54
+ }
55
+ }), children];
56
+ }
57
+ });
58
+ }
59
+
60
+ //#endregion
61
+ export { SourceFile };
62
+ //# sourceMappingURL=source-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.mjs","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n getContext,\n Show,\n SourceDirectoryContext,\n SourceFileContext,\n SourceFileProps as SourceFilePropsExternal,\n splitProps,\n useContext,\n useFormatOptions\n} from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport type { StoragePreset } from \"powerlines\";\nimport { ComponentProps } from \"../../types/components\";\nimport { useMeta } from \"../contexts/meta\";\n\nexport type SourceFileProps = SourceFilePropsExternal &\n ComponentProps & {\n /**\n * The storage preset for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset;\n\n /**\n * The metadata associated with the source file.\n *\n * @remarks\n * The values stored in the metadata will be available in the rendering context.\n */\n meta?: Record<string, any>;\n };\n\n/**\n * A base component representing a Powerlines generated source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function SourceFile(props: SourceFileProps) {\n const [{ children, meta, path, header, storage, filetype, reference }] =\n splitProps(props, [\n \"children\",\n \"meta\",\n \"path\",\n \"header\",\n \"storage\",\n \"filetype\",\n \"reference\"\n ]);\n\n const metadata = useMeta();\n const parentDirectory = useContext(SourceDirectoryContext)!;\n\n const sourceFile: SourceFileContext = {\n path: appendPath(path, parentDirectory.path),\n filetype,\n reference\n };\n parentDirectory?.addContent(sourceFile);\n\n const printOptions = useFormatOptions({\n printWidth: props.printWidth,\n tabWidth: props.tabWidth,\n useTabs: props.useTabs,\n insertFinalNewLine: props.insertFinalNewLine\n });\n\n const nodeContext = getContext()!;\n nodeContext.meta = defu(\n {\n sourceFile,\n printOptions\n },\n meta ?? {}\n );\n\n if (metadata) {\n metadata[sourceFile.path] = {\n storage,\n ...(meta ?? {})\n };\n }\n\n return (\n <SourceFileContext.Provider value={sourceFile}>\n <Show when={header !== undefined}>\n {header}\n <hbr />\n </Show>\n {children}\n </SourceFileContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAiDA,SAAM,WAAA,OAAA;CACJ,MAAM,CAAC,EACN,gBAED,MACE,QACH,SACG,UACA,eACF,WAAA,OAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA,CAAA;CACF,MAAO,WAAS,SAAW;CACzB,MAAM,kBAAkB,WAAO,uBAA2B;CAC1D,MAAE,aAAkB;EAClB,MAAG,WAAS,MAAA,gBAAA,KAAA;EACZ;EACA;EACD;AACD,kBAAa,WAAA,WAAA;CACb,MAAK,eAAS,iBAAA;EACZ,YAAY,MAAA;EACZ,UAAE,MAAA;;EAEJ,oBAAiB,MAAS;EAC1B,CAAA;;AAEA,aAAM,OAAY,KAAA;EAChB;EACA;EACD,EAAC,QAAA,EAAA,CAAA;AACF,KAAC,SACD,UAAA,WAAiB,QAAW;;EAE5B,GAAM,QAAA,EAAY;EAChB;AAEF,QAAE,gBAAsB,kBAAA,UAAA;EACtB,OAAA;EACA,IAAA,WAAA;;IAEI,MAAA,WAAc;IACpB,IAAA,WAAmB;AACjB,YAAA,CAAA,QAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;;IAEE,CAAA,EAAA,SAAA;;EAEH,CAAC"}
@@ -0,0 +1,20 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
+ let _alloy_js_core = require("@alloy-js/core");
5
+
6
+ //#region src/core/components/spacing.tsx
7
+ /**
8
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
9
+ */
10
+ function Spacing({ scale = 1 }) {
11
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
12
+ get each() {
13
+ return Array.from({ length: scale });
14
+ },
15
+ children: (_) => [(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
16
+ });
17
+ }
18
+
19
+ //#endregion
20
+ exports.Spacing = Spacing;
@@ -0,0 +1,24 @@
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _alloy_js_core0.Children;
21
+ declare type __ΩSpacingProps = any[];
22
+ //#endregion
23
+ export { Spacing, SpacingProps, __ΩSpacingProps };
24
+ //# sourceMappingURL=spacing.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,24 @@
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _alloy_js_core0.Children;
21
+ declare type __ΩSpacingProps = any[];
22
+ //#endregion
23
+ export { Spacing, SpacingProps, __ΩSpacingProps };
24
+ //# sourceMappingURL=spacing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,eAAA,CAAA,QAAA;AAAA"}
@@ -0,0 +1,19 @@
1
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { For } from "@alloy-js/core";
3
+
4
+ //#region src/core/components/spacing.tsx
5
+ /**
6
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
7
+ */
8
+ function Spacing({ scale = 1 }) {
9
+ return createComponent(For, {
10
+ get each() {
11
+ return Array.from({ length: scale });
12
+ },
13
+ children: (_) => [createIntrinsic("hbr", {}), createIntrinsic("hbr", {})]
14
+ });
15
+ }
16
+
17
+ //#endregion
18
+ export { Spacing };
19
+ //# sourceMappingURL=spacing.mjs.map