@powerlines/plugin-alloy 0.26.48 → 0.26.51
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/package.json +6 -6
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/core/components/index.cjs +0 -12
- package/dist/core/components/index.d.cts +0 -6
- package/dist/core/components/index.d.mts +0 -6
- package/dist/core/components/index.mjs +0 -7
- package/dist/core/components/infrastructure-file.cjs +0 -48
- package/dist/core/components/infrastructure-file.d.cts +0 -27
- package/dist/core/components/infrastructure-file.d.cts.map +0 -1
- package/dist/core/components/infrastructure-file.d.mts +0 -27
- package/dist/core/components/infrastructure-file.d.mts.map +0 -1
- package/dist/core/components/infrastructure-file.mjs +0 -46
- package/dist/core/components/infrastructure-file.mjs.map +0 -1
- package/dist/core/components/output.cjs +0 -41
- package/dist/core/components/output.d.cts +0 -23
- package/dist/core/components/output.d.cts.map +0 -1
- package/dist/core/components/output.d.mts +0 -23
- package/dist/core/components/output.d.mts.map +0 -1
- package/dist/core/components/output.mjs +0 -40
- package/dist/core/components/output.mjs.map +0 -1
- package/dist/core/components/single-line-comment.cjs +0 -23
- package/dist/core/components/single-line-comment.d.cts +0 -21
- package/dist/core/components/single-line-comment.d.cts.map +0 -1
- package/dist/core/components/single-line-comment.d.mts +0 -21
- package/dist/core/components/single-line-comment.d.mts.map +0 -1
- package/dist/core/components/single-line-comment.mjs +0 -22
- package/dist/core/components/single-line-comment.mjs.map +0 -1
- package/dist/core/components/source-file.cjs +0 -64
- package/dist/core/components/source-file.d.cts +0 -32
- package/dist/core/components/source-file.d.cts.map +0 -1
- package/dist/core/components/source-file.d.mts +0 -32
- package/dist/core/components/source-file.d.mts.map +0 -1
- package/dist/core/components/source-file.mjs +0 -62
- package/dist/core/components/source-file.mjs.map +0 -1
- package/dist/core/components/spacing.cjs +0 -20
- package/dist/core/components/spacing.d.cts +0 -23
- package/dist/core/components/spacing.d.cts.map +0 -1
- package/dist/core/components/spacing.d.mts +0 -23
- package/dist/core/components/spacing.d.mts.map +0 -1
- package/dist/core/components/spacing.mjs +0 -19
- package/dist/core/components/spacing.mjs.map +0 -1
- package/dist/core/contexts/context.cjs +0 -41
- package/dist/core/contexts/context.d.cts +0 -29
- package/dist/core/contexts/context.d.cts.map +0 -1
- package/dist/core/contexts/context.d.mts +0 -29
- package/dist/core/contexts/context.d.mts.map +0 -1
- package/dist/core/contexts/context.mjs +0 -37
- package/dist/core/contexts/context.mjs.map +0 -1
- package/dist/core/contexts/index.cjs +0 -22
- package/dist/core/contexts/index.d.cts +0 -4
- package/dist/core/contexts/index.d.mts +0 -4
- package/dist/core/contexts/index.mjs +0 -5
- package/dist/core/contexts/meta.cjs +0 -41
- package/dist/core/contexts/meta.d.cts +0 -47
- package/dist/core/contexts/meta.d.cts.map +0 -1
- package/dist/core/contexts/meta.d.mts +0 -47
- package/dist/core/contexts/meta.d.mts.map +0 -1
- package/dist/core/contexts/meta.mjs +0 -37
- package/dist/core/contexts/meta.mjs.map +0 -1
- package/dist/core/contexts/reflection.cjs +0 -80
- package/dist/core/contexts/reflection.d.cts +0 -62
- package/dist/core/contexts/reflection.d.cts.map +0 -1
- package/dist/core/contexts/reflection.d.mts +0 -62
- package/dist/core/contexts/reflection.d.mts.map +0 -1
- package/dist/core/contexts/reflection.mjs +0 -71
- package/dist/core/contexts/reflection.mjs.map +0 -1
- package/dist/core/helpers/code.cjs +0 -34
- package/dist/core/helpers/code.d.cts +0 -29
- package/dist/core/helpers/code.d.cts.map +0 -1
- package/dist/core/helpers/code.d.mts +0 -29
- package/dist/core/helpers/code.d.mts.map +0 -1
- package/dist/core/helpers/code.mjs +0 -33
- package/dist/core/helpers/code.mjs.map +0 -1
- package/dist/core/helpers/index.cjs +0 -4
- package/dist/core/helpers/index.d.cts +0 -2
- package/dist/core/helpers/index.d.mts +0 -2
- package/dist/core/helpers/index.mjs +0 -3
- package/dist/core/index.cjs +0 -37
- package/dist/core/index.d.cts +0 -10
- package/dist/core/index.d.mts +0 -10
- package/dist/core/index.mjs +0 -14
- package/dist/hcl/components/block-declaration.cjs +0 -34
- package/dist/hcl/components/block-declaration.d.cts +0 -21
- package/dist/hcl/components/block-declaration.d.cts.map +0 -1
- package/dist/hcl/components/block-declaration.d.mts +0 -21
- package/dist/hcl/components/block-declaration.d.mts.map +0 -1
- package/dist/hcl/components/block-declaration.mjs +0 -33
- package/dist/hcl/components/block-declaration.mjs.map +0 -1
- package/dist/hcl/components/hcl-file.cjs +0 -83
- package/dist/hcl/components/hcl-file.d.cts +0 -26
- package/dist/hcl/components/hcl-file.d.cts.map +0 -1
- package/dist/hcl/components/hcl-file.d.mts +0 -26
- package/dist/hcl/components/hcl-file.d.mts.map +0 -1
- package/dist/hcl/components/hcl-file.mjs +0 -81
- package/dist/hcl/components/hcl-file.mjs.map +0 -1
- package/dist/hcl/components/index.cjs +0 -11
- package/dist/hcl/components/index.d.cts +0 -5
- package/dist/hcl/components/index.d.mts +0 -5
- package/dist/hcl/components/index.mjs +0 -6
- package/dist/hcl/components/packer-file.cjs +0 -29
- package/dist/hcl/components/packer-file.d.cts +0 -18
- package/dist/hcl/components/packer-file.d.cts.map +0 -1
- package/dist/hcl/components/packer-file.d.mts +0 -18
- package/dist/hcl/components/packer-file.d.mts.map +0 -1
- package/dist/hcl/components/packer-file.mjs +0 -28
- package/dist/hcl/components/packer-file.mjs.map +0 -1
- package/dist/hcl/components/terraform-file.cjs +0 -30
- package/dist/hcl/components/terraform-file.d.cts +0 -19
- package/dist/hcl/components/terraform-file.d.cts.map +0 -1
- package/dist/hcl/components/terraform-file.d.mts +0 -19
- package/dist/hcl/components/terraform-file.d.mts.map +0 -1
- package/dist/hcl/components/terraform-file.mjs +0 -29
- package/dist/hcl/components/terraform-file.mjs.map +0 -1
- package/dist/hcl/index.cjs +0 -12
- package/dist/hcl/index.d.cts +0 -5
- package/dist/hcl/index.d.mts +0 -5
- package/dist/hcl/index.mjs +0 -7
- package/dist/helpers/capnp.cjs +0 -277
- package/dist/helpers/capnp.d.cts +0 -83
- package/dist/helpers/capnp.d.cts.map +0 -1
- package/dist/helpers/capnp.d.mts +0 -83
- package/dist/helpers/capnp.d.mts.map +0 -1
- package/dist/helpers/capnp.mjs +0 -260
- package/dist/helpers/capnp.mjs.map +0 -1
- package/dist/helpers/create-builtin.cjs +0 -20
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.cts.map +0 -1
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.d.mts.map +0 -1
- package/dist/helpers/create-builtin.mjs +0 -19
- package/dist/helpers/create-builtin.mjs.map +0 -1
- package/dist/helpers/index.cjs +0 -25
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -6
- package/dist/helpers/refkey.cjs +0 -17
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.cts.map +0 -1
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.d.mts.map +0 -1
- package/dist/helpers/refkey.mjs +0 -16
- package/dist/helpers/refkey.mjs.map +0 -1
- package/dist/helpers/typescript.cjs +0 -48
- package/dist/helpers/typescript.d.cts +0 -24
- package/dist/helpers/typescript.d.cts.map +0 -1
- package/dist/helpers/typescript.d.mts +0 -24
- package/dist/helpers/typescript.d.mts.map +0 -1
- package/dist/helpers/typescript.mjs +0 -47
- package/dist/helpers/typescript.mjs.map +0 -1
- package/dist/index.cjs +0 -55
- package/dist/index.d.cts +0 -19
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -19
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -52
- package/dist/index.mjs.map +0 -1
- package/dist/markdown/components/front-matter.cjs +0 -29
- package/dist/markdown/components/front-matter.d.cts +0 -15
- package/dist/markdown/components/front-matter.d.cts.map +0 -1
- package/dist/markdown/components/front-matter.d.mts +0 -15
- package/dist/markdown/components/front-matter.d.mts.map +0 -1
- package/dist/markdown/components/front-matter.mjs +0 -28
- package/dist/markdown/components/front-matter.mjs.map +0 -1
- package/dist/markdown/components/heading.cjs +0 -24
- package/dist/markdown/components/heading.d.cts +0 -19
- package/dist/markdown/components/heading.d.cts.map +0 -1
- package/dist/markdown/components/heading.d.mts +0 -19
- package/dist/markdown/components/heading.d.mts.map +0 -1
- package/dist/markdown/components/heading.mjs +0 -23
- package/dist/markdown/components/heading.mjs.map +0 -1
- package/dist/markdown/components/index.cjs +0 -13
- package/dist/markdown/components/index.d.cts +0 -5
- package/dist/markdown/components/index.d.mts +0 -5
- package/dist/markdown/components/index.mjs +0 -6
- package/dist/markdown/components/markdown-file.cjs +0 -135
- package/dist/markdown/components/markdown-file.d.cts +0 -27
- package/dist/markdown/components/markdown-file.d.cts.map +0 -1
- package/dist/markdown/components/markdown-file.d.mts +0 -27
- package/dist/markdown/components/markdown-file.d.mts.map +0 -1
- package/dist/markdown/components/markdown-file.mjs +0 -133
- package/dist/markdown/components/markdown-file.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.cjs +0 -102
- package/dist/markdown/components/markdown-table.d.cts +0 -26
- package/dist/markdown/components/markdown-table.d.cts.map +0 -1
- package/dist/markdown/components/markdown-table.d.mts +0 -26
- package/dist/markdown/components/markdown-table.d.mts.map +0 -1
- package/dist/markdown/components/markdown-table.mjs +0 -99
- package/dist/markdown/components/markdown-table.mjs.map +0 -1
- package/dist/markdown/contexts/index.cjs +0 -7
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -38
- package/dist/markdown/contexts/markdown-table.d.cts +0 -36
- package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
- package/dist/markdown/contexts/markdown-table.d.mts +0 -36
- package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
- package/dist/markdown/contexts/markdown-table.mjs +0 -34
- package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
- package/dist/markdown/index.cjs +0 -20
- package/dist/markdown/index.d.cts +0 -6
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -9
- package/dist/render.cjs +0 -91
- package/dist/render.d.cts +0 -38
- package/dist/render.d.cts.map +0 -1
- package/dist/render.d.mts +0 -38
- package/dist/render.d.mts.map +0 -1
- package/dist/render.mjs +0 -89
- package/dist/render.mjs.map +0 -1
- package/dist/types/components.cjs +0 -9
- package/dist/types/components.d.cts +0 -126
- package/dist/types/components.d.cts.map +0 -1
- package/dist/types/components.d.mts +0 -126
- package/dist/types/components.d.mts.map +0 -1
- package/dist/types/components.mjs +0 -10
- package/dist/types/components.mjs.map +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -35
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -35
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/plugin.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -63
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.cts.map +0 -1
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.d.mts.map +0 -1
- package/dist/typescript/components/builtin-file.mjs +0 -62
- package/dist/typescript/components/builtin-file.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.cjs +0 -306
- package/dist/typescript/components/class-declaration.d.cts +0 -140
- package/dist/typescript/components/class-declaration.d.cts.map +0 -1
- package/dist/typescript/components/class-declaration.d.mts +0 -140
- package/dist/typescript/components/class-declaration.d.mts.map +0 -1
- package/dist/typescript/components/class-declaration.mjs +0 -300
- package/dist/typescript/components/class-declaration.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -26
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
- package/dist/typescript/components/entry-file.cjs +0 -43
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.cts.map +0 -1
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.d.mts.map +0 -1
- package/dist/typescript/components/entry-file.mjs +0 -41
- package/dist/typescript/components/entry-file.mjs.map +0 -1
- package/dist/typescript/components/index.cjs +0 -64
- package/dist/typescript/components/index.d.cts +0 -14
- package/dist/typescript/components/index.d.mts +0 -14
- package/dist/typescript/components/index.mjs +0 -15
- package/dist/typescript/components/interface-declaration.cjs +0 -239
- package/dist/typescript/components/interface-declaration.d.cts +0 -80
- package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
- package/dist/typescript/components/interface-declaration.d.mts +0 -80
- package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
- package/dist/typescript/components/interface-declaration.mjs +0 -235
- package/dist/typescript/components/interface-declaration.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.cjs +0 -139
- package/dist/typescript/components/object-declaration.d.cts +0 -28
- package/dist/typescript/components/object-declaration.d.cts.map +0 -1
- package/dist/typescript/components/object-declaration.d.mts +0 -28
- package/dist/typescript/components/object-declaration.d.mts.map +0 -1
- package/dist/typescript/components/object-declaration.mjs +0 -137
- package/dist/typescript/components/object-declaration.mjs.map +0 -1
- package/dist/typescript/components/property-name.cjs +0 -32
- package/dist/typescript/components/property-name.d.cts +0 -23
- package/dist/typescript/components/property-name.d.cts.map +0 -1
- package/dist/typescript/components/property-name.d.mts +0 -23
- package/dist/typescript/components/property-name.d.mts.map +0 -1
- package/dist/typescript/components/property-name.mjs +0 -31
- package/dist/typescript/components/property-name.mjs.map +0 -1
- package/dist/typescript/components/record-expression.cjs +0 -13
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.cts.map +0 -1
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.d.mts.map +0 -1
- package/dist/typescript/components/record-expression.mjs +0 -12
- package/dist/typescript/components/record-expression.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -331
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -325
- package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.cjs +0 -497
- package/dist/typescript/components/tsdoc.d.cts +0 -161
- package/dist/typescript/components/tsdoc.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc.d.mts +0 -161
- package/dist/typescript/components/tsdoc.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc.mjs +0 -476
- package/dist/typescript/components/tsdoc.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.cjs +0 -39
- package/dist/typescript/components/type-declaration.d.cts +0 -17
- package/dist/typescript/components/type-declaration.d.cts.map +0 -1
- package/dist/typescript/components/type-declaration.d.mts +0 -17
- package/dist/typescript/components/type-declaration.d.mts.map +0 -1
- package/dist/typescript/components/type-declaration.mjs +0 -38
- package/dist/typescript/components/type-declaration.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.cjs +0 -83
- package/dist/typescript/components/type-parameters.d.cts +0 -23
- package/dist/typescript/components/type-parameters.d.cts.map +0 -1
- package/dist/typescript/components/type-parameters.d.mts +0 -23
- package/dist/typescript/components/type-parameters.d.mts.map +0 -1
- package/dist/typescript/components/type-parameters.mjs +0 -82
- package/dist/typescript/components/type-parameters.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.cjs +0 -221
- package/dist/typescript/components/typescript-file.d.cts +0 -47
- package/dist/typescript/components/typescript-file.d.cts.map +0 -1
- package/dist/typescript/components/typescript-file.d.mts +0 -47
- package/dist/typescript/components/typescript-file.d.mts.map +0 -1
- package/dist/typescript/components/typescript-file.mjs +0 -218
- package/dist/typescript/components/typescript-file.mjs.map +0 -1
- package/dist/typescript/contexts/index.cjs +0 -4
- package/dist/typescript/contexts/index.d.cts +0 -2
- package/dist/typescript/contexts/index.d.mts +0 -2
- package/dist/typescript/contexts/index.mjs +0 -3
- package/dist/typescript/contexts/lexical-scope.cjs +0 -26
- package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
- package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
- package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.mjs +0 -25
- package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.cjs +0 -24
- package/dist/typescript/contexts/member-scope.d.cts +0 -19
- package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/member-scope.d.mts +0 -19
- package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/member-scope.mjs +0 -23
- package/dist/typescript/contexts/member-scope.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +0 -26
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
- package/dist/typescript/helpers/index.cjs +0 -6
- package/dist/typescript/helpers/index.d.cts +0 -3
- package/dist/typescript/helpers/index.d.mts +0 -3
- package/dist/typescript/helpers/index.mjs +0 -4
- package/dist/typescript/helpers/utilities.cjs +0 -15
- package/dist/typescript/helpers/utilities.d.cts +0 -11
- package/dist/typescript/helpers/utilities.d.cts.map +0 -1
- package/dist/typescript/helpers/utilities.d.mts +0 -11
- package/dist/typescript/helpers/utilities.d.mts.map +0 -1
- package/dist/typescript/helpers/utilities.mjs +0 -14
- package/dist/typescript/helpers/utilities.mjs.map +0 -1
- package/dist/typescript/index.cjs +0 -73
- package/dist/typescript/index.d.cts +0 -17
- package/dist/typescript/index.d.mts +0 -17
- package/dist/typescript/index.mjs +0 -21
- package/dist/yaml/components/index.cjs +0 -5
- package/dist/yaml/components/index.d.cts +0 -2
- package/dist/yaml/components/index.d.mts +0 -2
- package/dist/yaml/components/index.mjs +0 -3
- package/dist/yaml/components/yaml-file.cjs +0 -149
- package/dist/yaml/components/yaml-file.d.cts +0 -32
- package/dist/yaml/components/yaml-file.d.cts.map +0 -1
- package/dist/yaml/components/yaml-file.d.mts +0 -32
- package/dist/yaml/components/yaml-file.d.mts.map +0 -1
- package/dist/yaml/components/yaml-file.mjs +0 -147
- package/dist/yaml/components/yaml-file.mjs.map +0 -1
- package/dist/yaml/index.cjs +0 -6
- package/dist/yaml/index.d.cts +0 -2
- package/dist/yaml/index.d.mts +0 -2
- package/dist/yaml/index.mjs +0 -4
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
|
|
5
|
-
//#region src/core/contexts/reflection.ts
|
|
6
|
-
/**
|
|
7
|
-
* The reflection class context used in template rendering.
|
|
8
|
-
*/
|
|
9
|
-
const ReflectionClassContext = (0, _alloy_js_core.createContext)();
|
|
10
|
-
/**
|
|
11
|
-
* Hook to access the Reflection context.
|
|
12
|
-
*
|
|
13
|
-
* @returns A reactive version of the current reflection.
|
|
14
|
-
*/
|
|
15
|
-
function useReflectionClass() {
|
|
16
|
-
const context = (0, _alloy_js_core.useContext)(ReflectionClassContext);
|
|
17
|
-
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
18
|
-
return context;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The reflection property context used in template rendering.
|
|
22
|
-
*/
|
|
23
|
-
const ReflectionPropertyContext = (0, _alloy_js_core.createNamedContext)("ReflectionProperty");
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the Reflection Property context.
|
|
26
|
-
*
|
|
27
|
-
* @returns A reactive version of the current reflection.
|
|
28
|
-
*/
|
|
29
|
-
function useReflectionPropertyContext() {
|
|
30
|
-
const context = (0, _alloy_js_core.useContext)(ReflectionPropertyContext);
|
|
31
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
32
|
-
return context;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the Reflection Property context.
|
|
36
|
-
*
|
|
37
|
-
* @returns A reactive version of the current reflection.
|
|
38
|
-
*/
|
|
39
|
-
function useReflectionProperty() {
|
|
40
|
-
const context = useReflectionPropertyContext();
|
|
41
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
42
|
-
return context;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The reflection method context used in template rendering.
|
|
46
|
-
*/
|
|
47
|
-
const ReflectionMethodContext = (0, _alloy_js_core.createNamedContext)("ReflectionMethod");
|
|
48
|
-
/**
|
|
49
|
-
* Hook to access the Reflection Method context.
|
|
50
|
-
*
|
|
51
|
-
* @returns A reactive version of the current reflection.
|
|
52
|
-
*/
|
|
53
|
-
function useReflectionMethod() {
|
|
54
|
-
const context = (0, _alloy_js_core.useContext)(ReflectionMethodContext);
|
|
55
|
-
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
56
|
-
return context;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* The reflection parameter context used in template rendering.
|
|
60
|
-
*/
|
|
61
|
-
const ReflectionParameterContext = (0, _alloy_js_core.createNamedContext)("ReflectionParameter");
|
|
62
|
-
/**
|
|
63
|
-
* Hook to access the Reflection Parameter context.
|
|
64
|
-
*
|
|
65
|
-
* @returns A reactive version of the current reflection.
|
|
66
|
-
*/
|
|
67
|
-
function useReflectionParameter() {
|
|
68
|
-
return (0, _alloy_js_core.useContext)(ReflectionParameterContext);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
exports.ReflectionClassContext = ReflectionClassContext;
|
|
73
|
-
exports.ReflectionMethodContext = ReflectionMethodContext;
|
|
74
|
-
exports.ReflectionParameterContext = ReflectionParameterContext;
|
|
75
|
-
exports.ReflectionPropertyContext = ReflectionPropertyContext;
|
|
76
|
-
exports.useReflectionClass = useReflectionClass;
|
|
77
|
-
exports.useReflectionMethod = useReflectionMethod;
|
|
78
|
-
exports.useReflectionParameter = useReflectionParameter;
|
|
79
|
-
exports.useReflectionProperty = useReflectionProperty;
|
|
80
|
-
exports.useReflectionPropertyContext = useReflectionPropertyContext;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ReflectionOverrideInterface } from "../../types/components.cjs";
|
|
2
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
3
|
-
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
|
|
5
|
-
//#region src/core/contexts/reflection.d.ts
|
|
6
|
-
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
7
|
-
reflection: ReflectionClass<T>;
|
|
8
|
-
override?: ReflectionOverrideInterface<T>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The reflection class context used in template rendering.
|
|
12
|
-
*/
|
|
13
|
-
declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
|
|
14
|
-
/**
|
|
15
|
-
* Hook to access the Reflection context.
|
|
16
|
-
*
|
|
17
|
-
* @returns A reactive version of the current reflection.
|
|
18
|
-
*/
|
|
19
|
-
declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
|
|
20
|
-
interface ReflectionPropertyContextInterface {
|
|
21
|
-
property: ReflectionProperty;
|
|
22
|
-
defaultValue?: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The reflection property context used in template rendering.
|
|
26
|
-
*/
|
|
27
|
-
declare const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface>;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to access the Reflection Property context.
|
|
30
|
-
*
|
|
31
|
-
* @returns A reactive version of the current reflection.
|
|
32
|
-
*/
|
|
33
|
-
declare function useReflectionPropertyContext(): ReflectionPropertyContextInterface;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the Reflection Property context.
|
|
36
|
-
*
|
|
37
|
-
* @returns A reactive version of the current reflection.
|
|
38
|
-
*/
|
|
39
|
-
declare function useReflectionProperty(): ReflectionPropertyContextInterface;
|
|
40
|
-
/**
|
|
41
|
-
* The reflection method context used in template rendering.
|
|
42
|
-
*/
|
|
43
|
-
declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
|
|
44
|
-
/**
|
|
45
|
-
* Hook to access the Reflection Method context.
|
|
46
|
-
*
|
|
47
|
-
* @returns A reactive version of the current reflection.
|
|
48
|
-
*/
|
|
49
|
-
declare function useReflectionMethod(): ReflectionMethod;
|
|
50
|
-
/**
|
|
51
|
-
* The reflection parameter context used in template rendering.
|
|
52
|
-
*/
|
|
53
|
-
declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to access the Reflection Parameter context.
|
|
56
|
-
*
|
|
57
|
-
* @returns A reactive version of the current reflection.
|
|
58
|
-
*/
|
|
59
|
-
declare function useReflectionParameter(): ReflectionParameter;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
62
|
-
//# sourceMappingURL=reflection.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;AAAA,UAepC,kCAAA;EACf,QAAA,EAAU,kBAAA;EACV,YAAA;AAAA;;;;cAMW,yBAAA,EAA2B,gBAAA,CAAiB,kCAAA;;;AAjCzD;;;iBAyCgB,4BAAA,CAAA,GAA4B,kCAAA;;AAhC5C;;;;iBAmDgB,qBAAA,CAAA,GAAqB,kCAAA;;;;cAexB,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;;;;;iBAQvC,mBAAA,CAAA,GAAmB,gBAAA;;AA1DnC;;cAyEa,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ReflectionOverrideInterface } from "../../types/components.mjs";
|
|
2
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
3
|
-
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
|
|
5
|
-
//#region src/core/contexts/reflection.d.ts
|
|
6
|
-
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
7
|
-
reflection: ReflectionClass<T>;
|
|
8
|
-
override?: ReflectionOverrideInterface<T>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The reflection class context used in template rendering.
|
|
12
|
-
*/
|
|
13
|
-
declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
|
|
14
|
-
/**
|
|
15
|
-
* Hook to access the Reflection context.
|
|
16
|
-
*
|
|
17
|
-
* @returns A reactive version of the current reflection.
|
|
18
|
-
*/
|
|
19
|
-
declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
|
|
20
|
-
interface ReflectionPropertyContextInterface {
|
|
21
|
-
property: ReflectionProperty;
|
|
22
|
-
defaultValue?: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The reflection property context used in template rendering.
|
|
26
|
-
*/
|
|
27
|
-
declare const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface>;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to access the Reflection Property context.
|
|
30
|
-
*
|
|
31
|
-
* @returns A reactive version of the current reflection.
|
|
32
|
-
*/
|
|
33
|
-
declare function useReflectionPropertyContext(): ReflectionPropertyContextInterface;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the Reflection Property context.
|
|
36
|
-
*
|
|
37
|
-
* @returns A reactive version of the current reflection.
|
|
38
|
-
*/
|
|
39
|
-
declare function useReflectionProperty(): ReflectionPropertyContextInterface;
|
|
40
|
-
/**
|
|
41
|
-
* The reflection method context used in template rendering.
|
|
42
|
-
*/
|
|
43
|
-
declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
|
|
44
|
-
/**
|
|
45
|
-
* Hook to access the Reflection Method context.
|
|
46
|
-
*
|
|
47
|
-
* @returns A reactive version of the current reflection.
|
|
48
|
-
*/
|
|
49
|
-
declare function useReflectionMethod(): ReflectionMethod;
|
|
50
|
-
/**
|
|
51
|
-
* The reflection parameter context used in template rendering.
|
|
52
|
-
*/
|
|
53
|
-
declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to access the Reflection Parameter context.
|
|
56
|
-
*
|
|
57
|
-
* @returns A reactive version of the current reflection.
|
|
58
|
-
*/
|
|
59
|
-
declare function useReflectionParameter(): ReflectionParameter;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
62
|
-
//# sourceMappingURL=reflection.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.d.mts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;AAAA,UAepC,kCAAA;EACf,QAAA,EAAU,kBAAA;EACV,YAAA;AAAA;;;;cAMW,yBAAA,EAA2B,gBAAA,CAAiB,kCAAA;;;AAjCzD;;;iBAyCgB,4BAAA,CAAA,GAA4B,kCAAA;;AAhC5C;;;;iBAmDgB,qBAAA,CAAA,GAAqB,kCAAA;;;;cAexB,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;;;;;iBAQvC,mBAAA,CAAA,GAAmB,gBAAA;;AA1DnC;;cAyEa,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/contexts/reflection.ts
|
|
4
|
-
/**
|
|
5
|
-
* The reflection class context used in template rendering.
|
|
6
|
-
*/
|
|
7
|
-
const ReflectionClassContext = createContext();
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the Reflection context.
|
|
10
|
-
*
|
|
11
|
-
* @returns A reactive version of the current reflection.
|
|
12
|
-
*/
|
|
13
|
-
function useReflectionClass() {
|
|
14
|
-
const context = useContext(ReflectionClassContext);
|
|
15
|
-
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
16
|
-
return context;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The reflection property context used in template rendering.
|
|
20
|
-
*/
|
|
21
|
-
const ReflectionPropertyContext = createNamedContext("ReflectionProperty");
|
|
22
|
-
/**
|
|
23
|
-
* Hook to access the Reflection Property context.
|
|
24
|
-
*
|
|
25
|
-
* @returns A reactive version of the current reflection.
|
|
26
|
-
*/
|
|
27
|
-
function useReflectionPropertyContext() {
|
|
28
|
-
const context = useContext(ReflectionPropertyContext);
|
|
29
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
30
|
-
return context;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Hook to access the Reflection Property context.
|
|
34
|
-
*
|
|
35
|
-
* @returns A reactive version of the current reflection.
|
|
36
|
-
*/
|
|
37
|
-
function useReflectionProperty() {
|
|
38
|
-
const context = useReflectionPropertyContext();
|
|
39
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
40
|
-
return context;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* The reflection method context used in template rendering.
|
|
44
|
-
*/
|
|
45
|
-
const ReflectionMethodContext = createNamedContext("ReflectionMethod");
|
|
46
|
-
/**
|
|
47
|
-
* Hook to access the Reflection Method context.
|
|
48
|
-
*
|
|
49
|
-
* @returns A reactive version of the current reflection.
|
|
50
|
-
*/
|
|
51
|
-
function useReflectionMethod() {
|
|
52
|
-
const context = useContext(ReflectionMethodContext);
|
|
53
|
-
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
54
|
-
return context;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* The reflection parameter context used in template rendering.
|
|
58
|
-
*/
|
|
59
|
-
const ReflectionParameterContext = createNamedContext("ReflectionParameter");
|
|
60
|
-
/**
|
|
61
|
-
* Hook to access the Reflection Parameter context.
|
|
62
|
-
*
|
|
63
|
-
* @returns A reactive version of the current reflection.
|
|
64
|
-
*/
|
|
65
|
-
function useReflectionParameter() {
|
|
66
|
-
return useContext(ReflectionParameterContext);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
71
|
-
//# sourceMappingURL=reflection.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.mjs","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\nimport type {\n ReflectionClass,\n ReflectionMethod,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { ReflectionOverrideInterface } from \"../../types/components\";\n\nexport interface ReflectionClassContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n reflection: ReflectionClass<T>;\n override?: ReflectionOverrideInterface<T>;\n}\n\n/**\n * The reflection class context used in template rendering.\n */\nexport const ReflectionClassContext: ComponentContext<\n ReflectionClassContextInterface<any>\n> = createContext<ReflectionClassContextInterface<any>>();\n\n/**\n * Hook to access the Reflection context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>() {\n const context = useContext<ReflectionClassContextInterface<T>>(\n ReflectionClassContext\n )!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\nexport interface ReflectionPropertyContextInterface {\n property: ReflectionProperty;\n defaultValue?: any;\n}\n\n/**\n * The reflection property context used in template rendering.\n */\nexport const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface> =\n createNamedContext<ReflectionPropertyContextInterface>(\"ReflectionProperty\");\n\n/**\n * Hook to access the Reflection Property context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionPropertyContext() {\n const context = useContext<ReflectionPropertyContextInterface>(\n ReflectionPropertyContext\n )!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * Hook to access the Reflection Property context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionProperty() {\n const context = useReflectionPropertyContext();\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection method context used in template rendering.\n */\nexport const ReflectionMethodContext: ComponentContext<ReflectionMethod> =\n createNamedContext<ReflectionMethod>(\"ReflectionMethod\");\n\n/**\n * Hook to access the Reflection Method context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionMethod() {\n const context = useContext<ReflectionMethod>(ReflectionMethodContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection parameter context used in template rendering.\n */\nexport const ReflectionParameterContext: ComponentContext<ReflectionParameter> =\n createNamedContext<ReflectionParameter>(\"ReflectionParameter\");\n\n/**\n * Hook to access the Reflection Parameter context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionParameter() {\n return useContext<ReflectionParameter>(ReflectionParameterContext)!;\n}\n"],"mappings":";;;;;;AAuBA,MAAE,yBAAmB,eAAA;;;;;;AAOrB,SAAE,qBAAA;CACA,MAAA,UAAY,WAAe,uBAAG;AAC9B,KAAA,CAAA,QACF,OAAA,IAAA,MAAA,sMAAA;AAEE,QAAA;;;;;AAKF,MAAI,4BAAc,mBAAuC,qBAAA;;;;;;AAOzD,SAAgB,+BAAkB;CAChC,MAAE,UAAc,WAAS,0BAAyB;AAClD,KAAE,CAAA,QACF,OAAM,IAAA,MAAU,0MAA8C;AAE9D,QAAE;;;;;;;AAQJ,SAAgB,wBAAA;CAChB,MAAA,UAAA,8BAAA;cAEA,OAAO,IAAA,MAAU,0MAAmC;AAElD,QAAA;;;;;AAMF,MAAa,0BAA0B,mBAAkB,mBAAA;;;;;;AAOzD,SAAE,sBAAA;CACF,MAAO,UAAS,WAAA,wBAA+B;AAC7C,KAAA,CAAK,QACH,OAAA,IAAA,MAAA,wMAAA;;;;;;;;;;;;AAeJ,SAAc,yBAAwB;AACpC,QAAA,WAAA,2BAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
|
|
5
|
-
//#region src/core/helpers/code.ts
|
|
6
|
-
/**
|
|
7
|
-
* Turn the provided string template into Children by replacing literal line
|
|
8
|
-
* breaks with hardlines and automatically indenting indented content. Similar
|
|
9
|
-
* in spirit to the `<code>` element in HTML.
|
|
10
|
-
*
|
|
11
|
-
* @see {@link text} for a similar function which treats whitespace similar to
|
|
12
|
-
* JSX template bodies.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* code`
|
|
17
|
-
* function greet(name: string) {
|
|
18
|
-
* console.log("Hello, " + name + "!");
|
|
19
|
-
* }
|
|
20
|
-
* `
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @param template - The template string to be processed into Children.
|
|
24
|
-
* @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
|
|
25
|
-
* @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
|
|
26
|
-
* @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
|
|
27
|
-
*/
|
|
28
|
-
function code(template, ...substitutions) {
|
|
29
|
-
if (template.filter((seg) => seg.trim()).length === 0 && substitutions.length === 0) throw new Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");
|
|
30
|
-
return (0, _alloy_js_core.code)(template, ...substitutions);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
exports.code = code;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/helpers/code.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Turn the provided string template into Children by replacing literal line
|
|
6
|
-
* breaks with hardlines and automatically indenting indented content. Similar
|
|
7
|
-
* in spirit to the `<code>` element in HTML.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link text} for a similar function which treats whitespace similar to
|
|
10
|
-
* JSX template bodies.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* code`
|
|
15
|
-
* function greet(name: string) {
|
|
16
|
-
* console.log("Hello, " + name + "!");
|
|
17
|
-
* }
|
|
18
|
-
* `
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @param template - The template string to be processed into Children.
|
|
22
|
-
* @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
|
|
23
|
-
* @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
|
|
24
|
-
* @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
|
|
25
|
-
*/
|
|
26
|
-
declare function code(template: TemplateStringsArray, ...substitutions: Children[]): Children;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { code };
|
|
29
|
-
//# sourceMappingURL=code.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.cts","names":[],"sources":["../../../src/core/helpers/code.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;;;;;iBAAgB,IAAA,CACd,QAAA,EAAU,oBAAA,KACP,aAAA,EAAe,QAAA,KACjB,QAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/helpers/code.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Turn the provided string template into Children by replacing literal line
|
|
6
|
-
* breaks with hardlines and automatically indenting indented content. Similar
|
|
7
|
-
* in spirit to the `<code>` element in HTML.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link text} for a similar function which treats whitespace similar to
|
|
10
|
-
* JSX template bodies.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* code`
|
|
15
|
-
* function greet(name: string) {
|
|
16
|
-
* console.log("Hello, " + name + "!");
|
|
17
|
-
* }
|
|
18
|
-
* `
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @param template - The template string to be processed into Children.
|
|
22
|
-
* @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
|
|
23
|
-
* @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
|
|
24
|
-
* @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
|
|
25
|
-
*/
|
|
26
|
-
declare function code(template: TemplateStringsArray, ...substitutions: Children[]): Children;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { code };
|
|
29
|
-
//# sourceMappingURL=code.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.mts","names":[],"sources":["../../../src/core/helpers/code.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;;;;;iBAAgB,IAAA,CACd,QAAA,EAAU,oBAAA,KACP,aAAA,EAAe,QAAA,KACjB,QAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { code as code$1 } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/helpers/code.ts
|
|
4
|
-
/**
|
|
5
|
-
* Turn the provided string template into Children by replacing literal line
|
|
6
|
-
* breaks with hardlines and automatically indenting indented content. Similar
|
|
7
|
-
* in spirit to the `<code>` element in HTML.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link text} for a similar function which treats whitespace similar to
|
|
10
|
-
* JSX template bodies.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* code`
|
|
15
|
-
* function greet(name: string) {
|
|
16
|
-
* console.log("Hello, " + name + "!");
|
|
17
|
-
* }
|
|
18
|
-
* `
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @param template - The template string to be processed into Children.
|
|
22
|
-
* @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
|
|
23
|
-
* @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
|
|
24
|
-
* @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
|
|
25
|
-
*/
|
|
26
|
-
function code(template, ...substitutions) {
|
|
27
|
-
if (template.filter((seg) => seg.trim()).length === 0 && substitutions.length === 0) throw new Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");
|
|
28
|
-
return code$1(template, ...substitutions);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { code };
|
|
33
|
-
//# sourceMappingURL=code.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.mjs","names":[],"sources":["../../../src/core/helpers/code.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 { code as baseCode, Children } from \"@alloy-js/core\";\n\n/**\n * Turn the provided string template into Children by replacing literal line\n * breaks with hardlines and automatically indenting indented content. Similar\n * in spirit to the `<code>` element in HTML.\n *\n * @see {@link text} for a similar function which treats whitespace similar to\n * JSX template bodies.\n *\n * @example\n * ```ts\n * code`\n * function greet(name: string) {\n * console.log(\"Hello, \" + name + \"!\");\n * }\n * `\n * ```\n *\n * @param template - The template string to be processed into Children.\n * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.\n * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.\n * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable \"Cannot read properties of undefined\" exception later in the processing.\n */\nexport function code(\n template: TemplateStringsArray,\n ...substitutions: Children[]\n): Children {\n if (\n template.filter(seg => seg.trim()).length === 0 &&\n substitutions.length === 0\n ) {\n throw new Error(\n \"The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.\"\n );\n }\n\n return baseCode(template, ...substitutions);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,KAAI,UAAA,GAAA,eAAA;AAClB,KAAA,SAAU,QAAA,QAAA,IAAoB,MAAA,CAAA,CAAA,WAAA,KAAA,cAAA,WAAA,EAC5B,OAAC,IAAA,MAAe,yHAAS;AAE3B,QAAG,OAAA,UAAA,GAAA,cAAA"}
|
package/dist/core/index.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_core_contexts_context = require('./contexts/context.cjs');
|
|
3
|
-
const require_core_contexts_meta = require('./contexts/meta.cjs');
|
|
4
|
-
const require_core_components_source_file = require('./components/source-file.cjs');
|
|
5
|
-
const require_core_components_infrastructure_file = require('./components/infrastructure-file.cjs');
|
|
6
|
-
const require_core_contexts_reflection = require('./contexts/reflection.cjs');
|
|
7
|
-
require('./contexts/index.cjs');
|
|
8
|
-
const require_core_components_output = require('./components/output.cjs');
|
|
9
|
-
const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
|
|
10
|
-
const require_core_components_spacing = require('./components/spacing.cjs');
|
|
11
|
-
require('./components/index.cjs');
|
|
12
|
-
const require_core_helpers_code = require('./helpers/code.cjs');
|
|
13
|
-
require('./helpers/index.cjs');
|
|
14
|
-
|
|
15
|
-
exports.InfrastructureFile = require_core_components_infrastructure_file.InfrastructureFile;
|
|
16
|
-
exports.MetaContext = require_core_contexts_meta.MetaContext;
|
|
17
|
-
exports.Output = require_core_components_output.Output;
|
|
18
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
19
|
-
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
20
|
-
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
21
|
-
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
22
|
-
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
23
|
-
exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
|
|
24
|
-
exports.SourceFile = require_core_components_source_file.SourceFile;
|
|
25
|
-
exports.Spacing = require_core_components_spacing.Spacing;
|
|
26
|
-
exports.code = require_core_helpers_code.code;
|
|
27
|
-
exports.useMeta = require_core_contexts_meta.useMeta;
|
|
28
|
-
exports.useMetaContext = require_core_contexts_meta.useMetaContext;
|
|
29
|
-
exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
|
|
30
|
-
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
|
31
|
-
exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
|
|
32
|
-
exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
|
|
33
|
-
exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
|
|
34
|
-
exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
|
|
35
|
-
exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
|
|
36
|
-
exports.useReflectionProperty = require_core_contexts_reflection.useReflectionProperty;
|
|
37
|
-
exports.useReflectionPropertyContext = require_core_contexts_reflection.useReflectionPropertyContext;
|
package/dist/core/index.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SourceFile, SourceFileProps } from "./components/source-file.cjs";
|
|
2
|
-
import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.cjs";
|
|
3
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
|
|
4
|
-
import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.cjs";
|
|
5
|
-
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./contexts/reflection.cjs";
|
|
6
|
-
import { Output, OutputProps } from "./components/output.cjs";
|
|
7
|
-
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.cjs";
|
|
8
|
-
import { Spacing, SpacingProps } from "./components/spacing.cjs";
|
|
9
|
-
import { code } from "./helpers/code.cjs";
|
|
10
|
-
export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
package/dist/core/index.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SourceFile, SourceFileProps } from "./components/source-file.mjs";
|
|
2
|
-
import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.mjs";
|
|
3
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
4
|
-
import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.mjs";
|
|
5
|
-
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./contexts/reflection.mjs";
|
|
6
|
-
import { Output, OutputProps } from "./components/output.mjs";
|
|
7
|
-
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.mjs";
|
|
8
|
-
import { Spacing, SpacingProps } from "./components/spacing.mjs";
|
|
9
|
-
import { code } from "./helpers/code.mjs";
|
|
10
|
-
export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
package/dist/core/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
2
|
-
import { MetaContext, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.mjs";
|
|
3
|
-
import { SourceFile } from "./components/source-file.mjs";
|
|
4
|
-
import { InfrastructureFile } from "./components/infrastructure-file.mjs";
|
|
5
|
-
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./contexts/reflection.mjs";
|
|
6
|
-
import "./contexts/index.mjs";
|
|
7
|
-
import { Output } from "./components/output.mjs";
|
|
8
|
-
import { SingleLineComment } from "./components/single-line-comment.mjs";
|
|
9
|
-
import { Spacing } from "./components/spacing.mjs";
|
|
10
|
-
import "./components/index.mjs";
|
|
11
|
-
import { code } from "./helpers/code.mjs";
|
|
12
|
-
import "./helpers/index.mjs";
|
|
13
|
-
|
|
14
|
-
export { InfrastructureFile, MetaContext, Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, Spacing, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_core_helpers_code = require('../../core/helpers/code.cjs');
|
|
4
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
|
|
7
|
-
//#region src/hcl/components/block-declaration.tsx
|
|
8
|
-
/**
|
|
9
|
-
* A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
|
|
10
|
-
*
|
|
11
|
-
* @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language
|
|
12
|
-
* @see https://opentofu.org/docs/language/attr-as-blocks/#summary
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function BlockDeclaration(props) {
|
|
18
|
-
const { children, type, label } = props;
|
|
19
|
-
return [
|
|
20
|
-
(0, _alloy_js_core_jsx_runtime.memo)(() => require_core_helpers_code.code`${type} ${Array.isArray(label) ? label.join(" ") : label} {`),
|
|
21
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { get children() {
|
|
22
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
23
|
-
get when() {
|
|
24
|
-
return Boolean(children);
|
|
25
|
-
},
|
|
26
|
-
children
|
|
27
|
-
});
|
|
28
|
-
} }),
|
|
29
|
-
require_core_helpers_code.code`} `
|
|
30
|
-
];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
exports.BlockDeclaration = BlockDeclaration;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/hcl/components/block-declaration.d.ts
|
|
5
|
-
interface BlockDeclarationProps extends ComponentProps {
|
|
6
|
-
type: string;
|
|
7
|
-
label: string | string[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
|
|
11
|
-
*
|
|
12
|
-
* @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language
|
|
13
|
-
* @see https://opentofu.org/docs/language/attr-as-blocks/#summary
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the source file.
|
|
16
|
-
* @returns The rendered source file component.
|
|
17
|
-
*/
|
|
18
|
-
declare function BlockDeclaration(props: BlockDeclarationProps): _$_alloy_js_core0.Children;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { BlockDeclaration, BlockDeclarationProps };
|
|
21
|
-
//# sourceMappingURL=block-declaration.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"block-declaration.d.cts","names":[],"sources":["../../../src/hcl/components/block-declaration.tsx"],"mappings":";;;;UAsBiB,qBAAA,SAA8B,cAAA;EAC7C,IAAA;EACA,KAAA;AAAA;;;;;;;;;AAYF;iBAAgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/hcl/components/block-declaration.d.ts
|
|
5
|
-
interface BlockDeclarationProps extends ComponentProps {
|
|
6
|
-
type: string;
|
|
7
|
-
label: string | string[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
|
|
11
|
-
*
|
|
12
|
-
* @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language
|
|
13
|
-
* @see https://opentofu.org/docs/language/attr-as-blocks/#summary
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the source file.
|
|
16
|
-
* @returns The rendered source file component.
|
|
17
|
-
*/
|
|
18
|
-
declare function BlockDeclaration(props: BlockDeclarationProps): _$_alloy_js_core0.Children;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { BlockDeclaration, BlockDeclarationProps };
|
|
21
|
-
//# sourceMappingURL=block-declaration.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"block-declaration.d.mts","names":[],"sources":["../../../src/hcl/components/block-declaration.tsx"],"mappings":";;;;UAsBiB,qBAAA,SAA8B,cAAA;EAC7C,IAAA;EACA,KAAA;AAAA;;;;;;;;;AAYF;iBAAgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,iBAAA,CAAA,QAAA"}
|