@powerlines/plugin-alloy 0.18.49 → 0.18.52
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 +7 -0
- package/dist/core/components/index.d.cts +4 -0
- package/dist/core/components/index.d.mts +4 -0
- package/dist/core/components/index.mjs +5 -0
- package/dist/core/components/output.cjs +2 -2
- package/dist/core/components/output.d.cts +23 -0
- package/dist/core/components/output.d.mts +23 -0
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/components/single-line-comment.cjs +22 -0
- package/dist/core/components/single-line-comment.d.cts +22 -0
- package/dist/core/components/single-line-comment.d.mts +22 -0
- package/dist/core/components/single-line-comment.mjs +21 -0
- package/dist/core/components/source-file.cjs +64 -0
- package/dist/core/components/source-file.d.cts +32 -0
- package/dist/core/components/source-file.d.mts +32 -0
- package/dist/core/components/source-file.mjs +62 -0
- package/dist/core/contexts/context.cjs +50 -1
- package/dist/core/contexts/context.d.cts +71 -0
- package/dist/core/contexts/context.d.mts +71 -0
- package/dist/core/contexts/context.mjs +46 -2
- package/dist/core/contexts/index.cjs +17 -0
- package/dist/core/contexts/index.d.cts +3 -0
- package/dist/core/contexts/index.d.mts +3 -0
- package/dist/core/contexts/index.mjs +4 -0
- package/dist/core/contexts/reflection.cjs +68 -0
- package/dist/core/contexts/reflection.d.cts +52 -0
- package/dist/core/contexts/reflection.d.mts +52 -0
- package/dist/core/contexts/reflection.mjs +60 -0
- package/dist/core/index.cjs +25 -0
- package/dist/core/index.d.cts +7 -0
- package/dist/core/index.d.mts +8 -0
- package/dist/core/index.mjs +9 -0
- package/dist/helpers/capnp.cjs +276 -0
- package/dist/helpers/capnp.d.cts +87 -0
- package/dist/helpers/capnp.d.mts +87 -0
- package/dist/helpers/capnp.mjs +259 -0
- package/dist/helpers/create-builtin.cjs +19 -0
- package/dist/helpers/create-builtin.d.cts +15 -0
- package/dist/helpers/create-builtin.d.mts +15 -0
- package/dist/helpers/create-builtin.mjs +18 -0
- package/dist/helpers/index.cjs +24 -0
- package/dist/helpers/index.d.cts +5 -0
- package/dist/helpers/index.d.mts +5 -0
- package/dist/helpers/index.mjs +6 -0
- package/dist/helpers/refkey.cjs +16 -0
- package/dist/helpers/refkey.d.cts +13 -0
- package/dist/helpers/refkey.d.mts +13 -0
- package/dist/helpers/refkey.mjs +15 -0
- package/dist/helpers/typescript.cjs +46 -0
- package/dist/helpers/typescript.d.cts +25 -0
- package/dist/helpers/typescript.d.mts +25 -0
- package/dist/helpers/typescript.mjs +45 -0
- package/dist/index.cjs +2 -2
- package/dist/markdown/components/index.cjs +8 -0
- package/dist/markdown/components/index.d.cts +3 -0
- package/dist/markdown/components/index.d.mts +3 -0
- package/dist/markdown/components/index.mjs +4 -0
- package/dist/markdown/components/markdown-file.cjs +116 -0
- package/dist/markdown/components/markdown-file.d.cts +23 -0
- package/dist/markdown/components/markdown-file.d.mts +23 -0
- package/dist/markdown/components/markdown-file.mjs +114 -0
- package/dist/markdown/components/markdown-table.cjs +101 -0
- package/dist/markdown/components/markdown-table.d.cts +27 -0
- package/dist/markdown/components/markdown-table.d.mts +27 -0
- package/dist/markdown/components/markdown-table.mjs +98 -0
- package/dist/markdown/contexts/index.cjs +6 -0
- package/dist/markdown/contexts/index.d.cts +2 -0
- package/dist/markdown/contexts/index.d.mts +2 -0
- package/dist/markdown/contexts/index.mjs +3 -0
- package/dist/markdown/contexts/markdown-table.cjs +37 -0
- package/dist/markdown/contexts/markdown-table.d.cts +37 -0
- package/dist/markdown/contexts/markdown-table.d.mts +37 -0
- package/dist/markdown/contexts/markdown-table.mjs +33 -0
- package/dist/markdown/index.cjs +15 -0
- package/dist/markdown/index.d.cts +4 -0
- package/dist/markdown/index.d.mts +6 -0
- package/dist/markdown/index.mjs +7 -0
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +10 -10
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +2 -2
- package/dist/powerlines/src/types/config.d.mts +2 -2
- package/dist/powerlines/src/types/context.d.cts +5 -5
- package/dist/powerlines/src/types/context.d.mts +5 -5
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +1 -1
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +142 -0
- package/dist/types/components.d.mts +142 -0
- package/dist/types/components.mjs +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +9 -1
- package/dist/types/plugin.d.mts +9 -1
- package/dist/types/plugin.mjs +1 -0
- package/dist/typescript/components/builtin-file.cjs +62 -0
- package/dist/typescript/components/builtin-file.d.cts +34 -0
- package/dist/typescript/components/builtin-file.d.mts +34 -0
- package/dist/typescript/components/builtin-file.mjs +61 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +25 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +32 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +32 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +24 -0
- package/dist/typescript/components/entry-file.cjs +41 -0
- package/dist/typescript/components/entry-file.d.cts +27 -0
- package/dist/typescript/components/entry-file.d.mts +27 -0
- package/dist/typescript/components/entry-file.mjs +39 -0
- package/dist/typescript/components/index.cjs +44 -0
- package/dist/typescript/components/index.d.cts +10 -0
- package/dist/typescript/components/index.d.mts +10 -0
- package/dist/typescript/components/index.mjs +11 -0
- package/dist/typescript/components/record-expression.cjs +12 -0
- package/dist/typescript/components/record-expression.d.cts +12 -0
- package/dist/typescript/components/record-expression.d.mts +12 -0
- package/dist/typescript/components/record-expression.mjs +11 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +177 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +18 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +18 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +174 -0
- package/dist/typescript/components/tsdoc.cjs +481 -0
- package/dist/typescript/components/tsdoc.d.cts +163 -0
- package/dist/typescript/components/tsdoc.d.mts +163 -0
- package/dist/typescript/components/tsdoc.mjs +461 -0
- package/dist/typescript/components/typescript-file.cjs +216 -0
- package/dist/typescript/components/typescript-file.d.cts +49 -0
- package/dist/typescript/components/typescript-file.d.mts +49 -0
- package/dist/typescript/components/typescript-file.mjs +213 -0
- package/dist/typescript/components/typescript-interface.cjs +69 -0
- package/dist/typescript/components/typescript-interface.d.cts +25 -0
- package/dist/typescript/components/typescript-interface.d.mts +25 -0
- package/dist/typescript/components/typescript-interface.mjs +67 -0
- package/dist/typescript/components/typescript-object.cjs +125 -0
- package/dist/typescript/components/typescript-object.d.cts +26 -0
- package/dist/typescript/components/typescript-object.d.mts +26 -0
- package/dist/typescript/components/typescript-object.mjs +123 -0
- package/dist/typescript/index.cjs +45 -0
- package/dist/typescript/index.d.cts +11 -0
- package/dist/typescript/index.d.mts +11 -0
- package/dist/typescript/index.mjs +12 -0
- package/package.json +5 -5
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { MarkdownTableContext, useMarkdownTable } from "../contexts/markdown-table.mjs";
|
|
2
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { Prose, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
4
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
5
|
+
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
6
|
+
|
|
7
|
+
//#region src/markdown/components/markdown-table.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Component that provides a context for rendering markdown tables.
|
|
10
|
+
*/
|
|
11
|
+
function MarkdownTable(props) {
|
|
12
|
+
const [{ children, data }] = splitProps(props, ["children", "data"]);
|
|
13
|
+
const columns = computed(() => Object.keys(data).map((name, index) => ({
|
|
14
|
+
index,
|
|
15
|
+
name,
|
|
16
|
+
align: "left",
|
|
17
|
+
width: 20
|
|
18
|
+
})));
|
|
19
|
+
return createComponent(MarkdownTableContext.Provider, {
|
|
20
|
+
get value() {
|
|
21
|
+
return {
|
|
22
|
+
columns: columns.value,
|
|
23
|
+
data
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
get children() {
|
|
27
|
+
return createComponent(Show, {
|
|
28
|
+
get when() {
|
|
29
|
+
return Boolean(children);
|
|
30
|
+
},
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Component that provides a context for rendering markdown tables.
|
|
38
|
+
*/
|
|
39
|
+
function MarkdownTableColumn(props) {
|
|
40
|
+
const [{ children, width, align, name }] = splitProps(props, [
|
|
41
|
+
"children",
|
|
42
|
+
"width",
|
|
43
|
+
"align",
|
|
44
|
+
"name"
|
|
45
|
+
]);
|
|
46
|
+
const tableContext = useMarkdownTable();
|
|
47
|
+
const columnRef = computed(() => tableContext?.columns.find((c) => c.name === name));
|
|
48
|
+
const indexRef = computed(() => columnRef.value?.index ?? 0);
|
|
49
|
+
const alignRef = computed(() => columnRef.value?.align ?? align ?? "left");
|
|
50
|
+
const widthRef = computed(() => columnRef.value?.width ?? width ?? 20);
|
|
51
|
+
const textLength = computed(() => {
|
|
52
|
+
return (children ? children.toString() : "").length;
|
|
53
|
+
});
|
|
54
|
+
return createComponent(Prose, { get children() {
|
|
55
|
+
return [
|
|
56
|
+
createComponent(Show, {
|
|
57
|
+
get when() {
|
|
58
|
+
return indexRef.value === 0;
|
|
59
|
+
},
|
|
60
|
+
children: "|"
|
|
61
|
+
}),
|
|
62
|
+
createComponent(Show, {
|
|
63
|
+
get when() {
|
|
64
|
+
return Boolean(children);
|
|
65
|
+
},
|
|
66
|
+
get children() {
|
|
67
|
+
return createComponent(Prose, { get children() {
|
|
68
|
+
return code`${alignRef.value === "left" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}${children}${alignRef.value === "right" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}`;
|
|
69
|
+
} });
|
|
70
|
+
}
|
|
71
|
+
}),
|
|
72
|
+
"|"
|
|
73
|
+
];
|
|
74
|
+
} });
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Component that provides a context for rendering markdown tables.
|
|
78
|
+
*/
|
|
79
|
+
function MarkdownTableColumnHeader(props) {
|
|
80
|
+
const [{ children, name }, rest] = splitProps(props, ["children", "name"]);
|
|
81
|
+
return [createComponent(MarkdownTableColumn, mergeProps(rest, {
|
|
82
|
+
name,
|
|
83
|
+
get children() {
|
|
84
|
+
return createComponent(Show, {
|
|
85
|
+
get fallback() {
|
|
86
|
+
return titleCase(name, { useDescriptions: false });
|
|
87
|
+
},
|
|
88
|
+
get when() {
|
|
89
|
+
return !isUndefined(children);
|
|
90
|
+
},
|
|
91
|
+
children
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}))];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const require_markdown_contexts_markdown_table = require('./markdown-table.cjs');
|
|
2
|
+
|
|
3
|
+
exports.MarkdownTableColumnContext = require_markdown_contexts_markdown_table.MarkdownTableColumnContext;
|
|
4
|
+
exports.MarkdownTableContext = require_markdown_contexts_markdown_table.MarkdownTableContext;
|
|
5
|
+
exports.useMarkdownTable = require_markdown_contexts_markdown_table.useMarkdownTable;
|
|
6
|
+
exports.useMarkdownTableColumn = require_markdown_contexts_markdown_table.useMarkdownTableColumn;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown-table.cjs";
|
|
2
|
+
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown-table.mjs";
|
|
2
|
+
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/markdown/contexts/markdown-table.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines context used in template rendering.
|
|
7
|
+
*/
|
|
8
|
+
const MarkdownTableColumnContext = (0, __alloy_js_core.createNamedContext)("markdown-table-column", {});
|
|
9
|
+
/**
|
|
10
|
+
* Hook to access the Powerlines Context.
|
|
11
|
+
*
|
|
12
|
+
* @returns The Context.
|
|
13
|
+
*/
|
|
14
|
+
function useMarkdownTableColumn() {
|
|
15
|
+
return (0, __alloy_js_core.useContext)(MarkdownTableColumnContext);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The Powerlines context used in template rendering.
|
|
19
|
+
*/
|
|
20
|
+
const MarkdownTableContext = (0, __alloy_js_core.createContext)({
|
|
21
|
+
columns: [],
|
|
22
|
+
data: []
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Hook to access the Powerlines Context.
|
|
26
|
+
*
|
|
27
|
+
* @returns The Context.
|
|
28
|
+
*/
|
|
29
|
+
function useMarkdownTable() {
|
|
30
|
+
return (0, __alloy_js_core.useContext)(MarkdownTableContext);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.MarkdownTableColumnContext = MarkdownTableColumnContext;
|
|
35
|
+
exports.MarkdownTableContext = MarkdownTableContext;
|
|
36
|
+
exports.useMarkdownTable = useMarkdownTable;
|
|
37
|
+
exports.useMarkdownTableColumn = useMarkdownTableColumn;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
+
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
index: number;
|
|
6
|
+
name: keyof T;
|
|
7
|
+
align: "left" | "right" | "center";
|
|
8
|
+
width: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Powerlines context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Powerlines Context.
|
|
16
|
+
*
|
|
17
|
+
* @returns The Context.
|
|
18
|
+
*/
|
|
19
|
+
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
+
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
+
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
+
data: T[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The Powerlines context used in template rendering.
|
|
26
|
+
*/
|
|
27
|
+
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access the Powerlines Context.
|
|
30
|
+
*
|
|
31
|
+
* @returns The Context.
|
|
32
|
+
*/
|
|
33
|
+
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
+
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
+
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
+
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
index: number;
|
|
6
|
+
name: keyof T;
|
|
7
|
+
align: "left" | "right" | "center";
|
|
8
|
+
width: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Powerlines context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Powerlines Context.
|
|
16
|
+
*
|
|
17
|
+
* @returns The Context.
|
|
18
|
+
*/
|
|
19
|
+
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
+
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
+
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
+
data: T[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The Powerlines context used in template rendering.
|
|
26
|
+
*/
|
|
27
|
+
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access the Powerlines Context.
|
|
30
|
+
*
|
|
31
|
+
* @returns The Context.
|
|
32
|
+
*/
|
|
33
|
+
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
+
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
+
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/contexts/markdown-table.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Powerlines context used in template rendering.
|
|
6
|
+
*/
|
|
7
|
+
const MarkdownTableColumnContext = createNamedContext("markdown-table-column", {});
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the Powerlines Context.
|
|
10
|
+
*
|
|
11
|
+
* @returns The Context.
|
|
12
|
+
*/
|
|
13
|
+
function useMarkdownTableColumn() {
|
|
14
|
+
return useContext(MarkdownTableColumnContext);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The Powerlines context used in template rendering.
|
|
18
|
+
*/
|
|
19
|
+
const MarkdownTableContext = createContext({
|
|
20
|
+
columns: [],
|
|
21
|
+
data: []
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Hook to access the Powerlines Context.
|
|
25
|
+
*
|
|
26
|
+
* @returns The Context.
|
|
27
|
+
*/
|
|
28
|
+
function useMarkdownTable() {
|
|
29
|
+
return useContext(MarkdownTableContext);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_markdown_components_markdown_file = require('./components/markdown-file.cjs');
|
|
2
|
+
const require_markdown_contexts_markdown_table = require('./contexts/markdown-table.cjs');
|
|
3
|
+
const require_markdown_components_markdown_table = require('./components/markdown-table.cjs');
|
|
4
|
+
require('./components/index.cjs');
|
|
5
|
+
require('./contexts/index.cjs');
|
|
6
|
+
|
|
7
|
+
exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
|
|
8
|
+
exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
|
|
9
|
+
exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
|
|
10
|
+
exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
|
|
11
|
+
exports.MarkdownTableColumnContext = require_markdown_contexts_markdown_table.MarkdownTableColumnContext;
|
|
12
|
+
exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
|
|
13
|
+
exports.MarkdownTableContext = require_markdown_contexts_markdown_table.MarkdownTableContext;
|
|
14
|
+
exports.useMarkdownTable = require_markdown_contexts_markdown_table.useMarkdownTable;
|
|
15
|
+
exports.useMarkdownTableColumn = require_markdown_contexts_markdown_table.useMarkdownTableColumn;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./components/markdown-file.cjs";
|
|
2
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.cjs";
|
|
3
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.cjs";
|
|
4
|
+
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./components/markdown-file.mjs";
|
|
2
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
|
|
3
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./components/markdown-table.mjs";
|
|
4
|
+
import "./components/index.mjs";
|
|
5
|
+
import "./contexts/index.mjs";
|
|
6
|
+
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MarkdownFile, MarkdownFileHeader } from "./components/markdown-file.mjs";
|
|
2
|
+
import { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
|
|
3
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./components/markdown-table.mjs";
|
|
4
|
+
import "./components/index.mjs";
|
|
5
|
+
import "./contexts/index.mjs";
|
|
6
|
+
|
|
7
|
+
export { MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnHeader, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
1
|
import { ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import {
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
5
3
|
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
4
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
5
|
+
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
1
|
import { ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import {
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
5
3
|
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
4
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
5
|
+
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "@farmfe/core";
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "@farmfe/core";
|
|
1
|
+
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
|
+
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig$1, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
2
1
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
2
1
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
3
|
+
import { Plugin } from "./plugin.cjs";
|
|
3
4
|
import { TSConfig } from "./tsconfig.cjs";
|
|
4
5
|
import { PluginContext } from "./context.cjs";
|
|
5
|
-
import { Plugin } from "./plugin.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
-
import { PreviewOptions } from "vite";
|
|
8
7
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
8
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
9
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
11
10
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
12
|
import { DateString } from "compatx";
|
|
13
|
+
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
3
|
+
import { Plugin } from "./plugin.mjs";
|
|
3
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
4
5
|
import { PluginContext } from "./context.mjs";
|
|
5
|
-
import { Plugin } from "./plugin.mjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
-
import { PreviewOptions } from "vite";
|
|
8
7
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
8
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
9
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
11
10
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
11
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
12
|
import { DateString } from "compatx";
|
|
13
|
+
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
3
|
-
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
2
|
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
|
+
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
6
4
|
import { Plugin } from "./plugin.cjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
6
|
+
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
9
7
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
8
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
11
10
|
import { PackageJson } from "@stryke/types/package-json";
|
|
12
11
|
import { Jiti } from "jiti";
|
|
13
12
|
import { SourceMap } from "magic-string";
|
|
@@ -15,6 +14,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
15
14
|
import { Range } from "semver";
|
|
16
15
|
import { Project } from "ts-morph";
|
|
17
16
|
import { RequestInfo, Response } from "undici";
|
|
17
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
3
|
-
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
2
|
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
|
+
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
6
4
|
import { Plugin } from "./plugin.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
|
+
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
9
7
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
8
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
11
10
|
import { PackageJson } from "@stryke/types/package-json";
|
|
12
11
|
import { Jiti } from "jiti";
|
|
13
12
|
import { SourceMap } from "magic-string";
|
|
@@ -15,6 +14,7 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
15
14
|
import { Range } from "semver";
|
|
16
15
|
import { Project } from "ts-morph";
|
|
17
16
|
import { RequestInfo, Response } from "undici";
|
|
17
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.cjs";
|
|
2
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
2
|
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
|
+
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
2
|
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
|
+
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
5
2
|
import { CommandType } from "./commands.cjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
6
4
|
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
7
|
-
import {
|
|
5
|
+
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
6
|
+
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
8
7
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
-
import { LoadResult } from "rollup";
|
|
10
8
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
5
2
|
import { CommandType } from "./commands.mjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
6
4
|
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
7
|
-
import {
|
|
5
|
+
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
6
|
+
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
8
7
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
-
import { LoadResult } from "rollup";
|
|
10
8
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
10
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
5
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
5
|
import { AssetGlob } from "@stryke/types/file";
|
|
6
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
9
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|