@powerlines/plugin-alloy 0.18.115 → 0.18.117
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/core/components/output.cjs +2 -1
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/output.mjs +3 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/contexts/context.cjs +8 -6
- package/dist/core/contexts/context.d.cts +3 -5
- package/dist/core/contexts/context.d.mts +3 -5
- package/dist/core/contexts/context.mjs +9 -7
- package/dist/core/contexts/index.cjs +1 -1
- package/dist/core/contexts/index.d.cts +2 -2
- package/dist/core/contexts/index.d.mts +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/contexts/reflection.cjs +3 -3
- package/dist/core/contexts/reflection.mjs +3 -3
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/index.cjs +35 -29
- package/dist/index.mjs +36 -30
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/markdown/contexts/markdown-table.cjs +1 -1
- package/dist/markdown/contexts/markdown-table.mjs +1 -1
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/typescript-interface.d.cts +3 -3
- package/dist/typescript/components/typescript-interface.d.mts +3 -3
- package/dist/typescript/components/typescript-object.d.cts +3 -3
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/package.json +8 -7
|
@@ -16,12 +16,13 @@ function Output(props) {
|
|
|
16
16
|
"basePath"
|
|
17
17
|
]);
|
|
18
18
|
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
19
|
+
const Provider = require_core_contexts_context.unctx.use().Provider;
|
|
19
20
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
20
21
|
get basePath() {
|
|
21
22
|
return basePathRef.value;
|
|
22
23
|
},
|
|
23
24
|
get children() {
|
|
24
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
25
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(Provider, {
|
|
25
26
|
value: {
|
|
26
27
|
value: context,
|
|
27
28
|
meta: meta ?? {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
3
3
|
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
|
|
|
17
17
|
/**
|
|
18
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
19
|
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core16.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
3
3
|
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
|
|
|
17
17
|
/**
|
|
18
18
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
19
|
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core15.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unctx } from "../contexts/context.mjs";
|
|
2
2
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { Output as Output$1, Show, computed, splitProps } from "@alloy-js/core";
|
|
4
4
|
import { replacePath } from "@stryke/path/replace";
|
|
@@ -15,12 +15,13 @@ function Output(props) {
|
|
|
15
15
|
"basePath"
|
|
16
16
|
]);
|
|
17
17
|
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
18
|
+
const Provider = unctx.use().Provider;
|
|
18
19
|
return createComponent(Output$1, mergeProps(rest, {
|
|
19
20
|
get basePath() {
|
|
20
21
|
return basePathRef.value;
|
|
21
22
|
},
|
|
22
23
|
get children() {
|
|
23
|
-
return createComponent(
|
|
24
|
+
return createComponent(Provider, {
|
|
24
25
|
value: {
|
|
25
26
|
value: context,
|
|
26
27
|
meta: meta ?? {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core14 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_core14.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
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_core7.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
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_core16.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
let node_async_hooks = require("node:async_hooks");
|
|
4
|
+
let unctx = require("unctx");
|
|
3
5
|
|
|
4
6
|
//#region src/core/contexts/context.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const unctx$1 = (0, unctx.createContext)({
|
|
8
|
+
asyncContext: true,
|
|
9
|
+
AsyncLocalStorage: node_async_hooks.AsyncLocalStorage
|
|
10
|
+
});
|
|
9
11
|
/**
|
|
10
12
|
* Hook to access the Powerlines Context.
|
|
11
13
|
*
|
|
12
14
|
* @returns The Context.
|
|
13
15
|
*/
|
|
14
16
|
function usePowerlinesContext() {
|
|
15
|
-
return (0, __alloy_js_core.useContext)(
|
|
17
|
+
return (0, __alloy_js_core.useContext)(unctx$1.use());
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
18
20
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
@@ -52,7 +54,7 @@ function useMeta() {
|
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
//#endregion
|
|
55
|
-
exports.
|
|
57
|
+
exports.unctx = unctx$1;
|
|
56
58
|
exports.useMeta = useMeta;
|
|
57
59
|
exports.useMetaSafe = useMetaSafe;
|
|
58
60
|
exports.usePowerlines = usePowerlines;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentContext } from "@alloy-js/core";
|
|
2
2
|
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import * as unctx0 from "unctx";
|
|
3
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
4
5
|
|
|
5
6
|
//#region src/core/contexts/context.d.ts
|
|
@@ -31,10 +32,7 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
31
32
|
*/
|
|
32
33
|
meta: TMeta;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
* The Powerlines context used in template rendering.
|
|
36
|
-
*/
|
|
37
|
-
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
35
|
+
declare const unctx: unctx0.UseContext<ComponentContext<PowerlinesContextInterface<any, any>>>;
|
|
38
36
|
/**
|
|
39
37
|
* Hook to access the Powerlines Context.
|
|
40
38
|
*
|
|
@@ -68,4 +66,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
68
66
|
declare type __ΩMetaItem = any[];
|
|
69
67
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
70
68
|
//#endregion
|
|
71
|
-
export { MetaItem,
|
|
69
|
+
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import * as unctx0 from "unctx";
|
|
2
3
|
import { PluginContext } from "powerlines/types/context";
|
|
3
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
4
5
|
|
|
@@ -31,10 +32,7 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
31
32
|
*/
|
|
32
33
|
meta: TMeta;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
* The Powerlines context used in template rendering.
|
|
36
|
-
*/
|
|
37
|
-
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
35
|
+
declare const unctx: unctx0.UseContext<ComponentContext<PowerlinesContextInterface<any, any>>>;
|
|
38
36
|
/**
|
|
39
37
|
* Hook to access the Powerlines Context.
|
|
40
38
|
*
|
|
@@ -68,4 +66,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
68
66
|
declare type __ΩMetaItem = any[];
|
|
69
67
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
70
68
|
//#endregion
|
|
71
|
-
export { MetaItem,
|
|
69
|
+
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useContext } from "@alloy-js/core";
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
import { createContext as createContext$1 } from "unctx";
|
|
2
4
|
|
|
3
5
|
//#region src/core/contexts/context.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const unctx = createContext$1({
|
|
7
|
+
asyncContext: true,
|
|
8
|
+
AsyncLocalStorage
|
|
9
|
+
});
|
|
8
10
|
/**
|
|
9
11
|
* Hook to access the Powerlines Context.
|
|
10
12
|
*
|
|
11
13
|
* @returns The Context.
|
|
12
14
|
*/
|
|
13
15
|
function usePowerlinesContext() {
|
|
14
|
-
return useContext(
|
|
16
|
+
return useContext(unctx.use());
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
@@ -51,4 +53,4 @@ function useMeta() {
|
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
//#endregion
|
|
54
|
-
export {
|
|
56
|
+
export { unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_core_contexts_context = require('./context.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('./reflection.cjs');
|
|
3
3
|
|
|
4
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
5
4
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
6
5
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
7
6
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
8
7
|
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
8
|
+
exports.unctx = require_core_contexts_context.unctx;
|
|
9
9
|
exports.useMeta = require_core_contexts_context.useMeta;
|
|
10
10
|
exports.useMetaSafe = require_core_contexts_context.useMetaSafe;
|
|
11
11
|
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.cjs";
|
|
3
|
-
export { MetaItem,
|
|
3
|
+
export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
|
|
3
|
-
export { MetaItem,
|
|
3
|
+
export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
2
|
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -19,7 +19,7 @@ function useReflectionClass() {
|
|
|
19
19
|
/**
|
|
20
20
|
* The reflection property context used in template rendering.
|
|
21
21
|
*/
|
|
22
|
-
const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("
|
|
22
|
+
const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("ReflectionProperty");
|
|
23
23
|
/**
|
|
24
24
|
* Hook to access the Reflection Property context.
|
|
25
25
|
*
|
|
@@ -33,7 +33,7 @@ function useReflectionProperty() {
|
|
|
33
33
|
/**
|
|
34
34
|
* The reflection method context used in template rendering.
|
|
35
35
|
*/
|
|
36
|
-
const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("
|
|
36
|
+
const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("ReflectionMethod");
|
|
37
37
|
/**
|
|
38
38
|
* Hook to access the Reflection Method context.
|
|
39
39
|
*
|
|
@@ -47,7 +47,7 @@ function useReflectionMethod() {
|
|
|
47
47
|
/**
|
|
48
48
|
* The reflection parameter context used in template rendering.
|
|
49
49
|
*/
|
|
50
|
-
const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("
|
|
50
|
+
const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("ReflectionParameter");
|
|
51
51
|
/**
|
|
52
52
|
* Hook to access the Reflection Parameter context.
|
|
53
53
|
*
|
|
@@ -18,7 +18,7 @@ function useReflectionClass() {
|
|
|
18
18
|
/**
|
|
19
19
|
* The reflection property context used in template rendering.
|
|
20
20
|
*/
|
|
21
|
-
const ReflectionPropertyContext = createNamedContext("
|
|
21
|
+
const ReflectionPropertyContext = createNamedContext("ReflectionProperty");
|
|
22
22
|
/**
|
|
23
23
|
* Hook to access the Reflection Property context.
|
|
24
24
|
*
|
|
@@ -32,7 +32,7 @@ function useReflectionProperty() {
|
|
|
32
32
|
/**
|
|
33
33
|
* The reflection method context used in template rendering.
|
|
34
34
|
*/
|
|
35
|
-
const ReflectionMethodContext = createNamedContext("
|
|
35
|
+
const ReflectionMethodContext = createNamedContext("ReflectionMethod");
|
|
36
36
|
/**
|
|
37
37
|
* Hook to access the Reflection Method context.
|
|
38
38
|
*
|
|
@@ -46,7 +46,7 @@ function useReflectionMethod() {
|
|
|
46
46
|
/**
|
|
47
47
|
* The reflection parameter context used in template rendering.
|
|
48
48
|
*/
|
|
49
|
-
const ReflectionParameterContext = createNamedContext("
|
|
49
|
+
const ReflectionParameterContext = createNamedContext("ReflectionParameter");
|
|
50
50
|
/**
|
|
51
51
|
* Hook to access the Reflection Parameter context.
|
|
52
52
|
*
|
package/dist/core/index.cjs
CHANGED
|
@@ -7,13 +7,13 @@ const require_core_components_output = require('./components/output.cjs');
|
|
|
7
7
|
require('./components/index.cjs');
|
|
8
8
|
|
|
9
9
|
exports.Output = require_core_components_output.Output;
|
|
10
|
-
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
11
10
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
12
11
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
13
12
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
14
13
|
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
15
14
|
exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
|
|
16
15
|
exports.SourceFile = require_core_components_source_file.SourceFile;
|
|
16
|
+
exports.unctx = require_core_contexts_context.unctx;
|
|
17
17
|
exports.useMeta = require_core_contexts_context.useMeta;
|
|
18
18
|
exports.useMetaSafe = require_core_contexts_context.useMetaSafe;
|
|
19
19
|
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
|
|
2
2
|
import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
|
|
3
3
|
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
|
|
4
4
|
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
|
|
5
5
|
import "./components/index.cjs";
|
|
6
6
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
|
|
7
7
|
import "./contexts/index.cjs";
|
|
8
|
-
export { MetaItem, Output, OutputProps,
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem,
|
|
1
|
+
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
2
2
|
import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
|
|
3
3
|
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
|
|
4
4
|
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
|
|
5
5
|
import "./components/index.mjs";
|
|
6
6
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
|
|
7
7
|
import "./contexts/index.mjs";
|
|
8
|
-
export { MetaItem, Output, OutputProps,
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
2
2
|
import { SingleLineComment } from "./components/single-line-comment.mjs";
|
|
3
3
|
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
|
|
4
4
|
import "./contexts/index.mjs";
|
|
@@ -6,4 +6,4 @@ import { SourceFile } from "./components/source-file.mjs";
|
|
|
6
6
|
import { Output } from "./components/output.mjs";
|
|
7
7
|
import "./components/index.mjs";
|
|
8
8
|
|
|
9
|
-
export { Output,
|
|
9
|
+
export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, unctx, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_core_contexts_context = require('./core/contexts/context.cjs');
|
|
3
4
|
const require_core_components_output = require('./core/components/output.cjs');
|
|
4
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
@@ -51,44 +52,49 @@ const plugin = (options = {}) => {
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
|
-
name: "alloy:
|
|
55
|
+
name: "alloy:attach-render",
|
|
55
56
|
configResolved: {
|
|
56
57
|
order: "pre",
|
|
57
58
|
async handler() {
|
|
58
59
|
this.debug("Attaching the `render` method to the context object.");
|
|
59
60
|
this.render = async (children) => {
|
|
60
|
-
const _self$ = this;
|
|
61
61
|
const meta = {};
|
|
62
|
-
await
|
|
63
|
-
|
|
64
|
-
meta
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
62
|
+
await require_core_contexts_context.unctx.callAsync((0, __alloy_js_core.createNamedContext)("Powerlines", {
|
|
63
|
+
value: this,
|
|
64
|
+
meta
|
|
65
|
+
}), async () => {
|
|
66
|
+
const _self$ = this;
|
|
67
|
+
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
|
|
68
|
+
context: _self$,
|
|
69
|
+
meta,
|
|
70
|
+
get basePath() {
|
|
71
|
+
return _self$.workspaceConfig.workspaceRoot;
|
|
72
|
+
},
|
|
73
|
+
children
|
|
74
|
+
})), {
|
|
75
|
+
visitDirectory: (directory) => {
|
|
76
|
+
if (this.fs.existsSync(directory.path)) return;
|
|
77
|
+
this.fs.mkdirSync(directory.path);
|
|
78
|
+
},
|
|
79
|
+
visitFile: (file) => {
|
|
80
|
+
if ("contents" in file) {
|
|
81
|
+
const metadata = meta[file.path] ?? {};
|
|
82
|
+
if (metadata.kind === "builtin") {
|
|
83
|
+
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
84
|
+
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
85
|
+
skipFormat: metadata.skipFormat,
|
|
86
|
+
storage: metadata.storage,
|
|
87
|
+
extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
|
|
88
|
+
});
|
|
89
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
80
90
|
skipFormat: metadata.skipFormat,
|
|
81
91
|
storage: metadata.storage,
|
|
82
|
-
|
|
92
|
+
...metadata.typeDefinition ?? {}
|
|
83
93
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
});
|
|
89
|
-
else this.emitSync(file.contents, file.path, metadata);
|
|
90
|
-
} else this.fs.copySync(file.sourcePath, file.path);
|
|
91
|
-
}
|
|
94
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
95
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
92
98
|
});
|
|
93
99
|
};
|
|
94
100
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { unctx } from "./core/contexts/context.mjs";
|
|
1
2
|
import { Output as Output$1 } from "./core/components/output.mjs";
|
|
2
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
4
|
+
import { createNamedContext, renderAsync, traverseOutput } from "@alloy-js/core";
|
|
4
5
|
import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
|
|
5
6
|
import alloyPreset from "@alloy-js/babel-preset";
|
|
6
7
|
import babel from "@powerlines/plugin-babel";
|
|
@@ -47,44 +48,49 @@ const plugin = (options = {}) => {
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
|
-
name: "alloy:
|
|
51
|
+
name: "alloy:attach-render",
|
|
51
52
|
configResolved: {
|
|
52
53
|
order: "pre",
|
|
53
54
|
async handler() {
|
|
54
55
|
this.debug("Attaching the `render` method to the context object.");
|
|
55
56
|
this.render = async (children) => {
|
|
56
|
-
const _self$ = this;
|
|
57
57
|
const meta = {};
|
|
58
|
-
await
|
|
59
|
-
|
|
60
|
-
meta
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
58
|
+
await unctx.callAsync(createNamedContext("Powerlines", {
|
|
59
|
+
value: this,
|
|
60
|
+
meta
|
|
61
|
+
}), async () => {
|
|
62
|
+
const _self$ = this;
|
|
63
|
+
await traverseOutput(await renderAsync(createComponent(Output$1, {
|
|
64
|
+
context: _self$,
|
|
65
|
+
meta,
|
|
66
|
+
get basePath() {
|
|
67
|
+
return _self$.workspaceConfig.workspaceRoot;
|
|
68
|
+
},
|
|
69
|
+
children
|
|
70
|
+
})), {
|
|
71
|
+
visitDirectory: (directory) => {
|
|
72
|
+
if (this.fs.existsSync(directory.path)) return;
|
|
73
|
+
this.fs.mkdirSync(directory.path);
|
|
74
|
+
},
|
|
75
|
+
visitFile: (file) => {
|
|
76
|
+
if ("contents" in file) {
|
|
77
|
+
const metadata = meta[file.path] ?? {};
|
|
78
|
+
if (metadata.kind === "builtin") {
|
|
79
|
+
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
80
|
+
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
81
|
+
skipFormat: metadata.skipFormat,
|
|
82
|
+
storage: metadata.storage,
|
|
83
|
+
extension: findFileExtension(file.path)
|
|
84
|
+
});
|
|
85
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
76
86
|
skipFormat: metadata.skipFormat,
|
|
77
87
|
storage: metadata.storage,
|
|
78
|
-
|
|
88
|
+
...metadata.typeDefinition ?? {}
|
|
79
89
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
85
|
-
else this.emitSync(file.contents, file.path, metadata);
|
|
86
|
-
} else this.fs.copySync(file.sourcePath, file.path);
|
|
87
|
-
}
|
|
90
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
91
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
88
94
|
});
|
|
89
95
|
};
|
|
90
96
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core11 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-file.d.ts
|
|
6
6
|
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
|
10
10
|
* @param props - The properties for the source file.
|
|
11
11
|
* @returns The rendered source file component.
|
|
12
12
|
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
13
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core11.Children;
|
|
14
14
|
/**
|
|
15
15
|
* Renders the header for a Powerlines Typescript source file.
|
|
16
16
|
*
|
|
17
17
|
* @param props - The properties for the source file header.
|
|
18
18
|
* @returns The rendered source file header.
|
|
19
19
|
*/
|
|
20
|
-
declare function MarkdownFileHeader(props: SourceFileHeaderProps):
|
|
20
|
+
declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core11.Children;
|
|
21
21
|
declare type __ΩMarkdownFileProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
2
|
import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
6
6
|
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
|
|
|
9
9
|
/**
|
|
10
10
|
* Component that provides a context for rendering markdown tables.
|
|
11
11
|
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>):
|
|
12
|
+
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core8.Children;
|
|
13
13
|
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
14
|
width?: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Component that provides a context for rendering markdown tables.
|
|
18
18
|
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps):
|
|
19
|
+
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core8.Children;
|
|
20
20
|
/**
|
|
21
21
|
* Component that provides a context for rendering markdown tables.
|
|
22
22
|
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps):
|
|
23
|
+
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core8.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
2
|
import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
6
6
|
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
|
|
|
9
9
|
/**
|
|
10
10
|
* Component that provides a context for rendering markdown tables.
|
|
11
11
|
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>):
|
|
12
|
+
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core9.Children;
|
|
13
13
|
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
14
|
width?: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Component that provides a context for rendering markdown tables.
|
|
18
18
|
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps):
|
|
19
|
+
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core9.Children;
|
|
20
20
|
/**
|
|
21
21
|
* Component that provides a context for rendering markdown tables.
|
|
22
22
|
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps):
|
|
23
|
+
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core9.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
@@ -5,7 +5,7 @@ let __alloy_js_core = require("@alloy-js/core");
|
|
|
5
5
|
/**
|
|
6
6
|
* The Powerlines context used in template rendering.
|
|
7
7
|
*/
|
|
8
|
-
const MarkdownTableColumnContext = (0, __alloy_js_core.createNamedContext)("
|
|
8
|
+
const MarkdownTableColumnContext = (0, __alloy_js_core.createNamedContext)("MarkdownTableColumn", {});
|
|
9
9
|
/**
|
|
10
10
|
* Hook to access the Powerlines Context.
|
|
11
11
|
*
|
|
@@ -4,7 +4,7 @@ import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
|
4
4
|
/**
|
|
5
5
|
* The Powerlines context used in template rendering.
|
|
6
6
|
*/
|
|
7
|
-
const MarkdownTableColumnContext = createNamedContext("
|
|
7
|
+
const MarkdownTableColumnContext = createNamedContext("MarkdownTableColumn", {});
|
|
8
8
|
/**
|
|
9
9
|
* Hook to access the Powerlines Context.
|
|
10
10
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TSDocModuleProps } from "./tsdoc.cjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core13.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TSDocModuleProps } from "./tsdoc.mjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core8.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core1.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core7.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core14.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TSDocProps } from "./tsdoc.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Generates a TypeScript interface property for the given reflection class.
|
|
7
7
|
*/
|
|
8
|
-
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps):
|
|
8
|
+
declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core4.Children;
|
|
9
9
|
/**
|
|
10
10
|
* Generates a TypeScript interface property for the given reflection class.
|
|
11
11
|
*/
|
|
12
|
-
declare function TSDocReflectionProperty(props: TSDocProps):
|
|
12
|
+
declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core4.Children;
|
|
13
13
|
/**
|
|
14
14
|
* Generates a TypeScript interface property for the given reflection class.
|
|
15
15
|
*/
|
|
16
|
-
declare function TSDocReflectionMethod(props: TSDocProps):
|
|
16
|
+
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core4.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
3
3
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
|
|
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
|
|
|
14
14
|
/**
|
|
15
15
|
* Generates a TypeScript interface for the given reflection class.
|
|
16
16
|
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>):
|
|
17
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core2.Children;
|
|
18
18
|
/**
|
|
19
19
|
* Generates a TypeScript interface property for the given reflection class.
|
|
20
20
|
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps):
|
|
21
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core2.Children;
|
|
22
22
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
23
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
24
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
3
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
|
|
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
|
|
|
14
14
|
/**
|
|
15
15
|
* Generates a TypeScript interface for the given reflection class.
|
|
16
16
|
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>):
|
|
17
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core1.Children;
|
|
18
18
|
/**
|
|
19
19
|
* Generates a TypeScript interface property for the given reflection class.
|
|
20
20
|
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps):
|
|
21
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core1.Children;
|
|
22
22
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
23
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
24
|
//#endregion
|
|
@@ -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
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
|
|
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Generates a TypeScript object for the given reflection class.
|
|
19
19
|
*/
|
|
20
|
-
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>):
|
|
20
|
+
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core0.Children;
|
|
21
21
|
/**
|
|
22
22
|
* Generates a TypeScript object property for the given reflection class.
|
|
23
23
|
*/
|
|
24
|
-
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps):
|
|
24
|
+
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core0.Children;
|
|
25
25
|
declare type __ΩComputedRef = any[];
|
|
26
26
|
declare type __ΩTypescriptObjectProps = any[];
|
|
27
27
|
declare type __ΩTypescriptObjectPropertyProps = any[];
|
|
@@ -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 { VarDeclarationProps } from "@alloy-js/typescript";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
|
|
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Generates a TypeScript object for the given reflection class.
|
|
19
19
|
*/
|
|
20
|
-
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>):
|
|
20
|
+
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core0.Children;
|
|
21
21
|
/**
|
|
22
22
|
* Generates a TypeScript object property for the given reflection class.
|
|
23
23
|
*/
|
|
24
|
-
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps):
|
|
24
|
+
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core0.Children;
|
|
25
25
|
declare type __ΩComputedRef = any[];
|
|
26
26
|
declare type __ΩTypescriptObjectProps = any[];
|
|
27
27
|
declare type __ΩTypescriptObjectPropertyProps = any[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.117",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
"@alloy-js/json": "^0.22.0",
|
|
361
361
|
"@alloy-js/markdown": "^0.22.0",
|
|
362
362
|
"@alloy-js/typescript": "^0.22.0",
|
|
363
|
-
"@powerlines/deepkit": "^0.6.
|
|
364
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
363
|
+
"@powerlines/deepkit": "^0.6.6",
|
|
364
|
+
"@powerlines/plugin-babel": "^0.12.234",
|
|
365
365
|
"@storm-software/config-tools": "^1.189.0",
|
|
366
366
|
"@stryke/capnp": "^0.12.61",
|
|
367
367
|
"@stryke/convert": "^0.6.35",
|
|
@@ -374,13 +374,14 @@
|
|
|
374
374
|
"@stryke/types": "^0.10.34",
|
|
375
375
|
"@stryke/unique-id": "^0.3.47",
|
|
376
376
|
"defu": "^6.1.4",
|
|
377
|
-
"powerlines": "^0.37.
|
|
378
|
-
"prettier": "^3.8.1"
|
|
377
|
+
"powerlines": "^0.37.96",
|
|
378
|
+
"prettier": "^3.8.1",
|
|
379
|
+
"unctx": "^2.5.0"
|
|
379
380
|
},
|
|
380
381
|
"devDependencies": {
|
|
381
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
382
|
+
"@powerlines/plugin-plugin": "^0.12.176",
|
|
382
383
|
"@types/node": "^24.10.9"
|
|
383
384
|
},
|
|
384
385
|
"publishConfig": { "access": "public" },
|
|
385
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "fff363cfd44dc9985f5fee1062f6527049bd67e5"
|
|
386
387
|
}
|