commandkit 1.2.0-dev.20260130122631 → 1.2.0-dev.20260130130954

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 (212) hide show
  1. package/dist/{ActionRow-B-CGmjDp.d.ts → ActionRow-CT-uyxW0.d.ts} +2 -2
  2. package/dist/{Button-C-GPeFA3.d.ts → Button-oMnlpF6W.d.ts} +2 -2
  3. package/dist/{CommandKitEventsChannel-CnT5ymYe.js → CommandKitEventsChannel-DDI0UVh9.js} +1 -1
  4. package/dist/{CommandKitEventsChannel-CnT5ymYe.js.map → CommandKitEventsChannel-DDI0UVh9.js.map} +1 -1
  5. package/dist/{CommandsRouter-C_HLsrGX.js → CommandsRouter-D5mGRFEr.js} +1 -1
  6. package/dist/{CommandsRouter-C_HLsrGX.js.map → CommandsRouter-D5mGRFEr.js.map} +1 -1
  7. package/dist/{CompilerPlugin-CUsGAfgl.js → CompilerPlugin-DZidFuHJ.js} +2 -2
  8. package/dist/{CompilerPlugin-CUsGAfgl.js.map → CompilerPlugin-DZidFuHJ.js.map} +1 -1
  9. package/dist/{EventInterceptor-BWoEJMHZ.js → EventInterceptor-CxA95XYA.js} +1 -1
  10. package/dist/{EventInterceptor-BWoEJMHZ.js.map → EventInterceptor-CxA95XYA.js.map} +1 -1
  11. package/dist/{EventWorkerContext-Dfhgv329.js → EventWorkerContext-CfqamFWu.js} +1 -1
  12. package/dist/{EventWorkerContext-Dfhgv329.js.map → EventWorkerContext-CfqamFWu.js.map} +1 -1
  13. package/dist/{EventsRouter-DZYIha6m.js → EventsRouter-Be5NDOX4.js} +1 -1
  14. package/dist/{EventsRouter-DZYIha6m.js.map → EventsRouter-Be5NDOX4.js.map} +1 -1
  15. package/dist/{MessageCommandParser-Bs9fimmd.js → MessageCommandParser-VMFFGs0R.js} +1 -1
  16. package/dist/{MessageCommandParser-Bs9fimmd.js.map → MessageCommandParser-VMFFGs0R.js.map} +1 -1
  17. package/dist/{Modal-CZT9MZsy.d.ts → Modal--iMEUqSm.d.ts} +2 -2
  18. package/dist/{PluginCommon-BLxWww5u.js → PluginCommon-Bfs8d9s7.js} +1 -1
  19. package/dist/{PluginCommon-BLxWww5u.js.map → PluginCommon-Bfs8d9s7.js.map} +1 -1
  20. package/dist/{RuntimePlugin-CtobluSU.js → RuntimePlugin-BYQXQO8w.js} +2 -2
  21. package/dist/{RuntimePlugin-CtobluSU.js.map → RuntimePlugin-BYQXQO8w.js.map} +1 -1
  22. package/dist/{SelectMenu-q_b3Mjv9.d.ts → SelectMenu-DQbmOp1Y.d.ts} +8 -4
  23. package/dist/analytics/analytics-engine.d.ts +1 -1
  24. package/dist/analytics/analytics-engine.js +17 -22
  25. package/dist/analytics/analytics-provider.d.ts +1 -1
  26. package/dist/analytics/constants.js +1 -1
  27. package/dist/analytics/utils.js +17 -22
  28. package/dist/{analytics-engine-WQhXmx3H.d.ts → analytics-engine-_urJ5QTH.d.ts} +8 -3
  29. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  30. package/dist/app/commands/AppCommandRunner.js +17 -22
  31. package/dist/app/commands/Context.d.ts +1 -1
  32. package/dist/app/commands/Context.js +17 -22
  33. package/dist/app/commands/MessageCommandParser.js +1 -1
  34. package/dist/app/commands/helpers.js +1 -1
  35. package/dist/app/events/EventWorkerContext.d.ts +1 -1
  36. package/dist/app/events/EventWorkerContext.js +1 -1
  37. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  38. package/dist/app/handlers/AppCommandHandler.js +17 -22
  39. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  40. package/dist/app/handlers/AppEventsHandler.js +17 -22
  41. package/dist/app/index.d.ts +1 -1
  42. package/dist/app/index.js +17 -22
  43. package/dist/app/interrupt/signals.js +2 -2
  44. package/dist/app/middlewares/permissions.d.ts +1 -1
  45. package/dist/app/middlewares/permissions.js +17 -22
  46. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  47. package/dist/app/register/CommandRegistrar.js +17 -22
  48. package/dist/app/router/CommandsRouter.js +1 -1
  49. package/dist/app/router/EventsRouter.js +1 -1
  50. package/dist/app/router/index.js +3 -3
  51. package/dist/cli/app-process.js +4 -4
  52. package/dist/cli/build.d.ts +1 -1
  53. package/dist/cli/build.js +20 -25
  54. package/dist/cli/build.js.map +1 -1
  55. package/dist/cli/common.d.ts +1 -1
  56. package/dist/cli/common.js +3 -3
  57. package/dist/cli/development.js +20 -25
  58. package/dist/cli/development.js.map +1 -1
  59. package/dist/cli/env.js +1 -1
  60. package/dist/cli/generators.js +3 -3
  61. package/dist/cli/information.js +2 -2
  62. package/dist/cli/init.js +18 -23
  63. package/dist/cli/init.js.map +1 -1
  64. package/dist/cli/production.js +20 -25
  65. package/dist/cli/production.js.map +1 -1
  66. package/dist/cli/type-checker.js +4 -4
  67. package/dist/{commandkit-a_lLZW59.js → commandkit-BUkbAdid.js} +2645 -2190
  68. package/dist/commandkit-BUkbAdid.js.map +1 -0
  69. package/dist/commandkit.d.ts +1 -1
  70. package/dist/commandkit.js +17 -22
  71. package/dist/{common-DSRs_mfw.js → common-zQwj90Nz.js} +3 -3
  72. package/dist/{common-DSRs_mfw.js.map → common-zQwj90Nz.js.map} +1 -1
  73. package/dist/components/common/EventInterceptor.js +1 -1
  74. package/dist/components/common/element.d.ts +2 -2
  75. package/dist/components/common/element.js +27 -8
  76. package/dist/components/display/common.js +20 -2
  77. package/dist/components/display/container.js +20 -2
  78. package/dist/components/display/file.js +1 -1
  79. package/dist/components/display/index.js +25 -15
  80. package/dist/components/display/label.js +20 -2
  81. package/dist/components/display/media-gallery.js +21 -3
  82. package/dist/components/display/poll.js +1 -1
  83. package/dist/components/display/section.js +21 -3
  84. package/dist/components/display/separator.js +1 -1
  85. package/dist/components/display/text-display.js +1 -1
  86. package/dist/components/index.d.ts +6 -6
  87. package/dist/components/index.js +31 -36
  88. package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
  89. package/dist/components/interactive/button/Button.d.ts +1 -1
  90. package/dist/components/interactive/button/Button.js +17 -22
  91. package/dist/components/interactive/button/ButtonKit.js +17 -22
  92. package/dist/components/interactive/modal/Modal.d.ts +1 -1
  93. package/dist/components/interactive/modal/Modal.js +17 -22
  94. package/dist/components/interactive/modal/ModalKit.js +17 -22
  95. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +17 -22
  96. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +17 -22
  97. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +17 -22
  98. package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
  99. package/dist/components/interactive/select-menu/SelectMenu.js +17 -22
  100. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +17 -22
  101. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +17 -22
  102. package/dist/config/config.d.ts +1 -1
  103. package/dist/config/config.js +17 -22
  104. package/dist/config/default.d.ts +1 -1
  105. package/dist/config/default.js +17 -22
  106. package/dist/config/loader.d.ts +1 -1
  107. package/dist/config/loader.js +17 -22
  108. package/dist/config/types.d.ts +1 -1
  109. package/dist/config/utils.d.ts +1 -1
  110. package/dist/config/utils.js +1 -1
  111. package/dist/{constants-Cw8VjCVz.js → constants-BA0TJU6e.js} +1 -1
  112. package/dist/{constants-Cw8VjCVz.js.map → constants-BA0TJU6e.js.map} +1 -1
  113. package/dist/{constants-BFFK-hfP.js → constants-BS9N2avz.js} +1 -1
  114. package/dist/{constants-BFFK-hfP.js.map → constants-BS9N2avz.js.map} +1 -1
  115. package/dist/{constants-CxkFFZ7p.js → constants-CeIMhMD0.js} +1 -1
  116. package/dist/{constants-CxkFFZ7p.js.map → constants-CeIMhMD0.js.map} +1 -1
  117. package/dist/context/async-context.d.ts +1 -1
  118. package/dist/context/async-context.js +17 -22
  119. package/dist/context/environment.d.ts +1 -1
  120. package/dist/context/environment.js +17 -22
  121. package/dist/{element-wQo0heGj.d.ts → element-DZeqbSTk.d.ts} +3 -2
  122. package/dist/{env-CmspDhHy.js → env-FxaiNasU.js} +1 -1
  123. package/dist/{env-CmspDhHy.js.map → env-FxaiNasU.js.map} +1 -1
  124. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  125. package/dist/events/CommandKitEventsChannel.js +1 -1
  126. package/dist/{file-Ca1kpEtE.js → file-DqI3v90P.js} +1 -1
  127. package/dist/{file-Ca1kpEtE.js.map → file-DqI3v90P.js.map} +1 -1
  128. package/dist/flags/FlagProvider.d.ts +1 -1
  129. package/dist/flags/feature-flags.d.ts +1 -1
  130. package/dist/flags/feature-flags.js +20 -163
  131. package/dist/flags/store.d.ts +1 -1
  132. package/dist/flags/store.js +1 -1
  133. package/dist/{helpers-Btx1FSZx.js → helpers-DSy7EjzP.js} +1 -1
  134. package/dist/{helpers-Btx1FSZx.js.map → helpers-DSy7EjzP.js.map} +1 -1
  135. package/dist/index.d.ts +7 -7
  136. package/dist/index.js +42 -55
  137. package/dist/kv/constants.js +1 -1
  138. package/dist/kv/serde.js +1 -1
  139. package/dist/logger/DefaultLogger.js +17 -22
  140. package/dist/logger/Logger.js +17 -22
  141. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  142. package/dist/plugins/CompilerPlugin.js +1 -1
  143. package/dist/plugins/PluginCommon.d.ts +1 -1
  144. package/dist/plugins/PluginCommon.js +1 -1
  145. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  146. package/dist/plugins/RuntimePlugin.js +1 -1
  147. package/dist/plugins/index.d.ts +1 -1
  148. package/dist/plugins/index.js +19 -24
  149. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  150. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +17 -22
  151. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  152. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +17 -22
  153. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  154. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +17 -22
  155. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
  156. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +17 -22
  157. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  158. package/dist/plugins/types.d.ts +1 -1
  159. package/dist/{poll-CFe8yvoJ.js → poll-ziQQQbMU.js} +1 -1
  160. package/dist/{poll-CFe8yvoJ.js.map → poll-ziQQQbMU.js.map} +1 -1
  161. package/dist/{resolve-file-url-CdHqwWs3.js → resolve-file-url-BmjHzIKe.js} +1 -1
  162. package/dist/{resolve-file-url-CdHqwWs3.js.map → resolve-file-url-BmjHzIKe.js.map} +1 -1
  163. package/dist/{separator-BUTiW7uz.js → separator-DGwA_b1J.js} +1 -1
  164. package/dist/{separator-BUTiW7uz.js.map → separator-DGwA_b1J.js.map} +1 -1
  165. package/dist/{signals-B8z1wJ6W.js → signals-ewEPW2cO.js} +2 -2
  166. package/dist/{signals-B8z1wJ6W.js.map → signals-ewEPW2cO.js.map} +1 -1
  167. package/dist/{store-D8r_hryO.js → store-DK4JA-fQ.js} +1 -1
  168. package/dist/{store-D8r_hryO.js.map → store-DK4JA-fQ.js.map} +1 -1
  169. package/dist/{text-display-DANahMN3.js → text-display-BVuG7dT-.js} +1 -1
  170. package/dist/{text-display-DANahMN3.js.map → text-display-BVuG7dT-.js.map} +1 -1
  171. package/dist/{type-checker-cVd3Hpnh.js → type-checker-CFpKDDs8.js} +2 -2
  172. package/dist/{type-checker-cVd3Hpnh.js.map → type-checker-CFpKDDs8.js.map} +1 -1
  173. package/dist/{types-package-CsTNfvv2.js → types-package-Bjh_ap0V.js} +2 -2
  174. package/dist/{types-package-CsTNfvv2.js.map → types-package-Bjh_ap0V.js.map} +1 -1
  175. package/dist/types.d.ts +1 -1
  176. package/dist/utils/constants.js +1 -1
  177. package/dist/utils/dev-hooks.d.ts +1 -1
  178. package/dist/utils/dev-hooks.js +17 -22
  179. package/dist/utils/resolve-file-url.js +1 -1
  180. package/dist/utils/types-package.js +2 -2
  181. package/dist/utils/utilities.js +17 -22
  182. package/dist/utils/warning.js +1 -1
  183. package/dist/{utils-Br3eenD1.js → utils-CVaVycsK.js} +1 -1
  184. package/dist/{utils-Br3eenD1.js.map → utils-CVaVycsK.js.map} +1 -1
  185. package/dist/version-CdkD798u.js +18 -0
  186. package/dist/version-CdkD798u.js.map +1 -0
  187. package/dist/version.js +2 -12
  188. package/dist/{warning-CszH8HeS.js → warning-BWiQltHE.js} +1 -1
  189. package/dist/{warning-CszH8HeS.js.map → warning-BWiQltHE.js.map} +1 -1
  190. package/package.json +3 -3
  191. package/dist/commandkit-a_lLZW59.js.map +0 -1
  192. package/dist/common-CEordwf3.js +0 -17
  193. package/dist/common-CEordwf3.js.map +0 -1
  194. package/dist/container-DCPljKVH.js +0 -43
  195. package/dist/container-DCPljKVH.js.map +0 -1
  196. package/dist/element-DibzzA5L.js +0 -84
  197. package/dist/element-DibzzA5L.js.map +0 -1
  198. package/dist/flags/feature-flags.js.map +0 -1
  199. package/dist/index.js.map +0 -1
  200. package/dist/label-B6vXvwLM.js +0 -35
  201. package/dist/label-B6vXvwLM.js.map +0 -1
  202. package/dist/media-gallery-u3gjX7yD.js +0 -61
  203. package/dist/media-gallery-u3gjX7yD.js.map +0 -1
  204. package/dist/section-BC8LF-B2.js +0 -59
  205. package/dist/section-BC8LF-B2.js.map +0 -1
  206. package/dist/version.js.map +0 -1
  207. /package/dist/{common-C2jAjX4U.js → ILogger-JI8VGyJf.js} +0 -0
  208. /package/dist/{display-WDb9wMCv.js → common-vGj3fpz3.js} +0 -0
  209. /package/dist/{router-BvamdzoF.js → router-CtcApqrw.js} +0 -0
  210. /package/dist/{runtime-Skt5NiOc.js → runtime-UJIpkNww.js} +0 -0
  211. /package/dist/{types-Cdh4uaFR.js → types-Bx1EKe0v.js} +0 -0
  212. /package/dist/{types-TC4g3w91.js → types-CAwOz52q.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { At as makeContextAwareFunction, Dt as getCommandKit, Et as exitContext, Mt as useEnvironment, Nt as useStore, Ot as getContext, Tt as GenericFunction, jt as provideContext, kt as isCommandWorkerContext, wt as AsyncFunction } from "../analytics-engine-WQhXmx3H.js";
1
+ import { At as makeContextAwareFunction, Dt as getCommandKit, Et as exitContext, Mt as useEnvironment, Nt as useStore, Ot as getContext, Tt as GenericFunction, jt as provideContext, kt as isCommandWorkerContext, wt as AsyncFunction } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment, useStore };
@@ -1,27 +1,22 @@
1
1
  require('../colors-Csc0X4QJ.js');
2
2
  require('../ActionRow-CSN_UKmM.js');
3
- const require_commandkit = require('../commandkit-a_lLZW59.js');
4
- require('../container-DCPljKVH.js');
5
- require('../file-Ca1kpEtE.js');
6
- require('../media-gallery-u3gjX7yD.js');
7
- require('../section-BC8LF-B2.js');
8
- require('../separator-BUTiW7uz.js');
9
- require('../text-display-DANahMN3.js');
10
- require('../label-B6vXvwLM.js');
11
- require('../poll-CFe8yvoJ.js');
12
- require('../display-WDb9wMCv.js');
13
- require('../constants-CxkFFZ7p.js');
14
- require('../types-package-CsTNfvv2.js');
15
- require('../constants-Cw8VjCVz.js');
16
- require('../EventWorkerContext-Dfhgv329.js');
17
- require('../signals-B8z1wJ6W.js');
18
- require('../helpers-Btx1FSZx.js');
19
- require('../MessageCommandParser-Bs9fimmd.js');
20
- require('../CommandsRouter-C_HLsrGX.js');
21
- require('../EventsRouter-DZYIha6m.js');
22
- require('../router-BvamdzoF.js');
23
- require('../common-DSRs_mfw.js');
24
- require('../store-D8r_hryO.js');
3
+ const require_commandkit = require('../commandkit-BUkbAdid.js');
4
+ require('../constants-CeIMhMD0.js');
5
+ require('../types-package-Bjh_ap0V.js');
6
+ require('../constants-BA0TJU6e.js');
7
+ require('../EventWorkerContext-CfqamFWu.js');
8
+ require('../signals-ewEPW2cO.js');
9
+ require('../helpers-DSy7EjzP.js');
10
+ require('../MessageCommandParser-VMFFGs0R.js');
11
+ require('../CommandsRouter-D5mGRFEr.js');
12
+ require('../EventsRouter-Be5NDOX4.js');
13
+ require('../router-CtcApqrw.js');
14
+ require('../file-DqI3v90P.js');
15
+ require('../separator-DGwA_b1J.js');
16
+ require('../text-display-BVuG7dT-.js');
17
+ require('../poll-ziQQQbMU.js');
18
+ require('../common-zQwj90Nz.js');
19
+ require('../store-DK4JA-fQ.js');
25
20
 
26
21
  exports.exitContext = require_commandkit.exitContext;
27
22
  exports.getCommandKit = require_commandkit.getCommandKit;
@@ -1,2 +1,2 @@
1
- import { Ft as CommandKitEnvironmentInternalData, It as CommandKitEnvironmentType, Lt as after, Pt as CommandKitEnvironment, Rt as cancelAfter } from "../analytics-engine-WQhXmx3H.js";
1
+ import { Ft as CommandKitEnvironmentInternalData, It as CommandKitEnvironmentType, Lt as after, Pt as CommandKitEnvironment, Rt as cancelAfter } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter };
@@ -1,27 +1,22 @@
1
1
  require('../colors-Csc0X4QJ.js');
2
2
  require('../ActionRow-CSN_UKmM.js');
3
- const require_commandkit = require('../commandkit-a_lLZW59.js');
4
- require('../container-DCPljKVH.js');
5
- require('../file-Ca1kpEtE.js');
6
- require('../media-gallery-u3gjX7yD.js');
7
- require('../section-BC8LF-B2.js');
8
- require('../separator-BUTiW7uz.js');
9
- require('../text-display-DANahMN3.js');
10
- require('../label-B6vXvwLM.js');
11
- require('../poll-CFe8yvoJ.js');
12
- require('../display-WDb9wMCv.js');
13
- require('../constants-CxkFFZ7p.js');
14
- require('../types-package-CsTNfvv2.js');
15
- require('../constants-Cw8VjCVz.js');
16
- require('../EventWorkerContext-Dfhgv329.js');
17
- require('../signals-B8z1wJ6W.js');
18
- require('../helpers-Btx1FSZx.js');
19
- require('../MessageCommandParser-Bs9fimmd.js');
20
- require('../CommandsRouter-C_HLsrGX.js');
21
- require('../EventsRouter-DZYIha6m.js');
22
- require('../router-BvamdzoF.js');
23
- require('../common-DSRs_mfw.js');
24
- require('../store-D8r_hryO.js');
3
+ const require_commandkit = require('../commandkit-BUkbAdid.js');
4
+ require('../constants-CeIMhMD0.js');
5
+ require('../types-package-Bjh_ap0V.js');
6
+ require('../constants-BA0TJU6e.js');
7
+ require('../EventWorkerContext-CfqamFWu.js');
8
+ require('../signals-ewEPW2cO.js');
9
+ require('../helpers-DSy7EjzP.js');
10
+ require('../MessageCommandParser-VMFFGs0R.js');
11
+ require('../CommandsRouter-D5mGRFEr.js');
12
+ require('../EventsRouter-Be5NDOX4.js');
13
+ require('../router-CtcApqrw.js');
14
+ require('../file-DqI3v90P.js');
15
+ require('../separator-DGwA_b1J.js');
16
+ require('../text-display-BVuG7dT-.js');
17
+ require('../poll-ziQQQbMU.js');
18
+ require('../common-zQwj90Nz.js');
19
+ require('../store-DK4JA-fQ.js');
25
20
 
26
21
  exports.CommandKitEnvironment = require_commandkit.CommandKitEnvironment;
27
22
  exports.CommandKitEnvironmentType = require_commandkit.CommandKitEnvironmentType;
@@ -66,6 +66,7 @@ declare function Fragment(props: FragmentElementProps): CommandKitElementData[El
66
66
  * @returns The created CommandKit element.
67
67
  */
68
68
  declare function createElement(type: Function, props: Record<string, unknown>, ...children: any[]): CommandKitElement<ElementType>;
69
+ declare function applyDefaultOptionalComponentBehavior<P>(props: P): P;
69
70
  //#endregion
70
- export { Fragment as a, getElement as c, ElementType as i, isCommandKitElement as l, CommandKitElement as n, FragmentElementProps as o, CommandKitElementData as r, createElement as s, AnyCommandKitElement as t };
71
- //# sourceMappingURL=element-wQo0heGj.d.ts.map
71
+ export { Fragment as a, createElement as c, ElementType as i, getElement as l, CommandKitElement as n, FragmentElementProps as o, CommandKitElementData as r, applyDefaultOptionalComponentBehavior as s, AnyCommandKitElement as t, isCommandKitElement as u };
72
+ //# sourceMappingURL=element-DZeqbSTk.d.ts.map
@@ -110,4 +110,4 @@ Object.defineProperty(exports, 'setCLIEnv', {
110
110
  return setCLIEnv;
111
111
  }
112
112
  });
113
- //# sourceMappingURL=env-CmspDhHy.js.map
113
+ //# sourceMappingURL=env-FxaiNasU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-CmspDhHy.js","names":[],"sources":["../src/cli/env.ts"],"sourcesContent":["/**\n * @private\n * @internal\n */\nexport function DevEnv(_static = false) {\n const common = {\n NODE_ENV: 'development',\n COMMANDKIT_IS_DEV: 'true',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport function ProdEnv(_static = false) {\n const common = {\n NODE_ENV: 'production',\n COMMANDKIT_IS_DEV: 'false',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport const CommonEnvFiles = ['.env', '.env.local'];\n/**\n * @private\n * @internal\n */\nexport const DevEnvFiles = ['.env.development', '.env.development.local'];\n/**\n * @private\n * @internal\n */\nexport const ProdEnvFiles = ['.env.production', '.env.production.local'];\n/**\n * @private\n * @internal\n */\nexport const devEnvFileArgs = [...CommonEnvFiles, ...DevEnvFiles];\n/**\n * @private\n * @internal\n */\nexport const prodEnvFileArgs = [...CommonEnvFiles, ...ProdEnvFiles];\n/**\n * @private\n * @internal\n */\nexport function setCLIEnv() {\n process.env.COMMANDKIT_IS_CLI = 'true';\n}\n"],"mappings":";;;;;;AAIA,SAAgB,OAAO,UAAU,OAAO;CACtC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,SAAgB,QAAQ,UAAU,OAAO;CACvC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,MAAa,iBAAiB,CAAC,QAAQ,aAAa;;;;;AAKpD,MAAa,cAAc,CAAC,oBAAoB,yBAAyB;;;;;AAKzE,MAAa,eAAe,CAAC,mBAAmB,wBAAwB;;;;;AAKxE,MAAa,iBAAiB,CAAC,GAAG,gBAAgB,GAAG,YAAY;;;;;AAKjE,MAAa,kBAAkB,CAAC,GAAG,gBAAgB,GAAG,aAAa;;;;;AAKnE,SAAgB,YAAY;AAC1B,SAAQ,IAAI,oBAAoB"}
1
+ {"version":3,"file":"env-FxaiNasU.js","names":[],"sources":["../src/cli/env.ts"],"sourcesContent":["/**\n * @private\n * @internal\n */\nexport function DevEnv(_static = false) {\n const common = {\n NODE_ENV: 'development',\n COMMANDKIT_IS_DEV: 'true',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport function ProdEnv(_static = false) {\n const common = {\n NODE_ENV: 'production',\n COMMANDKIT_IS_DEV: 'false',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport const CommonEnvFiles = ['.env', '.env.local'];\n/**\n * @private\n * @internal\n */\nexport const DevEnvFiles = ['.env.development', '.env.development.local'];\n/**\n * @private\n * @internal\n */\nexport const ProdEnvFiles = ['.env.production', '.env.production.local'];\n/**\n * @private\n * @internal\n */\nexport const devEnvFileArgs = [...CommonEnvFiles, ...DevEnvFiles];\n/**\n * @private\n * @internal\n */\nexport const prodEnvFileArgs = [...CommonEnvFiles, ...ProdEnvFiles];\n/**\n * @private\n * @internal\n */\nexport function setCLIEnv() {\n process.env.COMMANDKIT_IS_CLI = 'true';\n}\n"],"mappings":";;;;;;AAIA,SAAgB,OAAO,UAAU,OAAO;CACtC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,SAAgB,QAAQ,UAAU,OAAO;CACvC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,MAAa,iBAAiB,CAAC,QAAQ,aAAa;;;;;AAKpD,MAAa,cAAc,CAAC,oBAAoB,yBAAyB;;;;;AAKzE,MAAa,eAAe,CAAC,mBAAmB,wBAAwB;;;;;AAKxE,MAAa,iBAAiB,CAAC,GAAG,gBAAgB,GAAG,YAAY;;;;;AAKjE,MAAa,kBAAkB,CAAC,GAAG,gBAAgB,GAAG,aAAa;;;;;AAKnE,SAAgB,YAAY;AAC1B,SAAQ,IAAI,oBAAoB"}
@@ -1,2 +1,2 @@
1
- import { ct as ListenerFunction, st as CommandKitEventsChannel } from "../analytics-engine-WQhXmx3H.js";
1
+ import { ct as ListenerFunction, st as CommandKitEventsChannel } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { CommandKitEventsChannel, ListenerFunction };
@@ -1,3 +1,3 @@
1
- const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-CnT5ymYe.js');
1
+ const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-DDI0UVh9.js');
2
2
 
3
3
  exports.CommandKitEventsChannel = require_CommandKitEventsChannel.CommandKitEventsChannel;
@@ -25,4 +25,4 @@ Object.defineProperty(exports, 'File', {
25
25
  return File;
26
26
  }
27
27
  });
28
- //# sourceMappingURL=file-Ca1kpEtE.js.map
28
+ //# sourceMappingURL=file-DqI3v90P.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-Ca1kpEtE.js","names":[],"sources":["../src/components/display/file.ts"],"sourcesContent":["import { FileBuilder, FileComponentData } from 'discord.js';\n\n/**\n * Represents the properties for a file component.\n */\nexport interface FileProps extends Omit<FileComponentData, 'type' | 'file'> {\n url: string;\n}\n\n/**\n * The file component\n * @param props - The properties for the file component.\n * @returns The file builder instance.\n * @example ```tsx\n * import { File } from 'commandkit';\n *\n * const file = <File url=\"https://example.com/file.png\" />;\n * ```\n */\nexport function File(props: FileProps) {\n const file = new FileBuilder(props);\n\n if (props.url != null) {\n file.setURL(props.url);\n }\n\n return file;\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,KAAK,OAAkB;CACrC,MAAM,OAAO,IAAI,uBAAY,MAAM;AAEnC,KAAI,MAAM,OAAO,KACf,MAAK,OAAO,MAAM,IAAI;AAGxB,QAAO"}
1
+ {"version":3,"file":"file-DqI3v90P.js","names":[],"sources":["../src/components/display/file.ts"],"sourcesContent":["import { FileBuilder, FileComponentData } from 'discord.js';\n\n/**\n * Represents the properties for a file component.\n */\nexport interface FileProps extends Omit<FileComponentData, 'type' | 'file'> {\n url: string;\n}\n\n/**\n * The file component\n * @param props - The properties for the file component.\n * @returns The file builder instance.\n * @example ```tsx\n * import { File } from 'commandkit';\n *\n * const file = <File url=\"https://example.com/file.png\" />;\n * ```\n */\nexport function File(props: FileProps) {\n const file = new FileBuilder(props);\n\n if (props.url != null) {\n file.setURL(props.url);\n }\n\n return file;\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,KAAK,OAAkB;CACrC,MAAM,OAAO,IAAI,uBAAY,MAAM;AAEnC,KAAI,MAAM,OAAO,KACf,MAAK,OAAO,MAAM,IAAI;AAGxB,QAAO"}
@@ -1,2 +1,2 @@
1
- import { M as FlagConfiguration, N as FlagProvider, P as JsonFlagProvider } from "../analytics-engine-WQhXmx3H.js";
1
+ import { M as FlagConfiguration, N as FlagProvider, P as JsonFlagProvider } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { FlagConfiguration, FlagProvider, JsonFlagProvider };
@@ -1,2 +1,2 @@
1
- import { A as flag, C as EvaluationContext, D as FlagRunner, E as FeatureFlagDefinition, O as IdentifyFunction, S as DecideFunction, T as FeatureFlag, b as CustomEvaluationContext, j as setFlagProvider, k as MaybePromise, w as EventFlagContext, x as CustomEvaluationFunction, y as CommandFlagContext } from "../analytics-engine-WQhXmx3H.js";
1
+ import { A as flag, C as EvaluationContext, D as FlagRunner, E as FeatureFlagDefinition, O as IdentifyFunction, S as DecideFunction, T as FeatureFlag, b as CustomEvaluationContext, j as setFlagProvider, k as MaybePromise, w as EventFlagContext, x as CustomEvaluationFunction, y as CommandFlagContext } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider };
@@ -1,166 +1,23 @@
1
1
  require('../colors-Csc0X4QJ.js');
2
2
  require('../ActionRow-CSN_UKmM.js');
3
- const require_commandkit = require('../commandkit-a_lLZW59.js');
4
- require('../container-DCPljKVH.js');
5
- require('../file-Ca1kpEtE.js');
6
- require('../media-gallery-u3gjX7yD.js');
7
- require('../section-BC8LF-B2.js');
8
- require('../separator-BUTiW7uz.js');
9
- require('../text-display-DANahMN3.js');
10
- require('../label-B6vXvwLM.js');
11
- require('../poll-CFe8yvoJ.js');
12
- require('../display-WDb9wMCv.js');
13
- require('../constants-CxkFFZ7p.js');
14
- require('../types-package-CsTNfvv2.js');
15
- const require_constants$1 = require('../constants-Cw8VjCVz.js');
16
- const require_EventWorkerContext = require('../EventWorkerContext-Dfhgv329.js');
17
- require('../signals-B8z1wJ6W.js');
18
- require('../helpers-Btx1FSZx.js');
19
- require('../MessageCommandParser-Bs9fimmd.js');
20
- require('../CommandsRouter-C_HLsrGX.js');
21
- require('../EventsRouter-DZYIha6m.js');
22
- require('../router-BvamdzoF.js');
23
- require('../common-DSRs_mfw.js');
24
- require('../store-D8r_hryO.js');
3
+ const require_commandkit = require('../commandkit-BUkbAdid.js');
4
+ require('../constants-CeIMhMD0.js');
5
+ require('../types-package-Bjh_ap0V.js');
6
+ require('../constants-BA0TJU6e.js');
7
+ require('../EventWorkerContext-CfqamFWu.js');
8
+ require('../signals-ewEPW2cO.js');
9
+ require('../helpers-DSy7EjzP.js');
10
+ require('../MessageCommandParser-VMFFGs0R.js');
11
+ require('../CommandsRouter-D5mGRFEr.js');
12
+ require('../EventsRouter-Be5NDOX4.js');
13
+ require('../router-CtcApqrw.js');
14
+ require('../file-DqI3v90P.js');
15
+ require('../separator-DGwA_b1J.js');
16
+ require('../text-display-BVuG7dT-.js');
17
+ require('../poll-ziQQQbMU.js');
18
+ require('../common-zQwj90Nz.js');
19
+ require('../store-DK4JA-fQ.js');
25
20
 
26
- //#region src/flags/feature-flags.ts
27
- let flagProvider = null;
28
- /**
29
- * Set the global flag provider for all feature flags
30
- */
31
- function setFlagProvider(provider) {
32
- flagProvider = provider;
33
- }
34
- /**
35
- * Class representing a feature flag in CommandKit.
36
- */
37
- var FeatureFlag = class {
38
- commandkit;
39
- /**
40
- * Create a new feature flag.
41
- * @param options - The options for the feature flag.
42
- */
43
- constructor(options) {
44
- this.options = options;
45
- this.commandkit = require_commandkit.getCommandKit(true);
46
- const FlagStore = this.commandkit.flags;
47
- if (FlagStore.has(options.key)) throw new Error(`Feature flag with key "${options.key}" already exists.`);
48
- FlagStore.set(options.key, this);
49
- }
50
- getContext() {
51
- const env = require_commandkit.getContext();
52
- if (env === null || env === void 0 ? void 0 : env.context) {
53
- const { client, commandkit, interaction, message, guild, channel, command } = env.context;
54
- return {
55
- client,
56
- commandkit,
57
- command: {
58
- interaction,
59
- message,
60
- guild,
61
- channel,
62
- command
63
- },
64
- event: null
65
- };
66
- }
67
- const eventCtx = require_EventWorkerContext.eventWorkerContext.getStore();
68
- if (eventCtx) {
69
- const { commandkit, data, event, namespace } = eventCtx;
70
- return {
71
- client: commandkit.client,
72
- commandkit,
73
- event: {
74
- data,
75
- event,
76
- namespace,
77
- arguments: eventCtx.arguments,
78
- argumentsAs: (eventName) => {
79
- return eventCtx.arguments;
80
- }
81
- },
82
- command: null
83
- };
84
- }
85
- throw new Error("Could not determine the execution context. Feature flags may only be used inside a command or event.");
86
- }
87
- /**
88
- * Execute the feature flag evaluation.
89
- * @param res - Optional entities to use for evaluation. If not provided, it will call the identify function.
90
- * @returns A promise that resolves to the result of the feature flag evaluation.
91
- */
92
- async execute(res) {
93
- const { decide, identify, disableAnalytics } = this.options;
94
- const identificationStart = performance.now();
95
- const entities = res ?? await (async () => {
96
- const ctx = this.getContext();
97
- return await (identify === null || identify === void 0 ? void 0 : identify(ctx)) ?? {};
98
- })();
99
- const identificationTime = performance.now() - identificationStart;
100
- let providerConfig = null;
101
- if (flagProvider) try {
102
- providerConfig = await flagProvider.getFlag(this.options.key, entities);
103
- if (providerConfig && !providerConfig.enabled) {
104
- if (typeof decide === "function") return await decide({
105
- entities,
106
- provider: providerConfig
107
- });
108
- }
109
- } catch (error) {
110
- require_commandkit.Logger.error`Error fetching flag provider configuration for "${this.options.key}": ${error}`;
111
- }
112
- const decisionStart = performance.now();
113
- const decisionResult = await decide({
114
- entities,
115
- provider: providerConfig
116
- });
117
- const decisionTime = performance.now() - decisionStart;
118
- if (!disableAnalytics) {
119
- require_commandkit.defer(async () => {
120
- await this.commandkit.analytics.track({
121
- name: require_constants$1.AnalyticsEvents.FEATURE_FLAG_METRICS,
122
- data: {
123
- flag: this.options.key,
124
- identificationTime: identificationTime.toFixed(2),
125
- decisionTime: decisionTime.toFixed(2),
126
- usedProvider: flagProvider !== null,
127
- providerEnabled: (providerConfig === null || providerConfig === void 0 ? void 0 : providerConfig.enabled) ?? null
128
- }
129
- });
130
- });
131
- require_commandkit.defer(async () => {
132
- await this.commandkit.analytics.track({
133
- name: require_constants$1.AnalyticsEvents.FEATURE_FLAG_DECISION,
134
- id: entities && typeof entities === "object" && "id" in entities && typeof entities.id === "string" ? entities.id : void 0,
135
- data: {
136
- flag: this.options.key,
137
- decision: require_commandkit.JsonSerialize(decisionResult, "unknown"),
138
- providerUsed: flagProvider !== null
139
- }
140
- });
141
- });
142
- }
143
- return decisionResult;
144
- }
145
- };
146
- /**
147
- * Create a new feature flag.
148
- * @param options - The options for the feature flag.
149
- * @returns A new instance of the FeatureFlag class.
150
- */
151
- function flag(options) {
152
- const flag = new FeatureFlag(options);
153
- const runner = flag.execute.bind(flag, void 0);
154
- runner.run = async function(ctx) {
155
- if (!(ctx === null || ctx === void 0 ? void 0 : ctx.identify)) throw new Error("Custom evaluation context must have an identify function or object.");
156
- const context = typeof ctx === "function" ? await ctx() : ctx;
157
- return await flag.execute(context);
158
- };
159
- return runner;
160
- }
161
-
162
- //#endregion
163
- exports.FeatureFlag = FeatureFlag;
164
- exports.flag = flag;
165
- exports.setFlagProvider = setFlagProvider;
166
- //# sourceMappingURL=feature-flags.js.map
21
+ exports.FeatureFlag = require_commandkit.FeatureFlag;
22
+ exports.flag = require_commandkit.flag;
23
+ exports.setFlagProvider = require_commandkit.setFlagProvider;
@@ -1,2 +1,2 @@
1
- import { v as FlagStore } from "../analytics-engine-WQhXmx3H.js";
1
+ import { v as FlagStore } from "../analytics-engine-_urJ5QTH.js";
2
2
  export { FlagStore };
@@ -1,3 +1,3 @@
1
- const require_store = require('../store-D8r_hryO.js');
1
+ const require_store = require('../store-DK4JA-fQ.js');
2
2
 
3
3
  exports.FlagStore = require_store.FlagStore;
@@ -32,4 +32,4 @@ Object.defineProperty(exports, 'isMessageSource', {
32
32
  return isMessageSource;
33
33
  }
34
34
  });
35
- //# sourceMappingURL=helpers-Btx1FSZx.js.map
35
+ //# sourceMappingURL=helpers-DSy7EjzP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-Btx1FSZx.js","names":[],"sources":["../src/app/commands/helpers.ts"],"sourcesContent":["import { Interaction, Message } from 'discord.js';\n\n/**\n * Union type representing possible command sources.\n */\nexport type CommandSource = Interaction | Message;\n\n/**\n * Type guard to check if a command source is a Discord message.\n * @param source - The command source to check\n * @returns True if the source is a Message\n */\nexport function isMessageSource(source: CommandSource): source is Message {\n return source instanceof Message;\n}\n\n/**\n * Type guard to check if a command source is a Discord interaction.\n * @param source - The command source to check\n * @returns True if the source is an Interaction\n */\nexport function isInteractionSource(\n source: CommandSource,\n): source is Interaction {\n return !isMessageSource(source);\n}\n"],"mappings":";;;;;;;;;AAYA,SAAgB,gBAAgB,QAA0C;AACxE,QAAO,kBAAkB;;;;;;;AAQ3B,SAAgB,oBAChB,QACwB;AACtB,QAAO,CAAC,gBAAgB,OAAO"}
1
+ {"version":3,"file":"helpers-DSy7EjzP.js","names":[],"sources":["../src/app/commands/helpers.ts"],"sourcesContent":["import { Interaction, Message } from 'discord.js';\n\n/**\n * Union type representing possible command sources.\n */\nexport type CommandSource = Interaction | Message;\n\n/**\n * Type guard to check if a command source is a Discord message.\n * @param source - The command source to check\n * @returns True if the source is a Message\n */\nexport function isMessageSource(source: CommandSource): source is Message {\n return source instanceof Message;\n}\n\n/**\n * Type guard to check if a command source is a Discord interaction.\n * @param source - The command source to check\n * @returns True if the source is an Interaction\n */\nexport function isInteractionSource(\n source: CommandSource,\n): source is Interaction {\n return !isMessageSource(source);\n}\n"],"mappings":";;;;;;;;;AAYA,SAAgB,gBAAgB,QAA0C;AACxE,QAAO,kBAAkB;;;;;;;AAQ3B,SAAgB,oBAChB,QACwB;AACtB,QAAO,CAAC,gBAAgB,OAAO"}
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { $ as isRuntimePlugin, $t as MessageCommand, A as flag, At as makeContextAwareFunction, B as CommonPluginRuntime, Bt as PreRegisterCommandsEvent, C as EvaluationContext, D as FlagRunner, Dt as getCommandKit, E as FeatureFlagDefinition, Et as exitContext, F as CommandKitPluginRuntime, Ft as CommandKitEnvironmentInternalData, G as PluginTransformParameters, Gt as ChatInputCommand, H as CommonDirectiveTransformer, Ht as AutocompleteCommand, It as CommandKitEnvironmentType, J as CommandKitEventDispatch, Jt as CommandExecutionMode, K as TransformedResult, Kt as ChatInputCommandContext, Lt as after, Mt as useEnvironment, Nt as useStore, O as IdentifyFunction, Ot as getContext, Pt as CommandKitEnvironment, Q as RuntimePlugin, Qt as InteractionCommandMiddlewareContext, Rt as cancelAfter, S as DecideFunction, T as FeatureFlag, Tt as GenericFunction, U as CommonDirectiveTransformerOptions, Ut as AutocompleteCommandContext, V as CompilerPluginRuntime, Vt as AnyCommandExecute, W as CompilerPlugin, Wt as AutocompleteCommandMiddlewareContext, X as MaybeFalsey, Xt as ContextParameters, Y as CommandKitPlugin, Yt as Context, Z as TemplateHandler, Zt as InteractionCommandContext, _t as CustomAppCommandProps, an as MiddlewareContext, b as CustomEvaluationContext, bt as ResolvableCommand, c as CommandKitConfiguration, cn as UserContextMenuCommand, d as onBootstrap, dn as CommandContext, dt as AppCommandNative, en as MessageCommandContext, et as CommandKitHMREvent, fn as CommandData, ft as CommandBuilderLike, gn as EventHandler, gt as CommandTypeData, hn as CommandMetadataFunction, ht as CommandDataSchemaValue, in as MessageContextMenuCommandMiddlewareContext, j as setFlagProvider, jt as provideContext, k as MaybePromise, kt as isCommandWorkerContext, l as commandkit, ln as UserContextMenuCommandContext, lt as AppCommand, mn as CommandMetadata, mt as CommandDataSchemaKey, nn as MessageContextMenuCommand, o as BootstrapFunction, on as MiddlewareContextArgs, pn as CommandKitOptions, pt as CommandDataSchema, q as isCompilerPlugin, qt as CommandContextOptions, rn as MessageContextMenuCommandContext, s as CommandKit, sn as SlashCommandMiddlewareContext, tn as MessageCommandMiddlewareContext, u as onApplicationBootstrap, un as UserContextMenuCommandMiddlewareContext, ut as AppCommandHandler, vt as LoadedCommand, w as EventFlagContext, wt as AsyncFunction, x as CustomEvaluationFunction, xt as RunCommand, y as CommandFlagContext, yt as PreparedAppCommandExecution, zt as CommandRegistrar } from "./analytics-engine-WQhXmx3H.js";
1
+ import { $ as isRuntimePlugin, $t as MessageCommand, A as flag, At as makeContextAwareFunction, B as CommonPluginRuntime, Bt as PreRegisterCommandsEvent, C as EvaluationContext, D as FlagRunner, Dt as getCommandKit, E as FeatureFlagDefinition, Et as exitContext, F as CommandKitPluginRuntime, Ft as CommandKitEnvironmentInternalData, G as PluginTransformParameters, Gt as ChatInputCommand, H as CommonDirectiveTransformer, Ht as AutocompleteCommand, It as CommandKitEnvironmentType, J as CommandKitEventDispatch, Jt as CommandExecutionMode, K as TransformedResult, Kt as ChatInputCommandContext, Lt as after, Mt as useEnvironment, Nt as useStore, O as IdentifyFunction, Ot as getContext, Pt as CommandKitEnvironment, Q as RuntimePlugin, Qt as InteractionCommandMiddlewareContext, Rt as cancelAfter, S as DecideFunction, T as FeatureFlag, Tt as GenericFunction, U as CommonDirectiveTransformerOptions, Ut as AutocompleteCommandContext, V as CompilerPluginRuntime, Vt as AnyCommandExecute, W as CompilerPlugin, Wt as AutocompleteCommandMiddlewareContext, X as MaybeFalsey, Xt as ContextParameters, Y as CommandKitPlugin, Yt as Context, Z as TemplateHandler, Zt as InteractionCommandContext, _t as CustomAppCommandProps, an as MiddlewareContext, b as CustomEvaluationContext, bt as ResolvableCommand, c as CommandKitConfiguration, cn as UserContextMenuCommand, d as onBootstrap, dn as CommandContext, dt as AppCommandNative, en as MessageCommandContext, et as CommandKitHMREvent, fn as CommandData, ft as CommandBuilderLike, gn as EventHandler, gt as CommandTypeData, hn as CommandMetadataFunction, ht as CommandDataSchemaValue, in as MessageContextMenuCommandMiddlewareContext, j as setFlagProvider, jt as provideContext, k as MaybePromise, kt as isCommandWorkerContext, l as commandkit, ln as UserContextMenuCommandContext, lt as AppCommand, mn as CommandMetadata, mt as CommandDataSchemaKey, nn as MessageContextMenuCommand, o as BootstrapFunction, on as MiddlewareContextArgs, pn as CommandKitOptions, pt as CommandDataSchema, q as isCompilerPlugin, qt as CommandContextOptions, rn as MessageContextMenuCommandContext, s as CommandKit, sn as SlashCommandMiddlewareContext, tn as MessageCommandMiddlewareContext, u as onApplicationBootstrap, un as UserContextMenuCommandMiddlewareContext, ut as AppCommandHandler, vt as LoadedCommand, w as EventFlagContext, wt as AsyncFunction, x as CustomEvaluationFunction, xt as RunCommand, y as CommandFlagContext, yt as PreparedAppCommandExecution, zt as CommandRegistrar } from "./analytics-engine-_urJ5QTH.js";
2
2
  import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler, t as EventInterceptor } from "./EventInterceptor-CZmWpS08.js";
3
3
  import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, n as ButtonKitPredicate, o as OnButtonKitClick, r as CommandKitButtonBuilderInteractionCollectorDispatch, s as OnButtonKitEnd, t as ButtonKit } from "./ButtonKit-DKu0VAe4.js";
4
4
  import { a as ModalKitPredicate, i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, r as CommandKitModalBuilderOnEnd, s as OnModalKitSubmit, t as CommandKitModalBuilderInteractionCollectorDispatch } from "./ModalKit-BWXI3Z26.js";
5
- import { a as Fragment, c as getElement, i as ElementType, l as isCommandKitElement, n as CommandKitElement, o as FragmentElementProps, r as CommandKitElementData, s as createElement, t as AnyCommandKitElement } from "./element-wQo0heGj.js";
6
- import { n as ActionRowProps, t as ActionRow } from "./ActionRow-B-CGmjDp.js";
5
+ import { a as Fragment, c as createElement, i as ElementType, l as getElement, n as CommandKitElement, o as FragmentElementProps, r as CommandKitElementData, s as applyDefaultOptionalComponentBehavior, t as AnyCommandKitElement, u as isCommandKitElement } from "./element-DZeqbSTk.js";
6
+ import { n as ActionRowProps, t as ActionRow } from "./ActionRow-CT-uyxW0.js";
7
7
  import { t as MaybeArray } from "./types-BywA9d2Z.js";
8
- import { n as ButtonChildrenLike, r as ButtonProps, t as Button } from "./Button-C-GPeFA3.js";
9
- import { a as ParagraphInput, c as TextInputProps, i as ModalProps, n as FileUploadProps, o as ShortInput, r as Modal, s as TextInput, t as FileUpload } from "./Modal-CZT9MZsy.js";
8
+ import { n as ButtonChildrenLike, r as ButtonProps, t as Button } from "./Button-oMnlpF6W.js";
9
+ import { a as ParagraphInput, c as TextInputProps, i as ModalProps, n as FileUploadProps, o as ShortInput, r as Modal, s as TextInput, t as FileUpload } from "./Modal--iMEUqSm.js";
10
10
  import { a as OnSelectMenuKitSubmit, i as OnSelectMenuKitEnd, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-DnwCYit8.js";
11
11
  import { n as StringSelectMenuKit, r as StringSelectMenuKitPredicate, t as OnStringSelectMenuKitSubmit } from "./StringSelectMenuKit-lVhUMc3g.js";
12
12
  import { n as ChannelSelectMenuKitPredicate, r as OnChannelSelectMenuKitSubmit, t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-HQZ4hH5s.js";
13
13
  import { n as MentionableSelectMenuKitPredicate, r as OnMentionableSelectMenuKitSubmit, t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-7URDUM3-.js";
14
14
  import { n as UserSelectMenuKit, r as UserSelectMenuKitPredicate, t as OnUserSelectMenuKitSubmit } from "./UserSelectMenuKit-CCj4Fpkr.js";
15
15
  import { n as RoleSelectMenuKit, r as RoleSelectMenuKitPredicate, t as OnRoleSelectMenuKitSubmit } from "./RoleSelectMenuKit-BY-JJ18w.js";
16
- import { a as MentionableSelectMenu, c as RoleSelectMenu, d as StringSelectMenu, f as StringSelectMenuOption, g as UserSelectMenuProps, h as UserSelectMenu, i as CommonSelectMenuProps, l as RoleSelectMenuProps, m as StringSelectMenuProps, n as ChannelSelectMenuProps, o as MentionableSelectMenuProps, p as StringSelectMenuOptionProps, r as CommonBuilderKit, s as ResolveBuilderInteraction, t as ChannelSelectMenu, u as SelectMenuProps } from "./SelectMenu-q_b3Mjv9.js";
16
+ import { a as MentionableSelectMenu, c as RoleSelectMenu, d as StringSelectMenu, f as StringSelectMenuOption, g as UserSelectMenuProps, h as UserSelectMenu, i as CommonSelectMenuProps, l as RoleSelectMenuProps, m as StringSelectMenuProps, n as ChannelSelectMenuProps, o as MentionableSelectMenuProps, p as StringSelectMenuOptionProps, r as CommonBuilderKit, s as ResolveBuilderInteraction, t as ChannelSelectMenu, u as SelectMenuProps } from "./SelectMenu-DQbmOp1Y.js";
17
17
  import { n as ContainerProps, t as Container } from "./container-DYcb7zGw.js";
18
18
  import { n as FileProps, t as File } from "./file-CrV4lSnl.js";
19
19
  import { i as MediaGalleryProps, n as MediaGalleryItem, r as MediaGalleryItemProps, t as MediaGallery } from "./media-gallery-Ci3I4ElH.js";
@@ -39,4 +39,4 @@ import { emitWarning, warnDeprecated, warnUnstable } from "./utils/warning.js";
39
39
  import { toFileURL } from "./utils/resolve-file-url.js";
40
40
  import { CommandKitErrorCodes, isErrorType } from "./utils/error-codes.js";
41
41
  import { Client, Collection } from "discord.js";
42
- export { ActionRow, ActionRowProps, AnyCommandExecute, AnyCommandKitElement, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, Button, ButtonChildrenLike, ButtonKit, ButtonKitPredicate, ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, ChannelSelectMenu, ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, ChannelSelectMenuProps, ChatInputCommand, ChatInputCommandContext, type Client, Collection, Command, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKit as default, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, CommandKitConfiguration, CommandKitElement, CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitErrorCodes, CommandKitEventDispatch, type CommandKitHMREvent, CommandKitLoggerOptions, CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandSource, CommandTypeData, CommandsRouter, CommandsRouterOptions, CommonBuilderKit, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, ContainerProps, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, DefaultLogger, ElementType, EvaluationContext, EventFlagContext, EventHandler, EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler, EventWorkerContext, EventsRouter, EventsRouterOptions, EventsTree, FeatureFlag, FeatureFlagDefinition, File, FileProps, FileUpload, FileUploadProps, FlagRunner, Fragment, FragmentElementProps, GenericFunction, HMREventType, ILogger, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, Label, LabelProps, LoadedCommand, Logger, LoggerImpl, MaybeArray, MaybeFalsey, MaybePromise, MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps, MentionableSelectMenu, MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, MentionableSelectMenuProps, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, Middleware, MiddlewareContext, MiddlewareContextArgs, Modal, ModalKit, ModalKitPredicate, ModalProps, OnButtonKitClick, OnButtonKitEnd, OnChannelSelectMenuKitSubmit, OnMentionableSelectMenuKitSubmit, OnModalKitEnd, OnModalKitSubmit, OnRoleSelectMenuKitSubmit, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, OnStringSelectMenuKitSubmit, OnUserSelectMenuKitSubmit, ParagraphInput, ParsedCommandData, ParsedEvent, ParsedMessageCommand, PluginTransformParameters, Poll, PollAnswer, PollAnswerProps, PollChildrenType, PollProps, PollQuestion, PollQuestionProps, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuKit, RoleSelectMenuKitPredicate, RoleSelectMenuProps, RunCommand, RuntimePlugin, Section, SectionProps, SelectMenuKitPredicate, SelectMenuProps, Separator, SeparatorProps, ShortInput, SlashCommandMiddlewareContext, StringEncodable, StringSelectMenu, StringSelectMenuKit, StringSelectMenuKitPredicate, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, TemplateHandler, TextDisplay, TextDisplayProps, TextInput, TextInputProps, Thumbnail, ThumbnailProps, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, UserSelectMenuKitPredicate, UserSelectMenuProps, commandkit, createElement, createElement as jsx, createElement as jsxs, createLogger, debounce, defer, defineConfig, devOnly, emitWarning, eventWorkerContext, exitContext, flag, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, isBuildLikeEnvironment, isCommandKitElement, isCommandWorkerContext, isCompilerPlugin, isErrorType, isEventWorkerContext, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, runInEventWorkerContext, setFlagProvider, stopEvents, stopMiddlewares, toFileURL, after as unstable_after, cancelAfter as unstable_cancelAfter, useEnvironment, useStore, version, warnDeprecated, warnUnstable };
42
+ export { ActionRow, ActionRowProps, AnyCommandExecute, AnyCommandKitElement, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, Button, ButtonChildrenLike, ButtonKit, ButtonKitPredicate, ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, ChannelSelectMenu, ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, ChannelSelectMenuProps, ChatInputCommand, ChatInputCommandContext, type Client, Collection, Command, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKit as default, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, CommandKitConfiguration, CommandKitElement, CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitErrorCodes, CommandKitEventDispatch, type CommandKitHMREvent, CommandKitLoggerOptions, CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandSource, CommandTypeData, CommandsRouter, CommandsRouterOptions, CommonBuilderKit, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, ContainerProps, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, DefaultLogger, ElementType, EvaluationContext, EventFlagContext, EventHandler, EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler, EventWorkerContext, EventsRouter, EventsRouterOptions, EventsTree, FeatureFlag, FeatureFlagDefinition, File, FileProps, FileUpload, FileUploadProps, FlagRunner, Fragment, FragmentElementProps, GenericFunction, HMREventType, ILogger, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, Label, LabelProps, LoadedCommand, Logger, LoggerImpl, MaybeArray, MaybeFalsey, MaybePromise, MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps, MentionableSelectMenu, MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, MentionableSelectMenuProps, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, Middleware, MiddlewareContext, MiddlewareContextArgs, Modal, ModalKit, ModalKitPredicate, ModalProps, OnButtonKitClick, OnButtonKitEnd, OnChannelSelectMenuKitSubmit, OnMentionableSelectMenuKitSubmit, OnModalKitEnd, OnModalKitSubmit, OnRoleSelectMenuKitSubmit, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, OnStringSelectMenuKitSubmit, OnUserSelectMenuKitSubmit, ParagraphInput, ParsedCommandData, ParsedEvent, ParsedMessageCommand, PluginTransformParameters, Poll, PollAnswer, PollAnswerProps, PollChildrenType, PollProps, PollQuestion, PollQuestionProps, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuKit, RoleSelectMenuKitPredicate, RoleSelectMenuProps, RunCommand, RuntimePlugin, Section, SectionProps, SelectMenuKitPredicate, SelectMenuProps, Separator, SeparatorProps, ShortInput, SlashCommandMiddlewareContext, StringEncodable, StringSelectMenu, StringSelectMenuKit, StringSelectMenuKitPredicate, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, TemplateHandler, TextDisplay, TextDisplayProps, TextInput, TextInputProps, Thumbnail, ThumbnailProps, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, UserSelectMenuKitPredicate, UserSelectMenuProps, applyDefaultOptionalComponentBehavior, commandkit, createElement, createElement as jsx, createElement as jsxs, createLogger, debounce, defer, defineConfig, devOnly, emitWarning, eventWorkerContext, exitContext, flag, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, isBuildLikeEnvironment, isCommandKitElement, isCommandWorkerContext, isCompilerPlugin, isErrorType, isEventWorkerContext, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, runInEventWorkerContext, setFlagProvider, stopEvents, stopMiddlewares, toFileURL, after as unstable_after, cancelAfter as unstable_cancelAfter, useEnvironment, useStore, version, warnDeprecated, warnUnstable };
package/dist/index.js CHANGED
@@ -3,44 +3,31 @@ const require_chunk = require('./chunk-kSYXY2_d.js');
3
3
  require('./colors-Csc0X4QJ.js');
4
4
  const require_ActionRow = require('./ActionRow-CSN_UKmM.js');
5
5
  const require_error_codes = require('./error-codes-Ds0bnPvT.js');
6
- const require_commandkit = require('./commandkit-a_lLZW59.js');
7
- const require_warning = require('./warning-CszH8HeS.js');
8
- const require_container = require('./container-DCPljKVH.js');
9
- const require_file = require('./file-Ca1kpEtE.js');
10
- const require_media_gallery = require('./media-gallery-u3gjX7yD.js');
11
- const require_section = require('./section-BC8LF-B2.js');
12
- const require_separator = require('./separator-BUTiW7uz.js');
13
- const require_text_display = require('./text-display-DANahMN3.js');
14
- const require_label = require('./label-B6vXvwLM.js');
15
- const require_poll = require('./poll-CFe8yvoJ.js');
16
- require('./display-WDb9wMCv.js');
17
- const require_element = require('./element-DibzzA5L.js');
18
- const require_EventInterceptor = require('./EventInterceptor-BWoEJMHZ.js');
19
- const require_constants = require('./constants-CxkFFZ7p.js');
20
- const require_CompilerPlugin = require('./CompilerPlugin-CUsGAfgl.js');
21
- const require_RuntimePlugin = require('./RuntimePlugin-CtobluSU.js');
22
- const require_resolve_file_url = require('./resolve-file-url-CdHqwWs3.js');
23
- require('./types-package-CsTNfvv2.js');
24
- require('./constants-Cw8VjCVz.js');
25
- const require_EventWorkerContext = require('./EventWorkerContext-Dfhgv329.js');
26
- const require_signals = require('./signals-B8z1wJ6W.js');
27
- const require_helpers = require('./helpers-Btx1FSZx.js');
28
- const require_MessageCommandParser = require('./MessageCommandParser-Bs9fimmd.js');
29
- const require_CommandsRouter = require('./CommandsRouter-C_HLsrGX.js');
30
- const require_EventsRouter = require('./EventsRouter-DZYIha6m.js');
31
- require('./router-BvamdzoF.js');
32
- require('./common-DSRs_mfw.js');
33
- require('./store-D8r_hryO.js');
34
- require('./app/index.js');
35
- require('./logger/ILogger.js');
36
- const require_version = require('./version.js');
37
- const require_flags_feature_flags = require('./flags/feature-flags.js');
6
+ const require_commandkit = require('./commandkit-BUkbAdid.js');
7
+ const require_CompilerPlugin = require('./CompilerPlugin-DZidFuHJ.js');
8
+ const require_RuntimePlugin = require('./RuntimePlugin-BYQXQO8w.js');
9
+ const require_constants = require('./constants-CeIMhMD0.js');
10
+ const require_resolve_file_url = require('./resolve-file-url-BmjHzIKe.js');
11
+ const require_warning = require('./warning-BWiQltHE.js');
12
+ const require_EventInterceptor = require('./EventInterceptor-CxA95XYA.js');
13
+ require('./types-package-Bjh_ap0V.js');
14
+ require('./constants-BA0TJU6e.js');
15
+ const require_EventWorkerContext = require('./EventWorkerContext-CfqamFWu.js');
16
+ const require_signals = require('./signals-ewEPW2cO.js');
17
+ const require_helpers = require('./helpers-DSy7EjzP.js');
18
+ const require_MessageCommandParser = require('./MessageCommandParser-VMFFGs0R.js');
19
+ const require_CommandsRouter = require('./CommandsRouter-D5mGRFEr.js');
20
+ const require_EventsRouter = require('./EventsRouter-Be5NDOX4.js');
21
+ require('./router-CtcApqrw.js');
22
+ const require_version = require('./version-CdkD798u.js');
23
+ const require_file = require('./file-DqI3v90P.js');
24
+ const require_separator = require('./separator-DGwA_b1J.js');
25
+ const require_text_display = require('./text-display-BVuG7dT-.js');
26
+ const require_poll = require('./poll-ziQQQbMU.js');
27
+ require('./common-zQwj90Nz.js');
28
+ require('./store-DK4JA-fQ.js');
38
29
  let discord_js = require("discord.js");
39
30
 
40
- //#region src/index.ts
41
- var src_default = require_commandkit.CommandKit;
42
-
43
- //#endregion
44
31
  exports.ActionRow = require_ActionRow.ActionRow;
45
32
  exports.AppCommandHandler = require_commandkit.AppCommandHandler;
46
33
  exports.Button = require_commandkit.Button;
@@ -69,21 +56,21 @@ exports.CommandsRouter = require_CommandsRouter.CommandsRouter;
69
56
  exports.CommonDirectiveTransformer = require_commandkit.CommonDirectiveTransformer;
70
57
  exports.CompilerPlugin = require_CompilerPlugin.CompilerPlugin;
71
58
  exports.CompilerPluginRuntime = require_commandkit.CompilerPluginRuntime;
72
- exports.Container = require_container.Container;
59
+ exports.Container = require_commandkit.Container;
73
60
  exports.Context = require_commandkit.Context;
74
61
  exports.DefaultLogger = require_commandkit.DefaultLogger;
75
- exports.ElementType = require_element.ElementType;
62
+ exports.ElementType = require_commandkit.ElementType;
76
63
  exports.EventInterceptor = require_EventInterceptor.EventInterceptor;
77
64
  exports.EventsRouter = require_EventsRouter.EventsRouter;
78
- exports.FeatureFlag = require_flags_feature_flags.FeatureFlag;
65
+ exports.FeatureFlag = require_commandkit.FeatureFlag;
79
66
  exports.File = require_file.File;
80
67
  exports.FileUpload = require_commandkit.FileUpload;
81
- exports.Fragment = require_element.Fragment;
68
+ exports.Fragment = require_commandkit.Fragment;
82
69
  exports.HMREventType = require_constants.HMREventType;
83
- exports.Label = require_label.Label;
70
+ exports.Label = require_commandkit.Label;
84
71
  exports.Logger = require_commandkit.Logger;
85
- exports.MediaGallery = require_media_gallery.MediaGallery;
86
- exports.MediaGalleryItem = require_media_gallery.MediaGalleryItem;
72
+ exports.MediaGallery = require_commandkit.MediaGallery;
73
+ exports.MediaGalleryItem = require_commandkit.MediaGalleryItem;
87
74
  exports.MentionableSelectMenu = require_commandkit.MentionableSelectMenu;
88
75
  exports.MentionableSelectMenuKit = require_commandkit.MentionableSelectMenuKit;
89
76
  exports.MessageCommandOptions = require_MessageCommandParser.MessageCommandOptions;
@@ -98,7 +85,7 @@ exports.PollQuestion = require_poll.PollQuestion;
98
85
  exports.RoleSelectMenu = require_commandkit.RoleSelectMenu;
99
86
  exports.RoleSelectMenuKit = require_commandkit.RoleSelectMenuKit;
100
87
  exports.RuntimePlugin = require_RuntimePlugin.RuntimePlugin;
101
- exports.Section = require_section.Section;
88
+ exports.Section = require_commandkit.Section;
102
89
  exports.Separator = require_separator.Separator;
103
90
  exports.ShortInput = require_commandkit.ShortInput;
104
91
  exports.StringSelectMenu = require_commandkit.StringSelectMenu;
@@ -106,32 +93,33 @@ exports.StringSelectMenuKit = require_commandkit.StringSelectMenuKit;
106
93
  exports.StringSelectMenuOption = require_commandkit.StringSelectMenuOption;
107
94
  exports.TextDisplay = require_text_display.TextDisplay;
108
95
  exports.TextInput = require_commandkit.TextInput;
109
- exports.Thumbnail = require_section.Thumbnail;
96
+ exports.Thumbnail = require_commandkit.Thumbnail;
110
97
  exports.UserSelectMenu = require_commandkit.UserSelectMenu;
111
98
  exports.UserSelectMenuKit = require_commandkit.UserSelectMenuKit;
99
+ exports.applyDefaultOptionalComponentBehavior = require_commandkit.applyDefaultOptionalComponentBehavior;
112
100
  exports.commandkit = require_commandkit.commandkit;
113
- exports.createElement = require_element.createElement;
114
- exports.jsx = require_element.createElement;
115
- exports.jsxs = require_element.createElement;
101
+ exports.createElement = require_commandkit.createElement;
102
+ exports.jsx = require_commandkit.createElement;
103
+ exports.jsxs = require_commandkit.createElement;
116
104
  exports.createLogger = require_commandkit.createLogger;
117
105
  exports.debounce = require_commandkit.debounce;
118
- exports.default = src_default;
106
+ exports.default = require_commandkit.src_default;
119
107
  exports.defer = require_commandkit.defer;
120
108
  exports.defineConfig = require_commandkit.defineConfig;
121
109
  exports.devOnly = require_commandkit.devOnly;
122
110
  exports.emitWarning = require_warning.emitWarning;
123
111
  exports.eventWorkerContext = require_EventWorkerContext.eventWorkerContext;
124
112
  exports.exitContext = require_commandkit.exitContext;
125
- exports.flag = require_flags_feature_flags.flag;
113
+ exports.flag = require_commandkit.flag;
126
114
  exports.getCommandKit = require_commandkit.getCommandKit;
127
115
  exports.getConfig = require_commandkit.getConfig;
128
116
  exports.getContext = require_commandkit.getContext;
129
117
  exports.getCurrentDirectory = require_commandkit.getCurrentDirectory;
130
- exports.getElement = require_element.getElement;
118
+ exports.getElement = require_commandkit.getElement;
131
119
  exports.getEventWorkerContext = require_EventWorkerContext.getEventWorkerContext;
132
120
  exports.getSourceDirectories = require_commandkit.getSourceDirectories;
133
121
  exports.isBuildLikeEnvironment = require_constants.isBuildLikeEnvironment;
134
- exports.isCommandKitElement = require_element.isCommandKitElement;
122
+ exports.isCommandKitElement = require_commandkit.isCommandKitElement;
135
123
  exports.isCommandWorkerContext = require_commandkit.isCommandWorkerContext;
136
124
  exports.isCompilerPlugin = require_CompilerPlugin.isCompilerPlugin;
137
125
  exports.isErrorType = require_error_codes.isErrorType;
@@ -146,7 +134,7 @@ exports.provideContext = require_commandkit.provideContext;
146
134
  exports.redirect = require_signals.redirect;
147
135
  exports.rethrow = require_signals.rethrow;
148
136
  exports.runInEventWorkerContext = require_EventWorkerContext.runInEventWorkerContext;
149
- exports.setFlagProvider = require_flags_feature_flags.setFlagProvider;
137
+ exports.setFlagProvider = require_commandkit.setFlagProvider;
150
138
  exports.stopEvents = require_signals.stopEvents;
151
139
  exports.stopMiddlewares = require_signals.stopMiddlewares;
152
140
  exports.toFileURL = require_resolve_file_url.toFileURL;
@@ -156,5 +144,4 @@ exports.useEnvironment = require_commandkit.useEnvironment;
156
144
  exports.useStore = require_commandkit.useStore;
157
145
  exports.version = require_version.version;
158
146
  exports.warnDeprecated = require_warning.warnDeprecated;
159
- exports.warnUnstable = require_warning.warnUnstable;
160
- //# sourceMappingURL=index.js.map
147
+ exports.warnUnstable = require_warning.warnUnstable;