@powerlines/plugin-alloy 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +304 -0
- package/dist/builtin-file-BU93ve2k.d.cts +34 -0
- package/dist/builtin-file-CG53y-09.d.mts +34 -0
- package/dist/builtin-file-CkwxD4el.mjs +37 -0
- package/dist/builtin-file-DLVCgiye.cjs +43 -0
- package/dist/capnp-8yVLwAox.cjs +364 -0
- package/dist/capnp-CKLYTfgy.d.mts +87 -0
- package/dist/capnp-CNythuSw.mjs +267 -0
- package/dist/capnp-wJ2_HpAN.d.cts +87 -0
- package/dist/chunk-CbDLau6x.cjs +34 -0
- package/dist/components-B0A7LpQD.d.cts +142 -0
- package/dist/components-B2kXCrty.d.mts +142 -0
- package/dist/components-BOkkDhM9.cjs +0 -0
- package/dist/components-BXrpeD8J.cjs +0 -0
- package/dist/components-C3qpgLKV.mjs +1 -0
- package/dist/components-CBtEhH9k.mjs +1 -0
- package/dist/components-Cj5gaIV0.cjs +0 -0
- package/dist/components-HMVhsFQl.mjs +1 -0
- package/dist/components-I0ydtjfW.cjs +0 -0
- package/dist/components-ajocJcib.mjs +1 -0
- package/dist/context-BIduC1bB.cjs +44 -0
- package/dist/context-BO25KgR_.d.cts +1668 -0
- package/dist/context-CBG6Pv09.d.cts +26 -0
- package/dist/context-Cx38_mgI.mjs +26 -0
- package/dist/context-DzaJOnXh.d.mts +26 -0
- package/dist/context-GtZoIVx8.d.mts +1670 -0
- package/dist/contexts-BSRk0whx.cjs +0 -0
- package/dist/contexts-X44bRyOp.mjs +1 -0
- package/dist/contexts-XuEdvZdE.mjs +1 -0
- package/dist/contexts-uXFW3CIa.cjs +0 -0
- package/dist/core/components/index.cjs +9 -0
- package/dist/core/components/index.d.cts +7 -0
- package/dist/core/components/index.d.mts +7 -0
- package/dist/core/components/index.mjs +7 -0
- package/dist/core/components/output.cjs +4 -0
- package/dist/core/components/output.d.cts +3 -0
- package/dist/core/components/output.d.mts +3 -0
- package/dist/core/components/output.mjs +4 -0
- package/dist/core/components/single-line-comment.cjs +3 -0
- package/dist/core/components/single-line-comment.d.cts +4 -0
- package/dist/core/components/single-line-comment.d.mts +4 -0
- package/dist/core/components/single-line-comment.mjs +3 -0
- package/dist/core/components/source-file.cjs +3 -0
- package/dist/core/components/source-file.d.cts +4 -0
- package/dist/core/components/source-file.d.mts +4 -0
- package/dist/core/components/source-file.mjs +3 -0
- package/dist/core/contexts/context.cjs +5 -0
- package/dist/core/contexts/context.d.cts +3 -0
- package/dist/core/contexts/context.d.mts +3 -0
- package/dist/core/contexts/context.mjs +3 -0
- package/dist/core/contexts/index.cjs +15 -0
- package/dist/core/contexts/index.d.cts +6 -0
- package/dist/core/contexts/index.d.mts +6 -0
- package/dist/core/contexts/index.mjs +5 -0
- package/dist/core/contexts/reflection.cjs +10 -0
- package/dist/core/contexts/reflection.d.cts +4 -0
- package/dist/core/contexts/reflection.d.mts +4 -0
- package/dist/core/contexts/reflection.mjs +3 -0
- package/dist/core/index.cjs +23 -0
- package/dist/core/index.d.cts +11 -0
- package/dist/core/index.d.mts +11 -0
- package/dist/core/index.mjs +10 -0
- package/dist/core-B57eQAue.mjs +1 -0
- package/dist/core-DzEmU6tL.cjs +0 -0
- package/dist/create-builtin-Bpswa0ZT.d.cts +15 -0
- package/dist/create-builtin-CP9mN5P-.mjs +18 -0
- package/dist/create-builtin-_3GNADDt.cjs +24 -0
- package/dist/create-builtin-wEbNOWNw.d.mts +15 -0
- package/dist/dynamic-import-statement-BhY2a13r.d.cts +32 -0
- package/dist/dynamic-import-statement-DoTHSt57.mjs +28 -0
- package/dist/dynamic-import-statement-DyVWBclX.d.mts +32 -0
- package/dist/dynamic-import-statement-JVLyMPXr.cjs +34 -0
- package/dist/entry-file-B159R5XY.d.cts +27 -0
- package/dist/entry-file-BA75rAwb.cjs +41 -0
- package/dist/entry-file-Bw1mgMP3.mjs +34 -0
- package/dist/entry-file-DfFhEkLi.d.mts +27 -0
- package/dist/helpers/capnp.cjs +19 -0
- package/dist/helpers/capnp.d.cts +3 -0
- package/dist/helpers/capnp.d.mts +3 -0
- package/dist/helpers/capnp.mjs +4 -0
- package/dist/helpers/create-builtin.cjs +3 -0
- package/dist/helpers/create-builtin.d.cts +2 -0
- package/dist/helpers/create-builtin.d.mts +2 -0
- package/dist/helpers/create-builtin.mjs +3 -0
- package/dist/helpers/index.cjs +26 -0
- package/dist/helpers/index.d.cts +7 -0
- package/dist/helpers/index.d.mts +7 -0
- package/dist/helpers/index.mjs +8 -0
- package/dist/helpers/refkey.cjs +3 -0
- package/dist/helpers/refkey.d.cts +2 -0
- package/dist/helpers/refkey.d.mts +2 -0
- package/dist/helpers/refkey.mjs +3 -0
- package/dist/helpers/typescript.cjs +4 -0
- package/dist/helpers/typescript.d.cts +2 -0
- package/dist/helpers/typescript.d.mts +2 -0
- package/dist/helpers/typescript.mjs +4 -0
- package/dist/helpers-BrA1Dy07.mjs +1 -0
- package/dist/helpers-Cten3PJk.cjs +0 -0
- package/dist/index-BINnViIh.d.mts +1 -0
- package/dist/index-BJ8-FA6N.d.cts +1 -0
- package/dist/index-BRJ_6A42.d.mts +1 -0
- package/dist/index-BXpMZvwA.d.cts +1 -0
- package/dist/index-Bi0Yc4v2.d.cts +1 -0
- package/dist/index-BrGZHEgX.d.mts +1 -0
- package/dist/index-BwFl_eS0.d.mts +1 -0
- package/dist/index-C1ihAKnV.d.cts +1 -0
- package/dist/index-CLTQPxoD.d.mts +1 -0
- package/dist/index-CoUVmp_Q.d.mts +1 -0
- package/dist/index-D1aKd2tO.d.cts +1 -0
- package/dist/index-D4d_pZLu.d.cts +1 -0
- package/dist/index-DBGd4WeR.d.mts +1 -0
- package/dist/index-DdxxIAKU.d.cts +1 -0
- package/dist/index-Deol7ZWO.d.mts +1 -0
- package/dist/index-DpEKQcoR.d.cts +1 -0
- package/dist/index-DrZ2Dh-H.d.cts +1 -0
- package/dist/index-MEuojd-r.d.cts +1 -0
- package/dist/index-bHnO4ZKt.d.mts +1 -0
- package/dist/index-lIMqGGJz.d.mts +1 -0
- package/dist/index.cjs +446 -0
- package/dist/index.d.cts +45 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.mjs +361 -0
- package/dist/markdown/components/index.cjs +13 -0
- package/dist/markdown/components/index.d.cts +8 -0
- package/dist/markdown/components/index.d.mts +8 -0
- package/dist/markdown/components/index.mjs +9 -0
- package/dist/markdown/components/markdown-file.cjs +7 -0
- package/dist/markdown/components/markdown-file.d.cts +5 -0
- package/dist/markdown/components/markdown-file.d.mts +5 -0
- package/dist/markdown/components/markdown-file.mjs +6 -0
- package/dist/markdown/components/markdown-table.cjs +6 -0
- package/dist/markdown/components/markdown-table.d.cts +5 -0
- package/dist/markdown/components/markdown-table.d.mts +5 -0
- package/dist/markdown/components/markdown-table.mjs +4 -0
- package/dist/markdown/contexts/index.cjs +7 -0
- package/dist/markdown/contexts/index.d.cts +3 -0
- package/dist/markdown/contexts/index.d.mts +3 -0
- package/dist/markdown/contexts/index.mjs +4 -0
- package/dist/markdown/contexts/markdown-table.cjs +6 -0
- package/dist/markdown/contexts/markdown-table.d.cts +2 -0
- package/dist/markdown/contexts/markdown-table.d.mts +2 -0
- package/dist/markdown/contexts/markdown-table.mjs +3 -0
- package/dist/markdown/index.cjs +19 -0
- package/dist/markdown/index.d.cts +10 -0
- package/dist/markdown/index.d.mts +10 -0
- package/dist/markdown/index.mjs +11 -0
- package/dist/markdown-BTQE0AI9.cjs +0 -0
- package/dist/markdown-DMddlO1y.mjs +1 -0
- package/dist/markdown-file-BFbbzD59.mjs +90 -0
- package/dist/markdown-file-Bsuu9aIk.d.cts +23 -0
- package/dist/markdown-file-CB6u4Cp1.d.mts +23 -0
- package/dist/markdown-file-CzGNj_Ex.cjs +102 -0
- package/dist/markdown-table-2qP_4eLk.mjs +33 -0
- package/dist/markdown-table-BOWM26Kb.cjs +57 -0
- package/dist/markdown-table-BUxH6aRh.mjs +77 -0
- package/dist/markdown-table-CMaQVkwJ.d.mts +27 -0
- package/dist/markdown-table-CZMEY6IR.d.cts +37 -0
- package/dist/markdown-table-DFaNSBRn.cjs +95 -0
- package/dist/markdown-table-SvbpUdq-.d.cts +27 -0
- package/dist/markdown-table-kFQoqKQt.d.mts +37 -0
- package/dist/output-ChpN7bQM.d.cts +18 -0
- package/dist/output-CnofBsl0.cjs +38 -0
- package/dist/output-D9RlZeCO.d.mts +18 -0
- package/dist/output-DEdXZ94G.mjs +32 -0
- package/dist/plugin-C0DspKAF.d.mts +34 -0
- package/dist/plugin-DU0K2-Om.mjs +1 -0
- package/dist/plugin-DYBdUgTF.d.cts +34 -0
- package/dist/plugin-Fx-uJ4It.cjs +0 -0
- package/dist/record-expression-BOCZ9iqR.d.mts +12 -0
- package/dist/record-expression-DM_zSqE_.d.cts +12 -0
- package/dist/record-expression-DNVzCKgo.cjs +17 -0
- package/dist/record-expression-DxS_DiPc.mjs +11 -0
- package/dist/refkey-B0XSqdGY.d.mts +13 -0
- package/dist/refkey-B6A9kh_u.cjs +21 -0
- package/dist/refkey-CP7MJMac.d.cts +13 -0
- package/dist/refkey-CV0mIj0Y.mjs +15 -0
- package/dist/reflection-BSbFFYZO.cjs +108 -0
- package/dist/reflection-Bka9prwJ.d.mts +52 -0
- package/dist/reflection-CBMQ1FQo.mjs +60 -0
- package/dist/reflection-CkVyW69y.d.cts +52 -0
- package/dist/single-line-comment-BMPq6OR0.cjs +25 -0
- package/dist/single-line-comment-BjL_Z4Qn.d.cts +22 -0
- package/dist/single-line-comment-C5CtHQhi.mjs +19 -0
- package/dist/single-line-comment-DZAmp_BZ.d.mts +22 -0
- package/dist/source-file-4J1OvLed.d.cts +31 -0
- package/dist/source-file-BBbuhOKz.d.mts +31 -0
- package/dist/source-file-CCYwl5pI.mjs +52 -0
- package/dist/source-file-DTd1KgD5.cjs +59 -0
- package/dist/tsdoc-BFPYF-Fh.cjs +487 -0
- package/dist/tsdoc-BmyOQBxT.mjs +367 -0
- package/dist/tsdoc-C39LB5Mn.d.cts +152 -0
- package/dist/tsdoc-OE37Ht2l.d.mts +152 -0
- package/dist/tsdoc-reflection-3ZoV_Mjz.d.cts +18 -0
- package/dist/tsdoc-reflection-3hSdGY1e.mjs +97 -0
- package/dist/tsdoc-reflection-BQN8iUG1.cjs +115 -0
- package/dist/tsdoc-reflection-BtEk3cDW.d.mts +18 -0
- package/dist/types/components.cjs +1 -0
- package/dist/types/components.d.cts +3 -0
- package/dist/types/components.d.mts +3 -0
- package/dist/types/components.mjs +3 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +5 -0
- package/dist/types/index.d.mts +5 -0
- package/dist/types/index.mjs +5 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +3 -0
- package/dist/types/plugin.d.mts +3 -0
- package/dist/types/plugin.mjs +3 -0
- package/dist/types-BBEDEYnP.cjs +0 -0
- package/dist/types-BWlfXHs2.mjs +1 -0
- package/dist/typescript/components/builtin-file.cjs +9 -0
- package/dist/typescript/components/builtin-file.d.cts +7 -0
- package/dist/typescript/components/builtin-file.d.mts +7 -0
- package/dist/typescript/components/builtin-file.mjs +9 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +3 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +3 -0
- package/dist/typescript/components/entry-file.cjs +7 -0
- package/dist/typescript/components/entry-file.d.cts +6 -0
- package/dist/typescript/components/entry-file.d.mts +6 -0
- package/dist/typescript/components/entry-file.mjs +7 -0
- package/dist/typescript/components/index.cjs +50 -0
- package/dist/typescript/components/index.d.cts +14 -0
- package/dist/typescript/components/index.d.mts +14 -0
- package/dist/typescript/components/index.mjs +17 -0
- package/dist/typescript/components/record-expression.cjs +3 -0
- package/dist/typescript/components/record-expression.d.cts +2 -0
- package/dist/typescript/components/record-expression.d.mts +2 -0
- package/dist/typescript/components/record-expression.mjs +3 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +9 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +5 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +5 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +7 -0
- package/dist/typescript/components/tsdoc.cjs +24 -0
- package/dist/typescript/components/tsdoc.d.cts +4 -0
- package/dist/typescript/components/tsdoc.d.mts +4 -0
- package/dist/typescript/components/tsdoc.mjs +5 -0
- package/dist/typescript/components/typescript-file.cjs +8 -0
- package/dist/typescript/components/typescript-file.d.cts +5 -0
- package/dist/typescript/components/typescript-file.d.mts +5 -0
- package/dist/typescript/components/typescript-file.mjs +6 -0
- package/dist/typescript/components/typescript-interface.cjs +9 -0
- package/dist/typescript/components/typescript-interface.d.cts +4 -0
- package/dist/typescript/components/typescript-interface.d.mts +4 -0
- package/dist/typescript/components/typescript-interface.mjs +8 -0
- package/dist/typescript/components/typescript-object.cjs +9 -0
- package/dist/typescript/components/typescript-object.d.cts +4 -0
- package/dist/typescript/components/typescript-object.d.mts +4 -0
- package/dist/typescript/components/typescript-object.mjs +8 -0
- package/dist/typescript/index.cjs +51 -0
- package/dist/typescript/index.d.cts +15 -0
- package/dist/typescript/index.d.mts +15 -0
- package/dist/typescript/index.mjs +18 -0
- package/dist/typescript-45caIUPa.mjs +1 -0
- package/dist/typescript-BrZsJqvc.mjs +45 -0
- package/dist/typescript-CXP7Oa6_.d.cts +25 -0
- package/dist/typescript-DG1-qdBQ.d.mts +25 -0
- package/dist/typescript-DV5akLQO.cjs +0 -0
- package/dist/typescript-DcqKlMoH.cjs +51 -0
- package/dist/typescript-file-6Y81yLyB.cjs +157 -0
- package/dist/typescript-file-BR9I7R1v.d.cts +47 -0
- package/dist/typescript-file-BWq9GIUt.d.mts +47 -0
- package/dist/typescript-file-y6oF016h.mjs +139 -0
- package/dist/typescript-interface-AydoCmGY.mjs +52 -0
- package/dist/typescript-interface-CKjljRFu.d.mts +25 -0
- package/dist/typescript-interface-Codd49Sl.cjs +64 -0
- package/dist/typescript-interface-fGS4VBnW.d.cts +25 -0
- package/dist/typescript-object-C-BmpHfk.mjs +93 -0
- package/dist/typescript-object-CxC5Qo5P.d.cts +26 -0
- package/dist/typescript-object-DOrJkpcM.cjs +105 -0
- package/dist/typescript-object-I6Huh12F.d.mts +26 -0
- package/dist/utilities-CnaPrauh.mjs +109 -0
- package/dist/utilities-llRqOC4l.cjs +133 -0
- package/package.json +411 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
const require_context = require('./context-BIduC1bB.cjs');
|
|
3
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
+
let __stryke_path_replace = require("@stryke/path/replace");
|
|
6
|
+
|
|
7
|
+
//#region src/core/components/output.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
|
+
*/
|
|
11
|
+
function Output(props) {
|
|
12
|
+
const [{ children, context, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
13
|
+
"children",
|
|
14
|
+
"context",
|
|
15
|
+
"basePath"
|
|
16
|
+
]);
|
|
17
|
+
const contextRef = (0, __alloy_js_core.ref)(context);
|
|
18
|
+
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
19
|
+
return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Output, {
|
|
20
|
+
...rest,
|
|
21
|
+
basePath: basePathRef.value,
|
|
22
|
+
children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_context.PowerlinesContext.Provider, {
|
|
23
|
+
value: { ref: contextRef },
|
|
24
|
+
children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Show, {
|
|
25
|
+
when: Boolean(contextRef.value),
|
|
26
|
+
children
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
Object.defineProperty(exports, 'Output', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return Output;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as PluginContext } from "./context-GtZoIVx8.mjs";
|
|
2
|
+
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
3
|
+
import { OutputProps } from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/output.d.ts
|
|
6
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends OutputProps {
|
|
7
|
+
/**
|
|
8
|
+
* The current Powerlines process context.
|
|
9
|
+
*/
|
|
10
|
+
context: TContext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
|
+
*/
|
|
15
|
+
declare function Output$1<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core13.Children;
|
|
16
|
+
declare type __ΩOutputProps = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { OutputProps$1 as n, __ΩOutputProps as r, Output$1 as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as PowerlinesContext } from "./context-Cx38_mgI.mjs";
|
|
2
|
+
import { Output, Show, computed, ref, splitProps } from "@alloy-js/core";
|
|
3
|
+
import { jsx } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import { replacePath } from "@stryke/path/replace";
|
|
5
|
+
|
|
6
|
+
//#region src/core/components/output.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
|
+
*/
|
|
10
|
+
function Output$1(props) {
|
|
11
|
+
const [{ children, context, basePath }, rest] = splitProps(props, [
|
|
12
|
+
"children",
|
|
13
|
+
"context",
|
|
14
|
+
"basePath"
|
|
15
|
+
]);
|
|
16
|
+
const contextRef = ref(context);
|
|
17
|
+
const basePathRef = computed(() => basePath ? replacePath(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
18
|
+
return /* @__PURE__ */ jsx(Output, {
|
|
19
|
+
...rest,
|
|
20
|
+
basePath: basePathRef.value,
|
|
21
|
+
children: /* @__PURE__ */ jsx(PowerlinesContext.Provider, {
|
|
22
|
+
value: { ref: contextRef },
|
|
23
|
+
children: /* @__PURE__ */ jsx(Show, {
|
|
24
|
+
when: Boolean(contextRef.value),
|
|
25
|
+
children
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Output$1 as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-GtZoIVx8.mjs";
|
|
2
|
+
import { PrintTreeOptions } from "@alloy-js/core";
|
|
3
|
+
import { Children as Children$1 } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
5
|
+
|
|
6
|
+
//#region ../plugin-plugin/src/types/plugin.d.ts
|
|
7
|
+
type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
|
|
8
|
+
/**
|
|
9
|
+
* If true, the Alloy framework is used to generate JSON output files.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
generatesJson?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* If true, the Alloy framework is used to generate Markdown output files.
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
generatesMarkdown?: boolean;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/types/plugin.d.ts
|
|
23
|
+
type AlloyPluginOptions = PluginPluginAlloyOptions;
|
|
24
|
+
type AlloyPluginUserConfig = UserConfig;
|
|
25
|
+
type AlloyPluginResolvedConfig = ResolvedConfig;
|
|
26
|
+
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
27
|
+
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children$1) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
declare type __ΩAlloyPluginOptions = any[];
|
|
30
|
+
declare type __ΩAlloyPluginUserConfig = any[];
|
|
31
|
+
declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
32
|
+
declare type __ΩAlloyPluginContext = any[];
|
|
33
|
+
//#endregion
|
|
34
|
+
export { __ΩAlloyPluginContext as a, __ΩAlloyPluginUserConfig as c, AlloyPluginUserConfig as i, AlloyPluginOptions as n, __ΩAlloyPluginOptions as o, AlloyPluginResolvedConfig as r, __ΩAlloyPluginResolvedConfig as s, AlloyPluginContext as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-BO25KgR_.cjs";
|
|
2
|
+
import { PrintTreeOptions } from "@alloy-js/core";
|
|
3
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
|
+
import { Children as Children$1 } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region ../plugin-plugin/src/types/plugin.d.ts
|
|
7
|
+
type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
|
|
8
|
+
/**
|
|
9
|
+
* If true, the Alloy framework is used to generate JSON output files.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
generatesJson?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* If true, the Alloy framework is used to generate Markdown output files.
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
generatesMarkdown?: boolean;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/types/plugin.d.ts
|
|
23
|
+
type AlloyPluginOptions = PluginPluginAlloyOptions;
|
|
24
|
+
type AlloyPluginUserConfig = UserConfig;
|
|
25
|
+
type AlloyPluginResolvedConfig = ResolvedConfig;
|
|
26
|
+
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
27
|
+
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children$1) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
declare type __ΩAlloyPluginOptions = any[];
|
|
30
|
+
declare type __ΩAlloyPluginUserConfig = any[];
|
|
31
|
+
declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
32
|
+
declare type __ΩAlloyPluginContext = any[];
|
|
33
|
+
//#endregion
|
|
34
|
+
export { __ΩAlloyPluginContext as a, __ΩAlloyPluginUserConfig as c, AlloyPluginUserConfig as i, AlloyPluginOptions as n, __ΩAlloyPluginOptions as o, AlloyPluginResolvedConfig as r, __ΩAlloyPluginResolvedConfig as s, AlloyPluginContext as t };
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
+
interface RecordExpressionProps {
|
|
5
|
+
elementType: Children;
|
|
6
|
+
}
|
|
7
|
+
declare function RecordExpression({
|
|
8
|
+
elementType
|
|
9
|
+
}: RecordExpressionProps): Children;
|
|
10
|
+
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RecordExpressionProps as n, __ΩRecordExpressionProps as r, RecordExpression as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/components/record-expression.d.ts
|
|
4
|
+
interface RecordExpressionProps {
|
|
5
|
+
elementType: Children;
|
|
6
|
+
}
|
|
7
|
+
declare function RecordExpression({
|
|
8
|
+
elementType
|
|
9
|
+
}: RecordExpressionProps): Children;
|
|
10
|
+
declare type __ΩRecordExpressionProps = any[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RecordExpressionProps as n, __ΩRecordExpressionProps as r, RecordExpression as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/record-expression.tsx
|
|
5
|
+
function RecordExpression({ elementType }) {
|
|
6
|
+
return __alloy_js_core.code`
|
|
7
|
+
Record<string, ${elementType}>
|
|
8
|
+
`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, 'RecordExpression', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return RecordExpression;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { code } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/typescript/components/record-expression.tsx
|
|
4
|
+
function RecordExpression({ elementType }) {
|
|
5
|
+
return code`
|
|
6
|
+
Record<string, ${elementType}>
|
|
7
|
+
`;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { RecordExpression as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Refkey } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/refkey.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
+
*/
|
|
11
|
+
declare function refkey$1(...args: unknown[]): Refkey;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { refkey$1 as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/refkey.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
+
*/
|
|
11
|
+
function refkey(...args) {
|
|
12
|
+
return (0, __alloy_js_core.refkey)("powerlines", ...args);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, 'refkey', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return refkey;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Refkey } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/refkey.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
+
*/
|
|
11
|
+
declare function refkey(...args: unknown[]): Refkey;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { refkey as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { refkey } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/refkey.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
9
|
+
*/
|
|
10
|
+
function refkey$1(...args) {
|
|
11
|
+
return refkey("powerlines", ...args);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { refkey$1 as t };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/core/contexts/reflection.ts
|
|
5
|
+
/**
|
|
6
|
+
* The reflection class context used in template rendering.
|
|
7
|
+
*/
|
|
8
|
+
const ReflectionClassContext = (0, __alloy_js_core.createContext)();
|
|
9
|
+
/**
|
|
10
|
+
* Hook to access the Reflection context.
|
|
11
|
+
*
|
|
12
|
+
* @returns A reactive version of the current reflection.
|
|
13
|
+
*/
|
|
14
|
+
function useReflectionClass() {
|
|
15
|
+
const context = (0, __alloy_js_core.useContext)(ReflectionClassContext);
|
|
16
|
+
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
17
|
+
return context;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The reflection property context used in template rendering.
|
|
21
|
+
*/
|
|
22
|
+
const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("reflection-property");
|
|
23
|
+
/**
|
|
24
|
+
* Hook to access the Reflection Property context.
|
|
25
|
+
*
|
|
26
|
+
* @returns A reactive version of the current reflection.
|
|
27
|
+
*/
|
|
28
|
+
function useReflectionProperty() {
|
|
29
|
+
const context = (0, __alloy_js_core.useContext)(ReflectionPropertyContext);
|
|
30
|
+
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
31
|
+
return context;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The reflection method context used in template rendering.
|
|
35
|
+
*/
|
|
36
|
+
const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("reflection-method");
|
|
37
|
+
/**
|
|
38
|
+
* Hook to access the Reflection Method context.
|
|
39
|
+
*
|
|
40
|
+
* @returns A reactive version of the current reflection.
|
|
41
|
+
*/
|
|
42
|
+
function useReflectionMethod() {
|
|
43
|
+
const context = (0, __alloy_js_core.useContext)(ReflectionMethodContext);
|
|
44
|
+
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
45
|
+
return context;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The reflection parameter context used in template rendering.
|
|
49
|
+
*/
|
|
50
|
+
const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("reflection-parameter");
|
|
51
|
+
/**
|
|
52
|
+
* Hook to access the Reflection Parameter context.
|
|
53
|
+
*
|
|
54
|
+
* @returns A reactive version of the current reflection.
|
|
55
|
+
*/
|
|
56
|
+
function useReflectionParameter() {
|
|
57
|
+
return (0, __alloy_js_core.useContext)(ReflectionParameterContext);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
Object.defineProperty(exports, 'ReflectionClassContext', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return ReflectionClassContext;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, 'ReflectionMethodContext', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () {
|
|
70
|
+
return ReflectionMethodContext;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, 'ReflectionParameterContext', {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () {
|
|
76
|
+
return ReflectionParameterContext;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, 'ReflectionPropertyContext', {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () {
|
|
82
|
+
return ReflectionPropertyContext;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, 'useReflectionClass', {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () {
|
|
88
|
+
return useReflectionClass;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, 'useReflectionMethod', {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () {
|
|
94
|
+
return useReflectionMethod;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, 'useReflectionParameter', {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () {
|
|
100
|
+
return useReflectionParameter;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, 'useReflectionProperty', {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () {
|
|
106
|
+
return useReflectionProperty;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { c as ReflectionOverrideInterface } from "./components-B2kXCrty.mjs";
|
|
2
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
3
|
+
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
|
|
5
|
+
//#region src/core/contexts/reflection.d.ts
|
|
6
|
+
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
7
|
+
reflection: ReflectionClass<T>;
|
|
8
|
+
override?: ReflectionOverrideInterface<T>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The reflection class context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Reflection context.
|
|
16
|
+
*
|
|
17
|
+
* @returns A reactive version of the current reflection.
|
|
18
|
+
*/
|
|
19
|
+
declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
|
|
20
|
+
/**
|
|
21
|
+
* The reflection property context used in template rendering.
|
|
22
|
+
*/
|
|
23
|
+
declare const ReflectionPropertyContext: ComponentContext<ReflectionProperty>;
|
|
24
|
+
/**
|
|
25
|
+
* Hook to access the Reflection Property context.
|
|
26
|
+
*
|
|
27
|
+
* @returns A reactive version of the current reflection.
|
|
28
|
+
*/
|
|
29
|
+
declare function useReflectionProperty(): ReflectionProperty;
|
|
30
|
+
/**
|
|
31
|
+
* The reflection method context used in template rendering.
|
|
32
|
+
*/
|
|
33
|
+
declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
|
|
34
|
+
/**
|
|
35
|
+
* Hook to access the Reflection Method context.
|
|
36
|
+
*
|
|
37
|
+
* @returns A reactive version of the current reflection.
|
|
38
|
+
*/
|
|
39
|
+
declare function useReflectionMethod(): ReflectionMethod;
|
|
40
|
+
/**
|
|
41
|
+
* The reflection parameter context used in template rendering.
|
|
42
|
+
*/
|
|
43
|
+
declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
|
|
44
|
+
/**
|
|
45
|
+
* Hook to access the Reflection Parameter context.
|
|
46
|
+
*
|
|
47
|
+
* @returns A reactive version of the current reflection.
|
|
48
|
+
*/
|
|
49
|
+
declare function useReflectionParameter(): ReflectionParameter;
|
|
50
|
+
declare type __ΩReflectionClassContextInterface = any[];
|
|
51
|
+
//#endregion
|
|
52
|
+
export { ReflectionPropertyContext as a, useReflectionMethod as c, ReflectionParameterContext as i, useReflectionParameter as l, ReflectionClassContextInterface as n, __ΩReflectionClassContextInterface as o, ReflectionMethodContext as r, useReflectionClass as s, ReflectionClassContext as t, useReflectionProperty as u };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/core/contexts/reflection.ts
|
|
4
|
+
/**
|
|
5
|
+
* The reflection class context used in template rendering.
|
|
6
|
+
*/
|
|
7
|
+
const ReflectionClassContext = createContext();
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the Reflection context.
|
|
10
|
+
*
|
|
11
|
+
* @returns A reactive version of the current reflection.
|
|
12
|
+
*/
|
|
13
|
+
function useReflectionClass() {
|
|
14
|
+
const context = useContext(ReflectionClassContext);
|
|
15
|
+
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
16
|
+
return context;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The reflection property context used in template rendering.
|
|
20
|
+
*/
|
|
21
|
+
const ReflectionPropertyContext = createNamedContext("reflection-property");
|
|
22
|
+
/**
|
|
23
|
+
* Hook to access the Reflection Property context.
|
|
24
|
+
*
|
|
25
|
+
* @returns A reactive version of the current reflection.
|
|
26
|
+
*/
|
|
27
|
+
function useReflectionProperty() {
|
|
28
|
+
const context = useContext(ReflectionPropertyContext);
|
|
29
|
+
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
30
|
+
return context;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The reflection method context used in template rendering.
|
|
34
|
+
*/
|
|
35
|
+
const ReflectionMethodContext = createNamedContext("reflection-method");
|
|
36
|
+
/**
|
|
37
|
+
* Hook to access the Reflection Method context.
|
|
38
|
+
*
|
|
39
|
+
* @returns A reactive version of the current reflection.
|
|
40
|
+
*/
|
|
41
|
+
function useReflectionMethod() {
|
|
42
|
+
const context = useContext(ReflectionMethodContext);
|
|
43
|
+
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");
|
|
44
|
+
return context;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The reflection parameter context used in template rendering.
|
|
48
|
+
*/
|
|
49
|
+
const ReflectionParameterContext = createNamedContext("reflection-parameter");
|
|
50
|
+
/**
|
|
51
|
+
* Hook to access the Reflection Parameter context.
|
|
52
|
+
*
|
|
53
|
+
* @returns A reactive version of the current reflection.
|
|
54
|
+
*/
|
|
55
|
+
function useReflectionParameter() {
|
|
56
|
+
return useContext(ReflectionParameterContext);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { useReflectionClass as a, useReflectionProperty as c, ReflectionPropertyContext as i, ReflectionMethodContext as n, useReflectionMethod as o, ReflectionParameterContext as r, useReflectionParameter as s, ReflectionClassContext as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { c as ReflectionOverrideInterface } from "./components-B0A7LpQD.cjs";
|
|
2
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
3
|
+
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
|
|
5
|
+
//#region src/core/contexts/reflection.d.ts
|
|
6
|
+
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
7
|
+
reflection: ReflectionClass<T>;
|
|
8
|
+
override?: ReflectionOverrideInterface<T>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The reflection class context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Reflection context.
|
|
16
|
+
*
|
|
17
|
+
* @returns A reactive version of the current reflection.
|
|
18
|
+
*/
|
|
19
|
+
declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
|
|
20
|
+
/**
|
|
21
|
+
* The reflection property context used in template rendering.
|
|
22
|
+
*/
|
|
23
|
+
declare const ReflectionPropertyContext: ComponentContext<ReflectionProperty>;
|
|
24
|
+
/**
|
|
25
|
+
* Hook to access the Reflection Property context.
|
|
26
|
+
*
|
|
27
|
+
* @returns A reactive version of the current reflection.
|
|
28
|
+
*/
|
|
29
|
+
declare function useReflectionProperty(): ReflectionProperty;
|
|
30
|
+
/**
|
|
31
|
+
* The reflection method context used in template rendering.
|
|
32
|
+
*/
|
|
33
|
+
declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
|
|
34
|
+
/**
|
|
35
|
+
* Hook to access the Reflection Method context.
|
|
36
|
+
*
|
|
37
|
+
* @returns A reactive version of the current reflection.
|
|
38
|
+
*/
|
|
39
|
+
declare function useReflectionMethod(): ReflectionMethod;
|
|
40
|
+
/**
|
|
41
|
+
* The reflection parameter context used in template rendering.
|
|
42
|
+
*/
|
|
43
|
+
declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
|
|
44
|
+
/**
|
|
45
|
+
* Hook to access the Reflection Parameter context.
|
|
46
|
+
*
|
|
47
|
+
* @returns A reactive version of the current reflection.
|
|
48
|
+
*/
|
|
49
|
+
declare function useReflectionParameter(): ReflectionParameter;
|
|
50
|
+
declare type __ΩReflectionClassContextInterface = any[];
|
|
51
|
+
//#endregion
|
|
52
|
+
export { ReflectionPropertyContext as a, useReflectionMethod as c, ReflectionParameterContext as i, useReflectionParameter as l, ReflectionClassContextInterface as n, __ΩReflectionClassContextInterface as o, ReflectionMethodContext as r, useReflectionClass as s, ReflectionClassContext as t, useReflectionProperty as u };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/single-line-comment.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
8
|
+
* are broken into multiple lines
|
|
9
|
+
*/
|
|
10
|
+
function SingleLineComment(props) {
|
|
11
|
+
const { variant = "double-slash", children } = props;
|
|
12
|
+
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
13
|
+
return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core_jsx_runtime.Fragment, { children: [commentStart, /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)("align", {
|
|
14
|
+
string: commentStart,
|
|
15
|
+
children: [/* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""]
|
|
16
|
+
})] });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
Object.defineProperty(exports, 'SingleLineComment', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return SingleLineComment;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as ComponentProps } from "./components-B0A7LpQD.cjs";
|
|
2
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/core/components/single-line-comment.d.ts
|
|
5
|
+
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
6
|
+
interface SingleLineCommentProps extends ComponentProps {
|
|
7
|
+
/**
|
|
8
|
+
* The variant of the single line comment.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue "double-slash"
|
|
11
|
+
*/
|
|
12
|
+
variant?: SingleLineCommentVariant;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
|
+
* are broken into multiple lines
|
|
17
|
+
*/
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core14.Children;
|
|
19
|
+
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
|
+
declare type __ΩSingleLineCommentProps = any[];
|
|
21
|
+
//#endregion
|
|
22
|
+
export { __ΩSingleLineCommentVariant as a, __ΩSingleLineCommentProps as i, SingleLineCommentProps as n, SingleLineCommentVariant as r, SingleLineComment as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Prose } from "@alloy-js/core";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/core/components/single-line-comment.tsx
|
|
5
|
+
/**
|
|
6
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
7
|
+
* are broken into multiple lines
|
|
8
|
+
*/
|
|
9
|
+
function SingleLineComment(props) {
|
|
10
|
+
const { variant = "double-slash", children } = props;
|
|
11
|
+
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [commentStart, /* @__PURE__ */ jsxs("align", {
|
|
13
|
+
string: commentStart,
|
|
14
|
+
children: [/* @__PURE__ */ jsx(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""]
|
|
15
|
+
})] });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SingleLineComment as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as ComponentProps } from "./components-B2kXCrty.mjs";
|
|
2
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
3
|
+
|
|
4
|
+
//#region src/core/components/single-line-comment.d.ts
|
|
5
|
+
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
6
|
+
interface SingleLineCommentProps extends ComponentProps {
|
|
7
|
+
/**
|
|
8
|
+
* The variant of the single line comment.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue "double-slash"
|
|
11
|
+
*/
|
|
12
|
+
variant?: SingleLineCommentVariant;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
|
+
* are broken into multiple lines
|
|
17
|
+
*/
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core14.Children;
|
|
19
|
+
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
|
+
declare type __ΩSingleLineCommentProps = any[];
|
|
21
|
+
//#endregion
|
|
22
|
+
export { __ΩSingleLineCommentVariant as a, __ΩSingleLineCommentProps as i, SingleLineCommentProps as n, SingleLineCommentVariant as r, SingleLineComment as t };
|