commandkit 1.2.0-dev.20260228121941 → 1.2.0-dev.20260301122036

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 (336) hide show
  1. package/dist/{ActionRow-CT-uyxW0.d.ts → ActionRow-Bt9qi0Mb.d.ts} +2 -2
  2. package/dist/{Button-oMnlpF6W.d.ts → Button-DxJLcZIU.d.ts} +5 -5
  3. package/dist/{ButtonKit-DKu0VAe4.d.ts → ButtonKit-BfcyvWfj.d.ts} +35 -35
  4. package/dist/{ChannelSelectMenuKit-HQZ4hH5s.d.ts → ChannelSelectMenuKit-DYkudikb.d.ts} +33 -33
  5. package/dist/{CommandsRouter-C7dZEepB.d.ts → CommandsRouter-DiNoF0dq.d.ts} +48 -48
  6. package/dist/{EventInterceptor-CZmWpS08.d.ts → EventInterceptor-D9JKMcfi.d.ts} +39 -39
  7. package/dist/{EventsRouter-DZ37r54v.d.ts → EventsRouter-EuuSu6NH.d.ts} +34 -34
  8. package/dist/{MentionableSelectMenuKit-7URDUM3-.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts} +33 -33
  9. package/dist/MessageCommandParser-DPCbHXCS.d.ts +194 -0
  10. package/dist/{Modal--iMEUqSm.d.ts → Modal-v9rrcMl-.d.ts} +7 -7
  11. package/dist/{ModalKit-BWXI3Z26.d.ts → ModalKit-XJSM65SV.d.ts} +32 -32
  12. package/dist/{RoleSelectMenuKit-BY-JJ18w.d.ts → RoleSelectMenuKit-CCjcp3HY.d.ts} +33 -33
  13. package/dist/{SelectMenu-DQbmOp1Y.d.ts → SelectMenu-CY0vvoSu.d.ts} +8 -8
  14. package/dist/{StringSelectMenuKit-lVhUMc3g.d.ts → StringSelectMenuKit-G5nBTicX.d.ts} +33 -33
  15. package/dist/{UserSelectMenuKit-CCj4Fpkr.d.ts → UserSelectMenuKit-D3SO_fXA.d.ts} +33 -33
  16. package/dist/analytics/analytics-engine.d.ts +1 -1
  17. package/dist/analytics/analytics-engine.js +2 -19
  18. package/dist/analytics/analytics-provider.d.ts +1 -1
  19. package/dist/analytics/analytics-provider.js +1 -0
  20. package/dist/analytics/constants.js +26 -3
  21. package/dist/analytics/constants.js.map +1 -0
  22. package/dist/analytics/utils.js +2 -19
  23. package/dist/{analytics-engine-_urJ5QTH.d.ts → analytics-engine-DnRsHBId.d.ts} +843 -843
  24. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  25. package/dist/app/commands/AppCommandRunner.js +2 -19
  26. package/dist/app/commands/Context.d.ts +1 -1
  27. package/dist/app/commands/Context.js +2 -19
  28. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  29. package/dist/app/commands/MessageCommandParser.js +261 -3
  30. package/dist/app/commands/MessageCommandParser.js.map +1 -0
  31. package/dist/app/commands/helpers.d.ts +1 -1
  32. package/dist/app/commands/helpers.js +25 -3
  33. package/dist/app/commands/helpers.js.map +1 -0
  34. package/dist/app/events/EventWorkerContext.d.ts +2 -2
  35. package/dist/app/events/EventWorkerContext.js +48 -5
  36. package/dist/app/events/EventWorkerContext.js.map +1 -0
  37. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  38. package/dist/app/handlers/AppCommandHandler.js +2 -19
  39. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  40. package/dist/app/handlers/AppEventsHandler.js +2 -19
  41. package/dist/app/index.d.ts +4 -4
  42. package/dist/app/index.js +13 -27
  43. package/dist/app/interrupt/signals.d.ts +1 -1
  44. package/dist/app/interrupt/signals.js +54 -6
  45. package/dist/app/interrupt/signals.js.map +1 -0
  46. package/dist/app/middlewares/permissions.d.ts +1 -1
  47. package/dist/app/middlewares/permissions.js +2 -19
  48. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  49. package/dist/app/register/CommandRegistrar.js +2 -19
  50. package/dist/app/router/CommandsRouter.d.ts +1 -1
  51. package/dist/app/router/CommandsRouter.js +210 -2
  52. package/dist/app/router/CommandsRouter.js.map +1 -0
  53. package/dist/app/router/EventsRouter.d.ts +1 -1
  54. package/dist/app/router/EventsRouter.js +128 -2
  55. package/dist/app/router/EventsRouter.js.map +1 -0
  56. package/dist/app/router/index.d.ts +2 -2
  57. package/dist/app/router/index.js +5 -5
  58. package/dist/{chunk-kSYXY2_d.js → chunk-BE-pF4vm.js} +1 -1
  59. package/dist/cli/app-process.d.ts +2 -2
  60. package/dist/cli/app-process.js +6 -8
  61. package/dist/cli/app-process.js.map +1 -1
  62. package/dist/cli/build.d.ts +2 -2
  63. package/dist/cli/build.js +14 -29
  64. package/dist/cli/build.js.map +1 -1
  65. package/dist/cli/common.d.ts +5 -5
  66. package/dist/cli/common.js +182 -12
  67. package/dist/cli/common.js.map +1 -0
  68. package/dist/cli/development.d.ts +3 -3
  69. package/dist/cli/development.js +38 -54
  70. package/dist/cli/development.js.map +1 -1
  71. package/dist/cli/env.js +73 -9
  72. package/dist/cli/env.js.map +1 -0
  73. package/dist/cli/generators.js +10 -10
  74. package/dist/cli/generators.js.map +1 -1
  75. package/dist/cli/information.js +9 -8
  76. package/dist/cli/information.js.map +1 -1
  77. package/dist/cli/init.d.ts +2 -2
  78. package/dist/cli/init.js +14 -28
  79. package/dist/cli/init.js.map +1 -1
  80. package/dist/cli/production.d.ts +2 -2
  81. package/dist/cli/production.js +11 -28
  82. package/dist/cli/production.js.map +1 -1
  83. package/dist/cli/type-checker.js +83 -6
  84. package/dist/cli/type-checker.js.map +1 -0
  85. package/dist/cli/utils.js +1 -0
  86. package/dist/cli/utils.js.map +1 -1
  87. package/dist/{commandkit-B1_NP74k.js → commandkit--k6yDJEr.js} +192 -192
  88. package/dist/{commandkit-B1_NP74k.js.map → commandkit--k6yDJEr.js.map} +1 -1
  89. package/dist/commandkit.d.ts +1 -1
  90. package/dist/commandkit.js +2 -19
  91. package/dist/{common-DnwCYit8.d.ts → common-CCvvgnxi.d.ts} +2 -2
  92. package/dist/components/common/EventInterceptor.d.ts +1 -1
  93. package/dist/components/common/EventInterceptor.js +137 -2
  94. package/dist/components/common/EventInterceptor.js.map +1 -0
  95. package/dist/components/common/element.d.ts +1 -1
  96. package/dist/components/common/element.js +2 -19
  97. package/dist/components/common/types.d.ts +1 -1
  98. package/dist/components/common/types.js +1 -0
  99. package/dist/components/display/common.js +2 -19
  100. package/dist/components/display/container.d.ts +1 -1
  101. package/dist/components/display/container.js +2 -19
  102. package/dist/components/display/file.d.ts +1 -1
  103. package/dist/components/display/file.js +23 -2
  104. package/dist/components/display/file.js.map +1 -0
  105. package/dist/components/display/index.d.ts +8 -8
  106. package/dist/components/display/index.js +12 -25
  107. package/dist/components/display/label.d.ts +1 -1
  108. package/dist/components/display/label.js +2 -19
  109. package/dist/components/display/media-gallery.d.ts +1 -1
  110. package/dist/components/display/media-gallery.js +2 -19
  111. package/dist/components/display/poll.d.ts +1 -1
  112. package/dist/components/display/poll.js +85 -4
  113. package/dist/{poll-ziQQQbMU.js.map → components/display/poll.js.map} +1 -1
  114. package/dist/components/display/section.d.ts +1 -1
  115. package/dist/components/display/section.js +2 -19
  116. package/dist/components/display/separator.d.ts +1 -1
  117. package/dist/components/display/separator.js +21 -2
  118. package/dist/components/display/separator.js.map +1 -0
  119. package/dist/components/display/text-display.d.ts +1 -1
  120. package/dist/components/display/text-display.js +26 -2
  121. package/dist/components/display/text-display.js.map +1 -0
  122. package/dist/components/index.d.ts +22 -22
  123. package/dist/components/index.js +14 -26
  124. package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
  125. package/dist/components/interactive/action-row/ActionRow.js +20 -2
  126. package/dist/{ActionRow-CSN_UKmM.js.map → components/interactive/action-row/ActionRow.js.map} +1 -1
  127. package/dist/components/interactive/button/Button.d.ts +1 -1
  128. package/dist/components/interactive/button/Button.js +2 -19
  129. package/dist/components/interactive/button/ButtonKit.d.ts +1 -1
  130. package/dist/components/interactive/button/ButtonKit.js +2 -19
  131. package/dist/components/interactive/modal/Modal.d.ts +1 -1
  132. package/dist/components/interactive/modal/Modal.js +2 -19
  133. package/dist/components/interactive/modal/ModalKit.d.ts +1 -1
  134. package/dist/components/interactive/modal/ModalKit.js +2 -19
  135. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -1
  136. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +2 -19
  137. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -1
  138. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +2 -19
  139. package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -1
  140. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +2 -19
  141. package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
  142. package/dist/components/interactive/select-menu/SelectMenu.js +2 -19
  143. package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -1
  144. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +2 -19
  145. package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -1
  146. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +2 -19
  147. package/dist/components/interactive/select-menu/common.d.ts +1 -1
  148. package/dist/components/interactive/select-menu/common.js +1 -0
  149. package/dist/config/config.d.ts +1 -1
  150. package/dist/config/config.js +2 -19
  151. package/dist/config/default.d.ts +1 -1
  152. package/dist/config/default.js +2 -19
  153. package/dist/config/loader.d.ts +1 -1
  154. package/dist/config/loader.js +2 -19
  155. package/dist/config/types.d.ts +1 -1
  156. package/dist/config/types.js +1 -0
  157. package/dist/config/utils.d.ts +1 -1
  158. package/dist/config/utils.js +29 -2
  159. package/dist/config/utils.js.map +1 -0
  160. package/dist/{constants-EpKcj0dH.d.ts → constants-DqtJY0t-.d.ts} +2 -2
  161. package/dist/{constants-CuYW0K10.d.ts → constants-DwxpkIeH.d.ts} +7 -7
  162. package/dist/{container-DYcb7zGw.d.ts → container-CYojOA9d.d.ts} +1 -1
  163. package/dist/context/async-context.d.ts +1 -1
  164. package/dist/context/async-context.js +2 -19
  165. package/dist/context/environment.d.ts +1 -1
  166. package/dist/context/environment.js +2 -19
  167. package/dist/{element-DZeqbSTk.d.ts → element-DeLvTMfZ.d.ts} +3 -3
  168. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  169. package/dist/events/CommandKitEventsChannel.js +83 -2
  170. package/dist/events/CommandKitEventsChannel.js.map +1 -0
  171. package/dist/{file-CrV4lSnl.d.ts → file-DLO1zEcH.d.ts} +1 -1
  172. package/dist/flags/FlagProvider.d.ts +1 -1
  173. package/dist/flags/FlagProvider.js +1 -0
  174. package/dist/flags/FlagProvider.js.map +1 -1
  175. package/dist/flags/feature-flags.d.ts +1 -1
  176. package/dist/flags/feature-flags.js +2 -19
  177. package/dist/flags/store.d.ts +1 -1
  178. package/dist/flags/store.js +13 -2
  179. package/dist/flags/store.js.map +1 -0
  180. package/dist/{helpers-AQPLVY35.d.ts → helpers-zmC44Mcu.d.ts} +1 -1
  181. package/dist/index.d.ts +30 -30
  182. package/dist/index.js +61 -67
  183. package/dist/kv/constants.d.ts +1 -1
  184. package/dist/kv/constants.js +22 -2
  185. package/dist/kv/constants.js.map +1 -0
  186. package/dist/kv/dotprops.js +1 -0
  187. package/dist/kv/dotprops.js.map +1 -1
  188. package/dist/kv/kv.d.ts +288 -288
  189. package/dist/kv/kv.js +2 -1
  190. package/dist/kv/kv.js.map +1 -1
  191. package/dist/kv/serde.d.ts +1 -1
  192. package/dist/kv/serde.js +29 -28
  193. package/dist/kv/serde.js.map +1 -1
  194. package/dist/{label-37kaNWMH.d.ts → label-DqGRqodo.d.ts} +3 -3
  195. package/dist/logger/DefaultLogger.d.ts +19 -19
  196. package/dist/logger/DefaultLogger.js +2 -19
  197. package/dist/logger/ILogger.d.ts +35 -35
  198. package/dist/logger/ILogger.js +1 -0
  199. package/dist/logger/Logger.d.ts +5 -5
  200. package/dist/logger/Logger.js +2 -19
  201. package/dist/logger/NoopLogger.d.ts +35 -35
  202. package/dist/logger/NoopLogger.js +1 -0
  203. package/dist/logger/NoopLogger.js.map +1 -1
  204. package/dist/{media-gallery-Ci3I4ElH.d.ts → media-gallery-Ca8es-eB.d.ts} +1 -1
  205. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  206. package/dist/plugins/CompilerPlugin.js +33 -3
  207. package/dist/plugins/CompilerPlugin.js.map +1 -0
  208. package/dist/plugins/PluginCommon.d.ts +1 -1
  209. package/dist/plugins/PluginCommon.js +55 -4
  210. package/dist/plugins/PluginCommon.js.map +1 -0
  211. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  212. package/dist/plugins/RuntimePlugin.js +124 -3
  213. package/dist/plugins/RuntimePlugin.js.map +1 -0
  214. package/dist/plugins/index.d.ts +1 -1
  215. package/dist/plugins/index.js +8 -25
  216. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  217. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -19
  218. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  219. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +2 -19
  220. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  221. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -19
  222. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
  223. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -19
  224. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  225. package/dist/plugins/plugin-runtime/runtime.js +1 -0
  226. package/dist/plugins/types.d.ts +1 -1
  227. package/dist/plugins/types.js +1 -0
  228. package/dist/{poll-Ddtapd6n.d.ts → poll-DQ6DX_Tt.d.ts} +8 -8
  229. package/dist/{section-DkUKULnB.d.ts → section-Q8nwx_-q.d.ts} +1 -1
  230. package/dist/{separator-CbXsIFCa.d.ts → separator-B8P-kdIK.d.ts} +1 -1
  231. package/dist/{signals-BbTgTc0i.d.ts → signals-CBXwugBW.d.ts} +1 -1
  232. package/dist/{text-display-D7j39VC-.d.ts → text-display-CL9C2yMc.d.ts} +1 -1
  233. package/dist/{types-BywA9d2Z.d.ts → types-DZy7U-Ld.d.ts} +1 -1
  234. package/dist/types.d.ts +1 -1
  235. package/dist/types.js +1 -0
  236. package/dist/utils/colors.js +9 -3
  237. package/dist/utils/colors.js.map +1 -0
  238. package/dist/utils/constants.d.ts +1 -1
  239. package/dist/utils/constants.js +50 -8
  240. package/dist/utils/constants.js.map +1 -0
  241. package/dist/utils/dev-hooks.d.ts +1 -1
  242. package/dist/utils/dev-hooks.js +2 -19
  243. package/dist/utils/error-codes.d.ts +10 -10
  244. package/dist/utils/error-codes.js +53 -5
  245. package/dist/utils/error-codes.js.map +1 -0
  246. package/dist/utils/resolve-file-url.js +18 -2
  247. package/dist/utils/resolve-file-url.js.map +1 -0
  248. package/dist/utils/types-package.js +61 -4
  249. package/dist/utils/types-package.js.map +1 -0
  250. package/dist/utils/useful-stuff/async-queue.d.ts +21 -21
  251. package/dist/utils/useful-stuff/async-queue.js +1 -0
  252. package/dist/utils/useful-stuff/async-queue.js.map +1 -1
  253. package/dist/utils/useful-stuff/mutex.d.ts +62 -62
  254. package/dist/utils/useful-stuff/mutex.js +1 -0
  255. package/dist/utils/useful-stuff/mutex.js.map +1 -1
  256. package/dist/utils/useful-stuff/ratelimiter.d.ts +56 -56
  257. package/dist/utils/useful-stuff/ratelimiter.js +1 -0
  258. package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
  259. package/dist/utils/useful-stuff/semaphore.d.ts +82 -82
  260. package/dist/utils/useful-stuff/semaphore.js +1 -0
  261. package/dist/utils/useful-stuff/semaphore.js.map +1 -1
  262. package/dist/utils/utilities.d.ts +5 -5
  263. package/dist/utils/utilities.js +2 -19
  264. package/dist/utils/warning.js +38 -4
  265. package/dist/utils/warning.js.map +1 -0
  266. package/dist/version.js +13 -2
  267. package/dist/version.js.map +1 -0
  268. package/package.json +11 -14
  269. package/dist/ActionRow-CSN_UKmM.js +0 -25
  270. package/dist/CommandKitEventsChannel-DDI0UVh9.js +0 -88
  271. package/dist/CommandKitEventsChannel-DDI0UVh9.js.map +0 -1
  272. package/dist/CommandsRouter-D5mGRFEr.js +0 -215
  273. package/dist/CommandsRouter-D5mGRFEr.js.map +0 -1
  274. package/dist/CompilerPlugin-DZidFuHJ.js +0 -43
  275. package/dist/CompilerPlugin-DZidFuHJ.js.map +0 -1
  276. package/dist/EventInterceptor-CxA95XYA.js +0 -142
  277. package/dist/EventInterceptor-CxA95XYA.js.map +0 -1
  278. package/dist/EventWorkerContext-CfqamFWu.js +0 -68
  279. package/dist/EventWorkerContext-CfqamFWu.js.map +0 -1
  280. package/dist/EventsRouter-Be5NDOX4.js +0 -133
  281. package/dist/EventsRouter-Be5NDOX4.js.map +0 -1
  282. package/dist/ILogger-JI8VGyJf.js +0 -0
  283. package/dist/MessageCommandParser-VMFFGs0R.js +0 -271
  284. package/dist/MessageCommandParser-VMFFGs0R.js.map +0 -1
  285. package/dist/MessageCommandParser-q3dQcE5N.d.ts +0 -194
  286. package/dist/PluginCommon-Bfs8d9s7.js +0 -70
  287. package/dist/PluginCommon-Bfs8d9s7.js.map +0 -1
  288. package/dist/RuntimePlugin-BYQXQO8w.js +0 -134
  289. package/dist/RuntimePlugin-BYQXQO8w.js.map +0 -1
  290. package/dist/colors-Csc0X4QJ.js +0 -14
  291. package/dist/colors-Csc0X4QJ.js.map +0 -1
  292. package/dist/common-vGj3fpz3.js +0 -0
  293. package/dist/common-zQwj90Nz.js +0 -222
  294. package/dist/common-zQwj90Nz.js.map +0 -1
  295. package/dist/constants-BA0TJU6e.js +0 -36
  296. package/dist/constants-BA0TJU6e.js.map +0 -1
  297. package/dist/constants-BS9N2avz.js +0 -27
  298. package/dist/constants-BS9N2avz.js.map +0 -1
  299. package/dist/constants-CeIMhMD0.js +0 -85
  300. package/dist/constants-CeIMhMD0.js.map +0 -1
  301. package/dist/env-FxaiNasU.js +0 -113
  302. package/dist/env-FxaiNasU.js.map +0 -1
  303. package/dist/error-codes-Ds0bnPvT.js +0 -73
  304. package/dist/error-codes-Ds0bnPvT.js.map +0 -1
  305. package/dist/file-DqI3v90P.js +0 -28
  306. package/dist/file-DqI3v90P.js.map +0 -1
  307. package/dist/helpers-DSy7EjzP.js +0 -35
  308. package/dist/helpers-DSy7EjzP.js.map +0 -1
  309. package/dist/poll-ziQQQbMU.js +0 -100
  310. package/dist/resolve-file-url-BmjHzIKe.js +0 -23
  311. package/dist/resolve-file-url-BmjHzIKe.js.map +0 -1
  312. package/dist/router-CtcApqrw.js +0 -0
  313. package/dist/runtime-UJIpkNww.js +0 -0
  314. package/dist/separator-DGwA_b1J.js +0 -26
  315. package/dist/separator-DGwA_b1J.js.map +0 -1
  316. package/dist/signals-ewEPW2cO.js +0 -74
  317. package/dist/signals-ewEPW2cO.js.map +0 -1
  318. package/dist/store-DK4JA-fQ.js +0 -18
  319. package/dist/store-DK4JA-fQ.js.map +0 -1
  320. package/dist/text-display-BVuG7dT-.js +0 -31
  321. package/dist/text-display-BVuG7dT-.js.map +0 -1
  322. package/dist/type-checker-CFpKDDs8.js +0 -88
  323. package/dist/type-checker-CFpKDDs8.js.map +0 -1
  324. package/dist/types-Bx1EKe0v.js +0 -0
  325. package/dist/types-CAwOz52q.js +0 -0
  326. package/dist/types-package-Bjh_ap0V.js +0 -71
  327. package/dist/types-package-Bjh_ap0V.js.map +0 -1
  328. package/dist/utils-CVaVycsK.js +0 -34
  329. package/dist/utils-CVaVycsK.js.map +0 -1
  330. package/dist/version-rRfNG5vY.js +0 -18
  331. package/dist/version-rRfNG5vY.js.map +0 -1
  332. package/dist/warning-BWiQltHE.js +0 -53
  333. package/dist/warning-BWiQltHE.js.map +0 -1
  334. /package/dist/{index-BJfko-dP.d.ts → index-BIsCUWAs.d.ts} +0 -0
  335. /package/dist/{index-CCggO_hw.d.ts → index-CwHYpK-f.d.ts} +0 -0
  336. /package/dist/{index-CLjpoGi1.d.ts → index-DHrsNvX1.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-DZeqbSTk.js";
1
+ import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-DeLvTMfZ.js";
2
2
 
3
3
  //#region src/components/interactive/action-row/ActionRow.d.ts
4
4
  /**
@@ -16,4 +16,4 @@ interface ActionRowProps {
16
16
  declare function ActionRow(props: ActionRowProps): CommandKitElement<'action-row'>;
17
17
  //#endregion
18
18
  export { ActionRowProps as n, ActionRow as t };
19
- //# sourceMappingURL=ActionRow-CT-uyxW0.d.ts.map
19
+ //# sourceMappingURL=ActionRow-Bt9qi0Mb.d.ts.map
@@ -1,7 +1,7 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-CZmWpS08.js";
2
- import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-DKu0VAe4.js";
3
- import { n as CommandKitElement } from "./element-DZeqbSTk.js";
4
- import { t as MaybeArray } from "./types-BywA9d2Z.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
+ import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-BfcyvWfj.js";
3
+ import { n as CommandKitElement } from "./element-DeLvTMfZ.js";
4
+ import { t as MaybeArray } from "./types-DZy7U-Ld.js";
5
5
  import { ButtonStyle, ComponentEmojiResolvable } from "discord.js";
6
6
 
7
7
  //#region src/components/interactive/button/Button.d.ts
@@ -35,4 +35,4 @@ interface ButtonProps {
35
35
  declare function Button(props: ButtonProps): CommandKitElement<'button-kit'>;
36
36
  //#endregion
37
37
  export { ButtonChildrenLike as n, ButtonProps as r, Button as t };
38
- //# sourceMappingURL=Button-oMnlpF6W.d.ts.map
38
+ //# sourceMappingURL=Button-DxJLcZIU.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-CZmWpS08.js";
1
+ import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
2
  import { Awaitable, ButtonBuilder, ButtonInteraction, Events } from "discord.js";
3
3
 
4
4
  //#region src/components/interactive/button/ButtonKit.d.ts
@@ -38,49 +38,49 @@ type CommandKitButtonBuilderInteractionCollectorDispatchContextData = EventInter
38
38
  declare class ButtonKit extends ButtonBuilder {
39
39
  #private;
40
40
  /**
41
- * Sets up an inline interaction collector for this button. This collector by default allows as many interactions as possible if it is actively used.
42
- * If unused, this expires after 24 hours or custom time if specified.
43
- * @param handler The handler to run when the button is clicked
44
- * @param data The context data to use for the interaction collector
45
- * @returns This button
46
- * @example
47
- * ```ts
48
- * const button = new ButtonKit()
49
- * .setLabel('Click me')
50
- * .setStyle(ButtonStyle.Primary)
51
- * .setCustomId('click_me')
52
- * .filter((interaction) => interaction.user.id === '1234567890')
53
- * .onClick(async (interaction) => {
54
- * await interaction.reply('You clicked me!');
55
- * });
56
- *
57
- * const row = new ActionRowBuilder().addComponents(button);
58
- *
59
- * const message = await channel.send({ content: 'Click the button', components: [row] });
60
- *
61
- * // Remove onClick handler and destroy the interaction collector
62
- * button.onClick(null);
63
- * ```
64
- */
41
+ * Sets up an inline interaction collector for this button. This collector by default allows as many interactions as possible if it is actively used.
42
+ * If unused, this expires after 24 hours or custom time if specified.
43
+ * @param handler The handler to run when the button is clicked
44
+ * @param data The context data to use for the interaction collector
45
+ * @returns This button
46
+ * @example
47
+ * ```ts
48
+ * const button = new ButtonKit()
49
+ * .setLabel('Click me')
50
+ * .setStyle(ButtonStyle.Primary)
51
+ * .setCustomId('click_me')
52
+ * .filter((interaction) => interaction.user.id === '1234567890')
53
+ * .onClick(async (interaction) => {
54
+ * await interaction.reply('You clicked me!');
55
+ * });
56
+ *
57
+ * const row = new ActionRowBuilder().addComponents(button);
58
+ *
59
+ * const message = await channel.send({ content: 'Click the button', components: [row] });
60
+ *
61
+ * // Remove onClick handler and destroy the interaction collector
62
+ * button.onClick(null);
63
+ * ```
64
+ */
65
65
  onClick(handler: CommandKitButtonBuilderInteractionCollectorDispatch, data?: CommandKitButtonBuilderInteractionCollectorDispatchContextData): this;
66
66
  onEnd(handler: CommandKitButtonBuilderOnEnd): this;
67
67
  /**
68
- * Sets the handler to run when the interaction collector ends.
69
- * @param handler - The handler to run when the interaction collector ends.
70
- * @returns This instance of the modal builder.
71
- */
68
+ * Sets the handler to run when the interaction collector ends.
69
+ * @param handler - The handler to run when the interaction collector ends.
70
+ * @returns This instance of the modal builder.
71
+ */
72
72
  onError(handler: EventInterceptorErrorHandler): this;
73
73
  /**
74
- * Sets a filter for the interaction collector.
75
- * @param predicate The filter to use for the interaction collector
76
- */
74
+ * Sets a filter for the interaction collector.
75
+ * @param predicate The filter to use for the interaction collector
76
+ */
77
77
  filter(predicate: ButtonKitPredicate): this;
78
78
  private get customId();
79
79
  /**
80
- * Disposes of the button collector and cleans up resources.
81
- */
80
+ * Disposes of the button collector and cleans up resources.
81
+ */
82
82
  dispose(): this;
83
83
  }
