@powerlines/plugin-alloy 0.18.81 → 0.18.83

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 (26) hide show
  1. package/dist/core/components/output.d.mts +2 -2
  2. package/dist/core/components/single-line-comment.d.cts +2 -2
  3. package/dist/core/components/single-line-comment.d.mts +2 -2
  4. package/dist/core/components/source-file.d.cts +2 -2
  5. package/dist/core/components/source-file.d.mts +2 -2
  6. package/dist/markdown/components/markdown-file.d.cts +3 -3
  7. package/dist/markdown/components/markdown-file.d.mts +3 -3
  8. package/dist/markdown/components/markdown-table.d.mts +4 -4
  9. package/dist/typescript/components/builtin-file.d.cts +2 -2
  10. package/dist/typescript/components/builtin-file.d.mts +2 -2
  11. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  12. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  13. package/dist/typescript/components/entry-file.d.mts +2 -2
  14. package/dist/typescript/components/tsdoc-reflection.cjs +4 -3
  15. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  16. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  17. package/dist/typescript/components/tsdoc-reflection.mjs +4 -3
  18. package/dist/typescript/components/tsdoc.cjs +11 -7
  19. package/dist/typescript/components/tsdoc.mjs +11 -7
  20. package/dist/typescript/components/typescript-interface.cjs +6 -2
  21. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  22. package/dist/typescript/components/typescript-interface.d.mts +3 -3
  23. package/dist/typescript/components/typescript-interface.mjs +6 -2
  24. package/dist/typescript/components/typescript-object.d.cts +3 -3
  25. package/dist/typescript/components/typescript-object.d.mts +3 -3
  26. package/package.json +5 -5
@@ -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_core15 from "@alloy-js/core";
3
+ import * as _alloy_js_core13 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_core15.Children;
20
+ declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core13.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_core7 from "@alloy-js/core";
2
+ import * as _alloy_js_core8 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_core7.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core8.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core14 from "@alloy-js/core";
2
+ import * as _alloy_js_core9 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_core14.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core9.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_core8 from "@alloy-js/core";
3
+ import * as _alloy_js_core7 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_core8.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core7.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1,6 +1,6 @@
1
1
  import { StoragePreset } from "../../powerlines/src/types/fs.mjs";
2
2
  import { ComponentProps } from "../../types/components.mjs";
3
- import * as _alloy_js_core13 from "@alloy-js/core";
3
+ import * as _alloy_js_core14 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_core13.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core14.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -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_core4 from "@alloy-js/core";
3
+ import * as _alloy_js_core5 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_core4.Children;
13
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.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_core4.Children;
20
+ declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core5.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_core15 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_core15.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_core15.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.mjs";
2
2
  import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.mjs";
3
- import * as _alloy_js_core10 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_core10.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_core10.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_core10.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,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core6 from "@alloy-js/core";
3
+ import * as _alloy_js_core14 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_core6.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core14.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_core16 from "@alloy-js/core";
3
+ import * as _alloy_js_core6 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_core16.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core6.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_core3 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_core3.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,4 +1,4 @@
1
- import * as _alloy_js_core9 from "@alloy-js/core";
1
+ import * as _alloy_js_core3 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_core9.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core3.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.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core6 from "@alloy-js/core";
3
+ import * as _alloy_js_core0 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_core6.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core0.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -13,9 +13,10 @@ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
13
13
  * Generates a TypeScript interface property for the given reflection class.
14
14
  */
15
15
  function TSDocReflectionClass(props) {
16
- const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
16
+ const [{ children, heading }, rest] = (0, __alloy_js_core.splitProps)(props, ["heading", "children"]);
17
17
  const reflectionClass = require_core_contexts_reflection.useReflectionClass();
18
18
  const title = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getTitle() || (0, __stryke_string_format_title_case.titleCase)(reflectionClass.reflection.getName()));
19
+ const computedHeading = (0, __alloy_js_core.computed)(() => heading || reflectionClass.reflection.getDescription() || title.value);
19
20
  const alias = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getAlias());
