@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,44 +1,44 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
1
|
+
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
2
|
+
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
3
|
+
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
4
|
+
const require_typescript_components_dynamic_import_statement = require('./dynamic-import-statement.cjs');
|
|
5
|
+
const require_typescript_components_entry_file = require('./entry-file.cjs');
|
|
6
|
+
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
7
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
8
|
+
const require_typescript_components_typescript_interface = require('./typescript-interface.cjs');
|
|
9
|
+
const require_typescript_components_typescript_object = require('./typescript-object.cjs');
|
|
10
10
|
|
|
11
|
-
exports.BuiltinFile =
|
|
12
|
-
exports.DynamicImportStatement =
|
|
13
|
-
exports.EntryFile =
|
|
14
|
-
exports.RecordExpression =
|
|
15
|
-
exports.TSDoc =
|
|
16
|
-
exports.TSDocAlias =
|
|
17
|
-
exports.TSDocAttributesTags =
|
|
18
|
-
exports.TSDocDefaultValue =
|
|
19
|
-
exports.TSDocDomain =
|
|
20
|
-
exports.TSDocExample =
|
|
21
|
-
exports.TSDocHidden =
|
|
22
|
-
exports.TSDocIgnore =
|
|
23
|
-
exports.TSDocInternal =
|
|
24
|
-
exports.TSDocLink =
|
|
25
|
-
exports.TSDocModule =
|
|
26
|
-
exports.TSDocParam =
|
|
27
|
-
exports.TSDocParams =
|
|
28
|
-
exports.TSDocPermission =
|
|
29
|
-
exports.TSDocReadonly =
|
|
30
|
-
exports.TSDocReflectionClass =
|
|
31
|
-
exports.TSDocReflectionMethod =
|
|
32
|
-
exports.TSDocReflectionProperty =
|
|
33
|
-
exports.TSDocRemarks =
|
|
34
|
-
exports.TSDocReturns =
|
|
35
|
-
exports.TSDocTag =
|
|
36
|
-
exports.TSDocThrows =
|
|
37
|
-
exports.TSDocTitle =
|
|
38
|
-
exports.TypeScriptInterface =
|
|
39
|
-
exports.TypescriptFile =
|
|
40
|
-
exports.TypescriptFileHeader =
|
|
41
|
-
exports.TypescriptFileHeaderImports =
|
|
42
|
-
exports.TypescriptInterfaceProperty =
|
|
43
|
-
exports.TypescriptObject =
|
|
44
|
-
exports.TypescriptObjectProperty =
|
|
11
|
+
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
12
|
+
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
13
|
+
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
14
|
+
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
15
|
+
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
16
|
+
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
17
|
+
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
18
|
+
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
19
|
+
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
20
|
+
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
21
|
+
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
22
|
+
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
23
|
+
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
24
|
+
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
25
|
+
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
26
|
+
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
27
|
+
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
28
|
+
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
29
|
+
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
30
|
+
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
31
|
+
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
32
|
+
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
33
|
+
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
34
|
+
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
35
|
+
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
36
|
+
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
37
|
+
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
38
|
+
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
39
|
+
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
40
|
+
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
41
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
42
|
+
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
43
|
+
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
44
|
+
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_typescript_components_tsdoc = require('./tsdoc.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_string_format_title_case = require("@stryke/string-format/title-case");
|
|
@@ -25,7 +25,7 @@ function TSDocReflectionClass(props) {
|
|
|
25
25
|
const ignore = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isIgnored());
|
|
26
26
|
const hidden = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isHidden());
|
|
27
27
|
if (!computedHeading.value || (0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value) && computedHeading.value.trim() === "") return null;
|
|
28
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
28
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
29
29
|
get heading() {
|
|
30
30
|
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
|
|
31
31
|
},
|
|
@@ -35,7 +35,7 @@ function TSDocReflectionClass(props) {
|
|
|
35
35
|
return (0, __stryke_type_checks_is_set_string.isSetString)(title.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(alias.value) && alias.value.length > 0 || !(0, __stryke_type_checks_is_undefined.isUndefined)(permission.value) && permission.value.length > 0 || (0, __stryke_type_checks_is_set_string.isSetString)(domain.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(readonly.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(internal.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(hidden.value);
|
|
36
36
|
},
|
|
37
37
|
get children() {
|
|
38
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
38
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
39
39
|
get title() {
|
|
40
40
|
return title.value;
|
|
41
41
|
},
|
|
@@ -81,10 +81,10 @@ function TSDocReflectionClass(props) {
|
|
|
81
81
|
function TSDocReflectionProperty(props) {
|
|
82
82
|
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
83
83
|
const context = require_core_contexts_reflection.useReflectionProperty();
|
|
84
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
84
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
|
|
85
85
|
return context.getDescription();
|
|
86
86
|
} }, rest, { get children() {
|
|
87
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
87
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
88
88
|
type: context,
|
|
89
89
|
get title() {
|
|
90
90
|
return context.getTitle();
|
|
@@ -131,10 +131,10 @@ function TSDocReflectionProperty(props) {
|
|
|
131
131
|
function TSDocReflectionMethod(props) {
|
|
132
132
|
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
133
133
|
const context = require_core_contexts_reflection.useReflectionMethod();
|
|
134
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
134
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
|
|
135
135
|
return context.getDescription() || ((0, __stryke_type_checks_is_string.isString)(context.getName()) ? __alloy_js_core.code`${String(context.getName())} method definition` : void 0);
|
|
136
136
|
} }, rest, { get children() {
|
|
137
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
137
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
|
|
138
138
|
get title() {
|
|
139
139
|
return context.getTitle();
|
|
140
140
|
},
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TSDocProps } from "./tsdoc.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core8 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_core8.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_core8.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_core8.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_core15 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_core15.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_core15.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_core15.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
const require_core_components_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");
|
|
7
7
|
let __stryke_path_append = require("@stryke/path/append");
|
|
@@ -44,7 +44,7 @@ function TypescriptFile(props) {
|
|
|
44
44
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Scope, {
|
|
45
45
|
value: scope,
|
|
46
46
|
get children() {
|
|
47
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
47
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
48
48
|
path: modulePath,
|
|
49
49
|
get header() {
|
|
50
50
|
return header ?? (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptFileHeader, {
|
|
@@ -98,7 +98,7 @@ function TypescriptFileHeader(props) {
|
|
|
98
98
|
return Boolean(disableEslint);
|
|
99
99
|
},
|
|
100
100
|
get children() {
|
|
101
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
101
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
102
102
|
variant: "slash-star",
|
|
103
103
|
children: "eslint-disable"
|
|
104
104
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -109,7 +109,7 @@ function TypescriptFileHeader(props) {
|
|
|
109
109
|
return Boolean(disablePrettier);
|
|
110
110
|
},
|
|
111
111
|
get children() {
|
|
112
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
112
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
113
113
|
variant: "slash-star",
|
|
114
114
|
children: "prettier-ignore"
|
|
115
115
|
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -120,7 +120,7 @@ function TypescriptFileHeader(props) {
|
|
|
120
120
|
return Boolean(disableBiome);
|
|
121
121
|
},
|
|
122
122
|
get children() {
|
|
123
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
123
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { children: "biome-ignore lint: disable" }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
124
124
|
}
|
|
125
125
|
}),
|
|
126
126
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
@@ -139,11 +139,11 @@ function TypescriptFileHeader(props) {
|
|
|
139
139
|
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
140
140
|
}
|
|
141
141
|
}),
|
|
142
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
142
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { get children() {
|
|
143
143
|
return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
|
|
144
144
|
} }),
|
|
145
145
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
146
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
146
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, { children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically` }),
|
|
147
147
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
148
148
|
];
|
|
149
149
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.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 __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
@@ -23,7 +23,7 @@ function TypeScriptInterface(props) {
|
|
|
23
23
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
|
|
24
24
|
value: { reflection },
|
|
25
25
|
get children() {
|
|
26
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
26
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, { heading: doc }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
27
27
|
"export": true,
|
|
28
28
|
get name() {
|
|
29
29
|
return interfaceName.value;
|
|
@@ -47,7 +47,7 @@ function TypescriptInterfaceProperty(props) {
|
|
|
47
47
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
|
|
48
48
|
value: property,
|
|
49
49
|
get children() {
|
|
50
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
50
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceMember, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
51
51
|
get name() {
|
|
52
52
|
return property.getNameAsString();
|
|
53
53
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core5 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_core5.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_core5.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_core8 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_core8.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_core8.Children;
|
|
22
22
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
23
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
24
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.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 __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
@@ -62,7 +62,7 @@ function TypescriptObject(props) {
|
|
|
62
62
|
return !!objectName.value && !!objectType.value;
|
|
63
63
|
},
|
|
64
64
|
get children() {
|
|
65
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
65
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Declaration, {
|
|
66
66
|
symbol: sym,
|
|
67
67
|
get children() {
|
|
68
68
|
return [
|
|
@@ -105,7 +105,7 @@ function TypescriptObjectProperty(props) {
|
|
|
105
105
|
value: property,
|
|
106
106
|
get children() {
|
|
107
107
|
return [
|
|
108
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
108
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, {}),
|
|
109
109
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectProperty, {
|
|
110
110
|
get name() {
|
|
111
111
|
return property.getNameAsString();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core11 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_core11.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_core11.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_core10 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_core10.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_core10.Children;
|
|
25
25
|
declare type __ΩComputedRef = any[];
|
|
26
26
|
declare type __ΩTypescriptObjectProps = any[];
|
|
27
27
|
declare type __ΩTypescriptObjectPropertyProps = any[];
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
1
|
+
const require_typescript_components_tsdoc = require('./components/tsdoc.cjs');
|
|
2
|
+
const require_typescript_components_typescript_file = require('./components/typescript-file.cjs');
|
|
3
|
+
const require_typescript_components_builtin_file = require('./components/builtin-file.cjs');
|
|
4
|
+
const require_typescript_components_dynamic_import_statement = require('./components/dynamic-import-statement.cjs');
|
|
5
|
+
const require_typescript_components_entry_file = require('./components/entry-file.cjs');
|
|
6
|
+
const require_typescript_components_record_expression = require('./components/record-expression.cjs');
|
|
7
|
+
const require_typescript_components_tsdoc_reflection = require('./components/tsdoc-reflection.cjs');
|
|
8
|
+
const require_typescript_components_typescript_interface = require('./components/typescript-interface.cjs');
|
|
9
|
+
const require_typescript_components_typescript_object = require('./components/typescript-object.cjs');
|
|
10
10
|
require('./components/index.cjs');
|
|
11
11
|
|
|
12
|
-
exports.BuiltinFile =
|
|
13
|
-
exports.DynamicImportStatement =
|
|
14
|
-
exports.EntryFile =
|
|
15
|
-
exports.RecordExpression =
|
|
16
|
-
exports.TSDoc =
|
|
17
|
-
exports.TSDocAlias =
|
|
18
|
-
exports.TSDocAttributesTags =
|
|
19
|
-
exports.TSDocDefaultValue =
|
|
20
|
-
exports.TSDocDomain =
|
|
21
|
-
exports.TSDocExample =
|
|
22
|
-
exports.TSDocHidden =
|
|
23
|
-
exports.TSDocIgnore =
|
|
24
|
-
exports.TSDocInternal =
|
|
25
|
-
exports.TSDocLink =
|
|
26
|
-
exports.TSDocModule =
|
|
27
|
-
exports.TSDocParam =
|
|
28
|
-
exports.TSDocParams =
|
|
29
|
-
exports.TSDocPermission =
|
|
30
|
-
exports.TSDocReadonly =
|
|
31
|
-
exports.TSDocReflectionClass =
|
|
32
|
-
exports.TSDocReflectionMethod =
|
|
33
|
-
exports.TSDocReflectionProperty =
|
|
34
|
-
exports.TSDocRemarks =
|
|
35
|
-
exports.TSDocReturns =
|
|
36
|
-
exports.TSDocTag =
|
|
37
|
-
exports.TSDocThrows =
|
|
38
|
-
exports.TSDocTitle =
|
|
39
|
-
exports.TypeScriptInterface =
|
|
40
|
-
exports.TypescriptFile =
|
|
41
|
-
exports.TypescriptFileHeader =
|
|
42
|
-
exports.TypescriptFileHeaderImports =
|
|
43
|
-
exports.TypescriptInterfaceProperty =
|
|
44
|
-
exports.TypescriptObject =
|
|
45
|
-
exports.TypescriptObjectProperty =
|
|
12
|
+
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
13
|
+
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
14
|
+
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
15
|
+
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
16
|
+
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
17
|
+
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
18
|
+
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
19
|
+
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
20
|
+
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
21
|
+
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
22
|
+
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
23
|
+
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
24
|
+
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
25
|
+
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
26
|
+
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
27
|
+
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
28
|
+
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
29
|
+
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
30
|
+
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
31
|
+
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
32
|
+
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
33
|
+
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
34
|
+
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
35
|
+
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
36
|
+
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
37
|
+
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
38
|
+
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
39
|
+
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
40
|
+
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
41
|
+
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
42
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
43
|
+
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
44
|
+
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
45
|
+
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|