@powerlines/plugin-alloy 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/builtin-file-CXkreb3b.mjs +43 -0
  2. package/dist/builtin-file-D0xcKRt6.cjs +49 -0
  3. package/dist/builtin-file-D5YA-OFP.d.cts +34 -0
  4. package/dist/builtin-file-Df3B4vGB.d.mts +34 -0
  5. package/dist/capnp-6EjloHj4.mjs +265 -0
  6. package/dist/capnp-BHeTs4Ea.d.mts +86 -0
  7. package/dist/capnp-CirEkAHB.d.cts +86 -0
  8. package/dist/capnp-DOzEf2mj.cjs +362 -0
  9. package/dist/{_virtual/rolldown_runtime.cjs → chunk-BwyOHTjC.cjs} +12 -2
  10. package/dist/components-BrkXdHq-.d.mts +141 -0
  11. package/dist/components-CH68f_ve.mjs +1 -0
  12. package/dist/components-CO0xjM8H.mjs +1 -0
  13. package/dist/components-CnI3Y57d.mjs +1 -0
  14. package/dist/components-Cvpo9IEL.cjs +0 -0
  15. package/dist/components-DTkri-mp.cjs +0 -0
  16. package/dist/components-DkVeQ5Yn.d.cts +141 -0
  17. package/dist/components-Gg416Czx.cjs +0 -0
  18. package/dist/components-ZbItRNLr.cjs +0 -0
  19. package/dist/components-vTvc6Xgc.mjs +1 -0
  20. package/dist/context-B1Z2ZRAI.d.cts +32 -0
  21. package/dist/context-BwQLwanm.d.mts +1680 -0
  22. package/dist/context-CWt70HA3.d.cts +1680 -0
  23. package/dist/context-DkLnFNZm.cjs +60 -0
  24. package/dist/context-eP3fitqj.mjs +36 -0
  25. package/dist/context-x-0aNytc.d.mts +32 -0
  26. package/dist/contexts-BtxvYUPj.cjs +0 -0
  27. package/dist/contexts-Dy4nfIoL.mjs +1 -0
  28. package/dist/contexts-DzdhIC7G.cjs +0 -0
  29. package/dist/contexts-Q1YIygoz.mjs +1 -0
  30. package/dist/core/components/index.cjs +8 -6
  31. package/dist/core/components/index.d.cts +6 -3
  32. package/dist/core/components/index.d.mts +6 -3
  33. package/dist/core/components/index.mjs +5 -3
  34. package/dist/core/components/output.cjs +3 -39
  35. package/dist/core/components/output.d.cts +2 -17
  36. package/dist/core/components/output.d.mts +2 -17
  37. package/dist/core/components/output.mjs +2 -37
  38. package/dist/core/components/single-line-comment.cjs +2 -21
  39. package/dist/core/components/single-line-comment.d.cts +3 -21
  40. package/dist/core/components/single-line-comment.d.mts +3 -21
  41. package/dist/core/components/single-line-comment.mjs +1 -19
  42. package/dist/core/components/source-file.cjs +2 -57
  43. package/dist/core/components/source-file.d.cts +3 -30
  44. package/dist/core/components/source-file.d.mts +3 -30
  45. package/dist/core/components/source-file.mjs +1 -54
  46. package/dist/core/contexts/context.cjs +5 -39
  47. package/dist/core/contexts/context.d.cts +2 -31
  48. package/dist/core/contexts/context.d.mts +2 -31
  49. package/dist/core/contexts/context.mjs +1 -34
  50. package/dist/core/contexts/index.cjs +15 -14
  51. package/dist/core/contexts/index.d.cts +5 -2
  52. package/dist/core/contexts/index.d.mts +5 -2
  53. package/dist/core/contexts/index.mjs +3 -2
  54. package/dist/core/contexts/reflection.cjs +9 -67
  55. package/dist/core/contexts/reflection.d.cts +3 -50
  56. package/dist/core/contexts/reflection.d.mts +3 -50
  57. package/dist/core/contexts/reflection.mjs +1 -58
  58. package/dist/core/index.cjs +22 -22
  59. package/dist/core/index.d.cts +9 -7
  60. package/dist/core/index.d.mts +9 -7
  61. package/dist/core/index.mjs +7 -7
  62. package/dist/create-builtin-CtBhQRxS.d.mts +15 -0
  63. package/dist/create-builtin-DgYGwEYD.cjs +24 -0
  64. package/dist/create-builtin-Dug1rcMQ.mjs +18 -0
  65. package/dist/create-builtin-SArMbh0-.d.cts +15 -0
  66. package/dist/dynamic-import-statement-3Xp_1L50.d.cts +32 -0
  67. package/dist/dynamic-import-statement-BFl4j9Ex.cjs +30 -0
  68. package/dist/dynamic-import-statement-BjiwPuJ3.d.mts +32 -0
  69. package/dist/dynamic-import-statement-DYl1f5Mj.mjs +24 -0
  70. package/dist/entry-file-CG9ZnV39.d.mts +27 -0
  71. package/dist/entry-file-CTYBU7Lg.mjs +37 -0
  72. package/dist/entry-file-DIhtOJXO.d.cts +27 -0
  73. package/dist/entry-file-l3ZhaFTI.cjs +44 -0
  74. package/dist/helpers/capnp.cjs +19 -274
  75. package/dist/helpers/capnp.d.cts +2 -85
  76. package/dist/helpers/capnp.d.mts +2 -85
  77. package/dist/helpers/capnp.mjs +2 -255
  78. package/dist/helpers/create-builtin.cjs +2 -18
  79. package/dist/helpers/create-builtin.d.cts +1 -14
  80. package/dist/helpers/create-builtin.d.mts +1 -14
  81. package/dist/helpers/create-builtin.mjs +1 -16
  82. package/dist/helpers/index.cjs +24 -23
  83. package/dist/helpers/index.d.cts +5 -4
  84. package/dist/helpers/index.d.mts +5 -4
  85. package/dist/helpers/index.mjs +5 -4
  86. package/dist/helpers/refkey.cjs +2 -15
  87. package/dist/helpers/refkey.d.cts +1 -12
  88. package/dist/helpers/refkey.d.mts +1 -12
  89. package/dist/helpers/refkey.mjs +1 -13
  90. package/dist/helpers/typescript.cjs +3 -45
  91. package/dist/helpers/typescript.d.cts +1 -22
  92. package/dist/helpers/typescript.d.mts +1 -22
  93. package/dist/helpers/typescript.mjs +2 -43
  94. package/dist/index-Blaks7l8.d.cts +1 -0
  95. package/dist/index-CuheJfs-.d.mts +1 -0
  96. package/dist/index-CwSIy_W-.d.cts +1 -0
  97. package/dist/index-D7UbuJwP.d.mts +1 -0
  98. package/dist/index-D9XihFV1.d.mts +1 -0
  99. package/dist/index-DdxxIAKU.d.cts +1 -0
  100. package/dist/index-DrK1_jKY.d.mts +1 -0
  101. package/dist/index-DrZ2Dh-H.d.cts +1 -0
  102. package/dist/index-DztUdPP_.d.mts +1 -0
  103. package/dist/index-lQ_hGQ08.d.cts +1 -0
  104. package/dist/index.cjs +14 -9
  105. package/dist/index.d.cts +2 -2
  106. package/dist/index.d.mts +2 -2
  107. package/dist/index.mjs +36 -2
  108. package/dist/markdown/components/index.cjs +12 -7
  109. package/dist/markdown/components/index.d.cts +7 -2
  110. package/dist/markdown/components/index.d.mts +7 -2
  111. package/dist/markdown/components/index.mjs +7 -2
  112. package/dist/markdown/components/markdown-file.cjs +6 -117
  113. package/dist/markdown/components/markdown-file.d.cts +4 -22
  114. package/dist/markdown/components/markdown-file.d.mts +4 -22
  115. package/dist/markdown/components/markdown-file.mjs +4 -114
  116. package/dist/markdown/components/markdown-table.cjs +5 -100
  117. package/dist/markdown/components/markdown-table.d.cts +4 -26
  118. package/dist/markdown/components/markdown-table.d.mts +4 -26
  119. package/dist/markdown/components/markdown-table.mjs +2 -96
  120. package/dist/markdown/contexts/index.cjs +6 -5
  121. package/dist/markdown/contexts/index.d.cts +2 -1
  122. package/dist/markdown/contexts/index.d.mts +2 -1
  123. package/dist/markdown/contexts/index.mjs +2 -1
  124. package/dist/markdown/contexts/markdown-table.cjs +5 -36
  125. package/dist/markdown/contexts/markdown-table.d.cts +1 -36
  126. package/dist/markdown/contexts/markdown-table.d.mts +1 -36
  127. package/dist/markdown/contexts/markdown-table.mjs +1 -31
  128. package/dist/markdown/index.cjs +17 -14
  129. package/dist/markdown/index.d.cts +8 -5
  130. package/dist/markdown/index.d.mts +8 -5
  131. package/dist/markdown/index.mjs +8 -5
  132. package/dist/markdown-file-B8nepeQh.d.cts +23 -0
  133. package/dist/markdown-file-C7S89Ax6.d.mts +23 -0
  134. package/dist/markdown-file-CTMTrgdr.mjs +116 -0
  135. package/dist/markdown-file-GXj9nWQs.cjs +128 -0
  136. package/dist/markdown-table-AO9Jtw-o.mjs +98 -0
  137. package/dist/markdown-table-Biapn9k9.cjs +57 -0
  138. package/dist/markdown-table-BsrBoQZQ.d.cts +27 -0
  139. package/dist/markdown-table-CBiEJXMo.d.mts +27 -0
  140. package/dist/markdown-table-DFnnh_px.d.cts +37 -0
  141. package/dist/markdown-table-DKL6g91k.d.mts +37 -0
  142. package/dist/markdown-table-DaYAMMk6.mjs +33 -0
  143. package/dist/markdown-table-d1cy0JP3.cjs +116 -0
  144. package/dist/output-Bjz4m-uI.d.cts +18 -0
  145. package/dist/output-C_BQEAMU.d.mts +18 -0
  146. package/dist/output-CiQCsyui.cjs +45 -0
  147. package/dist/output-eQ8RcTrP.mjs +39 -0
  148. package/dist/plugin-85Hf9k78.mjs +1 -0
  149. package/dist/plugin-CofWgH_d.cjs +0 -0
  150. package/dist/plugin-DcrJBDQ2.d.mts +39 -0
  151. package/dist/plugin-K4ViA72J.d.cts +39 -0
  152. package/dist/record-expression-B0NGcmBj.mjs +11 -0
  153. package/dist/record-expression-P1BTu_7B.d.mts +12 -0
  154. package/dist/record-expression-j-3eBufn.cjs +17 -0
  155. package/dist/record-expression-rZuoLQWG.d.cts +12 -0
  156. package/dist/refkey-BRtVxqGW.d.mts +13 -0
  157. package/dist/refkey-BUzulmmj.cjs +21 -0
  158. package/dist/refkey-CSq-Ftvf.mjs +15 -0
  159. package/dist/refkey-DpAkQ3Cu.d.cts +13 -0
  160. package/dist/reflection-B9zOZEdi.d.mts +51 -0
  161. package/dist/reflection-BYeP2t8p.d.cts +51 -0
  162. package/dist/reflection-CKhynTvI.cjs +108 -0
  163. package/dist/reflection-srixNcX2.mjs +60 -0
  164. package/dist/single-line-comment-C9Fz5mkM.mjs +21 -0
  165. package/dist/single-line-comment-D6LszIjV.d.cts +22 -0
  166. package/dist/single-line-comment-DSz_BbMx.d.mts +22 -0
  167. package/dist/single-line-comment-_ZglDv1k.cjs +27 -0
  168. package/dist/source-file-B8OyOWg8.d.mts +31 -0
  169. package/dist/source-file-CJeMh4On.d.cts +31 -0
  170. package/dist/source-file-DKnFKRGJ.cjs +63 -0
  171. package/dist/source-file-Db1Wu_yq.mjs +56 -0
  172. package/dist/tsdoc-BT-2pTD3.d.mts +152 -0
  173. package/dist/tsdoc-BpykLfnB.cjs +576 -0
  174. package/dist/tsdoc-CWCdJ1Uj.mjs +456 -0
  175. package/dist/tsdoc-C_2VzSk_.d.cts +152 -0
  176. package/dist/tsdoc-reflection-BIWxEkBI.mjs +170 -0
  177. package/dist/tsdoc-reflection-BfwShG2g.d.cts +18 -0
  178. package/dist/tsdoc-reflection-Dr_Nf1ht.cjs +188 -0
  179. package/dist/tsdoc-reflection-auck1207.d.mts +18 -0
  180. package/dist/types/components.cjs +1 -0
  181. package/dist/types/components.d.cts +2 -141
  182. package/dist/types/components.d.mts +2 -141
  183. package/dist/types/components.mjs +2 -0
  184. package/dist/types/index.cjs +2 -0
  185. package/dist/types/index.d.cts +3 -2
  186. package/dist/types/index.d.mts +3 -2
  187. package/dist/types/index.mjs +3 -0
  188. package/dist/types/plugin.cjs +1 -0
  189. package/dist/types/plugin.d.cts +2 -40
  190. package/dist/types/plugin.d.mts +2 -40
  191. package/dist/types/plugin.mjs +2 -0
  192. package/dist/typescript/components/builtin-file.cjs +8 -43
  193. package/dist/typescript/components/builtin-file.d.cts +6 -33
  194. package/dist/typescript/components/builtin-file.d.mts +6 -33
  195. package/dist/typescript/components/builtin-file.mjs +7 -41
  196. package/dist/typescript/components/dynamic-import-statement.cjs +2 -24
  197. package/dist/typescript/components/dynamic-import-statement.d.cts +1 -31
  198. package/dist/typescript/components/dynamic-import-statement.d.mts +1 -31
  199. package/dist/typescript/components/dynamic-import-statement.mjs +1 -22
  200. package/dist/typescript/components/entry-file.cjs +6 -38
  201. package/dist/typescript/components/entry-file.d.cts +5 -26
  202. package/dist/typescript/components/entry-file.d.mts +5 -26
  203. package/dist/typescript/components/entry-file.mjs +5 -35
  204. package/dist/typescript/components/index.cjs +49 -43
  205. package/dist/typescript/components/index.d.cts +13 -9
  206. package/dist/typescript/components/index.d.mts +13 -9
  207. package/dist/typescript/components/index.mjs +15 -9
  208. package/dist/typescript/components/record-expression.cjs +2 -11
  209. package/dist/typescript/components/record-expression.d.cts +1 -11
  210. package/dist/typescript/components/record-expression.d.mts +1 -11
  211. package/dist/typescript/components/record-expression.mjs +1 -9
  212. package/dist/typescript/components/tsdoc-reflection.cjs +8 -172
  213. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -17
  214. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -17
  215. package/dist/typescript/components/tsdoc-reflection.mjs +5 -168
  216. package/dist/typescript/components/tsdoc.cjs +23 -475
  217. package/dist/typescript/components/tsdoc.d.cts +3 -151
  218. package/dist/typescript/components/tsdoc.d.mts +3 -151
  219. package/dist/typescript/components/tsdoc.mjs +3 -454
  220. package/dist/typescript/components/typescript-file.cjs +7 -192
  221. package/dist/typescript/components/typescript-file.d.cts +4 -46
  222. package/dist/typescript/components/typescript-file.d.mts +4 -46
  223. package/dist/typescript/components/typescript-file.mjs +4 -188
  224. package/dist/typescript/components/typescript-interface.cjs +8 -67
  225. package/dist/typescript/components/typescript-interface.d.cts +3 -23
  226. package/dist/typescript/components/typescript-interface.d.mts +3 -23
  227. package/dist/typescript/components/typescript-interface.mjs +6 -64
  228. package/dist/typescript/components/typescript-object.cjs +8 -124
  229. package/dist/typescript/components/typescript-object.d.cts +3 -24
  230. package/dist/typescript/components/typescript-object.d.mts +3 -24
  231. package/dist/typescript/components/typescript-object.mjs +6 -121
  232. package/dist/typescript/index.cjs +49 -44
  233. package/dist/typescript/index.d.cts +13 -10
  234. package/dist/typescript/index.d.mts +13 -10
  235. package/dist/typescript/index.mjs +15 -10
  236. package/dist/typescript-BIiCTw8m.d.mts +23 -0
  237. package/dist/typescript-NNuOlVjo.mjs +45 -0
  238. package/dist/typescript-VTSR_IQG.cjs +51 -0
  239. package/dist/typescript-YczHz9BQ.d.cts +23 -0
  240. package/dist/typescript-file-CCNXO3vl.d.mts +47 -0
  241. package/dist/typescript-file-DLbLtnFd.cjs +208 -0
  242. package/dist/typescript-file-DMYwIorq.d.cts +47 -0
  243. package/dist/typescript-file-hcvsHaDV.mjs +190 -0
  244. package/dist/typescript-interface-BM02EN5E.mjs +66 -0
  245. package/dist/typescript-interface-Br3QYNVt.d.mts +24 -0
  246. package/dist/typescript-interface-cuXGu4c4.cjs +78 -0
  247. package/dist/typescript-interface-g2r0ehxD.d.cts +24 -0
  248. package/dist/typescript-object-B3H8GN6V.d.cts +25 -0
  249. package/dist/typescript-object-Bk0AnSSQ.mjs +123 -0
  250. package/dist/typescript-object-Bsfy6ZF0.cjs +135 -0
  251. package/dist/typescript-object-CSAb1n2X.d.mts +25 -0
  252. package/dist/{deepkit/src/utilities.mjs → utilities-C6eipB1q.mjs} +1 -1
  253. package/dist/{deepkit/src/utilities.cjs → utilities-CiKb35hs.cjs} +25 -5
  254. package/dist/vendor/index.cjs +630 -15
  255. package/package.json +2 -2
  256. package/dist/_virtual/rolldown_runtime.mjs +0 -29
  257. package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -13
  258. package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -12
  259. package/dist/powerlines/src/types/babel.d.mts +0 -2
  260. package/dist/powerlines/src/types/build.d.cts +0 -145
  261. package/dist/powerlines/src/types/build.d.mts +0 -145
  262. package/dist/powerlines/src/types/commands.d.cts +0 -8
  263. package/dist/powerlines/src/types/commands.d.mts +0 -9
  264. package/dist/powerlines/src/types/config.d.cts +0 -369
  265. package/dist/powerlines/src/types/config.d.mts +0 -369
  266. package/dist/powerlines/src/types/context.d.cts +0 -362
  267. package/dist/powerlines/src/types/context.d.mts +0 -364
  268. package/dist/powerlines/src/types/fs.d.cts +0 -458
  269. package/dist/powerlines/src/types/fs.d.mts +0 -458
  270. package/dist/powerlines/src/types/hooks.d.mts +0 -2
  271. package/dist/powerlines/src/types/plugin.d.cts +0 -231
  272. package/dist/powerlines/src/types/plugin.d.mts +0 -231
  273. package/dist/powerlines/src/types/resolved.d.cts +0 -81
  274. package/dist/powerlines/src/types/resolved.d.mts +0 -81
  275. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  276. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  277. package/dist/vendor/index.mjs +0 -11