20
21
  const domain = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getDomain());
21
22
  const permission = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getPermission());
@@ -23,10 +24,10 @@ function TSDocReflectionClass(props) {
23
24
  const internal = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isInternal());
24
25
  const ignore = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isIgnored());
25
26
  const hidden = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isHidden());
26
- if (!reflectionClass.reflection.getName()) return null;
27
+ if (!computedHeading.value || (0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value) && computedHeading.value.trim() === "") return null;
27
28
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
28
29
  get heading() {
29
- return reflectionClass.reflection.getDescription();
30
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
30
31
  },
31
32
  get children() {
32
33
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
@@ -1,18 +1,18 @@
1
1
  import { TSDocProps } from "./tsdoc.cjs";
2
- import * as _alloy_js_core12 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 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_core12.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core10.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_core12.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core10.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_core12.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core10.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_core3 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 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_core3.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core10.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_core3.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core10.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_core3.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core10.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -12,9 +12,10 @@ import { isString } from "@stryke/type-checks/is-string";
12
12
  * Generates a TypeScript interface property for the given reflection class.
13
13
  */
14
14
  function TSDocReflectionClass(props) {
15
- const [{ children }, rest] = splitProps(props, ["children"]);
15
+ const [{ children, heading }, rest] = splitProps(props, ["heading", "children"]);
16
16
  const reflectionClass = useReflectionClass();
17
17
  const title = computed(() => reflectionClass.reflection.getTitle() || titleCase(reflectionClass.reflection.getName()));
18
+ const computedHeading = computed(() => heading || reflectionClass.reflection.getDescription() || title.value);
18
19
  const alias = computed(() => reflectionClass.reflection.getAlias());
19
20
  const domain = computed(() => reflectionClass.reflection.getDomain());
20
21
  const permission = computed(() => reflectionClass.reflection.getPermission());
@@ -22,10 +23,10 @@ function TSDocReflectionClass(props) {
22
23
  const internal = computed(() => reflectionClass.reflection.isInternal());
23
24
  const ignore = computed(() => reflectionClass.reflection.isIgnored());
24
25
  const hidden = computed(() => reflectionClass.reflection.isHidden());
25
- if (!reflectionClass.reflection.getName()) return null;
26
+ if (!computedHeading.value || isSetString(computedHeading.value) && computedHeading.value.trim() === "") return null;
26
27
  return createComponent(TSDoc, mergeProps(rest, {
27
28
  get heading() {
28
- return reflectionClass.reflection.getDescription();
29
+ return memo(() => !!isSetString(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
29
30
  },
30
31
  get children() {
31
32
  return [createComponent(Show, {
@@ -263,7 +263,7 @@ function TSDocAttributesTags(props) {
263
263
  return [
264
264
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
265
265
  get when() {
266
- return (0, __stryke_type_checks_is_set_string.isSetString)(title);
266
+ return (0, __stryke_type_checks_is_set_string.isSetString)(title?.trim());
267
267
  },
268
268
  get children() {
269
269
  return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTitle, { children: title });
@@ -271,18 +271,20 @@ function TSDocAttributesTags(props) {
271
271
  }),
272
272
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
273
273
  get when() {
274
- return !(0, __stryke_type_checks_is_undefined.isUndefined)(alias) && alias.length > 0;
274
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(!(0, __stryke_type_checks_is_undefined.isUndefined)(alias) && alias.length > 0))() && alias.some((a) => (0, __stryke_type_checks_is_set_string.isSetString)(a?.trim()));
275
275
  },
276
276
  get children() {
277
277
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
278
- each: alias ?? [],
278
+ get each() {
279
+ return alias?.filter((a) => (0, __stryke_type_checks_is_set_string.isSetString)(a?.trim())) ?? [];
280
+ },
279
281
  children: (alias$1) => (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocAlias, { children: alias$1 })
280
282
  });
281
283
  }
282
284
  }),
283
285
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
284
286
  get when() {
285
- return (0, __stryke_type_checks_is_set_string.isSetString)(domain);
287
+ return (0, __stryke_type_checks_is_set_string.isSetString)(domain?.trim());
286
288
  },
287
289
  get children() {
288
290
  return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocDomain, { children: domain });
@@ -290,11 +292,13 @@ function TSDocAttributesTags(props) {
290
292
  }),
291
293
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
292
294
  get when() {
293
- return !(0, __stryke_type_checks_is_undefined.isUndefined)(permission) && permission.length > 0;
295
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(!(0, __stryke_type_checks_is_undefined.isUndefined)(permission) && permission.length > 0))() && permission.some((p) => (0, __stryke_type_checks_is_set_string.isSetString)(p?.trim()));
294
296
  },
295
297
  get children() {
296
298
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
297
- each: permission ?? [],
299
+ get each() {
300
+ return permission?.filter((p) => (0, __stryke_type_checks_is_set_string.isSetString)(p?.trim())) ?? [];
301
+ },
298
302
  children: (permission$1) => (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocPermission, { children: permission$1 })
299
303
  });
300
304
  }
@@ -325,7 +329,7 @@ function TSDocAttributesTags(props) {
325
329
  }),
326
330
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
327
331
  get when() {
328
- return !(0, __stryke_type_checks_is_undefined.isUndefined)(type);
332
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!!(0, __stryke_type_checks_is_undefined.isUndefined)(type))() && !(0, __stryke_type_checks_is_undefined.isUndefined)(defaultValue);
329
333
  },
330
334
  get children() {
331
335
  return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocDefaultValue, {
@@ -262,7 +262,7 @@ function TSDocAttributesTags(props) {
262
262
  return [
263
263
  createComponent(Show, {
264
264
  get when() {
265
- return isSetString(title);
265
+ return isSetString(title?.trim());
266
266
  },
267
267
  get children() {
268
268
  return createComponent(TSDocTitle, { children: title });
@@ -270,18 +270,20 @@ function TSDocAttributesTags(props) {
270
270
  }),
271
271
  createComponent(Show, {
272
272
  get when() {
273
- return !isUndefined(alias) && alias.length > 0;
273
+ return memo(() => !!(!isUndefined(alias) && alias.length > 0))() && alias.some((a) => isSetString(a?.trim()));
274
274
  },
275
275
  get children() {
276
276
  return createComponent(For, {
277
- each: alias ?? [],
277
+ get each() {
278
+ return alias?.filter((a) => isSetString(a?.trim())) ?? [];
279
+ },
278
280
  children: (alias$1) => createComponent(TSDocAlias, { children: alias$1 })
279
281
  });
280
282
  }
281
283
  }),
282
284
  createComponent(Show, {
283
285
  get when() {
284
- return isSetString(domain);
286
+ return isSetString(domain?.trim());
285
287
  },
286
288
  get children() {
287
289
  return createComponent(TSDocDomain, { children: domain });
@@ -289,11 +291,13 @@ function TSDocAttributesTags(props) {
289
291
  }),
290
292
  createComponent(Show, {
291
293
  get when() {
292
- return !isUndefined(permission) && permission.length > 0;
294
+ return memo(() => !!(!isUndefined(permission) && permission.length > 0))() && permission.some((p) => isSetString(p?.trim()));
293
295
  },
294
296
  get children() {
295
297
  return createComponent(For, {
296
- each: permission ?? [],
298
+ get each() {
299
+ return permission?.filter((p) => isSetString(p?.trim())) ?? [];
300
+ },
297
301
  children: (permission$1) => createComponent(TSDocPermission, { children: permission$1 })
298
302
  });
299
303
  }
@@ -324,7 +328,7 @@ function TSDocAttributesTags(props) {
324
328
  }),
325
329
  createComponent(Show, {
326
330
  get when() {
327
- return !isUndefined(type);
331
+ return memo(() => !!!isUndefined(type))() && !isUndefined(defaultValue);
328
332
  },
329
333
  get children() {
330
334
  return createComponent(TSDocDefaultValue, {
@@ -13,13 +13,17 @@ let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-c
13
13
  * Generates a TypeScript interface for the given reflection class.
14
14
  */
15
15
  function TypeScriptInterface(props) {
16
- const [{ name, reflection }, rest] = (0, __alloy_js_core.splitProps)(props, ["name", "reflection"]);
16
+ const [{ name, reflection, doc }, rest] = (0, __alloy_js_core.splitProps)(props, [
17
+ "name",
18
+ "reflection",
19
+ "doc"
20
+ ]);
17
21
  const interfaceName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_pascal_case.pascalCase)(((0, __stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection.getName()));
18
22
  const properties = reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1);
19
23
  return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
20
24
  value: { reflection },
21
25
  get children() {
22
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({
26
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, { heading: doc }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({
23
27
  "export": true,
24
28
  get name() {
25
29
  return interfaceName.value;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core10 from "@alloy-js/core";
2
+ import * as _alloy_js_core15 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_core10.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core15.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_core10.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core15.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_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core4 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_core0.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core4.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_core0.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core4.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -12,13 +12,17 @@ import { pascalCase } from "@stryke/string-format/pascal-case";
12
12
  * Generates a TypeScript interface for the given reflection class.
13
13
  */
14
14
  function TypeScriptInterface(props) {
15
- const [{ name, reflection }, rest] = splitProps(props, ["name", "reflection"]);
15
+ const [{ name, reflection, doc }, rest] = splitProps(props, [
16
+ "name",
17
+ "reflection",
18
+ "doc"
19
+ ]);
16
20
  const interfaceName = computed(() => pascalCase((isString(name) ? name : name.toString()) || reflection.getName()));
17
21
  const properties = reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1);
18
22
  return createComponent(ReflectionClassContext.Provider, {
19
23
  value: { reflection },
20
24
  get children() {
21
- return [createComponent(TSDocReflectionClass, {}), createComponent(InterfaceDeclaration, mergeProps({
25
+ return [createComponent(TSDocReflectionClass, { heading: doc }), createComponent(InterfaceDeclaration, mergeProps({
22
26
  "export": true,
23
27
  get name() {
24
28
  return interfaceName.value;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
2
+ import * as _alloy_js_core3 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_core15.Children;
18
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core3.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_core15.Children;
22
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core3.Children;
23
23
  declare type __ΩTypescriptObjectProps = any[];
24
24
  declare type __ΩTypescriptObjectPropertyProps = any[];
25
25
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core1 from "@alloy-js/core";
2
+ import * as _alloy_js_core7 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_core1.Children;
18
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core7.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_core1.Children;
22
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core7.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.81",
3
+ "version": "0.18.83",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -360,7 +360,7 @@
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.109",
363
+ "@powerlines/deepkit": "^0.5.111",
364
364
  "@storm-software/config-tools": "^1.188.80",
365
365
  "@stryke/capnp": "^0.12.61",
366
366
  "@stryke/convert": "^0.6.35",
@@ -373,13 +373,13 @@
373
373
  "@stryke/types": "^0.10.34",
374
374
  "@stryke/unique-id": "^0.3.47",
375
375
  "defu": "^6.1.4",
376
- "powerlines": "^0.37.66",
376
+ "powerlines": "^0.37.68",
377
377
  "prettier": "^3.8.0"
378
378
  },
379
379
  "devDependencies": {
380
- "@powerlines/plugin-plugin": "^0.12.144",
380
+ "@powerlines/plugin-plugin": "^0.12.146",
381
381
  "@types/node": "^24.10.9"
382
382
  },
383
383
  "publishConfig": { "access": "public" },
384
- "gitHead": "964f9f340f7e07c42d3d8d28eb454e4c4eb7beaf"
384
+ "gitHead": "f8260d0aec03ef3e809d6c0a7f95faf703fc3801"
385
385
  }