boss-css 0.0.20 → 0.0.22
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/ai/server.d.cts +9 -0
- package/dist/ai/server.d.mts +9 -0
- package/dist/ai/skills.d.cts +13 -0
- package/dist/ai/skills.d.mts +13 -0
- package/dist/api/browser.d.cts +7 -0
- package/dist/api/browser.d.mts +7 -0
- package/dist/api/config.d.cts +6 -0
- package/dist/api/config.d.mts +6 -0
- package/dist/api/dictionary.d.cts +29 -0
- package/dist/api/dictionary.d.mts +29 -0
- package/dist/api/noopCss.d.cts +29 -0
- package/dist/api/noopCss.d.mts +29 -0
- package/dist/api/server.d.cts +7 -0
- package/dist/api/server.d.mts +7 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.mts +1 -0
- package/dist/compile/runtime.d.cts +5 -0
- package/dist/compile/runtime.d.mts +5 -0
- package/dist/cx/index.d.cts +15 -0
- package/dist/cx/index.d.mts +15 -0
- package/dist/detect-fw/index.d.cts +47 -0
- package/dist/detect-fw/index.d.mts +47 -0
- package/dist/dev/client.d.cts +10 -0
- package/dist/dev/client.d.mts +10 -0
- package/dist/dev/plugin/browser.d.cts +7 -0
- package/dist/dev/plugin/browser.d.mts +7 -0
- package/dist/dev/plugin/server.d.cts +8 -0
- package/dist/dev/plugin/server.d.mts +8 -0
- package/dist/dev/runtime.d.cts +1 -0
- package/dist/dev/runtime.d.mts +1 -0
- package/dist/dev/server.d.cts +16 -0
- package/dist/dev/server.d.mts +16 -0
- package/dist/devtools-app/index.mjs +192 -192
- package/dist/eslint-plugin/index.d.cts +1472 -0
- package/dist/eslint-plugin/index.d.mts +1473 -0
- package/dist/fontsource/directory.d.cts +19 -0
- package/dist/fontsource/directory.d.mts +19 -0
- package/dist/fontsource/server.d.cts +7 -0
- package/dist/fontsource/server.d.mts +7 -0
- package/dist/fontsource/types.d.cts +37 -0
- package/dist/fontsource/types.d.mts +37 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/merge/index.d.cts +18 -0
- package/dist/merge/index.d.mts +18 -0
- package/dist/native/browser.d.cts +7 -0
- package/dist/native/browser.d.mts +7 -0
- package/dist/native/server.d.cts +9 -0
- package/dist/native/server.d.mts +9 -0
- package/dist/parser/classname/server.d.cts +7 -0
- package/dist/parser/classname/server.d.mts +7 -0
- package/dist/parser/jsx/browser.d.cts +7 -0
- package/dist/parser/jsx/browser.d.mts +7 -0
- package/dist/parser/jsx/native.d.cts +7 -0
- package/dist/parser/jsx/native.d.mts +7 -0
- package/dist/parser/jsx/runtime.d.cts +2 -0
- package/dist/parser/jsx/runtime.d.mts +2 -0
- package/dist/parser/jsx/server.d.cts +9 -0
- package/dist/parser/jsx/server.d.mts +9 -0
- package/dist/postcss/index.d.cts +12 -0
- package/dist/postcss/index.d.mts +12 -0
- package/dist/prop/at/runtime-only.d.cts +8 -0
- package/dist/prop/at/runtime-only.d.mts +8 -0
- package/dist/prop/at/server.d.cts +13 -0
- package/dist/prop/at/server.d.mts +13 -0
- package/dist/prop/bosswind/browser.d.cts +8 -0
- package/dist/prop/bosswind/browser.d.mts +8 -0
- package/dist/prop/bosswind/runtime-only.d.cts +8 -0
- package/dist/prop/bosswind/runtime-only.d.mts +8 -0
- package/dist/prop/bosswind/server.d.cts +9 -0
- package/dist/prop/bosswind/server.d.mts +9 -0
- package/dist/prop/bosswind/shared.d.cts +11 -0
- package/dist/prop/bosswind/shared.d.mts +11 -0
- package/dist/prop/child/runtime-only.d.cts +8 -0
- package/dist/prop/child/runtime-only.d.mts +8 -0
- package/dist/prop/child/server.d.cts +9 -0
- package/dist/prop/child/server.d.mts +9 -0
- package/dist/prop/css/runtime-only.d.cts +5 -0
- package/dist/prop/css/runtime-only.d.mts +5 -0
- package/dist/prop/css/server.d.cts +9 -0
- package/dist/prop/css/server.d.mts +9 -0
- package/dist/prop/pseudo/runtime-only.d.cts +8 -0
- package/dist/prop/pseudo/runtime-only.d.mts +8 -0
- package/dist/prop/pseudo/server.d.cts +9 -0
- package/dist/prop/pseudo/server.d.mts +9 -0
- package/dist/reset/server.d.cts +7 -0
- package/dist/reset/server.d.mts +7 -0
- package/dist/runtime/index.d.cts +20 -0
- package/dist/runtime/index.d.mts +20 -0
- package/dist/runtime/preact.d.cts +2 -0
- package/dist/runtime/preact.d.mts +2 -0
- package/dist/runtime/qwik.d.cts +8 -0
- package/dist/runtime/qwik.d.mts +8 -0
- package/dist/runtime/react.d.cts +2 -0
- package/dist/runtime/react.d.mts +2 -0
- package/dist/runtime/solid.d.cts +6 -0
- package/dist/runtime/solid.d.mts +6 -0
- package/dist/runtime/stencil.d.cts +7 -0
- package/dist/runtime/stencil.d.mts +7 -0
- package/dist/runtime/style.d.cts +4 -0
- package/dist/runtime/style.d.mts +4 -0
- package/dist/shared/types.d.cts +96 -0
- package/dist/shared/types.d.mts +96 -0
- package/dist/strategy/classic/runtime-only.d.cts +7 -0
- package/dist/strategy/classic/runtime-only.d.mts +7 -0
- package/dist/strategy/classname-first/browser.d.cts +7 -0
- package/dist/strategy/classname-first/browser.d.mts +7 -0
- package/dist/strategy/classname-first/runtime-only.d.cts +7 -0
- package/dist/strategy/classname-first/runtime-only.d.mts +7 -0
- package/dist/strategy/classname-first/server.d.cts +9 -0
- package/dist/strategy/classname-first/server.d.mts +9 -0
- package/dist/strategy/classname-only/server.d.cts +8 -0
- package/dist/strategy/classname-only/server.d.mts +8 -0
- package/dist/strategy/inline-first/browser.d.cts +7 -0
- package/dist/strategy/inline-first/browser.d.mts +7 -0
- package/dist/strategy/inline-first/runtime-only.d.cts +7 -0
- package/dist/strategy/inline-first/runtime-only.d.mts +7 -0
- package/dist/strategy/inline-first/server.d.cts +9 -0
- package/dist/strategy/inline-first/server.d.mts +9 -0
- package/dist/strategy/runtime/runtime-only.d.cts +9 -0
- package/dist/strategy/runtime/runtime-only.d.mts +9 -0
- package/dist/strategy/runtime/server.d.cts +9 -0
- package/dist/strategy/runtime/server.d.mts +9 -0
- package/dist/strategy/runtime-only/css.d.cts +43 -0
- package/dist/strategy/runtime-only/css.d.mts +43 -0
- package/dist/tasks/build.d.cts +23 -0
- package/dist/tasks/build.d.mts +23 -0
- package/dist/tasks/compile.d.cts +31 -0
- package/dist/tasks/compile.d.mts +31 -0
- package/dist/tasks/postcss.cjs +8 -13
- package/dist/tasks/postcss.d.cts +10 -0
- package/dist/tasks/postcss.d.mts +10 -0
- package/dist/tasks/postcss.mjs +8 -13
- package/dist/tasks/session.d.cts +12 -0
- package/dist/tasks/session.d.mts +12 -0
- package/dist/tasks/watch.d.cts +17 -0
- package/dist/tasks/watch.d.mts +17 -0
- package/dist/types/Plugin.d.cts +251 -0
- package/dist/types/Plugin.d.mts +251 -0
- package/dist/use/token/browser.d.cts +16 -0
- package/dist/use/token/browser.d.mts +16 -0
- package/dist/use/token/propMap.d.cts +8 -0
- package/dist/use/token/propMap.d.mts +8 -0
- package/dist/use/token/runtime-only.d.cts +22 -0
- package/dist/use/token/runtime-only.d.mts +22 -0
- package/dist/use/token/server.d.cts +19 -0
- package/dist/use/token/server.d.mts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/ai/server.d.ts
|
|
4
|
+
declare const name = "ai";
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onMetaData: Plugin<'onMetaData'>;
|
|
7
|
+
declare const onSession: Plugin<'onSession'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onMetaData, onSession };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/ai/server.d.ts
|
|
4
|
+
declare const name = "ai";
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onMetaData: Plugin<'onMetaData'>;
|
|
7
|
+
declare const onSession: Plugin<'onSession'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onMetaData, onSession };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/ai/skills.d.ts
|
|
2
|
+
type BuiltinSkill = {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
body: string;
|
|
6
|
+
compatibility?: string;
|
|
7
|
+
license?: string;
|
|
8
|
+
metadata?: Record<string, string>;
|
|
9
|
+
allowedTools?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const builtInSkills: BuiltinSkill[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BuiltinSkill, builtInSkills };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/ai/skills.d.ts
|
|
2
|
+
type BuiltinSkill = {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
body: string;
|
|
6
|
+
compatibility?: string;
|
|
7
|
+
license?: string;
|
|
8
|
+
metadata?: Record<string, string>;
|
|
9
|
+
allowedTools?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const builtInSkills: BuiltinSkill[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BuiltinSkill, builtInSkills };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BossApiConfig, BossBrowserApi } from "../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/browser.d.ts
|
|
4
|
+
declare let api: BossBrowserApi | null;
|
|
5
|
+
declare function createApi(config: BossApiConfig, force?: boolean): BossBrowserApi;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { api, createApi };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BossApiConfig, BossBrowserApi } from "../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/browser.d.ts
|
|
4
|
+
declare let api: BossBrowserApi | null;
|
|
5
|
+
declare function createApi(config: BossApiConfig, force?: boolean): BossBrowserApi;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { api, createApi };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DictionaryItem } from "../shared/types.cjs";
|
|
2
|
+
import { BossApiBase } from "../types/Plugin.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/dictionary.d.ts
|
|
5
|
+
declare class Dictionary extends Map<unknown, DictionaryItem> {
|
|
6
|
+
static Instance: Dictionary;
|
|
7
|
+
api: BossApiBase;
|
|
8
|
+
constructor(api: BossApiBase);
|
|
9
|
+
resolve(name: string): {
|
|
10
|
+
descriptor: DictionaryItem;
|
|
11
|
+
name: string;
|
|
12
|
+
raw: string;
|
|
13
|
+
suffix: null;
|
|
14
|
+
} | {
|
|
15
|
+
descriptor: null;
|
|
16
|
+
name: string;
|
|
17
|
+
raw: string;
|
|
18
|
+
suffix: null;
|
|
19
|
+
} | {
|
|
20
|
+
descriptor: DictionaryItem;
|
|
21
|
+
name: string;
|
|
22
|
+
raw: string;
|
|
23
|
+
suffix: string;
|
|
24
|
+
};
|
|
25
|
+
set(key: string, value: DictionaryItem): this;
|
|
26
|
+
toValue(value: unknown, property?: DictionaryItem | string): unknown;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Dictionary };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DictionaryItem } from "../shared/types.mjs";
|
|
2
|
+
import { BossApiBase } from "../types/Plugin.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/dictionary.d.ts
|
|
5
|
+
declare class Dictionary extends Map<unknown, DictionaryItem> {
|
|
6
|
+
static Instance: Dictionary;
|
|
7
|
+
api: BossApiBase;
|
|
8
|
+
constructor(api: BossApiBase);
|
|
9
|
+
resolve(name: string): {
|
|
10
|
+
descriptor: DictionaryItem;
|
|
11
|
+
name: string;
|
|
12
|
+
raw: string;
|
|
13
|
+
suffix: null;
|
|
14
|
+
} | {
|
|
15
|
+
descriptor: null;
|
|
16
|
+
name: string;
|
|
17
|
+
raw: string;
|
|
18
|
+
suffix: null;
|
|
19
|
+
} | {
|
|
20
|
+
descriptor: DictionaryItem;
|
|
21
|
+
name: string;
|
|
22
|
+
raw: string;
|
|
23
|
+
suffix: string;
|
|
24
|
+
};
|
|
25
|
+
set(key: string, value: DictionaryItem): this;
|
|
26
|
+
toValue(value: unknown, property?: DictionaryItem | string): unknown;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Dictionary };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BossApiBase } from "../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/noopCss.d.ts
|
|
4
|
+
declare class NoopCSS {
|
|
5
|
+
api: BossApiBase;
|
|
6
|
+
imports: Set<string>;
|
|
7
|
+
root: Set<string>;
|
|
8
|
+
rootSources: Map<any, any>;
|
|
9
|
+
customBlocks: Map<any, any>;
|
|
10
|
+
customByFile: Map<any, any>;
|
|
11
|
+
ruleMeta: Map<any, any>;
|
|
12
|
+
ruleSources: Map<any, any>;
|
|
13
|
+
source: null;
|
|
14
|
+
constructor(api: BossApiBase);
|
|
15
|
+
get text(): string;
|
|
16
|
+
selector(): void;
|
|
17
|
+
rule(): void;
|
|
18
|
+
addRoot(): void;
|
|
19
|
+
removeSource(): void;
|
|
20
|
+
addImport(): void;
|
|
21
|
+
addRule(): void;
|
|
22
|
+
compareAtRuleOrder(): number;
|
|
23
|
+
write(): void;
|
|
24
|
+
reset(): void;
|
|
25
|
+
syncCustomBlocks(): void;
|
|
26
|
+
getCustomText(): string;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { NoopCSS };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BossApiBase } from "../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/noopCss.d.ts
|
|
4
|
+
declare class NoopCSS {
|
|
5
|
+
api: BossApiBase;
|
|
6
|
+
imports: Set<string>;
|
|
7
|
+
root: Set<string>;
|
|
8
|
+
rootSources: Map<any, any>;
|
|
9
|
+
customBlocks: Map<any, any>;
|
|
10
|
+
customByFile: Map<any, any>;
|
|
11
|
+
ruleMeta: Map<any, any>;
|
|
12
|
+
ruleSources: Map<any, any>;
|
|
13
|
+
source: null;
|
|
14
|
+
constructor(api: BossApiBase);
|
|
15
|
+
get text(): string;
|
|
16
|
+
selector(): void;
|
|
17
|
+
rule(): void;
|
|
18
|
+
addRoot(): void;
|
|
19
|
+
removeSource(): void;
|
|
20
|
+
addImport(): void;
|
|
21
|
+
addRule(): void;
|
|
22
|
+
compareAtRuleOrder(): number;
|
|
23
|
+
write(): void;
|
|
24
|
+
reset(): void;
|
|
25
|
+
syncCustomBlocks(): void;
|
|
26
|
+
getCustomText(): string;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { NoopCSS };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BossApiConfig, BossServerApi } from "../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/server.d.ts
|
|
4
|
+
declare let api: BossServerApi | null;
|
|
5
|
+
declare function createApi(config: BossApiConfig, force?: boolean): Promise<BossServerApi>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { api, createApi };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BossApiConfig, BossServerApi } from "../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/server.d.ts
|
|
4
|
+
declare let api: BossServerApi | null;
|
|
5
|
+
declare function createApi(config: BossApiConfig, force?: boolean): Promise<BossServerApi>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { api, createApi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/compile/runtime.d.ts
|
|
2
|
+
declare const createBossValue: (unit: string) => (value: unknown) => string | number | null | undefined;
|
|
3
|
+
declare const createBossTokenVars: (unit: string, prefix?: string) => (input?: Record<string, unknown>) => Record<string, string | number>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { createBossTokenVars, createBossValue };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/compile/runtime.d.ts
|
|
2
|
+
declare const createBossValue: (unit: string) => (value: unknown) => string | number | null | undefined;
|
|
3
|
+
declare const createBossTokenVars: (unit: string, prefix?: string) => (input?: Record<string, unknown>) => Record<string, string | number>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { createBossTokenVars, createBossValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BossMergeConfig } from "../merge/index.cjs";
|
|
2
|
+
import { ClassValue, ClassVariantCreatorFn, SlotClassVariantCreatorFn, StyleVariantCreatorFn } from "css-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/cx/index.d.ts
|
|
5
|
+
type CxValue = ClassValue;
|
|
6
|
+
declare const createBossCx: (config?: BossMergeConfig) => (...inputs: ClassValue[]) => string;
|
|
7
|
+
declare const cx: (...inputs: ClassValue[]) => string;
|
|
8
|
+
declare const createBossCv: (mergeConfig?: BossMergeConfig) => ClassVariantCreatorFn;
|
|
9
|
+
declare const cv: ClassVariantCreatorFn;
|
|
10
|
+
declare const createBossScv: (mergeConfig?: BossMergeConfig) => SlotClassVariantCreatorFn;
|
|
11
|
+
declare const scv: SlotClassVariantCreatorFn;
|
|
12
|
+
declare const createBossSv: () => StyleVariantCreatorFn;
|
|
13
|
+
declare const sv: StyleVariantCreatorFn;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { type BossMergeConfig, CxValue, createBossCv, createBossCx, createBossScv, createBossSv, cv, cx, scv, sv };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BossMergeConfig } from "../merge/index.mjs";
|
|
2
|
+
import { ClassValue, ClassVariantCreatorFn, SlotClassVariantCreatorFn, StyleVariantCreatorFn } from "css-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/cx/index.d.ts
|
|
5
|
+
type CxValue = ClassValue;
|
|
6
|
+
declare const createBossCx: (config?: BossMergeConfig) => (...inputs: ClassValue[]) => string;
|
|
7
|
+
declare const cx: (...inputs: ClassValue[]) => string;
|
|
8
|
+
declare const createBossCv: (mergeConfig?: BossMergeConfig) => ClassVariantCreatorFn;
|
|
9
|
+
declare const cv: ClassVariantCreatorFn;
|
|
10
|
+
declare const createBossScv: (mergeConfig?: BossMergeConfig) => SlotClassVariantCreatorFn;
|
|
11
|
+
declare const scv: SlotClassVariantCreatorFn;
|
|
12
|
+
declare const createBossSv: () => StyleVariantCreatorFn;
|
|
13
|
+
declare const sv: StyleVariantCreatorFn;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { type BossMergeConfig, CxValue, createBossCv, createBossCx, createBossScv, createBossSv, cv, cx, scv, sv };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FrameworkFileType, FrameworkId, UserConfig } from "../shared/types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/detect-fw/index.d.ts
|
|
4
|
+
type JsxTypesDescriptor = {
|
|
5
|
+
importSource: string;
|
|
6
|
+
runtimeModule: string;
|
|
7
|
+
typesModule: string;
|
|
8
|
+
typesNamespace: string;
|
|
9
|
+
elementType?: string;
|
|
10
|
+
componentProps?: string;
|
|
11
|
+
};
|
|
12
|
+
type FrameworkDescriptor = {
|
|
13
|
+
id: FrameworkId;
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
fileType: FrameworkFileType;
|
|
17
|
+
jsx?: JsxTypesDescriptor;
|
|
18
|
+
className: string;
|
|
19
|
+
};
|
|
20
|
+
type DetectedFramework = FrameworkDescriptor & {
|
|
21
|
+
source: 'config' | 'tsconfig' | 'package.json' | 'default';
|
|
22
|
+
notes: string[];
|
|
23
|
+
};
|
|
24
|
+
declare const getJsxTypes: (framework: FrameworkDescriptor) => {
|
|
25
|
+
elementType: string;
|
|
26
|
+
componentProps: string;
|
|
27
|
+
importSource?: string | undefined;
|
|
28
|
+
runtimeModule?: string | undefined;
|
|
29
|
+
typesModule?: string | undefined;
|
|
30
|
+
typesNamespace?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
declare const detectFramework: (options?: {
|
|
33
|
+
cwd?: string;
|
|
34
|
+
config?: UserConfig;
|
|
35
|
+
packageJson?: Record<string, unknown>;
|
|
36
|
+
tsconfigPath?: string;
|
|
37
|
+
}) => Promise<DetectedFramework>;
|
|
38
|
+
declare const listFrameworks: () => {
|
|
39
|
+
id: FrameworkId;
|
|
40
|
+
name: string;
|
|
41
|
+
label: string;
|
|
42
|
+
fileType: FrameworkFileType;
|
|
43
|
+
className: string;
|
|
44
|
+
jsx: JsxTypesDescriptor | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { DetectedFramework, FrameworkDescriptor, JsxTypesDescriptor, detectFramework, getJsxTypes, listFrameworks };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FrameworkFileType, FrameworkId, UserConfig } from "../shared/types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/detect-fw/index.d.ts
|
|
4
|
+
type JsxTypesDescriptor = {
|
|
5
|
+
importSource: string;
|
|
6
|
+
runtimeModule: string;
|
|
7
|
+
typesModule: string;
|
|
8
|
+
typesNamespace: string;
|
|
9
|
+
elementType?: string;
|
|
10
|
+
componentProps?: string;
|
|
11
|
+
};
|
|
12
|
+
type FrameworkDescriptor = {
|
|
13
|
+
id: FrameworkId;
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
fileType: FrameworkFileType;
|
|
17
|
+
jsx?: JsxTypesDescriptor;
|
|
18
|
+
className: string;
|
|
19
|
+
};
|
|
20
|
+
type DetectedFramework = FrameworkDescriptor & {
|
|
21
|
+
source: 'config' | 'tsconfig' | 'package.json' | 'default';
|
|
22
|
+
notes: string[];
|
|
23
|
+
};
|
|
24
|
+
declare const getJsxTypes: (framework: FrameworkDescriptor) => {
|
|
25
|
+
elementType: string;
|
|
26
|
+
componentProps: string;
|
|
27
|
+
importSource?: string | undefined;
|
|
28
|
+
runtimeModule?: string | undefined;
|
|
29
|
+
typesModule?: string | undefined;
|
|
30
|
+
typesNamespace?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
declare const detectFramework: (options?: {
|
|
33
|
+
cwd?: string;
|
|
34
|
+
config?: UserConfig;
|
|
35
|
+
packageJson?: Record<string, unknown>;
|
|
36
|
+
tsconfigPath?: string;
|
|
37
|
+
}) => Promise<DetectedFramework>;
|
|
38
|
+
declare const listFrameworks: () => {
|
|
39
|
+
id: FrameworkId;
|
|
40
|
+
name: string;
|
|
41
|
+
label: string;
|
|
42
|
+
fileType: FrameworkFileType;
|
|
43
|
+
className: string;
|
|
44
|
+
jsx: JsxTypesDescriptor | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { DetectedFramework, FrameworkDescriptor, JsxTypesDescriptor, detectFramework, getJsxTypes, listFrameworks };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/dev/plugin/server.d.ts
|
|
4
|
+
declare const name = "devtools";
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onSession: Plugin<'onSession'>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { name, onBoot, onSession };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/dev/plugin/server.d.ts
|
|
4
|
+
declare const name = "devtools";
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onSession: Plugin<'onSession'>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { name, onBoot, onSession };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dev/server.d.ts
|
|
2
|
+
type DevServerOptions = {
|
|
3
|
+
port?: number;
|
|
4
|
+
maxPort?: number;
|
|
5
|
+
host?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function startDevServer({
|
|
8
|
+
port,
|
|
9
|
+
maxPort,
|
|
10
|
+
host
|
|
11
|
+
}?: DevServerOptions): Promise<{
|
|
12
|
+
server: any;
|
|
13
|
+
port: number;
|
|
14
|
+
}>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { startDevServer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dev/server.d.ts
|
|
2
|
+
type DevServerOptions = {
|
|
3
|
+
port?: number;
|
|
4
|
+
maxPort?: number;
|
|
5
|
+
host?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function startDevServer({
|
|
8
|
+
port,
|
|
9
|
+
maxPort,
|
|
10
|
+
host
|
|
11
|
+
}?: DevServerOptions): Promise<{
|
|
12
|
+
server: any;
|
|
13
|
+
port: number;
|
|
14
|
+
}>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { startDevServer };
|