@powerlines/plugin-alloy 0.26.179 → 0.26.181
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 +14 -0
- package/dist/_virtual/_rolldown/runtime.mjs +18 -0
- package/dist/core/components/infrastructure-file.cjs +8 -1
- package/dist/core/components/infrastructure-file.mjs +3 -1
- package/dist/core/components/infrastructure-file.mjs.map +1 -1
- package/dist/core/components/infrastructure-file.test.cjs +16 -0
- package/dist/core/components/infrastructure-file.test.d.cts +1 -0
- package/dist/core/components/infrastructure-file.test.d.mts +1 -0
- package/dist/core/components/infrastructure-file.test.mjs +18 -0
- package/dist/core/components/infrastructure-file.test.mjs.map +1 -0
- package/dist/core/components/output.cjs +9 -1
- package/dist/core/components/output.d.cts.map +1 -1
- package/dist/core/components/output.d.mts.map +1 -1
- package/dist/core/components/output.mjs +3 -1
- package/dist/core/components/output.mjs.map +1 -1
- package/dist/core/components/output.test.cjs +16 -0
- package/dist/core/components/output.test.d.cts +1 -0
- package/dist/core/components/output.test.d.mts +1 -0
- package/dist/core/components/output.test.mjs +18 -0
- package/dist/core/components/output.test.mjs.map +1 -0
- package/dist/core/components/single-line-comment.cjs +9 -1
- package/dist/core/components/single-line-comment.mjs +3 -1
- package/dist/core/components/single-line-comment.mjs.map +1 -1
- package/dist/core/components/single-line-comment.test.cjs +16 -0
- package/dist/core/components/single-line-comment.test.d.cts +1 -0
- package/dist/core/components/single-line-comment.test.d.mts +1 -0
- package/dist/core/components/single-line-comment.test.mjs +18 -0
- package/dist/core/components/single-line-comment.test.mjs.map +1 -0
- package/dist/core/components/source-file.cjs +8 -1
- package/dist/core/components/source-file.mjs +3 -1
- package/dist/core/components/source-file.mjs.map +1 -1
- package/dist/core/components/source-file.test.cjs +16 -0
- package/dist/core/components/source-file.test.d.cts +1 -0
- package/dist/core/components/source-file.test.d.mts +1 -0
- package/dist/core/components/source-file.test.mjs +18 -0
- package/dist/core/components/source-file.test.mjs.map +1 -0
- package/dist/core/components/spacing.cjs +9 -1
- package/dist/core/components/spacing.d.cts.map +1 -1
- package/dist/core/components/spacing.d.mts.map +1 -1
- package/dist/core/components/spacing.mjs +3 -1
- package/dist/core/components/spacing.mjs.map +1 -1
- package/dist/core/components/spacing.test.cjs +16 -0
- package/dist/core/components/spacing.test.d.cts +1 -0
- package/dist/core/components/spacing.test.d.mts +1 -0
- package/dist/core/components/spacing.test.mjs +18 -0
- package/dist/core/components/spacing.test.mjs.map +1 -0
- package/dist/core/contexts/context.cjs +13 -0
- package/dist/core/contexts/context.d.cts.map +1 -1
- package/dist/core/contexts/context.d.mts.map +1 -1
- package/dist/core/contexts/context.mjs +8 -1
- package/dist/core/contexts/context.mjs.map +1 -1
- package/dist/core/contexts/context.test.cjs +16 -0
- package/dist/core/contexts/context.test.d.cts +1 -0
- package/dist/core/contexts/context.test.d.mts +1 -0
- package/dist/core/contexts/context.test.mjs +18 -0
- package/dist/core/contexts/context.test.mjs.map +1 -0
- package/dist/core/contexts/meta.cjs +13 -0
- package/dist/core/contexts/meta.d.cts.map +1 -1
- package/dist/core/contexts/meta.d.mts.map +1 -1
- package/dist/core/contexts/meta.mjs +8 -1
- package/dist/core/contexts/meta.mjs.map +1 -1
- package/dist/core/contexts/meta.test.cjs +16 -0
- package/dist/core/contexts/meta.test.d.cts +1 -0
- package/dist/core/contexts/meta.test.d.mts +1 -0
- package/dist/core/contexts/meta.test.mjs +18 -0
- package/dist/core/contexts/meta.test.mjs.map +1 -0
- package/dist/core/contexts/schema.cjs +13 -0
- package/dist/core/contexts/schema.d.cts.map +1 -1
- package/dist/core/contexts/schema.d.mts.map +1 -1
- package/dist/core/contexts/schema.mjs +8 -1
- package/dist/core/contexts/schema.mjs.map +1 -1
- package/dist/core/contexts/schema.test.cjs +16 -0
- package/dist/core/contexts/schema.test.d.cts +1 -0
- package/dist/core/contexts/schema.test.d.mts +1 -0
- package/dist/core/contexts/schema.test.mjs +18 -0
- package/dist/core/contexts/schema.test.mjs.map +1 -0
- package/dist/core/helpers/code.cjs +9 -1
- package/dist/core/helpers/code.mjs +3 -1
- package/dist/core/helpers/code.mjs.map +1 -1
- package/dist/core/helpers/code.test.cjs +16 -0
- package/dist/core/helpers/code.test.d.cts +1 -0
- package/dist/core/helpers/code.test.d.mts +1 -0
- package/dist/core/helpers/code.test.mjs +18 -0
- package/dist/core/helpers/code.test.mjs.map +1 -0
- package/dist/hcl/components/block-declaration.cjs +9 -1
- package/dist/hcl/components/block-declaration.mjs +3 -1
- package/dist/hcl/components/block-declaration.mjs.map +1 -1
- package/dist/hcl/components/block-declaration.test.cjs +16 -0
- package/dist/hcl/components/block-declaration.test.d.cts +1 -0
- package/dist/hcl/components/block-declaration.test.d.mts +1 -0
- package/dist/hcl/components/block-declaration.test.mjs +18 -0
- package/dist/hcl/components/block-declaration.test.mjs.map +1 -0
- package/dist/hcl/components/hcl-file.cjs +12 -1
- package/dist/hcl/components/hcl-file.mjs +6 -1
- package/dist/hcl/components/hcl-file.mjs.map +1 -1
- package/dist/hcl/components/hcl-file.test.cjs +16 -0
- package/dist/hcl/components/hcl-file.test.d.cts +1 -0
- package/dist/hcl/components/hcl-file.test.d.mts +1 -0
- package/dist/hcl/components/hcl-file.test.mjs +18 -0
- package/dist/hcl/components/hcl-file.test.mjs.map +1 -0
- package/dist/hcl/components/packer-file.cjs +9 -1
- package/dist/hcl/components/packer-file.mjs +3 -1
- package/dist/hcl/components/packer-file.mjs.map +1 -1
- package/dist/hcl/components/packer-file.test.cjs +16 -0
- package/dist/hcl/components/packer-file.test.d.cts +1 -0
- package/dist/hcl/components/packer-file.test.d.mts +1 -0
- package/dist/hcl/components/packer-file.test.mjs +18 -0
- package/dist/hcl/components/packer-file.test.mjs.map +1 -0
- package/dist/hcl/components/terraform-file.cjs +9 -1
- package/dist/hcl/components/terraform-file.mjs +3 -1
- package/dist/hcl/components/terraform-file.mjs.map +1 -1
- package/dist/hcl/components/terraform-file.test.cjs +16 -0
- package/dist/hcl/components/terraform-file.test.d.cts +1 -0
- package/dist/hcl/components/terraform-file.test.d.mts +1 -0
- package/dist/hcl/components/terraform-file.test.mjs +18 -0
- package/dist/hcl/components/terraform-file.test.mjs.map +1 -0
- package/dist/helpers/capnp.cjs +24 -0
- package/dist/helpers/capnp.d.cts.map +1 -1
- package/dist/helpers/capnp.d.mts.map +1 -1
- package/dist/helpers/capnp.mjs +20 -1
- package/dist/helpers/capnp.mjs.map +1 -1
- package/dist/helpers/capnp.test.cjs +16 -0
- package/dist/helpers/capnp.test.d.cts +1 -0
- package/dist/helpers/capnp.test.d.mts +1 -0
- package/dist/helpers/capnp.test.mjs +18 -0
- package/dist/helpers/capnp.test.mjs.map +1 -0
- package/dist/helpers/create-builtin.cjs +9 -1
- package/dist/helpers/create-builtin.d.cts.map +1 -1
- package/dist/helpers/create-builtin.d.mts.map +1 -1
- package/dist/helpers/create-builtin.mjs +3 -1
- package/dist/helpers/create-builtin.mjs.map +1 -1
- package/dist/helpers/create-builtin.test.cjs +16 -0
- package/dist/helpers/create-builtin.test.d.cts +1 -0
- package/dist/helpers/create-builtin.test.d.mts +1 -0
- package/dist/helpers/create-builtin.test.mjs +18 -0
- package/dist/helpers/create-builtin.test.mjs.map +1 -0
- package/dist/helpers/refkey.cjs +1 -0
- package/dist/helpers/refkey.d.cts.map +1 -1
- package/dist/helpers/refkey.d.mts.map +1 -1
- package/dist/helpers/refkey.mjs +1 -0
- package/dist/helpers/refkey.mjs.map +1 -1
- package/dist/helpers/refkey.test.cjs +30 -0
- package/dist/helpers/refkey.test.d.cts +1 -0
- package/dist/helpers/refkey.test.d.mts +1 -0
- package/dist/helpers/refkey.test.mjs +32 -0
- package/dist/helpers/refkey.test.mjs.map +1 -0
- package/dist/helpers/typescript.cjs +9 -1
- package/dist/helpers/typescript.d.cts.map +1 -1
- package/dist/helpers/typescript.d.mts.map +1 -1
- package/dist/helpers/typescript.mjs +3 -1
- package/dist/helpers/typescript.mjs.map +1 -1
- package/dist/helpers/typescript.test.cjs +16 -0
- package/dist/helpers/typescript.test.d.cts +1 -0
- package/dist/helpers/typescript.test.d.mts +1 -0
- package/dist/helpers/typescript.test.mjs +18 -0
- package/dist/helpers/typescript.test.mjs.map +1 -0
- package/dist/markdown/components/front-matter.cjs +9 -1
- package/dist/markdown/components/front-matter.mjs +3 -1
- package/dist/markdown/components/front-matter.mjs.map +1 -1
- package/dist/markdown/components/front-matter.test.cjs +16 -0
- package/dist/markdown/components/front-matter.test.d.cts +1 -0
- package/dist/markdown/components/front-matter.test.d.mts +1 -0
- package/dist/markdown/components/front-matter.test.mjs +18 -0
- package/dist/markdown/components/front-matter.test.mjs.map +1 -0
- package/dist/markdown/components/heading.cjs +9 -1
- package/dist/markdown/components/heading.mjs +3 -1
- package/dist/markdown/components/heading.mjs.map +1 -1
- package/dist/markdown/components/heading.test.cjs +16 -0
- package/dist/markdown/components/heading.test.d.cts +1 -0
- package/dist/markdown/components/heading.test.d.mts +1 -0
- package/dist/markdown/components/heading.test.mjs +18 -0
- package/dist/markdown/components/heading.test.mjs.map +1 -0
- package/dist/markdown/components/markdown-file.cjs +12 -1
- package/dist/markdown/components/markdown-file.mjs +6 -1
- package/dist/markdown/components/markdown-file.mjs.map +1 -1
- package/dist/markdown/components/markdown-file.test.cjs +16 -0
- package/dist/markdown/components/markdown-file.test.d.cts +1 -0
- package/dist/markdown/components/markdown-file.test.d.mts +1 -0
- package/dist/markdown/components/markdown-file.test.mjs +18 -0
- package/dist/markdown/components/markdown-file.test.mjs.map +1 -0
- package/dist/markdown/components/markdown-table.cjs +13 -1
- package/dist/markdown/components/markdown-table.d.cts.map +1 -1
- package/dist/markdown/components/markdown-table.d.mts.map +1 -1
- package/dist/markdown/components/markdown-table.mjs +7 -1
- package/dist/markdown/components/markdown-table.mjs.map +1 -1
- package/dist/markdown/components/markdown-table.test.cjs +16 -0
- package/dist/markdown/components/markdown-table.test.d.cts +1 -0
- package/dist/markdown/components/markdown-table.test.d.mts +1 -0
- package/dist/markdown/components/markdown-table.test.mjs +18 -0
- package/dist/markdown/components/markdown-table.test.mjs.map +1 -0
- package/dist/markdown/contexts/markdown-table.cjs +13 -0
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
- package/dist/markdown/contexts/markdown-table.d.mts.map +1 -1
- package/dist/markdown/contexts/markdown-table.mjs +8 -1
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
- package/dist/markdown/contexts/markdown-table.test.cjs +16 -0
- package/dist/markdown/contexts/markdown-table.test.d.cts +1 -0
- package/dist/markdown/contexts/markdown-table.test.d.mts +1 -0
- package/dist/markdown/contexts/markdown-table.test.mjs +18 -0
- package/dist/markdown/contexts/markdown-table.test.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +1487 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +1473 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +889 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +888 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +1614 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +1594 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +923 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +922 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +391 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +386 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +1358 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +1357 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +561 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +559 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +197 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +181 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +29 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +27 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +2978 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +2973 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +1 -0
- 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 +6 -0
- 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 +6 -0
- 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 +1 -0
- 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 +54 -0
- 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 +52 -0
- 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 +1 -0
- 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 +2696 -0
- 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 +2697 -0
- 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 +1 -0
- 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 +47 -0
- 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 +45 -0
- 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 +1 -0
- package/dist/render.d.cts.map +1 -1
- package/dist/render.d.mts.map +1 -1
- package/dist/render.mjs.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +9 -1
- package/dist/typescript/components/builtin-file.mjs +3 -1
- package/dist/typescript/components/builtin-file.mjs.map +1 -1
- package/dist/typescript/components/builtin-file.test.cjs +16 -0
- package/dist/typescript/components/builtin-file.test.d.cts +1 -0
- package/dist/typescript/components/builtin-file.test.d.mts +1 -0
- package/dist/typescript/components/builtin-file.test.mjs +18 -0
- package/dist/typescript/components/builtin-file.test.mjs.map +1 -0
- package/dist/typescript/components/class-declaration.cjs +16 -1
- package/dist/typescript/components/class-declaration.mjs +10 -1
- package/dist/typescript/components/class-declaration.mjs.map +1 -1
- package/dist/typescript/components/class-declaration.test.cjs +16 -0
- package/dist/typescript/components/class-declaration.test.d.cts +1 -0
- package/dist/typescript/components/class-declaration.test.d.mts +1 -0
- package/dist/typescript/components/class-declaration.test.mjs +18 -0
- package/dist/typescript/components/class-declaration.test.mjs.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +9 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +3 -1
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.test.cjs +16 -0
- package/dist/typescript/components/dynamic-import-statement.test.d.cts +1 -0
- package/dist/typescript/components/dynamic-import-statement.test.d.mts +1 -0
- package/dist/typescript/components/dynamic-import-statement.test.mjs +18 -0
- package/dist/typescript/components/dynamic-import-statement.test.mjs.map +1 -0
- package/dist/typescript/components/entry-file.cjs +8 -1
- package/dist/typescript/components/entry-file.mjs +3 -1
- package/dist/typescript/components/entry-file.mjs.map +1 -1
- package/dist/typescript/components/entry-file.test.cjs +16 -0
- package/dist/typescript/components/entry-file.test.d.cts +1 -0
- package/dist/typescript/components/entry-file.test.d.mts +1 -0
- package/dist/typescript/components/entry-file.test.mjs +18 -0
- package/dist/typescript/components/entry-file.test.mjs.map +1 -0
- package/dist/typescript/components/interface-declaration.cjs +14 -1
- package/dist/typescript/components/interface-declaration.mjs +8 -1
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/interface-declaration.test.cjs +16 -0
- package/dist/typescript/components/interface-declaration.test.d.cts +1 -0
- package/dist/typescript/components/interface-declaration.test.d.mts +1 -0
- package/dist/typescript/components/interface-declaration.test.mjs +18 -0
- package/dist/typescript/components/interface-declaration.test.mjs.map +1 -0
- package/dist/typescript/components/object-declaration.cjs +12 -1
- package/dist/typescript/components/object-declaration.mjs +6 -1
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.test.cjs +16 -0
- package/dist/typescript/components/object-declaration.test.d.cts +1 -0
- package/dist/typescript/components/object-declaration.test.d.mts +1 -0
- package/dist/typescript/components/object-declaration.test.mjs +18 -0
- package/dist/typescript/components/object-declaration.test.mjs.map +1 -0
- package/dist/typescript/components/property-name.cjs +9 -1
- package/dist/typescript/components/property-name.mjs +3 -1
- package/dist/typescript/components/property-name.mjs.map +1 -1
- package/dist/typescript/components/property-name.test.cjs +16 -0
- package/dist/typescript/components/property-name.test.d.cts +1 -0
- package/dist/typescript/components/property-name.test.d.mts +1 -0
- package/dist/typescript/components/property-name.test.mjs +18 -0
- package/dist/typescript/components/property-name.test.mjs.map +1 -0
- package/dist/typescript/components/record-expression.cjs +9 -1
- package/dist/typescript/components/record-expression.d.cts.map +1 -1
- package/dist/typescript/components/record-expression.d.mts.map +1 -1
- package/dist/typescript/components/record-expression.mjs +3 -1
- package/dist/typescript/components/record-expression.mjs.map +1 -1
- package/dist/typescript/components/record-expression.test.cjs +16 -0
- package/dist/typescript/components/record-expression.test.d.cts +1 -0
- package/dist/typescript/components/record-expression.test.d.mts +1 -0
- package/dist/typescript/components/record-expression.test.mjs +18 -0
- package/dist/typescript/components/record-expression.test.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-schema.cjs +12 -1
- package/dist/typescript/components/tsdoc-schema.mjs +6 -1
- package/dist/typescript/components/tsdoc-schema.mjs.map +1 -1
- package/dist/typescript/components/tsdoc-schema.test.cjs +16 -0
- package/dist/typescript/components/tsdoc-schema.test.d.cts +1 -0
- package/dist/typescript/components/tsdoc-schema.test.d.mts +1 -0
- package/dist/typescript/components/tsdoc-schema.test.mjs +18 -0
- package/dist/typescript/components/tsdoc-schema.test.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.cjs +32 -1
- package/dist/typescript/components/tsdoc.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.mjs +26 -1
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/tsdoc.test.cjs +16 -0
- package/dist/typescript/components/tsdoc.test.d.cts +1 -0
- package/dist/typescript/components/tsdoc.test.d.mts +1 -0
- package/dist/typescript/components/tsdoc.test.mjs +18 -0
- package/dist/typescript/components/tsdoc.test.mjs.map +1 -0
- package/dist/typescript/components/type-declaration.cjs +9 -1
- package/dist/typescript/components/type-declaration.mjs +3 -1
- package/dist/typescript/components/type-declaration.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.test.cjs +16 -0
- package/dist/typescript/components/type-declaration.test.d.cts +1 -0
- package/dist/typescript/components/type-declaration.test.d.mts +1 -0
- package/dist/typescript/components/type-declaration.test.mjs +18 -0
- package/dist/typescript/components/type-declaration.test.mjs.map +1 -0
- package/dist/typescript/components/type-parameters.cjs +9 -1
- package/dist/typescript/components/type-parameters.mjs +3 -1
- package/dist/typescript/components/type-parameters.mjs.map +1 -1
- package/dist/typescript/components/type-parameters.test.cjs +16 -0
- package/dist/typescript/components/type-parameters.test.d.cts +1 -0
- package/dist/typescript/components/type-parameters.test.d.mts +1 -0
- package/dist/typescript/components/type-parameters.test.mjs +18 -0
- package/dist/typescript/components/type-parameters.test.mjs.map +1 -0
- package/dist/typescript/components/typescript-file.cjs +13 -1
- package/dist/typescript/components/typescript-file.mjs +7 -1
- package/dist/typescript/components/typescript-file.mjs.map +1 -1
- package/dist/typescript/components/typescript-file.test.cjs +16 -0
- package/dist/typescript/components/typescript-file.test.d.cts +1 -0
- package/dist/typescript/components/typescript-file.test.d.mts +1 -0
- package/dist/typescript/components/typescript-file.test.mjs +18 -0
- package/dist/typescript/components/typescript-file.test.mjs.map +1 -0
- package/dist/typescript/contexts/lexical-scope.cjs +9 -1
- package/dist/typescript/contexts/lexical-scope.mjs +3 -1
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
- package/dist/typescript/contexts/lexical-scope.test.cjs +16 -0
- package/dist/typescript/contexts/lexical-scope.test.d.cts +1 -0
- package/dist/typescript/contexts/lexical-scope.test.d.mts +1 -0
- package/dist/typescript/contexts/lexical-scope.test.mjs +18 -0
- package/dist/typescript/contexts/lexical-scope.test.mjs.map +1 -0
- package/dist/typescript/contexts/member-scope.cjs +9 -1
- package/dist/typescript/contexts/member-scope.mjs +3 -1
- package/dist/typescript/contexts/member-scope.mjs.map +1 -1
- package/dist/typescript/contexts/member-scope.test.cjs +16 -0
- package/dist/typescript/contexts/member-scope.test.d.cts +1 -0
- package/dist/typescript/contexts/member-scope.test.d.mts +1 -0
- package/dist/typescript/contexts/member-scope.test.mjs +18 -0
- package/dist/typescript/contexts/member-scope.test.mjs.map +1 -0
- package/dist/typescript/helpers/get-call-signature-props.cjs +9 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs +3 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.test.cjs +16 -0
- package/dist/typescript/helpers/get-call-signature-props.test.d.cts +1 -0
- package/dist/typescript/helpers/get-call-signature-props.test.d.mts +1 -0
- package/dist/typescript/helpers/get-call-signature-props.test.mjs +18 -0
- package/dist/typescript/helpers/get-call-signature-props.test.mjs.map +1 -0
- package/dist/typescript/helpers/utilities.cjs +9 -1
- package/dist/typescript/helpers/utilities.mjs +4 -1
- package/dist/typescript/helpers/utilities.mjs.map +1 -1
- package/dist/typescript/helpers/utilities.test.cjs +16 -0
- package/dist/typescript/helpers/utilities.test.d.cts +1 -0
- package/dist/typescript/helpers/utilities.test.d.mts +1 -0
- package/dist/typescript/helpers/utilities.test.mjs +18 -0
- package/dist/typescript/helpers/utilities.test.mjs.map +1 -0
- package/dist/yaml/components/yaml-file.cjs +12 -1
- package/dist/yaml/components/yaml-file.mjs +6 -1
- package/dist/yaml/components/yaml-file.mjs.map +1 -1
- package/dist/yaml/components/yaml-file.test.cjs +16 -0
- package/dist/yaml/components/yaml-file.test.d.cts +1 -0
- package/dist/yaml/components/yaml-file.test.d.mts +1 -0
- package/dist/yaml/components/yaml-file.test.mjs +18 -0
- package/dist/yaml/components/yaml-file.test.mjs.map +1 -0
- package/package.json +590 -17
|
@@ -5,6 +5,19 @@ 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
|
+
};
|
|
8
21
|
var __copyProps = (to, from, except, desc) => {
|
|
9
22
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
23
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -26,4 +39,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
39
|
|
|
27
40
|
//#endregion
|
|
28
41
|
|
|
42
|
+
exports.__exportAll = __exportAll;
|
|
29
43
|
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll };
|
|
@@ -11,6 +11,7 @@ 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 });
|
|
14
15
|
/**
|
|
15
16
|
* A base component representing a Powerlines generated infrastructure file.
|
|
16
17
|
*
|
|
@@ -45,4 +46,10 @@ function InfrastructureFile(props) {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
//#endregion
|
|
48
|
-
exports.InfrastructureFile = InfrastructureFile;
|
|
49
|
+
exports.InfrastructureFile = InfrastructureFile;
|
|
50
|
+
Object.defineProperty(exports, 'infrastructure_file_exports', {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () {
|
|
53
|
+
return infrastructure_file_exports;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { usePowerlinesSafe } from "../contexts/context.mjs";
|
|
2
3
|
import { SourceFile } from "./source-file.mjs";
|
|
3
4
|
import { findFileExtensionSafe, hasFileExtension } from "@stryke/path/file-path-fns";
|
|
@@ -8,6 +9,7 @@ import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
|
8
9
|
import defu from "defu";
|
|
9
10
|
|
|
10
11
|
//#region src/core/components/infrastructure-file.tsx
|
|
12
|
+
var infrastructure_file_exports = /* @__PURE__ */ __exportAll({ InfrastructureFile: () => InfrastructureFile });
|
|
11
13
|
/**
|
|
12
14
|
* A base component representing a Powerlines generated infrastructure file.
|
|
13
15
|
*
|
|
@@ -42,5 +44,5 @@ function InfrastructureFile(props) {
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
//#endregion
|
|
45
|
-
export { InfrastructureFile };
|
|
47
|
+
export { InfrastructureFile, infrastructure_file_exports };
|
|
46
48
|
//# 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_core_components_infrastructure_file = require('./infrastructure-file.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../../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');
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/infrastructure-file.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-alloy/src/core/components/infrastructure-file.tsx", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_core_components_infrastructure_file.infrastructure_file_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_core_components_infrastructure_file.infrastructure_file_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_core_components_infrastructure_file.infrastructure_file_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { infrastructure_file_exports } from "./infrastructure-file.mjs";
|
|
2
|
+
import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../../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";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/infrastructure-file.test.ts
|
|
6
|
+
describe("plugins/plugin-alloy/src/core/components/infrastructure-file.tsx", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(infrastructure_file_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof infrastructure_file_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(infrastructure_file_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=infrastructure-file.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infrastructure-file.test.mjs","names":[],"sources":["../../../src/core/components/infrastructure-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./infrastructure-file\";\n\ndescribe(\"plugins/plugin-alloy/src/core/components/infrastructure-file.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,2BAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,2BAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_core_contexts_context = require('../contexts/context.cjs');
|
|
3
4
|
const require_core_contexts_meta = require('../contexts/meta.cjs');
|
|
4
5
|
require('../contexts/index.cjs');
|
|
@@ -6,6 +7,7 @@ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
|
6
7
|
let _alloy_js_core = require("@alloy-js/core");
|
|
7
8
|
|
|
8
9
|
//#region src/core/components/output.tsx
|
|
10
|
+
var output_exports = /* @__PURE__ */ require_runtime.__exportAll({ Output: () => Output });
|
|
9
11
|
/**
|
|
10
12
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
11
13
|
*/
|
|
@@ -37,4 +39,10 @@ function Output(props) {
|
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
//#endregion
|
|
40
|
-
exports.Output = Output;
|
|
42
|
+
exports.Output = Output;
|
|
43
|
+
Object.defineProperty(exports, 'output_exports', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return output_exports;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;AAFf;EAME,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,
|
|
1
|
+
{"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;AAFf;EAME,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,KAAA,EAAO,WAAA,CAAY,QAAA,6BAAS,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;AAFf;EAME,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,
|
|
1
|
+
{"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;AAFf;EAME,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,EACtD,KAAA,EAAO,WAAA,CAAY,QAAA,6BAAS,QAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
3
|
import { MetaContext } from "../contexts/meta.mjs";
|
|
3
4
|
import "../contexts/index.mjs";
|
|
@@ -5,6 +6,7 @@ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
|
5
6
|
import { Output as Output$1, computed, splitProps } from "@alloy-js/core";
|
|
6
7
|
|
|
7
8
|
//#region src/core/components/output.tsx
|
|
9
|
+
var output_exports = /* @__PURE__ */ __exportAll({ Output: () => Output });
|
|
8
10
|
/**
|
|
9
11
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
12
|
*/
|
|
@@ -36,5 +38,5 @@ function Output(props) {
|
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
//#endregion
|
|
39
|
-
export { Output };
|
|
41
|
+
export { Output, output_exports };
|
|
40
42
|
//# 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_core_components_output = require('./output.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../../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');
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/output.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-alloy/src/core/components/output.tsx", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_core_components_output.output_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_core_components_output.output_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_core_components_output.output_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { output_exports } from "./output.mjs";
|
|
2
|
+
import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../../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";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/output.test.ts
|
|
6
|
+
describe("plugins/plugin-alloy/src/core/components/output.tsx", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(output_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof output_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(output_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=output.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.test.mjs","names":[],"sources":["../../../src/core/components/output.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./output\";\n\ndescribe(\"plugins/plugin-alloy/src/core/components/output.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,cAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,cAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
5
|
|
|
5
6
|
//#region src/core/components/single-line-comment.tsx
|
|
7
|
+
var single_line_comment_exports = /* @__PURE__ */ require_runtime.__exportAll({ SingleLineComment: () => SingleLineComment });
|
|
6
8
|
/**
|
|
7
9
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
8
10
|
* are broken into multiple lines
|
|
@@ -19,4 +21,10 @@ function SingleLineComment(props) {
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
//#endregion
|
|
22
|
-
exports.SingleLineComment = SingleLineComment;
|
|
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
|
+
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { Prose } from "@alloy-js/core";
|
|
3
4
|
|
|
4
5
|
//#region src/core/components/single-line-comment.tsx
|
|
6
|
+
var single_line_comment_exports = /* @__PURE__ */ __exportAll({ SingleLineComment: () => SingleLineComment });
|
|
5
7
|
/**
|
|
6
8
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
7
9
|
* are broken into multiple lines
|
|
@@ -18,5 +20,5 @@ function SingleLineComment(props) {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
//#endregion
|
|
21
|
-
export { SingleLineComment };
|
|
23
|
+
export { SingleLineComment, single_line_comment_exports };
|
|
22
24
|
//# 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_core_components_single_line_comment = require('./single-line-comment.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../../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');
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/single-line-comment.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-alloy/src/core/components/single-line-comment.tsx", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_core_components_single_line_comment.single_line_comment_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_core_components_single_line_comment.single_line_comment_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_core_components_single_line_comment.single_line_comment_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { single_line_comment_exports } from "./single-line-comment.mjs";
|
|
2
|
+
import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../../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";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/single-line-comment.test.ts
|
|
6
|
+
describe("plugins/plugin-alloy/src/core/components/single-line-comment.tsx", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(single_line_comment_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof single_line_comment_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(single_line_comment_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=single-line-comment.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-line-comment.test.mjs","names":[],"sources":["../../../src/core/components/single-line-comment.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./single-line-comment\";\n\ndescribe(\"plugins/plugin-alloy/src/core/components/single-line-comment.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,2BAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,2BAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
|
@@ -8,6 +8,7 @@ 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 });
|
|
11
12
|
/**
|
|
12
13
|
* A base component representing a Powerlines generated source file.
|
|
13
14
|
*
|
|
@@ -61,4 +62,10 @@ function SourceFile(props) {
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
//#endregion
|
|
64
|
-
exports.SourceFile = SourceFile;
|
|
65
|
+
exports.SourceFile = SourceFile;
|
|
66
|
+
Object.defineProperty(exports, 'source_file_exports', {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return source_file_exports;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { useMeta } from "../contexts/meta.mjs";
|
|
2
3
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
4
|
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
@@ -5,6 +6,7 @@ import { appendPath } from "@stryke/path/append";
|
|
|
5
6
|
import defu from "defu";
|
|
6
7
|
|
|
7
8
|
//#region src/core/components/source-file.tsx
|
|
9
|
+
var source_file_exports = /* @__PURE__ */ __exportAll({ SourceFile: () => SourceFile });
|
|
8
10
|
/**
|
|
9
11
|
* A base component representing a Powerlines generated source file.
|
|
10
12
|
*
|
|
@@ -58,5 +60,5 @@ function SourceFile(props) {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
//#endregion
|
|
61
|
-
export { SourceFile };
|
|
63
|
+
export { SourceFile, source_file_exports };
|
|
62
64
|
//# 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_core_components_source_file = require('./source-file.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../../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');
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/source-file.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-alloy/src/core/components/source-file.tsx", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_core_components_source_file.source_file_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_core_components_source_file.source_file_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_core_components_source_file.source_file_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { source_file_exports } from "./source-file.mjs";
|
|
2
|
+
import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../../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";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/source-file.test.ts
|
|
6
|
+
describe("plugins/plugin-alloy/src/core/components/source-file.tsx", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(source_file_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof source_file_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(source_file_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=source-file.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-file.test.mjs","names":[],"sources":["../../../src/core/components/source-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./source-file\";\n\ndescribe(\"plugins/plugin-alloy/src/core/components/source-file.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,mBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,mBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
4
5
|
|
|
5
6
|
//#region src/core/components/spacing.tsx
|
|
7
|
+
var spacing_exports = /* @__PURE__ */ require_runtime.__exportAll({ Spacing: () => Spacing });
|
|
6
8
|
/**
|
|
7
9
|
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
8
10
|
*/
|
|
@@ -16,4 +18,10 @@ function Spacing({ scale = 1 }) {
|
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
//#endregion
|
|
19
|
-
exports.Spacing = Spacing;
|
|
21
|
+
exports.Spacing = Spacing;
|
|
22
|
+
Object.defineProperty(exports, 'spacing_exports', {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return spacing_exports;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";UAoBiB,YAAA;EAAA;;;;AASV;AAMP;;;EANE,KAAK;AAAA;;;;iBAMS,OAAA
|
|
1
|
+
{"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";UAoBiB,YAAA;EAAA;;;;AASV;AAMP;;;EANE,KAAK;AAAA;;;;iBAMS,OAAA;EAAU;AAAA,GAAa,YAAY,4BAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";UAoBiB,YAAA;EAAA;;;;AASV;AAMP;;;EANE,KAAK;AAAA;;;;iBAMS,OAAA
|
|
1
|
+
{"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";UAoBiB,YAAA;EAAA;;;;AASV;AAMP;;;EANE,KAAK;AAAA;;;;iBAMS,OAAA;EAAU;AAAA,GAAa,YAAY,4BAAA,QAAA"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { For } from "@alloy-js/core";
|
|
3
4
|
|
|
4
5
|
//#region src/core/components/spacing.tsx
|
|
6
|
+
var spacing_exports = /* @__PURE__ */ __exportAll({ Spacing: () => Spacing });
|
|
5
7
|
/**
|
|
6
8
|
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
7
9
|
*/
|
|
@@ -15,5 +17,5 @@ function Spacing({ scale = 1 }) {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
//#endregion
|
|
18
|
-
export { Spacing };
|
|
20
|
+
export { Spacing, spacing_exports };
|
|
19
21
|
//# 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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_core_components_spacing = require('./spacing.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../../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');
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/spacing.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-alloy/src/core/components/spacing.tsx", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_core_components_spacing.spacing_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_core_components_spacing.spacing_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_core_components_spacing.spacing_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { spacing_exports } from "./spacing.mjs";
|
|
2
|
+
import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../../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";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/spacing.test.ts
|
|
6
|
+
describe("plugins/plugin-alloy/src/core/components/spacing.tsx", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(spacing_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof spacing_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(spacing_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=spacing.test.mjs.map
|