commandkit 1.0.0-dev.20250622021922 → 1.0.0-dev.20250622061654
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-Bg1f3YHm.js → CommandKit-DV3O3x3J.js} +20 -14
- package/dist/CommandKit-DV3O3x3J.js.map +1 -0
- package/dist/{CommandKit-Ce4yYF5k.d.ts → CommandKit-SL7ggUn-.d.ts} +2 -2
- package/dist/CommandKit.d.ts +1 -1
- package/dist/CommandKit.js +1 -1
- package/dist/{EventWorkerContext-B272I5sb.d.ts → EventWorkerContext-D9Q_ENWf.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-JmLwv2AC.js → build-CjQg1n-5.js} +2 -2
- package/dist/{build-JmLwv2AC.js.map → build-CjQg1n-5.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 +5 -5
- package/dist/cli/development.js +2 -2
- 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 +4 -4
- package/dist/config/config.js +1 -1
- package/dist/config/default.d.ts +3 -3
- package/dist/config/default.js +1 -1
- package/dist/config/loader.d.ts +3 -3
- package/dist/config/loader.js +1 -1
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +3 -3
- package/dist/{config-Vz8yDi-x.d.ts → config-Cs_7avuG.d.ts} +3 -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-M80Ab_1D.js → feature-flags-CFoqosTw.js} +2 -2
- package/dist/{feature-flags-M80Ab_1D.js.map → feature-flags-CFoqosTw.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 +6 -6
- package/dist/index.js +4 -4
- package/dist/{init-CT348Okf.d.ts → init-CEa28dgv.d.ts} +3 -3
- package/dist/{init-D_en8rGZ.js → init-muFynnQh.js} +2 -2
- package/dist/{init-D_en8rGZ.js.map → init-muFynnQh.js.map} +1 -1
- package/dist/logger/DefaultLogger.js +1 -1
- package/dist/logger/Logger.js +1 -1
- 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-B1QaN0pq.d.ts → types-DI20wefl.d.ts} +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -2
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +1 -1
- package/dist/utils/utilities.js +1 -1
- package/dist/{utils-BoBpd4Ei.d.ts → utils-NtJ5thv2.d.ts} +2 -2
- package/dist/{version-V-sgwuLw.js → version-C0Gxnw70.js} +2 -2
- package/dist/{version-V-sgwuLw.js.map → version-C0Gxnw70.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/CommandKit-Bg1f3YHm.js.map +0 -1
|
@@ -1525,7 +1525,7 @@ var CompilerPluginRuntime = class {
|
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
1527
|
/**
|
|
1528
|
-
*
|
|
1528
|
+
* Unregister a template handler for a given name.
|
|
1529
1529
|
* This method must be called inside the deactivate() method of a plugin.
|
|
1530
1530
|
* @param name - The name of the template to unregister.
|
|
1531
1531
|
*/
|
|
@@ -1562,18 +1562,24 @@ var CompilerPluginRuntime = class {
|
|
|
1562
1562
|
*/
|
|
1563
1563
|
async transform(code, id) {
|
|
1564
1564
|
let map = null;
|
|
1565
|
-
for (const plugin of this.plugins)
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1565
|
+
for (const plugin of this.plugins) {
|
|
1566
|
+
if (!(plugin === null || plugin === void 0 ? void 0 : plugin.transform) || typeof (plugin === null || plugin === void 0 ? void 0 : plugin.transform) !== "function") {
|
|
1567
|
+
Logger.warn(`Plugin ${(plugin === null || plugin === void 0 ? void 0 : plugin.name) ?? "<unknown>"} is invalid or does not have a transform method or the method is not a function`);
|
|
1568
|
+
continue;
|
|
1569
|
+
}
|
|
1570
|
+
try {
|
|
1571
|
+
var _plugin$transform;
|
|
1572
|
+
const res = await ((_plugin$transform = plugin.transform) === null || _plugin$transform === void 0 ? void 0 : _plugin$transform.call(plugin, {
|
|
1573
|
+
code,
|
|
1574
|
+
id
|
|
1575
|
+
}));
|
|
1576
|
+
if (!res) continue;
|
|
1577
|
+
if (res.code) code = res.code;
|
|
1578
|
+
if (res.map) map = res.map;
|
|
1579
|
+
} catch (e) {
|
|
1580
|
+
const err = e instanceof Error ? e : new Error(e);
|
|
1581
|
+
throw new Error(`Plugin ${plugin.name} failed to transform: ${err.message}`);
|
|
1582
|
+
}
|
|
1577
1583
|
}
|
|
1578
1584
|
return {
|
|
1579
1585
|
code,
|
|
@@ -4268,4 +4274,4 @@ Object.defineProperty(exports, 'useEnvironment', {
|
|
|
4268
4274
|
return useEnvironment;
|
|
4269
4275
|
}
|
|
4270
4276
|
});
|
|
4271
|
-
//# sourceMappingURL=CommandKit-
|
|
4277
|
+
//# sourceMappingURL=CommandKit-DV3O3x3J.js.map
|