@powerlines/plugin-alloy 0.19.24 → 0.19.26

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 (160) hide show
  1. package/dist/{builtin-file-uzudbU6M.mjs → builtin-file-B8Y36s1a.mjs} +4 -4
  2. package/dist/{builtin-file-uzudbU6M.mjs.map → builtin-file-B8Y36s1a.mjs.map} +1 -1
  3. package/dist/{builtin-file-Sx0sbgXZ.d.cts → builtin-file-BvEeitxx.d.cts} +2 -2
  4. package/dist/{builtin-file-Sx0sbgXZ.d.cts.map → builtin-file-BvEeitxx.d.cts.map} +1 -1
  5. package/dist/builtin-file-q7bTHn0Z.d.mts +35 -0
  6. package/dist/builtin-file-q7bTHn0Z.d.mts.map +1 -0
  7. package/dist/{builtin-file-V_vMh8s8.cjs → builtin-file-vG9RwKpd.cjs} +3 -3
  8. package/dist/{context-CdPajCh6.mjs → context-BaVJCPfX.mjs} +1 -1
  9. package/dist/{context-CdPajCh6.mjs.map → context-BaVJCPfX.mjs.map} +1 -1
  10. package/dist/core/components/index.cjs +4 -4
  11. package/dist/core/components/index.mjs +4 -4
  12. package/dist/core/components/output.cjs +2 -2
  13. package/dist/core/components/output.mjs +2 -2
  14. package/dist/core/components/source-file.cjs +2 -2
  15. package/dist/core/components/source-file.mjs +2 -2
  16. package/dist/core/contexts/context.cjs +1 -1
  17. package/dist/core/contexts/context.mjs +1 -1
  18. package/dist/core/contexts/index.cjs +2 -2
  19. package/dist/core/contexts/index.mjs +2 -2
  20. package/dist/core/contexts/meta.cjs +1 -1
  21. package/dist/core/contexts/meta.mjs +1 -1
  22. package/dist/core/index.cjs +4 -4
  23. package/dist/core/index.mjs +4 -4
  24. package/dist/{dynamic-import-statement-CkTDZa9C.d.cts → dynamic-import-statement-BgLOAe4B.d.cts} +3 -3
  25. package/dist/{dynamic-import-statement-BMF8UCoZ.d.cts.map → dynamic-import-statement-BgLOAe4B.d.cts.map} +1 -1
  26. package/dist/{dynamic-import-statement-BMF8UCoZ.d.cts → dynamic-import-statement-C7f6CN_b.d.mts} +3 -3
  27. package/dist/{dynamic-import-statement-CkTDZa9C.d.cts.map → dynamic-import-statement-C7f6CN_b.d.mts.map} +1 -1
  28. package/dist/dynamic-import-statement-kxVxtCBQ.d.cts +33 -0
  29. package/dist/dynamic-import-statement-kxVxtCBQ.d.cts.map +1 -0
  30. package/dist/{entry-file-Big6nfUK.cjs → entry-file-BF1TZjhp.cjs} +2 -2
  31. package/dist/{entry-file-6OSh_HPP.d.mts → entry-file-DVU9IAeI.d.cts} +4 -4
  32. package/dist/{entry-file-6OSh_HPP.d.mts.map → entry-file-DVU9IAeI.d.cts.map} +1 -1
  33. package/dist/{entry-file-CI22kUBs.d.cts → entry-file-Dbo9mrsH.d.cts} +3 -3
  34. package/dist/{entry-file-CI22kUBs.d.cts.map → entry-file-Dbo9mrsH.d.cts.map} +1 -1
  35. package/dist/{entry-file-BwAnSku3.mjs → entry-file-DzlSog-0.mjs} +3 -3
  36. package/dist/{entry-file-BwAnSku3.mjs.map → entry-file-DzlSog-0.mjs.map} +1 -1
  37. package/dist/{front-matter-D_wSuNkq.d.cts → front-matter-DpKD40Zz.d.cts} +3 -3
  38. package/dist/{front-matter-DNU08CaL.d.mts.map → front-matter-DpKD40Zz.d.cts.map} +1 -1
  39. package/dist/{front-matter-DNU08CaL.d.mts → front-matter-s2lylY4i.d.cts} +1 -1
  40. package/dist/{front-matter-BdXzBycV.d.cts.map → front-matter-s2lylY4i.d.cts.map} +1 -1
  41. package/dist/index.cjs +2 -13
  42. package/dist/index.d.cts.map +1 -1
  43. package/dist/index.d.mts.map +1 -1
  44. package/dist/index.mjs +2 -13
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/markdown/components/front-matter.d.cts +1 -1
  47. package/dist/markdown/components/index.cjs +4 -4
  48. package/dist/markdown/components/index.d.cts +3 -3
  49. package/dist/markdown/components/index.mjs +4 -4
  50. package/dist/markdown/components/markdown-file.cjs +4 -4
  51. package/dist/markdown/components/markdown-file.d.cts +2 -2
  52. package/dist/markdown/components/markdown-file.mjs +4 -4
  53. package/dist/markdown/components/markdown-table.d.cts +1 -1
  54. package/dist/markdown/index.cjs +4 -4
  55. package/dist/markdown/index.d.cts +3 -3
  56. package/dist/markdown/index.mjs +4 -4
  57. package/dist/{markdown-file-B7Epw0lo.d.mts → markdown-file-B1dmnZ6l.d.mts} +5 -5
  58. package/dist/{markdown-file-B7Epw0lo.d.mts.map → markdown-file-B1dmnZ6l.d.mts.map} +1 -1
  59. package/dist/{markdown-file-B6gbsDmK.cjs → markdown-file-BDzUAptw.cjs} +2 -2
  60. package/dist/{markdown-file-DD1Uc7fZ.d.cts → markdown-file-BdgX4c0b.d.cts} +6 -6
  61. package/dist/{markdown-file-BNzfeQa-.d.cts.map → markdown-file-BdgX4c0b.d.cts.map} +1 -1
  62. package/dist/{markdown-file-BNzfeQa-.d.cts → markdown-file-CwMc-alS.d.cts} +5 -5
  63. package/dist/markdown-file-CwMc-alS.d.cts.map +1 -0
  64. package/dist/{markdown-file-k5ep-0VI.mjs → markdown-file-DLIS2yeG.mjs} +3 -3
  65. package/dist/{markdown-file-k5ep-0VI.mjs.map → markdown-file-DLIS2yeG.mjs.map} +1 -1
  66. package/dist/markdown-table-BVtAeDoa.d.mts +28 -0
  67. package/dist/markdown-table-BVtAeDoa.d.mts.map +1 -0
  68. package/dist/markdown-table-CZMEY6IR.d.cts.map +1 -1
  69. package/dist/{markdown-table-BPAguEBC.d.cts → markdown-table-Cv6HmRUB.d.cts} +5 -5
  70. package/dist/markdown-table-Cv6HmRUB.d.cts.map +1 -0
  71. package/dist/markdown-table-D5Tg3LLV.d.cts +28 -0
  72. package/dist/markdown-table-D5Tg3LLV.d.cts.map +1 -0
  73. package/dist/{meta-D0pfCtdR.mjs → meta-BuwJuxY9.mjs} +1 -1
  74. package/dist/{meta-D0pfCtdR.mjs.map → meta-BuwJuxY9.mjs.map} +1 -1
  75. package/dist/{output-CPbwcL2j.mjs → output-BehYSTRr.mjs} +2 -2
  76. package/dist/{output-CPbwcL2j.mjs.map → output-BehYSTRr.mjs.map} +1 -1
  77. package/dist/{output-B52VAyyC.cjs → output-Ck9L8v3E.cjs} +1 -1
  78. package/dist/output-gLuHZTGo.d.mts +19 -0
  79. package/dist/output-gLuHZTGo.d.mts.map +1 -0
  80. package/dist/single-line-comment-C4oS5eSd.d.mts +23 -0
  81. package/dist/single-line-comment-C4oS5eSd.d.mts.map +1 -0
  82. package/dist/single-line-comment-CBaZAKTr.d.cts +23 -0
  83. package/dist/single-line-comment-CBaZAKTr.d.cts.map +1 -0
  84. package/dist/{source-file-MLTzYO0w.mjs → source-file-B5FSrvOa.mjs} +2 -2
  85. package/dist/{source-file-MLTzYO0w.mjs.map → source-file-B5FSrvOa.mjs.map} +1 -1
  86. package/dist/{source-file-BCcq9Me3.cjs → source-file-C8ntga6V.cjs} +1 -1
  87. package/dist/{source-file-ZzGhiuHr.d.cts → source-file-OtWS66Kr.d.cts} +3 -3
  88. package/dist/{source-file-ZzGhiuHr.d.cts.map → source-file-OtWS66Kr.d.cts.map} +1 -1
  89. package/dist/tsdoc-BpOXtq0v.d.cts.map +1 -1
  90. package/dist/{tsdoc-BufL8muf.cjs → tsdoc-fSRc8v2O.cjs} +1 -1
  91. package/dist/{tsdoc-DB1Qzwsn.mjs → tsdoc-prhuuYav.mjs} +2 -2
  92. package/dist/{tsdoc-DB1Qzwsn.mjs.map → tsdoc-prhuuYav.mjs.map} +1 -1
  93. package/dist/{tsdoc-reflection-Cov5Qh1c.cjs → tsdoc-reflection-BpkFCXw6.cjs} +1 -1
  94. package/dist/{tsdoc-reflection-BcTrWAwt.mjs → tsdoc-reflection-CQX-iDtz.mjs} +2 -2
  95. package/dist/{tsdoc-reflection-BcTrWAwt.mjs.map → tsdoc-reflection-CQX-iDtz.mjs.map} +1 -1
  96. package/dist/{tsdoc-reflection-BrqOulOQ.d.cts → tsdoc-reflection-hz0WQ70o.d.cts} +5 -5
  97. package/dist/{tsdoc-reflection-BOeS3c66.d.mts.map → tsdoc-reflection-hz0WQ70o.d.cts.map} +1 -1
  98. package/dist/{tsdoc-reflection-DU6zoCVk.d.cts → tsdoc-reflection-ycF-PiB9.d.cts} +5 -5
  99. package/dist/{tsdoc-reflection-BrqOulOQ.d.cts.map → tsdoc-reflection-ycF-PiB9.d.cts.map} +1 -1
  100. package/dist/typescript/components/builtin-file.cjs +6 -6
  101. package/dist/typescript/components/builtin-file.mjs +6 -6
  102. package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
  103. package/dist/typescript/components/entry-file.cjs +5 -5
  104. package/dist/typescript/components/entry-file.d.cts +1 -1
  105. package/dist/typescript/components/entry-file.d.mts +1 -1
  106. package/dist/typescript/components/entry-file.mjs +5 -5
  107. package/dist/typescript/components/index.cjs +10 -10
  108. package/dist/typescript/components/index.d.cts +5 -5
  109. package/dist/typescript/components/index.d.mts +2 -2
  110. package/dist/typescript/components/index.mjs +10 -10
  111. package/dist/typescript/components/tsdoc-reflection.cjs +3 -3
  112. package/dist/typescript/components/tsdoc-reflection.d.cts +1 -1
  113. package/dist/typescript/components/tsdoc-reflection.d.mts +1 -1
  114. package/dist/typescript/components/tsdoc-reflection.mjs +3 -3
  115. package/dist/typescript/components/tsdoc.cjs +2 -2
  116. package/dist/typescript/components/tsdoc.mjs +2 -2
  117. package/dist/typescript/components/typescript-file.cjs +4 -4
  118. package/dist/typescript/components/typescript-file.mjs +4 -4
  119. package/dist/typescript/components/typescript-interface.cjs +4 -4
  120. package/dist/typescript/components/typescript-interface.d.cts +1 -1
  121. package/dist/typescript/components/typescript-interface.mjs +4 -4
  122. package/dist/typescript/components/typescript-object.cjs +4 -4
  123. package/dist/typescript/components/typescript-object.d.cts +1 -1
  124. package/dist/typescript/components/typescript-object.mjs +4 -4
  125. package/dist/typescript/index.cjs +10 -10
  126. package/dist/typescript/index.d.cts +5 -5
  127. package/dist/typescript/index.d.mts +2 -2
  128. package/dist/typescript/index.mjs +10 -10
  129. package/dist/{typescript-file-BqsB2ASG.d.cts → typescript-file--NT6aFEW.d.cts} +2 -2
  130. package/dist/{typescript-file-BqsB2ASG.d.cts.map → typescript-file--NT6aFEW.d.cts.map} +1 -1
  131. package/dist/{typescript-file-DJy5gCL9.mjs → typescript-file-CNCLRiyf.mjs} +3 -3
  132. package/dist/{typescript-file-DJy5gCL9.mjs.map → typescript-file-CNCLRiyf.mjs.map} +1 -1
  133. package/dist/{typescript-file-D8ACLdIR.cjs → typescript-file-DKYD5v5W.cjs} +2 -2
  134. package/dist/{typescript-interface-CGQ0pwib.mjs → typescript-interface-BnRXH_zM.mjs} +2 -2
  135. package/dist/{typescript-interface-CGQ0pwib.mjs.map → typescript-interface-BnRXH_zM.mjs.map} +1 -1
  136. package/dist/{typescript-interface-Q4trMyzm.cjs → typescript-interface-DC2d5S0V.cjs} +1 -1
  137. package/dist/{typescript-interface-C1lcUzTa.d.cts → typescript-interface-DX0WJLCa.d.mts} +6 -6
  138. package/dist/{typescript-interface-C1lcUzTa.d.cts.map → typescript-interface-DX0WJLCa.d.mts.map} +1 -1
  139. package/dist/{typescript-interface-Xgm71cgZ.d.cts → typescript-interface-LTD6nhQZ.d.cts} +4 -4
  140. package/dist/{typescript-interface-Xgm71cgZ.d.cts.map → typescript-interface-LTD6nhQZ.d.cts.map} +1 -1
  141. package/dist/{typescript-object-DSdGl3Ha.d.cts → typescript-object-B7G5A4j-.d.cts} +4 -4
  142. package/dist/{typescript-object-DSdGl3Ha.d.cts.map → typescript-object-B7G5A4j-.d.cts.map} +1 -1
  143. package/dist/{typescript-object-DHFnCfRa.cjs → typescript-object-CGjPvsYM.cjs} +1 -1
  144. package/dist/{typescript-object-B_md46Hq.d.cts → typescript-object-DAZ_s-da.d.cts} +4 -4
  145. package/dist/{typescript-object-B_md46Hq.d.cts.map → typescript-object-DAZ_s-da.d.cts.map} +1 -1
  146. package/dist/typescript-object-DK3sl8cB.d.mts +30 -0
  147. package/dist/typescript-object-DK3sl8cB.d.mts.map +1 -0
  148. package/dist/{typescript-object-B0R92yL7.mjs → typescript-object-Dhr7lMRV.mjs} +2 -2
  149. package/dist/{typescript-object-B0R92yL7.mjs.map → typescript-object-Dhr7lMRV.mjs.map} +1 -1
  150. package/package.json +6 -6
  151. package/dist/entry-file-DW7QEqXv.d.cts +0 -28
  152. package/dist/entry-file-DW7QEqXv.d.cts.map +0 -1
  153. package/dist/front-matter-BdXzBycV.d.cts +0 -16
  154. package/dist/front-matter-D_wSuNkq.d.cts.map +0 -1
  155. package/dist/markdown-file-DD1Uc7fZ.d.cts.map +0 -1
  156. package/dist/markdown-table-BPAguEBC.d.cts.map +0 -1
  157. package/dist/tsdoc-reflection-BOeS3c66.d.mts +0 -19
  158. package/dist/tsdoc-reflection-DU6zoCVk.d.cts.map +0 -1
  159. /package/dist/{context-DNdlL_gp.cjs → context-D-lZVHpZ.cjs} +0 -0
  160. /package/dist/{meta-BjTflizw.cjs → meta-CBKMGDr1.cjs} +0 -0