@@ -1,13 +1,2 @@
1
- import { Refkey } from "@powerlines/plugin-alloy/vendor";
2
-
3
- //#region src/helpers/refkey.d.ts
4
-
5
- /**
6
- * Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
7
- *
8
- * @remarks
9
- * Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
10
- */
11
- declare function refkey(...args: unknown[]): Refkey;
12
- //#endregion
1
+ import { t as refkey } from "../refkey-DpAkQ3Cu.cjs";
13
2
  export { refkey };
@@ -1,13 +1,2 @@
1
- import { Refkey } from "@powerlines/plugin-alloy/vendor";
2
-
3
- //#region src/helpers/refkey.d.ts
4
-
5
- /**
6
- * Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
7
- *
8
- * @remarks
9
- * Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
10
- */
11
- declare function refkey(...args: unknown[]): Refkey;
12
- //#endregion
1
+ import { t as refkey } from "../refkey-BRtVxqGW.mjs";
13
2
  export { refkey };
@@ -1,15 +1,3 @@
1
- import { refkey as refkey$1 } from "@powerlines/plugin-alloy/vendor";
1
+ import { t as refkey } from "../refkey-CSq-Ftvf.mjs";
2
2
 
3
- //#region src/helpers/refkey.ts
4
- /**
5
- * Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
6
- *
7
- * @remarks
8
- * Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
9
- */
10
- function refkey(...args) {
11
- return refkey$1("powerlines", ...args);
12
- }
13
-
14
- //#endregion
15
3
  export { refkey };
