@powerlines/plugin-alloy 0.26.191 → 0.26.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +0 -14
- package/dist/core/components/infrastructure-file.cjs +1 -8
- package/dist/core/components/infrastructure-file.mjs +1 -3
- package/dist/core/components/infrastructure-file.mjs.map +1 -1
- package/dist/core/components/output.cjs +1 -9
- package/dist/core/components/output.mjs +1 -3
- package/dist/core/components/output.mjs.map +1 -1
- package/dist/core/components/single-line-comment.cjs +1 -9
- package/dist/core/components/single-line-comment.mjs +1 -3
- package/dist/core/components/single-line-comment.mjs.map +1 -1
- package/dist/core/components/source-file.cjs +1 -8
- package/dist/core/components/source-file.mjs +1 -3
- package/dist/core/components/source-file.mjs.map +1 -1
- package/dist/core/components/spacing.cjs +1 -9
- package/dist/core/components/spacing.mjs +1 -3
- package/dist/core/components/spacing.mjs.map +1 -1
- package/dist/core/contexts/context.cjs +0 -13
- package/dist/core/contexts/context.mjs +1 -8
- package/dist/core/contexts/context.mjs.map +1 -1
- package/dist/core/contexts/meta.cjs +0 -13
- package/dist/core/contexts/meta.mjs +1 -8
- package/dist/core/contexts/meta.mjs.map +1 -1
- package/dist/core/contexts/schema.cjs +0 -13
- package/dist/core/contexts/schema.mjs +1 -8
- package/dist/core/contexts/schema.mjs.map +1 -1
- package/dist/core/helpers/code.cjs +1 -9
- package/dist/core/helpers/code.mjs +1 -3
- package/dist/core/helpers/code.mjs.map +1 -1
- package/dist/hcl/components/block-declaration.cjs +1 -9
- package/dist/hcl/components/block-declaration.mjs +1 -3
- package/dist/hcl/components/block-declaration.mjs.map +1 -1
- package/dist/hcl/components/hcl-file.cjs +1 -12
- package/dist/hcl/components/hcl-file.mjs +1 -6
- package/dist/hcl/components/hcl-file.mjs.map +1 -1
- package/dist/hcl/components/packer-file.cjs +1 -9
- package/dist/hcl/components/packer-file.mjs +1 -3
- package/dist/hcl/components/packer-file.mjs.map +1 -1
- package/dist/hcl/components/terraform-file.cjs +1 -9
- package/dist/hcl/components/terraform-file.mjs +1 -3
- package/dist/hcl/components/terraform-file.mjs.map +1 -1
- package/dist/helpers/capnp.cjs +0 -24
- package/dist/helpers/capnp.mjs +1 -20
- package/dist/helpers/capnp.mjs.map +1 -1
- package/dist/helpers/create-builtin.cjs +1 -9
- package/dist/helpers/create-builtin.mjs +1 -3
- package/dist/helpers/create-builtin.mjs.map +1 -1
- package/dist/helpers/typescript.cjs +1 -9
- package/dist/helpers/typescript.mjs +1 -3
- package/dist/helpers/typescript.mjs.map +1 -1
- package/dist/markdown/components/front-matter.cjs +1 -9
- package/dist/markdown/components/front-matter.mjs +1 -3
- package/dist/markdown/components/front-matter.mjs.map +1 -1
- package/dist/markdown/components/heading.cjs +1 -9
- package/dist/markdown/components/heading.mjs +1 -3
- package/dist/markdown/components/heading.mjs.map +1 -1
- package/dist/markdown/components/markdown-file.cjs +1 -12
- package/dist/markdown/components/markdown-file.mjs +1 -6
- package/dist/markdown/components/markdown-file.mjs.map +1 -1
- package/dist/markdown/components/markdown-table.cjs +1 -13
- package/dist/markdown/components/markdown-table.mjs +1 -7
- package/dist/markdown/components/markdown-table.mjs.map +1 -1
- package/dist/markdown/contexts/markdown-table.cjs +0 -13
- package/dist/markdown/contexts/markdown-table.mjs +1 -8
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +1 -9
- package/dist/typescript/components/builtin-file.mjs +1 -3
- package/dist/typescript/components/builtin-file.mjs.map +1 -1
- package/dist/typescript/components/class-declaration.cjs +1 -16
- package/dist/typescript/components/class-declaration.mjs +1 -10
- package/dist/typescript/components/class-declaration.mjs.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -9
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -3
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
- package/dist/typescript/components/entry-file.cjs +1 -8
- package/dist/typescript/components/entry-file.mjs +1 -3
- package/dist/typescript/components/entry-file.mjs.map +1 -1
- package/dist/typescript/components/interface-declaration.cjs +1 -14
- package/dist/typescript/components/interface-declaration.mjs +1 -8
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.cjs +1 -12
- package/dist/typescript/components/object-declaration.mjs +1 -6
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/property-name.cjs +1 -9
- package/dist/typescript/components/property-name.mjs +1 -3
- package/dist/typescript/components/property-name.mjs.map +1 -1
- package/dist/typescript/components/record-expression.cjs +1 -9
- package/dist/typescript/components/record-expression.mjs +1 -3
- package/dist/typescript/components/record-expression.mjs.map +1 -1
- package/dist/typescript/components/tsdoc-schema.cjs +1 -12
- package/dist/typescript/components/tsdoc-schema.mjs +1 -6
- package/dist/typescript/components/tsdoc-schema.mjs.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +1 -32
- package/dist/typescript/components/tsdoc.mjs +1 -26
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.cjs +1 -9
- package/dist/typescript/components/type-declaration.mjs +1 -3
- package/dist/typescript/components/type-declaration.mjs.map +1 -1
- package/dist/typescript/components/type-parameters.cjs +1 -9
- package/dist/typescript/components/type-parameters.mjs +1 -3
- package/dist/typescript/components/type-parameters.mjs.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +1 -13
- package/dist/typescript/components/typescript-file.mjs +1 -7
- package/dist/typescript/components/typescript-file.mjs.map +1 -1
- package/dist/typescript/contexts/lexical-scope.cjs +1 -9
- package/dist/typescript/contexts/lexical-scope.mjs +1 -3
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
- package/dist/typescript/contexts/member-scope.cjs +1 -9
- package/dist/typescript/contexts/member-scope.mjs +1 -3
- package/dist/typescript/contexts/member-scope.mjs.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +1 -9
- package/dist/typescript/helpers/get-call-signature-props.mjs +1 -3
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
- package/dist/typescript/helpers/utilities.cjs +1 -9
- package/dist/typescript/helpers/utilities.mjs +1 -4
- package/dist/typescript/helpers/utilities.mjs.map +1 -1
- package/dist/yaml/components/yaml-file.cjs +1 -12
- package/dist/yaml/components/yaml-file.mjs +1 -6
- package/dist/yaml/components/yaml-file.mjs.map +1 -1
- package/package.json +9 -582
- package/dist/_virtual/_rolldown/runtime.mjs +0 -18
- package/dist/core/components/infrastructure-file.test.cjs +0 -16
- package/dist/core/components/infrastructure-file.test.d.cts +0 -1
- package/dist/core/components/infrastructure-file.test.d.mts +0 -1
- package/dist/core/components/infrastructure-file.test.mjs +0 -18
- package/dist/core/components/infrastructure-file.test.mjs.map +0 -1
- package/dist/core/components/output.test.cjs +0 -16
- package/dist/core/components/output.test.d.cts +0 -1
- package/dist/core/components/output.test.d.mts +0 -1
- package/dist/core/components/output.test.mjs +0 -18
- package/dist/core/components/output.test.mjs.map +0 -1
- package/dist/core/components/single-line-comment.test.cjs +0 -16
- package/dist/core/components/single-line-comment.test.d.cts +0 -1
- package/dist/core/components/single-line-comment.test.d.mts +0 -1
- package/dist/core/components/single-line-comment.test.mjs +0 -18
- package/dist/core/components/single-line-comment.test.mjs.map +0 -1
- package/dist/core/components/source-file.test.cjs +0 -16
- package/dist/core/components/source-file.test.d.cts +0 -1
- package/dist/core/components/source-file.test.d.mts +0 -1
- package/dist/core/components/source-file.test.mjs +0 -18
- package/dist/core/components/source-file.test.mjs.map +0 -1
- package/dist/core/components/spacing.test.cjs +0 -16
- package/dist/core/components/spacing.test.d.cts +0 -1
- package/dist/core/components/spacing.test.d.mts +0 -1
- package/dist/core/components/spacing.test.mjs +0 -18
- package/dist/core/components/spacing.test.mjs.map +0 -1
- package/dist/core/contexts/context.test.cjs +0 -16
- package/dist/core/contexts/context.test.d.cts +0 -1
- package/dist/core/contexts/context.test.d.mts +0 -1
- package/dist/core/contexts/context.test.mjs +0 -18
- package/dist/core/contexts/context.test.mjs.map +0 -1
- package/dist/core/contexts/meta.test.cjs +0 -16
- package/dist/core/contexts/meta.test.d.cts +0 -1
- package/dist/core/contexts/meta.test.d.mts +0 -1
- package/dist/core/contexts/meta.test.mjs +0 -18
- package/dist/core/contexts/meta.test.mjs.map +0 -1
- package/dist/core/contexts/schema.test.cjs +0 -16
- package/dist/core/contexts/schema.test.d.cts +0 -1
- package/dist/core/contexts/schema.test.d.mts +0 -1
- package/dist/core/contexts/schema.test.mjs +0 -18
- package/dist/core/contexts/schema.test.mjs.map +0 -1
- package/dist/core/helpers/code.test.cjs +0 -16
- package/dist/core/helpers/code.test.d.cts +0 -1
- package/dist/core/helpers/code.test.d.mts +0 -1
- package/dist/core/helpers/code.test.mjs +0 -18
- package/dist/core/helpers/code.test.mjs.map +0 -1
- package/dist/hcl/components/block-declaration.test.cjs +0 -16
- package/dist/hcl/components/block-declaration.test.d.cts +0 -1
- package/dist/hcl/components/block-declaration.test.d.mts +0 -1
- package/dist/hcl/components/block-declaration.test.mjs +0 -18
- package/dist/hcl/components/block-declaration.test.mjs.map +0 -1
- package/dist/hcl/components/hcl-file.test.cjs +0 -16
- package/dist/hcl/components/hcl-file.test.d.cts +0 -1
- package/dist/hcl/components/hcl-file.test.d.mts +0 -1
- package/dist/hcl/components/hcl-file.test.mjs +0 -18
- package/dist/hcl/components/hcl-file.test.mjs.map +0 -1
- package/dist/hcl/components/packer-file.test.cjs +0 -16
- package/dist/hcl/components/packer-file.test.d.cts +0 -1
- package/dist/hcl/components/packer-file.test.d.mts +0 -1
- package/dist/hcl/components/packer-file.test.mjs +0 -18
- package/dist/hcl/components/packer-file.test.mjs.map +0 -1
- package/dist/hcl/components/terraform-file.test.cjs +0 -16
- package/dist/hcl/components/terraform-file.test.d.cts +0 -1
- package/dist/hcl/components/terraform-file.test.d.mts +0 -1
- package/dist/hcl/components/terraform-file.test.mjs +0 -18
- package/dist/hcl/components/terraform-file.test.mjs.map +0 -1
- package/dist/helpers/capnp.test.cjs +0 -16
- package/dist/helpers/capnp.test.d.cts +0 -1
- package/dist/helpers/capnp.test.d.mts +0 -1
- package/dist/helpers/capnp.test.mjs +0 -18
- package/dist/helpers/capnp.test.mjs.map +0 -1
- package/dist/helpers/create-builtin.test.cjs +0 -16
- package/dist/helpers/create-builtin.test.d.cts +0 -1
- package/dist/helpers/create-builtin.test.d.mts +0 -1
- package/dist/helpers/create-builtin.test.mjs +0 -18
- package/dist/helpers/create-builtin.test.mjs.map +0 -1
- package/dist/helpers/refkey.test.cjs +0 -30
- package/dist/helpers/refkey.test.d.cts +0 -1
- package/dist/helpers/refkey.test.d.mts +0 -1
- package/dist/helpers/refkey.test.mjs +0 -32
- package/dist/helpers/refkey.test.mjs.map +0 -1
- package/dist/helpers/typescript.test.cjs +0 -16
- package/dist/helpers/typescript.test.d.cts +0 -1
- package/dist/helpers/typescript.test.d.mts +0 -1
- package/dist/helpers/typescript.test.mjs +0 -18
- package/dist/helpers/typescript.test.mjs.map +0 -1
- package/dist/markdown/components/front-matter.test.cjs +0 -16
- package/dist/markdown/components/front-matter.test.d.cts +0 -1
- package/dist/markdown/components/front-matter.test.d.mts +0 -1
- package/dist/markdown/components/front-matter.test.mjs +0 -18
- package/dist/markdown/components/front-matter.test.mjs.map +0 -1
- package/dist/markdown/components/heading.test.cjs +0 -16
- package/dist/markdown/components/heading.test.d.cts +0 -1
- package/dist/markdown/components/heading.test.d.mts +0 -1
- package/dist/markdown/components/heading.test.mjs +0 -18
- package/dist/markdown/components/heading.test.mjs.map +0 -1
- package/dist/markdown/components/markdown-file.test.cjs +0 -16
- package/dist/markdown/components/markdown-file.test.d.cts +0 -1
- package/dist/markdown/components/markdown-file.test.d.mts +0 -1
- package/dist/markdown/components/markdown-file.test.mjs +0 -18
- package/dist/markdown/components/markdown-file.test.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.test.cjs +0 -16
- package/dist/markdown/components/markdown-table.test.d.cts +0 -1
- package/dist/markdown/components/markdown-table.test.d.mts +0 -1
- package/dist/markdown/components/markdown-table.test.mjs +0 -18
- package/dist/markdown/components/markdown-table.test.mjs.map +0 -1
- package/dist/markdown/contexts/markdown-table.test.cjs +0 -16
- package/dist/markdown/contexts/markdown-table.test.d.cts +0 -1
- package/dist/markdown/contexts/markdown-table.test.d.mts +0 -1
- package/dist/markdown/contexts/markdown-table.test.mjs +0 -18
- package/dist/markdown/contexts/markdown-table.test.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -78
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -78
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +0 -1487
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +0 -1473
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +0 -889
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +0 -888
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +0 -1614
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +0 -1594
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +0 -3
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +0 -3
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +0 -923
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +0 -922
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +0 -391
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +0 -386
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +0 -82
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +0 -82
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +0 -1358
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +0 -1357
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +0 -561
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +0 -559
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +0 -37
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +0 -38
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +0 -197
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +0 -181
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +0 -29
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +0 -27
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +0 -77
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +0 -77
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +0 -374
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +0 -374
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +0 -38
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +0 -37
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +0 -2978
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +0 -2973
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +0 -939
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -940
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +0 -87
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +0 -87
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +0 -6
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +0 -6
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +0 -54
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +0 -52
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +0 -2696
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +0 -2697
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +0 -47
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +0 -45
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +0 -1
- package/dist/typescript/components/builtin-file.test.cjs +0 -16
- package/dist/typescript/components/builtin-file.test.d.cts +0 -1
- package/dist/typescript/components/builtin-file.test.d.mts +0 -1
- package/dist/typescript/components/builtin-file.test.mjs +0 -18
- package/dist/typescript/components/builtin-file.test.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.test.cjs +0 -16
- package/dist/typescript/components/class-declaration.test.d.cts +0 -1
- package/dist/typescript/components/class-declaration.test.d.mts +0 -1
- package/dist/typescript/components/class-declaration.test.mjs +0 -18
- package/dist/typescript/components/class-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.cjs +0 -16
- package/dist/typescript/components/dynamic-import-statement.test.d.cts +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.d.mts +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.mjs +0 -18
- package/dist/typescript/components/dynamic-import-statement.test.mjs.map +0 -1
- package/dist/typescript/components/entry-file.test.cjs +0 -16
- package/dist/typescript/components/entry-file.test.d.cts +0 -1
- package/dist/typescript/components/entry-file.test.d.mts +0 -1
- package/dist/typescript/components/entry-file.test.mjs +0 -18
- package/dist/typescript/components/entry-file.test.mjs.map +0 -1
- package/dist/typescript/components/interface-declaration.test.cjs +0 -16
- package/dist/typescript/components/interface-declaration.test.d.cts +0 -1
- package/dist/typescript/components/interface-declaration.test.d.mts +0 -1
- package/dist/typescript/components/interface-declaration.test.mjs +0 -18
- package/dist/typescript/components/interface-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.test.cjs +0 -16
- package/dist/typescript/components/object-declaration.test.d.cts +0 -1
- package/dist/typescript/components/object-declaration.test.d.mts +0 -1
- package/dist/typescript/components/object-declaration.test.mjs +0 -18
- package/dist/typescript/components/object-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/property-name.test.cjs +0 -16
- package/dist/typescript/components/property-name.test.d.cts +0 -1
- package/dist/typescript/components/property-name.test.d.mts +0 -1
- package/dist/typescript/components/property-name.test.mjs +0 -18
- package/dist/typescript/components/property-name.test.mjs.map +0 -1
- package/dist/typescript/components/record-expression.test.cjs +0 -16
- package/dist/typescript/components/record-expression.test.d.cts +0 -1
- package/dist/typescript/components/record-expression.test.d.mts +0 -1
- package/dist/typescript/components/record-expression.test.mjs +0 -18
- package/dist/typescript/components/record-expression.test.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-schema.test.cjs +0 -16
- package/dist/typescript/components/tsdoc-schema.test.d.cts +0 -1
- package/dist/typescript/components/tsdoc-schema.test.d.mts +0 -1
- package/dist/typescript/components/tsdoc-schema.test.mjs +0 -18
- package/dist/typescript/components/tsdoc-schema.test.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.test.cjs +0 -16
- package/dist/typescript/components/tsdoc.test.d.cts +0 -1
- package/dist/typescript/components/tsdoc.test.d.mts +0 -1
- package/dist/typescript/components/tsdoc.test.mjs +0 -18
- package/dist/typescript/components/tsdoc.test.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.test.cjs +0 -16
- package/dist/typescript/components/type-declaration.test.d.cts +0 -1
- package/dist/typescript/components/type-declaration.test.d.mts +0 -1
- package/dist/typescript/components/type-declaration.test.mjs +0 -18
- package/dist/typescript/components/type-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.test.cjs +0 -16
- package/dist/typescript/components/type-parameters.test.d.cts +0 -1
- package/dist/typescript/components/type-parameters.test.d.mts +0 -1
- package/dist/typescript/components/type-parameters.test.mjs +0 -18
- package/dist/typescript/components/type-parameters.test.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.test.cjs +0 -16
- package/dist/typescript/components/typescript-file.test.d.cts +0 -1
- package/dist/typescript/components/typescript-file.test.d.mts +0 -1
- package/dist/typescript/components/typescript-file.test.mjs +0 -18
- package/dist/typescript/components/typescript-file.test.mjs.map +0 -1
- package/dist/typescript/contexts/lexical-scope.test.cjs +0 -16
- package/dist/typescript/contexts/lexical-scope.test.d.cts +0 -1
- package/dist/typescript/contexts/lexical-scope.test.d.mts +0 -1
- package/dist/typescript/contexts/lexical-scope.test.mjs +0 -18
- package/dist/typescript/contexts/lexical-scope.test.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.test.cjs +0 -16
- package/dist/typescript/contexts/member-scope.test.d.cts +0 -1
- package/dist/typescript/contexts/member-scope.test.d.mts +0 -1
- package/dist/typescript/contexts/member-scope.test.mjs +0 -18
- package/dist/typescript/contexts/member-scope.test.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.cjs +0 -16
- package/dist/typescript/helpers/get-call-signature-props.test.d.cts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.d.mts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.mjs +0 -18
- package/dist/typescript/helpers/get-call-signature-props.test.mjs.map +0 -1
- package/dist/typescript/helpers/utilities.test.cjs +0 -16
- package/dist/typescript/helpers/utilities.test.d.cts +0 -1
- package/dist/typescript/helpers/utilities.test.d.mts +0 -1
- package/dist/typescript/helpers/utilities.test.mjs +0 -18
- package/dist/typescript/helpers/utilities.test.mjs.map +0 -1
- package/dist/yaml/components/yaml-file.test.cjs +0 -16
- package/dist/yaml/components/yaml-file.test.d.cts +0 -1
- package/dist/yaml/components/yaml-file.test.d.mts +0 -1
- package/dist/yaml/components/yaml-file.test.mjs +0 -18
- package/dist/yaml/components/yaml-file.test.mjs.map +0 -1
|
@@ -5,19 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __exportAll = (all, no_symbols) => {
|
|
9
|
-
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
__defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
if (!no_symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
8
|
var __copyProps = (to, from, except, desc) => {
|
|
22
9
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
10
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -39,5 +26,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
26
|
|
|
40
27
|
//#endregion
|
|
41
28
|
|
|
42
|
-
exports.__exportAll = __exportAll;
|
|
43
29
|
exports.__toESM = __toESM;
|
|
@@ -11,7 +11,6 @@ let defu = require("defu");
|
|
|
11
11
|
defu = require_runtime.__toESM(defu);
|
|
12
12
|
|
|
13
13
|
//#region src/core/components/infrastructure-file.tsx
|
|
14
|
-
var infrastructure_file_exports = /* @__PURE__ */ require_runtime.__exportAll({ InfrastructureFile: () => InfrastructureFile });
|
|
15
14
|
/**
|
|
16
15
|
* A base component representing a Powerlines generated infrastructure file.
|
|
17
16
|
*
|
|
@@ -46,10 +45,4 @@ function InfrastructureFile(props) {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
//#endregion
|
|
49
|
-
exports.InfrastructureFile = InfrastructureFile;
|
|
50
|
-
Object.defineProperty(exports, 'infrastructure_file_exports', {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () {
|
|
53
|
-
return infrastructure_file_exports;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
48
|
+
exports.InfrastructureFile = InfrastructureFile;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { usePowerlinesSafe } from "../contexts/context.mjs";
|
|
3
2
|
import { SourceFile } from "./source-file.mjs";
|
|
4
3
|
import { findFileExtensionSafe, hasFileExtension } from "@stryke/path/file-path-fns";
|
|
@@ -9,7 +8,6 @@ import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
|
9
8
|
import defu from "defu";
|
|
10
9
|
|
|
11
10
|
//#region src/core/components/infrastructure-file.tsx
|
|
12
|
-
var infrastructure_file_exports = /* @__PURE__ */ __exportAll({ InfrastructureFile: () => InfrastructureFile });
|
|
13
11
|
/**
|
|
14
12
|
* A base component representing a Powerlines generated infrastructure file.
|
|
15
13
|
*
|
|
@@ -44,5 +42,5 @@ function InfrastructureFile(props) {
|
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
//#endregion
|
|
47
|
-
export { InfrastructureFile
|
|
45
|
+
export { InfrastructureFile };
|
|
48
46
|
//# sourceMappingURL=infrastructure-file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/core/components/infrastructure-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 { computed, splitProps } from \"@alloy-js/core\";\nimport { appendExtension, appendPath } from \"@stryke/path/append\";\nimport {\n findFileExtensionSafe,\n hasFileExtension\n} from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { SourceFile, SourceFileProps } from \"./source-file\";\n\nexport type InfrastructureFileProps = Omit<SourceFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n\n /**\n * The extension for the infrastructure file. This is used to determine the file extension if the `id` does not already include one.\n *\n * @remarks\n * If none is provided, the file extension will be determined by the {@link SourceFileProps.filetype | filetype} property.\n */\n extension?: string;\n};\n\n/**\n * A base component representing a Powerlines generated infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id, extension, filetype: _filetype }, rest] =\n splitProps(props, [\"children\", \"meta\", \"id\", \"extension\", \"filetype\"]);\n\n const context = usePowerlinesSafe();\n const filetype = computed(\n () =>\n _filetype ||\n extension?.replace(/^\\.*/, \"\") ||\n (hasFileExtension(id) ? findFileExtensionSafe(id) : \"\")\n );\n const path = computed(() => {\n const value = context\n ? appendPath(\n id,\n replacePath(context.infrastructurePath, context.config.cwd)\n )\n : id;\n\n return appendExtension(replaceExtension(value), filetype.value);\n });\n\n return (\n <SourceFile\n {...rest}\n filetype={filetype.value}\n path={path.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </SourceFile>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/core/components/infrastructure-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 { computed, splitProps } from \"@alloy-js/core\";\nimport { appendExtension, appendPath } from \"@stryke/path/append\";\nimport {\n findFileExtensionSafe,\n hasFileExtension\n} from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { SourceFile, SourceFileProps } from \"./source-file\";\n\nexport type InfrastructureFileProps = Omit<SourceFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n\n /**\n * The extension for the infrastructure file. This is used to determine the file extension if the `id` does not already include one.\n *\n * @remarks\n * If none is provided, the file extension will be determined by the {@link SourceFileProps.filetype | filetype} property.\n */\n extension?: string;\n};\n\n/**\n * A base component representing a Powerlines generated infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id, extension, filetype: _filetype }, rest] =\n splitProps(props, [\"children\", \"meta\", \"id\", \"extension\", \"filetype\"]);\n\n const context = usePowerlinesSafe();\n const filetype = computed(\n () =>\n _filetype ||\n extension?.replace(/^\\.*/, \"\") ||\n (hasFileExtension(id) ? findFileExtensionSafe(id) : \"\")\n );\n const path = computed(() => {\n const value = context\n ? appendPath(\n id,\n replacePath(context.infrastructurePath, context.config.cwd)\n )\n : id;\n\n return appendExtension(replaceExtension(value), filetype.value);\n });\n\n return (\n <SourceFile\n {...rest}\n filetype={filetype.value}\n path={path.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </SourceFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgCA,SAAI,mBAAA,OAAA;CACF,MAAI,CAAA,YAEF,MACA,IACD,WACC,UAAE,aACD,QAAQ,WAAW,OAAM;EAAA;EAAc;EAAQ;EAAC;EAAkB;CAAO,CAAA;CAC5E,MAAE,UAAA,kBAAA;CACF,MAAA,WAAY,eAAM,aAAA,WAAA,QAAA,QAAA,EAAA,MAAA,iBAAA,EAAA,IAAA,sBAAA,EAAA,IAAA,GAAA;CACnB,MAAA,OAAA,eAAA;EAEC,OAAA,gBAAA,2GAAA,GAAA,SAAA,KAAA;CACA,CAAC;CACF,OAAA,gBAAA,YAAA,WAAA,MAAA;EACG,IAAA,WAAc;GACd,OAAQ,SAAI;EACd;EACF,IAAO,OAAQ;GACb,OAAS,KAAA;EACP;;GAEF,OAAM,KAAU,EACV,MAAA,iBACF,GAAE,QAAA,CAAA,CAAA;EACJ;EACE;CACJ,CAAC,CAAC;AACJ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
const require_core_contexts_context = require('../contexts/context.cjs');
|
|
4
3
|
const require_core_contexts_meta = require('../contexts/meta.cjs');
|
|
5
4
|
require('../contexts/index.cjs');
|
|
@@ -7,7 +6,6 @@ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
|
7
6
|
let _alloy_js_core = require("@alloy-js/core");
|
|
8
7
|
|
|
9
8
|
//#region src/core/components/output.tsx
|
|
10
|
-
var output_exports = /* @__PURE__ */ require_runtime.__exportAll({ Output: () => Output });
|
|
11
9
|
/**
|
|
12
10
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
13
11
|
*/
|
|
@@ -39,10 +37,4 @@ function Output(props) {
|
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
//#endregion
|
|
42
|
-
exports.Output = Output;
|
|
43
|
-
Object.defineProperty(exports, 'output_exports', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return output_exports;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
40
|
+
exports.Output = Output;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
3
2
|
import { MetaContext } from "../contexts/meta.mjs";
|
|
4
3
|
import "../contexts/index.mjs";
|
|
@@ -6,7 +5,6 @@ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
|
6
5
|
import { Output as Output$1, computed, splitProps } from "@alloy-js/core";
|
|
7
6
|
|
|
8
7
|
//#region src/core/components/output.tsx
|
|
9
|
-
var output_exports = /* @__PURE__ */ __exportAll({ Output: () => Output });
|
|
10
8
|
/**
|
|
11
9
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
12
10
|
*/
|
|
@@ -38,5 +36,5 @@ function Output(props) {
|
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
//#endregion
|
|
41
|
-
export { Output
|
|
39
|
+
export { Output };
|
|
42
40
|
//# sourceMappingURL=output.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.mjs","names":[],"sources":["../../../src/core/components/output.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 { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta?: Record<string, MetaItem>;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, meta = {} }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal {...rest} basePath={contextRef.value.config.cwd}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"output.mjs","names":[],"sources":["../../../src/core/components/output.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 { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta?: Record<string, MetaItem>;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, meta = {} }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal {...rest} basePath={contextRef.value.config.cwd}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,SAAW,OAAQ,OAAA;CACjB,MAAA,CAAO,EACL,UACA,SACA,OAAA,CAAA,KACF,QAAS,WAAQ,OAAA;EAAA;EAAA;EAAA;CAAA,CAAA;;CAEjB,OAAE,gBAAA,YAAA,UAAA;EACA,OAAK;EACL,IAAA,WAAA;GACE,OAAG,gBAAe,kBAAS,UAAA;IACjC,IAAA,QAAA;;IAEE;IACC,IAAO,WAAa;KACrB,OAAA,gBAAA,UAAA,WAAA,MAAA;MACK,IAAS,WAAO;OACd,OAAY,WAAQ,MAAA,OAAA;MAC3B;MACmB;KAChB,CAAA,CAAA;IACA;GACA,CAAA;EACD;;AAEJ"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
3
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/single-line-comment.tsx
|
|
7
|
-
var single_line_comment_exports = /* @__PURE__ */ require_runtime.__exportAll({ SingleLineComment: () => SingleLineComment });
|
|
8
6
|
/**
|
|
9
7
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
10
8
|
* are broken into multiple lines
|
|
@@ -21,10 +19,4 @@ function SingleLineComment(props) {
|
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
//#endregion
|
|
24
|
-
exports.SingleLineComment = SingleLineComment;
|
|
25
|
-
Object.defineProperty(exports, 'single_line_comment_exports', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return single_line_comment_exports;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
22
|
+
exports.SingleLineComment = SingleLineComment;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { Prose } from "@alloy-js/core";
|
|
4
3
|
|
|
5
4
|
//#region src/core/components/single-line-comment.tsx
|
|
6
|
-
var single_line_comment_exports = /* @__PURE__ */ __exportAll({ SingleLineComment: () => SingleLineComment });
|
|
7
5
|
/**
|
|
8
6
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
9
7
|
* are broken into multiple lines
|
|
@@ -20,5 +18,5 @@ function SingleLineComment(props) {
|
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
//#endregion
|
|
23
|
-
export { SingleLineComment
|
|
21
|
+
export { SingleLineComment };
|
|
24
22
|
//# sourceMappingURL=single-line-comment.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.mjs","names":[],"sources":["../../../src/core/components/single-line-comment.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 { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\"\n | \"yaml\"\n | \"hcl\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : variant === \"yaml\" || variant === \"hcl\"\n ? \"# \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"single-line-comment.mjs","names":[],"sources":["../../../src/core/components/single-line-comment.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 { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\"\n | \"yaml\"\n | \"hcl\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : variant === \"yaml\" || variant === \"hcl\"\n ? \"# \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAyBA,SAAgB,kBAAI,OAAA;CAClB,MAAG,EACD,UAAK,gBACL;CAEJ,MAAO,eAAU,YAAA,eAA+B,QAAA,YAAe,oBAAA,SAAA,YAAA,iBAAA,SAAA,YAAA,aAAA,UAAA,YAAA,UAAA,YAAA,QAAA,OAAA;CAC7D,OAAE,CAAA,cAAA,gBAAA,SAAA;EACA,QAAK;EACN,IAAA,WAAA;GACG,OAAA,CAAA,gBAA0B,OAAA,EAC5B,SACF,CAAA,GAAQ,YAAE,gBAAwB,YAAA,oBAAA,SAAA,YAAA,aAAA,SAAA,EAAA;EACpC;;AAEA"}
|
|
@@ -8,7 +8,6 @@ let defu = require("defu");
|
|
|
8
8
|
defu = require_runtime.__toESM(defu);
|
|
9
9
|
|
|
10
10
|
//#region src/core/components/source-file.tsx
|
|
11
|
-
var source_file_exports = /* @__PURE__ */ require_runtime.__exportAll({ SourceFile: () => SourceFile });
|
|
12
11
|
/**
|
|
13
12
|
* A base component representing a Powerlines generated source file.
|
|
14
13
|
*
|
|
@@ -62,10 +61,4 @@ function SourceFile(props) {
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
//#endregion
|
|
65
|
-
exports.SourceFile = SourceFile;
|
|
66
|
-
Object.defineProperty(exports, 'source_file_exports', {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return source_file_exports;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
64
|
+
exports.SourceFile = SourceFile;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { useMeta } from "../contexts/meta.mjs";
|
|
3
2
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
3
|
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
@@ -6,7 +5,6 @@ import { appendPath } from "@stryke/path/append";
|
|
|
6
5
|
import defu from "defu";
|
|
7
6
|
|
|
8
7
|
//#region src/core/components/source-file.tsx
|
|
9
|
-
var source_file_exports = /* @__PURE__ */ __exportAll({ SourceFile: () => SourceFile });
|
|
10
8
|
/**
|
|
11
9
|
* A base component representing a Powerlines generated source file.
|
|
12
10
|
*
|
|
@@ -60,5 +58,5 @@ function SourceFile(props) {
|
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
//#endregion
|
|
63
|
-
export { SourceFile
|
|
61
|
+
export { SourceFile };
|
|
64
62
|
//# sourceMappingURL=source-file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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;CAAA,CAAA;CACN,MAAK,WAAO,QAAW;CACvB,MAAI,kBAAA,WAAA,sBAAA;CACJ,MAAE,aAAU;;EAEV;EACA;CACF;CACA,iBAAM,WAAA,UAAA;CACN,MAAK,eAAW,iBAAsB;EACpC,YAAE,MAAA;EACF,UAAO,MAAO;EACf,SAAA,MAAA;;CAED,CAAA;CACA,MAAG,cAAe,WAAa;CAChC,YAAA,OAAA,KAAA;EACG;EACA;CACF,GAAA,QAAA,CAAA,CAAA;CACF,IAAM,UACJ,SAAS,WAAU,QAAW;EAC5B;EACE,GAAC,QAAS,CAAA;CACZ;CAEF,OAAK,gBAAO,kBAAA,UAAA;EACV,OAAG;EACH,IAAG,WAAS;GACV,OAAC,CAAA,gBAAS,MAAA;IACV,MAAA,WAAA;;KAEE,OAAS,CAAC,QAAQ,gBAAE,OAAA,CAAA,CAAA,CAAA;IACpB;;EAEN;CACA,CAAC;AACH"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
3
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/spacing.tsx
|
|
7
|
-
var spacing_exports = /* @__PURE__ */ require_runtime.__exportAll({ Spacing: () => Spacing });
|
|
8
6
|
/**
|
|
9
7
|
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
10
8
|
*/
|
|
@@ -18,10 +16,4 @@ function Spacing({ scale = 1 }) {
|
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
//#endregion
|
|
21
|
-
exports.Spacing = Spacing;
|
|
22
|
-
Object.defineProperty(exports, 'spacing_exports', {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () {
|
|
25
|
-
return spacing_exports;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
19
|
+
exports.Spacing = Spacing;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { For } from "@alloy-js/core";
|
|
4
3
|
|
|
5
4
|
//#region src/core/components/spacing.tsx
|
|
6
|
-
var spacing_exports = /* @__PURE__ */ __exportAll({ Spacing: () => Spacing });
|
|
7
5
|
/**
|
|
8
6
|
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
9
7
|
*/
|
|
@@ -17,5 +15,5 @@ function Spacing({ scale = 1 }) {
|
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
//#endregion
|
|
20
|
-
export { Spacing
|
|
18
|
+
export { Spacing };
|
|
21
19
|
//# sourceMappingURL=spacing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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;CACD,OAAC,gBAAA,KAAA;EACC,IAAE,OAAA;GACF,OAAA,MAAA,KAAA,EACI,QAAQ,MAChB,CAAA;;EAEE,WAAA,MAAA,CAAA,gBAAA,OAAA,CAAA,CAAA,GAAA,gBAAA,OAAA,CAAA,CAAA,CAAA;CACA,CAAC;AACH"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
3
|
|
|
5
4
|
//#region src/core/contexts/context.ts
|
|
6
|
-
var context_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
-
PowerlinesContext: () => PowerlinesContext,
|
|
8
|
-
usePowerlines: () => usePowerlines,
|
|
9
|
-
usePowerlinesContext: () => usePowerlinesContext,
|
|
10
|
-
usePowerlinesSafe: () => usePowerlinesSafe
|
|
11
|
-
});
|
|
12
5
|
/**
|
|
13
6
|
* The Powerlines context used in template rendering.
|
|
14
7
|
*/
|
|
@@ -42,12 +35,6 @@ function usePowerlines() {
|
|
|
42
35
|
|
|
43
36
|
//#endregion
|
|
44
37
|
exports.PowerlinesContext = PowerlinesContext;
|
|
45
|
-
Object.defineProperty(exports, 'context_exports', {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () {
|
|
48
|
-
return context_exports;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
38
|
exports.usePowerlines = usePowerlines;
|
|
52
39
|
exports.usePowerlinesContext = usePowerlinesContext;
|
|
53
40
|
exports.usePowerlinesSafe = usePowerlinesSafe;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
3
2
|
|
|
4
3
|
//#region src/core/contexts/context.ts
|
|
5
|
-
var context_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
PowerlinesContext: () => PowerlinesContext,
|
|
7
|
-
usePowerlines: () => usePowerlines,
|
|
8
|
-
usePowerlinesContext: () => usePowerlinesContext,
|
|
9
|
-
usePowerlinesSafe: () => usePowerlinesSafe
|
|
10
|
-
});
|
|
11
4
|
/**
|
|
12
5
|
* The Powerlines context used in template rendering.
|
|
13
6
|
*/
|
|
@@ -40,5 +33,5 @@ function usePowerlines() {
|
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
//#endregion
|
|
43
|
-
export { PowerlinesContext,
|
|
36
|
+
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
44
37
|
//# sourceMappingURL=context.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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,YAAA;;;;;;AAOvB,SAAE,uBAAmC;;AAErC;;;;;;AAOA,SAAgB,oBAAU;CAE1B,OADoB,qBACpB,KAAA;;;;;;;AAQA,SAAW,gBAAqB;CAC9B,MAAG,aAAW,kBAAU;CACxB,IAAA,CAAK;CAGP,OAAA"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
3
|
|
|
5
4
|
//#region src/core/contexts/meta.ts
|
|
6
|
-
var meta_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
-
MetaContext: () => MetaContext,
|
|
8
|
-
useMeta: () => useMeta,
|
|
9
|
-
useMetaContext: () => useMetaContext,
|
|
10
|
-
useMetaSafe: () => useMetaSafe
|
|
11
|
-
});
|
|
12
5
|
/**
|
|
13
6
|
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
14
7
|
*/
|
|
@@ -42,12 +35,6 @@ function useMeta() {
|
|
|
42
35
|
|
|
43
36
|
//#endregion
|
|
44
37
|
exports.MetaContext = MetaContext;
|
|
45
|
-
Object.defineProperty(exports, 'meta_exports', {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () {
|
|
48
|
-
return meta_exports;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
38
|
exports.useMeta = useMeta;
|
|
52
39
|
exports.useMetaContext = useMetaContext;
|
|
53
40
|
exports.useMetaSafe = useMetaSafe;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
3
2
|
|
|
4
3
|
//#region src/core/contexts/meta.ts
|
|
5
|
-
var meta_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
MetaContext: () => MetaContext,
|
|
7
|
-
useMeta: () => useMeta,
|
|
8
|
-
useMetaContext: () => useMetaContext,
|
|
9
|
-
useMetaSafe: () => useMetaSafe
|
|
10
|
-
});
|
|
11
4
|
/**
|
|
12
5
|
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
13
6
|
*/
|
|
@@ -40,5 +33,5 @@ function useMeta() {
|
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
//#endregion
|
|
43
|
-
export { MetaContext,
|
|
36
|
+
export { MetaContext, useMeta, useMetaContext, useMetaSafe };
|
|
44
37
|
//# sourceMappingURL=meta.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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,MAAA;;;;;;AAOvB,SAAU,iBAAqB;;AAE/B;;;;;;AAOA,SAAG,cAAA;CAED,OADI,eACM,KAAA;AACZ;;;;;;AAOA,SAAO,UAAgB;CACrB,MAAA,OAAA,YAAA;CACF,IAAM,CAAC,MACL,MAAA,IAAA,MAAkB,mNAAkC;CAEpD,OAAA;AACF"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
3
|
|
|
5
4
|
//#region src/core/contexts/schema.ts
|
|
6
|
-
var schema_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
-
SchemaContext: () => SchemaContext,
|
|
8
|
-
SchemaPropertyContext: () => SchemaPropertyContext,
|
|
9
|
-
useSchema: () => useSchema,
|
|
10
|
-
useSchemaProperty: () => useSchemaProperty
|
|
11
|
-
});
|
|
12
5
|
/**
|
|
13
6
|
* The reflection class context used in template rendering.
|
|
14
7
|
*/
|
|
@@ -41,11 +34,5 @@ function useSchemaProperty() {
|
|
|
41
34
|
//#endregion
|
|
42
35
|
exports.SchemaContext = SchemaContext;
|
|
43
36
|
exports.SchemaPropertyContext = SchemaPropertyContext;
|
|
44
|
-
Object.defineProperty(exports, 'schema_exports', {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () {
|
|
47
|
-
return schema_exports;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
37
|
exports.useSchema = useSchema;
|
|
51
38
|
exports.useSchemaProperty = useSchemaProperty;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
3
2
|
|
|
4
3
|
//#region src/core/contexts/schema.ts
|
|
5
|
-
var schema_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
SchemaContext: () => SchemaContext,
|
|
7
|
-
SchemaPropertyContext: () => SchemaPropertyContext,
|
|
8
|
-
useSchema: () => useSchema,
|
|
9
|
-
useSchemaProperty: () => useSchemaProperty
|
|
10
|
-
});
|
|
11
4
|
/**
|
|
12
5
|
* The reflection class context used in template rendering.
|
|
13
6
|
*/
|
|
@@ -38,5 +31,5 @@ function useSchemaProperty() {
|
|
|
38
31
|
}
|
|
39
32
|
|
|
40
33
|
//#endregion
|
|
41
|
-
export { SchemaContext, SchemaPropertyContext,
|
|
34
|
+
export { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty };
|
|
42
35
|
//# sourceMappingURL=schema.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../src/core/contexts/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\nimport { JsonSchemaLike } from \"@powerlines/schema\";\n\n/**\n * The reflection class context used in template rendering.\n */\nexport const SchemaContext: ComponentContext<JsonSchemaLike> =\n createContext<JsonSchemaLike>();\n\n/**\n * Hook to access the schema context.\n *\n * @returns A reactive version of the current schema.\n */\nexport function useSchema() {\n const context = useContext<JsonSchemaLike>(SchemaContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Schema Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The schema property context used in template rendering.\n */\nexport const SchemaPropertyContext: ComponentContext<JsonSchemaLike> =\n createNamedContext<JsonSchemaLike>(\"SchemaProperty\");\n\n/**\n * Hook to access the Schema Property context.\n *\n * @returns A reactive version of the current schema property.\n */\nexport function useSchemaProperty() {\n const context = useContext<JsonSchemaLike>(SchemaPropertyContext)!;\n if (!context) {\n throw new Error(\n \"Powerlines - Schema Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n// /**\n// * The reflection method context used in template rendering.\n// */\n// export const ReflectionMethodContext: ComponentContext<ReflectionMethod> =\n// createNamedContext<ReflectionMethod>(\"ReflectionMethod\");\n\n// /**\n// * Hook to access the Reflection Method context.\n// *\n// * @returns A reactive version of the current reflection.\n// */\n// export function useReflectionMethod() {\n// const context = useContext<ReflectionMethod>(ReflectionMethodContext)!;\n\n// if (!context) {\n// throw new Error(\n// \"Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n// );\n// }\n\n// return context;\n// }\n\n// /**\n// * The reflection parameter context used in template rendering.\n// */\n// export const ReflectionParameterContext: ComponentContext<ReflectionParameter> =\n// createNamedContext<ReflectionParameter>(\"ReflectionParameter\");\n\n// /**\n// * Hook to access the Reflection Parameter context.\n// *\n// * @returns A reactive version of the current reflection.\n// */\n// export function useReflectionParameter() {\n// return useContext<ReflectionParameter>(ReflectionParameterContext)!;\n// }\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../../src/core/contexts/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\nimport { JsonSchemaLike } from \"@powerlines/schema\";\n\n/**\n * The reflection class context used in template rendering.\n */\nexport const SchemaContext: ComponentContext<JsonSchemaLike> =\n createContext<JsonSchemaLike>();\n\n/**\n * Hook to access the schema context.\n *\n * @returns A reactive version of the current schema.\n */\nexport function useSchema() {\n const context = useContext<JsonSchemaLike>(SchemaContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Schema Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The schema property context used in template rendering.\n */\nexport const SchemaPropertyContext: ComponentContext<JsonSchemaLike> =\n createNamedContext<JsonSchemaLike>(\"SchemaProperty\");\n\n/**\n * Hook to access the Schema Property context.\n *\n * @returns A reactive version of the current schema property.\n */\nexport function useSchemaProperty() {\n const context = useContext<JsonSchemaLike>(SchemaPropertyContext)!;\n if (!context) {\n throw new Error(\n \"Powerlines - Schema Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n// /**\n// * The reflection method context used in template rendering.\n// */\n// export const ReflectionMethodContext: ComponentContext<ReflectionMethod> =\n// createNamedContext<ReflectionMethod>(\"ReflectionMethod\");\n\n// /**\n// * Hook to access the Reflection Method context.\n// *\n// * @returns A reactive version of the current reflection.\n// */\n// export function useReflectionMethod() {\n// const context = useContext<ReflectionMethod>(ReflectionMethodContext)!;\n\n// if (!context) {\n// throw new Error(\n// \"Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n// );\n// }\n\n// return context;\n// }\n\n// /**\n// * The reflection parameter context used in template rendering.\n// */\n// export const ReflectionParameterContext: ComponentContext<ReflectionParameter> =\n// createNamedContext<ReflectionParameter>(\"ReflectionParameter\");\n\n// /**\n// * Hook to access the Reflection Parameter context.\n// *\n// * @returns A reactive version of the current reflection.\n// */\n// export function useReflectionParameter() {\n// return useContext<ReflectionParameter>(ReflectionParameterContext)!;\n// }\n"],"mappings":";;;;;;AAwBA,MAAE,gBAAA,cAAA;;;;;;AAOF,SAAc,YAAS;CACrB,MAAA,UAAA,WAAA,aAAA;CACF,IAAM,CAAC,SACL,MAAM,IAAA,MAAU,4LAA0C;CAE1D,OAAK;AACP;;;;AAKA,MAAS,wBAAO,mBAAA,gBAAA;;;;;;AAOhB,SAAE,oBAAkC;;CAElC,IAAA,CAAA,SACC,MAAO,IAAC,MAAO,qMAA2B;CAE3C,OAAE;AACJ"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
3
|
|
|
5
4
|
//#region src/core/helpers/code.ts
|
|
6
|
-
var code_exports = /* @__PURE__ */ require_runtime.__exportAll({ code: () => code });
|
|
7
5
|
/**
|
|
8
6
|
* Turn the provided string template into Children by replacing literal line
|
|
9
7
|
* breaks with hardlines and automatically indenting indented content. Similar
|
|
@@ -32,10 +30,4 @@ function code(template, ...substitutions) {
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
//#endregion
|
|
35
|
-
exports.code = code;
|
|
36
|
-
Object.defineProperty(exports, 'code_exports', {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return code_exports;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
33
|
+
exports.code = code;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
1
|
import { code as code$1 } from "@alloy-js/core";
|
|
3
2
|
|
|
4
3
|
//#region src/core/helpers/code.ts
|
|
5
|
-
var code_exports = /* @__PURE__ */ __exportAll({ code: () => code });
|
|
6
4
|
/**
|
|
7
5
|
* Turn the provided string template into Children by replacing literal line
|
|
8
6
|
* breaks with hardlines and automatically indenting indented content. Similar
|
|
@@ -31,5 +29,5 @@ function code(template, ...substitutions) {
|
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
//#endregion
|
|
34
|
-
export { code
|
|
32
|
+
export { code };
|
|
35
33
|
//# sourceMappingURL=code.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.mjs","names":[],"sources":["../../../src/core/helpers/code.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code as baseCode, Children } from \"@alloy-js/core\";\n\n/**\n * Turn the provided string template into Children by replacing literal line\n * breaks with hardlines and automatically indenting indented content. Similar\n * in spirit to the `<code>` element in HTML.\n *\n * @see {@link text} for a similar function which treats whitespace similar to\n * JSX template bodies.\n *\n * @example\n * ```ts\n * code`\n * function greet(name: string) {\n * console.log(\"Hello, \" + name + \"!\");\n * }\n * `\n * ```\n *\n * @param template - The template string to be processed into Children.\n * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.\n * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.\n * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable \"Cannot read properties of undefined\" exception later in the processing.\n */\nexport function code(\n template: TemplateStringsArray,\n ...substitutions: Children[]\n): Children {\n if (\n template.filter(seg => seg.trim()).length === 0 &&\n substitutions.length === 0\n ) {\n throw new Error(\n \"The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.\"\n );\n }\n\n return baseCode(template, ...substitutions);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"code.mjs","names":[],"sources":["../../../src/core/helpers/code.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code as baseCode, Children } from \"@alloy-js/core\";\n\n/**\n * Turn the provided string template into Children by replacing literal line\n * breaks with hardlines and automatically indenting indented content. Similar\n * in spirit to the `<code>` element in HTML.\n *\n * @see {@link text} for a similar function which treats whitespace similar to\n * JSX template bodies.\n *\n * @example\n * ```ts\n * code`\n * function greet(name: string) {\n * console.log(\"Hello, \" + name + \"!\");\n * }\n * `\n * ```\n *\n * @param template - The template string to be processed into Children.\n * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.\n * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.\n * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable \"Cannot read properties of undefined\" exception later in the processing.\n */\nexport function code(\n template: TemplateStringsArray,\n ...substitutions: Children[]\n): Children {\n if (\n template.filter(seg => seg.trim()).length === 0 &&\n substitutions.length === 0\n ) {\n throw new Error(\n \"The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.\"\n );\n }\n\n return baseCode(template, ...substitutions);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,KAAI,UAAA,GAAA,eAAA;CAClB,IAAA,SAAU,QAAA,QAAA,IAAoB,KAAA,CAAA,EAAA,WAAA,KAAA,cAAA,WAAA,GAC5B,MAAC,IAAA,MAAe,wHAAS;CAE3B,OAAG,OAAA,UAAA,GAAA,aAAA;AACL"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
const require_core_helpers_code = require('../../core/helpers/code.cjs');
|
|
4
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
6
5
|
|
|
7
6
|
//#region src/hcl/components/block-declaration.tsx
|
|
8
|
-
var block_declaration_exports = /* @__PURE__ */ require_runtime.__exportAll({ BlockDeclaration: () => BlockDeclaration });
|
|
9
7
|
/**
|
|
10
8
|
* A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
|
|
11
9
|
*
|
|
@@ -32,10 +30,4 @@ function BlockDeclaration(props) {
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
//#endregion
|
|
35
|
-
exports.BlockDeclaration = BlockDeclaration;
|
|
36
|
-
Object.defineProperty(exports, 'block_declaration_exports', {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return block_declaration_exports;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
33
|
+
exports.BlockDeclaration = BlockDeclaration;
|