commandkit 1.0.0-dev.20250610125321 → 1.0.0-dev.20250611125312

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 (322) hide show
  1. package/dist/ActionRow-CmTHbo2t.js.map +1 -1
  2. package/dist/{ActionRow-D0wafJhZ.d.ts → ActionRow-DKnFVDME.d.ts} +6 -2
  3. package/dist/{Button-Bl5nbwTS.d.ts → Button-4ZUXdA56.d.ts} +11 -4
  4. package/dist/{ButtonKit-BSI7lCI0.d.ts → ButtonKit-C7r7RPNf.d.ts} +21 -2
  5. package/dist/{ChannelSelectMenuKit-L15A2jpT.d.ts → ChannelSelectMenuKit-BrXvBYNH.d.ts} +19 -3
  6. package/dist/{CommandKit-B-mjdP5x.d.ts → CommandKit-BkMUDbou.d.ts} +806 -9
  7. package/dist/{CommandKit-CnLBu_7m.js → CommandKit-C0W3U6jh.js} +621 -20
  8. package/dist/CommandKit-C0W3U6jh.js.map +1 -0
  9. package/dist/CommandKit.d.ts +25 -25
  10. package/dist/CommandKit.js +26 -26
  11. package/dist/CommandKitEventsChannel-BL_YN3Rm.js +87 -0
  12. package/dist/CommandKitEventsChannel-BL_YN3Rm.js.map +1 -0
  13. package/dist/CommandsRouter-CoOA7hkf.d.ts +146 -0
  14. package/dist/{CommandsRouter-BHaPno8o.js → CommandsRouter-DFRh47qD.js} +87 -1
  15. package/dist/CommandsRouter-DFRh47qD.js.map +1 -0
  16. package/dist/{CompilerPlugin-DrnhOC1c.js → CompilerPlugin-Bmy4izKz.js} +13 -2
  17. package/dist/CompilerPlugin-Bmy4izKz.js.map +1 -0
  18. package/dist/{CompilerPluginRuntime-C9wmPMQf.js → CompilerPluginRuntime-CgVU_gU0.js} +59 -1
  19. package/dist/CompilerPluginRuntime-CgVU_gU0.js.map +1 -0
  20. package/dist/DefaultLogger-pWzrSxMd.d.ts +60 -0
  21. package/dist/{EventInterceptor-Bvh05z7n.js → EventInterceptor-DWCHCGRh.js} +5 -1
  22. package/dist/EventInterceptor-DWCHCGRh.js.map +1 -0
  23. package/dist/{EventInterceptor-D_oEWSnF.d.ts → EventInterceptor-x-R2qshQ.d.ts} +8 -1
  24. package/dist/{EventWorkerContext-BYXamZ_4.d.ts → EventWorkerContext-DoFZMT8u.d.ts} +25 -2
  25. package/dist/{EventWorkerContext-BAKiTqJz.js → EventWorkerContext-DxfS_0fJ.js} +24 -1
  26. package/dist/EventWorkerContext-DxfS_0fJ.js.map +1 -0
  27. package/dist/ILogger-Cs5SFzqd.d.ts +34 -0
  28. package/dist/Logger-5ew_YS4P.d.ts +37 -0
  29. package/dist/{MentionableSelectMenuKit-BiUSKUtZ.d.ts → MentionableSelectMenuKit-CPTKqx-O.d.ts} +14 -3
  30. package/dist/{MessageCommandParser-D02-wpZN.js → MessageCommandParser-Cz-3I-wL.js} +70 -2
  31. package/dist/MessageCommandParser-Cz-3I-wL.js.map +1 -0
  32. package/dist/MessageCommandParser-ROLibZPX.d.ts +195 -0
  33. package/dist/{Modal-Cxm6cs5c.d.ts → Modal-C6UTRdYQ.d.ts} +8 -4
  34. package/dist/{ModalKit-CKtQ8eXW.d.ts → ModalKit-Btz58KYn.d.ts} +23 -2
  35. package/dist/{PluginCommon-DPqnQngK.js → PluginCommon-D_Z8Oiic.js} +23 -1
  36. package/dist/PluginCommon-D_Z8Oiic.js.map +1 -0
  37. package/dist/{RoleSelectMenuKit-BSMKkru2.d.ts → RoleSelectMenuKit-C26lU3sN.d.ts} +19 -3
  38. package/dist/{RuntimePlugin-BJoDa8ZR.js → RuntimePlugin-CehKbceZ.js} +5 -2
  39. package/dist/RuntimePlugin-CehKbceZ.js.map +1 -0
  40. package/dist/SelectMenu-Diy87_ba.d.ts +137 -0
  41. package/dist/{StringSelectMenuKit-B9FHTe48.d.ts → StringSelectMenuKit-Bhs8U6WI.d.ts} +19 -3
  42. package/dist/{UserSelectMenuKit-DiP0imyo.d.ts → UserSelectMenuKit-CfqFJdxz.d.ts} +19 -3
  43. package/dist/analytics/analytics-engine.d.ts +25 -25
  44. package/dist/analytics/analytics-engine.js +26 -26
  45. package/dist/analytics/analytics-provider.d.ts +25 -25
  46. package/dist/analytics/constants.d.ts +13 -0
  47. package/dist/analytics/constants.js +1 -1
  48. package/dist/analytics/utils.d.ts +13 -0
  49. package/dist/analytics/utils.js +26 -26
  50. package/dist/app/commands/AppCommandRunner.d.ts +25 -25
  51. package/dist/app/commands/AppCommandRunner.js +26 -26
  52. package/dist/app/commands/Context.d.ts +25 -25
  53. package/dist/app/commands/Context.js +26 -26
  54. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  55. package/dist/app/commands/MessageCommandParser.js +2 -2
  56. package/dist/app/commands/helpers.d.ts +1 -1
  57. package/dist/app/commands/helpers.js +1 -1
  58. package/dist/app/events/EventWorkerContext.d.ts +26 -26
  59. package/dist/app/events/EventWorkerContext.js +1 -1
  60. package/dist/app/handlers/AppCommandHandler.d.ts +25 -25
  61. package/dist/app/handlers/AppCommandHandler.js +26 -26
  62. package/dist/app/handlers/AppEventsHandler.d.ts +25 -25
  63. package/dist/app/handlers/AppEventsHandler.js +26 -26
  64. package/dist/app/index.d.ts +25 -25
  65. package/dist/app/index.js +27 -27
  66. package/dist/app/middleware/signals.js +2 -2
  67. package/dist/app/register/CommandRegistrar.d.ts +25 -25
  68. package/dist/app/register/CommandRegistrar.js +26 -26
  69. package/dist/app/router/CommandsRouter.d.ts +1 -1
  70. package/dist/app/router/CommandsRouter.js +1 -1
  71. package/dist/app/router/index.d.ts +1 -1
  72. package/dist/app/router/index.js +1 -1
  73. package/dist/{app-process-YbSHvqf-.js → app-process-Bo-LedP8.js} +11 -3
  74. package/dist/app-process-Bo-LedP8.js.map +1 -0
  75. package/dist/{build-BejatFZX.js → build-CWrpkal-.js} +14 -6
  76. package/dist/build-CWrpkal-.js.map +1 -0
  77. package/dist/cli/app-process.d.ts +5 -0
  78. package/dist/cli/app-process.js +5 -5
  79. package/dist/cli/build.d.ts +33 -25
  80. package/dist/cli/build.js +29 -29
  81. package/dist/cli/common.d.ts +57 -27
  82. package/dist/cli/common.js +3 -3
  83. package/dist/cli/development.d.ts +4 -0
  84. package/dist/cli/development.js +46 -30
  85. package/dist/cli/development.js.map +1 -1
  86. package/dist/cli/env.d.ts +32 -0
  87. package/dist/cli/env.js +1 -1
  88. package/dist/cli/generators.d.ts +8 -0
  89. package/dist/cli/generators.js +27 -3
  90. package/dist/cli/generators.js.map +1 -1
  91. package/dist/cli/information.d.ts +4 -0
  92. package/dist/cli/information.js +17 -1
  93. package/dist/cli/information.js.map +1 -1
  94. package/dist/cli/init.js +27 -27
  95. package/dist/cli/production.d.ts +9 -0
  96. package/dist/cli/production.js +39 -31
  97. package/dist/cli/production.js.map +1 -1
  98. package/dist/cli/type-checker.d.ts +2 -0
  99. package/dist/cli/type-checker.js +4 -4
  100. package/dist/cli/utils.d.ts +5 -0
  101. package/dist/cli/utils.js +1 -1
  102. package/dist/{common-pvPJVTfe.d.ts → common-DOCvOVC4.d.ts} +7 -2
  103. package/dist/{common-CW8v7gAn.js → common-Dasi9oKU.js} +44 -2
  104. package/dist/common-Dasi9oKU.js.map +1 -0
  105. package/dist/{common-CeO-vn8Y.js → common-vnMIelAE.js} +4 -1
  106. package/dist/common-vnMIelAE.js.map +1 -0
  107. package/dist/components/common/EventInterceptor.d.ts +1 -1
  108. package/dist/components/common/EventInterceptor.js +1 -1
  109. package/dist/components/common/element.d.ts +4 -4
  110. package/dist/components/common/element.js +2 -2
  111. package/dist/components/index.d.ts +20 -20
  112. package/dist/components/index.js +26 -26
  113. package/dist/components/v1/action-row/ActionRow.d.ts +5 -5
  114. package/dist/components/v1/button/Button.d.ts +5 -5
  115. package/dist/components/v1/button/Button.js +26 -26
  116. package/dist/components/v1/button/ButtonKit.d.ts +2 -2
  117. package/dist/components/v1/button/ButtonKit.js +26 -26
  118. package/dist/components/v1/modal/Modal.d.ts +5 -5
  119. package/dist/components/v1/modal/Modal.js +26 -26
  120. package/dist/components/v1/modal/ModalKit.d.ts +2 -2
  121. package/dist/components/v1/modal/ModalKit.js +26 -26
  122. package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +3 -3
  123. package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +26 -26
  124. package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +3 -3
  125. package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +26 -26
  126. package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +3 -3
  127. package/dist/components/v1/select-menu/RoleSelectMenuKit.js +26 -26
  128. package/dist/components/v1/select-menu/SelectMenu.d.ts +8 -8
  129. package/dist/components/v1/select-menu/SelectMenu.js +26 -26
  130. package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +3 -3
  131. package/dist/components/v1/select-menu/StringSelectMenuKit.js +26 -26
  132. package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +3 -3
  133. package/dist/components/v1/select-menu/UserSelectMenuKit.js +26 -26
  134. package/dist/components/v1/select-menu/common.d.ts +2 -2
  135. package/dist/components/v2/common.d.ts +4 -0
  136. package/dist/components/v2/common.js +1 -1
  137. package/dist/components/v2/container.d.ts +1 -1
  138. package/dist/components/v2/container.js +2 -2
  139. package/dist/components/v2/file.d.ts +1 -1
  140. package/dist/components/v2/file.js +1 -1
  141. package/dist/components/v2/index.d.ts +6 -6
  142. package/dist/components/v2/index.js +7 -7
  143. package/dist/components/v2/media-gallery.d.ts +1 -1
  144. package/dist/components/v2/media-gallery.js +2 -2
  145. package/dist/components/v2/section.d.ts +1 -1
  146. package/dist/components/v2/section.js +2 -2
  147. package/dist/components/v2/separator.d.ts +1 -1
  148. package/dist/components/v2/separator.js +1 -1
  149. package/dist/components/v2/text-display.d.ts +1 -1
  150. package/dist/components/v2/text-display.js +1 -1
  151. package/dist/config/config.d.ts +28 -28
  152. package/dist/config/config.js +26 -26
  153. package/dist/config/default.d.ts +30 -27
  154. package/dist/config/default.js +26 -26
  155. package/dist/config/loader.d.ts +33 -27
  156. package/dist/config/loader.js +26 -26
  157. package/dist/config/types.d.ts +26 -26
  158. package/dist/config/utils.d.ts +27 -27
  159. package/dist/config/utils.js +3 -0
  160. package/dist/config/utils.js.map +1 -1
  161. package/dist/{config-BjmEZYpx.d.ts → config-aCpqqs1C.d.ts} +3 -3
  162. package/dist/constants-BTttfrm3.d.ts +42 -0
  163. package/dist/{constants-DWe181uQ.js → constants-CXwjhIYH.js} +9 -1
  164. package/dist/constants-CXwjhIYH.js.map +1 -0
  165. package/dist/{constants-CCqS_v55.js → constants-DDRctWlU.js} +14 -8
  166. package/dist/constants-DDRctWlU.js.map +1 -0
  167. package/dist/{container-CpuiLsZM.js → container-DCjIgp-B.js} +12 -2
  168. package/dist/container-DCjIgp-B.js.map +1 -0
  169. package/dist/container-DaUKKPm-.d.ts +24 -0
  170. package/dist/context/async-context.d.ts +25 -25
  171. package/dist/context/async-context.js +26 -26
  172. package/dist/context/environment.d.ts +25 -25
  173. package/dist/context/environment.js +26 -26
  174. package/dist/element-CAXu1XtK.d.ts +72 -0
  175. package/dist/{element-DcqNz1dV.js → element-Cq-LoDjk.js} +27 -2
  176. package/dist/element-Cq-LoDjk.js.map +1 -0
  177. package/dist/{env-ERkaRfQO.js → env-DemeP-uq.js} +33 -1
  178. package/dist/env-DemeP-uq.js.map +1 -0
  179. package/dist/{error-codes-C_UO39jz.js → error-codes-CxlUBdF6.js} +20 -1
  180. package/dist/error-codes-CxlUBdF6.js.map +1 -0
  181. package/dist/events/CommandKitEventsChannel.d.ts +25 -25
  182. package/dist/events/CommandKitEventsChannel.js +1 -1
  183. package/dist/{feature-flags-BFiGn38a.js → feature-flags-CLZLGnAs.js} +4 -4
  184. package/dist/feature-flags-CLZLGnAs.js.map +1 -0
  185. package/dist/file-DTrr-p09.d.ts +24 -0
  186. package/dist/{file-DE69SSOP.js → file-DVZC0QXI.js} +11 -1
  187. package/dist/file-DVZC0QXI.js.map +1 -0
  188. package/dist/flags/FlagProvider.d.ts +25 -25
  189. package/dist/flags/feature-flags.d.ts +25 -25
  190. package/dist/flags/feature-flags.js +27 -27
  191. package/dist/flags/store.d.ts +25 -25
  192. package/dist/flags/store.js +1 -1
  193. package/dist/{helpers-CswC9gKF.js → helpers-CnfXqF_k.js} +11 -1
  194. package/dist/helpers-CnfXqF_k.js.map +1 -0
  195. package/dist/helpers-Wg6P5fRQ.d.ts +23 -0
  196. package/dist/index.d.ts +34 -34
  197. package/dist/index.js +30 -31
  198. package/dist/{init-BDgyvx9E.js → init-_FwacDcI.js} +6 -6
  199. package/dist/{init-BDgyvx9E.js.map → init-_FwacDcI.js.map} +1 -1
  200. package/dist/logger/DefaultLogger.d.ts +2 -2
  201. package/dist/logger/DefaultLogger.js +26 -26
  202. package/dist/logger/ILogger.d.ts +1 -1
  203. package/dist/logger/Logger.d.ts +2 -2
  204. package/dist/logger/Logger.js +26 -26
  205. package/dist/media-gallery-BMsXSot3.d.ts +49 -0
  206. package/dist/{media-gallery-nUEHqKVF.js → media-gallery-CIKypjbJ.js} +27 -2
  207. package/dist/media-gallery-CIKypjbJ.js.map +1 -0
  208. package/dist/plugins/CompilerPlugin.d.ts +25 -25
  209. package/dist/plugins/CompilerPlugin.js +2 -2
  210. package/dist/plugins/PluginCommon.d.ts +25 -25
  211. package/dist/plugins/PluginCommon.js +1 -1
  212. package/dist/plugins/RuntimePlugin.d.ts +25 -25
  213. package/dist/plugins/RuntimePlugin.js +2 -2
  214. package/dist/plugins/index.d.ts +25 -25
  215. package/dist/plugins/index.js +26 -26
  216. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +25 -25
  217. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +26 -26
  218. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +25 -25
  219. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
  220. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +25 -25
  221. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +26 -26
  222. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +37 -25
  223. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +26 -26
  224. package/dist/plugins/plugin-runtime/runtime.d.ts +25 -25
  225. package/dist/plugins/types.d.ts +25 -25
  226. package/dist/{section-D6t7tyEZ.js → section-CuYr0Inu.js} +22 -2
  227. package/dist/section-CuYr0Inu.js.map +1 -0
  228. package/dist/section-Dh_FhPeC.d.ts +45 -0
  229. package/dist/separator-CMf6Cyy5.d.ts +22 -0
  230. package/dist/{separator-DYAFK-Jj.js → separator-DLdWBjSN.js} +11 -1
  231. package/dist/separator-DLdWBjSN.js.map +1 -0
  232. package/dist/{signals-scJdEbly.js → signals-CSSSZAZ6.js} +2 -2
  233. package/dist/{signals-scJdEbly.js.map → signals-CSSSZAZ6.js.map} +1 -1
  234. package/dist/{store-Ci6ib2C9.js → store-x93NXUy_.js} +5 -1
  235. package/dist/store-x93NXUy_.js.map +1 -0
  236. package/dist/{text-display-Dy6JHB5X.js → text-display--p2-BoUa.js} +13 -1
  237. package/dist/text-display--p2-BoUa.js.map +1 -0
  238. package/dist/text-display-DRw3r_lK.d.ts +33 -0
  239. package/dist/{type-checker-CXVdS7qc.js → type-checker-P8oyY259.js} +6 -2
  240. package/dist/type-checker-P8oyY259.js.map +1 -0
  241. package/dist/{types-DjL43eQS.d.ts → types-DwmPE0nY.d.ts} +2 -2
  242. package/dist/{types-package-CTSNSM93.js → types-package-BpY3acyl.js} +8 -2
  243. package/dist/types-package-BpY3acyl.js.map +1 -0
  244. package/dist/types.d.ts +25 -25
  245. package/dist/{utilities-DQT4lzAB.d.ts → utilities-D_MFPmTe.d.ts} +45 -2
  246. package/dist/utils/colors.d.ts +2 -2
  247. package/dist/utils/constants.d.ts +2 -2
  248. package/dist/utils/constants.js +1 -2
  249. package/dist/utils/dev-hooks.d.ts +26 -26
  250. package/dist/utils/dev-hooks.js +26 -26
  251. package/dist/utils/error-codes.d.ts +34 -0
  252. package/dist/utils/error-codes.js +1 -1
  253. package/dist/utils/types-package.d.ts +6 -0
  254. package/dist/utils/types-package.js +2 -2
  255. package/dist/utils/utilities.d.ts +1 -1
  256. package/dist/utils/utilities.js +26 -26
  257. package/dist/utils/warn-unstable.d.ts +10 -0
  258. package/dist/utils/warn-unstable.js +1 -1
  259. package/dist/{utils-IYtoeTur.js → utils-C8a_hMvn.js} +5 -1
  260. package/dist/utils-C8a_hMvn.js.map +1 -0
  261. package/dist/{utils-VCdd7XhD.d.ts → utils-DS6OiGvg.d.ts} +12 -2
  262. package/dist/{version-BSsOib4x.js → version-IoXx-oYe.js} +5 -2
  263. package/dist/version-IoXx-oYe.js.map +1 -0
  264. package/dist/version.js +1 -1
  265. package/dist/{warn-unstable-DHLaxPC8.js → warn-unstable-CttBdmlS.js} +11 -1
  266. package/dist/warn-unstable-CttBdmlS.js.map +1 -0
  267. package/package.json +2 -2
  268. package/dist/CommandKit-CnLBu_7m.js.map +0 -1
  269. package/dist/CommandKitEventsChannel-B6LKgxmv.js +0 -44
  270. package/dist/CommandKitEventsChannel-B6LKgxmv.js.map +0 -1
  271. package/dist/CommandsRouter-BHaPno8o.js.map +0 -1
  272. package/dist/CommandsRouter-C7X-eXE2.d.ts +0 -67
  273. package/dist/CompilerPlugin-DrnhOC1c.js.map +0 -1
  274. package/dist/CompilerPluginRuntime-C9wmPMQf.js.map +0 -1
  275. package/dist/DefaultLogger-CcW-Fuq5.d.ts +0 -30
  276. package/dist/EventInterceptor-Bvh05z7n.js.map +0 -1
  277. package/dist/EventWorkerContext-BAKiTqJz.js.map +0 -1
  278. package/dist/ILogger-kqwb2kUu.d.ts +0 -11
  279. package/dist/Logger-B4B_URL-.d.ts +0 -17
  280. package/dist/MessageCommandParser-D02-wpZN.js.map +0 -1
  281. package/dist/MessageCommandParser-tzroBwij.d.ts +0 -62
  282. package/dist/PluginCommon-DPqnQngK.js.map +0 -1
  283. package/dist/RuntimePlugin-BJoDa8ZR.js.map +0 -1
  284. package/dist/SelectMenu-b7jgrkjO.d.ts +0 -36
  285. package/dist/app-process-YbSHvqf-.js.map +0 -1
  286. package/dist/build-BejatFZX.js.map +0 -1
  287. package/dist/common-CW8v7gAn.js.map +0 -1
  288. package/dist/common-CeO-vn8Y.js.map +0 -1
  289. package/dist/constants-BPWSrMkn.d.ts +0 -18
  290. package/dist/constants-CCqS_v55.js.map +0 -1
  291. package/dist/constants-DWe181uQ.js.map +0 -1
  292. package/dist/container-CpuiLsZM.js.map +0 -1
  293. package/dist/container-CwEATQy2.d.ts +0 -10
  294. package/dist/element-D_nyVwgB.d.ts +0 -30
  295. package/dist/element-DcqNz1dV.js.map +0 -1
  296. package/dist/env-ERkaRfQO.js.map +0 -1
  297. package/dist/error-codes-C_UO39jz.js.map +0 -1
  298. package/dist/feature-flags-BFiGn38a.js.map +0 -1
  299. package/dist/file-BdyYwkaI.d.ts +0 -10
  300. package/dist/file-DE69SSOP.js.map +0 -1
  301. package/dist/helpers-CswC9gKF.js.map +0 -1
  302. package/dist/helpers-DAmE106r.d.ts +0 -9
  303. package/dist/media-gallery-DCu02VXc.d.ts +0 -17
  304. package/dist/media-gallery-nUEHqKVF.js.map +0 -1
  305. package/dist/section-D6t7tyEZ.js.map +0 -1
  306. package/dist/section-fktaECHL.d.ts +0 -18
  307. package/dist/separator-CuesaLrC.d.ts +0 -8
  308. package/dist/separator-DYAFK-Jj.js.map +0 -1
  309. package/dist/store-Ci6ib2C9.js.map +0 -1
  310. package/dist/text-display-DNMwmGHJ.d.ts +0 -12
  311. package/dist/text-display-Dy6JHB5X.js.map +0 -1
  312. package/dist/type-checker-CXVdS7qc.js.map +0 -1
  313. package/dist/types-package-CTSNSM93.js.map +0 -1
  314. package/dist/utils/clone.d.ts +0 -5
  315. package/dist/utils/clone.js +0 -9
  316. package/dist/utils/clone.js.map +0 -1
  317. package/dist/utils/get-paths.d.ts +0 -6
  318. package/dist/utils/get-paths.js +0 -34
  319. package/dist/utils/get-paths.js.map +0 -1
  320. package/dist/utils-IYtoeTur.js.map +0 -1
  321. package/dist/version-BSsOib4x.js.map +0 -1
  322. package/dist/warn-unstable-DHLaxPC8.js.map +0 -1
