@power-plant/alloy-js 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +265 -0
  3. package/dist/code-Cw63m9E5.d.mts +29 -0
  4. package/dist/code-Cw63m9E5.d.mts.map +1 -0
  5. package/dist/code-DwEnLBw3.d.cts +29 -0
  6. package/dist/code-DwEnLBw3.d.cts.map +1 -0
  7. package/dist/components-Lfo1yjgU.d.cts +57 -0
  8. package/dist/components-Lfo1yjgU.d.cts.map +1 -0
  9. package/dist/components-Lfo1yjgU.d.mts +57 -0
  10. package/dist/components-Lfo1yjgU.d.mts.map +1 -0
  11. package/dist/core/components/index.cjs +1 -0
  12. package/dist/core/components/index.d.cts +5 -0
  13. package/dist/core/components/index.d.mts +5 -0
  14. package/dist/core/components/index.mjs +1 -0
  15. package/dist/core/components/output.cjs +1 -0
  16. package/dist/core/components/output.d.cts +2 -0
  17. package/dist/core/components/output.d.mts +2 -0
  18. package/dist/core/components/output.mjs +2 -0
  19. package/dist/core/components/output.mjs.map +1 -0
  20. package/dist/core/components/single-line-comment.cjs +1 -0
  21. package/dist/core/components/single-line-comment.d.cts +2 -0
  22. package/dist/core/components/single-line-comment.d.mts +2 -0
  23. package/dist/core/components/single-line-comment.mjs +2 -0
  24. package/dist/core/components/single-line-comment.mjs.map +1 -0
  25. package/dist/core/components/source-file.cjs +1 -0
  26. package/dist/core/components/source-file.d.cts +2 -0
  27. package/dist/core/components/source-file.d.mts +2 -0
  28. package/dist/core/components/source-file.mjs +1 -0
  29. package/dist/core/components/spacing.cjs +1 -0
  30. package/dist/core/components/spacing.d.cts +2 -0
  31. package/dist/core/components/spacing.d.mts +2 -0
  32. package/dist/core/components/spacing.mjs +2 -0
  33. package/dist/core/components/spacing.mjs.map +1 -0
  34. package/dist/core/contexts/execution.cjs +1 -0
  35. package/dist/core/contexts/execution.d.cts +2 -0
  36. package/dist/core/contexts/execution.d.mts +2 -0
  37. package/dist/core/contexts/execution.mjs +2 -0
  38. package/dist/core/contexts/execution.mjs.map +1 -0
  39. package/dist/core/contexts/index.cjs +1 -0
  40. package/dist/core/contexts/index.d.cts +5 -0
  41. package/dist/core/contexts/index.d.mts +5 -0
  42. package/dist/core/contexts/index.mjs +1 -0
  43. package/dist/core/contexts/meta.cjs +1 -0
  44. package/dist/core/contexts/meta.d.cts +2 -0
  45. package/dist/core/contexts/meta.d.mts +2 -0
  46. package/dist/core/contexts/meta.mjs +2 -0
  47. package/dist/core/contexts/meta.mjs.map +1 -0
  48. package/dist/core/contexts/schema.cjs +1 -0
  49. package/dist/core/contexts/schema.d.cts +2 -0
  50. package/dist/core/contexts/schema.d.mts +2 -0
  51. package/dist/core/contexts/schema.mjs +2 -0
  52. package/dist/core/contexts/schema.mjs.map +1 -0
  53. package/dist/core/contexts/session.cjs +1 -0
  54. package/dist/core/contexts/session.d.cts +2 -0
  55. package/dist/core/contexts/session.d.mts +2 -0
  56. package/dist/core/contexts/session.mjs +2 -0
  57. package/dist/core/contexts/session.mjs.map +1 -0
  58. package/dist/core/contexts/spec.cjs +1 -0
  59. package/dist/core/contexts/spec.d.cts +23 -0
  60. package/dist/core/contexts/spec.d.cts.map +1 -0
  61. package/dist/core/contexts/spec.d.mts +23 -0
  62. package/dist/core/contexts/spec.d.mts.map +1 -0
  63. package/dist/core/contexts/spec.mjs +2 -0
  64. package/dist/core/contexts/spec.mjs.map +1 -0
  65. package/dist/core/helpers/code.cjs +1 -0
  66. package/dist/core/helpers/code.d.cts +2 -0
  67. package/dist/core/helpers/code.d.mts +2 -0
  68. package/dist/core/helpers/code.mjs +2 -0
  69. package/dist/core/helpers/code.mjs.map +1 -0
  70. package/dist/core/helpers/index.cjs +1 -0
  71. package/dist/core/helpers/index.d.cts +2 -0
  72. package/dist/core/helpers/index.d.mts +2 -0
  73. package/dist/core/helpers/index.mjs +1 -0
  74. package/dist/core/index.cjs +1 -0
  75. package/dist/core/index.d.cts +10 -0
  76. package/dist/core/index.d.mts +10 -0
  77. package/dist/core/index.mjs +1 -0
  78. package/dist/core/types/components.cjs +0 -0
  79. package/dist/core/types/components.d.cts +2 -0
  80. package/dist/core/types/components.d.mts +2 -0
  81. package/dist/core/types/components.mjs +0 -0
  82. package/dist/core/types/index.cjs +1 -0
  83. package/dist/core/types/index.d.cts +2 -0
  84. package/dist/core/types/index.d.mts +2 -0
  85. package/dist/core/types/index.mjs +1 -0
  86. package/dist/execution-CqOWMsST.d.cts +24 -0
  87. package/dist/execution-CqOWMsST.d.cts.map +1 -0
  88. package/dist/execution-CqOWMsST.d.mts +24 -0
  89. package/dist/execution-CqOWMsST.d.mts.map +1 -0
  90. package/dist/index.cjs +47 -0
  91. package/dist/index.d.cts +22 -0
  92. package/dist/index.d.cts.map +1 -0
  93. package/dist/index.d.mts +22 -0
  94. package/dist/index.d.mts.map +1 -0
  95. package/dist/index.mjs +48 -0
  96. package/dist/index.mjs.map +1 -0
  97. package/dist/meta-CDUo2qw9.d.cts +24 -0
  98. package/dist/meta-CDUo2qw9.d.cts.map +1 -0
  99. package/dist/meta-CDUo2qw9.d.mts +24 -0
  100. package/dist/meta-CDUo2qw9.d.mts.map +1 -0
  101. package/dist/output-Cd9yv0DZ.d.cts +25 -0
  102. package/dist/output-Cd9yv0DZ.d.cts.map +1 -0
  103. package/dist/output-D_ovZIyg.d.mts +25 -0
  104. package/dist/output-D_ovZIyg.d.mts.map +1 -0
  105. package/dist/render-Bh6nE1bo.cjs +1 -0
  106. package/dist/render-UH3hN5fr.mjs +2 -0
  107. package/dist/render-UH3hN5fr.mjs.map +1 -0
  108. package/dist/render.cjs +1 -0
  109. package/dist/render.d.cts +22 -0
  110. package/dist/render.d.cts.map +1 -0
  111. package/dist/render.d.mts +22 -0
  112. package/dist/render.d.mts.map +1 -0
  113. package/dist/render.mjs +1 -0
  114. package/dist/schema-pTK0-GHm.d.cts +39 -0
  115. package/dist/schema-pTK0-GHm.d.cts.map +1 -0
  116. package/dist/schema-pTK0-GHm.d.mts +39 -0
  117. package/dist/schema-pTK0-GHm.d.mts.map +1 -0
  118. package/dist/session-CyeJNmog.d.cts +63 -0
  119. package/dist/session-CyeJNmog.d.cts.map +1 -0
  120. package/dist/session-CyeJNmog.d.mts +63 -0
  121. package/dist/session-CyeJNmog.d.mts.map +1 -0
  122. package/dist/single-line-comment-CLBiy5aI.d.mts +20 -0
  123. package/dist/single-line-comment-CLBiy5aI.d.mts.map +1 -0
  124. package/dist/single-line-comment-WhWXKvku.d.cts +20 -0
  125. package/dist/single-line-comment-WhWXKvku.d.cts.map +1 -0
  126. package/dist/source-file-CW1A6SJ9.d.cts +24 -0
  127. package/dist/source-file-CW1A6SJ9.d.cts.map +1 -0
  128. package/dist/source-file-Cn1xO9t5.d.mts +24 -0
  129. package/dist/source-file-Cn1xO9t5.d.mts.map +1 -0
  130. package/dist/source-file-K_2P7eFP.cjs +1 -0
  131. package/dist/source-file-t3itBybg.mjs +2 -0
  132. package/dist/source-file-t3itBybg.mjs.map +1 -0
  133. package/dist/spacing-CGrdAoZW.d.cts +21 -0
  134. package/dist/spacing-CGrdAoZW.d.cts.map +1 -0
  135. package/dist/spacing-CGrdAoZW.d.mts +21 -0
  136. package/dist/spacing-CGrdAoZW.d.mts.map +1 -0
  137. package/package.json +337 -0
