@powerlines/plugin-alloy 0.18.105 → 0.18.106

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 (29) hide show
  1. package/dist/core/components/output.d.mts +2 -2
  2. package/dist/core/components/single-line-comment.d.mts +2 -2
  3. package/dist/core/components/source-file.d.cts +2 -2
  4. package/dist/core/index.d.cts +1 -0
  5. package/dist/index.cjs +76 -66
  6. package/dist/index.mjs +75 -66
  7. package/dist/markdown/components/markdown-file.d.cts +3 -3
  8. package/dist/markdown/components/markdown-file.d.mts +3 -3
  9. package/dist/markdown/components/markdown-table.d.cts +4 -4
  10. package/dist/markdown/index.d.cts +2 -0
  11. package/dist/plugin-babel/src/types/plugin.d.cts +12 -0
  12. package/dist/plugin-babel/src/types/plugin.d.mts +12 -0
  13. package/dist/powerlines/src/types/babel.d.cts +22 -0
  14. package/dist/powerlines/src/types/babel.d.mts +22 -0
  15. package/dist/powerlines/src/types/config.d.cts +13 -2
  16. package/dist/powerlines/src/types/config.d.mts +13 -2
  17. package/dist/powerlines/src/types/resolved.d.cts +3 -2
  18. package/dist/powerlines/src/types/resolved.d.mts +3 -2
  19. package/dist/types/plugin.d.cts +3 -4
  20. package/dist/types/plugin.d.mts +3 -4
  21. package/dist/typescript/components/builtin-file.d.cts +2 -2
  22. package/dist/typescript/components/builtin-file.d.mts +2 -2
  23. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  24. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  25. package/dist/typescript/components/entry-file.d.cts +2 -2
  26. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  27. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  28. package/dist/typescript/components/typescript-object.d.cts +3 -3
  29. package/package.json +8 -7
@@ -1,6 +1,6 @@
1
1
  import { PluginContext } from "../../powerlines/src/types/context.mjs";
2
2
  import { MetaItem } from "../contexts/context.mjs";
3
- import * as _alloy_js_core14 from "@alloy-js/core";
3
+ import * as _alloy_js_core16 from "@alloy-js/core";
4
4
  import { OutputProps as OutputProps$1 } from "@alloy-js/core";
5
5
 
6
6
  //#region src/core/components/output.d.ts
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
17
17
  /**
18
18
  * Output component for rendering the Powerlines plugin's output files via templates.
19
19
  */
20
- declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core14.Children;
20
+ declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core16.Children;
21
21
  declare type __ΩOutputProps = any[];
22
22
  //#endregion
23
23
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core12 from "@alloy-js/core";
2
+ import * as _alloy_js_core14 from "@alloy-js/core";
3
3
 
4
4
  //#region src/core/components/single-line-comment.d.ts
5
5
  type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
15
15
  * A single line comment block. The children are rendered as a prose element, which means that they
16
16
  * are broken into multiple lines
17
17
  */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core12.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core14.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { StoragePreset } from "../../powerlines/src/types/fs.cjs";
2
2
  import { ComponentProps } from "../../types/components.cjs";
3
- import * as _alloy_js_core16 from "@alloy-js/core";
3
+ import * as _alloy_js_core13 from "@alloy-js/core";
4
4
  import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
5
5
 
6
6
  //#region src/core/components/source-file.d.ts
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
26
26
  * @param props - The properties for the source file.
27
27
  * @returns The rendered source file component.
28
28
  */
29
- declare function SourceFile(props: SourceFileProps): _alloy_js_core16.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core13.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -2,6 +2,7 @@ import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem,
2
2
  import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
3
3
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
4
4
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
5
+ import "./components/index.cjs";
5
6
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
6
7
  import "./contexts/index.cjs";