@@ -1,46 +1,4 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_utilities = require('../deepkit/src/utilities.cjs');
3
- let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
4
- let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
5
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
1
+ require('../utilities-CiKb35hs.cjs');
2
+ const require_typescript = require('../typescript-VTSR_IQG.cjs');
6
3
 
7
- //#region src/helpers/typescript.ts
8
- /**
9
- * Generates a TypeScript object for the given reflection class.
10
- *
11
- * @param reflection - The reflection class to generate the object for.
12
- * @param options - Options for generating the object.
13
- * @returns A string containing the TypeScript object definition.
14
- */
15
- function generateTypeScriptObject(reflection, options = {}) {
16
- if (!reflection) return "";
17
- return `
18
- /**
19
- * ${reflection.getDescription() || `${(0, __stryke_string_format_title_case.titleCase)(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
20
- */
21
- export const ${(0, __stryke_string_format_camel_case.camelCase)(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
22
- ${reflection.getProperties().filter((item) => !item.isIgnored() && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
23
- if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
24
- return ret;
25
- }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
26
- * ${item.getDescription() || item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}
27
- *
28
- * @title ${item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}${item.getAlias().length ? `
29
- ${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
30
- * @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
31
- ${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
32
- * @internal` : ""}${item.isReadonly() ? `
33
- * @readonly` : ""}${item.isIgnored() ? `
34
- * @ignored` : ""}${item.isHidden() ? `
35
- * @hidden` : ""}
36
- */
37
- ${item.getNameAsString()}: ${require_utilities.stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
38
- if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
39
- return ret;
40
- }, void 0) ?? item.getDefaultValue())}`).join(", \n")}
41
- };
42
- `;
43
- }
44
-
45
- //#endregion
46
- exports.generateTypeScriptObject = generateTypeScriptObject;
4
+ exports.generateTypeScriptObject = require_typescript.generateTypeScriptObject;
@@ -1,23 +1,2 @@
1
- //#region src/helpers/typescript.d.ts
2
- interface GenerateTypeScriptInterfaceOptions<T> {
3
- overrideName?: string;
4
- overrideExtends?: string | false;
5
- defaultValues?: Partial<T>;
6
- }
7
- interface GenerateTypeScriptObjectOptions<T> {
8
- overrideName?: string;
9
- overrideExtends?: string | false;
10
- defaultValues?: Partial<T>;
11
- }
12
- /**
13
- * Generates a TypeScript object for the given reflection class.
14
- *
15
- * @param reflection - The reflection class to generate the object for.
16
- * @param options - Options for generating the object.
17
- * @returns A string containing the TypeScript object definition.
18
- */
19
- declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
20
- declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
21
- declare type __ΩGenerateTypeScriptObjectOptions = any[];
22
- //#endregion
1
+ import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-YczHz9BQ.cjs";
23
2
  export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
@@ -1,23 +1,2 @@
1
- //#region src/helpers/typescript.d.ts
2
- interface GenerateTypeScriptInterfaceOptions<T> {
3
- overrideName?: string;
4
- overrideExtends?: string | false;
5
- defaultValues?: Partial<T>;
6
- }
7
- interface GenerateTypeScriptObjectOptions<T> {
8
- overrideName?: string;
9
- overrideExtends?: string | false;
10
- defaultValues?: Partial<T>;
11
- }
12
- /**
13
- * Generates a TypeScript object for the given reflection class.
14
- *
15
- * @param reflection - The reflection class to generate the object for.
16
- * @param options - Options for generating the object.
17
- * @returns A string containing the TypeScript object definition.
18
- */
19
- declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
20
- declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
21
- declare type __ΩGenerateTypeScriptObjectOptions = any[];
22
- //#endregion
1
+ import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-BIiCTw8m.mjs";
23
2
  export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
@@ -1,45 +1,4 @@
1
- import { stringifyValue } from "../deepkit/src/utilities.mjs";
2
- import { isUndefined } from "@stryke/type-checks/is-undefined";
3
- import { camelCase } from "@stryke/string-format/camel-case";
4
- import { titleCase } from "@stryke/string-format/title-case";
1
+ import "../utilities-C6eipB1q.mjs";
2
+ import { t as generateTypeScriptObject } from "../typescript-NNuOlVjo.mjs";
5
3
 
6
- //#region src/helpers/typescript.ts
7
- /**
8
- * Generates a TypeScript object for the given reflection class.
9
- *
10
- * @param reflection - The reflection class to generate the object for.
11
- * @param options - Options for generating the object.
12
- * @returns A string containing the TypeScript object definition.
13
- */
14
- function generateTypeScriptObject(reflection, options = {}) {
15
- if (!reflection) return "";
16
- return `
17
- /**
18
- * ${reflection.getDescription() || `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
19
- */
20
- export const ${camelCase(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
21
- ${reflection.getProperties().filter((item) => !item.isIgnored() && !isUndefined(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
22
- if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
23
- return ret;
24
- }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
25
- * ${item.getDescription() || item.getTitle() || titleCase(item.getNameAsString())}
26
- *
27
- * @title ${item.getTitle() || titleCase(item.getNameAsString())}${item.getAlias().length ? `
28
- ${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
29
- * @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
30
- ${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
31
- * @internal` : ""}${item.isReadonly() ? `
32
- * @readonly` : ""}${item.isIgnored() ? `
33
- * @ignored` : ""}${item.isHidden() ? `
34
- * @hidden` : ""}
35
- */
36
- ${item.getNameAsString()}: ${stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
37
- if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
38
- return ret;
39
- }, void 0) ?? item.getDefaultValue())}`).join(", \n")}
40
- };
41
- `;
42
- }
43
-
44
- //#endregion
45
4
  export { generateTypeScriptObject };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_core_components_output = require('./core/components/output.cjs');
4
- const require_index = require('./vendor/index.cjs');
2
+ const require_chunk = require('./chunk-BwyOHTjC.cjs');
3
+ require('./context-DkLnFNZm.cjs');
4
+ const require_output = require('./output-CiQCsyui.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
6
  let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
7
- __alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
7
+ __alloy_js_rollup_plugin = require_chunk.__toESM(__alloy_js_rollup_plugin);
8
8
  let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
9
9
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
10
10
  let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
@@ -12,6 +12,11 @@ let __stryke_path_replace = require("@stryke/path/replace");
12
12
  let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
13
13
  let prettier_doc_js = require("prettier/doc.js");
14
14
 
15
+ //#region src/vendor/index.ts
16
+ var vendor_exports = {};
17
+ require_chunk.__reExport(vendor_exports, require("@alloy-js/core"));
18
+
19
+ //#endregion
15
20
  //#region src/index.tsx
16
21
  /**
17
22
  * Alloy-js plugin for Powerlines.
@@ -71,7 +76,7 @@ const plugin = (options = {}) => {
71
76
  async handler() {
72
77
  this.render = async (children) => {
73
78
  const _self$ = this;
74
- const tree = (0, require_index.vendor_exports.renderTree)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
79
+ const tree = (0, vendor_exports.renderTree)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
75
80
  context: _self$,
76
81
  get basePath() {
77
82
  return _self$.workspaceConfig.workspaceRoot;
@@ -92,14 +97,14 @@ var src_default = plugin;
92
97
  * @param tree - The rendered output files.
93
98
  */
94
99
  async function writeTree(context, tree, options = {}) {
95
- await (0, require_index.vendor_exports.flushJobsAsync)();
100
+ await (0, vendor_exports.flushJobsAsync)();
96
101
  let result;
97
102
  const generateOutput = async (currentDirectory, root) => {
98
103
  if (!Array.isArray(root)) return;
99
104
  const recurse = async (cwd) => {
100
105
  for (const child of root) await generateOutput(cwd, child);
101
106
  };
102
- const renderContext = (0, require_index.vendor_exports.getContextForRenderNode)(root);
107
+ const renderContext = (0, vendor_exports.getContextForRenderNode)(root);
103
108
  if (!renderContext) return recurse(currentDirectory);
104
109
  if (renderContext.meta?.directory) {
105
110
  const directory = {
@@ -178,7 +183,7 @@ async function printTree(context, tree, options = {}) {
178
183
  options.tabWidth ??= 2;
179
184
  options.useTabs ??= false;
180
185
  options.insertFinalNewLine ??= true;
181
- await (0, require_index.vendor_exports.flushJobsAsync)();
186
+ await (0, vendor_exports.flushJobsAsync)();
182
187
  const result = prettier_doc_js.printer.printDocToString(printTreeWorker(tree), options).formatted;
183
188
  return options.insertFinalNewLine && !result.endsWith("\n") ? `${result}\n` : result;
184
189
  }
@@ -187,7 +192,7 @@ function printTreeWorker(tree) {
187
192
  for (const node of tree) if (typeof node === "string") {
188
193
  const normalizedNode = node.split(/\r?\n/).flatMap((line, index, array) => index < array.length - 1 ? [line] : [line]);
189
194
  doc.push(normalizedNode);
190
- } else if ((0, require_index.vendor_exports.isPrintHook)(node)) doc.push(node.print(node.subtree, printTreeWorker));
195
+ } else if ((0, vendor_exports.isPrintHook)(node)) doc.push(node.print(node.subtree, printTreeWorker));
191
196
  else doc.push(printTreeWorker(node));
192
197
  return doc;
193
198
  }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { Plugin } from "./powerlines/src/types/plugin.cjs";
2
- import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.cjs";
1
+ import { i as Plugin } from "./context-CWt70HA3.cjs";
2
+ import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-K4ViA72J.cjs";
3
3
 
4
4
  //#region src/index.d.ts
5
5
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { Plugin } from "./powerlines/src/types/plugin.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.mjs";
1
+ import { i as Plugin } from "./context-BwQLwanm.mjs";
2
+ import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-DcrJBDQ2.mjs";
3
3
 
4
4
  //#region src/index.d.ts
5
5
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { Output } from "./core/components/output.mjs";
2
- import { vendor_exports } from "./vendor/index.mjs";
1
+ import "./context-eP3fitqj.mjs";
2
+ import { t as Output } from "./output-eQ8RcTrP.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
4
  import alloy from "@alloy-js/rollup-plugin";
5
5
  import { LogLevelLabel } from "@storm-software/config-tools/types";
@@ -9,6 +9,40 @@ import { replacePath } from "@stryke/path/replace";
9
9
  import { isSetString } from "@stryke/type-checks/is-set-string";
10
10
  import { printer } from "prettier/doc.js";
11
11
 
12
+ //#region rolldown:runtime
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) {
22
+ __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
26
+ }
27
+ }
28
+ }
29
+ return to;
30
+ };
31
+ var __reExport = (target, mod, secondTarget, symbols) => {
32
+ if (symbols) {
33
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
34
+ secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
35
+ }
36
+ __copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
37
+ };
38
+
39
+ //#endregion
40
+ //#region src/vendor/index.ts
41
+ var vendor_exports = {};
42
+ import * as import___alloy_js_core from "@alloy-js/core";
43
+ __reExport(vendor_exports, import___alloy_js_core);
44
+
45
+ //#endregion
12
46
  //#region src/index.tsx
13
47
  /**
14
48
  * Alloy-js plugin for Powerlines.
@@ -1,8 +1,13 @@
1
- const require_markdown_components_markdown_file = require('./markdown-file.cjs');
2
- const require_markdown_components_markdown_table = require('./markdown-table.cjs');
1
+ require('../../context-DkLnFNZm.cjs');
2
+ require('../../single-line-comment-_ZglDv1k.cjs');
3
+ require('../../source-file-DKnFKRGJ.cjs');
4
+ const require_markdown_file = require('../../markdown-file-GXj9nWQs.cjs');
5
+ require('../../markdown-table-Biapn9k9.cjs');
6
+ const require_markdown_table$1 = require('../../markdown-table-d1cy0JP3.cjs');
7
+ require('../../components-Gg416Czx.cjs');
3
8
 
4
- exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
5
- exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
6
- exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
7
- exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
8
- exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
9
+ exports.MarkdownFile = require_markdown_file.MarkdownFile;
10
+ exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
11
+ exports.MarkdownTable = require_markdown_table$1.MarkdownTable;
12
+ exports.MarkdownTableColumn = require_markdown_table$1.MarkdownTableColumn;
13
+ exports.MarkdownTableColumnHeader = require_markdown_table$1.MarkdownTableColumnHeader;
@@ -1,3 +1,8 @@
1
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./markdown-file.cjs";
2
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown-table.cjs";
1
+ import "../../context-CWt70HA3.cjs";
2
+ import "../../components-DkVeQ5Yn.cjs";
3
+ import "../../source-file-CJeMh4On.cjs";
4
+ import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-B8nepeQh.cjs";
5
+ import "../../markdown-table-DFnnh_px.cjs";
6
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-BsrBoQZQ.cjs";
7
+ import "../../index-lQ_hGQ08.cjs";
3
8
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
@@ -1,3 +1,8 @@
1
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./markdown-file.mjs";
2
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown-table.mjs";
1
+ import "../../context-BwQLwanm.mjs";
2
+ import "../../components-BrkXdHq-.mjs";
3
+ import "../../source-file-B8OyOWg8.mjs";
4
+ import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-C7S89Ax6.mjs";
5
+ import "../../markdown-table-DKL6g91k.mjs";
6
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-CBiEJXMo.mjs";
7
+ import "../../index-DztUdPP_.mjs";
3
8
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
@@ -1,4 +1,9 @@
1
- import { MarkdownFile, MarkdownFileHeader } from "./markdown-file.mjs";
2
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown-table.mjs";
1
+ import "../../context-eP3fitqj.mjs";
2
+ import "../../single-line-comment-C9Fz5mkM.mjs";
3
+ import "../../source-file-Db1Wu_yq.mjs";
4
+ import { n as MarkdownFileHeader, t as MarkdownFile } from "../../markdown-file-CTMTrgdr.mjs";
5
+ import "../../markdown-table-DaYAMMk6.mjs";
6
+ import { n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-AO9Jtw-o.mjs";
7
+ import "../../components-CH68f_ve.mjs";
3
8
 
4
9
  export { MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
@@ -1,118 +1,7 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_core_contexts_context = require('../../core/contexts/context.cjs');
3
- const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
4
- const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
7
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
8
- let __alloy_js_markdown = require("@alloy-js/markdown");
1
+ require('../../context-DkLnFNZm.cjs');
2
+ require('../../single-line-comment-_ZglDv1k.cjs');
3
+ require('../../source-file-DKnFKRGJ.cjs');
4
+ const require_markdown_file = require('../../markdown-file-GXj9nWQs.cjs');
9
5
 
10
- //#region src/markdown/components/markdown-file.tsx
11
- /**
12
- * A base component representing a Powerlines generated markdown source file.
13
- *
14
- * @param props - The properties for the source file.
15
- * @returns The rendered source file component.
16
- */
17
- function MarkdownFile(props) {
18
- const [{ children, preset }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["children", "preset"]);
19
- const nodeContext = (0, __powerlines_plugin_alloy_vendor.getContext)();
20
- nodeContext.meta ??= {};
21
- nodeContext.meta.output = { preset };
22
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
23
- return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, {});
24
- } }, rest, {
25
- filetype: "md",
26
- reference: __alloy_js_markdown.Link,
27
- get children() {
28
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
29
- get when() {
30
- return Boolean(children);
31
- },
32
- children
33
- });
34
- }
35
- }));
36
- }
37
- /**
38
- * Renders the header for a Powerlines Typescript source file.
39
- *
40
- * @param props - The properties for the source file header.
41
- * @returns The rendered source file header.
42
- */
43
- function MarkdownFileHeader(props) {
44
- const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
45
- "children",
46
- "disableEslint",
47
- "disableBiome",
48
- "disablePrettier"
49
- ]);
50
- const context = require_core_contexts_context.usePowerlines();
51
- return [
52
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
53
- get when() {
54
- return Boolean(disableEslint);
55
- },
56
- get children() {
57
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
58
- variant: "markdown",
59
- children: "eslint-disable"
60
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
61
- }
62
- }),
63
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
64
- get when() {
65
- return Boolean(disablePrettier);
66
- },
67
- get children() {
68
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
69
- variant: "markdown",
70
- children: "prettier-ignore"
71
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
72
- }
73
- }),
74
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
75
- get when() {
76
- return Boolean(disableBiome);
77
- },
78
- get children() {
79
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
80
- variant: "markdown",
81
- children: "biome-ignore lint: disable"
82
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
83
- }
84
- }),
85
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
86
- get when() {
87
- return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
88
- },
89
- get children() {
90
- return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
91
- }
92
- }),
93
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
94
- get when() {
95
- return Boolean(children);
96
- },
97
- get children() {
98
- return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
99
- }
100
- }),
101
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
102
- variant: "markdown",
103
- get children() {
104
- return __powerlines_plugin_alloy_vendor.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
105
- }
106
- }),
107
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
108
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
109
- variant: "markdown",
110
- children: __powerlines_plugin_alloy_vendor.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
111
- }),
112
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
113
- ];
114
- }
115
-
116
- //#endregion
117
- exports.MarkdownFile = MarkdownFile;
118
- exports.MarkdownFileHeader = MarkdownFileHeader;
6
+ exports.MarkdownFile = require_markdown_file.MarkdownFile;
7
+ exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
@@ -1,23 +1,5 @@
1
- import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
- import { SourceFileProps } from "../../core/components/source-file.cjs";
3
- import * as _alloy_js_core7 from "@alloy-js/core";
4
-
5
- //#region src/markdown/components/markdown-file.d.ts
6
- type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
7
- /**
8
- * A base component representing a Powerlines generated markdown source file.
9
- *
10
- * @param props - The properties for the source file.
11
- * @returns The rendered source file component.
12
- */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
14
- /**
15
- * Renders the header for a Powerlines Typescript source file.
16
- *
17
- * @param props - The properties for the source file header.
18
- * @returns The rendered source file header.
19
- */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core7.Children;
21
- declare type __ΩMarkdownFileProps = any[];
22
- //#endregion
1
+ import "../../context-CWt70HA3.cjs";
2
+ import "../../components-DkVeQ5Yn.cjs";
3
+ import "../../source-file-CJeMh4On.cjs";
4
+ import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-B8nepeQh.cjs";
23
5
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
@@ -1,23 +1,5 @@
1
- import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
2
- import { SourceFileProps } from "../../core/components/source-file.mjs";
3
- import * as _alloy_js_core5 from "@alloy-js/core";
4
-
5
- //#region src/markdown/components/markdown-file.d.ts
6
- type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
7
- /**
8
- * A base component representing a Powerlines generated markdown source file.
9
- *
10
- * @param props - The properties for the source file.
11
- * @returns The rendered source file component.
12
- */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.Children;
14
- /**
15
- * Renders the header for a Powerlines Typescript source file.
16
- *
17
- * @param props - The properties for the source file header.
18
- * @returns The rendered source file header.
19
- */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core5.Children;
21
- declare type __ΩMarkdownFileProps = any[];
22
- //#endregion
1
+ import "../../context-BwQLwanm.mjs";
2
+ import "../../components-BrkXdHq-.mjs";
3
+ import "../../source-file-B8OyOWg8.mjs";
4
+ import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-C7S89Ax6.mjs";
23
5
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };