@powerlines/plugin-env 0.15.5 → 0.15.7

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 (265) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/babel/index.cjs +1 -0
  3. package/dist/babel/index.d.cts +1 -0
  4. package/dist/babel/index.d.mts +1 -0
  5. package/dist/babel/index.mjs +3 -0
  6. package/dist/babel/plugin.cjs +200 -0
  7. package/dist/babel/plugin.d.cts +8 -0
  8. package/dist/babel/plugin.d.mts +9 -0
  9. package/dist/babel/plugin.mjs +198 -0
  10. package/dist/components/docs.cjs +70 -3
  11. package/dist/components/docs.d.cts +8 -1
  12. package/dist/components/docs.d.mts +8 -1
  13. package/dist/components/docs.mjs +68 -2
  14. package/dist/components/env.cjs +574 -4
  15. package/dist/components/env.d.cts +19 -2
  16. package/dist/components/env.d.mts +19 -3
  17. package/dist/components/env.mjs +570 -2
  18. package/dist/components/index.cjs +5 -7
  19. package/dist/components/index.d.cts +2 -4
  20. package/dist/components/index.d.mts +2 -5
  21. package/dist/components/index.mjs +2 -4
  22. package/dist/deepkit/schemas/reflection.cjs +5368 -0
  23. package/dist/{plugin-CoSa47Aw.d.cts → deepkit/schemas/reflection.d.cts} +1 -268
  24. package/dist/{plugin-BZgKYbV5.d.mts → deepkit/schemas/reflection.d.mts} +59 -326
  25. package/dist/deepkit/schemas/reflection.mjs +5365 -0
  26. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  27. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  28. package/dist/deepkit/src/capnp.cjs +1692 -0
  29. package/dist/deepkit/src/capnp.mjs +1690 -0
  30. package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
  31. package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
  32. package/dist/deepkit/src/reflect-type.cjs +40 -0
  33. package/dist/deepkit/src/reflect-type.mjs +38 -0
  34. package/dist/deepkit/src/resolve-reflections.cjs +23 -0
  35. package/dist/deepkit/src/resolve-reflections.mjs +22 -0
  36. package/dist/deepkit/src/transformer.cjs +92 -0
  37. package/dist/deepkit/src/transformer.mjs +89 -0
  38. package/dist/deepkit/src/transpile.cjs +39 -0
  39. package/dist/deepkit/src/transpile.mjs +37 -0
  40. package/dist/deepkit/src/types.cjs +22 -0
  41. package/dist/deepkit/src/types.d.cts +10 -0
  42. package/dist/deepkit/src/types.d.mts +10 -0
  43. package/dist/deepkit/src/types.mjs +21 -0
  44. package/dist/deepkit/src/utilities.cjs +182 -0
  45. package/dist/deepkit/src/utilities.mjs +181 -0
  46. package/dist/helpers/automd-generator.cjs +32 -0
  47. package/dist/helpers/automd-generator.mjs +31 -0
  48. package/dist/helpers/create-reflection-resource.cjs +98 -0
  49. package/dist/helpers/create-reflection-resource.d.cts +15 -0
  50. package/dist/helpers/create-reflection-resource.d.mts +15 -0
  51. package/dist/helpers/create-reflection-resource.mjs +97 -0
  52. package/dist/helpers/index.cjs +6 -0
  53. package/dist/helpers/index.d.cts +6 -0
  54. package/dist/helpers/index.d.mts +6 -0
  55. package/dist/helpers/index.mjs +8 -0
  56. package/dist/helpers/load.cjs +134 -0
  57. package/dist/helpers/load.d.cts +35 -0
  58. package/dist/helpers/load.d.mts +36 -0
  59. package/dist/helpers/load.mjs +131 -0
  60. package/dist/helpers/persistence.cjs +320 -0
  61. package/dist/helpers/persistence.d.cts +84 -0
  62. package/dist/helpers/persistence.d.mts +84 -0
  63. package/dist/helpers/persistence.mjs +308 -0
  64. package/dist/helpers/reflect.cjs +263 -0
  65. package/dist/helpers/reflect.d.cts +46 -0
  66. package/dist/helpers/reflect.d.mts +46 -0
  67. package/dist/helpers/reflect.mjs +254 -0
  68. package/dist/helpers/source-file-env.cjs +58 -0
  69. package/dist/helpers/source-file-env.d.cts +8 -0
  70. package/dist/helpers/source-file-env.d.mts +8 -0
  71. package/dist/helpers/source-file-env.mjs +56 -0
  72. package/dist/helpers/template-helpers.cjs +70 -0
  73. package/dist/helpers/template-helpers.d.cts +15 -0
  74. package/dist/helpers/template-helpers.d.mts +15 -0
  75. package/dist/helpers/template-helpers.mjs +69 -0
  76. package/dist/index.cjs +83 -697
  77. package/dist/index.d.cts +16 -185
  78. package/dist/index.d.mts +17 -190
  79. package/dist/index.mjs +32 -649
  80. package/dist/plugin-alloy/src/core/components/output.cjs +45 -0
  81. package/dist/plugin-alloy/src/core/components/output.mjs +44 -0
  82. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  83. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  84. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  85. package/dist/plugin-alloy/src/core/components/source-file.d.cts +23 -0
  86. package/dist/plugin-alloy/src/core/components/source-file.d.mts +23 -0
  87. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  88. package/dist/plugin-alloy/src/core/contexts/context.cjs +136 -0
  89. package/dist/plugin-alloy/src/core/contexts/context.mjs +128 -0
  90. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  91. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  92. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
  93. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
  94. package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
  95. package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
  96. package/dist/plugin-alloy/src/index.cjs +99 -0
  97. package/dist/plugin-alloy/src/index.mjs +97 -0
  98. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  99. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  100. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  101. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  102. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
  103. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
  104. package/dist/plugin-alloy/src/types/components.cjs +22 -0
  105. package/dist/{components-8W0Zgj0y.d.mts → plugin-alloy/src/types/components.d.cts} +2 -2
  106. package/dist/plugin-alloy/src/types/components.d.mts +25 -0
  107. package/dist/plugin-alloy/src/types/components.mjs +21 -0
  108. package/dist/plugin-alloy/src/types/index.d.cts +2 -0
  109. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  110. package/dist/plugin-alloy/src/types/plugin.cjs +55 -0
  111. package/dist/plugin-alloy/src/types/plugin.d.cts +37 -0
  112. package/dist/plugin-alloy/src/types/plugin.d.mts +37 -0
  113. package/dist/plugin-alloy/src/types/plugin.mjs +52 -0
  114. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +57 -0
  115. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +26 -0
  116. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +26 -0
  117. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +56 -0
  118. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +126 -0
  119. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +124 -0
  120. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +442 -0
  121. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +28 -0
  122. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +28 -0
  123. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +433 -0
  124. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +194 -0
  125. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +15 -0
  126. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +15 -0
  127. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +191 -0
  128. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +68 -0
  129. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +12 -0
  130. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +12 -0
  131. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +67 -0
  132. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  133. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  134. package/dist/plugin-automd/src/index.cjs +127 -0
  135. package/dist/plugin-automd/src/index.mjs +124 -0
  136. package/dist/plugin-automd/src/types/plugin.cjs +47 -0
  137. package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
  138. package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
  139. package/dist/plugin-automd/src/types/plugin.mjs +47 -0
  140. package/dist/plugin-automd/src/types/toc.cjs +26 -0
  141. package/dist/plugin-automd/src/types/toc.d.cts +33 -0
  142. package/dist/plugin-automd/src/types/toc.d.mts +33 -0
  143. package/dist/plugin-automd/src/types/toc.mjs +25 -0
  144. package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
  145. package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
  146. package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
  147. package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
  148. package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
  149. package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
  150. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  151. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  152. package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
  153. package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
  154. package/dist/plugin-babel/src/helpers/options.cjs +74 -0
  155. package/dist/plugin-babel/src/helpers/options.mjs +71 -0
  156. package/dist/plugin-babel/src/index.cjs +134 -0
  157. package/dist/plugin-babel/src/index.mjs +132 -0
  158. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  159. package/dist/plugin-babel/src/types/plugin.cjs +42 -0
  160. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  161. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  162. package/dist/plugin-babel/src/types/plugin.mjs +39 -0
  163. package/dist/powerlines/schemas/fs.d.mts +1 -0
  164. package/dist/powerlines/src/api.d.mts +7 -0
  165. package/dist/powerlines/src/index.d.mts +12 -0
  166. package/dist/powerlines/src/internal/helpers/hooks.cjs +119 -0
  167. package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
  168. package/dist/powerlines/src/internal/helpers/hooks.mjs +118 -0
  169. package/dist/powerlines/src/lib/build/esbuild.cjs +161 -0
  170. package/dist/powerlines/src/lib/build/esbuild.mjs +159 -0
  171. package/dist/powerlines/src/lib/entry.cjs +203 -0
  172. package/dist/powerlines/src/lib/entry.mjs +201 -0
  173. package/dist/powerlines/src/lib/logger.cjs +108 -0
  174. package/dist/powerlines/src/lib/logger.mjs +106 -0
  175. package/dist/powerlines/src/lib/utilities/bundle.cjs +67 -0
  176. package/dist/powerlines/src/lib/utilities/bundle.mjs +66 -0
  177. package/dist/powerlines/src/lib/utilities/resolve.cjs +49 -0
  178. package/dist/powerlines/src/lib/utilities/resolve.mjs +48 -0
  179. package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
  180. package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
  181. package/dist/powerlines/src/types/api.cjs +1 -0
  182. package/dist/powerlines/src/types/api.d.mts +5 -0
  183. package/dist/powerlines/src/types/api.mjs +3 -0
  184. package/dist/powerlines/src/types/babel.cjs +156 -0
  185. package/dist/powerlines/src/types/babel.d.cts +23 -0
  186. package/dist/powerlines/src/types/babel.d.mts +23 -0
  187. package/dist/powerlines/src/types/babel.mjs +147 -0
  188. package/dist/powerlines/src/types/build.cjs +105 -0
  189. package/dist/powerlines/src/types/build.d.cts +145 -0
  190. package/dist/powerlines/src/types/build.d.mts +147 -0
  191. package/dist/powerlines/src/types/build.mjs +101 -0
  192. package/dist/powerlines/src/types/commands.cjs +16 -0
  193. package/dist/powerlines/src/types/commands.d.cts +8 -0
  194. package/dist/powerlines/src/types/commands.d.mts +9 -0
  195. package/dist/powerlines/src/types/commands.mjs +15 -0
  196. package/dist/powerlines/src/types/config.cjs +306 -0
  197. package/dist/powerlines/src/types/config.d.cts +387 -0
  198. package/dist/powerlines/src/types/config.d.mts +388 -0
  199. package/dist/powerlines/src/types/config.mjs +293 -0
  200. package/dist/powerlines/src/types/context.cjs +324 -0
  201. package/dist/powerlines/src/types/context.d.cts +414 -0
  202. package/dist/powerlines/src/types/context.d.mts +416 -0
  203. package/dist/powerlines/src/types/context.mjs +311 -0
  204. package/dist/powerlines/src/types/fs.cjs +78 -0
  205. package/dist/powerlines/src/types/fs.d.cts +486 -0
  206. package/dist/powerlines/src/types/fs.d.mts +486 -0
  207. package/dist/powerlines/src/types/fs.mjs +75 -0
  208. package/dist/powerlines/src/types/hooks.cjs +52 -0
  209. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  210. package/dist/powerlines/src/types/hooks.mjs +48 -0
  211. package/dist/powerlines/src/types/index.cjs +11 -0
  212. package/dist/powerlines/src/types/index.d.mts +12 -0
  213. package/dist/powerlines/src/types/index.mjs +13 -0
  214. package/dist/powerlines/src/types/plugin.cjs +249 -0
  215. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  216. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  217. package/dist/powerlines/src/types/plugin.mjs +240 -0
  218. package/dist/powerlines/src/types/resolved.cjs +153 -0
  219. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  220. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  221. package/dist/powerlines/src/types/resolved.mjs +148 -0
  222. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  223. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  224. package/dist/powerlines/src/types/unplugin.cjs +1 -0
  225. package/dist/powerlines/src/types/unplugin.d.mts +7 -0
  226. package/dist/powerlines/src/types/unplugin.mjs +3 -0
  227. package/dist/types/index.cjs +10 -3
  228. package/dist/types/index.d.cts +2 -4
  229. package/dist/types/index.d.mts +2 -5
  230. package/dist/types/index.mjs +3 -4
  231. package/dist/types/plugin.cjs +133 -1
  232. package/dist/types/plugin.d.cts +157 -3
  233. package/dist/types/plugin.d.mts +158 -4
  234. package/dist/types/plugin.mjs +128 -2
  235. package/dist/types/runtime.cjs +242 -1
  236. package/dist/types/runtime.d.cts +793 -2
  237. package/dist/types/runtime.d.mts +793 -2
  238. package/dist/types/runtime.mjs +240 -2
  239. package/package.json +13 -9
  240. package/dist/components-C9bYrQVK.cjs +0 -0
  241. package/dist/components-CNIQFfeK.mjs +0 -1
  242. package/dist/create-reflection-resource-BNYxBgW2.mjs +0 -9846
  243. package/dist/create-reflection-resource-BWYhmX7O.cjs +0 -10085
  244. package/dist/docs-5r844zC1.d.mts +0 -9
  245. package/dist/docs-B66b9li3.mjs +0 -219
  246. package/dist/docs-_MmTNBQX.d.cts +0 -9
  247. package/dist/docs-hBlKCRWK.cjs +0 -224
  248. package/dist/env-7Yp28g_u.d.cts +0 -116
  249. package/dist/env-Dpd0sYlV.d.mts +0 -98
  250. package/dist/env-IQvgnabX.mjs +0 -1578
  251. package/dist/env-cO4BUDn1.cjs +0 -1596
  252. package/dist/index-BXxhKmeA.d.mts +0 -1
  253. package/dist/index-Cc7fCJU9.d.mts +0 -1
  254. package/dist/index-CqdNToYT.d.cts +0 -1
  255. package/dist/index-DWPDThxu.d.cts +0 -1
  256. package/dist/plugin-D3B5E_Hg.mjs +0 -1
  257. package/dist/plugin-D5qyQPqC.cjs +0 -0
  258. package/dist/resolved-8HZubRx3.d.mts +0 -1798
  259. package/dist/resolved-DEuBGf-R.d.cts +0 -1796
  260. package/dist/runtime-Bisl_1Ja.cjs +0 -0
  261. package/dist/runtime-ButhdktY.d.mts +0 -794
  262. package/dist/runtime-DhUK3HQR.d.cts +0 -794
  263. package/dist/runtime-azNoeKr-.mjs +0 -1
  264. package/dist/types-DwElXV6q.mjs +0 -1
  265. package/dist/types-MYBaygjr.cjs +0 -0
