@power-plant/alloy-js 0.0.7 → 0.0.11
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/README.md +1 -1
- package/dist/core/contexts/execution.cjs +1 -1
- package/dist/core/contexts/execution.mjs +1 -1
- package/dist/core/contexts/index.cjs +1 -1
- package/dist/core/contexts/index.d.cts +2 -2
- package/dist/core/contexts/index.d.mts +2 -2
- package/dist/core/contexts/index.mjs +1 -1
- package/dist/core/contexts/meta.cjs +1 -1
- package/dist/core/contexts/meta.mjs +1 -1
- package/dist/core/contexts/schema.cjs +1 -1
- package/dist/core/contexts/schema.mjs +1 -1
- package/dist/core/contexts/session.cjs +1 -1
- package/dist/core/contexts/session.d.cts +2 -2
- package/dist/core/contexts/session.d.mts +2 -2
- package/dist/core/contexts/session.mjs +1 -1
- package/dist/core/contexts/spec.cjs +1 -1
- package/dist/core/contexts/spec.mjs +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/interface-declaration-BSo-U6IN.d.cts.map +1 -1
- package/dist/object-declaration-BWJ8zDKp.d.cts.map +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.mjs +1 -1
- package/dist/session-C2p15ap9.d.cts +23 -0
- package/dist/session-C2p15ap9.d.cts.map +1 -0
- package/dist/session-C2p15ap9.d.mts +23 -0
- package/dist/session-C2p15ap9.d.mts.map +1 -0
- package/dist/type-declaration-BLvkozNR.d.cts.map +1 -1
- package/dist/type-parameters-BzCDG9lT.d.cts.map +1 -1
- package/package.json +7 -7
- package/dist/session-CFnVWg4N.d.cts +0 -62
- package/dist/session-CFnVWg4N.d.cts.map +0 -1
- package/dist/session-CFnVWg4N.d.mts +0 -62
- package/dist/session-CFnVWg4N.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
|
|
|
33
33
|
|
|
34
34
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
35
35
|
|
|
36
|
-
[](https://docs.stormsoftware.com/projects/power-plant) [](http://commitizen.github.io/cz-cli/)  
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore-start -->
|
|
39
39
|
<!-- markdownlint-disable -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`ExecutionContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Execution context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`ExecutionContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Execution context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return n}function r(){return(0,e.useContext)(t)}exports.ExecutionContext=t,exports.useExecution=n,exports.useExecutionSafe=r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`ExecutionContext`);function r(){let e=t(n);if(!e)throw Error("Execution context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`ExecutionContext`);function r(){let e=t(n);if(!e)throw Error("Execution context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function i(){return t(n)}export{n as ExecutionContext,r as useExecution,i as useExecutionSafe};
|
|
2
2
|
//# sourceMappingURL=execution.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execution.cjs"),t=require("./meta.cjs"),n=require("./schema.cjs"),r=require("./session.cjs");exports.ExecutionContext=e.ExecutionContext,exports.MetaContext=t.MetaContext,exports.SchemaContext=n.SchemaContext,exports.SchemaPropertyContext=n.SchemaPropertyContext,exports.SessionContext=r.SessionContext,exports.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execution.cjs"),t=require("./meta.cjs"),n=require("./schema.cjs"),r=require("./session.cjs");exports.ExecutionContext=e.ExecutionContext,exports.MetaContext=t.MetaContext,exports.SchemaContext=n.SchemaContext,exports.SchemaPropertyContext=n.SchemaPropertyContext,exports.SessionContext=r.SessionContext,exports.useExecution=e.useExecution,exports.useExecutionSafe=e.useExecutionSafe,exports.useMeta=t.useMeta,exports.useMetaSafe=t.useMetaSafe,exports.useSchema=n.useSchema,exports.useSchemaProperty=n.useSchemaProperty,exports.useSchemaPropertySafe=n.useSchemaPropertySafe,exports.useSchemaSafe=n.useSchemaSafe,exports.useSession=r.useSession,exports.useSessionSafe=r.useSessionSafe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-BGY24cO8.cjs";
|
|
2
2
|
import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-ClbpDxeS.cjs";
|
|
3
3
|
import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-CkCXkDzU.cjs";
|
|
4
|
-
import {
|
|
5
|
-
export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext,
|
|
4
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../../session-C2p15ap9.cjs";
|
|
5
|
+
export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-BGY24cO8.mjs";
|
|
2
2
|
import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-ClbpDxeS.mjs";
|
|
3
3
|
import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-CkCXkDzU.mjs";
|
|
4
|
-
import {
|
|
5
|
-
export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext,
|
|
4
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../../session-C2p15ap9.mjs";
|
|
5
|
+
export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ExecutionContext as e,useExecution as t,useExecutionSafe as n}from"./execution.mjs";import{MetaContext as r,useMeta as i,useMetaSafe as a}from"./meta.mjs";import{SchemaContext as o,SchemaPropertyContext as s,useSchema as c,useSchemaProperty as l,useSchemaPropertySafe as u,useSchemaSafe as d}from"./schema.mjs";import{SessionContext as f,
|
|
1
|
+
import{ExecutionContext as e,useExecution as t,useExecutionSafe as n}from"./execution.mjs";import{MetaContext as r,useMeta as i,useMetaSafe as a}from"./meta.mjs";import{SchemaContext as o,SchemaPropertyContext as s,useSchema as c,useSchemaProperty as l,useSchemaPropertySafe as u,useSchemaSafe as d}from"./schema.mjs";import{SessionContext as f,useSession as p,useSessionSafe as m}from"./session.mjs";export{e as ExecutionContext,r as MetaContext,o as SchemaContext,s as SchemaPropertyContext,f as SessionContext,t as useExecution,n as useExecutionSafe,i as useMeta,a as useMetaSafe,c as useSchema,l as useSchemaProperty,u as useSchemaPropertySafe,d as useSchemaSafe,p as useSession,m as useSessionSafe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`MetaContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Meta context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`MetaContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Meta context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return n}function r(){return(0,e.useContext)(t)}exports.MetaContext=t,exports.useMeta=n,exports.useMetaSafe=r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`MetaContext`);function r(){let e=t(n);if(!e)throw Error("Meta context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`MetaContext`);function r(){let e=t(n);if(!e)throw Error("Meta context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function i(){return t(n)}export{n as MetaContext,r as useMeta,i as useMetaSafe};
|
|
2
2
|
//# sourceMappingURL=meta.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createContext)();function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Schema is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createContext)();function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Schema is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return n}function r(){return(0,e.useContext)(t)}const i=(0,e.createNamedContext)(`SchemaProperty`);function a(){let t=(0,e.useContext)(i);if(!t)throw Error("Schema property is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return t}function o(){return(0,e.useContext)(i)}exports.SchemaContext=t,exports.SchemaPropertyContext=i,exports.useSchema=n,exports.useSchemaProperty=a,exports.useSchemaPropertySafe=o,exports.useSchemaSafe=r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createContext as e,createNamedContext as t,useContext as n}from"@alloy-js/core";const r=e();function i(){let e=n(r);if(!e)throw Error("Schema is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
import{createContext as e,createNamedContext as t,useContext as n}from"@alloy-js/core";const r=e();function i(){let e=n(r);if(!e)throw Error("Schema is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function a(){return n(r)}const o=t(`SchemaProperty`);function s(){let e=n(o);if(!e)throw Error("Schema property is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function c(){return n(o)}export{r as SchemaContext,o as SchemaPropertyContext,i as useSchema,s as useSchemaProperty,c as useSchemaPropertySafe,a as useSchemaSafe};
|
|
2
2
|
//# sourceMappingURL=schema.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`Session`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Session is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`Session`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Session is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return n}function r(){return(0,e.useContext)(t)}exports.SessionContext=t,exports.useSession=n,exports.useSessionSafe=r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { SessionContext,
|
|
1
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../../session-C2p15ap9.cjs";
|
|
2
|
+
export { SessionContext, useSession, useSessionSafe };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { SessionContext,
|
|
1
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../../session-C2p15ap9.mjs";
|
|
2
|
+
export { SessionContext, useSession, useSessionSafe };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`Session`);function r(){let e=t(n);if(!e)throw Error("Session is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`Session`);function r(){let e=t(n);if(!e)throw Error("Session is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function i(){return t(n)}export{n as SessionContext,r as useSession,i as useSessionSafe};
|
|
2
2
|
//# sourceMappingURL=session.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`SpecContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Specification context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");const t=(0,e.createNamedContext)(`SpecContext`);function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Specification context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return n}function r(){return(0,e.useContext)(t)}exports.SpecContext=t,exports.useSpec=n,exports.useSpecSafe=r;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`SpecContext`);function r(){let e=t(n);if(!e)throw Error("Specification context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@
|
|
1
|
+
import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`SpecContext`);function r(){let e=t(n);if(!e)throw Error("Specification context is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@power-plant/alloy-js`.");return e}function i(){return t(n)}export{n as SpecContext,r as useSpec,i as useSpecSafe};
|
|
2
2
|
//# sourceMappingURL=spec.mjs.map
|
package/dist/core/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./contexts/execution.cjs"),t=require("./contexts/meta.cjs"),n=require("./components/output.cjs"),r=require("./components/single-line-comment.cjs"),i=require("./components/source-file.cjs"),a=require("./components/spacing.cjs");require("./components/index.cjs");const o=require("./contexts/schema.cjs"),s=require("./contexts/session.cjs");require("./contexts/index.cjs");const c=require("./helpers/code.cjs");require("./helpers/index.cjs"),exports.ExecutionContext=e.ExecutionContext,exports.MetaContext=t.MetaContext,exports.Output=n.Output,exports.SchemaContext=o.SchemaContext,exports.SchemaPropertyContext=o.SchemaPropertyContext,exports.SessionContext=s.SessionContext,exports.SingleLineComment=r.SingleLineComment,exports.SourceFile=i.SourceFile,exports.Spacing=a.Spacing,exports.code=c.code,exports.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./contexts/execution.cjs"),t=require("./contexts/meta.cjs"),n=require("./components/output.cjs"),r=require("./components/single-line-comment.cjs"),i=require("./components/source-file.cjs"),a=require("./components/spacing.cjs");require("./components/index.cjs");const o=require("./contexts/schema.cjs"),s=require("./contexts/session.cjs");require("./contexts/index.cjs");const c=require("./helpers/code.cjs");require("./helpers/index.cjs"),exports.ExecutionContext=e.ExecutionContext,exports.MetaContext=t.MetaContext,exports.Output=n.Output,exports.SchemaContext=o.SchemaContext,exports.SchemaPropertyContext=o.SchemaPropertyContext,exports.SessionContext=s.SessionContext,exports.SingleLineComment=r.SingleLineComment,exports.SourceFile=i.SourceFile,exports.Spacing=a.Spacing,exports.code=c.code,exports.useExecution=e.useExecution,exports.useExecutionSafe=e.useExecutionSafe,exports.useMeta=t.useMeta,exports.useMetaSafe=t.useMetaSafe,exports.useSchema=o.useSchema,exports.useSchemaProperty=o.useSchemaProperty,exports.useSchemaPropertySafe=o.useSchemaPropertySafe,exports.useSchemaSafe=o.useSchemaSafe,exports.useSession=s.useSession,exports.useSessionSafe=s.useSessionSafe;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -6,8 +6,8 @@ import "./components/index.cjs";
|
|
|
6
6
|
import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../execution-BGY24cO8.cjs";
|
|
7
7
|
import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../meta-ClbpDxeS.cjs";
|
|
8
8
|
import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../schema-CkCXkDzU.cjs";
|
|
9
|
-
import {
|
|
9
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../session-C2p15ap9.cjs";
|
|
10
10
|
import "./contexts/index.cjs";
|
|
11
11
|
import { t as code } from "../code-DJUGcivU.cjs";
|
|
12
12
|
import "./helpers/index.cjs";
|
|
13
|
-
export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code,
|
|
13
|
+
export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -6,8 +6,8 @@ import "./components/index.mjs";
|
|
|
6
6
|
import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../execution-BGY24cO8.mjs";
|
|
7
7
|
import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../meta-ClbpDxeS.mjs";
|
|
8
8
|
import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../schema-CkCXkDzU.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { n as useSession, r as useSessionSafe, t as SessionContext } from "../session-C2p15ap9.mjs";
|
|
10
10
|
import "./contexts/index.mjs";
|
|
11
11
|
import { t as code } from "../code-tudxNOH1.mjs";
|
|
12
12
|
import "./helpers/index.mjs";
|
|
13
|
-
export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code,
|
|
13
|
+
export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ExecutionContext as e,useExecution as t,useExecutionSafe as n}from"./contexts/execution.mjs";import{MetaContext as r,useMeta as i,useMetaSafe as a}from"./contexts/meta.mjs";import{Output as o}from"./components/output.mjs";import{SingleLineComment as s}from"./components/single-line-comment.mjs";import{SourceFile as c}from"./components/source-file.mjs";import{Spacing as l}from"./components/spacing.mjs";import"./components/index.mjs";import{SchemaContext as u,SchemaPropertyContext as d,useSchema as f,useSchemaProperty as p,useSchemaPropertySafe as m,useSchemaSafe as h}from"./contexts/schema.mjs";import{SessionContext as g,
|
|
1
|
+
import{ExecutionContext as e,useExecution as t,useExecutionSafe as n}from"./contexts/execution.mjs";import{MetaContext as r,useMeta as i,useMetaSafe as a}from"./contexts/meta.mjs";import{Output as o}from"./components/output.mjs";import{SingleLineComment as s}from"./components/single-line-comment.mjs";import{SourceFile as c}from"./components/source-file.mjs";import{Spacing as l}from"./components/spacing.mjs";import"./components/index.mjs";import{SchemaContext as u,SchemaPropertyContext as d,useSchema as f,useSchemaProperty as p,useSchemaPropertySafe as m,useSchemaSafe as h}from"./contexts/schema.mjs";import{SessionContext as g,useSession as _,useSessionSafe as v}from"./contexts/session.mjs";import"./contexts/index.mjs";import{code as y}from"./helpers/code.mjs";import"./helpers/index.mjs";export{e as ExecutionContext,r as MetaContext,o as Output,u as SchemaContext,d as SchemaPropertyContext,g as SessionContext,s as SingleLineComment,c as SourceFile,l as Spacing,y as code,t as useExecution,n as useExecutionSafe,i as useMeta,a as useMetaSafe,f as useSchema,p as useSchemaProperty,m as useSchemaPropertySafe,h as useSchemaSafe,_ as useSession,v as useSessionSafe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface-declaration-BSo-U6IN.d.cts","names":[],"sources":["../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"interface-declaration-BSo-U6IN.d.cts","names":[],"sources":["../src/typescript/components/interface-declaration.tsx"],"mappings":";;;;;;UA0EiB,kCACP,YAAY,iCAAiC;;;;EAIrD,UAAU;;;;EAKV,iBAAiB;;;;;;;EAQjB,SAAS;;;;EAKT,MAAM;;KAGI,oCAAoC,uBAC9C;EACE,QAAQ;EACR;EACA;EACA;;UAGa;EACf,WAAW;;cAGA,8CAAmB,UAAA;UAoBf;EACf,WAAW;EACX,eAAe;EACf,MAAM;EACN,SAAS,SAAS;EAClB;EACA,OAAO,WAAW;EAClB;EACA;;UAGe,oCAAoC;EACnD,SAAS;;UAGM,iCAAiC;EAChD;;UAGe,mCAAmC;EAClD,QAAQ;;KAGE,uBACR,8BACA,2BACA;;;;;;;;;;iBAWY,gBAAgB,OAAO,uBAAoB;;;;iBAkI3C,qBAAqB,OAAO,4BAAyB;;;;iBAoErD,6BACd,OAAO,oCAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-declaration-BWJ8zDKp.d.cts","names":[],"sources":["../src/typescript/components/object-declaration.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"object-declaration-BWJ8zDKp.d.cts","names":[],"sources":["../src/typescript/components/object-declaration.tsx"],"mappings":";;;;UAsDiB,+BAA+B;EAC9C,SAAS;;;;;iBAMK,kBAAkB,OAAO,kDAAsB;UA0G9C,uCAAuC;EACtD;EACA;EACA;EACA,QAAQ;;;;;iBAMM,0BACd,OAAO,0DAA8B"}
|
package/dist/render.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./core/components/output.cjs");require("./core/index.cjs");let n=require("@alloy-js/core/jsx-runtime"),r=require("@alloy-js/core"),i=require("@
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./core/components/output.cjs");require("./core/index.cjs");let n=require("@alloy-js/core/jsx-runtime"),r=require("@alloy-js/core"),i=require("@stryke/helpers/noop"),a=require("@stryke/path/replace"),o=require("@stryke/string-format/list"),s=require("defu");s=e.t(s,1);async function c(e,c,l){let u={},{cwd:d,logger:f}=e,p=await(0,r.renderAsync)((0,n.createComponent)(t.Output,{context:e,spec:c,meta:u,children:l})),m=[];if(await(0,r.traverseOutput)(p,{visitDirectory:i.noop,visitFile:e=>m.push(e)}),!m.length)return f.debug(`No output files were rendered by the Alloy-js components.`),{};f.debug(`Rendering ${m.length} output files from Alloy-js components: ${(0,o.list)(m.map(e=>(0,a.replacePath)(e.path,d)))}.`);let h={},g={};await(0,r.traverseOutput)(p,{visitDirectory:i.noop,visitFile:e=>{if(`contents`in e){let t=u[e.path]??{};h[e.path]={path:e.path,chunks:[{content:e.contents,meta:t}]}}else e.sourcePath&&(g[e.sourcePath]=e.path)}});for(let[e,t]of Object.entries(g))if(h[e])h[t]={...h[e],path:t,chunks:h[e].chunks?.map(e=>(0,s.default)(e,{meta:u[t]??{}}))};else throw Error(`Source path ${e} not found in documents.`);return h}exports.render=c;
|
package/dist/render.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Output as e}from"./core/components/output.mjs";import"./core/index.mjs";import{createComponent as t}from"@alloy-js/core/jsx-runtime";import{renderAsync as n,traverseOutput as r}from"@alloy-js/core";import{
|
|
1
|
+
import{Output as e}from"./core/components/output.mjs";import"./core/index.mjs";import{createComponent as t}from"@alloy-js/core/jsx-runtime";import{renderAsync as n,traverseOutput as r}from"@alloy-js/core";import{noop as i}from"@stryke/helpers/noop";import{replacePath as a}from"@stryke/path/replace";import{list as o}from"@stryke/string-format/list";import s from"defu";async function c(c,l,u){let d={},{cwd:f,logger:p}=c,m=await n(t(e,{context:c,spec:l,meta:d,children:u})),h=[];if(await r(m,{visitDirectory:i,visitFile:e=>h.push(e)}),!h.length)return p.debug(`No output files were rendered by the Alloy-js components.`),{};p.debug(`Rendering ${h.length} output files from Alloy-js components: ${o(h.map(e=>a(e.path,f)))}.`);let g={},_={};await r(m,{visitDirectory:i,visitFile:e=>{if(`contents`in e){let t=d[e.path]??{};g[e.path]={path:e.path,chunks:[{content:e.contents,meta:t}]}}else e.sourcePath&&(_[e.sourcePath]=e.path)}});for(let[e,t]of Object.entries(_))if(g[e])g[t]={...g[e],path:t,chunks:g[e].chunks?.map(e=>s(e,{meta:d[t]??{}}))};else throw Error(`Source path ${e} not found in documents.`);return g}export{c as render};
|
|
2
2
|
//# sourceMappingURL=render.mjs.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import { SessionContext } from "@power-plant/core";
|
|
3
|
+
//#region src/core/contexts/session.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The session context used to access the session data.
|
|
6
|
+
*/
|
|
7
|
+
declare const SessionContext$1: ComponentContext<SessionContext>;
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the session context.
|
|
10
|
+
*
|
|
11
|
+
* @returns The session context.
|
|
12
|
+
* @throws An error if the session context is not set.
|
|
13
|
+
*/
|
|
14
|
+
declare function useSession(): SessionContext;
|
|
15
|
+
/**
|
|
16
|
+
* Hook to safely access the session context.
|
|
17
|
+
*
|
|
18
|
+
* @returns The session context or undefined if not set.
|
|
19
|
+
*/
|
|
20
|
+
declare function useSessionSafe(): SessionContext | undefined;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { useSession as n, useSessionSafe as r, SessionContext$1 as t };
|
|
23
|
+
//# sourceMappingURL=session-C2p15ap9.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-C2p15ap9.d.cts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":";;;;;;cAyBa,kBAAgB,iBAAiB;;;;;;;iBAS9B,cAAc;;;;;;iBAgBd,kBAAkB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import { SessionContext } from "@power-plant/core";
|
|
3
|
+
//#region src/core/contexts/session.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The session context used to access the session data.
|
|
6
|
+
*/
|
|
7
|
+
declare const SessionContext$1: ComponentContext<SessionContext>;
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the session context.
|
|
10
|
+
*
|
|
11
|
+
* @returns The session context.
|
|
12
|
+
* @throws An error if the session context is not set.
|
|
13
|
+
*/
|
|
14
|
+
declare function useSession(): SessionContext;
|
|
15
|
+
/**
|
|
16
|
+
* Hook to safely access the session context.
|
|
17
|
+
*
|
|
18
|
+
* @returns The session context or undefined if not set.
|
|
19
|
+
*/
|
|
20
|
+
declare function useSessionSafe(): SessionContext | undefined;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { useSession as n, useSessionSafe as r, SessionContext$1 as t };
|
|
23
|
+
//# sourceMappingURL=session-C2p15ap9.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-C2p15ap9.d.mts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-declaration-BLvkozNR.d.cts","names":[],"sources":["../src/typescript/components/type-declaration.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"type-declaration-BLvkozNR.d.cts","names":[],"sources":["../src/typescript/components/type-declaration.tsx"],"mappings":";;UA2BiB,6BAA6B;;;;EAI5C,iBAAiB;;;;;cAMN,0CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters-BzCDG9lT.d.cts","names":[],"sources":["../src/typescript/components/type-parameters.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"type-parameters-BzCDG9lT.d.cts","names":[],"sources":["../src/typescript/components/type-parameters.tsx"],"mappings":";;;;UAwBiB;;EAEf,aAAa;;EAEb,WAAW;;;;;;;;;;iBAqCG,eAAe,OAAO,sBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/alloy-js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant generator for using Alloy JS to generate source code.",
|
|
6
6
|
"keywords": [
|
|
@@ -869,8 +869,8 @@
|
|
|
869
869
|
"@alloy-js/json": "^0.24.0",
|
|
870
870
|
"@alloy-js/markdown": "^0.24.0",
|
|
871
871
|
"@alloy-js/typescript": "^0.24.0",
|
|
872
|
-
"@power-plant/core": "^0.0.
|
|
873
|
-
"@power-plant/schema": "^0.0.
|
|
872
|
+
"@power-plant/core": "^0.0.15",
|
|
873
|
+
"@power-plant/schema": "^0.0.15",
|
|
874
874
|
"@stryke/convert": "^0.7.26",
|
|
875
875
|
"@stryke/helpers": "^0.10.35",
|
|
876
876
|
"@stryke/path": "^0.29.22",
|
|
@@ -884,13 +884,13 @@
|
|
|
884
884
|
"@alloy-js/babel-preset": "^0.3.0",
|
|
885
885
|
"@babel/core": "^8.0.1",
|
|
886
886
|
"@babel/preset-typescript": "^8.0.1",
|
|
887
|
-
"@powerlines/plugin-babel": "^0.13.
|
|
888
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
887
|
+
"@powerlines/plugin-babel": "^0.13.139",
|
|
888
|
+
"@powerlines/plugin-tsdown": "^0.1.544",
|
|
889
889
|
"@types/node": "^25.9.5",
|
|
890
|
-
"powerlines": "^0.47.
|
|
890
|
+
"powerlines": "^0.47.143"
|
|
891
891
|
},
|
|
892
892
|
"peerDependencies": { "@alloy-js/babel-preset": ">=0.3.0" },
|
|
893
893
|
"peerDependenciesMeta": { "@alloy-js/babel-preset": { "optional": false } },
|
|
894
894
|
"publishConfig": { "access": "public" },
|
|
895
|
-
"gitHead": "
|
|
895
|
+
"gitHead": "53b9aaba951c67546a3774251f4ad973eccc3997"
|
|
896
896
|
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { Device, SessionContext, Tenant, User } from "@power-plant/core";
|
|
3
|
-
//#region src/core/contexts/session.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* The session context used to access the session data.
|
|
6
|
-
*/
|
|
7
|
-
declare const SessionContext$1: ComponentContext<SessionContext>;
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the session context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The session context.
|
|
12
|
-
* @throws An error if the session context is not set.
|
|
13
|
-
*/
|
|
14
|
-
declare function useSession(): SessionContext;
|
|
15
|
-
/**
|
|
16
|
-
* Hook to safely access the session context.
|
|
17
|
-
*
|
|
18
|
-
* @returns The session context or undefined if not set.
|
|
19
|
-
*/
|
|
20
|
-
declare function useSessionSafe(): SessionContext | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Hook to access the device context.
|
|
23
|
-
*
|
|
24
|
-
* @returns The device.
|
|
25
|
-
* @throws An error if the device is not set.
|
|
26
|
-
*/
|
|
27
|
-
declare function useDevice(): Device;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to safely access the device context.
|
|
30
|
-
*
|
|
31
|
-
* @returns The device or undefined if not set.
|
|
32
|
-
*/
|
|
33
|
-
declare function useDeviceSafe(): Device | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the user context.
|
|
36
|
-
*
|
|
37
|
-
* @returns The user.
|
|
38
|
-
* @throws An error if the user is not set.
|
|
39
|
-
*/
|
|
40
|
-
declare function useUser(): User;
|
|
41
|
-
/**
|
|
42
|
-
* Hook to safely access the user context.
|
|
43
|
-
*
|
|
44
|
-
* @returns The user or undefined if not set.
|
|
45
|
-
*/
|
|
46
|
-
declare function useUserSafe(): User | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Hook to access the tenant context.
|
|
49
|
-
*
|
|
50
|
-
* @returns The tenant.
|
|
51
|
-
* @throws An error if the tenant is not set.
|
|
52
|
-
*/
|
|
53
|
-
declare function useTenant(): Tenant;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to safely access the tenant context.
|
|
56
|
-
*
|
|
57
|
-
* @returns The tenant or undefined if not set.
|
|
58
|
-
*/
|
|
59
|
-
declare function useTenantSafe(): Tenant | undefined;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { useSessionSafe as a, useUser as c, useSession as i, useUserSafe as l, useDevice as n, useTenant as o, useDeviceSafe as r, useTenantSafe as s, SessionContext$1 as t };
|
|
62
|
-
//# sourceMappingURL=session-CFnVWg4N.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-CFnVWg4N.d.cts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":";;;;;;cA8Ba,kBAAgB,iBAAiB;;;;;;;iBAS9B,cAAc;;;;;;iBAgBd,kBAAkB;;;;;;;iBAUlB,aAAa;;;;;;iBAWb,iBAAiB;;;;;;;iBAYjB,WAAW;;;;;;iBAWX,eAAe;;;;;;;iBAYf,aAAa;;;;;;iBAWb,iBAAiB"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
-
import { Device, SessionContext, Tenant, User } from "@power-plant/core";
|
|
3
|
-
//#region src/core/contexts/session.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* The session context used to access the session data.
|
|
6
|
-
*/
|
|
7
|
-
declare const SessionContext$1: ComponentContext<SessionContext>;
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the session context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The session context.
|
|
12
|
-
* @throws An error if the session context is not set.
|
|
13
|
-
*/
|
|
14
|
-
declare function useSession(): SessionContext;
|
|
15
|
-
/**
|
|
16
|
-
* Hook to safely access the session context.
|
|
17
|
-
*
|
|
18
|
-
* @returns The session context or undefined if not set.
|
|
19
|
-
*/
|
|
20
|
-
declare function useSessionSafe(): SessionContext | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Hook to access the device context.
|
|
23
|
-
*
|
|
24
|
-
* @returns The device.
|
|
25
|
-
* @throws An error if the device is not set.
|
|
26
|
-
*/
|
|
27
|
-
declare function useDevice(): Device;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to safely access the device context.
|
|
30
|
-
*
|
|
31
|
-
* @returns The device or undefined if not set.
|
|
32
|
-
*/
|
|
33
|
-
declare function useDeviceSafe(): Device | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access the user context.
|
|
36
|
-
*
|
|
37
|
-
* @returns The user.
|
|
38
|
-
* @throws An error if the user is not set.
|
|
39
|
-
*/
|
|
40
|
-
declare function useUser(): User;
|
|
41
|
-
/**
|
|
42
|
-
* Hook to safely access the user context.
|
|
43
|
-
*
|
|
44
|
-
* @returns The user or undefined if not set.
|
|
45
|
-
*/
|
|
46
|
-
declare function useUserSafe(): User | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Hook to access the tenant context.
|
|
49
|
-
*
|
|
50
|
-
* @returns The tenant.
|
|
51
|
-
* @throws An error if the tenant is not set.
|
|
52
|
-
*/
|
|
53
|
-
declare function useTenant(): Tenant;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to safely access the tenant context.
|
|
56
|
-
*
|
|
57
|
-
* @returns The tenant or undefined if not set.
|
|
58
|
-
*/
|
|
59
|
-
declare function useTenantSafe(): Tenant | undefined;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { useSessionSafe as a, useUser as c, useSession as i, useUserSafe as l, useDevice as n, useTenant as o, useDeviceSafe as r, useTenantSafe as s, SessionContext$1 as t };
|
|
62
|
-
//# sourceMappingURL=session-CFnVWg4N.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-CFnVWg4N.d.mts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":""}
|