@powerlines/plugin-alloy 0.18.119 → 0.19.1
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 +5 -5
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +5 -5
- package/dist/core/components/source-file.d.mts +4 -4
- package/dist/core/contexts/context.cjs +5 -5
- package/dist/core/contexts/context.d.cts +5 -5
- package/dist/core/contexts/context.d.mts +5 -5
- package/dist/core/contexts/context.mjs +5 -5
- package/dist/core/index.cjs +6 -6
- package/dist/index.cjs +32 -32
- package/dist/index.mjs +31 -31
- package/dist/internal/unctx.cjs +3 -8
- package/dist/internal/unctx.mjs +2 -6
- package/dist/markdown/components/front-matter.cjs +28 -0
- package/dist/markdown/components/front-matter.d.cts +15 -0
- package/dist/markdown/components/front-matter.d.mts +15 -0
- package/dist/markdown/components/front-matter.mjs +27 -0
- package/dist/markdown/components/index.cjs +9 -7
- package/dist/markdown/components/index.d.cts +3 -2
- package/dist/markdown/components/index.d.mts +3 -2
- package/dist/markdown/components/index.mjs +2 -1
- package/dist/markdown/components/markdown-file.cjs +28 -13
- package/dist/markdown/components/markdown-file.d.cts +10 -5
- package/dist/markdown/components/markdown-file.d.mts +10 -5
- package/dist/markdown/components/markdown-file.mjs +21 -6
- 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 -7
- package/dist/markdown/index.d.cts +3 -2
- package/dist/markdown/index.d.mts +3 -2
- package/dist/markdown/index.mjs +2 -1
- package/dist/node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.cjs +83 -0
- package/dist/node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs +82 -0
- 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/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 +16 -16
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./front-matter.mjs";
|
|
2
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./markdown-file.mjs";
|
|
2
3
|
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown-table.mjs";
|
|
3
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
4
|
+
export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { FrontMatter } from "./front-matter.mjs";
|
|
1
2
|
import { MarkdownFile, MarkdownFileHeader } from "./markdown-file.mjs";
|
|
2
3
|
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown-table.mjs";
|
|
3
4
|
|
|
4
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
5
|
+
export { FrontMatter, MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const
|
|
2
|
+
const require_single_line_comment = require('../../core/components/single-line-comment.cjs');
|
|
3
3
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
4
|
-
const
|
|
4
|
+
const require_source_file = require('../../core/components/source-file.cjs');
|
|
5
|
+
const require_front_matter = require('./front-matter.cjs');
|
|
5
6
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
7
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
8
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
8
9
|
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
10
|
+
let __stryke_type_checks = require("@stryke/type-checks");
|
|
9
11
|
|
|
10
12
|
//#region src/markdown/components/markdown-file.tsx
|
|
11
13
|
/**
|
|
@@ -15,9 +17,13 @@ let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
|
15
17
|
* @returns The rendered source file component.
|
|
16
18
|
*/
|
|
17
19
|
function MarkdownFile(props) {
|
|
18
|
-
const [{ children, storage }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
const [{ children, storage, frontMatter }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
21
|
+
"children",
|
|
22
|
+
"storage",
|
|
23
|
+
"frontMatter"
|
|
24
|
+
]);
|
|
25
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
|
|
26
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, { frontMatter });
|
|
21
27
|
} }, rest, {
|
|
22
28
|
filetype: "md",
|
|
23
29
|
reference: __alloy_js_markdown.Link,
|
|
@@ -39,20 +45,29 @@ function MarkdownFile(props) {
|
|
|
39
45
|
* @returns The rendered source file header.
|
|
40
46
|
*/
|
|
41
47
|
function MarkdownFileHeader(props) {
|
|
42
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __alloy_js_core.splitProps)(props, [
|
|
48
|
+
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false, frontMatter }] = (0, __alloy_js_core.splitProps)(props, [
|
|
43
49
|
"children",
|
|
44
50
|
"disableEslint",
|
|
45
51
|
"disableBiome",
|
|
46
|
-
"disablePrettier"
|
|
52
|
+
"disablePrettier",
|
|
53
|
+
"frontMatter"
|
|
47
54
|
]);
|
|
48
55
|
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
49
56
|
return [
|
|
57
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
58
|
+
get when() {
|
|
59
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks.isSetObject)(frontMatter))() && Object.keys(frontMatter).length > 0;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_front_matter.FrontMatter, { data: frontMatter });
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
50
65
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
51
66
|
get when() {
|
|
52
67
|
return Boolean(disableEslint);
|
|
53
68
|
},
|
|
54
69
|
get children() {
|
|
55
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
70
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
56
71
|
variant: "markdown",
|
|
57
72
|
children: "eslint-disable"
|
|
58
73
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -63,7 +78,7 @@ function MarkdownFileHeader(props) {
|
|
|
63
78
|
return Boolean(disablePrettier);
|
|
64
79
|
},
|
|
65
80
|
get children() {
|
|
66
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
81
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
67
82
|
variant: "markdown",
|
|
68
83
|
children: "prettier-ignore"
|
|
69
84
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -74,7 +89,7 @@ function MarkdownFileHeader(props) {
|
|
|
74
89
|
return Boolean(disableBiome);
|
|
75
90
|
},
|
|
76
91
|
get children() {
|
|
77
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
92
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
78
93
|
variant: "markdown",
|
|
79
94
|
children: "biome-ignore lint: disable"
|
|
80
95
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -96,16 +111,16 @@ function MarkdownFileHeader(props) {
|
|
|
96
111
|
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
97
112
|
}
|
|
98
113
|
}),
|
|
99
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
114
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
100
115
|
variant: "markdown",
|
|
101
116
|
get children() {
|
|
102
117
|
return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
|
|
103
118
|
}
|
|
104
119
|
}),
|
|
105
120
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
106
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
121
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
107
122
|
variant: "markdown",
|
|
108
|
-
children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically
|
|
123
|
+
children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically`
|
|
109
124
|
}),
|
|
110
125
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
111
126
|
];
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
|
-
import
|
|
3
|
+
import { FrontMatterProps } from "./front-matter.cjs";
|
|
4
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
4
5
|
|
|
5
6
|
//#region src/markdown/components/markdown-file.d.ts
|
|
6
|
-
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
7
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
7
8
|
/**
|
|
8
9
|
* A base component representing a Powerlines generated markdown source file.
|
|
9
10
|
*
|
|
10
11
|
* @param props - The properties for the source file.
|
|
11
12
|
* @returns The rendered source file component.
|
|
12
13
|
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core16.Children;
|
|
15
|
+
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
|
+
frontMatter?: FrontMatterProps["data"];
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* Renders the header for a Powerlines Typescript source file.
|
|
16
20
|
*
|
|
17
21
|
* @param props - The properties for the source file header.
|
|
18
22
|
* @returns The rendered source file header.
|
|
19
23
|
*/
|
|
20
|
-
declare function MarkdownFileHeader(props:
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core16.Children;
|
|
21
25
|
declare type __ΩMarkdownFileProps = any[];
|
|
26
|
+
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
22
27
|
//#endregion
|
|
23
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
28
|
+
export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps };
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
|
-
import
|
|
3
|
+
import { FrontMatterProps } from "./front-matter.mjs";
|
|
4
|
+
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
4
5
|
|
|
5
6
|
//#region src/markdown/components/markdown-file.d.ts
|
|
6
|
-
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps;
|
|
7
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
7
8
|
/**
|
|
8
9
|
* A base component representing a Powerlines generated markdown source file.
|
|
9
10
|
*
|
|
10
11
|
* @param props - The properties for the source file.
|
|
11
12
|
* @returns The rendered source file component.
|
|
12
13
|
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps):
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core6.Children;
|
|
15
|
+
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
|
+
frontMatter?: FrontMatterProps["data"];
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* Renders the header for a Powerlines Typescript source file.
|
|
16
20
|
*
|
|
17
21
|
* @param props - The properties for the source file header.
|
|
18
22
|
* @returns The rendered source file header.
|
|
19
23
|
*/
|
|
20
|
-
declare function MarkdownFileHeader(props:
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core6.Children;
|
|
21
25
|
declare type __ΩMarkdownFileProps = any[];
|
|
26
|
+
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
22
27
|
//#endregion
|
|
23
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
28
|
+
export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
|
|
2
2
|
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
3
3
|
import { SourceFile } from "../../core/components/source-file.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { FrontMatter } from "./front-matter.mjs";
|
|
5
|
+
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
6
|
import { Show, code, splitProps } from "@alloy-js/core";
|
|
6
7
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
7
8
|
import { Link } from "@alloy-js/markdown";
|
|
9
|
+
import { isSetObject } from "@stryke/type-checks";
|
|
8
10
|
|
|
9
11
|
//#region src/markdown/components/markdown-file.tsx
|
|
10
12
|
/**
|
|
@@ -14,9 +16,13 @@ import { Link } from "@alloy-js/markdown";
|
|
|
14
16
|
* @returns The rendered source file component.
|
|
15
17
|
*/
|
|
16
18
|
function MarkdownFile(props) {
|
|
17
|
-
const [{ children, storage }, rest] = splitProps(props, [
|
|
19
|
+
const [{ children, storage, frontMatter }, rest] = splitProps(props, [
|
|
20
|
+
"children",
|
|
21
|
+
"storage",
|
|
22
|
+
"frontMatter"
|
|
23
|
+
]);
|
|
18
24
|
return createComponent(SourceFile, mergeProps({ get header() {
|
|
19
|
-
return createComponent(MarkdownFileHeader, {});
|
|
25
|
+
return createComponent(MarkdownFileHeader, { frontMatter });
|
|
20
26
|
} }, rest, {
|
|
21
27
|
filetype: "md",
|
|
22
28
|
reference: Link,
|
|
@@ -38,14 +44,23 @@ function MarkdownFile(props) {
|
|
|
38
44
|
* @returns The rendered source file header.
|
|
39
45
|
*/
|
|
40
46
|
function MarkdownFileHeader(props) {
|
|
41
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = splitProps(props, [
|
|
47
|
+
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false, frontMatter }] = splitProps(props, [
|
|
42
48
|
"children",
|
|
43
49
|
"disableEslint",
|
|
44
50
|
"disableBiome",
|
|
45
|
-
"disablePrettier"
|
|
51
|
+
"disablePrettier",
|
|
52
|
+
"frontMatter"
|
|
46
53
|
]);
|
|
47
54
|
const context = usePowerlinesSafe();
|
|
48
55
|
return [
|
|
56
|
+
createComponent(Show, {
|
|
57
|
+
get when() {
|
|
58
|
+
return memo(() => !!isSetObject(frontMatter))() && Object.keys(frontMatter).length > 0;
|
|
59
|
+
},
|
|
60
|
+
get children() {
|
|
61
|
+
return createComponent(FrontMatter, { data: frontMatter });
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
49
64
|
createComponent(Show, {
|
|
50
65
|
get when() {
|
|
51
66
|
return Boolean(disableEslint);
|
|
@@ -104,7 +119,7 @@ function MarkdownFileHeader(props) {
|
|
|
104
119
|
createIntrinsic("hbr", {}),
|
|
105
120
|
createComponent(SingleLineComment, {
|
|
106
121
|
variant: "markdown",
|
|
107
|
-
children: code`NOTE: Do not edit this file manually - it will be overwritten automatically
|
|
122
|
+
children: code`NOTE: Do not edit this file manually - it will be overwritten automatically`
|
|
108
123
|
}),
|
|
109
124
|
createIntrinsic("hbr", {})
|
|
110
125
|
];
|
|
@@ -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_core3 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_core3.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_core3.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_core3.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,15 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_front_matter = require('./components/front-matter.cjs');
|
|
2
|
+
const require_markdown_file = require('./components/markdown-file.cjs');
|
|
2
3
|
const require_markdown_contexts_markdown_table = require('./contexts/markdown-table.cjs');
|
|
3
|
-
const
|
|
4
|
+
const require_markdown_table = require('./components/markdown-table.cjs');
|
|
4
5
|
require('./components/index.cjs');
|
|
5
6
|
require('./contexts/index.cjs');
|
|
6
7
|
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
8
|
+
exports.FrontMatter = require_front_matter.FrontMatter;
|
|
9
|
+
exports.MarkdownFile = require_markdown_file.MarkdownFile;
|
|
10
|
+
exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
|
|
11
|
+
exports.MarkdownTable = require_markdown_table.MarkdownTable;
|
|
12
|
+
exports.MarkdownTableColumn = require_markdown_table.MarkdownTableColumn;
|
|
11
13
|
exports.MarkdownTableColumnContext = require_markdown_contexts_markdown_table.MarkdownTableColumnContext;
|
|
12
|
-
exports.MarkdownTableColumnHeader =
|
|
14
|
+
exports.MarkdownTableColumnHeader = require_markdown_table.MarkdownTableColumnHeader;
|
|
13
15
|
exports.MarkdownTableContext = require_markdown_contexts_markdown_table.MarkdownTableContext;
|
|
14
16
|
exports.useMarkdownTable = require_markdown_contexts_markdown_table.useMarkdownTable;
|
|
15
17
|
exports.useMarkdownTableColumn = require_markdown_contexts_markdown_table.useMarkdownTableColumn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./components/front-matter.cjs";
|
|
2
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./components/markdown-file.cjs";
|
|
2
3
|
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.cjs";
|
|
3
4
|
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.cjs";
|
|
4
5
|
import "./components/index.cjs";
|
|
5
6
|
import "./contexts/index.cjs";
|
|
6
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
7
|
+
export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./components/front-matter.mjs";
|
|
2
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./components/markdown-file.mjs";
|
|
2
3
|
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
|
|
3
4
|
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.mjs";
|
|
4
5
|
import "./components/index.mjs";
|
|
5
6
|
import "./contexts/index.mjs";
|
|
6
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
7
|
+
export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
package/dist/markdown/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { FrontMatter } from "./components/front-matter.mjs";
|
|
1
2
|
import { MarkdownFile, MarkdownFileHeader } from "./components/markdown-file.mjs";
|
|
2
3
|
import { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
|
|
3
4
|
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./components/markdown-table.mjs";
|
|
4
5
|
import "./components/index.mjs";
|
|
5
6
|
import "./contexts/index.mjs";
|
|
6
7
|
|
|
7
|
-
export { MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnHeader, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
8
|
+
export { FrontMatter, MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnHeader, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,83 @@
|
|
|
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;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 };
|
|
@@ -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_tsdoc = require('./tsdoc.cjs');
|
|
4
|
+
const require_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_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_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_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_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_core7 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_core7.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_core9 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_core9.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_core8 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_core8.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|