@powerlines/plugin-alloy 0.16.0 → 0.16.2
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-CXkreb3b.mjs +43 -0
- package/dist/builtin-file-D0xcKRt6.cjs +49 -0
- package/dist/builtin-file-Detj4VKO.d.cts +34 -0
- package/dist/builtin-file-Df3B4vGB.d.mts +34 -0
- package/dist/capnp-6EjloHj4.mjs +265 -0
- package/dist/capnp-BHeTs4Ea.d.mts +86 -0
- package/dist/capnp-CirEkAHB.d.cts +86 -0
- package/dist/capnp-DOzEf2mj.cjs +362 -0
- package/dist/{_virtual/rolldown_runtime.cjs → chunk-BwyOHTjC.cjs} +12 -2
- package/dist/components-BrkXdHq-.d.mts +141 -0
- package/dist/components-CH68f_ve.mjs +1 -0
- package/dist/components-CO0xjM8H.mjs +1 -0
- package/dist/components-CnI3Y57d.mjs +1 -0
- package/dist/components-Cvpo9IEL.cjs +0 -0
- package/dist/components-DTkri-mp.cjs +0 -0
- package/dist/components-DkVeQ5Yn.d.cts +141 -0
- package/dist/components-Gg416Czx.cjs +0 -0
- package/dist/components-ZbItRNLr.cjs +0 -0
- package/dist/components-vTvc6Xgc.mjs +1 -0
- package/dist/context-B1Z2ZRAI.d.cts +32 -0
- package/dist/context-BwQLwanm.d.mts +1680 -0
- package/dist/context-CWt70HA3.d.cts +1680 -0
- package/dist/context-DkLnFNZm.cjs +60 -0
- package/dist/context-eP3fitqj.mjs +36 -0
- package/dist/context-x-0aNytc.d.mts +32 -0
- package/dist/contexts-BtxvYUPj.cjs +0 -0
- package/dist/contexts-Dy4nfIoL.mjs +1 -0
- package/dist/contexts-DzdhIC7G.cjs +0 -0
- package/dist/contexts-Q1YIygoz.mjs +1 -0
- package/dist/core/components/index.cjs +8 -6
- package/dist/core/components/index.d.cts +6 -3
- package/dist/core/components/index.d.mts +6 -3
- package/dist/core/components/index.mjs +5 -3
- package/dist/core/components/output.cjs +3 -39
- package/dist/core/components/output.d.cts +2 -17
- package/dist/core/components/output.d.mts +2 -17
- package/dist/core/components/output.mjs +2 -37
- package/dist/core/components/single-line-comment.cjs +2 -21
- package/dist/core/components/single-line-comment.d.cts +3 -21
- package/dist/core/components/single-line-comment.d.mts +3 -21
- package/dist/core/components/single-line-comment.mjs +1 -19
- package/dist/core/components/source-file.cjs +2 -57
- package/dist/core/components/source-file.d.cts +3 -30
- package/dist/core/components/source-file.d.mts +3 -30
- package/dist/core/components/source-file.mjs +1 -54
- package/dist/core/contexts/context.cjs +5 -39
- package/dist/core/contexts/context.d.cts +2 -31
- package/dist/core/contexts/context.d.mts +2 -31
- package/dist/core/contexts/context.mjs +1 -34
- package/dist/core/contexts/index.cjs +15 -14
- package/dist/core/contexts/index.d.cts +5 -2
- package/dist/core/contexts/index.d.mts +5 -2
- package/dist/core/contexts/index.mjs +3 -2
- package/dist/core/contexts/reflection.cjs +9 -67
- package/dist/core/contexts/reflection.d.cts +3 -50
- package/dist/core/contexts/reflection.d.mts +3 -50
- package/dist/core/contexts/reflection.mjs +1 -58
- package/dist/core/index.cjs +22 -22
- package/dist/core/index.d.cts +9 -7
- package/dist/core/index.d.mts +9 -7
- package/dist/core/index.mjs +7 -7
- package/dist/create-builtin-CtBhQRxS.d.mts +15 -0
- package/dist/create-builtin-DgYGwEYD.cjs +24 -0
- package/dist/create-builtin-Dug1rcMQ.mjs +18 -0
- package/dist/create-builtin-SArMbh0-.d.cts +15 -0
- package/dist/dynamic-import-statement-AUDLZGFa.d.cts +32 -0
- package/dist/dynamic-import-statement-BFl4j9Ex.cjs +30 -0
- package/dist/dynamic-import-statement-BjiwPuJ3.d.mts +32 -0
- package/dist/dynamic-import-statement-DYl1f5Mj.mjs +24 -0
- package/dist/entry-file-CQwIaayx.d.mts +27 -0
- package/dist/entry-file-CTYBU7Lg.mjs +37 -0
- package/dist/entry-file-Cq3bZzix.d.cts +27 -0
- package/dist/entry-file-l3ZhaFTI.cjs +44 -0
- package/dist/helpers/capnp.cjs +19 -274
- package/dist/helpers/capnp.d.cts +2 -85
- package/dist/helpers/capnp.d.mts +2 -85
- package/dist/helpers/capnp.mjs +2 -255
- package/dist/helpers/create-builtin.cjs +2 -18
- package/dist/helpers/create-builtin.d.cts +1 -14
- package/dist/helpers/create-builtin.d.mts +1 -14
- package/dist/helpers/create-builtin.mjs +1 -16
- package/dist/helpers/index.cjs +24 -23
- package/dist/helpers/index.d.cts +5 -4
- package/dist/helpers/index.d.mts +5 -4
- package/dist/helpers/index.mjs +5 -4
- package/dist/helpers/refkey.cjs +2 -15
- package/dist/helpers/refkey.d.cts +1 -12
- package/dist/helpers/refkey.d.mts +1 -12
- package/dist/helpers/refkey.mjs +1 -13
- package/dist/helpers/typescript.cjs +3 -45
- package/dist/helpers/typescript.d.cts +1 -22
- package/dist/helpers/typescript.d.mts +1 -22
- package/dist/helpers/typescript.mjs +2 -43
- package/dist/index-Blaks7l8.d.cts +1 -0
- package/dist/index-CuheJfs-.d.mts +1 -0
- package/dist/index-CwSIy_W-.d.cts +1 -0
- package/dist/index-D7UbuJwP.d.mts +1 -0
- package/dist/index-D9XihFV1.d.mts +1 -0
- package/dist/index-DdxxIAKU.d.cts +1 -0
- package/dist/index-DrK1_jKY.d.mts +1 -0
- package/dist/index-DrZ2Dh-H.d.cts +1 -0
- package/dist/index-DztUdPP_.d.mts +1 -0
- package/dist/index-lQ_hGQ08.d.cts +1 -0
- package/dist/index.cjs +22 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +44 -3
- package/dist/markdown/components/index.cjs +12 -7
- package/dist/markdown/components/index.d.cts +7 -2
- package/dist/markdown/components/index.d.mts +7 -2
- package/dist/markdown/components/index.mjs +7 -2
- package/dist/markdown/components/markdown-file.cjs +6 -117
- package/dist/markdown/components/markdown-file.d.cts +4 -22
- package/dist/markdown/components/markdown-file.d.mts +4 -22
- package/dist/markdown/components/markdown-file.mjs +4 -114
- package/dist/markdown/components/markdown-table.cjs +5 -100
- package/dist/markdown/components/markdown-table.d.cts +4 -26
- package/dist/markdown/components/markdown-table.d.mts +4 -26
- package/dist/markdown/components/markdown-table.mjs +2 -96
- package/dist/markdown/contexts/index.cjs +6 -5
- package/dist/markdown/contexts/index.d.cts +2 -1
- package/dist/markdown/contexts/index.d.mts +2 -1
- package/dist/markdown/contexts/index.mjs +2 -1
- package/dist/markdown/contexts/markdown-table.cjs +5 -36
- package/dist/markdown/contexts/markdown-table.d.cts +1 -36
- package/dist/markdown/contexts/markdown-table.d.mts +1 -36
- package/dist/markdown/contexts/markdown-table.mjs +1 -31
- package/dist/markdown/index.cjs +17 -14
- package/dist/markdown/index.d.cts +8 -5
- package/dist/markdown/index.d.mts +8 -5
- package/dist/markdown/index.mjs +8 -5
- package/dist/markdown-file-CTMTrgdr.mjs +116 -0
- package/dist/markdown-file-CuMvfKbi.d.cts +23 -0
- package/dist/markdown-file-DBpOheYg.d.mts +23 -0
- package/dist/markdown-file-GXj9nWQs.cjs +128 -0
- package/dist/markdown-table-AO9Jtw-o.mjs +98 -0
- package/dist/markdown-table-Biapn9k9.cjs +57 -0
- package/dist/markdown-table-CpnCpTp1.d.cts +27 -0
- package/dist/markdown-table-DFnnh_px.d.cts +37 -0
- package/dist/markdown-table-DKL6g91k.d.mts +37 -0
- package/dist/markdown-table-DaYAMMk6.mjs +33 -0
- package/dist/markdown-table-DcG6ScWX.d.mts +27 -0
- package/dist/markdown-table-d1cy0JP3.cjs +116 -0
- package/dist/output-BC2u6xsn.d.cts +18 -0
- package/dist/output-C_BQEAMU.d.mts +18 -0
- package/dist/output-CiQCsyui.cjs +45 -0
- package/dist/output-eQ8RcTrP.mjs +39 -0
- package/dist/plugin-85Hf9k78.mjs +1 -0
- package/dist/plugin-CofWgH_d.cjs +0 -0
- package/dist/plugin-DcrJBDQ2.d.mts +39 -0
- package/dist/plugin-K4ViA72J.d.cts +39 -0
- package/dist/record-expression-B0NGcmBj.mjs +11 -0
- package/dist/record-expression-P1BTu_7B.d.mts +12 -0
- package/dist/record-expression-j-3eBufn.cjs +17 -0
- package/dist/record-expression-rZuoLQWG.d.cts +12 -0
- package/dist/refkey-BRtVxqGW.d.mts +13 -0
- package/dist/refkey-BUzulmmj.cjs +21 -0
- package/dist/refkey-CSq-Ftvf.mjs +15 -0
- package/dist/refkey-DpAkQ3Cu.d.cts +13 -0
- package/dist/reflection-B9zOZEdi.d.mts +51 -0
- package/dist/reflection-BYeP2t8p.d.cts +51 -0
- package/dist/reflection-CKhynTvI.cjs +108 -0
- package/dist/reflection-srixNcX2.mjs +60 -0
- package/dist/single-line-comment-C9Fz5mkM.mjs +21 -0
- package/dist/single-line-comment-DSAVQ0tl.d.cts +22 -0
- package/dist/single-line-comment-DSz_BbMx.d.mts +22 -0
- package/dist/single-line-comment-_ZglDv1k.cjs +27 -0
- package/dist/source-file-B8OyOWg8.d.mts +31 -0
- package/dist/source-file-DKnFKRGJ.cjs +63 -0
- package/dist/source-file-Db1Wu_yq.mjs +56 -0
- package/dist/source-file-Dr2h8MVw.d.cts +31 -0
- package/dist/tsdoc-BT-2pTD3.d.mts +152 -0
- package/dist/tsdoc-BpykLfnB.cjs +576 -0
- package/dist/tsdoc-CWCdJ1Uj.mjs +456 -0
- package/dist/tsdoc-C_2VzSk_.d.cts +152 -0
- package/dist/tsdoc-reflection-BIWxEkBI.mjs +170 -0
- package/dist/tsdoc-reflection-D4QfeAYE.d.cts +18 -0
- package/dist/tsdoc-reflection-Dr_Nf1ht.cjs +188 -0
- package/dist/tsdoc-reflection-qXh3a1WV.d.mts +18 -0
- package/dist/types/components.cjs +1 -0
- package/dist/types/components.d.cts +2 -141
- package/dist/types/components.d.mts +2 -141
- package/dist/types/components.mjs +2 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +2 -40
- package/dist/types/plugin.d.mts +2 -40
- package/dist/types/plugin.mjs +2 -0
- package/dist/typescript/components/builtin-file.cjs +8 -43
- package/dist/typescript/components/builtin-file.d.cts +6 -33
- package/dist/typescript/components/builtin-file.d.mts +6 -33
- package/dist/typescript/components/builtin-file.mjs +7 -41
- package/dist/typescript/components/dynamic-import-statement.cjs +2 -24
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -31
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -31
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -22
- package/dist/typescript/components/entry-file.cjs +6 -38
- package/dist/typescript/components/entry-file.d.cts +5 -26
- package/dist/typescript/components/entry-file.d.mts +5 -26
- package/dist/typescript/components/entry-file.mjs +5 -35
- package/dist/typescript/components/index.cjs +49 -43
- package/dist/typescript/components/index.d.cts +13 -9
- package/dist/typescript/components/index.d.mts +13 -9
- package/dist/typescript/components/index.mjs +15 -9
- package/dist/typescript/components/record-expression.cjs +2 -11
- package/dist/typescript/components/record-expression.d.cts +1 -11
- package/dist/typescript/components/record-expression.d.mts +1 -11
- package/dist/typescript/components/record-expression.mjs +1 -9
- package/dist/typescript/components/tsdoc-reflection.cjs +8 -172
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -17
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -17
- package/dist/typescript/components/tsdoc-reflection.mjs +5 -168
- package/dist/typescript/components/tsdoc.cjs +23 -475
- package/dist/typescript/components/tsdoc.d.cts +3 -151
- package/dist/typescript/components/tsdoc.d.mts +3 -151
- package/dist/typescript/components/tsdoc.mjs +3 -454
- package/dist/typescript/components/typescript-file.cjs +7 -192
- package/dist/typescript/components/typescript-file.d.cts +4 -46
- package/dist/typescript/components/typescript-file.d.mts +4 -46
- package/dist/typescript/components/typescript-file.mjs +4 -188
- package/dist/typescript/components/typescript-interface.cjs +8 -67
- package/dist/typescript/components/typescript-interface.d.cts +3 -23
- package/dist/typescript/components/typescript-interface.d.mts +3 -23
- package/dist/typescript/components/typescript-interface.mjs +6 -64
- package/dist/typescript/components/typescript-object.cjs +8 -124
- package/dist/typescript/components/typescript-object.d.cts +3 -24
- package/dist/typescript/components/typescript-object.d.mts +3 -24
- package/dist/typescript/components/typescript-object.mjs +6 -121
- package/dist/typescript/index.cjs +49 -44
- package/dist/typescript/index.d.cts +13 -10
- package/dist/typescript/index.d.mts +13 -10
- package/dist/typescript/index.mjs +15 -10
- package/dist/typescript-BIiCTw8m.d.mts +23 -0
- package/dist/typescript-NNuOlVjo.mjs +45 -0
- package/dist/typescript-VTSR_IQG.cjs +51 -0
- package/dist/typescript-YczHz9BQ.d.cts +23 -0
- package/dist/typescript-file-B2iQamR6.d.cts +47 -0
- package/dist/typescript-file-CCNXO3vl.d.mts +47 -0
- package/dist/typescript-file-DLbLtnFd.cjs +208 -0
- package/dist/typescript-file-hcvsHaDV.mjs +190 -0
- package/dist/typescript-interface-BM02EN5E.mjs +66 -0
- package/dist/typescript-interface-Cu5yH1iH.d.mts +24 -0
- package/dist/typescript-interface-cuXGu4c4.cjs +78 -0
- package/dist/typescript-interface-vmxe6DFQ.d.cts +24 -0
- package/dist/typescript-object-Bk0AnSSQ.mjs +123 -0
- package/dist/typescript-object-Bsfy6ZF0.cjs +135 -0
- package/dist/typescript-object-CYLHqec2.d.cts +25 -0
- package/dist/typescript-object-DlbiBCmI.d.mts +25 -0
- package/dist/{deepkit/src/utilities.mjs → utilities-C6eipB1q.mjs} +1 -1
- package/dist/{deepkit/src/utilities.cjs → utilities-CiKb35hs.cjs} +25 -5
- package/dist/vendor/index.cjs +630 -15
- package/package.json +5 -5
- package/dist/_virtual/rolldown_runtime.mjs +0 -29
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -13
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -12
- package/dist/powerlines/src/types/babel.d.mts +0 -2
- package/dist/powerlines/src/types/build.d.cts +0 -145
- package/dist/powerlines/src/types/build.d.mts +0 -145
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -369
- package/dist/powerlines/src/types/config.d.mts +0 -369
- package/dist/powerlines/src/types/context.d.cts +0 -362
- package/dist/powerlines/src/types/context.d.mts +0 -364
- package/dist/powerlines/src/types/fs.d.cts +0 -458
- package/dist/powerlines/src/types/fs.d.mts +0 -458
- package/dist/powerlines/src/types/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/plugin.d.cts +0 -231
- package/dist/powerlines/src/types/plugin.d.mts +0 -231
- package/dist/powerlines/src/types/resolved.d.cts +0 -81
- package/dist/powerlines/src/types/resolved.d.mts +0 -81
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/vendor/index.mjs +0 -11
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-file.d.ts
|
|
6
|
-
type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
|
|
7
|
-
/**
|
|
8
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
9
|
-
*
|
|
10
|
-
* @param props - The properties for the source file.
|
|
11
|
-
* @returns The rendered source file component.
|
|
12
|
-
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.Children;
|
|
14
|
-
/**
|
|
15
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
16
|
-
*
|
|
17
|
-
* @param props - The properties for the source file header.
|
|
18
|
-
* @returns The rendered source file header.
|
|
19
|
-
*/
|
|
20
|
-
declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core5.Children;
|
|
21
|
-
declare type __ΩMarkdownFileProps = any[];
|
|
22
|
-
//#endregion
|
|
1
|
+
import "../../context-BwQLwanm.mjs";
|
|
2
|
+
import "../../components-BrkXdHq-.mjs";
|
|
3
|
+
import "../../source-file-B8OyOWg8.mjs";
|
|
4
|
+
import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-DBpOheYg.mjs";
|
|
23
5
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|
|
@@ -1,116 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Show, code, getContext, splitProps } from "@powerlines/plugin-alloy/vendor";
|
|
6
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
7
|
-
import { Link } from "@alloy-js/markdown";
|
|
1
|
+
import "../../context-eP3fitqj.mjs";
|
|
2
|
+
import "../../single-line-comment-C9Fz5mkM.mjs";
|
|
3
|
+
import "../../source-file-Db1Wu_yq.mjs";
|
|
4
|
+
import { n as MarkdownFileHeader, t as MarkdownFile } from "../../markdown-file-CTMTrgdr.mjs";
|
|
8
5
|
|
|
9
|
-
//#region src/markdown/components/markdown-file.tsx
|
|
10
|
-
/**
|
|
11
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
12
|
-
*
|
|
13
|
-
* @param props - The properties for the source file.
|
|
14
|
-
* @returns The rendered source file component.
|
|
15
|
-
*/
|
|
16
|
-
function MarkdownFile(props) {
|
|
17
|
-
const [{ children, preset }, rest] = splitProps(props, ["children", "preset"]);
|
|
18
|
-
const nodeContext = getContext();
|
|
19
|
-
nodeContext.meta ??= {};
|
|
20
|
-
nodeContext.meta.output = { preset };
|
|
21
|
-
return createComponent(SourceFile, mergeProps({ get header() {
|
|
22
|
-
return createComponent(MarkdownFileHeader, {});
|
|
23
|
-
} }, rest, {
|
|
24
|
-
filetype: "md",
|
|
25
|
-
reference: Link,
|
|
26
|
-
get children() {
|
|
27
|
-
return createComponent(Show, {
|
|
28
|
-
get when() {
|
|
29
|
-
return Boolean(children);
|
|
30
|
-
},
|
|
31
|
-
children
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
38
|
-
*
|
|
39
|
-
* @param props - The properties for the source file header.
|
|
40
|
-
* @returns The rendered source file header.
|
|
41
|
-
*/
|
|
42
|
-
function MarkdownFileHeader(props) {
|
|
43
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = splitProps(props, [
|
|
44
|
-
"children",
|
|
45
|
-
"disableEslint",
|
|
46
|
-
"disableBiome",
|
|
47
|
-
"disablePrettier"
|
|
48
|
-
]);
|
|
49
|
-
const context = usePowerlines();
|
|
50
|
-
return [
|
|
51
|
-
createComponent(Show, {
|
|
52
|
-
get when() {
|
|
53
|
-
return Boolean(disableEslint);
|
|
54
|
-
},
|
|
55
|
-
get children() {
|
|
56
|
-
return [createComponent(SingleLineComment, {
|
|
57
|
-
variant: "markdown",
|
|
58
|
-
children: "eslint-disable"
|
|
59
|
-
}), createIntrinsic("hbr", {})];
|
|
60
|
-
}
|
|
61
|
-
}),
|
|
62
|
-
createComponent(Show, {
|
|
63
|
-
get when() {
|
|
64
|
-
return Boolean(disablePrettier);
|
|
65
|
-
},
|
|
66
|
-
get children() {
|
|
67
|
-
return [createComponent(SingleLineComment, {
|
|
68
|
-
variant: "markdown",
|
|
69
|
-
children: "prettier-ignore"
|
|
70
|
-
}), createIntrinsic("hbr", {})];
|
|
71
|
-
}
|
|
72
|
-
}),
|
|
73
|
-
createComponent(Show, {
|
|
74
|
-
get when() {
|
|
75
|
-
return Boolean(disableBiome);
|
|
76
|
-
},
|
|
77
|
-
get children() {
|
|
78
|
-
return [createComponent(SingleLineComment, {
|
|
79
|
-
variant: "markdown",
|
|
80
|
-
children: "biome-ignore lint: disable"
|
|
81
|
-
}), createIntrinsic("hbr", {})];
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
createComponent(Show, {
|
|
85
|
-
get when() {
|
|
86
|
-
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
87
|
-
},
|
|
88
|
-
get children() {
|
|
89
|
-
return createIntrinsic("hbr", {});
|
|
90
|
-
}
|
|
91
|
-
}),
|
|
92
|
-
createComponent(Show, {
|
|
93
|
-
get when() {
|
|
94
|
-
return Boolean(children);
|
|
95
|
-
},
|
|
96
|
-
get children() {
|
|
97
|
-
return [children, createIntrinsic("hbr", {})];
|
|
98
|
-
}
|
|
99
|
-
}),
|
|
100
|
-
createComponent(SingleLineComment, {
|
|
101
|
-
variant: "markdown",
|
|
102
|
-
get children() {
|
|
103
|
-
return code`Generated by ${titleCase(context?.config.framework) || "Powerlines"}`;
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
createIntrinsic("hbr", {}),
|
|
107
|
-
createComponent(SingleLineComment, {
|
|
108
|
-
variant: "markdown",
|
|
109
|
-
children: code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
|
|
110
|
-
}),
|
|
111
|
-
createIntrinsic("hbr", {})
|
|
112
|
-
];
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//#endregion
|
|
116
6
|
export { MarkdownFile, MarkdownFileHeader };
|
|
@@ -1,101 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
5
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
6
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
1
|
+
require('../../markdown-table-Biapn9k9.cjs');
|
|
2
|
+
const require_markdown_table$1 = require('../../markdown-table-d1cy0JP3.cjs');
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
function MarkdownTable(props) {
|
|
13
|
-
const [{ children, data }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["children", "data"]);
|
|
14
|
-
const columns = (0, __powerlines_plugin_alloy_vendor.computed)(() => Object.keys(data).map((name, index) => ({
|
|
15
|
-
index,
|
|
16
|
-
name,
|
|
17
|
-
align: "left",
|
|
18
|
-
width: 20
|
|
19
|
-
})));
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_contexts_markdown_table.MarkdownTableContext.Provider, {
|
|
21
|
-
get value() {
|
|
22
|
-
return {
|
|
23
|
-
columns: columns.value,
|
|
24
|
-
data
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
get children() {
|
|
28
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
29
|
-
get when() {
|
|
30
|
-
return Boolean(children);
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Component that provides a context for rendering markdown tables.
|
|
39
|
-
*/
|
|
40
|
-
function MarkdownTableColumn(props) {
|
|
41
|
-
const [{ children, width, align, name }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
|
|
42
|
-
"children",
|
|
43
|
-
"width",
|
|
44
|
-
"align",
|
|
45
|
-
"name"
|
|
46
|
-
]);
|
|
47
|
-
const tableContext = require_markdown_contexts_markdown_table.useMarkdownTable();
|
|
48
|
-
const columnRef = (0, __powerlines_plugin_alloy_vendor.computed)(() => tableContext?.columns.find((c) => c.name === name));
|
|
49
|
-
const indexRef = (0, __powerlines_plugin_alloy_vendor.computed)(() => columnRef.value?.index ?? 0);
|
|
50
|
-
const alignRef = (0, __powerlines_plugin_alloy_vendor.computed)(() => columnRef.value?.align ?? align ?? "left");
|
|
51
|
-
const widthRef = (0, __powerlines_plugin_alloy_vendor.computed)(() => columnRef.value?.width ?? width ?? 20);
|
|
52
|
-
const textLength = (0, __powerlines_plugin_alloy_vendor.computed)(() => {
|
|
53
|
-
return (children ? children.toString() : "").length;
|
|
54
|
-
});
|
|
55
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Prose, { get children() {
|
|
56
|
-
return [
|
|
57
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
58
|
-
get when() {
|
|
59
|
-
return indexRef.value === 0;
|
|
60
|
-
},
|
|
61
|
-
children: "|"
|
|
62
|
-
}),
|
|
63
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
64
|
-
get when() {
|
|
65
|
-
return Boolean(children);
|
|
66
|
-
},
|
|
67
|
-
get children() {
|
|
68
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Prose, { get children() {
|
|
69
|
-
return __powerlines_plugin_alloy_vendor.code`${alignRef.value === "left" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}${children}${alignRef.value === "right" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}`;
|
|
70
|
-
} });
|
|
71
|
-
}
|
|
72
|
-
}),
|
|
73
|
-
"|"
|
|
74
|
-
];
|
|
75
|
-
} });
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Component that provides a context for rendering markdown tables.
|
|
79
|
-
*/
|
|
80
|
-
function MarkdownTableColumnHeader(props) {
|
|
81
|
-
const [{ children, name }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["children", "name"]);
|
|
82
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownTableColumn, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
83
|
-
name,
|
|
84
|
-
get children() {
|
|
85
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
86
|
-
get fallback() {
|
|
87
|
-
return (0, __stryke_string_format_title_case.titleCase)(name, { useDescriptions: false });
|
|
88
|
-
},
|
|
89
|
-
get when() {
|
|
90
|
-
return !(0, __stryke_type_checks_is_undefined.isUndefined)(children);
|
|
91
|
-
},
|
|
92
|
-
children
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}))];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
exports.MarkdownTable = MarkdownTable;
|
|
100
|
-
exports.MarkdownTableColumn = MarkdownTableColumn;
|
|
101
|
-
exports.MarkdownTableColumnHeader = MarkdownTableColumnHeader;
|
|
4
|
+
exports.MarkdownTable = require_markdown_table$1.MarkdownTable;
|
|
5
|
+
exports.MarkdownTableColumn = require_markdown_table$1.MarkdownTableColumn;
|
|
6
|
+
exports.MarkdownTableColumnHeader = require_markdown_table$1.MarkdownTableColumnHeader;
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-table.d.ts
|
|
6
|
-
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
7
|
-
data: T[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core4.Children;
|
|
13
|
-
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
|
-
width?: number;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Component that provides a context for rendering markdown tables.
|
|
18
|
-
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
|
|
20
|
-
/**
|
|
21
|
-
* Component that provides a context for rendering markdown tables.
|
|
22
|
-
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
|
|
24
|
-
declare type __ΩMarkdownTableProps = any[];
|
|
25
|
-
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
|
-
//#endregion
|
|
1
|
+
import "../../context-CWt70HA3.cjs";
|
|
2
|
+
import "../../components-DkVeQ5Yn.cjs";
|
|
3
|
+
import "../../markdown-table-DFnnh_px.cjs";
|
|
4
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-CpnCpTp1.cjs";
|
|
27
5
|
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-table.d.ts
|
|
6
|
-
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
7
|
-
data: T[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core1.Children;
|
|
13
|
-
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
|
-
width?: number;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Component that provides a context for rendering markdown tables.
|
|
18
|
-
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core1.Children;
|
|
20
|
-
/**
|
|
21
|
-
* Component that provides a context for rendering markdown tables.
|
|
22
|
-
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core1.Children;
|
|
24
|
-
declare type __ΩMarkdownTableProps = any[];
|
|
25
|
-
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
|
-
//#endregion
|
|
1
|
+
import "../../context-BwQLwanm.mjs";
|
|
2
|
+
import "../../components-BrkXdHq-.mjs";
|
|
3
|
+
import "../../markdown-table-DKL6g91k.mjs";
|
|
4
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-DcG6ScWX.mjs";
|
|
27
5
|
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
@@ -1,98 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Prose, Show, code, computed, splitProps } from "@powerlines/plugin-alloy/vendor";
|
|
4
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
5
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
1
|
+
import "../../markdown-table-DaYAMMk6.mjs";
|
|
2
|
+
import { n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-AO9Jtw-o.mjs";
|
|
6
3
|
|
|
7
|
-
//#region src/markdown/components/markdown-table.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Component that provides a context for rendering markdown tables.
|
|
10
|
-
*/
|
|
11
|
-
function MarkdownTable(props) {
|
|
12
|
-
const [{ children, data }] = splitProps(props, ["children", "data"]);
|
|
13
|
-
const columns = computed(() => Object.keys(data).map((name, index) => ({
|
|
14
|
-
index,
|
|
15
|
-
name,
|
|
16
|
-
align: "left",
|
|
17
|
-
width: 20
|
|
18
|
-
})));
|
|
19
|
-
return createComponent(MarkdownTableContext.Provider, {
|
|
20
|
-
get value() {
|
|
21
|
-
return {
|
|
22
|
-
columns: columns.value,
|
|
23
|
-
data
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
get children() {
|
|
27
|
-
return createComponent(Show, {
|
|
28
|
-
get when() {
|
|
29
|
-
return Boolean(children);
|
|
30
|
-
},
|
|
31
|
-
children
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Component that provides a context for rendering markdown tables.
|
|
38
|
-
*/
|
|
39
|
-
function MarkdownTableColumn(props) {
|
|
40
|
-
const [{ children, width, align, name }] = splitProps(props, [
|
|
41
|
-
"children",
|
|
42
|
-
"width",
|
|
43
|
-
"align",
|
|
44
|
-
"name"
|
|
45
|
-
]);
|
|
46
|
-
const tableContext = useMarkdownTable();
|
|
47
|
-
const columnRef = computed(() => tableContext?.columns.find((c) => c.name === name));
|
|
48
|
-
const indexRef = computed(() => columnRef.value?.index ?? 0);
|
|
49
|
-
const alignRef = computed(() => columnRef.value?.align ?? align ?? "left");
|
|
50
|
-
const widthRef = computed(() => columnRef.value?.width ?? width ?? 20);
|
|
51
|
-
const textLength = computed(() => {
|
|
52
|
-
return (children ? children.toString() : "").length;
|
|
53
|
-
});
|
|
54
|
-
return createComponent(Prose, { get children() {
|
|
55
|
-
return [
|
|
56
|
-
createComponent(Show, {
|
|
57
|
-
get when() {
|
|
58
|
-
return indexRef.value === 0;
|
|
59
|
-
},
|
|
60
|
-
children: "|"
|
|
61
|
-
}),
|
|
62
|
-
createComponent(Show, {
|
|
63
|
-
get when() {
|
|
64
|
-
return Boolean(children);
|
|
65
|
-
},
|
|
66
|
-
get children() {
|
|
67
|
-
return createComponent(Prose, { get children() {
|
|
68
|
-
return code`${alignRef.value === "left" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}${children}${alignRef.value === "right" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}`;
|
|
69
|
-
} });
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
"|"
|
|
73
|
-
];
|
|
74
|
-
} });
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Component that provides a context for rendering markdown tables.
|
|
78
|
-
*/
|
|
79
|
-
function MarkdownTableColumnHeader(props) {
|
|
80
|
-
const [{ children, name }, rest] = splitProps(props, ["children", "name"]);
|
|
81
|
-
return [createComponent(MarkdownTableColumn, mergeProps(rest, {
|
|
82
|
-
name,
|
|
83
|
-
get children() {
|
|
84
|
-
return createComponent(Show, {
|
|
85
|
-
get fallback() {
|
|
86
|
-
return titleCase(name, { useDescriptions: false });
|
|
87
|
-
},
|
|
88
|
-
get when() {
|
|
89
|
-
return !isUndefined(children);
|
|
90
|
-
},
|
|
91
|
-
children
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}))];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
4
|
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_markdown_table = require('../../markdown-table-Biapn9k9.cjs');
|
|
2
|
+
require('../../contexts-DzdhIC7G.cjs');
|
|
2
3
|
|
|
3
|
-
exports.MarkdownTableColumnContext =
|
|
4
|
-
exports.MarkdownTableContext =
|
|
5
|
-
exports.useMarkdownTable =
|
|
6
|
-
exports.useMarkdownTableColumn =
|
|
4
|
+
exports.MarkdownTableColumnContext = require_markdown_table.MarkdownTableColumnContext;
|
|
5
|
+
exports.MarkdownTableContext = require_markdown_table.MarkdownTableContext;
|
|
6
|
+
exports.useMarkdownTable = require_markdown_table.useMarkdownTable;
|
|
7
|
+
exports.useMarkdownTableColumn = require_markdown_table.useMarkdownTableColumn;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DFnnh_px.cjs";
|
|
2
|
+
import "../../index-CwSIy_W-.cjs";
|
|
2
3
|
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DKL6g91k.mjs";
|
|
2
|
+
import "../../index-CuheJfs-.mjs";
|
|
2
3
|
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useMarkdownTableColumn, n as MarkdownTableContext, r as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DaYAMMk6.mjs";
|
|
2
|
+
import "../../contexts-Dy4nfIoL.mjs";
|
|
2
3
|
|
|
3
4
|
export { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,37 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
1
|
+
const require_markdown_table = require('../../markdown-table-Biapn9k9.cjs');
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const MarkdownTableColumnContext = (0, __powerlines_plugin_alloy_vendor.createNamedContext)("markdown-table-column", {});
|
|
9
|
-
/**
|
|
10
|
-
* Hook to access the Powerlines Context.
|
|
11
|
-
*
|
|
12
|
-
* @returns The Context.
|
|
13
|
-
*/
|
|
14
|
-
function useMarkdownTableColumn() {
|
|
15
|
-
return (0, __powerlines_plugin_alloy_vendor.useContext)(MarkdownTableColumnContext);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The Powerlines context used in template rendering.
|
|
19
|
-
*/
|
|
20
|
-
const MarkdownTableContext = (0, __powerlines_plugin_alloy_vendor.createContext)({
|
|
21
|
-
columns: [],
|
|
22
|
-
data: []
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the Powerlines Context.
|
|
26
|
-
*
|
|
27
|
-
* @returns The Context.
|
|
28
|
-
*/
|
|
29
|
-
function useMarkdownTable() {
|
|
30
|
-
return (0, __powerlines_plugin_alloy_vendor.useContext)(MarkdownTableContext);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
exports.MarkdownTableColumnContext = MarkdownTableColumnContext;
|
|
35
|
-
exports.MarkdownTableContext = MarkdownTableContext;
|
|
36
|
-
exports.useMarkdownTable = useMarkdownTable;
|
|
37
|
-
exports.useMarkdownTableColumn = useMarkdownTableColumn;
|
|
3
|
+
exports.MarkdownTableColumnContext = require_markdown_table.MarkdownTableColumnContext;
|
|
4
|
+
exports.MarkdownTableContext = require_markdown_table.MarkdownTableContext;
|
|
5
|
+
exports.useMarkdownTable = require_markdown_table.useMarkdownTable;
|
|
6
|
+
exports.useMarkdownTableColumn = require_markdown_table.useMarkdownTableColumn;
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
-
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
-
index: number;
|
|
6
|
-
name: keyof T;
|
|
7
|
-
align: "left" | "right" | "center";
|
|
8
|
-
width: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The Powerlines context used in template rendering.
|
|
12
|
-
*/
|
|
13
|
-
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
-
/**
|
|
15
|
-
* Hook to access the Powerlines Context.
|
|
16
|
-
*
|
|
17
|
-
* @returns The Context.
|
|
18
|
-
*/
|
|
19
|
-
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
-
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
-
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
-
data: T[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The Powerlines context used in template rendering.
|
|
26
|
-
*/
|
|
27
|
-
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to access the Powerlines Context.
|
|
30
|
-
*
|
|
31
|
-
* @returns The Context.
|
|
32
|
-
*/
|
|
33
|
-
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
-
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
-
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
-
//#endregion
|
|
1
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DFnnh_px.cjs";
|
|
37
2
|
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
-
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
-
index: number;
|
|
6
|
-
name: keyof T;
|
|
7
|
-
align: "left" | "right" | "center";
|
|
8
|
-
width: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The Powerlines context used in template rendering.
|
|
12
|
-
*/
|
|
13
|
-
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
-
/**
|
|
15
|
-
* Hook to access the Powerlines Context.
|
|
16
|
-
*
|
|
17
|
-
* @returns The Context.
|
|
18
|
-
*/
|
|
19
|
-
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
-
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
-
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
-
data: T[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The Powerlines context used in template rendering.
|
|
26
|
-
*/
|
|
27
|
-
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to access the Powerlines Context.
|
|
30
|
-
*
|
|
31
|
-
* @returns The Context.
|
|
32
|
-
*/
|
|
33
|
-
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
-
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
-
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
-
//#endregion
|
|
1
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DKL6g91k.mjs";
|
|
37
2
|
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useMarkdownTableColumn, n as MarkdownTableContext, r as useMarkdownTable, t as MarkdownTableColumnContext } from "../../markdown-table-DaYAMMk6.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/markdown/contexts/markdown-table.ts
|
|
4
|
-
/**
|
|
5
|
-
* The Powerlines context used in template rendering.
|
|
6
|
-
*/
|
|
7
|
-
const MarkdownTableColumnContext = createNamedContext("markdown-table-column", {});
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the Powerlines Context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The Context.
|
|
12
|
-
*/
|
|
13
|
-
function useMarkdownTableColumn() {
|
|
14
|
-
return useContext(MarkdownTableColumnContext);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The Powerlines context used in template rendering.
|
|
18
|
-
*/
|
|
19
|
-
const MarkdownTableContext = createContext({
|
|
20
|
-
columns: [],
|
|
21
|
-
data: []
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Hook to access the Powerlines Context.
|
|
25
|
-
*
|
|
26
|
-
* @returns The Context.
|
|
27
|
-
*/
|
|
28
|
-
function useMarkdownTable() {
|
|
29
|
-
return useContext(MarkdownTableContext);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
3
|
export { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
package/dist/markdown/index.cjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require('
|
|
5
|
-
require('
|
|
1
|
+
require('../context-DkLnFNZm.cjs');
|
|
2
|
+
require('../single-line-comment-_ZglDv1k.cjs');
|
|
3
|
+
require('../source-file-DKnFKRGJ.cjs');
|
|
4
|
+
const require_markdown_file = require('../markdown-file-GXj9nWQs.cjs');
|
|
5
|
+
const require_markdown_table = require('../markdown-table-Biapn9k9.cjs');
|
|
6
|
+
const require_markdown_table$1 = require('../markdown-table-d1cy0JP3.cjs');
|
|
7
|
+
require('../components-Gg416Czx.cjs');
|
|
8
|
+
require('../contexts-DzdhIC7G.cjs');
|
|
6
9
|
|
|
7
|
-
exports.MarkdownFile =
|
|
8
|
-
exports.MarkdownFileHeader =
|
|
9
|
-
exports.MarkdownTable =
|
|
10
|
-
exports.MarkdownTableColumn =
|
|
11
|
-
exports.MarkdownTableColumnContext =
|
|
12
|
-
exports.MarkdownTableColumnHeader =
|
|
13
|
-
exports.MarkdownTableContext =
|
|
14
|
-
exports.useMarkdownTable =
|
|
15
|
-
exports.useMarkdownTableColumn =
|
|
10
|
+
exports.MarkdownFile = require_markdown_file.MarkdownFile;
|
|
11
|
+
exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
|
|
12
|
+
exports.MarkdownTable = require_markdown_table$1.MarkdownTable;
|
|
13
|
+
exports.MarkdownTableColumn = require_markdown_table$1.MarkdownTableColumn;
|
|
14
|
+
exports.MarkdownTableColumnContext = require_markdown_table.MarkdownTableColumnContext;
|
|
15
|
+
exports.MarkdownTableColumnHeader = require_markdown_table$1.MarkdownTableColumnHeader;
|
|
16
|
+
exports.MarkdownTableContext = require_markdown_table.MarkdownTableContext;
|
|
17
|
+
exports.useMarkdownTable = require_markdown_table.useMarkdownTable;
|
|
18
|
+
exports.useMarkdownTableColumn = require_markdown_table.useMarkdownTableColumn;
|