@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 @@
1
+ {"version":3,"file":"spacing.mjs","names":[],"sources":["../../../src/core/components/spacing.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 { For } from \"@alloy-js/core\";\n\nexport interface SpacingProps {\n /**\n * A scale factor that determines the amount of vertical space to be added.\n *\n * @remarks\n * 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.\n *\n * @defaultValue 1\n */\n scale?: number;\n}\n\n/**\n * A simple component that renders two horizontal breaks to create vertical spacing between elements.\n */\nexport function Spacing({ scale = 1 }: SpacingProps) {\n return (\n <For each={Array.from({ length: scale })}>\n {_ => (\n <>\n <hbr />\n <hbr />\n </>\n )}\n </For>\n );\n}\n"],"mappings":";;;;;;;AAmCA,SAAgB,QAAQ,EACtB,QAAO,KACM;AACb,QAAO,gBAAG,KAAA;EACR,IAAI,OAAC;AACH,UAAK,MAAK,KAAA,EACR,QAAQ,OACT,CAAC;;EAEJ,WAAK,MAAA,CAAA,gBAAA,OAAA,EAAA,CAAA,EAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;EACN,CAAA"}
@@ -0,0 +1,41 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core = require("@alloy-js/core");
4
+
5
+ //#region src/core/contexts/context.ts
6
+ /**
7
+ * The Powerlines context used in template rendering.
8
+ */
9
+ const PowerlinesContext = (0, _alloy_js_core.createNamedContext)("Powerlines");
10
+ /**
11
+ * Hook to access the Powerlines Context.
12
+ *
13
+ * @returns The Context.
14
+ */
15
+ function usePowerlinesContext() {
16
+ return (0, _alloy_js_core.useContext)(PowerlinesContext);
17
+ }
18
+ /**
19
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
20
+ *
21
+ * @returns The Powerlines context or undefined if not set.
22
+ */
23
+ function usePowerlinesSafe() {
24
+ return usePowerlinesContext() ?? void 0;
25
+ }
26
+ /**
27
+ * Hook to access the {@link PluginContext | Powerlines context}.
28
+ *
29
+ * @returns The Powerlines context.
30
+ */
31
+ function usePowerlines() {
32
+ const powerlines = usePowerlinesSafe();
33
+ if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
34
+ return powerlines;
35
+ }
36
+
37
+ //#endregion
38
+ exports.PowerlinesContext = PowerlinesContext;
39
+ exports.usePowerlines = usePowerlines;
40
+ exports.usePowerlinesContext = usePowerlinesContext;
41
+ exports.usePowerlinesSafe = usePowerlinesSafe;
@@ -0,0 +1,29 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { PluginContext } from "powerlines";
3
+
4
+ //#region src/core/contexts/context.d.ts
5
+ /**
6
+ * The Powerlines context used in template rendering.
7
+ */
8
+ declare const PowerlinesContext: ComponentContext<PluginContext>;
9
+ /**
10
+ * Hook to access the Powerlines Context.
11
+ *
12
+ * @returns The Context.
13
+ */
14
+ declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
15
+ /**
16
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
17
+ *
18
+ * @returns The Powerlines context or undefined if not set.
19
+ */
20
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
21
+ /**
22
+ * Hook to access the {@link PluginContext | Powerlines context}.
23
+ *
24
+ * @returns The Powerlines context.
25
+ */
26
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
27
+ //#endregion
28
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
29
+ //# sourceMappingURL=context.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
@@ -0,0 +1,29 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { PluginContext } from "powerlines";
3
+
4
+ //#region src/core/contexts/context.d.ts
5
+ /**
6
+ * The Powerlines context used in template rendering.
7
+ */
8
+ declare const PowerlinesContext: ComponentContext<PluginContext>;
9
+ /**
10
+ * Hook to access the Powerlines Context.
11
+ *
12
+ * @returns The Context.
13
+ */
14
+ declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
15
+ /**
16
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
17
+ *
18
+ * @returns The Powerlines context or undefined if not set.
19
+ */
20
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
21
+ /**
22
+ * Hook to access the {@link PluginContext | Powerlines context}.
23
+ *
24
+ * @returns The Powerlines context.
25
+ */
26
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
27
+ //#endregion
28
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
29
+ //# sourceMappingURL=context.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.mts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
@@ -0,0 +1,37 @@
1
+ import { createNamedContext, useContext } from "@alloy-js/core";
2
+
3
+ //#region src/core/contexts/context.ts
4
+ /**
5
+ * The Powerlines context used in template rendering.
6
+ */
7
+ const PowerlinesContext = createNamedContext("Powerlines");
8
+ /**
9
+ * Hook to access the Powerlines Context.
10
+ *
11
+ * @returns The Context.
12
+ */
13
+ function usePowerlinesContext() {
14
+ return useContext(PowerlinesContext);
15
+ }
16
+ /**
17
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
18
+ *
19
+ * @returns The Powerlines context or undefined if not set.
20
+ */
21
+ function usePowerlinesSafe() {
22
+ return usePowerlinesContext() ?? void 0;
23
+ }
24
+ /**
25
+ * Hook to access the {@link PluginContext | Powerlines context}.
26
+ *
27
+ * @returns The Powerlines context.
28
+ */
29
+ function usePowerlines() {
30
+ const powerlines = usePowerlinesSafe();
31
+ if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
32
+ return powerlines;
33
+ }
34
+
35
+ //#endregion
36
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
37
+ //# sourceMappingURL=context.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.mjs","names":[],"sources":["../../../src/core/contexts/context.ts"],"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 ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return powerlines;\n}\n"],"mappings":";;;;;;AA4BA,MAAa,oBACX,mBAAkC,aAAa;;;;;;AAOjD,SAAgB,uBAEU;AACxB,QAAO,WAAW,kBAAkB;;;;;;;AAQtC,SAAgB,oBAEU;AAGxB,QAFmB,sBAAgC,IAE9B;;;;;;;AAQvB,SAAgB,gBAEF;CACZ,MAAM,aAAa,mBAA6B;AAChD,KAAI,CAAC,WACH,OAAM,IAAI,MACR,sLACD;AAGH,QAAO"}
@@ -0,0 +1,21 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_core_contexts_context = require('./context.cjs');
3
+ const require_core_contexts_meta = require('./meta.cjs');
4
+ const require_core_contexts_reflection = require('./reflection.cjs');
5
+
6
+ exports.MetaContext = require_core_contexts_meta.MetaContext;
7
+ exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
8
+ exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
9
+ exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
10
+ exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
11
+ exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
12
+ exports.useMeta = require_core_contexts_meta.useMeta;
13
+ exports.useMetaContext = require_core_contexts_meta.useMetaContext;
14
+ exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
15
+ exports.usePowerlines = require_core_contexts_context.usePowerlines;
16
+ exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
17
+ exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
18
+ exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
19
+ exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
20
+ exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
21
+ exports.useReflectionProperty = require_core_contexts_reflection.useReflectionProperty;
@@ -0,0 +1,4 @@
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
2
+ import { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.cjs";
3
+ import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.cjs";
4
+ export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩReflectionClassContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -0,0 +1,4 @@
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
+ import { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
3
+ import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
4
+ export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩReflectionClassContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -0,0 +1,5 @@
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
+ import { MetaContext, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
3
+ import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
4
+
5
+ export { MetaContext, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -0,0 +1,41 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core = require("@alloy-js/core");
4
+
5
+ //#region src/core/contexts/meta.ts
6
+ /**
7
+ * The Powerlines meta context used to determine metadata of files generated during rendering.
8
+ */
9
+ const MetaContext = (0, _alloy_js_core.createNamedContext)("Meta");
10
+ /**
11
+ * Hook to access the Powerlines Context.
12
+ *
13
+ * @returns The Context.
14
+ */
15
+ function useMetaContext() {
16
+ return (0, _alloy_js_core.useContext)(MetaContext);
17
+ }
18
+ /**
19
+ * Hook to safely access the render context's metadata.
20
+ *
21
+ * @returns The Powerlines context or undefined if not set.
22
+ */
23
+ function useMetaSafe() {
24
+ return useMetaContext() ?? void 0;
25
+ }
26
+ /**
27
+ * Hook to access the render context's metadata.
28
+ *
29
+ * @returns The Powerlines context.
30
+ */
31
+ function useMeta() {
32
+ const meta = useMetaSafe();
33
+ if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
34
+ return meta;
35
+ }
36
+
37
+ //#endregion
38
+ exports.MetaContext = MetaContext;
39
+ exports.useMeta = useMeta;
40
+ exports.useMetaContext = useMetaContext;
41
+ exports.useMetaSafe = useMetaSafe;
@@ -0,0 +1,48 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { StoragePreset } from "powerlines";
3
+
4
+ //#region src/core/contexts/meta.d.ts
5
+ interface MetaItem {
6
+ /**
7
+ * The kind of metadata item.
8
+ */
9
+ kind?: "builtin" | "entry" | string;
10
+ /**
11
+ * Whether to skip formatting for this output.
12
+ */
13
+ skipFormat?: boolean;
14
+ /**
15
+ * The storage preset or adapter name for the output files.
16
+ *
17
+ * @remarks
18
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
19
+ */
20
+ storage?: StoragePreset | string;
21
+ [key: string]: any;
22
+ }
23
+ /**
24
+ * The Powerlines meta context used to determine metadata of files generated during rendering.
25
+ */
26
+ declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
27
+ /**
28
+ * Hook to access the Powerlines Context.
29
+ *
30
+ * @returns The Context.
31
+ */
32
+ declare function useMetaContext(): Record<string, MetaItem> | undefined;
33
+ /**
34
+ * Hook to safely access the render context's metadata.
35
+ *
36
+ * @returns The Powerlines context or undefined if not set.
37
+ */
38
+ declare function useMetaSafe(): Record<string, MetaItem> | undefined;
39
+ /**
40
+ * Hook to access the render context's metadata.
41
+ *
42
+ * @returns The Powerlines context.
43
+ */
44
+ declare function useMeta(): Record<string, MetaItem>;
45
+ declare type __ΩMetaItem = any[];
46
+ //#endregion
47
+ export { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe };
48
+ //# sourceMappingURL=meta.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.cts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA;AAAA"}
@@ -0,0 +1,48 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { StoragePreset } from "powerlines";
3
+
4
+ //#region src/core/contexts/meta.d.ts
5
+ interface MetaItem {
6
+ /**
7
+ * The kind of metadata item.
8
+ */
9
+ kind?: "builtin" | "entry" | string;
10
+ /**
11
+ * Whether to skip formatting for this output.
12
+ */
13
+ skipFormat?: boolean;
14
+ /**
15
+ * The storage preset or adapter name for the output files.
16
+ *
17
+ * @remarks
18
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
19
+ */
20
+ storage?: StoragePreset | string;
21
+ [key: string]: any;
22
+ }
23
+ /**
24
+ * The Powerlines meta context used to determine metadata of files generated during rendering.
25
+ */
26
+ declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
27
+ /**
28
+ * Hook to access the Powerlines Context.
29
+ *
30
+ * @returns The Context.
31
+ */
32
+ declare function useMetaContext(): Record<string, MetaItem> | undefined;
33
+ /**
34
+ * Hook to safely access the render context's metadata.
35
+ *
36
+ * @returns The Powerlines context or undefined if not set.
37
+ */
38
+ declare function useMetaSafe(): Record<string, MetaItem> | undefined;
39
+ /**
40
+ * Hook to access the render context's metadata.
41
+ *
42
+ * @returns The Powerlines context.
43
+ */
44
+ declare function useMeta(): Record<string, MetaItem>;
45
+ declare type __ΩMetaItem = any[];
46
+ //#endregion
47
+ export { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe };
48
+ //# sourceMappingURL=meta.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.mts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA;AAAA"}
@@ -0,0 +1,37 @@
1
+ import { createNamedContext, useContext } from "@alloy-js/core";
2
+
3
+ //#region src/core/contexts/meta.ts
4
+ /**
5
+ * The Powerlines meta context used to determine metadata of files generated during rendering.
6
+ */
7
+ const MetaContext = createNamedContext("Meta");
8
+ /**
9
+ * Hook to access the Powerlines Context.
10
+ *
11
+ * @returns The Context.
12
+ */
13
+ function useMetaContext() {
14
+ return useContext(MetaContext);
15
+ }
16
+ /**
17
+ * Hook to safely access the render context's metadata.
18
+ *
19
+ * @returns The Powerlines context or undefined if not set.
20
+ */
21
+ function useMetaSafe() {
22
+ return useMetaContext() ?? void 0;
23
+ }
24
+ /**
25
+ * Hook to access the render context's metadata.
26
+ *
27
+ * @returns The Powerlines context.
28
+ */
29
+ function useMeta() {
30
+ const meta = useMetaSafe();
31
+ if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
32
+ return meta;
33
+ }
34
+
35
+ //#endregion
36
+ export { MetaContext, useMeta, useMetaContext, useMetaSafe };
37
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.mjs","names":[],"sources":["../../../src/core/contexts/meta.ts"],"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 ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { StoragePreset } from \"powerlines\";\n\nexport interface MetaItem {\n /**\n * The kind of metadata item.\n */\n kind?: \"builtin\" | \"entry\" | string;\n\n /**\n * Whether to skip formatting for this output.\n */\n skipFormat?: boolean;\n\n /**\n * The storage preset or adapter name 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 | string;\n\n [key: string]: any;\n}\n\n/**\n * The Powerlines meta context used to determine metadata of files generated during rendering.\n */\nexport const MetaContext: ComponentContext<Record<string, MetaItem>> =\n createNamedContext<Record<string, MetaItem>>(\"Meta\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMetaContext(): Record<string, MetaItem> | undefined {\n return useContext(MetaContext);\n}\n\n/**\n * Hook to safely access the render context's metadata.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function useMetaSafe(): Record<string, MetaItem> | undefined {\n const meta = useMetaContext();\n\n return meta ?? undefined;\n}\n\n/**\n * Hook to access the render context's metadata.\n *\n * @returns The Powerlines context.\n */\nexport function useMeta(): Record<string, MetaItem> {\n const meta = useMetaSafe();\n if (!meta) {\n throw new Error(\n \"Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return meta;\n}\n"],"mappings":";;;;;;AAkDA,MAAa,cACX,mBAA6C,OAAO;;;;;;AAOtD,SAAgB,iBAAuD;AACrE,QAAO,WAAW,YAAY;;;;;;;AAQhC,SAAgB,cAAoD;AAGlE,QAFa,gBAAgB,IAEd;;;;;;;AAQjB,SAAgB,UAAoC;CAClD,MAAM,OAAO,aAAa;AAC1B,KAAI,CAAC,KACH,OAAM,IAAI,MACR,oNACD;AAGH,QAAO"}
@@ -0,0 +1,69 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ let _alloy_js_core = require("@alloy-js/core");
4
+
5
+ //#region src/core/contexts/reflection.ts
6
+ /**
7
+ * The reflection class context used in template rendering.
8
+ */
9
+ const ReflectionClassContext = (0, _alloy_js_core.createContext)();
10
+ /**
11
+ * Hook to access the Reflection context.
12
+ *
13
+ * @returns A reactive version of the current reflection.
14
+ */
15
+ function useReflectionClass() {
16
+ const context = (0, _alloy_js_core.useContext)(ReflectionClassContext);
17
+ if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
18
+ return context;
19
+ }
20
+ /**
21
+ * The reflection property context used in template rendering.
22
+ */
23
+ const ReflectionPropertyContext = (0, _alloy_js_core.createNamedContext)("ReflectionProperty");
24
+ /**
25
+ * Hook to access the Reflection Property context.
26
+ *
27
+ * @returns A reactive version of the current reflection.
28
+ */
29
+ function useReflectionProperty() {
30
+ const context = (0, _alloy_js_core.useContext)(ReflectionPropertyContext);
31
+ if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
32
+ return context;
33
+ }
34
+ /**
35
+ * The reflection method context used in template rendering.
36
+ */
37
+ const ReflectionMethodContext = (0, _alloy_js_core.createNamedContext)("ReflectionMethod");
38
+ /**
39
+ * Hook to access the Reflection Method context.
40
+ *
41
+ * @returns A reactive version of the current reflection.
42
+ */
43
+ function useReflectionMethod() {
44
+ const context = (0, _alloy_js_core.useContext)(ReflectionMethodContext);
45
+ if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
46
+ return context;
47
+ }
48
+ /**
49
+ * The reflection parameter context used in template rendering.
50
+ */
51
+ const ReflectionParameterContext = (0, _alloy_js_core.createNamedContext)("ReflectionParameter");
52
+ /**
53
+ * Hook to access the Reflection Parameter context.
54
+ *
55
+ * @returns A reactive version of the current reflection.
56
+ */
57
+ function useReflectionParameter() {
58
+ return (0, _alloy_js_core.useContext)(ReflectionParameterContext);
59
+ }
60
+
61
+ //#endregion
62
+ exports.ReflectionClassContext = ReflectionClassContext;
63
+ exports.ReflectionMethodContext = ReflectionMethodContext;
64
+ exports.ReflectionParameterContext = ReflectionParameterContext;
65
+ exports.ReflectionPropertyContext = ReflectionPropertyContext;
66
+ exports.useReflectionClass = useReflectionClass;
67
+ exports.useReflectionMethod = useReflectionMethod;
68
+ exports.useReflectionParameter = useReflectionParameter;
69
+ exports.useReflectionProperty = useReflectionProperty;
@@ -0,0 +1,53 @@
1
+ import { ReflectionOverrideInterface } from "../../types/components.cjs";
2
+ import { ComponentContext } from "@alloy-js/core";
3
+ import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+
5
+ //#region src/core/contexts/reflection.d.ts
6
+ interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
7
+ reflection: ReflectionClass<T>;
8
+ override?: ReflectionOverrideInterface<T>;
9
+ }
10
+ /**
11
+ * The reflection class context used in template rendering.
12
+ */
13
+ declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
14
+ /**
15
+ * Hook to access the Reflection context.
16
+ *
17
+ * @returns A reactive version of the current reflection.
18
+ */
19
+ declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
20
+ /**
21
+ * The reflection property context used in template rendering.
22
+ */
23
+ declare const ReflectionPropertyContext: ComponentContext<ReflectionProperty>;
24
+ /**
25
+ * Hook to access the Reflection Property context.
26
+ *
27
+ * @returns A reactive version of the current reflection.
28
+ */
29
+ declare function useReflectionProperty(): ReflectionProperty;
30
+ /**
31
+ * The reflection method context used in template rendering.
32
+ */
33
+ declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
34
+ /**
35
+ * Hook to access the Reflection Method context.
36
+ *
37
+ * @returns A reactive version of the current reflection.
38
+ */
39
+ declare function useReflectionMethod(): ReflectionMethod;
40
+ /**
41
+ * The reflection parameter context used in template rendering.
42
+ */
43
+ declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
44
+ /**
45
+ * Hook to access the Reflection Parameter context.
46
+ *
47
+ * @returns A reactive version of the current reflection.
48
+ */
49
+ declare function useReflectionParameter(): ReflectionParameter;
50
+ declare type __ΩReflectionClassContextInterface = any[];
51
+ //#endregion
52
+ export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
53
+ //# sourceMappingURL=reflection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;;;;cAkBxC,yBAAA,EAA2B,gBAAA,CAAiB,kBAAA;;;;;;iBAQzC,qBAAA,CAAA,GAAqB,kBAAA;AApCrC;;;AAAA,cAmDa,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;AA1CvD;;;;iBAkDgB,mBAAA,CAAA,GAAmB,gBAAA;;;;cAetB,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA;AAAA"}
@@ -0,0 +1,53 @@
1
+ import { ReflectionOverrideInterface } from "../../types/components.mjs";
2
+ import { ComponentContext } from "@alloy-js/core";
3
+ import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+
5
+ //#region src/core/contexts/reflection.d.ts
6
+ interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
7
+ reflection: ReflectionClass<T>;
8
+ override?: ReflectionOverrideInterface<T>;
9
+ }
10
+ /**
11
+ * The reflection class context used in template rendering.
12
+ */
13
+ declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
14
+ /**
15
+ * Hook to access the Reflection context.
16
+ *
17
+ * @returns A reactive version of the current reflection.
18
+ */
19
+ declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
20
+ /**
21
+ * The reflection property context used in template rendering.
22
+ */
23
+ declare const ReflectionPropertyContext: ComponentContext<ReflectionProperty>;
24
+ /**
25
+ * Hook to access the Reflection Property context.
26
+ *
27
+ * @returns A reactive version of the current reflection.
28
+ */
29
+ declare function useReflectionProperty(): ReflectionProperty;
30
+ /**
31
+ * The reflection method context used in template rendering.
32
+ */
33
+ declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
34
+ /**
35
+ * Hook to access the Reflection Method context.
36
+ *
37
+ * @returns A reactive version of the current reflection.
38
+ */
39
+ declare function useReflectionMethod(): ReflectionMethod;
40
+ /**
41
+ * The reflection parameter context used in template rendering.
42
+ */
43
+ declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
44
+ /**
45
+ * Hook to access the Reflection Parameter context.
46
+ *
47
+ * @returns A reactive version of the current reflection.
48
+ */
49
+ declare function useReflectionParameter(): ReflectionParameter;
50
+ declare type __ΩReflectionClassContextInterface = any[];
51
+ //#endregion
52
+ export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
53
+ //# sourceMappingURL=reflection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflection.d.mts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;;;;cAkBxC,yBAAA,EAA2B,gBAAA,CAAiB,kBAAA;;;;;;iBAQzC,qBAAA,CAAA,GAAqB,kBAAA;AApCrC;;;AAAA,cAmDa,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;AA1CvD;;;;iBAkDgB,mBAAA,CAAA,GAAmB,gBAAA;;;;cAetB,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA;AAAA"}
@@ -0,0 +1,61 @@
1
+ import { createContext, createNamedContext, useContext } from "@alloy-js/core";
2
+
3
+ //#region src/core/contexts/reflection.ts
4
+ /**
5
+ * The reflection class context used in template rendering.
6
+ */
7
+ const ReflectionClassContext = createContext();
8
+ /**
9
+ * Hook to access the Reflection context.
10
+ *
11
+ * @returns A reactive version of the current reflection.
12
+ */
13
+ function useReflectionClass() {
14
+ const context = useContext(ReflectionClassContext);
15
+ if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
16
+ return context;
17
+ }
18
+ /**
19
+ * The reflection property context used in template rendering.
20
+ */
21
+ const ReflectionPropertyContext = createNamedContext("ReflectionProperty");
22
+ /**
23
+ * Hook to access the Reflection Property context.
24
+ *
25
+ * @returns A reactive version of the current reflection.
26
+ */
27
+ function useReflectionProperty() {
28
+ const context = useContext(ReflectionPropertyContext);
29
+ if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
30
+ return context;
31
+ }
32
+ /**
33
+ * The reflection method context used in template rendering.
34
+ */
35
+ const ReflectionMethodContext = createNamedContext("ReflectionMethod");
36
+ /**
37
+ * Hook to access the Reflection Method context.
38
+ *
39
+ * @returns A reactive version of the current reflection.
40
+ */
41
+ function useReflectionMethod() {
42
+ const context = useContext(ReflectionMethodContext);
43
+ if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
44
+ return context;
45
+ }
46
+ /**
47
+ * The reflection parameter context used in template rendering.
48
+ */
49
+ const ReflectionParameterContext = createNamedContext("ReflectionParameter");
50
+ /**
51
+ * Hook to access the Reflection Parameter context.
52
+ *
53
+ * @returns A reactive version of the current reflection.
54
+ */
55
+ function useReflectionParameter() {
56
+ return useContext(ReflectionParameterContext);
57
+ }
58
+
59
+ //#endregion
60
+ export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
61
+ //# sourceMappingURL=reflection.mjs.map