@@ -1,32 +1,32 @@
1
- import { CommonPluginRuntime } from "../../CommandKit-B-mjdP5x.js";
2
- import "../../EventInterceptor-D_oEWSnF.js";
3
- import "../../ButtonKit-BSI7lCI0.js";
4
- import "../../ModalKit-CKtQ8eXW.js";
5
- import "../../element-D_nyVwgB.js";
6
- import "../../ActionRow-D0wafJhZ.js";
1
+ import { CommonPluginRuntime } from "../../CommandKit-BkMUDbou.js";
2
+ import "../../EventInterceptor-x-R2qshQ.js";
3
+ import "../../ButtonKit-C7r7RPNf.js";
4
+ import "../../ModalKit-Btz58KYn.js";
5
+ import "../../element-CAXu1XtK.js";
6
+ import "../../ActionRow-DKnFVDME.js";
7
7
  import "../../types-CJ-XvOFN.js";
8
- import "../../Button-Bl5nbwTS.js";
9
- import "../../Modal-Cxm6cs5c.js";
10
- import "../../common-pvPJVTfe.js";
11
- import "../../StringSelectMenuKit-B9FHTe48.js";
12
- import "../../ChannelSelectMenuKit-L15A2jpT.js";
13
- import "../../MentionableSelectMenuKit-BiUSKUtZ.js";
14
- import "../../UserSelectMenuKit-DiP0imyo.js";
15
- import "../../RoleSelectMenuKit-BSMKkru2.js";
16
- import "../../SelectMenu-b7jgrkjO.js";
17
- import "../../container-CwEATQy2.js";
18
- import "../../file-BdyYwkaI.js";
19
- import "../../media-gallery-DCu02VXc.js";
20
- import "../../section-fktaECHL.js";
21
- import "../../separator-CuesaLrC.js";
22
- import "../../text-display-DNMwmGHJ.js";
8
+ import "../../Button-4ZUXdA56.js";
9
+ import "../../Modal-C6UTRdYQ.js";
10
+ import "../../common-DOCvOVC4.js";
11
+ import "../../StringSelectMenuKit-Bhs8U6WI.js";
12
+ import "../../ChannelSelectMenuKit-BrXvBYNH.js";
13
+ import "../../MentionableSelectMenuKit-CPTKqx-O.js";
14
+ import "../../UserSelectMenuKit-CfqFJdxz.js";
15
+ import "../../RoleSelectMenuKit-C26lU3sN.js";
16
+ import "../../SelectMenu-Diy87_ba.js";
17
+ import "../../container-DaUKKPm-.js";
18
+ import "../../file-DTrr-p09.js";
19
+ import "../../media-gallery-BMsXSot3.js";
20
+ import "../../section-Dh_FhPeC.js";
21
+ import "../../separator-CMf6Cyy5.js";
22
+ import "../../text-display-DRw3r_lK.js";
23
23
  import "../../index-Dw5cCt-A.js";
24
24
  import "../../index-E7Wvm5uX.js";
25
- import "../../MessageCommandParser-tzroBwij.js";
25
+ import "../../MessageCommandParser-ROLibZPX.js";
26
26
  import "../../signals-DUoWkeZ7.js";
27
- import "../../helpers-DAmE106r.js";
28
- import "../../CommandsRouter-C7X-eXE2.js";
27
+ import "../../helpers-Wg6P5fRQ.js";
28
+ import "../../CommandsRouter-CoOA7hkf.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-BPWSrMkn.js";
31
+ import "../../constants-BTttfrm3.js";
32
32
  export { CommonPluginRuntime };
@@ -1,32 +1,32 @@
1
- import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-B-mjdP5x.js";
2
- import "../EventInterceptor-D_oEWSnF.js";
3
- import "../ButtonKit-BSI7lCI0.js";
4
- import "../ModalKit-CKtQ8eXW.js";
5
- import "../element-D_nyVwgB.js";
6
- import "../ActionRow-D0wafJhZ.js";
1
+ import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-BkMUDbou.js";
2
+ import "../EventInterceptor-x-R2qshQ.js";
3
+ import "../ButtonKit-C7r7RPNf.js";
4
+ import "../ModalKit-Btz58KYn.js";
5
+ import "../element-CAXu1XtK.js";
6
+ import "../ActionRow-DKnFVDME.js";
7
7
  import "../types-CJ-XvOFN.js";