7
8
  export { MetaItem, Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
package/dist/index.cjs CHANGED
@@ -4,8 +4,10 @@ const require_core_components_output = require('./core/components/output.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __alloy_js_core = require("@alloy-js/core");
6
6
  let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
- let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
8
- __alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
7
+ let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
8
+ __alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
9
+ let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
10
+ __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
9
11
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
10
12
 
11
13
  //#region src/index.tsx
@@ -16,78 +18,86 @@ let __stryke_json_storm_json = require("@stryke/json/storm-json");
16
18
  * @returns A Powerlines plugin that integrates Alloy-js transformations.
17
19
  */
18
20
  const plugin = (options = {}) => {
19
- return [{
20
- name: "alloy:config",
21
- config() {
22
- return {
23
- alloy: {
24
- typescript: true,
25
- ...options
26
- },
27
- build: {
28
- inputOptions: { transform: { jsx: "preserve" } },
29
- plugins: [(0, __alloy_js_rollup_plugin.default)()],
30
- external: [
31
- "@alloy-js/core",
32
- "@alloy-js/typescript",
33
- "@alloy-js/json",
34
- "@alloy-js/markdown"
35
- ]
21
+ return [
22
+ (0, __powerlines_plugin_babel.default)(),
23
+ {
24
+ name: "alloy:config",
25
+ config() {
26
+ return {
27
+ alloy: {
28
+ typescript: true,
29
+ ...options
30
+ },
31
+ transform: { babel: { presets: [[
32
+ (0, __alloy_js_babel_preset.default)({ addSourceInfo: this.config.mode === "development" }),
33
+ {},
34
+ (_, id) => ["jsx", "tsx"].includes((0, __stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true }))
35
+ ]] } },
36
+ build: {
37
+ inputOptions: { transform: { jsx: "preserve" } },
38
+ external: [
39
+ "@alloy-js/core",
40
+ "@alloy-js/typescript",
41
+ "@alloy-js/json",
42
+ "@alloy-js/markdown"
43
+ ]
44
+ }
45
+ };
46
+ },
47
+ async configResolved() {
48
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
49
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
50
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
51
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
52
+ await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
36
53
  }
37
- };
38
- },
39
- async configResolved() {
40
- if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
41
- this.tsconfig.tsconfigJson.compilerOptions ??= {};
42
- if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
43
- if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
44
- await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
45
54
  }
46
- }
47
- }, {
48
- name: "alloy:update-context",
49
- configResolved: {
50
- order: "pre",
51
- async handler() {
52
- async function render(children) {
53
- const _self$ = this;
54
- const meta = {};
55
- await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
56
- context: _self$,
57
- meta,
58
- get basePath() {
59
- return _self$.workspaceConfig.workspaceRoot;
60
- },
61
- children
62
- })), {
63
- visitDirectory: (directory) => {
64
- if (this.fs.existsSync(directory.path)) return;
65
- this.fs.mkdirSync(directory.path);
66
- },
67
- visitFile: (file) => {
68
- if ("contents" in file) {
69
- const metadata = meta[file.path] ?? {};
70
- if (metadata.kind === "builtin") {
71
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
72
- this.emitBuiltinSync(file.contents, metadata.id, {
55
+ },
56
+ {
57
+ name: "alloy:update-context",
58
+ configResolved: {
59
+ order: "pre",
60
+ async handler() {
61
+ async function render(children) {
62
+ const _self$ = this;
63
+ const meta = {};
64
+ await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
65
+ context: _self$,
66
+ meta,
67
+ get basePath() {
68
+ return _self$.workspaceConfig.workspaceRoot;
69
+ },
70
+ children
71
+ })), {
72
+ visitDirectory: (directory) => {
73
+ if (this.fs.existsSync(directory.path)) return;
74
+ this.fs.mkdirSync(directory.path);
75
+ },
76
+ visitFile: (file) => {
77
+ if ("contents" in file) {
78
+ const metadata = meta[file.path] ?? {};
79
+ if (metadata.kind === "builtin") {
80
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
81
+ this.emitBuiltinSync(file.contents, metadata.id, {
82
+ skipFormat: metadata.skipFormat,
83
+ storage: metadata.storage,
84
+ extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
85
+ });
86
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
73
87
  skipFormat: metadata.skipFormat,
74
88
  storage: metadata.storage,
75
- extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
89
+ ...metadata.typeDefinition ?? {}
76
90
  });
77
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
78
- skipFormat: metadata.skipFormat,
79
- storage: metadata.storage,
80
- ...metadata.typeDefinition ?? {}
81
- });
82
- else this.emitSync(file.contents, file.path, metadata);
83
- } else this.fs.copySync(file.sourcePath, file.path);
84
- }
85
- });
91
+ else this.emitSync(file.contents, file.path, metadata);
92
+ } else this.fs.copySync(file.sourcePath, file.path);
93
+ }
94
+ });
95
+ }
96
+ this.render = render.bind(this);
86
97
  }
87
- this.render = render.bind(this);
88
98
  }
89
99
  }
