@powerlines/plugin-alloy 0.15.9 → 0.16.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.
Files changed (46) hide show
  1. package/README.md +2 -2
  2. package/dist/core/components/output.d.cts +2 -2
  3. package/dist/core/components/output.d.mts +2 -2
  4. package/dist/core/components/single-line-comment.d.cts +2 -2
  5. package/dist/core/components/source-file.d.cts +2 -2
  6. package/dist/core/contexts/context.cjs +16 -5
  7. package/dist/core/contexts/context.d.cts +10 -4
  8. package/dist/core/contexts/context.d.mts +10 -4
  9. package/dist/core/contexts/context.mjs +16 -6
  10. package/dist/core/contexts/index.cjs +1 -0
  11. package/dist/core/contexts/index.d.cts +2 -2
  12. package/dist/core/contexts/index.d.mts +2 -2
  13. package/dist/core/contexts/index.mjs +2 -2
  14. package/dist/core/contexts/reflection.cjs +3 -3
  15. package/dist/core/contexts/reflection.mjs +3 -3
  16. package/dist/core/index.cjs +1 -0
  17. package/dist/core/index.d.cts +2 -2
  18. package/dist/core/index.d.mts +2 -2
  19. package/dist/core/index.mjs +2 -2
  20. package/dist/index.cjs +5 -1
  21. package/dist/index.mjs +5 -1
  22. package/dist/markdown/components/markdown-file.d.cts +3 -3
  23. package/dist/markdown/components/markdown-file.d.mts +3 -3
  24. package/dist/markdown/components/markdown-table.d.cts +4 -4
  25. package/dist/typescript/components/builtin-file.d.cts +2 -2
  26. package/dist/typescript/components/builtin-file.d.mts +2 -2
  27. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  28. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  29. package/dist/typescript/components/entry-file.d.cts +2 -2
  30. package/dist/typescript/components/entry-file.d.mts +2 -2
  31. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  32. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  33. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  34. package/dist/typescript/components/typescript-interface.d.mts +3 -3
  35. package/dist/typescript/components/typescript-object.d.cts +3 -3
  36. package/dist/typescript/components/typescript-object.d.mts +3 -3
  37. package/dist/vendor/index.d.ts +2 -0
  38. package/package.json +5 -5
  39. /package/dist/{chunk-554SZY2F.cjs → vendor/chunk-554SZY2F.cjs} +0 -0
  40. /package/dist/{chunk-J2T6KGQO.js → vendor/chunk-J2T6KGQO.js} +0 -0
  41. /package/dist/{index.d.ts → vendor/index.d.cts} +0 -0
  42. /package/dist/{index.js → vendor/index.js} +0 -0
  43. /package/dist/{jsx-runtime.cjs → vendor/jsx-runtime.cjs} +0 -0
  44. /package/dist/{jsx-runtime.d.cts → vendor/jsx-runtime.d.cts} +0 -0
  45. /package/dist/{jsx-runtime.d.ts → vendor/jsx-runtime.d.ts} +0 -0
  46. /package/dist/{jsx-runtime.js → vendor/jsx-runtime.js} +0 -0
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.2.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.2.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -39,7 +39,7 @@ This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages
39
39
  <!-- prettier-ignore-end -->
40
40
 
41
41
  <div align="center">
42
- <b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
42
+ <a href="https://github.com/storm-software/powerlines" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date with it's progress!</b></a>
43
43
  </div>
44
44
 
45
45
  <br />
@@ -1,5 +1,5 @@
1
1
  import { PluginContext } from "../../powerlines/src/types/context.cjs";
2
- import * as _alloy_js_core4 from "@alloy-js/core";
2
+ import * as _alloy_js_core3 from "@alloy-js/core";
3
3
  import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
4
4
 
5
5
  //#region src/core/components/output.d.ts
@@ -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>): _alloy_js_core4.Children;
15
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core3.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
2
  import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
