@powerlines/plugin-alloy 0.25.34 → 0.25.36
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.
- package/dist/core/components/index.d.cts +5 -0
- package/dist/core/components/index.d.mts +5 -0
- package/dist/core/components/output.d.cts +24 -0
- package/dist/core/components/output.d.cts.map +1 -0
- package/dist/core/components/output.d.mts +24 -0
- package/dist/core/components/output.d.mts.map +1 -0
- package/dist/core/components/output.mjs +2 -1
- package/dist/core/components/output.mjs.map +1 -0
- package/dist/core/components/single-line-comment.d.cts +23 -0
- package/dist/core/components/single-line-comment.d.cts.map +1 -0
- package/dist/core/components/single-line-comment.d.mts +23 -0
- package/dist/core/components/single-line-comment.d.mts.map +1 -0
- package/dist/core/components/single-line-comment.mjs +2 -1
- package/dist/core/components/single-line-comment.mjs.map +1 -0
- package/dist/core/components/source-file.d.cts +33 -0
- package/dist/core/components/source-file.d.cts.map +1 -0
- package/dist/core/components/source-file.d.mts +33 -0
- package/dist/core/components/source-file.d.mts.map +1 -0
- package/dist/core/components/source-file.mjs +2 -1
- package/dist/core/components/source-file.mjs.map +1 -0
- package/dist/core/components/spacing.d.cts +24 -0
- package/dist/core/components/spacing.d.cts.map +1 -0
- package/dist/core/components/spacing.d.mts +24 -0
- package/dist/core/components/spacing.d.mts.map +1 -0
- package/dist/core/components/spacing.mjs +2 -1
- package/dist/core/components/spacing.mjs.map +1 -0
- package/dist/core/contexts/context.d.cts +29 -0
- package/dist/core/contexts/context.d.cts.map +1 -0
- package/dist/core/contexts/context.d.mts +29 -0
- package/dist/core/contexts/context.d.mts.map +1 -0
- package/dist/core/contexts/context.mjs +2 -1
- package/dist/core/contexts/context.mjs.map +1 -0
- package/dist/core/contexts/index.d.cts +4 -0
- package/dist/core/contexts/index.d.mts +4 -0
- package/dist/core/contexts/meta.d.cts +48 -0
- package/dist/core/contexts/meta.d.cts.map +1 -0
- package/dist/core/contexts/meta.d.mts +48 -0
- package/dist/core/contexts/meta.d.mts.map +1 -0
- package/dist/core/contexts/meta.mjs +2 -1
- package/dist/core/contexts/meta.mjs.map +1 -0
- package/dist/core/contexts/reflection.d.cts +53 -0
- package/dist/core/contexts/reflection.d.cts.map +1 -0
- package/dist/core/contexts/reflection.d.mts +53 -0
- package/dist/core/contexts/reflection.d.mts.map +1 -0
- package/dist/core/contexts/reflection.mjs +2 -1
- package/dist/core/contexts/reflection.mjs.map +1 -0
- package/dist/core/helpers/code.d.cts +29 -0
- package/dist/core/helpers/code.d.cts.map +1 -0
- package/dist/core/helpers/code.d.mts +29 -0
- package/dist/core/helpers/code.d.mts.map +1 -0
- package/dist/core/helpers/code.mjs +2 -1
- package/dist/core/helpers/code.mjs.map +1 -0
- package/dist/core/helpers/index.d.cts +2 -0
- package/dist/core/helpers/index.d.mts +2 -0
- package/dist/core/index.d.cts +9 -0
- package/dist/core/index.d.mts +9 -0
- package/dist/helpers/capnp.d.cts +87 -0
- package/dist/helpers/capnp.d.cts.map +1 -0
- package/dist/helpers/capnp.d.mts +87 -0
- package/dist/helpers/capnp.d.mts.map +1 -0
- package/dist/helpers/capnp.mjs +2 -1
- package/dist/helpers/capnp.mjs.map +1 -0
- package/dist/helpers/create-builtin.d.cts +16 -0
- package/dist/helpers/create-builtin.d.cts.map +1 -0
- package/dist/helpers/create-builtin.d.mts +16 -0
- package/dist/helpers/create-builtin.d.mts.map +1 -0
- package/dist/helpers/create-builtin.mjs +2 -1
- package/dist/helpers/create-builtin.mjs.map +1 -0
- package/dist/helpers/index.d.cts +5 -0
- package/dist/helpers/index.d.mts +5 -0
- package/dist/helpers/refkey.d.cts +13 -0
- package/dist/helpers/refkey.d.cts.map +1 -0
- package/dist/helpers/refkey.d.mts +13 -0
- package/dist/helpers/refkey.d.mts.map +1 -0
- package/dist/helpers/refkey.mjs +2 -1
- package/dist/helpers/refkey.mjs.map +1 -0
- package/dist/helpers/typescript.d.cts +26 -0
- package/dist/helpers/typescript.d.cts.map +1 -0
- package/dist/helpers/typescript.d.mts +26 -0
- package/dist/helpers/typescript.d.mts.map +1 -0
- package/dist/helpers/typescript.mjs +2 -1
- package/dist/helpers/typescript.mjs.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -0
- package/dist/markdown/components/front-matter.d.cts +16 -0
- package/dist/markdown/components/front-matter.d.cts.map +1 -0
- package/dist/markdown/components/front-matter.d.mts +16 -0
- package/dist/markdown/components/front-matter.d.mts.map +1 -0
- package/dist/markdown/components/front-matter.mjs +2 -1
- package/dist/markdown/components/front-matter.mjs.map +1 -0
- package/dist/markdown/components/index.d.cts +4 -0
- package/dist/markdown/components/index.d.mts +4 -0
- package/dist/markdown/components/markdown-file.d.cts +29 -0
- package/dist/markdown/components/markdown-file.d.cts.map +1 -0
- package/dist/markdown/components/markdown-file.d.mts +29 -0
- package/dist/markdown/components/markdown-file.d.mts.map +1 -0
- package/dist/markdown/components/markdown-file.mjs +2 -1
- package/dist/markdown/components/markdown-file.mjs.map +1 -0
- package/dist/markdown/components/markdown-table.d.cts +28 -0
- package/dist/markdown/components/markdown-table.d.cts.map +1 -0
- package/dist/markdown/components/markdown-table.d.mts +28 -0
- package/dist/markdown/components/markdown-table.d.mts.map +1 -0
- package/dist/markdown/components/markdown-table.mjs +2 -1
- package/dist/markdown/components/markdown-table.mjs.map +1 -0
- package/dist/markdown/contexts/index.d.cts +2 -0
- package/dist/markdown/contexts/index.d.mts +2 -0
- package/dist/markdown/contexts/markdown-table.d.cts +38 -0
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
- package/dist/markdown/contexts/markdown-table.d.mts +38 -0
- package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
- package/dist/markdown/contexts/markdown-table.mjs +2 -1
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
- package/dist/markdown/index.d.cts +5 -0
- package/dist/markdown/index.d.mts +5 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.cts +38 -0
- package/dist/render.d.cts.map +1 -0
- package/dist/render.d.mts +38 -0
- package/dist/render.d.mts.map +1 -0
- package/dist/render.mjs +3 -2
- package/dist/render.mjs.map +1 -0
- package/dist/types/components.d.cts +142 -0
- package/dist/types/components.d.cts.map +1 -0
- package/dist/types/components.d.mts +142 -0
- package/dist/types/components.d.mts.map +1 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/plugin.d.cts +39 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +39 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/typescript/components/builtin-file.cjs +1 -1
- package/dist/typescript/components/builtin-file.d.cts +35 -0
- package/dist/typescript/components/builtin-file.d.cts.map +1 -0
- package/dist/typescript/components/builtin-file.d.mts +35 -0
- package/dist/typescript/components/builtin-file.d.mts.map +1 -0
- package/dist/typescript/components/builtin-file.mjs +3 -2
- package/dist/typescript/components/builtin-file.mjs.map +1 -0
- package/dist/typescript/components/class-declaration.d.cts +145 -0
- package/dist/typescript/components/class-declaration.d.cts.map +1 -0
- package/dist/typescript/components/class-declaration.d.mts +145 -0
- package/dist/typescript/components/class-declaration.d.mts.map +1 -0
- package/dist/typescript/components/class-declaration.mjs +2 -1
- package/dist/typescript/components/class-declaration.mjs.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +33 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +33 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +2 -1
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
- package/dist/typescript/components/entry-file.cjs +1 -1
- package/dist/typescript/components/entry-file.d.cts +28 -0
- package/dist/typescript/components/entry-file.d.cts.map +1 -0
- package/dist/typescript/components/entry-file.d.mts +28 -0
- package/dist/typescript/components/entry-file.d.mts.map +1 -0
- package/dist/typescript/components/entry-file.mjs +3 -2
- package/dist/typescript/components/entry-file.mjs.map +1 -0
- package/dist/typescript/components/index.d.cts +15 -0
- package/dist/typescript/components/index.d.mts +15 -0
- package/dist/typescript/components/infrastructure-file.cjs +1 -1
- package/dist/typescript/components/infrastructure-file.d.cts +21 -0
- package/dist/typescript/components/infrastructure-file.d.cts.map +1 -0
- package/dist/typescript/components/infrastructure-file.d.mts +21 -0
- package/dist/typescript/components/infrastructure-file.d.mts.map +1 -0
- package/dist/typescript/components/infrastructure-file.mjs +3 -2
- package/dist/typescript/components/infrastructure-file.mjs.map +1 -0
- package/dist/typescript/components/interface-declaration.d.cts +86 -0
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
- package/dist/typescript/components/interface-declaration.d.mts +86 -0
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
- package/dist/typescript/components/interface-declaration.mjs +2 -1
- package/dist/typescript/components/interface-declaration.mjs.map +1 -0
- package/dist/typescript/components/object-declaration.d.cts +30 -0
- package/dist/typescript/components/object-declaration.d.cts.map +1 -0
- package/dist/typescript/components/object-declaration.d.mts +30 -0
- package/dist/typescript/components/object-declaration.d.mts.map +1 -0
- package/dist/typescript/components/object-declaration.mjs +2 -1
- package/dist/typescript/components/object-declaration.mjs.map +1 -0
- package/dist/typescript/components/property-name.d.cts +24 -0
- package/dist/typescript/components/property-name.d.cts.map +1 -0
- package/dist/typescript/components/property-name.d.mts +24 -0
- package/dist/typescript/components/property-name.d.mts.map +1 -0
- package/dist/typescript/components/property-name.mjs +2 -1
- package/dist/typescript/components/property-name.mjs.map +1 -0
- package/dist/typescript/components/record-expression.d.cts +13 -0
- package/dist/typescript/components/record-expression.d.cts.map +1 -0
- package/dist/typescript/components/record-expression.d.mts +13 -0
- package/dist/typescript/components/record-expression.d.mts.map +1 -0
- package/dist/typescript/components/record-expression.mjs +2 -1
- package/dist/typescript/components/record-expression.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +44 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +44 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +2 -1
- package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.d.cts +164 -0
- package/dist/typescript/components/tsdoc.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc.d.mts +164 -0
- package/dist/typescript/components/tsdoc.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc.mjs +2 -1
- package/dist/typescript/components/tsdoc.mjs.map +1 -0
- package/dist/typescript/components/type-declaration.d.cts +18 -0
- package/dist/typescript/components/type-declaration.d.cts.map +1 -0
- package/dist/typescript/components/type-declaration.d.mts +18 -0
- package/dist/typescript/components/type-declaration.d.mts.map +1 -0
- package/dist/typescript/components/type-declaration.mjs +2 -1
- package/dist/typescript/components/type-declaration.mjs.map +1 -0
- package/dist/typescript/components/type-parameters.d.cts +24 -0
- package/dist/typescript/components/type-parameters.d.cts.map +1 -0
- package/dist/typescript/components/type-parameters.d.mts +24 -0
- package/dist/typescript/components/type-parameters.d.mts.map +1 -0
- package/dist/typescript/components/type-parameters.mjs +2 -1
- package/dist/typescript/components/type-parameters.mjs.map +1 -0
- package/dist/typescript/components/typescript-file.cjs +4 -15
- package/dist/typescript/components/typescript-file.d.cts +50 -0
- package/dist/typescript/components/typescript-file.d.cts.map +1 -0
- package/dist/typescript/components/typescript-file.d.mts +50 -0
- package/dist/typescript/components/typescript-file.d.mts.map +1 -0
- package/dist/typescript/components/typescript-file.mjs +6 -16
- package/dist/typescript/components/typescript-file.mjs.map +1 -0
- package/dist/typescript/contexts/index.d.cts +2 -0
- package/dist/typescript/contexts/index.d.mts +2 -0
- package/dist/typescript/contexts/lexical-scope.d.cts +17 -0
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
- package/dist/typescript/contexts/lexical-scope.d.mts +17 -0
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
- package/dist/typescript/contexts/lexical-scope.mjs +2 -1
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
- package/dist/typescript/contexts/member-scope.d.cts +20 -0
- package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
- package/dist/typescript/contexts/member-scope.d.mts +20 -0
- package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
- package/dist/typescript/contexts/member-scope.mjs +2 -1
- package/dist/typescript/contexts/member-scope.mjs.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.d.cts +14 -0
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.d.mts +14 -0
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.mjs +2 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
- package/dist/typescript/helpers/index.d.cts +3 -0
- package/dist/typescript/helpers/index.d.mts +3 -0
- package/dist/typescript/helpers/utilities.d.cts +11 -0
- package/dist/typescript/helpers/utilities.d.cts.map +1 -0
- package/dist/typescript/helpers/utilities.d.mts +11 -0
- package/dist/typescript/helpers/utilities.d.mts.map +1 -0
- package/dist/typescript/helpers/utilities.mjs +2 -1
- package/dist/typescript/helpers/utilities.mjs.map +1 -0
- package/dist/typescript/index.d.cts +18 -0
- package/dist/typescript/index.d.mts +18 -0
- package/dist/yaml/components/index.d.cts +2 -0
- package/dist/yaml/components/index.d.mts +2 -0
- package/dist/yaml/components/yaml-file.d.cts +34 -0
- package/dist/yaml/components/yaml-file.d.cts.map +1 -0
- package/dist/yaml/components/yaml-file.d.mts +34 -0
- package/dist/yaml/components/yaml-file.d.mts.map +1 -0
- package/dist/yaml/components/yaml-file.mjs +2 -1
- package/dist/yaml/components/yaml-file.mjs.map +1 -0
- package/dist/yaml/index.d.cts +2 -0
- package/dist/yaml/index.d.mts +2 -0
- package/package.json +5 -5
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.cjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
+
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
+
hashbang?: Children | true;
|
|
9
|
+
header?: Children;
|
|
10
|
+
imports?: TypescriptFileImports;
|
|
11
|
+
builtinImports?: TypescriptFileImports;
|
|
12
|
+
export?: boolean | string;
|
|
13
|
+
tsx?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
+
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
+
header?: Children;
|
|
24
|
+
hashbang?: Children | true;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
+
*
|
|
29
|
+
* @param props - The properties for the source file header.
|
|
30
|
+
* @returns The rendered source file header.
|
|
31
|
+
*/
|
|
32
|
+
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
+
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
+
imports?: TypescriptFileImports;
|
|
35
|
+
builtinImports?: TypescriptFileImports;
|
|
36
|
+
scope?: TSModuleScope;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
+
*
|
|
41
|
+
* @param props - The properties for the source file header.
|
|
42
|
+
* @returns The rendered source file header.
|
|
43
|
+
*/
|
|
44
|
+
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
+
declare type __ΩTypescriptFileProps = any[];
|
|
46
|
+
declare type __ΩTypescriptFileHeaderProps = any[];
|
|
47
|
+
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
50
|
+
//# sourceMappingURL=typescript-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file.d.cts","names":[],"sources":["../../../src/typescript/components/typescript-file.tsx"],"mappings":";;;;;;KAsDY,mBAAA,GAAsB,IAAA,CAAK,iBAAA,gBACrC,cAAA;EACE,QAAA,GAAW,QAAA;EACX,MAAA,GAAS,QAAA;EACT,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,MAAA;EACA,GAAA;AAAA;;;;;;;iBASY,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA;AAAA,UAgExC,yBAAA,SAAkC,qBAAA;EACjD,MAAA,GAAS,QAAA;EACT,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,UAuDpD,gCAAA,SAAyC,qBAAA;EACxD,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,KAAA,GAAQ,aAAA;AAAA;;;;;;;iBASM,2BAAA,CACd,KAAA,EAAO,gCAAA,GAAgC,QAAA;AAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ComponentProps, SourceFileHeaderProps, TypescriptFileImports } from "../../types/components.mjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
+
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
+
hashbang?: Children | true;
|
|
9
|
+
header?: Children;
|
|
10
|
+
imports?: TypescriptFileImports;
|
|
11
|
+
builtinImports?: TypescriptFileImports;
|
|
12
|
+
export?: boolean | string;
|
|
13
|
+
tsx?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
+
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
+
header?: Children;
|
|
24
|
+
hashbang?: Children | true;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
+
*
|
|
29
|
+
* @param props - The properties for the source file header.
|
|
30
|
+
* @returns The rendered source file header.
|
|
31
|
+
*/
|
|
32
|
+
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
+
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
+
imports?: TypescriptFileImports;
|
|
35
|
+
builtinImports?: TypescriptFileImports;
|
|
36
|
+
scope?: TSModuleScope;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
+
*
|
|
41
|
+
* @param props - The properties for the source file header.
|
|
42
|
+
* @returns The rendered source file header.
|
|
43
|
+
*/
|
|
44
|
+
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
+
declare type __ΩTypescriptFileProps = any[];
|
|
46
|
+
declare type __ΩTypescriptFileHeaderProps = any[];
|
|
47
|
+
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
50
|
+
//# sourceMappingURL=typescript-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-file.tsx"],"mappings":";;;;;;KAsDY,mBAAA,GAAsB,IAAA,CAAK,iBAAA,gBACrC,cAAA;EACE,QAAA,GAAW,QAAA;EACX,MAAA,GAAS,QAAA;EACT,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,MAAA;EACA,GAAA;AAAA;;;;;;;iBASY,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA;AAAA,UAgExC,yBAAA,SAAkC,qBAAA;EACjD,MAAA,GAAS,QAAA;EACT,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,UAuDpD,gCAAA,SAAyC,qBAAA;EACxD,OAAA,GAAU,qBAAA;EACV,cAAA,GAAiB,qBAAA;EACjB,KAAA,GAAQ,aAAA;AAAA;;;;;;;iBASM,2BAAA,CACd,KAAA,EAAO,gCAAA,GAAgC,QAAA;AAAA"}
|
|
@@ -75,7 +75,7 @@ function TypescriptFile(props) {
|
|
|
75
75
|
* @returns The rendered source file header.
|
|
76
76
|
*/
|
|
77
77
|
function TypescriptFileHeader(props) {
|
|
78
|
-
const { header, hashbang, disableEslint = true, disableBiome = true,
|
|
78
|
+
const { header, hashbang, disableEslint = true, disableBiome = true, children } = props;
|
|
79
79
|
const context = usePowerlinesSafe();
|
|
80
80
|
return [
|
|
81
81
|
createComponent(Show, {
|
|
@@ -106,17 +106,6 @@ function TypescriptFileHeader(props) {
|
|
|
106
106
|
}), createIntrinsic("hbr", {})];
|
|
107
107
|
}
|
|
108
108
|
}),
|
|
109
|
-
createComponent(Show, {
|
|
110
|
-
get when() {
|
|
111
|
-
return Boolean(disablePrettier);
|
|
112
|
-
},
|
|
113
|
-
get children() {
|
|
114
|
-
return [createComponent(SingleLineComment, {
|
|
115
|
-
variant: "slash-star",
|
|
116
|
-
children: "prettier-ignore"
|
|
117
|
-
}), createIntrinsic("hbr", {})];
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
109
|
createComponent(Show, {
|
|
121
110
|
get when() {
|
|
122
111
|
return Boolean(disableBiome);
|
|
@@ -127,7 +116,7 @@ function TypescriptFileHeader(props) {
|
|
|
127
116
|
}),
|
|
128
117
|
createComponent(Show, {
|
|
129
118
|
get when() {
|
|
130
|
-
return Boolean(disableEslint) || Boolean(
|
|
119
|
+
return Boolean(disableEslint) || Boolean(disableBiome);
|
|
131
120
|
},
|
|
132
121
|
get children() {
|
|
133
122
|
return createIntrinsic("hbr", {});
|
|
@@ -187,7 +176,7 @@ function TypescriptFileHeaderImports(props) {
|
|
|
187
176
|
get ender() {
|
|
188
177
|
return createIntrinsic("hbr", {});
|
|
189
178
|
},
|
|
190
|
-
children: ([module, importItem]) => code$1`import ${importItem === null ? "" : isString(importItem) ? importItem : `${importItem.filter((i) => !isString(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (importItem.filter((i) => !isString(i) && i.default).length > 0 && importItem.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (importItem.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${importItem.filter((i) => isString(i) || !i.default).map((i) => isString(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")}`} from "${module}";`
|
|
179
|
+
children: ([module, importItem]) => code$1`import ${importItem === null ? "" : isString(importItem) ? importItem : `${importItem.filter((i) => !isString(i) && i.default).map((i) => `${i.type ? "type " : ""}${i.alias ? i.alias : i.name}`).join(", ") + (importItem.filter((i) => !isString(i) && i.default).length > 0 && importItem.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (importItem.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${importItem.filter((i) => isString(i) || !i.default).map((i) => isString(i) ? i : `${i.type ? "type " : ""}${i.alias ? `${i.name} as ${i.alias}` : i.name}`).join(", ")} }` : "")}`} from "${module}";`
|
|
191
180
|
});
|
|
192
181
|
}
|
|
193
182
|
}),
|
|
@@ -204,7 +193,7 @@ function TypescriptFileHeaderImports(props) {
|
|
|
204
193
|
get ender() {
|
|
205
194
|
return createIntrinsic("hbr", {});
|
|
206
195
|
},
|
|
207
|
-
children: ([module, importItem]) => code$1`import ${importItem === null ? "" : isString(importItem) ? importItem : `${importItem.filter((i) => !isString(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (importItem.filter((i) => !isString(i) && i.default).length > 0 && importItem.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (importItem.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${importItem.filter((i) => isString(i) || !i.default).map((i) => isString(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")}`} from "${module.includes(":") ? module : `${context?.config?.framework || "powerlines"}:${module}`}";`
|
|
196
|
+
children: ([module, importItem]) => code$1`import ${importItem === null ? "" : isString(importItem) ? importItem : `${importItem.filter((i) => !isString(i) && i.default).map((i) => `${i.type ? "type " : ""}${i.alias ? i.alias : i.name}`).join(", ") + (importItem.filter((i) => !isString(i) && i.default).length > 0 && importItem.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (importItem.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${importItem.filter((i) => isString(i) || !i.default).map((i) => isString(i) ? i : `${i.type ? "type " : ""}${i.alias ? `${i.name} as ${i.alias}` : i.name}`).join(", ")} }` : "")}`} from "${module.includes(":") ? module : `${context?.config?.framework || "powerlines"}:${module}`}";`
|
|
208
197
|
});
|
|
209
198
|
}
|
|
210
199
|
}),
|
|
@@ -225,4 +214,5 @@ function TypescriptFileHeaderImports(props) {
|
|
|
225
214
|
}
|
|
226
215
|
|
|
227
216
|
//#endregion
|
|
228
|
-
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
|
|
217
|
+
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
|
|
218
|
+
//# sourceMappingURL=typescript-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file.mjs","names":[],"sources":["../../../src/typescript/components/typescript-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 type { Children } from \"@alloy-js/core\";\nimport {\n computed,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { getFileHeaderWarning } from \"powerlines/utils\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { code } from \"../../core/helpers/code\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\n tsx?: boolean;\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 TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableEslint) || Boolean(disableBiome)}>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n {children}\n <hbr />\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>{getFileHeaderWarning(context!)}</SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports: importProps, builtinImports: builtinImportsProps } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n const imports = computed(() => {\n return Object.fromEntries(\n Object.entries(importProps ?? {}).map(([module, importItem]) => [\n module,\n Array.isArray(importItem)\n ? getUniqueBy(importItem, i => (isString(i) ? i : i.alias || i.name))\n : importItem\n ])\n );\n });\n const builtinImports = computed(() => {\n return Object.fromEntries(\n Object.entries(builtinImportsProps ?? {}).map(([module, importItem]) => [\n module,\n Array.isArray(importItem)\n ? getUniqueBy(importItem, i => (isString(i) ? i : i.alias || i.name))\n : importItem\n ])\n );\n });\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports.value && Object.keys(imports.value).length > 0) ||\n (!!builtinImports.value && Object.keys(builtinImports.value).length > 0)\n }>\n <Show when={!!imports.value && Object.keys(imports.value).length > 0}>\n <For\n each={Object.entries(imports.value ?? {})}\n hardline\n ender={<hbr />}>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : `${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(\n i =>\n `${i.type ? \"type \" : \"\"}${\n i.alias ? i.alias : i.name\n }`\n )\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .filter(i => isString(i) || !i.default)\n .map(i =>\n isString(i)\n ? i\n : `${i.type ? \"type \" : \"\"}${\n i.alias ? `${i.name} as ${i.alias}` : i.name\n }`\n )\n .join(\", \")} }`\n : \"\")\n }`\n } from \"${module}\";`\n }\n </For>\n </Show>\n <Show\n when={\n builtinImports.value && Object.keys(builtinImports.value).length > 0\n }>\n <For\n each={Object.entries(\n (builtinImports.value ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline\n ender={<hbr />}>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : `${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(\n i =>\n `${i.type ? \"type \" : \"\"}${\n i.alias ? i.alias : i.name\n }`\n )\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .filter(i => isString(i) || !i.default)\n .map(i =>\n isString(i)\n ? i\n : `${i.type ? \"type \" : \"\"}${\n i.alias ? `${i.name} as ${i.alias}` : i.name\n }`\n )\n .join(\", \")} }`\n : \"\")\n }`\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./lexical-scope.cjs";
|
|
2
|
+
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./lexical-scope.mjs";
|
|
2
|
+
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/contexts/lexical-scope.d.ts
|
|
5
|
+
interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
|
|
6
|
+
interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
|
|
7
|
+
type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
|
|
8
|
+
/**
|
|
9
|
+
* A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
|
|
10
|
+
*/
|
|
11
|
+
declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core0.Children;
|
|
12
|
+
declare type __ΩLexicalScopePropsWithScopeValue = any[];
|
|
13
|
+
declare type __ΩLexicalScopePropsWithScopeInfo = any[];
|
|
14
|
+
declare type __ΩLexicalScopeProps = any[];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue };
|
|
17
|
+
//# sourceMappingURL=lexical-scope.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/contexts/lexical-scope.d.ts
|
|
5
|
+
interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
|
|
6
|
+
interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}
|
|
7
|
+
type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWithScopeInfo;
|
|
8
|
+
/**
|
|
9
|
+
* A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
|
|
10
|
+
*/
|
|
11
|
+
declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core0.Children;
|
|
12
|
+
declare type __ΩLexicalScopePropsWithScopeValue = any[];
|
|
13
|
+
declare type __ΩLexicalScopePropsWithScopeInfo = any[];
|
|
14
|
+
declare type __ΩLexicalScopeProps = any[];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue };
|
|
17
|
+
//# sourceMappingURL=lexical-scope.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lexical-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lexical-scope.mjs","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.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 { Scope, ScopePropsWithInfo, ScopePropsWithValue } from \"@alloy-js/core\";\nimport { createLexicalScope, TSLexicalScope } from \"@alloy-js/typescript\";\n\nexport interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}\nexport interface LexicalScopePropsWithScopeInfo extends ScopePropsWithInfo {}\n\nexport type LexicalScopeProps =\n | LexicalScopePropsWithScopeValue\n | LexicalScopePropsWithScopeInfo;\n\n/**\n * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.\n */\nexport function LexicalScope(props: LexicalScopeProps) {\n let scope;\n if (\"value\" in props) {\n if (!(props.value instanceof TSLexicalScope)) {\n throw new TypeError(\n \"LexicalScope value must be a TSLexicalScope instance\"\n );\n }\n scope = props.value;\n } else {\n scope = createLexicalScope(props.name ?? \"Lexical scope\", props);\n }\n\n return <Scope value={scope}>{props.children}</Scope>;\n}\n"],"mappings":";;;;;;;;AA4BA,SAAE,aAAA,OAAA;CACA,IAAG;AACH,KAAA,WAAA,OAAA;AACF,MAAO,EAAA,MAAS,iBAAa,gBACvB,OAAK,IAAA,UAAA,uDAAA;AAEP,UAAM,MAAM;OAEZ,SAAK,mBAAmB,MAAS,QAAC,iBAAuB,MAAA;AAE3D,QAAE,gBAAA,OAAA;EACA,OAAO;EACP,IAAI,WAAC;AACL,UAAQ,MAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { TSOutputSymbol } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/contexts/member-scope.d.ts
|
|
5
|
+
interface MemberScopeProps {
|
|
6
|
+
children: Children;
|
|
7
|
+
/**
|
|
8
|
+
* The symbol that this member scope will create member symbols on.
|
|
9
|
+
*/
|
|
10
|
+
ownerSymbol: TSOutputSymbol;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A member scope for TypeScript. Member declarations will create symbols
|
|
14
|
+
* in this scope, which will be added to the owner symbol's members.
|
|
15
|
+
*/
|
|
16
|
+
declare function MemberScope(props: MemberScopeProps): Children;
|
|
17
|
+
declare type __ΩMemberScopeProps = any[];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { MemberScope, MemberScopeProps, __ΩMemberScopeProps };
|
|
20
|
+
//# sourceMappingURL=member-scope.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/member-scope.tsx"],"mappings":";;;;UA6BiB,gBAAA;EACf,QAAA,EAAU,QAAA;EADK;;;EAMf,WAAA,EAAa,cAAA;AAAA;;;;;iBAOC,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;AAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { TSOutputSymbol } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/contexts/member-scope.d.ts
|
|
5
|
+
interface MemberScopeProps {
|
|
6
|
+
children: Children;
|
|
7
|
+
/**
|
|
8
|
+
* The symbol that this member scope will create member symbols on.
|
|
9
|
+
*/
|
|
10
|
+
ownerSymbol: TSOutputSymbol;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A member scope for TypeScript. Member declarations will create symbols
|
|
14
|
+
* in this scope, which will be added to the owner symbol's members.
|
|
15
|
+
*/
|
|
16
|
+
declare function MemberScope(props: MemberScopeProps): Children;
|
|
17
|
+
declare type __ΩMemberScopeProps = any[];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { MemberScope, MemberScopeProps, __ΩMemberScopeProps };
|
|
20
|
+
//# sourceMappingURL=member-scope.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/member-scope.tsx"],"mappings":";;;;UA6BiB,gBAAA;EACf,QAAA,EAAU,QAAA;EADK;;;EAMf,WAAA,EAAa,cAAA;AAAA;;;;;iBAOC,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-scope.mjs","names":[],"sources":["../../../src/typescript/contexts/member-scope.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 {\n Children,\n MemberScope as CoreMemberScope,\n createScope\n} from \"@alloy-js/core\";\nimport {\n TSMemberScope,\n TSOutputSymbol,\n useTSLexicalScopeIfPresent\n} from \"@alloy-js/typescript\";\n\nexport interface MemberScopeProps {\n children: Children;\n\n /**\n * The symbol that this member scope will create member symbols on.\n */\n ownerSymbol: TSOutputSymbol;\n}\n\n/**\n * A member scope for TypeScript. Member declarations will create symbols\n * in this scope, which will be added to the owner symbol's members.\n */\nexport function MemberScope(props: MemberScopeProps) {\n const parentScope = useTSLexicalScopeIfPresent();\n const binder = props.ownerSymbol.binder ?? parentScope?.binder;\n const memberScope = createScope(\n TSMemberScope,\n \"member-scope\",\n parentScope,\n props.ownerSymbol,\n {\n binder\n }\n );\n\n return (\n <CoreMemberScope value={memberScope}>{props.children}</CoreMemberScope>\n );\n}\n"],"mappings":";;;;;;;;;AAkCA,SAAI,YAAA,OAAA;CACF,MAAA,cAAa,4BAAc;CAC7B,MAAA,SAAA,MAAA,YAAA,UAAA,aAAA;AAIE,QAAI,gBAAkB,eAAoB;EAC1C,oFAHA,QACC,CAAC;EAGJ,IAAO,WAAS;AACd,UAAM,MAAW;;EAEjB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CallSignatureProps } from "@alloy-js/typescript";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/helpers/get-call-signature-props.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Get the properties for a call signature, applying any defaults as necessary.
|
|
6
|
+
*
|
|
7
|
+
* @param props - The properties for the call signature.
|
|
8
|
+
* @param defaults - Optional default properties to apply to the call signature.
|
|
9
|
+
* @returns The properties for the call signature, with defaults applied as necessary.
|
|
10
|
+
*/
|
|
11
|
+
declare function getCallSignatureProps(props: CallSignatureProps, defaults?: Partial<CallSignatureProps>): CallSignatureProps;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getCallSignatureProps };
|
|
14
|
+
//# sourceMappingURL=get-call-signature-props.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-call-signature-props.d.cts","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.ts"],"mappings":";;;;;AA4BA;;;;;iBAAgB,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,QAAA,GAAW,OAAA,CAAQ,kBAAA,IAAmB,kBAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CallSignatureProps } from "@alloy-js/typescript";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/helpers/get-call-signature-props.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Get the properties for a call signature, applying any defaults as necessary.
|
|
6
|
+
*
|
|
7
|
+
* @param props - The properties for the call signature.
|
|
8
|
+
* @param defaults - Optional default properties to apply to the call signature.
|
|
9
|
+
* @returns The properties for the call signature, with defaults applied as necessary.
|
|
10
|
+
*/
|
|
11
|
+
declare function getCallSignatureProps(props: CallSignatureProps, defaults?: Partial<CallSignatureProps>): CallSignatureProps;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getCallSignatureProps };
|
|
14
|
+
//# sourceMappingURL=get-call-signature-props.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-call-signature-props.d.mts","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.ts"],"mappings":";;;;;AA4BA;;;;;iBAAgB,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,QAAA,GAAW,OAAA,CAAQ,kBAAA,IAAmB,kBAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-call-signature-props.mjs","names":[],"sources":["../../../src/typescript/helpers/get-call-signature-props.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 { defaultProps, splitProps } from \"@alloy-js/core\";\nimport { CallSignatureProps } from \"@alloy-js/typescript\";\n\n/**\n * Get the properties for a call signature, applying any defaults as necessary.\n *\n * @param props - The properties for the call signature.\n * @param defaults - Optional default properties to apply to the call signature.\n * @returns The properties for the call signature, with defaults applied as necessary.\n */\nexport function getCallSignatureProps(\n props: CallSignatureProps,\n defaults?: Partial<CallSignatureProps>\n) {\n const [callSignatureProps] = splitProps(props, [\n \"parameters\",\n \"parametersChildren\",\n \"typeParameters\",\n \"typeParametersChildren\",\n \"returnType\"\n ]);\n\n if (!defaults) {\n return callSignatureProps;\n }\n\n return defaultProps(callSignatureProps, defaults);\n}\n"],"mappings":";;;;;;;;;;AA4BA,SAAgB,sBACd,OACA,UACA;CACA,MAAM,CAAC,sBAAsB,WAAW,OAAO;EAC7C;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,KAAI,CAAC,SACH,QAAO;AAGT,QAAO,aAAa,oBAAoB,SAAS"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/typescript/helpers/utilities.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Check if a string is a valid JavaScript identifier.
|
|
4
|
+
*
|
|
5
|
+
* @param identifier - The string to check.
|
|
6
|
+
* @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.
|
|
7
|
+
*/
|
|
8
|
+
declare function isValidJSIdentifier(identifier: string): boolean;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { isValidJSIdentifier };
|
|
11
|
+
//# sourceMappingURL=utilities.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.cts","names":[],"sources":["../../../src/typescript/helpers/utilities.ts"],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,CAAoB,UAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/typescript/helpers/utilities.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Check if a string is a valid JavaScript identifier.
|
|
4
|
+
*
|
|
5
|
+
* @param identifier - The string to check.
|
|
6
|
+
* @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.
|
|
7
|
+
*/
|
|
8
|
+
declare function isValidJSIdentifier(identifier: string): boolean;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { isValidJSIdentifier };
|
|
11
|
+
//# sourceMappingURL=utilities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.mts","names":[],"sources":["../../../src/typescript/helpers/utilities.ts"],"mappings":";;AAwBA;;;;;iBAAgB,mBAAA,CAAoB,UAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.mjs","names":[],"sources":["../../../src/typescript/helpers/utilities.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\n/**\n * Check if a string is a valid JavaScript identifier.\n *\n * @param identifier - The string to check.\n * @returns `true` if the string is a valid JavaScript identifier, `false` otherwise.\n */\nexport function isValidJSIdentifier(identifier: string) {\n return /^[\\p{ID_Start}$_][\\p{ID_Continue}$\\u200C\\u200D]*$/u.test(identifier);\n}\n"],"mappings":";;;;;;;AAwBA,SAAgB,oBAAoB,YAAoB;AACtD,QAAO,qDAAqD,KAAK,WAAW"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./components/tsdoc.cjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./components/typescript-file.cjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./components/builtin-file.cjs";
|
|
4
|
+
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./components/type-parameters.cjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.cjs";
|
|
6
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.cjs";
|
|
7
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.cjs";
|
|
8
|
+
import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./components/infrastructure-file.cjs";
|
|
9
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.cjs";
|
|
10
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.cjs";
|
|
11
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.cjs";
|
|
12
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./components/record-expression.cjs";
|
|
13
|
+
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./components/tsdoc-reflection.cjs";
|
|
14
|
+
import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./components/type-declaration.cjs";
|
|
15
|
+
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.cjs";
|
|
16
|
+
import { getCallSignatureProps } from "./helpers/get-call-signature-props.cjs";
|
|
17
|
+
import { isValidJSIdentifier } from "./helpers/utilities.cjs";
|
|
18
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./components/tsdoc.mjs";
|
|
2
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./components/typescript-file.mjs";
|
|
3
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./components/builtin-file.mjs";
|
|
4
|
+
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./components/type-parameters.mjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.mjs";
|
|
6
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.mjs";
|
|
7
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.mjs";
|
|
8
|
+
import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./components/infrastructure-file.mjs";
|
|
9
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.mjs";
|
|
10
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.mjs";
|
|
11
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.mjs";
|
|
12
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./components/record-expression.mjs";
|
|
13
|
+
import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./components/tsdoc-reflection.mjs";
|
|
14
|
+
import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./components/type-declaration.mjs";
|
|
15
|
+
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.mjs";
|
|
16
|
+
import { getCallSignatureProps } from "./helpers/get-call-signature-props.mjs";
|
|
17
|
+
import { isValidJSIdentifier } from "./helpers/utilities.mjs";
|
|
18
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/yaml/components/yaml-file.d.ts
|
|
6
|
+
interface YamlData {
|
|
7
|
+
[key: string]: string | number | boolean | YamlData | YamlData[];
|
|
8
|
+
}
|
|
9
|
+
type YamlFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
10
|
+
header?: Children;
|
|
11
|
+
data?: YamlData;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A base component representing a Powerlines generated YAML source file.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* The file content can be provided either through the `data` prop, which accepts a nested object representing the YAML structure, or through the `children` prop, which allows for custom YAML content to be rendered. The `header` prop can be used to provide custom header content for the YAML file, which is rendered above the generated file header warning and generation comment.
|
|
18
|
+
*
|
|
19
|
+
* @param props - The properties for the source file.
|
|
20
|
+
* @returns The rendered source file component.
|
|
21
|
+
*/
|
|
22
|
+
declare function YamlFile(props: YamlFileProps): Children;
|
|
23
|
+
/**
|
|
24
|
+
* Renders the header for a Powerlines YAML source file.
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the source file header.
|
|
27
|
+
* @returns The rendered source file header.
|
|
28
|
+
*/
|
|
29
|
+
declare function YamlFileHeader(props: SourceFileHeaderProps): Children;
|
|
30
|
+
declare type __ΩYamlData = any[];
|
|
31
|
+
declare type __ΩYamlFileProps = any[];
|
|
32
|
+
//#endregion
|
|
33
|
+
export { YamlData, YamlFile, YamlFileHeader, YamlFileProps, __ΩYamlData, __ΩYamlFileProps };
|
|
34
|
+
//# sourceMappingURL=yaml-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-file.d.cts","names":[],"sources":["../../../src/yaml/components/yaml-file.tsx"],"mappings":";;;;;UA4BiB,QAAA;EAAA,CACd,GAAA,uCAA0C,QAAA,GAAW,QAAA;AAAA;AAAA,KAoD5C,aAAA,GAAgB,IAAA,CAAK,iBAAA,gBAC/B,cAAA;EACE,MAAA,GAAS,QAAA;EACT,IAAA,GAAO,QAAA;AAAA;;;;;AAHX;;;;;iBAegB,QAAA,CAAS,KAAA,EAAO,aAAA,GAAa,QAAA;;;;;;;iBAiC7B,cAAA,CAAe,KAAA,EAAO,qBAAA,GAAqB,QAAA;AAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
|
|
2
|
+
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/yaml/components/yaml-file.d.ts
|
|
6
|
+
interface YamlData {
|
|
7
|
+
[key: string]: string | number | boolean | YamlData | YamlData[];
|
|
8
|
+
}
|
|
9
|
+
type YamlFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
10
|
+
header?: Children;
|
|
11
|
+
data?: YamlData;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A base component representing a Powerlines generated YAML source file.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* The file content can be provided either through the `data` prop, which accepts a nested object representing the YAML structure, or through the `children` prop, which allows for custom YAML content to be rendered. The `header` prop can be used to provide custom header content for the YAML file, which is rendered above the generated file header warning and generation comment.
|
|
18
|
+
*
|
|
19
|
+
* @param props - The properties for the source file.
|
|
20
|
+
* @returns The rendered source file component.
|
|
21
|
+
*/
|
|
22
|
+
declare function YamlFile(props: YamlFileProps): Children;
|
|
23
|
+
/**
|
|
24
|
+
* Renders the header for a Powerlines YAML source file.
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the source file header.
|
|
27
|
+
* @returns The rendered source file header.
|
|
28
|
+
*/
|
|
29
|
+
declare function YamlFileHeader(props: SourceFileHeaderProps): Children;
|
|
30
|
+
declare type __ΩYamlData = any[];
|
|
31
|
+
declare type __ΩYamlFileProps = any[];
|
|
32
|
+
//#endregion
|
|
33
|
+
export { YamlData, YamlFile, YamlFileHeader, YamlFileProps, __ΩYamlData, __ΩYamlFileProps };
|
|
34
|
+
//# sourceMappingURL=yaml-file.d.mts.map
|