8
- import "../Button-Bl5nbwTS.js";
9
- import "../Modal-Cxm6cs5c.js";
10
- import "../common-pvPJVTfe.js";
11
- import "../StringSelectMenuKit-B9FHTe48.js";
12
- import "../ChannelSelectMenuKit-L15A2jpT.js";
13
- import "../MentionableSelectMenuKit-BiUSKUtZ.js";
14
- import "../UserSelectMenuKit-DiP0imyo.js";
15
- import "../RoleSelectMenuKit-BSMKkru2.js";
16
- import "../SelectMenu-b7jgrkjO.js";
17
- import "../container-CwEATQy2.js";
18
- import "../file-BdyYwkaI.js";
19
- import "../media-gallery-DCu02VXc.js";
20
- import "../section-fktaECHL.js";
21
- import "../separator-CuesaLrC.js";
22
- import "../text-display-DNMwmGHJ.js";
8
+ import "../Button-4ZUXdA56.js";
9
+ import "../Modal-C6UTRdYQ.js";
10
+ import "../common-DOCvOVC4.js";
11
+ import "../StringSelectMenuKit-Bhs8U6WI.js";
12
+ import "../ChannelSelectMenuKit-BrXvBYNH.js";
13
+ import "../MentionableSelectMenuKit-CPTKqx-O.js";
14
+ import "../UserSelectMenuKit-CfqFJdxz.js";
15
+ import "../RoleSelectMenuKit-C26lU3sN.js";
16
+ import "../SelectMenu-Diy87_ba.js";
17
+ import "../container-DaUKKPm-.js";
18
+ import "../file-DTrr-p09.js";
19
+ import "../media-gallery-BMsXSot3.js";
20
+ import "../section-Dh_FhPeC.js";
21
+ import "../separator-CMf6Cyy5.js";
22
+ import "../text-display-DRw3r_lK.js";
23
23
  import "../index-Dw5cCt-A.js";
24
24
  import "../index-E7Wvm5uX.js";
25
- import "../MessageCommandParser-tzroBwij.js";
25
+ import "../MessageCommandParser-ROLibZPX.js";
26
26
  import "../signals-DUoWkeZ7.js";
27
- import "../helpers-DAmE106r.js";
28
- import "../CommandsRouter-C7X-eXE2.js";
27
+ import "../helpers-Wg6P5fRQ.js";
28
+ import "../CommandsRouter-CoOA7hkf.js";
29
29
  import "../EventsRouter-BacqK6z3.js";
30
30
  import "../index-CUPkUUOR.js";
31
- import "../constants-BPWSrMkn.js";
31
+ import "../constants-BTttfrm3.js";
32
32
  export { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler };
@@ -1,8 +1,18 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
- const require_common = require('./common-CeO-vn8Y.js');
2
+ const require_common = require('./common-vnMIelAE.js');
3
3
  const discord_js = require_chunk.__toESM(require("discord.js"));
4
4
 
5
5
  //#region src/components/v2/section.ts
6
+ /**
7
+ * The components v2 section component
8
+ * @param props The properties for the section component.
9
+ * @returns The section builder instance.
10
+ * @example ```tsx
11
+ * import { Section } from 'commandkit';
12
+ *
13
+ * const section = <Section>...</Section>;
14
+ * ```
15
+ */
6
16
  function Section(props) {
7
17
  const section = new discord_js.SectionBuilder();
8
18
  require_common.applyId(props, section);
@@ -14,6 +24,16 @@ function Section(props) {
14
24
  }
15
25
  return section;
16
26
  }
