commandkit 1.0.0-dev.20250624125350 → 1.0.0-dev.20250625020530
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/{CommandKit-DV3O3x3J.js → CommandKit-BZVEqKzs.js} +51 -36
- package/dist/CommandKit-BZVEqKzs.js.map +1 -0
- package/dist/{CommandKit-SL7ggUn-.d.ts → CommandKit-CGl1oEv3.d.ts} +108 -13
- package/dist/CommandKit.d.ts +1 -1
- package/dist/CommandKit.js +1 -1
- package/dist/{DefaultLogger-pWzrSxMd.d.ts → DefaultLogger-Cy55-uPl.d.ts} +2 -2
- package/dist/{EventWorkerContext-D9Q_ENWf.d.ts → EventWorkerContext-rYysGdKJ.d.ts} +2 -2
- package/dist/{ILogger-Cs5SFzqd.d.ts → ILogger-DBGON5wx.d.ts} +1 -1
- package/dist/{Logger-5ew_YS4P.d.ts → Logger-iSjA-DWN.d.ts} +2 -2
- package/dist/analytics/analytics-engine.d.ts +1 -1
- package/dist/analytics/analytics-engine.js +1 -1
- package/dist/analytics/analytics-provider.d.ts +1 -1
- package/dist/analytics/utils.js +1 -1
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +1 -1
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +1 -1
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +1 -1
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +1 -1
- package/dist/{build-CjQg1n-5.js → build-CI-WOwAi.js} +2 -2
- package/dist/{build-CjQg1n-5.js.map → build-CI-WOwAi.js.map} +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/build.d.ts +1 -1
- package/dist/cli/build.js +2 -2
- package/dist/cli/common.d.ts +3 -5
- package/dist/cli/development.js +7 -5
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +2 -2
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/v1/button/Button.js +1 -1
- package/dist/components/v1/button/ButtonKit.js +1 -1
- package/dist/components/v1/modal/Modal.js +1 -1
- package/dist/components/v1/modal/ModalKit.js +1 -1
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +1 -1
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +1 -1
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +1 -1
- package/dist/components/v1/select-menu/SelectMenu.js +1 -1
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +1 -1
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +1 -1
- package/dist/config/config.d.ts +2 -4
- package/dist/config/config.js +1 -1
- package/dist/config/default.d.ts +1 -3
- package/dist/config/default.js +1 -1
- package/dist/config/loader.d.ts +1 -3
- package/dist/config/loader.js +1 -1
- package/dist/config/types.d.ts +1 -2
- package/dist/config/utils.d.ts +1 -3
- package/dist/{config-Cs_7avuG.d.ts → config-BL8EHesJ.d.ts} +2 -3
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +1 -1
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/{feature-flags-CFoqosTw.js → feature-flags-IU-pT6k_.js} +2 -2
- package/dist/{feature-flags-CFoqosTw.js.map → feature-flags-IU-pT6k_.js.map} +1 -1
- package/dist/flags/FlagProvider.d.ts +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +2 -2
- package/dist/flags/store.d.ts +1 -1
- package/dist/index.d.ts +9 -11
- package/dist/index.js +4 -4
- package/dist/{init-muFynnQh.js → init-D3mhxEzo.js} +2 -2
- package/dist/{init-muFynnQh.js.map → init-D3mhxEzo.js.map} +1 -1
- package/dist/{init-_e3eZTUb.d.ts → init-DsaK1AfD.d.ts} +3 -3
- package/dist/logger/DefaultLogger.d.ts +2 -2
- package/dist/logger/DefaultLogger.js +1 -1
- package/dist/logger/ILogger.d.ts +1 -1
- package/dist/logger/Logger.d.ts +2 -2
- package/dist/logger/Logger.js +1 -1
- package/dist/logger/NoopLogger.d.ts +37 -0
- package/dist/logger/NoopLogger.js +36 -0
- package/dist/logger/NoopLogger.js.map +1 -0
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +1 -1
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{utilities-CQUaua43.d.ts → utilities-DtdPlr4c.d.ts} +1 -1
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +1 -1
- package/dist/utils/utilities.d.ts +1 -1
- package/dist/utils/utilities.js +1 -1
- package/dist/{version-B9dUz2ZQ.js → version-BoDxYqaB.js} +2 -2
- package/dist/{version-B9dUz2ZQ.js.map → version-BoDxYqaB.js.map} +1 -1
- package/dist/{version-DggMfP_1.d.ts → version-CtJtBJXI.d.ts} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/logger.cjs +2 -0
- package/logger.d.ts +3 -0
- package/package.json +2 -2
- package/dist/CommandKit-DV3O3x3J.js.map +0 -1
- package/dist/types-DI20wefl.d.ts +0 -78
- package/dist/utils-NtJ5thv2.d.ts +0 -20
package/dist/types-DI20wefl.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { CommandKitPlugin } from "./CommandKit-SL7ggUn-.js";
|
|
2
|
-
import { MaybeArray } from "./types-CJ-XvOFN.js";
|
|
3
|
-
|
|
4
|
-
//#region src/config/types.d.ts
|
|
5
|
-
interface CommandKitConfig {
|
|
6
|
-
/**
|
|
7
|
-
* The plugins to use with CommandKit.
|
|
8
|
-
* Can be a single plugin, an array of plugins, or a nested array of plugins.
|
|
9
|
-
*/
|
|
10
|
-
plugins?: MaybeArray<CommandKitPlugin>[] | Array<CommandKitPlugin>;
|
|
11
|
-
/**
|
|
12
|
-
* The rolldown plugins to use with CommandKit.
|
|
13
|
-
*/
|
|
14
|
-
rolldownPlugins?: any[];
|
|
15
|
-
/**
|
|
16
|
-
* The compiler options to use with CommandKit.
|
|
17
|
-
*/
|
|
18
|
-
compilerOptions?: {
|
|
19
|
-
/**
|
|
20
|
-
* Macro compiler configuration.
|
|
21
|
-
*/
|
|
22
|
-
macro?: {
|
|
23
|
-
/**
|
|
24
|
-
* Whether to enable macro function compilation in development mode.
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
development?: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* The typescript configuration to use with CommandKit.
|
|
32
|
-
*/
|
|
33
|
-
typescript?: {
|
|
34
|
-
/**
|
|
35
|
-
* Whether to ignore type checking during builds.
|
|
36
|
-
*/
|
|
37
|
-
ignoreBuildErrors?: boolean;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Whether to generate static command handler data in production builds.
|
|
41
|
-
*/
|
|
42
|
-
static?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Statically define the environment variables to use.
|
|
45
|
-
*/
|
|
46
|
-
env?: Record<string, string>;
|
|
47
|
-
/**
|
|
48
|
-
* The custom build directory name to use.
|
|
49
|
-
* @default `dist`
|
|
50
|
-
*/
|
|
51
|
-
distDir?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Whether or not to enable the source map generation.
|
|
54
|
-
*/
|
|
55
|
-
sourceMap?: {
|
|
56
|
-
/**
|
|
57
|
-
* Whether to enable source map generation in development mode.
|
|
58
|
-
*/
|
|
59
|
-
development?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether to enable source map generation in production mode.
|
|
62
|
-
*/
|
|
63
|
-
production?: boolean;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Whether or not to enable the typed commands.
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
typedCommands?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Whether or not to disable the prefix commands.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
disablePrefixCommands?: boolean;
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
export { CommandKitConfig };
|
|
78
|
-
//# sourceMappingURL=types-DI20wefl.d.ts.map
|
package/dist/utils-NtJ5thv2.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CommandKitConfig } from "./types-DI20wefl.js";
|
|
2
|
-
|
|
3
|
-
//#region src/config/utils.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
|
-
type DeepRequired<T> = { [P in keyof T]-?: DeepRequired<T[P]> };
|
|
9
|
-
/**
|
|
10
|
-
* @private
|
|
11
|
-
*/
|
|
12
|
-
type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]> };
|
|
13
|
-
/**
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
declare const mergeDeep: <T extends Record<string, any>>(target: T, source: T) => T;
|
|
17
|
-
type ResolvedCommandKitConfig = DeepRequired<CommandKitConfig>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
|
20
|
-
//# sourceMappingURL=utils-NtJ5thv2.d.ts.map
|