@powerlines/plugin-alloy 0.19.10 → 0.19.12
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/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
- package/dist/core/components/index.cjs +6 -11
- package/dist/core/components/index.d.cts +3 -6
- package/dist/core/components/index.d.mts +3 -6
- package/dist/core/components/index.mjs +3 -8
- package/dist/core/components/output.cjs +32 -2
- package/dist/core/components/output.d.cts +22 -2
- package/dist/core/components/output.d.mts +22 -2
- package/dist/core/components/output.mjs +30 -1
- package/dist/core/components/single-line-comment.cjs +21 -2
- package/dist/core/components/single-line-comment.d.cts +21 -2
- package/dist/core/components/single-line-comment.d.mts +21 -2
- package/dist/core/components/single-line-comment.mjs +19 -1
- package/dist/core/components/source-file.cjs +63 -6
- package/dist/core/components/source-file.d.cts +31 -2
- package/dist/core/components/source-file.d.mts +31 -2
- package/dist/core/components/source-file.mjs +60 -5
- package/dist/core/contexts/context.cjs +53 -7
- package/dist/core/contexts/context.d.cts +65 -1
- package/dist/core/contexts/context.d.mts +65 -1
- package/dist/core/contexts/context.mjs +48 -2
- package/dist/core/contexts/index.cjs +15 -17
- package/dist/core/contexts/index.d.cts +2 -4
- package/dist/core/contexts/index.d.mts +2 -4
- package/dist/core/contexts/index.mjs +2 -4
- package/dist/core/contexts/reflection.cjs +67 -9
- package/dist/core/contexts/reflection.d.cts +51 -2
- package/dist/core/contexts/reflection.d.mts +51 -2
- package/dist/core/contexts/reflection.mjs +58 -1
- package/dist/core/index.cjs +23 -24
- package/dist/core/index.d.cts +7 -8
- package/dist/core/index.d.mts +7 -8
- package/dist/core/index.mjs +7 -8
- package/dist/helpers/capnp.cjs +276 -18
- package/dist/helpers/capnp.d.cts +86 -1
- package/dist/helpers/capnp.d.mts +86 -1
- package/dist/helpers/capnp.mjs +257 -1
- package/dist/helpers/create-builtin.cjs +18 -2
- package/dist/helpers/create-builtin.d.cts +14 -1
- package/dist/helpers/create-builtin.d.mts +14 -1
- package/dist/helpers/create-builtin.mjs +16 -1
- package/dist/helpers/index.cjs +23 -23
- package/dist/helpers/index.d.cts +4 -4
- package/dist/helpers/index.d.mts +4 -4
- package/dist/helpers/index.mjs +4 -4
- package/dist/helpers/refkey.cjs +15 -2
- package/dist/helpers/refkey.d.cts +12 -1
- package/dist/helpers/refkey.d.mts +12 -1
- package/dist/helpers/refkey.mjs +13 -1
- package/dist/helpers/typescript.cjs +45 -2
- package/dist/helpers/typescript.d.cts +24 -1
- package/dist/helpers/typescript.d.mts +24 -1
- package/dist/helpers/typescript.mjs +43 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internal/unctx.cjs +8 -0
- package/dist/internal/unctx.mjs +7 -0
- package/dist/markdown/components/front-matter.cjs +27 -2
- package/dist/markdown/components/front-matter.d.cts +14 -1
- package/dist/markdown/components/front-matter.d.mts +14 -1
- package/dist/markdown/components/front-matter.mjs +25 -1
- package/dist/markdown/components/index.cjs +9 -17
- package/dist/markdown/components/index.d.cts +3 -7
- package/dist/markdown/components/index.d.mts +3 -7
- package/dist/markdown/components/index.mjs +3 -11
- package/dist/markdown/components/markdown-file.cjs +130 -10
- package/dist/markdown/components/markdown-file.d.cts +27 -4
- package/dist/markdown/components/markdown-file.d.mts +27 -4
- package/dist/markdown/components/markdown-file.mjs +127 -8
- package/dist/markdown/components/markdown-table.cjs +100 -5
- package/dist/markdown/components/markdown-table.d.cts +26 -3
- package/dist/markdown/components/markdown-table.d.mts +26 -3
- package/dist/markdown/components/markdown-table.mjs +96 -2
- package/dist/markdown/contexts/index.cjs +5 -6
- package/dist/markdown/contexts/index.d.cts +1 -2
- package/dist/markdown/contexts/index.d.mts +1 -2
- package/dist/markdown/contexts/index.mjs +1 -2
- package/dist/markdown/contexts/markdown-table.cjs +36 -5
- package/dist/markdown/contexts/markdown-table.d.cts +36 -1
- package/dist/markdown/contexts/markdown-table.d.mts +36 -1
- package/dist/markdown/contexts/markdown-table.mjs +31 -1
- package/dist/markdown/index.cjs +16 -22
- package/dist/markdown/index.d.cts +6 -8
- package/dist/markdown/index.d.mts +6 -8
- package/dist/markdown/index.mjs +6 -12
- package/dist/types/components.cjs +0 -1
- package/dist/types/components.d.cts +141 -1
- package/dist/types/components.d.mts +141 -1
- package/dist/types/components.mjs +0 -2
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +39 -1
- package/dist/types/plugin.d.mts +39 -1
- package/dist/types/plugin.mjs +0 -2
- package/dist/typescript/components/builtin-file.cjs +61 -10
- package/dist/typescript/components/builtin-file.d.cts +33 -5
- package/dist/typescript/components/builtin-file.d.mts +33 -5
- package/dist/typescript/components/builtin-file.mjs +59 -9
- package/dist/typescript/components/dynamic-import-statement.cjs +24 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +31 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +31 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +22 -1
- package/dist/typescript/components/entry-file.cjs +41 -9
- package/dist/typescript/components/entry-file.d.cts +26 -4
- package/dist/typescript/components/entry-file.d.mts +26 -4
- package/dist/typescript/components/entry-file.mjs +38 -8
- package/dist/typescript/components/index.cjs +43 -50
- package/dist/typescript/components/index.d.cts +9 -12
- package/dist/typescript/components/index.d.mts +9 -12
- package/dist/typescript/components/index.mjs +9 -16
- package/dist/typescript/components/record-expression.cjs +11 -2
- package/dist/typescript/components/record-expression.d.cts +11 -1
- package/dist/typescript/components/record-expression.d.mts +11 -1
- package/dist/typescript/components/record-expression.mjs +9 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +177 -8
- package/dist/typescript/components/tsdoc-reflection.d.cts +17 -3
- package/dist/typescript/components/tsdoc-reflection.d.mts +17 -3
- package/dist/typescript/components/tsdoc-reflection.mjs +173 -5
- package/dist/typescript/components/tsdoc.cjs +484 -23
- package/dist/typescript/components/tsdoc.d.cts +162 -2
- package/dist/typescript/components/tsdoc.d.mts +162 -2
- package/dist/typescript/components/tsdoc.mjs +463 -3
- package/dist/typescript/components/typescript-file.cjs +215 -10
- package/dist/typescript/components/typescript-file.d.cts +48 -3
- package/dist/typescript/components/typescript-file.d.mts +48 -3
- package/dist/typescript/components/typescript-file.mjs +211 -7
- package/dist/typescript/components/typescript-interface.cjs +72 -8
- package/dist/typescript/components/typescript-interface.d.cts +24 -2
- package/dist/typescript/components/typescript-interface.d.mts +24 -2
- package/dist/typescript/components/typescript-interface.mjs +69 -6
- package/dist/typescript/components/typescript-object.cjs +124 -8
- package/dist/typescript/components/typescript-object.d.cts +28 -2
- package/dist/typescript/components/typescript-object.d.mts +28 -2
- package/dist/typescript/components/typescript-object.mjs +121 -6
- package/dist/typescript/index.cjs +44 -50
- package/dist/typescript/index.d.cts +10 -12
- package/dist/typescript/index.d.mts +10 -12
- package/dist/typescript/index.mjs +10 -16
- package/package.json +6 -146
- package/dist/builtin-file-92EGBv5-.d.cts +0 -34
- package/dist/builtin-file-BNikHLqK.mjs +0 -61
- package/dist/builtin-file-BcDHq12w.cjs +0 -67
- package/dist/builtin-file-BnS5AN_d.d.mts +0 -34
- package/dist/builtin-file-DLzqfLvN.d.cts +0 -34
- package/dist/builtin-file-RXdRpQs-.d.mts +0 -34
- package/dist/capnp-CRMDa2Ok.d.mts +0 -87
- package/dist/capnp-ClfqI-5t.cjs +0 -356
- package/dist/capnp-CnQcwo0s.mjs +0 -259
- package/dist/capnp-YnGBPkLK.d.cts +0 -87
- package/dist/components-B0evB5xd.cjs +0 -0
- package/dist/components-BNK9p5AE.cjs +0 -0
- package/dist/components-C_Rnle_h.mjs +0 -1
- package/dist/components-CpjG2zC9.mjs +0 -1
- package/dist/components-CrWk5KiP.mjs +0 -1
- package/dist/components-CyQi7RHT.mjs +0 -1
- package/dist/components-DPKSrvP-.cjs +0 -0
- package/dist/components-IRVnipN0.d.cts +0 -142
- package/dist/components-ISRFDWTF.cjs +0 -0
- package/dist/components-oHSM7vmp.d.mts +0 -142
- package/dist/context-Cf8tpe50.mjs +0 -50
- package/dist/context-Du_bVzRZ.d.mts +0 -66
- package/dist/context-Dxe_Fumh.cjs +0 -79
- package/dist/context-Gqs3Ru42.d.cts +0 -66
- package/dist/contexts-DezKayEz.cjs +0 -0
- package/dist/contexts-J643Nrrt.cjs +0 -0
- package/dist/contexts-_jq-yJQG.mjs +0 -1
- package/dist/contexts-juWSyBfb.mjs +0 -1
- package/dist/create-builtin-BiKyN2s2.cjs +0 -24
- package/dist/create-builtin-DFiWd6Zc.d.cts +0 -15
- package/dist/create-builtin-DQuJyeZw.mjs +0 -18
- package/dist/create-builtin-FtQ6qKzX.d.mts +0 -15
- package/dist/dynamic-import-statement-B5Pdwr4Z.d.mts +0 -32
- package/dist/dynamic-import-statement-BbNJchii.mjs +0 -24
- package/dist/dynamic-import-statement-DNJlI3ND.d.cts +0 -32
- package/dist/dynamic-import-statement-DWrZ2gKt.d.mts +0 -32
- package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +0 -30
- package/dist/dynamic-import-statement-vVM9osmC.d.cts +0 -32
- package/dist/entry-file-Bp6H09FR.cjs +0 -47
- package/dist/entry-file-By8nA9tz.d.cts +0 -27
- package/dist/entry-file-CVhMmrfa.mjs +0 -40
- package/dist/entry-file-CnC6P3j6.d.mts +0 -27
- package/dist/entry-file-DK_LEGtk.d.cts +0 -27
- package/dist/entry-file-ayzYWEo5.d.mts +0 -27
- package/dist/front-matter-2eGRXX11.mjs +0 -27
- package/dist/front-matter-CBgLQm02.d.cts +0 -15
- package/dist/front-matter-DCaL6in6.d.mts +0 -15
- package/dist/front-matter-DGpkM9OE.d.mts +0 -15
- package/dist/front-matter-DZ1tB-Uj.cjs +0 -33
- package/dist/front-matter-u9H7VPAF.d.cts +0 -15
- package/dist/index-B-Y-ZG2x.d.mts +0 -1
- package/dist/index-BH1nuHdZ.d.cts +0 -1
- package/dist/index-BUYyA1Xh.d.cts +0 -1
- package/dist/index-C-lwXyQ6.d.mts +0 -1
- package/dist/index-C6HcjJiY.d.mts +0 -1
- package/dist/index-C6yvNuzO.d.cts +0 -1
- package/dist/index-CrhZaFgN.d.cts +0 -1
- package/dist/index-CzItj62a.d.mts +0 -1
- package/dist/index-DcDTDbdz.d.cts +0 -1
- package/dist/index-hcx6LMSC.d.mts +0 -1
- package/dist/markdown-file--ImKca5s.mjs +0 -129
- package/dist/markdown-file-BIhnVkZ2.d.mts +0 -28
- package/dist/markdown-file-CIGTz9xQ.d.cts +0 -28
- package/dist/markdown-file-Dg1y486U.d.cts +0 -28
- package/dist/markdown-file-EtJaVhJ3.d.mts +0 -28
- package/dist/markdown-file-h7NT7f5c.cjs +0 -141
- package/dist/markdown-table-6X6gXeGW.d.mts +0 -27
- package/dist/markdown-table-AoJIzA89.d.cts +0 -27
- package/dist/markdown-table-BWPm6GbJ.cjs +0 -57
- package/dist/markdown-table-Br2Ihl2z.d.cts +0 -37
- package/dist/markdown-table-CFL7L6rA.d.mts +0 -37
- package/dist/markdown-table-ChvYobzz.d.mts +0 -27
- package/dist/markdown-table-D3DonpwR.mjs +0 -98
- package/dist/markdown-table-DMZl577B.d.cts +0 -27
- package/dist/markdown-table-eTnxxb46.cjs +0 -116
- package/dist/markdown-table-g6DeP10e.mjs +0 -33
- package/dist/output-CMC94bm-.d.mts +0 -23
- package/dist/output-CQXrGP3y.cjs +0 -38
- package/dist/output-D3UQ5nZo.mjs +0 -32
- package/dist/output-Dq1RRbJY.d.cts +0 -23
- package/dist/output-__DECiJi.d.cts +0 -23
- package/dist/plugin-B8wUxSXi.cjs +0 -0
- package/dist/plugin-BmQ6pIes.mjs +0 -1
- package/dist/plugin-C6SupJ8C.d.cts +0 -40
- package/dist/plugin-bEu9fq1G.d.mts +0 -40
- package/dist/record-expression-6ElbFyR0.cjs +0 -17
- package/dist/record-expression-BjXMzi4r.mjs +0 -11
- package/dist/record-expression-adlQJuNw.d.cts +0 -12
- package/dist/record-expression-c9kQA93k.d.mts +0 -12
- package/dist/refkey-Bf_2_U5t.d.cts +0 -13
- package/dist/refkey-C08kDOQ0.cjs +0 -21
- package/dist/refkey-CIFiGvgZ.mjs +0 -15
- package/dist/refkey-CSZgFc0P.d.mts +0 -13
- package/dist/reflection-B-NMNIoB.mjs +0 -60
- package/dist/reflection-CUo0047e.d.mts +0 -52
- package/dist/reflection-DHpdhvwI.cjs +0 -108
- package/dist/reflection-xU09ifzp.d.cts +0 -52
- package/dist/single-line-comment-BrtGpc8-.d.cts +0 -22
- package/dist/single-line-comment-C-XZILtX.d.cts +0 -22
- package/dist/single-line-comment-COZ9RWsm.cjs +0 -27
- package/dist/single-line-comment-PMv_zrfe.d.mts +0 -22
- package/dist/single-line-comment-mOQtfhWt.mjs +0 -21
- package/dist/source-file-BTsyACav.d.cts +0 -32
- package/dist/source-file-CE5xdm7N.d.cts +0 -32
- package/dist/source-file-CQl0UCgf.d.mts +0 -32
- package/dist/source-file-DIVz8Z5n.mjs +0 -61
- package/dist/source-file-DWvB6bux.cjs +0 -68
- package/dist/tsdoc-4he4sT3g.cjs +0 -585
- package/dist/tsdoc-CfvwK4Ml.d.cts +0 -163
- package/dist/tsdoc-DAgQCDn3.mjs +0 -465
- package/dist/tsdoc-OUuKjTbh.d.mts +0 -163
- package/dist/tsdoc-reflection-BqT8VseT.d.cts +0 -18
- package/dist/tsdoc-reflection-Bs4_37gJ.mjs +0 -175
- package/dist/tsdoc-reflection-C_sFkovT.d.cts +0 -18
- package/dist/tsdoc-reflection-Du3iJMdP.cjs +0 -193
- package/dist/tsdoc-reflection-Dzz-RtDf.d.mts +0 -18
- package/dist/tsdoc-reflection-ulqYHfKL.d.mts +0 -18
- package/dist/typescript-BCc7kwL_.mjs +0 -45
- package/dist/typescript-BbjCTT04.cjs +0 -51
- package/dist/typescript-DWzPF4n4.d.mts +0 -25
- package/dist/typescript-file-BWaBMfMr.d.mts +0 -49
- package/dist/typescript-file-BaPLzfrF.mjs +0 -213
- package/dist/typescript-file-C-RWh7Rs.d.cts +0 -49
- package/dist/typescript-file-D4JiEHa7.cjs +0 -231
- package/dist/typescript-file-fOVF6YF2.d.cts +0 -49
- package/dist/typescript-interface-BxxteBKy.cjs +0 -83
- package/dist/typescript-interface-C4ZTK214.d.cts +0 -25
- package/dist/typescript-interface-CO-hwDYb.mjs +0 -71
- package/dist/typescript-interface-CfEv7ztG.d.cts +0 -25
- package/dist/typescript-interface-MV4qwTHs.d.mts +0 -25
- package/dist/typescript-o4AsClkT.d.cts +0 -25
- package/dist/typescript-object-7biZgfO9.mjs +0 -123
- package/dist/typescript-object-BeOdGrgq.d.cts +0 -29
- package/dist/typescript-object-Bx9_APYr.cjs +0 -135
- package/dist/typescript-object-C7p9fJBF.d.mts +0 -29
- package/dist/typescript-object-Cibeo5_F.d.cts +0 -29
- package/dist/typescript-object-DwcUKWB9.d.mts +0 -29
- package/dist/unctx-BhYL7EYu.cjs +0 -92
- package/dist/unctx-D-zVwWnS.mjs +0 -86
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/create-builtin.ts
|
|
5
|
-
/**
|
|
6
|
-
* Creates a built-in representation of a package based on the provided descriptor.
|
|
7
|
-
*
|
|
8
|
-
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
9
|
-
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
10
|
-
*/
|
|
11
|
-
function createBuiltin(options) {
|
|
12
|
-
return (0, __alloy_js_typescript.createPackage)({
|
|
13
|
-
...options,
|
|
14
|
-
builtin: true
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
Object.defineProperty(exports, 'createBuiltin', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return createBuiltin;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SymbolCreator } from "@alloy-js/core";
|
|
2
|
-
import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/create-builtin.d.ts
|
|
5
|
-
type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
|
|
6
|
-
/**
|
|
7
|
-
* Creates a built-in representation of a package based on the provided descriptor.
|
|
8
|
-
*
|
|
9
|
-
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
10
|
-
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
11
|
-
*/
|
|
12
|
-
declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
|
|
13
|
-
declare type __ΩCreateBuiltinOptions = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createPackage } from "@alloy-js/typescript";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/create-builtin.ts
|
|
4
|
-
/**
|
|
5
|
-
* Creates a built-in representation of a package based on the provided descriptor.
|
|
6
|
-
*
|
|
7
|
-
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
8
|
-
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
9
|
-
*/
|
|
10
|
-
function createBuiltin(options) {
|
|
11
|
-
return createPackage({
|
|
12
|
-
...options,
|
|
13
|
-
builtin: true
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { createBuiltin as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SymbolCreator } from "@alloy-js/core";
|
|
2
|
-
import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/create-builtin.d.ts
|
|
5
|
-
type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
|
|
6
|
-
/**
|
|
7
|
-
* Creates a built-in representation of a package based on the provided descriptor.
|
|
8
|
-
*
|
|
9
|
-
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
10
|
-
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
11
|
-
*/
|
|
12
|
-
declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
|
|
13
|
-
declare type __ΩCreateBuiltinOptions = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { code } from "@alloy-js/core";
|
|
3
|
-
import { VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
12
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the dynamic import statement.
|
|
16
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
17
|
-
*/
|
|
18
|
-
function DynamicImportStatement(props) {
|
|
19
|
-
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
20
|
-
return createComponent(VarDeclaration, mergeProps({ "const": isConst }, rest, { initializer: code`await import("${importPath}").then(m => m.${exportName});` }));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { DynamicImportStatement as t };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core4.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
13
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @param props - The properties for the dynamic import statement.
|
|
17
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
18
|
-
*/
|
|
19
|
-
function DynamicImportStatement(props) {
|
|
20
|
-
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
21
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({ "const": isConst }, rest, { initializer: __alloy_js_core.code`await import("${importPath}").then(m => m.${exportName});` }));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
Object.defineProperty(exports, 'DynamicImportStatement', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return DynamicImportStatement;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
2
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
-
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
-
/**
|
|
7
|
-
* The path of the module to import.
|
|
8
|
-
*/
|
|
9
|
-
importPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the export to import from the module.
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue "default"
|
|
14
|
-
*/
|
|
15
|
-
exportName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
-
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the dynamic import statement.
|
|
27
|
-
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
-
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core17.Children;
|
|
30
|
-
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context-Dxe_Fumh.cjs');
|
|
3
|
-
const require_typescript_file = require('./typescript-file-D4JiEHa7.cjs');
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
7
|
-
let __stryke_path_replace = require("@stryke/path/replace");
|
|
8
|
-
let __stryke_path_append = require("@stryke/path/append");
|
|
9
|
-
let defu = require("defu");
|
|
10
|
-
defu = require_chunk.__toESM(defu);
|
|
11
|
-
let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
12
|
-
|
|
13
|
-
//#region src/typescript/components/entry-file.tsx
|
|
14
|
-
/**
|
|
15
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
16
|
-
*
|
|
17
|
-
* @param props - The properties for the source file.
|
|
18
|
-
* @returns The rendered source file component.
|
|
19
|
-
*/
|
|
20
|
-
function EntryFile(props) {
|
|
21
|
-
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
22
|
-
"children",
|
|
23
|
-
"meta",
|
|
24
|
-
"tsx",
|
|
25
|
-
"path",
|
|
26
|
-
"typeDefinition"
|
|
27
|
-
]);
|
|
28
|
-
const context = require_context.usePowerlinesSafe();
|
|
29
|
-
const fullPath = (0, __alloy_js_core.computed)(() => context ? (0, __stryke_path_append.appendPath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? path : (0, __stryke_path_replace.replaceExtension)(path)}${tsx ? ".tsx" : (0, __stryke_path_file_path_fns.hasFileExtension)(path) ? "" : ".ts"}`, (0, __stryke_path_replace.replacePath)(context.entryPath, context.workspaceConfig.workspaceRoot)) : path);
|
|
30
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
31
|
-
get path() {
|
|
32
|
-
return fullPath.value;
|
|
33
|
-
},
|
|
34
|
-
get meta() {
|
|
35
|
-
return (0, defu.default)({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
36
|
-
},
|
|
37
|
-
children
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
Object.defineProperty(exports, 'EntryFile', {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return EntryFile;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-C-RWh7Rs.cjs";
|
|
2
|
-
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
3
|
-
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { a as usePowerlinesSafe } from "./context-Cf8tpe50.mjs";
|
|
2
|
-
import { t as TypescriptFile } from "./typescript-file-BaPLzfrF.mjs";
|
|
3
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { computed, splitProps } from "@alloy-js/core";
|
|
5
|
-
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
6
|
-
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
7
|
-
import { appendPath } from "@stryke/path/append";
|
|
8
|
-
import defu from "defu";
|
|
9
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
10
|
-
|
|
11
|
-
//#region src/typescript/components/entry-file.tsx
|
|
12
|
-
/**
|
|
13
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
14
|
-
*
|
|
15
|
-
* @param props - The properties for the source file.
|
|
16
|
-
* @returns The rendered source file component.
|
|
17
|
-
*/
|
|
18
|
-
function EntryFile(props) {
|
|
19
|
-
const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(props, [
|
|
20
|
-
"children",
|
|
21
|
-
"meta",
|
|
22
|
-
"tsx",
|
|
23
|
-
"path",
|
|
24
|
-
"typeDefinition"
|
|
25
|
-
]);
|
|
26
|
-
const context = usePowerlinesSafe();
|
|
27
|
-
const fullPath = computed(() => context ? appendPath(`${!isSet(tsx) ? path : replaceExtension(path)}${tsx ? ".tsx" : hasFileExtension(path) ? "" : ".ts"}`, replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)) : path);
|
|
28
|
-
return createComponent(TypescriptFile, mergeProps(rest, {
|
|
29
|
-
get path() {
|
|
30
|
-
return fullPath.value;
|
|
31
|
-
},
|
|
32
|
-
get meta() {
|
|
33
|
-
return defu({ kind: "entry" }, meta ?? {}, { typeDefinition });
|
|
34
|
-
},
|
|
35
|
-
children
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
export { EntryFile as t };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
|
|
2
|
-
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
3
|
-
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core17.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-fOVF6YF2.cjs";
|
|
2
|
-
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
3
|
-
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
|
|
2
|
-
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
3
|
-
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
-
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the file is a TSX file.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
tsx?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render metadata information about the entrypoint
|
|
15
|
-
*/
|
|
16
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
-
*
|
|
21
|
-
* @param props - The properties for the source file.
|
|
22
|
-
* @returns The rendered source file component.
|
|
23
|
-
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
|
|
25
|
-
declare type __ΩEntryFileProps = any[];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { For, code } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/markdown/components/front-matter.tsx
|
|
5
|
-
/**
|
|
6
|
-
* Renders YAML front matter for a markdown file.
|
|
7
|
-
*
|
|
8
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
9
|
-
*/
|
|
10
|
-
function FrontMatter(props) {
|
|
11
|
-
return [
|
|
12
|
-
"---",
|
|
13
|
-
createIntrinsic("hbr", {}),
|
|
14
|
-
createComponent(For, {
|
|
15
|
-
get each() {
|
|
16
|
-
return Object.entries(props.data);
|
|
17
|
-
},
|
|
18
|
-
hardline: true,
|
|
19
|
-
children: ([key, value]) => code`${key}: ${JSON.stringify(value)}`
|
|
20
|
-
}),
|
|
21
|
-
"---",
|
|
22
|
-
createIntrinsic("hbr", {})
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { FrontMatter as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core9 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core9.Children;
|
|
13
|
-
declare type __ΩFrontMatterProps = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core12.Children;
|
|
13
|
-
declare type __ΩFrontMatterProps = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
|
|
13
|
-
declare type __ΩFrontMatterProps = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/front-matter.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Renders YAML front matter for a markdown file.
|
|
8
|
-
*
|
|
9
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
10
|
-
*/
|
|
11
|
-
function FrontMatter(props) {
|
|
12
|
-
return [
|
|
13
|
-
"---",
|
|
14
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
15
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
16
|
-
get each() {
|
|
17
|
-
return Object.entries(props.data);
|
|
18
|
-
},
|
|
19
|
-
hardline: true,
|
|
20
|
-
children: ([key, value]) => __alloy_js_core.code`${key}: ${JSON.stringify(value)}`
|
|
21
|
-
}),
|
|
22
|
-
"---",
|
|
23
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
Object.defineProperty(exports, 'FrontMatter', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return FrontMatter;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/components/front-matter.d.ts
|
|
4
|
-
interface FrontMatterProps {
|
|
5
|
-
data: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Renders YAML front matter for a markdown file.
|
|
9
|
-
*
|
|
10
|
-
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
|
-
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
|
|
13
|
-
declare type __ΩFrontMatterProps = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|