@@ -0,0 +1,5 @@
1
+ import { n as OutputProps, t as Output } from "../../output-Cd9yv0DZ.cjs";
2
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-WhWXKvku.cjs";
3
+ import { n as SourceFileProps, t as SourceFile } from "../../source-file-CW1A6SJ9.cjs";
4
+ import { n as SpacingProps, t as Spacing } from "../../spacing-CGrdAoZW.cjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
@@ -0,0 +1,5 @@
1
+ import { n as OutputProps, t as Output } from "../../output-D_ovZIyg.mjs";
2
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-CLBiy5aI.mjs";
3
+ import { n as SourceFileProps, t as SourceFile } from "../../source-file-Cn1xO9t5.mjs";
4
+ import { n as SpacingProps, t as Spacing } from "../../spacing-CGrdAoZW.mjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
@@ -0,0 +1 @@
1
+ import{t as e}from"../../source-file-t3itBybg.mjs";import{Output as t}from"./output.mjs";import{SingleLineComment as n}from"./single-line-comment.mjs";import{Spacing as r}from"./spacing.mjs";export{t as Output,n as SingleLineComment,e as SourceFile,r as Spacing};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../contexts/execution.cjs"),t=require("../contexts/meta.cjs"),n=require("../contexts/spec.cjs");let r=require("@alloy-js/core/jsx-runtime"),i=require("@alloy-js/core");function a(a){let[{children:o,context:s,spec:c,meta:l},u]=(0,i.splitProps)(a,[`children`,`context`,`spec`,`meta`]),d=(0,i.ref)(s),f=(0,i.ref)(l??{}),p=(0,i.ref)(c);return(0,r.createComponent)(e.ExecutionContext.Provider,{get value(){return d.value},get children(){return(0,r.createComponent)(n.SpecContext.Provider,{get value(){return p.value},get children(){return(0,r.createComponent)(t.MetaContext.Provider,{get value(){return f.value},get children(){return(0,r.createComponent)(i.Output,(0,r.mergeProps)(u,{get basePath(){return d.value.cwd},children:o}))}})}})}})}exports.Output=a;
@@ -0,0 +1,2 @@
1
+ import { n as OutputProps, t as Output } from "../../output-Cd9yv0DZ.cjs";
2
+ export { Output, OutputProps };
@@ -0,0 +1,2 @@
1
+ import { n as OutputProps, t as Output } from "../../output-D_ovZIyg.mjs";
2
+ export { Output, OutputProps };
@@ -0,0 +1,2 @@
1
+ import{ExecutionContext as e}from"../contexts/execution.mjs";import{MetaContext as t}from"../contexts/meta.mjs";import{SpecContext as n}from"../contexts/spec.mjs";import{createComponent as r,mergeProps as i}from"@alloy-js/core/jsx-runtime";import{Output as a,ref as o,splitProps as s}from"@alloy-js/core";function c(c){let[{children:l,context:u,spec:d,meta:f},p]=s(c,[`children`,`context`,`spec`,`meta`]),m=o(u),h=o(f??{}),g=o(d);return r(e.Provider,{get value(){return m.value},get children(){return r(n.Provider,{get value(){return g.value},get children(){return r(t.Provider,{get value(){return h.value},get children(){return r(a,i(p,{get basePath(){return m.value.cwd},children:l}))}})}})}})}export{c as Output};
2
+ //# sourceMappingURL=output.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core/jsx-runtime"),t=require("@alloy-js/core");function n(n){let{variant:r=`double-slash`,children:i}=n,a=r===`slash-star`?`/* `:r===`slash-star-star`?`/** `:r===`triple-slash`?`/// `:r===`markdown`?`<!-- `:r===`yaml`||r===`hcl`?`# `:`// `;return[a,(0,e.createIntrinsic)(`align`,{string:a,get children(){return[(0,e.createComponent)(t.Prose,{children:i}),r===`slash-star`||r===`slash-star-star`?` */ `:r===`markdown`?` -->`:``]}})]}exports.SingleLineComment=n;
@@ -0,0 +1,2 @@
1
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-WhWXKvku.cjs";
2
+ export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant };
@@ -0,0 +1,2 @@
1
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-CLBiy5aI.mjs";
2
+ export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant };
@@ -0,0 +1,2 @@
1
+ import{createComponent as e,createIntrinsic as t}from"@alloy-js/core/jsx-runtime";import{Prose as n}from"@alloy-js/core";function r(r){let{variant:i=`double-slash`,children:a}=r,o=i===`slash-star`?`/* `:i===`slash-star-star`?`/** `:i===`triple-slash`?`/// `:i===`markdown`?`<!-- `:i===`yaml`||i===`hcl`?`# `:`// `;return[o,t(`align`,{string:o,get children(){return[e(n,{children:a}),i===`slash-star`||i===`slash-star-star`?` */ `:i===`markdown`?` -->`:``]}})]}export{r as SingleLineComment};
2
+ //# sourceMappingURL=single-line-comment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-line-comment.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../source-file-K_2P7eFP.cjs");exports.SourceFile=e.t;
@@ -0,0 +1,2 @@
1
+ import { n as SourceFileProps, t as SourceFile } from "../../source-file-CW1A6SJ9.cjs";
2
+ export { SourceFile, SourceFileProps };
@@ -0,0 +1,2 @@
1
+ import { n as SourceFileProps, t as SourceFile } from "../../source-file-Cn1xO9t5.mjs";
2
+ export { SourceFile, SourceFileProps };
@@ -0,0 +1 @@
1
+ import{t as e}from"../../source-file-t3itBybg.mjs";export{e as SourceFile};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core/jsx-runtime"),t=require("@alloy-js/core");function n({scale:n=1}){return(0,e.createComponent)(t.For,{get each(){return Array.from({length:n})},children:t=>[(0,e.createIntrinsic)(`hbr`,{}),(0,e.createIntrinsic)(`hbr`,{})]})}exports.Spacing=n;
@@ -0,0 +1,2 @@
1
+ import { n as SpacingProps, t as Spacing } from "../../spacing-CGrdAoZW.cjs";
2
+ export { Spacing, SpacingProps };
@@ -0,0 +1,2 @@
1
+ import { n as SpacingProps, t as Spacing } from "../../spacing-CGrdAoZW.mjs";
2
+ export { Spacing, SpacingProps };
@@ -0,0 +1,2 @@
1
+ import{createComponent as e,createIntrinsic as t}from"@alloy-js/core/jsx-runtime";import{For as n}from"@alloy-js/core";function r({scale:r=1}){return e(n,{get each(){return Array.from({length:r})},children:e=>[t(`hbr`,{}),t(`hbr`,{})]})}export{r as Spacing};
2
+ //# sourceMappingURL=spacing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return n}function r(){return(0,e.useContext)(t)}exports.ExecutionContext=t,exports.useExecution=n,exports.useExecutionSafe=r;
@@ -0,0 +1,2 @@
1
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-CqOWMsST.cjs";
2
+ export { ExecutionContext, useExecution, useExecutionSafe };
@@ -0,0 +1,2 @@
1
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-CqOWMsST.mjs";
2
+ export { ExecutionContext, useExecution, useExecutionSafe };
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return e}function i(){return t(n)}export{n as ExecutionContext,r as useExecution,i as useExecutionSafe};
2
+ //# sourceMappingURL=execution.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +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.useDevice=r.useDevice,exports.useDeviceSafe=r.useDeviceSafe,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,exports.useTenant=r.useTenant,exports.useTenantSafe=r.useTenantSafe,exports.useUser=r.useUser,exports.useUserSafe=r.useUserSafe;
@@ -0,0 +1,5 @@
1
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-CqOWMsST.cjs";
2
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-CDUo2qw9.cjs";
3
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-pTK0-GHm.cjs";
4
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../../session-CyeJNmog.cjs";
5
+ export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext, useDevice, useDeviceSafe, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +1,5 @@
1
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../../execution-CqOWMsST.mjs";
2
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-CDUo2qw9.mjs";
3
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-pTK0-GHm.mjs";
4
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../../session-CyeJNmog.mjs";
5
+ export { ExecutionContext, MetaContext, SchemaContext, SchemaPropertyContext, SessionContext, useDevice, useDeviceSafe, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +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,useDevice as p,useDeviceSafe as m,useSession as h,useSessionSafe as g,useTenant as _,useTenantSafe as v,useUser as y,useUserSafe as b}from"./session.mjs";export{e as ExecutionContext,r as MetaContext,o as SchemaContext,s as SchemaPropertyContext,f as SessionContext,p as useDevice,m as useDeviceSafe,t as useExecution,n as useExecutionSafe,i as useMeta,a as useMetaSafe,c as useSchema,l as useSchemaProperty,u as useSchemaPropertySafe,d as useSchemaSafe,h as useSession,g as useSessionSafe,_ as useTenant,v as useTenantSafe,y as useUser,b as useUserSafe};
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return n}function r(){return(0,e.useContext)(t)}exports.MetaContext=t,exports.useMeta=n,exports.useMetaSafe=r;
@@ -0,0 +1,2 @@
1
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-CDUo2qw9.cjs";
2
+ export { MetaContext, useMeta, useMetaSafe };
@@ -0,0 +1,2 @@
1
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../../meta-CDUo2qw9.mjs";
2
+ export { MetaContext, useMeta, useMetaSafe };
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return e}function i(){return t(n)}export{n as MetaContext,r as useMeta,i as useMetaSafe};
2
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +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 `@powerlines/plugin-alloy`.");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 `@powerlines/plugin-alloy`.");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;
@@ -0,0 +1,2 @@
1
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-pTK0-GHm.cjs";
2
+ export { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe };
@@ -0,0 +1,2 @@
1
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../../schema-pTK0-GHm.mjs";
2
+ export { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe };
@@ -0,0 +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 `@powerlines/plugin-alloy`.");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 `@powerlines/plugin-alloy`.");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
+ //# sourceMappingURL=schema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return n}function r(){return(0,e.useContext)(t)}function i(){return n().device}function a(){return r()?.device}function o(){return n().user}function s(){return r()?.user}function c(){return o().tenant}function l(){return s()?.tenant}exports.SessionContext=t,exports.useDevice=i,exports.useDeviceSafe=a,exports.useSession=n,exports.useSessionSafe=r,exports.useTenant=c,exports.useTenantSafe=l,exports.useUser=o,exports.useUserSafe=s;
@@ -0,0 +1,2 @@
1
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../../session-CyeJNmog.cjs";
2
+ export { SessionContext, useDevice, useDeviceSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +1,2 @@
1
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../../session-CyeJNmog.mjs";
2
+ export { SessionContext, useDevice, useDeviceSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return e}function i(){return t(n)}function a(){return r().device}function o(){return i()?.device}function s(){return r().user}function c(){return i()?.user}function l(){return s().tenant}function u(){return c()?.tenant}export{n as SessionContext,a as useDevice,o as useDeviceSafe,r as useSession,i as useSessionSafe,l as useTenant,u as useTenantSafe,s as useUser,c as useUserSafe};
2
+ //# sourceMappingURL=session.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return n}function r(){return(0,e.useContext)(t)}exports.SpecContext=t,exports.useSpec=n,exports.useSpecSafe=r;
@@ -0,0 +1,23 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+
3
+ //#region src/core/contexts/spec.d.ts
4
+ /**
5
+ * The Specification context used in template rendering.
6
+ */
7
+ declare const SpecContext: ComponentContext<any>;
8
+ /**
9
+ * Hook to access the {@link SpecContext | Specification context}.
10
+ *
11
+ * @returns The Specification context.
12
+ * @throws An error if the Specification context is not set.
13
+ */
14
+ declare function useSpec(): any;
15
+ /**
16
+ * Hook to safely access the {@link SpecContext | Specification context}.
17
+ *
18
+ * @returns The Specification context or undefined if not set.
19
+ */
20
+ declare function useSpecSafe(): any | undefined;
21
+ //#endregion
22
+ export { SpecContext, useSpec, useSpecSafe };
23
+ //# sourceMappingURL=spec.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.d.cts","names":[],"sources":["../../../src/core/contexts/spec.ts"],"mappings":";;;;;AAwBA;cAAa,WAAA,EAAa,gBAAgB;;;AAAA;AAS1C;;;iBAAgB,OAAA;AAAO;AAgBvB;;;;AAhBuB,iBAgBP,WAAA"}
@@ -0,0 +1,23 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+
3
+ //#region src/core/contexts/spec.d.ts
4
+ /**
5
+ * The Specification context used in template rendering.
6
+ */
7
+ declare const SpecContext: ComponentContext<any>;
8
+ /**
9
+ * Hook to access the {@link SpecContext | Specification context}.
10
+ *
11
+ * @returns The Specification context.
12
+ * @throws An error if the Specification context is not set.
13
+ */
14
+ declare function useSpec(): any;
15
+ /**
16
+ * Hook to safely access the {@link SpecContext | Specification context}.
17
+ *
18
+ * @returns The Specification context or undefined if not set.
19
+ */
20
+ declare function useSpecSafe(): any | undefined;
21
+ //#endregion
22
+ export { SpecContext, useSpec, useSpecSafe };
23
+ //# sourceMappingURL=spec.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.d.mts","names":[],"sources":["../../../src/core/contexts/spec.ts"],"mappings":""}
@@ -0,0 +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 `@powerlines/plugin-alloy`.");return e}function i(){return t(n)}export{n as SpecContext,r as useSpec,i as useSpecSafe};
2
+ //# sourceMappingURL=spec.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@alloy-js/core");function t(t,...n){if(t.filter(e=>e.trim()).length===0&&n.length===0)throw Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");return(0,e.code)(t,...n)}exports.code=t;
@@ -0,0 +1,2 @@
1
+ import { t as code } from "../../code-DwEnLBw3.cjs";
2
+ export { code };
@@ -0,0 +1,2 @@
1
+ import { t as code } from "../../code-Cw63m9E5.mjs";
2
+ export { code };
@@ -0,0 +1,2 @@
1
+ import{code as e}from"@alloy-js/core";function t(t,...n){if(t.filter(e=>e.trim()).length===0&&n.length===0)throw Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");return e(t,...n)}export{t as code};
2
+ //# sourceMappingURL=code.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./code.cjs");exports.code=e.code;
@@ -0,0 +1,2 @@
1
+ import { t as code } from "../../code-DwEnLBw3.cjs";
2
+ export { code };
@@ -0,0 +1,2 @@
1
+ import { t as code } from "../../code-Cw63m9E5.mjs";
2
+ export { code };
@@ -0,0 +1 @@
1
+ import{code as e}from"./code.mjs";export{e as code};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../source-file-K_2P7eFP.cjs"),t=require("./contexts/execution.cjs"),n=require("./contexts/meta.cjs"),r=require("./components/output.cjs"),i=require("./components/single-line-comment.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=t.ExecutionContext,exports.MetaContext=n.MetaContext,exports.Output=r.Output,exports.SchemaContext=o.SchemaContext,exports.SchemaPropertyContext=o.SchemaPropertyContext,exports.SessionContext=s.SessionContext,exports.SingleLineComment=i.SingleLineComment,exports.SourceFile=e.t,exports.Spacing=a.Spacing,exports.code=c.code,exports.useDevice=s.useDevice,exports.useDeviceSafe=s.useDeviceSafe,exports.useExecution=t.useExecution,exports.useExecutionSafe=t.useExecutionSafe,exports.useMeta=n.useMeta,exports.useMetaSafe=n.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,exports.useTenant=s.useTenant,exports.useTenantSafe=s.useTenantSafe,exports.useUser=s.useUser,exports.useUserSafe=s.useUserSafe;
@@ -0,0 +1,10 @@
1
+ import { n as OutputProps, t as Output } from "../output-Cd9yv0DZ.cjs";
2
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-WhWXKvku.cjs";
3
+ import { n as SourceFileProps, t as SourceFile } from "../source-file-CW1A6SJ9.cjs";
4
+ import { n as SpacingProps, t as Spacing } from "../spacing-CGrdAoZW.cjs";
5
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../execution-CqOWMsST.cjs";
6
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../meta-CDUo2qw9.cjs";
7
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../schema-pTK0-GHm.cjs";
8
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../session-CyeJNmog.cjs";
9
+ import { t as code } from "../code-DwEnLBw3.cjs";
10
+ export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useDevice, useDeviceSafe, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +1,10 @@
1
+ import { n as OutputProps, t as Output } from "../output-D_ovZIyg.mjs";
2
+ import { n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-CLBiy5aI.mjs";
3
+ import { n as SourceFileProps, t as SourceFile } from "../source-file-Cn1xO9t5.mjs";
4
+ import { n as SpacingProps, t as Spacing } from "../spacing-CGrdAoZW.mjs";
5
+ import { n as useExecution, r as useExecutionSafe, t as ExecutionContext } from "../execution-CqOWMsST.mjs";
6
+ import { n as useMeta, r as useMetaSafe, t as MetaContext } from "../meta-CDUo2qw9.mjs";
7
+ import { a as useSchemaPropertySafe, i as useSchemaProperty, n as SchemaPropertyContext, o as useSchemaSafe, r as useSchema, t as SchemaContext } from "../schema-pTK0-GHm.mjs";
8
+ import { a as useSessionSafe, c as useUser, i as useSession, l as useUserSafe, n as useDevice, o as useTenant, r as useDeviceSafe, s as useTenantSafe, t as SessionContext } from "../session-CyeJNmog.mjs";
9
+ import { t as code } from "../code-Cw63m9E5.mjs";
10
+ export { ExecutionContext, MetaContext, Output, OutputProps, SchemaContext, SchemaPropertyContext, SessionContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useDevice, useDeviceSafe, useExecution, useExecutionSafe, useMeta, useMetaSafe, useSchema, useSchemaProperty, useSchemaPropertySafe, useSchemaSafe, useSession, useSessionSafe, useTenant, useTenantSafe, useUser, useUserSafe };
@@ -0,0 +1 @@
1
+ import{t as e}from"../source-file-t3itBybg.mjs";import{ExecutionContext as t,useExecution as n,useExecutionSafe as r}from"./contexts/execution.mjs";import{MetaContext as i,useMeta as a,useMetaSafe as o}from"./contexts/meta.mjs";import{Output as s}from"./components/output.mjs";import{SingleLineComment as c}from"./components/single-line-comment.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,useDevice as _,useDeviceSafe as v,useSession as y,useSessionSafe as b,useTenant as x,useTenantSafe as S,useUser as C,useUserSafe as w}from"./contexts/session.mjs";import"./contexts/index.mjs";import{code as T}from"./helpers/code.mjs";import"./helpers/index.mjs";export{t as ExecutionContext,i as MetaContext,s as Output,u as SchemaContext,d as SchemaPropertyContext,g as SessionContext,c as SingleLineComment,e as SourceFile,l as Spacing,T as code,_ as useDevice,v as useDeviceSafe,n as useExecution,r as useExecutionSafe,a as useMeta,o as useMetaSafe,f as useSchema,p as useSchemaProperty,m as useSchemaPropertySafe,h as useSchemaSafe,y as useSession,b as useSessionSafe,x as useTenant,S as useTenantSafe,C as useUser,w as useUserSafe};
File without changes
@@ -0,0 +1,2 @@
1
+ import { a as SourceFileHeaderProps, i as OutputFile, n as ComponentPropsWithChildren, r as OutputDirectory, t as ComponentProps } from "../../components-Lfo1yjgU.cjs";
2
+ export { ComponentProps, ComponentPropsWithChildren, OutputDirectory, OutputFile, SourceFileHeaderProps };
@@ -0,0 +1,2 @@
1
+ import { a as SourceFileHeaderProps, i as OutputFile, n as ComponentPropsWithChildren, r as OutputDirectory, t as ComponentProps } from "../../components-Lfo1yjgU.mjs";
2
+ export { ComponentProps, ComponentPropsWithChildren, OutputDirectory, OutputFile, SourceFileHeaderProps };
File without changes
@@ -0,0 +1 @@
1
+ require("./components.cjs");
@@ -0,0 +1,2 @@
1
+ import { a as SourceFileHeaderProps, i as OutputFile, n as ComponentPropsWithChildren, r as OutputDirectory, t as ComponentProps } from "../../components-Lfo1yjgU.cjs";
2
+ export { ComponentProps, ComponentPropsWithChildren, OutputDirectory, OutputFile, SourceFileHeaderProps };
@@ -0,0 +1,2 @@
1
+ import { a as SourceFileHeaderProps, i as OutputFile, n as ComponentPropsWithChildren, r as OutputDirectory, t as ComponentProps } from "../../components-Lfo1yjgU.mjs";
2
+ export { ComponentProps, ComponentPropsWithChildren, OutputDirectory, OutputFile, SourceFileHeaderProps };
@@ -0,0 +1 @@
1
+ import"./components.mjs";
@@ -0,0 +1,24 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { ExecutionContext } from "@power-plant/core";
3
+
4
+ //#region src/core/contexts/execution.d.ts
5
+ /**
6
+ * The Execution context used in template rendering.
7
+ */
8
+ declare const ExecutionContext$1: ComponentContext<ExecutionContext<any, any, any>>;
9
+ /**
10
+ * Hook to access the {@link ExecutionContext | Execution context}.
11
+ *
12
+ * @returns The Execution context.
13
+ * @throws An error if the execution context is not set.
14
+ */
15
+ declare function useExecution(): ExecutionContext<any, any, any>;
16
+ /**
17
+ * Hook to safely access the {@link ExecutionContext | Execution context}.
18
+ *
19
+ * @returns The Execution context or undefined if not set.
20
+ */
21
+ declare function useExecutionSafe(): ExecutionContext<any, any, any> | undefined;
22
+ //#endregion
23
+ export { useExecution as n, useExecutionSafe as r, ExecutionContext$1 as t };
24
+ //# sourceMappingURL=execution-CqOWMsST.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-CqOWMsST.d.cts","names":[],"sources":["../src/core/contexts/execution.ts"],"mappings":";;;;;;AAyBA;cAAa,kBAAA,EAAkB,gBAAgB,CAC7C,gBAAA;;;AAAoB;AAStB;;;iBAAgB,YAAA,IAAgB,gBAAoB;AAAA;AAgBpD;;;;AAhBoD,iBAgBpC,gBAAA,IACd,gBAAoB"}
@@ -0,0 +1,24 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { ExecutionContext } from "@power-plant/core";
3
+
4
+ //#region src/core/contexts/execution.d.ts
5
+ /**
6
+ * The Execution context used in template rendering.
7
+ */
8
+ declare const ExecutionContext$1: ComponentContext<ExecutionContext<any, any, any>>;
9
+ /**
10
+ * Hook to access the {@link ExecutionContext | Execution context}.
11
+ *
12
+ * @returns The Execution context.
13
+ * @throws An error if the execution context is not set.
14
+ */
15
+ declare function useExecution(): ExecutionContext<any, any, any>;
16
+ /**
17
+ * Hook to safely access the {@link ExecutionContext | Execution context}.
18
+ *
19
+ * @returns The Execution context or undefined if not set.
20
+ */
21
+ declare function useExecutionSafe(): ExecutionContext<any, any, any> | undefined;
22
+ //#endregion
23
+ export { useExecution as n, useExecutionSafe as r, ExecutionContext$1 as t };
24
+ //# sourceMappingURL=execution-CqOWMsST.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-CqOWMsST.d.mts","names":[],"sources":["../src/core/contexts/execution.ts"],"mappings":""}