@powerlines/plugin-alloy 0.17.5 → 0.18.0

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 (47) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +8 -0
  2. package/dist/_virtual/rolldown_runtime.mjs +29 -0
  3. package/dist/core/components/output.d.cts +2 -2
  4. package/dist/core/components/output.d.mts +2 -2
  5. package/dist/core/components/single-line-comment.d.cts +2 -2
  6. package/dist/core/components/single-line-comment.d.mts +2 -2
  7. package/dist/core/components/source-file.d.cts +2 -2
  8. package/dist/core/contexts/reflection.d.cts +8 -7
  9. package/dist/core/contexts/reflection.d.mts +8 -7
  10. package/dist/deepkit/src/utilities.cjs +42 -41
  11. package/dist/deepkit/src/utilities.mjs +42 -41
  12. package/dist/deepkit/src/vendor/core.cjs +20 -0
  13. package/dist/deepkit/src/vendor/core.mjs +11 -0
  14. package/dist/deepkit/src/vendor/type.cjs +20 -0
  15. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  16. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  17. package/dist/deepkit/src/vendor/type.mjs +11 -0
  18. package/dist/helpers/capnp.cjs +20 -18
  19. package/dist/helpers/capnp.d.cts +14 -13
  20. package/dist/helpers/capnp.d.mts +14 -13
  21. package/dist/helpers/capnp.mjs +20 -18
  22. package/dist/helpers/typescript.d.cts +3 -1
  23. package/dist/helpers/typescript.d.mts +3 -1
  24. package/dist/markdown/components/markdown-file.d.cts +3 -3
  25. package/dist/markdown/components/markdown-file.d.mts +3 -3
  26. package/dist/markdown/components/markdown-table.d.cts +4 -4
  27. package/dist/markdown/components/markdown-table.d.mts +4 -4
  28. package/dist/types/components.d.cts +6 -2
  29. package/dist/types/components.d.mts +6 -2
  30. package/dist/types/index.d.cts +2 -2
  31. package/dist/types/index.d.mts +2 -2
  32. package/dist/typescript/components/builtin-file.d.mts +2 -2
  33. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  34. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  35. package/dist/typescript/components/entry-file.d.cts +2 -2
  36. package/dist/typescript/components/entry-file.d.mts +2 -2
  37. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  38. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  39. package/dist/typescript/components/typescript-file.cjs +2 -1
  40. package/dist/typescript/components/typescript-file.mjs +2 -1
  41. package/dist/typescript/components/typescript-interface.cjs +2 -1
  42. package/dist/typescript/components/typescript-interface.d.cts +6 -5
  43. package/dist/typescript/components/typescript-interface.d.mts +6 -5
  44. package/dist/typescript/components/typescript-interface.mjs +2 -1
  45. package/dist/typescript/components/typescript-object.d.cts +6 -5
  46. package/dist/typescript/components/typescript-object.d.mts +6 -5
  47. package/package.json +5 -5
@@ -101,7 +101,10 @@ interface TypescriptFileImportItem {
101
101
  alias?: string;
102
102
  type?: boolean;
103
103
  }
