@powerlines/plugin-alloy 0.15.6 → 0.15.8
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/_virtual/rolldown_runtime.cjs +8 -0
- package/dist/_virtual/rolldown_runtime.mjs +29 -0
- package/dist/core/components/output.cjs +6 -6
- package/dist/core/components/output.d.cts +3 -3
- package/dist/core/components/output.d.mts +3 -3
- package/dist/core/components/output.mjs +1 -1
- package/dist/core/components/single-line-comment.cjs +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/source-file.cjs +7 -7
- package/dist/core/components/source-file.d.cts +3 -3
- package/dist/core/components/source-file.d.mts +3 -3
- package/dist/core/components/source-file.mjs +1 -1
- package/dist/core/contexts/context.cjs +3 -3
- package/dist/core/contexts/context.d.cts +1 -1
- package/dist/core/contexts/context.d.mts +1 -1
- package/dist/core/contexts/context.mjs +1 -1
- package/dist/core/contexts/reflection.cjs +9 -9
- package/dist/core/contexts/reflection.d.cts +1 -1
- package/dist/core/contexts/reflection.d.mts +1 -1
- package/dist/core/contexts/reflection.mjs +1 -1
- package/dist/core/index.d.cts +2 -0
- package/dist/helpers/capnp.cjs +2 -2
- package/dist/helpers/capnp.mjs +2 -2
- package/dist/helpers/create-builtin.d.cts +1 -1
- package/dist/helpers/create-builtin.d.mts +1 -1
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/refkey.cjs +2 -2
- package/dist/helpers/refkey.d.cts +1 -1
- package/dist/helpers/refkey.d.mts +1 -1
- package/dist/helpers/refkey.mjs +1 -1
- package/dist/index.cjs +15 -114
- package/dist/index.d.cts +3 -24
- package/dist/index.d.mts +3 -29
- package/dist/index.mjs +15 -38
- package/dist/markdown/components/markdown-file.cjs +12 -12
- package/dist/markdown/components/markdown-file.d.cts +5 -5
- package/dist/markdown/components/markdown-file.d.mts +5 -5
- package/dist/markdown/components/markdown-file.mjs +1 -1
- package/dist/markdown/components/markdown-table.cjs +17 -17
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/markdown/components/markdown-table.mjs +1 -1
- package/dist/markdown/contexts/markdown-table.cjs +5 -5
- package/dist/markdown/contexts/markdown-table.d.cts +1 -1
- package/dist/markdown/contexts/markdown-table.d.mts +1 -1
- package/dist/markdown/contexts/markdown-table.mjs +1 -1
- package/dist/markdown/index.d.cts +2 -0
- package/dist/types/components.d.cts +4 -5
- package/dist/types/components.d.mts +1 -2
- package/dist/types/plugin.d.cts +2 -3
- package/dist/types/plugin.d.mts +1 -2
- package/dist/typescript/components/builtin-file.cjs +2 -2
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.mjs +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
- package/dist/typescript/components/entry-file.cjs +3 -3
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/entry-file.mjs +1 -1
- package/dist/typescript/components/record-expression.cjs +2 -2
- package/dist/typescript/components/record-expression.d.cts +1 -1
- package/dist/typescript/components/record-expression.d.mts +1 -1
- package/dist/typescript/components/record-expression.mjs +1 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +26 -26
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +1 -1
- package/dist/typescript/components/tsdoc.cjs +45 -45
- package/dist/typescript/components/tsdoc.d.cts +1 -1
- package/dist/typescript/components/tsdoc.d.mts +1 -1
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/typescript-file.cjs +20 -20
- package/dist/typescript/components/typescript-file.d.cts +1 -1
- package/dist/typescript/components/typescript-file.d.mts +1 -1
- package/dist/typescript/components/typescript-file.mjs +1 -1
- package/dist/typescript/components/typescript-interface.cjs +5 -5
- package/dist/typescript/components/typescript-interface.mjs +1 -1
- package/dist/typescript/components/typescript-object.cjs +12 -12
- package/dist/typescript/components/typescript-object.d.cts +3 -3
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/dist/typescript/components/typescript-object.mjs +1 -1
- package/dist/typescript/index.d.cts +1 -0
- package/dist/vendor.cjs +14 -12588
- package/dist/vendor.js +99 -103
- package/dist/vendor.mjs +11 -0
- package/package.json +7 -23
|
@@ -19,6 +19,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
}
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget, symbols) => {
|
|
23
|
+
if (symbols) {
|
|
24
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
|
+
secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
|
|
26
|
+
}
|
|
27
|
+
__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
28
|
+
};
|
|
22
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
30
|
value: mod,
|
|
24
31
|
enumerable: true
|
|
@@ -26,4 +33,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
33
|
|
|
27
34
|
//#endregion
|
|
28
35
|
|
|
36
|
+
exports.__reExport = __reExport;
|
|
29
37
|
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
9
|
+
key = keys[i];
|
|
10
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
11
|
+
__defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget, symbols) => {
|
|
21
|
+
if (symbols) {
|
|
22
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
+
secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
|
|
24
|
+
}
|
|
25
|
+
__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { __reExport };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_core_contexts_context = require('../contexts/context.cjs');
|
|
3
3
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
5
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
6
6
|
|
|
7
7
|
//#region src/core/components/output.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
10
|
*/
|
|
11
11
|
function Output(props) {
|
|
12
|
-
const [{ children, context, basePath }, rest] = (0,
|
|
12
|
+
const [{ children, context, basePath }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
|
|
13
13
|
"children",
|
|
14
14
|
"context",
|
|
15
15
|
"basePath"
|
|
16
16
|
]);
|
|
17
|
-
const contextRef = (0,
|
|
18
|
-
const basePathRef = (0,
|
|
19
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
17
|
+
const contextRef = (0, __powerlines_plugin_alloy_vendor.ref)(context);
|
|
18
|
+
const basePathRef = (0, __powerlines_plugin_alloy_vendor.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
19
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
20
20
|
get basePath() {
|
|
21
21
|
return basePathRef.value;
|
|
22
22
|
},
|
|
@@ -24,7 +24,7 @@ function Output(props) {
|
|
|
24
24
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
|
|
25
25
|
value: { ref: contextRef },
|
|
26
26
|
get children() {
|
|
27
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
27
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
28
28
|
get when() {
|
|
29
29
|
return Boolean(contextRef.value);
|
|
30
30
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { OutputProps as OutputProps$1 } from "@alloy
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
+
import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/output.d.ts
|
|
6
6
|
interface OutputProps<TContext extends PluginContext = PluginContext> extends OutputProps$1 {
|
|
@@ -12,7 +12,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Ou
|
|
|
12
12
|
/**
|
|
13
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
14
|
*/
|
|
15
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
|
|
16
16
|
declare type __ΩOutputProps = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
3
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/output.d.ts
|
|
6
6
|
interface OutputProps<TContext extends PluginContext = PluginContext> extends OutputProps$1 {
|
|
@@ -12,7 +12,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Ou
|
|
|
12
12
|
/**
|
|
13
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
14
|
*/
|
|
15
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
|
|
16
16
|
declare type __ΩOutputProps = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
2
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Output as Output$1, Show, computed, ref, splitProps } from "@alloy-js/core";
|
|
4
3
|
import { replacePath } from "@stryke/path/replace";
|
|
4
|
+
import { Output as Output$1, Show, computed, ref, splitProps } from "@powerlines/plugin-alloy/vendor";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.tsx
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let
|
|
3
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/single-line-comment.tsx
|
|
6
6
|
/**
|
|
@@ -13,7 +13,7 @@ function SingleLineComment(props) {
|
|
|
13
13
|
return [commentStart, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
14
14
|
string: commentStart,
|
|
15
15
|
get children() {
|
|
16
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
16
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
17
17
|
}
|
|
18
18
|
})];
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core4.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core4.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
|
-
let
|
|
3
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
4
4
|
let __stryke_path_append = require("@stryke/path/append");
|
|
5
5
|
let defu = require("defu");
|
|
6
6
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -13,7 +13,7 @@ defu = require_rolldown_runtime.__toESM(defu);
|
|
|
13
13
|
* @returns The rendered source file component.
|
|
14
14
|
*/
|
|
15
15
|
function SourceFile(props) {
|
|
16
|
-
const [{ children, meta, path, header, preset, filetype, reference }] = (0,
|
|
16
|
+
const [{ children, meta, path, header, preset, filetype, reference }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
|
|
17
17
|
"children",
|
|
18
18
|
"meta",
|
|
19
19
|
"path",
|
|
@@ -22,29 +22,29 @@ function SourceFile(props) {
|
|
|
22
22
|
"filetype",
|
|
23
23
|
"reference"
|
|
24
24
|
]);
|
|
25
|
-
const parentDirectory = (0,
|
|
25
|
+
const parentDirectory = (0, __powerlines_plugin_alloy_vendor.useContext)(__powerlines_plugin_alloy_vendor.SourceDirectoryContext);
|
|
26
26
|
const context = {
|
|
27
27
|
path: (0, __stryke_path_append.appendPath)(path, parentDirectory.path),
|
|
28
28
|
filetype,
|
|
29
29
|
reference
|
|
30
30
|
};
|
|
31
31
|
parentDirectory?.addContent(context);
|
|
32
|
-
const printOptions = (0,
|
|
32
|
+
const printOptions = (0, __powerlines_plugin_alloy_vendor.useFormatOptions)({
|
|
33
33
|
printWidth: props.printWidth,
|
|
34
34
|
tabWidth: props.tabWidth,
|
|
35
35
|
useTabs: props.useTabs,
|
|
36
36
|
insertFinalNewLine: props.insertFinalNewLine
|
|
37
37
|
});
|
|
38
|
-
const nodeContext = (0,
|
|
38
|
+
const nodeContext = (0, __powerlines_plugin_alloy_vendor.getContext)();
|
|
39
39
|
nodeContext.meta = (0, defu.default)({
|
|
40
40
|
sourceFile: context,
|
|
41
41
|
printOptions,
|
|
42
42
|
output: { preset }
|
|
43
43
|
}, meta ?? {});
|
|
44
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
44
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.SourceFileContext.Provider, {
|
|
45
45
|
value: context,
|
|
46
46
|
get children() {
|
|
47
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
47
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
48
48
|
when: header !== void 0,
|
|
49
49
|
get children() {
|
|
50
50
|
return [header, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoragePreset } from "../../powerlines/src/types/fs.cjs";
|
|
2
2
|
import { ComponentProps } from "../../types/components.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import { SourceFileProps as SourceFileProps$1 } from "@alloy
|
|
3
|
+
import * as _alloy_js_core3 from "@alloy-js/core";
|
|
4
|
+
import { SourceFileProps as SourceFileProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
7
|
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
@@ -25,7 +25,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
25
25
|
* @param props - The properties for the source file.
|
|
26
26
|
* @returns The rendered source file component.
|
|
27
27
|
*/
|
|
28
|
-
declare function SourceFile(props: SourceFileProps):
|
|
28
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core3.Children;
|
|
29
29
|
declare type __ΩSourceFileProps = any[];
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoragePreset } from "../../powerlines/src/types/fs.mjs";
|
|
2
2
|
import { ComponentProps } from "../../types/components.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { SourceFileProps as SourceFileProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
4
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
7
7
|
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
@@ -25,7 +25,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
25
25
|
* @param props - The properties for the source file.
|
|
26
26
|
* @returns The rendered source file component.
|
|
27
27
|
*/
|
|
28
|
-
declare function SourceFile(props: SourceFileProps):
|
|
28
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
|
|
29
29
|
declare type __ΩSourceFileProps = any[];
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy
|
|
2
|
+
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@powerlines/plugin-alloy/vendor";
|
|
3
3
|
import { appendPath } from "@stryke/path/append";
|
|
4
4
|
import defu from "defu";
|
|
5
5
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let
|
|
2
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/context.ts
|
|
5
5
|
/**
|
|
6
6
|
* The Powerlines context used in template rendering.
|
|
7
7
|
*/
|
|
8
|
-
const PowerlinesContext = (0,
|
|
8
|
+
const PowerlinesContext = (0, __powerlines_plugin_alloy_vendor.createContext)();
|
|
9
9
|
/**
|
|
10
10
|
* Hook to access the Powerlines Context.
|
|
11
11
|
*
|
|
12
12
|
* @returns The Context.
|
|
13
13
|
*/
|
|
14
14
|
function usePowerlinesContext() {
|
|
15
|
-
return (0,
|
|
15
|
+
return (0, __powerlines_plugin_alloy_vendor.useContext)(PowerlinesContext);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Hook to access the Powerlines Context.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.cjs";
|
|
2
|
-
import { ComponentContext, Ref } from "@alloy
|
|
2
|
+
import { ComponentContext, Ref } from "@powerlines/plugin-alloy/vendor";
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/context.d.ts
|
|
5
5
|
interface PowerlinesContextInterface<TContext extends PluginContext = PluginContext> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.mjs";
|
|
2
|
-
import { ComponentContext, Ref } from "@alloy
|
|
2
|
+
import { ComponentContext, Ref } from "@powerlines/plugin-alloy/vendor";
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/context.d.ts
|
|
5
5
|
interface PowerlinesContextInterface<TContext extends PluginContext = PluginContext> {
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let
|
|
2
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/reflection.ts
|
|
5
5
|
/**
|
|
6
6
|
* The reflection class context used in template rendering.
|
|
7
7
|
*/
|
|
8
|
-
const ReflectionClassContext = (0,
|
|
8
|
+
const ReflectionClassContext = (0, __powerlines_plugin_alloy_vendor.createContext)();
|
|
9
9
|
/**
|
|
10
10
|
* Hook to access the Reflection context.
|
|
11
11
|
*
|
|
12
12
|
* @returns A reactive version of the current reflection.
|
|
13
13
|
*/
|
|
14
14
|
function useReflectionClass() {
|
|
15
|
-
const context = (0,
|
|
15
|
+
const context = (0, __powerlines_plugin_alloy_vendor.useContext)(ReflectionClassContext);
|
|
16
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
17
|
return context;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* The reflection property context used in template rendering.
|
|
21
21
|
*/
|
|
22
|
-
const ReflectionPropertyContext = (0,
|
|
22
|
+
const ReflectionPropertyContext = (0, __powerlines_plugin_alloy_vendor.createNamedContext)("reflection-property");
|
|
23
23
|
/**
|
|
24
24
|
* Hook to access the Reflection Property context.
|
|
25
25
|
*
|
|
26
26
|
* @returns A reactive version of the current reflection.
|
|
27
27
|
*/
|
|
28
28
|
function useReflectionProperty() {
|
|
29
|
-
const context = (0,
|
|
29
|
+
const context = (0, __powerlines_plugin_alloy_vendor.useContext)(ReflectionPropertyContext);
|
|
30
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
31
|
return context;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* The reflection method context used in template rendering.
|
|
35
35
|
*/
|
|
36
|
-
const ReflectionMethodContext = (0,
|
|
36
|
+
const ReflectionMethodContext = (0, __powerlines_plugin_alloy_vendor.createNamedContext)("reflection-method");
|
|
37
37
|
/**
|
|
38
38
|
* Hook to access the Reflection Method context.
|
|
39
39
|
*
|
|
40
40
|
* @returns A reactive version of the current reflection.
|
|
41
41
|
*/
|
|
42
42
|
function useReflectionMethod() {
|
|
43
|
-
const context = (0,
|
|
43
|
+
const context = (0, __powerlines_plugin_alloy_vendor.useContext)(ReflectionMethodContext);
|
|
44
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
45
|
return context;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* The reflection parameter context used in template rendering.
|
|
49
49
|
*/
|
|
50
|
-
const ReflectionParameterContext = (0,
|
|
50
|
+
const ReflectionParameterContext = (0, __powerlines_plugin_alloy_vendor.createNamedContext)("reflection-parameter");
|
|
51
51
|
/**
|
|
52
52
|
* Hook to access the Reflection Parameter context.
|
|
53
53
|
*
|
|
54
54
|
* @returns A reactive version of the current reflection.
|
|
55
55
|
*/
|
|
56
56
|
function useReflectionParameter() {
|
|
57
|
-
return (0,
|
|
57
|
+
return (0, __powerlines_plugin_alloy_vendor.useContext)(ReflectionParameterContext);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReflectionOverrideInterface } from "../../types/components.cjs";
|
|
2
|
-
import { ComponentContext } from "@alloy
|
|
2
|
+
import { ComponentContext } from "@powerlines/plugin-alloy/vendor";
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/reflection.d.ts
|
|
5
5
|
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReflectionOverrideInterface } from "../../types/components.mjs";
|
|
2
|
-
import { ComponentContext } from "@alloy
|
|
2
|
+
import { ComponentContext } from "@powerlines/plugin-alloy/vendor";
|
|
3
3
|
|
|
4
4
|
//#region src/core/contexts/reflection.d.ts
|
|
5
5
|
interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
|
|
2
2
|
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
|
|
3
3
|
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
|
|
4
|
+
import "./components/index.cjs";
|
|
4
5
|
import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./contexts/context.cjs";
|
|
5
6
|
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
|
|
7
|
+
import "./contexts/index.cjs";
|
|
6
8
|
export { Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/helpers/capnp.cjs
CHANGED
|
@@ -7,15 +7,15 @@ let __stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
|
7
7
|
let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
|
|
8
8
|
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
9
9
|
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
10
|
+
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
11
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
10
12
|
let __stryke_capnp_compile = require("@stryke/capnp/compile");
|
|
11
13
|
let __stryke_capnp_helpers = require("@stryke/capnp/helpers");
|
|
12
14
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
13
15
|
let __stryke_json = require("@stryke/json");
|
|
14
16
|
let __stryke_path_join = require("@stryke/path/join");
|
|
15
|
-
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
16
17
|
let __stryke_string_format_get_words = require("@stryke/string-format/get-words");
|
|
17
18
|
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
18
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
19
19
|
let __stryke_type_checks_is_bigint = require("@stryke/type-checks/is-bigint");
|
|
20
20
|
let __stryke_type_checks_is_number = require("@stryke/type-checks/is-number");
|
|
21
21
|
let node_buffer = require("node:buffer");
|
package/dist/helpers/capnp.mjs
CHANGED
|
@@ -5,15 +5,15 @@ import { getUniqueBy } from "@stryke/helpers/get-unique";
|
|
|
5
5
|
import { isNull } from "@stryke/type-checks/is-null";
|
|
6
6
|
import { isString } from "@stryke/type-checks/is-string";
|
|
7
7
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
8
|
+
import { camelCase } from "@stryke/string-format/camel-case";
|
|
9
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
10
|
import { capnpc } from "@stryke/capnp/compile";
|
|
9
11
|
import { resolveOptions } from "@stryke/capnp/helpers";
|
|
10
12
|
import { toArray } from "@stryke/convert/to-array";
|
|
11
13
|
import { StormJSON } from "@stryke/json";
|
|
12
14
|
import { joinPaths } from "@stryke/path/join";
|
|
13
|
-
import { camelCase } from "@stryke/string-format/camel-case";
|
|
14
15
|
import { getWords } from "@stryke/string-format/get-words";
|
|
15
16
|
import { pascalCase } from "@stryke/string-format/pascal-case";
|
|
16
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
17
17
|
import { isBigInt } from "@stryke/type-checks/is-bigint";
|
|
18
18
|
import { isNumber } from "@stryke/type-checks/is-number";
|
|
19
19
|
import { Buffer } from "node:buffer";
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
const require_helpers_typescript = require('./typescript.cjs');
|
|
2
|
+
const require_helpers_refkey = require('./refkey.cjs');
|
|
1
3
|
const require_helpers_capnp = require('./capnp.cjs');
|
|
2
4
|
const require_helpers_create_builtin = require('./create-builtin.cjs');
|
|
3
|
-
const require_helpers_refkey = require('./refkey.cjs');
|
|
4
|
-
const require_helpers_typescript = require('./typescript.cjs');
|
|
5
5
|
|
|
6
6
|
exports.LARGE_BUFFER = require_helpers_capnp.LARGE_BUFFER;
|
|
7
7
|
exports.compile = require_helpers_capnp.compile;
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { generateTypeScriptObject } from "./typescript.mjs";
|
|
2
|
+
import { refkey } from "./refkey.mjs";
|
|
1
3
|
import { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./capnp.mjs";
|
|
2
4
|
import { createBuiltin } from "./create-builtin.mjs";
|
|
3
|
-
import { refkey } from "./refkey.mjs";
|
|
4
|
-
import { generateTypeScriptObject } from "./typescript.mjs";
|
|
5
5
|
|
|
6
6
|
export { LARGE_BUFFER, compile, createBuiltin, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, generateTypeScriptObject, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, refkey, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/refkey.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let
|
|
2
|
+
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/refkey.ts
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ let __alloy_js_core = require("@alloy-js/core");
|
|
|
9
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
10
|
*/
|
|
11
11
|
function refkey(...args) {
|
|
12
|
-
return (0,
|
|
12
|
+
return (0, __powerlines_plugin_alloy_vendor.refkey)("powerlines", ...args);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
package/dist/helpers/refkey.mjs
CHANGED