@@ -1,8 +1,8 @@
1
- require('../../context-DNdlL_gp.cjs');
1
+ require('../../context-D-lZVHpZ.cjs');
2
2
  require('../../reflection-BSrdR0Qz.cjs');
3
- require('../../tsdoc-BufL8muf.cjs');
4
- require('../../tsdoc-reflection-Cov5Qh1c.cjs');
5
- const require_typescript_interface = require('../../typescript-interface-Q4trMyzm.cjs');
3
+ require('../../tsdoc-fSRc8v2O.cjs');
4
+ require('../../tsdoc-reflection-BpkFCXw6.cjs');
5
+ const require_typescript_interface = require('../../typescript-interface-DC2d5S0V.cjs');
6
6
 
7
7
  exports.TypeScriptInterface = require_typescript_interface.TypeScriptInterface;
8
8
  exports.TypescriptInterfaceProperty = require_typescript_interface.TypescriptInterfaceProperty;
@@ -1,3 +1,3 @@
1
1
  import "../../components-DqfyRVFO.cjs";
2
- import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-Xgm71cgZ.cjs";
2
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-LTD6nhQZ.cjs";
3
3
  export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
@@ -1,7 +1,7 @@
1
- import "../../context-CdPajCh6.mjs";
1
+ import "../../context-BaVJCPfX.mjs";
2
2
  import "../../reflection-Btb1NqwS.mjs";
