@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,24 +0,0 @@
|
|
|
1
|
-
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/typescript.d.ts
|
|
4
|
-
interface GenerateInterfaceDeclarationOptions<T> {
|
|
5
|
-
overrideName?: string;
|
|
6
|
-
overrideExtends?: string | false;
|
|
7
|
-
defaultValues?: Partial<T>;
|
|
8
|
-
}
|
|
9
|
-
interface GenerateObjectDeclarationOptions<T> {
|
|
10
|
-
overrideName?: string;
|
|
11
|
-
overrideExtends?: string | false;
|
|
12
|
-
defaultValues?: Partial<T>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generates a TypeScript object for the given reflection class.
|
|
16
|
-
*
|
|
17
|
-
* @param reflection - The reflection class to generate the object for.
|
|
18
|
-
* @param options - Options for generating the object.
|
|
19
|
-
* @returns A string containing the TypeScript object definition.
|
|
20
|
-
*/
|
|
21
|
-
declare function generateObjectDeclaration<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateObjectDeclarationOptions<T>): string;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { GenerateInterfaceDeclarationOptions, GenerateObjectDeclarationOptions, generateObjectDeclaration };
|
|
24
|
-
//# sourceMappingURL=typescript.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.cts","names":[],"sources":["../../src/helpers/typescript.ts"],"mappings":";;;UAwBiB,mCAAA;EACf,YAAA;EACA,eAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,CAAA;AAAA;AAAA,UAqJT,gCAAA;EACf,YAAA;EACA,eAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,CAAA;AAAA;;;;;AAH1B;;;iBAagB,yBAAA,WAAoC,MAAA,cAAA,CAClD,UAAA,EAAY,eAAA,CAAgB,CAAA,GAC5B,OAAA,GAAS,gCAAA,CAAiC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/typescript.d.ts
|
|
4
|
-
interface GenerateInterfaceDeclarationOptions<T> {
|
|
5
|
-
overrideName?: string;
|
|
6
|
-
overrideExtends?: string | false;
|
|
7
|
-
defaultValues?: Partial<T>;
|
|
8
|
-
}
|
|
9
|
-
interface GenerateObjectDeclarationOptions<T> {
|
|
10
|
-
overrideName?: string;
|
|
11
|
-
overrideExtends?: string | false;
|
|
12
|
-
defaultValues?: Partial<T>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generates a TypeScript object for the given reflection class.
|
|
16
|
-
*
|
|
17
|
-
* @param reflection - The reflection class to generate the object for.
|
|
18
|
-
* @param options - Options for generating the object.
|
|
19
|
-
* @returns A string containing the TypeScript object definition.
|
|
20
|
-
*/
|
|
21
|
-
declare function generateObjectDeclaration<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateObjectDeclarationOptions<T>): string;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { GenerateInterfaceDeclarationOptions, GenerateObjectDeclarationOptions, generateObjectDeclaration };
|
|
24
|
-
//# sourceMappingURL=typescript.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.mts","names":[],"sources":["../../src/helpers/typescript.ts"],"mappings":";;;UAwBiB,mCAAA;EACf,YAAA;EACA,eAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,CAAA;AAAA;AAAA,UAqJT,gCAAA;EACf,YAAA;EACA,eAAA;EACA,aAAA,GAAgB,OAAA,CAAQ,CAAA;AAAA;;;;;AAH1B;;;iBAagB,yBAAA,WAAoC,MAAA,cAAA,CAClD,UAAA,EAAY,eAAA,CAAgB,CAAA,GAC5B,OAAA,GAAS,gCAAA,CAAiC,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
2
|
-
import { stringifyValue } from "@powerlines/deepkit/utilities";
|
|
3
|
-
import { camelCase } from "@stryke/string-format/camel-case";
|
|
4
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/typescript.ts
|
|
7
|
-
/**
|
|
8
|
-
* Generates a TypeScript object for the given reflection class.
|
|
9
|
-
*
|
|
10
|
-
* @param reflection - The reflection class to generate the object for.
|
|
11
|
-
* @param options - Options for generating the object.
|
|
12
|
-
* @returns A string containing the TypeScript object definition.
|
|
13
|
-
*/
|
|
14
|
-
function generateObjectDeclaration(reflection, options = {}) {
|
|
15
|
-
if (!reflection) return "";
|
|
16
|
-
return `
|
|
17
|
-
/**
|
|
18
|
-
* ${reflection.getDescription() || `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
|
|
19
|
-
*/
|
|
20
|
-
export const ${camelCase(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
|
|
21
|
-
${reflection.getProperties().filter((item) => !item.isIgnored() && !isUndefined(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
22
|
-
if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
23
|
-
return ret;
|
|
24
|
-
}, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
|
|
25
|
-
* ${item.getDescription() || item.getTitle() || titleCase(item.getNameAsString())}
|
|
26
|
-
*
|
|
27
|
-
* @title ${item.getTitle() || titleCase(item.getNameAsString())}${item.getAlias().length ? `
|
|
28
|
-
${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
|
|
29
|
-
* @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
|
|
30
|
-
${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
|
|
31
|
-
* @internal` : ""}${item.isRuntime() ? `
|
|
32
|
-
* @runtime` : ""}${item.isReadonly() ? `
|
|
33
|
-
* @readonly` : ""}${item.isIgnored() ? `
|
|
34
|
-
* @ignored` : ""}${item.isHidden() ? `
|
|
35
|
-
* @hidden` : ""}
|
|
36
|
-
*/
|
|
37
|
-
${item.getNameAsString()}: ${stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
38
|
-
if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
39
|
-
return ret;
|
|
40
|
-
}, void 0) ?? item.getDefaultValue())}`).join(", \n")}
|
|
41
|
-
};
|
|
42
|
-
`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
export { generateObjectDeclaration };
|
|
47
|
-
//# sourceMappingURL=typescript.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.mjs","names":[],"sources":["../../src/helpers/typescript.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 { stringifyValue } from \"@powerlines/deepkit/utilities\";\nimport type { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\n\nexport interface GenerateInterfaceDeclarationOptions<T> {\n overrideName?: string;\n overrideExtends?: string | false;\n defaultValues?: Partial<T>;\n}\n\n// /**\n// * Generates a TypeScript interface for the given reflection class.\n// *\n// * @param reflection - The reflection class to generate the interface for.\n// * @returns A string containing the TypeScript interface definition.\n// */\n// export function InterfaceDeclaration<T>(\n// reflection: ReflectionClass<T>,\n// options: GenerateInterfaceDeclarationOptions<T> = {}\n// ): string {\n// if (!reflection) {\n// return \"\";\n// }\n\n// return `\n// /**\n// * Interface for ${reflection.getTitle() || titleCase(options.overrideName || reflection.getName())}.\n// *\n// * @title ${reflection.getTitle() || titleCase(reflection.getName())}${\n// reflection.getAlias().length\n// ? ` ${reflection\n// .getAlias()\n// .map(alias => ` * @alias ${alias}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${reflection.getDomain() ? ` * @domain ${reflection.getDomain()}` : \"\"}${\n// reflection.getPermission().length\n// ? `\n// ${reflection\n// .getPermission()\n// .map(permission => ` * @permission ${permission}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// reflection.isInternal()\n// ? `\n// * @internal`\n// : \"\"\n// }${\n// reflection.isReadonly()\n// ? `\n// * @readonly`\n// : \"\"\n// }${\n// reflection.isIgnored()\n// ? `\n// * @ignored`\n// : \"\"\n// }${\n// reflection.isHidden()\n// ? `\n// * @hidden`\n// : \"\"\n// }\n// */\n// export interface ${pascalCase(options.overrideName || reflection.getName())}${\n// options.overrideExtends !== false &&\n// (options.overrideExtends || reflection.getSuperReflectionClass()?.getName())\n// ? ` extends ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}`\n// : \"\"\n// } {\n// ${reflection\n// .getProperties()\n// .filter(item => !item.isIgnored())\n// .sort((a, b) =>\n// (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n// ? a.getNameAsString().localeCompare(b.getNameAsString())\n// : a.isReadonly()\n// ? 1\n// : -1\n// )\n// .map(\n// item =>\n// ` /**\n// * ${\n// item.getDescription() ||\n// item.getTitle() ||\n// titleCase(item.getNameAsString())\n// }\n// *\n// * @title ${item.getTitle() || titleCase(item.getNameAsString())}${\n// item.getAlias().length\n// ? `\n// ${item\n// .getAlias()\n// .map(alias => ` * @alias ${alias}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// item.getDomain()\n// ? `\n// * @domain ${item.getDomain()}`\n// : \"\"\n// }${\n// item.getPermission().length\n// ? `\n// ${item\n// .getPermission()\n// .map(permission => ` * @permission ${permission}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// !isUndefined(item.getDefaultValue()) && item.getDefaultValue() !== \"\"\n// ? `\n// * @defaultValue ${item.getDefaultValue()}`\n// : \"\"\n// }${\n// item.isInternal()\n// ? `\n// * @internal`\n// : \"\"\n// }${\n// item.isReadonly()\n// ? `\n// * @readonly`\n// : \"\"\n// }${\n// item.isHidden()\n// ? `\n// * @hidden`\n// : \"\"\n// }\n// */\n// ${item.isReadonly() ? \"readonly \" : \"\"}${item.getNameAsString()}${\n// isUndefined(\n// (options.defaultValues as Record<string, any>)?.[item.getNameAsString()]\n// ) &&\n// isUndefined(item.getDefaultValue()) &&\n// !item\n// .getAlias()\n// .some(\n// alias =>\n// !isUndefined(\n// (options.defaultValues as Record<string, any>)?.[alias]\n// )\n// ) &&\n// item.isOptional()\n// ? \"?\"\n// : \"\"\n// }: ${stringifyType(item.getType())}`\n// )\n// .join(\", \\n\")}\n// }\n// `;\n// }\n\nexport interface GenerateObjectDeclarationOptions<T> {\n overrideName?: string;\n overrideExtends?: string | false;\n defaultValues?: Partial<T>;\n}\n\n/**\n * Generates a TypeScript object for the given reflection class.\n *\n * @param reflection - The reflection class to generate the object for.\n * @param options - Options for generating the object.\n * @returns A string containing the TypeScript object definition.\n */\nexport function generateObjectDeclaration<T extends Record<string, any>>(\n reflection: ReflectionClass<T>,\n options: GenerateObjectDeclarationOptions<T> = {}\n) {\n if (!reflection) {\n return \"\";\n }\n\n return `\n/**\n * ${\n reflection.getDescription() ||\n `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`\n }.\n */\nexport const ${camelCase(options.overrideName || reflection.getName())}${\n options.overrideExtends !== false &&\n (options.overrideExtends || reflection.getSuperReflectionClass()?.getName())\n ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}`\n : \"\"\n } = {\n ${reflection\n .getProperties()\n .filter(\n item =>\n !item.isIgnored() &&\n !isUndefined(\n options.defaultValues?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined(\n (options.defaultValues as Record<string, any>)?.[alias]\n )\n ) {\n return (options.defaultValues as Record<string, any>)?.[alias];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(\n item =>\n ` /**\n * ${\n item.getDescription() ||\n item.getTitle() ||\n titleCase(item.getNameAsString())\n }\n *\n * @title ${item.getTitle() || titleCase(item.getNameAsString())}${\n item.getAlias().length\n ? `\n ${item\n .getAlias()\n .map(alias => ` * @alias ${alias}`)\n .join(\"\\n\")}`\n : \"\"\n }${\n item.getDomain()\n ? `\n * @domain ${item.getDomain()}`\n : \"\"\n }${\n item.getPermission().length\n ? `\n ${item\n .getPermission()\n .map(permission => ` * @permission ${permission}`)\n .join(\"\\n\")}`\n : \"\"\n }${\n item.isInternal()\n ? `\n * @internal`\n : \"\"\n }${\n item.isRuntime()\n ? `\n * @runtime`\n : \"\"\n }${\n item.isReadonly()\n ? `\n * @readonly`\n : \"\"\n }${\n item.isIgnored()\n ? `\n * @ignored`\n : \"\"\n }${\n item.isHidden()\n ? `\n * @hidden`\n : \"\"\n }\n */\n ${item.getNameAsString()}: ${stringifyValue(\n item.getType(),\n options.defaultValues?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined((options.defaultValues as Record<string, any>)?.[alias])\n ) {\n return (options.defaultValues as Record<string, any>)?.[alias];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )}`\n )\n .join(\", \\n\")}\n};\n`;\n}\n"],"mappings":";;;;;;;;;;;;;AAgLA,SAAgB,0BAAC,YAAoC,UAAA,EAAA,EAAA;AACnD,KAAA,CAAA,WACA,QAAA;AAEF,QAAA;;KAEE,WAAA,gBAAA,IAAA,GAAA,UAAA,QAAA,gBAAA,WAAA,cAAA,IAAA,WAAA,SAAA,CAAA,CAAA,kBAAA;;eAED,UAAA,QAAA,gBAAA,WAAA,SAAA,CAAA,GAAA,QAAA,oBAAA,UAAA,QAAA,mBAAA,WAAA,yBAAA,EAAA,SAAA,IAAA,KAAA,QAAA,mBAAA,WAAA,yBAAA,EAAA,SAAA,KAAA,GAAA;IACG,WAAM,eAAiB,CAAA,QAAW,SAAQ,CAAC,KAAA,WAAa,IAAO,CAAA,YAAG,QAAA,gBAAA,KAAA,iBAAA,KAAA,KAAA,UAAA,CAAA,QAAA,KAAA,UAAA;AAClE,MAAA,YAAgB,IAAA,IAAQ,CAAA,YAAI,QAAe,gBAAM,OAAA,CACjD,QAAS,QAAQ,gBAAe;AAEpC,SAAO;IACL,OAAY,IAAA,KAAA,iBAAkB,CAAA,CAAA,CAAA,MAAA,GAAA,MAAA,EAAA,YAAA,IAAA,EAAA,YAAA,IAAA,CAAA,EAAA,YAAA,IAAA,CAAA,EAAA,YAAA,GAAA,EAAA,iBAAA,CAAA,cAAA,EAAA,iBAAA,CAAA,GAAA,EAAA,YAAA,GAAA,IAAA,GAAA,CAAA,KAAA,SAAA;MAC9B,KAAS,gBAAA,IAAA,KAAA,UAAmC,IAAI,UAAA,KAAA,iBAAA,CAAA,CAAA;;aAE3C,KAAW,UAAC,IAAA,UAAA,KAAA,iBAAA,CAAA,GAAA,KAAA,UAAA,CAAA,SAAA;IACf,KAAA,UAAS,CAAA,KAAA,UAAA,aAAA,QAAA,CAAA,KAAA,KAAA,KAAA,KAAA,KAAA,WAAA,GAAA;cACX,KAAA,WAAA,KAAA,KAAA,KAAA,eAAA,CAAA,SAAA;;iBAEO,KAAA,KAAA,WAAA,GAAA;gBACP,KAAA,KAAA,YAAA,GAAA;iBACE,KAAA,KAAA,WAAA,GAAA;gBACU,KAAA,KAAA,UAAkB,GAAA;eACjB,GAAC;;IAEd,KAAA,iBAAA,CAAA,IAAA,eAAA,KAAA,SAAA,EAAA,QAAA,gBAAA,KAAA,iBAAA,KAAA,KAAA,UAAA,CAAA,QAAA,KAAA,UAAA;AACF,MAAO,YAAQ,IAAS,IAAC,CAAA,YAAQ,QAAgB,gBAAW,OAAY,CACpE,QAAQ,QAAA,gBAAyB;AAEjC,SAAO;IACN,OAAI,IAAA,KAAA,iBAAA,CAAA,GAAA,CAAA,KAAA,OAAA,CAAA"}
|
package/dist/index.cjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
4
|
-
_powerlines_plugin_babel = require_runtime.__toESM(_powerlines_plugin_babel);
|
|
5
|
-
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
6
|
-
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
|
-
|
|
8
|
-
//#region src/index.tsx
|
|
9
|
-
/**
|
|
10
|
-
* Alloy-js plugin for Powerlines.
|
|
11
|
-
*
|
|
12
|
-
* @param options - The Alloy-js plugin user configuration options.
|
|
13
|
-
* @returns A Powerlines plugin that integrates Alloy-js transformations.
|
|
14
|
-
*/
|
|
15
|
-
const plugin = (options = {}) => {
|
|
16
|
-
return [(0, _powerlines_plugin_babel.default)(), {
|
|
17
|
-
name: "alloy",
|
|
18
|
-
config() {
|
|
19
|
-
this.debug("Updating configuration options to support Alloy-js builds.");
|
|
20
|
-
return {
|
|
21
|
-
alloy: {
|
|
22
|
-
typescript: true,
|
|
23
|
-
...options
|
|
24
|
-
},
|
|
25
|
-
babel: {
|
|
26
|
-
skipConfigResolution: true,
|
|
27
|
-
presets: ["@babel/preset-typescript", [
|
|
28
|
-
"@alloy-js/babel-preset",
|
|
29
|
-
{},
|
|
30
|
-
(_, id) => (0, _stryke_path_file_path_fns.findFileExtension)(id) === "tsx" || (0, _stryke_path_file_path_fns.findFileExtension)(id) === "jsx"
|
|
31
|
-
]]
|
|
32
|
-
},
|
|
33
|
-
tsdown: { inputOptions: { transform: { jsx: "preserve" } } },
|
|
34
|
-
resolve: { external: [
|
|
35
|
-
"@alloy-js/core",
|
|
36
|
-
"@alloy-js/typescript",
|
|
37
|
-
"@alloy-js/json",
|
|
38
|
-
"@alloy-js/markdown"
|
|
39
|
-
] }
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
async configResolved() {
|
|
43
|
-
this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
|
|
44
|
-
if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve") {
|
|
45
|
-
this.tsconfig.tsconfigJson.compilerOptions ??= {};
|
|
46
|
-
this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
|
|
47
|
-
await this.fs.write(this.tsconfig.tsconfigFilePath, _stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
//#endregion
|
|
54
|
-
exports.default = plugin;
|
|
55
|
-
exports.plugin = plugin;
|
package/dist/index.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.cjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
alloy?: AlloyPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Alloy-js plugin for Powerlines.
|
|
12
|
-
*
|
|
13
|
-
* @param options - The Alloy-js plugin user configuration options.
|
|
14
|
-
* @returns A Powerlines plugin that integrates Alloy-js transformations.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { plugin as default, plugin };
|
|
19
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA4DJ,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.mjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
alloy?: AlloyPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Alloy-js plugin for Powerlines.
|
|
12
|
-
*
|
|
13
|
-
* @param options - The Alloy-js plugin user configuration options.
|
|
14
|
-
* @returns A Powerlines plugin that integrates Alloy-js transformations.
|
|
15
|
-
*/
|
|
16
|
-
declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { plugin as default, plugin };
|
|
19
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAyBY,MAAA;IACR,KAAA,GAAQ,kBAAA;EAAA;AAAA;;;;;;;cAUC,MAAA,oBACM,kBAAA,GAAqB,kBAAA,EAEtC,OAAA,GAAS,kBAAA,KA4DJ,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import babel from "@powerlines/plugin-babel";
|
|
2
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
3
|
-
import { findFileExtension } from "@stryke/path/file-path-fns";
|
|
4
|
-
|
|
5
|
-
//#region src/index.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Alloy-js plugin for Powerlines.
|
|
8
|
-
*
|
|
9
|
-
* @param options - The Alloy-js plugin user configuration options.
|
|
10
|
-
* @returns A Powerlines plugin that integrates Alloy-js transformations.
|
|
11
|
-
*/
|
|
12
|
-
const plugin = (options = {}) => {
|
|
13
|
-
return [babel(), {
|
|
14
|
-
name: "alloy",
|
|
15
|
-
config() {
|
|
16
|
-
this.debug("Updating configuration options to support Alloy-js builds.");
|
|
17
|
-
return {
|
|
18
|
-
alloy: {
|
|
19
|
-
typescript: true,
|
|
20
|
-
...options
|
|
21
|
-
},
|
|
22
|
-
babel: {
|
|
23
|
-
skipConfigResolution: true,
|
|
24
|
-
presets: ["@babel/preset-typescript", [
|
|
25
|
-
"@alloy-js/babel-preset",
|
|
26
|
-
{},
|
|
27
|
-
(_, id) => findFileExtension(id) === "tsx" || findFileExtension(id) === "jsx"
|
|
28
|
-
]]
|
|
29
|
-
},
|
|
30
|
-
tsdown: { inputOptions: { transform: { jsx: "preserve" } } },
|
|
31
|
-
resolve: { external: [
|
|
32
|
-
"@alloy-js/core",
|
|
33
|
-
"@alloy-js/typescript",
|
|
34
|
-
"@alloy-js/json",
|
|
35
|
-
"@alloy-js/markdown"
|
|
36
|
-
] }
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
async configResolved() {
|
|
40
|
-
this.debug("Ensuring TypeScript configuration is set up for Alloy-js.");
|
|
41
|
-
if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve") {
|
|
42
|
-
this.tsconfig.tsconfigJson.compilerOptions ??= {};
|
|
43
|
-
this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
|
|
44
|
-
await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}];
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
//#endregion
|
|
51
|
-
export { plugin as default, plugin };
|
|
52
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 babel from \"@powerlines/plugin-babel\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport type { Plugin } from \"powerlines\";\nimport type { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n interface Config {\n alloy?: AlloyPluginOptions;\n }\n}\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n babel(),\n {\n name: \"alloy\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n babel: {\n skipConfigResolution: true,\n presets: [\n \"@babel/preset-typescript\",\n [\n \"@alloy-js/babel-preset\",\n {},\n (_: string, id: string) =>\n findFileExtension(id) === \"tsx\" ||\n findFileExtension(id) === \"jsx\"\n ]\n ]\n },\n tsdown: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n }\n },\n resolve: {\n external: [\n \"@alloy-js/core\",\n \"@alloy-js/typescript\",\n \"@alloy-js/json\",\n \"@alloy-js/markdown\"\n ]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n\n if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA2BA,MAAE,UAAA,UAAA,EAAA,KAAA;AACF,QAAA,CAAA,OAAA,EAAA;;EAEE,SAAA;AACC,QAAQ,MAAC,6DAAqB;AAChC,UAAA;IACG,OAAM;KACN,YAAU;KACZ,GAAA;KACK;IACL,OAAS;KACV,sBAAA;KACS,SAAC,CAAA,4BAAsB;MAAA;MAAA,EAAA;OAAA,GAAA,OAAA,kBAAA,GAAA,KAAA,SAAA,kBAAA,GAAA,KAAA;MAAA,CAAA;KAC5B;IACG,QAAC,EACC,cAAC,EACP,WAAA,EACS,KAAM,YACN,EACL,EACC;IACD,SAAC;;;;;OAED;IACD;;EAEH,MAAM,iBAAK;AACT,QAAK,MAAA,4DAAA;AACL,OAAI,KAAK,SAAE,aAAA,iBAAA,QAAA,YAAA;AACT,SAAI,SAAA,aAAsB,oBAAI,EAAA;AAC9B,SAAI,SAAS,aAAA,gBAAA,MAAA;AACb,UAAM,KAAE,GAAM,MAAM,KAAC,SAAW,kBAAA,UAAA,UAAA,KAAA,SAAA,aAAA,CAAA;;;EAGrC,CAAC"}
|
|
@@ -1,29 +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/markdown/components/front-matter.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
function FrontMatter(props) {
|
|
13
|
-
return [
|
|
14
|
-
"---",
|
|
15
|
-
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
16
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
17
|
-
get each() {
|
|
18
|
-
return Object.entries(props.data);
|
|
19
|
-
},
|
|
20
|
-
hardline: true,
|
|
21
|
-
children: ([key, value]) => _alloy_js_core.code`${key}: ${JSON.stringify(value)}`
|
|
22
|
-
}),
|
|
23
|
-
"---",
|
|
24
|
-
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
exports.FrontMatter = FrontMatter;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _$_alloy_js_core0.Children;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { FrontMatter, FrontMatterProps };
|
|
15
|
-
//# sourceMappingURL=front-matter.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter.d.cts","names":[],"sources":["../../../src/markdown/components/front-matter.tsx"],"mappings":";;;UAoBiB,gBAAA;EACf,IAAA,EAAM,MAAA;AAAA;AADR;;;;;AAAA,iBASgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _$_alloy_js_core0.Children;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { FrontMatter, FrontMatterProps };
|
|
15
|
-
//# sourceMappingURL=front-matter.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter.d.mts","names":[],"sources":["../../../src/markdown/components/front-matter.tsx"],"mappings":";;;UAoBiB,gBAAA;EACf,IAAA,EAAM,MAAA;AAAA;AADR;;;;;AAAA,iBASgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { For, code } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/markdown/components/front-matter.tsx
|
|
5
|
-
/**
|
|
6
|
-
* Renders YAML front matter for a markdown file.
|
|
7
|
-
*
|
|
8
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
9
|
-
*/
|
|
10
|
-
function FrontMatter(props) {
|
|
11
|
-
return [
|
|
12
|
-
"---",
|
|
13
|
-
createIntrinsic("hbr", {}),
|
|
14
|
-
createComponent(For, {
|
|
15
|
-
get each() {
|
|
16
|
-
return Object.entries(props.data);
|
|
17
|
-
},
|
|
18
|
-
hardline: true,
|
|
19
|
-
children: ([key, value]) => code`${key}: ${JSON.stringify(value)}`
|
|
20
|
-
}),
|
|
21
|
-
"---",
|
|
22
|
-
createIntrinsic("hbr", {})
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { FrontMatter };
|
|
28
|
-
//# sourceMappingURL=front-matter.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter.mjs","names":[],"sources":["../../../src/markdown/components/front-matter.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 { code, For } from \"@alloy-js/core\";\n\nexport interface FrontMatterProps {\n data: Record<string, any>;\n}\n\n/**\n * Renders YAML front matter for a markdown file.\n *\n * @see https://jekyllrb.com/docs/front-matter/\n */\nexport function FrontMatter(props: FrontMatterProps) {\n return (\n <>\n {\"---\"}\n <hbr />\n <For each={Object.entries(props.data)} hardline>\n {([key, value]) => code`${key}: ${JSON.stringify(value)}`}\n </For>\n {\"---\"}\n <hbr />\n </>\n );\n}\n"],"mappings":";;;;;;;;;AAyBA,SAAgB,YAAY,OAAO;AAClC,QAAA;EAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA,gBAAA,KAAA;GACG,IAAI,OAAO;AACb,WAAA,OAAA,QAAA,MAAA,KAAA;;GAEA,UAAO;GACL,WAAC,CAAA,KAAA,WAAA,IAAA,GAAA,IAAA,IAAA,KAAA,UAAA,MAAA;GACF,CAAC;EAAE;EAAM,gBAAA,OAAA,EAAA,CAAA;EAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_core_components_spacing = require('../../core/components/spacing.cjs');
|
|
4
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let _alloy_js_markdown = require("@alloy-js/markdown");
|
|
6
|
-
|
|
7
|
-
//#region src/markdown/components/heading.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Renders a heading for a markdown file.
|
|
10
|
-
*
|
|
11
|
-
* @see https://www.markdownguide.org/basic-syntax/#headings
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <Heading level={1}>This is a heading</Heading>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
function Heading(props) {
|
|
19
|
-
const { children, ...rest } = props;
|
|
20
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_markdown.Heading, (0, _alloy_js_core_jsx_runtime.mergeProps)({ level: 1 }, rest, { children })), (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {})];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
exports.Heading = Heading;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { HeadingProps as HeadingProps$1 } from "@alloy-js/markdown";
|
|
3
|
-
|
|
4
|
-
//#region src/markdown/components/heading.d.ts
|
|
5
|
-
interface HeadingProps extends HeadingProps$1 {}
|
|
6
|
-
/**
|
|
7
|
-
* Renders a heading for a markdown file.
|
|
8
|
-
*
|
|
9
|
-
* @see https://www.markdownguide.org/basic-syntax/#headings
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Heading level={1}>This is a heading</Heading>
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
declare function Heading(props: HeadingProps): _$_alloy_js_core0.Children;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Heading, HeadingProps };
|
|
19
|
-
//# sourceMappingURL=heading.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.cts","names":[],"sources":["../../../src/markdown/components/heading.tsx"],"mappings":";;;;UAsBiB,YAAA,SAAqB,cAAA;;AAAtC;;;;;AAYA;;;;iBAAgB,OAAA,CAAQ,KAAA,EAAO,YAAA,GAAY,iBAAA,CAAA,QAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
|
-
import { HeadingProps as HeadingProps$1 } from "@alloy-js/markdown";
|
|
3
|
-
|
|
4
|
-
//#region src/markdown/components/heading.d.ts
|
|
5
|
-
interface HeadingProps extends HeadingProps$1 {}
|
|
6
|
-
/**
|
|
7
|
-
* Renders a heading for a markdown file.
|
|
8
|
-
*
|
|
9
|
-
* @see https://www.markdownguide.org/basic-syntax/#headings
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Heading level={1}>This is a heading</Heading>
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
declare function Heading(props: HeadingProps): _$_alloy_js_core0.Children;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Heading, HeadingProps };
|
|
19
|
-
//# sourceMappingURL=heading.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.mts","names":[],"sources":["../../../src/markdown/components/heading.tsx"],"mappings":";;;;UAsBiB,YAAA,SAAqB,cAAA;;AAAtC;;;;;AAYA;;;;iBAAgB,OAAA,CAAQ,KAAA,EAAO,YAAA,GAAY,iBAAA,CAAA,QAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Spacing } from "../../core/components/spacing.mjs";
|
|
2
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Heading as Heading$1 } from "@alloy-js/markdown";
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/heading.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Renders a heading for a markdown file.
|
|
8
|
-
*
|
|
9
|
-
* @see https://www.markdownguide.org/basic-syntax/#headings
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Heading level={1}>This is a heading</Heading>
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
function Heading(props) {
|
|
17
|
-
const { children, ...rest } = props;
|
|
18
|
-
return [createComponent(Heading$1, mergeProps({ level: 1 }, rest, { children })), createComponent(Spacing, {})];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Heading };
|
|
23
|
-
//# sourceMappingURL=heading.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.mjs","names":[],"sources":["../../../src/markdown/components/heading.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { HeadingProps as BaseHeadingProps } from \"@alloy-js/markdown\";\nimport { Heading as BaseHeading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"../../core/components/spacing\";\n\nexport interface HeadingProps extends BaseHeadingProps {}\n\n/**\n * Renders a heading for a markdown file.\n *\n * @see https://www.markdownguide.org/basic-syntax/#headings\n *\n * @example\n * ```tsx\n * <Heading level={1}>This is a heading</Heading>\n * ```\n */\nexport function Heading(props: HeadingProps) {\n const { children, ...rest } = props;\n\n return (\n <>\n <BaseHeading level={1} {...rest}>\n {children}\n </BaseHeading>\n <Spacing />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+BA,SAAY,QAAU,OAAS;CAC7B,MAAG,EACH,UACF,GAAO,SACL;iDAEA,OAAO,GACN,EAAE,MAAA,EACE,UACJ,CAAC,CAAC,EAAE,gBAAU,SAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_markdown_components_front_matter = require('./front-matter.cjs');
|
|
3
|
-
const require_markdown_components_heading = require('./heading.cjs');
|
|
4
|
-
const require_markdown_components_markdown_file = require('./markdown-file.cjs');
|
|
5
|
-
const require_markdown_components_markdown_table = require('./markdown-table.cjs');
|
|
6
|
-
|
|
7
|
-
exports.FrontMatter = require_markdown_components_front_matter.FrontMatter;
|
|
8
|
-
exports.Heading = require_markdown_components_heading.Heading;
|
|
9
|
-
exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
|
|
10
|
-
exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
|
|
11
|
-
exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
|
|
12
|
-
exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
|
|
13
|
-
exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FrontMatter, FrontMatterProps } from "./front-matter.cjs";
|
|
2
|
-
import { Heading, HeadingProps } from "./heading.cjs";
|
|
3
|
-
import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps } from "./markdown-file.cjs";
|
|
4
|
-
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps } from "./markdown-table.cjs";
|
|
5
|
-
export { FrontMatter, FrontMatterProps, Heading, HeadingProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FrontMatter, FrontMatterProps } from "./front-matter.mjs";
|
|
2
|
-
import { Heading, HeadingProps } from "./heading.mjs";
|
|
3
|
-
import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps } from "./markdown-file.mjs";
|
|
4
|
-
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps } from "./markdown-table.mjs";
|
|
5
|
-
export { FrontMatter, FrontMatterProps, Heading, HeadingProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FrontMatter } from "./front-matter.mjs";
|
|
2
|
-
import { Heading } from "./heading.mjs";
|
|
3
|
-
import { MarkdownFile, MarkdownFileHeader } from "./markdown-file.mjs";
|
|
4
|
-
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown-table.mjs";
|
|
5
|
-
|
|
6
|
-
export { FrontMatter, Heading, MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|