@powerlines/plugin-alloy 0.15.0 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtin-file-BDc5-4_L.mjs +43 -0
- package/dist/{builtin-file-C6O1_A2o.d.cts → builtin-file-CUUY0eVB.d.cts} +3 -3
- package/dist/{builtin-file-DLVCgiye.cjs → builtin-file-Cey2cJy9.cjs} +20 -14
- package/dist/{builtin-file-BAJFTpM1.d.mts → builtin-file-EfQHLZ8F.d.mts} +4 -4
- package/dist/{capnp-CbBwObRD.d.mts → capnp-DkidugOV.d.mts} +1 -1
- package/dist/{components-IB9A7YaB.d.mts → components-ixU_ICbr.d.mts} +5 -5
- package/dist/{context-D-UHaRnr.d.mts → context-BApo1nhP.d.mts} +1 -1
- package/dist/{context-0Spyyas6.d.mts → context-DXy7MPku.d.mts} +0 -2
- package/dist/core/components/index.cjs +3 -3
- package/dist/core/components/index.d.cts +3 -3
- package/dist/core/components/index.d.mts +5 -5
- package/dist/core/components/index.mjs +3 -3
- package/dist/core/components/output.cjs +1 -1
- package/dist/core/components/output.d.cts +1 -1
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/output.mjs +1 -1
- package/dist/core/components/single-line-comment.cjs +1 -1
- package/dist/core/components/single-line-comment.d.cts +1 -1
- package/dist/core/components/single-line-comment.d.mts +3 -3
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/source-file.cjs +1 -1
- package/dist/core/components/source-file.d.cts +1 -1
- package/dist/core/components/source-file.d.mts +3 -3
- package/dist/core/components/source-file.mjs +1 -1
- package/dist/core/contexts/context.d.mts +2 -2
- package/dist/core/contexts/index.d.mts +4 -4
- package/dist/core/contexts/reflection.d.mts +3 -3
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.mts +7 -7
- package/dist/core/index.mjs +3 -3
- package/dist/{dynamic-import-statement-C13MnQgp.d.mts → dynamic-import-statement-BhY2a13r.d.cts} +2 -2
- package/dist/{dynamic-import-statement-DoTHSt57.mjs → dynamic-import-statement-CWK5I_yt.mjs} +2 -6
- package/dist/{dynamic-import-statement-Dk3bSR8x.d.cts → dynamic-import-statement-D6f1SnIf.d.mts} +2 -2
- package/dist/{dynamic-import-statement-JVLyMPXr.cjs → dynamic-import-statement-DVGp5Cvq.cjs} +2 -6
- package/dist/{entry-file-BgfBy5f5.d.mts → entry-file-B46yUHra.d.mts} +4 -4
- package/dist/{entry-file-ohVtSEuT.d.cts → entry-file-DSW6oClr.d.cts} +3 -3
- package/dist/{entry-file-BA75rAwb.cjs → entry-file-DijEelFv.cjs} +10 -7
- package/dist/{entry-file-Bw1mgMP3.mjs → entry-file-DtjJPVZY.mjs} +10 -7
- package/dist/helpers/capnp.d.mts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/index.cjs +61 -230
- package/dist/index.d.cts +12 -12
- package/dist/index.d.mts +19 -19
- package/dist/index.mjs +60 -224
- package/dist/markdown/components/index.cjs +4 -4
- package/dist/markdown/components/index.d.cts +3 -3
- package/dist/markdown/components/index.d.mts +5 -5
- package/dist/markdown/components/index.mjs +4 -4
- package/dist/markdown/components/markdown-file.cjs +3 -3
- package/dist/markdown/components/markdown-file.d.cts +2 -2
- package/dist/markdown/components/markdown-file.d.mts +4 -4
- package/dist/markdown/components/markdown-file.mjs +3 -3
- package/dist/markdown/components/markdown-table.cjs +1 -1
- package/dist/markdown/components/markdown-table.d.cts +1 -1
- package/dist/markdown/components/markdown-table.d.mts +3 -3
- package/dist/markdown/components/markdown-table.mjs +1 -1
- package/dist/markdown/index.cjs +4 -4
- package/dist/markdown/index.d.cts +3 -3
- package/dist/markdown/index.d.mts +5 -5
- package/dist/markdown/index.mjs +4 -4
- package/dist/markdown-file-BVSRcpXO.cjs +128 -0
- package/dist/{markdown-file-KpLxNKr5.d.cts → markdown-file-C72aDdPi.d.cts} +4 -4
- package/dist/markdown-file-Clh5iU1_.mjs +116 -0
- package/dist/{markdown-file-DJvf2bqR.d.mts → markdown-file-DIkSXG43.d.mts} +5 -5
- package/dist/{markdown-table-C2op3MrF.d.mts → markdown-table-3trTm6Ef.d.mts} +5 -5
- package/dist/{markdown-table-DFaNSBRn.cjs → markdown-table-B40X-Kp1.cjs} +49 -28
- package/dist/{markdown-table-BUxH6aRh.mjs → markdown-table-D-YnljE7.mjs} +49 -28
- package/dist/{markdown-table-Es5LOw2a.d.cts → markdown-table-ZiuZZY5T.d.cts} +4 -4
- package/dist/{output-Cos2Dz1j.d.mts → output-BKZklKl1.d.mts} +1 -1
- package/dist/{output-CnofBsl0.cjs → output-BlHZS50Y.cjs} +19 -12
- package/dist/{output-H0VYYc8s.d.cts → output-BmJnrELo.d.cts} +2 -2
- package/dist/{output-DEdXZ94G.mjs → output-CNnPjQlW.mjs} +19 -12
- package/dist/{plugin-DmLCIqx0.d.mts → plugin-LknisCLa.d.mts} +3 -3
- package/dist/{reflection-BiWgd3An.d.mts → reflection-DLJST1Z7.d.mts} +1 -1
- package/dist/{single-line-comment-C5CtHQhi.mjs → single-line-comment-Biwa95Py.mjs} +6 -4
- package/dist/{single-line-comment-BkcbxQk-.d.cts → single-line-comment-CYYKKXc2.d.cts} +2 -2
- package/dist/{single-line-comment-DFZNU5hP.d.mts → single-line-comment-DGby6ABI.d.mts} +3 -3
- package/dist/{single-line-comment-BMPq6OR0.cjs → single-line-comment-DvU69OGj.cjs} +6 -4
- package/dist/{source-file-DddsxT-0.d.mts → source-file-B2MkzzGR.d.mts} +4 -4
- package/dist/{source-file-F6Y5b57g.d.cts → source-file-BrxGhMOh.d.cts} +2 -2
- package/dist/{source-file-DTd1KgD5.cjs → source-file-DK_nFwAK.cjs} +10 -6
- package/dist/{source-file-CCYwl5pI.mjs → source-file-Dna2E0ro.mjs} +10 -6
- package/dist/tsdoc-B0TNs3dK.cjs +576 -0
- package/dist/{tsdoc-DzCqaUAX.d.mts → tsdoc-QH5nHvck.d.mts} +1 -1
- package/dist/tsdoc-XXdq_9iS.mjs +456 -0
- package/dist/{tsdoc-reflection-DllAx-qb.d.cts → tsdoc-reflection-BOvlOXzR.d.cts} +4 -4
- package/dist/{tsdoc-reflection-iM_fIiQz.d.mts → tsdoc-reflection-Bhk9KvVe.d.mts} +5 -5
- package/dist/tsdoc-reflection-BizVi_gn.cjs +188 -0
- package/dist/tsdoc-reflection-IWtPMJjw.mjs +170 -0
- package/dist/types/components.d.mts +2 -2
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.mts +2 -2
- package/dist/typescript/components/builtin-file.cjs +5 -5
- package/dist/typescript/components/builtin-file.d.cts +3 -3
- package/dist/typescript/components/builtin-file.d.mts +6 -6
- package/dist/typescript/components/builtin-file.mjs +5 -5
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
- package/dist/typescript/components/entry-file.cjs +4 -4
- package/dist/typescript/components/entry-file.d.cts +3 -3
- package/dist/typescript/components/entry-file.d.mts +5 -5
- package/dist/typescript/components/entry-file.mjs +4 -4
- package/dist/typescript/components/index.cjs +10 -10
- package/dist/typescript/components/index.d.cts +8 -8
- package/dist/typescript/components/index.d.mts +11 -11
- package/dist/typescript/components/index.mjs +10 -10
- package/dist/typescript/components/tsdoc-reflection.cjs +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.cts +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +2 -2
- package/dist/typescript/components/tsdoc.cjs +1 -1
- package/dist/typescript/components/tsdoc.d.mts +3 -3
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/typescript-file.cjs +3 -3
- package/dist/typescript/components/typescript-file.d.cts +2 -2
- package/dist/typescript/components/typescript-file.d.mts +4 -4
- package/dist/typescript/components/typescript-file.mjs +3 -3
- package/dist/typescript/components/typescript-interface.cjs +3 -3
- package/dist/typescript/components/typescript-interface.d.cts +1 -1
- package/dist/typescript/components/typescript-interface.d.mts +3 -3
- package/dist/typescript/components/typescript-interface.mjs +3 -3
- package/dist/typescript/components/typescript-object.cjs +3 -3
- package/dist/typescript/components/typescript-object.d.cts +1 -1
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/dist/typescript/components/typescript-object.mjs +3 -3
- package/dist/typescript/index.cjs +10 -10
- package/dist/typescript/index.d.cts +8 -8
- package/dist/typescript/index.d.mts +11 -11
- package/dist/typescript/index.mjs +10 -10
- package/dist/{typescript-file-ocXl9a61.d.cts → typescript-file-BK8Ohw9s.d.cts} +1 -1
- package/dist/{typescript-file-D4rnAsBm.d.mts → typescript-file-CFNjXsdz.d.mts} +2 -2
- package/dist/typescript-file-CLL-ELi0.mjs +190 -0
- package/dist/typescript-file-HsAUWnQY.cjs +208 -0
- package/dist/{typescript-interface-DzvRyYXT.d.mts → typescript-interface-CVB4juPk.d.cts} +2 -2
- package/dist/{typescript-interface-Codd49Sl.cjs → typescript-interface-DwHJ9in_.cjs} +38 -23
- package/dist/{typescript-interface-AydoCmGY.mjs → typescript-interface-FVDsEsu0.mjs} +38 -23
- package/dist/{typescript-interface-4JyWA4LS.d.cts → typescript-interface-XIwwFVdf.d.mts} +5 -5
- package/dist/{typescript-object-IfL-BYqv.d.cts → typescript-object-BPZlvCrZ.d.cts} +3 -3
- package/dist/{typescript-object-DDunmVmx.d.mts → typescript-object-BTawaBJa.d.mts} +4 -4
- package/dist/{typescript-object-DOrJkpcM.cjs → typescript-object-D8MHeFId.cjs} +75 -45
- package/dist/{typescript-object-C-BmpHfk.mjs → typescript-object-Ju07nQg9.mjs} +75 -45
- package/package.json +11 -11
- package/dist/builtin-file-CkwxD4el.mjs +0 -37
- package/dist/markdown-file-BFbbzD59.mjs +0 -90
- package/dist/markdown-file-CzGNj_Ex.cjs +0 -102
- package/dist/tsdoc-BFPYF-Fh.cjs +0 -487
- package/dist/tsdoc-BmyOQBxT.mjs +0 -367
- package/dist/tsdoc-reflection-3hSdGY1e.mjs +0 -97
- package/dist/tsdoc-reflection-BQN8iUG1.cjs +0 -115
- package/dist/typescript-file-6Y81yLyB.cjs +0 -157
- package/dist/typescript-file-y6oF016h.mjs +0 -139
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as PowerlinesContext } from "./context-Cx38_mgI.mjs";
|
|
2
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { Output, Show, computed, ref, splitProps } from "@alloy-js/core";
|
|
3
|
-
import { jsx } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { replacePath } from "@stryke/path/replace";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.tsx
|
|
@@ -15,17 +15,24 @@ function Output$1(props) {
|
|
|
15
15
|
]);
|
|
16
16
|
const contextRef = ref(context);
|
|
17
17
|
const basePathRef = computed(() => basePath ? replacePath(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
return createComponent(Output, mergeProps(rest, {
|
|
19
|
+
get basePath() {
|
|
20
|
+
return basePathRef.value;
|
|
21
|
+
},
|
|
22
|
+
get children() {
|
|
23
|
+
return createComponent(PowerlinesContext.Provider, {
|
|
24
|
+
value: { ref: contextRef },
|
|
25
|
+
get children() {
|
|
26
|
+
return createComponent(Show, {
|
|
27
|
+
get when() {
|
|
28
|
+
return Boolean(contextRef.value);
|
|
29
|
+
},
|
|
30
|
+
children
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-
|
|
1
|
+
import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-DXy7MPku.mjs";
|
|
2
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { PrintTreeOptions } from "@alloy-js/core";
|
|
3
|
-
import { Children as Children$1 } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
@@ -30,7 +30,7 @@ type AlloyPluginResolvedConfig = ResolvedConfig & {
|
|
|
30
30
|
alloy: AlloyPluginOptions;
|
|
31
31
|
};
|
|
32
32
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
|
-
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children
|
|
33
|
+
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
declare type __ΩAlloyPluginOptions = any[];
|
|
36
36
|
declare type __ΩAlloyPluginUserConfig = any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ReflectionOverrideInterface } from "./components-
|
|
1
|
+
import { c as ReflectionOverrideInterface } from "./components-ixU_ICbr.mjs";
|
|
2
2
|
import { ComponentContext } from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
1
2
|
import { Prose } from "@alloy-js/core";
|
|
2
|
-
import { Fragment, jsx, jsxs } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.tsx
|
|
5
5
|
/**
|
|
@@ -9,10 +9,12 @@ import { Fragment, jsx, jsxs } from "@alloy-js/core/jsx-runtime";
|
|
|
9
9
|
function SingleLineComment(props) {
|
|
10
10
|
const { variant = "double-slash", children } = props;
|
|
11
11
|
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
12
|
-
return
|
|
12
|
+
return [commentStart, createIntrinsic("align", {
|
|
13
13
|
string: commentStart,
|
|
14
|
-
children
|
|
15
|
-
|
|
14
|
+
get children() {
|
|
15
|
+
return [createComponent(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
16
|
+
}
|
|
17
|
+
})];
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ComponentProps } from "./components-C8Qs2PB0.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core12 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";
|
|
@@ -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_core12.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as ComponentProps } from "./components-ixU_ICbr.mjs";
|
|
2
|
+
import * as _alloy_js_core15 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";
|
|
@@ -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_core15.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
3
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/single-line-comment.tsx
|
|
6
6
|
/**
|
|
@@ -10,10 +10,12 @@ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
|
10
10
|
function SingleLineComment(props) {
|
|
11
11
|
const { variant = "double-slash", children } = props;
|
|
12
12
|
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
13
|
-
return
|
|
13
|
+
return [commentStart, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
14
14
|
string: commentStart,
|
|
15
|
-
children
|
|
16
|
-
|
|
15
|
+
get children() {
|
|
16
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
17
|
+
}
|
|
18
|
+
})];
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as StoragePreset } from "./context-
|
|
2
|
-
import { n as ComponentProps } from "./components-
|
|
3
|
-
import * as
|
|
1
|
+
import { s as StoragePreset } from "./context-DXy7MPku.mjs";
|
|
2
|
+
import { n as ComponentProps } from "./components-ixU_ICbr.mjs";
|
|
3
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
4
4
|
import { SourceFileProps } from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
@@ -25,7 +25,7 @@ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
|
25
25
|
* @param props - The properties for the source file.
|
|
26
26
|
* @returns The rendered source file component.
|
|
27
27
|
*/
|
|
28
|
-
declare function SourceFile(props: SourceFileProps$1):
|
|
28
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core12.Children;
|
|
29
29
|
declare type __ΩSourceFileProps = any[];
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as StoragePreset } from "./context-BsDdxy5g.cjs";
|
|
2
2
|
import { n as ComponentProps } from "./components-C8Qs2PB0.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core11 from "@alloy-js/core";
|
|
4
4
|
import { SourceFileProps } from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
@@ -25,7 +25,7 @@ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
|
25
25
|
* @param props - The properties for the source file.
|
|
26
26
|
* @returns The rendered source file component.
|
|
27
27
|
*/
|
|
28
|
-
declare function SourceFile(props: SourceFileProps$1):
|
|
28
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core11.Children;
|
|
29
29
|
declare type __ΩSourceFileProps = any[];
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
3
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
4
4
|
let __stryke_path_append = require("@stryke/path/append");
|
|
5
5
|
let defu = require("defu");
|
|
6
6
|
defu = require_chunk.__toESM(defu);
|
|
@@ -41,12 +41,16 @@ function SourceFile(props) {
|
|
|
41
41
|
printOptions,
|
|
42
42
|
output: { preset }
|
|
43
43
|
}, meta ?? {});
|
|
44
|
-
return
|
|
44
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.SourceFileContext.Provider, {
|
|
45
45
|
value: context,
|
|
46
|
-
children
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
get children() {
|
|
47
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
48
|
+
when: header !== void 0,
|
|
49
|
+
get children() {
|
|
50
|
+
return [header, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
51
|
+
}
|
|
52
|
+
}), children];
|
|
53
|
+
}
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
56
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
1
2
|
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
2
|
-
import { jsx, jsxs } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { appendPath } from "@stryke/path/append";
|
|
4
4
|
import defu from "defu";
|
|
5
5
|
|
|
@@ -39,12 +39,16 @@ function SourceFile(props) {
|
|
|
39
39
|
printOptions,
|
|
40
40
|
output: { preset }
|
|
41
41
|
}, meta ?? {});
|
|
42
|
-
return
|
|
42
|
+
return createComponent(SourceFileContext.Provider, {
|
|
43
43
|
value: context,
|
|
44
|
-
children
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
get children() {
|
|
45
|
+
return [createComponent(Show, {
|
|
46
|
+
when: header !== void 0,
|
|
47
|
+
get children() {
|
|
48
|
+
return [header, createIntrinsic("hbr", {})];
|
|
49
|
+
}
|
|
50
|
+
}), children];
|
|
51
|
+
}
|
|
48
52
|
});
|
|
49
53
|
}
|
|
50
54
|
|