3
- import "../../tsdoc-DB1Qzwsn.mjs";
4
- import "../../tsdoc-reflection-BcTrWAwt.mjs";
5
- import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-CGQ0pwib.mjs";
3
+ import "../../tsdoc-prhuuYav.mjs";
4
+ import "../../tsdoc-reflection-CQX-iDtz.mjs";
5
+ import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-BnRXH_zM.mjs";
6
6
 
7
7
  export { TypeScriptInterface, TypescriptInterfaceProperty };
@@ -1,8 +1,8 @@
1
- require('../../context-DNdlL_gp.cjs');
1
+ require('../../context-D-lZVHpZ.cjs');
2
2
  require('../../reflection-BSrdR0Qz.cjs');
3
- require('../../tsdoc-BufL8muf.cjs');
4
- require('../../tsdoc-reflection-Cov5Qh1c.cjs');
5
- const require_typescript_object = require('../../typescript-object-DHFnCfRa.cjs');
3
+ require('../../tsdoc-fSRc8v2O.cjs');
4
+ require('../../tsdoc-reflection-BpkFCXw6.cjs');
5
+ const require_typescript_object = require('../../typescript-object-CGjPvsYM.cjs');
6
6
 
7
7
  exports.TypescriptObject = require_typescript_object.TypescriptObject;
8
8
  exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
@@ -1,3 +1,3 @@
1
1
  import "../../components-DqfyRVFO.cjs";
