@powerlines/plugin-alloy 0.25.32 → 0.25.34

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 (287) hide show
  1. package/README.md +1 -1
  2. package/dist/core/components/output.cjs +17 -10
  3. package/dist/core/components/output.mjs +18 -12
  4. package/dist/core/components/single-line-comment.cjs +6 -4
  5. package/dist/core/components/single-line-comment.mjs +7 -6
  6. package/dist/core/components/source-file.cjs +10 -6
  7. package/dist/core/components/source-file.mjs +11 -8
  8. package/dist/core/components/spacing.cjs +6 -4
  9. package/dist/core/components/spacing.mjs +7 -6
  10. package/dist/core/contexts/context.mjs +1 -2
  11. package/dist/core/contexts/meta.mjs +1 -2
  12. package/dist/core/contexts/reflection.mjs +1 -2
  13. package/dist/core/helpers/code.mjs +1 -2
  14. package/dist/helpers/capnp.mjs +1 -2
  15. package/dist/helpers/create-builtin.mjs +1 -2
  16. package/dist/helpers/refkey.mjs +1 -2
  17. package/dist/helpers/typescript.mjs +1 -2
  18. package/dist/index.cjs +8 -18
  19. package/dist/index.mjs +8 -19
  20. package/dist/markdown/components/front-matter.cjs +9 -7
  21. package/dist/markdown/components/front-matter.mjs +10 -9
  22. package/dist/markdown/components/markdown-file.cjs +76 -44
  23. package/dist/markdown/components/markdown-file.mjs +77 -46
  24. package/dist/markdown/components/markdown-table.cjs +49 -28
  25. package/dist/markdown/components/markdown-table.mjs +50 -30
  26. package/dist/markdown/contexts/markdown-table.mjs +1 -2
  27. package/dist/render.cjs +3 -3
  28. package/dist/render.mjs +4 -5
  29. package/dist/typescript/components/builtin-file.cjs +29 -19
  30. package/dist/typescript/components/builtin-file.mjs +30 -21
  31. package/dist/typescript/components/class-declaration.cjs +165 -100
  32. package/dist/typescript/components/class-declaration.mjs +166 -102
  33. package/dist/typescript/components/dynamic-import-statement.cjs +2 -6
  34. package/dist/typescript/components/dynamic-import-statement.mjs +3 -8
  35. package/dist/typescript/components/entry-file.cjs +9 -6
  36. package/dist/typescript/components/entry-file.mjs +10 -8
  37. package/dist/typescript/components/infrastructure-file.cjs +9 -6
  38. package/dist/typescript/components/infrastructure-file.mjs +10 -8
  39. package/dist/typescript/components/interface-declaration.cjs +121 -70
  40. package/dist/typescript/components/interface-declaration.mjs +122 -72
  41. package/dist/typescript/components/object-declaration.cjs +76 -44
  42. package/dist/typescript/components/object-declaration.mjs +77 -46
  43. package/dist/typescript/components/property-name.cjs +3 -3
  44. package/dist/typescript/components/property-name.mjs +4 -5
  45. package/dist/typescript/components/record-expression.mjs +1 -2
  46. package/dist/typescript/components/tsdoc-reflection.cjs +225 -104
  47. package/dist/typescript/components/tsdoc-reflection.mjs +226 -106
  48. package/dist/typescript/components/tsdoc.cjs +255 -160
  49. package/dist/typescript/components/tsdoc.mjs +256 -162
  50. package/dist/typescript/components/type-declaration.cjs +20 -15
  51. package/dist/typescript/components/type-declaration.mjs +21 -17
  52. package/dist/typescript/components/type-parameters.cjs +55 -29
  53. package/dist/typescript/components/type-parameters.mjs +56 -31
  54. package/dist/typescript/components/typescript-file.cjs +146 -80
  55. package/dist/typescript/components/typescript-file.mjs +148 -83
  56. package/dist/typescript/contexts/lexical-scope.cjs +5 -3
  57. package/dist/typescript/contexts/lexical-scope.mjs +6 -5
  58. package/dist/typescript/contexts/member-scope.cjs +5 -3
  59. package/dist/typescript/contexts/member-scope.mjs +6 -5
  60. package/dist/typescript/helpers/get-call-signature-props.mjs +1 -2
  61. package/dist/typescript/helpers/utilities.mjs +1 -2
  62. package/dist/yaml/components/yaml-file.cjs +92 -47
  63. package/dist/yaml/components/yaml-file.mjs +93 -49
  64. package/package.json +16 -17
  65. package/dist/core/components/index.d.cts +0 -5
  66. package/dist/core/components/index.d.mts +0 -5
  67. package/dist/core/components/output.d.cts +0 -24
  68. package/dist/core/components/output.d.cts.map +0 -1
  69. package/dist/core/components/output.d.mts +0 -24
  70. package/dist/core/components/output.d.mts.map +0 -1
  71. package/dist/core/components/output.mjs.map +0 -1
  72. package/dist/core/components/single-line-comment.d.cts +0 -23
  73. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  74. package/dist/core/components/single-line-comment.d.mts +0 -23
  75. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  76. package/dist/core/components/single-line-comment.mjs.map +0 -1
  77. package/dist/core/components/source-file.d.cts +0 -33
  78. package/dist/core/components/source-file.d.cts.map +0 -1
  79. package/dist/core/components/source-file.d.mts +0 -33
  80. package/dist/core/components/source-file.d.mts.map +0 -1
  81. package/dist/core/components/source-file.mjs.map +0 -1
  82. package/dist/core/components/spacing.d.cts +0 -24
  83. package/dist/core/components/spacing.d.cts.map +0 -1
  84. package/dist/core/components/spacing.d.mts +0 -24
  85. package/dist/core/components/spacing.d.mts.map +0 -1
  86. package/dist/core/components/spacing.mjs.map +0 -1
  87. package/dist/core/contexts/context.d.cts +0 -29
  88. package/dist/core/contexts/context.d.cts.map +0 -1
  89. package/dist/core/contexts/context.d.mts +0 -29
  90. package/dist/core/contexts/context.d.mts.map +0 -1
  91. package/dist/core/contexts/context.mjs.map +0 -1
  92. package/dist/core/contexts/index.d.cts +0 -4
  93. package/dist/core/contexts/index.d.mts +0 -4
  94. package/dist/core/contexts/meta.d.cts +0 -48
  95. package/dist/core/contexts/meta.d.cts.map +0 -1
  96. package/dist/core/contexts/meta.d.mts +0 -48
  97. package/dist/core/contexts/meta.d.mts.map +0 -1
  98. package/dist/core/contexts/meta.mjs.map +0 -1
  99. package/dist/core/contexts/reflection.d.cts +0 -53
  100. package/dist/core/contexts/reflection.d.cts.map +0 -1
  101. package/dist/core/contexts/reflection.d.mts +0 -53
  102. package/dist/core/contexts/reflection.d.mts.map +0 -1
  103. package/dist/core/contexts/reflection.mjs.map +0 -1
  104. package/dist/core/helpers/code.d.cts +0 -29
  105. package/dist/core/helpers/code.d.cts.map +0 -1
  106. package/dist/core/helpers/code.d.mts +0 -29
  107. package/dist/core/helpers/code.d.mts.map +0 -1
  108. package/dist/core/helpers/code.mjs.map +0 -1
  109. package/dist/core/helpers/index.d.cts +0 -2
  110. package/dist/core/helpers/index.d.mts +0 -2
  111. package/dist/core/index.d.cts +0 -9
  112. package/dist/core/index.d.mts +0 -9
  113. package/dist/helpers/capnp.d.cts +0 -87
  114. package/dist/helpers/capnp.d.cts.map +0 -1
  115. package/dist/helpers/capnp.d.mts +0 -87
  116. package/dist/helpers/capnp.d.mts.map +0 -1
  117. package/dist/helpers/capnp.mjs.map +0 -1
  118. package/dist/helpers/create-builtin.d.cts +0 -16
  119. package/dist/helpers/create-builtin.d.cts.map +0 -1
  120. package/dist/helpers/create-builtin.d.mts +0 -16
  121. package/dist/helpers/create-builtin.d.mts.map +0 -1
  122. package/dist/helpers/create-builtin.mjs.map +0 -1
  123. package/dist/helpers/index.d.cts +0 -5
  124. package/dist/helpers/index.d.mts +0 -5
  125. package/dist/helpers/refkey.d.cts +0 -13
  126. package/dist/helpers/refkey.d.cts.map +0 -1
  127. package/dist/helpers/refkey.d.mts +0 -13
  128. package/dist/helpers/refkey.d.mts.map +0 -1
  129. package/dist/helpers/refkey.mjs.map +0 -1
  130. package/dist/helpers/typescript.d.cts +0 -26
  131. package/dist/helpers/typescript.d.cts.map +0 -1
  132. package/dist/helpers/typescript.d.mts +0 -26
  133. package/dist/helpers/typescript.d.mts.map +0 -1
  134. package/dist/helpers/typescript.mjs.map +0 -1
  135. package/dist/index.d.cts +0 -19
  136. package/dist/index.d.cts.map +0 -1
  137. package/dist/index.d.mts +0 -19
  138. package/dist/index.d.mts.map +0 -1
  139. package/dist/index.mjs.map +0 -1
  140. package/dist/markdown/components/front-matter.d.cts +0 -16
  141. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  142. package/dist/markdown/components/front-matter.d.mts +0 -16
  143. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  144. package/dist/markdown/components/front-matter.mjs.map +0 -1
  145. package/dist/markdown/components/index.d.cts +0 -4
  146. package/dist/markdown/components/index.d.mts +0 -4
  147. package/dist/markdown/components/markdown-file.d.cts +0 -29
  148. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  149. package/dist/markdown/components/markdown-file.d.mts +0 -29
  150. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  151. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  152. package/dist/markdown/components/markdown-table.d.cts +0 -28
  153. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  154. package/dist/markdown/components/markdown-table.d.mts +0 -28
  155. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  156. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  157. package/dist/markdown/contexts/index.d.cts +0 -2
  158. package/dist/markdown/contexts/index.d.mts +0 -2
  159. package/dist/markdown/contexts/markdown-table.d.cts +0 -38
  160. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  161. package/dist/markdown/contexts/markdown-table.d.mts +0 -38
  162. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  163. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  164. package/dist/markdown/index.d.cts +0 -5
  165. package/dist/markdown/index.d.mts +0 -5
  166. package/dist/render.d.cts +0 -38
  167. package/dist/render.d.cts.map +0 -1
  168. package/dist/render.d.mts +0 -38
  169. package/dist/render.d.mts.map +0 -1
  170. package/dist/render.mjs.map +0 -1
  171. package/dist/types/components.d.cts +0 -142
  172. package/dist/types/components.d.cts.map +0 -1
  173. package/dist/types/components.d.mts +0 -142
  174. package/dist/types/components.d.mts.map +0 -1
  175. package/dist/types/index.d.cts +0 -3
  176. package/dist/types/index.d.mts +0 -3
  177. package/dist/types/plugin.d.cts +0 -39
  178. package/dist/types/plugin.d.cts.map +0 -1
  179. package/dist/types/plugin.d.mts +0 -39
  180. package/dist/types/plugin.d.mts.map +0 -1
  181. package/dist/typescript/components/builtin-file.d.cts +0 -35
  182. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  183. package/dist/typescript/components/builtin-file.d.mts +0 -35
  184. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  185. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  186. package/dist/typescript/components/class-declaration.d.cts +0 -145
  187. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  188. package/dist/typescript/components/class-declaration.d.mts +0 -145
  189. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  190. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  191. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -33
  192. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  193. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -33
  194. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  195. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  196. package/dist/typescript/components/entry-file.d.cts +0 -28
  197. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  198. package/dist/typescript/components/entry-file.d.mts +0 -28
  199. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  200. package/dist/typescript/components/entry-file.mjs.map +0 -1
  201. package/dist/typescript/components/index.d.cts +0 -15
  202. package/dist/typescript/components/index.d.mts +0 -15
  203. package/dist/typescript/components/infrastructure-file.d.cts +0 -21
  204. package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
  205. package/dist/typescript/components/infrastructure-file.d.mts +0 -21
  206. package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
  207. package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
  208. package/dist/typescript/components/interface-declaration.d.cts +0 -86
  209. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  210. package/dist/typescript/components/interface-declaration.d.mts +0 -86
  211. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  212. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  213. package/dist/typescript/components/object-declaration.d.cts +0 -30
  214. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  215. package/dist/typescript/components/object-declaration.d.mts +0 -30
  216. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  217. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  218. package/dist/typescript/components/property-name.d.cts +0 -24
  219. package/dist/typescript/components/property-name.d.cts.map +0 -1
  220. package/dist/typescript/components/property-name.d.mts +0 -24
  221. package/dist/typescript/components/property-name.d.mts.map +0 -1
  222. package/dist/typescript/components/property-name.mjs.map +0 -1
  223. package/dist/typescript/components/record-expression.d.cts +0 -13
  224. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  225. package/dist/typescript/components/record-expression.d.mts +0 -13
  226. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  227. package/dist/typescript/components/record-expression.mjs.map +0 -1
  228. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -44
  229. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  230. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -44
  231. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  232. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  233. package/dist/typescript/components/tsdoc.d.cts +0 -164
  234. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  235. package/dist/typescript/components/tsdoc.d.mts +0 -164
  236. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  237. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  238. package/dist/typescript/components/type-declaration.d.cts +0 -18
  239. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  240. package/dist/typescript/components/type-declaration.d.mts +0 -18
  241. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  242. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  243. package/dist/typescript/components/type-parameters.d.cts +0 -24
  244. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  245. package/dist/typescript/components/type-parameters.d.mts +0 -24
  246. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  247. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  248. package/dist/typescript/components/typescript-file.d.cts +0 -50
  249. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  250. package/dist/typescript/components/typescript-file.d.mts +0 -50
  251. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  252. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  253. package/dist/typescript/contexts/index.d.cts +0 -2
  254. package/dist/typescript/contexts/index.d.mts +0 -2
  255. package/dist/typescript/contexts/lexical-scope.d.cts +0 -17
  256. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  257. package/dist/typescript/contexts/lexical-scope.d.mts +0 -17
  258. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  259. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  260. package/dist/typescript/contexts/member-scope.d.cts +0 -20
  261. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  262. package/dist/typescript/contexts/member-scope.d.mts +0 -20
  263. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  264. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  265. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  266. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  267. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  268. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  269. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  270. package/dist/typescript/helpers/index.d.cts +0 -3
  271. package/dist/typescript/helpers/index.d.mts +0 -3
  272. package/dist/typescript/helpers/utilities.d.cts +0 -11
  273. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  274. package/dist/typescript/helpers/utilities.d.mts +0 -11
  275. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  276. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  277. package/dist/typescript/index.d.cts +0 -18
  278. package/dist/typescript/index.d.mts +0 -18
  279. package/dist/yaml/components/index.d.cts +0 -2
  280. package/dist/yaml/components/index.d.mts +0 -2
  281. package/dist/yaml/components/yaml-file.d.cts +0 -34
  282. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  283. package/dist/yaml/components/yaml-file.d.mts +0 -34
  284. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  285. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  286. package/dist/yaml/index.d.cts +0 -2
  287. package/dist/yaml/index.d.mts +0 -2
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.mjs","names":[],"sources":["../../../src/markdown/contexts/markdown-table.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\n\nexport interface MarkdownTableColumnContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n index: number;\n name: keyof T;\n align: \"left\" | \"right\" | \"center\";\n width: number;\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface> =\n createNamedContext<MarkdownTableColumnContextInterface>(\n \"MarkdownTableColumn\",\n {} as MarkdownTableColumnContextInterface\n );\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTableColumn() {\n return useContext<MarkdownTableColumnContextInterface>(\n MarkdownTableColumnContext\n );\n}\n\nexport interface MarkdownTableContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n columns: MarkdownTableColumnContextInterface<T>[];\n data: T[];\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface> =\n createContext<MarkdownTableContextInterface>({\n columns: [],\n data: []\n } as MarkdownTableContextInterface);\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTable() {\n return useContext<MarkdownTableContextInterface>(MarkdownTableContext);\n}\n"],"mappings":";;;;;;AAiCA,MAAa,6BACX,mBACE,uBACA,EAAE,CACH;;;;;;AAOH,SAAgB,yBAAyB;AACvC,QAAO,WACL,2BACD;;;;;AAaH,MAAa,uBACX,cAA6C;CAC3C,SAAS,EAAE;CACX,MAAM,EAAE;CACT,CAAkC;;;;;;AAOrC,SAAgB,mBAAmB;AACjC,QAAO,WAA0C,qBAAqB"}
@@ -1,5 +0,0 @@
1
- import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./components/front-matter.cjs";
2
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./components/markdown-file.cjs";
3
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.cjs";
4
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.cjs";
5
- export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
@@ -1,5 +0,0 @@
1
- import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./components/front-matter.mjs";
2
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./components/markdown-file.mjs";
3
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
4
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.mjs";
5
- export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
package/dist/render.d.cts DELETED
@@ -1,38 +0,0 @@
1
- import { Children, PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
-
4
- //#region src/render.d.ts
5
- /**
6
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.
7
- *
8
- * @example
9
- * ```tsx
10
- * import { render } from "@powerlines/plugin-alloy/render";
11
- *
12
- * await render(context, <> ... </>);
13
- * ```
14
- *
15
- * @param context - The Powerlines plugin context.
16
- * @param children - The children components to render.
17
- * @returns A promise that resolves when rendering is complete.
18
- */
19
- declare function render<TContext extends PluginContext>(context: TContext, children: Children): Promise<void>;
20
- /**
21
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.
22
- *
23
- * @example
24
- * ```tsx
25
- * import { renderString } from "@powerlines/plugin-alloy/render";
26
- *
27
- * const output = await renderString(context, <> ... </>);
28
- * ```
29
- *
30
- * @param context - The Powerlines plugin context.
31
- * @param children - The children components to render.
32
- * @param options - Optional print tree options.
33
- * @returns The rendered output as a string.
34
- */
35
- declare function renderString<TContext extends PluginContext>(context: TContext, children: Children, options?: PrintTreeOptions): string;
36
- //#endregion
37
- export { render, renderString };
38
- //# sourceMappingURL=render.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.d.cts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;AA4CA;;;;;;;;;;;;iBAAsB,MAAA,kBAAwB,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,GAAQ,OAAA;;;;;;AA2FpB;;;;;;;;;;iBAAgB,YAAA,kBAA8B,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,EACV,OAAA,GAAU,gBAAA"}
package/dist/render.d.mts DELETED
@@ -1,38 +0,0 @@
1
- import { Children, PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
-
4
- //#region src/render.d.ts
5
- /**
6
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.
7
- *
8
- * @example
9
- * ```tsx
10
- * import { render } from "@powerlines/plugin-alloy/render";
11
- *
12
- * await render(context, <> ... </>);
13
- * ```
14
- *
15
- * @param context - The Powerlines plugin context.
16
- * @param children - The children components to render.
17
- * @returns A promise that resolves when rendering is complete.
18
- */
19
- declare function render<TContext extends PluginContext>(context: TContext, children: Children): Promise<void>;
20
- /**
21
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.
22
- *
23
- * @example
24
- * ```tsx
25
- * import { renderString } from "@powerlines/plugin-alloy/render";
26
- *
27
- * const output = await renderString(context, <> ... </>);
28
- * ```
29
- *
30
- * @param context - The Powerlines plugin context.
31
- * @param children - The children components to render.
32
- * @param options - Optional print tree options.
33
- * @returns The rendered output as a string.
34
- */
35
- declare function renderString<TContext extends PluginContext>(context: TContext, children: Children, options?: PrintTreeOptions): string;
36
- //#endregion
37
- export { render, renderString };
38
- //# sourceMappingURL=render.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.d.mts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;AA4CA;;;;;;;;;;;;iBAAsB,MAAA,kBAAwB,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,GAAQ,OAAA;;;;;;AA2FpB;;;;;;;;;;iBAAgB,YAAA,kBAA8B,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,EACV,OAAA,GAAU,gBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.mjs","names":["Output"],"sources":["../src/render.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n printTree,\n PrintTreeOptions,\n renderAsync,\n renderTree,\n traverseOutput\n} from \"@alloy-js/core\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { PluginContext } from \"powerlines\";\nimport { MetaItem, Output } from \"./core\";\n\n/**\n * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.\n *\n * @example\n * ```tsx\n * import { render } from \"@powerlines/plugin-alloy/render\";\n *\n * await render(context, <> ... </>);\n * ```\n *\n * @param context - The Powerlines plugin context.\n * @param children - The children components to render.\n * @returns A promise that resolves when rendering is complete.\n */\nexport async function render<TContext extends PluginContext>(\n context: TContext,\n children: Children\n) {\n const meta = {} as Record<string, MetaItem>;\n const output = await renderAsync(\n <Output<TContext> context={context} meta={meta}>\n {children}\n </Output>\n );\n\n if (!Object.keys(output).length) {\n context.debug(\n \"No output files were rendered by Alloy-js component templates.\"\n );\n } else {\n context.debug(\n `Processing ${\n Object.keys(output).length\n } rendered output files from Alloy-js component templates.`\n );\n\n await traverseOutput(output, {\n visitDirectory: directory => {\n if (context.fs.existsSync(directory.path)) {\n return;\n }\n\n context.fs.mkdirSync(directory.path);\n },\n visitFile: file => {\n if (\"contents\" in file) {\n const metadata = meta[file.path] ?? {};\n if (metadata.kind === \"builtin\") {\n if (!metadata.id) {\n throw new Error(\n `Built-in file \"${\n file.path\n }\" is missing its ID in the render metadata.`\n );\n }\n\n context.emitBuiltinSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else if (metadata.kind === \"entry\") {\n context.emitEntrySync(file.contents, file.path, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n ...(metadata.typeDefinition ?? {})\n });\n } else if (metadata.kind === \"infrastructure\") {\n if (!metadata.id) {\n throw new Error(\n `Infrastructure file \"${\n file.path\n }\" is missing its ID in the render metadata.`\n );\n }\n\n context.emitInfrastructureSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else {\n context.emitSync(file.contents, file.path, metadata);\n }\n } else {\n context.fs.copySync(file.sourcePath, file.path);\n }\n }\n });\n }\n}\n\n/**\n * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.\n *\n * @example\n * ```tsx\n * import { renderString } from \"@powerlines/plugin-alloy/render\";\n *\n * const output = await renderString(context, <> ... </>);\n * ```\n *\n * @param context - The Powerlines plugin context.\n * @param children - The children components to render.\n * @param options - Optional print tree options.\n * @returns The rendered output as a string.\n */\nexport function renderString<TContext extends PluginContext>(\n context: TContext,\n children: Children,\n options?: PrintTreeOptions\n) {\n const tree = renderTree(\n <Output<TContext> context={context}>{children}</Output>\n );\n\n return printTree(tree, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4CA,eAAsB,OACpB,SACA,UACA;CACA,MAAM,OAAO,EAAE;CACf,MAAM,SAAS,MAAM,YACnB,oBAACA,UAAD;EAA2B;EAAe;EACvC;EACM,EACV;AAED,KAAI,CAAC,OAAO,KAAK,OAAO,CAAC,OACvB,SAAQ,MACN,iEACD;MACI;AACL,UAAQ,MACN,cACE,OAAO,KAAK,OAAO,CAAC,OACrB,2DACF;AAED,QAAM,eAAe,QAAQ;GAC3B,iBAAgB,cAAa;AAC3B,QAAI,QAAQ,GAAG,WAAW,UAAU,KAAK,CACvC;AAGF,YAAQ,GAAG,UAAU,UAAU,KAAK;;GAEtC,YAAW,SAAQ;AACjB,QAAI,cAAc,MAAM;KACtB,MAAM,WAAW,KAAK,KAAK,SAAS,EAAE;AACtC,SAAI,SAAS,SAAS,WAAW;AAC/B,UAAI,CAAC,SAAS,GACZ,OAAM,IAAI,MACR,kBACE,KAAK,KACN,6CACF;AAGH,cAAQ,gBAAgB,KAAK,UAAU,SAAS,IAAI;OAClD,YAAY,SAAS;OACrB,SAAS,SAAS;OAClB,WAAW,kBAAkB,KAAK,KAAK;OACxC,CAAC;gBACO,SAAS,SAAS,QAC3B,SAAQ,cAAc,KAAK,UAAU,KAAK,MAAM;MAC9C,YAAY,SAAS;MACrB,SAAS,SAAS;MAClB,GAAI,SAAS,kBAAkB,EAAE;MAClC,CAAC;cACO,SAAS,SAAS,kBAAkB;AAC7C,UAAI,CAAC,SAAS,GACZ,OAAM,IAAI,MACR,wBACE,KAAK,KACN,6CACF;AAGH,cAAQ,uBAAuB,KAAK,UAAU,SAAS,IAAI;OACzD,YAAY,SAAS;OACrB,SAAS,SAAS;OAClB,WAAW,kBAAkB,KAAK,KAAK;OACxC,CAAC;WAEF,SAAQ,SAAS,KAAK,UAAU,KAAK,MAAM,SAAS;UAGtD,SAAQ,GAAG,SAAS,KAAK,YAAY,KAAK,KAAK;;GAGpD,CAAC;;;;;;;;;;;;;;;;;;AAmBN,SAAgB,aACd,SACA,UACA,SACA;AAKA,QAAO,UAJM,WACX,oBAACA,UAAD;EAA2B;EAAU;EAAkB,EACxD,EAEsB,QAAQ"}
@@ -1,142 +0,0 @@
1
- import { Children, Context } from "@alloy-js/core";
2
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
3
- import { SourceFileContext } from "@alloy-js/typescript";
4
-
5
- //#region src/types/components.d.ts
6
- interface CopyOutputFile {
7
- kind: "file";
8
- path: string;
9
- sourcePath: string;
10
- /**
11
- * The format of the output files
12
- *
13
- * @remarks
14
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
15
- */
16
- preset?: StoragePreset;
17
- }
18
- interface WriteOutputFile {
19
- kind: "file" | "entry" | "builtin";
20
- path: string;
21
- contents: string;
22
- filetype: string;
23
- /**
24
- * The format of the output files
25
- *
26
- * @remarks
27
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
28
- */
29
- preset?: StoragePreset;
30
- }
31
- type OutputFile = (WriteOutputFile & {
32
- kind: "file";
33
- }) | (WriteOutputFile & {
34
- kind: "entry";
35
- typeDefinition?: ResolvedEntryTypeDefinition;
36
- }) | (WriteOutputFile & {
37
- kind: "builtin";
38
- id: string;
39
- }) | CopyOutputFile;
40
- interface OutputDirectory {
41
- kind: "directory";
42
- path: string;
43
- contents: (OutputDirectory | OutputFile)[];
44
- }
45
- interface RenderEntryContext {
46
- typeDefinition: ResolvedEntryTypeDefinition;
47
- }
48
- interface RenderBuiltinContext {
49
- id: string;
50
- }
51
- interface RenderOutputContext {
52
- mode?: StoragePreset;
53
- }
54
- interface CopyFileOutputContext {
55
- path?: string;
56
- sourcePath?: string;
57
- }
58
- interface RenderContext extends Context {
59
- meta?: {
60
- copyFile?: CopyFileOutputContext;
61
- /**
62
- * The current context for the built-in module.
63
- */
64
- builtin?: RenderBuiltinContext;
65
- /**
66
- * The current context for the application entrypoint file being rendered.
67
- */
68
- entry?: RenderEntryContext;
69
- /**
70
- * The current context for output rendering.
71
- */
72
- output?: RenderOutputContext;
73
- } & Record<string, any>;
74
- }
75
- /**
76
- * A type that represents the props of a component that can have children.
77
- */
78
- interface ComponentProps {
79
- children?: Children;
80
- }
81
- /**
82
- * A type that requires the `children` prop in a component.
83
- */
84
- type ComponentPropsWithChildren = Omit<ComponentProps, "children"> & Required<Pick<ComponentProps, "children">>;
85
- interface BuiltinSourceFileContext extends SourceFileContext {
86
- /**
87
- * The runtime module identifier.
88
- */
89
- id: string;
90
- }
91
- interface ReflectionOverrideInterface<T> {
92
- name?: string | Children;
93
- type?: string | Children;
94
- extends?: string | false;
95
- defaultValue?: Partial<T>;
96
- }
97
- interface TypescriptFileImportItem {
98
- name: string;
99
- default?: boolean;
100
- alias?: string;
101
- type?: boolean;
102
- }
103
- type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
104
- interface SourceFileHeaderProps extends ComponentProps {
105
- /**
106
- * If true, disables the ESLint directive at the top of the file.
107
- *
108
- * @defaultValue true
109
- */
110
- disableEslint?: boolean;
111
- /**
112
- * If true, disables the Biome directive at the top of the file.
113
- *
114
- * @defaultValue true
115
- */
116
- disableBiome?: boolean;
117
- /**
118
- * If true, disables the Prettier directive at the top of the file.
119
- *
120
- * @defaultValue false
121
- */
122
- disablePrettier?: boolean;
123
- }
124
- declare type __ΩCopyOutputFile = any[];
125
- declare type __ΩWriteOutputFile = any[];
126
- declare type __ΩOutputFile = any[];
127
- declare type __ΩOutputDirectory = any[];
128
- declare type __ΩRenderEntryContext = any[];
129
- declare type __ΩRenderBuiltinContext = any[];
130
- declare type __ΩRenderOutputContext = any[];
131
- declare type __ΩCopyFileOutputContext = any[];
132
- declare type __ΩRenderContext = any[];
133
- declare type __ΩComponentProps = any[];
134
- declare type __ΩComponentPropsWithChildren = any[];
135
- declare type __ΩBuiltinSourceFileContext = any[];
136
- declare type __ΩReflectionOverrideInterface = any[];
137
- declare type __ΩTypescriptFileImportItem = any[];
138
- declare type __ΩTypescriptFileImports = any[];
139
- declare type __ΩSourceFileHeaderProps = any[];
140
- //#endregion
141
- export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
142
- //# sourceMappingURL=components.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.cts","names":[],"sources":["../../src/types/components.ts"],"mappings":";;;;;UAsBiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,UAAA;;;;;;;EAQA,MAAA,GAAS,aAAA;AAAA;AAAA,UAGM,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA;EAHA;;;;;;EAWA,MAAA,GAAS,aAAA;AAAA;AAAA,KAGC,UAAA,IACP,eAAA;EAAoB,IAAA;AAAA,MACpB,eAAA;EACC,IAAA;EACA,cAAA,GAAiB,2BAAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAA;AAAA;AAAA,UAGd,kBAAA;EACf,cAAA,EAAgB,2BAAA;AAAA;AAAA,UAGD,oBAAA;EACf,EAAA;AAAA;AAAA,UAGe,mBAAA;EACf,IAAA,GAAO,aAAA;AAAA;AAAA,UAGQ,qBAAA;EACf,IAAA;EACA,UAAA;AAAA;AAAA,UAGe,aAAA,SAAsB,OAAA;EACrC,IAAA;IACE,QAAA,GAAW,qBAAA;IAtBgB;;;IA2B3B,OAAA,GAAU,oBAAA;IAxBqB;;;IA6B/B,KAAA,GAAQ,kBAAA;IAzBK;;;IA8Bb,MAAA,GAAS,mBAAA;EAAA,IACP,MAAA;AAAA;;;;UAMW,cAAA;EACf,QAAA,GAAW,QAAA;AAAA;;;;KAMD,0BAAA,GAA6B,IAAA,CAAK,cAAA,gBAC5C,QAAA,CAAS,IAAA,CAAK,cAAA;AAAA,UAEC,wBAAA,SAAiC,iBAAA;;;;EAIhD,EAAA;AAAA;AAAA,UAGe,2BAAA;EACf,IAAA,YAAgB,QAAA;EAChB,IAAA,YAAgB,QAAA;EAChB,OAAA;EACA,YAAA,GAAe,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGR,wBAAA;EACf,IAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,MAAA,yBAElB,KAAA,CAAM,wBAAA;AAAA,UAGP,qBAAA,SAA8B,cAAA;EA1CzC;;;AAMN;;EA0CE,aAAA;EAzCA;;AAMF;;;EA0CE,YAAA;EA1CuC;;;;;EAiDvC,eAAA;AAAA;AAAA"}
@@ -1,142 +0,0 @@
1
- import { Children, Context } from "@alloy-js/core";
2
- import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
3
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
4
-
5
- //#region src/types/components.d.ts
6
- interface CopyOutputFile {
7
- kind: "file";
8
- path: string;
9
- sourcePath: string;
10
- /**
11
- * The format of the output files
12
- *
13
- * @remarks
14
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
15
- */
16
- preset?: StoragePreset;
17
- }
18
- interface WriteOutputFile {
19
- kind: "file" | "entry" | "builtin";
20
- path: string;
21
- contents: string;
22
- filetype: string;
23
- /**
24
- * The format of the output files
25
- *
26
- * @remarks
27
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
28
- */
29
- preset?: StoragePreset;
30
- }
31
- type OutputFile = (WriteOutputFile & {
32
- kind: "file";
33
- }) | (WriteOutputFile & {
34
- kind: "entry";
35
- typeDefinition?: ResolvedEntryTypeDefinition;
36
- }) | (WriteOutputFile & {
37
- kind: "builtin";
38
- id: string;
39
- }) | CopyOutputFile;
40
- interface OutputDirectory {
41
- kind: "directory";
42
- path: string;
43
- contents: (OutputDirectory | OutputFile)[];
44
- }
45
- interface RenderEntryContext {
46
- typeDefinition: ResolvedEntryTypeDefinition;
47
- }
48
- interface RenderBuiltinContext {
49
- id: string;
50
- }
51
- interface RenderOutputContext {
52
- mode?: StoragePreset;
53
- }
54
- interface CopyFileOutputContext {
55
- path?: string;
56
- sourcePath?: string;
57
- }
58
- interface RenderContext extends Context {
59
- meta?: {
60
- copyFile?: CopyFileOutputContext;
61
- /**
62
- * The current context for the built-in module.
63
- */
64
- builtin?: RenderBuiltinContext;
65
- /**
66
- * The current context for the application entrypoint file being rendered.
67
- */
68
- entry?: RenderEntryContext;
69
- /**
70
- * The current context for output rendering.
71
- */
72
- output?: RenderOutputContext;
73
- } & Record<string, any>;
74
- }
75
- /**
76
- * A type that represents the props of a component that can have children.
77
- */
78
- interface ComponentProps {
79
- children?: Children;
80
- }
81
- /**
82
- * A type that requires the `children` prop in a component.
83
- */
84
- type ComponentPropsWithChildren = Omit<ComponentProps, "children"> & Required<Pick<ComponentProps, "children">>;
85
- interface BuiltinSourceFileContext extends SourceFileContext$1 {
86
- /**
87
- * The runtime module identifier.
88
- */
89
- id: string;
90
- }
91
- interface ReflectionOverrideInterface<T> {
92
- name?: string | Children;
93
- type?: string | Children;
94
- extends?: string | false;
95
- defaultValue?: Partial<T>;
96
- }
97
- interface TypescriptFileImportItem {
98
- name: string;
99
- default?: boolean;
100
- alias?: string;
101
- type?: boolean;
102
- }
103
- type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
104
- interface SourceFileHeaderProps extends ComponentProps {
105
- /**
106
- * If true, disables the ESLint directive at the top of the file.
107
- *
108
- * @defaultValue true
109
- */
110
- disableEslint?: boolean;
111
- /**
112
- * If true, disables the Biome directive at the top of the file.
113
- *
114
- * @defaultValue true
115
- */
116
- disableBiome?: boolean;
117
- /**
118
- * If true, disables the Prettier directive at the top of the file.
119
- *
120
- * @defaultValue false
121
- */
122
- disablePrettier?: boolean;
123
- }
124
- declare type __ΩCopyOutputFile = any[];
125
- declare type __ΩWriteOutputFile = any[];
126
- declare type __ΩOutputFile = any[];
127
- declare type __ΩOutputDirectory = any[];
128
- declare type __ΩRenderEntryContext = any[];
129
- declare type __ΩRenderBuiltinContext = any[];
130
- declare type __ΩRenderOutputContext = any[];
131
- declare type __ΩCopyFileOutputContext = any[];
132
- declare type __ΩRenderContext = any[];
133
- declare type __ΩComponentProps = any[];
134
- declare type __ΩComponentPropsWithChildren = any[];
135
- declare type __ΩBuiltinSourceFileContext = any[];
136
- declare type __ΩReflectionOverrideInterface = any[];
137
- declare type __ΩTypescriptFileImportItem = any[];
138
- declare type __ΩTypescriptFileImports = any[];
139
- declare type __ΩSourceFileHeaderProps = any[];
140
- //#endregion
141
- export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
142
- //# sourceMappingURL=components.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.mts","names":[],"sources":["../../src/types/components.ts"],"mappings":";;;;;UAsBiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,UAAA;;;;;;;EAQA,MAAA,GAAS,aAAA;AAAA;AAAA,UAGM,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA;EAHA;;;;;;EAWA,MAAA,GAAS,aAAA;AAAA;AAAA,KAGC,UAAA,IACP,eAAA;EAAoB,IAAA;AAAA,MACpB,eAAA;EACC,IAAA;EACA,cAAA,GAAiB,2BAAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAA;AAAA;AAAA,UAGd,kBAAA;EACf,cAAA,EAAgB,2BAAA;AAAA;AAAA,UAGD,oBAAA;EACf,EAAA;AAAA;AAAA,UAGe,mBAAA;EACf,IAAA,GAAO,aAAA;AAAA;AAAA,UAGQ,qBAAA;EACf,IAAA;EACA,UAAA;AAAA;AAAA,UAGe,aAAA,SAAsB,OAAA;EACrC,IAAA;IACE,QAAA,GAAW,qBAAA;IAtBgB;;;IA2B3B,OAAA,GAAU,oBAAA;IAxBqB;;;IA6B/B,KAAA,GAAQ,kBAAA;IAzBK;;;IA8Bb,MAAA,GAAS,mBAAA;EAAA,IACP,MAAA;AAAA;;;;UAMW,cAAA;EACf,QAAA,GAAW,QAAA;AAAA;;;;KAMD,0BAAA,GAA6B,IAAA,CAAK,cAAA,gBAC5C,QAAA,CAAS,IAAA,CAAK,cAAA;AAAA,UAEC,wBAAA,SAAiC,mBAAA;;;;EAIhD,EAAA;AAAA;AAAA,UAGe,2BAAA;EACf,IAAA,YAAgB,QAAA;EAChB,IAAA,YAAgB,QAAA;EAChB,OAAA;EACA,YAAA,GAAe,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGR,wBAAA;EACf,IAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,MAAA,yBAElB,KAAA,CAAM,wBAAA;AAAA,UAGP,qBAAA,SAA8B,cAAA;EA1CzC;;;AAMN;;EA0CE,aAAA;EAzCA;;AAMF;;;EA0CE,YAAA;EA1CuC;;;;;EAiDvC,eAAA;AAAA;AAAA"}
@@ -1,3 +0,0 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.cjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./plugin.cjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -1,3 +0,0 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./plugin.mjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -1,39 +0,0 @@
1
- import { PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types/plugin";
4
-
5
- //#region src/types/plugin.d.ts
6
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
7
- /**
8
- * If true, the Alloy framework is used to generate Typescript output files.
9
- *
10
- * @defaultValue true
11
- */
12
- typescript?: boolean;
13
- /**
14
- * If true, the Alloy framework is used to generate JSON output files.
15
- *
16
- * @defaultValue false
17
- */
18
- json?: boolean;
19
- /**
20
- * If true, the Alloy framework is used to generate Markdown output files.
21
- *
22
- * @defaultValue false
23
- */
24
- markdown?: boolean;
25
- };
26
- type AlloyPluginUserConfig = BabelPluginUserConfig & {
27
- alloy?: AlloyPluginOptions;
28
- };
29
- type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
30
- alloy: AlloyPluginOptions;
31
- };
32
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig>;
33
- declare type __ΩAlloyPluginOptions = any[];
34
- declare type __ΩAlloyPluginUserConfig = any[];
35
- declare type __ΩAlloyPluginResolvedConfig = any[];
36
- declare type __ΩAlloyPluginContext = any[];
37
- //#endregion
38
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig };
39
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAyBY,kBAAA,GAAqB,OAAA,CAAQ,gBAAA;;AAAzC;;;;EAME,UAAA;EANuC;;;;;EAavC,IAAA;EAUU;;;;;EAHV,QAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,qBAAA;EAClC,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,yBAAA,GAA4B,yBAAA;EACtC,KAAA,EAAO,kBAAA;AAAA;AAAA,KAGG,kBAAA,yBACc,yBAAA,GAA4B,yBAAA,IAClD,aAAA,CAAc,eAAA;AAAA"}
@@ -1,39 +0,0 @@
1
- import { PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types/plugin";
4
-
5
- //#region src/types/plugin.d.ts
6
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
7
- /**
8
- * If true, the Alloy framework is used to generate Typescript output files.
9
- *
10
- * @defaultValue true
11
- */
12
- typescript?: boolean;
13
- /**
14
- * If true, the Alloy framework is used to generate JSON output files.
15
- *
16
- * @defaultValue false
17
- */
18
- json?: boolean;
19
- /**
20
- * If true, the Alloy framework is used to generate Markdown output files.
21
- *
22
- * @defaultValue false
23
- */
24
- markdown?: boolean;
25
- };
26
- type AlloyPluginUserConfig = BabelPluginUserConfig & {
27
- alloy?: AlloyPluginOptions;
28
- };
29
- type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
30
- alloy: AlloyPluginOptions;
31
- };
32
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig>;
33
- declare type __ΩAlloyPluginOptions = any[];
34
- declare type __ΩAlloyPluginUserConfig = any[];
35
- declare type __ΩAlloyPluginResolvedConfig = any[];
36
- declare type __ΩAlloyPluginContext = any[];
37
- //#endregion
38
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig };
39
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAyBY,kBAAA,GAAqB,OAAA,CAAQ,gBAAA;;AAAzC;;;;EAME,UAAA;EANuC;;;;;EAavC,IAAA;EAUU;;;;;EAHV,QAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,qBAAA;EAClC,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,yBAAA,GAA4B,yBAAA;EACtC,KAAA,EAAO,kBAAA;AAAA;AAAA,KAGG,kBAAA,yBACc,yBAAA,GAA4B,yBAAA,IAClD,aAAA,CAAc,eAAA;AAAA"}
@@ -1,35 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.cjs";
2
- import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core0 from "@alloy-js/core";
4
-
5
- //#region src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- /**
26
- * A base component representing a Powerlines generated Typescript source file.
27
- *
28
- * @param props - The properties for the source file.
29
- * @returns The rendered source file component.
30
- */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core0.Children;
32
- declare type __ΩBuiltinFileProps = any[];
33
- //#endregion
34
- export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
35
- //# sourceMappingURL=builtin-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.d.cts","names":[],"sources":["../../../src/typescript/components/builtin-file.tsx"],"mappings":";;;;;KAgCY,gBAAA,GAAmB,IAAA,CAAK,mBAAA,YAClC,IAAA,CAAK,gBAAA;;;AADP;;;;EAQI,EAAA;EAPG;;;EAYH,WAAA;EAb2B;;;;;EAoB3B,GAAA;AAAA;;;AASJ;;;;iBAAgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,eAAA,CAAA,QAAA;AAAA"}
@@ -1,35 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.mjs";
2
- import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core0 from "@alloy-js/core";
4
-
5
- //#region src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- /**
26
- * A base component representing a Powerlines generated Typescript source file.
27
- *
28
- * @param props - The properties for the source file.
29
- * @returns The rendered source file component.
30
- */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core0.Children;
32
- declare type __ΩBuiltinFileProps = any[];
33
- //#endregion
34
- export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
35
- //# sourceMappingURL=builtin-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.d.mts","names":[],"sources":["../../../src/typescript/components/builtin-file.tsx"],"mappings":";;;;;KAgCY,gBAAA,GAAmB,IAAA,CAAK,mBAAA,YAClC,IAAA,CAAK,gBAAA;;;AADP;;;;EAQI,EAAA;EAPG;;;EAYH,WAAA;EAb2B;;;;;EAoB3B,GAAA;AAAA;;;AASJ;;;;iBAAgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,eAAA,CAAA,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.mjs","names":[],"sources":["../../../src/typescript/components/builtin-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport type { TSDocModuleProps } from \"./tsdoc\";\nimport { TSDocModule } from \"./tsdoc\";\nimport {\n TypescriptFile,\n TypescriptFileHeader,\n TypescriptFileHeaderImports,\n TypescriptFileProps\n} from \"./typescript-file\";\n\nexport type BuiltinFileProps = Omit<TypescriptFileProps, \"path\"> &\n Omit<TSDocModuleProps, \"name\"> & {\n /**\n * The runtime module identifier.\n *\n * @remarks\n * This value will be included after the \\`storm:\\` prefix in the import statement.\n */\n id: string;\n\n /**\n * The description for the builtin module.\n */\n description?: string;\n\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BuiltinFile(props: BuiltinFileProps) {\n const [{ children, imports, builtinImports, id, description, tsx }, rest] =\n splitProps(props, [\n \"children\",\n \"imports\",\n \"builtinImports\",\n \"id\",\n \"description\",\n \"tsx\"\n ]);\n\n const context = usePowerlinesSafe();\n const path = computed(() =>\n replacePath(\n `${!isSet(tsx) ? id : replaceExtension(id)}${\n hasFileExtension(id) && !isSet(tsx) ? \"\" : tsx ? \".tsx\" : \".ts\"\n }`,\n context?.builtinsPath\n )\n );\n\n return (\n <TypescriptFile\n header={\n <TypescriptFileHeader\n header={<TSDocModule name={id}>{description}</TSDocModule>}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n />\n </TypescriptFileHeader>\n }\n meta={{\n kind: \"builtin\",\n extension: tsx ? \"tsx\" : \"ts\",\n id: replaceExtension(id)\n }}\n {...rest}\n path={path.value}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA6DA,SAAgB,YAAY,OAAyB;CACnD,MAAM,CAAC,EAAE,UAAU,SAAS,gBAAgB,IAAI,aAAa,OAAO,QAClE,WAAW,OAAO;EAChB;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;CAEJ,MAAM,UAAU,mBAAmB;CACnC,MAAM,OAAO,eACX,YACE,GAAG,CAAC,MAAM,IAAI,GAAG,KAAK,iBAAiB,GAAG,GACxC,iBAAiB,GAAG,IAAI,CAAC,MAAM,IAAI,GAAG,KAAK,MAAM,SAAS,SAE5D,SAAS,aACV,CACF;AAED,QACE,oBAAC,gBAAD;EACE,QACE,oBAAC,sBAAD;GACE,QAAQ,oBAAC,aAAD;IAAa,MAAM;cAAK;IAA0B;aAC1D,oBAAC,6BAAD;IACW;IACO;IAChB;GACmB;EAEzB,MAAM;GACJ,MAAM;GACN,WAAW,MAAM,QAAQ;GACzB,IAAI,iBAAiB,GAAG;GACzB;EACD,GAAI;EACJ,MAAM,KAAK;EACV;EACc"}