90
- }];
100
+ ];
91
101
  };
92
102
  var src_default = plugin;
93
103
 
package/dist/index.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { Output as Output$1 } from "./core/components/output.mjs";
2
2
  import { createComponent } from "@alloy-js/core/jsx-runtime";
3
3
  import { renderAsync, traverseOutput } from "@alloy-js/core";
4
- import { findFileExtension } from "@stryke/path/file-path-fns";
5
- import alloy from "@alloy-js/rollup-plugin";
4
+ import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
5
+ import alloyPreset from "@alloy-js/babel-preset";
6
+ import babel from "@powerlines/plugin-babel";
6
7
  import { StormJSON } from "@stryke/json/storm-json";
7
8
 
8
9
  //#region src/index.tsx
@@ -13,78 +14,86 @@ import { StormJSON } from "@stryke/json/storm-json";
13
14
  * @returns A Powerlines plugin that integrates Alloy-js transformations.
14
15
  */
15
16
  const plugin = (options = {}) => {
16
- return [{
17
- name: "alloy:config",
18
- config() {
19
- return {
20
- alloy: {
21
- typescript: true,
22
- ...options
23
- },
24
- build: {
25
- inputOptions: { transform: { jsx: "preserve" } },
26
- plugins: [alloy()],
27
- external: [
28
- "@alloy-js/core",
29
- "@alloy-js/typescript",
30
- "@alloy-js/json",
31
- "@alloy-js/markdown"
32
- ]
17
+ return [
18
+ babel(),
19
+ {
20
+ name: "alloy:config",
21
+ config() {
22
+ return {
23
+ alloy: {
24
+ typescript: true,
25
+ ...options
26
+ },
27
+ transform: { babel: { presets: [[
28
+ alloyPreset({ addSourceInfo: this.config.mode === "development" }),
29
+ {},
30
+ (_, id) => ["jsx", "tsx"].includes(findFileExtensionSafe(id, { fullExtension: true }))
31
+ ]] } },
32
+ build: {
33
+ inputOptions: { transform: { jsx: "preserve" } },
34
+ external: [
35
+ "@alloy-js/core",
36
+ "@alloy-js/typescript",
37
+ "@alloy-js/json",
38
+ "@alloy-js/markdown"
39
+ ]
40
+ }
41
+ };
42
+ },
43
+ async configResolved() {
44
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
45
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
46
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
47
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
48
+ await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
33
49
  }
34
- };
35
- },
36
- async configResolved() {
37
- if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
38
- this.tsconfig.tsconfigJson.compilerOptions ??= {};
39
- if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
40
- if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
41
- await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
42
50
  }
43
- }
44
- }, {
45
- name: "alloy:update-context",
46
- configResolved: {
47
- order: "pre",
48
- async handler() {
49
- async function render(children) {
50
- const _self$ = this;
51
- const meta = {};
52
- await traverseOutput(await renderAsync(createComponent(Output$1, {
53
- context: _self$,
54
- meta,
55
- get basePath() {
56
- return _self$.workspaceConfig.workspaceRoot;
57
- },
58
- children
59
- })), {
60
- visitDirectory: (directory) => {
61
- if (this.fs.existsSync(directory.path)) return;
62
- this.fs.mkdirSync(directory.path);
63
- },
64
- visitFile: (file) => {
65
- if ("contents" in file) {
66
- const metadata = meta[file.path] ?? {};
67
- if (metadata.kind === "builtin") {
68
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
69
- this.emitBuiltinSync(file.contents, metadata.id, {
51
+ },
52
+ {
53
+ name: "alloy:update-context",
54
+ configResolved: {
55
+ order: "pre",
56
+ async handler() {
57
+ async function render(children) {
58
+ const _self$ = this;
59
+ const meta = {};
60
+ await traverseOutput(await renderAsync(createComponent(Output$1, {
61
+ context: _self$,
62
+ meta,
63
+ get basePath() {
64
+ return _self$.workspaceConfig.workspaceRoot;
65
+ },
66
+ children
67
+ })), {
68
+ visitDirectory: (directory) => {
69
+ if (this.fs.existsSync(directory.path)) return;
70
+ this.fs.mkdirSync(directory.path);
71
+ },
72
+ visitFile: (file) => {
73
+ if ("contents" in file) {
74
+ const metadata = meta[file.path] ?? {};
75
+ if (metadata.kind === "builtin") {
76
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
77
+ this.emitBuiltinSync(file.contents, metadata.id, {
78
+ skipFormat: metadata.skipFormat,
79
+ storage: metadata.storage,
80
+ extension: findFileExtension(file.path)
81
+ });
82
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
70
83
  skipFormat: metadata.skipFormat,
71
84
  storage: metadata.storage,
72
- extension: findFileExtension(file.path)
85
+ ...metadata.typeDefinition ?? {}
73
86
  });
74
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
75
- skipFormat: metadata.skipFormat,
76
- storage: metadata.storage,
77
- ...metadata.typeDefinition ?? {}
78
- });
79
- else this.emitSync(file.contents, file.path, metadata);
80
- } else this.fs.copySync(file.sourcePath, file.path);
81
- }
82
- });
87
+ else this.emitSync(file.contents, file.path, metadata);
88
+ } else this.fs.copySync(file.sourcePath, file.path);
89
+ }
90
+ });
91
+ }
92
+ this.render = render.bind(this);
83
93
  }
84
- this.render = render.bind(this);
85
94
  }
86
95
  }
87
- }];
96
+ ];
88
97
  };
89
98
  var src_default = plugin;
90
99
 
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
- import * as _alloy_js_core10 from "@alloy-js/core";
3
+ import * as _alloy_js_core11 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-file.d.ts
6
6
  type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
10
10
  * @param props - The properties for the source file.
11
11
  * @returns The rendered source file component.
12
12
  */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core10.Children;
13
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core11.Children;
14
14
  /**
15
15
  * Renders the header for a Powerlines Typescript source file.
16
16
  *
17
17
  * @param props - The properties for the source file header.
18
18
  * @returns The rendered source file header.
19
19
  */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core10.Children;
20
+ declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core11.Children;
21
21
  declare type __ΩMarkdownFileProps = any[];
22
22
  //#endregion
23
23
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
- import * as _alloy_js_core7 from "@alloy-js/core";
3
+ import * as _alloy_js_core12 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-file.d.ts
6
6
  type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
10
10
  * @param props - The properties for the source file.
11
11
  * @returns The rendered source file component.
12
12
  */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
13
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core12.Children;
14
14
  /**
15
15
  * Renders the header for a Powerlines Typescript source file.
16
16
  *
17
17
  * @param props - The properties for the source file header.
18
18
  * @returns The rendered source file header.
19
19
  */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core7.Children;
20
+ declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core12.Children;
21
21
  declare type __ΩMarkdownFileProps = any[];
22
22
  //#endregion
23
23
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
2
  import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.cjs";
3
- import * as _alloy_js_core5 from "@alloy-js/core";
3
+ import * as _alloy_js_core0 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-table.d.ts
6
6
  interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
9
9
  /**
10
10
  * Component that provides a context for rendering markdown tables.
11
11
  */
12
- declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core5.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core0.Children;
13
13
  type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
14
14
  width?: number;
15
15
  };
16
16
  /**
17
17
  * Component that provides a context for rendering markdown tables.
18
18
  */
19
- declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -1,4 +1,6 @@
1
1
  import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./components/markdown-file.cjs";
2
2
  import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.cjs";
3
3
  import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.cjs";
4
+ import "./components/index.cjs";
5
+ import "./contexts/index.cjs";
4
6
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
@@ -0,0 +1,12 @@
1
+ import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
2
+ import { UserConfig } from "../../../powerlines/src/types/config.cjs";
3
+
4
+ //#region ../plugin-babel/src/types/plugin.d.ts
5
+ type BabelPluginUserConfig = UserConfig;
6
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
7
+ transform: {
8
+ babel: BabelResolvedConfig;
9
+ };
10
+ }
11
+ //#endregion
12
+ export { BabelPluginResolvedConfig, BabelPluginUserConfig };
@@ -0,0 +1,12 @@
1
+ import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
2
+ import { UserConfig } from "../../../powerlines/src/types/config.mjs";
3
+
4
+ //#region ../plugin-babel/src/types/plugin.d.ts
5
+ type BabelPluginUserConfig = UserConfig;
6
+ interface BabelPluginResolvedConfig extends ResolvedConfig {
7
+ transform: {
8
+ babel: BabelResolvedConfig;
9
+ };
10
+ }
11
+ //#endregion
12
+ export { BabelPluginResolvedConfig, BabelPluginUserConfig };
@@ -0,0 +1,22 @@
1
+ import { LogFn } from "./config.cjs";
2
+ import { Context } from "./context.cjs";
3
+ import { PluginItem, PluginObj, PluginPass } from "@babel/core";
4
+ import { BabelAPI } from "@babel/helper-plugin-utils";
5
+
6
+ //#region ../powerlines/src/types/babel.d.ts
7
+
8
+ type BabelPluginPass<TState = unknown> = PluginPass & TState;
9
+ type BabelTransformPluginFilter = (code: string, id: string) => boolean;
10
+ type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
11
+ name: string;
12
+ log: LogFn;
13
+ api: BabelAPI;
14
+ options: TOptions;
15
+ context: TContext;
16
+ dirname: string;
17
+ }) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
18
+ $$name: string;
19
+ };
20
+ type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions, BabelTransformPluginFilter];
21
+ //#endregion
22
+ export { BabelTransformPluginOptions };
@@ -0,0 +1,22 @@
1
+ import { LogFn } from "./config.mjs";
2
+ import { Context } from "./context.mjs";
3
+ import { PluginItem, PluginObj, PluginPass } from "@babel/core";
4
+ import { BabelAPI } from "@babel/helper-plugin-utils";
5
+
6
+ //#region ../powerlines/src/types/babel.d.ts
7
+
8
+ type BabelPluginPass<TState = unknown> = PluginPass & TState;
9
+ type BabelTransformPluginFilter = (code: string, id: string) => boolean;
10
+ type BabelTransformPlugin<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = ((context: TContext) => (options: {
11
+ name: string;
12
+ log: LogFn;
13
+ api: BabelAPI;
14
+ options: TOptions;
15
+ context: TContext;
16
+ dirname: string;
17
+ }) => PluginObj<TOptions & BabelPluginPass<TState>>) & {
18
+ $$name: string;
19
+ };
20
+ type BabelTransformPluginOptions<TContext extends Context = Context, TOptions extends Record<string, any> = Record<string, any>, TState = unknown> = PluginItem | BabelTransformPlugin<TContext, TOptions, TState> | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions] | [BabelTransformPlugin<TContext, TOptions, TState>, TOptions, BabelTransformPluginFilter];
21
+ //#endregion
22
+ export { BabelTransformPluginOptions };
@@ -1,9 +1,11 @@
1
+ import { BabelTransformPluginOptions } from "./babel.cjs";
1
2
  import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
