commandkit 1.2.0-rc.8 → 1.2.0
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/LICENSE +19 -3
- package/README.md +45 -26
- package/bin/index.mjs +1 -1
- package/cli.d.ts +19 -0
- package/config.cjs +3 -0
- package/config.d.ts +1 -0
- package/dist/{ActionRow-DKnFVDME.d.ts → ActionRow-Bt9qi0Mb.d.ts} +4 -5
- package/dist/{Button-4ZUXdA56.d.ts → Button-DxJLcZIU.d.ts} +7 -8
- package/dist/{ButtonKit-C7r7RPNf.d.ts → ButtonKit-BfcyvWfj.d.ts} +4 -5
- package/dist/{ChannelSelectMenuKit-BrXvBYNH.d.ts → ChannelSelectMenuKit-DYkudikb.d.ts} +5 -6
- package/dist/{CommandsRouter-CoOA7hkf.d.ts → CommandsRouter-DiNoF0dq.d.ts} +2 -3
- package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-D9JKMcfi.d.ts} +2 -2
- package/dist/{EventsRouter-BacqK6z3.d.ts → EventsRouter-EuuSu6NH.d.ts} +2 -2
- package/dist/{MentionableSelectMenuKit-CPTKqx-O.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts} +5 -6
- package/dist/{MessageCommandParser-ROLibZPX.d.ts → MessageCommandParser-DPCbHXCS.d.ts} +4 -5
- package/dist/{Modal-C6UTRdYQ.d.ts → Modal-v9rrcMl-.d.ts} +25 -12
- package/dist/{ModalKit-Btz58KYn.d.ts → ModalKit-XJSM65SV.d.ts} +4 -5
- package/dist/{RoleSelectMenuKit-C26lU3sN.d.ts → RoleSelectMenuKit-CCjcp3HY.d.ts} +5 -6
- package/dist/{SelectMenu-Diy87_ba.d.ts → SelectMenu-CY0vvoSu.d.ts} +17 -14
- package/dist/{StringSelectMenuKit-Bhs8U6WI.d.ts → StringSelectMenuKit-G5nBTicX.d.ts} +5 -6
- package/dist/{UserSelectMenuKit-CfqFJdxz.d.ts → UserSelectMenuKit-D3SO_fXA.d.ts} +5 -6
- package/dist/analytics/analytics-engine.d.ts +1 -31
- package/dist/analytics/analytics-engine.js +2 -35
- package/dist/analytics/analytics-provider.d.ts +1 -31
- package/dist/analytics/analytics-provider.js +1 -0
- package/dist/analytics/constants.js +26 -3
- package/dist/analytics/constants.js.map +1 -0
- package/dist/analytics/utils.js +2 -35
- package/dist/{analytics-engine-6_M8tCeD.d.ts → analytics-engine-DnRsHBId.d.ts} +53 -33
- package/dist/app/commands/AppCommandRunner.d.ts +1 -31
- package/dist/app/commands/AppCommandRunner.js +2 -35
- package/dist/app/commands/Context.d.ts +1 -31
- package/dist/app/commands/Context.js +2 -35
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +261 -4
- package/dist/app/commands/MessageCommandParser.js.map +1 -0
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +25 -3
- package/dist/app/commands/helpers.js.map +1 -0
- package/dist/app/events/EventWorkerContext.d.ts +42 -33
- package/dist/app/events/EventWorkerContext.js +48 -5
- package/dist/app/events/EventWorkerContext.js.map +1 -0
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -31
- package/dist/app/handlers/AppCommandHandler.js +2 -35
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -31
- package/dist/app/handlers/AppEventsHandler.js +2 -35
- package/dist/app/index.d.ts +4 -31
- package/dist/app/index.js +13 -45
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js +54 -7
- package/dist/app/interrupt/signals.js.map +1 -0
- package/dist/app/middlewares/permissions.d.ts +1 -31
- package/dist/app/middlewares/permissions.js +2 -35
- package/dist/app/register/CommandRegistrar.d.ts +1 -31
- package/dist/app/register/CommandRegistrar.js +2 -35
- package/dist/app/router/CommandsRouter.d.ts +1 -1
- package/dist/app/router/CommandsRouter.js +210 -2
- package/dist/app/router/CommandsRouter.js.map +1 -0
- package/dist/app/router/EventsRouter.d.ts +1 -1
- package/dist/app/router/EventsRouter.js +128 -2
- package/dist/app/router/EventsRouter.js.map +1 -0
- package/dist/app/router/index.d.ts +2 -3
- package/dist/app/router/index.js +5 -5
- package/dist/{chunk-nOFOJqeH.js → chunk-BE-pF4vm.js} +11 -7
- package/dist/cli/app-process.d.ts +2 -3
- package/dist/cli/app-process.js +60 -7
- package/dist/cli/app-process.js.map +1 -0
- package/dist/cli/build.d.ts +2 -31
- package/dist/cli/build.js +171 -40
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/common.d.ts +10 -34
- package/dist/cli/common.js +182 -11
- package/dist/cli/common.js.map +1 -0
- package/dist/cli/development.d.ts +18 -1
- package/dist/cli/development.js +52 -77
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +4 -0
- package/dist/cli/env.js +73 -9
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/generators.js +10 -13
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +11 -10
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +12 -2
- package/dist/cli/init.js +83 -37
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/production.d.ts +2 -3
- package/dist/cli/production.js +19 -51
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +83 -6
- package/dist/cli/type-checker.js.map +1 -0
- package/dist/cli/utils.d.ts +0 -1
- package/dist/cli/utils.js +18 -2
- package/dist/cli/utils.js.map +1 -0
- package/dist/{commandkit-CuM4HbAQ.js → commandkit--k6yDJEr.js} +3212 -2592
- package/dist/commandkit--k6yDJEr.js.map +1 -0
- package/dist/commandkit.d.ts +1 -31
- package/dist/commandkit.js +2 -35
- package/dist/{common-DOCvOVC4.d.ts → common-CCvvgnxi.d.ts} +4 -5
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +137 -2
- package/dist/components/common/EventInterceptor.js.map +1 -0
- package/dist/components/common/element.d.ts +2 -5
- package/dist/components/common/element.js +10 -8
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/types.js +1 -1
- package/dist/components/{v2 → display}/common.d.ts +1 -2
- package/dist/components/display/common.js +4 -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/{file-DVOELoNv.js → components/display/file.js} +5 -10
- package/dist/components/display/file.js.map +1 -0
- package/dist/components/display/index.d.ts +9 -0
- package/dist/components/display/index.js +19 -0
- package/dist/components/display/label.d.ts +2 -0
- package/dist/components/display/label.js +4 -0
- package/dist/components/display/media-gallery.d.ts +2 -0
- package/dist/components/display/media-gallery.js +5 -0
- package/dist/components/display/poll.d.ts +2 -0
- package/dist/components/display/poll.js +86 -0
- package/dist/components/display/poll.js.map +1 -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/{separator-DL6QH5H1.js → components/display/separator.js} +5 -10
- package/dist/components/display/separator.js.map +1 -0
- package/dist/components/display/text-display.d.ts +2 -0
- package/dist/{text-display-DbMumig_.js → components/display/text-display.js} +5 -10
- package/dist/components/display/text-display.js.map +1 -0
- package/dist/components/index.d.ts +23 -24
- package/dist/components/index.js +29 -52
- package/dist/components/interactive/action-row/ActionRow.d.ts +2 -0
- package/dist/{ActionRow-CbdGFWMT.js → components/interactive/action-row/ActionRow.js} +5 -10
- package/dist/components/interactive/action-row/ActionRow.js.map +1 -0
- package/dist/components/interactive/button/Button.d.ts +2 -0
- package/dist/components/interactive/button/Button.js +4 -0
- package/dist/components/interactive/button/ButtonKit.d.ts +2 -0
- package/dist/components/interactive/button/ButtonKit.js +4 -0
- package/dist/components/interactive/modal/Modal.d.ts +2 -0
- package/dist/components/interactive/modal/Modal.js +8 -0
- package/dist/components/interactive/modal/ModalKit.d.ts +2 -0
- package/dist/components/interactive/modal/ModalKit.js +4 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +2 -0
- package/dist/components/interactive/select-menu/SelectMenu.js +9 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/common.d.ts +2 -0
- package/dist/components/interactive/select-menu/common.js +1 -0
- package/dist/config/config.d.ts +15 -33
- package/dist/config/config.js +2 -35
- package/dist/config/default.d.ts +1 -31
- package/dist/config/default.js +2 -35
- package/dist/config/loader.d.ts +1 -31
- package/dist/config/loader.js +2 -35
- package/dist/config/types.d.ts +1 -31
- package/dist/config/types.js +1 -0
- package/dist/config/utils.d.ts +1 -31
- package/dist/config/utils.js +29 -2
- package/dist/config/utils.js.map +1 -0
- package/dist/{constants-D8PMA9on.d.ts → constants-DqtJY0t-.d.ts} +3 -3
- package/dist/{constants-MKu-Q1jh.d.ts → constants-DwxpkIeH.d.ts} +8 -2
- package/dist/{container-DHBELeJ3.d.ts → container-CYojOA9d.d.ts} +3 -4
- package/dist/context/async-context.d.ts +1 -31
- package/dist/context/async-context.js +2 -35
- package/dist/context/environment.d.ts +1 -31
- package/dist/context/environment.js +2 -35
- package/dist/{element-CAXu1XtK.d.ts → element-DeLvTMfZ.d.ts} +5 -5
- package/dist/events/CommandKitEventsChannel.d.ts +1 -31
- package/dist/events/CommandKitEventsChannel.js +83 -2
- package/dist/events/CommandKitEventsChannel.js.map +1 -0
- package/dist/{file-DTrr-p09.d.ts → file-DLO1zEcH.d.ts} +3 -4
- package/dist/flags/FlagProvider.d.ts +1 -31
- package/dist/flags/FlagProvider.js +1 -0
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +1 -31
- package/dist/flags/feature-flags.js +5 -39
- package/dist/flags/store.d.ts +1 -31
- package/dist/flags/store.js +13 -2
- package/dist/flags/store.js.map +1 -0
- package/dist/{helpers-Wg6P5fRQ.d.ts → helpers-zmC44Mcu.d.ts} +2 -3
- package/dist/index-BIsCUWAs.d.ts +1 -0
- package/dist/index-CwHYpK-f.d.ts +1 -0
- package/dist/index-DHrsNvX1.d.ts +1 -0
- package/dist/index.d.ts +41 -42
- package/dist/index.js +80 -98
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js +22 -2
- package/dist/kv/constants.js.map +1 -0
- package/dist/kv/dotprops.js +26 -3
- package/dist/kv/dotprops.js.map +1 -0
- package/dist/kv/kv.d.ts +1 -2
- package/dist/kv/kv.js +15 -18
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +12 -3
- package/dist/kv/serde.js +87 -4
- package/dist/kv/serde.js.map +1 -0
- package/dist/label-DqGRqodo.d.ts +28 -0
- package/dist/logger/DefaultLogger.d.ts +66 -3
- package/dist/logger/DefaultLogger.js +2 -35
- package/dist/logger/ILogger.d.ts +64 -2
- package/dist/logger/ILogger.js +1 -1
- package/dist/logger/Logger.d.ts +36 -3
- package/dist/logger/Logger.js +2 -35
- package/dist/logger/NoopLogger.d.ts +1 -2
- package/dist/logger/NoopLogger.js +1 -0
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/{media-gallery-BMsXSot3.d.ts → media-gallery-Ca8es-eB.d.ts} +3 -4
- package/dist/plugins/CompilerPlugin.d.ts +1 -31
- package/dist/plugins/CompilerPlugin.js +33 -4
- package/dist/plugins/CompilerPlugin.js.map +1 -0
- package/dist/plugins/PluginCommon.d.ts +1 -31
- package/dist/plugins/PluginCommon.js +55 -4
- package/dist/plugins/PluginCommon.js.map +1 -0
- package/dist/plugins/RuntimePlugin.d.ts +1 -31
- package/dist/plugins/RuntimePlugin.js +124 -4
- package/dist/plugins/RuntimePlugin.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -31
- package/dist/plugins/index.js +8 -39
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -35
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +2 -35
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -35
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -35
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/runtime.js +1 -1
- package/dist/plugins/types.d.ts +1 -31
- package/dist/plugins/types.js +1 -1
- package/dist/poll-DQ6DX_Tt.d.ts +88 -0
- package/dist/{section-Dh_FhPeC.d.ts → section-Q8nwx_-q.d.ts} +3 -4
- package/dist/{separator-CMf6Cyy5.d.ts → separator-B8P-kdIK.d.ts} +3 -4
- package/dist/{signals-SHg7J1U_.d.ts → signals-CBXwugBW.d.ts} +2 -2
- package/dist/{text-display-DRw3r_lK.d.ts → text-display-CL9C2yMc.d.ts} +3 -4
- package/dist/{types-CJ-XvOFN.d.ts → types-DZy7U-Ld.d.ts} +2 -2
- package/dist/types.d.ts +2 -32
- package/dist/types.js +1 -0
- package/dist/utils/colors.js +9 -3
- package/dist/utils/colors.js.map +1 -0
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +50 -7
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/dev-hooks.d.ts +1 -31
- package/dist/utils/dev-hooks.js +2 -35
- package/dist/utils/error-codes.d.ts +54 -2
- package/dist/utils/error-codes.js +53 -5
- package/dist/utils/error-codes.js.map +1 -0
- package/dist/utils/resolve-file-url.d.ts +11 -2
- package/dist/utils/resolve-file-url.js +18 -2
- package/dist/utils/resolve-file-url.js.map +1 -0
- package/dist/utils/types-package.js +61 -4
- package/dist/utils/types-package.js.map +1 -0
- package/dist/utils/useful-stuff/async-queue.js +2 -2
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/mutex.js +1 -0
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js +2 -2
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js +2 -3
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.d.ts +113 -2
- package/dist/utils/utilities.js +5 -36
- package/dist/utils/{warn-unstable.d.ts → warning.d.ts} +12 -3
- package/dist/utils/{warn-unstable.js → warning.js} +15 -2
- package/dist/utils/warning.js.map +1 -0
- package/dist/version.d.ts +8 -2
- package/dist/version.js +13 -2
- package/dist/version.js.map +1 -0
- package/hooks.cjs +11 -4
- package/package.json +22 -18
- package/dist/ActionRow-CbdGFWMT.js.map +0 -1
- package/dist/CommandKitEventsChannel-B5vbINtP.js +0 -88
- package/dist/CommandKitEventsChannel-B5vbINtP.js.map +0 -1
- package/dist/CommandsRouter-DZAeB2v_.js +0 -220
- package/dist/CommandsRouter-DZAeB2v_.js.map +0 -1
- package/dist/CompilerPlugin-M8r3yNAl.js +0 -43
- package/dist/CompilerPlugin-M8r3yNAl.js.map +0 -1
- package/dist/DefaultLogger-XCOl5nLd.d.ts +0 -67
- package/dist/EventInterceptor-CQEXyUTp.js +0 -142
- package/dist/EventInterceptor-CQEXyUTp.js.map +0 -1
- package/dist/EventWorkerContext-Dq29tieI.js +0 -69
- package/dist/EventWorkerContext-Dq29tieI.js.map +0 -1
- package/dist/EventWorkerContext-xgEc2N2T.d.ts +0 -43
- package/dist/EventsRouter-Dzpm7ubq.js +0 -137
- package/dist/EventsRouter-Dzpm7ubq.js.map +0 -1
- package/dist/ILogger-BW8GM-YZ.d.ts +0 -64
- package/dist/ILogger-dQ7Y9X1f.js +0 -0
- package/dist/Logger-DyfkPk7u.d.ts +0 -37
- package/dist/MessageCommandParser-CEuO6Ex3.js +0 -269
- package/dist/MessageCommandParser-CEuO6Ex3.js.map +0 -1
- package/dist/PluginCommon-Cvl5yYM_.js +0 -71
- package/dist/PluginCommon-Cvl5yYM_.js.map +0 -1
- package/dist/RuntimePlugin-BUecuBIU.js +0 -134
- package/dist/RuntimePlugin-BUecuBIU.js.map +0 -1
- package/dist/app-HN1cVg8J.js +0 -0
- package/dist/app-process-u2DXakNv.js +0 -68
- package/dist/app-process-u2DXakNv.js.map +0 -1
- package/dist/build-CxC-b0wN.js +0 -175
- package/dist/build-CxC-b0wN.js.map +0 -1
- package/dist/colors-DL3ucTiT.js +0 -15
- package/dist/colors-DL3ucTiT.js.map +0 -1
- package/dist/commandkit-CuM4HbAQ.js.map +0 -1
- package/dist/common-CcfjYnPG.js +0 -0
- package/dist/common-DVM_onKu.js +0 -211
- package/dist/common-DVM_onKu.js.map +0 -1
- package/dist/common-vnMIelAE.js +0 -17
- 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 -37
- package/dist/components/v1/button/ButtonKit.d.ts +0 -3
- package/dist/components/v1/button/ButtonKit.js +0 -37
- package/dist/components/v1/modal/Modal.d.ts +0 -7
- package/dist/components/v1/modal/Modal.js +0 -40
- package/dist/components/v1/modal/ModalKit.d.ts +0 -3
- package/dist/components/v1/modal/ModalKit.js +0 -37
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/SelectMenu.d.ts +0 -10
- package/dist/components/v1/select-menu/SelectMenu.js +0 -42
- package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/common.d.ts +0 -3
- 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/media-gallery.d.ts +0 -2
- package/dist/components/v2/media-gallery.js +0 -5
- 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/config-nD7V_D7G.d.ts +0 -16
- package/dist/constants-4oxxvaJA.js +0 -27
- package/dist/constants-4oxxvaJA.js.map +0 -1
- package/dist/constants-B5_Ta7PR.js +0 -70
- package/dist/constants-B5_Ta7PR.js.map +0 -1
- package/dist/constants-BOOGN85p.js +0 -37
- package/dist/constants-BOOGN85p.js.map +0 -1
- package/dist/container-C6GtfAPW.js +0 -44
- package/dist/container-C6GtfAPW.js.map +0 -1
- package/dist/dotprops-tnhpnszJ.js +0 -36
- package/dist/dotprops-tnhpnszJ.js.map +0 -1
- package/dist/element-Bak9llw_.js +0 -84
- package/dist/element-Bak9llw_.js.map +0 -1
- package/dist/env-_68PRRoA.js +0 -109
- package/dist/env-_68PRRoA.js.map +0 -1
- package/dist/error-codes-B4TyW4Ct.d.ts +0 -54
- package/dist/error-codes-Ds0bnPvT.js +0 -73
- package/dist/error-codes-Ds0bnPvT.js.map +0 -1
- package/dist/feature-flags-DafbZSFy.js +0 -160
- package/dist/feature-flags-DafbZSFy.js.map +0 -1
- package/dist/file-DVOELoNv.js.map +0 -1
- package/dist/helpers-CiuN7y5B.js +0 -36
- package/dist/helpers-CiuN7y5B.js.map +0 -1
- package/dist/index-DKcmsWXw.d.ts +0 -1
- package/dist/index-DSBMRX9A.d.ts +0 -1
- package/dist/index-DdqikUQD.d.ts +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-C41hZSJg.js +0 -95
- package/dist/init-C41hZSJg.js.map +0 -1
- package/dist/init-DOr-Y3GQ.d.ts +0 -13
- package/dist/media-gallery-zDtJ3kxb.js +0 -62
- package/dist/media-gallery-zDtJ3kxb.js.map +0 -1
- package/dist/resolve-file-url-ChIyw-Vf.js +0 -23
- package/dist/resolve-file-url-ChIyw-Vf.js.map +0 -1
- package/dist/resolve-file-url-yO8bUxok.d.ts +0 -11
- package/dist/router-DHnFRADH.js +0 -0
- package/dist/runtime-DB9CiPfe.js +0 -0
- package/dist/section-DlvrDoJK.js +0 -60
- package/dist/section-DlvrDoJK.js.map +0 -1
- package/dist/separator-DL6QH5H1.js.map +0 -1
- package/dist/serde-BYaKrsOV.d.ts +0 -12
- package/dist/serde-Cc8iUa9J.js +0 -97
- package/dist/serde-Cc8iUa9J.js.map +0 -1
- package/dist/signals-ChFMD7mB.js +0 -74
- package/dist/signals-ChFMD7mB.js.map +0 -1
- package/dist/store-Hcgz7DSt.js +0 -19
- package/dist/store-Hcgz7DSt.js.map +0 -1
- package/dist/text-display-DbMumig_.js.map +0 -1
- package/dist/type-checker-M1NIIoWL.js +0 -90
- package/dist/type-checker-M1NIIoWL.js.map +0 -1
- package/dist/types-CUZOquUl.js +0 -0
- package/dist/types-package-BWArjyBF.js +0 -75
- package/dist/types-package-BWArjyBF.js.map +0 -1
- package/dist/types-q0Nm882H.js +0 -0
- package/dist/utilities-DtdPlr4c.d.ts +0 -87
- package/dist/utils/warn-unstable.js.map +0 -1
- package/dist/utils-DCSnVAZ6.js +0 -23
- package/dist/utils-DCSnVAZ6.js.map +0 -1
- package/dist/utils-KsNof0Xz.js +0 -34
- package/dist/utils-KsNof0Xz.js.map +0 -1
- package/dist/v2-DofkPKHs.js +0 -0
- package/dist/version-CS7843dE.js +0 -18
- package/dist/version-CS7843dE.js.map +0 -1
- package/dist/version-CtJtBJXI.d.ts +0 -8
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_plugins_PluginCommon = require('./PluginCommon.js');
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/plugins/CompilerPlugin.ts
|
|
5
|
+
/**
|
|
6
|
+
* CommandKit plugin that runs at compile time.
|
|
7
|
+
*/
|
|
8
|
+
var CompilerPlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the plugin, which is Compiler.
|
|
11
|
+
*/
|
|
12
|
+
type = require_plugins_PluginCommon.PluginType.Compiler;
|
|
13
|
+
/**
|
|
14
|
+
* Called when transformation is requested to this plugin
|
|
15
|
+
* @param params The parameters for the transformation
|
|
16
|
+
* @returns The transformed result
|
|
17
|
+
*/
|
|
18
|
+
async transform(params) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Type guard to check if the given object is a CompilerPlugin.
|
|
24
|
+
* @param plugin The object to check.
|
|
25
|
+
* @returns Boolean indicating whether the object is a CompilerPlugin.
|
|
26
|
+
*/
|
|
27
|
+
function isCompilerPlugin(plugin) {
|
|
28
|
+
return plugin instanceof CompilerPlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type === require_plugins_PluginCommon.PluginType.Compiler;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.CompilerPlugin = CompilerPlugin;
|
|
33
|
+
exports.isCompilerPlugin = isCompilerPlugin;
|
|
34
|
+
//# sourceMappingURL=CompilerPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompilerPlugin.js","names":[],"sources":["../../src/plugins/CompilerPlugin.ts"],"sourcesContent":["import {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport { MaybeFalsey } from './types';\nimport { CompilerPluginRuntime } from './plugin-runtime/CompilerPluginRuntime';\n\n/**\n * The parameters for the transformation function of a compiler plugin.\n */\nexport interface PluginTransformParameters {\n /**\n * The code to be transformed.\n */\n code: string;\n /**\n * The filename of the code being transformed.\n */\n id: string;\n}\n\nexport interface TransformedResult {\n /**\n * The transformed code.\n */\n code?: string;\n /**\n * The source map for the transformed code, if applicable.\n */\n map?: string | null;\n}\n\n/**\n * CommandKit plugin that runs at compile time.\n */\nexport abstract class CompilerPlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CompilerPluginRuntime> {\n /**\n * The type of the plugin, which is Compiler.\n */\n public readonly type = PluginType.Compiler;\n\n /**\n * Called when transformation is requested to this plugin\n * @param params The parameters for the transformation\n * @returns The transformed result\n */\n public async transform(\n params: PluginTransformParameters,\n ): Promise<MaybeFalsey<TransformedResult>> {\n return null;\n }\n}\n\n/**\n * Type guard to check if the given object is a CompilerPlugin.\n * @param plugin The object to check.\n * @returns Boolean indicating whether the object is a CompilerPlugin.\n */\nexport function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin {\n return (\n plugin instanceof CompilerPlugin ||\n (isPlugin(plugin) && plugin.type === PluginType.Compiler)\n );\n}\n"],"mappings":";;;;;;;AAqCA,IAAsB,iBAAtB,cAEA,0CAA0B;;;;CAIxB,AAAgB,OAAO,wCAAW;;;;;;CAOlC,MAAa,UACb,QAC0C;AACxC,SAAO;;;;;;;;AASX,SAAgB,iBAAiB,QAA2C;AAC1E,QACE,kBAAkB,kBAClB,sCAAS,OAAO,IAAI,OAAO,SAAS,wCAAW"}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import { PluginCommon, PluginOptions, PluginType, isPlugin } from "../analytics-engine-
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../element-CAXu1XtK.js";
|
|
6
|
-
import "../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-4ZUXdA56.js";
|
|
9
|
-
import "../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../common-DOCvOVC4.js";
|
|
11
|
-
import "../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../container-DHBELeJ3.js";
|
|
18
|
-
import "../file-DTrr-p09.js";
|
|
19
|
-
import "../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../section-Dh_FhPeC.js";
|
|
21
|
-
import "../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../index-DSBMRX9A.js";
|
|
24
|
-
import "../index-DdqikUQD.js";
|
|
25
|
-
import "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../signals-SHg7J1U_.js";
|
|
27
|
-
import "../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../index-DKcmsWXw.js";
|
|
31
|
-
import "../constants-MKu-Q1jh.js";
|
|
1
|
+
import { I as PluginCommon, L as PluginOptions, R as PluginType, z as isPlugin } from "../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { PluginCommon, PluginOptions, PluginType, isPlugin };
|
|
@@ -1,5 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
+
let node_crypto = require("node:crypto");
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
//#region src/plugins/PluginCommon.ts
|
|
6
|
+
/**
|
|
7
|
+
* Enum representing the type of plugin.
|
|
8
|
+
* - Compiler: A plugin that runs at compile time.
|
|
9
|
+
* - Runtime: A plugin that runs at runtime.
|
|
10
|
+
*/
|
|
11
|
+
let PluginType = /* @__PURE__ */ function(PluginType) {
|
|
12
|
+
PluginType["Compiler"] = "compiler";
|
|
13
|
+
PluginType["Runtime"] = "runtime";
|
|
14
|
+
return PluginType;
|
|
15
|
+
}({});
|
|
16
|
+
/**
|
|
17
|
+
* Base class for CommandKit plugins.
|
|
18
|
+
*/
|
|
19
|
+
var PluginCommon = class {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the plugin instance.
|
|
22
|
+
*/
|
|
23
|
+
id = (0, node_crypto.randomUUID)();
|
|
24
|
+
/**
|
|
25
|
+
* The time when the plugin was loaded, in milliseconds since the Unix epoch.
|
|
26
|
+
*/
|
|
27
|
+
loadedAt = Date.now();
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new instance of the plugin.
|
|
30
|
+
*/
|
|
31
|
+
constructor(options) {
|
|
32
|
+
this.options = options;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Called when this plugin is activated
|
|
36
|
+
*/
|
|
37
|
+
async activate(ctx) {}
|
|
38
|
+
/**
|
|
39
|
+
* Called when this plugin is deactivated
|
|
40
|
+
*/
|
|
41
|
+
async deactivate(ctx) {}
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Whether the given object is a CommandKit plugin.
|
|
45
|
+
* @param plugin The object to check.
|
|
46
|
+
* @returns Boolean indicating whether the object is a plugin.
|
|
47
|
+
*/
|
|
48
|
+
function isPlugin(plugin) {
|
|
49
|
+
return plugin instanceof PluginCommon;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.PluginCommon = PluginCommon;
|
|
54
|
+
exports.PluginType = PluginType;
|
|
55
|
+
exports.isPlugin = isPlugin;
|
|
56
|
+
//# sourceMappingURL=PluginCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginCommon.js","names":[],"sources":["../../src/plugins/PluginCommon.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\nimport { CommonPluginRuntime } from './plugin-runtime/runtime';\n\n/**\n * The options for a CommandKit plugin.\n */\nexport type PluginOptions = Record<string, any>;\n\n/**\n * Enum representing the type of plugin.\n * - Compiler: A plugin that runs at compile time.\n * - Runtime: A plugin that runs at runtime.\n */\nexport enum PluginType {\n Compiler = 'compiler',\n Runtime = 'runtime',\n}\n\n/**\n * Base class for CommandKit plugins.\n */\nexport abstract class PluginCommon<\n T extends PluginOptions = PluginOptions,\n C extends CommonPluginRuntime = CommonPluginRuntime,\n> {\n /**\n * The type of the plugin, either Compiler or Runtime.\n */\n public abstract readonly type: PluginType;\n /**\n * Unique identifier for the plugin instance.\n */\n public readonly id = randomUUID();\n /**\n * The time when the plugin was loaded, in milliseconds since the Unix epoch.\n */\n public readonly loadedAt = Date.now();\n /**\n * The name of the plugin.\n */\n public abstract readonly name: string;\n\n /**\n * Creates a new instance of the plugin.\n */\n public constructor(protected readonly options: T) {}\n\n /**\n * Called when this plugin is activated\n */\n public async activate(ctx: C): Promise<void> {}\n\n /**\n * Called when this plugin is deactivated\n */\n public async deactivate(ctx: C): Promise<void> {}\n}\n\n/**\n * Whether the given object is a CommandKit plugin.\n * @param plugin The object to check.\n * @returns Boolean indicating whether the object is a plugin.\n */\nexport function isPlugin(\n plugin: unknown,\n): plugin is PluginCommon<PluginOptions> {\n return plugin instanceof PluginCommon;\n}\n"],"mappings":";;;;;;;;;;AAaA,IAAY,aAAL;AACL;AACA;;KACF;;;;AAKA,IAAsB,eAAtB,MAGA;;;;CAQE,AAAgB,kCAAiB;;;;CAIjC,AAAgB,WAAW,KAAK,KAAK;;;;CASrC,AAAO,YAAY,AAAmB,SAAY;EAAZ;;;;;CAKtC,MAAa,SAAS,KAAuB;;;;CAK7C,MAAa,WAAW,KAAuB;;;;;;;AAQjD,SAAgB,SAChB,QACwC;AACtC,QAAO,kBAAkB"}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../element-CAXu1XtK.js";
|
|
6
|
-
import "../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-4ZUXdA56.js";
|
|
9
|
-
import "../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../common-DOCvOVC4.js";
|
|
11
|
-
import "../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../container-DHBELeJ3.js";
|
|
18
|
-
import "../file-DTrr-p09.js";
|
|
19
|
-
import "../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../section-Dh_FhPeC.js";
|
|
21
|
-
import "../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../index-DSBMRX9A.js";
|
|
24
|
-
import "../index-DdqikUQD.js";
|
|
25
|
-
import "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../signals-SHg7J1U_.js";
|
|
27
|
-
import "../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../index-DKcmsWXw.js";
|
|
31
|
-
import "../constants-MKu-Q1jh.js";
|
|
1
|
+
import { $ as isRuntimePlugin, Q as RuntimePlugin } from "../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { RuntimePlugin, isRuntimePlugin };
|
|
@@ -1,5 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_plugins_PluginCommon = require('./PluginCommon.js');
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
//#region src/plugins/RuntimePlugin.ts
|
|
5
|
+
/**
|
|
6
|
+
* CommandKit plugin that runs at the runtime.
|
|
7
|
+
*/
|
|
8
|
+
var RuntimePlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
9
|
+
type = require_plugins_PluginCommon.PluginType.Runtime;
|
|
10
|
+
preload = /* @__PURE__ */ new Set();
|
|
11
|
+
/**
|
|
12
|
+
* Called before commands are loaded
|
|
13
|
+
*/
|
|
14
|
+
async onBeforeCommandsLoad(ctx) {}
|
|
15
|
+
/**
|
|
16
|
+
* Called after commands are loaded
|
|
17
|
+
*/
|
|
18
|
+
async onAfterCommandsLoad(ctx) {}
|
|
19
|
+
/**
|
|
20
|
+
* Called before events are loaded
|
|
21
|
+
*/
|
|
22
|
+
async onBeforeEventsLoad(ctx) {}
|
|
23
|
+
/**
|
|
24
|
+
* Called after events are loaded
|
|
25
|
+
*/
|
|
26
|
+
async onAfterEventsLoad(ctx) {}
|
|
27
|
+
/**
|
|
28
|
+
* Called before the client logs in
|
|
29
|
+
*/
|
|
30
|
+
async onBeforeClientLogin(ctx) {}
|
|
31
|
+
/**
|
|
32
|
+
* Called after the client logs in
|
|
33
|
+
*/
|
|
34
|
+
async onAfterClientLogin(ctx) {}
|
|
35
|
+
/**
|
|
36
|
+
* Called before interaction is handled
|
|
37
|
+
* @param interaction The interaction
|
|
38
|
+
*/
|
|
39
|
+
async onBeforeInteraction(ctx, interaction) {}
|
|
40
|
+
/**
|
|
41
|
+
* Called before message command is processed
|
|
42
|
+
* @param message The message
|
|
43
|
+
*/
|
|
44
|
+
async onBeforeMessageCommand(ctx, message) {}
|
|
45
|
+
/**
|
|
46
|
+
* Called before command is executed. This method can execute the command itself.
|
|
47
|
+
* @param source The source that triggered the command
|
|
48
|
+
* @param command The command
|
|
49
|
+
* @param execute The function that executes the command
|
|
50
|
+
*/
|
|
51
|
+
async executeCommand(ctx, env, source, command, execute) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Called after events router is initialized
|
|
56
|
+
* @param ctx The context
|
|
57
|
+
*/
|
|
58
|
+
async onEventsRouterInit(ctx) {}
|
|
59
|
+
/**
|
|
60
|
+
* Called after commands router is initialized
|
|
61
|
+
* @param ctx The context
|
|
62
|
+
*/
|
|
63
|
+
async onCommandsRouterInit(ctx) {}
|
|
64
|
+
/**
|
|
65
|
+
* Called when HMR event is received
|
|
66
|
+
* @param ctx The context
|
|
67
|
+
* @param event The event
|
|
68
|
+
*/
|
|
69
|
+
async performHMR(ctx, event) {}
|
|
70
|
+
/**
|
|
71
|
+
* Called before command is loaded for registration. This method can be used to modify the command data before it is loaded.
|
|
72
|
+
* @param ctx The context
|
|
73
|
+
* @param commands The command that is being loaded. This is a CommandBuilderLike object which represents Discord's command
|
|
74
|
+
*/
|
|
75
|
+
async prepareCommand(ctx, commands) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Called before command is registered to discord. This method can cancel the registration of the command and handle it manually.
|
|
80
|
+
* @param ctx The context
|
|
81
|
+
* @param data The command registration data
|
|
82
|
+
*/
|
|
83
|
+
async onBeforeRegisterCommands(ctx, event) {}
|
|
84
|
+
/**
|
|
85
|
+
* Called before global commands registration. This method can cancel the registration of the command and handle it manually.
|
|
86
|
+
* This method is called after `onBeforeRegisterCommands` if that stage was not handled.
|
|
87
|
+
* @param ctx The context
|
|
88
|
+
* @param event The command registration data
|
|
89
|
+
*/
|
|
90
|
+
async onBeforeRegisterGlobalCommands(ctx, event) {}
|
|
91
|
+
/**
|
|
92
|
+
* Called before guild commands registration. This method can cancel the registration of the command and handle it manually.
|
|
93
|
+
* This method is called before guilds of the command are resolved. It is called after `onBeforeRegisterCommands` if that stage was not handled.
|
|
94
|
+
* @param ctx The context
|
|
95
|
+
* @param event The command registration data
|
|
96
|
+
*/
|
|
97
|
+
async onBeforePrepareGuildCommandsRegistration(ctx, event) {}
|
|
98
|
+
/**
|
|
99
|
+
* Called before guild commands registration. This method can cancel the registration of the command and handle it manually.
|
|
100
|
+
* This method is called after guilds of the command are resolved. It is called after `onBeforePrepareGuildCommandsRegistration` if that stage was not handled.
|
|
101
|
+
* @param ctx The context
|
|
102
|
+
* @param event The command registration data
|
|
103
|
+
*/
|
|
104
|
+
async onBeforeRegisterGuildCommands(ctx, event) {}
|
|
105
|
+
/**
|
|
106
|
+
* Called after command and all of its deferred functions are executed.
|
|
107
|
+
* @param ctx The context
|
|
108
|
+
* @param env The environment of the command. This environment contains the command execution data such as command context and more.
|
|
109
|
+
*/
|
|
110
|
+
async onAfterCommand(ctx, env) {}
|
|
111
|
+
/**
|
|
112
|
+
* Called before emitting an event
|
|
113
|
+
* @param ctx The context
|
|
114
|
+
* @param event The event that is being emitted
|
|
115
|
+
*/
|
|
116
|
+
async willEmitEvent(ctx, event) {}
|
|
117
|
+
};
|
|
118
|
+
function isRuntimePlugin(plugin) {
|
|
119
|
+
return plugin instanceof RuntimePlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type === require_plugins_PluginCommon.PluginType.Runtime;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
exports.RuntimePlugin = RuntimePlugin;
|
|
124
|
+
exports.isRuntimePlugin = isRuntimePlugin;
|
|
125
|
+
//# sourceMappingURL=RuntimePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuntimePlugin.js","names":[],"sources":["../../src/plugins/RuntimePlugin.ts"],"sourcesContent":["import { Interaction, Message } from 'discord.js';\nimport {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport type { CommandKitPluginRuntime } from './plugin-runtime/CommandKitPluginRuntime';\nimport { CommandBuilderLike, PreparedAppCommandExecution } from '../app';\nimport { CommandKitEnvironment } from '../context/environment';\nimport { CommandKitHMREvent } from '../utils/dev-hooks';\nimport { PreRegisterCommandsEvent } from '../app/register/CommandRegistrar';\nimport { CommandKitEventDispatch } from './types';\n\n/**\n * CommandKit plugin that runs at the runtime.\n */\nexport abstract class RuntimePlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CommandKitPluginRuntime> {\n public readonly type = PluginType.Runtime;\n public readonly preload = new Set<string>();\n\n /**\n * Called before commands are loaded\n */\n public async onBeforeCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands are loaded\n */\n public async onAfterCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before events are loaded\n */\n public async onBeforeEventsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after events are loaded\n */\n public async onAfterEventsLoad(ctx: CommandKitPluginRuntime): Promise<void> {}\n\n /**\n * Called before the client logs in\n */\n public async onBeforeClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after the client logs in\n */\n public async onAfterClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before interaction is handled\n * @param interaction The interaction\n */\n public async onBeforeInteraction(\n ctx: CommandKitPluginRuntime,\n interaction: Interaction,\n ): Promise<void> {}\n\n /**\n * Called before message command is processed\n * @param message The message\n */\n public async onBeforeMessageCommand(\n ctx: CommandKitPluginRuntime,\n message: Message,\n ): Promise<void> {}\n\n /**\n * Called before command is executed. This method can execute the command itself.\n * @param source The source that triggered the command\n * @param command The command\n * @param execute The function that executes the command\n */\n public async executeCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n source: Interaction | Message,\n command: PreparedAppCommandExecution,\n execute: () => Promise<any>,\n ): Promise<boolean> {\n return false;\n }\n\n /**\n * Called after events router is initialized\n * @param ctx The context\n */\n public async onEventsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands router is initialized\n * @param ctx The context\n */\n public async onCommandsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called when HMR event is received\n * @param ctx The context\n * @param event The event\n */\n public async performHMR(\n ctx: CommandKitPluginRuntime,\n event: CommandKitHMREvent,\n ): Promise<void> {}\n\n /**\n * Called before command is loaded for registration. This method can be used to modify the command data before it is loaded.\n * @param ctx The context\n * @param commands The command that is being loaded. This is a CommandBuilderLike object which represents Discord's command\n */\n async prepareCommand(\n ctx: CommandKitPluginRuntime,\n commands: CommandBuilderLike,\n ): Promise<CommandBuilderLike | null> {\n return null;\n }\n\n /**\n * Called before command is registered to discord. This method can cancel the registration of the command and handle it manually.\n * @param ctx The context\n * @param data The command registration data\n */\n async onBeforeRegisterCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before global commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGlobalCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called before guilds of the command are resolved. It is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforePrepareGuildCommandsRegistration(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after guilds of the command are resolved. It is called after `onBeforePrepareGuildCommandsRegistration` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGuildCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called after command and all of its deferred functions are executed.\n * @param ctx The context\n * @param env The environment of the command. This environment contains the command execution data such as command context and more.\n */\n async onAfterCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n ) {}\n\n /**\n * Called before emitting an event\n * @param ctx The context\n * @param event The event that is being emitted\n */\n public async willEmitEvent(\n ctx: CommandKitPluginRuntime,\n event: CommandKitEventDispatch,\n ) {}\n}\n\nexport function isRuntimePlugin(plugin: unknown): plugin is RuntimePlugin {\n return (\n plugin instanceof RuntimePlugin ||\n (isPlugin(plugin) && plugin.type === PluginType.Runtime)\n );\n}\n"],"mappings":";;;;;;;AAiBA,IAAsB,gBAAtB,cAEA,0CAA0B;CACxB,AAAgB,OAAO,wCAAW;CAClC,AAAgB,0BAAU,IAAI,KAAa;;;;CAK3C,MAAa,qBACb,KACgB;;;;CAKhB,MAAa,oBACb,KACgB;;;;CAKhB,MAAa,mBACb,KACgB;;;;CAKhB,MAAa,kBAAkB,KAA6C;;;;CAK5E,MAAa,oBACb,KACgB;;;;CAKhB,MAAa,mBACb,KACgB;;;;;CAMhB,MAAa,oBACb,KACA,aACgB;;;;;CAMhB,MAAa,uBACb,KACA,SACgB;;;;;;;CAQhB,MAAa,eACb,KACA,KACA,QACA,SACA,SACmB;AACjB,SAAO;;;;;;CAOT,MAAa,mBACb,KACgB;;;;;CAMhB,MAAa,qBACb,KACgB;;;;;;CAOhB,MAAa,WACb,KACA,OACgB;;;;;;CAOhB,MAAM,eACN,KACA,UACqC;AACnC,SAAO;;;;;;;CAQT,MAAM,yBACN,KACA,OACgB;;;;;;;CAQhB,MAAM,+BACN,KACA,OACgB;;;;;;;CAQhB,MAAM,yCACN,KACA,OACgB;;;;;;;CAQhB,MAAM,8BACN,KACA,OACgB;;;;;;CAOhB,MAAM,eACN,KACA,KACA;;;;;;CAOA,MAAa,cACb,KACA,OACA;;AAGF,SAAgB,gBAAgB,QAA0C;AACxE,QACE,kBAAkB,iBAClB,sCAAS,OAAO,IAAI,OAAO,SAAS,wCAAW"}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../element-CAXu1XtK.js";
|
|
6
|
-
import "../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-4ZUXdA56.js";
|
|
9
|
-
import "../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../common-DOCvOVC4.js";
|
|
11
|
-
import "../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../container-DHBELeJ3.js";
|
|
18
|
-
import "../file-DTrr-p09.js";
|
|
19
|
-
import "../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../section-Dh_FhPeC.js";
|
|
21
|
-
import "../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../index-DSBMRX9A.js";
|
|
24
|
-
import "../index-DdqikUQD.js";
|
|
25
|
-
import "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../signals-SHg7J1U_.js";
|
|
27
|
-
import "../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../index-DKcmsWXw.js";
|
|
31
|
-
import "../constants-MKu-Q1jh.js";
|
|
1
|
+
import { $ as isRuntimePlugin, B as CommonPluginRuntime, F as CommandKitPluginRuntime, G as PluginTransformParameters, H as CommonDirectiveTransformer, J as CommandKitEventDispatch, K as TransformedResult, Q as RuntimePlugin, U as CommonDirectiveTransformerOptions, V as CompilerPluginRuntime, W as CompilerPlugin, X as MaybeFalsey, Y as CommandKitPlugin, Z as TemplateHandler, q as isCompilerPlugin } from "../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin };
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
require('../
|
|
3
|
-
require('
|
|
4
|
-
const
|
|
5
|
-
require('../common-CcfjYnPG.js');
|
|
6
|
-
require('../common-vnMIelAE.js');
|
|
7
|
-
require('../container-C6GtfAPW.js');
|
|
8
|
-
require('../file-DVOELoNv.js');
|
|
9
|
-
require('../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../section-DlvrDoJK.js');
|
|
11
|
-
require('../separator-DL6QH5H1.js');
|
|
12
|
-
require('../text-display-DbMumig_.js');
|
|
13
|
-
require('../v2-DofkPKHs.js');
|
|
14
|
-
require('../element-Bak9llw_.js');
|
|
15
|
-
require('../types-CUZOquUl.js');
|
|
16
|
-
require('../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
const require_CompilerPlugin = require('../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
const require_RuntimePlugin = require('../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../types-q0Nm882H.js');
|
|
22
|
-
require('../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../utils-KsNof0Xz.js');
|
|
25
|
-
require('../types-package-BWArjyBF.js');
|
|
26
|
-
require('../constants-BOOGN85p.js');
|
|
27
|
-
require('../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../signals-ChFMD7mB.js');
|
|
29
|
-
require('../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../router-DHnFRADH.js');
|
|
33
|
-
require('../common-DVM_onKu.js');
|
|
34
|
-
require('../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../commandkit--k6yDJEr.js');
|
|
3
|
+
const require_plugins_CompilerPlugin = require('./CompilerPlugin.js');
|
|
4
|
+
const require_plugins_RuntimePlugin = require('./RuntimePlugin.js');
|
|
36
5
|
|
|
37
6
|
exports.CommandKitPluginRuntime = require_commandkit.CommandKitPluginRuntime;
|
|
38
7
|
exports.CommonDirectiveTransformer = require_commandkit.CommonDirectiveTransformer;
|
|
39
|
-
exports.CompilerPlugin =
|
|
8
|
+
exports.CompilerPlugin = require_plugins_CompilerPlugin.CompilerPlugin;
|
|
40
9
|
exports.CompilerPluginRuntime = require_commandkit.CompilerPluginRuntime;
|
|
41
|
-
exports.RuntimePlugin =
|
|
42
|
-
exports.isCompilerPlugin =
|
|
43
|
-
exports.isRuntimePlugin =
|
|
10
|
+
exports.RuntimePlugin = require_plugins_RuntimePlugin.RuntimePlugin;
|
|
11
|
+
exports.isCompilerPlugin = require_plugins_CompilerPlugin.isCompilerPlugin;
|
|
12
|
+
exports.isRuntimePlugin = require_plugins_RuntimePlugin.isRuntimePlugin;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import { CommandKitPluginRuntime } from "../../analytics-engine-
|
|
2
|
-
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../../element-CAXu1XtK.js";
|
|
6
|
-
import "../../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../../types-CJ-XvOFN.js";
|
|
8
|
-
import "../../Button-4ZUXdA56.js";
|
|
9
|
-
import "../../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../../common-DOCvOVC4.js";
|
|
11
|
-
import "../../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../../container-DHBELeJ3.js";
|
|
18
|
-
import "../../file-DTrr-p09.js";
|
|
19
|
-
import "../../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../../section-Dh_FhPeC.js";
|
|
21
|
-
import "../../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../../index-DSBMRX9A.js";
|
|
24
|
-
import "../../index-DdqikUQD.js";
|
|
25
|
-
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-SHg7J1U_.js";
|
|
27
|
-
import "../../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../../index-DKcmsWXw.js";
|
|
31
|
-
import "../../constants-MKu-Q1jh.js";
|
|
1
|
+
import { F as CommandKitPluginRuntime } from "../../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { CommandKitPluginRuntime };
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require('../../
|
|
3
|
-
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../../common-CcfjYnPG.js');
|
|
6
|
-
require('../../common-vnMIelAE.js');
|
|
7
|
-
require('../../container-C6GtfAPW.js');
|
|
8
|
-
require('../../file-DVOELoNv.js');
|
|
9
|
-
require('../../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../../section-DlvrDoJK.js');
|
|
11
|
-
require('../../separator-DL6QH5H1.js');
|
|
12
|
-
require('../../text-display-DbMumig_.js');
|
|
13
|
-
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../element-Bak9llw_.js');
|
|
15
|
-
require('../../types-CUZOquUl.js');
|
|
16
|
-
require('../../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../../utils-KsNof0Xz.js');
|
|
25
|
-
require('../../types-package-BWArjyBF.js');
|
|
26
|
-
require('../../constants-BOOGN85p.js');
|
|
27
|
-
require('../../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../../signals-ChFMD7mB.js');
|
|
29
|
-
require('../../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../../router-DHnFRADH.js');
|
|
33
|
-
require('../../common-DVM_onKu.js');
|
|
34
|
-
require('../../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.CommandKitPluginRuntime = require_commandkit.CommandKitPluginRuntime;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import { CompilerPluginRuntime } from "../../analytics-engine-
|
|
2
|
-
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../../element-CAXu1XtK.js";
|
|
6
|
-
import "../../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../../types-CJ-XvOFN.js";
|
|
8
|
-
import "../../Button-4ZUXdA56.js";
|
|
9
|
-
import "../../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../../common-DOCvOVC4.js";
|
|
11
|
-
import "../../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../../container-DHBELeJ3.js";
|
|
18
|
-
import "../../file-DTrr-p09.js";
|
|
19
|
-
import "../../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../../section-Dh_FhPeC.js";
|
|
21
|
-
import "../../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../../index-DSBMRX9A.js";
|
|
24
|
-
import "../../index-DdqikUQD.js";
|
|
25
|
-
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-SHg7J1U_.js";
|
|
27
|
-
import "../../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../../index-DKcmsWXw.js";
|
|
31
|
-
import "../../constants-MKu-Q1jh.js";
|
|
1
|
+
import { V as CompilerPluginRuntime } from "../../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { CompilerPluginRuntime };
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require('../../
|
|
3
|
-
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../../common-CcfjYnPG.js');
|
|
6
|
-
require('../../common-vnMIelAE.js');
|
|
7
|
-
require('../../container-C6GtfAPW.js');
|
|
8
|
-
require('../../file-DVOELoNv.js');
|
|
9
|
-
require('../../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../../section-DlvrDoJK.js');
|
|
11
|
-
require('../../separator-DL6QH5H1.js');
|
|
12
|
-
require('../../text-display-DbMumig_.js');
|
|
13
|
-
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../element-Bak9llw_.js');
|
|
15
|
-
require('../../types-CUZOquUl.js');
|
|
16
|
-
require('../../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../../utils-KsNof0Xz.js');
|
|
25
|
-
require('../../types-package-BWArjyBF.js');
|
|
26
|
-
require('../../constants-BOOGN85p.js');
|
|
27
|
-
require('../../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../../signals-ChFMD7mB.js');
|
|
29
|
-
require('../../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../../router-DHnFRADH.js');
|
|
33
|
-
require('../../common-DVM_onKu.js');
|
|
34
|
-
require('../../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.CompilerPluginRuntime = require_commandkit.CompilerPluginRuntime;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../analytics-engine-
|
|
2
|
-
import "../../../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../../../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../../../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../../../element-CAXu1XtK.js";
|
|
6
|
-
import "../../../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../../../types-CJ-XvOFN.js";
|
|
8
|
-
import "../../../Button-4ZUXdA56.js";
|
|
9
|
-
import "../../../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../../../common-DOCvOVC4.js";
|
|
11
|
-
import "../../../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../../../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../../../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../../../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../../../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../../../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../../../container-DHBELeJ3.js";
|
|
18
|
-
import "../../../file-DTrr-p09.js";
|
|
19
|
-
import "../../../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../../../section-Dh_FhPeC.js";
|
|
21
|
-
import "../../../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../../../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../../../index-DSBMRX9A.js";
|
|
24
|
-
import "../../../index-DdqikUQD.js";
|
|
25
|
-
import "../../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../../signals-SHg7J1U_.js";
|
|
27
|
-
import "../../../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../../../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../../../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../../../index-DKcmsWXw.js";
|
|
31
|
-
import "../../../constants-MKu-Q1jh.js";
|
|
1
|
+
import { H as CommonDirectiveTransformer, U as CommonDirectiveTransformerOptions } from "../../../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { CommonDirectiveTransformer, CommonDirectiveTransformerOptions };
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require('../../../
|
|
3
|
-
require('../../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../../../common-CcfjYnPG.js');
|
|
6
|
-
require('../../../common-vnMIelAE.js');
|
|
7
|
-
require('../../../container-C6GtfAPW.js');
|
|
8
|
-
require('../../../file-DVOELoNv.js');
|
|
9
|
-
require('../../../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../../../section-DlvrDoJK.js');
|
|
11
|
-
require('../../../separator-DL6QH5H1.js');
|
|
12
|
-
require('../../../text-display-DbMumig_.js');
|
|
13
|
-
require('../../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../../element-Bak9llw_.js');
|
|
15
|
-
require('../../../types-CUZOquUl.js');
|
|
16
|
-
require('../../../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../../../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../../../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../../../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../../../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../../../types-q0Nm882H.js');
|
|
22
|
-
require('../../../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../../../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../../../utils-KsNof0Xz.js');
|
|
25
|
-
require('../../../types-package-BWArjyBF.js');
|
|
26
|
-
require('../../../constants-BOOGN85p.js');
|
|
27
|
-
require('../../../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../../../signals-ChFMD7mB.js');
|
|
29
|
-
require('../../../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../../../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../../../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../../../router-DHnFRADH.js');
|
|
33
|
-
require('../../../common-DVM_onKu.js');
|
|
34
|
-
require('../../../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../../../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../../../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.CommonDirectiveTransformer = require_commandkit.CommonDirectiveTransformer;
|