@powerlines/plugin-alloy 0.19.14 → 0.19.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builtin-file-BghS0Iup.cjs → builtin-file-0k9DccCv.cjs} +3 -3
- package/dist/{builtin-file-Dj3eVgvv.d.cts → builtin-file-DcLp9sck.d.mts} +5 -5
- package/dist/{builtin-file-CiW4-UYI.d.mts.map → builtin-file-DcLp9sck.d.mts.map} +1 -1
- package/dist/{builtin-file-DLGZvvC3.d.cts → builtin-file-DtkZ-2Hs.d.cts} +3 -3
- package/dist/{builtin-file-DLGZvvC3.d.cts.map → builtin-file-DtkZ-2Hs.d.cts.map} +1 -1
- package/dist/{builtin-file-BJKPEOF7.mjs → builtin-file-Ie_jPokg.mjs} +4 -4
- package/dist/{builtin-file-BJKPEOF7.mjs.map → builtin-file-Ie_jPokg.mjs.map} +1 -1
- package/dist/{builtin-file-CiW4-UYI.d.mts → builtin-file-MrUfX3YE.d.cts} +3 -3
- package/dist/{builtin-file-Dj3eVgvv.d.cts.map → builtin-file-MrUfX3YE.d.cts.map} +1 -1
- package/dist/{context-Ctw077Cx.cjs → context--KBspFnw.cjs} +1 -1
- package/dist/{context-AhzykdKC.mjs → context-e2kZWEFW.mjs} +2 -2
- package/dist/{context-AhzykdKC.mjs.map → context-e2kZWEFW.mjs.map} +1 -1
- package/dist/core/components/index.cjs +3 -3
- package/dist/core/components/index.d.cts +2 -2
- package/dist/core/components/index.mjs +3 -3
- package/dist/core/components/output.d.cts +1 -1
- package/dist/core/components/single-line-comment.d.cts +1 -1
- package/dist/core/components/source-file.cjs +3 -3
- package/dist/core/components/source-file.mjs +3 -3
- package/dist/core/contexts/context.cjs +2 -2
- package/dist/core/contexts/context.mjs +2 -2
- package/dist/core/contexts/index.cjs +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/{dynamic-import-statement-vVM9osmC.d.cts → dynamic-import-statement-DTSUoDt2.d.cts} +3 -3
- package/dist/{dynamic-import-statement-vVM9osmC.d.cts.map → dynamic-import-statement-DTSUoDt2.d.cts.map} +1 -1
- package/dist/{entry-file-Zt33JaE1.d.cts → entry-file-CfMzpF03.d.cts} +3 -3
- package/dist/{entry-file-CiMuxu2n.d.mts.map → entry-file-CfMzpF03.d.cts.map} +1 -1
- package/dist/{entry-file-CjhBCFEa.d.cts → entry-file-CnC6P3j6.d.mts} +4 -4
- package/dist/{entry-file-CjhBCFEa.d.cts.map → entry-file-CnC6P3j6.d.mts.map} +1 -1
- package/dist/{entry-file-DT_UunNT.mjs → entry-file-D64eurjX.mjs} +3 -3
- package/dist/{entry-file-DT_UunNT.mjs.map → entry-file-D64eurjX.mjs.map} +1 -1
- package/dist/{entry-file-CiMuxu2n.d.mts → entry-file-DVueLVSn.d.cts} +2 -2
- package/dist/{entry-file-Zt33JaE1.d.cts.map → entry-file-DVueLVSn.d.cts.map} +1 -1
- package/dist/{entry-file-BFHFm7wA.cjs → entry-file-GR5Rsn25.cjs} +2 -2
- package/dist/{front-matter-DSp4xPaD.d.cts → front-matter-gcouRI-6.d.cts} +3 -3
- package/dist/{front-matter-DSp4xPaD.d.cts.map → front-matter-gcouRI-6.d.cts.map} +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/index.cjs +4 -4
- package/dist/markdown/components/index.mjs +4 -4
- package/dist/markdown/components/markdown-file.cjs +4 -4
- package/dist/markdown/components/markdown-file.mjs +4 -4
- package/dist/markdown/index.cjs +4 -4
- package/dist/markdown/index.mjs +4 -4
- package/dist/{markdown-file-DH7NDYYC.cjs → markdown-file-CAwtMwsl.cjs} +2 -2
- package/dist/{markdown-file-gCQMRXoz.d.cts → markdown-file-CxDM6MCV.d.cts} +3 -3
- package/dist/{markdown-file-DB2SAeE6.d.mts.map → markdown-file-CxDM6MCV.d.cts.map} +1 -1
- package/dist/{markdown-file-CIwA46L3.mjs → markdown-file-DIcSvowq.mjs} +3 -3
- package/dist/{markdown-file-CIwA46L3.mjs.map → markdown-file-DIcSvowq.mjs.map} +1 -1
- package/dist/{markdown-table-B2ysbgWK.d.cts → markdown-table-DFSFKzCN.d.cts} +5 -5
- package/dist/{markdown-table-B2ysbgWK.d.cts.map → markdown-table-DFSFKzCN.d.cts.map} +1 -1
- package/dist/{output-MJnqpeJ-.d.mts → output-BnmXIAFP.d.cts} +5 -5
- package/dist/{output-MJnqpeJ-.d.mts.map → output-BnmXIAFP.d.cts.map} +1 -1
- package/dist/{single-line-comment-BrtGpc8-.d.cts → single-line-comment-B258_x1B.d.cts} +3 -3
- package/dist/{single-line-comment-BrtGpc8-.d.cts.map → single-line-comment-B258_x1B.d.cts.map} +1 -1
- package/dist/{single-line-comment-CQW1en2Z.d.cts → single-line-comment-D9dIL45u.d.cts} +3 -3
- package/dist/{single-line-comment-Bvbr--Az.d.mts.map → single-line-comment-D9dIL45u.d.cts.map} +1 -1
- package/dist/{source-file-QiALwKWL.d.cts → source-file-95cXzcLB.d.cts} +3 -3
- package/dist/{source-file-BEY3mjFl.d.mts.map → source-file-95cXzcLB.d.cts.map} +1 -1
- package/dist/{source-file-BAoqxO5e.cjs → source-file-BAVTBVJy.cjs} +1 -1
- package/dist/{source-file-BKZQpz0C.mjs → source-file-BiJK-nH_.mjs} +2 -2
- package/dist/{source-file-BKZQpz0C.mjs.map → source-file-BiJK-nH_.mjs.map} +1 -1
- package/dist/{tsdoc-nrR7IU_7.cjs → tsdoc-BId4fp5_.cjs} +1 -1
- package/dist/{tsdoc-BNV-5Qs2.mjs → tsdoc-Crv526i6.mjs} +2 -2
- package/dist/{tsdoc-BNV-5Qs2.mjs.map → tsdoc-Crv526i6.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-Dggzpjh7.d.cts → tsdoc-reflection-B4bfElmj.d.cts} +5 -5
- package/dist/{tsdoc-reflection-Dggzpjh7.d.cts.map → tsdoc-reflection-B4bfElmj.d.cts.map} +1 -1
- package/dist/{tsdoc-reflection-DaykPe3v.d.cts → tsdoc-reflection-BbjnIsUV.d.cts} +5 -5
- package/dist/tsdoc-reflection-BbjnIsUV.d.cts.map +1 -0
- package/dist/{tsdoc-reflection-C7_a06TL.mjs → tsdoc-reflection-D-eKs6S1.mjs} +2 -2
- package/dist/{tsdoc-reflection-C7_a06TL.mjs.map → tsdoc-reflection-D-eKs6S1.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-BkVddZ_o.cjs → tsdoc-reflection-IH-Mt2o_.cjs} +1 -1
- package/dist/typescript/components/builtin-file.cjs +6 -6
- package/dist/typescript/components/builtin-file.d.cts +1 -1
- package/dist/typescript/components/builtin-file.mjs +6 -6
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
- package/dist/typescript/components/entry-file.cjs +5 -5
- package/dist/typescript/components/entry-file.d.cts +1 -1
- package/dist/typescript/components/entry-file.mjs +5 -5
- package/dist/typescript/components/index.cjs +10 -10
- package/dist/typescript/components/index.d.cts +6 -6
- package/dist/typescript/components/index.mjs +10 -10
- package/dist/typescript/components/tsdoc-reflection.cjs +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.cts +1 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +4 -4
- package/dist/typescript/components/tsdoc.cjs +3 -3
- package/dist/typescript/components/tsdoc.mjs +3 -3
- package/dist/typescript/components/typescript-file.cjs +4 -4
- package/dist/typescript/components/typescript-file.mjs +4 -4
- package/dist/typescript/components/typescript-interface.cjs +5 -5
- package/dist/typescript/components/typescript-interface.d.cts +1 -1
- package/dist/typescript/components/typescript-interface.mjs +5 -5
- package/dist/typescript/components/typescript-object.cjs +5 -5
- package/dist/typescript/components/typescript-object.d.cts +1 -1
- package/dist/typescript/components/typescript-object.mjs +5 -5
- package/dist/typescript/index.cjs +10 -10
- package/dist/typescript/index.d.cts +6 -6
- package/dist/typescript/index.mjs +10 -10
- package/dist/{typescript-file-Ca-6MeqN.cjs → typescript-file-BmLwVIQP.cjs} +2 -2
- package/dist/{typescript-file-CFy1OsoL.mjs → typescript-file-C5NjN3H2.mjs} +3 -3
- package/dist/{typescript-file-CFy1OsoL.mjs.map → typescript-file-C5NjN3H2.mjs.map} +1 -1
- package/dist/{typescript-file-BDYo1D2p.d.cts → typescript-file-MYxikvB6.d.cts} +2 -2
- package/dist/{typescript-file-BDYo1D2p.d.cts.map → typescript-file-MYxikvB6.d.cts.map} +1 -1
- package/dist/{typescript-interface-Zf9pVXoI.cjs → typescript-interface-BNdWrKgb.cjs} +1 -1
- package/dist/{typescript-interface-Dmvkz1pt.d.cts → typescript-interface-D-d9A720.d.cts} +4 -4
- package/dist/{typescript-interface-Dmvkz1pt.d.cts.map → typescript-interface-D-d9A720.d.cts.map} +1 -1
- package/dist/{typescript-interface-WicKnDB9.mjs → typescript-interface-LN3uCdA6.mjs} +2 -2
- package/dist/{typescript-interface-WicKnDB9.mjs.map → typescript-interface-LN3uCdA6.mjs.map} +1 -1
- package/dist/{typescript-object-A5_fPqKr.d.cts → typescript-object-Bbza8TK7.d.cts} +4 -4
- package/dist/{typescript-object-A5_fPqKr.d.cts.map → typescript-object-Bbza8TK7.d.cts.map} +1 -1
- package/dist/{typescript-object-BNmRVXfj.mjs → typescript-object-DIyR8xhW.mjs} +2 -2
- package/dist/{typescript-object-BNmRVXfj.mjs.map → typescript-object-DIyR8xhW.mjs.map} +1 -1
- package/dist/{typescript-object-C4WhCkui.cjs → typescript-object-ENaG1YGI.cjs} +1 -1
- package/dist/unctx-MFxscYXI.mjs +12 -0
- package/dist/unctx-MFxscYXI.mjs.map +1 -0
- package/dist/{unctx-B3g_fMrS.cjs → unctx-r7Vvh6XR.cjs} +5 -1
- package/package.json +6 -6
- package/dist/markdown-file-DB2SAeE6.d.mts +0 -29
- package/dist/markdown-file-gCQMRXoz.d.cts.map +0 -1
- package/dist/markdown-table-CJ9QJzAc.d.mts +0 -28
- package/dist/markdown-table-CJ9QJzAc.d.mts.map +0 -1
- package/dist/single-line-comment-Bvbr--Az.d.mts +0 -23
- package/dist/single-line-comment-CQW1en2Z.d.cts.map +0 -1
- package/dist/source-file-BEY3mjFl.d.mts +0 -33
- package/dist/source-file-QiALwKWL.d.cts.map +0 -1
- package/dist/tsdoc-reflection-DaykPe3v.d.cts.map +0 -1
- package/dist/typescript-file-Bi5NEAOC.d.mts +0 -50
- package/dist/typescript-file-Bi5NEAOC.d.mts.map +0 -1
- package/dist/typescript-interface-CilM16if.d.mts +0 -26
- package/dist/typescript-interface-CilM16if.d.mts.map +0 -1
- package/dist/typescript-object-Bi7HOz2C.d.mts +0 -30
- package/dist/typescript-object-Bi7HOz2C.d.mts.map +0 -1
- package/dist/unctx-RT0xjVBl.mjs +0 -8
- package/dist/unctx-RT0xjVBl.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context
|
|
3
|
-
const require_tsdoc = require('./tsdoc-
|
|
4
|
-
const require_typescript_file = require('./typescript-file-
|
|
2
|
+
const require_context = require('./context--KBspFnw.cjs');
|
|
3
|
+
const require_tsdoc = require('./tsdoc-BId4fp5_.cjs');
|
|
4
|
+
const require_typescript_file = require('./typescript-file-BmLwVIQP.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
7
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as TSDocModuleProps } from "./tsdoc-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
3
|
-
import * as
|
|
1
|
+
import { h as TSDocModuleProps } from "./tsdoc-OUuKjTbh.mjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
|
|
3
|
+
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,8 +28,8 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core15.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
|
|
35
|
-
//# sourceMappingURL=builtin-file-
|
|
35
|
+
//# sourceMappingURL=builtin-file-DcLp9sck.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-DcLp9sck.d.mts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as TSDocModuleProps } from "./tsdoc-CfvwK4Ml.cjs";
|
|
2
2
|
import { o as TypescriptFileProps } from "./typescript-file-fOVF6YF2.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,8 +28,8 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core14.Children;
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
|
|
35
|
-
//# sourceMappingURL=builtin-file-
|
|
35
|
+
//# sourceMappingURL=builtin-file-DtkZ-2Hs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-DtkZ-2Hs.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as usePowerlinesSafe } from "./context-
|
|
2
|
-
import { d as TSDocModule } from "./tsdoc-
|
|
3
|
-
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-
|
|
1
|
+
import { a as usePowerlinesSafe } from "./context-e2kZWEFW.mjs";
|
|
2
|
+
import { d as TSDocModule } from "./tsdoc-Crv526i6.mjs";
|
|
3
|
+
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-C5NjN3H2.mjs";
|
|
4
4
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import { computed, splitProps } from "@alloy-js/core";
|
|
6
6
|
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
@@ -59,4 +59,4 @@ function BuiltinFile(props) {
|
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
61
61
|
export { BuiltinFile as t };
|
|
62
|
-
//# sourceMappingURL=builtin-file-
|
|
62
|
+
//# sourceMappingURL=builtin-file-Ie_jPokg.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-Ie_jPokg.mjs","names":["computed","splitProps","hasFileExtension","replaceExtension","replacePath","isSet","usePowerlinesSafe","TSDocModule","TypescriptFile","TypescriptFileHeader","TypescriptFileHeaderImports","BuiltinFile","props","children","imports","builtinImports","id","description","tsx","rest","context","path","builtinsPath","_$createComponent","_$mergeProps","header","name","meta","kind","extension","value"],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport type { TSDocModuleProps } from \"./tsdoc\";\nimport { TSDocModule } from \"./tsdoc\";\nimport {\n TypescriptFile,\n TypescriptFileHeader,\n TypescriptFileHeaderImports,\n TypescriptFileProps\n} from \"./typescript-file\";\n\nexport type BuiltinFileProps = Omit<TypescriptFileProps, \"path\"> &\n Omit<TSDocModuleProps, \"name\"> & {\n /**\n * The runtime module identifier.\n *\n * @remarks\n * This value will be included after the \\`storm:\\` prefix in the import statement.\n */\n id: string;\n\n /**\n * The description for the builtin module.\n */\n description?: string;\n\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BuiltinFile(props: BuiltinFileProps) {\n const [{ children, imports, builtinImports, id, description, tsx }, rest] =\n splitProps(props, [\n \"children\",\n \"imports\",\n \"builtinImports\",\n \"id\",\n \"description\",\n \"tsx\"\n ]);\n\n const context = usePowerlinesSafe();\n const path = computed(() =>\n replacePath(\n `${!isSet(tsx) ? id : replaceExtension(id)}${\n hasFileExtension(id) && !isSet(tsx) ? \"\" : tsx ? \".tsx\" : \".ts\"\n }`,\n context?.builtinsPath\n )\n );\n\n return (\n <TypescriptFile\n header={\n <TypescriptFileHeader\n header={<TSDocModule name={id}>{description}</TSDocModule>}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n />\n </TypescriptFileHeader>\n }\n meta={{\n kind: \"builtin\",\n extension: tsx ? \"tsx\" : \"ts\",\n id: replaceExtension(id)\n }}\n {...rest}\n path={path.value}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as TSDocModuleProps } from "./tsdoc-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
1
|
+
import { h as TSDocModuleProps } from "./tsdoc-CfvwK4Ml.cjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-MYxikvB6.cjs";
|
|
3
3
|
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
@@ -32,4 +32,4 @@ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core17.Children
|
|
|
32
32
|
declare type __ΩBuiltinFileProps = any[];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
|
|
35
|
-
//# sourceMappingURL=builtin-file-
|
|
35
|
+
//# sourceMappingURL=builtin-file-MrUfX3YE.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-MrUfX3YE.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as unctx } from "./unctx-
|
|
1
|
+
import { t as unctx } from "./unctx-MFxscYXI.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/core/contexts/context.ts
|
|
4
4
|
/**
|
|
@@ -48,4 +48,4 @@ function useMeta() {
|
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
50
|
export { usePowerlinesSafe as a, usePowerlinesContext as i, useMetaSafe as n, usePowerlines as r, useMeta as t };
|
|
51
|
-
//# sourceMappingURL=context-
|
|
51
|
+
//# sourceMappingURL=context-e2kZWEFW.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
1
|
+
{"version":3,"file":"context-e2kZWEFW.mjs","names":["unctx","usePowerlinesContext","tryUse","usePowerlinesSafe","powerlines","value","usePowerlines","Error","useMetaSafe","meta","useMeta"],"sources":["../src/core/contexts/context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { PluginContext } from \"powerlines/types/context\";\nimport type { StoragePreset } from \"powerlines/types/fs\";\nimport { unctx } from \"../../internal/unctx\";\n\nexport interface MetaItem {\n /**\n * The kind of metadata item.\n */\n kind?: \"builtin\" | \"entry\" | string;\n\n /**\n * Whether to skip formatting for this output.\n */\n skipFormat?: boolean;\n\n /**\n * The storage preset or adapter name for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset | string;\n\n [key: string]: any;\n}\n\nexport interface PowerlinesContextInterface<\n TContext extends PluginContext = PluginContext,\n TMeta extends Record<string, MetaItem> = Record<string, MetaItem>\n> {\n /**\n * The current Powerlines context.\n */\n value: TContext;\n\n /**\n * The current render metadata.\n */\n meta: TMeta;\n}\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext,\n TMeta extends Record<string, MetaItem> = Record<string, MetaItem>\n>(): PowerlinesContextInterface<TContext, TMeta> | null {\n return unctx.tryUse();\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or null if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | null {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines?.value ?? null;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return powerlines;\n}\n\n/**\n * Hook to safely access the render context's metadata.\n *\n * @returns The Powerlines context or null if not set.\n */\nexport function useMetaSafe<\n TMeta extends Record<string, MetaItem> = Record<string, MetaItem>\n>(): TMeta | null {\n const powerlines = usePowerlinesContext<PluginContext, TMeta>();\n\n return powerlines?.meta ?? null;\n}\n\n/**\n * Hook to access the render context's metadata.\n *\n * @returns The Powerlines context.\n */\nexport function useMeta<\n TMeta extends Record<string, MetaItem> = Record<string, MetaItem>\n>(): TMeta {\n const meta = useMetaSafe<TMeta>();\n if (!meta) {\n throw new Error(\n \"Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return meta;\n}\n"],"mappings":""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_output = require('../../output-CQXrGP3y.cjs');
|
|
2
|
-
require('../../unctx-
|
|
2
|
+
require('../../unctx-r7Vvh6XR.cjs');
|
|
3
3
|
const require_single_line_comment = require('../../single-line-comment-COZ9RWsm.cjs');
|
|
4
|
-
require('../../context
|
|
4
|
+
require('../../context--KBspFnw.cjs');
|
|
5
5
|
require('../../reflection-DHpdhvwI.cjs');
|
|
6
6
|
require('../../contexts-DezKayEz.cjs');
|
|
7
|
-
const require_source_file = require('../../source-file-
|
|
7
|
+
const require_source_file = require('../../source-file-BAVTBVJy.cjs');
|
|
8
8
|
require('../../components-B0evB5xd.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Output = require_output.Output;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../context-Gqs3Ru42.cjs";
|
|
2
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-BnmXIAFP.cjs";
|
|
3
3
|
import "../../components-IRVnipN0.cjs";
|
|
4
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B258_x1B.cjs";
|
|
5
5
|
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BTsyACav.cjs";
|
|
6
6
|
import "../../index-BUYyA1Xh.cjs";
|
|
7
7
|
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as Output } from "../../output-D3UQ5nZo.mjs";
|
|
2
|
-
import "../../unctx-
|
|
2
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
3
3
|
import { t as SingleLineComment } from "../../single-line-comment-mOQtfhWt.mjs";
|
|
4
|
-
import "../../context-
|
|
4
|
+
import "../../context-e2kZWEFW.mjs";
|
|
5
5
|
import "../../reflection-B-NMNIoB.mjs";
|
|
6
6
|
import "../../contexts-juWSyBfb.mjs";
|
|
7
|
-
import { t as SourceFile } from "../../source-file-
|
|
7
|
+
import { t as SourceFile } from "../../source-file-BiJK-nH_.mjs";
|
|
8
8
|
import "../../components-CyQi7RHT.mjs";
|
|
9
9
|
|
|
10
10
|
export { Output, SingleLineComment, SourceFile };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../context-Gqs3Ru42.cjs";
|
|
2
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-BnmXIAFP.cjs";
|
|
3
3
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../components-IRVnipN0.cjs";
|
|
2
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
2
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B258_x1B.cjs";
|
|
3
3
|
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
require('../../unctx-
|
|
2
|
-
require('../../context
|
|
1
|
+
require('../../unctx-r7Vvh6XR.cjs');
|
|
2
|
+
require('../../context--KBspFnw.cjs');
|
|
3
3
|
require('../../reflection-DHpdhvwI.cjs');
|
|
4
4
|
require('../../contexts-DezKayEz.cjs');
|
|
5
|
-
const require_source_file = require('../../source-file-
|
|
5
|
+
const require_source_file = require('../../source-file-BAVTBVJy.cjs');
|
|
6
6
|
|
|
7
7
|
exports.SourceFile = require_source_file.SourceFile;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../unctx-
|
|
2
|
-
import "../../context-
|
|
1
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
2
|
+
import "../../context-e2kZWEFW.mjs";
|
|
3
3
|
import "../../reflection-B-NMNIoB.mjs";
|
|
4
4
|
import "../../contexts-juWSyBfb.mjs";
|
|
5
|
-
import { t as SourceFile } from "../../source-file-
|
|
5
|
+
import { t as SourceFile } from "../../source-file-BiJK-nH_.mjs";
|
|
6
6
|
|
|
7
7
|
export { SourceFile };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../../unctx-
|
|
2
|
-
const require_context = require('../../context
|
|
1
|
+
require('../../unctx-r7Vvh6XR.cjs');
|
|
2
|
+
const require_context = require('../../context--KBspFnw.cjs');
|
|
3
3
|
|
|
4
4
|
exports.useMeta = require_context.useMeta;
|
|
5
5
|
exports.useMetaSafe = require_context.useMetaSafe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../unctx-
|
|
2
|
-
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../../context-
|
|
1
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
2
|
+
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../../context-e2kZWEFW.mjs";
|
|
3
3
|
|
|
4
4
|
export { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../../unctx-
|
|
2
|
-
const require_context = require('../../context
|
|
1
|
+
require('../../unctx-r7Vvh6XR.cjs');
|
|
2
|
+
const require_context = require('../../context--KBspFnw.cjs');
|
|
3
3
|
const require_reflection = require('../../reflection-DHpdhvwI.cjs');
|
|
4
4
|
require('../../contexts-DezKayEz.cjs');
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../unctx-
|
|
2
|
-
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../../context-
|
|
1
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
2
|
+
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../../context-e2kZWEFW.mjs";
|
|
3
3
|
import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-B-NMNIoB.mjs";
|
|
4
4
|
import "../../contexts-juWSyBfb.mjs";
|
|
5
5
|
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_output = require('../output-CQXrGP3y.cjs');
|
|
2
|
-
require('../unctx-
|
|
2
|
+
require('../unctx-r7Vvh6XR.cjs');
|
|
3
3
|
const require_single_line_comment = require('../single-line-comment-COZ9RWsm.cjs');
|
|
4
|
-
const require_context = require('../context
|
|
4
|
+
const require_context = require('../context--KBspFnw.cjs');
|
|
5
5
|
const require_reflection = require('../reflection-DHpdhvwI.cjs');
|
|
6
6
|
require('../contexts-DezKayEz.cjs');
|
|
7
|
-
const require_source_file = require('../source-file-
|
|
7
|
+
const require_source_file = require('../source-file-BAVTBVJy.cjs');
|
|
8
8
|
require('../components-B0evB5xd.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Output = require_output.Output;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as useMeta, c as usePowerlinesContext, i as __ΩPowerlinesContextInterface, l as usePowerlinesSafe, n as PowerlinesContextInterface, o as useMetaSafe, r as __ΩMetaItem, s as usePowerlines, t as MetaItem } from "../context-Gqs3Ru42.cjs";
|
|
2
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-BnmXIAFP.cjs";
|
|
3
3
|
import "../components-IRVnipN0.cjs";
|
|
4
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-B258_x1B.cjs";
|
|
5
5
|
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-BTsyACav.cjs";
|
|
6
6
|
import "../index-BUYyA1Xh.cjs";
|
|
7
7
|
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../reflection-xU09ifzp.cjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as Output } from "../output-D3UQ5nZo.mjs";
|
|
2
|
-
import "../unctx-
|
|
2
|
+
import "../unctx-MFxscYXI.mjs";
|
|
3
3
|
import { t as SingleLineComment } from "../single-line-comment-mOQtfhWt.mjs";
|
|
4
|
-
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../context-
|
|
4
|
+
import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../context-e2kZWEFW.mjs";
|
|
5
5
|
import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../reflection-B-NMNIoB.mjs";
|
|
6
6
|
import "../contexts-juWSyBfb.mjs";
|
|
7
|
-
import { t as SourceFile } from "../source-file-
|
|
7
|
+
import { t as SourceFile } from "../source-file-BiJK-nH_.mjs";
|
|
8
8
|
import "../components-CyQi7RHT.mjs";
|
|
9
9
|
|
|
10
10
|
export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/{dynamic-import-statement-vVM9osmC.d.cts → dynamic-import-statement-DTSUoDt2.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,8 +26,8 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core13.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
33
|
-
//# sourceMappingURL=dynamic-import-statement-
|
|
33
|
+
//# sourceMappingURL=dynamic-import-statement-DTSUoDt2.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-import-statement-
|
|
1
|
+
{"version":3,"file":"dynamic-import-statement-DTSUoDt2.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as TypescriptFileProps } from "./typescript-file-fOVF6YF2.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
28
|
-
//# sourceMappingURL=entry-file-
|
|
28
|
+
//# sourceMappingURL=entry-file-CfMzpF03.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-CfMzpF03.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
2
|
-
import * as
|
|
1
|
+
import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
|
|
2
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core17.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
28
|
-
//# sourceMappingURL=entry-file-
|
|
28
|
+
//# sourceMappingURL=entry-file-CnC6P3j6.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-CnC6P3j6.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as usePowerlinesSafe } from "./context-
|
|
2
|
-
import { t as TypescriptFile } from "./typescript-file-
|
|
1
|
+
import { a as usePowerlinesSafe } from "./context-e2kZWEFW.mjs";
|
|
2
|
+
import { t as TypescriptFile } from "./typescript-file-C5NjN3H2.mjs";
|
|
3
3
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { computed, splitProps } from "@alloy-js/core";
|
|
5
5
|
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
@@ -38,4 +38,4 @@ function EntryFile(props) {
|
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { EntryFile as t };
|
|
41
|
-
//# sourceMappingURL=entry-file-
|
|
41
|
+
//# sourceMappingURL=entry-file-D64eurjX.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-D64eurjX.mjs","names":["computed","splitProps","appendPath","hasFileExtension","replaceExtension","replacePath","isSet","defu","usePowerlinesSafe","TypescriptFile","EntryFile","props","children","meta","tsx","path","typeDefinition","rest","context","fullPath","entryPath","workspaceConfig","workspaceRoot","_$createComponent","_$mergeProps","value","kind"],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport defu from \"defu\";\nimport { ResolvedEntryTypeDefinition } from \"powerlines/types/resolved\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type EntryFileProps = TypescriptFileProps & {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n\n /**\n * Render metadata information about the entrypoint\n */\n typeDefinition?: ResolvedEntryTypeDefinition;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function EntryFile(props: EntryFileProps) {\n const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(\n props,\n [\"children\", \"meta\", \"tsx\", \"path\", \"typeDefinition\"]\n );\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n `${\n !isSet(tsx) ? path : replaceExtension(path)\n }${tsx ? \".tsx\" : hasFileExtension(path) ? \"\" : \".ts\"}`,\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n )\n : path\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"entry\"\n },\n meta ?? {},\n {\n typeDefinition\n }\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
1
|
+
import { o as TypescriptFileProps } from "./typescript-file-MYxikvB6.cjs";
|
|
2
2
|
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
@@ -25,4 +25,4 @@ declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
|
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
28
|
-
//# sourceMappingURL=entry-file-
|
|
28
|
+
//# sourceMappingURL=entry-file-DVueLVSn.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-DVueLVSn.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context
|
|
3
|
-
const require_typescript_file = require('./typescript-file-
|
|
2
|
+
const require_context = require('./context--KBspFnw.cjs');
|
|
3
|
+
const require_typescript_file = require('./typescript-file-BmLwVIQP.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
6
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/markdown/components/front-matter.d.ts
|
|
4
4
|
interface FrontMatterProps {
|
|
@@ -9,8 +9,8 @@ interface FrontMatterProps {
|
|
|
9
9
|
*
|
|
10
10
|
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
11
|
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps):
|
|
12
|
+
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core0.Children;
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
16
|
-
//# sourceMappingURL=front-matter-
|
|
16
|
+
//# sourceMappingURL=front-matter-gcouRI-6.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-gcouRI-6.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
3
|
const require_output = require('./output-CQXrGP3y.cjs');
|
|
4
|
-
const require_unctx = require('./unctx-
|
|
4
|
+
const require_unctx = require('./unctx-r7Vvh6XR.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
7
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
@@ -55,14 +55,16 @@ const plugin = (options = {}) => {
|
|
|
55
55
|
meta
|
|
56
56
|
}, async () => {
|
|
57
57
|
const _self$ = this;
|
|
58
|
-
|
|
58
|
+
const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
59
59
|
context: _self$,
|
|
60
60
|
meta,
|
|
61
61
|
get basePath() {
|
|
62
62
|
return _self$.workspaceConfig.workspaceRoot;
|
|
63
63
|
},
|
|
64
64
|
children
|
|
65
|
-
}))
|
|
65
|
+
}));
|
|
66
|
+
this.debug("Processing rendered output from Alloy-js.");
|
|
67
|
+
await (0, __alloy_js_core.traverseOutput)(output, {
|
|
66
68
|
visitDirectory: (directory) => {
|
|
67
69
|
if (this.fs.existsSync(directory.path)) return;
|
|
68
70
|
this.fs.mkdirSync(directory.path);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Output$1 } from "./output-D3UQ5nZo.mjs";
|
|
2
|
-
import { t as unctx } from "./unctx-
|
|
2
|
+
import { t as unctx } from "./unctx-MFxscYXI.mjs";
|
|
3
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
5
5
|
import rollupPlugin from "@alloy-js/rollup-plugin";
|
|
@@ -52,14 +52,16 @@ const plugin = (options = {}) => {
|
|
|
52
52
|
meta
|
|
53
53
|
}, async () => {
|
|
54
54
|
const _self$ = this;
|
|
55
|
-
|
|
55
|
+
const output = await renderAsync(createComponent(Output$1, {
|
|
56
56
|
context: _self$,
|
|
57
57
|
meta,
|
|
58
58
|
get basePath() {
|
|
59
59
|
return _self$.workspaceConfig.workspaceRoot;
|
|
60
60
|
},
|
|
61
61
|
children
|
|
62
|
-
}))
|
|
62
|
+
}));
|
|
63
|
+
this.debug("Processing rendered output from Alloy-js.");
|
|
64
|
+
await traverseOutput(output, {
|
|
63
65
|
visitDirectory: (directory) => {
|
|
64
66
|
if (this.fs.existsSync(directory.path)) return;
|
|
65
67
|
this.fs.mkdirSync(directory.path);
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["renderAsync","traverseOutput","rollupPlugin","StormJSON","findFileExtension","Output","unctx","plugin","options","name","config","debug","alloy","typescript","build","inputOptions","transform","jsx","plugins","external","configResolved","tsconfig","tsconfigJson","compilerOptions","jsxImportSource","fs","write","tsconfigFilePath","stringify","order","handler","render","children","meta","callAsync","value","_self$","_$createComponent","context","basePath","workspaceConfig","workspaceRoot","visitDirectory","directory","existsSync","path","mkdirSync","visitFile","file","metadata","kind","id","Error","emitBuiltinSync","contents","skipFormat","storage","extension","emitEntrySync","typeDefinition","emitSync","copySync","sourcePath"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport { renderAsync, traverseOutput } from \"@alloy-js/core\";\nimport rollupPlugin from \"@alloy-js/rollup-plugin\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { Output } from \"./core/components/output\";\nimport { MetaItem } from \"./core/contexts/context\";\nimport { unctx } from \"./internal/unctx\";\nimport { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n {\n name: \"alloy:config\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n build: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n },\n plugins: [rollupPlugin()],\n external: [/^@alloy-js\\//]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n if (\n this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\" ||\n this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n\n if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n }\n\n if (\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n \"@alloy-js/core\";\n }\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n },\n {\n name: \"alloy:attach-render\",\n configResolved: {\n order: \"pre\",\n async handler() {\n this.debug(\"Attaching the `render` method to the context object.\");\n\n this.render = async (children: Children) => {\n const meta = {} as Record<string, MetaItem>;\n\n await unctx.callAsync({ value: this, meta }, async () => {\n
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["renderAsync","traverseOutput","rollupPlugin","StormJSON","findFileExtension","Output","unctx","plugin","options","name","config","debug","alloy","typescript","build","inputOptions","transform","jsx","plugins","external","configResolved","tsconfig","tsconfigJson","compilerOptions","jsxImportSource","fs","write","tsconfigFilePath","stringify","order","handler","render","children","meta","callAsync","value","_self$","output","_$createComponent","context","basePath","workspaceConfig","workspaceRoot","visitDirectory","directory","existsSync","path","mkdirSync","visitFile","file","metadata","kind","id","Error","emitBuiltinSync","contents","skipFormat","storage","extension","emitEntrySync","typeDefinition","emitSync","copySync","sourcePath"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport { renderAsync, traverseOutput } from \"@alloy-js/core\";\nimport rollupPlugin from \"@alloy-js/rollup-plugin\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { Output } from \"./core/components/output\";\nimport { MetaItem } from \"./core/contexts/context\";\nimport { unctx } from \"./internal/unctx\";\nimport { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n {\n name: \"alloy:config\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n build: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n },\n plugins: [rollupPlugin()],\n external: [/^@alloy-js\\//]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n if (\n this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\" ||\n this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n\n if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n }\n\n if (\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n \"@alloy-js/core\";\n }\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n },\n {\n name: \"alloy:attach-render\",\n configResolved: {\n order: \"pre\",\n async handler() {\n this.debug(\"Attaching the `render` method to the context object.\");\n\n this.render = async (children: Children) => {\n const meta = {} as Record<string, MetaItem>;\n\n await unctx.callAsync({ value: this, meta }, async () => {\n const output = await renderAsync(\n <Output<TContext>\n context={this}\n meta={meta}\n basePath={this.workspaceConfig.workspaceRoot}>\n {children}\n </Output>\n );\n this.debug(\"Processing rendered output from Alloy-js.\");\n\n await traverseOutput(output, {\n visitDirectory: directory => {\n if (this.fs.existsSync(directory.path)) {\n return;\n }\n\n this.fs.mkdirSync(directory.path);\n },\n visitFile: file => {\n if (\"contents\" in file) {\n const metadata = meta[file.path] ?? {};\n if (metadata.kind === \"builtin\") {\n if (!metadata.id) {\n throw new Error(\n `Built-in file \"${file.path}\" is missing its ID in the render metadata.`\n );\n }\n\n this.emitBuiltinSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else if (metadata.kind === \"entry\") {\n this.emitEntrySync(file.contents, file.path, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n ...(metadata.typeDefinition ?? {})\n });\n } else {\n this.emitSync(file.contents, file.path, metadata);\n }\n } else {\n this.fs.copySync(file.sourcePath, file.path);\n }\n }\n });\n });\n };\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":""}
|