@powerlines/plugin-alloy 0.19.6 → 0.19.8

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.
@@ -1,5 +1,5 @@
1
1
  import { MetaItem } from "../contexts/context.cjs";
2
- import * as _alloy_js_core4 from "@alloy-js/core";
2
+ import * as _alloy_js_core11 from "@alloy-js/core";
3
3
  import { OutputProps as OutputProps$1 } from "@alloy-js/core";
4
4
  import { PluginContext } from "powerlines/types/context";
5
5
 
@@ -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_core4.Children;
20
+ declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core11.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.cjs";
2
- import * as _alloy_js_core3 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
3
  import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
4
4
  import { StoragePreset } from "powerlines/types/fs";
5
5
 
@@ -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_core3.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
package/dist/index.cjs CHANGED
@@ -3,11 +3,9 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
3
  const require_core_components_output = require('./core/components/output.cjs');
4
4
  const require_unctx = require('./internal/unctx.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
7
- __alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
8
6
  let __alloy_js_core = require("@alloy-js/core");
9
- let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
10
- __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
7
+ let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
8
+ __alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
11
9
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
12
10
  let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
13
11
 
@@ -19,88 +17,81 @@ let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
19
17
  * @returns A Powerlines plugin that integrates Alloy-js transformations.
20
18
  */
21
19
  const plugin = (options = {}) => {
22
- return [
23
- (0, __powerlines_plugin_babel.default)(),
24
- {
25
- name: "alloy:config",
26
- config() {
27
- this.debug("Updating configuration options to support Alloy-js builds.");
28
- return {
29
- alloy: {
30
- typescript: true,
31
- ...options
32
- },
33
- transform: { babel: { presets: [[
34
- (0, __alloy_js_babel_preset.default)({ addSourceInfo: this.config.mode === "development" }),
35
- {},
36
- (_, id) => /^(?:m|c)?tsx?$/.test((0, __stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true }))
37
- ]] } },
38
- build: {
39
- inputOptions: { transform: { jsx: "preserve" } },
40
- external: [/^@?powerlines\//, /^@alloy-js\//]
41
- }
42
- };
43
- },
44
- async configResolved() {
45
- this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
46
- if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
47
- this.tsconfig.tsconfigJson.compilerOptions ??= {};
48
- if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
49
- if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
50
- await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
20
+ return [{
21
+ name: "alloy:config",
22
+ config() {
23
+ this.debug("Updating configuration options to support Alloy-js builds.");
24
+ return {
25
+ alloy: {
26
+ typescript: true,
27
+ ...options
28
+ },
29
+ build: {
30
+ inputOptions: { transform: { jsx: "preserve" } },
31
+ plugins: [(0, __alloy_js_rollup_plugin.default)()],
32
+ external: [/^@alloy-js\//],
33
+ noExternal: ["@powerlines/plugin-alloy"]
51
34
  }
52
- }
35
+ };
53
36
  },
54
- {
55
- name: "alloy:attach-render",
56
- configResolved: {
57
- order: "pre",
58
- async handler() {
59
- this.debug("Attaching the `render` method to the context object.");
60
- this.render = async (children) => {
61
- const meta = {};
62
- await require_unctx.unctx.callAsync({
63
- value: this,
64
- meta
65
- }, async () => {
66
- const _self$ = this;
67
- await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
68
- context: _self$,
69
- meta,
70
- get basePath() {
71
- return _self$.workspaceConfig.workspaceRoot;
72
- },
73
- children
74
- })), {
75
- visitDirectory: (directory) => {
76
- if (this.fs.existsSync(directory.path)) return;
77
- this.fs.mkdirSync(directory.path);
78
- },
79
- visitFile: (file) => {
80
- if ("contents" in file) {
81
- const metadata = meta[file.path] ?? {};
82
- if (metadata.kind === "builtin") {
83
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
84
- this.emitBuiltinSync(file.contents, metadata.id, {
85
- skipFormat: metadata.skipFormat,
86
- storage: metadata.storage,
87
- extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
88
- });
89
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
37
+ async configResolved() {
38
+ this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
39
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
40
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
41
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
42
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
43
+ await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
44
+ }
45
+ }
46
+ }, {
47
+ name: "alloy:attach-render",
48
+ configResolved: {
49
+ order: "pre",
50
+ async handler() {
51
+ this.debug("Attaching the `render` method to the context object.");
52
+ this.render = async (children) => {
53
+ const meta = {};
54
+ await require_unctx.unctx.callAsync({
55
+ value: this,
56
+ meta
57
+ }, async () => {
58
+ const _self$ = this;
59
+ await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
60
+ context: _self$,
61
+ meta,
62
+ get basePath() {
63
+ return _self$.workspaceConfig.workspaceRoot;
64
+ },
65
+ children
66
+ })), {
67
+ visitDirectory: (directory) => {
68
+ if (this.fs.existsSync(directory.path)) return;
69
+ this.fs.mkdirSync(directory.path);
70
+ },
71
+ visitFile: (file) => {
72
+ if ("contents" in file) {
73
+ const metadata = meta[file.path] ?? {};
74
+ if (metadata.kind === "builtin") {
75
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
76
+ this.emitBuiltinSync(file.contents, metadata.id, {
90
77
  skipFormat: metadata.skipFormat,
91
78
  storage: metadata.storage,
92
- ...metadata.typeDefinition ?? {}
79
+ extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
93
80
  });
94
- else this.emitSync(file.contents, file.path, metadata);
95
- } else this.fs.copySync(file.sourcePath, file.path);
96
- }
97
- });
81
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
82
+ skipFormat: metadata.skipFormat,
83
+ storage: metadata.storage,
84
+ ...metadata.typeDefinition ?? {}
85
+ });
86
+ else this.emitSync(file.contents, file.path, metadata);
87
+ } else this.fs.copySync(file.sourcePath, file.path);
88
+ }
98
89
  });
99
- };
100
- }
90
+ });
91
+ };
101
92
  }
102
93
  }
103
- ];
94
+ }];
104
95
  };
