@powerlines/plugin-alloy 0.25.24 → 0.25.26
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/README.md +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/core/components/index.cjs +1 -0
- package/dist/core/components/output.cjs +9 -8
- package/dist/core/components/output.d.cts +2 -3
- package/dist/core/components/output.d.cts.map +1 -1
- package/dist/core/components/output.d.mts +2 -3
- package/dist/core/components/output.d.mts.map +1 -1
- package/dist/core/components/single-line-comment.cjs +6 -5
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.cts.map +1 -1
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.mts.map +1 -1
- package/dist/core/components/source-file.cjs +14 -13
- package/dist/core/components/source-file.d.cts.map +1 -1
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/components/source-file.d.mts.map +1 -1
- package/dist/core/components/spacing.cjs +6 -5
- package/dist/core/components/spacing.d.cts.map +1 -1
- package/dist/core/components/spacing.d.mts +2 -2
- package/dist/core/components/spacing.d.mts.map +1 -1
- package/dist/core/contexts/context.cjs +5 -4
- package/dist/core/contexts/context.d.cts +0 -1
- package/dist/core/contexts/context.d.cts.map +1 -1
- package/dist/core/contexts/context.d.mts +0 -1
- package/dist/core/contexts/context.d.mts.map +1 -1
- package/dist/core/contexts/index.cjs +1 -0
- package/dist/core/contexts/meta.cjs +5 -4
- package/dist/core/contexts/meta.d.cts.map +1 -1
- package/dist/core/contexts/meta.d.mts.map +1 -1
- package/dist/core/contexts/reflection.cjs +11 -10
- package/dist/core/contexts/reflection.d.cts.map +1 -1
- package/dist/core/contexts/reflection.d.mts.map +1 -1
- package/dist/core/helpers/code.cjs +4 -3
- package/dist/core/helpers/code.d.cts +0 -1
- package/dist/core/helpers/code.d.cts.map +1 -1
- package/dist/core/helpers/code.d.mts +0 -1
- package/dist/core/helpers/code.d.mts.map +1 -1
- package/dist/core/helpers/index.cjs +1 -0
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.cts +0 -3
- package/dist/core/index.d.mts +0 -3
- package/dist/helpers/capnp.cjs +65 -64
- package/dist/helpers/capnp.d.cts +0 -1
- package/dist/helpers/capnp.d.cts.map +1 -1
- package/dist/helpers/capnp.d.mts +0 -1
- package/dist/helpers/capnp.d.mts.map +1 -1
- package/dist/helpers/capnp.mjs +3 -3
- package/dist/helpers/create-builtin.cjs +4 -3
- package/dist/helpers/create-builtin.d.cts.map +1 -1
- package/dist/helpers/create-builtin.d.mts.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/refkey.cjs +4 -3
- package/dist/helpers/refkey.d.cts +0 -1
- package/dist/helpers/refkey.d.cts.map +1 -1
- package/dist/helpers/refkey.d.mts +0 -1
- package/dist/helpers/refkey.d.mts.map +1 -1
- package/dist/helpers/typescript.cjs +14 -13
- package/dist/helpers/typescript.d.cts.map +1 -1
- package/dist/helpers/typescript.d.mts.map +1 -1
- package/dist/index.cjs +8 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/markdown/components/front-matter.cjs +8 -7
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.cts.map +1 -1
- package/dist/markdown/components/front-matter.d.mts +2 -2
- package/dist/markdown/components/front-matter.d.mts.map +1 -1
- package/dist/markdown/components/index.cjs +1 -0
- package/dist/markdown/components/markdown-file.cjs +34 -33
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.cts.map +1 -1
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-file.d.mts.map +1 -1
- package/dist/markdown/components/markdown-table.cjs +26 -25
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.cts.map +1 -1
- package/dist/markdown/components/markdown-table.d.mts.map +1 -1
- package/dist/markdown/contexts/index.cjs +1 -0
- package/dist/markdown/contexts/markdown-table.cjs +7 -6
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
- package/dist/markdown/contexts/markdown-table.d.mts.map +1 -1
- package/dist/markdown/index.cjs +1 -0
- package/dist/markdown/index.d.cts +0 -2
- package/dist/markdown/index.d.mts +0 -2
- package/dist/render.cjs +10 -9
- package/dist/render.d.cts +0 -1
- package/dist/render.d.cts.map +1 -1
- package/dist/render.d.mts +0 -1
- package/dist/render.d.mts.map +1 -1
- package/dist/types/components.d.cts.map +1 -1
- package/dist/types/components.d.mts.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +14 -13
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.cts.map +1 -1
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/builtin-file.d.mts.map +1 -1
- package/dist/typescript/components/class-declaration.cjs +57 -56
- package/dist/typescript/components/class-declaration.d.cts.map +1 -1
- package/dist/typescript/components/class-declaration.d.mts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +6 -5
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -1
- package/dist/typescript/components/entry-file.cjs +12 -11
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.cts.map +1 -1
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.mts.map +1 -1
- package/dist/typescript/components/index.cjs +1 -0
- package/dist/typescript/components/infrastructure-file.cjs +11 -10
- package/dist/typescript/components/infrastructure-file.d.cts +2 -2
- package/dist/typescript/components/infrastructure-file.d.cts.map +1 -1
- package/dist/typescript/components/infrastructure-file.d.mts +2 -2
- package/dist/typescript/components/infrastructure-file.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.cjs +59 -58
- package/dist/typescript/components/interface-declaration.d.cts +2 -2
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
- package/dist/typescript/components/interface-declaration.d.mts +2 -2
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.mjs +2 -2
- package/dist/typescript/components/object-declaration.cjs +40 -39
- package/dist/typescript/components/object-declaration.d.cts +3 -3
- package/dist/typescript/components/object-declaration.d.cts.map +1 -1
- package/dist/typescript/components/object-declaration.d.mts +3 -3
- package/dist/typescript/components/object-declaration.d.mts.map +1 -1
- package/dist/typescript/components/property-name.cjs +8 -7
- package/dist/typescript/components/property-name.d.cts +2 -2
- package/dist/typescript/components/property-name.d.cts.map +1 -1
- package/dist/typescript/components/property-name.d.mts +2 -2
- package/dist/typescript/components/property-name.d.mts.map +1 -1
- package/dist/typescript/components/record-expression.cjs +4 -3
- package/dist/typescript/components/record-expression.d.cts.map +1 -1
- package/dist/typescript/components/record-expression.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +74 -73
- package/dist/typescript/components/tsdoc-reflection.d.cts +7 -7
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +7 -7
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +107 -106
- package/dist/typescript/components/tsdoc.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.mjs +2 -2
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.cjs +11 -10
- package/dist/typescript/components/type-declaration.d.cts +2 -2
- package/dist/typescript/components/type-declaration.d.cts.map +1 -1
- package/dist/typescript/components/type-declaration.d.mts +2 -2
- package/dist/typescript/components/type-declaration.d.mts.map +1 -1
- package/dist/typescript/components/type-declaration.mjs +1 -1
- package/dist/typescript/components/type-parameters.cjs +17 -16
- package/dist/typescript/components/type-parameters.d.cts.map +1 -1
- package/dist/typescript/components/type-parameters.d.mts.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +63 -62
- package/dist/typescript/components/typescript-file.d.cts.map +1 -1
- package/dist/typescript/components/typescript-file.d.mts.map +1 -1
- package/dist/typescript/contexts/index.cjs +1 -0
- package/dist/typescript/contexts/lexical-scope.cjs +8 -7
- package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
- package/dist/typescript/contexts/member-scope.cjs +8 -7
- package/dist/typescript/contexts/member-scope.d.cts.map +1 -1
- package/dist/typescript/contexts/member-scope.d.mts.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +5 -4
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -1
- package/dist/typescript/helpers/index.cjs +1 -0
- package/dist/typescript/helpers/utilities.cjs +1 -0
- package/dist/typescript/helpers/utilities.d.cts.map +1 -1
- package/dist/typescript/helpers/utilities.d.mts.map +1 -1
- package/dist/typescript/index.cjs +1 -0
- package/dist/typescript/index.d.cts +0 -3
- package/dist/typescript/index.d.mts +0 -3
- package/dist/yaml/components/index.cjs +1 -0
- package/dist/yaml/components/yaml-file.cjs +34 -33
- package/dist/yaml/components/yaml-file.d.cts.map +1 -1
- package/dist/yaml/components/yaml-file.d.mts.map +1 -1
- package/dist/yaml/index.cjs +1 -0
- package/dist/yaml/index.d.cts +0 -1
- package/dist/yaml/index.d.mts +0 -1
- package/package.json +8 -8
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
4
|
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
5
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
7
|
+
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
8
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
8
9
|
let defu = require("defu");
|
|
9
|
-
defu =
|
|
10
|
-
let
|
|
11
|
-
let
|
|
10
|
+
defu = require_runtime.__toESM(defu);
|
|
11
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
12
|
+
let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
12
13
|
|
|
13
14
|
//#region src/typescript/components/entry-file.tsx
|
|
14
15
|
/**
|
|
@@ -18,7 +19,7 @@ let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
|
18
19
|
* @returns The rendered source file component.
|
|
19
20
|
*/
|
|
20
21
|
function EntryFile(props) {
|
|
21
|
-
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0,
|
|
22
|
+
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
22
23
|
"children",
|
|
23
24
|
"meta",
|
|
24
25
|
"tsx",
|
|
@@ -26,8 +27,8 @@ function EntryFile(props) {
|
|
|
26
27
|
"typeDefinition"
|
|
27
28
|
]);
|
|
28
29
|
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
29
|
-
const fullPath = (0,
|
|
30
|
-
return (0,
|
|
30
|
+
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);
|
|
31
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
31
32
|
get path() {
|
|
32
33
|
return fullPath.value;
|
|
33
34
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
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_core0.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;;KA4BY,cAAA,GAAiB,mBAAA;;;AAA7B;;;EAME,GAAA;EAN2B;;;EAW3B,cAAA,GAAiB,2BAAA;AAAA;;AASnB;;;;;iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAA,GAAc,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
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_core0.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file.d.mts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"entry-file.d.mts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;;KA4BY,cAAA,GAAiB,mBAAA;;;AAA7B;;;EAME,GAAA;EAN2B;;;EAW3B,cAAA,GAAiB,2BAAA;AAAA;;AASnB;;;;;iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAA,GAAc,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1
2
|
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
2
3
|
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
3
4
|
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
3
4
|
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
5
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
7
|
+
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
8
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
8
9
|
let defu = require("defu");
|
|
9
|
-
defu =
|
|
10
|
-
let
|
|
10
|
+
defu = require_runtime.__toESM(defu);
|
|
11
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
11
12
|
|
|
12
13
|
//#region src/typescript/components/infrastructure-file.tsx
|
|
13
14
|
/**
|
|
@@ -17,14 +18,14 @@ let __stryke_path_replace = require("@stryke/path/replace");
|
|
|
17
18
|
* @returns The rendered infrastructure file component.
|
|
18
19
|
*/
|
|
19
20
|
function InfrastructureFile(props) {
|
|
20
|
-
const [{ children, meta, id }, rest] = (0,
|
|
21
|
+
const [{ children, meta, id }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
21
22
|
"children",
|
|
22
23
|
"meta",
|
|
23
24
|
"id"
|
|
24
25
|
]);
|
|
25
26
|
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
26
|
-
const fullPath = (0,
|
|
27
|
-
return (0,
|
|
27
|
+
const fullPath = (0, _alloy_js_core.computed)(() => context ? (0, _stryke_path_append.appendPath)((0, _stryke_path_file_path_fns.hasFileExtension)(id) ? "" : ".ts", (0, _stryke_path_replace.replacePath)(context.infrastructurePath, context.workspaceConfig.workspaceRoot)) : id);
|
|
28
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
28
29
|
get path() {
|
|
29
30
|
return fullPath.value;
|
|
30
31
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
5
|
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
@@ -14,7 +14,7 @@ type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
|
14
14
|
* @param props - The properties for the infrastructure file.
|
|
15
15
|
* @returns The rendered infrastructure file component.
|
|
16
16
|
*/
|
|
17
|
-
declare function InfrastructureFile(props: InfrastructureFileProps):
|
|
17
|
+
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
18
|
declare type __ΩInfrastructureFileProps = any[];
|
|
19
19
|
//#endregion
|
|
20
20
|
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
5
|
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
@@ -14,7 +14,7 @@ type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
|
14
14
|
* @param props - The properties for the infrastructure file.
|
|
15
15
|
* @returns The rendered infrastructure file component.
|
|
16
16
|
*/
|
|
17
|
-
declare function InfrastructureFile(props: InfrastructureFileProps):
|
|
17
|
+
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
18
|
declare type __ΩInfrastructureFileProps = any[];
|
|
19
19
|
//#endregion
|
|
20
20
|
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"
|
|
1
|
+
{"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
4
|
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
4
5
|
const require_typescript_contexts_member_scope = require('../contexts/member-scope.cjs');
|
|
5
6
|
const require_typescript_components_property_name = require('./property-name.cjs');
|
|
6
7
|
const require_typescript_components_type_parameters = require('./type-parameters.cjs');
|
|
7
8
|
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
8
|
-
let
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
12
|
-
let
|
|
13
|
-
let
|
|
9
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
10
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
11
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
12
|
+
let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
13
|
+
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
14
|
+
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
14
15
|
|
|
15
16
|
//#region src/typescript/components/interface-declaration.tsx
|
|
16
|
-
const InterfaceExpression = (0,
|
|
17
|
-
const symbol = (0,
|
|
17
|
+
const InterfaceExpression = (0, _alloy_js_typescript.ensureTypeRefContext)(function InterfaceExpression(props) {
|
|
18
|
+
const symbol = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, "", void 0, {
|
|
18
19
|
transient: true,
|
|
19
|
-
binder: (0,
|
|
20
|
+
binder: (0, _alloy_js_typescript.useTSLexicalScope)()?.binder
|
|
20
21
|
});
|
|
21
|
-
(0,
|
|
22
|
-
return (0,
|
|
23
|
-
return (0,
|
|
22
|
+
(0, _alloy_js_core.emitSymbol)(symbol);
|
|
23
|
+
return (0, _alloy_js_core_jsx_runtime.createIntrinsic)("group", { get children() {
|
|
24
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_member_scope.MemberScope, {
|
|
24
25
|
ownerSymbol: symbol,
|
|
25
26
|
get children() {
|
|
26
|
-
return (0,
|
|
27
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
|
|
27
28
|
return props.children;
|
|
28
29
|
} });
|
|
29
30
|
}
|
|
@@ -43,52 +44,52 @@ function InterfaceMember(props) {
|
|
|
43
44
|
const type = props.type ?? props.children;
|
|
44
45
|
const readonly = props.readonly ? "readonly " : "";
|
|
45
46
|
if ("indexer" in props) return [
|
|
46
|
-
(0,
|
|
47
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
47
48
|
get when() {
|
|
48
49
|
return Boolean(props.doc);
|
|
49
50
|
},
|
|
50
51
|
get children() {
|
|
51
|
-
return (0,
|
|
52
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
52
53
|
return props.doc;
|
|
53
54
|
} });
|
|
54
55
|
}
|
|
55
56
|
}),
|
|
56
57
|
readonly,
|
|
57
58
|
"[",
|
|
58
|
-
(0,
|
|
59
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => props.indexer),
|
|
59
60
|
"]: ",
|
|
60
61
|
type
|
|
61
62
|
];
|
|
62
63
|
const optionality = props.optional ? "?" : "";
|
|
63
|
-
const scope = (0,
|
|
64
|
-
const sym = (0,
|
|
64
|
+
const scope = (0, _alloy_js_typescript.useTSMemberScope)();
|
|
65
|
+
const sym = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, props.name, scope.ownerSymbol.staticMembers, {
|
|
65
66
|
refkeys: props.refkey,
|
|
66
|
-
tsFlags:
|
|
67
|
-
namePolicy: (0,
|
|
67
|
+
tsFlags: _alloy_js_typescript.TSSymbolFlags.TypeSymbol | (props.nullish ?? props.optional ? _alloy_js_typescript.TSSymbolFlags.Nullish : _alloy_js_typescript.TSSymbolFlags.None),
|
|
68
|
+
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("interface-member"),
|
|
68
69
|
binder: scope.binder
|
|
69
70
|
});
|
|
70
|
-
const taken = (0,
|
|
71
|
-
(0,
|
|
71
|
+
const taken = (0, _alloy_js_core.takeSymbols)();
|
|
72
|
+
(0, _alloy_js_core.effect)(() => {
|
|
72
73
|
if (taken.size > 1) return;
|
|
73
74
|
const symbol = Array.from(taken)[0];
|
|
74
75
|
if (symbol?.isTransient) symbol.moveMembersTo(sym);
|
|
75
76
|
});
|
|
76
|
-
return (0,
|
|
77
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.MemberDeclaration, {
|
|
77
78
|
symbol: sym,
|
|
78
79
|
get children() {
|
|
79
80
|
return [
|
|
80
|
-
(0,
|
|
81
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
81
82
|
get when() {
|
|
82
83
|
return Boolean(props.doc);
|
|
83
84
|
},
|
|
84
85
|
get children() {
|
|
85
|
-
return (0,
|
|
86
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
86
87
|
return props.doc;
|
|
87
88
|
} });
|
|
88
89
|
}
|
|
89
90
|
}),
|
|
90
91
|
readonly,
|
|
91
|
-
(0,
|
|
92
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
|
|
92
93
|
optionality,
|
|
93
94
|
": ",
|
|
94
95
|
type
|
|
@@ -96,52 +97,52 @@ function InterfaceMember(props) {
|
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
const BaseInterfaceDeclaration = (0,
|
|
100
|
-
const ExprSlot = (0,
|
|
101
|
-
const children = (0,
|
|
102
|
-
const extendsPart = props.extends ? [" extends ", (0,
|
|
103
|
-
const filteredChildren = (0,
|
|
104
|
-
const currentScope = (0,
|
|
100
|
+
const BaseInterfaceDeclaration = (0, _alloy_js_typescript.ensureTypeRefContext)(function InterfaceDeclaration(props) {
|
|
101
|
+
const ExprSlot = (0, _alloy_js_core.createSymbolSlot)();
|
|
102
|
+
const children = (0, _alloy_js_core.childrenArray)(() => props.children);
|
|
103
|
+
const extendsPart = props.extends ? [" extends ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.extends)] : "";
|
|
104
|
+
const filteredChildren = (0, _alloy_js_core.findUnkeyedChildren)(children);
|
|
105
|
+
const currentScope = (0, _alloy_js_typescript.useTSLexicalScope)();
|
|
105
106
|
const binder = currentScope?.binder;
|
|
106
|
-
const sym = (0,
|
|
107
|
+
const sym = (0, _alloy_js_core.createSymbol)(_alloy_js_typescript.TSOutputSymbol, props.name, currentScope.types, {
|
|
107
108
|
refkeys: props.refkey,
|
|
108
109
|
default: props.default,
|
|
109
110
|
export: props.export,
|
|
110
111
|
metadata: props.metadata,
|
|
111
|
-
tsFlags:
|
|
112
|
-
namePolicy: (0,
|
|
112
|
+
tsFlags: _alloy_js_typescript.TSSymbolFlags.TypeSymbol,
|
|
113
|
+
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("interface"),
|
|
113
114
|
binder
|
|
114
115
|
});
|
|
115
|
-
(0,
|
|
116
|
+
(0, _alloy_js_core.effect)(() => {
|
|
116
117
|
if (ExprSlot.ref.value) {
|
|
117
118
|
const takenSymbols = ExprSlot.ref.value;
|
|
118
119
|
for (const symbol of takenSymbols) if (symbol.isTransient) symbol.moveMembersTo(sym);
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
|
-
return [(0,
|
|
122
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
122
123
|
get when() {
|
|
123
124
|
return Boolean(props.doc);
|
|
124
125
|
},
|
|
125
126
|
get children() {
|
|
126
|
-
return (0,
|
|
127
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
|
|
127
128
|
return props.doc;
|
|
128
129
|
} });
|
|
129
130
|
}
|
|
130
|
-
}), (0,
|
|
131
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.Declaration, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
|
|
131
132
|
nameKind: "interface",
|
|
132
133
|
kind: "type",
|
|
133
134
|
symbol: sym,
|
|
134
135
|
get children() {
|
|
135
136
|
return [
|
|
136
137
|
"interface ",
|
|
137
|
-
(0,
|
|
138
|
-
(0,
|
|
138
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
|
|
139
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => (0, _alloy_js_core_jsx_runtime.memo)(() => !!props.typeParameters)() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
|
|
139
140
|
return props.typeParameters;
|
|
140
141
|
} })),
|
|
141
142
|
extendsPart,
|
|
142
143
|
" ",
|
|
143
|
-
(0,
|
|
144
|
-
return (0,
|
|
144
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ExprSlot, { get children() {
|
|
145
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceExpression, { children: filteredChildren });
|
|
145
146
|
} })
|
|
146
147
|
];
|
|
147
148
|
}
|
|
@@ -151,40 +152,40 @@ const BaseInterfaceDeclaration = (0, __alloy_js_typescript.ensureTypeRefContext)
|
|
|
151
152
|
* Generates a TypeScript interface for the given reflection class.
|
|
152
153
|
*/
|
|
153
154
|
function InterfaceDeclaration(props) {
|
|
154
|
-
const [{ name, reflection, doc }, rest] = (0,
|
|
155
|
+
const [{ name, reflection, doc }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
155
156
|
"name",
|
|
156
157
|
"reflection",
|
|
157
158
|
"doc"
|
|
158
159
|
]);
|
|
159
|
-
const interfaceName = (0,
|
|
160
|
-
const properties = (0,
|
|
161
|
-
return (0,
|
|
160
|
+
const interfaceName = (0, _alloy_js_core.computed)(() => (0, _stryke_string_format_pascal_case.pascalCase)(((0, _stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection?.getName()));
|
|
161
|
+
const properties = (0, _alloy_js_core.computed)(() => reflection ? reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1) : []);
|
|
162
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
162
163
|
get when() {
|
|
163
164
|
return reflection && properties.value.length > 0;
|
|
164
165
|
},
|
|
165
166
|
get fallback() {
|
|
166
|
-
return (0,
|
|
167
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(BaseInterfaceDeclaration, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get name() {
|
|
167
168
|
return interfaceName.value;
|
|
168
169
|
} }));
|
|
169
170
|
},
|
|
170
171
|
get children() {
|
|
171
|
-
return (0,
|
|
172
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
|
|
172
173
|
value: { reflection },
|
|
173
174
|
get children() {
|
|
174
|
-
return [(0,
|
|
175
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {
|
|
175
176
|
heading: doc,
|
|
176
177
|
reflection
|
|
177
|
-
}), (0,
|
|
178
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(BaseInterfaceDeclaration, (0, _alloy_js_core_jsx_runtime.mergeProps)({
|
|
178
179
|
"export": true,
|
|
179
180
|
get name() {
|
|
180
181
|
return interfaceName.value;
|
|
181
182
|
}
|
|
182
183
|
}, rest, { get children() {
|
|
183
|
-
return (0,
|
|
184
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
184
185
|
each: properties,
|
|
185
186
|
doubleHardline: true,
|
|
186
187
|
semicolon: true,
|
|
187
|
-
children: (prop) => (0,
|
|
188
|
+
children: (prop) => (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceDeclarationProperty, { property: prop })
|
|
188
189
|
});
|
|
189
190
|
} }))];
|
|
190
191
|
}
|
|
@@ -196,11 +197,11 @@ function InterfaceDeclaration(props) {
|
|
|
196
197
|
* Generates a TypeScript interface property for the given reflection class.
|
|
197
198
|
*/
|
|
198
199
|
function InterfaceDeclarationProperty(props) {
|
|
199
|
-
const [{ property }, rest] = (0,
|
|
200
|
-
return (0,
|
|
200
|
+
const [{ property }, rest] = (0, _alloy_js_core.splitProps)(props, ["property"]);
|
|
201
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
|
|
201
202
|
value: property,
|
|
202
203
|
get children() {
|
|
203
|
-
return [(0,
|
|
204
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocContextProperty, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(InterfaceMember, (0, _alloy_js_core_jsx_runtime.mergeProps)({
|
|
204
205
|
get name() {
|
|
205
206
|
return property.getNameAsString();
|
|
206
207
|
},
|
|
@@ -214,7 +215,7 @@ function InterfaceDeclarationProperty(props) {
|
|
|
214
215
|
return property.isNullable();
|
|
215
216
|
},
|
|
216
217
|
get type() {
|
|
217
|
-
return (0,
|
|
218
|
+
return (0, _powerlines_deepkit_vendor_type.stringifyType)(property.getType());
|
|
218
219
|
}
|
|
219
220
|
}, rest))];
|
|
220
221
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
@@ -39,7 +39,7 @@ interface InterfaceDeclarationPropertyProps extends Omit<InterfaceMemberProps, "
|
|
|
39
39
|
interface InterfaceExpressionProps {
|
|
40
40
|
children?: Children;
|
|
41
41
|
}
|
|
42
|
-
declare const InterfaceExpression:
|
|
42
|
+
declare const InterfaceExpression: _alloy_js_core0.Component<InterfaceExpressionProps>;
|
|
43
43
|
interface InterfaceMemberPropsBase {
|
|
44
44
|
type?: Children;
|
|
45
45
|
children?: Children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/interface-declaration.tsx"],"
|
|
1
|
+
{"version":3,"file":"interface-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;;UAkEiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBAExB,sBAAA,EAAwB,cAAA;;;AAHlC;EAOE,OAAA,GAAU,QAAA;EAP8B;;;EAYxC,cAAA,GAAiB,uBAAA;EAAA;;;;;;EAQjB,UAAA,GAAa,eAAA,CAAgB,CAAA;EAjBG;;;;;;EAyBhC,YAAA,GAAe,OAAA,CAAQ,CAAA;EAzBS;;;EA8BhC,GAAA,GAAM,QAAA;AAAA;AAAA,UAGS,iCAAA,SACP,IAAA,CAAK,oBAAA,WAA+B,cAAA;EAC5C,QAAA,EAAU,kBAAA;AAAA;AAAA,UAGK,wBAAA;EACf,QAAA,GAAW,QAAA;AAAA;AAAA,cAGA,mBAAA,EAAmB,eAAA,CAAA,SAAA,CAAA,wBAAA;AAAA,UAoBf,wBAAA;EACf,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;EACX,QAAA;EACA,GAAA,GAAM,QAAA;EACN,MAAA,GAAS,MAAA,GAAS,MAAA;AAAA;AAAA,UAEH,4BAAA,SAAqC,wBAAA;EACpD,IAAA,WAAe,OAAA;EACf,QAAA;EACA,OAAA;AAAA;AAAA,UAGe,2BAAA,SAAoC,wBAAA;EACnD,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,oBAAA,GACR,4BAAA,GACA,2BAAA;;;;AA3CJ;;;;;AAIA;iBAkDgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,QAAA;;;;iBA+G3C,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAE,QAAA;;;;iBAwDrB,4BAAA,CACd,KAAA,EAAO,iCAAA,GAAiC,QAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
4
4
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
@@ -39,7 +39,7 @@ interface InterfaceDeclarationPropertyProps extends Omit<InterfaceMemberProps, "
|
|
|
39
39
|
interface InterfaceExpressionProps {
|
|
40
40
|
children?: Children;
|
|
41
41
|
}
|
|
42
|
-
declare const InterfaceExpression:
|
|
42
|
+
declare const InterfaceExpression: _alloy_js_core0.Component<InterfaceExpressionProps>;
|
|
43
43
|
interface InterfaceMemberPropsBase {
|
|
44
44
|
type?: Children;
|
|
45
45
|
children?: Children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/interface-declaration.tsx"],"
|
|
1
|
+
{"version":3,"file":"interface-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;;UAkEiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBAExB,sBAAA,EAAwB,cAAA;;;AAHlC;EAOE,OAAA,GAAU,QAAA;EAP8B;;;EAYxC,cAAA,GAAiB,uBAAA;EAAA;;;;;;EAQjB,UAAA,GAAa,eAAA,CAAgB,CAAA;EAjBG;;;;;;EAyBhC,YAAA,GAAe,OAAA,CAAQ,CAAA;EAzBS;;;EA8BhC,GAAA,GAAM,QAAA;AAAA;AAAA,UAGS,iCAAA,SACP,IAAA,CAAK,oBAAA,WAA+B,cAAA;EAC5C,QAAA,EAAU,kBAAA;AAAA;AAAA,UAGK,wBAAA;EACf,QAAA,GAAW,QAAA;AAAA;AAAA,cAGA,mBAAA,EAAmB,eAAA,CAAA,SAAA,CAAA,wBAAA;AAAA,UAoBf,wBAAA;EACf,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;EACX,QAAA;EACA,GAAA,GAAM,QAAA;EACN,MAAA,GAAS,MAAA,GAAS,MAAA;AAAA;AAAA,UAEH,4BAAA,SAAqC,wBAAA;EACpD,IAAA,WAAe,OAAA;EACf,QAAA;EACA,OAAA;AAAA;AAAA,UAGe,2BAAA,SAAoC,wBAAA;EACnD,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,oBAAA,GACR,4BAAA,GACA,2BAAA;;;;AA3CJ;;;;;AAIA;iBAkDgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,QAAA;;;;iBA+G3C,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAE,QAAA;;;;iBAwDrB,4BAAA,CACd,KAAA,EAAO,iCAAA,GAAiC,QAAA;AAAA"}
|
|
@@ -12,7 +12,7 @@ import { isString } from "@stryke/type-checks/is-string";
|
|
|
12
12
|
import { Declaration as Declaration$1, TSOutputSymbol, TSSymbolFlags, ensureTypeRefContext, useTSLexicalScope, useTSMemberScope, useTSNamePolicy } from "@alloy-js/typescript";
|
|
13
13
|
|
|
14
14
|
//#region src/typescript/components/interface-declaration.tsx
|
|
15
|
-
const InterfaceExpression = ensureTypeRefContext(function InterfaceExpression
|
|
15
|
+
const InterfaceExpression = ensureTypeRefContext(function InterfaceExpression(props) {
|
|
16
16
|
const symbol = createSymbol(TSOutputSymbol, "", void 0, {
|
|
17
17
|
transient: true,
|
|
18
18
|
binder: useTSLexicalScope()?.binder
|
|
@@ -95,7 +95,7 @@ function InterfaceMember(props) {
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
const BaseInterfaceDeclaration = ensureTypeRefContext(function InterfaceDeclaration
|
|
98
|
+
const BaseInterfaceDeclaration = ensureTypeRefContext(function InterfaceDeclaration(props) {
|
|
99
99
|
const ExprSlot = createSymbolSlot();
|
|
100
100
|
const children = childrenArray(() => props.children);
|
|
101
101
|
const extendsPart = props.extends ? [" extends ", memo(() => props.extends)] : "";
|