@power-plant/alloy-js 0.0.6 → 0.0.7
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/alert-BZRTtU1X.d.cts +52 -0
- package/dist/alert-BZRTtU1X.d.cts.map +1 -0
- package/dist/alert-BZRTtU1X.d.mts +52 -0
- package/dist/alert-BZRTtU1X.d.mts.map +1 -0
- package/dist/block-declaration-DbMuMxXx.d.cts +19 -0
- package/dist/block-declaration-DbMuMxXx.d.cts.map +1 -0
- package/dist/block-declaration-Yq4hWFFT.d.mts +19 -0
- package/dist/block-declaration-Yq4hWFFT.d.mts.map +1 -0
- package/dist/class-declaration-CL5quGqz.d.mts +139 -0
- package/dist/class-declaration-CL5quGqz.d.mts.map +1 -0
- package/dist/class-declaration-G7ncTlSj.d.cts +139 -0
- package/dist/class-declaration-G7ncTlSj.d.cts.map +1 -0
- package/dist/components-D8UkrP5Q.d.cts +11 -0
- package/dist/components-D8UkrP5Q.d.cts.map +1 -0
- package/dist/components-D8UkrP5Q.d.mts +11 -0
- package/dist/components-D8UkrP5Q.d.mts.map +1 -0
- package/dist/core/components/index.cjs +1 -1
- package/dist/core/components/index.d.cts +1 -1
- package/dist/core/components/index.d.mts +1 -1
- package/dist/core/components/index.mjs +1 -1
- package/dist/core/components/source-file.cjs +1 -1
- package/dist/core/components/source-file.d.cts +1 -1
- package/dist/core/components/source-file.d.mts +1 -1
- package/dist/core/components/source-file.mjs +2 -1
- package/dist/core/components/source-file.mjs.map +1 -0
- package/dist/core/helpers/header-constants.cjs +1 -0
- package/dist/core/helpers/header-constants.d.cts +12 -0
- package/dist/core/helpers/header-constants.d.cts.map +1 -0
- package/dist/core/helpers/header-constants.d.mts +12 -0
- package/dist/core/helpers/header-constants.d.mts.map +1 -0
- package/dist/core/helpers/header-constants.mjs +2 -0
- package/dist/core/helpers/header-constants.mjs.map +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/dynamic-import-statement--GIybIf5.d.cts +30 -0
- package/dist/dynamic-import-statement--GIybIf5.d.cts.map +1 -0
- package/dist/dynamic-import-statement--GIybIf5.d.mts +30 -0
- package/dist/dynamic-import-statement--GIybIf5.d.mts.map +1 -0
- package/dist/front-matter-N6kiCG9y.d.cts +13 -0
- package/dist/front-matter-N6kiCG9y.d.cts.map +1 -0
- package/dist/front-matter-N6kiCG9y.d.mts +13 -0
- package/dist/front-matter-N6kiCG9y.d.mts.map +1 -0
- package/dist/get-call-signature-props-B1NHhswg.d.cts +13 -0
- package/dist/get-call-signature-props-B1NHhswg.d.cts.map +1 -0
- package/dist/get-call-signature-props-B1NHhswg.d.mts +13 -0
- package/dist/get-call-signature-props-B1NHhswg.d.mts.map +1 -0
- package/dist/hcl/components/block-declaration.cjs +1 -0
- package/dist/hcl/components/block-declaration.d.cts +2 -0
- package/dist/hcl/components/block-declaration.d.mts +2 -0
- package/dist/hcl/components/block-declaration.mjs +2 -0
- package/dist/hcl/components/block-declaration.mjs.map +1 -0
- package/dist/hcl/components/hcl-file.cjs +1 -0
- package/dist/hcl/components/hcl-file.d.cts +2 -0
- package/dist/hcl/components/hcl-file.d.mts +2 -0
- package/dist/hcl/components/hcl-file.mjs +2 -0
- package/dist/hcl/components/hcl-file.mjs.map +1 -0
- package/dist/hcl/components/index.cjs +1 -0
- package/dist/hcl/components/index.d.cts +5 -0
- package/dist/hcl/components/index.d.mts +5 -0
- package/dist/hcl/components/index.mjs +1 -0
- package/dist/hcl/components/packer-file.cjs +1 -0
- package/dist/hcl/components/packer-file.d.cts +2 -0
- package/dist/hcl/components/packer-file.d.mts +2 -0
- package/dist/hcl/components/packer-file.mjs +2 -0
- package/dist/hcl/components/packer-file.mjs.map +1 -0
- package/dist/hcl/components/terraform-file.cjs +1 -0
- package/dist/hcl/components/terraform-file.d.cts +2 -0
- package/dist/hcl/components/terraform-file.d.mts +2 -0
- package/dist/hcl/components/terraform-file.mjs +2 -0
- package/dist/hcl/components/terraform-file.mjs.map +1 -0
- package/dist/hcl/index.cjs +1 -0
- package/dist/hcl/index.d.cts +6 -0
- package/dist/hcl/index.d.mts +6 -0
- package/dist/hcl/index.mjs +1 -0
- package/dist/hcl-file-CDeOXiO0.d.mts +25 -0
- package/dist/hcl-file-CDeOXiO0.d.mts.map +1 -0
- package/dist/hcl-file-CxR4hw4B.d.cts +25 -0
- package/dist/hcl-file-CxR4hw4B.d.cts.map +1 -0
- package/dist/heading-CG6LmaB5.d.cts +17 -0
- package/dist/heading-CG6LmaB5.d.cts.map +1 -0
- package/dist/heading-D0he7iDI.d.mts +17 -0
- package/dist/heading-D0he7iDI.d.mts.map +1 -0
- package/dist/index.cjs +1 -47
- package/dist/index.d.cts.map +1 -1
- package/dist/index.mjs +1 -47
- package/dist/interface-declaration-BSo-U6IN.d.cts +78 -0
- package/dist/interface-declaration-BSo-U6IN.d.cts.map +1 -0
- package/dist/interface-declaration-DYLPeJH1.d.mts +78 -0
- package/dist/interface-declaration-DYLPeJH1.d.mts.map +1 -0
- package/dist/lexical-scope-DghPwq5Q.d.cts +12 -0
- package/dist/lexical-scope-DghPwq5Q.d.cts.map +1 -0
- package/dist/lexical-scope-DghPwq5Q.d.mts +12 -0
- package/dist/lexical-scope-DghPwq5Q.d.mts.map +1 -0
- package/dist/markdown/components/alert.cjs +1 -0
- package/dist/markdown/components/alert.d.cts +2 -0
- package/dist/markdown/components/alert.d.mts +2 -0
- package/dist/markdown/components/alert.mjs +2 -0
- package/dist/markdown/components/alert.mjs.map +1 -0
- package/dist/markdown/components/front-matter.cjs +1 -0
- package/dist/markdown/components/front-matter.d.cts +2 -0
- package/dist/markdown/components/front-matter.d.mts +2 -0
- package/dist/markdown/components/front-matter.mjs +2 -0
- package/dist/markdown/components/front-matter.mjs.map +1 -0
- package/dist/markdown/components/heading.cjs +1 -0
- package/dist/markdown/components/heading.d.cts +2 -0
- package/dist/markdown/components/heading.d.mts +2 -0
- package/dist/markdown/components/heading.mjs +2 -0
- package/dist/markdown/components/heading.mjs.map +1 -0
- package/dist/markdown/components/index.cjs +1 -0
- package/dist/markdown/components/index.d.cts +6 -0
- package/dist/markdown/components/index.d.mts +6 -0
- package/dist/markdown/components/index.mjs +1 -0
- package/dist/markdown/components/markdown-file.cjs +1 -0
- package/dist/markdown/components/markdown-file.d.cts +2 -0
- package/dist/markdown/components/markdown-file.d.mts +2 -0
- package/dist/markdown/components/markdown-file.mjs +2 -0
- package/dist/markdown/components/markdown-file.mjs.map +1 -0
- package/dist/markdown/components/markdown-table.cjs +1 -0
- package/dist/markdown/components/markdown-table.d.cts +2 -0
- package/dist/markdown/components/markdown-table.d.mts +2 -0
- package/dist/markdown/components/markdown-table.mjs +2 -0
- package/dist/markdown/components/markdown-table.mjs.map +1 -0
- package/dist/markdown/contexts/index.cjs +1 -0
- package/dist/markdown/contexts/index.d.cts +2 -0
- package/dist/markdown/contexts/index.d.mts +2 -0
- package/dist/markdown/contexts/index.mjs +1 -0
- package/dist/markdown/contexts/markdown-table.cjs +1 -0
- package/dist/markdown/contexts/markdown-table.d.cts +2 -0
- package/dist/markdown/contexts/markdown-table.d.mts +2 -0
- package/dist/markdown/contexts/markdown-table.mjs +2 -0
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
- package/dist/markdown/index.cjs +1 -0
- package/dist/markdown/index.d.cts +9 -0
- package/dist/markdown/index.d.mts +9 -0
- package/dist/markdown/index.mjs +1 -0
- package/dist/markdown-file-BsiASIVZ.d.cts +25 -0
- package/dist/markdown-file-BsiASIVZ.d.cts.map +1 -0
- package/dist/markdown-file-CG6y_nCf.d.mts +25 -0
- package/dist/markdown-file-CG6y_nCf.d.mts.map +1 -0
- package/dist/markdown-table-BxfTr3lV.d.cts +35 -0
- package/dist/markdown-table-BxfTr3lV.d.cts.map +1 -0
- package/dist/markdown-table-BxfTr3lV.d.mts +35 -0
- package/dist/markdown-table-BxfTr3lV.d.mts.map +1 -0
- package/dist/markdown-table-H4veEJCn.d.mts +37 -0
- package/dist/markdown-table-H4veEJCn.d.mts.map +1 -0
- package/dist/markdown-table-P04wFKse.d.cts +37 -0
- package/dist/markdown-table-P04wFKse.d.cts.map +1 -0
- package/dist/object-declaration-BWJ8zDKp.d.cts +24 -0
- package/dist/object-declaration-BWJ8zDKp.d.cts.map +1 -0
- package/dist/object-declaration-DQQhQypx.d.mts +24 -0
- package/dist/object-declaration-DQQhQypx.d.mts.map +1 -0
- package/dist/packer-file-DVdUCeHH.d.cts +16 -0
- package/dist/packer-file-DVdUCeHH.d.cts.map +1 -0
- package/dist/packer-file-DeJWrlcR.d.mts +16 -0
- package/dist/packer-file-DeJWrlcR.d.mts.map +1 -0
- package/dist/property-name-bQ4hrXmQ.d.cts +21 -0
- package/dist/property-name-bQ4hrXmQ.d.cts.map +1 -0
- package/dist/property-name-bQ4hrXmQ.d.mts +21 -0
- package/dist/property-name-bQ4hrXmQ.d.mts.map +1 -0
- package/dist/record-expression-CECGDPCk.d.cts +9 -0
- package/dist/record-expression-CECGDPCk.d.cts.map +1 -0
- package/dist/record-expression-CECGDPCk.d.mts +9 -0
- package/dist/record-expression-CECGDPCk.d.mts.map +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.mjs +2 -1
- package/dist/render.mjs.map +1 -0
- package/dist/rolldown-runtime-CMqjfN_6.cjs +1 -0
- package/dist/{source-file-DVILH8rC.d.mts → source-file-BiWHfxCC.d.mts} +5 -5
- package/dist/source-file-BiWHfxCC.d.mts.map +1 -0
- package/dist/{source-file-CPJOENVo.d.cts → source-file-DfP35Z8l.d.cts} +4 -4
- package/dist/source-file-DfP35Z8l.d.cts.map +1 -0
- package/dist/terraform-file-DS0uAb5z.d.mts +17 -0
- package/dist/terraform-file-DS0uAb5z.d.mts.map +1 -0
- package/dist/terraform-file-gr1_jJWO.d.cts +17 -0
- package/dist/terraform-file-gr1_jJWO.d.cts.map +1 -0
- package/dist/tsdoc-B6Hw9jOF.d.cts +163 -0
- package/dist/tsdoc-B6Hw9jOF.d.cts.map +1 -0
- package/dist/tsdoc-CFdZtTw6.d.mts +163 -0
- package/dist/tsdoc-CFdZtTw6.d.mts.map +1 -0
- package/dist/tsdoc-schema-B4yKswI-.d.mts +21 -0
- package/dist/tsdoc-schema-B4yKswI-.d.mts.map +1 -0
- package/dist/tsdoc-schema-DJ_3JLuh.d.cts +21 -0
- package/dist/tsdoc-schema-DJ_3JLuh.d.cts.map +1 -0
- package/dist/type-declaration-BLvkozNR.d.cts +15 -0
- package/dist/type-declaration-BLvkozNR.d.cts.map +1 -0
- package/dist/type-declaration-BLvkozNR.d.mts +15 -0
- package/dist/type-declaration-BLvkozNR.d.mts.map +1 -0
- package/dist/type-parameters-BzCDG9lT.d.cts +22 -0
- package/dist/type-parameters-BzCDG9lT.d.cts.map +1 -0
- package/dist/type-parameters-BzCDG9lT.d.mts +22 -0
- package/dist/type-parameters-BzCDG9lT.d.mts.map +1 -0
- package/dist/typescript/components/class-declaration.cjs +1 -0
- package/dist/typescript/components/class-declaration.d.cts +2 -0
- package/dist/typescript/components/class-declaration.d.mts +2 -0
- package/dist/typescript/components/class-declaration.mjs +2 -0
- package/dist/typescript/components/class-declaration.mjs.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +2 -0
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
- package/dist/typescript/components/index.cjs +1 -0
- package/dist/typescript/components/index.d.cts +12 -0
- package/dist/typescript/components/index.d.mts +12 -0
- package/dist/typescript/components/index.mjs +1 -0
- package/dist/typescript/components/interface-declaration.cjs +1 -0
- package/dist/typescript/components/interface-declaration.d.cts +2 -0
- package/dist/typescript/components/interface-declaration.d.mts +2 -0
- package/dist/typescript/components/interface-declaration.mjs +2 -0
- package/dist/typescript/components/interface-declaration.mjs.map +1 -0
- package/dist/typescript/components/object-declaration.cjs +1 -0
- package/dist/typescript/components/object-declaration.d.cts +2 -0
- package/dist/typescript/components/object-declaration.d.mts +2 -0
- package/dist/typescript/components/object-declaration.mjs +2 -0
- package/dist/typescript/components/object-declaration.mjs.map +1 -0
- package/dist/typescript/components/property-name.cjs +1 -0
- package/dist/typescript/components/property-name.d.cts +2 -0
- package/dist/typescript/components/property-name.d.mts +2 -0
- package/dist/typescript/components/property-name.mjs +2 -0
- package/dist/typescript/components/property-name.mjs.map +1 -0
- package/dist/typescript/components/record-expression.cjs +3 -0
- package/dist/typescript/components/record-expression.d.cts +2 -0
- package/dist/typescript/components/record-expression.d.mts +2 -0
- package/dist/typescript/components/record-expression.mjs +4 -0
- package/dist/typescript/components/record-expression.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-schema.cjs +1 -0
- package/dist/typescript/components/tsdoc-schema.d.cts +2 -0
- package/dist/typescript/components/tsdoc-schema.d.mts +2 -0
- package/dist/typescript/components/tsdoc-schema.mjs +2 -0
- package/dist/typescript/components/tsdoc-schema.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.cjs +1 -0
- package/dist/typescript/components/tsdoc.d.cts +2 -0
- package/dist/typescript/components/tsdoc.d.mts +2 -0
- package/dist/typescript/components/tsdoc.mjs +2 -0
- package/dist/typescript/components/tsdoc.mjs.map +1 -0
- package/dist/typescript/components/type-declaration.cjs +1 -0
- package/dist/typescript/components/type-declaration.d.cts +2 -0
- package/dist/typescript/components/type-declaration.d.mts +2 -0
- package/dist/typescript/components/type-declaration.mjs +2 -0
- package/dist/typescript/components/type-declaration.mjs.map +1 -0
- package/dist/typescript/components/type-parameters.cjs +1 -0
- package/dist/typescript/components/type-parameters.d.cts +2 -0
- package/dist/typescript/components/type-parameters.d.mts +2 -0
- package/dist/typescript/components/type-parameters.mjs +2 -0
- package/dist/typescript/components/type-parameters.mjs.map +1 -0
- package/dist/typescript/components/typescript-file.cjs +1 -0
- package/dist/typescript/components/typescript-file.d.cts +2 -0
- package/dist/typescript/components/typescript-file.d.mts +2 -0
- package/dist/typescript/components/typescript-file.mjs +2 -0
- package/dist/typescript/components/typescript-file.mjs.map +1 -0
- package/dist/typescript/contexts/index.cjs +1 -0
- package/dist/typescript/contexts/index.d.cts +2 -0
- package/dist/typescript/contexts/index.d.mts +2 -0
- package/dist/typescript/contexts/index.mjs +1 -0
- package/dist/typescript/contexts/lexical-scope.cjs +1 -0
- package/dist/typescript/contexts/lexical-scope.d.cts +2 -0
- package/dist/typescript/contexts/lexical-scope.d.mts +2 -0
- package/dist/typescript/contexts/lexical-scope.mjs +2 -0
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
- package/dist/typescript/contexts/member-scope.cjs +1 -0
- package/dist/typescript/contexts/member-scope.d.cts +18 -0
- package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
- package/dist/typescript/contexts/member-scope.d.mts +18 -0
- package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
- package/dist/typescript/contexts/member-scope.mjs +2 -0
- package/dist/typescript/contexts/member-scope.mjs.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.cjs +1 -0
- package/dist/typescript/helpers/get-call-signature-props.d.cts +2 -0
- package/dist/typescript/helpers/get-call-signature-props.d.mts +2 -0
- package/dist/typescript/helpers/get-call-signature-props.mjs +2 -0
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
- package/dist/typescript/helpers/index.cjs +1 -0
- package/dist/typescript/helpers/index.d.cts +3 -0
- package/dist/typescript/helpers/index.d.mts +3 -0
- package/dist/typescript/helpers/index.mjs +1 -0
- package/dist/typescript/helpers/utilities.cjs +1 -0
- package/dist/typescript/helpers/utilities.d.cts +2 -0
- package/dist/typescript/helpers/utilities.d.mts +2 -0
- package/dist/typescript/helpers/utilities.mjs +2 -0
- package/dist/typescript/helpers/utilities.mjs.map +1 -0
- package/dist/typescript/index.cjs +1 -0
- package/dist/typescript/index.d.cts +19 -0
- package/dist/typescript/index.d.mts +19 -0
- package/dist/typescript/index.mjs +1 -0
- package/dist/typescript/types/components.cjs +0 -0
- package/dist/typescript/types/components.d.cts +2 -0
- package/dist/typescript/types/components.d.mts +2 -0
- package/dist/typescript/types/components.mjs +0 -0
- package/dist/typescript/types/index.cjs +0 -0
- package/dist/typescript/types/index.d.cts +2 -0
- package/dist/typescript/types/index.d.mts +2 -0
- package/dist/typescript/types/index.mjs +0 -0
- package/dist/typescript-file-C0GR7QWh.d.cts +49 -0
- package/dist/typescript-file-C0GR7QWh.d.cts.map +1 -0
- package/dist/typescript-file-YdpvA2Y-.d.mts +49 -0
- package/dist/typescript-file-YdpvA2Y-.d.mts.map +1 -0
- package/dist/utilities-BtXOWwjJ.d.cts +11 -0
- package/dist/utilities-BtXOWwjJ.d.cts.map +1 -0
- package/dist/utilities-BtXOWwjJ.d.mts +11 -0
- package/dist/utilities-BtXOWwjJ.d.mts.map +1 -0
- package/dist/yaml/components/index.cjs +1 -0
- package/dist/yaml/components/index.d.cts +2 -0
- package/dist/yaml/components/index.d.mts +2 -0
- package/dist/yaml/components/index.mjs +1 -0
- package/dist/yaml/components/yaml-file.cjs +1 -0
- package/dist/yaml/components/yaml-file.d.cts +2 -0
- package/dist/yaml/components/yaml-file.d.mts +2 -0
- package/dist/yaml/components/yaml-file.mjs +2 -0
- package/dist/yaml/components/yaml-file.mjs.map +1 -0
- package/dist/yaml/index.cjs +1 -0
- package/dist/yaml/index.d.cts +3 -0
- package/dist/yaml/index.d.mts +3 -0
- package/dist/yaml/index.mjs +1 -0
- package/dist/yaml-file-BBXSkeRl.d.cts +31 -0
- package/dist/yaml-file-BBXSkeRl.d.cts.map +1 -0
- package/dist/yaml-file-BRSIxFdU.d.mts +31 -0
- package/dist/yaml-file-BRSIxFdU.d.mts.map +1 -0
- package/package.json +570 -11
- package/dist/render-Bh6nE1bo.cjs +0 -1
- package/dist/render-UH3hN5fr.mjs +0 -2
- package/dist/render-UH3hN5fr.mjs.map +0 -1
- package/dist/source-file-CPJOENVo.d.cts.map +0 -1
- package/dist/source-file-DVILH8rC.d.mts.map +0 -1
- package/dist/source-file-K_2P7eFP.cjs +0 -1
- package/dist/source-file-t3itBybg.mjs +0 -2
- package/dist/source-file-t3itBybg.mjs.map +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { a as SourceFileHeaderProps, t as ComponentProps } from "./components-vJaCHt1A.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-BiWHfxCC.mjs";
|
|
3
|
+
import { n as TypescriptFileImports } from "./components-D8UkrP5Q.mjs";
|
|
4
|
+
import { Children } from "@alloy-js/core";
|
|
5
|
+
import { TSModuleScope } from "@alloy-js/typescript";
|
|
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
|
+
debug?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
29
|
+
*
|
|
30
|
+
* @param props - The properties for the source file header.
|
|
31
|
+
* @returns The rendered source file header.
|
|
32
|
+
*/
|
|
33
|
+
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
34
|
+
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
35
|
+
imports?: TypescriptFileImports;
|
|
36
|
+
builtinImports?: TypescriptFileImports;
|
|
37
|
+
scope?: TSModuleScope;
|
|
38
|
+
prefix?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
42
|
+
*
|
|
43
|
+
* @param props - The properties for the source file header.
|
|
44
|
+
* @returns The rendered source file header.
|
|
45
|
+
*/
|
|
46
|
+
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { TypescriptFileHeaderProps as a, TypescriptFileHeaderImportsProps as i, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, TypescriptFile as t };
|
|
49
|
+
//# sourceMappingURL=typescript-file-YdpvA2Y-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file-YdpvA2Y-.d.mts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"mappings":""}
|
|
@@ -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 as t };
|
|
11
|
+
//# sourceMappingURL=utilities-BtXOWwjJ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities-BtXOWwjJ.d.cts","names":[],"sources":["../src/typescript/helpers/utilities.ts"],"mappings":";;;;;;;iBAwBgB,oBAAoB"}
|
|
@@ -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 as t };
|
|
11
|
+
//# sourceMappingURL=utilities-BtXOWwjJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities-BtXOWwjJ.d.mts","names":[],"sources":["../src/typescript/helpers/utilities.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./yaml-file.cjs");exports.YamlFile=e.YamlFile,exports.YamlFileHeader=e.YamlFileHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{YamlFile as e,YamlFileHeader as t}from"./yaml-file.mjs";export{e as YamlFile,t as YamlFileHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../core/components/single-line-comment.cjs"),t=require("../../core/components/source-file.cjs"),n=require("../../core/helpers/header-constants.cjs");let r=require("@alloy-js/core/jsx-runtime"),i=require("@alloy-js/core"),a=require("@stryke/type-checks");function o({key:e,value:t}){return[(0,r.createComponent)(i.Show,{get when(){return!!e},children:i.code`${e}:`}),(0,r.createComponent)(i.Show,{when:typeof t==`string`||typeof t==`number`||typeof t==`boolean`,get children(){return i.code` ${String(t)}`}}),(0,r.createComponent)(i.Show,{get when(){return(0,r.memo)(()=>!!(0,a.isSetObject)(t))()&&!Array.isArray(t)},get children(){return(0,r.createComponent)(i.For,{get each(){return Object.entries(t)},children:([e,t])=>(0,r.createComponent)(o,{key:e,value:t})})}}),(0,r.createComponent)(i.Show,{get when(){return Array.isArray(t)},get children(){return(0,r.createComponent)(i.For,{each:t,children:e=>(0,r.createComponent)(o,{value:e})})}})]}function s({data:e}){return[(0,r.createComponent)(i.Show,{get when(){return!!e},get children(){return(0,r.createComponent)(i.For,{get each(){return Object.entries(e??{})},children:([e,t])=>(0,r.createComponent)(o,{key:e,value:t})})}})]}function c(e){let[{children:n,path:a,data:o,header:c},u]=(0,i.splitProps)(e,[`children`,`path`,`data`,`header`]);return(0,r.createComponent)(t.SourceFile,(0,r.mergeProps)(u,{path:a,get header(){return(0,r.createComponent)(l,{children:c})},filetype:`yaml`,get children(){return[(0,r.createComponent)(i.Show,{get when(){return!!o},get children(){return(0,r.createComponent)(s,{data:o})}}),(0,r.createComponent)(i.Show,{get when(){return!!n},get children(){return[n,(0,r.createIntrinsic)(`hbr`,{})]}})]}}))}function l(t){let{children:a}=t;return[(0,r.createComponent)(i.Show,{get when(){return!!a},get children(){return[a,(0,r.createIntrinsic)(`hbr`,{})]}}),(0,r.createComponent)(e.SingleLineComment,{children:n.HEADER_TEXT_LINE_1}),(0,r.createIntrinsic)(`hbr`,{}),(0,r.createComponent)(e.SingleLineComment,{variant:`yaml`,children:n.HEADER_TEXT_LINE_2}),(0,r.createIntrinsic)(`hbr`,{})]}exports.YamlFile=c,exports.YamlFileHeader=l;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{SingleLineComment as e}from"../../core/components/single-line-comment.mjs";import{SourceFile as t}from"../../core/components/source-file.mjs";import{HEADER_TEXT_LINE_1 as n,HEADER_TEXT_LINE_2 as r}from"../../core/helpers/header-constants.mjs";import{createComponent as i,createIntrinsic as a,memo as o,mergeProps as s}from"@alloy-js/core/jsx-runtime";import{For as c,Show as l,code as u,splitProps as d}from"@alloy-js/core";import{isSetObject as f}from"@stryke/type-checks";function p({key:e,value:t}){return[i(l,{get when(){return!!e},children:u`${e}:`}),i(l,{when:typeof t==`string`||typeof t==`number`||typeof t==`boolean`,get children(){return u` ${String(t)}`}}),i(l,{get when(){return o(()=>!!f(t))()&&!Array.isArray(t)},get children(){return i(c,{get each(){return Object.entries(t)},children:([e,t])=>i(p,{key:e,value:t})})}}),i(l,{get when(){return Array.isArray(t)},get children(){return i(c,{each:t,children:e=>i(p,{value:e})})}})]}function m({data:e}){return[i(l,{get when(){return!!e},get children(){return i(c,{get each(){return Object.entries(e??{})},children:([e,t])=>i(p,{key:e,value:t})})}})]}function h(e){let[{children:n,path:r,data:o,header:c},u]=d(e,[`children`,`path`,`data`,`header`]);return i(t,s(u,{path:r,get header(){return i(g,{children:c})},filetype:`yaml`,get children(){return[i(l,{get when(){return!!o},get children(){return i(m,{data:o})}}),i(l,{get when(){return!!n},get children(){return[n,a(`hbr`,{})]}})]}}))}function g(t){let{children:o}=t;return[i(l,{get when(){return!!o},get children(){return[o,a(`hbr`,{})]}}),i(e,{children:n}),a(`hbr`,{}),i(e,{variant:`yaml`,children:r}),a(`hbr`,{})]}export{h as YamlFile,g as YamlFileHeader};
|
|
2
|
+
//# sourceMappingURL=yaml-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-file.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/yaml-file.cjs");require("./components/index.cjs"),exports.YamlFile=e.YamlFile,exports.YamlFileHeader=e.YamlFileHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{YamlFile as e,YamlFileHeader as t}from"./components/yaml-file.mjs";import"./components/index.mjs";export{e as YamlFile,t as YamlFileHeader};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { a as SourceFileHeaderProps, t as ComponentProps } from "./components-vJaCHt1A.cjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-DfP35Z8l.cjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
//#region src/yaml/components/yaml-file.d.ts
|
|
5
|
+
interface YamlData {
|
|
6
|
+
[key: string]: string | number | boolean | YamlData | YamlData[];
|
|
7
|
+
}
|
|
8
|
+
type YamlFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
9
|
+
header?: Children;
|
|
10
|
+
data?: YamlData;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A base component representing a Powerlines generated YAML source file.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function YamlFile(props: YamlFileProps): Children;
|
|
22
|
+
/**
|
|
23
|
+
* Renders the header for a Powerlines YAML source file.
|
|
24
|
+
*
|
|
25
|
+
* @param props - The properties for the source file header.
|
|
26
|
+
* @returns The rendered source file header.
|
|
27
|
+
*/
|
|
28
|
+
declare function YamlFileHeader(props: SourceFileHeaderProps): Children;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { YamlFileProps as i, YamlFile as n, YamlFileHeader as r, YamlData as t };
|
|
31
|
+
//# sourceMappingURL=yaml-file-BBXSkeRl.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-file-BBXSkeRl.d.cts","names":[],"sources":["../src/yaml/components/yaml-file.tsx"],"mappings":";;;;UAiCiB;GACd,0CAA0C,WAAW;;KAoD5C,gBAAgB,KAAK,iCAC/B;EACE,SAAS;EACT,OAAO;;;;;;;;;;;iBAYK,SAAS,OAAO,gBAAa;;;;;;;iBAiC7B,eAAe,OAAO,wBAAqB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { a as SourceFileHeaderProps, t as ComponentProps } from "./components-vJaCHt1A.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-BiWHfxCC.mjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
//#region src/yaml/components/yaml-file.d.ts
|
|
5
|
+
interface YamlData {
|
|
6
|
+
[key: string]: string | number | boolean | YamlData | YamlData[];
|
|
7
|
+
}
|
|
8
|
+
type YamlFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
9
|
+
header?: Children;
|
|
10
|
+
data?: YamlData;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A base component representing a Powerlines generated YAML source file.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function YamlFile(props: YamlFileProps): Children;
|
|
22
|
+
/**
|
|
23
|
+
* Renders the header for a Powerlines YAML source file.
|
|
24
|
+
*
|
|
25
|
+
* @param props - The properties for the source file header.
|
|
26
|
+
* @returns The rendered source file header.
|
|
27
|
+
*/
|
|
28
|
+
declare function YamlFileHeader(props: SourceFileHeaderProps): Children;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { YamlFileProps as i, YamlFile as n, YamlFileHeader as r, YamlData as t };
|
|
31
|
+
//# sourceMappingURL=yaml-file-BRSIxFdU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-file-BRSIxFdU.d.mts","names":[],"sources":["../src/yaml/components/yaml-file.tsx"],"mappings":""}
|