27
+ /**
28
+ * The thumbnail component
29
+ * @param props The properties for the thumbnail component.
30
+ * @returns The thumbnail builder instance.
31
+ * @example ```tsx
32
+ * import { Thumbnail } from 'commandkit';
33
+ *
34
+ * const thumbnail = <Thumbnail url="https://example.com/image.png" description="An image" />;
35
+ * ```
36
+ */
17
37
  function Thumbnail(props) {
18
38
  const thumbnail = new discord_js.ThumbnailBuilder({
19
39
  description: props.description,
@@ -37,4 +57,4 @@ Object.defineProperty(exports, 'Thumbnail', {
37
57
  return Thumbnail;
38
58
  }
39
59
  });
40
- //# sourceMappingURL=section-D6t7tyEZ.js.map
60
+ //# sourceMappingURL=section-CuYr0Inu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section-CuYr0Inu.js","names":[],"sources":["../src/components/v2/section.ts"],"sourcesContent":["import {\n ButtonBuilder,\n SectionBuilder,\n TextDisplayBuilder,\n ThumbnailBuilder,\n} from 'discord.js';\nimport { applyId } from './common';\n\n/**\n * Represents the properties for a section component.\n */\nexport interface SectionProps {\n children?: (ThumbnailBuilder | ButtonBuilder | TextDisplayBuilder)[];\n id?: number;\n}\n\n/**\n * The components v2 section component\n * @param props The properties for the section component.\n * @returns The section builder instance.\n * @example ```tsx\n * import { Section } from 'commandkit';\n *\n * const section = <Section>...</Section>;\n * ```\n */\nexport function Section(props: SectionProps): SectionBuilder {\n const section = new SectionBuilder();\n\n applyId(props, section);\n\n if (props.children != null) {\n if (!Array.isArray(props.children)) props.children = [props.children];\n for (const accessory of props.children.flat()) {\n if (accessory instanceof ThumbnailBuilder) {\n section.setThumbnailAccessory(accessory);\n } else if (accessory instanceof ButtonBuilder) {\n section.setButtonAccessory(accessory);\n } else if (accessory instanceof TextDisplayBuilder) {\n section.addTextDisplayComponents(accessory);\n }\n }\n }\n\n return section;\n}\n\n/**\n * Represents the properties for a thumbnail component.\n */\nexport interface ThumbnailProps {\n id?: number;\n description?: string;\n spoiler?: boolean;\n url: string;\n}\n\n/**\n * The thumbnail component\n * @param props The properties for the thumbnail component.\n * @returns The thumbnail builder instance.\n * @example ```tsx\n * import { Thumbnail } from 'commandkit';\n *\n * const thumbnail = <Thumbnail url=\"https://example.com/image.png\" description=\"An image\" />;\n * ```\n */\nexport function Thumbnail(props: ThumbnailProps) {\n const thumbnail = new ThumbnailBuilder({\n description: props.description,\n spoiler: props.spoiler,\n id: props.id,\n media: { url: props.url },\n });\n\n return thumbnail;\n}\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,SAAgB,QAAQ,OAAqC;CAC3D,MAAM,UAAU,IAAI;AAEpB,wBAAQ,OAAO,QAAQ;AAEvB,KAAI,MAAM,YAAY,MAAM;AAC1B,OAAK,MAAM,QAAQ,MAAM,SAAS,CAAE,OAAM,WAAW,CAAC,MAAM,QAAS;AACrE,OAAK,MAAM,aAAa,MAAM,SAAS,MAAM,CAC3C,KAAI,qBAAqB,4BACvB,SAAQ,sBAAsB,UAAU;WAC/B,qBAAqB,yBAC9B,SAAQ,mBAAmB,UAAU;WAC5B,qBAAqB,8BAC9B,SAAQ,yBAAyB,UAAU;CAGjD;AAEA,QAAO;AACT;;;;;;;;;;;AAsBA,SAAgB,UAAU,OAAuB;CAC/C,MAAM,YAAY,IAAI,4BAAiB;EACrC,aAAa,MAAM;EACnB,SAAS,MAAM;EACf,IAAI,MAAM;EACV,OAAO,EAAE,KAAK,MAAM,IAAK;CAC1B;AAED,QAAO;AACT"}
@@ -0,0 +1,45 @@
1
+ import { ButtonBuilder, SectionBuilder, TextDisplayBuilder, ThumbnailBuilder } from "discord.js";
2
+
3
+ //#region src/components/v2/section.d.ts
4
+
5
+ /**
6
+ * Represents the properties for a section component.
7
+ */
8
+ interface SectionProps {
9
+ children?: (ThumbnailBuilder | ButtonBuilder | TextDisplayBuilder)[];
10
+ id?: number;
11
+ }
12
+ /**
13
+ * The components v2 section component
14
+ * @param props The properties for the section component.
15
+ * @returns The section builder instance.
16
+ * @example ```tsx
17
+ * import { Section } from 'commandkit';
18
+ *
19
+ * const section = <Section>...</Section>;
20
+ * ```
21
+ */
22
+ declare function Section(props: SectionProps): SectionBuilder;
23
+ /**
24
+ * Represents the properties for a thumbnail component.
25
+ */
26
+ interface ThumbnailProps {
27
+ id?: number;
28
+ description?: string;
29
+ spoiler?: boolean;
30
+ url: string;
31
+ }
32
+ /**
33
+ * The thumbnail component
34
+ * @param props The properties for the thumbnail component.
35
+ * @returns The thumbnail builder instance.
36
+ * @example ```tsx
37
+ * import { Thumbnail } from 'commandkit';
38
+ *
39
+ * const thumbnail = <Thumbnail url="https://example.com/image.png" description="An image" />;
40
+ * ```
41
+ */
42
+ declare function Thumbnail(props: ThumbnailProps): ThumbnailBuilder;
43
+ //#endregion
44
+ export { Section, SectionProps, Thumbnail, ThumbnailProps };
45
+ //# sourceMappingURL=section-Dh_FhPeC.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { SeparatorBuilder, SeparatorComponentData } from "discord.js";
2
+
3
+ //#region src/components/v2/separator.d.ts
4
+
5
+ /**
6
+ * Represents the properties for a separator component.
7
+ */
8
+ interface SeparatorProps extends Omit<SeparatorComponentData, 'type'> {}
9
+ /**
10
+ * The components v2 separator component
11
+ * @param props The properties for the separator component.
12
+ * @returns The separator builder instance.
13
+ * @example ```tsx
14
+ * import { Separator } from 'commandkit';
15
+ *
16
+ * const separator = <Separator />;
17
+ * ```
18
+ */
19
+ declare function Separator(props: SeparatorProps): SeparatorBuilder;
20
+ //#endregion
21
+ export { Separator, SeparatorProps };
22
+ //# sourceMappingURL=separator-CMf6Cyy5.d.ts.map
@@ -2,6 +2,16 @@ const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  const discord_js = require_chunk.__toESM(require("discord.js"));
3
3
 
4
4
  //#region src/components/v2/separator.ts
5
+ /**
6
+ * The components v2 separator component
7
+ * @param props The properties for the separator component.
8
+ * @returns The separator builder instance.
9
+ * @example ```tsx
10
+ * import { Separator } from 'commandkit';
11
+ *
12
+ * const separator = <Separator />;
13
+ * ```
14
+ */
5
15
  function Separator(props) {
6
16
  const separator = new discord_js.SeparatorBuilder(props);
7
17
  return separator;
@@ -14,4 +24,4 @@ Object.defineProperty(exports, 'Separator', {
14
24
  return Separator;
15
25
  }
16
26
  });
17
- //# sourceMappingURL=separator-DYAFK-Jj.js.map
27
+ //# sourceMappingURL=separator-DLdWBjSN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator-DLdWBjSN.js","names":[],"sources":["../src/components/v2/separator.ts"],"sourcesContent":["import { SeparatorBuilder, SeparatorComponentData } from 'discord.js';\n\n/**\n * Represents the properties for a separator component.\n */\nexport interface SeparatorProps extends Omit<SeparatorComponentData, 'type'> {}\n\n/**\n * The components v2 separator component\n * @param props The properties for the separator component.\n * @returns The separator builder instance.\n * @example ```tsx\n * import { Separator } from 'commandkit';\n *\n * const separator = <Separator />;\n * ```\n */\nexport function Separator(props: SeparatorProps) {\n const separator = new SeparatorBuilder(props);\n return separator;\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,SAAgB,UAAU,OAAuB;CAC/C,MAAM,YAAY,IAAI,4BAAiB;AACvC,QAAO;AACT"}
@@ -1,4 +1,4 @@
1
- const require_error_codes = require('./error-codes-C_UO39jz.js');
1
+ const require_error_codes = require('./error-codes-CxlUBdF6.js');
2
2
 
3
3
  //#region src/app/middleware/signals.ts
4
4
  /**
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'rethrow', {
43
43
  return rethrow;
44
44
  }
45
45
  });
46
- //# sourceMappingURL=signals-scJdEbly.js.map
46
+ //# sourceMappingURL=signals-CSSSZAZ6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signals-scJdEbly.js","names":[],"sources":["../src/app/middleware/signals.ts"],"sourcesContent":["import {\n CommandKitErrorCodes,\n createCommandKitError,\n isCommandKitError,\n} from '../../utils/error-codes';\n\n/**\n * Cancel upcoming middleware execution.\n * If this is called inside pre-stage middleware, the next run will be the actual command, skipping all other pre-stage middlewares.\n * If this is called inside a command itself, it will skip all post-stage middlewares.\n * If this is called inside post-stage middleware, it will skip all other post-stage middlewares.\n */\nexport function exitMiddleware(): never {\n throw createCommandKitError(CommandKitErrorCodes.ExitMiddleware);\n}\n\n/**\n * Rethrow the error if it is a CommandKit error.\n * @param error The error to rethrow.\n */\nexport function rethrow(error: unknown): void {\n if (isCommandKitError(error)) throw error;\n}\n\n/**\n * Stops current command assuming it has been redirected to another command.\n */\nexport function redirect(): never {\n throw createCommandKitError(CommandKitErrorCodes.ForwardedCommand);\n}\n"],"mappings":";;;;;;;;;AAYA,SAAgB,iBAAwB;AACtC,OAAM,0CAAsB,yCAAqB,eAAe;AAClE;;;;;AAMA,SAAgB,QAAQ,OAAsB;AAC5C,KAAI,sCAAkB,MAAM,CAAE,OAAM;AACtC;;;;AAKA,SAAgB,WAAkB;AAChC,OAAM,0CAAsB,yCAAqB,iBAAiB;AACpE"}
1
+ {"version":3,"file":"signals-CSSSZAZ6.js","names":[],"sources":["../src/app/middleware/signals.ts"],"sourcesContent":["import {\n CommandKitErrorCodes,\n createCommandKitError,\n isCommandKitError,\n} from '../../utils/error-codes';\n\n/**\n * Cancel upcoming middleware execution.\n * If this is called inside pre-stage middleware, the next run will be the actual command, skipping all other pre-stage middlewares.\n * If this is called inside a command itself, it will skip all post-stage middlewares.\n * If this is called inside post-stage middleware, it will skip all other post-stage middlewares.\n */\nexport function exitMiddleware(): never {\n throw createCommandKitError(CommandKitErrorCodes.ExitMiddleware);\n}\n\n/**\n * Rethrow the error if it is a CommandKit error.\n * @param error The error to rethrow.\n */\nexport function rethrow(error: unknown): void {\n if (isCommandKitError(error)) throw error;\n}\n\n/**\n * Stops current command assuming it has been redirected to another command.\n */\nexport function redirect(): never {\n throw createCommandKitError(CommandKitErrorCodes.ForwardedCommand);\n}\n"],"mappings":";;;;;;;;;AAYA,SAAgB,iBAAwB;AACtC,OAAM,0CAAsB,yCAAqB,eAAe;AAClE;;;;;AAMA,SAAgB,QAAQ,OAAsB;AAC5C,KAAI,sCAAkB,MAAM,CAAE,OAAM;AACtC;;;;AAKA,SAAgB,WAAkB;AAChC,OAAM,0CAAsB,yCAAqB,iBAAiB;AACpE"}
@@ -2,6 +2,10 @@ const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  const discord_js = require_chunk.__toESM(require("discord.js"));
3
3
 
4
4
  //#region src/flags/store.ts
5
+ /**
6
+ * Represents a store for feature flags.
7
+ * This store extends the Collection class to manage feature flags by their keys.
8
+ */
5
9
  var FlagStore = class extends discord_js.Collection {};
6
10
 
7
11
  //#endregion
@@ -11,4 +15,4 @@ Object.defineProperty(exports, 'FlagStore', {
11
15
  return FlagStore;
12
16
  }
13
17
  });
14
- //# sourceMappingURL=store-Ci6ib2C9.js.map
18
+ //# sourceMappingURL=store-x93NXUy_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-x93NXUy_.js","names":[],"sources":["../src/flags/store.ts"],"sourcesContent":["import type { FeatureFlag } from './feature-flags';\nimport { Collection } from 'discord.js';\n\n/**\n * Represents a store for feature flags.\n * This store extends the Collection class to manage feature flags by their keys.\n */\nexport class FlagStore extends Collection<string, FeatureFlag<any, any>> {}\n"],"mappings":";;;;;;;;AAOA,IAAa,YAAb,cAA+B,sBAA0C,CAAC"}
@@ -2,6 +2,18 @@ const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  const discord_js = require_chunk.__toESM(require("discord.js"));
3
3
 
4
4
  //#region src/components/v2/text-display.ts
5
+ /**
6
+ * The components v2 text display component
7
+ * @param props The properties for the text display component.
8
+ * @returns The text display builder instance.
9
+ * @example ```tsx
10
+ * import { TextDisplay } from 'commandkit';
11
+ *
12
+ * const textDisplay = <TextDisplay content="Hello, world!" />;
13
+ * // or
14
+ * const textDisplay = <TextDisplay>Some text content</TextDisplay>;
15
+ * ```
16
+ */
5
17
  function TextDisplay(props) {
6
18
  const textDisplay = new discord_js.TextDisplayBuilder(props);
7
19
  if (!props.content && props.children) if (Array.isArray(props.children)) textDisplay.setContent(props.children.join(" "));
@@ -16,4 +28,4 @@ Object.defineProperty(exports, 'TextDisplay', {
16
28
  return TextDisplay;
17
29
  }
18
30
  });
19
- //# sourceMappingURL=text-display-Dy6JHB5X.js.map
31
+ //# sourceMappingURL=text-display--p2-BoUa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-display--p2-BoUa.js","names":[],"sources":["../src/components/v2/text-display.ts"],"sourcesContent":["import { TextDisplayBuilder, TextDisplayComponentData } from 'discord.js';\n\n/**\n * Represents a type that can be encoded as a string.\n */\nexport type StringEncodable = string | number | boolean;\n\n/**\n * Represents the properties for a text display component.\n * This interface extends the TextDisplayComponentData type from discord.js,\n * excluding the 'type' and 'content' properties.\n */\nexport interface TextDisplayProps\n extends Omit<TextDisplayComponentData, 'type' | 'content'> {\n children?: StringEncodable | StringEncodable[];\n content?: string;\n}\n\n/**\n * The components v2 text display component\n * @param props The properties for the text display component.\n * @returns The text display builder instance.\n * @example ```tsx\n * import { TextDisplay } from 'commandkit';\n *\n * const textDisplay = <TextDisplay content=\"Hello, world!\" />;\n * // or\n * const textDisplay = <TextDisplay>Some text content</TextDisplay>;\n * ```\n */\nexport function TextDisplay(props: TextDisplayProps) {\n const textDisplay = new TextDisplayBuilder(props);\n\n if (!props.content && props.children) {\n if (Array.isArray(props.children)) {\n textDisplay.setContent(props.children.join(' '));\n } else {\n textDisplay.setContent(\n typeof props.children === 'string'\n ? props.children\n : String(props.children),\n );\n }\n }\n\n return textDisplay;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA8BA,SAAgB,YAAY,OAAyB;CACnD,MAAM,cAAc,IAAI,8BAAmB;AAE3C,MAAK,MAAM,WAAW,MAAM,SAC1B,KAAI,MAAM,QAAQ,MAAM,SAAS,CAC/B,aAAY,WAAW,MAAM,SAAS,KAAK,IAAI,CAAC;KAEhD,aAAY,kBACH,MAAM,aAAa,WAC1B,MAAM,WACN,OAAO,MAAM,SAAS,CACvB;AAIL,QAAO;AACT"}
@@ -0,0 +1,33 @@
1
+ import { TextDisplayBuilder, TextDisplayComponentData } from "discord.js";
2
+
3
+ //#region src/components/v2/text-display.d.ts
4
+
5
+ /**
6
+ * Represents a type that can be encoded as a string.
7
+ */
8
+ type StringEncodable = string | number | boolean;
9
+ /**
10
+ * Represents the properties for a text display component.
11
+ * This interface extends the TextDisplayComponentData type from discord.js,
12
+ * excluding the 'type' and 'content' properties.
13
+ */
14
+ interface TextDisplayProps extends Omit<TextDisplayComponentData, 'type' | 'content'> {
15
+ children?: StringEncodable | StringEncodable[];
16
+ content?: string;
17
+ }
18
+ /**
19
+ * The components v2 text display component
20
+ * @param props The properties for the text display component.
21
+ * @returns The text display builder instance.
22
+ * @example ```tsx
23
+ * import { TextDisplay } from 'commandkit';
24
+ *
25
+ * const textDisplay = <TextDisplay content="Hello, world!" />;
26
+ * // or
27
+ * const textDisplay = <TextDisplay>Some text content</TextDisplay>;
28
+ * ```
29
+ */
30
+ declare function TextDisplay(props: TextDisplayProps): TextDisplayBuilder;
31
+ //#endregion
32
+ export { StringEncodable, TextDisplay, TextDisplayProps };
33
+ //# sourceMappingURL=text-display-DRw3r_lK.d.ts.map
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  const require_colors = require('./colors-Cd4Oz-r-.js');
3
- const require_common = require('./common-CW8v7gAn.js');
3
+ const require_common = require('./common-Dasi9oKU.js');
4
4
  const node_fs = require_chunk.__toESM(require("node:fs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
 
@@ -8,6 +8,8 @@ const node_path = require_chunk.__toESM(require("node:path"));
8
8
  const TS_NOT_FOUND_ERR = `TypeScript must be installed in order to use the type checker. Please install it using \`npm install typescript\` or \`yarn add typescript\``;
9
9
  /**
10
10
  * Formats a TypeScript diagnostic message in a pretty, readable format
11
+ * @private
12
+ * @internal
11
13
  */
12
14
  function formatDiagnostic(ts, diagnostic, cwd) {
13
15
  const messageText = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
@@ -21,6 +23,8 @@ function formatDiagnostic(ts, diagnostic, cwd) {
21
23
  /**
22
24
  * Performs a type check on the project using TypeScript.
23
25
  * @param path The project root or cwd
26
+ * @private
27
+ * @internal
24
28
  */
25
29
  async function performTypeCheck(path) {
26
30
  const tsconfigPath = (0, node_path.join)(path, "tsconfig.json");
@@ -81,4 +85,4 @@ Object.defineProperty(exports, 'performTypeCheck', {
81
85
  return performTypeCheck;
82
86
  }
83
87
  });
84
- //# sourceMappingURL=type-checker-CXVdS7qc.js.map
88
+ //# sourceMappingURL=type-checker-P8oyY259.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-checker-P8oyY259.js","names":[],"sources":["../src/cli/type-checker.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { loadTypeScript } from './common';\nimport { join, relative } from 'node:path';\nimport colors from '../utils/colors';\n\nconst TS_NOT_FOUND_ERR = `TypeScript must be installed in order to use the type checker. Please install it using \\`npm install typescript\\` or \\`yarn add typescript\\``;\n\n/**\n * Formats a TypeScript diagnostic message in a pretty, readable format\n * @private\n * @internal\n */\nfunction formatDiagnostic(\n ts: typeof import('typescript'),\n diagnostic: import('typescript').Diagnostic,\n cwd: string,\n): string {\n const messageText = ts.flattenDiagnosticMessageText(\n diagnostic.messageText,\n '\\n',\n );\n\n if (!diagnostic.file) {\n return `${colors.red('error')}: ${messageText}`;\n }\n\n const { line, character } = ts.getLineAndCharacterOfPosition(\n diagnostic.file,\n diagnostic.start!,\n );\n const fileName = relative(cwd, diagnostic.file.fileName);\n const position = `${line + 1}:${character + 1}`;\n const errorCode = diagnostic.code ? `TS${diagnostic.code}` : '';\n\n // Format the error message nicely\n return [\n `${colors.bold(colors.cyan(fileName))}:${colors.bold(colors.yellow(position))} - ${colors.red('error')} ${colors.gray(errorCode)}`,\n `${messageText}`,\n ].join('\\n');\n}\n\n/**\n * Performs a type check on the project using TypeScript.\n * @param path The project root or cwd\n * @private\n * @internal\n */\nexport async function performTypeCheck(path: string) {\n const tsconfigPath = join(path, 'tsconfig.json');\n\n if (!existsSync(tsconfigPath)) return;\n\n const ts = await loadTypeScript(TS_NOT_FOUND_ERR);\n\n // Format host for error reporting\n const formatHost = {\n getCanonicalFileName: (path: string) => path,\n getCurrentDirectory: ts.sys.getCurrentDirectory,\n getNewLine: () => ts.sys.newLine,\n };\n\n // Read tsconfig.json\n const configFile = ts.readConfigFile(tsconfigPath, ts.sys.readFile);\n\n if (configFile.error) {\n console.error(\n colors.red(\n `Error reading tsconfig.json: ${ts.formatDiagnostic(configFile.error, formatHost)}`,\n ),\n );\n process.exit(1);\n }\n\n // Parse the config file\n const parsedConfig = ts.parseJsonConfigFileContent(\n configFile.config,\n ts.sys,\n path,\n );\n\n // Force noEmit to true as we only want type checking\n parsedConfig.options.noEmit = true;\n\n // Create a program\n const program = ts.createProgram({\n rootNames: parsedConfig.fileNames,\n options: parsedConfig.options,\n projectReferences: parsedConfig.projectReferences,\n });\n\n // Get the diagnostics\n const diagnostics = [\n ...program.getOptionsDiagnostics(),\n ...program.getGlobalDiagnostics(),\n ...program.getSyntacticDiagnostics(),\n ...program.getSemanticDiagnostics(),\n ];\n\n // Report any errors\n if (diagnostics.length > 0) {\n console.log('');\n console.error(\n colors.bold(\n colors.red('Type checking failed with the following errors:'),\n ),\n );\n console.log('');\n\n // Group diagnostics by file for better readability\n const byFile = new Map<string, import('typescript').Diagnostic[]>();\n\n for (const diagnostic of diagnostics) {\n const fileName = diagnostic.file ? diagnostic.file.fileName : 'Global';\n if (!byFile.has(fileName)) {\n byFile.set(fileName, []);\n }\n byFile.get(fileName)!.push(diagnostic);\n }\n\n // Pretty-print each diagnostic\n const totalErrors = diagnostics.length;\n let counter = 0;\n\n for (const [_, fileDiags] of byFile) {\n for (const diagnostic of fileDiags) {\n counter++;\n console.log(formatDiagnostic(ts, diagnostic, path));\n // Add separator between errors for better readability, except for the last one\n if (counter < totalErrors) {\n console.log('');\n }\n }\n }\n\n console.log('');\n console.error(\n colors.bold(\n colors.red(`Found ${totalErrors} error${totalErrors > 1 ? 's' : ''}`),\n ),\n );\n console.log('');\n\n process.exit(1);\n }\n\n console.log(colors.green('✓ Type checking completed successfully.'));\n}\n"],"mappings":";;;;;;;AAKA,MAAM,oBAAoB;;;;;;AAO1B,SAAS,iBACT,IACA,YACA,KACS;CACP,MAAM,cAAc,GAAG,6BACrB,WAAW,aACX,KACD;AAED,MAAK,WAAW,KACd,SAAQ,EAAE,8BAAO,IAAI,QAAQ,CAAC,IAAI,YAAY;CAGhD,MAAM,EAAE,MAAM,WAAW,GAAG,GAAG,8BAC7B,WAAW,MACX,WAAW,MACZ;CACD,MAAM,WAAW,wBAAS,KAAK,WAAW,KAAK,SAAS;CACxD,MAAM,YAAY,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE;CAC9C,MAAM,YAAY,WAAW,QAAQ,IAAI,WAAW,KAAK,IAAI;AAG7D,QAAO,EACN,EAAE,8BAAO,KAAK,8BAAO,KAAK,SAAS,CAAC,CAAC,GAAG,8BAAO,KAAK,8BAAO,OAAO,SAAS,CAAC,CAAC,KAAK,8BAAO,IAAI,QAAQ,CAAC,GAAG,8BAAO,KAAK,UAAU,CAAC,IAChI,EAAE,YAAY,CAAE,EACjB,KAAK,KAAK;AACZ;;;;;;;AAQA,eAAsB,iBAAiB,MAAc;CACnD,MAAM,eAAe,oBAAK,MAAM,gBAAgB;AAEhD,MAAK,wBAAW,aAAa,CAAE;CAE/B,MAAM,KAAK,MAAM,8BAAe,iBAAiB;CAGjD,MAAM,aAAa;EACjB,sBAAsB,CAAC,WAAiB;EACxC,qBAAqB,GAAG,IAAI;EAC5B,YAAY,MAAM,GAAG,IAAI;CAC1B;CAGD,MAAM,aAAa,GAAG,eAAe,cAAc,GAAG,IAAI,SAAS;AAEnE,KAAI,WAAW,OAAO;AACpB,UAAQ,MACN,8BAAO,KACJ,+BAA+B,GAAG,iBAAiB,WAAW,OAAO,WAAW,CAAC,EACnF,CACF;AACD,UAAQ,KAAK,EAAE;CACjB;CAGA,MAAM,eAAe,GAAG,2BACtB,WAAW,QACX,GAAG,KACH,KACD;AAGD,cAAa,QAAQ,SAAS;CAG9B,MAAM,UAAU,GAAG,cAAc;EAC/B,WAAW,aAAa;EACxB,SAAS,aAAa;EACtB,mBAAmB,aAAa;CACjC,EAAC;CAGF,MAAM,cAAc;EACpB,GAAG,QAAQ,uBAAuB;EAClC,GAAG,QAAQ,sBAAsB;EACjC,GAAG,QAAQ,yBAAyB;EACpC,GAAG,QAAQ,wBAAwB;CAAC;AAIpC,KAAI,YAAY,SAAS,GAAG;AAC1B,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,IAAI,kDAAkD,CAC9D,CACF;AACD,UAAQ,IAAI,GAAG;EAGf,MAAM,yBAAS,IAAI;AAEnB,OAAK,MAAM,cAAc,aAAa;GACpC,MAAM,WAAW,WAAW,OAAO,WAAW,KAAK,WAAW;AAC9D,QAAK,OAAO,IAAI,SAAS,CACvB,QAAO,IAAI,UAAU,CAAE,EAAC;AAE1B,UAAO,IAAI,SAAS,CAAE,KAAK,WAAW;EACxC;EAGA,MAAM,cAAc,YAAY;EAChC,IAAI,UAAU;AAEd,OAAK,MAAM,CAAC,GAAG,UAAU,IAAI,OAC3B,MAAK,MAAM,cAAc,WAAW;AAClC;AACA,WAAQ,IAAI,iBAAiB,IAAI,YAAY,KAAK,CAAC;AAEnD,OAAI,UAAU,YACZ,SAAQ,IAAI,GAAG;EAEnB;AAGF,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,KAAK,QAAQ,YAAY,QAAQ,cAAc,IAAI,MAAM,GAAG,EAAE,CACtE,CACF;AACD,UAAQ,IAAI,GAAG;AAEf,UAAQ,KAAK,EAAE;CACjB;AAEA,SAAQ,IAAI,8BAAO,MAAM,0CAA0C,CAAC;AACtE"}
@@ -1,4 +1,4 @@
1
- import { CommandKitPlugin } from "./CommandKit-B-mjdP5x.js";
1
+ import { CommandKitPlugin } from "./CommandKit-BkMUDbou.js";
2
2
  import { MaybeArray } from "./types-CJ-XvOFN.js";
3
3
 
4
4
  //#region src/config/types.d.ts
@@ -70,4 +70,4 @@ interface CommandKitConfig {
70
70
  }
71
71
  //#endregion
72
72
  export { CommandKitConfig };
73
- //# sourceMappingURL=types-DjL43eQS.d.ts.map
73
+ //# sourceMappingURL=types-DwmPE0nY.d.ts.map
@@ -1,10 +1,13 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
- const require_constants = require('./constants-CCqS_v55.js');
2
+ const require_constants = require('./constants-DDRctWlU.js');
3
3
  const node_fs = require_chunk.__toESM(require("node:fs"));
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
6
6
 
7
7
  //#region src/utils/types-package.ts
8
+ /**
9
+ * @private
10
+ */
8
11
  async function generateTypesPackage(force = false) {
9
12
  const location = (0, node_path.join)(process.cwd(), "node_modules", "commandkit-types");
10
13
  if (!require_constants.COMMANDKIT_IS_DEV && !force) return location;
@@ -37,6 +40,9 @@ declare module 'commandkit' {
37
40
  await (0, node_fs_promises.writeFile)(command, commandTypesContent);
38
41
  return location;
39
42
  }
43
+ /**
44
+ * @private
45
+ */
40
46
  async function rewriteCommandDeclaration(data) {
41
47
  const commandTypesContent = `// Auto-generated command types
42
48
  declare module 'commandkit' {
@@ -63,4 +69,4 @@ Object.defineProperty(exports, 'rewriteCommandDeclaration', {
63
69
  return rewriteCommandDeclaration;
64
70
  }
65
71
  });
66
- //# sourceMappingURL=types-package-CTSNSM93.js.map
72
+ //# sourceMappingURL=types-package-BpY3acyl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-package-BpY3acyl.js","names":[],"sources":["../src/utils/types-package.ts"],"sourcesContent":["import { mkdir, writeFile } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { COMMANDKIT_IS_DEV } from './constants';\nimport { existsSync } from 'node:fs';\n\n/**\n * @private\n */\nexport async function generateTypesPackage(force = false) {\n const location = join(process.cwd(), 'node_modules', 'commandkit-types');\n if (!COMMANDKIT_IS_DEV && !force) return location;\n const packageJSON = join(location, 'package.json');\n const index = join(location, 'index.js');\n const types = join(location, 'index.d.ts');\n const command = join(location, 'command.d.ts');\n\n const packageJSONContent = {\n name: 'commandkit-types',\n version: '1.0.0',\n description: 'CommandKit types package',\n type: 'commonjs',\n main: 'index.js',\n types: 'index.d.ts',\n };\n\n const indexContent = `module.exports = {};`;\n\n // Restructuring the type declarations to properly extend rather than replace types\n const typesContent = `// Main types index file - imports all type declarations\nimport './command';\nexport {};\n`;\n\n // Properly set up command types to extend the CommandTypeData interface\n const commandTypesContent = `// Auto-generated command types\n export {};\ndeclare module 'commandkit' {\n type CommandTypeData = string\n}`;\n\n await mkdir(location, { recursive: true }).catch(() => {});\n await writeFile(packageJSON, JSON.stringify(packageJSONContent, null, 2));\n await writeFile(index, indexContent);\n await writeFile(types, typesContent);\n await writeFile(command, commandTypesContent);\n\n return location;\n}\n\n/**\n * @private\n */\nexport async function rewriteCommandDeclaration(data: string) {\n const commandTypesContent = `// Auto-generated command types\n declare module 'commandkit' {\n ${data}\n}\n export {};\n`;\n\n const location = join(process.cwd(), 'node_modules', 'commandkit-types');\n\n if (!existsSync(location)) return;\n\n const type = join(location, 'command.d.ts');\n\n await writeFile(type, commandTypesContent, { encoding: 'utf-8' });\n}\n"],"mappings":";;;;;;;;;;AAQA,eAAsB,qBAAqB,QAAQ,OAAO;CACxD,MAAM,WAAW,oBAAK,QAAQ,KAAK,EAAE,gBAAgB,mBAAmB;AACxE,MAAK,wCAAsB,MAAO,QAAO;CACzC,MAAM,cAAc,oBAAK,UAAU,eAAe;CAClD,MAAM,QAAQ,oBAAK,UAAU,WAAW;CACxC,MAAM,QAAQ,oBAAK,UAAU,aAAa;CAC1C,MAAM,UAAU,oBAAK,UAAU,eAAe;CAE9C,MAAM,qBAAqB;EACzB,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,MAAM;EACN,OAAO;CACR;CAED,MAAM,gBAAgB;CAGtB,MAAM,gBAAgB;;;;CAMtB,MAAM,uBAAuB;;;;;AAM7B,OAAM,4BAAM,UAAU,EAAE,WAAW,KAAM,EAAC,CAAC,MAAM,MAAM,CAAE,EAAC;AAC1D,OAAM,gCAAU,aAAa,KAAK,UAAU,oBAAoB,MAAM,EAAE,CAAC;AACzE,OAAM,gCAAU,OAAO,aAAa;AACpC,OAAM,gCAAU,OAAO,aAAa;AACpC,OAAM,gCAAU,SAAS,oBAAoB;AAE7C,QAAO;AACT;;;;AAKA,eAAsB,0BAA0B,MAAc;CAC5D,MAAM,uBAAuB;;MAEzB,KAAI;;;;CAKR,MAAM,WAAW,oBAAK,QAAQ,KAAK,EAAE,gBAAgB,mBAAmB;AAExE,MAAK,wBAAW,SAAS,CAAE;CAE3B,MAAM,OAAO,oBAAK,UAAU,eAAe;AAE3C,OAAM,gCAAU,MAAM,qBAAqB,EAAE,UAAU,QAAS,EAAC;AACnE"}
package/dist/types.d.ts CHANGED
@@ -1,32 +1,32 @@
1
- import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-B-mjdP5x.js";
2
- import "./EventInterceptor-D_oEWSnF.js";
3
- import "./ButtonKit-BSI7lCI0.js";
4
- import "./ModalKit-CKtQ8eXW.js";
5
- import "./element-D_nyVwgB.js";
6
- import "./ActionRow-D0wafJhZ.js";
1
+ import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-BkMUDbou.js";
2
+ import "./EventInterceptor-x-R2qshQ.js";
3
+ import "./ButtonKit-C7r7RPNf.js";
4
+ import "./ModalKit-Btz58KYn.js";
5
+ import "./element-CAXu1XtK.js";
6
+ import "./ActionRow-DKnFVDME.js";
7
7
  import "./types-CJ-XvOFN.js";
8
- import "./Button-Bl5nbwTS.js";
9
- import "./Modal-Cxm6cs5c.js";
10
- import "./common-pvPJVTfe.js";
11
- import "./StringSelectMenuKit-B9FHTe48.js";
12
- import "./ChannelSelectMenuKit-L15A2jpT.js";
13
- import "./MentionableSelectMenuKit-BiUSKUtZ.js";
14
- import "./UserSelectMenuKit-DiP0imyo.js";
15
- import "./RoleSelectMenuKit-BSMKkru2.js";
16
- import "./SelectMenu-b7jgrkjO.js";
17
- import "./container-CwEATQy2.js";
18
- import "./file-BdyYwkaI.js";
19
- import "./media-gallery-DCu02VXc.js";
20
- import "./section-fktaECHL.js";
21
- import "./separator-CuesaLrC.js";
22
- import "./text-display-DNMwmGHJ.js";
8
+ import "./Button-4ZUXdA56.js";
9
+ import "./Modal-C6UTRdYQ.js";
10
+ import "./common-DOCvOVC4.js";
11
+ import "./StringSelectMenuKit-Bhs8U6WI.js";
12
+ import "./ChannelSelectMenuKit-BrXvBYNH.js";
13
+ import "./MentionableSelectMenuKit-CPTKqx-O.js";
14
+ import "./UserSelectMenuKit-CfqFJdxz.js";
15
+ import "./RoleSelectMenuKit-C26lU3sN.js";
16
+ import "./SelectMenu-Diy87_ba.js";
17
+ import "./container-DaUKKPm-.js";
18
+ import "./file-DTrr-p09.js";
19
+ import "./media-gallery-BMsXSot3.js";
20
+ import "./section-Dh_FhPeC.js";
21
+ import "./separator-CMf6Cyy5.js";
22
+ import "./text-display-DRw3r_lK.js";
23
23
  import "./index-Dw5cCt-A.js";
24
24
  import "./index-E7Wvm5uX.js";
25
- import "./MessageCommandParser-tzroBwij.js";
25
+ import "./MessageCommandParser-ROLibZPX.js";
26
26
  import "./signals-DUoWkeZ7.js";
27
- import "./helpers-DAmE106r.js";
28
- import "./CommandsRouter-C7X-eXE2.js";
27
+ import "./helpers-Wg6P5fRQ.js";
28
+ import "./CommandsRouter-CoOA7hkf.js";
29
29
  import "./EventsRouter-BacqK6z3.js";
30
30
  import "./index-CUPkUUOR.js";
31
- import "./constants-BPWSrMkn.js";
31
+ import "./constants-BTttfrm3.js";
32
32
  export { CommandContext, CommandData, CommandKitOptions };
@@ -1,5 +1,14 @@
1
1
  //#region src/utils/utilities.d.ts
2
+ /**
3
+ * Returns the current working directory of the CommandKit application.
4
+ * This is typically the directory where the source code is located.
5
+ */
2
6
  declare function getCurrentDirectory(): string;
7
+ /**
8
+ * Returns the possible source directories for the CommandKit application.
9
+ * This includes the `src`, `.commandkit`, and the distribution directory.
10
+ * @returns An array of possible source directories.
11
+ */
3
12
  declare function getSourceDirectories(): string[];
4
13
  /**
5
14
  * Returns the path to the app directory.
@@ -11,11 +20,26 @@ declare function findAppDirectory(): string | null;
11
20
  * @param fn The function to debounce.
12
21
  * @param ms The debounce time in milliseconds.
13
22
  * @returns The debounced function.
23
+ * @example
24
+ * const debouncedFn = debounce(() => {
25
+ * console.log('Debounced function called');
26
+ * }, 300);
27
+ *
28
+ * debouncedFn(); // Will only execute after 300ms of inactivity
29
+ * debouncedFn(); // Will reset the timer
30
+ * debouncedFn(); // Will reset the timer again
14
31
  */
15
32
  declare function debounce<R, F extends (...args: any[]) => R>(fn: F, ms: number): F;
16
33
  /**
17
34
  * Defers the execution of a function.
18
35
  * @param fn The function to defer.
36
+ * @param timeout The time in milliseconds to wait before executing the function. Defaults to 0.
37
+ * @example
38
+ * defer(() => {
39
+ * console.log('This will run after a delay');
40
+ * });
41
+ *
42
+ * console.log('This will run immediately');
19
43
  */
20
44
  declare function defer<T>(fn: () => T, timeout?: number): void;
21
45
  /**
@@ -45,12 +69,31 @@ declare class StopEventPropagationError extends Error {
45
69
  constructor();
46
70
  }
47
71
  /**
48
- * Stops event propagation.
72
+ * Stops event propagation. This function should be called inside an event handler
73
+ * to prevent further event handling.
49
74
  * @throws {StopEventPropagationError}
75
+ * @example // src/app/events/messageCreate/handler.ts
76
+ * import { stopEvents } from 'commandkit';
77
+ *
78
+ * export default async function messageCreateHandler() {
79
+ * console.log('Message created');
80
+ * // Stop further event propagation
81
+ * stopEvents();
82
+ * }
50
83
  */
51
84
  declare function stopEvents(): never;
85
+ /**
86
+ * Represents a simple proxy object that mirrors a target object.
87
+ */
52
88
  interface SimpleProxy<T extends object> {
89
+ /**
90
+ * The proxied object that mirrors the target.
91
+ */
53
92
  proxy: T;
93
+ /**
94
+ * Sets a new target object for the proxy.
95
+ * @param newTarget The new target object to set.
96
+ */
54
97
  setTarget(newTarget: T): void;
55
98
  }
56
99
  /**
@@ -61,4 +104,4 @@ interface SimpleProxy<T extends object> {
61
104
  declare function createProxy<T extends object>(target: T): SimpleProxy<T>;
62
105
  //#endregion
63
106
  export { JsonSerialize, SimpleProxy, StopEventPropagationError, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories, stopEvents };
64
- //# sourceMappingURL=utilities-DQT4lzAB.d.ts.map
107
+ //# sourceMappingURL=utilities-D_MFPmTe.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as picocolors_types6 from "picocolors/types";
1
+ import * as picocolors_types8 from "picocolors/types";
2
2
 
3
3
  //#region src/utils/colors.d.ts
4
- declare const _default: picocolors_types6.Colors;
4
+ declare const _default: picocolors_types8.Colors;
5
5
  //#endregion
6
6
  export { _default as default };
7
7
  //# sourceMappingURL=colors.d.ts.map
@@ -1,2 +1,2 @@
1
- import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType } from "../constants-BPWSrMkn.js";
2
- export { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType };
1
+ import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType } from "../constants-BTttfrm3.js";
2
+ export { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType };