commandkit 1.2.0-rc.10 → 1.2.0-rc.12
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.
- package/COPYING.md +684 -0
- package/dist/{ActionRow-DKnFVDME.d.ts → ActionRow-B-7n9MMr.d.ts} +3 -3
- package/dist/{ActionRow-CbdGFWMT.js → ActionRow-uJxU4UGo.js} +2 -2
- package/dist/ActionRow-uJxU4UGo.js.map +1 -0
- package/dist/{Button-4ZUXdA56.d.ts → Button-RMp-w8HV.d.ts} +4 -4
- package/dist/{ButtonKit-C7r7RPNf.d.ts → ButtonKit-9k4yfhYD.d.ts} +2 -2
- package/dist/{ChannelSelectMenuKit-BrXvBYNH.d.ts → ChannelSelectMenuKit-CsYgIyKe.d.ts} +3 -3
- package/dist/{CommandKitEventsChannel-BtRzr3Tz.js → CommandKitEventsChannel-2l9Za-le.js} +1 -1
- package/dist/{CommandKitEventsChannel-BtRzr3Tz.js.map → CommandKitEventsChannel-2l9Za-le.js.map} +1 -1
- package/dist/{CommandsRouter-CoOA7hkf.d.ts → CommandsRouter-CBdsqaWK.d.ts} +1 -1
- package/dist/{CommandsRouter-Dmzw-ikm.js → CommandsRouter-CWMipIis.js} +1 -1
- package/dist/{CommandsRouter-Dmzw-ikm.js.map → CommandsRouter-CWMipIis.js.map} +1 -1
- package/dist/{CompilerPlugin-M8r3yNAl.js → CompilerPlugin-CZ4412Zm.js} +2 -2
- package/dist/{CompilerPlugin-M8r3yNAl.js.map → CompilerPlugin-CZ4412Zm.js.map} +1 -1
- package/dist/{DefaultLogger-XCOl5nLd.d.ts → DefaultLogger-CHMVsizQ.d.ts} +2 -2
- package/dist/{EventInterceptor-CQEXyUTp.js → EventInterceptor-BWoEJMHZ.js} +1 -1
- package/dist/{EventInterceptor-CQEXyUTp.js.map → EventInterceptor-BWoEJMHZ.js.map} +1 -1
- package/dist/{EventWorkerContext-DNWfsE1t.d.ts → EventWorkerContext-CLhZRHhH.d.ts} +3 -3
- package/dist/{EventWorkerContext-Dq29tieI.js → EventWorkerContext-D_9q1Bm2.js} +1 -1
- package/dist/EventWorkerContext-D_9q1Bm2.js.map +1 -0
- package/dist/{EventsRouter-BacqK6z3.d.ts → EventsRouter-4pT6vj-U.d.ts} +1 -1
- package/dist/{EventsRouter-3Gygh-km.js → EventsRouter-C04XqRKf.js} +1 -1
- package/dist/{EventsRouter-3Gygh-km.js.map → EventsRouter-C04XqRKf.js.map} +1 -1
- package/dist/{ILogger-BW8GM-YZ.d.ts → ILogger-BQ2ew4zR.d.ts} +1 -1
- package/dist/{Logger-DyfkPk7u.d.ts → Logger-DyV7oli4.d.ts} +2 -2
- package/dist/{MentionableSelectMenuKit-CPTKqx-O.d.ts → MentionableSelectMenuKit-CO9phWMf.d.ts} +3 -3
- package/dist/{MessageCommandParser-Dl0xxtdr.js → MessageCommandParser-CKh-tM97.js} +52 -53
- package/dist/{MessageCommandParser-Dl0xxtdr.js.map → MessageCommandParser-CKh-tM97.js.map} +1 -1
- package/dist/{MessageCommandParser-BsGMOTDo.d.ts → MessageCommandParser-DEOl_ifb.d.ts} +1 -1
- package/dist/{Modal-C6UTRdYQ.d.ts → Modal-Calb46SJ.d.ts} +11 -8
- package/dist/{ModalKit-Btz58KYn.d.ts → ModalKit-Cq2ns6jv.d.ts} +2 -2
- package/dist/{PluginCommon-Cvl5yYM_.js → PluginCommon-CPWV5xuX.js} +1 -1
- package/dist/{PluginCommon-Cvl5yYM_.js.map → PluginCommon-CPWV5xuX.js.map} +1 -1
- package/dist/{RoleSelectMenuKit-C26lU3sN.d.ts → RoleSelectMenuKit-DvBxzpWh.d.ts} +3 -3
- package/dist/{RuntimePlugin-BUecuBIU.js → RuntimePlugin-COeXe8rP.js} +2 -2
- package/dist/{RuntimePlugin-BUecuBIU.js.map → RuntimePlugin-COeXe8rP.js.map} +1 -1
- package/dist/{SelectMenu-Diy87_ba.d.ts → SelectMenu-VcDhOGoJ.d.ts} +8 -8
- package/dist/{StringSelectMenuKit-Bhs8U6WI.d.ts → StringSelectMenuKit-CJ0MzUZJ.d.ts} +3 -3
- package/dist/{UserSelectMenuKit-CfqFJdxz.d.ts → UserSelectMenuKit-C_J-9RJs.d.ts} +3 -3
- package/dist/analytics/analytics-engine.d.ts +31 -29
- package/dist/analytics/analytics-engine.js +37 -34
- package/dist/analytics/analytics-provider.d.ts +31 -29
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +37 -34
- package/dist/{analytics-engine-jVeSoxEk.d.ts → analytics-engine-NOInIjv8.d.ts} +30 -24
- package/dist/app/commands/AppCommandRunner.d.ts +31 -29
- package/dist/app/commands/AppCommandRunner.js +37 -34
- package/dist/app/commands/Context.d.ts +31 -29
- package/dist/app/commands/Context.js +37 -34
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +1 -1
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +32 -30
- package/dist/app/events/EventWorkerContext.js +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +31 -29
- package/dist/app/handlers/AppCommandHandler.js +37 -34
- package/dist/app/handlers/AppEventsHandler.d.ts +31 -29
- package/dist/app/handlers/AppEventsHandler.js +37 -34
- package/dist/app/index.d.ts +31 -29
- package/dist/app/index.js +38 -35
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js +2 -2
- package/dist/app/middlewares/permissions.d.ts +31 -29
- package/dist/app/middlewares/permissions.js +37 -34
- package/dist/app/register/CommandRegistrar.d.ts +31 -29
- package/dist/app/register/CommandRegistrar.js +37 -34
- package/dist/app/router/CommandsRouter.d.ts +1 -1
- package/dist/app/router/CommandsRouter.js +1 -1
- package/dist/app/router/EventsRouter.d.ts +1 -1
- package/dist/app/router/EventsRouter.js +1 -1
- package/dist/app/router/index.d.ts +3 -3
- package/dist/app/router/index.js +3 -3
- package/dist/{app-process-cj2vF12T.js → app-process-AQ3Cbf6j.js} +4 -4
- package/dist/app-process-AQ3Cbf6j.js.map +1 -0
- package/dist/{build-DB_aX5xt.js → build-BYMHMOl_.js} +11 -12
- package/dist/{build-DB_aX5xt.js.map → build-BYMHMOl_.js.map} +1 -1
- package/dist/cli/app-process.js +5 -5
- package/dist/cli/build.d.ts +31 -29
- package/dist/cli/build.js +40 -37
- package/dist/cli/common.d.ts +31 -29
- package/dist/cli/common.js +3 -3
- package/dist/cli/development.js +41 -38
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.js +1 -1
- package/dist/cli/generators.js +3 -3
- package/dist/cli/information.js +2 -2
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +38 -35
- package/dist/cli/production.js +43 -41
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +4 -4
- package/dist/cli/utils.js +1 -1
- package/dist/{commandkit-lhbfAyX9.js → commandkit-DabqpQ6v.js} +110 -69
- package/dist/commandkit-DabqpQ6v.js.map +1 -0
- package/dist/commandkit.d.ts +31 -29
- package/dist/commandkit.js +37 -34
- package/dist/{common-vnMIelAE.js → common-CCx-FJI4.js} +3 -3
- package/dist/common-CCx-FJI4.js.map +1 -0
- package/dist/{common-DOCvOVC4.d.ts → common-DHTTnX82.d.ts} +2 -2
- package/dist/{common-CrqwC-sx.js → common-fIO6fqGZ.js} +4 -5
- package/dist/{common-CrqwC-sx.js.map → common-fIO6fqGZ.js.map} +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.d.ts +3 -3
- package/dist/components/common/element.js +1 -1
- package/dist/components/common/types.js +1 -1
- package/dist/components/{v2 → display}/common.d.ts +1 -1
- package/dist/components/display/common.js +3 -0
- package/dist/components/display/container.d.ts +2 -0
- package/dist/components/display/container.js +4 -0
- package/dist/components/display/file.d.ts +2 -0
- package/dist/components/display/file.js +3 -0
- package/dist/components/display/index.d.ts +10 -0
- package/dist/components/display/index.js +23 -0
- package/dist/components/display/label.d.ts +2 -0
- package/dist/components/display/label.js +4 -0
- package/dist/components/{v2 → display}/media-gallery.d.ts +1 -1
- package/dist/components/{v2 → display}/media-gallery.js +2 -2
- package/dist/components/display/poll.d.ts +2 -0
- package/dist/components/display/poll.js +5 -0
- package/dist/components/display/section.d.ts +2 -0
- package/dist/components/display/section.js +5 -0
- package/dist/components/display/separator.d.ts +2 -0
- package/dist/components/display/separator.js +3 -0
- package/dist/components/display/text-display.d.ts +2 -0
- package/dist/components/display/text-display.js +3 -0
- package/dist/components/index.d.ts +25 -23
- package/dist/components/index.js +41 -35
- package/dist/components/interactive/action-row/ActionRow.d.ts +6 -0
- package/dist/components/interactive/action-row/ActionRow.js +3 -0
- package/dist/components/interactive/button/Button.d.ts +7 -0
- package/dist/components/interactive/button/Button.js +41 -0
- package/dist/components/{v1 → interactive}/button/ButtonKit.d.ts +1 -1
- package/dist/components/interactive/button/ButtonKit.js +41 -0
- package/dist/components/{v1 → interactive}/modal/Modal.d.ts +4 -4
- package/dist/components/interactive/modal/Modal.js +44 -0
- package/dist/components/{v1 → interactive}/modal/ModalKit.d.ts +1 -1
- package/dist/components/interactive/modal/ModalKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/ChannelSelectMenuKit.d.ts +2 -2
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/MentionableSelectMenuKit.d.ts +2 -2
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/RoleSelectMenuKit.d.ts +2 -2
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/SelectMenu.d.ts +7 -7
- package/dist/components/interactive/select-menu/SelectMenu.js +46 -0
- package/dist/components/{v1 → interactive}/select-menu/StringSelectMenuKit.d.ts +2 -2
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/UserSelectMenuKit.d.ts +2 -2
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +41 -0
- package/dist/components/{v1 → interactive}/select-menu/common.d.ts +1 -1
- package/dist/components/interactive/select-menu/common.js +1 -0
- package/dist/config/config.d.ts +32 -30
- package/dist/config/config.js +37 -34
- package/dist/config/default.d.ts +31 -29
- package/dist/config/default.js +37 -34
- package/dist/config/loader.d.ts +31 -29
- package/dist/config/loader.js +37 -34
- package/dist/config/types.d.ts +31 -29
- package/dist/config/utils.d.ts +31 -29
- package/dist/config/utils.js +1 -1
- package/dist/{config-YAQdMBqh.d.ts → config-DbgXt6mf.d.ts} +2 -2
- package/dist/{constants-4oxxvaJA.js → constants-AH-9qJ89.js} +1 -1
- package/dist/{constants-4oxxvaJA.js.map → constants-AH-9qJ89.js.map} +1 -1
- package/dist/{constants-B5_Ta7PR.js → constants-BMWH2YUr.js} +1 -1
- package/dist/{constants-B5_Ta7PR.js.map → constants-BMWH2YUr.js.map} +1 -1
- package/dist/{constants-D8PMA9on.d.ts → constants-CCFSX2NG.d.ts} +1 -1
- package/dist/{constants-BOOGN85p.js → constants-D0dawKxO.js} +1 -1
- package/dist/{constants-BOOGN85p.js.map → constants-D0dawKxO.js.map} +1 -1
- package/dist/{constants-MKu-Q1jh.d.ts → constants-DqnSDZ6l.d.ts} +1 -1
- package/dist/{container-DHBELeJ3.d.ts → container-1ltvkavy.d.ts} +2 -2
- package/dist/{container-C6GtfAPW.js → container-DC0eQigs.js} +3 -3
- package/dist/container-DC0eQigs.js.map +1 -0
- package/dist/context/async-context.d.ts +31 -29
- package/dist/context/async-context.js +37 -34
- package/dist/context/environment.d.ts +31 -29
- package/dist/context/environment.js +37 -34
- package/dist/{dotprops-tnhpnszJ.js → dotprops-DvJUE8fw.js} +1 -1
- package/dist/{dotprops-tnhpnszJ.js.map → dotprops-DvJUE8fw.js.map} +1 -1
- package/dist/{element-CAXu1XtK.d.ts → element-CvNhvLZ8.d.ts} +3 -3
- package/dist/{element-Bak9llw_.js → element-DibzzA5L.js} +1 -1
- package/dist/element-DibzzA5L.js.map +1 -0
- package/dist/{env-_68PRRoA.js → env-8yY-6pbC.js} +1 -1
- package/dist/{env-_68PRRoA.js.map → env-8yY-6pbC.js.map} +1 -1
- package/dist/{error-codes-B4TyW4Ct.d.ts → error-codes-BiNRVMiV.d.ts} +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +31 -29
- package/dist/events/CommandKitEventsChannel.js +1 -1
- package/dist/{feature-flags-DnnKABHf.js → feature-flags-BoBV4Dsj.js} +4 -4
- package/dist/feature-flags-BoBV4Dsj.js.map +1 -0
- package/dist/{file-DVOELoNv.js → file-DAUOZYhC.js} +2 -2
- package/dist/file-DAUOZYhC.js.map +1 -0
- package/dist/{file-DTrr-p09.d.ts → file-n2yl_-vl.d.ts} +2 -2
- package/dist/flags/FlagProvider.d.ts +31 -29
- package/dist/flags/feature-flags.d.ts +31 -29
- package/dist/flags/feature-flags.js +38 -35
- package/dist/flags/store.d.ts +31 -29
- package/dist/flags/store.js +1 -1
- package/dist/{helpers-Dl8wW6aO.js → helpers-D2_1jih6.js} +1 -1
- package/dist/{helpers-Dl8wW6aO.js.map → helpers-D2_1jih6.js.map} +1 -1
- package/dist/{helpers-Wg6P5fRQ.d.ts → helpers-hDh_tMb6.d.ts} +1 -1
- package/dist/index.d.ts +42 -40
- package/dist/index.js +46 -39
- package/dist/index.js.map +1 -1
- package/dist/{init-CY7OJPF-.js → init-CBb0StSB.js} +11 -15
- package/dist/{init-CY7OJPF-.js.map → init-CBb0StSB.js.map} +1 -1
- package/dist/{init-DOr-Y3GQ.d.ts → init-DSYckXwx.d.ts} +1 -1
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js +1 -1
- package/dist/kv/dotprops.js +1 -1
- package/dist/kv/kv.d.ts +2 -2
- package/dist/kv/kv.js +5 -7
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +2 -2
- package/dist/kv/serde.js +2 -2
- package/dist/label-D-uJWRZ0.js +36 -0
- package/dist/label-D-uJWRZ0.js.map +1 -0
- package/dist/label-D0KXeBhk.d.ts +29 -0
- package/dist/logger/DefaultLogger.d.ts +2 -2
- package/dist/logger/DefaultLogger.js +37 -34
- package/dist/logger/ILogger.d.ts +1 -1
- package/dist/logger/ILogger.js +1 -1
- package/dist/logger/Logger.d.ts +2 -2
- package/dist/logger/Logger.js +37 -34
- package/dist/logger/NoopLogger.d.ts +1 -1
- package/dist/{media-gallery-zDtJ3kxb.js → media-gallery-BLhwe5lO.js} +3 -3
- package/dist/media-gallery-BLhwe5lO.js.map +1 -0
- package/dist/{media-gallery-BMsXSot3.d.ts → media-gallery-BzG70ued.d.ts} +2 -2
- package/dist/plugins/CompilerPlugin.d.ts +31 -29
- package/dist/plugins/CompilerPlugin.js +2 -2
- package/dist/plugins/PluginCommon.d.ts +31 -29
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +31 -29
- package/dist/plugins/RuntimePlugin.js +2 -2
- package/dist/plugins/index.d.ts +31 -29
- package/dist/plugins/index.js +37 -34
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +31 -29
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +37 -34
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +31 -29
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +37 -34
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +31 -29
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +37 -34
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +31 -29
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +37 -34
- package/dist/plugins/plugin-runtime/runtime.d.ts +31 -29
- package/dist/plugins/plugin-runtime/runtime.js +1 -1
- package/dist/plugins/types.d.ts +31 -29
- package/dist/plugins/types.js +1 -1
- package/dist/poll-Bc6rjeUS.js +101 -0
- package/dist/poll-Bc6rjeUS.js.map +1 -0
- package/dist/poll-HnaJcB0o.d.ts +89 -0
- package/dist/{resolve-file-url-ChIyw-Vf.js → resolve-file-url-CJoD0FAn.js} +1 -1
- package/dist/{resolve-file-url-ChIyw-Vf.js.map → resolve-file-url-CJoD0FAn.js.map} +1 -1
- package/dist/{resolve-file-url-yO8bUxok.d.ts → resolve-file-url-DFtR8jRR.d.ts} +1 -1
- package/dist/{section-DlvrDoJK.js → section-BMcHN97i.js} +3 -3
- package/dist/section-BMcHN97i.js.map +1 -0
- package/dist/{section-Dh_FhPeC.d.ts → section-BOaJKXiy.d.ts} +2 -2
- package/dist/{separator-DL6QH5H1.js → separator-C___2K-f.js} +2 -2
- package/dist/separator-C___2K-f.js.map +1 -0
- package/dist/{separator-CMf6Cyy5.d.ts → separator-Cb7-6T6N.d.ts} +2 -2
- package/dist/{serde-BYaKrsOV.d.ts → serde-D4H23l2F.d.ts} +2 -2
- package/dist/{serde-Cc8iUa9J.js → serde-DHHwhltz.js} +2 -2
- package/dist/{serde-Cc8iUa9J.js.map → serde-DHHwhltz.js.map} +1 -1
- package/dist/{signals-ChFMD7mB.js → signals-Cnqe9dFV.js} +2 -2
- package/dist/{signals-ChFMD7mB.js.map → signals-Cnqe9dFV.js.map} +1 -1
- package/dist/{signals-SHg7J1U_.d.ts → signals-DBS60vTo.d.ts} +1 -1
- package/dist/{store-CM6pWVZh.js → store-ZwL2gN6a.js} +1 -1
- package/dist/{store-CM6pWVZh.js.map → store-ZwL2gN6a.js.map} +1 -1
- package/dist/{text-display-DRw3r_lK.d.ts → text-display-B_hpz50P.d.ts} +2 -2
- package/dist/{text-display-DbMumig_.js → text-display-BtQR88kY.js} +2 -2
- package/dist/text-display-BtQR88kY.js.map +1 -0
- package/dist/{type-checker-ocNSZh0W.js → type-checker-CEFHoQoV.js} +2 -2
- package/dist/{type-checker-ocNSZh0W.js.map → type-checker-CEFHoQoV.js.map} +1 -1
- package/dist/{types-package-BWArjyBF.js → types-package-D11rQXLs.js} +3 -4
- package/dist/{types-package-BWArjyBF.js.map → types-package-D11rQXLs.js.map} +1 -1
- package/dist/types.d.ts +32 -30
- package/dist/{utilities-DtdPlr4c.d.ts → utilities-CQUaua43.d.ts} +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/dev-hooks.d.ts +31 -29
- package/dist/utils/dev-hooks.js +37 -34
- package/dist/utils/error-codes.d.ts +1 -1
- package/dist/utils/resolve-file-url.d.ts +1 -1
- package/dist/utils/resolve-file-url.js +1 -1
- package/dist/utils/types-package.js +2 -2
- package/dist/utils/useful-stuff/async-queue.js +1 -2
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js +1 -2
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js +1 -3
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.d.ts +1 -1
- package/dist/utils/utilities.js +37 -34
- package/dist/utils/{warn-unstable.d.ts → warning.d.ts} +12 -3
- package/dist/utils/warning.js +5 -0
- package/dist/{utils-DCSnVAZ6.js → utils-Bf-3Eevb.js} +1 -1
- package/dist/{utils-DCSnVAZ6.js.map → utils-Bf-3Eevb.js.map} +1 -1
- package/dist/{utils-KsNof0Xz.js → utils-Br3eenD1.js} +1 -1
- package/dist/{utils-KsNof0Xz.js.map → utils-Br3eenD1.js.map} +1 -1
- package/dist/{version-BCILNeQb.js → version-DC4j2ZwU.js} +2 -2
- package/dist/{version-BCILNeQb.js.map → version-DC4j2ZwU.js.map} +1 -1
- package/dist/{version-CtJtBJXI.d.ts → version-DggMfP_1.d.ts} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/warning-CszH8HeS.js +53 -0
- package/dist/warning-CszH8HeS.js.map +1 -0
- package/package.json +4 -4
- package/LICENSE +0 -5
- package/dist/ActionRow-CbdGFWMT.js.map +0 -1
- package/dist/EventWorkerContext-Dq29tieI.js.map +0 -1
- package/dist/app-process-cj2vF12T.js.map +0 -1
- package/dist/commandkit-lhbfAyX9.js.map +0 -1
- package/dist/common-vnMIelAE.js.map +0 -1
- package/dist/components/v1/action-row/ActionRow.d.ts +0 -6
- package/dist/components/v1/action-row/ActionRow.js +0 -3
- package/dist/components/v1/button/Button.d.ts +0 -7
- package/dist/components/v1/button/Button.js +0 -38
- package/dist/components/v1/button/ButtonKit.js +0 -38
- package/dist/components/v1/modal/Modal.js +0 -41
- package/dist/components/v1/modal/ModalKit.js +0 -38
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/SelectMenu.js +0 -43
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +0 -38
- package/dist/components/v1/select-menu/common.js +0 -1
- package/dist/components/v2/common.js +0 -3
- package/dist/components/v2/container.d.ts +0 -2
- package/dist/components/v2/container.js +0 -4
- package/dist/components/v2/file.d.ts +0 -2
- package/dist/components/v2/file.js +0 -3
- package/dist/components/v2/index.d.ts +0 -8
- package/dist/components/v2/index.js +0 -17
- package/dist/components/v2/section.d.ts +0 -2
- package/dist/components/v2/section.js +0 -5
- package/dist/components/v2/separator.d.ts +0 -2
- package/dist/components/v2/separator.js +0 -3
- package/dist/components/v2/text-display.d.ts +0 -2
- package/dist/components/v2/text-display.js +0 -3
- package/dist/container-C6GtfAPW.js.map +0 -1
- package/dist/element-Bak9llw_.js.map +0 -1
- package/dist/feature-flags-DnnKABHf.js.map +0 -1
- package/dist/file-DVOELoNv.js.map +0 -1
- package/dist/media-gallery-zDtJ3kxb.js.map +0 -1
- package/dist/section-DlvrDoJK.js.map +0 -1
- package/dist/separator-DL6QH5H1.js.map +0 -1
- package/dist/text-display-DbMumig_.js.map +0 -1
- package/dist/utils/warn-unstable.js +0 -26
- package/dist/utils/warn-unstable.js.map +0 -1
- /package/dist/{ILogger-dQ7Y9X1f.js → ILogger-B0q7p7L1.js} +0 -0
- /package/dist/{app-HN1cVg8J.js → app-CrjK9yWX.js} +0 -0
- /package/dist/{common-CcfjYnPG.js → common-0Iw8ZeM6.js} +0 -0
- /package/dist/{router-Dn35v30f.js → display-WDb9wMCv.js} +0 -0
- /package/dist/{index-CUPkUUOR.d.ts → index-B5F3AfVc.d.ts} +0 -0
- /package/dist/{index-Dw5cCt-A.d.ts → index-BLwMeReG.d.ts} +0 -0
- /package/dist/{index-E7Wvm5uX.d.ts → index-h64gcVNJ.d.ts} +0 -0
- /package/dist/{runtime-DB9CiPfe.js → router-BvamdzoF.js} +0 -0
- /package/dist/{types-CUZOquUl.js → runtime-Skt5NiOc.js} +0 -0
- /package/dist/{types-q0Nm882H.js → types-Cdh4uaFR.js} +0 -0
- /package/dist/{v2-DofkPKHs.js → types-TC4g3w91.js} +0 -0
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider } from "../analytics-engine-
|
|
1
|
+
import { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider } from "../analytics-engine-NOInIjv8.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-
|
|
4
|
-
import "../ModalKit-
|
|
5
|
-
import "../element-
|
|
6
|
-
import "../ActionRow-
|
|
3
|
+
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
+
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
+
import "../element-CvNhvLZ8.js";
|
|
6
|
+
import "../ActionRow-B-7n9MMr.js";
|
|
7
7
|
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-
|
|
9
|
-
import "../Modal-
|
|
10
|
-
import "../common-
|
|
11
|
-
import "../StringSelectMenuKit-
|
|
12
|
-
import "../ChannelSelectMenuKit-
|
|
13
|
-
import "../MentionableSelectMenuKit-
|
|
14
|
-
import "../UserSelectMenuKit-
|
|
15
|
-
import "../RoleSelectMenuKit-
|
|
16
|
-
import "../SelectMenu-
|
|
17
|
-
import "../container-
|
|
18
|
-
import "../file-
|
|
19
|
-
import "../media-gallery-
|
|
20
|
-
import "../section-
|
|
21
|
-
import "../separator-
|
|
22
|
-
import "../text-display-
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
27
|
-
import "../
|
|
28
|
-
import "../
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../
|
|
8
|
+
import "../Button-RMp-w8HV.js";
|
|
9
|
+
import "../Modal-Calb46SJ.js";
|
|
10
|
+
import "../common-DHTTnX82.js";
|
|
11
|
+
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
+
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
+
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
+
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
+
import "../container-1ltvkavy.js";
|
|
18
|
+
import "../file-n2yl_-vl.js";
|
|
19
|
+
import "../media-gallery-BzG70ued.js";
|
|
20
|
+
import "../section-BOaJKXiy.js";
|
|
21
|
+
import "../separator-Cb7-6T6N.js";
|
|
22
|
+
import "../text-display-B_hpz50P.js";
|
|
23
|
+
import "../label-D0KXeBhk.js";
|
|
24
|
+
import "../poll-HnaJcB0o.js";
|
|
25
|
+
import "../index-h64gcVNJ.js";
|
|
26
|
+
import "../index-BLwMeReG.js";
|
|
27
|
+
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
+
import "../signals-DBS60vTo.js";
|
|
29
|
+
import "../helpers-hDh_tMb6.js";
|
|
30
|
+
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
+
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
+
import "../index-B5F3AfVc.js";
|
|
33
|
+
import "../constants-DqnSDZ6l.js";
|
|
32
34
|
export { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider };
|
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
|
-
require('../ActionRow-
|
|
2
|
+
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
require('../commandkit-
|
|
5
|
-
require('../
|
|
6
|
-
require('../common-
|
|
7
|
-
require('../
|
|
8
|
-
require('../
|
|
9
|
-
require('../
|
|
10
|
-
require('../
|
|
11
|
-
require('../
|
|
12
|
-
require('../
|
|
13
|
-
require('../
|
|
14
|
-
require('../
|
|
15
|
-
require('../
|
|
16
|
-
require('../
|
|
17
|
-
require('../
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
20
|
-
require('../
|
|
21
|
-
require('../
|
|
22
|
-
require('../
|
|
23
|
-
require('../
|
|
24
|
-
require('../
|
|
25
|
-
require('../
|
|
26
|
-
require('../
|
|
27
|
-
require('../
|
|
28
|
-
require('../
|
|
29
|
-
require('../
|
|
30
|
-
require('../
|
|
31
|
-
require('../
|
|
32
|
-
require('../
|
|
33
|
-
require('../
|
|
34
|
-
require('../
|
|
35
|
-
require('../
|
|
36
|
-
require('../
|
|
37
|
-
|
|
4
|
+
require('../commandkit-DabqpQ6v.js');
|
|
5
|
+
require('../warning-CszH8HeS.js');
|
|
6
|
+
require('../common-0Iw8ZeM6.js');
|
|
7
|
+
require('../common-CCx-FJI4.js');
|
|
8
|
+
require('../container-DC0eQigs.js');
|
|
9
|
+
require('../file-DAUOZYhC.js');
|
|
10
|
+
require('../media-gallery-BLhwe5lO.js');
|
|
11
|
+
require('../section-BMcHN97i.js');
|
|
12
|
+
require('../separator-C___2K-f.js');
|
|
13
|
+
require('../text-display-BtQR88kY.js');
|
|
14
|
+
require('../label-D-uJWRZ0.js');
|
|
15
|
+
require('../poll-Bc6rjeUS.js');
|
|
16
|
+
require('../display-WDb9wMCv.js');
|
|
17
|
+
require('../element-DibzzA5L.js');
|
|
18
|
+
require('../types-TC4g3w91.js');
|
|
19
|
+
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
+
require('../constants-BMWH2YUr.js');
|
|
21
|
+
require('../PluginCommon-CPWV5xuX.js');
|
|
22
|
+
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
|
+
require('../RuntimePlugin-COeXe8rP.js');
|
|
24
|
+
require('../types-Cdh4uaFR.js');
|
|
25
|
+
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
|
+
require('../runtime-Skt5NiOc.js');
|
|
27
|
+
require('../utils-Br3eenD1.js');
|
|
28
|
+
require('../types-package-D11rQXLs.js');
|
|
29
|
+
require('../constants-D0dawKxO.js');
|
|
30
|
+
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
|
+
require('../signals-Cnqe9dFV.js');
|
|
32
|
+
require('../helpers-D2_1jih6.js');
|
|
33
|
+
require('../MessageCommandParser-CKh-tM97.js');
|
|
34
|
+
require('../CommandsRouter-CWMipIis.js');
|
|
35
|
+
require('../EventsRouter-C04XqRKf.js');
|
|
36
|
+
require('../router-BvamdzoF.js');
|
|
37
|
+
require('../common-fIO6fqGZ.js');
|
|
38
|
+
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
|
+
require('../store-ZwL2gN6a.js');
|
|
40
|
+
const require_feature_flags = require('../feature-flags-BoBV4Dsj.js');
|
|
38
41
|
|
|
39
42
|
exports.FeatureFlag = require_feature_flags.FeatureFlag;
|
|
40
43
|
exports.flag = require_feature_flags.flag;
|
package/dist/flags/store.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { FlagStore } from "../analytics-engine-
|
|
1
|
+
import { FlagStore } from "../analytics-engine-NOInIjv8.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-
|
|
4
|
-
import "../ModalKit-
|
|
5
|
-
import "../element-
|
|
6
|
-
import "../ActionRow-
|
|
3
|
+
import "../ButtonKit-9k4yfhYD.js";
|
|
4
|
+
import "../ModalKit-Cq2ns6jv.js";
|
|
5
|
+
import "../element-CvNhvLZ8.js";
|
|
6
|
+
import "../ActionRow-B-7n9MMr.js";
|
|
7
7
|
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-
|
|
9
|
-
import "../Modal-
|
|
10
|
-
import "../common-
|
|
11
|
-
import "../StringSelectMenuKit-
|
|
12
|
-
import "../ChannelSelectMenuKit-
|
|
13
|
-
import "../MentionableSelectMenuKit-
|
|
14
|
-
import "../UserSelectMenuKit-
|
|
15
|
-
import "../RoleSelectMenuKit-
|
|
16
|
-
import "../SelectMenu-
|
|
17
|
-
import "../container-
|
|
18
|
-
import "../file-
|
|
19
|
-
import "../media-gallery-
|
|
20
|
-
import "../section-
|
|
21
|
-
import "../separator-
|
|
22
|
-
import "../text-display-
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
27
|
-
import "../
|
|
28
|
-
import "../
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../
|
|
8
|
+
import "../Button-RMp-w8HV.js";
|
|
9
|
+
import "../Modal-Calb46SJ.js";
|
|
10
|
+
import "../common-DHTTnX82.js";
|
|
11
|
+
import "../StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
+
import "../UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
+
import "../RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
+
import "../SelectMenu-VcDhOGoJ.js";
|
|
17
|
+
import "../container-1ltvkavy.js";
|
|
18
|
+
import "../file-n2yl_-vl.js";
|
|
19
|
+
import "../media-gallery-BzG70ued.js";
|
|
20
|
+
import "../section-BOaJKXiy.js";
|
|
21
|
+
import "../separator-Cb7-6T6N.js";
|
|
22
|
+
import "../text-display-B_hpz50P.js";
|
|
23
|
+
import "../label-D0KXeBhk.js";
|
|
24
|
+
import "../poll-HnaJcB0o.js";
|
|
25
|
+
import "../index-h64gcVNJ.js";
|
|
26
|
+
import "../index-BLwMeReG.js";
|
|
27
|
+
import "../MessageCommandParser-DEOl_ifb.js";
|
|
28
|
+
import "../signals-DBS60vTo.js";
|
|
29
|
+
import "../helpers-hDh_tMb6.js";
|
|
30
|
+
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
|
+
import "../EventsRouter-4pT6vj-U.js";
|
|
32
|
+
import "../index-B5F3AfVc.js";
|
|
33
|
+
import "../constants-DqnSDZ6l.js";
|
|
32
34
|
export { FlagStore };
|
package/dist/flags/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-
|
|
1
|
+
{"version":3,"file":"helpers-D2_1jih6.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"}
|
|
@@ -20,4 +20,4 @@ declare function isMessageSource(source: CommandSource): source is Message;
|
|
|
20
20
|
declare function isInteractionSource(source: CommandSource): source is Interaction;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { CommandSource, isInteractionSource, isMessageSource };
|
|
23
|
-
//# sourceMappingURL=helpers-
|
|
23
|
+
//# sourceMappingURL=helpers-hDh_tMb6.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, EventHandler, FeatureFlag, FeatureFlagDefinition, FlagRunner, GenericFunction, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext,
|
|
1
|
+
import { AnyCommandExecute, AppCommand, AppCommandHandler, AppCommandNative, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandDataSchema, CommandDataSchemaKey, CommandDataSchemaValue, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandMetadata, CommandMetadataFunction, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomAppCommandProps, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, EventHandler, FeatureFlag, FeatureFlagDefinition, FlagRunner, GenericFunction, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MaybeFalsey, MaybePromise, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PluginTransformParameters, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, RuntimePlugin, SlashCommandMiddlewareContext, TemplateHandler, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, after, cancelAfter, commandkit, exitContext, flag, getCommandKit, getContext, isCommandWorkerContext, isCompilerPlugin, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, setFlagProvider, useEnvironment, useStore } from "./analytics-engine-NOInIjv8.js";
|
|
2
2
|
import { EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler } from "./EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import { ButtonKit, ButtonKitPredicate, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, OnButtonKitClick, OnButtonKitEnd } from "./ButtonKit-
|
|
4
|
-
import { CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, ModalKit, ModalKitPredicate, OnModalKitEnd, OnModalKitSubmit } from "./ModalKit-
|
|
5
|
-
import { AnyCommandKitElement, CommandKitElement, CommandKitElementData, ElementType, Fragment, FragmentElementProps, createElement, getElement, isCommandKitElement } from "./element-
|
|
6
|
-
import { ActionRow, ActionRowProps } from "./ActionRow-
|
|
3
|
+
import { ButtonKit, ButtonKitPredicate, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, OnButtonKitClick, OnButtonKitEnd } from "./ButtonKit-9k4yfhYD.js";
|
|
4
|
+
import { CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, ModalKit, ModalKitPredicate, OnModalKitEnd, OnModalKitSubmit } from "./ModalKit-Cq2ns6jv.js";
|
|
5
|
+
import { AnyCommandKitElement, CommandKitElement, CommandKitElementData, ElementType, Fragment, FragmentElementProps, createElement, getElement, isCommandKitElement } from "./element-CvNhvLZ8.js";
|
|
6
|
+
import { ActionRow, ActionRowProps } from "./ActionRow-B-7n9MMr.js";
|
|
7
7
|
import { MaybeArray } from "./types-CJ-XvOFN.js";
|
|
8
|
-
import { Button, ButtonChildrenLike, ButtonProps } from "./Button-
|
|
9
|
-
import { Modal, ModalProps, ParagraphInput, ShortInput, TextInput, TextInputProps } from "./Modal-
|
|
10
|
-
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-
|
|
11
|
-
import { OnStringSelectMenuKitSubmit, StringSelectMenuKit, StringSelectMenuKitPredicate } from "./StringSelectMenuKit-
|
|
12
|
-
import { ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, OnChannelSelectMenuKitSubmit } from "./ChannelSelectMenuKit-
|
|
13
|
-
import { MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, OnMentionableSelectMenuKitSubmit } from "./MentionableSelectMenuKit-
|
|
14
|
-
import { OnUserSelectMenuKitSubmit, UserSelectMenuKit, UserSelectMenuKitPredicate } from "./UserSelectMenuKit-
|
|
15
|
-
import { OnRoleSelectMenuKitSubmit, RoleSelectMenuKit, RoleSelectMenuKitPredicate } from "./RoleSelectMenuKit-
|
|
16
|
-
import { ChannelSelectMenu, ChannelSelectMenuProps, CommonBuilderKit, CommonSelectMenuProps, MentionableSelectMenu, MentionableSelectMenuProps, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuProps, SelectMenuProps, StringSelectMenu, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, UserSelectMenu, UserSelectMenuProps } from "./SelectMenu-
|
|
17
|
-
import { Container, ContainerProps } from "./container-
|
|
18
|
-
import { File, FileProps } from "./file-
|
|
19
|
-
import { MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps } from "./media-gallery-
|
|
20
|
-
import { Section, SectionProps, Thumbnail, ThumbnailProps } from "./section-
|
|
21
|
-
import { Separator, SeparatorProps } from "./separator-
|
|
22
|
-
import { StringEncodable, TextDisplay, TextDisplayProps } from "./text-display-
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import "./
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
8
|
+
import { Button, ButtonChildrenLike, ButtonProps } from "./Button-RMp-w8HV.js";
|
|
9
|
+
import { Modal, ModalProps, ParagraphInput, ShortInput, TextInput, TextInputProps } from "./Modal-Calb46SJ.js";
|
|
10
|
+
import { CommandKitSelectMenuBuilderInteractionCollectorDispatch, CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, CommandKitSelectMenuBuilderOnEnd, OnSelectMenuKitEnd, OnSelectMenuKitSubmit, SelectMenuKitPredicate } from "./common-DHTTnX82.js";
|
|
11
|
+
import { OnStringSelectMenuKitSubmit, StringSelectMenuKit, StringSelectMenuKitPredicate } from "./StringSelectMenuKit-CJ0MzUZJ.js";
|
|
12
|
+
import { ChannelSelectMenuKit, ChannelSelectMenuKitPredicate, OnChannelSelectMenuKitSubmit } from "./ChannelSelectMenuKit-CsYgIyKe.js";
|
|
13
|
+
import { MentionableSelectMenuKit, MentionableSelectMenuKitPredicate, OnMentionableSelectMenuKitSubmit } from "./MentionableSelectMenuKit-CO9phWMf.js";
|
|
14
|
+
import { OnUserSelectMenuKitSubmit, UserSelectMenuKit, UserSelectMenuKitPredicate } from "./UserSelectMenuKit-C_J-9RJs.js";
|
|
15
|
+
import { OnRoleSelectMenuKitSubmit, RoleSelectMenuKit, RoleSelectMenuKitPredicate } from "./RoleSelectMenuKit-DvBxzpWh.js";
|
|
16
|
+
import { ChannelSelectMenu, ChannelSelectMenuProps, CommonBuilderKit, CommonSelectMenuProps, MentionableSelectMenu, MentionableSelectMenuProps, ResolveBuilderInteraction, RoleSelectMenu, RoleSelectMenuProps, SelectMenuProps, StringSelectMenu, StringSelectMenuOption, StringSelectMenuOptionProps, StringSelectMenuProps, UserSelectMenu, UserSelectMenuProps } from "./SelectMenu-VcDhOGoJ.js";
|
|
17
|
+
import { Container, ContainerProps } from "./container-1ltvkavy.js";
|
|
18
|
+
import { File, FileProps } from "./file-n2yl_-vl.js";
|
|
19
|
+
import { MediaGallery, MediaGalleryItem, MediaGalleryItemProps, MediaGalleryProps } from "./media-gallery-BzG70ued.js";
|
|
20
|
+
import { Section, SectionProps, Thumbnail, ThumbnailProps } from "./section-BOaJKXiy.js";
|
|
21
|
+
import { Separator, SeparatorProps } from "./separator-Cb7-6T6N.js";
|
|
22
|
+
import { StringEncodable, TextDisplay, TextDisplayProps } from "./text-display-B_hpz50P.js";
|
|
23
|
+
import { Label, LabelProps } from "./label-D0KXeBhk.js";
|
|
24
|
+
import { Poll, PollAnswer, PollAnswerProps, PollChildrenType, PollProps, PollQuestion, PollQuestionProps } from "./poll-HnaJcB0o.js";
|
|
25
|
+
import "./index-h64gcVNJ.js";
|
|
26
|
+
import "./index-BLwMeReG.js";
|
|
27
|
+
import { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand } from "./MessageCommandParser-DEOl_ifb.js";
|
|
28
|
+
import { redirect, rethrow, stopEvents, stopMiddlewares } from "./signals-DBS60vTo.js";
|
|
29
|
+
import { CommandSource, isInteractionSource, isMessageSource } from "./helpers-hDh_tMb6.js";
|
|
30
|
+
import { Command, CommandsRouter, CommandsRouterOptions, Middleware, ParsedCommandData } from "./CommandsRouter-CBdsqaWK.js";
|
|
31
|
+
import { EventsRouter, EventsRouterOptions, EventsTree, ParsedEvent } from "./EventsRouter-4pT6vj-U.js";
|
|
32
|
+
import "./index-B5F3AfVc.js";
|
|
33
|
+
import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType } from "./constants-DqnSDZ6l.js";
|
|
34
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "./EventWorkerContext-CLhZRHhH.js";
|
|
35
|
+
import { bootstrapCommandkitCLI } from "./init-DSYckXwx.js";
|
|
36
|
+
import { defineConfig, getConfig } from "./config-DbgXt6mf.js";
|
|
37
|
+
import { ILogger } from "./ILogger-BQ2ew4zR.js";
|
|
38
|
+
import { DefaultLogger } from "./DefaultLogger-CHMVsizQ.js";
|
|
39
|
+
import { CommandKitLoggerOptions, Logger, LoggerImpl, createLogger } from "./Logger-DyV7oli4.js";
|
|
40
|
+
import { version } from "./version-DggMfP_1.js";
|
|
41
|
+
import { debounce, defer, devOnly, getCurrentDirectory, getSourceDirectories } from "./utilities-CQUaua43.js";
|
|
42
|
+
import { toFileURL } from "./resolve-file-url-DFtR8jRR.js";
|
|
43
|
+
import { CommandKitErrorCodes, isErrorType } from "./error-codes-BiNRVMiV.js";
|
|
42
44
|
import { Client, Collection } from "discord.js";
|
|
43
|
-
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, 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, FlagRunner, Fragment, FragmentElementProps, GenericFunction, HMREventType, ILogger, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext,
|
|
45
|
+
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, 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, 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, bootstrapCommandkitCLI, commandkit, createElement, createElement as jsx, createElement as jsxs, createLogger, debounce, CommandKit as default, defer, defineConfig, devOnly, eventWorkerContext, exitContext, flag, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,46 +1,49 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
3
3
|
require('./colors-DL3ucTiT.js');
|
|
4
|
-
const require_ActionRow = require('./ActionRow-
|
|
4
|
+
const require_ActionRow = require('./ActionRow-uJxU4UGo.js');
|
|
5
5
|
const require_error_codes = require('./error-codes-Ds0bnPvT.js');
|
|
6
|
-
const require_commandkit = require('./commandkit-
|
|
7
|
-
require('./
|
|
8
|
-
require('./common-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
require('./
|
|
16
|
-
const
|
|
17
|
-
require('./
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
require('./
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
require('./
|
|
24
|
-
const
|
|
25
|
-
require('./
|
|
26
|
-
require('./
|
|
27
|
-
require('./
|
|
28
|
-
require('./
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
require('./
|
|
36
|
-
require('./
|
|
37
|
-
require('./
|
|
38
|
-
require('./
|
|
39
|
-
require('./
|
|
40
|
-
require('./
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
6
|
+
const require_commandkit = require('./commandkit-DabqpQ6v.js');
|
|
7
|
+
require('./warning-CszH8HeS.js');
|
|
8
|
+
require('./common-0Iw8ZeM6.js');
|
|
9
|
+
require('./common-CCx-FJI4.js');
|
|
10
|
+
const require_container = require('./container-DC0eQigs.js');
|
|
11
|
+
const require_file = require('./file-DAUOZYhC.js');
|
|
12
|
+
const require_media_gallery = require('./media-gallery-BLhwe5lO.js');
|
|
13
|
+
const require_section = require('./section-BMcHN97i.js');
|
|
14
|
+
const require_separator = require('./separator-C___2K-f.js');
|
|
15
|
+
const require_text_display = require('./text-display-BtQR88kY.js');
|
|
16
|
+
const require_label = require('./label-D-uJWRZ0.js');
|
|
17
|
+
const require_poll = require('./poll-Bc6rjeUS.js');
|
|
18
|
+
require('./display-WDb9wMCv.js');
|
|
19
|
+
const require_element = require('./element-DibzzA5L.js');
|
|
20
|
+
require('./types-TC4g3w91.js');
|
|
21
|
+
const require_EventInterceptor = require('./EventInterceptor-BWoEJMHZ.js');
|
|
22
|
+
const require_constants = require('./constants-BMWH2YUr.js');
|
|
23
|
+
require('./PluginCommon-CPWV5xuX.js');
|
|
24
|
+
const require_CompilerPlugin = require('./CompilerPlugin-CZ4412Zm.js');
|
|
25
|
+
const require_RuntimePlugin = require('./RuntimePlugin-COeXe8rP.js');
|
|
26
|
+
require('./types-Cdh4uaFR.js');
|
|
27
|
+
const require_resolve_file_url = require('./resolve-file-url-CJoD0FAn.js');
|
|
28
|
+
require('./runtime-Skt5NiOc.js');
|
|
29
|
+
require('./utils-Br3eenD1.js');
|
|
30
|
+
require('./types-package-D11rQXLs.js');
|
|
31
|
+
require('./constants-D0dawKxO.js');
|
|
32
|
+
const require_EventWorkerContext = require('./EventWorkerContext-D_9q1Bm2.js');
|
|
33
|
+
const require_signals = require('./signals-Cnqe9dFV.js');
|
|
34
|
+
const require_helpers = require('./helpers-D2_1jih6.js');
|
|
35
|
+
const require_MessageCommandParser = require('./MessageCommandParser-CKh-tM97.js');
|
|
36
|
+
const require_CommandsRouter = require('./CommandsRouter-CWMipIis.js');
|
|
37
|
+
const require_EventsRouter = require('./EventsRouter-C04XqRKf.js');
|
|
38
|
+
require('./router-BvamdzoF.js');
|
|
39
|
+
require('./common-fIO6fqGZ.js');
|
|
40
|
+
require('./CommandKitEventsChannel-2l9Za-le.js');
|
|
41
|
+
require('./store-ZwL2gN6a.js');
|
|
42
|
+
require('./app-CrjK9yWX.js');
|
|
43
|
+
require('./ILogger-B0q7p7L1.js');
|
|
44
|
+
const require_version = require('./version-DC4j2ZwU.js');
|
|
45
|
+
const require_feature_flags = require('./feature-flags-BoBV4Dsj.js');
|
|
46
|
+
const require_init = require('./init-CBb0StSB.js');
|
|
44
47
|
let discord_js = require("discord.js");
|
|
45
48
|
discord_js = require_chunk.__toESM(discord_js);
|
|
46
49
|
|
|
@@ -86,6 +89,7 @@ exports.FeatureFlag = require_feature_flags.FeatureFlag;
|
|
|
86
89
|
exports.File = require_file.File;
|
|
87
90
|
exports.Fragment = require_element.Fragment;
|
|
88
91
|
exports.HMREventType = require_constants.HMREventType;
|
|
92
|
+
exports.Label = require_label.Label;
|
|
89
93
|
exports.Logger = require_commandkit.Logger;
|
|
90
94
|
exports.MediaGallery = require_media_gallery.MediaGallery;
|
|
91
95
|
exports.MediaGalleryItem = require_media_gallery.MediaGalleryItem;
|
|
@@ -97,6 +101,9 @@ exports.MiddlewareContext = require_commandkit.MiddlewareContext;
|
|
|
97
101
|
exports.Modal = require_commandkit.Modal;
|
|
98
102
|
exports.ModalKit = require_commandkit.ModalKit;
|
|
99
103
|
exports.ParagraphInput = require_commandkit.ParagraphInput;
|
|
104
|
+
exports.Poll = require_poll.Poll;
|
|
105
|
+
exports.PollAnswer = require_poll.PollAnswer;
|
|
106
|
+
exports.PollQuestion = require_poll.PollQuestion;
|
|
100
107
|
exports.RoleSelectMenu = require_commandkit.RoleSelectMenu;
|
|
101
108
|
exports.RoleSelectMenuKit = require_commandkit.RoleSelectMenuKit;
|
|
102
109
|
exports.RuntimePlugin = require_RuntimePlugin.RuntimePlugin;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './components/common/EventInterceptor';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
|
-
const require_commandkit = require('./commandkit-
|
|
3
|
-
const require_constants = require('./constants-
|
|
4
|
-
const require_CompilerPlugin = require('./CompilerPlugin-
|
|
5
|
-
const require_types_package = require('./types-package-
|
|
6
|
-
const require_common = require('./common-
|
|
2
|
+
const require_commandkit = require('./commandkit-DabqpQ6v.js');
|
|
3
|
+
const require_constants = require('./constants-BMWH2YUr.js');
|
|
4
|
+
const require_CompilerPlugin = require('./CompilerPlugin-CZ4412Zm.js');
|
|
5
|
+
const require_types_package = require('./types-package-D11rQXLs.js');
|
|
6
|
+
const require_common = require('./common-fIO6fqGZ.js');
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -28,20 +28,17 @@ async function bootstrapCommandkitCLI(argv, options) {
|
|
|
28
28
|
const { setCLIEnv } = await Promise.resolve().then(() => require("./cli/env.js"));
|
|
29
29
|
const program = new Command("commandkit");
|
|
30
30
|
program.command("dev").version(version).description("Start your bot in development mode.").option("-c, --config [path]", "Path to your commandkit config file.", "./commandkit.js").action(() => {
|
|
31
|
-
|
|
32
|
-
bootstrapDevelopmentServer(options$1.config);
|
|
31
|
+
bootstrapDevelopmentServer(program.opts().config);
|
|
33
32
|
});
|
|
34
33
|
program.command("info").description("Show information about the system which can be used to report bugs.").action(async () => {
|
|
35
34
|
await showInformation();
|
|
36
35
|
});
|
|
37
36
|
program.command("start").description("Start your bot in production mode after running the build command.").option("-c, --config [path]", "Path to your commandkit config file.").action(() => {
|
|
38
|
-
|
|
39
|
-
bootstrapProductionServer(options$1.config);
|
|
37
|
+
bootstrapProductionServer(program.opts().config);
|
|
40
38
|
});
|
|
41
39
|
program.command("build").description("Build your project for production usage.").option("-c, --config [path]", "Path to your commandkit config file.").action(() => {
|
|
42
40
|
setCLIEnv();
|
|
43
|
-
|
|
44
|
-
return createProductionBuild(options$1.config);
|
|
41
|
+
return createProductionBuild(program.opts().config);
|
|
45
42
|
});
|
|
46
43
|
program.command("create").description("Create new files using built-in templates or custom plugin templates").argument("<template>", "The template to use (e.g. command, event, or custom plugin template)").argument("[args...]", "Additional arguments for the template").action(async (template, args) => {
|
|
47
44
|
setCLIEnv();
|
|
@@ -63,12 +60,11 @@ async function bootstrapCommandkitCLI(argv, options) {
|
|
|
63
60
|
await generateEvent(name);
|
|
64
61
|
return;
|
|
65
62
|
}
|
|
66
|
-
|
|
63
|
+
require_common.panic(`Template "${template}" not found. Available templates: ${Array.from(new Set([
|
|
67
64
|
"command",
|
|
68
65
|
"event",
|
|
69
66
|
...Array.from(runtime.getTemplates().keys())
|
|
70
|
-
])).map((t) => `"${t}"`);
|
|
71
|
-
require_common.panic(`Template "${template}" not found. Available templates: ${valid.join(", ")}`);
|
|
67
|
+
])).map((t) => `"${t}"`).join(", ")}`);
|
|
72
68
|
}
|
|
73
69
|
await templateHandler(args);
|
|
74
70
|
} catch (e) {
|
|
@@ -92,4 +88,4 @@ Object.defineProperty(exports, 'bootstrapCommandkitCLI', {
|
|
|
92
88
|
return bootstrapCommandkitCLI;
|
|
93
89
|
}
|
|
94
90
|
});
|
|
95
|
-
//# sourceMappingURL=init-
|
|
91
|
+
//# sourceMappingURL=init-CBb0StSB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-
|
|
1
|
+
{"version":3,"file":"init-CBb0StSB.js","names":[],"sources":["../src/cli/init.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { mkdir } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { generateTypesPackage } from '../utils/types-package';\nimport { loadConfigFile } from '../config/loader';\nimport {\n CompilerPlugin,\n CompilerPluginRuntime,\n isCompilerPlugin,\n} from '../plugins';\nimport { panic } from './common';\nimport { COMMANDKIT_CWD } from '../utils/constants';\n\n/**\n * Creates a command line interface for CommandKit.\n * @param argv The arguments passed to the CLI.\n * @param options The options passed to the CLI.\n */\nexport async function bootstrapCommandkitCLI(\n argv: string[],\n options?: import('commander').ParseOptions | undefined,\n) {\n process.title = 'CommandKit CLI';\n\n // imports are lazily loaded when the cli is used, instead of loading it with the lib itself\n const { Command } = await import('commander');\n const { bootstrapDevelopmentServer } = await import('./development');\n const { bootstrapProductionServer, createProductionBuild } = await import(\n './production'\n );\n const { generateCommand, generateEvent } = await import('./generators');\n const { version } = await import('../version');\n const { showInformation } = await import('./information');\n const { setCLIEnv } = await import('./env');\n\n const program = new Command('commandkit');\n\n program\n .command('dev')\n .version(version)\n .description('Start your bot in development mode.')\n .option(\n '-c, --config [path]',\n 'Path to your commandkit config file.',\n './commandkit.js',\n )\n .action(() => {\n const options = program.opts();\n bootstrapDevelopmentServer(options.config);\n });\n\n program\n .command('info')\n .description(\n 'Show information about the system which can be used to report bugs.',\n )\n .action(async () => {\n await showInformation();\n });\n\n program\n .command('start')\n .description(\n 'Start your bot in production mode after running the build command.',\n )\n .option('-c, --config [path]', 'Path to your commandkit config file.')\n .action(() => {\n const options = program.opts();\n bootstrapProductionServer(options.config);\n });\n\n program\n .command('build')\n .description('Build your project for production usage.')\n .option('-c, --config [path]', 'Path to your commandkit config file.')\n .action(() => {\n setCLIEnv();\n const options = program.opts();\n return createProductionBuild(options.config);\n });\n\n program\n .command('create')\n .description(\n 'Create new files using built-in templates or custom plugin templates',\n )\n .argument(\n '<template>',\n 'The template to use (e.g. command, event, or custom plugin template)',\n )\n .argument('[args...]', 'Additional arguments for the template')\n .action(async (template, args) => {\n setCLIEnv();\n\n // Handle custom plugin templates\n const { plugins } = await loadConfigFile();\n const runtime = new CompilerPluginRuntime(\n plugins.filter((p) => isCompilerPlugin(p)) as CompilerPlugin[],\n );\n\n try {\n await runtime.init();\n const templateHandler = runtime.getTemplate(template);\n\n if (!templateHandler) {\n // Handle built-in templates\n if (template === 'command') {\n const [name] = args;\n if (!name) {\n panic('Command name is required');\n }\n await generateCommand(name);\n return;\n }\n\n if (template === 'event') {\n const [name] = args;\n if (!name) {\n panic('Event name is required');\n }\n await generateEvent(name);\n return;\n }\n\n const valid = Array.from(\n new Set([\n 'command',\n 'event',\n ...Array.from(runtime.getTemplates().keys()),\n ]),\n ).map((t) => `\"${t}\"`);\n\n panic(\n `Template \"${template}\" not found. Available templates: ${valid.join(', ')}`,\n );\n }\n\n await templateHandler(args);\n } catch (e: any) {\n panic(`Failed to execute template \"${template}\": ${e?.message || e}`);\n } finally {\n await runtime.destroy();\n }\n });\n\n const types = join(COMMANDKIT_CWD, 'node_modules', 'commandkit-types');\n\n if (!existsSync(types)) {\n await mkdir(types, { recursive: true }).catch(() => {});\n await generateTypesPackage(true).catch(() => {});\n }\n\n await program.parseAsync(argv, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,eAAsB,uBACtB,MACA,SACA;AACE,SAAQ,QAAQ;CAGhB,MAAM,EAAE,YAAY,MAAM,OAAO;CACjC,MAAM,EAAE,+BAA+B,2CAAM;CAC7C,MAAM,EAAE,2BAA2B,0BAA0B,2CAAM;CAGnE,MAAM,EAAE,iBAAiB,kBAAkB,2CAAM;CACjD,MAAM,EAAE,YAAY,2CAAM;CAC1B,MAAM,EAAE,oBAAoB,2CAAM;CAClC,MAAM,EAAE,cAAc,2CAAM;CAE5B,MAAM,UAAU,IAAI,QAAQ,aAAa;AAEzC,SACA,QAAQ,MAAM,CACd,QAAQ,QAAQ,CAChB,YAAY,sCAAsC,CAClD,OACE,uBACA,wCACA,kBACD,CACD,aAAa;AAEX,6BADgB,QAAQ,MAAM,CACK,OAAO;GAC1C;AAEF,SACA,QAAQ,OAAO,CACf,YACE,sEACD,CACD,OAAO,YAAY;AACjB,QAAM,iBAAiB;GACvB;AAEF,SACA,QAAQ,QAAQ,CAChB,YACE,qEACD,CACD,OAAO,uBAAuB,uCAAuC,CACrE,aAAa;AAEX,4BADgB,QAAQ,MAAM,CACI,OAAO;GACzC;AAEF,SACA,QAAQ,QAAQ,CAChB,YAAY,2CAA2C,CACvD,OAAO,uBAAuB,uCAAuC,CACrE,aAAa;AACX,aAAW;AAEX,SAAO,sBADS,QAAQ,MAAM,CACO,OAAO;GAC5C;AAEF,SACA,QAAQ,SAAS,CACjB,YACE,uEACD,CACD,SACE,cACA,uEACD,CACD,SAAS,aAAa,wCAAwC,CAC9D,OAAO,OAAO,UAAU,SAAS;AAC/B,aAAW;EAGX,MAAM,EAAE,YAAY,MAAM,mCAAgB;EAC1C,MAAM,UAAU,IAAI,yCAClB,QAAQ,QAAQ,MAAM,wCAAiB,EAAE,CAAC,CAC3C;AAED,MAAI;AACF,SAAM,QAAQ,MAAM;GACpB,MAAM,kBAAkB,QAAQ,YAAY,SAAS;AAErD,OAAI,CAAC,iBAAiB;AAEpB,QAAI,aAAa,WAAW;KAC1B,MAAM,CAAC,QAAQ;AACf,SAAI,CAAC,KACH,sBAAM,2BAA2B;AAEnC,WAAM,gBAAgB,KAAK;AAC3B;;AAGF,QAAI,aAAa,SAAS;KACxB,MAAM,CAAC,QAAQ;AACf,SAAI,CAAC,KACH,sBAAM,yBAAyB;AAEjC,WAAM,cAAc,KAAK;AACzB;;AAWF,yBACE,aAAa,SAAS,oCATV,MAAM,KAClB,IAAI,IAAI;KACR;KACA;KACA,GAAG,MAAM,KAAK,QAAQ,cAAc,CAAC,MAAM,CAAC;KAAC,CAC5C,CACF,CAAC,KAAK,MAAM,IAAI,EAAE,GAAG,CAG4C,KAAK,KAAK,GAC3E;;AAGH,SAAM,gBAAgB,KAAK;WACpB,GAAQ;AACf,wBAAM,+BAA+B,SAAS,4CAAK,EAAG,YAAW,IAAI;YAC7D;AACR,SAAM,QAAQ,SAAS;;GAEzB;CAEF,MAAM,4BAAa,kCAAgB,gBAAgB,mBAAmB;AAEtE,KAAI,yBAAY,MAAM,EAAE;AACtB,oCAAY,OAAO,EAAE,WAAW,MAAM,CAAC,CAAC,YAAY,GAAG;AACvD,QAAM,2CAAqB,KAAK,CAAC,YAAY,GAAG;;AAGlD,OAAM,QAAQ,WAAW,MAAM,QAAQ"}
|
|
@@ -10,4 +10,4 @@ import * as commander0 from "commander";
|
|
|
10
10
|
declare function bootstrapCommandkitCLI(argv: string[], options?: commander0.ParseOptions | undefined): Promise<void>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { bootstrapCommandkitCLI };
|
|
13
|
-
//# sourceMappingURL=init-
|
|
13
|
+
//# sourceMappingURL=init-DSYckXwx.d.ts.map
|
package/dist/kv/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SerializerType } from "../constants-
|
|
1
|
+
import { SerializerType } from "../constants-CCFSX2NG.js";
|
|
2
2
|
export { SerializerType };
|
package/dist/kv/constants.js
CHANGED