2
3
  import { StoragePort, StoragePreset } from "./fs.cjs";
3
4
  import { Plugin } from "./plugin.cjs";
4
5
  import { TSConfig } from "./tsconfig.cjs";
5
6
  import { PluginContext } from "./context.cjs";
6
7
  import { MaybePromise } from "@stryke/types/base";
8
+ import { transformAsync } from "@babel/core";
7
9
  import { Format } from "@storm-software/build-tools/types";
8
10
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
11
  import { StormWorkspaceConfig } from "@storm-software/config/types";
@@ -13,7 +15,6 @@ import { DateString } from "compatx";
13
15
  import { PreviewOptions } from "vite";
14
16
 
15
17
  //#region ../powerlines/src/types/config.d.ts
16
-
17
18
  type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
18
19
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
19
20
  /**
@@ -40,6 +41,16 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
40
41
  */
41
42
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
42
43
  type ProjectType = "application" | "library";
44
+ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
45
+ /**
46
+ * The Babel plugins to be used during the build process
47
+ */
48
+ plugins?: BabelTransformPluginOptions[];
49
+ /**
50
+ * The Babel presets to be used during the build process
51
+ */
52
+ presets?: BabelTransformPluginOptions[];
53
+ };
43
54
  interface DeployConfig {
44
55
  /**
45
56
  * The deployment variant being used by the Powerlines engine.
@@ -421,4 +432,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
421
432
  command: "deploy";
422
433
  };
423
434
  //#endregion
424
- export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
435
+ export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -1,9 +1,11 @@
1
+ import { BabelTransformPluginOptions } from "./babel.mjs";
1
2
  import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
2
3
  import { StoragePort, StoragePreset } from "./fs.mjs";
3
4
  import { Plugin } from "./plugin.mjs";
4
5
  import { TSConfig } from "./tsconfig.mjs";
5
6
  import { PluginContext } from "./context.mjs";
6
7
  import { MaybePromise } from "@stryke/types/base";
8
+ import { transformAsync } from "@babel/core";
7
9
  import { Format } from "@storm-software/build-tools/types";
8
10
  import { LogLevelLabel } from "@storm-software/config-tools/types";
9
11
  import { StormWorkspaceConfig } from "@storm-software/config/types";
@@ -13,7 +15,6 @@ import { DateString } from "compatx";
13
15
  import { PreviewOptions } from "vite";
14
16
 
15
17
  //#region ../powerlines/src/types/config.d.ts
16
-
17
18
  type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
18
19
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
19
20
  /**
@@ -40,6 +41,16 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
40
41
  */
41
42
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
42
43
  type ProjectType = "application" | "library";
44
+ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
45
+ /**
46
+ * The Babel plugins to be used during the build process
47
+ */
48
+ plugins?: BabelTransformPluginOptions[];
49
+ /**
50
+ * The Babel presets to be used during the build process
51
+ */
52
+ presets?: BabelTransformPluginOptions[];
53
+ };
43
54
  interface DeployConfig {
44
55
  /**
45
56
  * The deployment variant being used by the Powerlines engine.
@@ -421,4 +432,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
421
432
  command: "deploy";
422
433
  };
423
434
  //#endregion
424
- export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
435
+ export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.cjs";
2
- import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
2
+ import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { TypeDefinition } from "@stryke/types/configuration";
5
5
  import { AssetGlob } from "@stryke/types/file";
@@ -16,6 +16,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
16
16
  */
17
17
  output?: string;
18
18
  }
19
+ type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
19
20
  type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
20
21
  /**
21
22
  * The name of the environment
@@ -90,4 +91,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
90
91
  type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
91
92
  type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
92
93
  //#endregion
93
- export { EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
94
+ export { BabelResolvedConfig, EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.mjs";
2
- import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
2
+ import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { TypeDefinition } from "@stryke/types/configuration";
5
5
  import { AssetGlob } from "@stryke/types/file";
@@ -16,6 +16,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
16
16
  */
17
17
  output?: string;
18
18
  }
19
+ type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
19
20
  type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
20
21
  /**
21
22
  * The name of the environment
@@ -90,4 +91,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
90
91
  type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
91
92
  type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
92
93
  //#endregion
93
- export { EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
94
+ export { BabelResolvedConfig, EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
@@ -1,6 +1,5 @@
1
- import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
2
- import { UserConfig } from "../powerlines/src/types/config.cjs";
3
1
  import { PluginContext } from "../powerlines/src/types/context.cjs";
2
+ import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.cjs";
4
3
  import { Children, PrintTreeOptions } from "@alloy-js/core";
5
4
 
6
5
  //#region src/types/plugin.d.ts
@@ -24,10 +23,10 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
24
23
  */
25
24
  markdown?: boolean;
26
25
  };