105
96
  var src_default = plugin;
106
97
 
package/dist/index.mjs CHANGED
@@ -1,11 +1,10 @@
1
1
  import { Output as Output$1 } from "./core/components/output.mjs";
2
2
  import { unctx } from "./internal/unctx.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
- import alloyPreset from "@alloy-js/babel-preset";
5
4
  import { renderAsync, traverseOutput } from "@alloy-js/core";
6
- import babel from "@powerlines/plugin-babel";
5
+ import rollupPlugin from "@alloy-js/rollup-plugin";
7
6
  import { StormJSON } from "@stryke/json/storm-json";
8
- import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
7
+ import { findFileExtension } from "@stryke/path/file-path-fns";
9
8
 
10
9
  //#region src/index.tsx
11
10
  /**
@@ -15,88 +14,81 @@ import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path
15
14
  * @returns A Powerlines plugin that integrates Alloy-js transformations.
16
15
  */
17
16
  const plugin = (options = {}) => {
18
- return [
19
- babel(),
20
- {
21
- name: "alloy:config",
22
- config() {
23
- this.debug("Updating configuration options to support Alloy-js builds.");
24
- return {
25
- alloy: {
26
- typescript: true,
27
- ...options
28
- },
29
- transform: { babel: { presets: [[
30
- alloyPreset({ addSourceInfo: this.config.mode === "development" }),
31
- {},
32
- (_, id) => /^(?:m|c)?tsx?$/.test(findFileExtensionSafe(id, { fullExtension: true }))
33
- ]] } },
34
- build: {
35
- inputOptions: { transform: { jsx: "preserve" } },
36
- external: [/^@?powerlines\//, /^@alloy-js\//]
37
- }
38
- };
39
- },
40
- async configResolved() {
41
- this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
42
- if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
43
- this.tsconfig.tsconfigJson.compilerOptions ??= {};
44
- if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
45
- if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
46
- await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
17
+ return [{
18
+ name: "alloy:config",
19
+ config() {
20
+ this.debug("Updating configuration options to support Alloy-js builds.");
21
+ return {
22
+ alloy: {
23
+ typescript: true,
24
+ ...options
25
+ },
26
+ build: {
27
+ inputOptions: { transform: { jsx: "preserve" } },
28
+ plugins: [rollupPlugin()],
29
+ external: [/^@alloy-js\//],
30
+ noExternal: ["@powerlines/plugin-alloy"]
47
31
  }
48
- }
32
+ };
49
33
  },
50
- {
51
- name: "alloy:attach-render",
52
- configResolved: {
53
- order: "pre",
54
- async handler() {
55
- this.debug("Attaching the `render` method to the context object.");
56
- this.render = async (children) => {
57
- const meta = {};
58
- await unctx.callAsync({
59
- value: this,
60
- meta
61
- }, async () => {
62
- const _self$ = this;
63
- await traverseOutput(await renderAsync(createComponent(Output$1, {
64
- context: _self$,
65
- meta,
66
- get basePath() {
67
- return _self$.workspaceConfig.workspaceRoot;
68
- },
69
- children
70
- })), {
71
- visitDirectory: (directory) => {
72
- if (this.fs.existsSync(directory.path)) return;
73
- this.fs.mkdirSync(directory.path);
74
- },
75
- visitFile: (file) => {
76
- if ("contents" in file) {
77
- const metadata = meta[file.path] ?? {};
78
- if (metadata.kind === "builtin") {
79
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
80
- this.emitBuiltinSync(file.contents, metadata.id, {
81
- skipFormat: metadata.skipFormat,
82
- storage: metadata.storage,
83
- extension: findFileExtension(file.path)
84
- });
85
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
34
+ async configResolved() {
35
+ this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
36
+ if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
37
+ this.tsconfig.tsconfigJson.compilerOptions ??= {};
38
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
39
+ if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
40
+ await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
41
+ }
42
+ }
43
+ }, {
44
+ name: "alloy:attach-render",
45
+ configResolved: {
46
+ order: "pre",
47
+ async handler() {
48
+ this.debug("Attaching the `render` method to the context object.");
49
+ this.render = async (children) => {
50
+ const meta = {};
51
+ await unctx.callAsync({
52
+ value: this,
53
+ meta
54
+ }, async () => {
55
+ const _self$ = this;
56
+ await traverseOutput(await renderAsync(createComponent(Output$1, {
57
+ context: _self$,
58
+ meta,
59
+ get basePath() {
60
+ return _self$.workspaceConfig.workspaceRoot;
61
+ },
62
+ children
63
+ })), {
64
+ visitDirectory: (directory) => {
65
+ if (this.fs.existsSync(directory.path)) return;
66
+ this.fs.mkdirSync(directory.path);
67
+ },
68
+ visitFile: (file) => {
69
+ if ("contents" in file) {
70
+ const metadata = meta[file.path] ?? {};
71
+ if (metadata.kind === "builtin") {
72
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
73
+ this.emitBuiltinSync(file.contents, metadata.id, {
86
74
  skipFormat: metadata.skipFormat,
87
75
  storage: metadata.storage,
88
- ...metadata.typeDefinition ?? {}
76
+ extension: findFileExtension(file.path)
89
77
  });
90
- else this.emitSync(file.contents, file.path, metadata);
91
- } else this.fs.copySync(file.sourcePath, file.path);
92
- }
93
- });
78
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
79
+ skipFormat: metadata.skipFormat,
80
+ storage: metadata.storage,
81
+ ...metadata.typeDefinition ?? {}
82
+ });
83
+ else this.emitSync(file.contents, file.path, metadata);
84
+ } else this.fs.copySync(file.sourcePath, file.path);
85
+ }
94
86
  });
95
- };
96
- }
87
+ });
88
+ };
97
89
  }
98
90
  }
99
- ];
91
+ }];
100
92
  };
101
93
  var src_default = plugin;
102
94
 
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _alloy_js_core6 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,7 +9,7 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core0.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core6.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
3
  import { FrontMatterProps } from "./front-matter.cjs";
4
- import * as _alloy_js_core1 from "@alloy-js/core";
4
+ import * as _alloy_js_core4 from "@alloy-js/core";
5
5
 
6
6
  //#region src/markdown/components/markdown-file.d.ts
7
7
  type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
@@ -11,7 +11,7 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps &
11
11
  * @param props - The properties for the source file.
12
12
  * @returns The rendered source file component.
13
13
  */
14
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core1.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core4.Children;
15
15
  type MarkdownFileHeaderProps = SourceFileHeaderProps & {
16
16
  frontMatter?: FrontMatterProps["data"];
17
17
  };
@@ -21,7 +21,7 @@ type MarkdownFileHeaderProps = SourceFileHeaderProps & {
21
21
  * @param props - The properties for the source file header.
22
22
  * @returns The rendered source file header.
23
23
  */
24
- declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core1.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core4.Children;
25
25
  declare type __ΩMarkdownFileProps = any[];
26
26
  declare type __ΩMarkdownFileHeaderProps = any[];
27
27
  //#endregion
@@ -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_core15 from "@alloy-js/core";
3
+ import * as _alloy_js_core1 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_core15.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core1.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_core15.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core1.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core15.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core1.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core13 from "@alloy-js/core";
3
+ import * as _alloy_js_core7 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_core7.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_core14 from "@alloy-js/core";
3
+ import * as _alloy_js_core17 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_core14.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core17.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_core14 from "@alloy-js/core";
1
+ import * as _alloy_js_core15 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_core14.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core15.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_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,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.cjs";
2
- import * as _alloy_js_core7 from "@alloy-js/core";
2
+ import * as _alloy_js_core14 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -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_core7.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core14.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.mjs";
2
- import * as _alloy_js_core12 from "@alloy-js/core";
2
+ import * as _alloy_js_core15 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -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_core15.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.mjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
2
+ import * as _alloy_js_core12 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_core15.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core12.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_core15.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core12.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_core15.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core12.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_core5 from "@alloy-js/core";
2
+ import * as _alloy_js_core12 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_core5.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core12.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_core5.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core12.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.mjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
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_core10.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_core10.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_core11 from "@alloy-js/core";
2
+ import * as _alloy_js_core16 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core11.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core16.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core11.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core16.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core10 from "@alloy-js/core";
2
+ import * as _alloy_js_core8 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core10.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core8.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core10.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core8.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.19.6",
3
+ "version": "0.19.8",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -189,9 +189,10 @@
189
189
  "@alloy-js/core": "^0.22.0",
190
190
  "@alloy-js/json": "^0.22.0",
191
191
  "@alloy-js/markdown": "^0.22.0",
192
+ "@alloy-js/rollup-plugin": "^0.1.0",
192
193
  "@alloy-js/typescript": "^0.22.0",
193
- "@powerlines/deepkit": "^0.6.12",
194
- "@powerlines/plugin-babel": "^0.12.240",
194
+ "@powerlines/deepkit": "^0.6.13",
195
+ "@powerlines/plugin-babel": "^0.12.242",
195
196
  "@storm-software/config-tools": "^1.189.0",
196
197
  "@stryke/capnp": "^0.12.63",
197
198
  "@stryke/convert": "^0.6.37",
@@ -204,14 +205,14 @@
204
205
  "@stryke/types": "^0.10.36",
205
206
  "@stryke/unique-id": "^0.3.49",
206
207
  "defu": "^6.1.4",
207
- "powerlines": "^0.37.102",
208
+ "powerlines": "^0.38.0",
208
209
  "prettier": "^3.8.1",
209
210
  "unctx": "^2.5.0"
210
211
  },
211
212
  "devDependencies": {
212
- "@powerlines/plugin-plugin": "^0.12.182",
213
+ "@powerlines/plugin-plugin": "^0.12.184",
213
214
  "@types/node": "^24.10.9"
214
215
  },
215
216
  "publishConfig": { "access": "public" },
216
- "gitHead": "796dc594db03737a22f52bb6892cb1feea9509a6"
217
+ "gitHead": "8a8bee34b0195608f4e45380ea3bcf33b9da18d7"
217
218
  }