84
84
  //#endregion
85
85
  export { CommandKitButtonBuilderOnEnd as a, CommandKitButtonBuilderInteractionCollectorDispatchContextData as i, ButtonKitPredicate as n, OnButtonKitClick as o, CommandKitButtonBuilderInteractionCollectorDispatch as r, OnButtonKitEnd as s, ButtonKit as t };
86
- //# sourceMappingURL=ButtonKit-DKu0VAe4.d.ts.map
86
+ //# sourceMappingURL=ButtonKit-BfcyvWfj.d.ts.map
@@ -1,5 +1,5 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-CZmWpS08.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-DnwCYit8.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
3
3
  import { ChannelSelectMenuBuilder, ChannelSelectMenuInteraction } from "discord.js";
4
4
 
5
5
  //#region src/components/interactive/select-menu/ChannelSelectMenuKit.d.ts
@@ -20,47 +20,47 @@ type ChannelSelectMenuKitPredicate = SelectMenuKitPredicate<ChannelSelectMenuInt
20
20
  declare class ChannelSelectMenuKit extends ChannelSelectMenuBuilder {
21
21
  #private;
22
22
  /**
23
- * Sets the handler to run when the modal is submitted.
24
- * @param handler - The handler to run when the modal is submitted.
25
- * @param data - The context data for the interaction collector.
26
- * @returns This instance of the modal builder.
27
- * @example
28
- * ```ts
29
- * const modal = new ChannelSelectMenuKit()
30
- * .setTitle('My Modal')
31
- * .setCustomId('my-modal')
32
- * .filter((interaction) => interaction.Channel.id === '1234567890')
33
- * .onSelect(async (interaction) => {
34
- * await interaction.reply('You submitted the modal!');
35
- * })
36
- * .addComponents(actionRow1, actionRow2);
37
- * ```
38
- */
23
+ * Sets the handler to run when the modal is submitted.
24
+ * @param handler - The handler to run when the modal is submitted.
25
+ * @param data - The context data for the interaction collector.
26
+ * @returns This instance of the modal builder.
27
+ * @example
28
+ * ```ts
29
+ * const modal = new ChannelSelectMenuKit()
30
+ * .setTitle('My Modal')
31
+ * .setCustomId('my-modal')
32
+ * .filter((interaction) => interaction.Channel.id === '1234567890')
33
+ * .onSelect(async (interaction) => {
34
+ * await interaction.reply('You submitted the modal!');
35
+ * })
36
+ * .addComponents(actionRow1, actionRow2);
37
+ * ```
38
+ */
39
39
  onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<ChannelSelectMenuInteraction, ChannelSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
40
40
  /**
41
- * Sets the handler to run when the interaction collector ends.
42
- * @param handler - The handler to run when the interaction collector ends.
43
- * @returns This instance of the modal builder.
44
- */
41
+ * Sets the handler to run when the interaction collector ends.
42
+ * @param handler - The handler to run when the interaction collector ends.
43
+ * @returns This instance of the modal builder.
44
+ */
45
45
  onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
46
46
  /**
47
- * Sets the handler to run when the interaction collector ends.
48
- * @param handler - The handler to run when the interaction collector ends.
49
- * @returns This instance of the modal builder.
50
- */
47
+ * Sets the handler to run when the interaction collector ends.
48
+ * @param handler - The handler to run when the interaction collector ends.
49
+ * @returns This instance of the modal builder.
50
+ */
51
51
  onError(handler: EventInterceptorErrorHandler): this;
52
52
  /**
53
- * Sets a filter for the interaction collector.
54
- * @param predicate - The filter to use for the interaction collector.
55
- * @returns This instance of the modal builder.
56
- */
53
+ * Sets a filter for the interaction collector.
54
+ * @param predicate - The filter to use for the interaction collector.
55
+ * @returns This instance of the modal builder.
56
+ */
57
57
  filter(predicate: SelectMenuKitPredicate<ChannelSelectMenuInteraction>): this;
58
58
  private get customId();
59
59
  /**
60
- * Cleans up the interaction collector and removes the handler.
61
- */
60
+ * Cleans up the interaction collector and removes the handler.
61
+ */
62
62
  dispose(): this;
63
63
  }
64
64
  //#endregion
65
65
  export { ChannelSelectMenuKitPredicate as n, OnChannelSelectMenuKitSubmit as r, ChannelSelectMenuKit as t };
66
- //# sourceMappingURL=ChannelSelectMenuKit-HQZ4hH5s.d.ts.map
66
+ //# sourceMappingURL=ChannelSelectMenuKit-DYkudikb.d.ts.map
@@ -44,53 +44,53 @@ interface CommandsRouterOptions {
44
44
  declare class CommandsRouter {
45
45
  private readonly options;
46
46
  /**
47
- * @private
48
- * @internal
49
- */
47
+ * @private
48
+ * @internal
49
+ */
50
50
  private commands;
51
51
  /**
52
- * @private
53
- * @internal
54
- */
52
+ * @private
53
+ * @internal
54
+ */
55
55
  private middlewares;
56
56
  /**
57
- * Creates a new CommandsRouter instance.
58
- * @param options - Configuration options for the router
59
- */
57
+ * Creates a new CommandsRouter instance.
58
+ * @param options - Configuration options for the router
59
+ */
60
60
  constructor(options: CommandsRouterOptions);
61
61
  /**
62
- * Populates the router with existing command and middleware data.
63
- * @param data - Parsed command data to populate with
64
- */
62
+ * Populates the router with existing command and middleware data.
63
+ * @param data - Parsed command data to populate with
64
+ */
65
65
  populate(data: ParsedCommandData): void;
66
66
  /**
67
- * Checks if the configured entrypoint path exists.
68
- * @returns True if the path exists
69
- */
67
+ * Checks if the configured entrypoint path exists.
68
+ * @returns True if the path exists
69
+ */
70
70
  isValidPath(): boolean;
71
71
  /**
72
- * @private
73
- * @internal
74
- */
72
+ * @private
73
+ * @internal
74
+ */
75
75
  private isCommand;
76
76
  /**
77
- * @private
78
- * @internal
79
- */
77
+ * @private
78
+ * @internal
79
+ */
80
80
  private isMiddleware;
81
81
  /**
82
- * @private
83
- * @internal
84
- */
82
+ * @private
83
+ * @internal
84
+ */
85
85
  private isCategory;
86
86
  /**
87
- * Clears all loaded commands and middleware.
88
- */
87
+ * Clears all loaded commands and middleware.
88
+ */
89
89
  clear(): void;
90
90
  /**
91
- * Scans the filesystem for commands and middleware files.
92
- * @returns Parsed command data
93
- */
91
+ * Scans the filesystem for commands and middleware files.
92
+ * @returns Parsed command data
93
+ */
94
94
  scan(): Promise<{
95
95
  commands: {
96
96
  [k: string]: Command;
@@ -100,17 +100,17 @@ declare class CommandsRouter {
100
100
  };
101
101
  }>;
102
102
  /**
103
- * Gets the raw command and middleware collections.
104
- * @returns Object containing commands and middlewares collections
105
- */
103
+ * Gets the raw command and middleware collections.
104
+ * @returns Object containing commands and middlewares collections
105
+ */
106
106
  getData(): {
107
107
  commands: Collection<string, Command>;
108
108
  middlewares: Collection<string, Middleware>;
109
109
  };
110
110
  /**
111
- * Converts the loaded data to a JSON-serializable format.
112
- * @returns Plain object with commands and middlewares
113
- */
111
+ * Converts the loaded data to a JSON-serializable format.
112
+ * @returns Plain object with commands and middlewares
113
+ */
114
114
  toJSON(): {
115
115
  commands: {
116
116
  [k: string]: Command;
@@ -120,26 +120,26 @@ declare class CommandsRouter {
120
120
  };
121
121
  };
122
122
  /**
123
- * @private
124
- * @internal
125
- */
123
+ * @private
124
+ * @internal
125
+ */
126
126
  private traverse;
127
127
  /**
128
- * @private
129
- * @internal
130
- */
128
+ * @private
129
+ * @internal
130
+ */
131
131
  private handle;
132
132
  /**
133
- * @private
134
- * @internal
135
- */
133
+ * @private
134
+ * @internal
135
+ */
136
136
  private applyMiddlewares;
137
137
  /**
138
- * @private
139
- * @internal
140
- */
138
+ * @private
139
+ * @internal
140
+ */
141
141
  private replaceEntrypoint;
142
142
  }
143
143
  //#endregion
144
144
  export { ParsedCommandData as a, Middleware as i, CommandsRouter as n, CommandsRouterOptions as r, Command as t };
145
- //# sourceMappingURL=CommandsRouter-C7dZEepB.d.ts.map
145
+ //# sourceMappingURL=CommandsRouter-DiNoF0dq.d.ts.map
@@ -3,28 +3,28 @@ import { Awaitable, Client, ClientEvents } from "discord.js";
3
3
  //#region src/components/common/EventInterceptor.d.ts
4
4
  interface EventInterceptorContextData<E extends keyof ClientEvents> {
5
5
  /**
6
- * The filter to use for the collector.
7
- */
6
+ * The filter to use for the collector.
7
+ */
8
8
  filter?: (...args: ClientEvents[E]) => Awaitable<boolean>;
9
9
  /**
10
- * The duration (in ms) that the collector should run for.
11
- */
10
+ * The duration (in ms) that the collector should run for.
11
+ */
12
12
  time?: number;
13
13
  /**
14
- * If the collector should automatically reset the timer when a button is clicked.
15
- */
14
+ * If the collector should automatically reset the timer when a button is clicked.
15
+ */
16
16
  autoReset?: boolean;
17
17
  /**
18
- * Whether the collector should run only once.
19
- */
18
+ * Whether the collector should run only once.
19
+ */
20
20
  once?: boolean;
21
21
  /**
22
- * The handler to run when the collector ends.
23
- */
22
+ * The handler to run when the collector ends.
23
+ */
24
24
  onEnd?: (reason: string) => Awaitable<void>;
25
25
  /**
26
- * The handler to run upon an error.
27
- */
26
+ * The handler to run upon an error.
27
+ */
28
28
  onError?: EventInterceptorErrorHandler;
29
29
  }
30
30
  /**
@@ -42,50 +42,50 @@ declare class EventInterceptor {
42
42
  private globalHandlers;
43
43
  private cleanupTimer;
44
44
  /**
45
- * Creates the event interceptor.
46
- */
45
+ * Creates the event interceptor.
46
+ */
47
47
  constructor(client: Client);
48
48
  /**
49
- * Destroys the event interceptor.
50
- */
49
+ * Destroys the event interceptor.
50
+ */
51
51
  destroy(): void;
52
52
  /**
53
- * Whether the event has subscribers.
54
- * @param event The event to check.
55
- */
53
+ * Whether the event has subscribers.
54
+ * @param event The event to check.
55
+ */
56
56
  hasSubscribers(event: keyof ClientEvents): boolean;
57
57
  /**
58
- * Returns the number of subscribers for the event.
59
- * @param event The event to check.
60
- */
58
+ * Returns the number of subscribers for the event.
59
+ * @param event The event to check.
60
+ */
61
61
  getSubscriberCount(event: keyof ClientEvents): number;
62
62
  /**
63
- * Whether the event has global handlers.
64
- */
63
+ * Whether the event has global handlers.
64
+ */
65
65
  hasGlobalHandlers(): boolean;
66
66
  /**
67
- * Returns the number of global handlers.
68
- */
67
+ * Returns the number of global handlers.
68
+ */
69
69
  getGlobalHandlersCount(): number;
70
70
  /**
71
- * Subscribes to an event.
72
- * @param event The event to subscribe to.
73
- * @param listener The listener to call when the event is emitted.
74
- * @returns A function to unsubscribe from the event.
75
- */
71
+ * Subscribes to an event.
72
+ * @param event The event to subscribe to.
73
+ * @param listener The listener to call when the event is emitted.
74
+ * @returns A function to unsubscribe from the event.
75
+ */
76
76
  subscribe<Event extends keyof ClientEvents>(event: Event, listener: (...args: ClientEvents[Event]) => void, options?: EventInterceptorContextData<Event>): () => void;
77
77
  /**
78
- * Unsubscribes from an event.
79
- * @param event The event to unsubscribe from.
80
- */
78
+ * Unsubscribes from an event.
79
+ * @param event The event to unsubscribe from.
80
+ */
81
81
  unsubscribe<Event extends keyof ClientEvents>(event: Event, listener: (...args: ClientEvents[Event]) => void, reason?: string): void;
82
82
  /**
83
- * Creates a global handler for the event.
84
- * @param event The event to create a global handler for.
85
- * @returns The global handler.
86
- */
83
+ * Creates a global handler for the event.
84
+ * @param event The event to create a global handler for.
85
+ * @returns The global handler.
86
+ */
87
87
  private createGlobalHandler;
88
88
  }
89
89
  //#endregion
90
90
  export { EventInterceptorContextData as n, EventInterceptorErrorHandler as r, EventInterceptor as t };
91
- //# sourceMappingURL=EventInterceptor-CZmWpS08.d.ts.map
91
+ //# sourceMappingURL=EventInterceptor-D9JKMcfi.d.ts.map
@@ -32,59 +32,59 @@ declare class EventsRouter {
32
32
  /** Internal storage of parsed events */
33
33
  private events;
34
34
  /**
35
- * Creates a new EventsRouter instance
36
- * @param options - Configuration options for the router
37
- * @throws Error if entrypoint is not provided
38
- */
35
+ * Creates a new EventsRouter instance
36
+ * @param options - Configuration options for the router
37
+ * @throws Error if entrypoint is not provided
38
+ */
39
39
  constructor(options: EventsRouterOptions);
40
40
  /**
41
- * Adds new entrypoints to the router
42
- * @param entrypoints - Array of new entrypoint paths
43
- */
41
+ * Adds new entrypoints to the router
42
+ * @param entrypoints - Array of new entrypoint paths
43
+ */
44
44
  addEntrypoints(entrypoints: string[]): void;
45
45
  /**
46
- * Find a parsed event by its name
47
- * @param event - Name of the event to find
48
- * @returns Parsed event metadata or null if not found
49
- */
46
+ * Find a parsed event by its name
47
+ * @param event - Name of the event to find
48
+ * @returns Parsed event metadata or null if not found
49
+ */
50
50
  match(event: string): ParsedEvent | null;
51
51
  /**
52
- * Get the entrypoint directory path
53
- * @returns Entrypoint directory path
54
- */
52
+ * Get the entrypoint directory path
53
+ * @returns Entrypoint directory path
54
+ */
55
55
  get entrypoints(): string[];
56
56
  /**
57
- * Checks if the entrypoint path is valid
58
- */
57
+ * Checks if the entrypoint path is valid
58
+ */
59
59
  isValidPath(): boolean;
60
60
  /**
61
- * Clear all parsed events
62
- */
61
+ * Clear all parsed events
62
+ */
63
63
  clear(): void;
64
64
  /**
65
- * Reload and re-scan the entrypoint directory for events
66
- * @returns Promise resolving to the updated events tree
67
- */
65
+ * Reload and re-scan the entrypoint directory for events
66
+ * @returns Promise resolving to the updated events tree
67
+ */
68
68
  reload(): Promise<EventsTree>;
69
69
  /**
70
- * Scan the entrypoint directory for events and their handlers
71
- * @returns Promise resolving to the events tree
72
- */
70
+ * Scan the entrypoint directory for events and their handlers
71
+ * @returns Promise resolving to the events tree
72
+ */
73
73
  scan(): Promise<EventsTree>;
74
74
  /**
75
- * Convert the internal events Collection to a plain object
76
- * @returns Events tree as a plain object
77
- */
75
+ * Convert the internal events Collection to a plain object
76
+ * @returns Events tree as a plain object
77
+ */
78
78
  toJSON(): EventsTree;
79
79
  /**
80
- * Recursively scan a directory for event handlers
81
- * @param event - Name of the event
82
- * @param path - Path to the event directory
83
- * @param listeners - Array to collect listener file paths
84
- * @returns Promise resolving to the parsed event metadata
85
- */
80
+ * Recursively scan a directory for event handlers
81
+ * @param event - Name of the event
82
+ * @param path - Path to the event directory
83
+ * @param listeners - Array to collect listener file paths
84
+ * @returns Promise resolving to the parsed event metadata
85
+ */
86
86
  private scanEvent;
87
87
  }
88
88
  //#endregion
89
89
  export { ParsedEvent as i, EventsRouterOptions as n, EventsTree as r, EventsRouter as t };
90
- //# sourceMappingURL=EventsRouter-DZ37r54v.d.ts.map
90
+ //# sourceMappingURL=EventsRouter-EuuSu6NH.d.ts.map