104
- type TypescriptFileImports = Record<string, null | Array<TypescriptFileImportItem | string>>;
104
+ type TypescriptFileImportList = Record<string, null | Array<TypescriptFileImportItem | string>>;
105
+ type TypescriptFileImports = TypescriptFileImportList & {
106
+ $builtins?: TypescriptFileImportList;
107
+ };
105
108
  interface SourceFileHeaderProps extends ComponentProps {
106
109
  /**
107
110
  * If true, disables the ESLint directive at the top of the file.
@@ -136,7 +139,8 @@ declare type __ΩComponentPropsWithChildren = any[];
136
139
  declare type __ΩBuiltinSourceFileContext = any[];
137
140
  declare type __ΩReflectionOverrideInterface = any[];
138
141
  declare type __ΩTypescriptFileImportItem = any[];
142
+ declare type __ΩTypescriptFileImportList = any[];
139
143
  declare type __ΩTypescriptFileImports = any[];
140
144
  declare type __ΩSourceFileHeaderProps = any[];
141
145
  //#endregion
142
- export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
146
+ export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -101,7 +101,10 @@ interface TypescriptFileImportItem {
101
101
  alias?: string;
102
102
  type?: boolean;
103
103
  }
104
- type TypescriptFileImports = Record<string, null | Array<TypescriptFileImportItem | string>>;
104
+ type TypescriptFileImportList = Record<string, null | Array<TypescriptFileImportItem | string>>;
105
+ type TypescriptFileImports = TypescriptFileImportList & {
106
+ $builtins?: TypescriptFileImportList;
107
+ };
105
108
  interface SourceFileHeaderProps extends ComponentProps {
106
109
  /**
107
110
  * If true, disables the ESLint directive at the top of the file.
@@ -136,7 +139,8 @@ declare type __ΩComponentPropsWithChildren = any[];
136
139
  declare type __ΩBuiltinSourceFileContext = any[];
137
140
  declare type __ΩReflectionOverrideInterface = any[];
138
141
  declare type __ΩTypescriptFileImportItem = any[];
142
+ declare type __ΩTypescriptFileImportList = any[];
139
143
  declare type __ΩTypescriptFileImports = any[];
140
144
  declare type __ΩSourceFileHeaderProps = any[];
141
145
  //#endregion
142
- export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
146
+ export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -1,3 +1,3 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.cjs";
1
+ import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.cjs";
2
2
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./plugin.cjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
3
+ export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -1,3 +1,3 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.mjs";
1
+ import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./components.mjs";
2
2
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./plugin.mjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile };
3
+ export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports, WriteOutputFile, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImportList, __ΩTypescriptFileImports, __ΩWriteOutputFile };
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core15 from "@alloy-js/core";
3
+ import * as _alloy_js_core12 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_core15.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core12.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_core10 from "@alloy-js/core";
1
+ import * as _alloy_js_core4 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_core10.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core4.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_core13 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_core13.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_core7 from "@alloy-js/core";
3
+ import * as _alloy_js_core5 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_core7.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core5.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core14 from "@alloy-js/core";
3
+ import * as _alloy_js_core6 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_core14.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core6.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_core11 from "@alloy-js/core";
2
+ import * as _alloy_js_core1 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_core11.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core1.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_core11.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core1.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_core11.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core1.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -1,18 +1,18 @@
1
1
  import { TSDocProps } from "./tsdoc.mjs";
2
- import * as _alloy_js_core11 from "@alloy-js/core";
2
+ import * as _alloy_js_core14 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_core11.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core14.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_core11.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core14.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_core11.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core14.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -153,6 +153,7 @@ function TypescriptFileHeader(props) {
153
153
  */
154
154
  function TypescriptFileHeaderImports(props) {
155
155
  const { imports } = props;
156
+ const context = require_core_contexts_context.usePowerlines();
156
157
  const sourceFile = (0, __alloy_js_typescript.useSourceFile)();
157
158
  const scope = props.scope ?? sourceFile.scope;
158
159
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
@@ -166,7 +167,7 @@ function TypescriptFileHeaderImports(props) {
166
167
  return !!imports && Object.keys(imports).length > 0;
167
168
  },
168
169
  get children() {
169
- return Object.entries(imports ?? {}).map(([module$1, imported]) => {
170
+ return Object.entries(imports ?? {}).filter(([key]) => key !== "$builtins").concat(imports && imports.$builtins ? Object.entries(imports.$builtins).map(([key, entry]) => [key.includes(":") ? key : `${context.config.output.builtinPrefix}:${key}`, entry]) : []).map(([module$1, imported]) => {
170
171
  return __alloy_js_core.code`import ${imported === null ? "" : imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).length > 0 && imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? `{ ${imported.map((i) => (0, __stryke_type_checks_is_string.isString)(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module$1}";`;
171
172
  });
172
173
  }
@@ -152,6 +152,7 @@ function TypescriptFileHeader(props) {
152
152
  */
153
153
  function TypescriptFileHeaderImports(props) {
154
154
  const { imports } = props;
155
+ const context = usePowerlines();
155
156
  const sourceFile = useSourceFile();
156
157
  const scope = props.scope ?? sourceFile.scope;
157
158
  return createComponent(Show, {
@@ -165,7 +166,7 @@ function TypescriptFileHeaderImports(props) {
165
166
  return !!imports && Object.keys(imports).length > 0;
166
167
  },
167
168
  get children() {
168
- return Object.entries(imports ?? {}).map(([module, imported]) => {
169
+ return Object.entries(imports ?? {}).filter(([key]) => key !== "$builtins").concat(imports && imports.$builtins ? Object.entries(imports.$builtins).map(([key, entry]) => [key.includes(":") ? key : `${context.config.output.builtinPrefix}:${key}`, entry]) : []).map(([module, imported]) => {
169
170
  return code`import ${imported === null ? "" : imported.filter((i) => !isString(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !isString(i) && i.default).length > 0 && imported.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${imported.map((i) => isString(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module}";`;
170
171
  });
171
172
  }
@@ -1,5 +1,6 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
3
+ const require_type = require('../../deepkit/src/vendor/type.cjs');
3
4
  const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
4
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
6
  let __alloy_js_core = require("@alloy-js/core");
@@ -56,7 +57,7 @@ function TypescriptInterfaceProperty(props) {
56
57
  return property.isNullable();
57
58
  },
58
59
  get type() {
59
- return stringifyType(property.getType());
60
+ return (0, require_type.type_exports.stringifyType)(property.getType());
60
61
  }
61
62
  }, rest))];
62
63
  }
@@ -1,23 +1,24 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core14 from "@alloy-js/core";
2
+ import { type_d_exports } from "../../deepkit/src/vendor/type.cjs";
3
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
4
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
5
 
5
6
  //#region src/typescript/components/typescript-interface.d.ts
6
7
  interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
7
- reflection: ReflectionClass<T>;
8
+ reflection: type_d_exports.ReflectionClass<T>;
8
9
  defaultValue?: Partial<T>;
9
10
  }
10
11
  interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
11
- property: ReflectionProperty;
12
+ property: type_d_exports.ReflectionProperty;
12
13
  }
13
14
  /**
14
15
  * Generates a TypeScript interface for the given reflection class.
15
16
  */
16
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core14.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core0.Children;
17
18
  /**
18
19
  * Generates a TypeScript interface property for the given reflection class.
19
20
  */
20
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core14.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core0.Children;
21
22
  declare type __ΩTypeScriptInterfaceProps = any[];
22
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
23
24
  //#endregion
@@ -1,23 +1,24 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core9 from "@alloy-js/core";
2
+ import { type_d_exports } from "../../deepkit/src/vendor/type.mjs";
3
+ import * as _alloy_js_core7 from "@alloy-js/core";
3
4
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
5
 
5
6
  //#region src/typescript/components/typescript-interface.d.ts
6
7
  interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
7
- reflection: ReflectionClass<T>;
8
+ reflection: type_d_exports.ReflectionClass<T>;
8
9
  defaultValue?: Partial<T>;
9
10
  }
10
11
  interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
11
- property: ReflectionProperty;
12
+ property: type_d_exports.ReflectionProperty;
12
13
  }
13
14
  /**
14
15
  * Generates a TypeScript interface for the given reflection class.
15
16
  */
16
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core9.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core7.Children;
17
18
  /**
18
19
  * Generates a TypeScript interface property for the given reflection class.
19
20
  */
20
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core9.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core7.Children;
21
22
  declare type __ΩTypeScriptInterfaceProps = any[];
22
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
23
24
  //#endregion
@@ -1,4 +1,5 @@
1
1
  import { ReflectionClassContext, ReflectionPropertyContext } from "../../core/contexts/reflection.mjs";
2
+ import { type_exports } from "../../deepkit/src/vendor/type.mjs";
2
3
  import { TSDocReflectionClass, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
3
4
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
5
  import { For, computed, splitProps } from "@alloy-js/core";
@@ -55,7 +56,7 @@ function TypescriptInterfaceProperty(props) {
55
56
  return property.isNullable();
56
57
  },
57
58
  get type() {
58
- return stringifyType(property.getType());
59
+ return (0, type_exports.stringifyType)(property.getType());
59
60
  }
60
61
  }, rest))];
61
62
  }
