@powerlines/plugin-alloy 0.26.165 → 0.26.167

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 { Children, Context } from "@alloy-js/core";
2
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
2
+ import { ResolvedEntryFileReference, StoragePreset } from "powerlines";
3
3
  import { SourceFileContext } from "@alloy-js/typescript";
4
4
 
5
5
  //#region src/types/components.d.ts
@@ -32,7 +32,7 @@ type OutputFile = (WriteOutputFile & {
32
32
  kind: "file";
33
33
  }) | (WriteOutputFile & {
34
34
  kind: "entry";
35
- typeDefinition?: ResolvedEntryTypeDefinition;
35
+ typeDefinition?: ResolvedEntryFileReference;
36
36
  }) | (WriteOutputFile & {
37
37
  kind: "builtin";
38
38
  id: string;
@@ -43,7 +43,7 @@ interface OutputDirectory {
43
43
  contents: (OutputDirectory | OutputFile)[];
44
44
  }
45
45
  interface RenderEntryContext {
46
- typeDefinition: ResolvedEntryTypeDefinition;
46
+ typeDefinition: ResolvedEntryFileReference;
47
47
  }
48
48
  interface RenderBuiltinContext {
49
49
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.cts","names":[],"sources":["../../src/types/components.ts"],"mappings":";;;;;UAsBiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,UAAA;;;;;;;EAQA,MAAA,GAAS,aAAa;AAAA;AAAA,UAGP,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA;EAHA;;;;;;EAWA,MAAA,GAAS,aAAa;AAAA;AAAA,KAGZ,UAAA,IACP,eAAA;EAAoB,IAAA;AAAA,MACpB,eAAA;EACC,IAAA;EACA,cAAA,GAAiB,2BAAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAU;AAAA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+1,6 @@
1
1
  import { Children, Context } from "@alloy-js/core";
2
2
  import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
3
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
3
+ import { ResolvedEntryFileReference, StoragePreset } from "powerlines";
4
4
 
5
5
  //#region src/types/components.d.ts
6
6
  interface CopyOutputFile {
@@ -32,7 +32,7 @@ type OutputFile = (WriteOutputFile & {
32
32
  kind: "file";
33
33
  }) | (WriteOutputFile & {
34
34
  kind: "entry";
35
- typeDefinition?: ResolvedEntryTypeDefinition;
35
+ typeDefinition?: ResolvedEntryFileReference;
36
36
  }) | (WriteOutputFile & {
37
37
  kind: "builtin";
38
38
  id: string;
@@ -43,7 +43,7 @@ interface OutputDirectory {
43
43
  contents: (OutputDirectory | OutputFile)[];
44
44
  }
45
45
  interface RenderEntryContext {
46
- typeDefinition: ResolvedEntryTypeDefinition;
46
+ typeDefinition: ResolvedEntryFileReference;
47
47
  }
48
48
  interface RenderBuiltinContext {
49
49
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.mts","names":[],"sources":["../../src/types/components.ts"],"mappings":";;;;;UAsBiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,UAAA;;;;;;;EAQA,MAAA,GAAS,aAAa;AAAA;AAAA,UAGP,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA;EAHA;;;;;;EAWA,MAAA,GAAS,aAAa;AAAA;AAAA,KAGZ,UAAA,IACP,eAAA;EAAoB,IAAA;AAAA,MACpB,eAAA;EACC,IAAA;EACA,cAAA,GAAiB,2BAAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAU;AAAA;AAAA,UAGxB,kBAAA;EACf,cAAA,EAAgB,2BAA2B;AAAA;AAAA,UAG5B,oBAAA;EACf,EAAE;AAAA;A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AAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAU;AAAA;AAAA,UAGxB,kBAAA;EACf,cAAA,EAAgB,0BAA0B;AAAA;AAAA,UAG3B,oBAAA;EACf,EAAE;AAAA;AAAA,UAGa,mBAAA;EACf,IAAA,GAAO,aAAa;AAAA;AAAA,UAGL,qBAAA;EACf,IAAA;EACA,UAAU;AAAA;AAAA,UAGK,aAAA,SAAsB,OAAA;EACrC,IAAA;IACE,QAAA,GAAW,qBAAA;IAtBgB;;AAAU;IA2BrC,OAAA,GAAU,oBAAA;IAxBqB;;;IA6B/B,KAAA,GAAQ,kBAAA;IAzBK;;;IA8Bb,MAAA,GAAS,mBAAA;EAAA,IACP,MAAA;AAAA;;;;UAMW,cAAA;EACf,QAAA,GAAW,QAAQ;AAAA;;;AA5BT;KAkCA,0BAAA,GAA6B,IAAA,CAAK,cAAA,gBAC5C,QAAA,CAAS,IAAA,CAAK,cAAA;AAAA,UAEC,wBAAA,SAAiC,mBAAiB;;;;EAIjE,EAAE;AAAA;AAAA,UAGa,2BAAA;EACf,IAAA,YAAgB,QAAA;EAChB,IAAA,YAAgB,QAAA;EAChB,OAAA;EACA,YAAA,GAAe,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGR,wBAAA;EACf,IAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,MAAA,yBAElB,KAAA,CAAM,wBAAA;AAAA,UAGP,qBAAA,SAA8B,cAAc;EA1CvD;;AAAM;AAMZ;;EA0CE,aAAA;EAzCA;AAAmB;AAMrB;;;EA0CE,YAAA;EA1CuC;;;;;EAiDvC,eAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.mjs","names":[],"sources":["../../src/types/components.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children, Context } from \"@alloy-js/core\";\nimport type { SourceFileContext } from \"@alloy-js/typescript\";\nimport { ResolvedEntryTypeDefinition, StoragePreset } from \"powerlines\";\n\nexport interface CopyOutputFile {\n kind: \"file\";\n path: string;\n sourcePath: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport interface WriteOutputFile {\n kind: \"file\" | \"entry\" | \"builtin\";\n path: string;\n contents: string;\n filetype: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport type OutputFile =\n | (WriteOutputFile & { kind: \"file\" })\n | (WriteOutputFile & {\n kind: \"entry\";\n typeDefinition?: ResolvedEntryTypeDefinition;\n })\n | (WriteOutputFile & { kind: \"builtin\"; id: string })\n | CopyOutputFile;\n\nexport interface OutputDirectory {\n kind: \"directory\";\n path: string;\n contents: (OutputDirectory | OutputFile)[];\n}\n\nexport interface RenderEntryContext {\n typeDefinition: ResolvedEntryTypeDefinition;\n}\n\nexport interface RenderBuiltinContext {\n id: string;\n}\n\nexport interface RenderOutputContext {\n mode?: StoragePreset;\n}\n\nexport interface CopyFileOutputContext {\n path?: string;\n sourcePath?: string;\n}\n\nexport interface RenderContext extends Context {\n meta?: {\n copyFile?: CopyFileOutputContext;\n\n /**\n * The current context for the built-in module.\n */\n builtin?: RenderBuiltinContext;\n\n /**\n * The current context for the application entrypoint file being rendered.\n */\n entry?: RenderEntryContext;\n\n /**\n * The current context for output rendering.\n */\n output?: RenderOutputContext;\n } & Record<string, any>;\n}\n\n/**\n * A type that represents the props of a component that can have children.\n */\nexport interface ComponentProps {\n children?: Children;\n}\n\n/**\n * A type that requires the `children` prop in a component.\n */\nexport type ComponentPropsWithChildren = Omit<ComponentProps, \"children\"> &\n Required<Pick<ComponentProps, \"children\">>;\n\nexport interface BuiltinSourceFileContext extends SourceFileContext {\n /**\n * The runtime module identifier.\n */\n id: string;\n}\n\nexport interface ReflectionOverrideInterface<T> {\n name?: string | Children;\n type?: string | Children;\n extends?: string | false;\n defaultValue?: Partial<T>;\n}\n\nexport interface TypescriptFileImportItem {\n name: string;\n default?: boolean;\n alias?: string;\n type?: boolean;\n}\n\nexport type TypescriptFileImports = Record<\n string,\n null | string | Array<TypescriptFileImportItem | string>\n>;\n\nexport interface SourceFileHeaderProps extends ComponentProps {\n /**\n * If true, disables the ESLint directive at the top of the file.\n *\n * @defaultValue true\n */\n disableEslint?: boolean;\n\n /**\n * If true, disables the Biome directive at the top of the file.\n *\n * @defaultValue true\n */\n disableBiome?: boolean;\n\n /**\n * If true, disables the Prettier directive at the top of the file.\n *\n * @defaultValue false\n */\n disablePrettier?: boolean;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"components.mjs","names":[],"sources":["../../src/types/components.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children, Context } from \"@alloy-js/core\";\nimport type { SourceFileContext } from \"@alloy-js/typescript\";\nimport { ResolvedEntryFileReference, StoragePreset } from \"powerlines\";\n\nexport interface CopyOutputFile {\n kind: \"file\";\n path: string;\n sourcePath: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport interface WriteOutputFile {\n kind: \"file\" | \"entry\" | \"builtin\";\n path: string;\n contents: string;\n filetype: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport type OutputFile =\n | (WriteOutputFile & { kind: \"file\" })\n | (WriteOutputFile & {\n kind: \"entry\";\n typeDefinition?: ResolvedEntryFileReference;\n })\n | (WriteOutputFile & { kind: \"builtin\"; id: string })\n | CopyOutputFile;\n\nexport interface OutputDirectory {\n kind: \"directory\";\n path: string;\n contents: (OutputDirectory | OutputFile)[];\n}\n\nexport interface RenderEntryContext {\n typeDefinition: ResolvedEntryFileReference;\n}\n\nexport interface RenderBuiltinContext {\n id: string;\n}\n\nexport interface RenderOutputContext {\n mode?: StoragePreset;\n}\n\nexport interface CopyFileOutputContext {\n path?: string;\n sourcePath?: string;\n}\n\nexport interface RenderContext extends Context {\n meta?: {\n copyFile?: CopyFileOutputContext;\n\n /**\n * The current context for the built-in module.\n */\n builtin?: RenderBuiltinContext;\n\n /**\n * The current context for the application entrypoint file being rendered.\n */\n entry?: RenderEntryContext;\n\n /**\n * The current context for output rendering.\n */\n output?: RenderOutputContext;\n } & Record<string, any>;\n}\n\n/**\n * A type that represents the props of a component that can have children.\n */\nexport interface ComponentProps {\n children?: Children;\n}\n\n/**\n * A type that requires the `children` prop in a component.\n */\nexport type ComponentPropsWithChildren = Omit<ComponentProps, \"children\"> &\n Required<Pick<ComponentProps, \"children\">>;\n\nexport interface BuiltinSourceFileContext extends SourceFileContext {\n /**\n * The runtime module identifier.\n */\n id: string;\n}\n\nexport interface ReflectionOverrideInterface<T> {\n name?: string | Children;\n type?: string | Children;\n extends?: string | false;\n defaultValue?: Partial<T>;\n}\n\nexport interface TypescriptFileImportItem {\n name: string;\n default?: boolean;\n alias?: string;\n type?: boolean;\n}\n\nexport type TypescriptFileImports = Record<\n string,\n null | string | Array<TypescriptFileImportItem | string>\n>;\n\nexport interface SourceFileHeaderProps extends ComponentProps {\n /**\n * If true, disables the ESLint directive at the top of the file.\n *\n * @defaultValue true\n */\n disableEslint?: boolean;\n\n /**\n * If true, disables the Biome directive at the top of the file.\n *\n * @defaultValue true\n */\n disableBiome?: boolean;\n\n /**\n * If true, disables the Prettier directive at the top of the file.\n *\n * @defaultValue false\n */\n disablePrettier?: boolean;\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.cjs";
2
- import { ResolvedEntryTypeDefinition } from "powerlines";
2
+ import { ResolvedEntryFileReference } from "powerlines";
3
3
 
4
4
  //#region src/typescript/components/entry-file.d.ts
5
5
  type EntryFileProps = TypescriptFileProps & {
@@ -12,7 +12,7 @@ type EntryFileProps = TypescriptFileProps & {
12
12
  /**
13
13
  * Render metadata information about the entrypoint
14
14
  */
15
- typeDefinition?: ResolvedEntryTypeDefinition;
15
+ typeDefinition?: ResolvedEntryFileReference;
16
16
  };
17
17
  /**
18
18
  * A base component representing a Powerlines generated Typescript source file.
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;KA4BY,cAAA,GAAiB,mBAAA;;AAA7B;;;;EAME,GAAA;EAAA;;;EAKA,cAAA,GAAiB,2BAA2B;AAAA;AAS9C;;;;;;AAAA,iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAc,4BAAA,QAAA"}
1
+ {"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;KA4BY,cAAA,GAAiB,mBAAA;;AAA7B;;;;EAME,GAAA;EAAA;;;EAKA,cAAA,GAAiB,0BAA0B;AAAA;AAS7C;;;;;;AAAA,iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAc,4BAAA,QAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.mjs";
2
- import { ResolvedEntryTypeDefinition } from "powerlines";
2
+ import { ResolvedEntryFileReference } from "powerlines";
3
3
 
4
4
  //#region src/typescript/components/entry-file.d.ts
5
5
  type EntryFileProps = TypescriptFileProps & {
@@ -12,7 +12,7 @@ type EntryFileProps = TypescriptFileProps & {
12
12
  /**
13
13
  * Render metadata information about the entrypoint
14
14
  */
15
- typeDefinition?: ResolvedEntryTypeDefinition;
15
+ typeDefinition?: ResolvedEntryFileReference;
16
16
  };
17
17
  /**
18
18
  * A base component representing a Powerlines generated Typescript source file.
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file.d.mts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;KA4BY,cAAA,GAAiB,mBAAA;;AAA7B;;;;EAME,GAAA;EAAA;;;EAKA,cAAA,GAAiB,2BAA2B;AAAA;AAS9C;;;;;;AAAA,iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAc,4BAAA,QAAA"}
1
+ {"version":3,"file":"entry-file.d.mts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;KA4BY,cAAA,GAAiB,mBAAA;;AAA7B;;;;EAME,GAAA;EAAA;;;EAKA,cAAA,GAAiB,0BAA0B;AAAA;AAS7C;;;;;;AAAA,iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAc,4BAAA,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file.mjs","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport defu from \"defu\";\nimport { ResolvedEntryTypeDefinition } from \"powerlines\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type EntryFileProps = TypescriptFileProps & {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n\n /**\n * Render metadata information about the entrypoint\n */\n typeDefinition?: ResolvedEntryTypeDefinition;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function EntryFile(props: EntryFileProps) {\n const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(\n props,\n [\"children\", \"meta\", \"tsx\", \"path\", \"typeDefinition\"]\n );\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n `${\n !isSet(tsx) ? path : replaceExtension(path)\n }${tsx ? \".tsx\" : hasFileExtension(path) ? \"\" : \".ts\"}`,\n replacePath(context.entryPath, context.config.cwd)\n )\n : path\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"entry\"\n },\n meta ?? {},\n {\n typeDefinition\n }\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkCA,SAAe,UAAA,OAAA;UAEX,UACA,MACA,KACF,MACD;;;;;;;CAEC,MAAA,UAAA,kBAAA;CACA,MAAG,WAAc,eAAe,UAAC,WAAoB,GAAC,CAAA,MAAA,GAAW,IAAA,OAAW,iBAAA,IAAA,IAAA,MAAA,SAAA,iBAAA,IAAA,IAAA,KAAA,SAAA,YAAA,QAAA,WAAA,QAAA,OAAA,GAAA,CAAA,IAAA,IAAA;CAC7E,OAAA,gBAAA,gBAAA,WAAA,MAAA;EACG,IAAA,OAAW;GACX,OAAQ,SAAI;EACd;EACF,IAAO,OAAQ;GACb,OAAS,KAAA,EACP,MAAK,QACH,GAAA,QAAW,CAAC,GAAA,EACf;EAED;EACM;CACN,CAAC,CAAC;AACJ"}
1
+ {"version":3,"file":"entry-file.mjs","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport defu from \"defu\";\nimport { ResolvedEntryFileReference } from \"powerlines\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type EntryFileProps = TypescriptFileProps & {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n\n /**\n * Render metadata information about the entrypoint\n */\n typeDefinition?: ResolvedEntryFileReference;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function EntryFile(props: EntryFileProps) {\n const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(\n props,\n [\"children\", \"meta\", \"tsx\", \"path\", \"typeDefinition\"]\n );\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n `${\n !isSet(tsx) ? path : replaceExtension(path)\n }${tsx ? \".tsx\" : hasFileExtension(path) ? \"\" : \".ts\"}`,\n replacePath(context.entryPath, context.config.cwd)\n )\n : path\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"entry\"\n },\n meta ?? {},\n {\n typeDefinition\n }\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkCA,SAAe,UAAA,OAAA;UAEX,UACA,MACA,KACF,MACD;;;;;;;CAEC,MAAA,UAAA,kBAAA;CACA,MAAG,WAAc,eAAe,UAAC,WAAoB,GAAC,CAAA,MAAA,GAAW,IAAA,OAAW,iBAAA,IAAA,IAAA,MAAA,SAAA,iBAAA,IAAA,IAAA,KAAA,SAAA,YAAA,QAAA,WAAA,QAAA,OAAA,GAAA,CAAA,IAAA,IAAA;CAC7E,OAAA,gBAAA,gBAAA,WAAA,MAAA;EACG,IAAA,OAAW;GACX,OAAQ,SAAI;EACd;EACF,IAAO,OAAQ;GACb,OAAS,KAAA,EACP,MAAK,QACH,GAAA,QAAW,CAAC,GAAA,EACf;EAED;EACM;CACN,CAAC,CAAC;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.26.165",
3
+ "version": "0.26.167",
4
4
  "description": "A package containing various Alloy framework components and helper utilities.",
5
5
  "keywords": ["alloy-js", "powerlines", "powerlines-plugin"],
6
6
  "homepage": "https://stormsoftware.com",
@@ -293,30 +293,30 @@
293
293
  "@alloy-js/json": "^0.23.0",
294
294
  "@alloy-js/markdown": "^0.23.0",
295
295
  "@alloy-js/typescript": "^0.23.0",
296
- "@powerlines/deepkit": "^0.9.50",
297
- "@powerlines/plugin-babel": "^0.13.71",
296
+ "@powerlines/deepkit": "^0.9.51",
297
+ "@powerlines/plugin-babel": "^0.13.72",
298
298
  "@storm-software/config-tools": "^1.190.33",
299
- "@stryke/capnp": "^0.12.103",
300
- "@stryke/convert": "^0.7.8",
301
- "@stryke/fs": "^0.33.77",
302
- "@stryke/helpers": "^0.10.17",
303
- "@stryke/json": "^0.15.1",
304
- "@stryke/path": "^0.29.4",
305
- "@stryke/string-format": "^0.17.19",
306
- "@stryke/type-checks": "^0.6.10",
307
- "@stryke/types": "^0.12.5",
308
- "@stryke/unique-id": "^0.3.88",
299
+ "@stryke/capnp": "^0.12.104",
300
+ "@stryke/convert": "^0.7.9",
301
+ "@stryke/fs": "^0.33.78",
302
+ "@stryke/helpers": "^0.10.18",
303
+ "@stryke/json": "^0.15.2",
304
+ "@stryke/path": "^0.29.5",
305
+ "@stryke/string-format": "^0.17.20",
306
+ "@stryke/type-checks": "^0.6.11",
307
+ "@stryke/types": "^0.12.6",
308
+ "@stryke/unique-id": "^0.3.89",
309
309
  "defu": "^6.1.7",
310
- "powerlines": "^0.47.75",
310
+ "powerlines": "^0.47.76",
311
311
  "prettier": "^3.8.3",
312
312
  "unctx": "^2.5.0"
313
313
  },
314
314
  "devDependencies": {
315
- "@powerlines/plugin-plugin": "^0.12.487",
315
+ "@powerlines/plugin-plugin": "^0.12.488",
316
316
  "@types/node": "^25.9.1"
317
317
  },
318
318
  "peerDependencies": { "@alloy-js/babel-preset": ">=0.3.0" },
319
319
  "peerDependenciesMeta": { "@alloy-js/babel-preset": { "optional": false } },
320
320
  "publishConfig": { "access": "public" },
321
- "gitHead": "c4bcff0c82d498fe06faf6040e22fc77b4499154"
321
+ "gitHead": "3c8e1ad5b1a50860626e97aed87ea56db57981b3"
322
322
  }