@alloy-js/core 0.24.0-dev.2 → 0.24.0-dev.7
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/CHANGELOG.md +8 -0
- package/dist/dev/src/components/AccessExpression.test.js +30 -38
- package/dist/dev/src/components/AccessExpression.test.js.map +1 -1
- package/dist/dev/src/components/Output.js +3 -2
- package/dist/dev/src/components/Output.js.map +1 -1
- package/dist/dev/src/components/SourceFile.js.map +1 -1
- package/dist/dev/src/content-slot.test.js +16 -18
- package/dist/dev/src/content-slot.test.js.map +1 -1
- package/dist/dev/src/context.js +30 -3
- package/dist/dev/src/context.js.map +1 -1
- package/dist/dev/src/debug/diagnostics.test.js +1 -1
- package/dist/dev/src/debug/diagnostics.test.js.map +1 -1
- package/dist/dev/src/debug/effects.test.js +1 -1
- package/dist/dev/src/debug/effects.test.js.map +1 -1
- package/dist/dev/src/debug/file-streaming.js +103 -0
- package/dist/dev/src/debug/file-streaming.js.map +1 -0
- package/dist/dev/src/debug/files.test.js +4 -5
- package/dist/dev/src/debug/files.test.js.map +1 -1
- package/dist/dev/src/debug/index.js +4 -6
- package/dist/dev/src/debug/index.js.map +1 -1
- package/dist/dev/src/debug/message-format.test.js +50 -52
- package/dist/dev/src/debug/message-format.test.js.map +1 -1
- package/dist/dev/src/debug/render-tree-orphans.test.js +13 -23
- package/dist/dev/src/debug/render-tree-orphans.test.js.map +1 -1
- package/dist/dev/src/debug/render.js +529 -352
- package/dist/dev/src/debug/render.js.map +1 -1
- package/dist/dev/src/debug/render.test.js +171 -92
- package/dist/dev/src/debug/render.test.js.map +1 -1
- package/dist/dev/src/debug/trace-writer.js +127 -15
- package/dist/dev/src/debug/trace-writer.js.map +1 -1
- package/dist/dev/src/debug/trace.js +0 -36
- package/dist/dev/src/debug/trace.js.map +1 -1
- package/dist/dev/src/devtools/devtools-server.js +55 -32
- package/dist/dev/src/devtools/devtools-server.js.map +1 -1
- package/dist/dev/src/devtools-entry.browser.js.map +1 -1
- package/dist/dev/src/devtools-entry.js.map +1 -1
- package/dist/dev/src/diagnostics.js +19 -1
- package/dist/dev/src/diagnostics.js.map +1 -1
- package/dist/dev/src/index.js +5 -2
- package/dist/dev/src/index.js.map +1 -1
- package/dist/dev/src/jsx-runtime.js +14 -8
- package/dist/dev/src/jsx-runtime.js.map +1 -1
- package/dist/dev/src/output-types.js +2 -0
- package/dist/dev/src/output-types.js.map +1 -0
- package/dist/dev/src/reactivity.js +155 -13
- package/dist/dev/src/reactivity.js.map +1 -1
- package/dist/dev/src/render/get-string-width.js +61 -0
- package/dist/dev/src/render/get-string-width.js.map +1 -0
- package/dist/dev/src/render/index.js +2 -0
- package/dist/dev/src/render/index.js.map +1 -0
- package/dist/dev/src/render/node-context.js +7 -0
- package/dist/dev/src/render/node-context.js.map +1 -0
- package/dist/dev/src/render/node.js +386 -0
- package/dist/dev/src/render/node.js.map +1 -0
- package/dist/dev/src/render/printer-support.js +180 -0
- package/dist/dev/src/render/printer-support.js.map +1 -0
- package/dist/dev/src/render/printer.js +797 -0
- package/dist/dev/src/render/printer.js.map +1 -0
- package/dist/dev/src/render-error.js +79 -0
- package/dist/dev/src/render-error.js.map +1 -0
- package/dist/dev/src/render-output.js +209 -0
- package/dist/dev/src/render-output.js.map +1 -0
- package/dist/dev/src/runtime/create-intrinsic.js +53 -0
- package/dist/dev/src/runtime/create-intrinsic.js.map +1 -0
- package/dist/dev/src/runtime/fragment.js +21 -0
- package/dist/dev/src/runtime/fragment.js.map +1 -0
- package/dist/dev/src/runtime/index.js +13 -0
- package/dist/dev/src/runtime/index.js.map +1 -0
- package/dist/dev/src/runtime/insert.js +453 -0
- package/dist/dev/src/runtime/insert.js.map +1 -0
- package/dist/dev/src/runtime/intrinsic.js +1 -11
- package/dist/dev/src/runtime/intrinsic.js.map +1 -1
- package/dist/dev/src/scheduler.js +38 -14
- package/dist/dev/src/scheduler.js.map +1 -1
- package/dist/dev/src/stc.js +2 -0
- package/dist/dev/src/stc.js.map +1 -1
- package/dist/dev/src/sti.js +1 -1
- package/dist/dev/src/sti.js.map +1 -1
- package/dist/dev/src/symbols/symbol-slot.test.js +5 -5
- package/dist/dev/src/symbols/symbol-slot.test.js.map +1 -1
- package/dist/dev/src/test-render.js +78 -0
- package/dist/dev/src/test-render.js.map +1 -0
- package/dist/dev/src/utils.js +47 -35
- package/dist/dev/src/utils.js.map +1 -1
- package/dist/dev/test/babel-e2e.test.js +218 -0
- package/dist/dev/test/babel-e2e.test.js.map +1 -0
- package/dist/dev/test/children.test.js +9 -11
- package/dist/dev/test/children.test.js.map +1 -1
- package/dist/dev/test/components/append-file.test.js +26 -27
- package/dist/dev/test/components/append-file.test.js.map +1 -1
- package/dist/dev/test/components/block.test.js +9 -11
- package/dist/dev/test/components/block.test.js.map +1 -1
- package/dist/dev/test/components/copy-file.test.js +1 -2
- package/dist/dev/test/components/copy-file.test.js.map +1 -1
- package/dist/dev/test/components/declaration.test.js +2 -2
- package/dist/dev/test/components/declaration.test.js.map +1 -1
- package/dist/dev/test/components/list.test.js +41 -43
- package/dist/dev/test/components/list.test.js.map +1 -1
- package/dist/dev/test/components/prose.test.js +4 -5
- package/dist/dev/test/components/prose.test.js.map +1 -1
- package/dist/dev/test/components/reference-or-content.test.js +32 -33
- package/dist/dev/test/components/reference-or-content.test.js.map +1 -1
- package/dist/dev/test/components/source-file.test.js +8 -7
- package/dist/dev/test/components/source-file.test.js.map +1 -1
- package/dist/dev/test/components/template-file.test.js +16 -17
- package/dist/dev/test/components/template-file.test.js.map +1 -1
- package/dist/dev/test/components/update-file.test.js +11 -12
- package/dist/dev/test/components/update-file.test.js.map +1 -1
- package/dist/dev/test/components/wrap.test.js +6 -8
- package/dist/dev/test/components/wrap.test.js.map +1 -1
- package/dist/dev/test/control-flow/for.test.js +58 -42
- package/dist/dev/test/control-flow/for.test.js.map +1 -1
- package/dist/dev/test/control-flow/match.test.js +15 -17
- package/dist/dev/test/control-flow/match.test.js.map +1 -1
- package/dist/dev/test/control-flow/show.test.js +5 -8
- package/dist/dev/test/control-flow/show.test.js.map +1 -1
- package/dist/dev/test/lazy-isempty.test.js +29 -31
- package/dist/dev/test/lazy-isempty.test.js.map +1 -1
- package/dist/dev/test/name-policy.test.js +2 -3
- package/dist/dev/test/name-policy.test.js.map +1 -1
- package/dist/dev/test/node.test.js +80 -0
- package/dist/dev/test/node.test.js.map +1 -0
- package/dist/dev/test/output-e2e.test.js +194 -0
- package/dist/dev/test/output-e2e.test.js.map +1 -0
- package/dist/dev/test/reactivity/circular-reactives.test.js +9 -9
- package/dist/dev/test/reactivity/circular-reactives.test.js.map +1 -1
- package/dist/dev/test/reactivity/cleanup.test.js +5 -6
- package/dist/dev/test/reactivity/cleanup.test.js.map +1 -1
- package/dist/dev/test/reactivity/ref-rendering.test.js +15 -15
- package/dist/dev/test/reactivity/ref-rendering.test.js.map +1 -1
- package/dist/dev/test/reactivity/test.test.js +18 -18
- package/dist/dev/test/reactivity/test.test.js.map +1 -1
- package/dist/dev/test/rendering/basic.test.js +18 -19
- package/dist/dev/test/rendering/basic.test.js.map +1 -1
- package/dist/dev/test/rendering/code.test.js +2 -3
- package/dist/dev/test/rendering/code.test.js.map +1 -1
- package/dist/dev/test/rendering/formatting.test.js +115 -121
- package/dist/dev/test/rendering/formatting.test.js.map +1 -1
- package/dist/dev/test/rendering/indent.test.js +23 -24
- package/dist/dev/test/rendering/indent.test.js.map +1 -1
- package/dist/dev/test/rendering/memoization.test.js +9 -5
- package/dist/dev/test/rendering/memoization.test.js.map +1 -1
- package/dist/dev/test/rendering/print-render-stack.test.js +20 -21
- package/dist/dev/test/rendering/print-render-stack.test.js.map +1 -1
- package/dist/dev/test/rendering/refkeys.test.js +1 -2
- package/dist/dev/test/rendering/refkeys.test.js.map +1 -1
- package/dist/dev/test/rendering/render-output-diagnostics.test.js +102 -0
- package/dist/dev/test/rendering/render-output-diagnostics.test.js.map +1 -0
- package/dist/dev/test/runtime.test.js +385 -0
- package/dist/dev/test/runtime.test.js.map +1 -0
- package/dist/dev/test/stc.test.js +0 -1
- package/dist/dev/test/stc.test.js.map +1 -1
- package/dist/dev/test/tree-test-utils.js +16 -0
- package/dist/dev/test/tree-test-utils.js.map +1 -0
- package/dist/dev/test/utils.test.js +34 -33
- package/dist/dev/test/utils.test.js.map +1 -1
- package/dist/dev/test/vitest.setup.js +2 -0
- package/dist/dev/test/vitest.setup.js.map +1 -0
- package/dist/dev/testing/devtools-utils.js +1 -1
- package/dist/dev/testing/devtools-utils.js.map +1 -1
- package/dist/dev/testing/extend-expect.js +30 -34
- package/dist/dev/testing/extend-expect.js.map +1 -1
- package/dist/dev/testing/render.js +7 -17
- package/dist/dev/testing/render.js.map +1 -1
- package/dist/devtools/index.html +17 -17
- package/dist/src/components/AccessExpression.test.d.ts +1 -1
- package/dist/src/components/AccessExpression.test.d.ts.map +1 -1
- package/dist/src/components/AccessExpression.test.js +5 -13
- package/dist/src/components/AccessExpression.test.js.map +1 -1
- package/dist/src/components/Output.d.ts +1 -1
- package/dist/src/components/Output.d.ts.map +1 -1
- package/dist/src/components/Output.js +2 -1
- package/dist/src/components/Output.js.map +1 -1
- package/dist/src/components/ReferenceOrContent.d.ts +1 -1
- package/dist/src/components/ReferenceOrContent.d.ts.map +1 -1
- package/dist/src/components/SourceFile.d.ts +1 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/content-slot.test.d.ts +1 -1
- package/dist/src/content-slot.test.d.ts.map +1 -1
- package/dist/src/content-slot.test.js +8 -10
- package/dist/src/content-slot.test.js.map +1 -1
- package/dist/src/context/format-options.d.ts +1 -1
- package/dist/src/context/format-options.d.ts.map +1 -1
- package/dist/src/context.d.ts +9 -1
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +30 -3
- package/dist/src/context.js.map +1 -1
- package/dist/src/debug/diagnostics.test.js +1 -1
- package/dist/src/debug/diagnostics.test.js.map +1 -1
- package/dist/src/debug/effects.test.js +1 -1
- package/dist/src/debug/effects.test.js.map +1 -1
- package/dist/src/debug/file-streaming.d.ts +22 -0
- package/dist/src/debug/file-streaming.d.ts.map +1 -0
- package/dist/src/debug/file-streaming.js +103 -0
- package/dist/src/debug/file-streaming.js.map +1 -0
- package/dist/src/debug/files.test.js +4 -5
- package/dist/src/debug/files.test.js.map +1 -1
- package/dist/src/debug/index.d.ts +5 -7
- package/dist/src/debug/index.d.ts.map +1 -1
- package/dist/src/debug/index.js +4 -6
- package/dist/src/debug/index.js.map +1 -1
- package/dist/src/debug/message-format.test.js +16 -18
- package/dist/src/debug/message-format.test.js.map +1 -1
- package/dist/src/debug/render-tree-orphans.test.js +8 -18
- package/dist/src/debug/render-tree-orphans.test.js.map +1 -1
- package/dist/src/debug/render.d.ts +71 -21
- package/dist/src/debug/render.d.ts.map +1 -1
- package/dist/src/debug/render.js +529 -352
- package/dist/src/debug/render.js.map +1 -1
- package/dist/src/debug/render.test.js +137 -74
- package/dist/src/debug/render.test.js.map +1 -1
- package/dist/src/debug/trace-writer.d.ts +6 -1
- package/dist/src/debug/trace-writer.d.ts.map +1 -1
- package/dist/src/debug/trace-writer.js +127 -15
- package/dist/src/debug/trace-writer.js.map +1 -1
- package/dist/src/debug/trace.d.ts +0 -36
- package/dist/src/debug/trace.d.ts.map +1 -1
- package/dist/src/debug/trace.js +0 -36
- package/dist/src/debug/trace.js.map +1 -1
- package/dist/src/devtools/devtools-protocol.d.ts +34 -1
- package/dist/src/devtools/devtools-protocol.d.ts.map +1 -1
- package/dist/src/devtools/devtools-server.d.ts.map +1 -1
- package/dist/src/devtools/devtools-server.js +55 -32
- package/dist/src/devtools/devtools-server.js.map +1 -1
- package/dist/src/devtools-entry.browser.d.ts +1 -1
- package/dist/src/devtools-entry.browser.d.ts.map +1 -1
- package/dist/src/devtools-entry.browser.js.map +1 -1
- package/dist/src/devtools-entry.d.ts +1 -1
- package/dist/src/devtools-entry.d.ts.map +1 -1
- package/dist/src/devtools-entry.js.map +1 -1
- package/dist/src/diagnostics.d.ts +4 -0
- package/dist/src/diagnostics.d.ts.map +1 -1
- package/dist/src/diagnostics.js +19 -1
- package/dist/src/diagnostics.js.map +1 -1
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/jsx-runtime.d.ts +13 -4
- package/dist/src/jsx-runtime.d.ts.map +1 -1
- package/dist/src/jsx-runtime.js +14 -8
- package/dist/src/jsx-runtime.js.map +1 -1
- package/dist/src/output-types.d.ts +40 -0
- package/dist/src/output-types.d.ts.map +1 -0
- package/dist/src/output-types.js +2 -0
- package/dist/src/output-types.js.map +1 -0
- package/dist/src/reactivity.d.ts +49 -18
- package/dist/src/reactivity.d.ts.map +1 -1
- package/dist/src/reactivity.js +155 -13
- package/dist/src/reactivity.js.map +1 -1
- package/dist/src/render/get-string-width.d.ts +19 -0
- package/dist/src/render/get-string-width.d.ts.map +1 -0
- package/dist/src/render/get-string-width.js +61 -0
- package/dist/src/render/get-string-width.js.map +1 -0
- package/dist/src/render/index.d.ts +2 -0
- package/dist/src/render/index.d.ts.map +1 -0
- package/dist/src/render/index.js +2 -0
- package/dist/src/render/index.js.map +1 -0
- package/dist/src/render/node-context.d.ts +5 -0
- package/dist/src/render/node-context.d.ts.map +1 -0
- package/dist/src/render/node-context.js +7 -0
- package/dist/src/render/node-context.js.map +1 -0
- package/dist/src/render/node.d.ts +146 -0
- package/dist/src/render/node.d.ts.map +1 -0
- package/dist/src/render/node.js +386 -0
- package/dist/src/render/node.js.map +1 -0
- package/dist/src/render/printer-support.d.ts +50 -0
- package/dist/src/render/printer-support.d.ts.map +1 -0
- package/dist/src/render/printer-support.js +180 -0
- package/dist/src/render/printer-support.js.map +1 -0
- package/dist/src/render/printer.d.ts +35 -0
- package/dist/src/render/printer.d.ts.map +1 -0
- package/dist/src/render/printer.js +797 -0
- package/dist/src/render/printer.js.map +1 -0
- package/dist/src/render-error.d.ts +4 -0
- package/dist/src/render-error.d.ts.map +1 -0
- package/dist/src/render-error.js +79 -0
- package/dist/src/render-error.js.map +1 -0
- package/dist/src/render-output.d.ts +42 -0
- package/dist/src/render-output.d.ts.map +1 -0
- package/dist/src/render-output.js +209 -0
- package/dist/src/render-output.js.map +1 -0
- package/dist/src/runtime/component.d.ts +2 -2
- package/dist/src/runtime/component.d.ts.map +1 -1
- package/dist/src/runtime/create-intrinsic.d.ts +28 -0
- package/dist/src/runtime/create-intrinsic.d.ts.map +1 -0
- package/dist/src/runtime/create-intrinsic.js +53 -0
- package/dist/src/runtime/create-intrinsic.js.map +1 -0
- package/dist/src/runtime/fragment.d.ts +16 -0
- package/dist/src/runtime/fragment.d.ts.map +1 -0
- package/dist/src/runtime/fragment.js +21 -0
- package/dist/src/runtime/fragment.js.map +1 -0
- package/dist/src/runtime/index.d.ts +12 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +13 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/insert.d.ts +29 -0
- package/dist/src/runtime/insert.d.ts.map +1 -0
- package/dist/src/runtime/insert.js +453 -0
- package/dist/src/runtime/insert.js.map +1 -0
- package/dist/src/runtime/intrinsic.d.ts +12 -29
- package/dist/src/runtime/intrinsic.d.ts.map +1 -1
- package/dist/src/runtime/intrinsic.js +1 -11
- package/dist/src/runtime/intrinsic.js.map +1 -1
- package/dist/src/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler.js +38 -14
- package/dist/src/scheduler.js.map +1 -1
- package/dist/src/stc.d.ts.map +1 -1
- package/dist/src/stc.js +2 -0
- package/dist/src/stc.js.map +1 -1
- package/dist/src/sti.d.ts +7 -6
- package/dist/src/sti.d.ts.map +1 -1
- package/dist/src/sti.js +1 -1
- package/dist/src/sti.js.map +1 -1
- package/dist/src/symbols/symbol-slot.test.js +5 -5
- package/dist/src/symbols/symbol-slot.test.js.map +1 -1
- package/dist/src/test-render.d.ts +31 -0
- package/dist/src/test-render.d.ts.map +1 -0
- package/dist/src/test-render.js +78 -0
- package/dist/src/test-render.js.map +1 -0
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +40 -28
- package/dist/src/utils.js.map +1 -1
- package/dist/src/write-output.d.ts +1 -1
- package/dist/src/write-output.d.ts.map +1 -1
- package/dist/test/babel-e2e.test.d.ts +13 -0
- package/dist/test/babel-e2e.test.d.ts.map +1 -0
- package/dist/test/babel-e2e.test.js +218 -0
- package/dist/test/babel-e2e.test.js.map +1 -0
- package/dist/test/children.test.js +5 -7
- package/dist/test/children.test.js.map +1 -1
- package/dist/test/components/append-file.test.d.ts +1 -1
- package/dist/test/components/append-file.test.d.ts.map +1 -1
- package/dist/test/components/append-file.test.js +0 -1
- package/dist/test/components/append-file.test.js.map +1 -1
- package/dist/test/components/block.test.d.ts +1 -1
- package/dist/test/components/block.test.d.ts.map +1 -1
- package/dist/test/components/block.test.js +4 -6
- package/dist/test/components/block.test.js.map +1 -1
- package/dist/test/components/copy-file.test.d.ts +1 -1
- package/dist/test/components/copy-file.test.d.ts.map +1 -1
- package/dist/test/components/copy-file.test.js +1 -2
- package/dist/test/components/copy-file.test.js.map +1 -1
- package/dist/test/components/declaration.test.js +2 -2
- package/dist/test/components/declaration.test.js.map +1 -1
- package/dist/test/components/list.test.d.ts +1 -1
- package/dist/test/components/list.test.d.ts.map +1 -1
- package/dist/test/components/list.test.js +20 -22
- package/dist/test/components/list.test.js.map +1 -1
- package/dist/test/components/prose.test.d.ts +1 -1
- package/dist/test/components/prose.test.d.ts.map +1 -1
- package/dist/test/components/prose.test.js +0 -1
- package/dist/test/components/prose.test.js.map +1 -1
- package/dist/test/components/reference-or-content.test.js +8 -9
- package/dist/test/components/reference-or-content.test.js.map +1 -1
- package/dist/test/components/source-file.test.d.ts +1 -1
- package/dist/test/components/source-file.test.d.ts.map +1 -1
- package/dist/test/components/source-file.test.js +5 -4
- package/dist/test/components/source-file.test.js.map +1 -1
- package/dist/test/components/template-file.test.d.ts +1 -1
- package/dist/test/components/template-file.test.d.ts.map +1 -1
- package/dist/test/components/template-file.test.js +0 -1
- package/dist/test/components/template-file.test.js.map +1 -1
- package/dist/test/components/update-file.test.d.ts +1 -1
- package/dist/test/components/update-file.test.d.ts.map +1 -1
- package/dist/test/components/update-file.test.js +1 -2
- package/dist/test/components/update-file.test.js.map +1 -1
- package/dist/test/components/wrap.test.d.ts +1 -1
- package/dist/test/components/wrap.test.d.ts.map +1 -1
- package/dist/test/components/wrap.test.js +3 -5
- package/dist/test/components/wrap.test.js.map +1 -1
- package/dist/test/control-flow/for.test.d.ts +1 -1
- package/dist/test/control-flow/for.test.d.ts.map +1 -1
- package/dist/test/control-flow/for.test.js +40 -24
- package/dist/test/control-flow/for.test.js.map +1 -1
- package/dist/test/control-flow/match.test.d.ts +1 -1
- package/dist/test/control-flow/match.test.d.ts.map +1 -1
- package/dist/test/control-flow/match.test.js +4 -6
- package/dist/test/control-flow/match.test.js.map +1 -1
- package/dist/test/control-flow/show.test.d.ts +1 -1
- package/dist/test/control-flow/show.test.d.ts.map +1 -1
- package/dist/test/control-flow/show.test.js +3 -6
- package/dist/test/control-flow/show.test.js.map +1 -1
- package/dist/test/lazy-isempty.test.d.ts +1 -1
- package/dist/test/lazy-isempty.test.d.ts.map +1 -1
- package/dist/test/lazy-isempty.test.js +16 -18
- package/dist/test/lazy-isempty.test.js.map +1 -1
- package/dist/test/name-policy.test.d.ts +1 -1
- package/dist/test/name-policy.test.d.ts.map +1 -1
- package/dist/test/name-policy.test.js +0 -1
- package/dist/test/name-policy.test.js.map +1 -1
- package/dist/test/node.test.d.ts +2 -0
- package/dist/test/node.test.d.ts.map +1 -0
- package/dist/test/node.test.js +80 -0
- package/dist/test/node.test.js.map +1 -0
- package/dist/test/output-e2e.test.d.ts +13 -0
- package/dist/test/output-e2e.test.d.ts.map +1 -0
- package/dist/test/output-e2e.test.js +194 -0
- package/dist/test/output-e2e.test.js.map +1 -0
- package/dist/test/reactivity/circular-reactives.test.js +6 -6
- package/dist/test/reactivity/circular-reactives.test.js.map +1 -1
- package/dist/test/reactivity/cleanup.test.js +2 -3
- package/dist/test/reactivity/cleanup.test.js.map +1 -1
- package/dist/test/reactivity/ref-rendering.test.js +15 -15
- package/dist/test/reactivity/ref-rendering.test.js.map +1 -1
- package/dist/test/reactivity/test.test.js +15 -15
- package/dist/test/reactivity/test.test.js.map +1 -1
- package/dist/test/rendering/basic.test.d.ts +1 -1
- package/dist/test/rendering/basic.test.d.ts.map +1 -1
- package/dist/test/rendering/basic.test.js +0 -1
- package/dist/test/rendering/basic.test.js.map +1 -1
- package/dist/test/rendering/code.test.d.ts +1 -1
- package/dist/test/rendering/code.test.d.ts.map +1 -1
- package/dist/test/rendering/code.test.js +0 -1
- package/dist/test/rendering/code.test.js.map +1 -1
- package/dist/test/rendering/formatting.test.d.ts +1 -1
- package/dist/test/rendering/formatting.test.d.ts.map +1 -1
- package/dist/test/rendering/formatting.test.js +17 -23
- package/dist/test/rendering/formatting.test.js.map +1 -1
- package/dist/test/rendering/indent.test.d.ts +1 -1
- package/dist/test/rendering/indent.test.d.ts.map +1 -1
- package/dist/test/rendering/indent.test.js +0 -1
- package/dist/test/rendering/indent.test.js.map +1 -1
- package/dist/test/rendering/memoization.test.js +7 -3
- package/dist/test/rendering/memoization.test.js.map +1 -1
- package/dist/test/rendering/print-render-stack.test.d.ts +1 -1
- package/dist/test/rendering/print-render-stack.test.d.ts.map +1 -1
- package/dist/test/rendering/print-render-stack.test.js +0 -1
- package/dist/test/rendering/print-render-stack.test.js.map +1 -1
- package/dist/test/rendering/refkeys.test.d.ts +1 -1
- package/dist/test/rendering/refkeys.test.d.ts.map +1 -1
- package/dist/test/rendering/refkeys.test.js +0 -1
- package/dist/test/rendering/refkeys.test.js.map +1 -1
- package/dist/test/rendering/render-output-diagnostics.test.d.ts +2 -0
- package/dist/test/rendering/render-output-diagnostics.test.d.ts.map +1 -0
- package/dist/test/rendering/render-output-diagnostics.test.js +82 -0
- package/dist/test/rendering/render-output-diagnostics.test.js.map +1 -0
- package/dist/test/runtime.test.d.ts +11 -0
- package/dist/test/runtime.test.d.ts.map +1 -0
- package/dist/test/runtime.test.js +385 -0
- package/dist/test/runtime.test.js.map +1 -0
- package/dist/test/stc.test.d.ts +1 -1
- package/dist/test/stc.test.d.ts.map +1 -1
- package/dist/test/stc.test.js +0 -1
- package/dist/test/stc.test.js.map +1 -1
- package/dist/test/tree-test-utils.d.ts +3 -0
- package/dist/test/tree-test-utils.d.ts.map +1 -0
- package/dist/test/tree-test-utils.js +16 -0
- package/dist/test/tree-test-utils.js.map +1 -0
- package/dist/test/utils.test.d.ts +1 -1
- package/dist/test/utils.test.d.ts.map +1 -1
- package/dist/test/utils.test.js +12 -11
- package/dist/test/utils.test.js.map +1 -1
- package/dist/test/vitest.setup.d.ts +2 -0
- package/dist/test/vitest.setup.d.ts.map +1 -0
- package/dist/test/vitest.setup.js +2 -0
- package/dist/test/vitest.setup.js.map +1 -0
- package/dist/testing/devtools-utils.d.ts.map +1 -1
- package/dist/testing/devtools-utils.js +1 -1
- package/dist/testing/devtools-utils.js.map +1 -1
- package/dist/testing/extend-expect.d.ts.map +1 -1
- package/dist/testing/extend-expect.js +30 -34
- package/dist/testing/extend-expect.js.map +1 -1
- package/dist/testing/render.d.ts +7 -9
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +7 -17
- package/dist/testing/render.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/Output.md +0 -3
- package/docs/api/components/SourceFile.md +0 -3
- package/docs/api/functions/createComment.md +18 -0
- package/docs/api/functions/createElement.md +19 -0
- package/docs/api/functions/createFragment.md +17 -0
- package/docs/api/functions/createTextNode.md +18 -0
- package/docs/api/functions/emitDiagnosticForTree.md +19 -0
- package/docs/api/functions/ensureIsEmpty.md +1 -1
- package/docs/api/functions/getContextForNode.md +18 -0
- package/docs/api/functions/getContextForRenderNode.md +4 -4
- package/docs/api/functions/getDiagnosticsForTree.md +7 -5
- package/docs/api/functions/getRegisteredDiagnosticsForTree.md +18 -0
- package/docs/api/functions/index.md +17 -12
- package/docs/api/functions/isCustomContext.md +4 -4
- package/docs/api/functions/notifyContentState.md +6 -0
- package/docs/api/functions/printTree.md +6 -16
- package/docs/api/functions/registerDiagnosticsForTree.md +19 -0
- package/docs/api/functions/render.md +1 -2
- package/docs/api/functions/renderAsync.md +1 -2
- package/docs/api/functions/renderTree.md +8 -5
- package/docs/api/functions/reportDiagnosticsForTree.md +18 -0
- package/docs/api/functions/runInContext.md +28 -0
- package/docs/api/functions/sourceFilesForTree.md +6 -16
- package/docs/api/index.md +3 -3
- package/docs/api/testing/functions/index.md +1 -1
- package/docs/api/testing/functions/renderToString.md +1 -1
- package/docs/api/types/AlloyNode.md +22 -0
- package/docs/api/types/Child.md +1 -1
- package/docs/api/types/CommentNode.md +15 -0
- package/docs/api/types/Context.md +13 -15
- package/docs/api/types/ElementNode.md +18 -0
- package/docs/api/types/FragmentNode.md +12 -0
- package/docs/api/types/Insertable.md +7 -0
- package/docs/api/types/NodeType.md +5 -0
- package/docs/api/types/OutputDirectory.md +0 -50
- package/docs/api/types/PrintTreeOptions.md +0 -1
- package/docs/api/types/RenderTreeOptions.md +7 -0
- package/docs/api/types/StiComponentCreator.md +4 -4
- package/docs/api/types/StiSignature.md +1 -1
- package/docs/api/types/TextNode.md +16 -0
- package/docs/api/types/index.md +10 -28
- package/docs/api/variables/COMMENT_NODE.md +5 -0
- package/docs/api/variables/ELEMENT_NODE.md +11 -0
- package/docs/api/variables/FRAGMENT_NODE.md +5 -0
- package/docs/api/variables/TEXT_NODE.md +5 -0
- package/docs/api/variables/index.md +4 -2
- package/docs/formatting.md +1 -1
- package/docs/rendering.md +4 -4
- package/package.json +6 -6
- package/src/components/AccessExpression.test.tsx +5 -13
- package/src/components/Output.tsx +2 -1
- package/src/components/SourceFile.tsx +1 -1
- package/src/content-slot.test.tsx +8 -10
- package/src/context/format-options.ts +1 -1
- package/src/context.ts +37 -4
- package/src/debug/diagnostics.test.tsx +1 -1
- package/src/debug/effects.test.tsx +1 -1
- package/src/debug/file-streaming.ts +115 -0
- package/src/debug/files.test.tsx +15 -11
- package/src/debug/index.ts +11 -11
- package/src/debug/message-format.test.tsx +32 -19
- package/src/debug/render-tree-orphans.test.tsx +10 -19
- package/src/debug/render.test.tsx +206 -78
- package/src/debug/render.ts +642 -495
- package/src/debug/trace-writer.ts +168 -14
- package/src/debug/trace.ts +0 -20
- package/src/devtools/devtools-protocol.ts +43 -0
- package/src/devtools/devtools-server.ts +57 -32
- package/src/devtools-entry.browser.ts +5 -0
- package/src/devtools-entry.ts +5 -0
- package/src/diagnostics.ts +31 -0
- package/src/index.ts +66 -2
- package/src/jsx-runtime.ts +16 -14
- package/src/output-types.ts +47 -0
- package/src/reactivity.ts +186 -40
- package/src/render/get-string-width.ts +201 -0
- package/src/render/index.ts +1 -0
- package/src/render/node-context.ts +14 -0
- package/src/render/node.ts +442 -0
- package/src/render/printer-support.ts +209 -0
- package/src/render/printer.ts +817 -0
- package/src/render-error.ts +98 -0
- package/src/render-output.ts +243 -0
- package/src/runtime/component.ts +2 -2
- package/src/runtime/create-intrinsic.ts +56 -0
- package/src/runtime/fragment.ts +22 -0
- package/src/runtime/index.ts +12 -0
- package/src/runtime/insert.ts +569 -0
- package/src/runtime/intrinsic.ts +14 -70
- package/src/scheduler.ts +40 -25
- package/src/stc.ts +3 -0
- package/src/sti.ts +17 -20
- package/src/symbols/symbol-slot.test.tsx +5 -5
- package/src/test-render.ts +103 -0
- package/src/utils.tsx +55 -37
- package/src/write-output.ts +1 -1
- package/temp/api-testing.json +390 -14
- package/temp/api.json +4320 -4144
- package/test/babel-e2e.test.ts +224 -0
- package/test/children.test.tsx +4 -7
- package/test/components/append-file.test.tsx +0 -1
- package/test/components/block.test.tsx +4 -6
- package/test/components/copy-file.test.tsx +2 -2
- package/test/components/declaration.test.tsx +2 -2
- package/test/components/list.test.tsx +20 -29
- package/test/components/prose.test.tsx +0 -1
- package/test/components/reference-or-content.test.tsx +8 -9
- package/test/components/source-file.test.tsx +4 -4
- package/test/components/template-file.test.tsx +0 -1
- package/test/components/update-file.test.tsx +1 -2
- package/test/components/wrap.test.tsx +3 -5
- package/test/control-flow/for.test.tsx +39 -31
- package/test/control-flow/match.test.tsx +4 -6
- package/test/control-flow/show.test.tsx +3 -6
- package/test/lazy-isempty.test.tsx +17 -19
- package/test/name-policy.test.tsx +0 -1
- package/test/node.test.ts +90 -0
- package/test/output-e2e.test.ts +198 -0
- package/test/reactivity/circular-reactives.test.tsx +6 -6
- package/test/reactivity/cleanup.test.tsx +2 -3
- package/test/reactivity/ref-rendering.test.tsx +15 -15
- package/test/reactivity/test.test.tsx +14 -14
- package/test/rendering/basic.test.tsx +0 -1
- package/test/rendering/code.test.tsx +0 -1
- package/test/rendering/formatting.test.tsx +21 -29
- package/test/rendering/indent.test.tsx +0 -1
- package/test/rendering/memoization.test.tsx +7 -3
- package/test/rendering/print-render-stack.test.tsx +0 -1
- package/test/rendering/refkeys.test.tsx +0 -1
- package/test/rendering/render-output-diagnostics.test.tsx +120 -0
- package/test/runtime.test.ts +448 -0
- package/test/stc.test.tsx +0 -1
- package/test/tree-test-utils.ts +23 -0
- package/test/utils.test.tsx +10 -9
- package/test/vitest.setup.ts +1 -0
- package/testing/devtools-utils.ts +2 -0
- package/testing/extend-expect.ts +32 -47
- package/testing/render.ts +17 -21
- package/vitest.config.ts +3 -0
- package/dist/dev/src/print-hook.js +0 -10
- package/dist/dev/src/print-hook.js.map +0 -1
- package/dist/dev/src/render.js +0 -872
- package/dist/dev/src/render.js.map +0 -1
- package/dist/src/print-hook.d.ts +0 -14
- package/dist/src/print-hook.d.ts.map +0 -1
- package/dist/src/print-hook.js +0 -10
- package/dist/src/print-hook.js.map +0 -1
- package/dist/src/render.d.ts +0 -155
- package/dist/src/render.d.ts.map +0 -1
- package/dist/src/render.js +0 -872
- package/dist/src/render.js.map +0 -1
- package/docs/api/functions/createIntrinsic.md +0 -19
- package/docs/api/functions/createRenderTreeHook.md +0 -19
- package/docs/api/functions/getElementCache.md +0 -17
- package/docs/api/functions/isIntrinsicElement.md +0 -18
- package/docs/api/functions/isPrintHook.md +0 -18
- package/docs/api/types/AlignIntrinsicElement.md +0 -5
- package/docs/api/types/BrIntrinsicElement.md +0 -5
- package/docs/api/types/BreakParentIntrinsicElement.md +0 -5
- package/docs/api/types/DedentIntrinsicElement.md +0 -5
- package/docs/api/types/DedentToRootIntrinsicElement.md +0 -5
- package/docs/api/types/ElementCache.md +0 -5
- package/docs/api/types/ElementCacheKey.md +0 -5
- package/docs/api/types/FillIntrinsicElement.md +0 -5
- package/docs/api/types/GroupIntrinsicElement.md +0 -5
- package/docs/api/types/HardlineIntrinsicElement.md +0 -5
- package/docs/api/types/HbrIntrinsicElement.md +0 -5
- package/docs/api/types/IfBreakIntrinsicElement.md +0 -5
- package/docs/api/types/IndentIfBreakIntrinsicElement.md +0 -5
- package/docs/api/types/IndentIntrinsicElement.md +0 -5
- package/docs/api/types/IntrinsicElement.md +0 -5
- package/docs/api/types/IntrinsicElementBase.md +0 -9
- package/docs/api/types/LbrIntrinsicElement.md +0 -5
- package/docs/api/types/LineIntrinsicElement.md +0 -5
- package/docs/api/types/LineSuffixBoundaryIntrinsicElement.md +0 -5
- package/docs/api/types/LineSuffixIntrinsicElement.md +0 -5
- package/docs/api/types/LiterallineIntrinsicElement.md +0 -5
- package/docs/api/types/MarkAsRootIntrinsicElement.md +0 -5
- package/docs/api/types/PrintHook.md +0 -10
- package/docs/api/types/RenderedTextTree.md +0 -5
- package/docs/api/types/SbrIntrinsicElement.md +0 -5
- package/docs/api/types/SoftlineIntrinsicElement.md +0 -5
- package/docs/api/variables/intrinsicElementKey.md +0 -5
- package/docs/api/variables/printHookTag.md +0 -7
- package/src/print-hook.ts +0 -22
- package/src/render.ts +0 -1154
|
@@ -14,7 +14,6 @@ This component is the root component for all your emitted output. Place your var
|
|
|
14
14
|
insertFinalNewLine
|
|
15
15
|
nameConflictResolver={NameConflictResolver}
|
|
16
16
|
namePolicy={NamePolicy<string>}
|
|
17
|
-
noFlush
|
|
18
17
|
printWidth={number}
|
|
19
18
|
tabWidth={number}
|
|
20
19
|
useTabs
|
|
@@ -35,7 +34,6 @@ This component is the root component for all your emitted output. Place your var
|
|
|
35
34
|
insertFinalNewLine: boolean,
|
|
36
35
|
nameConflictResolver: NameConflictResolver,
|
|
37
36
|
namePolicy: NamePolicy<string>,
|
|
38
|
-
noFlush: boolean,
|
|
39
37
|
printWidth: number,
|
|
40
38
|
tabWidth: number,
|
|
41
39
|
useTabs: boolean,
|
|
@@ -52,7 +50,6 @@ This component is the root component for all your emitted output. Place your var
|
|
|
52
50
|
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
53
51
|
| nameConflictResolver | optional [NameConflictResolver](../../types/nameconflictresolver/) | Policy for handling multiple symbols declared with the same name. |
|
|
54
52
|
| namePolicy | optional [NamePolicy](../../types/namepolicy/)\<string> | Name policy to use for this output. |
|
|
55
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
56
53
|
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
57
54
|
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
|
|
58
55
|
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
filetype="string"
|
|
11
11
|
header={Children}
|
|
12
12
|
insertFinalNewLine
|
|
13
|
-
noFlush
|
|
14
13
|
path="string"
|
|
15
14
|
printWidth={number}
|
|
16
15
|
reference={ComponentDefinition<{
|
|
@@ -33,7 +32,6 @@
|
|
|
33
32
|
filetype: string,
|
|
34
33
|
header: Children,
|
|
35
34
|
insertFinalNewLine: boolean,
|
|
36
|
-
noFlush: boolean,
|
|
37
35
|
path: string,
|
|
38
36
|
printWidth: number,
|
|
39
37
|
reference: ComponentDefinition<{
|
|
@@ -52,7 +50,6 @@
|
|
|
52
50
|
| filetype | string | The type of contents in this file. This is a metadata hint only. It does not trigger formatting or content processing. The value is forwarded to debug tooling and the [`ContentOutputFile`](../types/ContentOutputFile.md) output metadata. |
|
|
53
51
|
| header | optional [Children](../../types/children/) | Content rendered before the file body, separated from it by a hard line break. The separator is emitted whenever `header` is not `undefined` — including when it is an empty string or a component that renders nothing. To suppress both the header and the separator, omit this prop entirely. |
|
|
54
52
|
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
55
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
56
53
|
| path | string | The path of this file relative to its parent directory |
|
|
57
54
|
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
58
55
|
| reference | optional [ComponentDefinition](../../types/componentdefinition/)<{ refkey: [Refkey](../../types/refkey/); }> | The component to use to render refkeys references within the file’s contents. |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# createComment
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { createComment } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function createComment(data?: string): CommentNode;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | --------------- | - |
|
|
14
|
+
| data | optional string | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
[CommentNode](../../types/commentnode/)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# createElement
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { createElement } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function createElement(localName: string, data?: unknown): ElementNode;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| --------- | ---------------- | - |
|
|
14
|
+
| localName | string | |
|
|
15
|
+
| data | optional unknown | |
|
|
16
|
+
|
|
17
|
+
## Returns
|
|
18
|
+
|
|
19
|
+
[ElementNode](../../types/elementnode/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# createTextNode
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { createTextNode } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function createTextNode(data: string): TextNode;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ------ | - |
|
|
14
|
+
| data | string | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
[TextNode](../../types/textnode/)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# emitDiagnosticForTree
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { emitDiagnosticForTree } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function emitDiagnosticForTree(tree: object, input: DiagnosticInput): DiagnosticHandle;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | --------------- | - |
|
|
14
|
+
| tree | object | |
|
|
15
|
+
| input | DiagnosticInput | |
|
|
16
|
+
|
|
17
|
+
## Returns
|
|
18
|
+
|
|
19
|
+
[DiagnosticHandle](../../types/diagnostichandle/)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ensureIsEmpty
|
|
2
2
|
|
|
3
|
-
Ensure that a context has an isEmpty ref, creating one if needed. Only call this when you need to reactively observe isEmpty (e.g., ContentSlot
|
|
3
|
+
Ensure that a context has an isEmpty ref, creating one if needed. Only call this when you need to reactively observe isEmpty (e.g., [`ContentSlot`](../types/ContentSlot.md)). `mapJoin` does not call this — it uses an internal empty-change callback directly so most slots never allocate a Ref at all.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { ensureIsEmpty } from "@alloy-js/core";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getContextForNode
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getContextForNode } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getContextForNode(node: AlloyNode): Context | undefined;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | --------- | - |
|
|
14
|
+
| node | AlloyNode | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
[Context](../../types/context/) | undefined
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
import { getContextForRenderNode } from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function getContextForRenderNode(node:
|
|
7
|
+
function getContextForRenderNode(node: AlloyNode): Context | undefined;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ---- |
|
|
14
|
-
| node |
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | --------- | - |
|
|
14
|
+
| node | AlloyNode | |
|
|
15
15
|
|
|
16
16
|
## Returns
|
|
17
17
|
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
# getDiagnosticsForTree
|
|
2
2
|
|
|
3
|
+
Diagnostics collected during the render of `rootNode`.
|
|
4
|
+
|
|
3
5
|
```ts
|
|
4
6
|
import { getDiagnosticsForTree } from "@alloy-js/core";
|
|
5
7
|
|
|
6
8
|
|
|
7
|
-
function getDiagnosticsForTree(
|
|
9
|
+
function getDiagnosticsForTree(rootNode: AlloyNode): Diagnostic[];
|
|
8
10
|
```
|
|
9
11
|
|
|
10
12
|
## Parameters
|
|
11
13
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
14
|
+
| | | |
|
|
15
|
+
| -------- | --------- | - |
|
|
16
|
+
| rootNode | AlloyNode | |
|
|
15
17
|
|
|
16
18
|
## Returns
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
[Diagnostic](../../types/diagnostic/)\[]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getRegisteredDiagnosticsForTree
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getRegisteredDiagnosticsForTree } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getRegisteredDiagnosticsForTree(tree: object): Diagnostic[];
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ------ | - |
|
|
14
|
+
| tree | object | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
[Diagnostic](../../types/diagnostic/)\[]
|
|
@@ -6,19 +6,20 @@
|
|
|
6
6
|
- [childrenArray](childrenArray.md) — import { childrenArray } from "@alloy-js/core";
|
|
7
7
|
- [code](code.md) — Turn the provided string template into Children by replacing literal line breaks with hardlines and automatically indenting indented content.
|
|
8
8
|
- [computed](computed.md) — import { computed } from "@alloy-js/core";
|
|
9
|
+
- [createComment](createComment.md) — import { createComment } from "@alloy-js/core";
|
|
9
10
|
- [createComponent](createComponent.md) — import { createComponent } from "@alloy-js/core";
|
|
10
11
|
- [createContentSlot](createContentSlot.md) — Create a component which tracks whether any content is placed inside of it.
|
|
11
12
|
- [createContext](createContext.md) — import { createContext } from "@alloy-js/core";
|
|
12
13
|
- [createCustomContext](createCustomContext.md) — import { createCustomContext } from "@alloy-js/core";
|
|
13
14
|
- [createDeclarationTap](createDeclarationTap.md) — Create a tap for [Declaration context](../../contexts/declaration-context/).
|
|
15
|
+
- [createElement](createElement.md) — import { createElement } from "@alloy-js/core";
|
|
14
16
|
- [createFileResource](createFileResource.md) — Create a resource that reads a file from the file system.
|
|
15
17
|
- [createFormatOptionsContextFor](createFormatOptionsContextFor.md) — Create a format options context for a specific file type.
|
|
16
|
-
- [
|
|
18
|
+
- [createFragment](createFragment.md) — import { createFragment } from "@alloy-js/core";
|
|
17
19
|
- [createMemberTap](createMemberTap.md) — Create a tap for [MemberDeclaration context](../../contexts/memberdeclaration-context/).
|
|
18
20
|
- [createNamedContext](createNamedContext.md) — import { createNamedContext } from "@alloy-js/core";
|
|
19
21
|
- [createNamePolicy](createNamePolicy.md) — Creates a name policy that transforms symbol names based on element kind.
|
|
20
22
|
- [createOutputBinder](createOutputBinder.md) — import { createOutputBinder } from "@alloy-js/core";
|
|
21
|
-
- [createRenderTreeHook](createRenderTreeHook.md) — import { createRenderTreeHook } from "@alloy-js/core";
|
|
22
23
|
- [createResource](createResource.md) — Create a resource that fetches data asynchronously.
|
|
23
24
|
- [createScope](createScope.md) — Construct a scope instance and register it with devtools.
|
|
24
25
|
- [createScopeTap](createScopeTap.md) — Create a tap for [OutputScope](../../types/outputscope/).
|
|
@@ -26,10 +27,12 @@
|
|
|
26
27
|
- [createSymbol](createSymbol.md) — Construct a symbol instance and register it with devtools.
|
|
27
28
|
- [createSymbolSlot](createSymbolSlot.md) — Create a component which accepts emitted symbols.
|
|
28
29
|
- [createTap](createTap.md) — Create a component that when rendered, initializes the tapped value with the provided callback.
|
|
30
|
+
- [createTextNode](createTextNode.md) — import { createTextNode } from "@alloy-js/core";
|
|
29
31
|
- [decl](decl.md) — Create a declaration in the current scope with the given namekey.
|
|
30
32
|
- [defaultProps](defaultProps.md) — Applies default values to a props object.
|
|
31
33
|
- [effect](effect.md) — import { effect } from "@alloy-js/core";
|
|
32
34
|
- [emitDiagnostic](emitDiagnostic.md) — import { emitDiagnostic } from "@alloy-js/core";
|
|
35
|
+
- [emitDiagnosticForTree](emitDiagnosticForTree.md) — import { emitDiagnosticForTree } from "@alloy-js/core";
|
|
33
36
|
- [emitSymbol](emitSymbol.md) — import { emitSymbol } from "@alloy-js/core";
|
|
34
37
|
- [ensureIsEmpty](ensureIsEmpty.md) — Ensure that a context has an isEmpty ref, creating one if needed.
|
|
35
38
|
- [findCurrentEffectId](findCurrentEffectId.md) — Walk up the context owner chain to find the nearest effect ID.
|
|
@@ -39,23 +42,22 @@
|
|
|
39
42
|
- [formatReactivePropertyLabel](formatReactivePropertyLabel.md) — Build a human-readable label for a reactive property like `symbolName.prop`.
|
|
40
43
|
- [getAssignmentSymbol](getAssignmentSymbol.md) — Get the symbol being defined.
|
|
41
44
|
- [getContext](getContext.md) — import { getContext } from "@alloy-js/core";
|
|
45
|
+
- [getContextForNode](getContextForNode.md) — import { getContextForNode } from "@alloy-js/core";
|
|
42
46
|
- [getContextForRenderNode](getContextForRenderNode.md) — import { getContextForRenderNode } from "@alloy-js/core";
|
|
43
|
-
- [getDiagnosticsForTree](getDiagnosticsForTree.md) —
|
|
47
|
+
- [getDiagnosticsForTree](getDiagnosticsForTree.md) — Diagnostics collected during the render of `rootNode`.
|
|
44
48
|
- [getEffectDebugId](getEffectDebugId.md) — import { getEffectDebugId } from "@alloy-js/core";
|
|
45
|
-
- [getElementCache](getElementCache.md) — import { getElementCache } from "@alloy-js/core";
|
|
46
49
|
- [getReactiveCreationLocation](getReactiveCreationLocation.md) — import { getReactiveCreationLocation } from "@alloy-js/core";
|
|
50
|
+
- [getRegisteredDiagnosticsForTree](getRegisteredDiagnosticsForTree.md) — import { getRegisteredDiagnosticsForTree } from "@alloy-js/core";
|
|
47
51
|
- [getSymbolCreator](getSymbolCreator.md) — import { getSymbolCreator } from "@alloy-js/core";
|
|
48
52
|
- [getSymbolCreatorSymbol](getSymbolCreatorSymbol.md) — import { getSymbolCreatorSymbol } from "@alloy-js/core";
|
|
49
53
|
- [inspectRefkey](inspectRefkey.md) — import { inspectRefkey } from "@alloy-js/core";
|
|
50
54
|
- [instantiateTakenMembersTo](instantiateTakenMembersTo.md) — import { instantiateTakenMembersTo } from "@alloy-js/core";
|
|
51
55
|
- [isComponentCreator](isComponentCreator.md) — import { isComponentCreator } from "@alloy-js/core";
|
|
52
56
|
- [isCustomContext](isCustomContext.md) — import { isCustomContext } from "@alloy-js/core";
|
|
53
|
-
- [isIntrinsicElement](isIntrinsicElement.md) — import { isIntrinsicElement } from "@alloy-js/core";
|
|
54
57
|
- [isKeyedChild](isKeyedChild.md) — import { isKeyedChild } from "@alloy-js/core";
|
|
55
58
|
- [isLibrarySymbolReference](isLibrarySymbolReference.md) — import { isLibrarySymbolReference } from "@alloy-js/core";
|
|
56
59
|
- [isMemberRefkey](isMemberRefkey.md) — import { isMemberRefkey } from "@alloy-js/core";
|
|
57
60
|
- [isNamekey](isNamekey.md) — import { isNamekey } from "@alloy-js/core";
|
|
58
|
-
- [isPrintHook](isPrintHook.md) — import { isPrintHook } from "@alloy-js/core";
|
|
59
61
|
- [isRefkey](isRefkey.md) — import { isRefkey } from "@alloy-js/core";
|
|
60
62
|
- [isRefkeyable](isRefkeyable.md) — import { isRefkeyable } from "@alloy-js/core";
|
|
61
63
|
- [isRenderableObject](isRenderableObject.md) — Returns true if the item is a renderable object, meaning it has an `[ay.RENDERABLE]` method.
|
|
@@ -68,23 +70,26 @@
|
|
|
68
70
|
- [moveTakenMembersTo](moveTakenMembersTo.md) — import { moveTakenMembersTo } from "@alloy-js/core";
|
|
69
71
|
- [namekey](namekey.md) — Create a namekey with the given name.
|
|
70
72
|
- [nextReactiveId](nextReactiveId.md) — Allocate a unique reactive target ID from the same counter space as ref IDs.
|
|
71
|
-
- [notifyContentState](notifyContentState.md) —
|
|
73
|
+
- [notifyContentState](notifyContentState.md) — Reconcile the current context’s last-empty flag and `isEmpty` ref with its current `childrenWithContent` count, propagat
|
|
72
74
|
- [onCleanup](onCleanup.md) — Register a cleanup function which is called when the current reactive scope is recalculated or disposed.
|
|
73
|
-
- [printTree](printTree.md) —
|
|
75
|
+
- [printTree](printTree.md) — Print an AlloyNode tree to a string.
|
|
74
76
|
- [reactivePropertyRefId](reactivePropertyRefId.md) — Get a stable ref ID for a property of a reactive object.
|
|
75
77
|
- [ref](ref.md) — import { ref } from "@alloy-js/core";
|
|
76
78
|
- [refId](refId.md) — import { refId } from "@alloy-js/core";
|
|
77
79
|
- [refkey](refkey.md) — Create a refkey for the provided arguments.
|
|
78
|
-
- [
|
|
79
|
-
- [
|
|
80
|
-
- [
|
|
80
|
+
- [registerDiagnosticsForTree](registerDiagnosticsForTree.md) — import { registerDiagnosticsForTree } from "@alloy-js/core";
|
|
81
|
+
- [render](render.md) — Render a component tree to an [OutputDirectory](../../types/outputdirectory/).
|
|
82
|
+
- [renderAsync](renderAsync.md) — Async variant — awaits any scheduled async jobs (e.g.
|
|
83
|
+
- [renderTree](renderTree.md) — Render `children` into a fresh root AlloyNode.
|
|
81
84
|
- [reportDiagnostics](reportDiagnostics.md) — import { reportDiagnostics } from "@alloy-js/core";
|
|
85
|
+
- [reportDiagnosticsForTree](reportDiagnosticsForTree.md) — import { reportDiagnosticsForTree } from "@alloy-js/core";
|
|
82
86
|
- [resetRefIdCounter](resetRefIdCounter.md) — import { resetRefIdCounter } from "@alloy-js/core";
|
|
83
87
|
- [resolve](resolve.md) — Resolve a refkey in the current scope.
|
|
84
88
|
- [root](root.md) — import { root } from "@alloy-js/core";
|
|
89
|
+
- [runInContext](runInContext.md) — Run `fn` in a fresh child Context (just like [effect](../effect/)) but **without** a tracking ReactiveEffect wrapper.
|
|
85
90
|
- [shallowReactive](shallowReactive.md) — import { shallowReactive } from "@alloy-js/core";
|
|
86
91
|
- [shallowRef](shallowRef.md) — import { shallowRef } from "@alloy-js/core";
|
|
87
|
-
- [sourceFilesForTree](sourceFilesForTree.md) —
|
|
92
|
+
- [sourceFilesForTree](sourceFilesForTree.md) — Walk the AlloyNode tree, collecting `<SourceDirectory>`, `<SourceFile>`, and `<CopyFile>` markers into an [OutputDirecto
|
|
88
93
|
- [splitProps](splitProps.md) — import { splitProps } from "@alloy-js/core";
|
|
89
94
|
- [stc](stc.md) — import { stc } from "@alloy-js/core";
|
|
90
95
|
- [sti](sti.md) — import { sti } from "@alloy-js/core";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
import { isCustomContext } from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function isCustomContext(child:
|
|
7
|
+
function isCustomContext(child: unknown): child is CustomContext;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|
|
11
11
|
|
|
12
|
-
| |
|
|
13
|
-
| ----- |
|
|
14
|
-
| child |
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| child | unknown | |
|
|
15
15
|
|
|
16
16
|
## Returns
|
|
17
17
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# notifyContentState
|
|
2
2
|
|
|
3
|
+
Reconcile the current context’s last-empty flag and `isEmpty` ref with its current `childrenWithContent` count, propagating changes up the owner chain.
|
|
4
|
+
|
|
5
|
+
Call after mutating `childrenWithContent`. Safe to call when there is no active context — it just no-ops.
|
|
6
|
+
|
|
7
|
+
On every transition, both write the (lazily-allocated) `isEmpty` Ref (if present) AND invoke the internal empty-change callback (if present). Order is ref-first so external observers see the new Ref value before any internal mapJoin bookkeeping mutates dependent Refs.
|
|
8
|
+
|
|
3
9
|
```ts
|
|
4
10
|
import { notifyContentState } from "@alloy-js/core";
|
|
5
11
|
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
# printTree
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Print an AlloyNode tree to a string.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { printTree } from "@alloy-js/core";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
function printTree(
|
|
9
|
+
function printTree(node: AlloyNode, opts?: PrintTreeOptions & RenderTreeOptions): string;
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Parameters
|
|
13
13
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
19
|
-
## Options
|
|
20
|
-
|
|
21
|
-
| | | |
|
|
22
|
-
| ------------------ | ---------------- | ------------------------------------------------------------------------------ |
|
|
23
|
-
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
24
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
25
|
-
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
26
|
-
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
|
|
27
|
-
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
|
|
14
|
+
| | | |
|
|
15
|
+
| ---- | --------------------------------------------- | - |
|
|
16
|
+
| node | AlloyNode | |
|
|
17
|
+
| opts | optional PrintTreeOptions & RenderTreeOptions | |
|
|
28
18
|
|
|
29
19
|
## Returns
|
|
30
20
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# registerDiagnosticsForTree
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { registerDiagnosticsForTree } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function registerDiagnosticsForTree(tree: object, collector: DiagnosticsCollector): void;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| --------- | -------------------- | - |
|
|
14
|
+
| tree | object | |
|
|
15
|
+
| collector | DiagnosticsCollector | |
|
|
16
|
+
|
|
17
|
+
## Returns
|
|
18
|
+
|
|
19
|
+
void
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# render
|
|
2
2
|
|
|
3
|
-
Render a component tree to
|
|
3
|
+
Render a component tree to an [OutputDirectory](../../types/outputdirectory/).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { render } from "@alloy-js/core";
|
|
@@ -21,7 +21,6 @@ function render(children: Children, options?: PrintTreeOptions): OutputDirectory
|
|
|
21
21
|
| | | |
|
|
22
22
|
| ------------------ | ---------------- | ------------------------------------------------------------------------------ |
|
|
23
23
|
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
24
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
25
24
|
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
26
25
|
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
|
|
27
26
|
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# renderAsync
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Async variant — awaits any scheduled async jobs (e.g. produced by `<Output>` consumers that read external data) before walking the tree.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { renderAsync } from "@alloy-js/core";
|
|
@@ -21,7 +21,6 @@ function renderAsync(children: Children, options?: PrintTreeOptions): Promise<Ou
|
|
|
21
21
|
| | | |
|
|
22
22
|
| ------------------ | ---------------- | ------------------------------------------------------------------------------ |
|
|
23
23
|
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
24
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
25
24
|
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
26
25
|
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
|
|
27
26
|
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
# renderTree
|
|
2
2
|
|
|
3
|
+
Render `children` into a fresh root AlloyNode.
|
|
4
|
+
|
|
3
5
|
```ts
|
|
4
6
|
import { renderTree } from "@alloy-js/core";
|
|
5
7
|
|
|
6
8
|
|
|
7
|
-
function renderTree(children: Children):
|
|
9
|
+
function renderTree(children: Children, opts?: RenderTreeOptions): ElementNode;
|
|
8
10
|
```
|
|
9
11
|
|
|
10
12
|
## Parameters
|
|
11
13
|
|
|
12
|
-
| |
|
|
13
|
-
| -------- |
|
|
14
|
-
| children | Children
|
|
14
|
+
| | | |
|
|
15
|
+
| -------- | -------------------------- | - |
|
|
16
|
+
| children | Children | |
|
|
17
|
+
| opts | optional RenderTreeOptions | |
|
|
15
18
|
|
|
16
19
|
## Returns
|
|
17
20
|
|
|
18
|
-
[
|
|
21
|
+
[ElementNode](../../types/elementnode/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# reportDiagnosticsForTree
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { reportDiagnosticsForTree } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function reportDiagnosticsForTree(tree: object): void;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ------ | - |
|
|
14
|
+
| tree | object | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
void
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# runInContext
|
|
2
|
+
|
|
3
|
+
Run `fn` in a fresh child Context (just like [effect](../effect/)) but **without** a tracking ReactiveEffect wrapper. Use this when the caller knows the body does not establish reactive subscriptions at its top level (e.g. it wraps its only reactive reads in `untrack()` or function children) — typically for component-invocation plumbing where the outer “effect” never re-fires.
|
|
4
|
+
|
|
5
|
+
Compared to [effect](../effect/):
|
|
6
|
+
|
|
7
|
+
* No `vueEffect` allocation, no scheduler binding.
|
|
8
|
+
* The body runs synchronously to completion exactly once.
|
|
9
|
+
* Disposables registered via `onCleanup` inside `fn` (or its descendants) are still registered on the new context, and disposed via the parent context’s cleanup chain.
|
|
10
|
+
|
|
11
|
+
Returns the value returned by `fn`.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { runInContext } from "@alloy-js/core";
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
function runInContext<T>(fn: () => T): T;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
| | | |
|
|
23
|
+
| -- | ------- | - |
|
|
24
|
+
| fn | () => T | |
|
|
25
|
+
|
|
26
|
+
## Returns
|
|
27
|
+
|
|
28
|
+
T
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
# sourceFilesForTree
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Walk the AlloyNode tree, collecting `<SourceDirectory>`, `<SourceFile>`, and `<CopyFile>` markers into an [OutputDirectory](../../types/outputdirectory/).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { sourceFilesForTree } from "@alloy-js/core";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
function sourceFilesForTree(
|
|
9
|
+
function sourceFilesForTree(rootNode: AlloyNode, opts?: PrintTreeOptions): OutputDirectory;
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Parameters
|
|
13
13
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
19
|
-
## Options
|
|
20
|
-
|
|
21
|
-
| | | |
|
|
22
|
-
| ------------------ | ---------------- | ------------------------------------------------------------------------------ |
|
|
23
|
-
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
|
|
24
|
-
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
|
|
25
|
-
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
|
|
26
|
-
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
|
|
27
|
-
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
|
|
14
|
+
| | | |
|
|
15
|
+
| -------- | ------------------------- | - |
|
|
16
|
+
| rootNode | AlloyNode | |
|
|
17
|
+
| opts | optional PrintTreeOptions | |
|
|
28
18
|
|
|
29
19
|
## Returns
|
|
30
20
|
|
package/docs/api/index.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
- [components](components/index.md) (25 items)
|
|
4
4
|
- [contexts](contexts/index.md) (9 items)
|
|
5
|
-
- [functions](functions/index.md) (
|
|
5
|
+
- [functions](functions/index.md) (108 items)
|
|
6
6
|
- [testing/functions](testing/functions/index.md) (4 items)
|
|
7
7
|
- [testing/types](testing/types/index.md) (2 items)
|
|
8
|
-
- [types](types/index.md) (
|
|
9
|
-
- [variables](variables/index.md) (
|
|
8
|
+
- [types](types/index.md) (102 items)
|
|
9
|
+
- [variables](variables/index.md) (11 items)
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
- [createTestWrapper](createTestWrapper.md) — Create a reusable test harness for a language package.
|
|
4
4
|
- [d](d.md) — Dedented template literal tag.
|
|
5
5
|
- [dedent](dedent.md) — import { dedent } from "@alloy-js/core/testing";
|
|
6
|
-
- [renderToString](renderToString.md) —
|
|
6
|
+
- [renderToString](renderToString.md) — Convenience wrapper combining `renderTree` and `printTree`.
|