@powerlines/plugin-alloy 0.25.15 → 0.25.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/components/output.mjs +1 -2
- package/dist/core/components/single-line-comment.mjs +1 -2
- package/dist/core/components/source-file.mjs +1 -2
- package/dist/core/components/spacing.mjs +1 -2
- package/dist/core/contexts/context.mjs +1 -2
- package/dist/core/contexts/meta.mjs +1 -2
- package/dist/core/contexts/reflection.mjs +1 -2
- package/dist/core/helpers/code.mjs +1 -2
- package/dist/helpers/capnp.mjs +1 -2
- package/dist/helpers/create-builtin.mjs +1 -2
- package/dist/helpers/refkey.mjs +1 -2
- package/dist/helpers/typescript.mjs +1 -2
- package/dist/index.mjs +1 -2
- package/dist/markdown/components/front-matter.mjs +1 -2
- package/dist/markdown/components/markdown-file.mjs +1 -2
- package/dist/markdown/components/markdown-table.mjs +1 -2
- package/dist/markdown/contexts/markdown-table.mjs +1 -2
- package/dist/render.mjs +1 -2
- package/dist/typescript/components/builtin-file.mjs +1 -2
- package/dist/typescript/components/class-declaration.mjs +1 -2
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -2
- package/dist/typescript/components/entry-file.mjs +1 -2
- package/dist/typescript/components/infrastructure-file.mjs +1 -2
- package/dist/typescript/components/interface-declaration.mjs +1 -2
- package/dist/typescript/components/object-declaration.mjs +1 -2
- package/dist/typescript/components/property-name.mjs +1 -2
- package/dist/typescript/components/record-expression.mjs +1 -2
- package/dist/typescript/components/tsdoc-reflection.mjs +1 -2
- package/dist/typescript/components/tsdoc.mjs +1 -2
- package/dist/typescript/components/type-declaration.mjs +1 -2
- package/dist/typescript/components/type-parameters.mjs +1 -2
- package/dist/typescript/components/typescript-file.mjs +1 -2
- package/dist/typescript/contexts/lexical-scope.mjs +1 -2
- package/dist/typescript/contexts/member-scope.mjs +1 -2
- package/dist/typescript/helpers/get-call-signature-props.mjs +1 -2
- package/dist/typescript/helpers/utilities.mjs +1 -2
- package/dist/yaml/components/yaml-file.mjs +1 -2
- package/package.json +18 -18
- package/dist/core/components/index.d.cts +0 -5
- package/dist/core/components/index.d.mts +0 -5
- package/dist/core/components/output.d.cts +0 -25
- package/dist/core/components/output.d.cts.map +0 -1
- package/dist/core/components/output.d.mts +0 -25
- package/dist/core/components/output.d.mts.map +0 -1
- package/dist/core/components/output.mjs.map +0 -1
- package/dist/core/components/single-line-comment.d.cts +0 -23
- package/dist/core/components/single-line-comment.d.cts.map +0 -1
- package/dist/core/components/single-line-comment.d.mts +0 -23
- package/dist/core/components/single-line-comment.d.mts.map +0 -1
- package/dist/core/components/single-line-comment.mjs.map +0 -1
- package/dist/core/components/source-file.d.cts +0 -33
- package/dist/core/components/source-file.d.cts.map +0 -1
- package/dist/core/components/source-file.d.mts +0 -33
- package/dist/core/components/source-file.d.mts.map +0 -1
- package/dist/core/components/source-file.mjs.map +0 -1
- package/dist/core/components/spacing.d.cts +0 -24
- package/dist/core/components/spacing.d.cts.map +0 -1
- package/dist/core/components/spacing.d.mts +0 -24
- package/dist/core/components/spacing.d.mts.map +0 -1
- package/dist/core/components/spacing.mjs.map +0 -1
- package/dist/core/contexts/context.d.cts +0 -30
- package/dist/core/contexts/context.d.cts.map +0 -1
- package/dist/core/contexts/context.d.mts +0 -30
- package/dist/core/contexts/context.d.mts.map +0 -1
- package/dist/core/contexts/context.mjs.map +0 -1
- package/dist/core/contexts/index.d.cts +0 -4
- package/dist/core/contexts/index.d.mts +0 -4
- package/dist/core/contexts/meta.d.cts +0 -48
- package/dist/core/contexts/meta.d.cts.map +0 -1
- package/dist/core/contexts/meta.d.mts +0 -48
- package/dist/core/contexts/meta.d.mts.map +0 -1
- package/dist/core/contexts/meta.mjs.map +0 -1
- package/dist/core/contexts/reflection.d.cts +0 -53
- package/dist/core/contexts/reflection.d.cts.map +0 -1
- package/dist/core/contexts/reflection.d.mts +0 -53
- package/dist/core/contexts/reflection.d.mts.map +0 -1
- package/dist/core/contexts/reflection.mjs.map +0 -1
- package/dist/core/helpers/code.d.cts +0 -30
- package/dist/core/helpers/code.d.cts.map +0 -1
- package/dist/core/helpers/code.d.mts +0 -30
- package/dist/core/helpers/code.d.mts.map +0 -1
- package/dist/core/helpers/code.mjs.map +0 -1
- package/dist/core/helpers/index.d.cts +0 -2
- package/dist/core/helpers/index.d.mts +0 -2
- package/dist/core/index.d.cts +0 -12
- package/dist/core/index.d.mts +0 -12
- package/dist/helpers/capnp.d.cts +0 -88
- package/dist/helpers/capnp.d.cts.map +0 -1
- package/dist/helpers/capnp.d.mts +0 -88
- package/dist/helpers/capnp.d.mts.map +0 -1
- package/dist/helpers/capnp.mjs.map +0 -1
- package/dist/helpers/create-builtin.d.cts +0 -16
- package/dist/helpers/create-builtin.d.cts.map +0 -1
- package/dist/helpers/create-builtin.d.mts +0 -16
- package/dist/helpers/create-builtin.d.mts.map +0 -1
- package/dist/helpers/create-builtin.mjs.map +0 -1
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/refkey.d.cts +0 -14
- package/dist/helpers/refkey.d.cts.map +0 -1
- package/dist/helpers/refkey.d.mts +0 -14
- package/dist/helpers/refkey.d.mts.map +0 -1
- package/dist/helpers/refkey.mjs.map +0 -1
- package/dist/helpers/typescript.d.cts +0 -26
- package/dist/helpers/typescript.d.cts.map +0 -1
- package/dist/helpers/typescript.d.mts +0 -26
- package/dist/helpers/typescript.d.mts.map +0 -1
- package/dist/helpers/typescript.mjs.map +0 -1
- package/dist/index.d.cts +0 -19
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -19
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/markdown/components/front-matter.d.cts +0 -16
- package/dist/markdown/components/front-matter.d.cts.map +0 -1
- package/dist/markdown/components/front-matter.d.mts +0 -16
- package/dist/markdown/components/front-matter.d.mts.map +0 -1
- package/dist/markdown/components/front-matter.mjs.map +0 -1
- package/dist/markdown/components/index.d.cts +0 -4
- package/dist/markdown/components/index.d.mts +0 -4
- package/dist/markdown/components/markdown-file.d.cts +0 -29
- package/dist/markdown/components/markdown-file.d.cts.map +0 -1
- package/dist/markdown/components/markdown-file.d.mts +0 -29
- package/dist/markdown/components/markdown-file.d.mts.map +0 -1
- package/dist/markdown/components/markdown-file.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.d.cts +0 -28
- package/dist/markdown/components/markdown-table.d.cts.map +0 -1
- package/dist/markdown/components/markdown-table.d.mts +0 -28
- package/dist/markdown/components/markdown-table.d.mts.map +0 -1
- package/dist/markdown/components/markdown-table.mjs.map +0 -1
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/markdown-table.d.cts +0 -38
- package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
- package/dist/markdown/contexts/markdown-table.d.mts +0 -38
- package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
- package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
- package/dist/markdown/index.d.cts +0 -7
- package/dist/markdown/index.d.mts +0 -7
- package/dist/render.d.cts +0 -39
- package/dist/render.d.cts.map +0 -1
- package/dist/render.d.mts +0 -39
- package/dist/render.d.mts.map +0 -1
- package/dist/render.mjs.map +0 -1
- package/dist/types/components.d.cts +0 -142
- package/dist/types/components.d.cts.map +0 -1
- package/dist/types/components.d.mts +0 -142
- package/dist/types/components.d.mts.map +0 -1
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/plugin.d.cts +0 -39
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -39
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/typescript/components/builtin-file.d.cts +0 -35
- package/dist/typescript/components/builtin-file.d.cts.map +0 -1
- package/dist/typescript/components/builtin-file.d.mts +0 -35
- package/dist/typescript/components/builtin-file.d.mts.map +0 -1
- package/dist/typescript/components/builtin-file.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.d.cts +0 -145
- package/dist/typescript/components/class-declaration.d.cts.map +0 -1
- package/dist/typescript/components/class-declaration.d.mts +0 -145
- package/dist/typescript/components/class-declaration.d.mts.map +0 -1
- package/dist/typescript/components/class-declaration.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -33
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -33
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
- package/dist/typescript/components/entry-file.d.cts +0 -28
- package/dist/typescript/components/entry-file.d.cts.map +0 -1
- package/dist/typescript/components/entry-file.d.mts +0 -28
- package/dist/typescript/components/entry-file.d.mts.map +0 -1
- package/dist/typescript/components/entry-file.mjs.map +0 -1
- package/dist/typescript/components/index.d.cts +0 -15
- package/dist/typescript/components/index.d.mts +0 -15
- package/dist/typescript/components/infrastructure-file.d.cts +0 -21
- package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
- package/dist/typescript/components/infrastructure-file.d.mts +0 -21
- package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
- package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
- package/dist/typescript/components/interface-declaration.d.cts +0 -86
- package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
- package/dist/typescript/components/interface-declaration.d.mts +0 -86
- package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
- package/dist/typescript/components/interface-declaration.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.d.cts +0 -30
- package/dist/typescript/components/object-declaration.d.cts.map +0 -1
- package/dist/typescript/components/object-declaration.d.mts +0 -30
- package/dist/typescript/components/object-declaration.d.mts.map +0 -1
- package/dist/typescript/components/object-declaration.mjs.map +0 -1
- package/dist/typescript/components/property-name.d.cts +0 -24
- package/dist/typescript/components/property-name.d.cts.map +0 -1
- package/dist/typescript/components/property-name.d.mts +0 -24
- package/dist/typescript/components/property-name.d.mts.map +0 -1
- package/dist/typescript/components/property-name.mjs.map +0 -1
- package/dist/typescript/components/record-expression.d.cts +0 -13
- package/dist/typescript/components/record-expression.d.cts.map +0 -1
- package/dist/typescript/components/record-expression.d.mts +0 -13
- package/dist/typescript/components/record-expression.d.mts.map +0 -1
- package/dist/typescript/components/record-expression.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -44
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -44
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.d.cts +0 -164
- package/dist/typescript/components/tsdoc.d.cts.map +0 -1
- package/dist/typescript/components/tsdoc.d.mts +0 -164
- package/dist/typescript/components/tsdoc.d.mts.map +0 -1
- package/dist/typescript/components/tsdoc.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.d.cts +0 -18
- package/dist/typescript/components/type-declaration.d.cts.map +0 -1
- package/dist/typescript/components/type-declaration.d.mts +0 -18
- package/dist/typescript/components/type-declaration.d.mts.map +0 -1
- package/dist/typescript/components/type-declaration.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.d.cts +0 -24
- package/dist/typescript/components/type-parameters.d.cts.map +0 -1
- package/dist/typescript/components/type-parameters.d.mts +0 -24
- package/dist/typescript/components/type-parameters.d.mts.map +0 -1
- package/dist/typescript/components/type-parameters.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.d.cts +0 -50
- package/dist/typescript/components/typescript-file.d.cts.map +0 -1
- package/dist/typescript/components/typescript-file.d.mts +0 -50
- package/dist/typescript/components/typescript-file.d.mts.map +0 -1
- package/dist/typescript/components/typescript-file.mjs.map +0 -1
- package/dist/typescript/contexts/index.d.cts +0 -2
- package/dist/typescript/contexts/index.d.mts +0 -2
- package/dist/typescript/contexts/lexical-scope.d.cts +0 -17
- package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +0 -17
- package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.d.cts +0 -20
- package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
- package/dist/typescript/contexts/member-scope.d.mts +0 -20
- package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
- package/dist/typescript/contexts/member-scope.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -15
- package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -15
- package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
- package/dist/typescript/helpers/index.d.cts +0 -3
- package/dist/typescript/helpers/index.d.mts +0 -3
- package/dist/typescript/helpers/utilities.d.cts +0 -11
- package/dist/typescript/helpers/utilities.d.cts.map +0 -1
- package/dist/typescript/helpers/utilities.d.mts +0 -11
- package/dist/typescript/helpers/utilities.d.mts.map +0 -1
- package/dist/typescript/helpers/utilities.mjs.map +0 -1
- package/dist/typescript/index.d.cts +0 -21
- package/dist/typescript/index.d.mts +0 -21
- package/dist/yaml/components/index.d.cts +0 -2
- package/dist/yaml/components/index.d.mts +0 -2
- package/dist/yaml/components/yaml-file.d.cts +0 -34
- package/dist/yaml/components/yaml-file.d.cts.map +0 -1
- package/dist/yaml/components/yaml-file.d.mts +0 -34
- package/dist/yaml/components/yaml-file.d.mts.map +0 -1
- package/dist/yaml/components/yaml-file.mjs.map +0 -1
- package/dist/yaml/index.d.cts +0 -3
- package/dist/yaml/index.d.mts +0 -3
|
@@ -33,5 +33,4 @@ function usePowerlines() {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
37
|
-
//# sourceMappingURL=context.mjs.map
|
|
36
|
+
export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -57,5 +57,4 @@ function useReflectionParameter() {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
|
-
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
61
|
-
//# sourceMappingURL=reflection.mjs.map
|
|
60
|
+
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
package/dist/helpers/capnp.mjs
CHANGED
|
@@ -256,5 +256,4 @@ function generateCapnpPrimitive(type) {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
//#endregion
|
|
259
|
-
export { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
|
260
|
-
//# sourceMappingURL=capnp.mjs.map
|
|
259
|
+
export { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/refkey.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -95,5 +95,4 @@ function MarkdownTableColumnHeader(props) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
//#endregion
|
|
98
|
-
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
99
|
-
//# sourceMappingURL=markdown-table.mjs.map
|
|
98
|
+
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
@@ -30,5 +30,4 @@ function useMarkdownTable() {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
export { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
34
|
-
//# sourceMappingURL=markdown-table.mjs.map
|
|
33
|
+
export { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
package/dist/render.mjs
CHANGED
|
@@ -296,5 +296,4 @@ function ClassMethod(props) {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
//#endregion
|
|
299
|
-
export { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet };
|
|
300
|
-
//# sourceMappingURL=class-declaration.mjs.map
|
|
299
|
+
export { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet };
|
|
@@ -221,5 +221,4 @@ function InterfaceDeclarationProperty(props) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
//#endregion
|
|
224
|
-
export { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember };
|
|
225
|
-
//# sourceMappingURL=interface-declaration.mjs.map
|
|
224
|
+
export { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember };
|
|
@@ -300,5 +300,4 @@ function TSDocContextMethod(props) {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
//#endregion
|
|
303
|
-
export { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
304
|
-
//# sourceMappingURL=tsdoc-reflection.mjs.map
|
|
303
|
+
export { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
|
|
@@ -453,5 +453,4 @@ function TSDocModule(props) {
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
//#endregion
|
|
456
|
-
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle };
|
|
457
|
-
//# sourceMappingURL=tsdoc.mjs.map
|
|
456
|
+
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle };
|
|
@@ -224,5 +224,4 @@ function TypescriptFileHeaderImports(props) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
|
-
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
|
|
228
|
-
//# sourceMappingURL=typescript-file.mjs.map
|
|
227
|
+
export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -810,28 +810,28 @@
|
|
|
810
810
|
"@alloy-js/markdown": "0.23.0-dev.1",
|
|
811
811
|
"@alloy-js/rollup-plugin": "^0.1.0",
|
|
812
812
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
813
|
-
"@powerlines/deepkit": "^0.6.
|
|
814
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
815
|
-
"@storm-software/config-tools": "^1.189.
|
|
816
|
-
"@stryke/capnp": "^0.12.
|
|
817
|
-
"@stryke/convert": "^0.6.
|
|
818
|
-
"@stryke/fs": "^0.33.
|
|
819
|
-
"@stryke/helpers": "^0.10.
|
|
820
|
-
"@stryke/json": "^0.14.
|
|
821
|
-
"@stryke/path": "^0.26.
|
|
822
|
-
"@stryke/string-format": "^0.17.
|
|
823
|
-
"@stryke/type-checks": "^0.5.
|
|
824
|
-
"@stryke/types": "^0.10.
|
|
825
|
-
"@stryke/unique-id": "^0.3.
|
|
813
|
+
"@powerlines/deepkit": "^0.6.112",
|
|
814
|
+
"@powerlines/plugin-babel": "^0.12.338",
|
|
815
|
+
"@storm-software/config-tools": "^1.189.27",
|
|
816
|
+
"@stryke/capnp": "^0.12.83",
|
|
817
|
+
"@stryke/convert": "^0.6.53",
|
|
818
|
+
"@stryke/fs": "^0.33.57",
|
|
819
|
+
"@stryke/helpers": "^0.10.3",
|
|
820
|
+
"@stryke/json": "^0.14.7",
|
|
821
|
+
"@stryke/path": "^0.26.19",
|
|
822
|
+
"@stryke/string-format": "^0.17.3",
|
|
823
|
+
"@stryke/type-checks": "^0.5.38",
|
|
824
|
+
"@stryke/types": "^0.10.52",
|
|
825
|
+
"@stryke/unique-id": "^0.3.68",
|
|
826
826
|
"defu": "^6.1.4",
|
|
827
|
-
"powerlines": "^0.40.
|
|
827
|
+
"powerlines": "^0.40.20",
|
|
828
828
|
"prettier": "^3.8.1",
|
|
829
829
|
"unctx": "^2.5.0"
|
|
830
830
|
},
|
|
831
831
|
"devDependencies": {
|
|
832
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
833
|
-
"@types/node": "^25.
|
|
832
|
+
"@powerlines/plugin-plugin": "^0.12.284",
|
|
833
|
+
"@types/node": "^25.4.0"
|
|
834
834
|
},
|
|
835
835
|
"publishConfig": { "access": "public" },
|
|
836
|
-
"gitHead": "
|
|
836
|
+
"gitHead": "8d772181f794749e0f19f97c732dd921148c31c8"
|
|
837
837
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Output, OutputProps, __ΩOutputProps } from "./output.cjs";
|
|
2
|
-
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.cjs";
|
|
3
|
-
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.cjs";
|
|
4
|
-
import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.cjs";
|
|
5
|
-
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Output, OutputProps, __ΩOutputProps } from "./output.mjs";
|
|
2
|
-
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.mjs";
|
|
3
|
-
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.mjs";
|
|
4
|
-
import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.mjs";
|
|
5
|
-
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MetaItem } from "../contexts/meta.cjs";
|
|
2
|
-
import "../contexts/index.cjs";
|
|
3
|
-
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
4
|
-
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
5
|
-
import { PluginContext } from "@powerlines/core";
|
|
6
|
-
|
|
7
|
-
//#region src/core/components/output.d.ts
|
|
8
|
-
interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
|
|
9
|
-
/**
|
|
10
|
-
* The current Powerlines process context.
|
|
11
|
-
*/
|
|
12
|
-
context: TContext;
|
|
13
|
-
/**
|
|
14
|
-
* The file metadata collected during rendering.
|
|
15
|
-
*/
|
|
16
|
-
meta?: Record<string, MetaItem>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
20
|
-
*/
|
|
21
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core6.Children;
|
|
22
|
-
declare type __ΩOutputProps = any[];
|
|
23
|
-
//#endregion
|
|
24
|
-
export { Output, OutputProps, __ΩOutputProps };
|
|
25
|
-
//# sourceMappingURL=output.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAwBiB,6BACE,gBAAgB,uBACzB,KAAK;;;;EAFE,OAAA,EAMN,QANiB;EACT;;;EAKR,IAAA,CAAA,EAKF,MALE,CAAA,MAAA,EAKa,QALb,CAAA;;;;;AAWK,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,WADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MetaItem } from "../contexts/meta.mjs";
|
|
2
|
-
import "../contexts/index.mjs";
|
|
3
|
-
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
4
|
-
import { OutputProps as OutputProps$1 } from "@alloy-js/core";
|
|
5
|
-
import { PluginContext } from "@powerlines/core";
|
|
6
|
-
|
|
7
|
-
//#region src/core/components/output.d.ts
|
|
8
|
-
interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
|
|
9
|
-
/**
|
|
10
|
-
* The current Powerlines process context.
|
|
11
|
-
*/
|
|
12
|
-
context: TContext;
|
|
13
|
-
/**
|
|
14
|
-
* The file metadata collected during rendering.
|
|
15
|
-
*/
|
|
16
|
-
meta?: Record<string, MetaItem>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
20
|
-
*/
|
|
21
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core2.Children;
|
|
22
|
-
declare type __ΩOutputProps = any[];
|
|
23
|
-
//#endregion
|
|
24
|
-
export { Output, OutputProps, __ΩOutputProps };
|
|
25
|
-
//# sourceMappingURL=output.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAwBiB,6BACE,gBAAgB,uBACzB,KAAK;;;;EAFE,OAAA,EAMN,QANiB;EACT;;;EAKR,IAAA,CAAA,EAKF,MALE,CAAA,MAAA,EAKa,QALb,CAAA;;;;;AAWK,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,WADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.mjs","names":["computed","Output","OutputExternal","splitProps","MetaContext","PowerlinesContext","props","children","context","meta","rest","contextRef","_$createComponent","Provider","value","_$mergeProps","basePath","workspaceConfig","workspaceRoot"],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport type { PluginContext } from \"@powerlines/core\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta?: Record<string, MetaItem>;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, meta = {} }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal\n {...rest}\n basePath={contextRef.value.workspaceConfig.workspaceRoot}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/core/components/single-line-comment.d.ts
|
|
5
|
-
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
|
|
6
|
-
interface SingleLineCommentProps extends ComponentProps {
|
|
7
|
-
/**
|
|
8
|
-
* The variant of the single line comment.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue "double-slash"
|
|
11
|
-
*/
|
|
12
|
-
variant?: SingleLineCommentVariant;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
|
-
* are broken into multiple lines
|
|
17
|
-
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core8.Children;
|
|
19
|
-
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
|
-
declare type __ΩSingleLineCommentProps = any[];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
23
|
-
//# sourceMappingURL=single-line-comment.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.d.cts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"sourcesContent":[],"mappings":";;;;KAqBY,wBAAA;UAQK,sBAAA,SAA+B;;AARhD;AAQA;AAaA;;YAPY;;;;;;iBAOI,iBAAA,QAAyB,yBAAsB,eAAA,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/core/components/single-line-comment.d.ts
|
|
5
|
-
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml";
|
|
6
|
-
interface SingleLineCommentProps extends ComponentProps {
|
|
7
|
-
/**
|
|
8
|
-
* The variant of the single line comment.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue "double-slash"
|
|
11
|
-
*/
|
|
12
|
-
variant?: SingleLineCommentVariant;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
|
-
* are broken into multiple lines
|
|
17
|
-
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core1.Children;
|
|
19
|
-
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
|
-
declare type __ΩSingleLineCommentProps = any[];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
23
|
-
//# sourceMappingURL=single-line-comment.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.d.mts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"sourcesContent":[],"mappings":";;;;KAqBY,wBAAA;UAQK,sBAAA,SAA+B;;AARhD;AAQA;AAaA;;YAPY;;;;;;iBAOI,iBAAA,QAAyB,yBAAsB,eAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment.mjs","names":["Prose","SingleLineComment","props","variant","children","commentStart","_$createIntrinsic","string","_$createComponent"],"sources":["../../../src/core/components/single-line-comment.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\"\n | \"yaml\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : variant === \"yaml\"\n ? \"# \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
3
|
-
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
|
-
import { StoragePreset } from "powerlines";
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
8
|
-
/**
|
|
9
|
-
* The storage preset for the output files.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
13
|
-
*/
|
|
14
|
-
storage?: StoragePreset;
|
|
15
|
-
/**
|
|
16
|
-
* The metadata associated with the source file.
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
20
|
-
*/
|
|
21
|
-
meta?: Record<string, any>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* A base component representing a Powerlines generated source file.
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the source file.
|
|
27
|
-
* @returns The rendered source file component.
|
|
28
|
-
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps): _alloy_js_core7.Children;
|
|
30
|
-
declare type __ΩSourceFileProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
33
|
-
//# sourceMappingURL=source-file.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,eAAA,GAAkB,oBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,kBAAe,eAAA,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
|
|
4
|
-
import { StoragePreset } from "powerlines";
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/source-file.d.ts
|
|
7
|
-
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
8
|
-
/**
|
|
9
|
-
* The storage preset for the output files.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
13
|
-
*/
|
|
14
|
-
storage?: StoragePreset;
|
|
15
|
-
/**
|
|
16
|
-
* The metadata associated with the source file.
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
20
|
-
*/
|
|
21
|
-
meta?: Record<string, any>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* A base component representing a Powerlines generated source file.
|
|
25
|
-
*
|
|
26
|
-
* @param props - The properties for the source file.
|
|
27
|
-
* @returns The rendered source file component.
|
|
28
|
-
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
|
|
30
|
-
declare type __ΩSourceFileProps = any[];
|
|
31
|
-
//#endregion
|
|
32
|
-
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
33
|
-
//# sourceMappingURL=source-file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.mts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,eAAA,GAAkB,oBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,kBAAe,eAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.mjs","names":["getContext","Show","SourceDirectoryContext","SourceFileContext","splitProps","useContext","useFormatOptions","appendPath","defu","useMeta","SourceFile","props","children","meta","path","header","storage","filetype","reference","metadata","parentDirectory","sourceFile","addContent","printOptions","printWidth","tabWidth","useTabs","insertFinalNewLine","nodeContext","_$createComponent","Provider","value","when","undefined","_$createIntrinsic"],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n getContext,\n Show,\n SourceDirectoryContext,\n SourceFileContext,\n SourceFileProps as SourceFilePropsExternal,\n splitProps,\n useContext,\n useFormatOptions\n} from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport type { StoragePreset } from \"powerlines\";\nimport { ComponentProps } from \"../../types/components\";\nimport { useMeta } from \"../contexts/meta\";\n\nexport type SourceFileProps = SourceFilePropsExternal &\n ComponentProps & {\n /**\n * The storage preset for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset;\n\n /**\n * The metadata associated with the source file.\n *\n * @remarks\n * The values stored in the metadata will be available in the rendering context.\n */\n meta?: Record<string, any>;\n };\n\n/**\n * A base component representing a Powerlines generated source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function SourceFile(props: SourceFileProps) {\n const [{ children, meta, path, header, storage, filetype, reference }] =\n splitProps(props, [\n \"children\",\n \"meta\",\n \"path\",\n \"header\",\n \"storage\",\n \"filetype\",\n \"reference\"\n ]);\n\n const metadata = useMeta();\n const parentDirectory = useContext(SourceDirectoryContext)!;\n\n const sourceFile: SourceFileContext = {\n path: appendPath(path, parentDirectory.path),\n filetype,\n reference\n };\n parentDirectory?.addContent(sourceFile);\n\n const printOptions = useFormatOptions({\n printWidth: props.printWidth,\n tabWidth: props.tabWidth,\n useTabs: props.useTabs,\n insertFinalNewLine: props.insertFinalNewLine\n });\n\n const nodeContext = getContext()!;\n nodeContext.meta = defu(\n {\n sourceFile,\n printOptions\n },\n meta ?? {}\n );\n\n if (metadata) {\n metadata[sourceFile.path] = {\n storage,\n ...(meta ?? {})\n };\n }\n\n return (\n <SourceFileContext.Provider value={sourceFile}>\n <Show when={header !== undefined}>\n {header}\n <hbr />\n </Show>\n {children}\n </SourceFileContext.Provider>\n );\n}\n"],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as _alloy_js_core5 from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region src/core/components/spacing.d.ts
|
|
4
|
-
interface SpacingProps {
|
|
5
|
-
/**
|
|
6
|
-
* A scale factor that determines the amount of vertical space to be added.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue 1
|
|
12
|
-
*/
|
|
13
|
-
scale?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A simple component that renders two horizontal breaks to create vertical spacing between elements.
|
|
17
|
-
*/
|
|
18
|
-
declare function Spacing({
|
|
19
|
-
scale
|
|
20
|
-
}: SpacingProps): _alloy_js_core5.Children;
|
|
21
|
-
declare type __ΩSpacingProps = any[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Spacing, SpacingProps, __ΩSpacingProps };
|
|
24
|
-
//# sourceMappingURL=spacing.d.cts.map
|