@powerlines/plugin-alloy 0.25.24 → 0.25.26
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/README.md +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/core/components/index.cjs +1 -0
- package/dist/core/components/output.cjs +9 -8
- package/dist/core/components/output.d.cts +2 -3
- package/dist/core/components/output.d.cts.map +1 -1
- package/dist/core/components/output.d.mts +2 -3
- package/dist/core/components/output.d.mts.map +1 -1
- package/dist/core/components/single-line-comment.cjs +6 -5
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.cts.map +1 -1
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.mts.map +1 -1
- package/dist/core/components/source-file.cjs +14 -13
- package/dist/core/components/source-file.d.cts.map +1 -1
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/components/source-file.d.mts.map +1 -1
- package/dist/core/components/spacing.cjs +6 -5
- package/dist/core/components/spacing.d.cts.map +1 -1
- package/dist/core/components/spacing.d.mts +2 -2
- package/dist/core/components/spacing.d.mts.map +1 -1
- package/dist/core/contexts/context.cjs +5 -4
- package/dist/core/contexts/context.d.cts +0 -1
- package/dist/core/contexts/context.d.cts.map +1 -1
- package/dist/core/contexts/context.d.mts +0 -1
- package/dist/core/contexts/context.d.mts.map +1 -1
- package/dist/core/contexts/index.cjs +1 -0
- package/dist/core/contexts/meta.cjs +5 -4
- package/dist/core/contexts/meta.d.cts.map +1 -1
- package/dist/core/contexts/meta.d.mts.map +1 -1
- package/dist/core/contexts/reflection.cjs +11 -10
- package/dist/core/contexts/reflection.d.cts.map +1 -1
- package/dist/core/contexts/reflection.d.mts.map +1 -1
- package/dist/core/helpers/code.cjs +4 -3
- package/dist/core/helpers/code.d.cts +0 -1
- package/dist/core/helpers/code.d.cts.map +1 -1
- package/dist/core/helpers/code.d.mts +0 -1
- package/dist/core/helpers/code.d.mts.map +1 -1
- package/dist/core/helpers/index.cjs +1 -0
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.cts +0 -3
- package/dist/core/index.d.mts +0 -3
- package/dist/helpers/capnp.cjs +65 -64
- package/dist/helpers/capnp.d.cts +0 -1
- package/dist/helpers/capnp.d.cts.map +1 -1
- package/dist/helpers/capnp.d.mts +0 -1
- package/dist/helpers/capnp.d.mts.map +1 -1
- package/dist/helpers/capnp.mjs +3 -3
- package/dist/helpers/create-builtin.cjs +4 -3
- package/dist/helpers/create-builtin.d.cts.map +1 -1
- package/dist/helpers/create-builtin.d.mts.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/refkey.cjs +4 -3
- package/dist/helpers/refkey.d.cts +0 -1
- package/dist/helpers/refkey.d.cts.map +1 -1
- package/dist/helpers/refkey.d.mts +0 -1
- package/dist/helpers/refkey.d.mts.map +1 -1
- package/dist/helpers/typescript.cjs +14 -13
- package/dist/helpers/typescript.d.cts.map +1 -1
- package/dist/helpers/typescript.d.mts.map +1 -1
- package/dist/index.cjs +8 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/markdown/components/front-matter.cjs +8 -7
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.cts.map +1 -1
- package/dist/markdown/components/front-matter.d.mts +2 -2
- package/dist/markdown/components/front-matter.d.mts.map +1 -1
- package/dist/markdown/components/index.cjs +1 -0
- package/dist/markdown/components/markdown-file.cjs +34 -33
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.cts.map +1 -1
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-file.d.mts.map +1 -1
- package/dist/markdown/components/markdown-table.cjs +26 -25
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- 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/contexts/index.cjs +1 -0
- package/dist/markdown/contexts/markdown-table.cjs +7 -6
- 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/index.cjs +1 -0
- package/dist/markdown/index.d.cts +0 -2
- package/dist/markdown/index.d.mts +0 -2
- package/dist/render.cjs +10 -9
- package/dist/render.d.cts +0 -1
- package/dist/render.d.cts.map +1 -1
- package/dist/render.d.mts +0 -1
- package/dist/render.d.mts.map +1 -1
- package/dist/types/components.d.cts.map +1 -1
- package/dist/types/components.d.mts.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +14 -13
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.cts.map +1 -1
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/builtin-file.d.mts.map +1 -1
- package/dist/typescript/components/class-declaration.cjs +57 -56
- package/dist/typescript/components/class-declaration.d.cts.map +1 -1
- package/dist/typescript/components/class-declaration.d.mts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +6 -5
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -1
- package/dist/typescript/components/entry-file.cjs +12 -11
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.cts.map +1 -1
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.mts.map +1 -1
- package/dist/typescript/components/index.cjs +1 -0
- package/dist/typescript/components/infrastructure-file.cjs +11 -10
- package/dist/typescript/components/infrastructure-file.d.cts +2 -2
- package/dist/typescript/components/infrastructure-file.d.cts.map +1 -1
- package/dist/typescript/components/infrastructure-file.d.mts +2 -2
- package/dist/typescript/components/infrastructure-file.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.cjs +59 -58
- package/dist/typescript/components/interface-declaration.d.cts +2 -2
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
- package/dist/typescript/components/interface-declaration.d.mts +2 -2
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.mjs +2 -2
- package/dist/typescript/components/object-declaration.cjs +40 -39
- package/dist/typescript/components/object-declaration.d.cts +3 -3
- package/dist/typescript/components/object-declaration.d.cts.map +1 -1
- package/dist/typescript/components/object-declaration.d.mts +3 -3
- package/dist/typescript/components/object-declaration.d.mts.map +1 -1
- package/dist/typescript/components/property-name.cjs +8 -7
- package/dist/typescript/components/property-name.d.cts +2 -2
- package/dist/typescript/components/property-name.d.cts.map +1 -1
- package/dist/typescript/components/property-name.d.mts +2 -2
- package/dist/typescript/components/property-name.d.mts.map +1 -1
- package/dist/typescript/components/record-expression.cjs +4 -3
- 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/tsdoc-reflection.cjs +74 -73
- package/dist/typescript/components/tsdoc-reflection.d.cts +7 -7
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +7 -7
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +107 -106
- 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 +2 -2
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.cjs +11 -10
- package/dist/typescript/components/type-declaration.d.cts +2 -2
- package/dist/typescript/components/type-declaration.d.cts.map +1 -1
- package/dist/typescript/components/type-declaration.d.mts +2 -2
- package/dist/typescript/components/type-declaration.d.mts.map +1 -1
- package/dist/typescript/components/type-declaration.mjs +1 -1
- package/dist/typescript/components/type-parameters.cjs +17 -16
- package/dist/typescript/components/type-parameters.d.cts.map +1 -1
- package/dist/typescript/components/type-parameters.d.mts.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +63 -62
- package/dist/typescript/components/typescript-file.d.cts.map +1 -1
- package/dist/typescript/components/typescript-file.d.mts.map +1 -1
- package/dist/typescript/contexts/index.cjs +1 -0
- package/dist/typescript/contexts/lexical-scope.cjs +8 -7
- package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
- package/dist/typescript/contexts/member-scope.cjs +8 -7
- package/dist/typescript/contexts/member-scope.d.cts.map +1 -1
- package/dist/typescript/contexts/member-scope.d.mts.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +5 -4
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -1
- package/dist/typescript/helpers/index.cjs +1 -0
- package/dist/typescript/helpers/utilities.cjs +1 -0
- package/dist/typescript/helpers/utilities.d.cts.map +1 -1
- package/dist/typescript/helpers/utilities.d.mts.map +1 -1
- package/dist/typescript/index.cjs +1 -0
- package/dist/typescript/index.d.cts +0 -3
- package/dist/typescript/index.d.mts +0 -3
- package/dist/yaml/components/index.cjs +1 -0
- package/dist/yaml/components/yaml-file.cjs +34 -33
- package/dist/yaml/components/yaml-file.d.cts.map +1 -1
- package/dist/yaml/components/yaml-file.d.mts.map +1 -1
- package/dist/yaml/index.cjs +1 -0
- package/dist/yaml/index.d.cts +0 -1
- package/dist/yaml/index.d.mts +0 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -58,21 +58,19 @@ A package containing various Alloy framework components and helper utilities.
|
|
|
58
58
|
|
|
59
59
|
## Table of Contents
|
|
60
60
|
|
|
61
|
-
- [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- [Contributing](#contributing)
|
|
75
|
-
- [Contributors](#contributors)
|
|
61
|
+
- [Installing](#installing)
|
|
62
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
63
|
+
- [Development](#development)
|
|
64
|
+
- [Building](#building)
|
|
65
|
+
- [Running unit tests](#running-unit-tests)
|
|
66
|
+
- [Linting](#linting)
|
|
67
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
68
|
+
- [Roadmap](#roadmap)
|
|
69
|
+
- [Support](#support)
|
|
70
|
+
- [License](#license)
|
|
71
|
+
- [Changelog](#changelog)
|
|
72
|
+
- [Contributing](#contributing)
|
|
73
|
+
- [Contributors](#contributors)
|
|
76
74
|
|
|
77
75
|
<!-- END doctoc -->
|
|
78
76
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1
2
|
const require_core_components_output = require('./output.cjs');
|
|
2
3
|
const require_core_components_single_line_comment = require('./single-line-comment.cjs');
|
|
3
4
|
const require_core_components_source_file = require('./source-file.cjs');
|
|
@@ -1,30 +1,31 @@
|
|
|
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');
|
|
5
|
-
let
|
|
6
|
-
let
|
|
6
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
7
8
|
|
|
8
9
|
//#region src/core/components/output.tsx
|
|
9
10
|
/**
|
|
10
11
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
11
12
|
*/
|
|
12
13
|
function Output(props) {
|
|
13
|
-
const [{ children, context, meta = {} }, rest] = (0,
|
|
14
|
+
const [{ children, context, meta = {} }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
14
15
|
"children",
|
|
15
16
|
"context",
|
|
16
17
|
"meta"
|
|
17
18
|
]);
|
|
18
|
-
const contextRef = (0,
|
|
19
|
-
return (0,
|
|
19
|
+
const contextRef = (0, _alloy_js_core.computed)(() => context);
|
|
20
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_meta.MetaContext.Provider, {
|
|
20
21
|
value: meta,
|
|
21
22
|
get children() {
|
|
22
|
-
return (0,
|
|
23
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
|
|
23
24
|
get value() {
|
|
24
25
|
return contextRef.value;
|
|
25
26
|
},
|
|
26
27
|
get children() {
|
|
27
|
-
return (0,
|
|
28
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Output, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
28
29
|
get basePath() {
|
|
29
30
|
return contextRef.value.workspaceConfig.workspaceRoot;
|
|
30
31
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/meta.cjs";
|
|
2
|
-
import "
|
|
3
|
-
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
3
|
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
5
4
|
import { PluginContext } from "@powerlines/core";
|
|
6
5
|
|
|
@@ -18,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Om
|
|
|
18
17
|
/**
|
|
19
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
20
19
|
*/
|
|
21
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
|
|
22
21
|
declare type __ΩOutputProps = any[];
|
|
23
22
|
//#endregion
|
|
24
23
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"
|
|
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;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,eAAA,CAAU,QAAA;AAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/meta.mjs";
|
|
2
|
-
import "
|
|
3
|
-
import * as _alloy_js_core5 from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
3
|
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
5
4
|
import { PluginContext } from "@powerlines/core";
|
|
6
5
|
|
|
@@ -18,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Om
|
|
|
18
17
|
/**
|
|
19
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
20
19
|
*/
|
|
21
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
|
|
22
21
|
declare type __ΩOutputProps = any[];
|
|
23
22
|
//#endregion
|
|
24
23
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"
|
|
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;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,eAAA,CAAU,QAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
4
5
|
|
|
5
6
|
//#region src/core/components/single-line-comment.tsx
|
|
6
7
|
/**
|
|
@@ -10,10 +11,10 @@ let __alloy_js_core = require("@alloy-js/core");
|
|
|
10
11
|
function SingleLineComment(props) {
|
|
11
12
|
const { variant = "double-slash", children } = props;
|
|
12
13
|
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : variant === "yaml" ? "# " : "// ";
|
|
13
|
-
return [commentStart, (0,
|
|
14
|
+
return [commentStart, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
14
15
|
string: commentStart,
|
|
15
16
|
get children() {
|
|
16
|
-
return [(0,
|
|
17
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
17
18
|
}
|
|
18
19
|
})];
|
|
19
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.d.cts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"
|
|
1
|
+
{"version":3,"file":"single-line-comment.d.cts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UAQK,sBAAA,SAA+B,cAAA;;AARhD;;;;EAcE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.d.mts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"
|
|
1
|
+
{"version":3,"file":"single-line-comment.d.mts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UAQK,sBAAA,SAA+B,cAAA;;AARhD;;;;EAcE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_core_contexts_meta = require('../contexts/meta.cjs');
|
|
3
|
-
let
|
|
4
|
-
let
|
|
5
|
-
let
|
|
4
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
6
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
6
7
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
8
|
+
defu = require_runtime.__toESM(defu);
|
|
8
9
|
|
|
9
10
|
//#region src/core/components/source-file.tsx
|
|
10
11
|
/**
|
|
@@ -14,7 +15,7 @@ defu = require_rolldown_runtime.__toESM(defu);
|
|
|
14
15
|
* @returns The rendered source file component.
|
|
15
16
|
*/
|
|
16
17
|
function SourceFile(props) {
|
|
17
|
-
const [{ children, meta, path, header, storage, filetype, reference }] = (0,
|
|
18
|
+
const [{ children, meta, path, header, storage, filetype, reference }] = (0, _alloy_js_core.splitProps)(props, [
|
|
18
19
|
"children",
|
|
19
20
|
"meta",
|
|
20
21
|
"path",
|
|
@@ -24,20 +25,20 @@ function SourceFile(props) {
|
|
|
24
25
|
"reference"
|
|
25
26
|
]);
|
|
26
27
|
const metadata = require_core_contexts_meta.useMeta();
|
|
27
|
-
const parentDirectory = (0,
|
|
28
|
+
const parentDirectory = (0, _alloy_js_core.useContext)(_alloy_js_core.SourceDirectoryContext);
|
|
28
29
|
const sourceFile = {
|
|
29
|
-
path: (0,
|
|
30
|
+
path: (0, _stryke_path_append.appendPath)(path, parentDirectory.path),
|
|
30
31
|
filetype,
|
|
31
32
|
reference
|
|
32
33
|
};
|
|
33
34
|
parentDirectory?.addContent(sourceFile);
|
|
34
|
-
const printOptions = (0,
|
|
35
|
+
const printOptions = (0, _alloy_js_core.useFormatOptions)({
|
|
35
36
|
printWidth: props.printWidth,
|
|
36
37
|
tabWidth: props.tabWidth,
|
|
37
38
|
useTabs: props.useTabs,
|
|
38
39
|
insertFinalNewLine: props.insertFinalNewLine
|
|
39
40
|
});
|
|
40
|
-
const nodeContext = (0,
|
|
41
|
+
const nodeContext = (0, _alloy_js_core.getContext)();
|
|
41
42
|
nodeContext.meta = (0, defu.default)({
|
|
42
43
|
sourceFile,
|
|
43
44
|
printOptions
|
|
@@ -46,13 +47,13 @@ function SourceFile(props) {
|
|
|
46
47
|
storage,
|
|
47
48
|
...meta ?? {}
|
|
48
49
|
};
|
|
49
|
-
return (0,
|
|
50
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.SourceFileContext.Provider, {
|
|
50
51
|
value: sourceFile,
|
|
51
52
|
get children() {
|
|
52
|
-
return [(0,
|
|
53
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
53
54
|
when: header !== void 0,
|
|
54
55
|
get children() {
|
|
55
|
-
return [header, (0,
|
|
56
|
+
return [header, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
56
57
|
}
|
|
57
58
|
}), children];
|
|
58
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines";
|
|
5
5
|
|
|
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
26
26
|
* @param props - The properties for the source file.
|
|
27
27
|
* @returns The rendered source file component.
|
|
28
28
|
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps):
|
|
29
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
4
5
|
|
|
5
6
|
//#region src/core/components/spacing.tsx
|
|
6
7
|
/**
|
|
7
8
|
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
8
9
|
*/
|
|
9
10
|
function Spacing({ scale = 1 }) {
|
|
10
|
-
return (0,
|
|
11
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
11
12
|
get each() {
|
|
12
13
|
return Array.from({ length: scale });
|
|
13
14
|
},
|
|
14
|
-
children: (_) => [(0,
|
|
15
|
+
children: (_) => [(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"
|
|
1
|
+
{"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/core/components/spacing.d.ts
|
|
4
4
|
interface SpacingProps {
|
|
@@ -17,7 +17,7 @@ interface SpacingProps {
|
|
|
17
17
|
*/
|
|
18
18
|
declare function Spacing({
|
|
19
19
|
scale
|
|
20
|
-
}: SpacingProps):
|
|
20
|
+
}: SpacingProps): _alloy_js_core0.Children;
|
|
21
21
|
declare type __ΩSpacingProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Spacing, SpacingProps, __ΩSpacingProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"
|
|
1
|
+
{"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
3
4
|
|
|
4
5
|
//#region src/core/contexts/context.ts
|
|
5
6
|
/**
|
|
6
7
|
* The Powerlines context used in template rendering.
|
|
7
8
|
*/
|
|
8
|
-
const PowerlinesContext = (0,
|
|
9
|
+
const PowerlinesContext = (0, _alloy_js_core.createNamedContext)("Powerlines");
|
|
9
10
|
/**
|
|
10
11
|
* Hook to access the Powerlines Context.
|
|
11
12
|
*
|
|
12
13
|
* @returns The Context.
|
|
13
14
|
*/
|
|
14
15
|
function usePowerlinesContext() {
|
|
15
|
-
return (0,
|
|
16
|
+
return (0, _alloy_js_core.useContext)(PowerlinesContext);
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/core/contexts/context.ts"],"
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":[],"sources":["../../../src/core/contexts/context.ts"],"
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
3
4
|
|
|
4
5
|
//#region src/core/contexts/meta.ts
|
|
5
6
|
/**
|
|
6
7
|
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
7
8
|
*/
|
|
8
|
-
const MetaContext = (0,
|
|
9
|
+
const MetaContext = (0, _alloy_js_core.createNamedContext)("Meta");
|
|
9
10
|
/**
|
|
10
11
|
* Hook to access the Powerlines Context.
|
|
11
12
|
*
|
|
12
13
|
* @returns The Context.
|
|
13
14
|
*/
|
|
14
15
|
function useMetaContext() {
|
|
15
|
-
return (0,
|
|
16
|
+
return (0, _alloy_js_core.useContext)(MetaContext);
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Hook to safely access the render context's metadata.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.cts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"
|
|
1
|
+
{"version":3,"file":"meta.d.cts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.mts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"
|
|
1
|
+
{"version":3,"file":"meta.d.mts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA;AAAA"}
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
3
4
|
|
|
4
5
|
//#region src/core/contexts/reflection.ts
|
|
5
6
|
/**
|
|
6
7
|
* The reflection class context used in template rendering.
|
|
7
8
|
*/
|
|
8
|
-
const ReflectionClassContext = (0,
|
|
9
|
+
const ReflectionClassContext = (0, _alloy_js_core.createContext)();
|
|
9
10
|
/**
|
|
10
11
|
* Hook to access the Reflection context.
|
|
11
12
|
*
|
|
12
13
|
* @returns A reactive version of the current reflection.
|
|
13
14
|
*/
|
|
14
15
|
function useReflectionClass() {
|
|
15
|
-
const context = (0,
|
|
16
|
+
const context = (0, _alloy_js_core.useContext)(ReflectionClassContext);
|
|
16
17
|
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
17
18
|
return context;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* The reflection property context used in template rendering.
|
|
21
22
|
*/
|
|
22
|
-
const ReflectionPropertyContext = (0,
|
|
23
|
+
const ReflectionPropertyContext = (0, _alloy_js_core.createNamedContext)("ReflectionProperty");
|
|
23
24
|
/**
|
|
24
25
|
* Hook to access the Reflection Property context.
|
|
25
26
|
*
|
|
26
27
|
* @returns A reactive version of the current reflection.
|
|
27
28
|
*/
|
|
28
29
|
function useReflectionProperty() {
|
|
29
|
-
const context = (0,
|
|
30
|
+
const context = (0, _alloy_js_core.useContext)(ReflectionPropertyContext);
|
|
30
31
|
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
31
32
|
return context;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* The reflection method context used in template rendering.
|
|
35
36
|
*/
|
|
36
|
-
const ReflectionMethodContext = (0,
|
|
37
|
+
const ReflectionMethodContext = (0, _alloy_js_core.createNamedContext)("ReflectionMethod");
|
|
37
38
|
/**
|
|
38
39
|
* Hook to access the Reflection Method context.
|
|
39
40
|
*
|
|
40
41
|
* @returns A reactive version of the current reflection.
|
|
41
42
|
*/
|
|
42
43
|
function useReflectionMethod() {
|
|
43
|
-
const context = (0,
|
|
44
|
+
const context = (0, _alloy_js_core.useContext)(ReflectionMethodContext);
|
|
44
45
|
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
45
46
|
return context;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* The reflection parameter context used in template rendering.
|
|
49
50
|
*/
|
|
50
|
-
const ReflectionParameterContext = (0,
|
|
51
|
+
const ReflectionParameterContext = (0, _alloy_js_core.createNamedContext)("ReflectionParameter");
|
|
51
52
|
/**
|
|
52
53
|
* Hook to access the Reflection Parameter context.
|
|
53
54
|
*
|
|
54
55
|
* @returns A reactive version of the current reflection.
|
|
55
56
|
*/
|
|
56
57
|
function useReflectionParameter() {
|
|
57
|
-
return (0,
|
|
58
|
+
return (0, _alloy_js_core.useContext)(ReflectionParameterContext);
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"
|
|
1
|
+
{"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;;;;cAkBxC,yBAAA,EAA2B,gBAAA,CAAiB,kBAAA;;;;;;iBAQzC,qBAAA,CAAA,GAAqB,kBAAA;AApCrC;;;AAAA,cAmDa,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;AA1CvD;;;;iBAkDgB,mBAAA,CAAA,GAAmB,gBAAA;;;;cAetB,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.d.mts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"
|
|
1
|
+
{"version":3,"file":"reflection.d.mts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;;;;cAkBxC,yBAAA,EAA2B,gBAAA,CAAiB,kBAAA;;;;;;iBAQzC,qBAAA,CAAA,GAAqB,kBAAA;AApCrC;;;AAAA,cAmDa,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;AA1CvD;;;;iBAkDgB,mBAAA,CAAA,GAAmB,gBAAA;;;;cAetB,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA;AAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
3
4
|
|
|
4
5
|
//#region src/core/helpers/code.ts
|
|
5
6
|
/**
|
|
@@ -26,7 +27,7 @@ let __alloy_js_core = require("@alloy-js/core");
|
|
|
26
27
|
*/
|
|
27
28
|
function code(template, ...substitutions) {
|
|
28
29
|
if (template.filter((seg) => seg.trim()).length === 0 && substitutions.length === 0) throw new Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");
|
|
29
|
-
return (0,
|
|
30
|
+
return (0, _alloy_js_core.code)(template, ...substitutions);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.cts","names":[],"sources":["../../../src/core/helpers/code.ts"],"
|
|
1
|
+
{"version":3,"file":"code.d.cts","names":[],"sources":["../../../src/core/helpers/code.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;;;;;iBAAgB,IAAA,CACd,QAAA,EAAU,oBAAA,KACP,aAAA,EAAe,QAAA,KACjB,QAAA"}
|