@alloy-js/core 0.5.0 → 0.6.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 +44 -0
- package/babel.config.cjs +4 -1
- package/dist/src/binder.d.ts +5 -0
- package/dist/src/binder.d.ts.map +1 -1
- package/dist/src/binder.js +14 -0
- package/dist/src/binder.js.map +1 -1
- package/dist/src/code.d.ts +2 -2
- package/dist/src/code.d.ts.map +1 -1
- package/dist/src/code.js +4 -4
- package/dist/src/code.js.map +1 -1
- package/dist/src/components/Block.d.ts +25 -0
- package/dist/src/components/Block.d.ts.map +1 -0
- package/dist/src/components/Block.js +25 -0
- package/dist/src/components/Block.js.map +1 -0
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js +4 -0
- package/dist/src/components/Declaration.js.map +1 -1
- package/dist/src/components/For.d.ts +44 -0
- package/dist/src/components/For.d.ts.map +1 -0
- package/dist/src/components/For.js +41 -0
- package/dist/src/components/For.js.map +1 -0
- package/dist/src/components/Indent.d.ts +5 -9
- package/dist/src/components/Indent.d.ts.map +1 -1
- package/dist/src/components/Indent.js +7 -18
- package/dist/src/components/Indent.js.map +1 -1
- package/dist/src/components/List.d.ts +38 -0
- package/dist/src/components/List.d.ts.map +1 -0
- package/dist/src/components/List.js +40 -0
- package/dist/src/components/List.js.map +1 -0
- package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
- package/dist/src/components/MemberDeclaration.js.map +1 -1
- package/dist/src/components/MemberName.js +1 -1
- package/dist/src/components/MemberName.js.map +1 -1
- package/dist/src/components/MemberScope.d.ts.map +1 -1
- package/dist/src/components/MemberScope.js.map +1 -1
- package/dist/src/components/Name.js +1 -1
- package/dist/src/components/Name.js.map +1 -1
- package/dist/src/components/Output.d.ts +2 -1
- package/dist/src/components/Output.d.ts.map +1 -1
- package/dist/src/components/Output.js +9 -1
- package/dist/src/components/Output.js.map +1 -1
- package/dist/src/components/Scope.d.ts.map +1 -1
- package/dist/src/components/Scope.js.map +1 -1
- package/dist/src/components/Show.d.ts +8 -0
- package/dist/src/components/Show.d.ts.map +1 -0
- package/dist/src/components/Show.js +4 -0
- package/dist/src/components/Show.js.map +1 -0
- package/dist/src/components/SourceDirectory.d.ts.map +1 -1
- package/dist/src/components/SourceDirectory.js +1 -0
- package/dist/src/components/SourceDirectory.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +2 -6
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +6 -13
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/StatementList.d.ts +9 -0
- package/dist/src/components/StatementList.d.ts.map +1 -0
- package/dist/src/components/StatementList.js +17 -0
- package/dist/src/components/StatementList.js.map +1 -0
- package/dist/src/components/Switch.d.ts +41 -0
- package/dist/src/components/Switch.d.ts.map +1 -0
- package/dist/src/components/Switch.js +41 -0
- package/dist/src/components/Switch.js.map +1 -0
- package/dist/src/components/Wrap.d.ts +20 -0
- package/dist/src/components/Wrap.d.ts.map +1 -0
- package/dist/src/components/Wrap.js +15 -0
- package/dist/src/components/Wrap.js.map +1 -0
- package/dist/src/components/index.d.ts +8 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +7 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/stc/index.d.ts +77 -6
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +17 -1
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/src/context/index.d.ts +0 -1
- package/dist/src/context/index.d.ts.map +1 -1
- package/dist/src/context/index.js +0 -1
- package/dist/src/context/index.js.map +1 -1
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +3 -3
- package/dist/src/context.js.map +1 -1
- package/dist/src/index.browser.d.ts +3 -0
- package/dist/src/index.browser.d.ts.map +1 -0
- package/dist/src/index.browser.js +3 -0
- package/dist/src/index.browser.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/jsx-runtime.d.ts +133 -8
- package/dist/src/jsx-runtime.d.ts.map +1 -1
- package/dist/src/jsx-runtime.js +102 -12
- package/dist/src/jsx-runtime.js.map +1 -1
- package/dist/src/render.d.ts +107 -132
- package/dist/src/render.d.ts.map +1 -1
- package/dist/src/render.js +269 -177
- package/dist/src/render.js.map +1 -1
- package/dist/src/stc.d.ts +14 -0
- package/dist/src/stc.d.ts.map +1 -0
- package/dist/src/stc.js +52 -0
- package/dist/src/stc.js.map +1 -0
- package/dist/src/utils.d.ts +22 -15
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +95 -59
- package/dist/src/utils.js.map +1 -1
- package/dist/test/browser-build.test.d.ts +2 -0
- package/dist/test/browser-build.test.d.ts.map +1 -0
- package/dist/test/components/block.test.d.ts +2 -0
- package/dist/test/components/block.test.d.ts.map +1 -0
- package/dist/test/components/declaration.test.d.ts +2 -0
- package/dist/test/components/declaration.test.d.ts.map +1 -0
- package/dist/test/components/list.test.d.ts +2 -0
- package/dist/test/components/list.test.d.ts.map +1 -0
- package/dist/test/components/wrap.test.d.ts +2 -0
- package/dist/test/components/wrap.test.d.ts.map +1 -0
- package/dist/test/control-flow/for.test.d.ts +2 -0
- package/dist/test/control-flow/for.test.d.ts.map +1 -0
- package/dist/test/control-flow/match.test.d.ts +2 -0
- package/dist/test/control-flow/match.test.d.ts.map +1 -0
- package/dist/test/control-flow/show.test.d.ts +2 -0
- package/dist/test/control-flow/show.test.d.ts.map +1 -0
- package/dist/test/reactivity/cleanup.test.d.ts +2 -0
- package/dist/test/reactivity/cleanup.test.d.ts.map +1 -0
- package/dist/test/reactivity/memo.test.d.ts +2 -0
- package/dist/test/reactivity/memo.test.d.ts.map +1 -0
- package/dist/test/reactivity/untrack.test.d.ts +2 -0
- package/dist/test/reactivity/untrack.test.d.ts.map +1 -0
- package/dist/test/rendering/formatting.test.d.ts +2 -0
- package/dist/test/rendering/formatting.test.d.ts.map +1 -0
- package/dist/test/rendering/memoization.test.d.ts +2 -0
- package/dist/test/rendering/memoization.test.d.ts.map +1 -0
- package/dist/test/split-props.test.d.ts +2 -0
- package/dist/test/split-props.test.d.ts.map +1 -0
- package/dist/test/stc.test.d.ts.map +1 -1
- package/dist/test/utils.test.d.ts.map +1 -1
- package/dist/testing/extend-expect.js +4 -4
- package/dist/testing/extend-expect.js.map +1 -1
- package/dist/testing/render.d.ts +2 -3
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +2 -4
- package/dist/testing/render.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -8
- package/src/binder.ts +21 -0
- package/src/code.ts +17 -12
- package/src/components/Block.tsx +44 -0
- package/src/components/Declaration.tsx +10 -4
- package/src/components/For.tsx +81 -0
- package/src/components/Indent.tsx +20 -27
- package/src/components/List.tsx +94 -0
- package/src/components/MemberDeclaration.tsx +9 -6
- package/src/components/MemberScope.tsx +4 -2
- package/src/components/Output.tsx +25 -13
- package/src/components/Scope.tsx +4 -2
- package/src/components/Show.tsx +11 -0
- package/src/components/SourceDirectory.tsx +5 -1
- package/src/components/SourceFile.tsx +12 -16
- package/src/components/StatementList.tsx +16 -0
- package/src/components/Switch.tsx +62 -0
- package/src/components/Wrap.tsx +29 -0
- package/src/components/index.tsx +8 -1
- package/src/components/stc/index.ts +18 -1
- package/src/context/index.ts +0 -1
- package/src/context.ts +2 -3
- package/src/index.browser.ts +2 -0
- package/src/index.ts +1 -0
- package/src/jsx-runtime.ts +241 -23
- package/src/render.ts +378 -198
- package/src/stc.ts +95 -0
- package/src/utils.ts +162 -95
- package/temp/api.json +8318 -3301
- package/test/browser-build.test.ts +91 -0
- package/test/children.test.tsx +8 -10
- package/test/components/block.test.tsx +48 -0
- package/test/components/declaration.test.tsx +37 -0
- package/test/components/list.test.tsx +91 -0
- package/test/components/slot.test.tsx +31 -25
- package/test/components/source-file.test.tsx +11 -31
- package/test/components/wrap.test.tsx +42 -0
- package/test/control-flow/for.test.tsx +194 -0
- package/test/control-flow/match.test.tsx +49 -0
- package/test/control-flow/show.test.tsx +25 -0
- package/test/name-policy.test.tsx +5 -5
- package/test/reactivity/cleanup.test.tsx +91 -0
- package/test/reactivity/memo.test.tsx +17 -0
- package/test/reactivity/ref-rendering.test.tsx +3 -8
- package/test/reactivity/test.test.tsx +7 -6
- package/test/reactivity/untrack.test.ts +33 -0
- package/test/rendering/basic.test.tsx +25 -47
- package/test/rendering/code.test.tsx +3 -3
- package/test/rendering/formatting.test.tsx +487 -0
- package/test/rendering/indent.test.tsx +42 -529
- package/test/rendering/memoization.test.tsx +30 -0
- package/test/split-props.test.ts +87 -0
- package/test/stc.test.tsx +29 -8
- package/test/symbols.test.ts +73 -0
- package/test/utils.test.tsx +129 -20
- package/testing/extend-expect.ts +14 -4
- package/testing/render.ts +2 -4
- package/testing/vitest.d.ts +6 -1
- package/vitest.config.ts +1 -1
- package/dist/src/context/indent.d.ts +0 -5
- package/dist/src/context/indent.d.ts.map +0 -1
- package/dist/src/context/indent.js +0 -8
- package/dist/src/context/indent.js.map +0 -1
- package/dist/test/rendering/linebreaks.test.d.ts +0 -2
- package/dist/test/rendering/linebreaks.test.d.ts.map +0 -1
- package/src/context/indent.ts +0 -17
- package/test/rendering/linebreaks.test.tsx +0 -72
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
import { memo, splitProps } from "@alloy-js/core/jsx-runtime";
|
|
6
|
+
import { childrenArray } from "../utils.js";
|
|
7
|
+
import { For } from "./For.js";
|
|
8
|
+
export function baseListPropsToMapJoinArgs(props) {
|
|
9
|
+
let joiner, punctuation;
|
|
10
|
+
if ("joiner" in props) {
|
|
11
|
+
joiner = props.joiner;
|
|
12
|
+
} else {
|
|
13
|
+
punctuation = props.comma ? "," : props.semicolon ? ";" : "";
|
|
14
|
+
joiner = [punctuation, _$memo(() => _$memo(() => !!props.softline)() ? _$createIntrinsic("sbr", {}) : _$memo(() => !!props.hardline)() ? _$createIntrinsic("hbr", {}) : _$memo(() => !!props.literalline)() ? _$createIntrinsic("lbr", {}) : _$memo(() => !!props.line)() ? _$createIntrinsic("br", {}) : _$memo(() => !!props.space)() ? [" "] : _$createIntrinsic("hbr", {}))];
|
|
15
|
+
}
|
|
16
|
+
const ender = "ender" in props ? props.ender : props.enderPunctuation ? punctuation : undefined;
|
|
17
|
+
return {
|
|
18
|
+
joiner,
|
|
19
|
+
ender
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a list of children with text between each child. The text to join with
|
|
24
|
+
* is specified by providing either `joiner` children, or providing boolean
|
|
25
|
+
* props for the punctuation and line breaks. The default joiner is no
|
|
26
|
+
* punctuation and a hard break. The `ender` prop can provide text to place at
|
|
27
|
+
* the end of the list when there is at least one child.
|
|
28
|
+
*/
|
|
29
|
+
export function List(props) {
|
|
30
|
+
const [rest, forProps] = splitProps(props, ["children"]);
|
|
31
|
+
const resolvedChildren = memo(() => childrenArray(() => rest.children, {
|
|
32
|
+
preserveFragments: true
|
|
33
|
+
}));
|
|
34
|
+
return _$createComponent(For, _$mergeProps({
|
|
35
|
+
each: resolvedChildren
|
|
36
|
+
}, forProps, {
|
|
37
|
+
children: child => child
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=List.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.js","names":["memo","splitProps","childrenArray","For","baseListPropsToMapJoinArgs","props","joiner","punctuation","comma","semicolon","_$memo","softline","_$createIntrinsic","hardline","literalline","line","space","ender","enderPunctuation","undefined","List","rest","forProps","resolvedChildren","children","preserveFragments","_$createComponent","_$mergeProps","each","child"],"sources":["../../../src/components/List.tsx"],"sourcesContent":[null],"mappings":";;;;AAAA,SAAmBA,IAAI,EAAEC,UAAU,QAAQ,4BAA4B;AACvE,SAASC,aAAa,QAAqB,aAAa;AACxD,SAASC,GAAG;AAgCZ,OAAO,SAASC,0BAA0BA,CAACC,KAAoB,EAAe;EAC5E,IAAIC,MAAM,EAAEC,WAAW;EACvB,IAAI,QAAQ,IAAIF,KAAK,EAAE;IACrBC,MAAM,GAAGD,KAAK,CAACC,MAAM;EACvB,CAAC,MAAM;IACLC,WAAW,GACTF,KAAK,CAACG,KAAK,GAAG,GAAG,GACfH,KAAK,CAACI,SAAS,GAAG,GAAG,GACrB,EAAE;IAENH,MAAM,IAEDC,WAAW,EAAAG,MAAA,OACXA,MAAA,SAAAL,KAAK,CAACM,QAAQ,MAAAC,iBAAA,cAEbF,MAAA,SAAAL,KAAK,CAACQ,QAAQ,MAAAD,iBAAA,cAEdF,MAAA,SAAAL,KAAK,CAACS,WAAW,MAAAF,iBAAA,cAEjBF,MAAA,SAAAL,KAAK,CAACU,IAAI,MAAAH,iBAAA,aAEVF,MAAA,SAAAL,KAAK,CAACW,KAAK,cAAAJ,iBAAA,WAEJ,EAEZ;EACH;EAEA,MAAMK,KAAK,GACT,OAAO,IAAIZ,KAAK,GAAGA,KAAK,CAACY,KAAK,GAC5BZ,KAAK,CAACa,gBAAgB,GAAGX,WAAW,GACpCY,SAAS;EAEb,OAAO;IAAEb,MAAM;IAAEW;EAAM,CAAC;AAC1B;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,IAAIA,CAACf,KAAgB,EAAE;EACrC,MAAM,CAACgB,IAAI,EAAEC,QAAQ,CAAC,GAAGrB,UAAU,CAACI,KAAK,EAAE,CAAC,UAAU,CAAC,CAAC;EACxD,MAAMkB,gBAAgB,GAAGvB,IAAI,CAAC,MAC5BE,aAAa,CAAC,MAAMmB,IAAI,CAACG,QAAQ,EAAE;IACjCC,iBAAiB,EAAE;EACrB,CAAC,CACH,CAAC;EACD,OAAAC,iBAAA,CACGvB,GAAG,EAAAwB,YAAA;IAACC,IAAI,EAAEL;EAAgB,GAAMD,QAAQ;IAAAE,QAAA,EACrCK,KAAK,IAAKA;EAAK;AAGvB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAI/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAU,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAI/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAU,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,YA+B9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberDeclaration.js","names":["OutputSymbolFlags","useContext","BinderContext","MemberDeclarationContext","refkey","MemberDeclaration","props","binder","Error","declaration","symbol","name","rk","createSymbol","flags","static","StaticMember","InstanceMember","_$createComponent","Provider","value","children"],"sources":["../../../src/components/MemberDeclaration.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAAuBA,iBAAiB,QAAQ,cAAc;AAC9D,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,wBAAwB,QAAQ,kCAAkC;AAE3E,SAAiBC,MAAM,QAAQ,cAAc;AAU7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,KAA6B,EAAE;EAC/D,MAAMC,MAAM,GAAGN,UAAU,CAACC,aAAa,CAAC;EACxC,IAAI,CAACK,MAAM,EAAE;IACX,MAAM,IAAIC,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EAEA,IAAIC,WAAW;EACf,IAAIH,KAAK,CAACI,MAAM,EAAE;IAChBD,WAAW,GAAGH,KAAK,CAACI,MAAM;EAC5B,CAAC,MAAM;IACL,IAAI,CAACJ,KAAK,CAACK,IAAI,EAAE;MACf,MAAM,IAAIH,KAAK,CACb,6DACF,CAAC;IACH;IACA,MAAMI,EAAE,GAAGN,KAAK,CAACF,MAAM,GAAGE,KAAK,CAACF,MAAM,GAAGA,MAAM,CAACE,KAAK,CAACK,IAAI,CAAC;IAC3DF,WAAW,GAAGF,MAAM,CAACM,YAAY,CAAC;MAChCF,IAAI,EAAEL,KAAK,CAACK,IAAK;MACjBP,MAAM,EAAEQ,EAAE;MACVE,KAAK,
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.js","names":["OutputSymbolFlags","useContext","BinderContext","MemberDeclarationContext","refkey","MemberDeclaration","props","binder","Error","declaration","symbol","name","rk","createSymbol","flags","static","StaticMember","InstanceMember","_$createComponent","Provider","value","children"],"sources":["../../../src/components/MemberDeclaration.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAAuBA,iBAAiB,QAAQ,cAAc;AAC9D,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,wBAAwB,QAAQ,kCAAkC;AAE3E,SAAiBC,MAAM,QAAQ,cAAc;AAU7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,KAA6B,EAAE;EAC/D,MAAMC,MAAM,GAAGN,UAAU,CAACC,aAAa,CAAC;EACxC,IAAI,CAACK,MAAM,EAAE;IACX,MAAM,IAAIC,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EAEA,IAAIC,WAAW;EACf,IAAIH,KAAK,CAACI,MAAM,EAAE;IAChBD,WAAW,GAAGH,KAAK,CAACI,MAAM;EAC5B,CAAC,MAAM;IACL,IAAI,CAACJ,KAAK,CAACK,IAAI,EAAE;MACf,MAAM,IAAIH,KAAK,CACb,6DACF,CAAC;IACH;IACA,MAAMI,EAAE,GAAGN,KAAK,CAACF,MAAM,GAAGE,KAAK,CAACF,MAAM,GAAGA,MAAM,CAACE,KAAK,CAACK,IAAI,CAAC;IAC3DF,WAAW,GAAGF,MAAM,CAACM,YAAY,CAAC;MAChCF,IAAI,EAAEL,KAAK,CAACK,IAAK;MACjBP,MAAM,EAAEQ,EAAE;MACVE,KAAK,EACHR,KAAK,CAACS,MAAM,GACVf,iBAAiB,CAACgB,YAAY,GAC9BhB,iBAAiB,CAACiB;IACxB,CAAC,CAAC;EACJ;EAEA,OAAAC,iBAAA,CACGf,wBAAwB,CAACgB,QAAQ;IAACC,KAAK,EAAEX,WAAW;IAAA,IAAAY,SAAA;MAAA,OAClDf,KAAK,CAACe,QAAQ;IAAA;EAAA;AAGrB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberName.js","names":["useContext","MemberDeclarationContext","MemberName","declSymbol","_$memo","name"],"sources":["../../../src/components/MemberName.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,wBAAwB,QAAQ,kCAAkC;AAE3E,OAAO,SAASC,UAAUA,CAAA,EAAG;EAC3B,MAAMC,UAAU,GAAGH,UAAU,CAACC,wBAAwB,CAAC;EACvD,IAAI,CAACE,UAAU,EAAE;IACf,OAAO,iCAAiC;EAC1C;EAEA,
|
|
1
|
+
{"version":3,"file":"MemberName.js","names":["useContext","MemberDeclarationContext","MemberName","declSymbol","_$memo","name"],"sources":["../../../src/components/MemberName.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,wBAAwB,QAAQ,kCAAkC;AAE3E,OAAO,SAASC,UAAUA,CAAA,EAAG;EAC3B,MAAMC,UAAU,GAAGH,UAAU,CAACC,wBAAwB,CAAC;EACvD,IAAI,CAACE,UAAU,EAAE;IACf,OAAO,iCAAiC;EAC1C;EAEA,QAAAC,MAAA,OAAUD,UAAU,CAACE,IAAI;AAC3B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberScope.d.ts","sourceRoot":"","sources":["../../../src/components/MemberScope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"MemberScope.d.ts","sourceRoot":"","sources":["../../../src/components/MemberScope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YAUlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberScope.js","names":["MemberScopeContext","MemberScope","props","context","instanceMembers","owner","instanceMemberScope","staticMembers","staticMemberScope","_$createComponent","Provider","value","children"],"sources":["../../../src/components/MemberScope.tsx"],"sourcesContent":[null],"mappings":";;AAGA;;AAEA,SAASA,kBAAkB,QAAQ,4BAA4B;AAgB/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,OAA2B,GAAG;IAClCC,eAAe,EAAEF,KAAK,CAACG,KAAK,CAACC,mBAAmB;IAChDC,aAAa,EAAEL,KAAK,CAACG,KAAK,CAACG;EAC7B,CAAC;EACD,OAAAC,iBAAA,
|
|
1
|
+
{"version":3,"file":"MemberScope.js","names":["MemberScopeContext","MemberScope","props","context","instanceMembers","owner","instanceMemberScope","staticMembers","staticMemberScope","_$createComponent","Provider","value","children"],"sources":["../../../src/components/MemberScope.tsx"],"sourcesContent":[null],"mappings":";;AAGA;;AAEA,SAASA,kBAAkB,QAAQ,4BAA4B;AAgB/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,OAA2B,GAAG;IAClCC,eAAe,EAAEF,KAAK,CAACG,KAAK,CAACC,mBAAmB;IAChDC,aAAa,EAAEL,KAAK,CAACG,KAAK,CAACG;EAC7B,CAAC;EACD,OAAAC,iBAAA,CACGT,kBAAkB,CAACU,QAAQ;IAACC,KAAK,EAAER,OAAO;IAAA,IAAAS,SAAA;MAAA,OACxCV,KAAK,CAACU,QAAQ;IAAA;EAAA;AAGrB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Name.js","names":["useContext","DeclarationContext","Name","declSymbol","_$memo","name"],"sources":["../../../src/components/Name.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,kBAAkB,QAAQ,2BAA2B;AAE9D,OAAO,SAASC,IAAIA,CAAA,EAAG;EACrB,MAAMC,UAAU,GAAGH,UAAU,CAACC,kBAAkB,CAAC;EACjD,IAAI,CAACE,UAAU,EAAE;IACf,OAAO,EAAE;EACX;EAEA,
|
|
1
|
+
{"version":3,"file":"Name.js","names":["useContext","DeclarationContext","Name","declSymbol","_$memo","name"],"sources":["../../../src/components/Name.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,kBAAkB,QAAQ,2BAA2B;AAE9D,OAAO,SAASC,IAAIA,CAAA,EAAG;EACrB,MAAMC,UAAU,GAAGH,UAAU,CAACC,kBAAkB,CAAC;EACjD,IAAI,CAACE,UAAU,EAAE;IACf,OAAO,EAAE;EACX;EAEA,QAAAC,MAAA,OAAUD,UAAU,CAACE,IAAI;AAC3B","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SymbolCreator } from "../binder.js";
|
|
2
2
|
import { Children } from "../jsx-runtime.js";
|
|
3
3
|
import { NamePolicy } from "../name-policy.js";
|
|
4
|
-
|
|
4
|
+
import { PrintTreeOptions } from "../render.js";
|
|
5
|
+
export interface OutputProps extends PrintTreeOptions {
|
|
5
6
|
children?: Children;
|
|
6
7
|
/**
|
|
7
8
|
* External libraries whose symbols should be available for reference.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Output.d.ts","sourceRoot":"","sources":["../../../src/components/Output.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Output.d.ts","sourceRoot":"","sources":["../../../src/components/Output.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAOhD,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAE9D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,YAoCxC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
1
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { createOutputBinder, getSymbolCreator } from "../binder.js";
|
|
4
4
|
import { BinderContext } from "../context/binder.js";
|
|
5
5
|
import { NamePolicyContext } from "../context/name-policy.js";
|
|
6
|
+
import { getContext } from "../jsx-runtime.js";
|
|
6
7
|
import { extensionEffects } from "../slot.js";
|
|
7
8
|
import { SourceDirectory } from "./SourceDirectory.js";
|
|
8
9
|
|
|
@@ -20,6 +21,13 @@ export function Output(props) {
|
|
|
20
21
|
const binder = createOutputBinder({
|
|
21
22
|
nameConflictResolver: props.nameConflictResolver
|
|
22
23
|
});
|
|
24
|
+
const nodeContext = getContext();
|
|
25
|
+
nodeContext.meta ??= {};
|
|
26
|
+
nodeContext.meta.printOptions = {
|
|
27
|
+
printWidth: props.printWidth,
|
|
28
|
+
tabWidth: props.tabWidth,
|
|
29
|
+
useTabs: props.useTabs
|
|
30
|
+
};
|
|
23
31
|
const dir = _$createComponent(SourceDirectory, {
|
|
24
32
|
path: basePath,
|
|
25
33
|
get children() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Output.js","names":["createOutputBinder","getSymbolCreator","BinderContext","NamePolicyContext","extensionEffects","SourceDirectory","Output","props","basePath","binder","nameConflictResolver","dir","_$createComponent","path","children","externals","global","Provider","value","forEach","e","_$memo","namePolicy"],"sources":["../../../src/components/Output.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SACEA,kBAAkB,EAClBC,gBAAgB,QAEX,cAAc;AACrB,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,iBAAiB,QAAQ,2BAA2B;
|
|
1
|
+
{"version":3,"file":"Output.js","names":["createOutputBinder","getSymbolCreator","BinderContext","NamePolicyContext","getContext","extensionEffects","SourceDirectory","Output","props","basePath","binder","nameConflictResolver","nodeContext","meta","printOptions","printWidth","tabWidth","useTabs","dir","_$createComponent","path","children","externals","global","Provider","value","forEach","e","_$memo","namePolicy"],"sources":["../../../src/components/Output.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SACEA,kBAAkB,EAClBC,gBAAgB,QAEX,cAAc;AACrB,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SAAmBC,UAAU,QAAQ,mBAAmB;AAGxD,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,eAAe,QAAQ,sBAAsB;;AAEtD;;AA0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAMC,QAAQ,GAAGD,KAAK,CAACC,QAAQ,IAAI,IAAI;EACvC,MAAMC,MAAM,GAAGV,kBAAkB,CAAC;IAChCW,oBAAoB,EAAEH,KAAK,CAACG;EAC9B,CAAC,CAAC;EAEF,MAAMC,WAAW,GAAGR,UAAU,CAAC,CAAE;EACjCQ,WAAW,CAACC,IAAI,KAAK,CAAC,CAAC;EACvBD,WAAW,CAACC,IAAI,CAACC,YAAY,GAAG;IAC9BC,UAAU,EAAEP,KAAK,CAACO,UAAU;IAC5BC,QAAQ,EAAER,KAAK,CAACQ,QAAQ;IACxBC,OAAO,EAAET,KAAK,CAACS;EACjB,CAAC;EAED,MAAMC,GAAG,GAAAC,iBAAA,CACNb,eAAe;IAACc,IAAI,EAAEX,QAAQ;IAAA,IAAAY,SAAA;MAAA,OAAGb,KAAK,CAACa,QAAQ;IAAA;EAAA,EACjD;EAED,IAAIb,KAAK,CAACc,SAAS,EAAE;IACnB,KAAK,MAAMC,MAAM,IAAIf,KAAK,CAACc,SAAS,EAAE;MACpCrB,gBAAgB,CAACsB,MAAM,CAAC,CAACb,MAAM,CAAC;IAClC;EACF;EAEA,OAAAS,iBAAA,CACGjB,aAAa,CAACsB,QAAQ;IAACC,KAAK,EAAEf,MAAM;IAAA,IAAAW,SAAA;MAAA,QAClC,MAAM;QACLhB,gBAAgB,CAACqB,OAAO,CAAEC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC;MACtC,CAAC,EAAAC,MAAA,OACAA,MAAA,SAAApB,KAAK,CAACqB,UAAU,MAAAV,iBAAA,CACdhB,iBAAiB,CAACqB,QAAQ;QAAA,IAACC,KAAKA,CAAA;UAAA,OAAEjB,KAAK,CAACqB,UAAU;QAAA;QAAAR,QAAA,EAChDH;MAAG,KAENA,GAAG;IAAA;EAAA;AAGX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/components/Scope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/components/Scope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,YAetC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.js","names":["useContext","BinderContext","ScopeContext","Scope","props","scope","value","kind","binder","createScope","name","_$createComponent","Provider","children"],"sources":["../../../src/components/Scope.tsx"],"sourcesContent":[null],"mappings":";;AACA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,YAAY,QAAQ,qBAAqB;AAUlD,OAAO,SAASC,KAAKA,CAACC,KAAiB,EAAE;EACvC,IAAIC,KAAkB;EACtB,IAAID,KAAK,CAACE,KAAK,EAAE;IACfD,KAAK,GAAGD,KAAK,CAACE,KAAK;EACrB,CAAC,MAAM;IACL,MAAMC,IAAI,GAAGH,KAAK,CAACG,IAAI,IAAI,MAAM;IACjC,MAAMC,MAAM,GAAGR,UAAU,CAACC,aAAa,CAAE;IACzCI,KAAK,GAAGG,MAAM,CAACC,WAAW,CAAC;MAAEF,IAAI;MAAEG,IAAI,EAAEN,KAAK,CAACM;IAAM,CAAC,CAAC;EACzD;EAEA,OAAAC,iBAAA,
|
|
1
|
+
{"version":3,"file":"Scope.js","names":["useContext","BinderContext","ScopeContext","Scope","props","scope","value","kind","binder","createScope","name","_$createComponent","Provider","children"],"sources":["../../../src/components/Scope.tsx"],"sourcesContent":[null],"mappings":";;AACA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,YAAY,QAAQ,qBAAqB;AAUlD,OAAO,SAASC,KAAKA,CAACC,KAAiB,EAAE;EACvC,IAAIC,KAAkB;EACtB,IAAID,KAAK,CAACE,KAAK,EAAE;IACfD,KAAK,GAAGD,KAAK,CAACE,KAAK;EACrB,CAAC,MAAM;IACL,MAAMC,IAAI,GAAGH,KAAK,CAACG,IAAI,IAAI,MAAM;IACjC,MAAMC,MAAM,GAAGR,UAAU,CAACC,aAAa,CAAE;IACzCI,KAAK,GAAGG,MAAM,CAACC,WAAW,CAAC;MAAEF,IAAI;MAAEG,IAAI,EAAEN,KAAK,CAACM;IAAM,CAAC,CAAC;EACzD;EAEA,OAAAC,iBAAA,CACGT,YAAY,CAACU,QAAQ;IAACN,KAAK,EAAED,KAAK;IAAA,IAAAQ,SAAA;MAAA,OAChCT,KAAK,CAACS,QAAQ;IAAA;EAAA;AAGrB","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
export interface ShowProps {
|
|
3
|
+
children: Children;
|
|
4
|
+
fallback?: Children;
|
|
5
|
+
when: boolean | undefined | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function Show(props: ShowProps): () => Children;
|
|
8
|
+
//# sourceMappingURL=Show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../../src/components/Show.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,kBAEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Show.js","names":["Show","props","when","children","fallback"],"sources":["../../../src/components/Show.tsx"],"sourcesContent":[null],"mappings":"AAQA,OAAO,SAASA,IAAIA,CAACC,KAAgB,EAAE;EACrC,OAAO,MAAOA,KAAK,CAACC,IAAI,GAAGD,KAAK,CAACE,QAAQ,GAAGF,KAAK,CAACG,QAAS;AAC7D","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/SourceDirectory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SourceDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/SourceDirectory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,YAgB1D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
3
|
import { shallowReactive } from "@vue/reactivity";
|
|
3
4
|
import { join } from "pathe";
|
|
4
5
|
import { useContext } from "../context.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceDirectory.js","names":["shallowReactive","join","useContext","SourceDirectoryContext","getContext","SourceDirectory","props","parentDir","sdPath","path","nodeContext","context","createSourceDirectoryContext","meta","directory","_$createComponent","Provider","value","children","contents","addContent","content","push"],"sources":["../../../src/components/SourceDirectory.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"SourceDirectory.js","names":["shallowReactive","join","useContext","SourceDirectoryContext","getContext","SourceDirectory","props","parentDir","sdPath","path","nodeContext","context","createSourceDirectoryContext","meta","directory","_$createComponent","Provider","value","children","contents","addContent","content","push"],"sources":["../../../src/components/SourceDirectory.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAASA,eAAe,QAAQ,iBAAiB;AACjD,SAASC,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,sBAAsB,QAAQ,gCAAgC;AACvE,SAAmBC,UAAU,QAAQ,mBAAmB;AAOxD,OAAO,SAASC,eAAeA,CAACC,KAA2B,EAAE;EAC3D,MAAMC,SAAS,GAAGL,UAAU,CAACC,sBAAsB,CAAC;EACpD;EACA,MAAMK,MAAM,GAAGD,SAAS,GAAGN,IAAI,CAACM,SAAS,CAACE,IAAI,EAAEH,KAAK,CAACG,IAAI,CAAC,GAAGH,KAAK,CAACG,IAAI;EACxE,MAAMC,WAAW,GAAGN,UAAU,CAAC,CAAE;EACjC,MAAMO,OAAO,GAAGC,4BAA4B,CAACN,KAAK,CAACG,IAAI,EAAEF,SAAS,CAAC;EAEnEG,WAAW,CAACG,IAAI,KAAK,CAAC,CAAC;EACvBH,WAAW,CAACG,IAAI,CAACC,SAAS,GAAG;IAC3BL,IAAI,EAAED;EACR,CAAC;EACD,OAAAO,iBAAA,CACGZ,sBAAsB,CAACa,QAAQ;IAACC,KAAK,EAAEN,OAAO;IAAA,IAAAO,SAAA;MAAA,OAC5CZ,KAAK,CAACY,QAAQ;IAAA;EAAA;AAGrB;AAEA,SAASN,4BAA4BA,CACnCH,IAAY,GAAG,IAAI,EACnBF,SAAkC,EACV;EACxB,MAAMY,QAAQ,GAAGnB,eAAe,CAAC,EAAS,CAAC;EAC3C,MAAMW,OAA+B,GAAG;IACtCF,IAAI,EAAEF,SAAS,GAAGN,IAAI,CAACM,SAAS,CAACE,IAAI,EAAEA,IAAI,CAAC,GAAGA,IAAI;IACnDU,QAAQ;IACRC,UAAUA,CAACC,OAAO,EAAE;MAClBF,QAAQ,CAACG,IAAI,CAACD,OAAO,CAAC;IACxB;EACF,CAAC;EACD,IAAId,SAAS,EAAE;IACbA,SAAS,CAACa,UAAU,CAACT,OAAO,CAAC;EAC/B;EAEA,OAAOA,OAAO;AAChB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Children, ComponentDefinition } from "../jsx-runtime.js";
|
|
2
2
|
import { Refkey } from "../refkey.js";
|
|
3
|
-
|
|
3
|
+
import { PrintTreeOptions } from "../render.js";
|
|
4
|
+
export interface SourceFileProps extends PrintTreeOptions {
|
|
4
5
|
/**
|
|
5
6
|
* The path of this file relative to its parent directory
|
|
6
7
|
*/
|
|
@@ -17,11 +18,6 @@ export interface SourceFileProps {
|
|
|
17
18
|
reference?: ComponentDefinition<{
|
|
18
19
|
refkey: Refkey;
|
|
19
20
|
}>;
|
|
20
|
-
/**
|
|
21
|
-
* A string representing one indent level, used when reindenting contents of
|
|
22
|
-
* this file.
|
|
23
|
-
*/
|
|
24
|
-
indent?: string;
|
|
25
21
|
}
|
|
26
22
|
export declare function SourceFile(props: SourceFileProps): Children;
|
|
27
23
|
//# sourceMappingURL=SourceFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAsBhD"}
|
|
@@ -2,7 +2,6 @@ import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime
|
|
|
2
2
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { join } from "pathe";
|
|
4
4
|
import { useContext } from "../context.js";
|
|
5
|
-
import { IndentContext } from "../context/indent.js";
|
|
6
5
|
import { SourceDirectoryContext } from "../context/source-directory.js";
|
|
7
6
|
import { SourceFileContext } from "../context/source-file.js";
|
|
8
7
|
import { getContext } from "../jsx-runtime.js";
|
|
@@ -17,21 +16,15 @@ export function SourceFile(props) {
|
|
|
17
16
|
const nodeContext = getContext();
|
|
18
17
|
nodeContext.meta ??= {};
|
|
19
18
|
nodeContext.meta.sourceFile = context;
|
|
19
|
+
nodeContext.meta.printOptions = {
|
|
20
|
+
printWidth: props.printWidth,
|
|
21
|
+
tabWidth: props.tabWidth,
|
|
22
|
+
useTabs: props.useTabs
|
|
23
|
+
};
|
|
20
24
|
return _$createComponent(SourceFileContext.Provider, {
|
|
21
25
|
value: context,
|
|
22
26
|
get children() {
|
|
23
|
-
return
|
|
24
|
-
get value() {
|
|
25
|
-
return {
|
|
26
|
-
level: 0,
|
|
27
|
-
indent: props.indent,
|
|
28
|
-
indentString: ""
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
get children() {
|
|
32
|
-
return props.children;
|
|
33
|
-
}
|
|
34
|
-
}) : props.children;
|
|
27
|
+
return props.children;
|
|
35
28
|
}
|
|
36
29
|
});
|
|
37
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.js","names":["join","useContext","
|
|
1
|
+
{"version":3,"file":"SourceFile.js","names":["join","useContext","SourceDirectoryContext","SourceFileContext","getContext","SourceFile","props","parentDirectory","context","path","filetype","reference","addContent","nodeContext","meta","sourceFile","printOptions","printWidth","tabWidth","useTabs","_$createComponent","Provider","value","children"],"sources":["../../../src/components/SourceFile.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,sBAAsB,QAAQ,gCAAgC;AACvE,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SAAwCC,UAAU,QAAQ,mBAAmB;AAwB7E,OAAO,SAASC,UAAUA,CAACC,KAAsB,EAAE;EACjD,MAAMC,eAAe,GAAGN,UAAU,CAACC,sBAAsB,CAAE;EAC3D,MAAMM,OAA0B,GAAG;IACjCC,IAAI,EAAET,IAAI,CAACO,eAAe,GAAGA,eAAe,CAACE,IAAI,GAAG,EAAE,EAAEH,KAAK,CAACG,IAAI,CAAC;IACnEC,QAAQ,EAAEJ,KAAK,CAACI,QAAQ;IACxBC,SAAS,EAAEL,KAAK,CAACK;EACnB,CAAC;EACDJ,eAAe,EAAEK,UAAU,CAACJ,OAAO,CAAC;EACpC,MAAMK,WAAW,GAAGT,UAAU,CAAC,CAAE;EACjCS,WAAW,CAACC,IAAI,KAAK,CAAC,CAAC;EACvBD,WAAW,CAACC,IAAI,CAACC,UAAU,GAAGP,OAAO;EACrCK,WAAW,CAACC,IAAI,CAACE,YAAY,GAAG;IAC9BC,UAAU,EAAEX,KAAK,CAACW,UAAU;IAC5BC,QAAQ,EAAEZ,KAAK,CAACY,QAAQ;IACxBC,OAAO,EAAEb,KAAK,CAACa;EACjB,CAAC;EAED,OAAAC,iBAAA,CACGjB,iBAAiB,CAACkB,QAAQ;IAACC,KAAK,EAAEd,OAAO;IAAA,IAAAe,SAAA;MAAA,OACvCjB,KAAK,CAACiB,QAAQ;IAAA;EAAA;AAGrB","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
export interface StatementListProps {
|
|
3
|
+
children: Children;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Join child elements with semicolons and hardlines.
|
|
7
|
+
*/
|
|
8
|
+
export declare function StatementList(props: StatementListProps): Children;
|
|
9
|
+
//# sourceMappingURL=StatementList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementList.d.ts","sourceRoot":"","sources":["../../../src/components/StatementList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,YAMtD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { List } from "@alloy-js/core";
|
|
4
|
+
/**
|
|
5
|
+
* Join child elements with semicolons and hardlines.
|
|
6
|
+
*/
|
|
7
|
+
export function StatementList(props) {
|
|
8
|
+
return _$createComponent(List, {
|
|
9
|
+
semicolon: true,
|
|
10
|
+
hardline: true,
|
|
11
|
+
enderPunctuation: true,
|
|
12
|
+
get children() {
|
|
13
|
+
return props.children;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=StatementList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementList.js","names":["List","StatementList","props","_$createComponent","semicolon","hardline","enderPunctuation","children"],"sources":["../../../src/components/StatementList.tsx"],"sourcesContent":[null],"mappings":";;AAAA,SAAmBA,IAAI,QAAQ,gBAAgB;AAM/C;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAE;EACvD,OAAAC,iBAAA,CACGH,IAAI;IAACI,SAAS;IAACC,QAAQ;IAACC,gBAAgB;IAAA,IAAAC,SAAA;MAAA,OACtCL,KAAK,CAACK,QAAQ;IAAA;EAAA;AAGrB","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
children: Children;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Conditionally render blocks of content based on the `when` prop of nested
|
|
7
|
+
* {@link Match} components.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Switch>
|
|
13
|
+
* <Match when={someCondition}>
|
|
14
|
+
* <div>Condition met!</div>
|
|
15
|
+
* </Match>
|
|
16
|
+
* <Match else>
|
|
17
|
+
* <div>Condition not met!</div>
|
|
18
|
+
* </Match>
|
|
19
|
+
* </Switch>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function Switch(props: SwitchProps): () => any;
|
|
23
|
+
export interface MatchProps {
|
|
24
|
+
/**
|
|
25
|
+
* Condition under which the children of this element will be rendered.
|
|
26
|
+
*/
|
|
27
|
+
when?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* If no `when` is matched, the children of this element will be rendered.
|
|
30
|
+
* The `else` match must be placed last.
|
|
31
|
+
*/
|
|
32
|
+
else?: boolean;
|
|
33
|
+
children: Children;
|
|
34
|
+
}
|
|
35
|
+
export declare const matchTag: unique symbol;
|
|
36
|
+
/**
|
|
37
|
+
* The Match component is used inside of a {@link Switch} component to
|
|
38
|
+
* define conditionally rendered blocks of content.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Match: import("@alloy-js/core/jsx-runtime").Component<MatchProps>;
|
|
41
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,MAAM,4BAA4B,CAAC;AAG7E,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,aAaxC;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,eAAW,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,KAAK,4DAEhB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { memo, taggedComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { childrenArray, findKeyedChildren } from "../utils.js";
|
|
3
|
+
/**
|
|
4
|
+
* Conditionally render blocks of content based on the `when` prop of nested
|
|
5
|
+
* {@link Match} components.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Switch>
|
|
11
|
+
* <Match when={someCondition}>
|
|
12
|
+
* <div>Condition met!</div>
|
|
13
|
+
* </Match>
|
|
14
|
+
* <Match else>
|
|
15
|
+
* <div>Condition not met!</div>
|
|
16
|
+
* </Match>
|
|
17
|
+
* </Switch>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export function Switch(props) {
|
|
21
|
+
const children = childrenArray(() => props.children);
|
|
22
|
+
const matches = findKeyedChildren(children, matchTag);
|
|
23
|
+
return memo(() => {
|
|
24
|
+
for (const match of matches) {
|
|
25
|
+
if (match.props.when || match.props.else) {
|
|
26
|
+
return match.props.children;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return undefined;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export const matchTag = Symbol();
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The Match component is used inside of a {@link Switch} component to
|
|
36
|
+
* define conditionally rendered blocks of content.
|
|
37
|
+
*/
|
|
38
|
+
export const Match = taggedComponent(matchTag, props => {
|
|
39
|
+
return () => props.when ? props.children : undefined;
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.js","names":["memo","taggedComponent","childrenArray","findKeyedChildren","Switch","props","children","matches","matchTag","match","when","else","undefined","Symbol","Match"],"sources":["../../../src/components/Switch.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAmBA,IAAI,EAAEC,eAAe,QAAQ,4BAA4B;AAC5E,SAASC,aAAa,EAAEC,iBAAiB,QAAQ,aAAa;AAM9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAMC,QAAQ,GAAGJ,aAAa,CAAC,MAAMG,KAAK,CAACC,QAAQ,CAAC;EACpD,MAAMC,OAAO,GAAGJ,iBAAiB,CAACG,QAAQ,EAAEE,QAAQ,CAAC;EAErD,OAAOR,IAAI,CAAC,MAAM;IAChB,KAAK,MAAMS,KAAK,IAAIF,OAAO,EAAE;MAC3B,IAAIE,KAAK,CAACJ,KAAK,CAACK,IAAI,IAAID,KAAK,CAACJ,KAAK,CAACM,IAAI,EAAE;QACxC,OAAOF,KAAK,CAACJ,KAAK,CAACC,QAAQ;MAC7B;IACF;IAEA,OAAOM,SAAS;EAClB,CAAC,CAAC;AACJ;AAgBA,OAAO,MAAMJ,QAAQ,GAAGK,MAAM,CAAC,CAAC;;AAEhC;AACA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAGb,eAAe,CAACO,QAAQ,EAAGH,KAAiB,IAAK;EACpE,OAAO,MAAOA,KAAK,CAACK,IAAI,GAAGL,KAAK,CAACC,QAAQ,GAAGM,SAAU;AACxD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Children, ComponentDefinition } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
export interface WrapProps<TProps> {
|
|
3
|
+
/**
|
|
4
|
+
* When true, the children will be wrapped with the provided component.
|
|
5
|
+
* Otherwise, the children will be rendered as is.
|
|
6
|
+
*/
|
|
7
|
+
when: boolean;
|
|
8
|
+
/** Children to be wrapped. */
|
|
9
|
+
children: Children;
|
|
10
|
+
/** Component to be used for wrapping. */
|
|
11
|
+
with: ComponentDefinition<TProps>;
|
|
12
|
+
/** Props to pass to the wrapper component. */
|
|
13
|
+
props?: Omit<TProps, "children">;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Conditionally wrap the children of this component with the component given to
|
|
17
|
+
* `with` and passing `props` to it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function Wrap<TProps>(props: WrapProps<TProps>): Children;
|
|
20
|
+
//# sourceMappingURL=Wrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../src/components/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,SAAS,CAAC,MAAM;IAC/B;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd,8BAA8B;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,yCAAyC;IACzC,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAElC,8CAA8C;IAC9C,KAAK,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,YAKpD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Conditionally wrap the children of this component with the component given to
|
|
5
|
+
* `with` and passing `props` to it.
|
|
6
|
+
*/
|
|
7
|
+
export function Wrap(props) {
|
|
8
|
+
const Wrapper = props.with;
|
|
9
|
+
return props.when ? _$createComponent(Wrapper, _$mergeProps(() => props.props ?? {}, {
|
|
10
|
+
get children() {
|
|
11
|
+
return props.children;
|
|
12
|
+
}
|
|
13
|
+
})) : props.children;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Wrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrap.js","names":["Wrap","props","Wrapper","with","when","_$createComponent","_$mergeProps","children"],"sources":["../../../src/components/Wrap.tsx"],"sourcesContent":[null],"mappings":";;AAmBA;AACA;AACA;AACA;AACA,OAAO,SAASA,IAAIA,CAASC,KAAwB,EAAE;EACrD,MAAMC,OAAO,GAAGD,KAAK,CAACE,IAAW;EACjC,OAAOF,KAAK,CAACG,IAAI,GAAAC,iBAAA,CACZH,OAAO,EAAAI,YAAA,OAAML,KAAK,CAACA,KAAK,IAAI,CAAC,CAAC;IAAA,IAAAM,SAAA;MAAA,OAAIN,KAAK,CAACM,QAAQ;IAAA;EAAA,MACjDN,KAAK,CAACM,QAAQ;AACpB","ignoreList":[]}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
export * from "./Block.js";
|
|
1
2
|
export * from "./Declaration.js";
|
|
2
|
-
export * from "./
|
|
3
|
+
export * from "./For.js";
|
|
4
|
+
export * from "./Indent.jsx";
|
|
5
|
+
export * from "./List.jsx";
|
|
3
6
|
export * from "./MemberDeclaration.jsx";
|
|
4
7
|
export * from "./MemberName.jsx";
|
|
5
8
|
export * from "./MemberScope.jsx";
|
|
6
9
|
export * from "./Name.jsx";
|
|
7
10
|
export * from "./Output.js";
|
|
8
11
|
export * from "./Scope.js";
|
|
12
|
+
export * from "./Show.jsx";
|
|
9
13
|
export * from "./SourceDirectory.js";
|
|
10
14
|
export * from "./SourceFile.js";
|
|
15
|
+
export * from "./StatementList.jsx";
|
|
16
|
+
export * from "./Switch.jsx";
|
|
17
|
+
export * from "./Wrap.jsx";
|
|
11
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
export * from "./Block.js";
|
|
1
2
|
export * from "./Declaration.js";
|
|
3
|
+
export * from "./For.js";
|
|
2
4
|
export * from "./Indent.js";
|
|
5
|
+
export * from "./List.js";
|
|
3
6
|
export * from "./MemberDeclaration.js";
|
|
4
7
|
export * from "./MemberName.js";
|
|
5
8
|
export * from "./MemberScope.js";
|
|
6
9
|
export * from "./Name.js";
|
|
7
10
|
export * from "./Output.js";
|
|
8
11
|
export * from "./Scope.js";
|
|
12
|
+
export * from "./Show.js";
|
|
9
13
|
export * from "./SourceDirectory.js";
|
|
10
14
|
export * from "./SourceFile.js";
|
|
15
|
+
export * from "./StatementList.js";
|
|
16
|
+
export * from "./Switch.js";
|
|
17
|
+
export * from "./Wrap.js";
|
|
11
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B;AACA,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B;AACA;AACA","ignoreList":[]}
|