@@ -0,0 +1,110 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_components = require('../../types/components.cjs');
3
+ let __alloy_js_core = require("@alloy-js/core");
4
+
5
+ //#region ../plugin-alloy/src/core/contexts/reflection.ts
6
+ const __ΩRecord = [
7
+ "K",
8
+ "T",
9
+ "Record",
10
+ "l'e#\"Rb!b\"Pde\"!N#!w#y"
11
+ ];
12
+ const __ΩReflectionClassContextInterface = [
13
+ () => __ΩRecord,
14
+ "T",
15
+ "ReflectionClass",
16
+ "reflection",
17
+ () => require_components.__ΩReflectionOverrideInterface,
18
+ "override",
19
+ "ReflectionClassContextInterface",
20
+ "&\"o!#c\"P\"w#4$e\"!o%\"4&8Mw'y"
21
+ ];
22
+ /**
23
+ * The reflection class context used in template rendering.
24
+ */
25
+ const ReflectionClassContext = (__alloy_js_core.createContext.Ω = [[() => __ΩReflectionClassContextInterface, "\"o!\""]], (0, __alloy_js_core.createContext)());
26
+ /**
27
+ * Hook to access the Reflection context.
28
+ *
29
+ * @returns A reactive version of the current reflection.
30
+ */
31
+ function useReflectionClass() {
32
+ const context = (__alloy_js_core.useContext.Ω = [[
33
+ () => __ΩReflectionClassContextInterface,
34
+ () => __ΩRecord,
35
+ "&\"o\"#o!\""
36
+ ]], (0, __alloy_js_core.useContext)(ReflectionClassContext));
37
+ 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`.");
38
+ return context;
39
+ }
40
+ useReflectionClass.__type = [
41
+ "useReflectionClass",
42
+ "Hook to access the Reflection context.",
43
+ "P\"/!?\""
44
+ ];
45
+ /**
46
+ * The reflection property context used in template rendering.
47
+ */
48
+ const ReflectionPropertyContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionProperty", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-property"));
49
+ /**
50
+ * Hook to access the Reflection Property context.
51
+ *
52
+ * @returns A reactive version of the current reflection.
53
+ */
54
+ function useReflectionProperty() {
55
+ const context = (__alloy_js_core.useContext.Ω = [["ReflectionProperty", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionPropertyContext));
56
+ 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`.");
57
+ return context;
58
+ }
59
+ useReflectionProperty.__type = [
60
+ "useReflectionProperty",
61
+ "Hook to access the Reflection Property context.",
62
+ "P\"/!?\""
63
+ ];
64
+ /**
65
+ * The reflection method context used in template rendering.
66
+ */
67
+ const ReflectionMethodContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionMethod", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-method"));
68
+ /**
69
+ * Hook to access the Reflection Method context.
70
+ *
71
+ * @returns A reactive version of the current reflection.
72
+ */
73
+ function useReflectionMethod() {
74
+ const context = (__alloy_js_core.useContext.Ω = [["ReflectionMethod", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionMethodContext));
75
+ 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`.");
76
+ return context;
77
+ }
78
+ useReflectionMethod.__type = [
79
+ "useReflectionMethod",
80
+ "Hook to access the Reflection Method context.",
81
+ "P\"/!?\""
82
+ ];
83
+ /**
84
+ * The reflection parameter context used in template rendering.
85
+ */
86
+ const ReflectionParameterContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionParameter", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-parameter"));
87
+ /**
88
+ * Hook to access the Reflection Parameter context.
89
+ *
90
+ * @returns A reactive version of the current reflection.
91
+ */
92
+ function useReflectionParameter() {
93
+ return __alloy_js_core.useContext.Ω = [["ReflectionParameter", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionParameterContext);
94
+ }
95
+ useReflectionParameter.__type = [
96
+ "useReflectionParameter",
97
+ "Hook to access the Reflection Parameter context.",
98
+ "P\"/!?\""
99
+ ];
100
+
101
+ //#endregion
102
+ exports.ReflectionClassContext = ReflectionClassContext;
103
+ exports.ReflectionMethodContext = ReflectionMethodContext;
104
+ exports.ReflectionParameterContext = ReflectionParameterContext;
105
+ exports.ReflectionPropertyContext = ReflectionPropertyContext;
106
+ exports.__ΩReflectionClassContextInterface = __ΩReflectionClassContextInterface;
107
+ exports.useReflectionClass = useReflectionClass;
108
+ exports.useReflectionMethod = useReflectionMethod;
109
+ exports.useReflectionParameter = useReflectionParameter;
110
+ exports.useReflectionProperty = useReflectionProperty;
@@ -0,0 +1,101 @@
1
+ import { __ΩReflectionOverrideInterface } from "../../types/components.mjs";
2
+ import { createContext, createNamedContext, useContext } from "@alloy-js/core";
3
+
4
+ //#region ../plugin-alloy/src/core/contexts/reflection.ts
5
+ const __ΩRecord = [
6
+ "K",
7
+ "T",
8
+ "Record",
9
+ "l'e#\"Rb!b\"Pde\"!N#!w#y"
10
+ ];
11
+ const __ΩReflectionClassContextInterface = [
12
+ () => __ΩRecord,
13
+ "T",
14
+ "ReflectionClass",
15
+ "reflection",
16
+ () => __ΩReflectionOverrideInterface,
17
+ "override",
18
+ "ReflectionClassContextInterface",
19
+ "&\"o!#c\"P\"w#4$e\"!o%\"4&8Mw'y"
20
+ ];
21
+ /**
22
+ * The reflection class context used in template rendering.
23
+ */
24
+ const ReflectionClassContext = (createContext.Ω = [[() => __ΩReflectionClassContextInterface, "\"o!\""]], createContext());
25
+ /**
26
+ * Hook to access the Reflection context.
27
+ *
28
+ * @returns A reactive version of the current reflection.
29
+ */
30
+ function useReflectionClass() {
31
+ const context = (useContext.Ω = [[
32
+ () => __ΩReflectionClassContextInterface,
33
+ () => __ΩRecord,
34
+ "&\"o\"#o!\""
35
+ ]], useContext(ReflectionClassContext));
36
+ 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`.");
37
+ return context;
38
+ }
39
+ useReflectionClass.__type = [
40
+ "useReflectionClass",
41
+ "Hook to access the Reflection context.",
42
+ "P\"/!?\""
43
+ ];
44
+ /**
45
+ * The reflection property context used in template rendering.
46
+ */
47
+ const ReflectionPropertyContext = (createNamedContext.Ω = [["ReflectionProperty", "\"w!"]], createNamedContext("reflection-property"));
48
+ /**
49
+ * Hook to access the Reflection Property context.
50
+ *
51
+ * @returns A reactive version of the current reflection.
52
+ */
53
+ function useReflectionProperty() {
54
+ const context = (useContext.Ω = [["ReflectionProperty", "\"w!"]], useContext(ReflectionPropertyContext));
55
+ 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`.");
56
+ return context;
57
+ }
58
+ useReflectionProperty.__type = [
59
+ "useReflectionProperty",
60
+ "Hook to access the Reflection Property context.",
61
+ "P\"/!?\""
62
+ ];
63
+ /**
64
+ * The reflection method context used in template rendering.
65
+ */
66
+ const ReflectionMethodContext = (createNamedContext.Ω = [["ReflectionMethod", "\"w!"]], createNamedContext("reflection-method"));
67
+ /**
68
+ * Hook to access the Reflection Method context.
69
+ *
70
+ * @returns A reactive version of the current reflection.
71
+ */
72
+ function useReflectionMethod() {
73
+ const context = (useContext.Ω = [["ReflectionMethod", "\"w!"]], useContext(ReflectionMethodContext));
74
+ 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`.");
75
+ return context;
76
+ }
77
+ useReflectionMethod.__type = [
78
+ "useReflectionMethod",
79
+ "Hook to access the Reflection Method context.",
80
+ "P\"/!?\""
81
+ ];
82
+ /**
83
+ * The reflection parameter context used in template rendering.
84
+ */
85
+ const ReflectionParameterContext = (createNamedContext.Ω = [["ReflectionParameter", "\"w!"]], createNamedContext("reflection-parameter"));
86
+ /**
87
+ * Hook to access the Reflection Parameter context.
88
+ *
89
+ * @returns A reactive version of the current reflection.
90
+ */
91
+ function useReflectionParameter() {
92
+ return useContext.Ω = [["ReflectionParameter", "\"w!"]], useContext(ReflectionParameterContext);
93
+ }
94
+ useReflectionParameter.__type = [
95
+ "useReflectionParameter",
96
+ "Hook to access the Reflection Parameter context.",
97
+ "P\"/!?\""
98
+ ];
99
+
100
+ //#endregion
101
+ export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -0,0 +1,23 @@
1
+ const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
+ let __alloy_js_core = require("@alloy-js/core");
3
+
4
+ //#region ../plugin-alloy/src/helpers/refkey.ts
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
+ function refkey(...args) {
12
+ return (0, __alloy_js_core.refkey)("powerlines", ...args);
13
+ }
14
+ refkey.__type = [
15
+ "args",
16
+ "Refkey",
17
+ "refkey",
18
+ "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.",
19
+ "P#@2!\"w\"/#?$"
20
+ ];
21
+
22
+ //#endregion
23
+ exports.refkey = refkey;
@@ -0,0 +1,22 @@
1
+ import { refkey } from "@alloy-js/core";
2
+
3
+ //#region ../plugin-alloy/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$1(...args) {
11
+ return refkey("powerlines", ...args);
12
+ }
13
+ refkey$1.__type = [
14
+ "args",
15
+ "Refkey",
16
+ "refkey",
17
+ "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.",
18
+ "P#@2!\"w\"/#?$"
19
+ ];
20
+
21
+ //#endregion
22
+ export { refkey$1 as refkey };
@@ -0,0 +1,99 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_output = require('./core/components/output.cjs');
3
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
+ let __alloy_js_core = require("@alloy-js/core");
5
+ let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
6
+ __alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
7
+ let __stryke_json_storm_json = require("@stryke/json/storm-json");
8
+
9
+ //#region ../plugin-alloy/src/index.tsx
10
+ /**
11
+ * Alloy-js plugin for Powerlines.
12
+ *
13
+ * @param options - The Alloy-js plugin user configuration options.
14
+ * @returns A Powerlines plugin that integrates Alloy-js transformations.
15
+ */
16
+ const plugin = (options = {}) => {
17
+ return [{
18
+ name: "alloy:config",
19
+ config() {
20
+ return {
21
+ alloy: {
22
+ typescript: true,
23
+ ...options
24
+ },
25
+ build: {
26
+ inputOptions: { transform: { jsx: {
27
+ runtime: "classic",
28
+ pragma: "Alloy.createElement",
29
+ importSource: "@alloy-js/core"
30
+ } } },
31
+ plugins: [(0, __alloy_js_rollup_plugin.default)()],
32
+ external: [
33
+ "@alloy-js/core",
34
+ "@alloy-js/typescript",
35
+ "@alloy-js/json",
36
+ "@alloy-js/markdown"
37
+ ]
38
+ }
39
+ };
40
+ },
41
+ async configResolved() {
42
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
43
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
44
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
45
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
46
+ await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
47
+ }
48
+ this.dependencies["@alloy-js/core"] = "^0.22.0";
49
+ if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
50
+ if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
51
+ if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
52
+ }
53
+ }, {
54
+ name: "alloy:update-context",
55
+ configResolved: {
56
+ order: "pre",
57
+ async handler() {
58
+ this.render = async (children) => {
59
+ const _self$ = this;
60
+ const meta = {};
61
+ await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
62
+ context: _self$,
63
+ meta,
64
+ get basePath() {
65
+ return _self$.workspaceConfig.workspaceRoot;
66
+ },
67
+ children
68
+ })), {
69
+ visitDirectory: (directory) => {
70
+ if (this.fs.existsSync(directory.path)) return;
71
+ this.fs.mkdirSync(directory.path);
72
+ },
73
+ visitFile: (file) => {
74
+ if ("contents" in file) {
75
+ const metadata = meta[file.path] ?? {};
76
+ if (metadata.kind === "builtin") {
77
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
78
+ this.emitBuiltinSync(file.contents, metadata.id, file.path, {
79
+ skipFormat: metadata.skipFormat,
80
+ storage: metadata.storage
81
+ });
82
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
83
+ skipFormat: metadata.skipFormat,
84
+ storage: metadata.storage,
85
+ ...metadata.typeDefinition ?? {}
86
+ });
87
+ else this.emitSync(file.contents, file.path, metadata);
88
+ } else this.fs.copySync(file.sourcePath, file.path);
89
+ }
90
+ });
91
+ };
92
+ }
93
+ }
94
+ }];
95
+ };
96
+ var src_default = plugin;
97
+
98
+ //#endregion
99
+ exports.default = src_default;
@@ -0,0 +1,97 @@
1
+ import { Output as Output$1 } from "./core/components/output.mjs";
2
+ import { createComponent } from "@alloy-js/core/jsx-runtime";
3
+ import { renderAsync, traverseOutput } from "@alloy-js/core";
4
+ import alloy from "@alloy-js/rollup-plugin";
5
+ import { StormJSON } from "@stryke/json/storm-json";
6
+
7
+ //#region ../plugin-alloy/src/index.tsx
8
+ /**
9
+ * Alloy-js plugin for Powerlines.
10
+ *
11
+ * @param options - The Alloy-js plugin user configuration options.
12
+ * @returns A Powerlines plugin that integrates Alloy-js transformations.
13
+ */
14
+ const plugin = (options = {}) => {
15
+ return [{
16
+ name: "alloy:config",
17
+ config() {
18
+ return {
19
+ alloy: {
20
+ typescript: true,
21
+ ...options
22
+ },
23
+ build: {
24
+ inputOptions: { transform: { jsx: {
25
+ runtime: "classic",
26
+ pragma: "Alloy.createElement",
27
+ importSource: "@alloy-js/core"
28
+ } } },
29
+ plugins: [alloy()],
30
+ external: [
31
+ "@alloy-js/core",
32
+ "@alloy-js/typescript",
33
+ "@alloy-js/json",
34
+ "@alloy-js/markdown"
35
+ ]
36
+ }
37
+ };
38
+ },
39
+ async configResolved() {
40
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
41
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
42
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
43
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
44
+ await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
45
+ }
46
+ this.dependencies["@alloy-js/core"] = "^0.22.0";
47
+ if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
48
+ if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
49
+ if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
50
+ }
51
+ }, {
52
+ name: "alloy:update-context",
53
+ configResolved: {
54
+ order: "pre",
55
+ async handler() {
56
+ this.render = async (children) => {
57
+ const _self$ = this;
58
+ const meta = {};
59
+ await traverseOutput(await renderAsync(createComponent(Output$1, {
60
+ context: _self$,
61
+ meta,
62
+ get basePath() {
63
+ return _self$.workspaceConfig.workspaceRoot;
64
+ },
65
+ children
66
+ })), {
67
+ visitDirectory: (directory) => {
68
+ if (this.fs.existsSync(directory.path)) return;
69
+ this.fs.mkdirSync(directory.path);
70
+ },
71
+ visitFile: (file) => {
72
+ if ("contents" in file) {
73
+ const metadata = meta[file.path] ?? {};
74
+ if (metadata.kind === "builtin") {
75
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
76
+ this.emitBuiltinSync(file.contents, metadata.id, file.path, {
77
+ skipFormat: metadata.skipFormat,
78
+ storage: metadata.storage
79
+ });
80
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
81
+ skipFormat: metadata.skipFormat,
82
+ storage: metadata.storage,
83
+ ...metadata.typeDefinition ?? {}
84
+ });
85
+ else this.emitSync(file.contents, file.path, metadata);
86
+ } else this.fs.copySync(file.sourcePath, file.path);
87
+ }
88
+ });
89
+ };
90
+ }
91
+ }
92
+ }];
93
+ };
94
+ var src_default = plugin;
95
+
96
+ //#endregion
97
+ export { src_default as default };
@@ -0,0 +1,115 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../../core/contexts/context.cjs');
3
+ const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
4
+ const require_source_file = require('../../core/components/source-file.cjs');
5
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let __alloy_js_core = require("@alloy-js/core");
7
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
8
+ let __alloy_js_markdown = require("@alloy-js/markdown");
9
+
10
+ //#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
11
+ /**
12
+ * A base component representing a Powerlines generated markdown source file.
13
+ *
14
+ * @param props - The properties for the source file.
15
+ * @returns The rendered source file component.
16
+ */
17
+ function MarkdownFile(props) {
18
+ const [{ children, storage }, rest] = (0, __alloy_js_core.splitProps)(props, ["children", "storage"]);
19
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
20
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, {});
21
+ } }, rest, {
22
+ filetype: "md",
23
+ reference: __alloy_js_markdown.Link,
24
+ storage,
25
+ get children() {
26
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
27
+ get when() {
28
+ return Boolean(children);
29
+ },
30
+ children
31
+ });
32
+ }
33
+ }));
34
+ }
35
+ /**
36
+ * Renders the header for a Powerlines Typescript source file.
37
+ *
38
+ * @param props - The properties for the source file header.
39
+ * @returns The rendered source file header.
40
+ */
41
+ function MarkdownFileHeader(props) {
42
+ const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __alloy_js_core.splitProps)(props, [
43
+ "children",
44
+ "disableEslint",
45
+ "disableBiome",
46
+ "disablePrettier"
47
+ ]);
48
+ const context = require_context.usePowerlines();
49
+ return [
50
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
51
+ get when() {
52
+ return Boolean(disableEslint);
53
+ },
54
+ get children() {
55
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
56
+ variant: "markdown",
57
+ children: "eslint-disable"
58
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
59
+ }
60
+ }),
61
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
62
+ get when() {
63
+ return Boolean(disablePrettier);
64
+ },
65
+ get children() {
66
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
67
+ variant: "markdown",
68
+ children: "prettier-ignore"
69
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
70
+ }
71
+ }),
72
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
73
+ get when() {
74
+ return Boolean(disableBiome);
75
+ },
76
+ get children() {
77
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
78
+ variant: "markdown",
79
+ children: "biome-ignore lint: disable"
80
+ }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
81
+ }
82
+ }),
83
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
84
+ get when() {
85
+ return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
86
+ },
87
+ get children() {
88
+ return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
89
+ }
90
+ }),
91
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
92
+ get when() {
93
+ return Boolean(children);
94
+ },
95
+ get children() {
96
+ return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
97
+ }
98
+ }),
99
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
100
+ variant: "markdown",
101
+ get children() {
102
+ return __alloy_js_core.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
103
+ }
104
+ }),
105
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
106
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
107
+ variant: "markdown",
108
+ children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
109
+ }),
110
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
111
+ ];
112
+ }
113
+
114
+ //#endregion
115
+ exports.MarkdownFile = MarkdownFile;
@@ -0,0 +1,114 @@
1
+ import { usePowerlines } from "../../core/contexts/context.mjs";
2
+ import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
3
+ import { SourceFile } from "../../core/components/source-file.mjs";
4
+ import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
5
+ import { Show, code, splitProps } from "@alloy-js/core";
6
+ import { titleCase } from "@stryke/string-format/title-case";
7
+ import { Link } from "@alloy-js/markdown";
8
+
9
+ //#region ../plugin-alloy/src/markdown/components/markdown-file.tsx
10
+ /**
11
+ * A base component representing a Powerlines generated markdown source file.
12
+ *
13
+ * @param props - The properties for the source file.
14
+ * @returns The rendered source file component.
15
+ */
16
+ function MarkdownFile(props) {
17
+ const [{ children, storage }, rest] = splitProps(props, ["children", "storage"]);
18
+ return createComponent(SourceFile, mergeProps({ get header() {
19
+ return createComponent(MarkdownFileHeader, {});
20
+ } }, rest, {
21
+ filetype: "md",
22
+ reference: Link,
23
+ storage,
24
+ get children() {
25
+ return createComponent(Show, {
26
+ get when() {
27
+ return Boolean(children);
28
+ },
29
+ children
30
+ });
31
+ }
32
+ }));
33
+ }
34
+ /**
35
+ * Renders the header for a Powerlines Typescript source file.
36
+ *
37
+ * @param props - The properties for the source file header.
38
+ * @returns The rendered source file header.
39
+ */
40
+ function MarkdownFileHeader(props) {
41
+ const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = splitProps(props, [
42
+ "children",
43
+ "disableEslint",
44
+ "disableBiome",
45
+ "disablePrettier"
46
+ ]);
47
+ const context = usePowerlines();
48
+ return [
49
+ createComponent(Show, {
50
+ get when() {
51
+ return Boolean(disableEslint);
52
+ },
53
+ get children() {
54
+ return [createComponent(SingleLineComment, {
55
+ variant: "markdown",
56
+ children: "eslint-disable"
57
+ }), createIntrinsic("hbr", {})];
58
+ }
59
+ }),
60
+ createComponent(Show, {
61
+ get when() {
62
+ return Boolean(disablePrettier);
63
+ },
64
+ get children() {
65
+ return [createComponent(SingleLineComment, {
66
+ variant: "markdown",
67
+ children: "prettier-ignore"
68
+ }), createIntrinsic("hbr", {})];
69
+ }
70
+ }),
71
+ createComponent(Show, {
72
+ get when() {
73
+ return Boolean(disableBiome);
74
+ },
75
+ get children() {
76
+ return [createComponent(SingleLineComment, {
77
+ variant: "markdown",
78
+ children: "biome-ignore lint: disable"
79
+ }), createIntrinsic("hbr", {})];
80
+ }
81
+ }),
82
+ createComponent(Show, {
83
+ get when() {
84
+ return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
85
+ },
86
+ get children() {
87
+ return createIntrinsic("hbr", {});
88
+ }
89
+ }),
90
+ createComponent(Show, {
91
+ get when() {
92
+ return Boolean(children);
93
+ },
94
+ get children() {
95
+ return [children, createIntrinsic("hbr", {})];
96
+ }
97
+ }),
98
+ createComponent(SingleLineComment, {
99
+ variant: "markdown",
100
+ get children() {
101
+ return code`Generated by ${titleCase(context?.config.framework) || "Powerlines"}`;
102
+ }
103
+ }),
104
+ createIntrinsic("hbr", {}),
105
+ createComponent(SingleLineComment, {
106
+ variant: "markdown",
107
+ children: code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
108
+ }),
109
+ createIntrinsic("hbr", {})
110
+ ];
111
+ }
112
+
113
+ //#endregion
114
+ export { MarkdownFile };