@powerlines/plugin-alloy 0.19.4 → 0.19.6
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/index.cjs +6 -6
- package/dist/core/components/output.d.cts +5 -5
- package/dist/core/components/output.d.mts +4 -4
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/components/source-file.d.cts +5 -5
- package/dist/core/components/source-file.d.mts +4 -4
- package/dist/core/index.cjs +6 -6
- package/dist/index.cjs +2 -2
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.mts +2 -2
- package/dist/markdown/components/index.cjs +9 -9
- package/dist/markdown/components/markdown-file.cjs +10 -10
- 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-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/markdown/index.cjs +9 -9
- package/dist/typescript/components/builtin-file.cjs +6 -6
- 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.cjs +2 -2
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/index.cjs +43 -43
- package/dist/typescript/components/tsdoc-reflection.cjs +7 -7
- 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 +8 -8
- package/dist/typescript/components/typescript-interface.cjs +3 -3
- 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.cjs +3 -3
- package/dist/typescript/components/typescript-object.d.cts +3 -3
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/dist/typescript/index.cjs +43 -43
- package/package.json +139 -309
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_core_components_output = require('./output.cjs');
|
|
2
|
+
const require_core_components_single_line_comment = require('./single-line-comment.cjs');
|
|
3
|
+
const require_core_components_source_file = require('./source-file.cjs');
|
|
4
4
|
|
|
5
|
-
exports.Output =
|
|
6
|
-
exports.SingleLineComment =
|
|
7
|
-
exports.SourceFile =
|
|
5
|
+
exports.Output = require_core_components_output.Output;
|
|
6
|
+
exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
|
|
7
|
+
exports.SourceFile = require_core_components_source_file.SourceFile;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { OutputProps } from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
|
+
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps
|
|
7
|
+
interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps$1 {
|
|
8
8
|
/**
|
|
9
9
|
* The current Powerlines process context.
|
|
10
10
|
*/
|
|
@@ -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
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core4.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
|
-
export { Output, OutputProps
|
|
23
|
+
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MetaItem } from "../contexts/context.mjs";
|
|
2
2
|
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
|
-
import { OutputProps } from "@alloy-js/core";
|
|
3
|
+
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { PluginContext } from "powerlines/types/context";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps
|
|
7
|
+
interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps$1 {
|
|
8
8
|
/**
|
|
9
9
|
* The current Powerlines process context.
|
|
10
10
|
*/
|
|
@@ -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
|
|
20
|
+
declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core1.Children;
|
|
21
21
|
declare type __ΩOutputProps = any[];
|
|
22
22
|
//#endregion
|
|
23
|
-
export { Output
|
|
23
|
+
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { Output, Show, computed, splitProps } from "@alloy-js/core";
|
|
2
|
+
import { Output as Output$1, Show, computed, splitProps } from "@alloy-js/core";
|
|
3
3
|
import { replacePath } from "@stryke/path/replace";
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/output.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
8
8
|
*/
|
|
9
|
-
function Output
|
|
9
|
+
function Output(props) {
|
|
10
10
|
const [{ children, context, basePath }, rest] = splitProps(props, [
|
|
11
11
|
"children",
|
|
12
12
|
"context",
|
|
13
13
|
"basePath"
|
|
14
14
|
]);
|
|
15
15
|
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
16
|
-
return createComponent(Output, mergeProps(rest, {
|
|
16
|
+
return createComponent(Output$1, mergeProps(rest, {
|
|
17
17
|
get basePath() {
|
|
18
18
|
return basePathRef.value;
|
|
19
19
|
},
|
|
@@ -29,4 +29,4 @@ function Output$1(props) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
export { Output
|
|
32
|
+
export { Output };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { SourceFileProps } from "@alloy-js/core";
|
|
2
|
+
import * as _alloy_js_core3 from "@alloy-js/core";
|
|
3
|
+
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps
|
|
7
|
+
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* The storage preset for the output files.
|
|
10
10
|
*
|
|
@@ -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
|
|
29
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core3.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps
|
|
32
|
+
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
import { SourceFileProps } from "@alloy-js/core";
|
|
3
|
+
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps
|
|
7
|
+
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
8
8
|
/**
|
|
9
9
|
* The storage preset for the output files.
|
|
10
10
|
*
|
|
@@ -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
|
|
29
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps
|
|
32
|
+
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_core_components_output = require('./components/output.cjs');
|
|
2
|
+
const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
|
|
3
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
|
-
const
|
|
6
|
+
const require_core_components_source_file = require('./components/source-file.cjs');
|
|
7
7
|
require('./components/index.cjs');
|
|
8
8
|
|
|
9
|
-
exports.Output =
|
|
9
|
+
exports.Output = require_core_components_output.Output;
|
|
10
10
|
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
11
11
|
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
12
12
|
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
13
13
|
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
14
|
-
exports.SingleLineComment =
|
|
15
|
-
exports.SourceFile =
|
|
14
|
+
exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
|
|
15
|
+
exports.SourceFile = require_core_components_source_file.SourceFile;
|
|
16
16
|
exports.useMeta = require_core_contexts_context.useMeta;
|
|
17
17
|
exports.useMetaSafe = require_core_contexts_context.useMetaSafe;
|
|
18
18
|
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_core_components_output = require('./core/components/output.cjs');
|
|
4
4
|
const require_unctx = require('./internal/unctx.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
|
|
@@ -64,7 +64,7 @@ const plugin = (options = {}) => {
|
|
|
64
64
|
meta
|
|
65
65
|
}, async () => {
|
|
66
66
|
const _self$ = this;
|
|
67
|
-
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
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
68
|
context: _self$,
|
|
69
69
|
meta,
|
|
70
70
|
get basePath() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 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_core0.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,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_markdown_components_front_matter = require('./front-matter.cjs');
|
|
2
|
+
const require_markdown_components_markdown_file = require('./markdown-file.cjs');
|
|
3
|
+
const require_markdown_components_markdown_table = require('./markdown-table.cjs');
|
|
4
4
|
|
|
5
|
-
exports.FrontMatter =
|
|
6
|
-
exports.MarkdownFile =
|
|
7
|
-
exports.MarkdownFileHeader =
|
|
8
|
-
exports.MarkdownTable =
|
|
9
|
-
exports.MarkdownTableColumn =
|
|
10
|
-
exports.MarkdownTableColumnHeader =
|
|
5
|
+
exports.FrontMatter = require_markdown_components_front_matter.FrontMatter;
|
|
6
|
+
exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
|
|
7
|
+
exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
|
|
8
|
+
exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
|
|
9
|
+
exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
|
|
10
|
+
exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const
|
|
2
|
+
const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
3
3
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const require_core_components_source_file = require('../../core/components/source-file.cjs');
|
|
5
|
+
const require_markdown_components_front_matter = require('./front-matter.cjs');
|
|
6
6
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
7
|
let __alloy_js_core = require("@alloy-js/core");
|
|
8
8
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
@@ -22,7 +22,7 @@ function MarkdownFile(props) {
|
|
|
22
22
|
"storage",
|
|
23
23
|
"frontMatter"
|
|
24
24
|
]);
|
|
25
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
25
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
|
|
26
26
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, { frontMatter });
|
|
27
27
|
} }, rest, {
|
|
28
28
|
filetype: "md",
|
|
@@ -59,7 +59,7 @@ function MarkdownFileHeader(props) {
|
|
|
59
59
|
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks.isSetObject)(frontMatter))() && Object.keys(frontMatter).length > 0;
|
|
60
60
|
},
|
|
61
61
|
get children() {
|
|
62
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
62
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_components_front_matter.FrontMatter, { data: frontMatter });
|
|
63
63
|
}
|
|
64
64
|
}),
|
|
65
65
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
@@ -67,7 +67,7 @@ function MarkdownFileHeader(props) {
|
|
|
67
67
|
return Boolean(disableEslint);
|
|
68
68
|
},
|
|
69
69
|
get children() {
|
|
70
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
70
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
71
71
|
variant: "markdown",
|
|
72
72
|
children: "eslint-disable"
|
|
73
73
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -78,7 +78,7 @@ function MarkdownFileHeader(props) {
|
|
|
78
78
|
return Boolean(disablePrettier);
|
|
79
79
|
},
|
|
80
80
|
get children() {
|
|
81
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
81
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
82
82
|
variant: "markdown",
|
|
83
83
|
children: "prettier-ignore"
|
|
84
84
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -89,7 +89,7 @@ function MarkdownFileHeader(props) {
|
|
|
89
89
|
return Boolean(disableBiome);
|
|
90
90
|
},
|
|
91
91
|
get children() {
|
|
92
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
92
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
93
93
|
variant: "markdown",
|
|
94
94
|
children: "biome-ignore lint: disable"
|
|
95
95
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -111,14 +111,14 @@ function MarkdownFileHeader(props) {
|
|
|
111
111
|
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
112
112
|
}
|
|
113
113
|
}),
|
|
114
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
114
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
115
115
|
variant: "markdown",
|
|
116
116
|
get children() {
|
|
117
117
|
return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
|
|
118
118
|
}
|
|
119
119
|
}),
|
|
120
120
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
121
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
121
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
122
122
|
variant: "markdown",
|
|
123
123
|
children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically`
|
|
124
124
|
}),
|
|
@@ -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_core1 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_core1.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_core1.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_core5 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_core5.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_core5.Children;
|
|
25
25
|
declare type __ΩMarkdownFileProps = any[];
|
|
26
26
|
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
27
|
//#endregion
|
|
@@ -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_core15 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_core15.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_core15.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_core15.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_core2 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_core2.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_core2.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_core2.Children;
|
|
24
24
|
declare type __ΩMarkdownTableProps = any[];
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
package/dist/markdown/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_markdown_components_front_matter = require('./components/front-matter.cjs');
|
|
2
|
+
const require_markdown_components_markdown_file = require('./components/markdown-file.cjs');
|
|
3
3
|
const require_markdown_contexts_markdown_table = require('./contexts/markdown-table.cjs');
|
|
4
|
-
const
|
|
4
|
+
const require_markdown_components_markdown_table = require('./components/markdown-table.cjs');
|
|
5
5
|
require('./components/index.cjs');
|
|
6
6
|
require('./contexts/index.cjs');
|
|
7
7
|
|
|
8
|
-
exports.FrontMatter =
|
|
9
|
-
exports.MarkdownFile =
|
|
10
|
-
exports.MarkdownFileHeader =
|
|
11
|
-
exports.MarkdownTable =
|
|
12
|
-
exports.MarkdownTableColumn =
|
|
8
|
+
exports.FrontMatter = require_markdown_components_front_matter.FrontMatter;
|
|
9
|
+
exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
|
|
10
|
+
exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
|
|
11
|
+
exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
|
|
12
|
+
exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
|
|
13
13
|
exports.MarkdownTableColumnContext = require_markdown_contexts_markdown_table.MarkdownTableColumnContext;
|
|
14
|
-
exports.MarkdownTableColumnHeader =
|
|
14
|
+
exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
|
|
15
15
|
exports.MarkdownTableContext = require_markdown_contexts_markdown_table.MarkdownTableContext;
|
|
16
16
|
exports.useMarkdownTable = require_markdown_contexts_markdown_table.useMarkdownTable;
|
|
17
17
|
exports.useMarkdownTableColumn = require_markdown_contexts_markdown_table.useMarkdownTableColumn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
4
|
+
const require_typescript_components_typescript_file = require('./typescript-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");
|
|
7
7
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -26,17 +26,17 @@ function BuiltinFile(props) {
|
|
|
26
26
|
]);
|
|
27
27
|
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
28
28
|
const path = (0, __alloy_js_core.computed)(() => (0, __stryke_path_replace.replacePath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? id : (0, __stryke_path_replace.replaceExtension)(id)}${(0, __stryke_path_file_path_fns.hasFileExtension)(id) && !(0, __stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
|
|
29
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
29
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
30
30
|
get header() {
|
|
31
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
31
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeader, {
|
|
32
32
|
get header() {
|
|
33
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
33
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocModule, {
|
|
34
34
|
name: id,
|
|
35
35
|
children: description
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
get children() {
|
|
39
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
39
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeaderImports, {
|
|
40
40
|
imports,
|
|
41
41
|
builtinImports
|
|
42
42
|
});
|
|
@@ -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_core14 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_core14.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_core13 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_core13.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
6
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -27,7 +27,7 @@ function EntryFile(props) {
|
|
|
27
27
|
]);
|
|
28
28
|
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
29
29
|
const fullPath = (0, __alloy_js_core.computed)(() => context ? (0, __stryke_path_append.appendPath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? path : (0, __stryke_path_replace.replaceExtension)(path)}${tsx ? ".tsx" : (0, __stryke_path_file_path_fns.hasFileExtension)(path) ? "" : ".ts"}`, (0, __stryke_path_replace.replacePath)(context.entryPath, context.workspaceConfig.workspaceRoot)) : path);
|
|
30
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
30
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
31
31
|
get path() {
|
|
32
32
|
return fullPath.value;
|
|
33
33
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core7 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_core7.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core12 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_core12.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|