@powerlines/plugin-alloy 0.18.117 → 0.18.118
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/index.cjs +6 -6
- package/dist/core/components/index.mjs +1 -1
- package/dist/core/components/output.cjs +5 -16
- package/dist/core/components/output.d.cts +5 -5
- package/dist/core/components/output.d.mts +5 -5
- package/dist/core/components/output.mjs +9 -20
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +5 -5
- package/dist/core/components/source-file.d.mts +5 -5
- package/dist/core/contexts/context.cjs +2 -10
- package/dist/core/contexts/context.d.cts +1 -4
- package/dist/core/contexts/context.d.mts +1 -4
- package/dist/core/contexts/context.mjs +3 -9
- package/dist/core/contexts/index.cjs +0 -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 +2 -2
- package/dist/core/index.cjs +6 -7
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +5 -5
- package/dist/internal/unctx.cjs +12 -0
- package/dist/internal/unctx.mjs +11 -0
- package/dist/types/components.d.cts +5 -126
- package/dist/types/components.d.mts +5 -126
- package/dist/types/plugin.d.cts +2 -9
- package/dist/types/plugin.d.mts +2 -9
- package/package.json +6 -6
- package/dist/helpers/capnp.cjs +0 -276
- package/dist/helpers/capnp.d.cts +0 -87
- package/dist/helpers/capnp.d.mts +0 -87
- package/dist/helpers/capnp.mjs +0 -259
- package/dist/helpers/create-builtin.cjs +0 -19
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.mjs +0 -18
- package/dist/helpers/index.cjs +0 -24
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -6
- package/dist/helpers/refkey.cjs +0 -16
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.mjs +0 -15
- package/dist/helpers/typescript.cjs +0 -46
- package/dist/helpers/typescript.d.cts +0 -25
- package/dist/helpers/typescript.d.mts +0 -25
- package/dist/helpers/typescript.mjs +0 -45
- package/dist/markdown/components/index.cjs +0 -8
- package/dist/markdown/components/index.d.cts +0 -3
- package/dist/markdown/components/index.d.mts +0 -3
- package/dist/markdown/components/index.mjs +0 -4
- package/dist/markdown/components/markdown-file.cjs +0 -116
- package/dist/markdown/components/markdown-file.d.cts +0 -23
- package/dist/markdown/components/markdown-file.d.mts +0 -23
- package/dist/markdown/components/markdown-file.mjs +0 -114
- package/dist/markdown/components/markdown-table.cjs +0 -101
- package/dist/markdown/components/markdown-table.d.cts +0 -27
- package/dist/markdown/components/markdown-table.d.mts +0 -27
- package/dist/markdown/components/markdown-table.mjs +0 -98
- package/dist/markdown/contexts/index.cjs +0 -6
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -37
- package/dist/markdown/contexts/markdown-table.d.cts +0 -37
- package/dist/markdown/contexts/markdown-table.d.mts +0 -37
- package/dist/markdown/contexts/markdown-table.mjs +0 -33
- package/dist/markdown/index.cjs +0 -15
- package/dist/markdown/index.d.cts +0 -6
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -7
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.mjs +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -62
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.mjs +0 -61
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -24
- package/dist/typescript/components/entry-file.cjs +0 -42
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.mjs +0 -40
- package/dist/typescript/components/index.cjs +0 -44
- package/dist/typescript/components/index.d.cts +0 -10
- package/dist/typescript/components/index.d.mts +0 -10
- package/dist/typescript/components/index.mjs +0 -11
- package/dist/typescript/components/record-expression.cjs +0 -12
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.mjs +0 -11
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -178
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -18
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -18
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -175
- package/dist/typescript/components/tsdoc.cjs +0 -485
- package/dist/typescript/components/tsdoc.d.cts +0 -163
- package/dist/typescript/components/tsdoc.d.mts +0 -163
- package/dist/typescript/components/tsdoc.mjs +0 -465
- package/dist/typescript/components/typescript-file.cjs +0 -216
- package/dist/typescript/components/typescript-file.d.cts +0 -49
- package/dist/typescript/components/typescript-file.d.mts +0 -49
- package/dist/typescript/components/typescript-file.mjs +0 -213
- package/dist/typescript/components/typescript-interface.cjs +0 -73
- package/dist/typescript/components/typescript-interface.d.cts +0 -25
- package/dist/typescript/components/typescript-interface.d.mts +0 -25
- package/dist/typescript/components/typescript-interface.mjs +0 -71
- package/dist/typescript/components/typescript-object.cjs +0 -125
- package/dist/typescript/components/typescript-object.d.cts +0 -29
- package/dist/typescript/components/typescript-object.d.mts +0 -29
- package/dist/typescript/components/typescript-object.mjs +0 -123
- package/dist/typescript/index.cjs +0 -45
- package/dist/typescript/index.d.cts +0 -11
- package/dist/typescript/index.d.mts +0 -11
- package/dist/typescript/index.mjs +0 -12
|
@@ -1,142 +1,21 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { StoragePreset } from "powerlines/types/fs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import "@alloy-js/typescript";
|
|
4
|
+
import "powerlines/types/resolved";
|
|
5
5
|
|
|
6
6
|
//#region src/types/components.d.ts
|
|
7
|
-
|
|
8
|
-
kind: "file";
|
|
9
|
-
path: string;
|
|
10
|
-
sourcePath: string;
|
|
11
|
-
/**
|
|
12
|
-
* The format of the output files
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* If not specified, the output mode will be determined by the provided \`output.mode\` value.
|
|
16
|
-
*/
|
|
17
|
-
preset?: StoragePreset;
|
|
18
|
-
}
|
|
19
|
-
interface WriteOutputFile {
|
|
20
|
-
kind: "file" | "entry" | "builtin";
|
|
21
|
-
path: string;
|
|
22
|
-
contents: string;
|
|
23
|
-
filetype: string;
|
|
24
|
-
/**
|
|
25
|
-
* The format of the output files
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* If not specified, the output mode will be determined by the provided \`output.mode\` value.
|
|
29
|
-
*/
|
|
30
|
-
preset?: StoragePreset;
|
|
31
|
-
}
|
|
32
|
-
type OutputFile = (WriteOutputFile & {
|
|
33
|
-
kind: "file";
|
|
34
|
-
}) | (WriteOutputFile & {
|
|
35
|
-
kind: "entry";
|
|
36
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
37
|
-
}) | (WriteOutputFile & {
|
|
38
|
-
kind: "builtin";
|
|
39
|
-
id: string;
|
|
40
|
-
}) | CopyOutputFile;
|
|
41
|
-
interface OutputDirectory {
|
|
42
|
-
kind: "directory";
|
|
43
|
-
path: string;
|
|
44
|
-
contents: (OutputDirectory | OutputFile)[];
|
|
45
|
-
}
|
|
46
|
-
interface RenderEntryContext {
|
|
47
|
-
typeDefinition: ResolvedEntryTypeDefinition;
|
|
48
|
-
}
|
|
49
|
-
interface RenderBuiltinContext {
|
|
50
|
-
id: string;
|
|
51
|
-
}
|
|
52
|
-
interface RenderOutputContext {
|
|
53
|
-
mode?: StoragePreset;
|
|
54
|
-
}
|
|
55
|
-
interface CopyFileOutputContext {
|
|
56
|
-
path?: string;
|
|
57
|
-
sourcePath?: string;
|
|
58
|
-
}
|
|
59
|
-
interface RenderContext extends Context {
|
|
60
|
-
meta?: {
|
|
61
|
-
copyFile?: CopyFileOutputContext;
|
|
62
|
-
/**
|
|
63
|
-
* The current context for the built-in module.
|
|
64
|
-
*/
|
|
65
|
-
builtin?: RenderBuiltinContext;
|
|
66
|
-
/**
|
|
67
|
-
* The current context for the application entrypoint file being rendered.
|
|
68
|
-
*/
|
|
69
|
-
entry?: RenderEntryContext;
|
|
70
|
-
/**
|
|
71
|
-
* The current context for output rendering.
|
|
72
|
-
*/
|
|
73
|
-
output?: RenderOutputContext;
|
|
74
|
-
} & Record<string, any>;
|
|
75
|
-
}
|
|
7
|
+
|
|
76
8
|
/**
|
|
77
9
|
* A type that represents the props of a component that can have children.
|
|
78
10
|
*/
|
|
79
11
|
interface ComponentProps {
|
|
80
12
|
children?: Children;
|
|
81
13
|
}
|
|
82
|
-
/**
|
|
83
|
-
* A type that requires the `children` prop in a component.
|
|
84
|
-
*/
|
|
85
|
-
type ComponentPropsWithChildren = Omit<ComponentProps, "children"> & Required<Pick<ComponentProps, "children">>;
|
|
86
|
-
interface BuiltinSourceFileContext extends SourceFileContext {
|
|
87
|
-
/**
|
|
88
|
-
* The runtime module identifier.
|
|
89
|
-
*/
|
|
90
|
-
id: string;
|
|
91
|
-
}
|
|
92
14
|
interface ReflectionOverrideInterface<T> {
|
|
93
15
|
name?: string | Children;
|
|
94
16
|
type?: string | Children;
|
|
95
17
|
extends?: string | false;
|
|
96
18
|
defaultValue?: Partial<T>;
|
|
97
19
|
}
|
|
98
|
-
interface TypescriptFileImportItem {
|
|
99
|
-
name: string;
|
|
100
|
-
default?: boolean;
|
|
101
|
-
alias?: string;
|
|
102
|
-
type?: boolean;
|
|
103
|
-
}
|
|
104
|
-
type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
|
|
105
|
-
interface SourceFileHeaderProps extends ComponentProps {
|
|
106
|
-
/**
|
|
107
|
-
* If true, disables the ESLint directive at the top of the file.
|
|
108
|
-
*
|
|
109
|
-
* @defaultValue true
|
|
110
|
-
*/
|
|
111
|
-
disableEslint?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* If true, disables the Biome directive at the top of the file.
|
|
114
|
-
*
|
|
115
|
-
* @defaultValue true
|
|
116
|
-
*/
|
|
117
|
-
disableBiome?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* If true, disables the Prettier directive at the top of the file.
|
|
120
|
-
*
|
|
121
|
-
* @defaultValue false
|
|
122
|
-
*/
|
|
123
|
-
disablePrettier?: boolean;
|
|
124
|
-
}
|
|
125
|
-
declare type __ΩCopyOutputFile = any[];
|
|
126
|
-
declare type __ΩWriteOutputFile = any[];
|
|
127
|
-
declare type __ΩOutputFile = any[];
|
|
128
|
-
declare type __ΩOutputDirectory = any[];
|
|
129
|
-
declare type __ΩRenderEntryContext = any[];
|
|
130
|
-
declare type __ΩRenderBuiltinContext = any[];
|
|
131
|
-
declare type __ΩRenderOutputContext = any[];
|
|
132
|
-
declare type __ΩCopyFileOutputContext = any[];
|
|
133
|
-
declare type __ΩRenderContext = any[];
|
|
134
|
-
declare type __ΩComponentProps = any[];
|
|
135
|
-
declare type __ΩComponentPropsWithChildren = any[];
|
|
136
|
-
declare type __ΩBuiltinSourceFileContext = any[];
|
|
137
|
-
declare type __ΩReflectionOverrideInterface = any[];
|
|
138
|
-
declare type __ΩTypescriptFileImportItem = any[];
|
|
139
|
-
declare type __ΩTypescriptFileImports = any[];
|
|
140
|
-
declare type __ΩSourceFileHeaderProps = any[];
|
|
141
20
|
//#endregion
|
|
142
|
-
export {
|
|
21
|
+
export { ComponentProps, ReflectionOverrideInterface };
|
|
@@ -1,142 +1,21 @@
|
|
|
1
|
-
import { Children
|
|
2
|
-
import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
3
2
|
import { StoragePreset } from "powerlines/types/fs";
|
|
4
|
-
import
|
|
3
|
+
import "@alloy-js/typescript";
|
|
4
|
+
import "powerlines/types/resolved";
|
|
5
5
|
|
|
6
6
|
//#region src/types/components.d.ts
|
|
7
|
-
|
|
8
|
-
kind: "file";
|
|
9
|
-
path: string;
|
|
10
|
-
sourcePath: string;
|
|
11
|
-
/**
|
|
12
|
-
* The format of the output files
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* If not specified, the output mode will be determined by the provided \`output.mode\` value.
|
|
16
|
-
*/
|
|
17
|
-
preset?: StoragePreset;
|
|
18
|
-
}
|
|
19
|
-
interface WriteOutputFile {
|
|
20
|
-
kind: "file" | "entry" | "builtin";
|
|
21
|
-
path: string;
|
|
22
|
-
contents: string;
|
|
23
|
-
filetype: string;
|
|
24
|
-
/**
|
|
25
|
-
* The format of the output files
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* If not specified, the output mode will be determined by the provided \`output.mode\` value.
|
|
29
|
-
*/
|
|
30
|
-
preset?: StoragePreset;
|
|
31
|
-
}
|
|
32
|
-
type OutputFile = (WriteOutputFile & {
|
|
33
|
-
kind: "file";
|
|
34
|
-
}) | (WriteOutputFile & {
|
|
35
|
-
kind: "entry";
|
|
36
|
-
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
37
|
-
}) | (WriteOutputFile & {
|
|
38
|
-
kind: "builtin";
|
|
39
|
-
id: string;
|
|
40
|
-
}) | CopyOutputFile;
|
|
41
|
-
interface OutputDirectory {
|
|
42
|
-
kind: "directory";
|
|
43
|
-
path: string;
|
|
44
|
-
contents: (OutputDirectory | OutputFile)[];
|
|
45
|
-
}
|
|
46
|
-
interface RenderEntryContext {
|
|
47
|
-
typeDefinition: ResolvedEntryTypeDefinition;
|
|
48
|
-
}
|
|
49
|
-
interface RenderBuiltinContext {
|
|
50
|
-
id: string;
|
|
51
|
-
}
|
|
52
|
-
interface RenderOutputContext {
|
|
53
|
-
mode?: StoragePreset;
|
|
54
|
-
}
|
|
55
|
-
interface CopyFileOutputContext {
|
|
56
|
-
path?: string;
|
|
57
|
-
sourcePath?: string;
|
|
58
|
-
}
|
|
59
|
-
interface RenderContext extends Context {
|
|
60
|
-
meta?: {
|
|
61
|
-
copyFile?: CopyFileOutputContext;
|
|
62
|
-
/**
|
|
63
|
-
* The current context for the built-in module.
|
|
64
|
-
*/
|
|
65
|
-
builtin?: RenderBuiltinContext;
|
|
66
|
-
/**
|
|
67
|
-
* The current context for the application entrypoint file being rendered.
|
|
68
|
-
*/
|
|
69
|
-
entry?: RenderEntryContext;
|
|
70
|
-
/**
|
|
71
|
-
* The current context for output rendering.
|
|
72
|
-
*/
|
|
73
|
-
output?: RenderOutputContext;
|
|
74
|
-
} & Record<string, any>;
|
|
75
|
-
}
|
|
7
|
+
|
|
76
8
|
/**
|
|
77
9
|
* A type that represents the props of a component that can have children.
|
|
78
10
|
*/
|
|
79
11
|
interface ComponentProps {
|
|
80
12
|
children?: Children;
|
|
81
13
|
}
|
|
82
|
-
/**
|
|
83
|
-
* A type that requires the `children` prop in a component.
|
|
84
|
-
*/
|
|
85
|
-
type ComponentPropsWithChildren = Omit<ComponentProps, "children"> & Required<Pick<ComponentProps, "children">>;
|
|
86
|
-
interface BuiltinSourceFileContext extends SourceFileContext$1 {
|
|
87
|
-
/**
|
|
88
|
-
* The runtime module identifier.
|
|
89
|
-
*/
|
|
90
|
-
id: string;
|
|
91
|
-
}
|
|
92
14
|
interface ReflectionOverrideInterface<T> {
|
|
93
15
|
name?: string | Children;
|
|
94
16
|
type?: string | Children;
|
|
95
17
|
extends?: string | false;
|
|
96
18
|
defaultValue?: Partial<T>;
|
|
97
19
|
}
|
|
98
|
-
interface TypescriptFileImportItem {
|
|
99
|
-
name: string;
|
|
100
|
-
default?: boolean;
|
|
101
|
-
alias?: string;
|
|
102
|
-
type?: boolean;
|
|
103
|
-
}
|
|
104
|
-
type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
|
|
105
|
-
interface SourceFileHeaderProps extends ComponentProps {
|
|
106
|
-
/**
|
|
107
|
-
* If true, disables the ESLint directive at the top of the file.
|
|
108
|
-
*
|
|
109
|
-
* @defaultValue true
|
|
110
|
-
*/
|
|
111
|
-
disableEslint?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* If true, disables the Biome directive at the top of the file.
|
|
114
|
-
*
|
|
115
|
-
* @defaultValue true
|
|
116
|
-
*/
|
|
117
|
-
disableBiome?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* If true, disables the Prettier directive at the top of the file.
|
|
120
|
-
*
|
|
121
|
-
* @defaultValue false
|
|
122
|
-
*/
|
|
123
|
-
disablePrettier?: boolean;
|
|
124
|
-
}
|
|
125
|
-
declare type __ΩCopyOutputFile = any[];
|
|
126
|
-
declare type __ΩWriteOutputFile = any[];
|
|
127
|
-
declare type __ΩOutputFile = any[];
|
|
128
|
-
declare type __ΩOutputDirectory = any[];
|
|
129
|
-
declare type __ΩRenderEntryContext = any[];
|
|
130
|
-
declare type __ΩRenderBuiltinContext = any[];
|
|
131
|
-
declare type __ΩRenderOutputContext = any[];
|
|
132
|
-
declare type __ΩCopyFileOutputContext = any[];
|
|
133
|
-
declare type __ΩRenderContext = any[];
|
|
134
|
-
declare type __ΩComponentProps = any[];
|
|
135
|
-
declare type __ΩComponentPropsWithChildren = any[];
|
|
136
|
-
declare type __ΩBuiltinSourceFileContext = any[];
|
|
137
|
-
declare type __ΩReflectionOverrideInterface = any[];
|
|
138
|
-
declare type __ΩTypescriptFileImportItem = any[];
|
|
139
|
-
declare type __ΩTypescriptFileImports = any[];
|
|
140
|
-
declare type __ΩSourceFileHeaderProps = any[];
|
|
141
20
|
//#endregion
|
|
142
|
-
export {
|
|
21
|
+
export { ComponentProps, ReflectionOverrideInterface };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
2
2
|
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { BabelPluginResolvedConfig
|
|
3
|
+
import { BabelPluginResolvedConfig } from "@powerlines/plugin-babel/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
@@ -23,18 +23,11 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
23
23
|
*/
|
|
24
24
|
markdown?: boolean;
|
|
25
25
|
};
|
|
26
|
-
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
27
|
-
alloy?: AlloyPluginOptions;
|
|
28
|
-
};
|
|
29
26
|
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
30
27
|
alloy: AlloyPluginOptions;
|
|
31
28
|
};
|
|
32
29
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
30
|
render: (children: Children) => Promise<void>;
|
|
34
31
|
};
|
|
35
|
-
declare type __ΩAlloyPluginOptions = any[];
|
|
36
|
-
declare type __ΩAlloyPluginUserConfig = any[];
|
|
37
|
-
declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
38
|
-
declare type __ΩAlloyPluginContext = any[];
|
|
39
32
|
//#endregion
|
|
40
|
-
export { AlloyPluginContext, AlloyPluginOptions
|
|
33
|
+
export { AlloyPluginContext, AlloyPluginOptions };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
2
2
|
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { BabelPluginResolvedConfig
|
|
3
|
+
import { BabelPluginResolvedConfig } from "@powerlines/plugin-babel/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
@@ -23,18 +23,11 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
23
23
|
*/
|
|
24
24
|
markdown?: boolean;
|
|
25
25
|
};
|
|
26
|
-
type AlloyPluginUserConfig = BabelPluginUserConfig & {
|
|
27
|
-
alloy?: AlloyPluginOptions;
|
|
28
|
-
};
|
|
29
26
|
type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
30
27
|
alloy: AlloyPluginOptions;
|
|
31
28
|
};
|
|
32
29
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
30
|
render: (children: Children) => Promise<void>;
|
|
34
31
|
};
|
|
35
|
-
declare type __ΩAlloyPluginOptions = any[];
|
|
36
|
-
declare type __ΩAlloyPluginUserConfig = any[];
|
|
37
|
-
declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
38
|
-
declare type __ΩAlloyPluginContext = any[];
|
|
39
32
|
//#endregion
|
|
40
|
-
export { AlloyPluginContext, AlloyPluginOptions
|
|
33
|
+
export { AlloyPluginContext, AlloyPluginOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
"@alloy-js/json": "^0.22.0",
|
|
361
361
|
"@alloy-js/markdown": "^0.22.0",
|
|
362
362
|
"@alloy-js/typescript": "^0.22.0",
|
|
363
|
-
"@powerlines/deepkit": "^0.6.
|
|
364
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
363
|
+
"@powerlines/deepkit": "^0.6.7",
|
|
364
|
+
"@powerlines/plugin-babel": "^0.12.235",
|
|
365
365
|
"@storm-software/config-tools": "^1.189.0",
|
|
366
366
|
"@stryke/capnp": "^0.12.61",
|
|
367
367
|
"@stryke/convert": "^0.6.35",
|
|
@@ -374,14 +374,14 @@
|
|
|
374
374
|
"@stryke/types": "^0.10.34",
|
|
375
375
|
"@stryke/unique-id": "^0.3.47",
|
|
376
376
|
"defu": "^6.1.4",
|
|
377
|
-
"powerlines": "^0.37.
|
|
377
|
+
"powerlines": "^0.37.97",
|
|
378
378
|
"prettier": "^3.8.1",
|
|
379
379
|
"unctx": "^2.5.0"
|
|
380
380
|
},
|
|
381
381
|
"devDependencies": {
|
|
382
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
382
|
+
"@powerlines/plugin-plugin": "^0.12.177",
|
|
383
383
|
"@types/node": "^24.10.9"
|
|
384
384
|
},
|
|
385
385
|
"publishConfig": { "access": "public" },
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "0c257fb90c086b6cd0a6d0553d317d87881efa8e"
|
|
387
387
|
}
|