@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,32 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
|
-
import { StoragePreset } from "powerlines";
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
8
|
-
/**
|
|
9
|
-
* The storage preset for the output files.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
13
|
-
*/
|
|
14
|
-
storage?: StoragePreset;
|
|
15
|
-
/**
|
|
16
|
-
* The metadata associated with the source file.
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
20
|
-
*/
|
|
21
|
-
meta?: Record<string, any>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* A base component representing a Powerlines generated source file.
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the source file.
|
|
27
|
-
* @returns The rendered source file component.
|
|
28
|
-
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps): _$_alloy_js_core0.Children;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { SourceFile, SourceFileProps };
|
|
32
|
-
//# sourceMappingURL=source-file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,iBAAA,CAAA,QAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useMeta } from "../contexts/meta.mjs";
|
|
2
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
4
|
-
import { appendPath } from "@stryke/path/append";
|
|
5
|
-
import defu from "defu";
|
|
6
|
-
|
|
7
|
-
//#region src/core/components/source-file.tsx
|
|
8
|
-
/**
|
|
9
|
-
* A base component representing a Powerlines generated source file.
|
|
10
|
-
*
|
|
11
|
-
* @param props - The properties for the source file.
|
|
12
|
-
* @returns The rendered source file component.
|
|
13
|
-
*/
|
|
14
|
-
function SourceFile(props) {
|
|
15
|
-
const [{ children, meta, path, header, storage, filetype, reference }] = splitProps(props, [
|
|
16
|
-
"children",
|
|
17
|
-
"meta",
|
|
18
|
-
"path",
|
|
19
|
-
"header",
|
|
20
|
-
"storage",
|
|
21
|
-
"filetype",
|
|
22
|
-
"reference"
|
|
23
|
-
]);
|
|
24
|
-
const metadata = useMeta();
|
|
25
|
-
const parentDirectory = useContext(SourceDirectoryContext);
|
|
26
|
-
const sourceFile = {
|
|
27
|
-
path: appendPath(path, parentDirectory.path),
|
|
28
|
-
filetype,
|
|
29
|
-
reference
|
|
30
|
-
};
|
|
31
|
-
parentDirectory?.addContent(sourceFile);
|
|
32
|
-
const printOptions = useFormatOptions({
|
|
33
|
-
printWidth: props.printWidth,
|
|
34
|
-
tabWidth: props.tabWidth,
|
|
35
|
-
useTabs: props.useTabs,
|
|
36
|
-
insertFinalNewLine: props.insertFinalNewLine
|
|
37
|
-
});
|
|
38
|
-
const nodeContext = getContext();
|
|
39
|
-
nodeContext.meta = defu({
|
|
40
|
-
sourceFile,
|
|
41
|
-
printOptions
|
|
42
|
-
}, meta ?? {});
|
|
43
|
-
if (metadata) metadata[sourceFile.path] = {
|
|
44
|
-
storage,
|
|
45
|
-
...meta ?? {}
|
|
46
|
-
};
|
|
47
|
-
return createComponent(SourceFileContext.Provider, {
|
|
48
|
-
value: sourceFile,
|
|
49
|
-
get children() {
|
|
50
|
-
return [createComponent(Show, {
|
|
51
|
-
when: header !== void 0,
|
|
52
|
-
get children() {
|
|
53
|
-
return [header, createIntrinsic("hbr", {})];
|
|
54
|
-
}
|
|
55
|
-
}), children];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
export { SourceFile };
|
|
62
|
-
//# sourceMappingURL=source-file.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.mjs","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n getContext,\n Show,\n SourceDirectoryContext,\n SourceFileContext,\n SourceFileProps as SourceFilePropsExternal,\n splitProps,\n useContext,\n useFormatOptions\n} from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport type { StoragePreset } from \"powerlines\";\nimport { ComponentProps } from \"../../types/components\";\nimport { useMeta } from \"../contexts/meta\";\n\nexport type SourceFileProps = SourceFilePropsExternal &\n ComponentProps & {\n /**\n * The storage preset for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset;\n\n /**\n * The metadata associated with the source file.\n *\n * @remarks\n * The values stored in the metadata will be available in the rendering context.\n */\n meta?: Record<string, any>;\n };\n\n/**\n * A base component representing a Powerlines generated source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function SourceFile(props: SourceFileProps) {\n const [{ children, meta, path, header, storage, filetype, reference }] =\n splitProps(props, [\n \"children\",\n \"meta\",\n \"path\",\n \"header\",\n \"storage\",\n \"filetype\",\n \"reference\"\n ]);\n\n const metadata = useMeta();\n const parentDirectory = useContext(SourceDirectoryContext)!;\n\n const sourceFile: SourceFileContext = {\n path: appendPath(path, parentDirectory.path),\n filetype,\n reference\n };\n parentDirectory?.addContent(sourceFile);\n\n const printOptions = useFormatOptions({\n printWidth: props.printWidth,\n tabWidth: props.tabWidth,\n useTabs: props.useTabs,\n insertFinalNewLine: props.insertFinalNewLine\n });\n\n const nodeContext = getContext()!;\n nodeContext.meta = defu(\n {\n sourceFile,\n printOptions\n },\n meta ?? {}\n );\n\n if (metadata) {\n metadata[sourceFile.path] = {\n storage,\n ...(meta ?? {})\n };\n }\n\n return (\n <SourceFileContext.Provider value={sourceFile}>\n <Show when={header !== undefined}>\n {header}\n <hbr />\n </Show>\n {children}\n </SourceFileContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA8BA,SAAc,WAAa,OAAO;CAClC,MAAQ,CAAC,EACT,gBAEA,MACE,QACE,SACA,UACA,eACG,WAAC,OAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA,CAAA;CACN,MAAK,WAAO,SAAc;CAC1B,MAAI,kBAAA,WAAA,uBAAA;CACJ,MAAE,aAAU;;EAEV;EACA;EACD;AACD,kBAAM,WAAA,WAAA;CACN,MAAK,eAAW,iBAAsB;EACpC,YAAE,MAAA;EACF,UAAO,MAAO;EACf,SAAA,MAAA;;EAED,CAAA;CACA,MAAG,cAAe,YAAc;AACjC,aAAA,OAAA,KAAA;EACG;EACA;EACF,EAAA,QAAA,EAAA,CAAA;AACF,KAAM,SACJ,UAAS,WAAU,QAAW;EAC5B;EACE,GAAC,QAAS,EAAA;EACX;AAEH,QAAK,gBAAO,kBAAA,UAAA;EACV,OAAG;EACH,IAAG,WAAS;AACV,UAAC,CAAA,gBAAS,MAAA;IACV,MAAA,WAAA;;AAEE,YAAS,CAAC,QAAQ,gBAAE,OAAA,EAAA,CAAA,CAAA;;;;EAIzB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/spacing.tsx
|
|
7
|
-
/**
|
|
8
|
-
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
9
|
-
*/
|
|
10
|
-
function Spacing({ scale = 1 }) {
|
|
11
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
12
|
-
get each() {
|
|
13
|
-
return Array.from({ length: scale });
|
|
14
|
-
},
|
|
15
|
-
children: (_) => [(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.Spacing = Spacing;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/components/spacing.d.ts
|
|
4
|
-
interface SpacingProps {
|
|
5
|
-
/**
|
|
6
|
-
* A scale factor that determines the amount of vertical space to be added.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue 1
|
|
12
|
-
*/
|
|
13
|
-
scale?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
17
|
-
*/
|
|
18
|
-
declare function Spacing({
|
|
19
|
-
scale
|
|
20
|
-
}: SpacingProps): _$_alloy_js_core0.Children;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Spacing, SpacingProps };
|
|
23
|
-
//# sourceMappingURL=spacing.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,iBAAA,CAAA,QAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/components/spacing.d.ts
|
|
4
|
-
interface SpacingProps {
|
|
5
|
-
/**
|
|
6
|
-
* A scale factor that determines the amount of vertical space to be added.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue 1
|
|
12
|
-
*/
|
|
13
|
-
scale?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
17
|
-
*/
|
|
18
|
-
declare function Spacing({
|
|
19
|
-
scale
|
|
20
|
-
}: SpacingProps): _$_alloy_js_core0.Children;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Spacing, SpacingProps };
|
|
23
|
-
//# sourceMappingURL=spacing.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,iBAAA,CAAA,QAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { For } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/core/components/spacing.tsx
|
|
5
|
-
/**
|
|
6
|
-
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
7
|
-
*/
|
|
8
|
-
function Spacing({ scale = 1 }) {
|
|
9
|
-
return createComponent(For, {
|
|
10
|
-
get each() {
|
|
11
|
-
return Array.from({ length: scale });
|
|
12
|
-
},
|
|
13
|
-
children: (_) => [createIntrinsic("hbr", {}), createIntrinsic("hbr", {})]
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Spacing };
|
|
19
|
-
//# sourceMappingURL=spacing.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.mjs","names":[],"sources":["../../../src/core/components/spacing.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { For } from \"@alloy-js/core\";\n\nexport interface SpacingProps {\n /**\n * A scale factor that determines the amount of vertical space to be added.\n *\n * @remarks\n * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.\n *\n * @defaultValue 1\n */\n scale?: number;\n}\n\n/**\n * A simple component that renders two horizontal breaks to create vertical spacing between elements.\n */\nexport function Spacing({ scale = 1 }: SpacingProps) {\n return (\n <For each={Array.from({ length: scale })}>\n {_ => (\n <>\n <hbr />\n <hbr />\n </>\n )}\n </For>\n );\n}\n"],"mappings":";;;;;;;AAuBA,SAAG,QAAA,EACD,QAAI,KACH;AACD,QAAC,gBAAA,KAAA;EACC,IAAE,OAAA;AACF,UAAA,MAAA,KAAA,EACI,QAAQ,OAChB,CAAA;;EAEE,WAAA,MAAA,CAAA,gBAAA,OAAA,EAAA,CAAA,EAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;EACC,CAAC"}
|
|
@@ -1,41 +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/context.ts
|
|
6
|
-
/**
|
|
7
|
-
* The Powerlines context used in template rendering.
|
|
8
|
-
*/
|
|
9
|
-
const PowerlinesContext = (0, _alloy_js_core.createNamedContext)("Powerlines");
|
|
10
|
-
/**
|
|
11
|
-
* Hook to access the Powerlines Context.
|
|
12
|
-
*
|
|
13
|
-
* @returns The Context.
|
|
14
|
-
*/
|
|
15
|
-
function usePowerlinesContext() {
|
|
16
|
-
return (0, _alloy_js_core.useContext)(PowerlinesContext);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
20
|
-
*
|
|
21
|
-
* @returns The Powerlines context or undefined if not set.
|
|
22
|
-
*/
|
|
23
|
-
function usePowerlinesSafe() {
|
|
24
|
-
return usePowerlinesContext() ?? void 0;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
28
|
-
*
|
|
29
|
-
* @returns The Powerlines context.
|
|
30
|
-
*/
|
|
31
|
-
function usePowerlines() {
|
|
32
|
-
const powerlines = usePowerlinesSafe();
|
|
33
|
-
if (!powerlines) throw new Error("Powerlines - 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`.");
|
|
34
|
-
return powerlines;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
exports.PowerlinesContext = PowerlinesContext;
|
|
39
|
-
exports.usePowerlines = usePowerlines;
|
|
40
|
-
exports.usePowerlinesContext = usePowerlinesContext;
|
|
41
|
-
exports.usePowerlinesSafe = usePowerlinesSafe;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { PluginContext } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/core/contexts/context.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The Powerlines context used in template rendering.
|
|
7
|
-
*/
|
|
8
|
-
declare const PowerlinesContext: ComponentContext<PluginContext>;
|
|
9
|
-
/**
|
|
10
|
-
* Hook to access the Powerlines Context.
|
|
11
|
-
*
|
|
12
|
-
* @returns The Context.
|
|
13
|
-
*/
|
|
14
|
-
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
17
|
-
*
|
|
18
|
-
* @returns The Powerlines context or undefined if not set.
|
|
19
|
-
*/
|
|
20
|
-
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
23
|
-
*
|
|
24
|
-
* @returns The Powerlines context.
|
|
25
|
-
*/
|
|
26
|
-
declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
29
|
-
//# sourceMappingURL=context.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { PluginContext } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/core/contexts/context.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The Powerlines context used in template rendering.
|
|
7
|
-
*/
|
|
8
|
-
declare const PowerlinesContext: ComponentContext<PluginContext>;
|
|
9
|
-
/**
|
|
10
|
-
* Hook to access the Powerlines Context.
|
|
11
|
-
*
|
|
12
|
-
* @returns The Context.
|
|
13
|
-
*/
|
|
14
|
-
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
17
|
-
*
|
|
18
|
-
* @returns The Powerlines context or undefined if not set.
|
|
19
|
-
*/
|
|
20
|
-
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
23
|
-
*
|
|
24
|
-
* @returns The Powerlines context.
|
|
25
|
-
*/
|
|
26
|
-
declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
29
|
-
//# sourceMappingURL=context.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/contexts/context.ts
|
|
4
|
-
/**
|
|
5
|
-
* The Powerlines context used in template rendering.
|
|
6
|
-
*/
|
|
7
|
-
const PowerlinesContext = createNamedContext("Powerlines");
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the Powerlines Context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The Context.
|
|
12
|
-
*/
|
|
13
|
-
function usePowerlinesContext() {
|
|
14
|
-
return useContext(PowerlinesContext);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
18
|
-
*
|
|
19
|
-
* @returns The Powerlines context or undefined if not set.
|
|
20
|
-
*/
|
|
21
|
-
function usePowerlinesSafe() {
|
|
22
|
-
return usePowerlinesContext() ?? void 0;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
26
|
-
*
|
|
27
|
-
* @returns The Powerlines context.
|
|
28
|
-
*/
|
|
29
|
-
function usePowerlines() {
|
|
30
|
-
const powerlines = usePowerlinesSafe();
|
|
31
|
-
if (!powerlines) throw new Error("Powerlines - 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 powerlines;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
37
|
-
//# sourceMappingURL=context.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.mjs","names":[],"sources":["../../../src/core/contexts/context.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - 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 powerlines;\n}\n"],"mappings":";;;;;;AAsBA,MAAS,oBAAc,mBAAA,aAAA;;;;;;AAOvB,SAAE,uBAAmC;;;;;;;;AASrC,SAAgB,oBAAU;AAE1B,QADoB,sBACpB,IAAA;;;;;;;AAQA,SAAW,gBAAqB;CAC9B,MAAG,aAAW,mBAAU;AACxB,KAAA,CAAK;AAGP,QAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_core_contexts_context = require('./context.cjs');
|
|
3
|
-
const require_core_contexts_meta = require('./meta.cjs');
|
|
4
|
-
const require_core_contexts_reflection = require('./reflection.cjs');
|
|
5
|
-
|
|
6
|
-
exports.MetaContext = require_core_contexts_meta.MetaContext;
|
|
7
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
8
|
-
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
9
|
-
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
10
|
-
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
11
|
-
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
12
|
-
exports.useMeta = require_core_contexts_meta.useMeta;
|
|
13
|
-
exports.useMetaContext = require_core_contexts_meta.useMetaContext;
|
|
14
|
-
exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
|
|
15
|
-
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
|
16
|
-
exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
|
|
17
|
-
exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
|
|
18
|
-
exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
|
|
19
|
-
exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
|
|
20
|
-
exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
|
|
21
|
-
exports.useReflectionProperty = require_core_contexts_reflection.useReflectionProperty;
|
|
22
|
-
exports.useReflectionPropertyContext = require_core_contexts_reflection.useReflectionPropertyContext;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
|
|
2
|
-
import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.cjs";
|
|
3
|
-
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./reflection.cjs";
|
|
4
|
-
export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
|
-
import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
|
|
3
|
-
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./reflection.mjs";
|
|
4
|
-
export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
|
-
import { MetaContext, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
|
|
3
|
-
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./reflection.mjs";
|
|
4
|
-
|
|
5
|
-
export { MetaContext, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
|
|
@@ -1,41 +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/meta.ts
|
|
6
|
-
/**
|
|
7
|
-
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
8
|
-
*/
|
|
9
|
-
const MetaContext = (0, _alloy_js_core.createNamedContext)("Meta");
|
|
10
|
-
/**
|
|
11
|
-
* Hook to access the Powerlines Context.
|
|
12
|
-
*
|
|
13
|
-
* @returns The Context.
|
|
14
|
-
*/
|
|
15
|
-
function useMetaContext() {
|
|
16
|
-
return (0, _alloy_js_core.useContext)(MetaContext);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Hook to safely access the render context's metadata.
|
|
20
|
-
*
|
|
21
|
-
* @returns The Powerlines context or undefined if not set.
|
|
22
|
-
*/
|
|
23
|
-
function useMetaSafe() {
|
|
24
|
-
return useMetaContext() ?? void 0;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Hook to access the render context's metadata.
|
|
28
|
-
*
|
|
29
|
-
* @returns The Powerlines context.
|
|
30
|
-
*/
|
|
31
|
-
function useMeta() {
|
|
32
|
-
const meta = useMetaSafe();
|
|
33
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
34
|
-
return meta;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
exports.MetaContext = MetaContext;
|
|
39
|
-
exports.useMeta = useMeta;
|
|
40
|
-
exports.useMetaContext = useMetaContext;
|
|
41
|
-
exports.useMetaSafe = useMetaSafe;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { StoragePreset } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/core/contexts/meta.d.ts
|
|
5
|
-
interface MetaItem {
|
|
6
|
-
/**
|
|
7
|
-
* The kind of metadata item.
|
|
8
|
-
*/
|
|
9
|
-
kind?: "builtin" | "entry" | string;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to skip formatting for this output.
|
|
12
|
-
*/
|
|
13
|
-
skipFormat?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* The storage preset or adapter name for the output files.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
19
|
-
*/
|
|
20
|
-
storage?: StoragePreset | string;
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
25
|
-
*/
|
|
26
|
-
declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
|
|
27
|
-
/**
|
|
28
|
-
* Hook to access the Powerlines Context.
|
|
29
|
-
*
|
|
30
|
-
* @returns The Context.
|
|
31
|
-
*/
|
|
32
|
-
declare function useMetaContext(): Record<string, MetaItem> | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Hook to safely access the render context's metadata.
|
|
35
|
-
*
|
|
36
|
-
* @returns The Powerlines context or undefined if not set.
|
|
37
|
-
*/
|
|
38
|
-
declare function useMetaSafe(): Record<string, MetaItem> | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Hook to access the render context's metadata.
|
|
41
|
-
*
|
|
42
|
-
* @returns The Powerlines context.
|
|
43
|
-
*/
|
|
44
|
-
declare function useMeta(): Record<string, MetaItem>;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe };
|
|
47
|
-
//# sourceMappingURL=meta.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.cts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { StoragePreset } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/core/contexts/meta.d.ts
|
|
5
|
-
interface MetaItem {
|
|
6
|
-
/**
|
|
7
|
-
* The kind of metadata item.
|
|
8
|
-
*/
|
|
9
|
-
kind?: "builtin" | "entry" | string;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to skip formatting for this output.
|
|
12
|
-
*/
|
|
13
|
-
skipFormat?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* The storage preset or adapter name for the output files.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
19
|
-
*/
|
|
20
|
-
storage?: StoragePreset | string;
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
25
|
-
*/
|
|
26
|
-
declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
|
|
27
|
-
/**
|
|
28
|
-
* Hook to access the Powerlines Context.
|
|
29
|
-
*
|
|
30
|
-
* @returns The Context.
|
|
31
|
-
*/
|
|
32
|
-
declare function useMetaContext(): Record<string, MetaItem> | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Hook to safely access the render context's metadata.
|
|
35
|
-
*
|
|
36
|
-
* @returns The Powerlines context or undefined if not set.
|
|
37
|
-
*/
|
|
38
|
-
declare function useMetaSafe(): Record<string, MetaItem> | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Hook to access the render context's metadata.
|
|
41
|
-
*
|
|
42
|
-
* @returns The Powerlines context.
|
|
43
|
-
*/
|
|
44
|
-
declare function useMeta(): Record<string, MetaItem>;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe };
|
|
47
|
-
//# sourceMappingURL=meta.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.mts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/contexts/meta.ts
|
|
4
|
-
/**
|
|
5
|
-
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
6
|
-
*/
|
|
7
|
-
const MetaContext = createNamedContext("Meta");
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the Powerlines Context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The Context.
|
|
12
|
-
*/
|
|
13
|
-
function useMetaContext() {
|
|
14
|
-
return useContext(MetaContext);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Hook to safely access the render context's metadata.
|
|
18
|
-
*
|
|
19
|
-
* @returns The Powerlines context or undefined if not set.
|
|
20
|
-
*/
|
|
21
|
-
function useMetaSafe() {
|
|
22
|
-
return useMetaContext() ?? void 0;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the render context's metadata.
|
|
26
|
-
*
|
|
27
|
-
* @returns The Powerlines context.
|
|
28
|
-
*/
|
|
29
|
-
function useMeta() {
|
|
30
|
-
const meta = useMetaSafe();
|
|
31
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. 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 meta;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { MetaContext, useMeta, useMetaContext, useMetaSafe };
|
|
37
|
-
//# sourceMappingURL=meta.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.mjs","names":[],"sources":["../../../src/core/contexts/meta.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { StoragePreset } from \"powerlines\";\n\nexport interface MetaItem {\n /**\n * The kind of metadata item.\n */\n kind?: \"builtin\" | \"entry\" | string;\n\n /**\n * Whether to skip formatting for this output.\n */\n skipFormat?: boolean;\n\n /**\n * The storage preset or adapter name for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset | string;\n\n [key: string]: any;\n}\n\n/**\n * The Powerlines meta context used to determine metadata of files generated during rendering.\n */\nexport const MetaContext: ComponentContext<Record<string, MetaItem>> =\n createNamedContext<Record<string, MetaItem>>(\"Meta\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMetaContext(): Record<string, MetaItem> | undefined {\n return useContext(MetaContext);\n}\n\n/**\n * Hook to safely access the render context's metadata.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function useMetaSafe(): Record<string, MetaItem> | undefined {\n const meta = useMetaContext();\n\n return meta ?? undefined;\n}\n\n/**\n * Hook to access the render context's metadata.\n *\n * @returns The Powerlines context.\n */\nexport function useMeta(): Record<string, MetaItem> {\n const meta = useMetaSafe();\n if (!meta) {\n throw new Error(\n \"Powerlines metadata is not available in the rendering context. 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 meta;\n}\n"],"mappings":";;;;;;AAsBA,MAAS,cAAc,mBAAA,OAAA;;;;;;AAOvB,SAAU,iBAAqB;;;;;;;;AAS/B,SAAG,cAAA;AAED,QADI,gBACM,IAAA;;;;;;;AAQZ,SAAO,UAAgB;CACrB,MAAA,OAAA,aAAA;AACF,KAAM,CAAC,KACL,OAAA,IAAA,MAAkB,oNAAkC;AAEpD,QAAA"}
|