3
- import * as _alloy_js_core8 from "@alloy-js/core";
3
+ import * as _alloy_js_core4 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>): _alloy_js_core8.Children;
15
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core4.Children;
16
16
  declare type __ΩOutputProps = any[];
17
17
  //#endregion
18
18
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core1 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 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): _alloy_js_core1.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { StoragePreset } from "../../powerlines/src/types/fs.cjs";
2
2
  import { ComponentProps } from "../../types/components.cjs";
3
- import * as _alloy_js_core14 from "@alloy-js/core";
3
+ import * as _alloy_js_core0 from "@alloy-js/core";
4
4
  import { SourceFileProps as SourceFileProps$1 } from "@powerlines/plugin-alloy/vendor";
5
5
 
6
6
  //#region src/core/components/source-file.d.ts
@@ -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): _alloy_js_core14.Children;
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 };
@@ -5,7 +5,7 @@ let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor"
5
5
  /**
6
6
  * The Powerlines context used in template rendering.
7
7
  */
8
- const PowerlinesContext = (0, __powerlines_plugin_alloy_vendor.createContext)();
8
+ const PowerlinesContext = (0, __powerlines_plugin_alloy_vendor.createNamedContext)("powerlines");
9
9
  /**
10
10
  * Hook to access the Powerlines Context.
11
11
  *
@@ -15,15 +15,26 @@ function usePowerlinesContext() {
15
15
  return (0, __powerlines_plugin_alloy_vendor.useContext)(PowerlinesContext);
16
16
  }
17
17
  /**
18
- * Hook to access the Powerlines Context.
18
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
19
19
  *
20
- * @returns The reactive context ref.
20
+ * @returns The Powerlines context or undefined if not set.
21
21
  */
22
- function usePowerlines() {
22
+ function usePowerlinesSafe() {
23
23
  return usePowerlinesContext()?.ref?.value;
24
24
  }
25
+ /**
26
+ * Hook to access the {@link PluginContext | Powerlines context}.
27
+ *
28
+ * @returns The Powerlines context.
29
+ */
30
+ function usePowerlines() {
31
+ const powerlines = usePowerlinesSafe();
32
+ if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
33
+ return powerlines;
34
+ }
25
35
 
26
36
  //#endregion
27
37
  exports.PowerlinesContext = PowerlinesContext;
28
38
  exports.usePowerlines = usePowerlines;
29
- exports.usePowerlinesContext = usePowerlinesContext;
39
+ exports.usePowerlinesContext = usePowerlinesContext;
40
+ exports.usePowerlinesSafe = usePowerlinesSafe;
@@ -16,11 +16,17 @@ declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any
16
16
  */
17
17
  declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): PowerlinesContextInterface<TContext> | undefined;
18
18
  /**
19
- * Hook to access the Powerlines Context.
19
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
20
+ *
21
+ * @returns The Powerlines context or undefined if not set.
22
+ */
23
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
24
+ /**
25
+ * Hook to access the {@link PluginContext | Powerlines context}.
20
26
  *
21
- * @returns The reactive context ref.
27
+ * @returns The Powerlines context.
22
28
  */
23
- declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext | undefined;
29
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
24
30
  declare type __ΩPowerlinesContextInterface = any[];
25
31
  //#endregion
26
- export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext };
32
+ export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -16,11 +16,17 @@ declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any
16
16
  */
17
17
  declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): PowerlinesContextInterface<TContext> | undefined;
18
18
  /**
19
- * Hook to access the Powerlines Context.
19
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
20
+ *
21
+ * @returns The Powerlines context or undefined if not set.
22
+ */
23
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
24
+ /**
25
+ * Hook to access the {@link PluginContext | Powerlines context}.
20
26
  *
21
- * @returns The reactive context ref.
27
+ * @returns The Powerlines context.
22
28
  */
23
- declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext | undefined;
29
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
24
30
  declare type __ΩPowerlinesContextInterface = any[];