27
- type AlloyPluginUserConfig = UserConfig & {
26
+ type AlloyPluginUserConfig = BabelPluginUserConfig & {
28
27
  alloy?: AlloyPluginOptions;
29
28
  };
30
- type AlloyPluginResolvedConfig = ResolvedConfig & {
29
+ type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
31
30
  alloy: AlloyPluginOptions;
32
31
  };
33
32
  type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
@@ -1,6 +1,5 @@
1
- import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
2
- import { UserConfig } from "../powerlines/src/types/config.mjs";
3
1
  import { PluginContext } from "../powerlines/src/types/context.mjs";
2
+ import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.mjs";
4
3
  import { Children, PrintTreeOptions } from "@alloy-js/core";
5
4
 
6
5
  //#region src/types/plugin.d.ts
@@ -24,10 +23,10 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
24
23
  */
25
24
  markdown?: boolean;
26
25
  };
27
- type AlloyPluginUserConfig = UserConfig & {
26
+ type AlloyPluginUserConfig = BabelPluginUserConfig & {
28
27
  alloy?: AlloyPluginOptions;
29
28
  };
30
- type AlloyPluginResolvedConfig = ResolvedConfig & {
29
+ type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
31
30
  alloy: AlloyPluginOptions;
32
31
  };
33
32
  type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core1 from "@alloy-js/core";
3
+ import * as _alloy_js_core0 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core1.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core0.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core13 from "@alloy-js/core";
3
+ import * as _alloy_js_core8 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core13.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core8.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core13 from "@alloy-js/core";
1
+ import * as _alloy_js_core16 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core13.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core16 from "@alloy-js/core";
1
+ import * as _alloy_js_core7 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core7.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,6 +1,6 @@
1
1
  import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core12 from "@alloy-js/core";
3
+ import * as _alloy_js_core10 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
6
6
  type EntryFileProps = TypescriptFileProps & {
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core10.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,18 +1,18 @@
1
1
  import { TSDocProps } from "./tsdoc.cjs";
2
- import * as _alloy_js_core2 from "@alloy-js/core";
2
+ import * as _alloy_js_core5 from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/components/tsdoc-reflection.d.ts
5
5
  /**
6
6
  * Generates a TypeScript interface property for the given reflection class.
7
7
  */
8
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core2.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core5.Children;
9
9
  /**
10
10
  * Generates a TypeScript interface property for the given reflection class.
11
11
  */
12
- declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core2.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core5.Children;
13
13
  /**
14
14
  * Generates a TypeScript interface property for the given reflection class.
15
15
  */
16
- declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core2.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core5.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core3 from "@alloy-js/core";
3
3
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core8.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core3.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core8.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core3.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core8 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
  import { ComputedRef } from "@vue/reactivity";
@@ -15,11 +15,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
15
15
  /**
16
16
  * Generates a TypeScript object for the given reflection class.
17
17
  */
18
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core0.Children;
18
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core8.Children;
19
19
  /**
20
20
  * Generates a TypeScript object property for the given reflection class.
21
21
  */
22
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core0.Children;
22
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core8.Children;
23
23
  declare type __ΩTypescriptObjectProps = any[];
24
24
  declare type __ΩTypescriptObjectPropertyProps = any[];
25
25
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.18.105",
3
+ "version": "0.18.106",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -40,7 +40,6 @@
40
40
  "private": false,
41
41
  "main": "./dist/index.cjs",
42
42
  "module": "./dist/index.mjs",
43
- "typings": "./dist/index.d.mts",
44
43
  "exports": {
45
44
  "./package.json": "./package.json",
46
45
  ".": {
@@ -352,15 +351,17 @@
352
351
  }
353
352
  }
354
353
  },
354
+ "typings": "./dist/index.d.mts",
355
355
  "files": ["dist/**/*"],
356
356
  "keywords": ["alloy-js", "powerlines", "storm-software", "powerlines-plugin"],
357
357
  "dependencies": {
358
+ "@alloy-js/babel-preset": "^0.2.1",
358
359
  "@alloy-js/core": "^0.22.0",
359
360
  "@alloy-js/json": "^0.22.0",
360
361
  "@alloy-js/markdown": "^0.22.0",
361
- "@alloy-js/rollup-plugin": "^0.1.0",
362
362
  "@alloy-js/typescript": "^0.22.0",
363
- "@powerlines/deepkit": "^0.5.132",
363
+ "@powerlines/deepkit": "^0.5.133",
364
+ "@powerlines/plugin-babel": "^0.12.225",
364
365
  "@storm-software/config-tools": "^1.189.0",
365
366
  "@stryke/capnp": "^0.12.61",
366
367
  "@stryke/convert": "^0.6.35",
@@ -373,13 +374,13 @@
373
374
  "@stryke/types": "^0.10.34",
374
375
  "@stryke/unique-id": "^0.3.47",
375
376
  "defu": "^6.1.4",
376
- "powerlines": "^0.37.88",
377
+ "powerlines": "^0.37.89",
377
378
  "prettier": "^3.8.1"
378
379
  },
379
380
  "devDependencies": {
380
- "@powerlines/plugin-plugin": "^0.12.166",
381
+ "@powerlines/plugin-plugin": "^0.12.167",
381
382
  "@types/node": "^24.10.9"
382
383
  },
383
384
  "publishConfig": { "access": "public" },
384
- "gitHead": "d041e2aa4cd8b8cb4c77536083271b56c9e75443"
385
+ "gitHead": "fb3079ccb0361ffe89bb357f7a526b6281f8bf71"
385
386
  }