@alloy-js/typescript 0.5.0 → 0.7.0
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/CHANGELOG.md +28 -0
- package/dist/src/components/ArrayExpression.d.ts +1 -1
- package/dist/src/components/ArrayExpression.d.ts.map +1 -1
- package/dist/src/components/ArrayExpression.js +18 -28
- package/dist/src/components/ArrayExpression.js.map +1 -1
- package/dist/src/components/BarrelFile.d.ts.map +1 -1
- package/dist/src/components/BarrelFile.js +11 -9
- package/dist/src/components/BarrelFile.js.map +1 -1
- package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
- package/dist/src/components/ClassDeclaration.js +8 -9
- package/dist/src/components/ClassDeclaration.js.map +1 -1
- package/dist/src/components/CommaList.d.ts +12 -0
- package/dist/src/components/CommaList.d.ts.map +1 -0
- package/dist/src/components/CommaList.js +19 -0
- package/dist/src/components/CommaList.js.map +1 -0
- package/dist/src/components/Declaration.d.ts +4 -0
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js +3 -2
- package/dist/src/components/Declaration.js.map +1 -1
- package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
- package/dist/src/components/EnumDeclaration.js +21 -18
- package/dist/src/components/EnumDeclaration.js.map +1 -1
- package/dist/src/components/EnumMember.d.ts.map +1 -1
- package/dist/src/components/EnumMember.js.map +1 -1
- package/dist/src/components/ExportStatement.d.ts.map +1 -1
- package/dist/src/components/ExportStatement.js +3 -1
- package/dist/src/components/ExportStatement.js.map +1 -1
- package/dist/src/components/FunctionCallExpression.d.ts +2 -2
- package/dist/src/components/FunctionCallExpression.d.ts.map +1 -1
- package/dist/src/components/FunctionCallExpression.js +26 -9
- package/dist/src/components/FunctionCallExpression.js.map +1 -1
- package/dist/src/components/FunctionDeclaration.d.ts +10 -2
- package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
- package/dist/src/components/FunctionDeclaration.js +136 -33
- package/dist/src/components/FunctionDeclaration.js.map +1 -1
- package/dist/src/components/ImportStatement.d.ts.map +1 -1
- package/dist/src/components/ImportStatement.js +25 -31
- package/dist/src/components/ImportStatement.js.map +1 -1
- package/dist/src/components/Interface.d.ts +1 -1
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/Interface.js +5 -5
- package/dist/src/components/Interface.js.map +1 -1
- package/dist/src/components/JSDoc.d.ts +10 -0
- package/dist/src/components/JSDoc.d.ts.map +1 -0
- package/dist/src/components/JSDoc.js +24 -0
- package/dist/src/components/JSDoc.js.map +1 -0
- package/dist/src/components/JSDocComment.d.ts +11 -0
- package/dist/src/components/JSDocComment.d.ts.map +1 -0
- package/dist/src/components/JSDocComment.js +16 -0
- package/dist/src/components/JSDocComment.js.map +1 -0
- package/dist/src/components/JSDocExample.d.ts +12 -0
- package/dist/src/components/JSDocExample.d.ts.map +1 -0
- package/dist/src/components/JSDocExample.js +26 -0
- package/dist/src/components/JSDocExample.js.map +1 -0
- package/dist/src/components/JSDocParagraph.d.ts +10 -0
- package/dist/src/components/JSDocParagraph.d.ts.map +1 -0
- package/dist/src/components/JSDocParagraph.js +23 -0
- package/dist/src/components/JSDocParagraph.js.map +1 -0
- package/dist/src/components/MemberChainExpression.d.ts +11 -0
- package/dist/src/components/MemberChainExpression.d.ts.map +1 -0
- package/dist/src/components/MemberChainExpression.js +100 -0
- package/dist/src/components/MemberChainExpression.js.map +1 -0
- package/dist/src/components/ObjectExpression.d.ts +1 -1
- package/dist/src/components/ObjectExpression.d.ts.map +1 -1
- package/dist/src/components/ObjectExpression.js +45 -42
- package/dist/src/components/ObjectExpression.js.map +1 -1
- package/dist/src/components/PackageDirectory.d.ts +1 -3
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js +9 -16
- package/dist/src/components/PackageDirectory.js.map +1 -1
- package/dist/src/components/PackageJson.d.ts +39 -0
- package/dist/src/components/PackageJson.d.ts.map +1 -1
- package/dist/src/components/PackageJson.js +30 -12
- package/dist/src/components/PackageJson.js.map +1 -1
- package/dist/src/components/Reference.js +1 -1
- package/dist/src/components/Reference.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +13 -6
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/TsConfigJson.d.ts.map +1 -1
- package/dist/src/components/TsConfigJson.js.map +1 -1
- package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
- package/dist/src/components/TypeDeclaration.js.map +1 -1
- package/dist/src/components/ValueExpression.d.ts.map +1 -1
- package/dist/src/components/ValueExpression.js.map +1 -1
- package/dist/src/components/VarDeclaration.d.ts.map +1 -1
- package/dist/src/components/VarDeclaration.js +5 -4
- package/dist/src/components/VarDeclaration.js.map +1 -1
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +2 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/stc/index.d.ts +21 -21
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +1 -1
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js +5 -2
- package/dist/src/symbols/reference.js.map +1 -1
- package/dist/src/symbols/ts-output-symbol.d.ts +2 -1
- package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/ts-output-symbol.js +4 -1
- package/dist/src/symbols/ts-output-symbol.js.map +1 -1
- package/dist/src/symbols/ts-package-scope.d.ts +0 -15
- package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
- package/dist/src/symbols/ts-package-scope.js +0 -8
- package/dist/src/symbols/ts-package-scope.js.map +1 -1
- package/dist/test/imports.test.d.ts.map +1 -1
- package/dist/test/jsdoc.test.d.ts +2 -0
- package/dist/test/jsdoc.test.d.ts.map +1 -0
- package/dist/test/member-chain.test.d.ts +2 -0
- package/dist/test/member-chain.test.d.ts.map +1 -0
- package/dist/test/utils.d.ts +2 -2
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/values.test.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -5
- package/src/components/ArrayExpression.tsx +22 -32
- package/src/components/BarrelFile.tsx +7 -13
- package/src/components/ClassDeclaration.tsx +33 -28
- package/src/components/CommaList.tsx +23 -0
- package/src/components/Declaration.tsx +14 -5
- package/src/components/EnumDeclaration.tsx +23 -16
- package/src/components/EnumMember.tsx +7 -4
- package/src/components/ExportStatement.tsx +9 -2
- package/src/components/FunctionCallExpression.tsx +18 -9
- package/src/components/FunctionDeclaration.tsx +173 -56
- package/src/components/ImportStatement.tsx +6 -9
- package/src/components/Interface.tsx +20 -13
- package/src/components/JSDoc.tsx +28 -0
- package/src/components/JSDocComment.tsx +23 -0
- package/src/components/JSDocExample.tsx +30 -0
- package/src/components/JSDocParagraph.tsx +35 -0
- package/src/components/MemberChainExpression.tsx +91 -0
- package/src/components/ObjectExpression.tsx +53 -48
- package/src/components/PackageDirectory.tsx +22 -30
- package/src/components/PackageJson.tsx +91 -29
- package/src/components/SourceFile.tsx +15 -8
- package/src/components/TsConfigJson.tsx +5 -3
- package/src/components/TypeDeclaration.tsx +5 -3
- package/src/components/ValueExpression.tsx +3 -1
- package/src/components/VarDeclaration.tsx +13 -7
- package/src/components/index.ts +2 -1
- package/src/components/stc/index.ts +1 -1
- package/src/symbols/reference.ts +7 -4
- package/src/symbols/ts-output-symbol.ts +6 -2
- package/src/symbols/ts-package-scope.ts +0 -28
- package/temp/api.json +802 -395
- package/test/array.test.tsx +40 -7
- package/test/basic.test.tsx +26 -21
- package/test/class.test.tsx +65 -53
- package/test/enum.test.tsx +18 -13
- package/test/externals.test.tsx +6 -7
- package/test/function-call-expression.test.tsx +39 -17
- package/test/function-declaration.test.tsx +96 -78
- package/test/imports.test.tsx +115 -75
- package/test/interface.test.tsx +32 -22
- package/test/jsdoc.test.tsx +154 -0
- package/test/member-chain.test.tsx +124 -0
- package/test/name-policy.test.tsx +33 -26
- package/test/package-external.test.tsx +106 -7
- package/test/package.test.tsx +57 -5
- package/test/reference.test.tsx +2 -6
- package/test/utils.tsx +3 -1
- package/test/value-expression.test.tsx +2 -6
- package/test/values.test.tsx +67 -73
- package/test/var-declaration.test.tsx +11 -5
- package/test/vitest.d.ts +6 -1
- package/tsconfig.json +8 -1
- package/dist/src/components/Block.d.ts +0 -6
- package/dist/src/components/Block.d.ts.map +0 -1
- package/dist/src/components/Block.js +0 -11
- package/dist/src/components/Block.js.map +0 -1
- package/src/components/Block.tsx +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/VarDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,
|
|
1
|
+
{"version":3,"file":"VarDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/VarDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAIT,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,YA4BxD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { AssignmentContext, Declaration as CoreDeclaration, createAssignmentContext, Name
|
|
3
|
+
import { AssignmentContext, Declaration as CoreDeclaration, createAssignmentContext, Name } from "@alloy-js/core";
|
|
4
4
|
import { useTSNamePolicy } from "../name-policy.js";
|
|
5
5
|
import { createTSSymbol } from "../symbols/index.js";
|
|
6
6
|
export function VarDeclaration(props) {
|
|
@@ -9,7 +9,8 @@ export function VarDeclaration(props) {
|
|
|
9
9
|
const name = useTSNamePolicy().getName(props.name, "variable");
|
|
10
10
|
const sym = createTSSymbol({
|
|
11
11
|
name: name,
|
|
12
|
-
refkey: props.refkey
|
|
12
|
+
refkey: props.refkey,
|
|
13
|
+
refkeys: props.refkeys,
|
|
13
14
|
default: props.default,
|
|
14
15
|
export: props.export
|
|
15
16
|
});
|
|
@@ -17,10 +18,10 @@ export function VarDeclaration(props) {
|
|
|
17
18
|
return _$createComponent(CoreDeclaration, {
|
|
18
19
|
symbol: sym,
|
|
19
20
|
get children() {
|
|
20
|
-
return [_$memo(() => props.export ? "export " : ""), _$memo(() => props.default ? "default " : ""), keyword, " ", _$createComponent(Name, {}), type, " = ", _$createComponent(AssignmentContext.Provider, {
|
|
21
|
+
return [_$memo(() => props.export ? "export " : ""), _$memo(() => props.default ? "default " : ""), keyword, " ", _$createComponent(Name, {}), type, " =", " ", _$createComponent(AssignmentContext.Provider, {
|
|
21
22
|
value: assignmentContext,
|
|
22
23
|
get children() {
|
|
23
|
-
return
|
|
24
|
+
return props.value ?? props.children;
|
|
24
25
|
}
|
|
25
26
|
})];
|
|
26
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarDeclaration.js","names":["AssignmentContext","Declaration","CoreDeclaration","createAssignmentContext","Name","
|
|
1
|
+
{"version":3,"file":"VarDeclaration.js","names":["AssignmentContext","Declaration","CoreDeclaration","createAssignmentContext","Name","useTSNamePolicy","createTSSymbol","VarDeclaration","props","keyword","var","let","type","_$memo","undefined","name","getName","sym","refkey","refkeys","default","export","assignmentContext","_$createComponent","symbol","children","Provider","value"],"sources":["../../../src/components/VarDeclaration.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SACEA,iB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EAAA;AAItC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./ArrayExpression.js";
|
|
2
2
|
export * from "./BarrelFile.js";
|
|
3
|
-
export * from "./Block.js";
|
|
4
3
|
export * from "./ClassDeclaration.jsx";
|
|
4
|
+
export * from "./CommaList.jsx";
|
|
5
5
|
export * from "./Declaration.js";
|
|
6
6
|
export * from "./EnumDeclaration.js";
|
|
7
7
|
export * from "./EnumMember.js";
|
|
@@ -10,6 +10,7 @@ export * from "./FunctionCallExpression.js";
|
|
|
10
10
|
export * from "./FunctionDeclaration.js";
|
|
11
11
|
export * from "./ImportStatement.js";
|
|
12
12
|
export * from "./Interface.js";
|
|
13
|
+
export * from "./MemberChainExpression.jsx";
|
|
13
14
|
export * from "./ObjectExpression.js";
|
|
14
15
|
export * from "./PackageDirectory.js";
|
|
15
16
|
export * from "./PackageJson.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./ArrayExpression.js";
|
|
2
2
|
export * from "./BarrelFile.js";
|
|
3
|
-
export * from "./Block.js";
|
|
4
3
|
export * from "./ClassDeclaration.js";
|
|
4
|
+
export * from "./CommaList.js";
|
|
5
5
|
export * from "./Declaration.js";
|
|
6
6
|
export * from "./EnumDeclaration.js";
|
|
7
7
|
export * from "./EnumMember.js";
|
|
@@ -10,6 +10,7 @@ export * from "./FunctionCallExpression.js";
|
|
|
10
10
|
export * from "./FunctionDeclaration.js";
|
|
11
11
|
export * from "./ImportStatement.js";
|
|
12
12
|
export * from "./Interface.js";
|
|
13
|
+
export * from "./MemberChainExpression.js";
|
|
13
14
|
export * from "./ObjectExpression.js";
|
|
14
15
|
export * from "./PackageDirectory.js";
|
|
15
16
|
export * from "./PackageJson.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B;AACA;AACA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,sBAAsB;AACpC,cAAc,6BAA6B;AAC3C,cAAc,0BAA0B;AACxC,cAAc,sBAAsB;AACpC,cAAc,gBAAgB;AAC9B;AACA,cAAc,uBAAuB;AACrC,cAAc,uBAAuB;AACrC,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB;AACjC,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,qBAAqB","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as base from "../index.js";
|
|
2
|
-
export declare const ArrayExpression: (props?: base.ArrayExpressionProps | undefined) => import("@alloy-js/core").ComponentCreator<base.ArrayExpressionProps> & {
|
|
2
|
+
export declare const ArrayExpression: (props?: (Omit<base.ArrayExpressionProps, "children"> & Partial<Pick<base.ArrayExpressionProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.ArrayExpressionProps> & {
|
|
3
3
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ArrayExpressionProps>;
|
|
4
4
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ArrayExpressionProps>;
|
|
5
5
|
};
|
|
@@ -7,31 +7,27 @@ export declare const BarrelFile: (props?: base.BarrelFileProps | undefined) => i
|
|
|
7
7
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BarrelFileProps>;
|
|
8
8
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BarrelFileProps>;
|
|
9
9
|
};
|
|
10
|
-
export declare const
|
|
11
|
-
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BlockProps>;
|
|
12
|
-
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.BlockProps>;
|
|
13
|
-
};
|
|
14
|
-
export declare const ClassDeclaration: (props: base.ClassDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps> & {
|
|
10
|
+
export declare const ClassDeclaration: (props: Omit<base.ClassDeclarationProps, "children"> & Partial<Pick<base.ClassDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps> & {
|
|
15
11
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
16
12
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassDeclarationProps>;
|
|
17
13
|
};
|
|
18
|
-
export declare const ClassField: (props: base.ClassFieldProps) => import("@alloy-js/core").ComponentCreator<base.ClassFieldProps> & {
|
|
14
|
+
export declare const ClassField: (props: Omit<base.ClassFieldProps, "children"> & Partial<Pick<base.ClassFieldProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.ClassFieldProps> & {
|
|
19
15
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
20
16
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassFieldProps>;
|
|
21
17
|
};
|
|
22
|
-
export declare const ClassMember: (props: base.ClassMemberProps) => import("@alloy-js/core").ComponentCreator<base.ClassMemberProps> & {
|
|
18
|
+
export declare const ClassMember: (props: Omit<base.ClassMemberProps, "children"> & Partial<Pick<base.ClassMemberProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.ClassMemberProps> & {
|
|
23
19
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMemberProps>;
|
|
24
20
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMemberProps>;
|
|
25
21
|
};
|
|
26
|
-
export declare const ClassMethod: (props: base.ClassMethodProps) => import("@alloy-js/core").ComponentCreator<base.ClassMethodProps> & {
|
|
22
|
+
export declare const ClassMethod: (props: Omit<base.ClassMethodProps, "children"> & Partial<Pick<base.ClassMethodProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.ClassMethodProps> & {
|
|
27
23
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMethodProps>;
|
|
28
24
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ClassMethodProps>;
|
|
29
25
|
};
|
|
30
|
-
export declare const Declaration: (props: base.DeclarationProps) => import("@alloy-js/core").ComponentCreator<base.DeclarationProps> & {
|
|
26
|
+
export declare const Declaration: (props: Omit<base.DeclarationProps, "children"> & Partial<Pick<base.DeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.DeclarationProps> & {
|
|
31
27
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.DeclarationProps>;
|
|
32
28
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.DeclarationProps>;
|
|
33
29
|
};
|
|
34
|
-
export declare const EnumDeclaration: (props: base.EnumDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.EnumDeclarationProps> & {
|
|
30
|
+
export declare const EnumDeclaration: (props: Omit<base.EnumDeclarationProps, "children"> & Partial<Pick<base.EnumDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.EnumDeclarationProps> & {
|
|
35
31
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.EnumDeclarationProps>;
|
|
36
32
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.EnumDeclarationProps>;
|
|
37
33
|
};
|
|
@@ -47,7 +43,7 @@ export declare const FunctionCallExpression: (props: base.FunctionCallExpression
|
|
|
47
43
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionCallExpressionProps>;
|
|
48
44
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionCallExpressionProps>;
|
|
49
45
|
};
|
|
50
|
-
export declare const FunctionDeclaration: (props: base.FunctionDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps> & {
|
|
46
|
+
export declare const FunctionDeclaration: (props: Omit<base.FunctionDeclarationProps, "children"> & Partial<Pick<base.FunctionDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps> & {
|
|
51
47
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps>;
|
|
52
48
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.FunctionDeclarationProps>;
|
|
53
49
|
};
|
|
@@ -59,27 +55,31 @@ export declare const ImportStatements: (props: base.ImportStatementsProps) => im
|
|
|
59
55
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ImportStatementsProps>;
|
|
60
56
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ImportStatementsProps>;
|
|
61
57
|
};
|
|
62
|
-
export declare const InterfaceDeclaration: (props: base.InterfaceDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.InterfaceDeclarationProps> & {
|
|
58
|
+
export declare const InterfaceDeclaration: (props: Omit<base.InterfaceDeclarationProps, "children"> & Partial<Pick<base.InterfaceDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.InterfaceDeclarationProps> & {
|
|
63
59
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceDeclarationProps>;
|
|
64
60
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceDeclarationProps>;
|
|
65
61
|
};
|
|
66
|
-
export declare const InterfaceExpression: (props?: base.InterfaceExpressionProps | undefined) => import("@alloy-js/core").ComponentCreator<base.InterfaceExpressionProps> & {
|
|
62
|
+
export declare const InterfaceExpression: (props?: (Omit<base.InterfaceExpressionProps, "children"> & Partial<Pick<base.InterfaceExpressionProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.InterfaceExpressionProps> & {
|
|
67
63
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceExpressionProps>;
|
|
68
64
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceExpressionProps>;
|
|
69
65
|
};
|
|
70
|
-
export declare const InterfaceMember: (props?: base.InterfaceMemberProps | undefined) => import("@alloy-js/core").ComponentCreator<base.InterfaceMemberProps> & {
|
|
66
|
+
export declare const InterfaceMember: (props?: (Omit<base.InterfaceMemberProps, "children"> & Partial<Pick<base.InterfaceMemberProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.InterfaceMemberProps> & {
|
|
71
67
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceMemberProps>;
|
|
72
68
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.InterfaceMemberProps>;
|
|
73
69
|
};
|
|
74
|
-
export declare const
|
|
70
|
+
export declare const MemberchainExpression: (props?: (Omit<base.MemberChainExpressionProps, "children"> & Partial<Pick<base.MemberChainExpressionProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.MemberChainExpressionProps> & {
|
|
71
|
+
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.MemberChainExpressionProps>;
|
|
72
|
+
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.MemberChainExpressionProps>;
|
|
73
|
+
};
|
|
74
|
+
export declare const ObjectExpression: (props?: (Omit<base.ObjectExpressionProps, "children"> & Partial<Pick<base.ObjectExpressionProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.ObjectExpressionProps> & {
|
|
75
75
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ObjectExpressionProps>;
|
|
76
76
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ObjectExpressionProps>;
|
|
77
77
|
};
|
|
78
|
-
export declare const ObjectProperty: (props?: base.ObjectPropertyProps | undefined) => import("@alloy-js/core").ComponentCreator<base.ObjectPropertyProps> & {
|
|
78
|
+
export declare const ObjectProperty: (props?: (Omit<base.ObjectPropertyProps, "children"> & Partial<Pick<base.ObjectPropertyProps, "children">>) | undefined) => import("@alloy-js/core").ComponentCreator<base.ObjectPropertyProps> & {
|
|
79
79
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ObjectPropertyProps>;
|
|
80
80
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ObjectPropertyProps>;
|
|
81
81
|
};
|
|
82
|
-
export declare const PackageDirectory: (props: base.PackageDirectoryProps) => import("@alloy-js/core").ComponentCreator<base.PackageDirectoryProps> & {
|
|
82
|
+
export declare const PackageDirectory: (props: Omit<base.PackageDirectoryProps, "children"> & Partial<Pick<base.PackageDirectoryProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.PackageDirectoryProps> & {
|
|
83
83
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.PackageDirectoryProps>;
|
|
84
84
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.PackageDirectoryProps>;
|
|
85
85
|
};
|
|
@@ -91,7 +91,7 @@ export declare const Reference: (props: base.ReferenceProps) => import("@alloy-j
|
|
|
91
91
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ReferenceProps>;
|
|
92
92
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ReferenceProps>;
|
|
93
93
|
};
|
|
94
|
-
export declare const SourceFile: (props: base.SourceFileProps) => import("@alloy-js/core").ComponentCreator<base.SourceFileProps> & {
|
|
94
|
+
export declare const SourceFile: (props: Omit<base.SourceFileProps, "children"> & Partial<Pick<base.SourceFileProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.SourceFileProps> & {
|
|
95
95
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.SourceFileProps>;
|
|
96
96
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.SourceFileProps>;
|
|
97
97
|
};
|
|
@@ -99,7 +99,7 @@ export declare const TSConfigJson: (props?: base.TSConfigJsonProps | undefined)
|
|
|
99
99
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.TSConfigJsonProps>;
|
|
100
100
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.TSConfigJsonProps>;
|
|
101
101
|
};
|
|
102
|
-
export declare const TypeDeclaration: (props: base.TypeDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.TypeDeclarationProps> & {
|
|
102
|
+
export declare const TypeDeclaration: (props: Omit<base.TypeDeclarationProps, "children"> & Partial<Pick<base.TypeDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.TypeDeclarationProps> & {
|
|
103
103
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.TypeDeclarationProps>;
|
|
104
104
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.TypeDeclarationProps>;
|
|
105
105
|
};
|
|
@@ -107,7 +107,7 @@ export declare const ValueExpression: (props?: base.ValueExpressionProps | undef
|
|
|
107
107
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ValueExpressionProps>;
|
|
108
108
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.ValueExpressionProps>;
|
|
109
109
|
};
|
|
110
|
-
export declare const VarDeclaration: (props: base.VarDeclarationProps) => import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps> & {
|
|
110
|
+
export declare const VarDeclaration: (props: Omit<base.VarDeclarationProps, "children"> & Partial<Pick<base.VarDeclarationProps, "children">>) => import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps> & {
|
|
111
111
|
code(template: TemplateStringsArray, ...substitutions: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps>;
|
|
112
112
|
children(...children: import("@alloy-js/core").Children[]): import("@alloy-js/core").ComponentCreator<base.VarDeclarationProps>;
|
|
113
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stc/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stc/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,WAAW;;;CAAwB,CAAC;AACjD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,sBAAsB;;;CAAmC,CAAC;AACvE,eAAO,MAAM,mBAAmB;;;CAAgC,CAAC;AACjE,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,oBAAoB;;;CAAiC,CAAC;AACnE,eAAO,MAAM,mBAAmB;;;CAAgC,CAAC;AACjE,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,qBAAqB;;;CAAkC,CAAC;AACrE,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,cAAc;;;CAA2B,CAAC;AACvD,eAAO,MAAM,gBAAgB;;;CAA6B,CAAC;AAC3D,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,SAAS;;;CAAsB,CAAC;AAC7C,eAAO,MAAM,UAAU;;;CAAuB,CAAC;AAC/C,eAAO,MAAM,YAAY;;;CAAyB,CAAC;AACnD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,eAAe;;;CAA4B,CAAC;AACzD,eAAO,MAAM,cAAc;;;CAA2B,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { stc } from "@alloy-js/core";
|
|
|
2
2
|
import * as base from "../index.js";
|
|
3
3
|
export const ArrayExpression = stc(base.ArrayExpression);
|
|
4
4
|
export const BarrelFile = stc(base.BarrelFile);
|
|
5
|
-
export const Block = stc(base.Block);
|
|
6
5
|
export const ClassDeclaration = stc(base.ClassDeclaration);
|
|
7
6
|
export const ClassField = stc(base.ClassField);
|
|
8
7
|
export const ClassMember = stc(base.ClassMember);
|
|
@@ -18,6 +17,7 @@ export const ImportStatements = stc(base.ImportStatements);
|
|
|
18
17
|
export const InterfaceDeclaration = stc(base.InterfaceDeclaration);
|
|
19
18
|
export const InterfaceExpression = stc(base.InterfaceExpression);
|
|
20
19
|
export const InterfaceMember = stc(base.InterfaceMember);
|
|
20
|
+
export const MemberchainExpression = stc(base.MemberChainExpression);
|
|
21
21
|
export const ObjectExpression = stc(base.ObjectExpression);
|
|
22
22
|
export const ObjectProperty = stc(base.ObjectProperty);
|
|
23
23
|
export const PackageDirectory = stc(base.PackageDirectory);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["stc","base","ArrayExpression","BarrelFile","
|
|
1
|
+
{"version":3,"file":"index.js","names":["stc","base","ArrayExpression","BarrelFile","ClassDeclaration","ClassField","ClassMember","ClassMethod","Declaration","EnumDeclaration","EnumMember","ExportStatement","FunctionCallExpression","FunctionDeclaration","ImportStatement","ImportStatements","InterfaceDeclaration","InterfaceExpression","InterfaceMember","MemberchainExpression","MemberChainExpression","ObjectExpression","ObjectProperty","PackageDirectory","PackageJsonFile","Reference","SourceFile","TSConfigJson","TypeDeclaration","ValueExpression","VarDeclaration"],"sources":["../../../../src/components/stc/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AACpC,OAAO,KAAKC,IAAI,MAAM,aAAa;AAEnC,OAAO,MAAMC,eAAe,GAAGF,GAAG,CAACC,IAAI,CAACC,eAAe,CAAC;AACxD,OAAO,MAAMC,UAAU,GAAGH,GAAG,CAACC,IAAI,CAACE,UAAU,CAAC;AAC9C,OAAO,MAAMC,gBAAgB,GAAGJ,GAAG,CAACC,IAAI,CAACG,gBAAgB,CAAC;AAC1D,OAAO,MAAMC,UAAU,GAAGL,GAAG,CAACC,IAAI,CAACI,UAAU,CAAC;AAC9C,OAAO,MAAMC,WAAW,GAAGN,GAAG,CAACC,IAAI,CAACK,WAAW,CAAC;AAChD,OAAO,MAAMC,WAAW,GAAGP,GAAG,CAACC,IAAI,CAACM,WAAW,CAAC;AAChD,OAAO,MAAMC,WAAW,GAAGR,GAAG,CAACC,IAAI,CAACO,WAAW,CAAC;AAChD,OAAO,MAAMC,eAAe,GAAGT,GAAG,CAACC,IAAI,CAACQ,eAAe,CAAC;AACxD,OAAO,M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OAAO,MAAMC,eAAe,GAAG5B,GAAG,CAACC,IAAI,CAAC2B,eAAe,CAAC;AACxD,OAAO,MAAMC,eAAe,GAAG7B,GAAG,CAACC,IAAI,CAAC4B,eAAe,CAAC;AACxD,OAAO,MAAMC,cAAc,GAAG9B,GAAG,CAACC,IAAI,CAAC6B,cAAc,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/symbols/reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAIP,MAAM,gBAAgB,CAAC;AASxB,wBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/symbols/reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAIP,MAAM,gBAAgB,CAAC;AASxB,wBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,MAAM,CAoFhD"}
|
|
@@ -33,8 +33,11 @@ export function ref(refkey) {
|
|
|
33
33
|
|
|
34
34
|
// find public dependency
|
|
35
35
|
for (const module of sourcePackage.exportedSymbols.values()) {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
for (const refkey of importSymbol.refkeys) {
|
|
37
|
+
if (module.exportedSymbols.has(refkey)) {
|
|
38
|
+
localSymbol = untrack(() => sourceFile.scope.addImport(importSymbol, module));
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
if (!localSymbol) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference.js","names":["memo","OutputSymbolFlags","resolve","untrack","useContext","usePackage","SourceFileContext","ref","refkey","sourceFile","resolveResult","value","undefined","targetDeclaration","pathDown","memberPath","validateSymbolReachable","targetLocation","kind","localSymbol","pkg","sourcePackage","builtin","scope","addDependency","symbolPath","slice","map","s","owner","importSymbol","module","exportedSymbols","values","has","addImport","Error","name","length","addThisPrefix","buildMemberExpression","rootSymbol","flags","InstanceMember","sym","join","path"],"sources":["../../../src/symbols/reference.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,IAAI,EACJC,iBAAiB,EAEjBC,OAAO,EACPC,OAAO,EACPC,UAAU,QACL,gBAAgB;AACvB,SAASC,UAAU;AACnB,SAASC,iBAAiB;AAO1B,OAAO,SAASC,GAAGA,CAACC,MAAc,EAAgB;EAChD,MAAMC,UAAU,GAAGL,UAAU,CAACE,iBAAiB,CAAC;EAChD,MAAMI,aAAa,GAAGR,OAAO,CAC3BM,MACF,CAAC;EAED,OAAOR,IAAI,CAAC,MAAM;IAChB,IAAIU,aAAa,CAACC,KAAK,KAAKC,SAAS,EAAE;MACrC,OAAO,qBAAqB;IAC9B;IAEA,MAAM;MAAEC,iBAAiB;MAAEC,QAAQ;MAAEC;IAAW,CAAC,GAAGL,aAAa,CAACC,KAAK;IAEvEK,uBAAuB,CAACF,QAAQ,CAAC;;IAEjC;IACA;IACA;IACA;IACA,MAAMG,cAAc,GAAGH,QAAQ,CAAC,CAAC,CAAC,EAAEI,IAAI,IAAI,OAAO;IACnD,IAAIC,WAAuC;IAE3C,IAAIF,cAAc,KAAK,SAAS,EAAE;MAChC;MACA,MAAMG,GAAG,GAAGf,UAAU,CAAC,CAAC;MACxB,MAAMgB,aAAa,GAAGP,QAAQ,CAAC,CAAC,CAAmB;MAEnD,IAAIM,GAAG,IAAI,CAACC,aAAa,CAACC,OAAO,EAAE;QACjCF,GAAG,CAACG,KAAK,CAACC,aAAa,CAACH,aAAa,CAAC;MACxC;MACA,MAAMI,UAAU,GAAG,CACjB,GAAIX,QAAQ,CAACY,KAAK,CAAC,CAAC,CAAC,CAAqBC,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,KAAK,CAAC,EAC7DhB,iBAAiB,CAClB;MAED,MAAMiB,YAAY,GAAGL,UAAU,CAAC,CAAC,CAAC;;MAElC;MACA,KAAK,MAAMM,MAAM,IAAIV,aAAa,CAACW,eAAe,CAACC,MAAM,CAAC,CAAC,EAAE;QAC3D,
|
|
1
|
+
{"version":3,"file":"reference.js","names":["memo","OutputSymbolFlags","resolve","untrack","useContext","usePackage","SourceFileContext","ref","refkey","sourceFile","resolveResult","value","undefined","targetDeclaration","pathDown","memberPath","validateSymbolReachable","targetLocation","kind","localSymbol","pkg","sourcePackage","builtin","scope","addDependency","symbolPath","slice","map","s","owner","importSymbol","module","exportedSymbols","values","refkeys","has","addImport","Error","name","length","addThisPrefix","buildMemberExpression","rootSymbol","flags","InstanceMember","sym","join","path"],"sources":["../../../src/symbols/reference.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,IAAI,EACJC,iBAAiB,EAEjBC,OAAO,EACPC,OAAO,EACPC,UAAU,QACL,gBAAgB;AACvB,SAASC,UAAU;AACnB,SAASC,iBAAiB;AAO1B,OAAO,SAASC,GAAGA,CAACC,MAAc,EAAgB;EAChD,MAAMC,UAAU,GAAGL,UAAU,CAACE,iBAAiB,CAAC;EAChD,MAAMI,aAAa,GAAGR,OAAO,CAC3BM,MACF,CAAC;EAED,OAAOR,IAAI,CAAC,MAAM;IAChB,IAAIU,aAAa,CAACC,KAAK,KAAKC,SAAS,EAAE;MACrC,OAAO,qBAAqB;IAC9B;IAEA,MAAM;MAAEC,iBAAiB;MAAEC,QAAQ;MAAEC;IAAW,CAAC,GAAGL,aAAa,CAACC,KAAK;IAEvEK,uBAAuB,CAACF,QAAQ,CAAC;;IAEjC;IACA;IACA;IACA;IACA,MAAMG,cAAc,GAAGH,QAAQ,CAAC,CAAC,CAAC,EAAEI,IAAI,IAAI,OAAO;IACnD,IAAIC,WAAuC;IAE3C,IAAIF,cAAc,KAAK,SAAS,EAAE;MAChC;MACA,MAAMG,GAAG,GAAGf,UAAU,CAAC,CAAC;MACxB,MAAMgB,aAAa,GAAGP,QAAQ,CAAC,CAAC,CAAmB;MAEnD,IAAIM,GAAG,IAAI,CAACC,aAA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WAAW,EAAE;QACfJ,UAAU,CAAC,CAAC,CAAC,GAAGI,WAAW;MAC7B;MAEA,OAAOqB,aAAa,CAClB3B,iBAAiB,EACjB4B,qBAAqB,CAAC1B,UAAU,CAClC,CAAC;IACH,CAAC,MAAM;MACL,OAAOyB,aAAa,CAClBrB,WAAW,IAAIN,iBAAiB,EAChCM,WAAW,GAAGA,WAAW,CAACmB,IAAI,GAAGzB,iBAAiB,CAACyB,IACrD,CAAC;IACH;EACF,CAAC,CAAC;AACJ;AAEA,SAASE,aAAaA,CAACE,UAA0B,EAAEJ,IAAY,EAAE;EAC/D,IAAII,UAAU,CAACC,KAAK,GAAG1C,iBAAiB,CAAC2C,cAAc,EAAE;IACvD,OAAO,QAAQN,IAAI,EAAE;EACvB,CAAC,MAAM;IACL,OAAOA,IAAI;EACb;AACF;AAEA,SAASG,qBAAqBA,CAAChB,UAA4B,EAAE;EAC3D,OAAOA,UAAU,CAACE,GAAG,CAAEkB,GAAG,IAAKA,GAAG,CAACP,IAAI,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;AACpD;AAEA,SAAS9B,uBAAuBA,CAAC+B,IAAqB,EAAE;EACtD,KAAK,MAAMxB,KAAK,IAAIwB,IAAI,EAAE;IACxB,IAAIxB,KAAK,CAACL,IAAI,KAAK,UAAU,EAAE;MAC7B,MAAM,IAAImB,KAAK,CACb,qEACF,CAAC;IACH;EACF;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-output-symbol.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-output-symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,oBAAY,aAAa;IACvB,IAAI,IAAiB;IACrB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EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CA4B7E"}
|
|
@@ -17,13 +17,16 @@ export function createTSSymbol(options) {
|
|
|
17
17
|
name: options.name,
|
|
18
18
|
scope,
|
|
19
19
|
refkey: options.refkey,
|
|
20
|
+
refkeys: options.refkeys,
|
|
20
21
|
export: !!options.export,
|
|
21
22
|
default: !!options.default,
|
|
22
23
|
flags: options.flags ?? OutputSymbolFlags.None,
|
|
23
24
|
tsFlags: options.tsFlags ?? TSSymbolFlags.None
|
|
24
25
|
});
|
|
25
26
|
if (options.export && scope.kind === "module") {
|
|
26
|
-
|
|
27
|
+
for (const refkey of sym.refkeys) {
|
|
28
|
+
scope.exportedSymbols.set(refkey, sym);
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
return sym;
|
|
29
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-output-symbol.js","names":["OutputSymbolFlags","useDefaultScope","TSSymbolFlags","createTSSymbol","options","scope","flags","kind","export","default","Error","binder","sym","createSymbol","name","refkey","None","tsFlags","exportedSymbols","set"],"sources":["../../../src/symbols/ts-output-symbol.ts"],"sourcesContent":[null],"mappings":"AAAA,SAGEA,iBAAiB,EAEjBC,eAAe,QACV,gBAAgB;AAIvB;AACA,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;
|
|
1
|
+
{"version":3,"file":"ts-output-symbol.js","names":["OutputSymbolFlags","useDefaultScope","TSSymbolFlags","createTSSymbol","options","scope","flags","kind","export","default","Error","binder","sym","createSymbol","name","refkey","refkeys","None","tsFlags","exportedSymbols","set"],"sources":["../../../src/symbols/ts-output-symbol.ts"],"sources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AOA,GAAG;AACZ","ignoreList":[]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Binder, OutputScope, Refkey } from "@alloy-js/core";
|
|
2
|
-
import { ExportConditions, PackageExports } from "../components/PackageJson.jsx";
|
|
3
2
|
import { TSModuleScope } from "./ts-module-scope.js";
|
|
4
3
|
export interface TSPackageScope extends OutputScope {
|
|
5
4
|
kind: "package";
|
|
@@ -22,18 +21,6 @@ export interface TSPackageScope extends OutputScope {
|
|
|
22
21
|
* The scopes for the packages this package depends on.
|
|
23
22
|
*/
|
|
24
23
|
dependencies: Set<TSPackageScope>;
|
|
25
|
-
/**
|
|
26
|
-
* Fixed dependencies of this package. Only use this for packages in which you
|
|
27
|
-
* do not intend to reference via the `Reference` component. Symbols from raw
|
|
28
|
-
* dependencies cannot be auto imported.
|
|
29
|
-
*/
|
|
30
|
-
rawDependencies: Map<string, string>;
|
|
31
|
-
/**
|
|
32
|
-
* Fixed exports of this package. Only use this for exports which you want to
|
|
33
|
-
* add manually to the package. Otherwise use the `export` prop on
|
|
34
|
-
* `SourceFile` to add an export.
|
|
35
|
-
*/
|
|
36
|
-
rawExports: PackageExports;
|
|
37
24
|
/**
|
|
38
25
|
* All of the modules contained within the package. These modules may or may not
|
|
39
26
|
* be exported.
|
|
@@ -44,9 +31,7 @@ export interface TSPackageScope extends OutputScope {
|
|
|
44
31
|
*/
|
|
45
32
|
builtin?: boolean;
|
|
46
33
|
addExport(publicPath: string, localModule: TSModuleScope): void;
|
|
47
|
-
addRawExport(publicPath: string, exportPath: string | ExportConditions): void;
|
|
48
34
|
addDependency(pkg: TSPackageScope): void;
|
|
49
|
-
addRawDependency(packageName: string, version: string): void;
|
|
50
35
|
addModule(module: TSModuleScope): void;
|
|
51
36
|
findExportedSymbol(refkey: Refkey): [string, TSModuleScope] | null;
|
|
52
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-package-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-package-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ts-package-scope.d.ts","sourceRoot":"","sources":["../../../src/symbols/ts-package-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAElC;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,GAAG,IAAI,CAAC;IAChE,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IACvC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;CACpE;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAe,kBA+BzB"}
|
|
@@ -6,8 +6,6 @@ export function createTSPackageScope(binder, parent, name, version, path, builti
|
|
|
6
6
|
parent,
|
|
7
7
|
exportedSymbols: new Map(),
|
|
8
8
|
dependencies: new Set(),
|
|
9
|
-
rawDependencies: new Map(),
|
|
10
|
-
rawExports: {},
|
|
11
9
|
modules: new Set(),
|
|
12
10
|
version,
|
|
13
11
|
path: path,
|
|
@@ -18,12 +16,6 @@ export function createTSPackageScope(binder, parent, name, version, path, builti
|
|
|
18
16
|
addExport(publicPath, module) {
|
|
19
17
|
this.exportedSymbols.set(modulePath(publicPath), module);
|
|
20
18
|
},
|
|
21
|
-
addRawDependency(packageName, version) {
|
|
22
|
-
this.rawDependencies.set(packageName, version);
|
|
23
|
-
},
|
|
24
|
-
addRawExport(localPath, exportPath) {
|
|
25
|
-
this.rawExports[localPath] = exportPath;
|
|
26
|
-
},
|
|
27
19
|
addModule(module) {
|
|
28
20
|
this.modules.add(module);
|
|
29
21
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-package-scope.js","names":["modulePath","createTSPackageScope","binder","parent","name","version","path","builtin","createScope","kind","exportedSymbols","Map","dependencies","Set","
|
|
1
|
+
{"version":3,"file":"ts-package-scope.js","names":["modulePath","createTSPackageScope","binder","parent","name","version","path","builtin","createScope","kind","exportedSymbols","Map","dependencies","Set","modules","addDependency","pkg","add","addExport","publicPath","module","set","addModule","findExportedSymbol","refkey","has"],"sources":["../../../src/symbols/ts-package-scope.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAU,QAAQ,aAAa;AA6CxC,OAAO,SAASC,oBAAoBA,CAClCC,MAAc,EACdC,MAA+B,EAC/BC,IAAY,EACZC,OAAe,EACfC,IAAY,EACZC,OAAgB,GAAG,KAAK,EACxB;EACA,OAAOL,MAAM,CAACM,WAAW,CAAiB;IACxCC,IAAI,EAAE,SAAS;IACfL,IAAI;IACJD,MAAM;IACNO,eAAe,EAAE,IAAIC,GAAG,CAAC,CAAC;IAC1BC,YAAY,EAAE,IAAIC,GAAG,CAAC,CAAC;IACvBC,OAAO,EAAE,IAAID,GAAG,CAAC,CAAC;IAClBR,OAAO;IACPC,IAAI,EAAEA,IAAI;IACVC,OAAO;IACPQ,aAAaA,CAACC,GAAG,EAAE;MACjB,IAAI,CAACJ,YAAY,CAACK,GAAG,CAACD,GAAG,CAAC;IAC5B,CAAC;IACDE,SAASA,CAACC,UAAU,EAAEC,MAAM,EAAE;MAC5B,IAAI,CAACV,eAAe,CAACW,GAAG,CAACrB,UAAU,CAACmB,UAAU,CAAC,EAAEC,MAAM,CAAC;IAC1D,CAAC;IACDE,SAASA,CAACF,MAAM,EAAE;MAChB,IAAI,CAACN,OAAO,CAACG,GAAG,CAACG,MAAM,CAAC;IAC1B,CAAC;IACDG,kBAAkBA,CAACC,MAAc,EAAkC;MACjE,KAAK,MAAM,CAACL,UAAU,EAAEC,MAAM,CAAC,IAAI,IAAI,CAACV,eAAe,EAAE;QACvD,IAAIU,MAAM,CAACV,eAAe,CAACe,GAAG,CAACD,MAAM,CAAC,EAAE;UACtC,OAAO,CAACL,UAAU,EAAEC,MAAM,CAAC;QAC7B;MACF;MAEA,OAAO,IAAI;IACb;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.test.d.ts","sourceRoot":"","sources":["../../test/imports.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imports.test.d.ts","sourceRoot":"","sources":["../../test/imports.test.tsx"],"names":[],"mappings":"AAOA,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsdoc.test.d.ts","sourceRoot":"","sources":["../../test/jsdoc.test.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-chain.test.d.ts","sourceRoot":"","sources":["../../test/member-chain.test.tsx"],"names":[],"mappings":""}
|
package/dist/test/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children, OutputDirectory, OutputFile } from "@alloy-js/core";
|
|
2
|
-
export declare function toSourceText(c: Children): string;
|
|
1
|
+
import { Children, OutputDirectory, OutputFile, PrintTreeOptions } from "@alloy-js/core";
|
|
2
|
+
export declare function toSourceText(c: Children, options?: PrintTreeOptions): string;
|
|
3
3
|
export declare function findFile(res: OutputDirectory, path: string): OutputFile;
|
|
4
4
|
export declare function assertFileContents(res: OutputDirectory, expectedFiles: Record<string, string>): void;
|
|
5
5
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/test/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,eAAe,EACf,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,eAAe,EACf,UAAU,EACV,gBAAgB,EAEjB,MAAM,gBAAgB,CAAC;AAKxB,wBAAgB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAS5E;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CA2BvE;AAED,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,eAAe,EACpB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAMtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.test.d.ts","sourceRoot":"","sources":["../../test/values.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"values.test.d.ts","sourceRoot":"","sources":["../../test/values.test.tsx"],"names":[],"mappings":"AAUA,OAAO,wBAAwB,CAAC"}
|