@powerlines/plugin-alloy 0.19.23 → 0.19.25
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-uzudbU6M.mjs → builtin-file-B8Y36s1a.mjs} +4 -4
- package/dist/{builtin-file-uzudbU6M.mjs.map → builtin-file-B8Y36s1a.mjs.map} +1 -1
- package/dist/{builtin-file-DnSvcCYH.d.mts → builtin-file-BDHvdI1i.d.mts} +4 -4
- package/dist/{builtin-file-GdYKn4vl.d.cts.map → builtin-file-BDHvdI1i.d.mts.map} +1 -1
- package/dist/{builtin-file-DbWoV4fB.d.cts → builtin-file-Bf0byhqY.d.cts} +4 -4
- package/dist/{builtin-file-DbWoV4fB.d.cts.map → builtin-file-Bf0byhqY.d.cts.map} +1 -1
- package/dist/{builtin-file-GdYKn4vl.d.cts → builtin-file-PDckmfzE.d.cts} +2 -2
- package/dist/{builtin-file-DnSvcCYH.d.mts.map → builtin-file-PDckmfzE.d.cts.map} +1 -1
- package/dist/{builtin-file-V_vMh8s8.cjs → builtin-file-vG9RwKpd.cjs} +3 -3
- package/dist/{context-CdPajCh6.mjs → context-BaVJCPfX.mjs} +1 -1
- package/dist/{context-CdPajCh6.mjs.map → context-BaVJCPfX.mjs.map} +1 -1
- package/dist/core/components/index.cjs +4 -4
- package/dist/core/components/index.d.cts +3 -3
- package/dist/core/components/index.mjs +4 -4
- package/dist/core/components/output.cjs +2 -2
- package/dist/core/components/output.d.cts +1 -1
- package/dist/core/components/output.mjs +2 -2
- package/dist/core/components/single-line-comment.d.cts +1 -1
- package/dist/core/components/source-file.cjs +2 -2
- package/dist/core/components/source-file.d.cts +1 -1
- package/dist/core/components/source-file.mjs +2 -2
- package/dist/core/contexts/context.cjs +1 -1
- package/dist/core/contexts/context.mjs +1 -1
- package/dist/core/contexts/index.cjs +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/contexts/meta.cjs +1 -1
- package/dist/core/contexts/meta.mjs +1 -1
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.mjs +4 -4
- package/dist/{dynamic-import-statement-CNsIFAva.d.cts → dynamic-import-statement-C142NY9L.d.cts} +3 -3
- package/dist/{dynamic-import-statement-C7f6CN_b.d.mts.map → dynamic-import-statement-C142NY9L.d.cts.map} +1 -1
- package/dist/{entry-file-Big6nfUK.cjs → entry-file-BF1TZjhp.cjs} +2 -2
- package/dist/{entry-file-DsLnlmMx.d.cts → entry-file-CHSinjc8.d.cts} +4 -4
- package/dist/{entry-file-Cu4-ISnT.d.mts.map → entry-file-CHSinjc8.d.cts.map} +1 -1
- package/dist/{entry-file-ZcGBmLac.d.cts → entry-file-DlyBq92D.d.cts} +4 -4
- package/dist/{entry-file-DsLnlmMx.d.cts.map → entry-file-DlyBq92D.d.cts.map} +1 -1
- package/dist/{entry-file-BwAnSku3.mjs → entry-file-DzlSog-0.mjs} +3 -3
- package/dist/{entry-file-BwAnSku3.mjs.map → entry-file-DzlSog-0.mjs.map} +1 -1
- package/dist/{entry-file-Cu4-ISnT.d.mts → entry-file-RCTtBe-Z.d.mts} +4 -4
- package/dist/{entry-file-ZcGBmLac.d.cts.map → entry-file-RCTtBe-Z.d.mts.map} +1 -1
- package/dist/{front-matter-DNU08CaL.d.mts → front-matter-BxgmGhju.d.cts} +3 -3
- package/dist/{front-matter-62K3eODK.d.cts.map → front-matter-BxgmGhju.d.cts.map} +1 -1
- package/dist/{front-matter-DTorR58b.d.cts → front-matter-DpKD40Zz.d.cts} +3 -3
- package/dist/{front-matter-DNU08CaL.d.mts.map → front-matter-DpKD40Zz.d.cts.map} +1 -1
- package/dist/index.cjs +2 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -13
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/front-matter.d.cts +1 -1
- package/dist/markdown/components/index.cjs +4 -4
- package/dist/markdown/components/index.d.cts +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.d.cts +3 -3
- package/dist/markdown/components/markdown-file.mjs +4 -4
- package/dist/markdown/components/markdown-table.d.cts +1 -1
- package/dist/markdown/index.cjs +4 -4
- package/dist/markdown/index.d.cts +4 -4
- package/dist/markdown/index.mjs +4 -4
- package/dist/{markdown-file-B6gbsDmK.cjs → markdown-file-BDzUAptw.cjs} +2 -2
- package/dist/{markdown-file-CVG729rs.d.cts → markdown-file-C0tsAvPo.d.cts} +6 -6
- package/dist/{markdown-file-CVG729rs.d.cts.map → markdown-file-C0tsAvPo.d.cts.map} +1 -1
- package/dist/{markdown-file-BEmEsfUy.d.cts → markdown-file-CwMc-alS.d.cts} +6 -6
- package/dist/{markdown-file-CVqSypqu.d.mts.map → markdown-file-CwMc-alS.d.cts.map} +1 -1
- package/dist/{markdown-file-k5ep-0VI.mjs → markdown-file-DLIS2yeG.mjs} +3 -3
- package/dist/{markdown-file-k5ep-0VI.mjs.map → markdown-file-DLIS2yeG.mjs.map} +1 -1
- package/dist/{markdown-file-CVqSypqu.d.mts → markdown-file-DwxnA0FP.d.mts} +6 -6
- package/dist/markdown-file-DwxnA0FP.d.mts.map +1 -0
- package/dist/markdown-table-CZMEY6IR.d.cts.map +1 -1
- package/dist/{markdown-table-CXHmy2hU.d.cts → markdown-table-Cv6HmRUB.d.cts} +5 -5
- package/dist/{markdown-table-CXHmy2hU.d.cts.map → markdown-table-Cv6HmRUB.d.cts.map} +1 -1
- package/dist/markdown-table-D2KgJkWx.d.cts +28 -0
- package/dist/{markdown-table-D5Tg3LLV.d.cts.map → markdown-table-D2KgJkWx.d.cts.map} +1 -1
- package/dist/{markdown-table-D5Tg3LLV.d.cts → markdown-table-FflgG7B5.d.mts} +3 -3
- package/dist/markdown-table-FflgG7B5.d.mts.map +1 -0
- package/dist/{meta-D0pfCtdR.mjs → meta-BuwJuxY9.mjs} +1 -1
- package/dist/{meta-D0pfCtdR.mjs.map → meta-BuwJuxY9.mjs.map} +1 -1
- package/dist/{output-CPbwcL2j.mjs → output-BehYSTRr.mjs} +2 -2
- package/dist/{output-CPbwcL2j.mjs.map → output-BehYSTRr.mjs.map} +1 -1
- package/dist/{output-zwpYyF-T.d.cts → output-CIKSJjPS.d.cts} +3 -3
- package/dist/{output-zwpYyF-T.d.cts.map → output-CIKSJjPS.d.cts.map} +1 -1
- package/dist/{output-B52VAyyC.cjs → output-Ck9L8v3E.cjs} +1 -1
- package/dist/{output-DKlrIKEg.d.cts → output-qne-NsTE.d.cts} +3 -3
- package/dist/{output-DKlrIKEg.d.cts.map → output-qne-NsTE.d.cts.map} +1 -1
- package/dist/single-line-comment-B35kAUee.d.mts +23 -0
- package/dist/single-line-comment-B35kAUee.d.mts.map +1 -0
- package/dist/{single-line-comment-Cc9yT69w.d.cts → single-line-comment-DWXxACyy.d.cts} +3 -3
- package/dist/single-line-comment-DWXxACyy.d.cts.map +1 -0
- package/dist/{single-line-comment-CBaZAKTr.d.cts → single-line-comment-VsK5yZdC.d.cts} +3 -3
- package/dist/{single-line-comment-CBaZAKTr.d.cts.map → single-line-comment-VsK5yZdC.d.cts.map} +1 -1
- package/dist/{source-file-MLTzYO0w.mjs → source-file-B5FSrvOa.mjs} +2 -2
- package/dist/{source-file-MLTzYO0w.mjs.map → source-file-B5FSrvOa.mjs.map} +1 -1
- package/dist/{source-file-BxaWuvsM.d.cts → source-file-BNYeD1w4.d.cts} +3 -3
- package/dist/{source-file-BxaWuvsM.d.cts.map → source-file-BNYeD1w4.d.cts.map} +1 -1
- package/dist/{source-file-BmRUb_Gl.d.cts → source-file-BsjyDo3Z.d.cts} +3 -3
- package/dist/{source-file-BmRUb_Gl.d.cts.map → source-file-BsjyDo3Z.d.cts.map} +1 -1
- package/dist/{source-file-BCcq9Me3.cjs → source-file-C8ntga6V.cjs} +1 -1
- package/dist/{source-file-Cw1cdlHb.d.mts → source-file-ChbaAOt8.d.mts} +3 -3
- package/dist/{source-file-Cw1cdlHb.d.mts.map → source-file-ChbaAOt8.d.mts.map} +1 -1
- package/dist/{tsdoc-BufL8muf.cjs → tsdoc-fSRc8v2O.cjs} +1 -1
- package/dist/{tsdoc-DB1Qzwsn.mjs → tsdoc-prhuuYav.mjs} +2 -2
- package/dist/{tsdoc-DB1Qzwsn.mjs.map → tsdoc-prhuuYav.mjs.map} +1 -1
- package/dist/tsdoc-reflection-B_mvCfkF.d.mts +19 -0
- package/dist/{tsdoc-reflection-D8Zr70Pj.d.cts.map → tsdoc-reflection-B_mvCfkF.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-Cov5Qh1c.cjs → tsdoc-reflection-BpkFCXw6.cjs} +1 -1
- package/dist/{tsdoc-reflection-BcTrWAwt.mjs → tsdoc-reflection-CQX-iDtz.mjs} +2 -2
- package/dist/{tsdoc-reflection-BcTrWAwt.mjs.map → tsdoc-reflection-CQX-iDtz.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-D8Zr70Pj.d.cts → tsdoc-reflection-DpF0t1Xj.d.cts} +5 -5
- package/dist/tsdoc-reflection-DpF0t1Xj.d.cts.map +1 -0
- package/dist/typescript/components/builtin-file.cjs +6 -6
- package/dist/typescript/components/builtin-file.d.cts +3 -3
- 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 +3 -3
- package/dist/typescript/components/entry-file.mjs +5 -5
- package/dist/typescript/components/index.cjs +10 -10
- package/dist/typescript/components/index.d.cts +8 -8
- package/dist/typescript/components/index.d.mts +2 -2
- package/dist/typescript/components/index.mjs +10 -10
- package/dist/typescript/components/tsdoc-reflection.cjs +3 -3
- package/dist/typescript/components/tsdoc-reflection.d.cts +1 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +3 -3
- package/dist/typescript/components/tsdoc.cjs +2 -2
- package/dist/typescript/components/tsdoc.mjs +2 -2
- package/dist/typescript/components/typescript-file.cjs +4 -4
- package/dist/typescript/components/typescript-file.d.cts +2 -2
- package/dist/typescript/components/typescript-file.mjs +4 -4
- package/dist/typescript/components/typescript-interface.cjs +4 -4
- package/dist/typescript/components/typescript-interface.d.cts +1 -1
- package/dist/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/typescript/components/typescript-interface.mjs +4 -4
- package/dist/typescript/components/typescript-object.cjs +4 -4
- package/dist/typescript/components/typescript-object.d.cts +1 -1
- package/dist/typescript/components/typescript-object.d.mts +1 -1
- package/dist/typescript/components/typescript-object.mjs +4 -4
- package/dist/typescript/index.cjs +10 -10
- package/dist/typescript/index.d.cts +8 -8
- package/dist/typescript/index.d.mts +2 -2
- package/dist/typescript/index.mjs +10 -10
- package/dist/{typescript-file-VcbRuqFR.d.cts → typescript-file-BqamPJcI.d.cts} +2 -2
- package/dist/{typescript-file-BmK-emyx.d.cts.map → typescript-file-BqamPJcI.d.cts.map} +1 -1
- package/dist/{typescript-file-BmK-emyx.d.cts → typescript-file-C-JfXPBj.d.cts} +2 -2
- package/dist/{typescript-file-D-HdSyYk.d.mts.map → typescript-file-C-JfXPBj.d.cts.map} +1 -1
- package/dist/{typescript-file-DJy5gCL9.mjs → typescript-file-CNCLRiyf.mjs} +3 -3
- package/dist/{typescript-file-DJy5gCL9.mjs.map → typescript-file-CNCLRiyf.mjs.map} +1 -1
- package/dist/{typescript-file-D8ACLdIR.cjs → typescript-file-DKYD5v5W.cjs} +2 -2
- package/dist/{typescript-file-D-HdSyYk.d.mts → typescript-file-uSWR-Uzq.d.mts} +2 -2
- package/dist/{typescript-file-VcbRuqFR.d.cts.map → typescript-file-uSWR-Uzq.d.mts.map} +1 -1
- package/dist/{typescript-interface-CGQ0pwib.mjs → typescript-interface-BnRXH_zM.mjs} +2 -2
- package/dist/{typescript-interface-CGQ0pwib.mjs.map → typescript-interface-BnRXH_zM.mjs.map} +1 -1
- package/dist/{typescript-interface-Xgm71cgZ.d.cts → typescript-interface-C1lcUzTa.d.cts} +4 -4
- package/dist/{typescript-interface-Xgm71cgZ.d.cts.map → typescript-interface-C1lcUzTa.d.cts.map} +1 -1
- package/dist/{typescript-interface-CTyDcMdt.d.mts → typescript-interface-C1n8sI7E.d.mts} +4 -4
- package/dist/{typescript-interface-CTyDcMdt.d.mts.map → typescript-interface-C1n8sI7E.d.mts.map} +1 -1
- package/dist/{typescript-interface-Q4trMyzm.cjs → typescript-interface-DC2d5S0V.cjs} +1 -1
- package/dist/typescript-interface-DX0WJLCa.d.mts +26 -0
- package/dist/{typescript-interface-_Kb_nHxR.d.cts.map → typescript-interface-DX0WJLCa.d.mts.map} +1 -1
- package/dist/{typescript-interface-_Kb_nHxR.d.cts → typescript-interface-LTD6nhQZ.d.cts} +4 -4
- package/dist/typescript-interface-LTD6nhQZ.d.cts.map +1 -0
- package/dist/{typescript-object-DBPxpkoP.d.cts → typescript-object-BHwyh1vl.d.cts} +4 -4
- package/dist/{typescript-object-BBu0DpsG.d.cts.map → typescript-object-BHwyh1vl.d.cts.map} +1 -1
- package/dist/{typescript-object-BBu0DpsG.d.cts → typescript-object-BeOv-T9D.d.cts} +4 -4
- package/dist/{typescript-object-DBPxpkoP.d.cts.map → typescript-object-BeOv-T9D.d.cts.map} +1 -1
- package/dist/{typescript-object-DHFnCfRa.cjs → typescript-object-CGjPvsYM.cjs} +1 -1
- package/dist/{typescript-object-L2Zn4zbB.d.mts → typescript-object-DK3sl8cB.d.mts} +4 -4
- package/dist/{typescript-object-L2Zn4zbB.d.mts.map → typescript-object-DK3sl8cB.d.mts.map} +1 -1
- package/dist/{typescript-object-B0R92yL7.mjs → typescript-object-Dhr7lMRV.mjs} +2 -2
- package/dist/{typescript-object-B0R92yL7.mjs.map → typescript-object-Dhr7lMRV.mjs.map} +1 -1
- package/dist/typescript-object-zP6NWofT.d.mts +30 -0
- package/dist/typescript-object-zP6NWofT.d.mts.map +1 -0
- package/package.json +6 -6
- package/dist/dynamic-import-statement-C7f6CN_b.d.mts +0 -33
- package/dist/dynamic-import-statement-CNsIFAva.d.cts.map +0 -1
- package/dist/front-matter-62K3eODK.d.cts +0 -16
- package/dist/front-matter-DTorR58b.d.cts.map +0 -1
- package/dist/markdown-file-BEmEsfUy.d.cts.map +0 -1
- package/dist/single-line-comment-Cc9yT69w.d.cts.map +0 -1
- /package/dist/{context-DNdlL_gp.cjs → context-D-lZVHpZ.cjs} +0 -0
- /package/dist/{meta-BjTflizw.cjs → meta-CBKMGDr1.cjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i 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 { i as usePowerlinesSafe } from "./context-BaVJCPfX.mjs";
|
|
2
|
+
import { d as TSDocModule } from "./tsdoc-prhuuYav.mjs";
|
|
3
|
+
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-CNCLRiyf.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-B8Y36s1a.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-B8Y36s1a.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,6 +1,6 @@
|
|
|
1
1
|
import { h as TSDocModuleProps } from "./tsdoc-CwqGhmLe.mjs";
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
3
|
-
import * as
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-uSWR-Uzq.mjs";
|
|
3
|
+
import * as _alloy_js_core17 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_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-BDHvdI1i.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-BDHvdI1i.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-BpOXtq0v.cjs";
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
3
|
-
import * as
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-C-JfXPBj.cjs";
|
|
3
|
+
import * as _alloy_js_core13 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_core13.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-Bf0byhqY.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-Bf0byhqY.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,5 +1,5 @@
|
|
|
1
1
|
import { h as TSDocModuleProps } from "./tsdoc-BpOXtq0v.cjs";
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-BqamPJcI.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-PDckmfzE.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-PDckmfzE.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,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-D-lZVHpZ.cjs');
|
|
3
|
+
const require_tsdoc = require('./tsdoc-fSRc8v2O.cjs');
|
|
4
|
+
const require_typescript_file = require('./typescript-file-DKYD5v5W.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
1
|
+
{"version":3,"file":"context-BaVJCPfX.mjs","names":["createNamedContext","useContext","PowerlinesContext","usePowerlinesContext","usePowerlinesSafe","powerlines","undefined","usePowerlines","Error"],"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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines/types/context\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\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"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require('../../
|
|
2
|
-
|
|
3
|
-
require('../../
|
|
1
|
+
require('../../meta-CBKMGDr1.cjs');
|
|
2
|
+
require('../../context-D-lZVHpZ.cjs');
|
|
3
|
+
const require_output = require('../../output-Ck9L8v3E.cjs');
|
|
4
4
|
const require_single_line_comment = require('../../single-line-comment-DvU69OGj.cjs');
|
|
5
|
-
const require_source_file = require('../../source-file-
|
|
5
|
+
const require_source_file = require('../../source-file-C8ntga6V.cjs');
|
|
6
6
|
require('../../components-BYyc8-6U.cjs');
|
|
7
7
|
|
|
8
8
|
exports.Output = require_output.Output;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CIKSJjPS.cjs";
|
|
2
2
|
import "../../components-DqfyRVFO.cjs";
|
|
3
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
4
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
3
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DWXxACyy.cjs";
|
|
4
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BNYeD1w4.cjs";
|
|
5
5
|
import "../../index-DdxxIAKU.cjs";
|
|
6
6
|
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import
|
|
3
|
-
import "../../
|
|
1
|
+
import "../../meta-BuwJuxY9.mjs";
|
|
2
|
+
import "../../context-BaVJCPfX.mjs";
|
|
3
|
+
import { t as Output } from "../../output-BehYSTRr.mjs";
|
|
4
4
|
import { t as SingleLineComment } from "../../single-line-comment-MRVbskt3.mjs";
|
|
5
|
-
import { t as SourceFile } from "../../source-file-
|
|
5
|
+
import { t as SourceFile } from "../../source-file-B5FSrvOa.mjs";
|
|
6
6
|
import "../../components-pztyf7qk.mjs";
|
|
7
7
|
|
|
8
8
|
export { Output, SingleLineComment, SourceFile };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CIKSJjPS.cjs";
|
|
2
2
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../components-DqfyRVFO.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-DWXxACyy.cjs";
|
|
3
3
|
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../../meta-
|
|
2
|
-
const require_source_file = require('../../source-file-
|
|
1
|
+
require('../../meta-CBKMGDr1.cjs');
|
|
2
|
+
const require_source_file = require('../../source-file-C8ntga6V.cjs');
|
|
3
3
|
|
|
4
4
|
exports.SourceFile = require_source_file.SourceFile;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../components-DqfyRVFO.cjs";
|
|
2
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
2
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BNYeD1w4.cjs";
|
|
3
3
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-
|
|
1
|
+
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-BaVJCPfX.mjs";
|
|
2
2
|
|
|
3
3
|
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_meta = require('../../meta-CBKMGDr1.cjs');
|
|
2
|
+
const require_context = require('../../context-D-lZVHpZ.cjs');
|
|
3
3
|
const require_reflection = require('../../reflection-BSrdR0Qz.cjs');
|
|
4
4
|
require('../../contexts-Do5bLA7f.cjs');
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { i as
|
|
1
|
+
import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-BuwJuxY9.mjs";
|
|
2
|
+
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-BaVJCPfX.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-Btb1NqwS.mjs";
|
|
4
4
|
import "../../contexts-oubuaPo0.mjs";
|
|
5
5
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-
|
|
1
|
+
import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-BuwJuxY9.mjs";
|
|
2
2
|
|
|
3
3
|
export { MetaContext, useMeta, useMetaContext, useMetaSafe };
|
package/dist/core/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
const require_meta = require('../meta-CBKMGDr1.cjs');
|
|
2
|
+
const require_context = require('../context-D-lZVHpZ.cjs');
|
|
3
|
+
const require_output = require('../output-Ck9L8v3E.cjs');
|
|
4
4
|
const require_single_line_comment = require('../single-line-comment-DvU69OGj.cjs');
|
|
5
|
-
const require_source_file = require('../source-file-
|
|
5
|
+
const require_source_file = require('../source-file-C8ntga6V.cjs');
|
|
6
6
|
require('../components-BYyc8-6U.cjs');
|
|
7
7
|
const require_reflection = require('../reflection-BSrdR0Qz.cjs');
|
|
8
8
|
require('../contexts-Do5bLA7f.cjs');
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-CIKSJjPS.cjs";
|
|
2
2
|
import "../components-DqfyRVFO.cjs";
|
|
3
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-
|
|
4
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-
|
|
3
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-DWXxACyy.cjs";
|
|
4
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-BNYeD1w4.cjs";
|
|
5
5
|
import "../index-DdxxIAKU.cjs";
|
|
6
6
|
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../context-Cfj0Wk3u.cjs";
|
|
7
7
|
import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../meta-DDwBNdE3.cjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../meta-BuwJuxY9.mjs";
|
|
2
|
+
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../context-BaVJCPfX.mjs";
|
|
3
|
+
import { t as Output } from "../output-BehYSTRr.mjs";
|
|
4
4
|
import { t as SingleLineComment } from "../single-line-comment-MRVbskt3.mjs";
|
|
5
|
-
import { t as SourceFile } from "../source-file-
|
|
5
|
+
import { t as SourceFile } from "../source-file-B5FSrvOa.mjs";
|
|
6
6
|
import "../components-pztyf7qk.mjs";
|
|
7
7
|
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-Btb1NqwS.mjs";
|
|
8
8
|
import "../contexts-oubuaPo0.mjs";
|
package/dist/{dynamic-import-statement-CNsIFAva.d.cts → dynamic-import-statement-C142NY9L.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core10 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_core10.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-C142NY9L.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-import-statement-
|
|
1
|
+
{"version":3,"file":"dynamic-import-statement-C142NY9L.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,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-D-lZVHpZ.cjs');
|
|
3
|
+
const require_typescript_file = require('./typescript-file-DKYD5v5W.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,5 +1,5 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
2
|
-
import * as
|
|
1
|
+
import { o as TypescriptFileProps } from "./typescript-file-BqamPJcI.cjs";
|
|
2
|
+
import * as _alloy_js_core14 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_core14.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-CHSinjc8.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-CHSinjc8.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-C-JfXPBj.cjs";
|
|
2
|
+
import * as _alloy_js_core9 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_core9.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-DlyBq92D.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-DlyBq92D.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,eAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as usePowerlinesSafe } from "./context-
|
|
2
|
-
import { t as TypescriptFile } from "./typescript-file-
|
|
1
|
+
import { i as usePowerlinesSafe } from "./context-BaVJCPfX.mjs";
|
|
2
|
+
import { t as TypescriptFile } from "./typescript-file-CNCLRiyf.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-DzlSog-0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-DzlSog-0.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,5 +1,5 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
2
|
-
import * as
|
|
1
|
+
import { o as TypescriptFileProps } from "./typescript-file-uSWR-Uzq.mjs";
|
|
2
|
+
import * as _alloy_js_core11 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_core11.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-RCTtBe-Z.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-RCTtBe-Z.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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core6 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_core6.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-BxgmGhju.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-BxgmGhju.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core7 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_core7.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-DpKD40Zz.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-DpKD40Zz.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,8 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
require('./
|
|
4
|
-
const require_output = require('./output-B52VAyyC.cjs');
|
|
5
|
-
const require_meta = require('./meta-BjTflizw.cjs');
|
|
3
|
+
const require_meta = require('./meta-CBKMGDr1.cjs');
|
|
6
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
8
6
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
@@ -50,19 +48,10 @@ const plugin = (options = {}) => {
|
|
|
50
48
|
async handler() {
|
|
51
49
|
this.debug("Attaching the `render` method to the context object.");
|
|
52
50
|
this.render = async (child) => {
|
|
53
|
-
const _self$ = this;
|
|
54
51
|
const meta = {};
|
|
55
52
|
const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_meta.MetaContext.Provider, {
|
|
56
53
|
value: meta,
|
|
57
|
-
|
|
58
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
59
|
-
context: _self$,
|
|
60
|
-
get basePath() {
|
|
61
|
-
return _self$.workspaceConfig.workspaceRoot;
|
|
62
|
-
},
|
|
63
|
-
children: child
|
|
64
|
-
});
|
|
65
|
-
}
|
|
54
|
+
children: child
|
|
66
55
|
}));
|
|
67
56
|
this.debug("Processing rendered output from Alloy-js.");
|
|
68
57
|
await (0, __alloy_js_core.traverseOutput)(output, {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAiCA;;;;AAkHc,cAlHD,MAkHC,EAAA,CAAA,iBAjHK,kBAiHL,GAjH0B,kBAiH1B,CAAA,CAAA,OAAA,CAAA,EA/GH,kBA+GG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAiCA;;;;AAkHc,cAlHD,MAkHC,EAAA,CAAA,iBAjHK,kBAiHL,GAjH0B,kBAiH1B,CAAA,CAAA,OAAA,CAAA,EA/GH,kBA+GG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { t as Output$1 } from "./output-CPbwcL2j.mjs";
|
|
3
|
-
import { t as MetaContext } from "./meta-D0pfCtdR.mjs";
|
|
1
|
+
import { t as MetaContext } from "./meta-BuwJuxY9.mjs";
|
|
4
2
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
5
3
|
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
6
4
|
import rollupPlugin from "@alloy-js/rollup-plugin";
|
|
@@ -47,19 +45,10 @@ const plugin = (options = {}) => {
|
|
|
47
45
|
async handler() {
|
|
48
46
|
this.debug("Attaching the `render` method to the context object.");
|
|
49
47
|
this.render = async (child) => {
|
|
50
|
-
const _self$ = this;
|
|
51
48
|
const meta = {};
|
|
52
49
|
const output = await renderAsync(createComponent(MetaContext.Provider, {
|
|
53
50
|
value: meta,
|
|
54
|
-
|
|
55
|
-
return createComponent(Output$1, {
|
|
56
|
-
context: _self$,
|
|
57
|
-
get basePath() {
|
|
58
|
-
return _self$.workspaceConfig.workspaceRoot;
|
|
59
|
-
},
|
|
60
|
-
children: child
|
|
61
|
-
});
|
|
62
|
-
}
|
|
51
|
+
children: child
|
|
63
52
|
}));
|
|
64
53
|
this.debug("Processing rendered output from Alloy-js.");
|
|
65
54
|
await traverseOutput(output, {
|