2
- import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../../typescript-object-B_md46Hq.cjs";
2
+ import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../../typescript-object-B7G5A4j-.cjs";
3
3
  export { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -1,7 +1,7 @@
1
- import "../../context-CdPajCh6.mjs";
1
+ import "../../context-BaVJCPfX.mjs";
2
2
  import "../../reflection-Btb1NqwS.mjs";
3
- import "../../tsdoc-DB1Qzwsn.mjs";
4
- import "../../tsdoc-reflection-BcTrWAwt.mjs";
5
- import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-B0R92yL7.mjs";
3
+ import "../../tsdoc-prhuuYav.mjs";
4
+ import "../../tsdoc-reflection-CQX-iDtz.mjs";
5
+ import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-Dhr7lMRV.mjs";
6
6
 
7
7
  export { TypescriptObject, TypescriptObjectProperty };
@@ -1,17 +1,17 @@
1
- require('../context-DNdlL_gp.cjs');
2
- require('../meta-BjTflizw.cjs');
1
+ require('../meta-CBKMGDr1.cjs');
2
+ require('../context-D-lZVHpZ.cjs');
3
3
  require('../single-line-comment-DvU69OGj.cjs');
4
- require('../source-file-BCcq9Me3.cjs');
4
+ require('../source-file-C8ntga6V.cjs');
5
5
  require('../reflection-BSrdR0Qz.cjs');
6
- const require_tsdoc = require('../tsdoc-BufL8muf.cjs');
7
- const require_typescript_file = require('../typescript-file-D8ACLdIR.cjs');
8
- const require_builtin_file = require('../builtin-file-V_vMh8s8.cjs');
6
+ const require_tsdoc = require('../tsdoc-fSRc8v2O.cjs');
7
+ const require_typescript_file = require('../typescript-file-DKYD5v5W.cjs');
8
+ const require_builtin_file = require('../builtin-file-vG9RwKpd.cjs');
9
9
  const require_dynamic_import_statement = require('../dynamic-import-statement-Dy_MY_Ua.cjs');
10
- const require_entry_file = require('../entry-file-Big6nfUK.cjs');
10
+ const require_entry_file = require('../entry-file-BF1TZjhp.cjs');
11
11
  const require_record_expression = require('../record-expression-6ElbFyR0.cjs');
12
- const require_tsdoc_reflection = require('../tsdoc-reflection-Cov5Qh1c.cjs');
13
- const require_typescript_interface = require('../typescript-interface-Q4trMyzm.cjs');
14
- const require_typescript_object = require('../typescript-object-DHFnCfRa.cjs');
12
+ const require_tsdoc_reflection = require('../tsdoc-reflection-BpkFCXw6.cjs');
13
+ const require_typescript_interface = require('../typescript-interface-DC2d5S0V.cjs');
14
+ const require_typescript_object = require('../typescript-object-CGjPvsYM.cjs');
15
15
  require('../components-ISRFDWTF.cjs');
16
16
 
17
17
  exports.BuiltinFile = require_builtin_file.BuiltinFile;
@@ -3,11 +3,11 @@ import "../source-file-BNYeD1w4.cjs";
3
3
  import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-BpOXtq0v.cjs";
4
4
  import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-BqamPJcI.cjs";
5
5
  import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-PDckmfzE.cjs";
6
- import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-CkTDZa9C.cjs";
7
- import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-CI22kUBs.cjs";
6
+ import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-kxVxtCBQ.cjs";
7
+ import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-Dbo9mrsH.cjs";
8
8
  import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-Dwg_PZpg.cjs";
9
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BrqOulOQ.cjs";
10
- import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-Xgm71cgZ.cjs";
11
- import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-B_md46Hq.cjs";
9
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-ycF-PiB9.cjs";
10
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-LTD6nhQZ.cjs";
11
+ import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-B7G5A4j-.cjs";
12
12
  import "../index-BhY1qu3m.cjs";
13
13
  export { BuiltinFile, BuiltinFileProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -4,9 +4,9 @@ import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E
4
4
  import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-dsHm_Y5Y.mjs";
5
5
  import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-xc-QSTiJ.mjs";
6
6
  import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-DSNDMC9Y.mjs";
7
- import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-6OSh_HPP.mjs";
7
+ import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-CmJcd0C4.mjs";
8
8
  import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-ChoLAsVS.mjs";
9
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BOeS3c66.mjs";
9
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-Cak-O_qk.mjs";
10
10
  import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-CTyDcMdt.mjs";
11
11
  import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-L2Zn4zbB.mjs";
12
12
  import "../index-C3usUse7.mjs";
@@ -1,17 +1,17 @@
1
- import "../context-CdPajCh6.mjs";
2
- import "../meta-D0pfCtdR.mjs";
1
+ import "../meta-BuwJuxY9.mjs";
2
+ import "../context-BaVJCPfX.mjs";
3
3
  import "../single-line-comment-MRVbskt3.mjs";
4
- import "../source-file-MLTzYO0w.mjs";
4
+ import "../source-file-B5FSrvOa.mjs";
5
5
  import "../reflection-Btb1NqwS.mjs";
6
- import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-DB1Qzwsn.mjs";
7
- import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-DJy5gCL9.mjs";
8
- import { t as BuiltinFile } from "../builtin-file-uzudbU6M.mjs";
6
+ import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-prhuuYav.mjs";
7
+ import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-CNCLRiyf.mjs";
8
+ import { t as BuiltinFile } from "../builtin-file-B8Y36s1a.mjs";
9
9
  import { t as DynamicImportStatement } from "../dynamic-import-statement-B4Ov9C7y.mjs";
10
- import { t as EntryFile } from "../entry-file-BwAnSku3.mjs";
10
+ import { t as EntryFile } from "../entry-file-DzlSog-0.mjs";
11
11
  import { t as RecordExpression } from "../record-expression-D5W72rZN.mjs";
12
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BcTrWAwt.mjs";
13
- import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-CGQ0pwib.mjs";
14
- import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-B0R92yL7.mjs";
12
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-CQX-iDtz.mjs";
13
+ import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-BnRXH_zM.mjs";
14
+ import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-Dhr7lMRV.mjs";
15
15
  import "../components-NXgsRgB4.mjs";
16
16
 
17
17
  export { BuiltinFile, DynamicImportStatement, EntryFile, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeScriptInterface, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptInterfaceProperty, TypescriptObject, TypescriptObjectProperty };
@@ -1,5 +1,5 @@
1
1
  import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-DqfyRVFO.cjs";
2
- import { n as SourceFileProps$1 } from "./source-file-ZzGhiuHr.cjs";
2
+ import { n as SourceFileProps$1 } from "./source-file-OtWS66Kr.cjs";
3
3
  import { Children } from "@alloy-js/core";
4
4
  import { TSModuleScope } from "@alloy-js/typescript";
5
5
 
@@ -47,4 +47,4 @@ declare type __ΩTypescriptFileHeaderProps = any[];
47
47
  declare type __ΩTypescriptFileHeaderImportsProps = any[];
48
48
  //#endregion
49
49
  export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };
50
- //# sourceMappingURL=typescript-file-BqsB2ASG.d.cts.map
50
+ //# sourceMappingURL=typescript-file--NT6aFEW.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-file-BqsB2ASG.d.cts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
1
+ {"version":3,"file":"typescript-file--NT6aFEW.d.cts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
@@ -1,6 +1,6 @@
1
- import { i as usePowerlinesSafe } from "./context-CdPajCh6.mjs";
1
+ import { i as usePowerlinesSafe } from "./context-BaVJCPfX.mjs";
2
2
  import { t as SingleLineComment } from "./single-line-comment-MRVbskt3.mjs";
3
- import { t as SourceFile } from "./source-file-MLTzYO0w.mjs";
3
+ import { t as SourceFile } from "./source-file-B5FSrvOa.mjs";
4
4
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
5
5
  import { For, Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
6
6
  import { appendPath } from "@stryke/path/append";
@@ -211,4 +211,4 @@ function TypescriptFileHeaderImports(props) {
211
211
 
212
212
  //#endregion
213
213
  export { TypescriptFileHeader as n, TypescriptFileHeaderImports as r, TypescriptFile as t };
214
- //# sourceMappingURL=typescript-file-DJy5gCL9.mjs.map
214
+ //# sourceMappingURL=typescript-file-CNCLRiyf.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-file-DJy5gCL9.mjs","names":["code","For","Scope","Show","SourceDirectoryContext","splitProps","useContext","useScope","getSourceDirectoryData","ImportStatements","PackageContext","SourceFileContext","TSModuleScope","useSourceFile","appendPath","titleCase","isBoolean","isString","SingleLineComment","SourceFile","usePowerlinesSafe","TypescriptFile","props","children","path","imports","builtinImports","tsx","header","hashbang","rest","directoryContext","sdData","modulePath","scope","modules","add","pkg","addModule","export","addExport","_$createComponent","Provider","value","_$mergeProps","TypescriptFileHeader","TypescriptFileHeaderImports","filetype","disableEslint","disableBiome","disablePrettier","context","when","Boolean","_$memo","config","mode","_$createIntrinsic","variant","framework","sourceFile","importedModules","size","Object","keys","length","each","entries","hardline","module","importItem","filter","i","default","map","alias","name","join","includes","records"],"sources":["../src/typescript/components/typescript-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 type { Children } from \"@alloy-js/core\";\nimport {\n code,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\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 TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n disablePrettier = false,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disablePrettier)}>\n <SingleLineComment variant=\"slash-star\">\n {\"prettier-ignore\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show\n when={\n Boolean(disableEslint) ||\n Boolean(disablePrettier) ||\n Boolean(disableBiome)\n }>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>\n {code`NOTE: Do not edit this file manually - it will be overwritten automatically`}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports, builtinImports } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports && Object.keys(imports).length > 0) ||\n (!!builtinImports && Object.keys(builtinImports).length > 0)\n }>\n <Show when={!!imports && Object.keys(imports).length > 0}>\n <For each={Object.entries(imports ?? {})} hardline>\n {([module, importItem]) => {\n return (\n <>\n {code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${module}\";`}\n </>\n );\n }}\n </For>\n </Show>\n <Show when={builtinImports && Object.keys(builtinImports).length > 0}>\n <For\n each={Object.entries(\n (builtinImports ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":""}
1
+ {"version":3,"file":"typescript-file-CNCLRiyf.mjs","names":["code","For","Scope","Show","SourceDirectoryContext","splitProps","useContext","useScope","getSourceDirectoryData","ImportStatements","PackageContext","SourceFileContext","TSModuleScope","useSourceFile","appendPath","titleCase","isBoolean","isString","SingleLineComment","SourceFile","usePowerlinesSafe","TypescriptFile","props","children","path","imports","builtinImports","tsx","header","hashbang","rest","directoryContext","sdData","modulePath","scope","modules","add","pkg","addModule","export","addExport","_$createComponent","Provider","value","_$mergeProps","TypescriptFileHeader","TypescriptFileHeaderImports","filetype","disableEslint","disableBiome","disablePrettier","context","when","Boolean","_$memo","config","mode","_$createIntrinsic","variant","framework","sourceFile","importedModules","size","Object","keys","length","each","entries","hardline","module","importItem","filter","i","default","map","alias","name","join","includes","records"],"sources":["../src/typescript/components/typescript-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 type { Children } from \"@alloy-js/core\";\nimport {\n code,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\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 TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n disablePrettier = false,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disablePrettier)}>\n <SingleLineComment variant=\"slash-star\">\n {\"prettier-ignore\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show\n when={\n Boolean(disableEslint) ||\n Boolean(disablePrettier) ||\n Boolean(disableBiome)\n }>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>\n {code`NOTE: Do not edit this file manually - it will be overwritten automatically`}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports, builtinImports } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports && Object.keys(imports).length > 0) ||\n (!!builtinImports && Object.keys(builtinImports).length > 0)\n }>\n <Show when={!!imports && Object.keys(imports).length > 0}>\n <For each={Object.entries(imports ?? {})} hardline>\n {([module, importItem]) => {\n return (\n <>\n {code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${module}\";`}\n </>\n );\n }}\n </For>\n </Show>\n <Show when={builtinImports && Object.keys(builtinImports).length > 0}>\n <For\n each={Object.entries(\n (builtinImports ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- const require_context = require('./context-DNdlL_gp.cjs');
2
+ const require_context = require('./context-D-lZVHpZ.cjs');
3
3
  const require_single_line_comment = require('./single-line-comment-DvU69OGj.cjs');
4
- const require_source_file = require('./source-file-BCcq9Me3.cjs');
4
+ const require_source_file = require('./source-file-C8ntga6V.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
6
  let __alloy_js_core = require("@alloy-js/core");
7
7
  let __stryke_path_append = require("@stryke/path/append");
@@ -1,5 +1,5 @@
1
1
  import { i as ReflectionPropertyContext, t as ReflectionClassContext } from "./reflection-Btb1NqwS.mjs";
2
- import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-BcTrWAwt.mjs";
2
+ import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-CQX-iDtz.mjs";
3
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
4
  import { For, computed, splitProps } from "@alloy-js/core";
5
5
  import { stringifyType } from "@powerlines/deepkit/vendor/type";
@@ -69,4 +69,4 @@ function TypescriptInterfaceProperty(props) {
69
69
 
70
70
  //#endregion
71
71
  export { TypescriptInterfaceProperty as n, TypeScriptInterface as t };
72
- //# sourceMappingURL=typescript-interface-CGQ0pwib.mjs.map
72
+ //# sourceMappingURL=typescript-interface-BnRXH_zM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-interface-CGQ0pwib.mjs","names":["computed","For","splitProps","InterfaceDeclaration","InterfaceMember","stringifyType","pascalCase","isString","ReflectionClassContext","ReflectionPropertyContext","TSDocReflectionClass","TSDocReflectionProperty","TypeScriptInterface","props","name","reflection","doc","rest","interfaceName","toString","getName","properties","getProperties","filter","item","isIgnored","sort","a","b","isReadonly","getNameAsString","localeCompare","_$createComponent","Provider","value","children","heading","_$mergeProps","each","doubleHardline","semicolon","prop","TypescriptInterfaceProperty","property","readonly","optional","isOptional","nullish","isNullable","type","getType"],"sources":["../src/typescript/components/typescript-interface.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, For, splitProps } from \"@alloy-js/core\";\nimport {\n InterfaceDeclaration,\n InterfaceDeclarationProps,\n InterfaceMember,\n InterfaceMemberProps\n} from \"@alloy-js/typescript\";\nimport {\n ReflectionClass,\n ReflectionProperty,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport {\n ReflectionClassContext,\n ReflectionPropertyContext\n} from \"../../core/contexts/reflection\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n TSDocReflectionClass,\n TSDocReflectionProperty\n} from \"./tsdoc-reflection\";\n\nexport interface TypeScriptInterfaceProps<\n T extends Record<string, any> = Record<string, any>\n>\n extends InterfaceDeclarationProps, ComponentProps {\n reflection: ReflectionClass<T>;\n defaultValue?: Partial<T>;\n}\n\nexport interface TypescriptInterfacePropertyProps\n extends Omit<InterfaceMemberProps, \"name\">, ComponentProps {\n property: ReflectionProperty;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TypeScriptInterface<\n T extends Record<string, any> = Record<string, any>\n>(props: TypeScriptInterfaceProps<T>) {\n const [{ name, reflection, doc }, rest] = splitProps(props, [\n \"name\",\n \"reflection\",\n \"doc\"\n ]);\n\n const interfaceName = computed(() =>\n pascalCase(\n (isString(name) ? name : name.toString()) || reflection.getName()\n )\n );\n\n const properties = reflection\n .getProperties()\n .filter(item => !item.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n );\n\n return (\n <ReflectionClassContext.Provider\n value={{\n reflection\n }}>\n <TSDocReflectionClass heading={doc} />\n <InterfaceDeclaration export={true} name={interfaceName.value} {...rest}>\n <For each={properties} doubleHardline={true} semicolon={true}>\n {prop => <TypescriptInterfaceProperty property={prop} />}\n </For>\n </InterfaceDeclaration>\n </ReflectionClassContext.Provider>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TypescriptInterfaceProperty(\n props: TypescriptInterfacePropertyProps\n) {\n const [{ property }, rest] = splitProps(props, [\"property\"]);\n\n return (\n <ReflectionPropertyContext.Provider value={property}>\n <TSDocReflectionProperty />\n <InterfaceMember\n name={property.getNameAsString()}\n readonly={property.isReadonly()}\n optional={property.isOptional()}\n nullish={property.isNullable()}\n type={stringifyType(property.getType())}\n {...rest}\n />\n </ReflectionPropertyContext.Provider>\n );\n}\n"],"mappings":""}
1
+ {"version":3,"file":"typescript-interface-BnRXH_zM.mjs","names":["computed","For","splitProps","InterfaceDeclaration","InterfaceMember","stringifyType","pascalCase","isString","ReflectionClassContext","ReflectionPropertyContext","TSDocReflectionClass","TSDocReflectionProperty","TypeScriptInterface","props","name","reflection","doc","rest","interfaceName","toString","getName","properties","getProperties","filter","item","isIgnored","sort","a","b","isReadonly","getNameAsString","localeCompare","_$createComponent","Provider","value","children","heading","_$mergeProps","each","doubleHardline","semicolon","prop","TypescriptInterfaceProperty","property","readonly","optional","isOptional","nullish","isNullable","type","getType"],"sources":["../src/typescript/components/typescript-interface.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, For, splitProps } from \"@alloy-js/core\";\nimport {\n InterfaceDeclaration,\n InterfaceDeclarationProps,\n InterfaceMember,\n InterfaceMemberProps\n} from \"@alloy-js/typescript\";\nimport {\n ReflectionClass,\n ReflectionProperty,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport {\n ReflectionClassContext,\n ReflectionPropertyContext\n} from \"../../core/contexts/reflection\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n TSDocReflectionClass,\n TSDocReflectionProperty\n} from \"./tsdoc-reflection\";\n\nexport interface TypeScriptInterfaceProps<\n T extends Record<string, any> = Record<string, any>\n>\n extends InterfaceDeclarationProps, ComponentProps {\n reflection: ReflectionClass<T>;\n defaultValue?: Partial<T>;\n}\n\nexport interface TypescriptInterfacePropertyProps\n extends Omit<InterfaceMemberProps, \"name\">, ComponentProps {\n property: ReflectionProperty;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TypeScriptInterface<\n T extends Record<string, any> = Record<string, any>\n>(props: TypeScriptInterfaceProps<T>) {\n const [{ name, reflection, doc }, rest] = splitProps(props, [\n \"name\",\n \"reflection\",\n \"doc\"\n ]);\n\n const interfaceName = computed(() =>\n pascalCase(\n (isString(name) ? name : name.toString()) || reflection.getName()\n )\n );\n\n const properties = reflection\n .getProperties()\n .filter(item => !item.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n );\n\n return (\n <ReflectionClassContext.Provider\n value={{\n reflection\n }}>\n <TSDocReflectionClass heading={doc} />\n <InterfaceDeclaration export={true} name={interfaceName.value} {...rest}>\n <For each={properties} doubleHardline={true} semicolon={true}>\n {prop => <TypescriptInterfaceProperty property={prop} />}\n </For>\n </InterfaceDeclaration>\n </ReflectionClassContext.Provider>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TypescriptInterfaceProperty(\n props: TypescriptInterfacePropertyProps\n) {\n const [{ property }, rest] = splitProps(props, [\"property\"]);\n\n return (\n <ReflectionPropertyContext.Provider value={property}>\n <TSDocReflectionProperty />\n <InterfaceMember\n name={property.getNameAsString()}\n readonly={property.isReadonly()}\n optional={property.isOptional()}\n nullish={property.isNullable()}\n type={stringifyType(property.getType())}\n {...rest}\n />\n </ReflectionPropertyContext.Provider>\n );\n}\n"],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_reflection = require('./reflection-BSrdR0Qz.cjs');
3
- const require_tsdoc_reflection = require('./tsdoc-reflection-Cov5Qh1c.cjs');
3
+ const require_tsdoc_reflection = require('./tsdoc-reflection-BpkFCXw6.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __alloy_js_core = require("@alloy-js/core");
6
6
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
@@ -1,7 +1,7 @@
1
- import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
2
- import * as _alloy_js_core7 from "@alloy-js/core";
3
- import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
1
+ import { n as ComponentProps } from "./components-REdw2IIi.mjs";
2
+ import * as _alloy_js_core8 from "@alloy-js/core";
4
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+ import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
5
5
 
6
6
  //#region src/typescript/components/typescript-interface.d.ts
7
7
  interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
@@ -14,13 +14,13 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core7.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core8.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core7.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core8.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
25
25
  export { __ΩTypeScriptInterfaceProps as a, TypescriptInterfacePropertyProps as i, TypeScriptInterfaceProps as n, __ΩTypescriptInterfacePropertyProps as o, TypescriptInterfaceProperty as r, TypeScriptInterface as t };
26
- //# sourceMappingURL=typescript-interface-C1lcUzTa.d.cts.map
26
+ //# sourceMappingURL=typescript-interface-DX0WJLCa.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-interface-C1lcUzTa.d.cts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-interface-DX0WJLCa.d.mts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
1
  import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
2
- import * as _alloy_js_core6 from "@alloy-js/core";
2
+ import * as _alloy_js_core8 from "@alloy-js/core";
3
3
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -14,13 +14,13 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core6.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core8.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core6.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core8.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
25
25
  export { __ΩTypeScriptInterfaceProps as a, TypescriptInterfacePropertyProps as i, TypeScriptInterfaceProps as n, __ΩTypescriptInterfacePropertyProps as o, TypescriptInterfaceProperty as r, TypeScriptInterface as t };
26
- //# sourceMappingURL=typescript-interface-Xgm71cgZ.d.cts.map
26
+ //# sourceMappingURL=typescript-interface-LTD6nhQZ.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-interface-Xgm71cgZ.d.cts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-interface-LTD6nhQZ.d.cts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
1
  import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
2
- import * as _alloy_js_core5 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -17,14 +17,14 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core5.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core10.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core5.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core10.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
28
28
  //#endregion
29
29
  export { TypescriptObjectProps as a, __ΩTypescriptObjectProps as c, TypescriptObjectPropertyProps as i, TypescriptObject as n, __ΩComputedRef as o, TypescriptObjectProperty as r, __ΩTypescriptObjectPropertyProps as s, ComputedRef as t };
30
- //# sourceMappingURL=typescript-object-DSdGl3Ha.d.cts.map
30
+ //# sourceMappingURL=typescript-object-B7G5A4j-.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-object-DSdGl3Ha.d.cts","names":[],"sources":["../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,eAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,eAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-object-B7G5A4j-.d.cts","names":[],"sources":["../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,gBAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,gBAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_reflection = require('./reflection-BSrdR0Qz.cjs');
3
- const require_tsdoc_reflection = require('./tsdoc-reflection-Cov5Qh1c.cjs');
3
+ const require_tsdoc_reflection = require('./tsdoc-reflection-BpkFCXw6.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __alloy_js_core = require("@alloy-js/core");
6
6
  let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
@@ -1,5 +1,5 @@
1
1
  import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
2
- import * as _alloy_js_core4 from "@alloy-js/core";
2
+ import * as _alloy_js_core6 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -17,14 +17,14 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core4.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core6.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core4.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core6.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
28
28
  //#endregion
29
29
  export { TypescriptObjectProps as a, __ΩTypescriptObjectProps as c, TypescriptObjectPropertyProps as i, TypescriptObject as n, __ΩComputedRef as o, TypescriptObjectProperty as r, __ΩTypescriptObjectPropertyProps as s, ComputedRef as t };
30
- //# sourceMappingURL=typescript-object-B_md46Hq.d.cts.map
30
+ //# sourceMappingURL=typescript-object-DAZ_s-da.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-object-B_md46Hq.d.cts","names":[],"sources":["../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,eAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,eAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-object-DAZ_s-da.d.cts","names":[],"sources":["../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,eAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,eAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
@@ -0,0 +1,30 @@
1
+ import { n as ComponentProps } from "./components-REdw2IIi.mjs";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
+ import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
+ import { VarDeclarationProps } from "@alloy-js/typescript";
5
+
6
+ //#region src/typescript/components/typescript-object.d.ts
7
+ interface ComputedRef<T = any> {
8
+ readonly value: T;
9
+ }
10
+ interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
11
+ reflection?: ComputedRef<ReflectionClass<T>>;
12
+ defaultValue?: ComputedRef<Partial<T> | undefined>;
13
+ }
14
+ interface TypescriptObjectPropertyProps extends ComponentProps {
15
+ property: ReflectionProperty;
16
+ }
17
+ /**
18
+ * Generates a TypeScript object for the given reflection class.
19
+ */
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core10.Children;
21
+ /**
22
+ * Generates a TypeScript object property for the given reflection class.
23
+ */
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core10.Children;
25
+ declare type __ΩComputedRef = any[];
26
+ declare type __ΩTypescriptObjectProps = any[];
27
+ declare type __ΩTypescriptObjectPropertyProps = any[];
28
+ //#endregion
29
+ export { TypescriptObjectProps as a, __ΩTypescriptObjectProps as c, TypescriptObjectPropertyProps as i, TypescriptObject as n, __ΩComputedRef as o, TypescriptObjectProperty as r, __ΩTypescriptObjectPropertyProps as s, ComputedRef as t };
30
+ //# sourceMappingURL=typescript-object-DK3sl8cB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-object-DK3sl8cB.d.mts","names":[],"sources":["../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,gBAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,gBAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
1
  import { i as ReflectionPropertyContext, t as ReflectionClassContext } from "./reflection-Btb1NqwS.mjs";
2
- import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-BcTrWAwt.mjs";
2
+ import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-CQX-iDtz.mjs";
3
3
  import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
4
4
  import { Declaration, For, Name, Show, computed, createSymbolSlot, splitProps } from "@alloy-js/core";
5
5
  import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
@@ -121,4 +121,4 @@ function TypescriptObjectProperty(props) {
121
121
 
122
122
  //#endregion
123
123
  export { TypescriptObjectProperty as n, TypescriptObject as t };
124
- //# sourceMappingURL=typescript-object-B0R92yL7.mjs.map
124
+ //# sourceMappingURL=typescript-object-Dhr7lMRV.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-object-B0R92yL7.mjs","names":["computed","Declaration","CoreDeclaration","createSymbolSlot","For","Name","Show","splitProps","createValueSymbol","ObjectExpression","ObjectProperty","TSSymbolFlags","TypeRefContext","useTSNamePolicy","stringifyDefaultValue","camelCase","pascalCase","isString","isUndefined","ReflectionClassContext","ReflectionPropertyContext","TSDocReflectionClass","TSDocReflectionProperty","TypescriptObject","props","reflection","value","objectName","name","toString","getName","objectType","type","properties","getProperties","filter","item","isIgnored","defaultValue","getNameAsString","getAlias","reduce","ret","alias","undefined","getDefaultValue","sort","a","b","isReadonly","localeCompare","TypeSymbolSlot","ValueTypeSymbolSlot","sym","refkeys","refkey","default","export","metadata","tsFlags","nullish","Nullish","None","firstSymbol","namePolicy","for","moveMembersTo","keyword","var","let","_$createComponent","children","when","Provider","override","symbol","_$memo","initializer","each","comma","doubleHardline","prop","TypescriptObjectProperty","property","_$createIntrinsic"],"sources":["../src/typescript/components/typescript-object.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 computed,\n Declaration as CoreDeclaration,\n createSymbolSlot,\n For,\n Name,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n createValueSymbol,\n ObjectExpression,\n ObjectProperty,\n TSSymbolFlags,\n TypeRefContext,\n useTSNamePolicy,\n VarDeclarationProps\n} from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport type {\n ReflectionClass,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport {\n ReflectionClassContext,\n ReflectionPropertyContext\n} from \"../../core/contexts/reflection\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n TSDocReflectionClass,\n TSDocReflectionProperty\n} from \"./tsdoc-reflection\";\n\nexport interface ComputedRef<T = any> {\n readonly value: T;\n}\n\nexport interface TypescriptObjectProps<\n T extends Record<string, any> = Record<string, any>\n> extends VarDeclarationProps {\n reflection?: ComputedRef<ReflectionClass<T>>;\n defaultValue?: ComputedRef<Partial<T> | undefined>;\n}\n\nexport interface TypescriptObjectPropertyProps extends ComponentProps {\n property: ReflectionProperty;\n}\n\n/**\n * Generates a TypeScript object for the given reflection class.\n */\nexport function TypescriptObject<\n T extends Record<string, any> = Record<string, any>\n>(props: TypescriptObjectProps<T>) {\n if (!props.reflection?.value) {\n return null;\n }\n\n const objectName = computed(() =>\n camelCase(\n (isString(props.name) ? props.name : props.name.toString()) ||\n props.reflection!.value.getName()\n )\n );\n const objectType = computed(\n () => props.type || pascalCase(props.reflection!.value.getName())\n );\n const properties = computed(() =>\n props\n .reflection!.value.getProperties()\n .filter(\n item =>\n !item.isIgnored() &&\n !isUndefined(\n props.defaultValue?.value?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined(\n (props.defaultValue as Record<string, any>)?.value?.[alias]\n )\n ) {\n return (props.defaultValue as Record<string, any>)?.value?.[\n alias\n ];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) ||\n (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n );\n\n const TypeSymbolSlot = createSymbolSlot();\n const ValueTypeSymbolSlot = createSymbolSlot();\n const sym = createValueSymbol(props.name, {\n refkeys: props.refkey,\n default: props.default,\n export: props.export,\n metadata: props.metadata,\n tsFlags: props.nullish ? TSSymbolFlags.Nullish : TSSymbolFlags.None,\n type: props.type ? TypeSymbolSlot.firstSymbol : undefined,\n namePolicy: useTSNamePolicy().for(\"variable\")\n });\n\n if (!props.type) {\n ValueTypeSymbolSlot.moveMembersTo(sym);\n }\n\n const keyword = props.var ? \"var\" : props.let ? \"let\" : \"const\";\n const type = props.type ? (\n <TypeRefContext>\n : <TypeSymbolSlot>{props.type}</TypeSymbolSlot>\n </TypeRefContext>\n ) : undefined;\n\n return (\n <Show when={!!props.reflection.value}>\n <ReflectionClassContext.Provider\n value={{\n reflection: props.reflection.value as ReflectionClass<any>,\n override: {\n name: objectName.value,\n type: objectType.value,\n defaultValue: props.defaultValue?.value\n }\n }}>\n <Show when={!!objectName.value && !!objectType.value}>\n <TSDocReflectionClass />\n <CoreDeclaration symbol={sym}>\n {props.export ? \"export \" : \"\"}\n {props.default ? \"default \" : \"\"}\n {keyword} <Name />\n {type} ={\" \"}\n <ValueTypeSymbolSlot>\n {props.initializer ?? props.children ?? (\n <ObjectExpression>\n <For\n each={properties.value ?? []}\n comma={true}\n doubleHardline={true}>\n {prop => <TypescriptObjectProperty property={prop} />}\n </For>\n </ObjectExpression>\n )}\n </ValueTypeSymbolSlot>\n </CoreDeclaration>\n </Show>\n <hbr />\n </ReflectionClassContext.Provider>\n </Show>\n );\n}\n\n/**\n * Generates a TypeScript object property for the given reflection class.\n */\nexport function TypescriptObjectProperty(props: TypescriptObjectPropertyProps) {\n const [{ property }] = splitProps(props, [\"property\"]);\n\n return (\n <ReflectionPropertyContext.Provider value={property}>\n <TSDocReflectionProperty />\n <ObjectProperty\n name={property.getNameAsString()}\n value={stringifyDefaultValue(property)}\n />\n <hbr />\n </ReflectionPropertyContext.Provider>\n );\n}\n"],"mappings":""}
1
+ {"version":3,"file":"typescript-object-Dhr7lMRV.mjs","names":["computed","Declaration","CoreDeclaration","createSymbolSlot","For","Name","Show","splitProps","createValueSymbol","ObjectExpression","ObjectProperty","TSSymbolFlags","TypeRefContext","useTSNamePolicy","stringifyDefaultValue","camelCase","pascalCase","isString","isUndefined","ReflectionClassContext","ReflectionPropertyContext","TSDocReflectionClass","TSDocReflectionProperty","TypescriptObject","props","reflection","value","objectName","name","toString","getName","objectType","type","properties","getProperties","filter","item","isIgnored","defaultValue","getNameAsString","getAlias","reduce","ret","alias","undefined","getDefaultValue","sort","a","b","isReadonly","localeCompare","TypeSymbolSlot","ValueTypeSymbolSlot","sym","refkeys","refkey","default","export","metadata","tsFlags","nullish","Nullish","None","firstSymbol","namePolicy","for","moveMembersTo","keyword","var","let","_$createComponent","children","when","Provider","override","symbol","_$memo","initializer","each","comma","doubleHardline","prop","TypescriptObjectProperty","property","_$createIntrinsic"],"sources":["../src/typescript/components/typescript-object.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 computed,\n Declaration as CoreDeclaration,\n createSymbolSlot,\n For,\n Name,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n createValueSymbol,\n ObjectExpression,\n ObjectProperty,\n TSSymbolFlags,\n TypeRefContext,\n useTSNamePolicy,\n VarDeclarationProps\n} from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport type {\n ReflectionClass,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport {\n ReflectionClassContext,\n ReflectionPropertyContext\n} from \"../../core/contexts/reflection\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n TSDocReflectionClass,\n TSDocReflectionProperty\n} from \"./tsdoc-reflection\";\n\nexport interface ComputedRef<T = any> {\n readonly value: T;\n}\n\nexport interface TypescriptObjectProps<\n T extends Record<string, any> = Record<string, any>\n> extends VarDeclarationProps {\n reflection?: ComputedRef<ReflectionClass<T>>;\n defaultValue?: ComputedRef<Partial<T> | undefined>;\n}\n\nexport interface TypescriptObjectPropertyProps extends ComponentProps {\n property: ReflectionProperty;\n}\n\n/**\n * Generates a TypeScript object for the given reflection class.\n */\nexport function TypescriptObject<\n T extends Record<string, any> = Record<string, any>\n>(props: TypescriptObjectProps<T>) {\n if (!props.reflection?.value) {\n return null;\n }\n\n const objectName = computed(() =>\n camelCase(\n (isString(props.name) ? props.name : props.name.toString()) ||\n props.reflection!.value.getName()\n )\n );\n const objectType = computed(\n () => props.type || pascalCase(props.reflection!.value.getName())\n );\n const properties = computed(() =>\n props\n .reflection!.value.getProperties()\n .filter(\n item =>\n !item.isIgnored() &&\n !isUndefined(\n props.defaultValue?.value?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined(\n (props.defaultValue as Record<string, any>)?.value?.[alias]\n )\n ) {\n return (props.defaultValue as Record<string, any>)?.value?.[\n alias\n ];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) ||\n (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n );\n\n const TypeSymbolSlot = createSymbolSlot();\n const ValueTypeSymbolSlot = createSymbolSlot();\n const sym = createValueSymbol(props.name, {\n refkeys: props.refkey,\n default: props.default,\n export: props.export,\n metadata: props.metadata,\n tsFlags: props.nullish ? TSSymbolFlags.Nullish : TSSymbolFlags.None,\n type: props.type ? TypeSymbolSlot.firstSymbol : undefined,\n namePolicy: useTSNamePolicy().for(\"variable\")\n });\n\n if (!props.type) {\n ValueTypeSymbolSlot.moveMembersTo(sym);\n }\n\n const keyword = props.var ? \"var\" : props.let ? \"let\" : \"const\";\n const type = props.type ? (\n <TypeRefContext>\n : <TypeSymbolSlot>{props.type}</TypeSymbolSlot>\n </TypeRefContext>\n ) : undefined;\n\n return (\n <Show when={!!props.reflection.value}>\n <ReflectionClassContext.Provider\n value={{\n reflection: props.reflection.value as ReflectionClass<any>,\n override: {\n name: objectName.value,\n type: objectType.value,\n defaultValue: props.defaultValue?.value\n }\n }}>\n <Show when={!!objectName.value && !!objectType.value}>\n <TSDocReflectionClass />\n <CoreDeclaration symbol={sym}>\n {props.export ? \"export \" : \"\"}\n {props.default ? \"default \" : \"\"}\n {keyword} <Name />\n {type} ={\" \"}\n <ValueTypeSymbolSlot>\n {props.initializer ?? props.children ?? (\n <ObjectExpression>\n <For\n each={properties.value ?? []}\n comma={true}\n doubleHardline={true}>\n {prop => <TypescriptObjectProperty property={prop} />}\n </For>\n </ObjectExpression>\n )}\n </ValueTypeSymbolSlot>\n </CoreDeclaration>\n </Show>\n <hbr />\n </ReflectionClassContext.Provider>\n </Show>\n );\n}\n\n/**\n * Generates a TypeScript object property for the given reflection class.\n */\nexport function TypescriptObjectProperty(props: TypescriptObjectPropertyProps) {\n const [{ property }] = splitProps(props, [\"property\"]);\n\n return (\n <ReflectionPropertyContext.Provider value={property}>\n <TSDocReflectionProperty />\n <ObjectProperty\n name={property.getNameAsString()}\n value={stringifyDefaultValue(property)}\n />\n <hbr />\n </ReflectionPropertyContext.Provider>\n );\n}\n"],"mappings":""}