25
31
  //#endregion
26
- export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext };
32
+ export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,10 +1,10 @@
1
- import { createContext, useContext } from "@powerlines/plugin-alloy/vendor";
1
+ import { createNamedContext, useContext } from "@powerlines/plugin-alloy/vendor";
2
2
 
3
3
  //#region src/core/contexts/context.ts
4
4
  /**
5
5
  * The Powerlines context used in template rendering.
6
6
  */
7
- const PowerlinesContext = createContext();
7
+ const PowerlinesContext = createNamedContext("powerlines");
8
8
  /**
9
9
  * Hook to access the Powerlines Context.
10
10
  *
@@ -14,13 +14,23 @@ function usePowerlinesContext() {
14
14
  return useContext(PowerlinesContext);
15
15
  }
16
16
  /**
17
- * Hook to access the Powerlines Context.
17
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
18
18
  *
19
- * @returns The reactive context ref.
19
+ * @returns The Powerlines context or undefined if not set.
20
20
  */
21
- function usePowerlines() {
21
+ function usePowerlinesSafe() {
22
22
  return usePowerlinesContext()?.ref?.value;
23
23
  }
24
+ /**
25
+ * Hook to access the {@link PluginContext | Powerlines context}.
26
+ *
27
+ * @returns The Powerlines context.
28
+ */
29
+ function usePowerlines() {
30
+ const powerlines = usePowerlinesSafe();
31
+ if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
32
+ return powerlines;
33
+ }
24
34
 
25
35
  //#endregion
26
- export { PowerlinesContext, usePowerlines, usePowerlinesContext };
36
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -8,6 +8,7 @@ exports.ReflectionParameterContext = require_core_contexts_reflection.Reflection
8
8
  exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
9
9
  exports.usePowerlines = require_core_contexts_context.usePowerlines;
10
10
  exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
11
+ exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
11
12
  exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
12
13
  exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
13
14
  exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
@@ -1,3 +1,3 @@
1
- import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./context.cjs";
1
+ import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
2
2
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.cjs";
3
- export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
3
+ export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,3 +1,3 @@
1
- import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./context.mjs";
1
+ import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
2
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
3
- export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
3
+ export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,4 +1,4 @@
1
- import { PowerlinesContext, usePowerlines, usePowerlinesContext } from "./context.mjs";
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
2
  import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
3
3
 
4
- export { PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
4
+ export { PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -13,7 +13,7 @@ const ReflectionClassContext = (0, __powerlines_plugin_alloy_vendor.createContex
13
13
  */
14
14
  function useReflectionClass() {
15
15
  const context = (0, __powerlines_plugin_alloy_vendor.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`.");
16
+ if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
17
17
  return context;
18
18
  }
19
19
  /**
@@ -27,7 +27,7 @@ const ReflectionPropertyContext = (0, __powerlines_plugin_alloy_vendor.createNam
27
27
  */
28
28
  function useReflectionProperty() {
29
29
  const context = (0, __powerlines_plugin_alloy_vendor.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`.");
30
+ if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
31
31
  return context;
32
32
  }
33
33
  /**
@@ -41,7 +41,7 @@ const ReflectionMethodContext = (0, __powerlines_plugin_alloy_vendor.createNamed
41
41
  */
42
42
  function useReflectionMethod() {
43
43
  const context = (0, __powerlines_plugin_alloy_vendor.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`.");
44
+ if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
45
45
  return context;
46
46
  }
47
47
  /**
@@ -12,7 +12,7 @@ const ReflectionClassContext = createContext();
12
12
  */
13
13
  function useReflectionClass() {
14
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`.");
15
+ if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
16
16
  return context;
17
17
  }
18
18
  /**
@@ -26,7 +26,7 @@ const ReflectionPropertyContext = createNamedContext("reflection-property");
26
26
  */
27
27
  function useReflectionProperty() {
28
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`.");
29
+ if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
30
30
  return context;
31
31
  }
32
32
  /**
@@ -40,7 +40,7 @@ const ReflectionMethodContext = createNamedContext("reflection-method");
40
40
  */
41
41
  function useReflectionMethod() {
42
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`.");
43
+ if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
44
44
  return context;
45
45
  }
46
46
  /**
@@ -16,6 +16,7 @@ exports.SingleLineComment = require_core_components_single_line_comment.SingleLi
16
16
  exports.SourceFile = require_core_components_source_file.SourceFile;
17
17
  exports.usePowerlines = require_core_contexts_context.usePowerlines;
18
18
  exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
19
+ exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
19
20
  exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
20
21
  exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
21
22
  exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
@@ -2,7 +2,7 @@ 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
4
  import "./components/index.cjs";
5
- import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./contexts/context.cjs";
5
+ import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
6
6
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
7
7
  import "./contexts/index.cjs";
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 };
8
+ export { Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -2,7 +2,7 @@ import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
2
2
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
3
3
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
4
4
  import "./components/index.mjs";
5
- import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./contexts/context.mjs";
5
+ import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
6
6
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
7
7
  import "./contexts/index.mjs";
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 };
8
+ export { Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,4 +1,4 @@
1
- import { PowerlinesContext, usePowerlines, usePowerlinesContext } from "./contexts/context.mjs";
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
2
2
  import { Output } from "./components/output.mjs";
3
3
  import { SingleLineComment } from "./components/single-line-comment.mjs";
4
4
  import { SourceFile } from "./components/source-file.mjs";
@@ -6,4 +6,4 @@ import "./components/index.mjs";
6
6
  import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
7
7
  import "./contexts/index.mjs";
8
8
 
9
- export { Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
9
+ export { Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
package/dist/index.cjs CHANGED
@@ -34,7 +34,11 @@ const plugin = (options = {}) => {
34
34
  pragma: "Alloy.createElement",
35
35
  importSource: "@powerlines/plugin-alloy/vendor"
36
36
  } } },
37
- plugins: [(0, __alloy_js_rollup_plugin.default)()]
37
+ plugins: [(0, __alloy_js_rollup_plugin.default)()],
38
+ alias: {
39
+ "@alloy-js/core": "@powerlines/plugin-alloy/vendor",
40
+ "@alloy-js/core/jsx-runtime": "@powerlines/plugin-alloy/vendor/jsx-runtime"
41
+ }
38
42
  }
39
43
  };
40
44
  },
package/dist/index.mjs CHANGED
@@ -31,7 +31,11 @@ const plugin = (options = {}) => {
31
31
  pragma: "Alloy.createElement",
32
32
  importSource: "@powerlines/plugin-alloy/vendor"
33
33
  } } },
34
- plugins: [alloy()]
34
+ plugins: [alloy()],
35
+ alias: {
36
+ "@alloy-js/core": "@powerlines/plugin-alloy/vendor",
37
+ "@alloy-js/core/jsx-runtime": "@powerlines/plugin-alloy/vendor/jsx-runtime"
38
+ }
35
39
  }
36
40
  };
37
41
  },
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
2
  import { SourceFileProps } from "../../core/components/source-file.cjs";
3
- import * as _alloy_js_core2 from "@alloy-js/core";
3
+ import * as _alloy_js_core7 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-file.d.ts
6
6
  type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
10
10
  * @param props - The properties for the source file.
11
11
  * @returns The rendered source file component.
12
12
  */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core2.Children;
13
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
14
14
  /**
15
15
  * Renders the header for a Powerlines Typescript source file.
16
16
  *
17
17
  * @param props - The properties for the source file header.
18
18
  * @returns The rendered source file header.
19
19
  */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core2.Children;
20
+ declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core7.Children;
21
21
  declare type __ΩMarkdownFileProps = any[];
22
22
  //#endregion
23
23
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
2
2
  import { SourceFileProps } from "../../core/components/source-file.mjs";
3
- import * as _alloy_js_core4 from "@alloy-js/core";
3
+ import * as _alloy_js_core5 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-file.d.ts
6
6
  type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
@@ -10,14 +10,14 @@ type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
10
10
  * @param props - The properties for the source file.
11
11
  * @returns The rendered source file component.
12
12
  */
13
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core4.Children;
13
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.Children;
14
14
  /**
15
15
  * Renders the header for a Powerlines Typescript source file.
16
16
  *
17
17
  * @param props - The properties for the source file header.
18
18
  * @returns The rendered source file header.
19
19
  */
20
- declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core4.Children;
20
+ declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core5.Children;
21
21
  declare type __ΩMarkdownFileProps = any[];
22
22
  //#endregion
23
23
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
2
  import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.cjs";
3
- import * as _alloy_js_core5 from "@alloy-js/core";
3
+ import * as _alloy_js_core4 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-table.d.ts
6
6
  interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
9
9
  /**
10
10
  * Component that provides a context for rendering markdown tables.
11
11
  */
12
- declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core5.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core4.Children;
13
13
  type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
14
14
  width?: number;
15
15
  };
16
16
  /**
17
17
  * Component that provides a context for rendering markdown tables.
18
18
  */
19
- declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core15 from "@alloy-js/core";
3
+ import * as _alloy_js_core16 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core15.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core16.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core15 from "@alloy-js/core";
3
+ import * as _alloy_js_core16 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core15.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core16.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core16 from "@alloy-js/core";
1
+ import * as _alloy_js_core15 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core15.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core16 from "@alloy-js/core";
1
+ import * as _alloy_js_core11 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core11.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,6 +1,6 @@
1
1
  import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core13 from "@alloy-js/core";
3
+ import * as _alloy_js_core14 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
6
6
  type EntryFileProps = TypescriptFileProps & {
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core13.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core14.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,6 +1,6 @@
1
1
  import { ResolvedEntryTypeDefinition } from "../../powerlines/src/types/resolved.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core11 from "@alloy-js/core";
3
+ import * as _alloy_js_core12 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
6
6
  type EntryFileProps = TypescriptFileProps & {
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core11.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,18 +1,18 @@
1
1
  import { TSDocProps } from "./tsdoc.cjs";
2
- import * as _alloy_js_core10 from "@alloy-js/core";
2
+ import * as _alloy_js_core11 from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/components/tsdoc-reflection.d.ts
5
5
  /**
6
6
  * Generates a TypeScript interface property for the given reflection class.
7
7
  */
8
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core10.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core11.Children;
9
9
  /**
10
10
  * Generates a TypeScript interface property for the given reflection class.
11
11
  */
12
- declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core10.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core11.Children;
13
13
  /**
14
14
  * Generates a TypeScript interface property for the given reflection class.
15
15
  */
16
- declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core10.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core11.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -1,18 +1,18 @@
1
1
  import { TSDocProps } from "./tsdoc.mjs";
2
- import * as _alloy_js_core12 from "@alloy-js/core";
2
+ import * as _alloy_js_core13 from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/components/tsdoc-reflection.d.ts
5
5
  /**
6
6
  * Generates a TypeScript interface property for the given reflection class.
7
7
  */
8
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core12.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core13.Children;
9
9
  /**
10
10
  * Generates a TypeScript interface property for the given reflection class.
11
11
  */
12
- declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core12.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core13.Children;
13
13
  /**
14
14
  * Generates a TypeScript interface property for the given reflection class.
15
15
  */
16
- declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core12.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core13.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core9 from "@alloy-js/core";
3
3
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
4
 
5
5
  //#region src/typescript/components/typescript-interface.d.ts
@@ -13,11 +13,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
13
13
  /**
14
14
  * Generates a TypeScript interface for the given reflection class.
15
15
  */
16
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core8.Children;
16
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core9.Children;
17
17
  /**
18
18
  * Generates a TypeScript interface property for the given reflection class.
19
19
  */
20
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core8.Children;
20
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core9.Children;
21
21
  declare type __ΩTypeScriptInterfaceProps = any[];
22
22
  declare type __ΩTypescriptInterfacePropertyProps = any[];
23
23
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core6 from "@alloy-js/core";
2
+ import * as _alloy_js_core9 from "@alloy-js/core";
3
3
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
4
4
 
5
5
  //#region src/typescript/components/typescript-interface.d.ts
@@ -13,11 +13,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
13
13
  /**
14
14
  * Generates a TypeScript interface for the given reflection class.
15
15
  */
16
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core6.Children;
16
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core9.Children;
17
17
  /**
18
18
  * Generates a TypeScript interface property for the given reflection class.
19
19
  */
20
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core6.Children;
20
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core9.Children;
21
21
  declare type __ΩTypeScriptInterfaceProps = any[];
22
22
  declare type __ΩTypescriptInterfacePropertyProps = any[];
23
23
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core1 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ComputedRef } from "@vue/reactivity";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
14
14
  /**
15
15
  * Generates a TypeScript object for the given reflection class.
16
16
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core0.Children;
17
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core1.Children;
18
18
  /**
19
19
  * Generates a TypeScript object property for the given reflection class.
20
20
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core0.Children;
21
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core1.Children;
22
22
  declare type __ΩTypescriptObjectProps = any[];
23
23
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
24
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core9 from "@alloy-js/core";
2
+ import * as _alloy_js_core7 from "@alloy-js/core";
3
3
  import { VarDeclarationProps } from "@alloy-js/typescript";
4
4
  import { ComputedRef } from "@vue/reactivity";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
14
14
  /**
15
15
  * Generates a TypeScript object for the given reflection class.
16
16
  */
17
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core9.Children;
17
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core7.Children;
18
18
  /**
19
19
  * Generates a TypeScript object property for the given reflection class.
20
20
  */
21
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core9.Children;
21
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core7.Children;
22
22
  declare type __ΩTypescriptObjectProps = any[];
23
23
  declare type __ΩTypescriptObjectPropertyProps = any[];
24
24
  //#endregion
@@ -0,0 +1,2 @@
1
+ export * from '@alloy-js/core';
2
+ import '@alloy-js/core/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.15.9",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -387,8 +387,8 @@
387
387
  "@alloy-js/markdown": "^0.22.0",
388
388
  "@alloy-js/rollup-plugin": "^0.1.0",
389
389
  "@alloy-js/typescript": "^0.22.0",
390
- "@powerlines/deepkit": "^0.5.27",
391
- "@powerlines/plugin-plugin": "^0.12.64",
390
+ "@powerlines/deepkit": "^0.5.29",
391
+ "@powerlines/plugin-plugin": "^0.12.66",
392
392
  "@storm-software/config-tools": "^1.188.74",
393
393
  "@stryke/capnp": "^0.12.51",
394
394
  "@stryke/convert": "^0.6.29",
@@ -401,7 +401,7 @@
401
401
  "@stryke/types": "^0.10.28",
402
402
  "@stryke/unique-id": "^0.3.37",
403
403
  "defu": "^6.1.4",
404
- "powerlines": "^0.36.17",
404
+ "powerlines": "^0.36.19",
405
405
  "prettier": "^3.7.4"
406
406
  },
407
407
  "devDependencies": {
@@ -411,5 +411,5 @@
411
411
  "@types/node": "^24.10.4"
412
412
  },
413
413
  "publishConfig": { "access": "public" },
414
- "gitHead": "80d181e4eee59d93db27d4a40e1ca4be8751f722"
414
+ "gitHead": "b4b5079fef10cf5fccdaa2ff09dd8f728ff25bf7"
415
415
  }
File without changes
File without changes
File without changes