@powerlines/plugin-alloy 0.19.2 → 0.19.3
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 +15 -5
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.mjs +15 -5
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/contexts/context.cjs +12 -6
- package/dist/core/contexts/context.d.cts +11 -6
- package/dist/core/contexts/context.d.mts +11 -6
- package/dist/core/contexts/context.mjs +11 -7
- package/dist/core/contexts/index.cjs +1 -0
- 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/index.cjs +2 -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 +28 -34
- package/dist/index.mjs +28 -34
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.mts +2 -2
- package/dist/markdown/components/markdown-file.cjs +1 -1
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-file.mjs +1 -1
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- 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/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/typescript-file.cjs +1 -1
- package/dist/typescript/components/typescript-file.mjs +1 -1
- 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 +2 -2
- package/dist/internal/unctx.cjs +0 -7
- package/dist/internal/unctx.mjs +0 -7
- package/dist/node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.cjs +0 -83
- package/dist/node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs +0 -82
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_contexts_context = require('../contexts/context.cjs');
|
|
2
3
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
4
|
let __alloy_js_core = require("@alloy-js/core");
|
|
4
5
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
@@ -8,9 +9,10 @@ let __stryke_path_replace = require("@stryke/path/replace");
|
|
|
8
9
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
10
|
*/
|
|
10
11
|
function Output(props) {
|
|
11
|
-
const [{ children, context, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
12
|
+
const [{ children, context, meta, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
12
13
|
"children",
|
|
13
14
|
"context",
|
|
15
|
+
"meta",
|
|
14
16
|
"basePath"
|
|
15
17
|
]);
|
|
16
18
|
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
@@ -19,11 +21,19 @@ function Output(props) {
|
|
|
19
21
|
return basePathRef.value;
|
|
20
22
|
},
|
|
21
23
|
get children() {
|
|
22
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
|
|
25
|
+
value: {
|
|
26
|
+
value: context,
|
|
27
|
+
meta
|
|
25
28
|
},
|
|
26
|
-
children
|
|
29
|
+
get children() {
|
|
30
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return Boolean(context);
|
|
33
|
+
},
|
|
34
|
+
children
|
|
35
|
+
});
|
|
36
|
+
}
|
|
27
37
|
});
|
|
28
38
|
}
|
|
29
39
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
3
3
|
import { OutputProps } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ interface OutputProps$1<TContext extends PluginContext = PluginContext, TMeta ex
|
|
|
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$1<TContext, TMeta>):
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps$1<TContext, TMeta>): _alloy_js_core17.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Output, OutputProps$1 as OutputProps, __ΩOutputProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
1
2
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { Output, Show, computed, splitProps } from "@alloy-js/core";
|
|
3
4
|
import { replacePath } from "@stryke/path/replace";
|
|
@@ -7,9 +8,10 @@ import { replacePath } from "@stryke/path/replace";
|
|
|
7
8
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
8
9
|
*/
|
|
9
10
|
function Output$1(props) {
|
|
10
|
-
const [{ children, context, basePath }, rest] = splitProps(props, [
|
|
11
|
+
const [{ children, context, meta, basePath }, rest] = splitProps(props, [
|
|
11
12
|
"children",
|
|
12
13
|
"context",
|
|
14
|
+
"meta",
|
|
13
15
|
"basePath"
|
|
14
16
|
]);
|
|
15
17
|
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
@@ -18,11 +20,19 @@ function Output$1(props) {
|
|
|
18
20
|
return basePathRef.value;
|
|
19
21
|
},
|
|
20
22
|
get children() {
|
|
21
|
-
return createComponent(
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
return createComponent(PowerlinesContext.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
value: context,
|
|
26
|
+
meta
|
|
24
27
|
},
|
|
25
|
-
children
|
|
28
|
+
get children() {
|
|
29
|
+
return createComponent(Show, {
|
|
30
|
+
get when() {
|
|
31
|
+
return Boolean(context);
|
|
32
|
+
},
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
}
|
|
26
36
|
});
|
|
27
37
|
}
|
|
28
38
|
}));
|
|
@@ -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.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
@@ -26,7 +26,7 @@ type SourceFileProps$1 = SourceFileProps & 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$1):
|
|
29
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core16.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFile, SourceFileProps$1 as SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
2
3
|
|
|
3
4
|
//#region src/core/contexts/context.ts
|
|
4
5
|
/**
|
|
6
|
+
* The Powerlines context used in template rendering.
|
|
7
|
+
*/
|
|
8
|
+
const PowerlinesContext = (0, __alloy_js_core.createNamedContext)("Powerlines");
|
|
9
|
+
/**
|
|
5
10
|
* Hook to access the Powerlines Context.
|
|
6
11
|
*
|
|
7
12
|
* @returns The Context.
|
|
8
13
|
*/
|
|
9
14
|
function usePowerlinesContext() {
|
|
10
|
-
return
|
|
15
|
+
return (0, __alloy_js_core.useContext)(PowerlinesContext);
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
18
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
14
19
|
*
|
|
15
|
-
* @returns The Powerlines context or
|
|
20
|
+
* @returns The Powerlines context or undefined if not set.
|
|
16
21
|
*/
|
|
17
22
|
function usePowerlinesSafe() {
|
|
18
|
-
return usePowerlinesContext()?.value
|
|
23
|
+
return usePowerlinesContext()?.value;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
@@ -30,10 +35,10 @@ function usePowerlines() {
|
|
|
30
35
|
/**
|
|
31
36
|
* Hook to safely access the render context's metadata.
|
|
32
37
|
*
|
|
33
|
-
* @returns The Powerlines context or
|
|
38
|
+
* @returns The Powerlines context or undefined if not set.
|
|
34
39
|
*/
|
|
35
40
|
function useMetaSafe() {
|
|
36
|
-
return usePowerlinesContext()?.meta
|
|
41
|
+
return usePowerlinesContext()?.meta;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Hook to access the render context's metadata.
|
|
@@ -47,6 +52,7 @@ function useMeta() {
|
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
//#endregion
|
|
55
|
+
exports.PowerlinesContext = PowerlinesContext;
|
|
50
56
|
exports.useMeta = useMeta;
|
|
51
57
|
exports.useMetaSafe = useMetaSafe;
|
|
52
58
|
exports.usePowerlines = usePowerlines;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
1
2
|
import { PluginContext } from "powerlines/types/context";
|
|
2
3
|
import { StoragePreset } from "powerlines/types/fs";
|
|
3
4
|
|
|
@@ -30,18 +31,22 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
30
31
|
*/
|
|
31
32
|
meta: TMeta;
|
|
32
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The Powerlines context used in template rendering.
|
|
36
|
+
*/
|
|
37
|
+
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
33
38
|
/**
|
|
34
39
|
* Hook to access the Powerlines Context.
|
|
35
40
|
*
|
|
36
41
|
* @returns The Context.
|
|
37
42
|
*/
|
|
38
|
-
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): PowerlinesContextInterface<TContext, TMeta> |
|
|
43
|
+
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): PowerlinesContextInterface<TContext, TMeta> | undefined;
|
|
39
44
|
/**
|
|
40
45
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
41
46
|
*
|
|
42
|
-
* @returns The Powerlines context or
|
|
47
|
+
* @returns The Powerlines context or undefined if not set.
|
|
43
48
|
*/
|
|
44
|
-
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext |
|
|
49
|
+
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
45
50
|
/**
|
|
46
51
|
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
47
52
|
*
|
|
@@ -51,9 +56,9 @@ declare function usePowerlines<TContext extends PluginContext = PluginContext>()
|
|
|
51
56
|
/**
|
|
52
57
|
* Hook to safely access the render context's metadata.
|
|
53
58
|
*
|
|
54
|
-
* @returns The Powerlines context or
|
|
59
|
+
* @returns The Powerlines context or undefined if not set.
|
|
55
60
|
*/
|
|
56
|
-
declare function useMetaSafe<TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): TMeta |
|
|
61
|
+
declare function useMetaSafe<TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): TMeta | undefined;
|
|
57
62
|
/**
|
|
58
63
|
* Hook to access the render context's metadata.
|
|
59
64
|
*
|
|
@@ -63,4 +68,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
63
68
|
declare type __ΩMetaItem = any[];
|
|
64
69
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
65
70
|
//#endregion
|
|
66
|
-
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
71
|
+
export { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
1
2
|
import { PluginContext } from "powerlines/types/context";
|
|
2
3
|
import { StoragePreset } from "powerlines/types/fs";
|
|
3
4
|
|
|
@@ -30,18 +31,22 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
|
|
|
30
31
|
*/
|
|
31
32
|
meta: TMeta;
|
|
32
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The Powerlines context used in template rendering.
|
|
36
|
+
*/
|
|
37
|
+
declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
|
|
33
38
|
/**
|
|
34
39
|
* Hook to access the Powerlines Context.
|
|
35
40
|
*
|
|
36
41
|
* @returns The Context.
|
|
37
42
|
*/
|
|
38
|
-
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): PowerlinesContextInterface<TContext, TMeta> |
|
|
43
|
+
declare function usePowerlinesContext<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): PowerlinesContextInterface<TContext, TMeta> | undefined;
|
|
39
44
|
/**
|
|
40
45
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
41
46
|
*
|
|
42
|
-
* @returns The Powerlines context or
|
|
47
|
+
* @returns The Powerlines context or undefined if not set.
|
|
43
48
|
*/
|
|
44
|
-
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext |
|
|
49
|
+
declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
|
|
45
50
|
/**
|
|
46
51
|
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
47
52
|
*
|
|
@@ -51,9 +56,9 @@ declare function usePowerlines<TContext extends PluginContext = PluginContext>()
|
|
|
51
56
|
/**
|
|
52
57
|
* Hook to safely access the render context's metadata.
|
|
53
58
|
*
|
|
54
|
-
* @returns The Powerlines context or
|
|
59
|
+
* @returns The Powerlines context or undefined if not set.
|
|
55
60
|
*/
|
|
56
|
-
declare function useMetaSafe<TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): TMeta |
|
|
61
|
+
declare function useMetaSafe<TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(): TMeta | undefined;
|
|
57
62
|
/**
|
|
58
63
|
* Hook to access the render context's metadata.
|
|
59
64
|
*
|
|
@@ -63,4 +68,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
|
|
|
63
68
|
declare type __ΩMetaItem = any[];
|
|
64
69
|
declare type __ΩPowerlinesContextInterface = any[];
|
|
65
70
|
//#endregion
|
|
66
|
-
export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
71
|
+
export { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/core/contexts/context.ts
|
|
4
4
|
/**
|
|
5
|
+
* The Powerlines context used in template rendering.
|
|
6
|
+
*/
|
|
7
|
+
const PowerlinesContext = createNamedContext("Powerlines");
|
|
8
|
+
/**
|
|
5
9
|
* Hook to access the Powerlines Context.
|
|
6
10
|
*
|
|
7
11
|
* @returns The Context.
|
|
8
12
|
*/
|
|
9
13
|
function usePowerlinesContext() {
|
|
10
|
-
return
|
|
14
|
+
return useContext(PowerlinesContext);
|
|
11
15
|
}
|
|
12
16
|
/**
|
|
13
17
|
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
14
18
|
*
|
|
15
|
-
* @returns The Powerlines context or
|
|
19
|
+
* @returns The Powerlines context or undefined if not set.
|
|
16
20
|
*/
|
|
17
21
|
function usePowerlinesSafe() {
|
|
18
|
-
return usePowerlinesContext()?.value
|
|
22
|
+
return usePowerlinesContext()?.value;
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
@@ -30,10 +34,10 @@ function usePowerlines() {
|
|
|
30
34
|
/**
|
|
31
35
|
* Hook to safely access the render context's metadata.
|
|
32
36
|
*
|
|
33
|
-
* @returns The Powerlines context or
|
|
37
|
+
* @returns The Powerlines context or undefined if not set.
|
|
34
38
|
*/
|
|
35
39
|
function useMetaSafe() {
|
|
36
|
-
return usePowerlinesContext()?.meta
|
|
40
|
+
return usePowerlinesContext()?.meta;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
* Hook to access the render context's metadata.
|
|
@@ -47,4 +51,4 @@ function useMeta() {
|
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
//#endregion
|
|
50
|
-
export { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
54
|
+
export { PowerlinesContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,6 +1,7 @@
|
|
|
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;
|
|
4
5
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
5
6
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
6
7
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
|
|
1
|
+
import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, 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, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
3
|
+
export { MetaItem, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
1
|
+
import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, 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, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
3
|
+
export { MetaItem, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
1
|
+
import { PowerlinesContext, 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 { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
4
|
+
export { PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
const require_core_contexts_context = require('./contexts/context.cjs');
|
|
1
2
|
const require_output = require('./components/output.cjs');
|
|
2
3
|
const require_single_line_comment = require('./components/single-line-comment.cjs');
|
|
3
|
-
const require_core_contexts_context = require('./contexts/context.cjs');
|
|
4
4
|
const require_core_contexts_reflection = require('./contexts/reflection.cjs');
|
|
5
5
|
require('./contexts/index.cjs');
|
|
6
6
|
const require_source_file = require('./components/source-file.cjs');
|
|
7
7
|
require('./components/index.cjs');
|
|
8
8
|
|
|
9
9
|
exports.Output = require_output.Output;
|
|
10
|
+
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
10
11
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
11
12
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
12
13
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
|
|
1
|
+
import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, 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, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
1
|
+
import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, 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, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
8
|
+
export { MetaItem, Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { PowerlinesContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
1
2
|
import { Output } from "./components/output.mjs";
|
|
2
3
|
import { SingleLineComment } from "./components/single-line-comment.mjs";
|
|
3
|
-
import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
|
|
4
4
|
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
|
|
5
5
|
import "./contexts/index.mjs";
|
|
6
6
|
import { SourceFile } from "./components/source-file.mjs";
|
|
7
7
|
import "./components/index.mjs";
|
|
8
8
|
|
|
9
|
-
export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
9
|
+
export { Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
3
|
const require_output = require('./core/components/output.cjs');
|
|
4
|
-
const require_unctx = require('./internal/unctx.cjs');
|
|
5
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
5
|
let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
|
|
7
6
|
__alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
|
|
@@ -59,43 +58,38 @@ const plugin = (options = {}) => {
|
|
|
59
58
|
async handler() {
|
|
60
59
|
this.debug("Attaching the `render` method to the context object.");
|
|
61
60
|
this.render = async (children) => {
|
|
61
|
+
const _self$ = this;
|
|
62
62
|
const meta = {};
|
|
63
|
-
await
|
|
64
|
-
|
|
65
|
-
meta
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if ("contents" in file) {
|
|
82
|
-
const metadata = meta[file.path] ?? {};
|
|
83
|
-
if (metadata.kind === "builtin") {
|
|
84
|
-
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
85
|
-
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
86
|
-
skipFormat: metadata.skipFormat,
|
|
87
|
-
storage: metadata.storage,
|
|
88
|
-
extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
|
|
89
|
-
});
|
|
90
|
-
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
63
|
+
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
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, {
|
|
91
81
|
skipFormat: metadata.skipFormat,
|
|
92
82
|
storage: metadata.storage,
|
|
93
|
-
|
|
83
|
+
extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
|
|
94
84
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
85
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
86
|
+
skipFormat: metadata.skipFormat,
|
|
87
|
+
storage: metadata.storage,
|
|
88
|
+
...metadata.typeDefinition ?? {}
|
|
89
|
+
});
|
|
90
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
91
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
92
|
+
}
|
|
99
93
|
});
|
|
100
94
|
};
|
|
101
95
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Output as Output$1 } from "./core/components/output.mjs";
|
|
2
|
-
import { unctx } from "./internal/unctx.mjs";
|
|
3
2
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
3
|
import alloyPreset from "@alloy-js/babel-preset";
|
|
5
4
|
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
@@ -55,43 +54,38 @@ const plugin = (options = {}) => {
|
|
|
55
54
|
async handler() {
|
|
56
55
|
this.debug("Attaching the `render` method to the context object.");
|
|
57
56
|
this.render = async (children) => {
|
|
57
|
+
const _self$ = this;
|
|
58
58
|
const meta = {};
|
|
59
|
-
await
|
|
60
|
-
|
|
61
|
-
meta
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if ("contents" in file) {
|
|
78
|
-
const metadata = meta[file.path] ?? {};
|
|
79
|
-
if (metadata.kind === "builtin") {
|
|
80
|
-
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
81
|
-
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
82
|
-
skipFormat: metadata.skipFormat,
|
|
83
|
-
storage: metadata.storage,
|
|
84
|
-
extension: findFileExtension(file.path)
|
|
85
|
-
});
|
|
86
|
-
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
59
|
+
await traverseOutput(await renderAsync(createComponent(Output$1, {
|
|
60
|
+
context: _self$,
|
|
61
|
+
meta,
|
|
62
|
+
get basePath() {
|
|
63
|
+
return _self$.workspaceConfig.workspaceRoot;
|
|
64
|
+
},
|
|
65
|
+
children
|
|
66
|
+
})), {
|
|
67
|
+
visitDirectory: (directory) => {
|
|
68
|
+
if (this.fs.existsSync(directory.path)) return;
|
|
69
|
+
this.fs.mkdirSync(directory.path);
|
|
70
|
+
},
|
|
71
|
+
visitFile: (file) => {
|
|
72
|
+
if ("contents" in file) {
|
|
73
|
+
const metadata = meta[file.path] ?? {};
|
|
74
|
+
if (metadata.kind === "builtin") {
|
|
75
|
+
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
76
|
+
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
87
77
|
skipFormat: metadata.skipFormat,
|
|
88
78
|
storage: metadata.storage,
|
|
89
|
-
|
|
79
|
+
extension: findFileExtension(file.path)
|
|
90
80
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
81
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
82
|
+
skipFormat: metadata.skipFormat,
|
|
83
|
+
storage: metadata.storage,
|
|
84
|
+
...metadata.typeDefinition ?? {}
|
|
85
|
+
});
|
|
86
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
87
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
88
|
+
}
|
|
95
89
|
});
|
|
96
90
|
};
|
|
97
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/markdown/components/front-matter.d.ts
|
|
4
4
|
interface FrontMatterProps {
|
|
@@ -9,7 +9,7 @@ interface FrontMatterProps {
|
|
|
9
9
|
*
|
|
10
10
|
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
11
|
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps):
|
|
12
|
+
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core4.Children;
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/markdown/components/front-matter.d.ts
|
|
4
4
|
interface FrontMatterProps {
|
|
@@ -9,7 +9,7 @@ interface FrontMatterProps {
|
|
|
9
9
|
*
|
|
10
10
|
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
11
|
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps):
|
|
12
|
+
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
3
2
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
+
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
4
4
|
const require_source_file = require('../../core/components/source-file.cjs');
|
|
5
5
|
const require_front_matter = require('./front-matter.cjs');
|
|
6
6
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
3
|
import { FrontMatterProps } from "./front-matter.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
//#region src/markdown/components/markdown-file.d.ts
|
|
7
7
|
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
@@ -11,7 +11,7 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps &
|
|
|
11
11
|
* @param props - The properties for the source file.
|
|
12
12
|
* @returns The rendered source file component.
|
|
13
13
|
*/
|
|
14
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core2.Children;
|
|
15
15
|
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
16
|
frontMatter?: FrontMatterProps["data"];
|
|
17
17
|
};
|
|
@@ -21,7 +21,7 @@ type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
|
21
21
|
* @param props - The properties for the source file header.
|
|
22
22
|
* @returns The rendered source file header.
|
|
23
23
|
*/
|
|
24
|
-
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps):
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core2.Children;
|
|
25
25
|
declare type __ΩMarkdownFileProps = any[];
|
|
26
26
|
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
27
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
3
|
import { FrontMatterProps } from "./front-matter.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
//#region src/markdown/components/markdown-file.d.ts
|
|
7
7
|
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
@@ -11,7 +11,7 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps &
|
|
|
11
11
|
* @param props - The properties for the source file.
|
|
12
12
|
* @returns The rendered source file component.
|
|
13
13
|
*/
|
|
14
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core9.Children;
|
|
15
15
|
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
16
|
frontMatter?: FrontMatterProps["data"];
|
|
17
17
|
};
|
|
@@ -21,7 +21,7 @@ type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
|
21
21
|
* @param props - The properties for the source file header.
|
|
22
22
|
* @returns The rendered source file header.
|
|
23
23
|
*/
|
|
24
|
-
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps):
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core9.Children;
|
|
25
25
|
declare type __ΩMarkdownFileProps = any[];
|
|
26
26
|
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
27
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
2
1
|
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
+
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
3
3
|
import { SourceFile } from "../../core/components/source-file.mjs";
|
|
4
4
|
import { FrontMatter } from "./front-matter.mjs";
|
|
5
5
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
@@ -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_core11 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_core11.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_core11.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_core11.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
@@ -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_core5 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_core5.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_core14 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_core14.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_core2 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_core2.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_core9 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_core9.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_core6 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_core6.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_core6.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_core6.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TSDocProps } from "./tsdoc.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core3 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_core3.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_core3.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_core3.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
3
2
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
+
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
4
4
|
const require_source_file = require('../../core/components/source-file.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
2
1
|
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
+
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
3
3
|
import { SourceFile } from "../../core/components/source-file.mjs";
|
|
4
4
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import { For, Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core10 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_core10.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_core10.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_core16 from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
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_core16.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_core16.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_core12 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_core12.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_core12.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_core14 from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
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_core14.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_core14.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.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -383,5 +383,5 @@
|
|
|
383
383
|
"@types/node": "^24.10.9"
|
|
384
384
|
},
|
|
385
385
|
"publishConfig": { "access": "public" },
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "72c01e3d3bd50d3de487c8c1e38bf4656654e55e"
|
|
387
387
|
}
|
package/dist/internal/unctx.cjs
DELETED
package/dist/internal/unctx.mjs
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs
|
|
3
|
-
function createContext(opts = {}) {
|
|
4
|
-
let currentInstance;
|
|
5
|
-
let isSingleton = false;
|
|
6
|
-
const checkConflict = (instance) => {
|
|
7
|
-
if (currentInstance && currentInstance !== instance) throw new Error("Context conflict");
|
|
8
|
-
};
|
|
9
|
-
let als;
|
|
10
|
-
if (opts.asyncContext) {
|
|
11
|
-
const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
|
|
12
|
-
if (_AsyncLocalStorage) als = new _AsyncLocalStorage();
|
|
13
|
-
else console.warn("[unctx] `AsyncLocalStorage` is not provided.");
|
|
14
|
-
}
|
|
15
|
-
const _getCurrentInstance = () => {
|
|
16
|
-
if (als) {
|
|
17
|
-
const instance = als.getStore();
|
|
18
|
-
if (instance !== void 0) return instance;
|
|
19
|
-
}
|
|
20
|
-
return currentInstance;
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
use: () => {
|
|
24
|
-
const _instance = _getCurrentInstance();
|
|
25
|
-
if (_instance === void 0) throw new Error("Context is not available");
|
|
26
|
-
return _instance;
|
|
27
|
-
},
|
|
28
|
-
tryUse: () => {
|
|
29
|
-
return _getCurrentInstance();
|
|
30
|
-
},
|
|
31
|
-
set: (instance, replace) => {
|
|
32
|
-
if (!replace) checkConflict(instance);
|
|
33
|
-
currentInstance = instance;
|
|
34
|
-
isSingleton = true;
|
|
35
|
-
},
|
|
36
|
-
unset: () => {
|
|
37
|
-
currentInstance = void 0;
|
|
38
|
-
isSingleton = false;
|
|
39
|
-
},
|
|
40
|
-
call: (instance, callback) => {
|
|
41
|
-
checkConflict(instance);
|
|
42
|
-
currentInstance = instance;
|
|
43
|
-
try {
|
|
44
|
-
return als ? als.run(instance, callback) : callback();
|
|
45
|
-
} finally {
|
|
46
|
-
if (!isSingleton) currentInstance = void 0;
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
async callAsync(instance, callback) {
|
|
50
|
-
currentInstance = instance;
|
|
51
|
-
const onRestore = () => {
|
|
52
|
-
currentInstance = instance;
|
|
53
|
-
};
|
|
54
|
-
const onLeave = () => currentInstance === instance ? onRestore : void 0;
|
|
55
|
-
asyncHandlers.add(onLeave);
|
|
56
|
-
try {
|
|
57
|
-
const r = als ? als.run(instance, callback) : callback();
|
|
58
|
-
if (!isSingleton) currentInstance = void 0;
|
|
59
|
-
return await r;
|
|
60
|
-
} finally {
|
|
61
|
-
asyncHandlers.delete(onLeave);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function createNamespace(defaultOpts = {}) {
|
|
67
|
-
const contexts = {};
|
|
68
|
-
return { get(key, opts = {}) {
|
|
69
|
-
if (!contexts[key]) contexts[key] = createContext({
|
|
70
|
-
...defaultOpts,
|
|
71
|
-
...opts
|
|
72
|
-
});
|
|
73
|
-
return contexts[key];
|
|
74
|
-
} };
|
|
75
|
-
}
|
|
76
|
-
const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {};
|
|
77
|
-
const globalKey = "__unctx__";
|
|
78
|
-
const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
|
|
79
|
-
const asyncHandlersKey = "__unctx_async_handlers__";
|
|
80
|
-
const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
exports.createContext = createContext;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs
|
|
2
|
-
function createContext(opts = {}) {
|
|
3
|
-
let currentInstance;
|
|
4
|
-
let isSingleton = false;
|
|
5
|
-
const checkConflict = (instance) => {
|
|
6
|
-
if (currentInstance && currentInstance !== instance) throw new Error("Context conflict");
|
|
7
|
-
};
|
|
8
|
-
let als;
|
|
9
|
-
if (opts.asyncContext) {
|
|
10
|
-
const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
|
|
11
|
-
if (_AsyncLocalStorage) als = new _AsyncLocalStorage();
|
|
12
|
-
else console.warn("[unctx] `AsyncLocalStorage` is not provided.");
|
|
13
|
-
}
|
|
14
|
-
const _getCurrentInstance = () => {
|
|
15
|
-
if (als) {
|
|
16
|
-
const instance = als.getStore();
|
|
17
|
-
if (instance !== void 0) return instance;
|
|
18
|
-
}
|
|
19
|
-
return currentInstance;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
use: () => {
|
|
23
|
-
const _instance = _getCurrentInstance();
|
|
24
|
-
if (_instance === void 0) throw new Error("Context is not available");
|
|
25
|
-
return _instance;
|
|
26
|
-
},
|
|
27
|
-
tryUse: () => {
|
|
28
|
-
return _getCurrentInstance();
|
|
29
|
-
},
|
|
30
|
-
set: (instance, replace) => {
|
|
31
|
-
if (!replace) checkConflict(instance);
|
|
32
|
-
currentInstance = instance;
|
|
33
|
-
isSingleton = true;
|
|
34
|
-
},
|
|
35
|
-
unset: () => {
|
|
36
|
-
currentInstance = void 0;
|
|
37
|
-
isSingleton = false;
|
|
38
|
-
},
|
|
39
|
-
call: (instance, callback) => {
|
|
40
|
-
checkConflict(instance);
|
|
41
|
-
currentInstance = instance;
|
|
42
|
-
try {
|
|
43
|
-
return als ? als.run(instance, callback) : callback();
|
|
44
|
-
} finally {
|
|
45
|
-
if (!isSingleton) currentInstance = void 0;
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
async callAsync(instance, callback) {
|
|
49
|
-
currentInstance = instance;
|
|
50
|
-
const onRestore = () => {
|
|
51
|
-
currentInstance = instance;
|
|
52
|
-
};
|
|
53
|
-
const onLeave = () => currentInstance === instance ? onRestore : void 0;
|
|
54
|
-
asyncHandlers.add(onLeave);
|
|
55
|
-
try {
|
|
56
|
-
const r = als ? als.run(instance, callback) : callback();
|
|
57
|
-
if (!isSingleton) currentInstance = void 0;
|
|
58
|
-
return await r;
|
|
59
|
-
} finally {
|
|
60
|
-
asyncHandlers.delete(onLeave);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function createNamespace(defaultOpts = {}) {
|
|
66
|
-
const contexts = {};
|
|
67
|
-
return { get(key, opts = {}) {
|
|
68
|
-
if (!contexts[key]) contexts[key] = createContext({
|
|
69
|
-
...defaultOpts,
|
|
70
|
-
...opts
|
|
71
|
-
});
|
|
72
|
-
return contexts[key];
|
|
73
|
-
} };
|
|
74
|
-
}
|
|
75
|
-
const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {};
|
|
76
|
-
const globalKey = "__unctx__";
|
|
77
|
-
const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
|
|
78
|
-
const asyncHandlersKey = "__unctx_async_handlers__";
|
|
79
|
-
const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
|
|
80
|
-
|
|
81
|
-
//#endregion
|
|
82
|
-
export { createContext };
|