commandkit 1.0.0-dev.20250615021934 → 1.0.0-dev.20250615131542
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/README.md +1 -2
- package/dist/{CommandKit-CT3K-Cac.js → CommandKit-CGSAQCVq.js} +28 -63
- package/dist/CommandKit-CGSAQCVq.js.map +1 -0
- package/dist/{CommandKit-BSXFD1Tt.d.ts → CommandKit-Ce4yYF5k.d.ts} +2 -2
- package/dist/CommandKit.d.ts +2 -2
- package/dist/CommandKit.js +24 -25
- package/dist/{CommandKitEventsChannel-BL_YN3Rm.js → CommandKitEventsChannel-Bgw0XCOl.js} +1 -1
- package/dist/{CommandKitEventsChannel-BL_YN3Rm.js.map → CommandKitEventsChannel-Bgw0XCOl.js.map} +1 -1
- package/dist/{CommandsRouter-DFRh47qD.js → CommandsRouter-CJJ0_WSr.js} +1 -1
- package/dist/{CommandsRouter-DFRh47qD.js.map → CommandsRouter-CJJ0_WSr.js.map} +1 -1
- package/dist/{CompilerPlugin-Bmy4izKz.js → CompilerPlugin-CjoZAAR8.js} +2 -2
- package/dist/{CompilerPlugin-Bmy4izKz.js.map → CompilerPlugin-CjoZAAR8.js.map} +1 -1
- package/dist/{CompilerPluginRuntime-CgVU_gU0.js → CompilerPluginRuntime-OliJW0v-.js} +1 -1
- package/dist/{CompilerPluginRuntime-CgVU_gU0.js.map → CompilerPluginRuntime-OliJW0v-.js.map} +1 -1
- package/dist/{EventInterceptor-DWCHCGRh.js → EventInterceptor-CQ4PBpBJ.js} +1 -1
- package/dist/{EventInterceptor-DWCHCGRh.js.map → EventInterceptor-CQ4PBpBJ.js.map} +1 -1
- package/dist/{EventWorkerContext-BnghX_KV.d.ts → EventWorkerContext-B272I5sb.d.ts} +2 -2
- package/dist/{EventWorkerContext-DxfS_0fJ.js → EventWorkerContext-CSlD9rbx.js} +1 -1
- package/dist/{EventWorkerContext-DxfS_0fJ.js.map → EventWorkerContext-CSlD9rbx.js.map} +1 -1
- package/dist/{EventsRouter-CqnrlbjN.js → EventsRouter-C_J0M3uO.js} +1 -1
- package/dist/{EventsRouter-CqnrlbjN.js.map → EventsRouter-C_J0M3uO.js.map} +1 -1
- package/dist/{MessageCommandParser-ClkDMI8g.js → MessageCommandParser-Dw8jeqmB.js} +2 -2
- package/dist/{MessageCommandParser-ClkDMI8g.js.map → MessageCommandParser-Dw8jeqmB.js.map} +1 -1
- package/dist/{PluginCommon-D_Z8Oiic.js → PluginCommon-Di1xIa8d.js} +1 -1
- package/dist/{PluginCommon-D_Z8Oiic.js.map → PluginCommon-Di1xIa8d.js.map} +1 -1
- package/dist/{RuntimePlugin-CehKbceZ.js → RuntimePlugin-CBgBLXTG.js} +2 -2
- package/dist/{RuntimePlugin-CehKbceZ.js.map → RuntimePlugin-CBgBLXTG.js.map} +1 -1
- package/dist/analytics/analytics-engine.d.ts +2 -2
- package/dist/analytics/analytics-engine.js +24 -25
- package/dist/analytics/analytics-provider.d.ts +2 -2
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +24 -25
- package/dist/app/commands/AppCommandRunner.d.ts +2 -2
- package/dist/app/commands/AppCommandRunner.js +24 -25
- package/dist/app/commands/Context.d.ts +2 -2
- package/dist/app/commands/Context.js +24 -25
- package/dist/app/commands/MessageCommandParser.js +2 -2
- package/dist/app/commands/helpers.js +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/events/EventWorkerContext.js +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.js +24 -25
- package/dist/app/handlers/AppEventsHandler.d.ts +2 -2
- package/dist/app/handlers/AppEventsHandler.js +24 -25
- package/dist/app/index.d.ts +3 -3
- package/dist/app/index.js +28 -28
- package/dist/app/interrupt/signals.d.ts +2 -0
- package/dist/app/interrupt/signals.js +8 -0
- package/dist/app/register/CommandRegistrar.d.ts +2 -2
- package/dist/app/register/CommandRegistrar.js +24 -25
- package/dist/app/router/CommandsRouter.js +1 -1
- package/dist/app/router/EventsRouter.js +1 -1
- package/dist/app/router/index.js +3 -3
- package/dist/{app-process-DKNuvPMz.js → app-process-pMHblAN_.js} +3 -3
- package/dist/{app-process-DKNuvPMz.js.map → app-process-pMHblAN_.js.map} +1 -1
- package/dist/{build-CpZp-wxh.js → build-zALOnWYu.js} +16 -6
- package/dist/build-zALOnWYu.js.map +1 -0
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/app-process.js +5 -5
- package/dist/cli/build.d.ts +2 -2
- package/dist/cli/build.js +27 -28
- package/dist/cli/common.d.ts +6 -6
- package/dist/cli/common.js +3 -3
- package/dist/cli/development.js +28 -29
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.js +1 -1
- package/dist/cli/generators.js +3 -3
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +25 -26
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +29 -30
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +4 -4
- package/dist/cli/utils.js +1 -1
- package/dist/{common-D11Ax__S.js → common-CfxtI2et.js} +2 -2
- package/dist/{common-D11Ax__S.js.map → common-CfxtI2et.js.map} +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.js +1 -2
- package/dist/components/common/types.js +1 -1
- package/dist/components/index.js +24 -25
- package/dist/components/v1/button/Button.js +24 -25
- package/dist/components/v1/button/ButtonKit.js +24 -25
- package/dist/components/v1/modal/Modal.js +24 -25
- package/dist/components/v1/modal/ModalKit.js +24 -25
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +24 -25
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +24 -25
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +24 -25
- package/dist/components/v1/select-menu/SelectMenu.js +24 -25
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +24 -25
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +24 -25
- package/dist/config/config.d.ts +5 -5
- package/dist/config/config.js +24 -25
- package/dist/config/default.d.ts +4 -4
- package/dist/config/default.js +24 -25
- package/dist/config/loader.d.ts +4 -4
- package/dist/config/loader.js +24 -25
- package/dist/config/types.d.ts +3 -3
- package/dist/config/utils.d.ts +4 -4
- package/dist/{config-CRU_9adq.d.ts → config-Vz8yDi-x.d.ts} +3 -3
- package/dist/{constants-DDRctWlU.js → constants-BttALJIr.js} +1 -1
- package/dist/{constants-DDRctWlU.js.map → constants-BttALJIr.js.map} +1 -1
- package/dist/{constants-CXwjhIYH.js → constants-CUND8XkG.js} +1 -1
- package/dist/{constants-CXwjhIYH.js.map → constants-CUND8XkG.js.map} +1 -1
- package/dist/context/async-context.d.ts +2 -2
- package/dist/context/async-context.js +24 -25
- package/dist/context/environment.d.ts +2 -2
- package/dist/context/environment.js +24 -25
- package/dist/{element-Cq-LoDjk.js → element-Bak9llw_.js} +1 -4
- package/dist/{element-Cq-LoDjk.js.map → element-Bak9llw_.js.map} +1 -1
- package/dist/{env-DemeP-uq.js → env-_68PRRoA.js} +1 -1
- package/dist/{env-DemeP-uq.js.map → env-_68PRRoA.js.map} +1 -1
- package/dist/{error-codes-CxlUBdF6.js → error-codes-DXOuid4c.js} +3 -2
- package/dist/error-codes-DXOuid4c.js.map +1 -0
- package/dist/events/CommandKitEventsChannel.d.ts +2 -2
- package/dist/events/CommandKitEventsChannel.js +1 -1
- package/dist/{feature-flags-B1rI-fjI.js → feature-flags-cY5-mCX0.js} +4 -4
- package/dist/{feature-flags-B1rI-fjI.js.map → feature-flags-cY5-mCX0.js.map} +1 -1
- package/dist/flags/FlagProvider.d.ts +2 -2
- package/dist/flags/feature-flags.d.ts +2 -2
- package/dist/flags/feature-flags.js +25 -26
- package/dist/flags/store.d.ts +2 -2
- package/dist/flags/store.js +1 -1
- package/dist/{helpers-CnfXqF_k.js → helpers-BUlN3lIz.js} +1 -1
- package/dist/{helpers-CnfXqF_k.js.map → helpers-BUlN3lIz.js.map} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +31 -33
- package/dist/index.js.map +1 -1
- package/dist/{init-_e3eZTUb.d.ts → init-C62l0PVB.d.ts} +3 -3
- package/dist/{init-Da3dcKxi.js → init-D77HLYw2.js} +6 -6
- package/dist/{init-Da3dcKxi.js.map → init-D77HLYw2.js.map} +1 -1
- package/dist/logger/DefaultLogger.js +24 -25
- package/dist/logger/ILogger.js +1 -1
- package/dist/logger/Logger.js +24 -25
- package/dist/plugins/CompilerPlugin.d.ts +2 -2
- package/dist/plugins/CompilerPlugin.js +2 -2
- package/dist/plugins/PluginCommon.d.ts +2 -2
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +2 -2
- package/dist/plugins/RuntimePlugin.js +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +24 -25
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +24 -25
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +24 -25
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +24 -25
- package/dist/plugins/plugin-runtime/runtime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/runtime.js +1 -1
- package/dist/plugins/types.d.ts +2 -2
- package/dist/plugins/types.js +1 -1
- package/dist/{resolve-file-url-ifwdwqmq.js → resolve-file-url-DHTQj2mU.js} +1 -1
- package/dist/{resolve-file-url-ifwdwqmq.js.map → resolve-file-url-DHTQj2mU.js.map} +1 -1
- package/dist/signals-BQbEfy3X.d.ts +41 -0
- package/dist/{signals-CSSSZAZ6.js → signals-CMIyUXUZ.js} +34 -3
- package/dist/signals-CMIyUXUZ.js.map +1 -0
- package/dist/{store-x93NXUy_.js → store-CiqLHedg.js} +1 -1
- package/dist/{store-x93NXUy_.js.map → store-CiqLHedg.js.map} +1 -1
- package/dist/{type-checker-BgT1Ukbb.js → type-checker-BLpiXCUL.js} +2 -2
- package/dist/{type-checker-BgT1Ukbb.js.map → type-checker-BLpiXCUL.js.map} +1 -1
- package/dist/{types-CY8KcUfk.d.ts → types-B1QaN0pq.d.ts} +7 -2
- package/dist/{types-package-TSiYacaj.js → types-package-BY7QWDFc.js} +2 -2
- package/dist/{types-package-TSiYacaj.js.map → types-package-BY7QWDFc.js.map} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{utilities-D_MFPmTe.d.ts → utilities-CQUaua43.d.ts} +2 -22
- package/dist/utils/constants.js +1 -1
- package/dist/utils/dev-hooks.d.ts +2 -2
- package/dist/utils/dev-hooks.js +24 -25
- package/dist/utils/error-codes.d.ts +4 -0
- package/dist/utils/error-codes.js +1 -1
- package/dist/utils/resolve-file-url.js +1 -1
- package/dist/utils/types-package.js +2 -2
- package/dist/utils/utilities.d.ts +2 -2
- package/dist/utils/utilities.js +25 -28
- package/dist/utils/warn-unstable.js +25 -3
- package/dist/utils/warn-unstable.js.map +1 -0
- package/dist/{utils-PsznLC5X.d.ts → utils-BoBpd4Ei.d.ts} +2 -2
- package/dist/{utils-C8a_hMvn.js → utils-DCSnVAZ6.js} +1 -1
- package/dist/{utils-C8a_hMvn.js.map → utils-DCSnVAZ6.js.map} +1 -1
- package/dist/{version-CZ6umS_v.js → version-CJDvC8Db.js} +2 -2
- package/dist/{version-CZ6umS_v.js.map → version-CJDvC8Db.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/CommandKit-CT3K-Cac.js.map +0 -1
- package/dist/app/middleware/signals.d.ts +0 -2
- package/dist/app/middleware/signals.js +0 -6
- package/dist/build-CpZp-wxh.js.map +0 -1
- package/dist/error-codes-CxlUBdF6.js.map +0 -1
- package/dist/signals-CSSSZAZ6.js.map +0 -1
- package/dist/signals-DUoWkeZ7.d.ts +0 -20
- package/dist/warn-unstable-CttBdmlS.js +0 -36
- package/dist/warn-unstable-CttBdmlS.js.map +0 -1
- /package/dist/{ILogger-DucYb0bG.js → ILogger-dQ7Y9X1f.js} +0 -0
- /package/dist/{app-CXCbKsPz.js → app-HN1cVg8J.js} +0 -0
- /package/dist/{router-Dn35v30f.js → router-DHnFRADH.js} +0 -0
- /package/dist/{runtime-D0JnztkU.js → runtime-DB9CiPfe.js} +0 -0
- /package/dist/{types-B5VPP9ig.js → types-CUZOquUl.js} +0 -0
- /package/dist/{types-Bq0EWaM3.js → types-q0Nm882H.js} +0 -0
package/README.md
CHANGED
|
@@ -41,10 +41,9 @@ You can find the full documentation [here](https://commandkit.dev).
|
|
|
41
41
|
|
|
42
42
|
To create a new CommandKit project, you can use the following command:
|
|
43
43
|
|
|
44
|
-
<!-- TODO: use stable version -->
|
|
45
44
|
|
|
46
45
|
```bash
|
|
47
|
-
npm create commandkit
|
|
46
|
+
npm create commandkit
|
|
48
47
|
```
|
|
49
48
|
|
|
50
49
|
This will prompt you to enter few details about your project. Once you have entered the details, you can simply run `commandkit dev` to start the bot application.
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
2
|
const require_colors = require('./colors-Cd4Oz-r-.js');
|
|
3
|
-
const require_error_codes = require('./error-codes-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const require_store = require('./store-x93NXUy_.js');
|
|
3
|
+
const require_error_codes = require('./error-codes-DXOuid4c.js');
|
|
4
|
+
const require_element = require('./element-Bak9llw_.js');
|
|
5
|
+
const require_EventInterceptor = require('./EventInterceptor-CQ4PBpBJ.js');
|
|
6
|
+
const require_constants = require('./constants-BttALJIr.js');
|
|
7
|
+
const require_CompilerPlugin = require('./CompilerPlugin-CjoZAAR8.js');
|
|
8
|
+
const require_RuntimePlugin = require('./RuntimePlugin-CBgBLXTG.js');
|
|
9
|
+
const require_resolve_file_url = require('./resolve-file-url-DHTQj2mU.js');
|
|
10
|
+
const require_types_package = require('./types-package-BY7QWDFc.js');
|
|
11
|
+
const require_EventWorkerContext = require('./EventWorkerContext-CSlD9rbx.js');
|
|
12
|
+
const require_signals = require('./signals-CMIyUXUZ.js');
|
|
13
|
+
const require_constants$1 = require('./constants-CUND8XkG.js');
|
|
14
|
+
const require_MessageCommandParser = require('./MessageCommandParser-Dw8jeqmB.js');
|
|
15
|
+
const require_CommandsRouter = require('./CommandsRouter-CJJ0_WSr.js');
|
|
16
|
+
const require_EventsRouter = require('./EventsRouter-C_J0M3uO.js');
|
|
17
|
+
const require_common = require('./common-CfxtI2et.js');
|
|
18
|
+
const require_CommandKitEventsChannel = require('./CommandKitEventsChannel-Bgw0XCOl.js');
|
|
19
|
+
const require_store = require('./store-CiqLHedg.js');
|
|
21
20
|
const node_events = require_chunk.__toESM(require("node:events"));
|
|
22
21
|
const discord_js = require_chunk.__toESM(require("discord.js"));
|
|
23
22
|
const node_async_hooks = require_chunk.__toESM(require("node:async_hooks"));
|
|
@@ -1548,7 +1547,8 @@ const defaultConfig = {
|
|
|
1548
1547
|
development: true,
|
|
1549
1548
|
production: true
|
|
1550
1549
|
},
|
|
1551
|
-
typedCommands: true
|
|
1550
|
+
typedCommands: true,
|
|
1551
|
+
disablePrefixCommands: false
|
|
1552
1552
|
};
|
|
1553
1553
|
|
|
1554
1554
|
//#endregion
|
|
@@ -1587,7 +1587,8 @@ function defineConfig(config = {}) {
|
|
|
1587
1587
|
typescript: {
|
|
1588
1588
|
...defaultConfig.typescript,
|
|
1589
1589
|
...config.typescript
|
|
1590
|
-
}
|
|
1590
|
+
},
|
|
1591
|
+
disablePrefixCommands: config.disablePrefixCommands ?? defaultConfig.disablePrefixCommands
|
|
1591
1592
|
};
|
|
1592
1593
|
return defined;
|
|
1593
1594
|
}
|
|
@@ -1723,32 +1724,6 @@ function devOnly(fn) {
|
|
|
1723
1724
|
return f;
|
|
1724
1725
|
}
|
|
1725
1726
|
/**
|
|
1726
|
-
* Custom error for stopping event propagation.
|
|
1727
|
-
*/
|
|
1728
|
-
var StopEventPropagationError = class extends Error {
|
|
1729
|
-
constructor() {
|
|
1730
|
-
super("Event propagation stopped");
|
|
1731
|
-
this.name = "StopEventPropagationError";
|
|
1732
|
-
}
|
|
1733
|
-
};
|
|
1734
|
-
/**
|
|
1735
|
-
* Stops event propagation. This function should be called inside an event handler
|
|
1736
|
-
* to prevent further event handling.
|
|
1737
|
-
* @throws {StopEventPropagationError}
|
|
1738
|
-
* @example // src/app/events/messageCreate/handler.ts
|
|
1739
|
-
* import { stopEvents } from 'commandkit';
|
|
1740
|
-
*
|
|
1741
|
-
* export default async function messageCreateHandler() {
|
|
1742
|
-
* console.log('Message created');
|
|
1743
|
-
* // Stop further event propagation
|
|
1744
|
-
* stopEvents();
|
|
1745
|
-
* }
|
|
1746
|
-
*/
|
|
1747
|
-
function stopEvents() {
|
|
1748
|
-
if (!require_EventWorkerContext.eventWorkerContext.getStore()) throw new Error("stopEvents() may only be called inside an event handler");
|
|
1749
|
-
throw new StopEventPropagationError();
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
1727
|
* Creates a simple proxy object that mirrors the target object.
|
|
1753
1728
|
* @param target The target object to proxy.
|
|
1754
1729
|
* @returns The proxied object.
|
|
@@ -2818,10 +2793,13 @@ var AppCommandHandler = class {
|
|
|
2818
2793
|
*/
|
|
2819
2794
|
async prepareCommandRun(source, cmdName) {
|
|
2820
2795
|
var _loadedCommand$guilds2;
|
|
2796
|
+
const config = getConfig();
|
|
2797
|
+
if (config.disablePrefixCommands && source instanceof discord_js.Message) return null;
|
|
2821
2798
|
let parser;
|
|
2822
2799
|
if (!cmdName) if (source instanceof discord_js.Message) {
|
|
2823
2800
|
if (source.author.bot) return null;
|
|
2824
2801
|
const prefix = await this.commandkit.config.getMessageCommandPrefix(source);
|
|
2802
|
+
if (!prefix || !prefix.length) return null;
|
|
2825
2803
|
parser = new require_MessageCommandParser.MessageCommandParser(source, Array.isArray(prefix) ? prefix : [prefix], (command) => {
|
|
2826
2804
|
var _loadedCommand$guilds, _json$options;
|
|
2827
2805
|
const commandId$1 = this.commandNameToId.get(command);
|
|
@@ -3124,7 +3102,7 @@ var AppEventsHandler = class {
|
|
|
3124
3102
|
for (const listener of onListeners) try {
|
|
3125
3103
|
await listener.handler(...args);
|
|
3126
3104
|
} catch (e) {
|
|
3127
|
-
if (e
|
|
3105
|
+
if (require_error_codes.isErrorType(e, require_error_codes.CommandKitErrorCodes.StopEvents)) {
|
|
3128
3106
|
Logger.debug(`Event propagation stopped for ${name}${namespace ? ` of namespace ${namespace}` : ""}`);
|
|
3129
3107
|
break;
|
|
3130
3108
|
}
|
|
@@ -3166,7 +3144,7 @@ var AppEventsHandler = class {
|
|
|
3166
3144
|
await listener.handler(...args);
|
|
3167
3145
|
executedOnceListeners.add(listener.handler);
|
|
3168
3146
|
} catch (e) {
|
|
3169
|
-
if (e
|
|
3147
|
+
if (require_error_codes.isErrorType(e, require_error_codes.CommandKitErrorCodes.StopEvents)) {
|
|
3170
3148
|
Logger.debug(`Event propagation stopped for ${name}${namespace ? ` of namespace ${namespace}` : ""}`);
|
|
3171
3149
|
broken = true;
|
|
3172
3150
|
}
|
|
@@ -3379,7 +3357,6 @@ var AnalyticsEngine = class {
|
|
|
3379
3357
|
* @param provider The analytics provider to register.
|
|
3380
3358
|
*/
|
|
3381
3359
|
registerProvider(provider) {
|
|
3382
|
-
require_warn_unstable.warnUnstable("analytics");
|
|
3383
3360
|
this.#provider = provider;
|
|
3384
3361
|
}
|
|
3385
3362
|
/**
|
|
@@ -3440,7 +3417,7 @@ const onApplicationBootstrapHooks = /* @__PURE__ */ new Set();
|
|
|
3440
3417
|
/**
|
|
3441
3418
|
* Registers a bootstrap hook that will be called when the CommandKit instance is created.
|
|
3442
3419
|
* This is useful for plugins that need to run some code after the CommandKit instance is fully initialized.
|
|
3443
|
-
* Note that not all commandkit
|
|
3420
|
+
* Note that not all commandkit dependencies are available at this point. It is recommended to use the `onApplicationBootstrap` hook instead,
|
|
3444
3421
|
* if you need access to the commandkit dependencies.
|
|
3445
3422
|
* @param fn The bootstrap function to register.
|
|
3446
3423
|
* @example ```ts
|
|
@@ -3919,12 +3896,6 @@ Object.defineProperty(exports, 'ShortInput', {
|
|
|
3919
3896
|
return ShortInput;
|
|
3920
3897
|
}
|
|
3921
3898
|
});
|
|
3922
|
-
Object.defineProperty(exports, 'StopEventPropagationError', {
|
|
3923
|
-
enumerable: true,
|
|
3924
|
-
get: function () {
|
|
3925
|
-
return StopEventPropagationError;
|
|
3926
|
-
}
|
|
3927
|
-
});
|
|
3928
3899
|
Object.defineProperty(exports, 'StringSelectMenu', {
|
|
3929
3900
|
enumerable: true,
|
|
3930
3901
|
get: function () {
|
|
@@ -4123,16 +4094,10 @@ Object.defineProperty(exports, 'registerDevHooks', {
|
|
|
4123
4094
|
return registerDevHooks;
|
|
4124
4095
|
}
|
|
4125
4096
|
});
|
|
4126
|
-
Object.defineProperty(exports, 'stopEvents', {
|
|
4127
|
-
enumerable: true,
|
|
4128
|
-
get: function () {
|
|
4129
|
-
return stopEvents;
|
|
4130
|
-
}
|
|
4131
|
-
});
|
|
4132
4097
|
Object.defineProperty(exports, 'useEnvironment', {
|
|
4133
4098
|
enumerable: true,
|
|
4134
4099
|
get: function () {
|
|
4135
4100
|
return useEnvironment;
|
|
4136
4101
|
}
|
|
4137
4102
|
});
|
|
4138
|
-
//# sourceMappingURL=CommandKit-
|
|
4103
|
+
//# sourceMappingURL=CommandKit-CGSAQCVq.js.map
|