@@ -1,24 +1,25 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import { type_d_exports } from "../../deepkit/src/vendor/type.cjs";
3
+ import * as _alloy_js_core14 from "@alloy-js/core";
3
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
5
  import { ComputedRef } from "@vue/reactivity";
5
6
 
6
7
  //#region src/typescript/components/typescript-object.d.ts
7
8
  interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
8
- reflection?: ComputedRef<ReflectionClass<T>>;
9
+ reflection?: ComputedRef<type_d_exports.ReflectionClass<T>>;
9
10
  defaultValue?: ComputedRef<Partial<T> | undefined>;
10
11
  }
11
12
  interface TypescriptObjectPropertyProps extends ComponentProps {
12
- property: ReflectionProperty;
13
+ property: type_d_exports.ReflectionProperty;
13
14
  }
14
15
  /**
15
16
  * Generates a TypeScript object for the given reflection class.
16
17
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core8.Children;
18
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core14.Children;
18
19
  /**
19
20
  * Generates a TypeScript object property for the given reflection class.
20
21
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core8.Children;
22
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core14.Children;
22
23
  declare type __ΩTypescriptObjectProps = any[];
23
24
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
25
  //#endregion
@@ -1,24 +1,25 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core5 from "@alloy-js/core";
2
+ import { type_d_exports } from "../../deepkit/src/vendor/type.mjs";
3
+ import * as _alloy_js_core2 from "@alloy-js/core";
3
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
5
  import { ComputedRef } from "@vue/reactivity";
5
6
 
6
7
  //#region src/typescript/components/typescript-object.d.ts
7
8
  interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
8
- reflection?: ComputedRef<ReflectionClass<T>>;
9
+ reflection?: ComputedRef<type_d_exports.ReflectionClass<T>>;
9
10
  defaultValue?: ComputedRef<Partial<T> | undefined>;
10
11
  }
11
12
  interface TypescriptObjectPropertyProps extends ComponentProps {
12
- property: ReflectionProperty;
13
+ property: type_d_exports.ReflectionProperty;
13
14
  }
14
15
  /**
15
16
  * Generates a TypeScript object for the given reflection class.
16
17
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core5.Children;
18
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core2.Children;
18
19
  /**
19
20
  * Generates a TypeScript object property for the given reflection class.
20
21
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core5.Children;
22
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core2.Children;
22
23
  declare type __ΩTypescriptObjectProps = any[];
23
24
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
25
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.17.5",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -360,8 +360,8 @@
360
360
  "@alloy-js/markdown": "^0.22.0",
361
361
  "@alloy-js/rollup-plugin": "^0.1.0",
362
362
  "@alloy-js/typescript": "^0.22.0",
363
- "@powerlines/deepkit": "^0.5.35",
364
- "@powerlines/plugin-plugin": "^0.12.72",
363
+ "@powerlines/deepkit": "^0.5.36",
364
+ "@powerlines/plugin-plugin": "^0.12.73",
365
365
  "@storm-software/config-tools": "^1.188.75",
366
366
  "@stryke/capnp": "^0.12.52",
367
367
  "@stryke/convert": "^0.6.30",
@@ -374,10 +374,10 @@
374
374
  "@stryke/types": "^0.10.29",
375
375
  "@stryke/unique-id": "^0.3.38",
376
376
  "defu": "^6.1.4",
377
- "powerlines": "^0.36.25",
377
+ "powerlines": "^0.36.26",
378
378
  "prettier": "^3.7.4"
379
379
  },
380
380
  "devDependencies": { "@types/node": "^24.10.4" },
381
381
  "publishConfig": { "access": "public" },
382
- "gitHead": "63a6c6a06f250bbb7d2a4576ae1706bb07e0c652"
382
+ "gitHead": "b9a0574767447bffa6549e0492812dfe64e879e3"
383
383
  }