commandkit 1.0.0-dev.20250529125116 → 1.0.0-dev.20250530015910
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/dist/ActionRow-CmTHbo2t.js +25 -0
- package/dist/ActionRow-CmTHbo2t.js.map +1 -0
- package/dist/ActionRow-D0wafJhZ.d.ts +16 -0
- package/dist/Button-Bl5nbwTS.d.ts +32 -0
- package/dist/ButtonKit-BSI7lCI0.d.ts +68 -0
- package/dist/ChannelSelectMenuKit-L15A2jpT.d.ts +51 -0
- package/dist/CommandKit-CDlCsGCx.d.ts +926 -0
- package/dist/CommandKit-DDrQtQns.js +3281 -0
- package/dist/CommandKit-DDrQtQns.js.map +1 -0
- package/dist/CommandKit.d.ts +33 -13
- package/dist/CommandKit.js +46 -16
- package/dist/CommandKitEventsChannel-B6LKgxmv.js +44 -0
- package/dist/CommandKitEventsChannel-B6LKgxmv.js.map +1 -0
- package/dist/CommandsRouter-BHaPno8o.js +127 -0
- package/dist/CommandsRouter-BHaPno8o.js.map +1 -0
- package/dist/CommandsRouter-C7X-eXE2.d.ts +67 -0
- package/dist/CompilerPlugin-XzuGixkC.js +32 -0
- package/dist/CompilerPlugin-XzuGixkC.js.map +1 -0
- package/dist/CompilerPluginRuntime-zFCCw1kM.js +70 -0
- package/dist/CompilerPluginRuntime-zFCCw1kM.js.map +1 -0
- package/dist/DefaultLogger-D3G0rGnV.d.ts +30 -0
- package/dist/EventInterceptor-D_oEWSnF.d.ts +84 -0
- package/dist/EventInterceptor-DtRINyTP.js +140 -0
- package/dist/EventInterceptor-DtRINyTP.js.map +1 -0
- package/dist/EventWorkerContext-C0e23GNY.d.ts +19 -0
- package/dist/EventWorkerContext-XZGSHn5F.js +45 -0
- package/dist/EventWorkerContext-XZGSHn5F.js.map +1 -0
- package/dist/EventsRouter-BacqK6z3.d.ts +90 -0
- package/dist/EventsRouter-CqnrlbjN.js +133 -0
- package/dist/EventsRouter-CqnrlbjN.js.map +1 -0
- package/dist/ILogger-BTMQuall.d.ts +11 -0
- package/dist/ILogger-DucYb0bG.js +0 -0
- package/dist/Logger-A3wjB7L1.d.ts +17 -0
- package/dist/MentionableSelectMenuKit-BiUSKUtZ.d.ts +51 -0
- package/dist/MessageCommandParser-B13Pkwo9.js +200 -0
- package/dist/MessageCommandParser-B13Pkwo9.js.map +1 -0
- package/dist/MessageCommandParser-tzroBwij.d.ts +62 -0
- package/dist/Modal-Cxm6cs5c.d.ts +58 -0
- package/dist/ModalKit-CKtQ8eXW.d.ts +66 -0
- package/dist/PluginCommon-DPqnQngK.js +48 -0
- package/dist/PluginCommon-DPqnQngK.js.map +1 -0
- package/dist/RoleSelectMenuKit-BSMKkru2.d.ts +51 -0
- package/dist/RuntimePlugin-CKsd83M3.js +130 -0
- package/dist/RuntimePlugin-CKsd83M3.js.map +1 -0
- package/dist/SelectMenu-b7jgrkjO.d.ts +36 -0
- package/dist/StringSelectMenuKit-B9FHTe48.d.ts +51 -0
- package/dist/UserSelectMenuKit-DiP0imyo.d.ts +51 -0
- package/dist/app/commands/AppCommandRunner.d.ts +33 -13
- package/dist/app/commands/AppCommandRunner.js +38 -3
- package/dist/app/commands/Context.d.ts +33 -13
- package/dist/app/commands/Context.js +40 -3
- package/dist/app/commands/MessageCommandParser.d.ts +2 -60
- package/dist/app/commands/MessageCommandParser.js +5 -2
- package/dist/app/commands/helpers.d.ts +2 -7
- package/dist/app/commands/helpers.js +4 -2
- package/dist/app/events/EventWorkerContext.d.ts +34 -28
- package/dist/app/events/EventWorkerContext.js +6 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +33 -13
- package/dist/app/handlers/AppCommandHandler.js +38 -8
- package/dist/app/handlers/AppEventsHandler.d.ts +33 -13
- package/dist/app/handlers/AppEventsHandler.js +38 -3
- package/dist/app/index.d.ts +33 -15
- package/dist/app/index.js +51 -8
- package/dist/app/middleware/signals.d.ts +2 -18
- package/dist/app/middleware/signals.js +6 -2
- package/dist/app/register/CommandRegistrar.d.ts +33 -13
- package/dist/app/register/CommandRegistrar.js +38 -3
- package/dist/app/router/CommandsRouter.d.ts +2 -65
- package/dist/app/router/CommandsRouter.js +3 -2
- package/dist/app/router/EventsRouter.d.ts +2 -88
- package/dist/app/router/EventsRouter.js +3 -2
- package/dist/app/router/index.d.ts +4 -3
- package/dist/app/router/index.js +6 -2
- package/dist/app-CXCbKsPz.js +0 -0
- package/dist/app-process-uCX52YaE.js +48 -0
- package/dist/app-process-uCX52YaE.js.map +1 -0
- package/dist/build-Bkb5t3XA.js +122 -0
- package/dist/build-Bkb5t3XA.js.map +1 -0
- package/dist/chunk-nOFOJqeH.js +30 -0
- package/dist/cli/app-process.d.ts +5 -3
- package/dist/cli/app-process.js +8 -3
- package/dist/cli/build.d.ts +46 -21
- package/dist/cli/build.js +40 -48
- package/dist/cli/common.d.ts +39 -19
- package/dist/cli/common.js +13 -10
- package/dist/cli/development.d.ts +3 -1
- package/dist/cli/development.js +185 -50
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +7 -5
- package/dist/cli/env.js +9 -2
- package/dist/cli/generators.d.ts +3 -1
- package/dist/cli/generators.js +64 -15
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.d.ts +3 -1
- package/dist/cli/information.js +110 -5
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +2 -10
- package/dist/cli/init.js +4 -99
- package/dist/cli/parse-env.d.ts +3 -1
- package/dist/cli/parse-env.js +53 -1
- package/dist/cli/parse-env.js.map +1 -1
- package/dist/cli/production.d.ts +5 -3
- package/dist/cli/production.js +68 -46
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.d.ts +3 -1
- package/dist/cli/type-checker.js +7 -5
- package/dist/cli/utils.d.ts +4 -2
- package/dist/cli/utils.js +3 -2
- package/dist/colors-Cd4Oz-r-.js +14 -0
- package/dist/colors-Cd4Oz-r-.js.map +1 -0
- package/dist/common-CcfjYnPG.js +0 -0
- package/dist/common-CeO-vn8Y.js +14 -0
- package/dist/common-CeO-vn8Y.js.map +1 -0
- package/dist/common-DirpDCa6.js +182 -0
- package/dist/common-DirpDCa6.js.map +1 -0
- package/dist/common-pvPJVTfe.d.ts +25 -0
- package/dist/components/common/EventInterceptor.d.ts +2 -82
- package/dist/components/common/EventInterceptor.js +3 -2
- package/dist/components/common/element.d.ts +5 -29
- package/dist/components/common/element.js +10 -2
- package/dist/components/common/types.d.ts +2 -3
- package/dist/components/common/types.js +1 -2
- package/dist/components/index.d.ts +24 -22
- package/dist/components/index.js +72 -16
- package/dist/components/v1/action-row/ActionRow.d.ts +6 -18
- package/dist/components/v1/action-row/ActionRow.js +3 -2
- package/dist/components/v1/button/Button.d.ts +7 -31
- package/dist/components/v1/button/Button.js +38 -16
- package/dist/components/v1/button/ButtonKit.d.ts +3 -66
- package/dist/components/v1/button/ButtonKit.js +38 -16
- package/dist/components/v1/modal/Modal.d.ts +7 -57
- package/dist/components/v1/modal/Modal.js +41 -16
- package/dist/components/v1/modal/ModalKit.d.ts +3 -64
- package/dist/components/v1/modal/ModalKit.js +38 -16
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/SelectMenu.d.ts +10 -40
- package/dist/components/v1/select-menu/SelectMenu.js +43 -16
- package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +4 -49
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +38 -16
- package/dist/components/v1/select-menu/common.d.ts +3 -23
- package/dist/components/v1/select-menu/common.js +1 -2
- package/dist/components/v2/common.d.ts +5 -3
- package/dist/components/v2/common.js +3 -2
- package/dist/components/v2/container.d.ts +2 -8
- package/dist/components/v2/container.js +4 -2
- package/dist/components/v2/file.d.ts +2 -8
- package/dist/components/v2/file.js +3 -2
- package/dist/components/v2/index.d.ts +8 -7
- package/dist/components/v2/index.js +17 -2
- package/dist/components/v2/media-gallery.d.ts +2 -15
- package/dist/components/v2/media-gallery.js +5 -2
- package/dist/components/v2/section.d.ts +2 -16
- package/dist/components/v2/section.js +5 -2
- package/dist/components/v2/separator.d.ts +2 -7
- package/dist/components/v2/separator.js +3 -2
- package/dist/components/v2/text-display.d.ts +2 -10
- package/dist/components/v2/text-display.js +3 -2
- package/dist/config/config.d.ts +36 -28
- package/dist/config/config.js +39 -3
- package/dist/config/default.d.ts +37 -17
- package/dist/config/default.js +38 -3
- package/dist/config/loader.d.ts +37 -17
- package/dist/config/loader.js +39 -11
- package/dist/config/types.d.ts +34 -83
- package/dist/config/types.js +0 -2
- package/dist/config/utils.d.ts +35 -26
- package/dist/config/utils.js +15 -1
- package/dist/config/utils.js.map +1 -1
- package/dist/config-Dyb-zl9w.d.ts +17 -0
- package/dist/constants-Ce6w4OFe.d.ts +17 -0
- package/dist/constants-DOPSzXI0.js +47 -0
- package/dist/constants-DOPSzXI0.js.map +1 -0
- package/dist/container-CpuiLsZM.js +33 -0
- package/dist/container-CpuiLsZM.js.map +1 -0
- package/dist/container-CwEATQy2.d.ts +10 -0
- package/dist/context/async-context.d.ts +33 -13
- package/dist/context/async-context.js +44 -16
- package/dist/context/environment.d.ts +33 -13
- package/dist/context/environment.js +41 -3
- package/dist/element-D_nyVwgB.d.ts +30 -0
- package/dist/element-hdSqnIpC.js +62 -0
- package/dist/element-hdSqnIpC.js.map +1 -0
- package/dist/env-DKFSgEcR.js +68 -0
- package/dist/env-DKFSgEcR.js.map +1 -0
- package/dist/error-codes-C_UO39jz.js +53 -0
- package/dist/error-codes-C_UO39jz.js.map +1 -0
- package/dist/events/CommandKitEventsChannel.d.ts +33 -13
- package/dist/events/CommandKitEventsChannel.js +3 -2
- package/dist/feature-flags-BJp6kYmi.js +85 -0
- package/dist/feature-flags-BJp6kYmi.js.map +1 -0
- package/dist/file-BdyYwkaI.d.ts +10 -0
- package/dist/file-DE69SSOP.js +18 -0
- package/dist/file-DE69SSOP.js.map +1 -0
- package/dist/flags/feature-flags.d.ts +33 -13
- package/dist/flags/feature-flags.js +40 -16
- package/dist/flags/store.d.ts +33 -13
- package/dist/flags/store.js +3 -2
- package/dist/helpers-CswC9gKF.js +25 -0
- package/dist/helpers-CswC9gKF.js.map +1 -0
- package/dist/helpers-DAmE106r.d.ts +9 -0
- package/dist/index-CUPkUUOR.d.ts +1 -0
- package/dist/index-Dw5cCt-A.d.ts +1 -0
- package/dist/index-E7Wvm5uX.d.ts +1 -0
- package/dist/index.d.ts +43 -51
- package/dist/index.js +147 -102
- package/dist/index.js.map +1 -1
- package/dist/init--p1nl1NO.d.ts +13 -0
- package/dist/init-D2me-V0n.js +67 -0
- package/dist/init-D2me-V0n.js.map +1 -0
- package/dist/logger/DefaultLogger.d.ts +3 -28
- package/dist/logger/DefaultLogger.js +38 -3
- package/dist/logger/ILogger.d.ts +2 -9
- package/dist/logger/ILogger.js +1 -2
- package/dist/logger/Logger.d.ts +3 -15
- package/dist/logger/Logger.js +39 -3
- package/dist/media-gallery-DCu02VXc.d.ts +17 -0
- package/dist/media-gallery-nUEHqKVF.js +36 -0
- package/dist/media-gallery-nUEHqKVF.js.map +1 -0
- package/dist/plugins/CompilerPlugin.d.ts +33 -13
- package/dist/plugins/CompilerPlugin.js +5 -2
- package/dist/plugins/PluginCommon.d.ts +33 -13
- package/dist/plugins/PluginCommon.js +5 -2
- package/dist/plugins/RuntimePlugin.d.ts +33 -13
- package/dist/plugins/RuntimePlugin.js +5 -2
- package/dist/plugins/index.d.ts +33 -15
- package/dist/plugins/index.js +44 -3
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +38 -3
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +3 -3
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +33 -26
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +38 -3
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +40 -19
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +38 -3
- package/dist/plugins/plugin-runtime/runtime.d.ts +33 -13
- package/dist/plugins/plugin-runtime/runtime.js +1 -2
- package/dist/plugins/plugin-runtime/types.d.ts +2 -72
- package/dist/plugins/plugin-runtime/types.js +1 -2
- package/dist/plugins/types.d.ts +33 -13
- package/dist/plugins/types.js +1 -2
- package/dist/resolve-file-url-pO9_rLft.js +23 -0
- package/dist/resolve-file-url-pO9_rLft.js.map +1 -0
- package/dist/router-Dn35v30f.js +0 -0
- package/dist/runtime-ByJtSXs_.js +0 -0
- package/dist/section-D6t7tyEZ.js +40 -0
- package/dist/section-D6t7tyEZ.js.map +1 -0
- package/dist/section-fktaECHL.d.ts +18 -0
- package/dist/separator-CuesaLrC.d.ts +8 -0
- package/dist/separator-DYAFK-Jj.js +17 -0
- package/dist/separator-DYAFK-Jj.js.map +1 -0
- package/dist/signals-Bp0bzjE6.js +46 -0
- package/dist/signals-Bp0bzjE6.js.map +1 -0
- package/dist/signals-DUoWkeZ7.d.ts +20 -0
- package/dist/store-Ci6ib2C9.js +14 -0
- package/dist/store-Ci6ib2C9.js.map +1 -0
- package/dist/text-display-DNMwmGHJ.d.ts +12 -0
- package/dist/text-display-Dy6JHB5X.js +19 -0
- package/dist/text-display-Dy6JHB5X.js.map +1 -0
- package/dist/type-checker-FOYNSGX0.js +84 -0
- package/dist/type-checker-FOYNSGX0.js.map +1 -0
- package/dist/types-0ADL_reY.d.ts +73 -0
- package/dist/types-B5VPP9ig.js +0 -0
- package/dist/types-BDwNROY2.d.ts +74 -0
- package/dist/types-Bq0EWaM3.js +0 -0
- package/dist/types-CJ-XvOFN.d.ts +5 -0
- package/dist/types-Cdh4uaFR.js +0 -0
- package/dist/types-package-DRhFn59I.js +66 -0
- package/dist/types-package-DRhFn59I.js.map +1 -0
- package/dist/types.d.ts +33 -13
- package/dist/types.js +0 -2
- package/dist/utilities-5Jw5BdE1.d.ts +42 -0
- package/dist/utils/clone.d.ts +3 -1
- package/dist/utils/clone.js +8 -1
- package/dist/utils/clone.js.map +1 -1
- package/dist/utils/colors.d.ts +5 -3
- package/dist/utils/colors.js +4 -2
- package/dist/utils/constants.d.ts +2 -15
- package/dist/utils/constants.js +7 -2
- package/dist/utils/dev-hooks.d.ts +33 -13
- package/dist/utils/dev-hooks.js +38 -3
- package/dist/utils/error-codes.d.ts +9 -7
- package/dist/utils/error-codes.js +6 -2
- package/dist/utils/get-paths.d.ts +3 -1
- package/dist/utils/get-paths.js +33 -1
- package/dist/utils/get-paths.js.map +1 -1
- package/dist/utils/resolve-file-url.d.ts +3 -1
- package/dist/utils/resolve-file-url.js +3 -2
- package/dist/utils/types-package.d.ts +3 -1
- package/dist/utils/types-package.js +5 -14
- package/dist/utils/utilities.d.ts +2 -40
- package/dist/utils/utilities.js +44 -3
- package/dist/utils/warn-unstable.d.ts +3 -1
- package/dist/utils/warn-unstable.js +4 -2
- package/dist/utils-C0V7zD7R.d.ts +10 -0
- package/dist/utils-IYtoeTur.js +19 -0
- package/dist/utils-IYtoeTur.js.map +1 -0
- package/dist/v2-DofkPKHs.js +0 -0
- package/dist/version-DnRxh8U8.js +15 -0
- package/dist/version-DnRxh8U8.js.map +1 -0
- package/dist/version-SMsmj3M1.d.ts +8 -0
- package/dist/version.d.ts +2 -6
- package/dist/version.js +3 -2
- package/dist/warn-unstable-V20WCBDd.js +26 -0
- package/dist/warn-unstable-V20WCBDd.js.map +1 -0
- package/package.json +5 -4
- package/dist/CommandKit-jZCy9fZX.d.ts +0 -914
- package/dist/CommandKit.js.map +0 -1
- package/dist/app/commands/AppCommandRunner.js.map +0 -1
- package/dist/app/commands/Context.js.map +0 -1
- package/dist/app/commands/MessageCommandParser.js.map +0 -1
- package/dist/app/commands/helpers.js.map +0 -1
- package/dist/app/events/EventWorkerContext.js.map +0 -1
- package/dist/app/handlers/AppCommandHandler.js.map +0 -1
- package/dist/app/handlers/AppEventsHandler.js.map +0 -1
- package/dist/app/index.js.map +0 -1
- package/dist/app/middleware/signals.js.map +0 -1
- package/dist/app/register/CommandRegistrar.js.map +0 -1
- package/dist/app/router/CommandsRouter.js.map +0 -1
- package/dist/app/router/EventsRouter.js.map +0 -1
- package/dist/app/router/index.js.map +0 -1
- package/dist/cli/app-process.js.map +0 -1
- package/dist/cli/build.js.map +0 -1
- package/dist/cli/common.js.map +0 -1
- package/dist/cli/env.js.map +0 -1
- package/dist/cli/init.js.map +0 -1
- package/dist/cli/type-checker.js.map +0 -1
- package/dist/cli/utils.js.map +0 -1
- package/dist/components/common/EventInterceptor.js.map +0 -1
- package/dist/components/common/element.js.map +0 -1
- package/dist/components/common/types.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/v1/action-row/ActionRow.js.map +0 -1
- package/dist/components/v1/button/Button.js.map +0 -1
- package/dist/components/v1/button/ButtonKit.js.map +0 -1
- package/dist/components/v1/modal/Modal.js.map +0 -1
- package/dist/components/v1/modal/ModalKit.js.map +0 -1
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/SelectMenu.js.map +0 -1
- package/dist/components/v1/select-menu/StringSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/UserSelectMenuKit.js.map +0 -1
- package/dist/components/v1/select-menu/common.js.map +0 -1
- package/dist/components/v2/common.js.map +0 -1
- package/dist/components/v2/container.js.map +0 -1
- package/dist/components/v2/file.js.map +0 -1
- package/dist/components/v2/index.js.map +0 -1
- package/dist/components/v2/media-gallery.js.map +0 -1
- package/dist/components/v2/section.js.map +0 -1
- package/dist/components/v2/separator.js.map +0 -1
- package/dist/components/v2/text-display.js.map +0 -1
- package/dist/config/config.js.map +0 -1
- package/dist/config/default.js.map +0 -1
- package/dist/config/loader.js.map +0 -1
- package/dist/config/types.js.map +0 -1
- package/dist/context/async-context.js.map +0 -1
- package/dist/context/environment.js.map +0 -1
- package/dist/events/CommandKitEventsChannel.js.map +0 -1
- package/dist/flags/feature-flags.js.map +0 -1
- package/dist/flags/store.js.map +0 -1
- package/dist/logger/DefaultLogger.js.map +0 -1
- package/dist/logger/ILogger.js.map +0 -1
- package/dist/logger/Logger.js.map +0 -1
- package/dist/plugins/CompilerPlugin.js.map +0 -1
- package/dist/plugins/PluginCommon.js.map +0 -1
- package/dist/plugins/RuntimePlugin.js.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js.map +0 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js.map +0 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js.map +0 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js.map +0 -1
- package/dist/plugins/plugin-runtime/runtime.js.map +0 -1
- package/dist/plugins/plugin-runtime/types.js.map +0 -1
- package/dist/plugins/types.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/colors.js.map +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/dev-hooks.js.map +0 -1
- package/dist/utils/error-codes.js.map +0 -1
- package/dist/utils/resolve-file-url.js.map +0 -1
- package/dist/utils/types-package.js.map +0 -1
- package/dist/utils/utilities.js.map +0 -1
- package/dist/utils/warn-unstable.js.map +0 -1
- package/dist/version.js.map +0 -1
package/dist/config/default.d.ts
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import "../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../element-D_nyVwgB.js";
|
|
6
|
+
import "../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../types-CJ-XvOFN.js";
|
|
8
|
+
import "../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../common-pvPJVTfe.js";
|
|
11
|
+
import "../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../container-CwEATQy2.js";
|
|
18
|
+
import "../file-BdyYwkaI.js";
|
|
19
|
+
import "../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../section-fktaECHL.js";
|
|
21
|
+
import "../separator-CuesaLrC.js";
|
|
22
|
+
import "../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../index-Dw5cCt-A.js";
|
|
24
|
+
import "../index-E7Wvm5uX.js";
|
|
25
|
+
import "../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../helpers-DAmE106r.js";
|
|
28
|
+
import "../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../index-CUPkUUOR.js";
|
|
31
|
+
import "../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../types-BDwNROY2.js";
|
|
33
|
+
import "../types-0ADL_reY.js";
|
|
34
|
+
import { ResolvedCommandKitConfig } from "../utils-C0V7zD7R.js";
|
|
17
35
|
|
|
36
|
+
//#region src/config/default.d.ts
|
|
18
37
|
declare const defaultConfig: ResolvedCommandKitConfig;
|
|
19
|
-
|
|
38
|
+
//#endregion
|
|
20
39
|
export { defaultConfig };
|
|
40
|
+
//# sourceMappingURL=default.d.ts.map
|
package/dist/config/default.js
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require('../colors-Cd4Oz-r-.js');
|
|
2
|
+
require('../ActionRow-CmTHbo2t.js');
|
|
3
|
+
require('../error-codes-C_UO39jz.js');
|
|
4
|
+
const require_CommandKit = require('../CommandKit-DDrQtQns.js');
|
|
5
|
+
require('../common-CcfjYnPG.js');
|
|
6
|
+
require('../common-CeO-vn8Y.js');
|
|
7
|
+
require('../container-CpuiLsZM.js');
|
|
8
|
+
require('../file-DE69SSOP.js');
|
|
9
|
+
require('../media-gallery-nUEHqKVF.js');
|
|
10
|
+
require('../section-D6t7tyEZ.js');
|
|
11
|
+
require('../separator-DYAFK-Jj.js');
|
|
12
|
+
require('../text-display-Dy6JHB5X.js');
|
|
13
|
+
require('../v2-DofkPKHs.js');
|
|
14
|
+
require('../warn-unstable-V20WCBDd.js');
|
|
15
|
+
require('../element-hdSqnIpC.js');
|
|
16
|
+
require('../types-B5VPP9ig.js');
|
|
17
|
+
require('../EventInterceptor-DtRINyTP.js');
|
|
18
|
+
require('../constants-DOPSzXI0.js');
|
|
19
|
+
require('../PluginCommon-DPqnQngK.js');
|
|
20
|
+
require('../CompilerPlugin-XzuGixkC.js');
|
|
21
|
+
require('../RuntimePlugin-CKsd83M3.js');
|
|
22
|
+
require('../types-Bq0EWaM3.js');
|
|
23
|
+
require('../CompilerPluginRuntime-zFCCw1kM.js');
|
|
24
|
+
require('../types-Cdh4uaFR.js');
|
|
25
|
+
require('../runtime-ByJtSXs_.js');
|
|
26
|
+
require('../EventWorkerContext-XZGSHn5F.js');
|
|
27
|
+
require('../resolve-file-url-pO9_rLft.js');
|
|
28
|
+
require('../MessageCommandParser-B13Pkwo9.js');
|
|
29
|
+
require('../signals-Bp0bzjE6.js');
|
|
30
|
+
require('../types-package-DRhFn59I.js');
|
|
31
|
+
require('../CommandsRouter-BHaPno8o.js');
|
|
32
|
+
require('../EventsRouter-CqnrlbjN.js');
|
|
33
|
+
require('../router-Dn35v30f.js');
|
|
34
|
+
require('../common-DirpDCa6.js');
|
|
35
|
+
require('../CommandKitEventsChannel-B6LKgxmv.js');
|
|
36
|
+
require('../store-Ci6ib2C9.js');
|
|
37
|
+
|
|
38
|
+
exports.defaultConfig = require_CommandKit.defaultConfig;
|
package/dist/config/loader.d.ts
CHANGED
|
@@ -1,25 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import "../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../element-D_nyVwgB.js";
|
|
6
|
+
import "../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../types-CJ-XvOFN.js";
|
|
8
|
+
import "../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../common-pvPJVTfe.js";
|
|
11
|
+
import "../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../container-CwEATQy2.js";
|
|
18
|
+
import "../file-BdyYwkaI.js";
|
|
19
|
+
import "../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../section-fktaECHL.js";
|
|
21
|
+
import "../separator-CuesaLrC.js";
|
|
22
|
+
import "../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../index-Dw5cCt-A.js";
|
|
24
|
+
import "../index-E7Wvm5uX.js";
|
|
25
|
+
import "../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../helpers-DAmE106r.js";
|
|
28
|
+
import "../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../index-CUPkUUOR.js";
|
|
31
|
+
import "../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../types-BDwNROY2.js";
|
|
33
|
+
import { CommandKitConfig } from "../types-0ADL_reY.js";
|
|
34
|
+
import { DeepRequired } from "../utils-C0V7zD7R.js";
|
|
17
35
|
|
|
36
|
+
//#region src/config/loader.d.ts
|
|
18
37
|
declare function getPossibleConfigPaths(root: string): string[];
|
|
19
38
|
/**
|
|
20
39
|
* Load the configuration file from the given entrypoint.
|
|
21
40
|
* @param entrypoint The entrypoint to load the configuration file from. Defaults to the current working directory.
|
|
22
41
|
*/
|
|
23
42
|
declare function loadConfigFile(entrypoint?: string): Promise<DeepRequired<CommandKitConfig>>;
|
|
24
|
-
|
|
43
|
+
//#endregion
|
|
25
44
|
export { getPossibleConfigPaths, loadConfigFile };
|
|
45
|
+
//# sourceMappingURL=loader.d.ts.map
|
package/dist/config/loader.js
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
require('../colors-Cd4Oz-r-.js');
|
|
2
|
+
require('../ActionRow-CmTHbo2t.js');
|
|
3
|
+
require('../error-codes-C_UO39jz.js');
|
|
4
|
+
const require_CommandKit = require('../CommandKit-DDrQtQns.js');
|
|
5
|
+
require('../common-CcfjYnPG.js');
|
|
6
|
+
require('../common-CeO-vn8Y.js');
|
|
7
|
+
require('../container-CpuiLsZM.js');
|
|
8
|
+
require('../file-DE69SSOP.js');
|
|
9
|
+
require('../media-gallery-nUEHqKVF.js');
|
|
10
|
+
require('../section-D6t7tyEZ.js');
|
|
11
|
+
require('../separator-DYAFK-Jj.js');
|
|
12
|
+
require('../text-display-Dy6JHB5X.js');
|
|
13
|
+
require('../v2-DofkPKHs.js');
|
|
14
|
+
require('../warn-unstable-V20WCBDd.js');
|
|
15
|
+
require('../element-hdSqnIpC.js');
|
|
16
|
+
require('../types-B5VPP9ig.js');
|
|
17
|
+
require('../EventInterceptor-DtRINyTP.js');
|
|
18
|
+
require('../constants-DOPSzXI0.js');
|
|
19
|
+
require('../PluginCommon-DPqnQngK.js');
|
|
20
|
+
require('../CompilerPlugin-XzuGixkC.js');
|
|
21
|
+
require('../RuntimePlugin-CKsd83M3.js');
|
|
22
|
+
require('../types-Bq0EWaM3.js');
|
|
23
|
+
require('../CompilerPluginRuntime-zFCCw1kM.js');
|
|
24
|
+
require('../types-Cdh4uaFR.js');
|
|
25
|
+
require('../runtime-ByJtSXs_.js');
|
|
26
|
+
require('../EventWorkerContext-XZGSHn5F.js');
|
|
27
|
+
require('../resolve-file-url-pO9_rLft.js');
|
|
28
|
+
require('../MessageCommandParser-B13Pkwo9.js');
|
|
29
|
+
require('../signals-Bp0bzjE6.js');
|
|
30
|
+
require('../types-package-DRhFn59I.js');
|
|
31
|
+
require('../CommandsRouter-BHaPno8o.js');
|
|
32
|
+
require('../EventsRouter-CqnrlbjN.js');
|
|
33
|
+
require('../router-Dn35v30f.js');
|
|
34
|
+
require('../common-DirpDCa6.js');
|
|
35
|
+
require('../CommandKitEventsChannel-B6LKgxmv.js');
|
|
36
|
+
require('../store-Ci6ib2C9.js');
|
|
37
|
+
|
|
38
|
+
exports.getPossibleConfigPaths = require_CommandKit.getPossibleConfigPaths;
|
|
39
|
+
exports.loadConfigFile = require_CommandKit.loadConfigFile;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,83 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* Whether to enable macro function compilation in development mode.
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
development?: boolean;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* The typescript configuration to use with CommandKit.
|
|
43
|
-
*/
|
|
44
|
-
typescript?: {
|
|
45
|
-
/**
|
|
46
|
-
* Whether to ignore type checking during builds.
|
|
47
|
-
*/
|
|
48
|
-
ignoreBuildErrors?: boolean;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Whether to generate static command handler data in production builds.
|
|
52
|
-
*/
|
|
53
|
-
static?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Statically define the environment variables to use.
|
|
56
|
-
*/
|
|
57
|
-
env?: Record<string, string>;
|
|
58
|
-
/**
|
|
59
|
-
* The custom build directory name to use.
|
|
60
|
-
* @default `dist`
|
|
61
|
-
*/
|
|
62
|
-
distDir?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Whether or not to enable the source map generation.
|
|
65
|
-
*/
|
|
66
|
-
sourceMap?: {
|
|
67
|
-
/**
|
|
68
|
-
* Whether to enable source map generation in development mode.
|
|
69
|
-
*/
|
|
70
|
-
development?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Whether to enable source map generation in production mode.
|
|
73
|
-
*/
|
|
74
|
-
production?: boolean;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Whether or not to enable the typed commands.
|
|
78
|
-
* @default true
|
|
79
|
-
*/
|
|
80
|
-
typedCommands?: boolean;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export type { CommandKitConfig };
|
|
1
|
+
import "../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../element-D_nyVwgB.js";
|
|
6
|
+
import "../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../types-CJ-XvOFN.js";
|
|
8
|
+
import "../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../common-pvPJVTfe.js";
|
|
11
|
+
import "../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../container-CwEATQy2.js";
|
|
18
|
+
import "../file-BdyYwkaI.js";
|
|
19
|
+
import "../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../section-fktaECHL.js";
|
|
21
|
+
import "../separator-CuesaLrC.js";
|
|
22
|
+
import "../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../index-Dw5cCt-A.js";
|
|
24
|
+
import "../index-E7Wvm5uX.js";
|
|
25
|
+
import "../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../helpers-DAmE106r.js";
|
|
28
|
+
import "../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../index-CUPkUUOR.js";
|
|
31
|
+
import "../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../types-BDwNROY2.js";
|
|
33
|
+
import { CommandKitConfig } from "../types-0ADL_reY.js";
|
|
34
|
+
export { CommandKitConfig };
|
package/dist/config/types.js
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(n,o,a,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of m(o))!l.call(n,i)&&i!==a&&e(n,i,{get:()=>o[i],enumerable:!(r=t(o,i))||r.enumerable});return n};var p=n=>d(e({},"__esModule",{value:!0}),n);var s={};module.exports=p(s);
|
|
2
|
-
//# sourceMappingURL=types.js.map
|
package/dist/config/utils.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import "../CommandKit-CDlCsGCx.js";
|
|
2
|
+
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
|
+
import "../ButtonKit-BSI7lCI0.js";
|
|
4
|
+
import "../ModalKit-CKtQ8eXW.js";
|
|
5
|
+
import "../element-D_nyVwgB.js";
|
|
6
|
+
import "../ActionRow-D0wafJhZ.js";
|
|
7
|
+
import "../types-CJ-XvOFN.js";
|
|
8
|
+
import "../Button-Bl5nbwTS.js";
|
|
9
|
+
import "../Modal-Cxm6cs5c.js";
|
|
10
|
+
import "../common-pvPJVTfe.js";
|
|
11
|
+
import "../StringSelectMenuKit-B9FHTe48.js";
|
|
12
|
+
import "../ChannelSelectMenuKit-L15A2jpT.js";
|
|
13
|
+
import "../MentionableSelectMenuKit-BiUSKUtZ.js";
|
|
14
|
+
import "../UserSelectMenuKit-DiP0imyo.js";
|
|
15
|
+
import "../RoleSelectMenuKit-BSMKkru2.js";
|
|
16
|
+
import "../SelectMenu-b7jgrkjO.js";
|
|
17
|
+
import "../container-CwEATQy2.js";
|
|
18
|
+
import "../file-BdyYwkaI.js";
|
|
19
|
+
import "../media-gallery-DCu02VXc.js";
|
|
20
|
+
import "../section-fktaECHL.js";
|
|
21
|
+
import "../separator-CuesaLrC.js";
|
|
22
|
+
import "../text-display-DNMwmGHJ.js";
|
|
23
|
+
import "../index-Dw5cCt-A.js";
|
|
24
|
+
import "../index-E7Wvm5uX.js";
|
|
25
|
+
import "../MessageCommandParser-tzroBwij.js";
|
|
26
|
+
import "../signals-DUoWkeZ7.js";
|
|
27
|
+
import "../helpers-DAmE106r.js";
|
|
28
|
+
import "../CommandsRouter-C7X-eXE2.js";
|
|
29
|
+
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
+
import "../index-CUPkUUOR.js";
|
|
31
|
+
import "../constants-Ce6w4OFe.js";
|
|
32
|
+
import "../types-BDwNROY2.js";
|
|
33
|
+
import "../types-0ADL_reY.js";
|
|
34
|
+
import { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep } from "../utils-C0V7zD7R.js";
|
|
35
|
+
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
package/dist/config/utils.js
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
//#region src/config/utils.ts
|
|
3
|
+
const mergeDeep = (target, source) => {
|
|
4
|
+
const isObject = (obj) => obj && typeof obj === "object" && !Array.isArray(obj);
|
|
5
|
+
const output = { ...target };
|
|
6
|
+
if (isObject(target) && isObject(source)) Object.keys(source).forEach((key) => {
|
|
7
|
+
if (isObject(source[key])) if (!(key in target)) Object.assign(output, { [key]: source[key] });
|
|
8
|
+
else output[key] = mergeDeep(target[key], source[key]);
|
|
9
|
+
else Object.assign(output, { [key]: source[key] });
|
|
10
|
+
});
|
|
11
|
+
return output;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.mergeDeep = mergeDeep;
|
|
2
16
|
//# sourceMappingURL=utils.js.map
|
package/dist/config/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/utils.ts"],"sourcesContent":["import { CommandKitConfig } from './types';\n\nexport type DeepRequired<T> = {
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../src/config/utils.ts"],"sourcesContent":["import { CommandKitConfig } from './types';\n\nexport type DeepRequired<T> = {\n [P in keyof T]-?: DeepRequired<T[P]>;\n};\n\nexport type DeepPartial<T> = {\n [P in keyof T]?: DeepPartial<T[P]>;\n};\n\nexport const mergeDeep = <T extends Record<string, any>>(\n target: T,\n source: T,\n): T => {\n const isObject = (obj: unknown) =>\n obj && typeof obj === 'object' && !Array.isArray(obj);\n\n const output: T = { ...target };\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach((key) => {\n if (isObject(source[key])) {\n if (!(key in target)) {\n Object.assign(output, { [key]: source[key] });\n } else {\n output[key as keyof T] = mergeDeep(target[key], source[key]);\n }\n } else {\n Object.assign(output, { [key]: source[key] });\n }\n });\n }\n\n return output as T;\n};\n\nexport type ResolvedCommandKitConfig = DeepRequired<CommandKitConfig>;\n"],"mappings":";;AAUA,MAAa,YAAY,CACzB,QACA,WACO;CACL,MAAM,WAAW,CAAC,QAClB,cAAc,QAAQ,aAAa,MAAM,QAAQ,IAAI;CAErD,MAAM,SAAY,EAAE,GAAG,OAAQ;AAC/B,KAAI,SAAS,OAAO,IAAI,SAAS,OAAO,CACtC,QAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,QAAQ;AACnC,MAAI,SAAS,OAAO,KAAK,CACvB,OAAM,OAAO,QACX,QAAO,OAAO,QAAQ,GAAG,MAAM,OAAO,KAAM,EAAC;MAE7C,QAAO,OAAkB,UAAU,OAAO,MAAM,OAAO,KAAK;MAG9D,QAAO,OAAO,QAAQ,GAAG,MAAM,OAAO,KAAM,EAAC;CAEhD,EAAC;AAGJ,QAAO;AACR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CommandKitConfig } from "./types-0ADL_reY.js";
|
|
2
|
+
import { ResolvedCommandKitConfig } from "./utils-C0V7zD7R.js";
|
|
3
|
+
|
|
4
|
+
//#region src/config/config.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get the defined configuration for CommandKit.
|
|
8
|
+
*/
|
|
9
|
+
declare function getConfig(): ResolvedCommandKitConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Define the configuration for CommandKit.
|
|
12
|
+
* @param config The configuration to use.
|
|
13
|
+
*/
|
|
14
|
+
declare function defineConfig(config?: Partial<CommandKitConfig>): ResolvedCommandKitConfig;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { defineConfig, getConfig };
|
|
17
|
+
//# sourceMappingURL=config-Dyb-zl9w.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/constants.d.ts
|
|
2
|
+
declare const COMMANDKIT_CACHE_TAG: unique symbol;
|
|
3
|
+
declare const COMMANDKIT_IS_DEV: boolean;
|
|
4
|
+
declare const COMMANDKIT_IS_TEST: boolean;
|
|
5
|
+
declare const COMMANDKIT_BOOTSTRAP_MODE: "development" | "production";
|
|
6
|
+
/**
|
|
7
|
+
* Types of Hot Module Replacement events
|
|
8
|
+
*/
|
|
9
|
+
declare const HMREventType: {
|
|
10
|
+
readonly ReloadCommands: "reload-commands";
|
|
11
|
+
readonly ReloadEvents: "reload-events";
|
|
12
|
+
readonly Unknown: "unknown";
|
|
13
|
+
};
|
|
14
|
+
type HMREventType = (typeof HMREventType)[keyof typeof HMREventType];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType };
|
|
17
|
+
//# sourceMappingURL=constants-Ce6w4OFe.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/utils/constants.ts
|
|
3
|
+
const COMMANDKIT_CACHE_TAG = Symbol("kCommandKitCacheTag");
|
|
4
|
+
const COMMANDKIT_IS_DEV = process.env.COMMANDKIT_IS_DEV === "true";
|
|
5
|
+
const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === "true";
|
|
6
|
+
const COMMANDKIT_BOOTSTRAP_MODE = process.env.COMMANDKIT_BOOTSTRAP_MODE || "development";
|
|
7
|
+
/**
|
|
8
|
+
* Types of Hot Module Replacement events
|
|
9
|
+
*/
|
|
10
|
+
const HMREventType = {
|
|
11
|
+
ReloadCommands: "reload-commands",
|
|
12
|
+
ReloadEvents: "reload-events",
|
|
13
|
+
Unknown: "unknown"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, 'COMMANDKIT_BOOTSTRAP_MODE', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return COMMANDKIT_BOOTSTRAP_MODE;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, 'COMMANDKIT_CACHE_TAG', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return COMMANDKIT_CACHE_TAG;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, 'COMMANDKIT_IS_DEV', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return COMMANDKIT_IS_DEV;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, 'COMMANDKIT_IS_TEST', {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return COMMANDKIT_IS_TEST;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, 'HMREventType', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return HMREventType;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=constants-DOPSzXI0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-DOPSzXI0.js","names":[],"sources":["../src/utils/constants.ts"],"sourcesContent":["export const COMMANDKIT_CACHE_TAG = Symbol('kCommandKitCacheTag');\n\nexport const COMMANDKIT_IS_DEV = process.env.COMMANDKIT_IS_DEV === 'true';\n\nexport const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === 'true';\n\nexport const COMMANDKIT_BOOTSTRAP_MODE = (process.env\n .COMMANDKIT_BOOTSTRAP_MODE || 'development') as 'development' | 'production';\n\n/**\n * Types of Hot Module Replacement events\n */\nexport const HMREventType = {\n ReloadCommands: 'reload-commands',\n ReloadEvents: 'reload-events',\n Unknown: 'unknown',\n} as const;\n\nexport type HMREventType = (typeof HMREventType)[keyof typeof HMREventType];\n"],"mappings":";;AAAA,MAAa,uBAAuB,OAAO,sBAAsB;AAEjE,MAAa,oBAAoB,QAAQ,IAAI,sBAAsB;AAEnE,MAAa,qBAAqB,QAAQ,IAAI,uBAAuB;AAErE,MAAa,4BAA6B,QAAQ,IAClD,6BAA6B;;;;AAK7B,MAAa,eAAe;CAC1B,gBAAgB;CAChB,cAAc;CACd,SAAS;AACV"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
|
+
const require_common = require('./common-CeO-vn8Y.js');
|
|
3
|
+
const discord_js = require_chunk.__toESM(require("discord.js"));
|
|
4
|
+
|
|
5
|
+
//#region src/components/v2/container.ts
|
|
6
|
+
function Container(props) {
|
|
7
|
+
const container = new discord_js.ContainerBuilder();
|
|
8
|
+
require_common.applyId(props, container);
|
|
9
|
+
container.setAccentColor(props.accentColor);
|
|
10
|
+
if (props.spoiler != null) container.setSpoiler(props.spoiler);
|
|
11
|
+
if (props.children != null) {
|
|
12
|
+
if (!Array.isArray(props.children)) props.children = [props.children];
|
|
13
|
+
if (props.children.length === 0) return container;
|
|
14
|
+
for (const child of props.children.flat()) {
|
|
15
|
+
if (child instanceof discord_js.TextDisplayBuilder) container.addTextDisplayComponents(child);
|
|
16
|
+
if (child instanceof discord_js.FileBuilder) container.addFileComponents(child);
|
|
17
|
+
if (child instanceof discord_js.ActionRowBuilder) container.addActionRowComponents(child);
|
|
18
|
+
if (child instanceof discord_js.SeparatorBuilder) container.addSeparatorComponents(child);
|
|
19
|
+
if (child instanceof discord_js.SectionBuilder) container.addSectionComponents(child);
|
|
20
|
+
if (child instanceof discord_js.MediaGalleryBuilder) container.addMediaGalleryComponents(child);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return container;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'Container', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return Container;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=container-CpuiLsZM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-CpuiLsZM.js","names":[],"sources":["../src/components/v2/container.ts"],"sourcesContent":["import {\n ActionRowBuilder,\n ComponentBuilder,\n ContainerBuilder,\n ContainerComponentData,\n FileBuilder,\n MediaGalleryBuilder,\n SectionBuilder,\n SeparatorBuilder,\n TextDisplayBuilder,\n} from 'discord.js';\nimport { applyId } from './common';\n\nexport interface ContainerProps\n extends Omit<ContainerComponentData, 'type' | 'components'> {\n children?: ComponentBuilder[];\n}\n\nexport function Container(props: ContainerProps): ContainerBuilder {\n const container = new ContainerBuilder();\n\n applyId(props, container);\n\n if (typeof props.accentColor != null) {\n container.setAccentColor(props.accentColor);\n }\n\n if (props.spoiler != null) {\n container.setSpoiler(props.spoiler);\n }\n\n if (props.children != null) {\n if (!Array.isArray(props.children)) props.children = [props.children];\n if (props.children.length === 0) return container;\n\n for (const child of props.children.flat()) {\n if (child instanceof TextDisplayBuilder) {\n container.addTextDisplayComponents(child);\n }\n\n if (child instanceof FileBuilder) {\n container.addFileComponents(child);\n }\n\n if (child instanceof ActionRowBuilder) {\n container.addActionRowComponents(child);\n }\n\n if (child instanceof SeparatorBuilder) {\n container.addSeparatorComponents(child);\n }\n\n if (child instanceof SectionBuilder) {\n container.addSectionComponents(child);\n }\n\n if (child instanceof MediaGalleryBuilder) {\n container.addMediaGalleryComponents(child);\n }\n }\n }\n\n return container;\n}\n"],"mappings":";;;;;AAkBA,SAAgB,UAAU,OAAyC;CACjE,MAAM,YAAY,IAAI;AAEtB,wBAAQ,OAAO,UAAU;AAGvB,WAAU,eAAe,MAAM,YAAY;AAG7C,KAAI,MAAM,WAAW,KACnB,WAAU,WAAW,MAAM,QAAQ;AAGrC,KAAI,MAAM,YAAY,MAAM;AAC1B,OAAK,MAAM,QAAQ,MAAM,SAAS,CAAE,OAAM,WAAW,CAAC,MAAM,QAAS;AACrE,MAAI,MAAM,SAAS,WAAW,EAAG,QAAO;AAExC,OAAK,MAAM,SAAS,MAAM,SAAS,MAAM,EAAE;AACzC,OAAI,iBAAiB,8BACnB,WAAU,yBAAyB,MAAM;AAG3C,OAAI,iBAAiB,uBACnB,WAAU,kBAAkB,MAAM;AAGpC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,0BACnB,WAAU,qBAAqB,MAAM;AAGvC,OAAI,iBAAiB,+BACnB,WAAU,0BAA0B,MAAM;EAE9C;CACF;AAEA,QAAO;AACT"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentBuilder, ContainerBuilder, ContainerComponentData } from "discord.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/v2/container.d.ts
|
|
4
|
+
interface ContainerProps extends Omit<ContainerComponentData, 'type' | 'components'> {
|
|
5
|
+
children?: ComponentBuilder[];
|
|
6
|
+
}
|
|
7
|
+
declare function Container(props: ContainerProps): ContainerBuilder;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Container, ContainerProps };
|
|
10
|
+
//# sourceMappingURL=container-CwEATQy2.d.ts.map
|