commandkit 1.0.0-dev.20250624125350 → 1.0.0-dev.20250624130949

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.
Files changed (115) hide show
  1. package/dist/{CommandKit-DV3O3x3J.js → CommandKit-BZVEqKzs.js} +51 -36
  2. package/dist/CommandKit-BZVEqKzs.js.map +1 -0
  3. package/dist/{CommandKit-SL7ggUn-.d.ts → CommandKit-CGl1oEv3.d.ts} +108 -13
  4. package/dist/CommandKit.d.ts +1 -1
  5. package/dist/CommandKit.js +1 -1
  6. package/dist/{DefaultLogger-pWzrSxMd.d.ts → DefaultLogger-Cy55-uPl.d.ts} +2 -2
  7. package/dist/{EventWorkerContext-D9Q_ENWf.d.ts → EventWorkerContext-rYysGdKJ.d.ts} +2 -2
  8. package/dist/{ILogger-Cs5SFzqd.d.ts → ILogger-DBGON5wx.d.ts} +1 -1
  9. package/dist/{Logger-5ew_YS4P.d.ts → Logger-iSjA-DWN.d.ts} +2 -2
  10. package/dist/analytics/analytics-engine.d.ts +1 -1
  11. package/dist/analytics/analytics-engine.js +1 -1
  12. package/dist/analytics/analytics-provider.d.ts +1 -1
  13. package/dist/analytics/utils.js +1 -1
  14. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  15. package/dist/app/commands/AppCommandRunner.js +1 -1
  16. package/dist/app/commands/Context.d.ts +1 -1
  17. package/dist/app/commands/Context.js +1 -1
  18. package/dist/app/events/EventWorkerContext.d.ts +2 -2
  19. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  20. package/dist/app/handlers/AppCommandHandler.js +1 -1
  21. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  22. package/dist/app/handlers/AppEventsHandler.js +1 -1
  23. package/dist/app/index.d.ts +1 -1
  24. package/dist/app/index.js +1 -1
  25. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  26. package/dist/app/register/CommandRegistrar.js +1 -1
  27. package/dist/{build-CjQg1n-5.js → build-CI-WOwAi.js} +2 -2
  28. package/dist/{build-CjQg1n-5.js.map → build-CI-WOwAi.js.map} +1 -1
  29. package/dist/cli/app-process.d.ts +2 -2
  30. package/dist/cli/build.d.ts +1 -1
  31. package/dist/cli/build.js +2 -2
  32. package/dist/cli/common.d.ts +3 -5
  33. package/dist/cli/development.js +7 -5
  34. package/dist/cli/development.js.map +1 -1
  35. package/dist/cli/information.js +1 -1
  36. package/dist/cli/init.d.ts +1 -1
  37. package/dist/cli/init.js +2 -2
  38. package/dist/cli/production.d.ts +2 -2
  39. package/dist/cli/production.js +2 -2
  40. package/dist/components/index.js +1 -1
  41. package/dist/components/v1/button/Button.js +1 -1
  42. package/dist/components/v1/button/ButtonKit.js +1 -1
  43. package/dist/components/v1/modal/Modal.js +1 -1
  44. package/dist/components/v1/modal/ModalKit.js +1 -1
  45. package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +1 -1
  46. package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +1 -1
  47. package/dist/components/v1/select-menu/RoleSelectMenuKit.js +1 -1
  48. package/dist/components/v1/select-menu/SelectMenu.js +1 -1
  49. package/dist/components/v1/select-menu/StringSelectMenuKit.js +1 -1
  50. package/dist/components/v1/select-menu/UserSelectMenuKit.js +1 -1
  51. package/dist/config/config.d.ts +2 -4
  52. package/dist/config/config.js +1 -1
  53. package/dist/config/default.d.ts +1 -3
  54. package/dist/config/default.js +1 -1
  55. package/dist/config/loader.d.ts +1 -3
  56. package/dist/config/loader.js +1 -1
  57. package/dist/config/types.d.ts +1 -2
  58. package/dist/config/utils.d.ts +1 -3
  59. package/dist/{config-Cs_7avuG.d.ts → config-BL8EHesJ.d.ts} +2 -3
  60. package/dist/context/async-context.d.ts +1 -1
  61. package/dist/context/async-context.js +1 -1
  62. package/dist/context/environment.d.ts +1 -1
  63. package/dist/context/environment.js +1 -1
  64. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  65. package/dist/{feature-flags-CFoqosTw.js → feature-flags-IU-pT6k_.js} +2 -2
  66. package/dist/{feature-flags-CFoqosTw.js.map → feature-flags-IU-pT6k_.js.map} +1 -1
  67. package/dist/flags/FlagProvider.d.ts +1 -1
  68. package/dist/flags/feature-flags.d.ts +1 -1
  69. package/dist/flags/feature-flags.js +2 -2
  70. package/dist/flags/store.d.ts +1 -1
  71. package/dist/index.d.ts +9 -11
  72. package/dist/index.js +4 -4
  73. package/dist/{init-muFynnQh.js → init-D3mhxEzo.js} +2 -2
  74. package/dist/{init-muFynnQh.js.map → init-D3mhxEzo.js.map} +1 -1
  75. package/dist/{init-_e3eZTUb.d.ts → init-DsaK1AfD.d.ts} +3 -3
  76. package/dist/logger/DefaultLogger.d.ts +2 -2
  77. package/dist/logger/DefaultLogger.js +1 -1
  78. package/dist/logger/ILogger.d.ts +1 -1
  79. package/dist/logger/Logger.d.ts +2 -2
  80. package/dist/logger/Logger.js +1 -1
  81. package/dist/logger/NoopLogger.d.ts +37 -0
  82. package/dist/logger/NoopLogger.js +36 -0
  83. package/dist/logger/NoopLogger.js.map +1 -0
  84. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  85. package/dist/plugins/PluginCommon.d.ts +1 -1
  86. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  87. package/dist/plugins/index.d.ts +1 -1
  88. package/dist/plugins/index.js +1 -1
  89. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  90. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +1 -1
  91. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  92. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
  93. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  94. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +1 -1
  95. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
  96. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +1 -1
  97. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  98. package/dist/plugins/types.d.ts +1 -1
  99. package/dist/types.d.ts +1 -1
  100. package/dist/{utilities-CQUaua43.d.ts → utilities-DtdPlr4c.d.ts} +1 -1
  101. package/dist/utils/dev-hooks.d.ts +1 -1
  102. package/dist/utils/dev-hooks.js +1 -1
  103. package/dist/utils/utilities.d.ts +1 -1
  104. package/dist/utils/utilities.js +1 -1
  105. package/dist/{version-DggMfP_1.d.ts → version-CtJtBJXI.d.ts} +1 -1
  106. package/dist/{version-B9dUz2ZQ.js → version-t3Nw0T3Q.js} +2 -2
  107. package/dist/{version-B9dUz2ZQ.js.map → version-t3Nw0T3Q.js.map} +1 -1
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/logger.cjs +2 -0
  111. package/logger.d.ts +3 -0
  112. package/package.json +2 -2
  113. package/dist/CommandKit-DV3O3x3J.js.map +0 -1
  114. package/dist/types-DI20wefl.d.ts +0 -78
  115. package/dist/utils-NtJ5thv2.d.ts +0 -20
@@ -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
@@ -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