boss-css 0.0.20 → 0.0.21
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/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.d.cts +10 -0
- package/dist/tasks/postcss.d.mts +10 -0
- 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,7 @@
|
|
|
1
|
+
//#region src/runtime/stencil.d.ts
|
|
2
|
+
declare const createElement: (component: unknown, props: Record<string, unknown> | null, children: unknown) => any;
|
|
3
|
+
declare const getChildren: (restArgs: unknown[]) => unknown;
|
|
4
|
+
declare const getFactoryChildren: (_props: unknown, ref: unknown) => unknown;
|
|
5
|
+
declare const applyRef: () => void;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { applyRef, createElement, getChildren, getFactoryChildren };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/runtime/stencil.d.ts
|
|
2
|
+
declare const createElement: (component: unknown, props: Record<string, unknown> | null, children: unknown) => any;
|
|
3
|
+
declare const getChildren: (restArgs: unknown[]) => unknown;
|
|
4
|
+
declare const getFactoryChildren: (_props: unknown, ref: unknown) => unknown;
|
|
5
|
+
declare const applyRef: () => void;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { applyRef, createElement, getChildren, getFactoryChildren };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { BosswindConfig } from "../prop/bosswind/shared.cjs";
|
|
2
|
+
import { FontConfig } from "../fontsource/types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/types.d.ts
|
|
5
|
+
type DebugValue = boolean | string | undefined;
|
|
6
|
+
type CompileConfig = {
|
|
7
|
+
spread?: boolean;
|
|
8
|
+
stats?: false | 'quick' | 'detailed';
|
|
9
|
+
tempOutDir?: string;
|
|
10
|
+
classNameStrategy?: false | 'hash' | 'shortest' | 'unicode';
|
|
11
|
+
};
|
|
12
|
+
type RuntimeConfig = {
|
|
13
|
+
only?: boolean;
|
|
14
|
+
strategy?: 'inline-first' | 'classname-first' | 'classic';
|
|
15
|
+
globals?: 'inline' | 'file' | 'none';
|
|
16
|
+
};
|
|
17
|
+
type FrameworkFileType = 'jsx' | 'unknown';
|
|
18
|
+
type FrameworkId = 'react' | 'preact' | 'solid' | 'qwik' | 'stencil' | 'unknown' | 'custom' | 'auto';
|
|
19
|
+
type FrameworkConfig = {
|
|
20
|
+
name?: FrameworkId | 'auto';
|
|
21
|
+
className?: string;
|
|
22
|
+
fileType?: FrameworkFileType;
|
|
23
|
+
jsx?: {
|
|
24
|
+
importSource?: string;
|
|
25
|
+
runtimeModule?: string;
|
|
26
|
+
typesModule?: string;
|
|
27
|
+
typesNamespace?: string;
|
|
28
|
+
elementType?: string;
|
|
29
|
+
componentProps?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type AiConfig = {
|
|
33
|
+
llms?: {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
path?: string;
|
|
36
|
+
};
|
|
37
|
+
skills?: {
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
outputDir?: string;
|
|
40
|
+
includeBuiltins?: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type UserConfig = {
|
|
44
|
+
bosswind?: BosswindConfig;
|
|
45
|
+
fonts?: FontConfig[];
|
|
46
|
+
breakpoints?: Record<string, [number | null, number | null]>;
|
|
47
|
+
compile?: CompileConfig;
|
|
48
|
+
configDir?: string;
|
|
49
|
+
debug?: DebugValue;
|
|
50
|
+
content?: string | string[];
|
|
51
|
+
ai?: AiConfig;
|
|
52
|
+
css?: {
|
|
53
|
+
autoLoad?: boolean;
|
|
54
|
+
boundaries?: {
|
|
55
|
+
ignore?: string[];
|
|
56
|
+
criticality?: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
devServer?: {
|
|
60
|
+
port?: number;
|
|
61
|
+
autoStart?: boolean;
|
|
62
|
+
};
|
|
63
|
+
folder?: string;
|
|
64
|
+
framework?: FrameworkConfig | FrameworkId;
|
|
65
|
+
jsx?: {
|
|
66
|
+
globals?: boolean;
|
|
67
|
+
};
|
|
68
|
+
nativeStyleProps?: string[];
|
|
69
|
+
plugins?: unknown[];
|
|
70
|
+
runtime?: RuntimeConfig;
|
|
71
|
+
selectorPrefix?: string;
|
|
72
|
+
selectorScope?: string;
|
|
73
|
+
stylesheetPath?: string;
|
|
74
|
+
tokens?: Record<string, unknown> | ((valueMap: unknown) => Record<string, unknown>);
|
|
75
|
+
tokenPropGroups?: Record<string, string[]>;
|
|
76
|
+
unit?: string;
|
|
77
|
+
};
|
|
78
|
+
type DictionaryItem = {
|
|
79
|
+
property: string;
|
|
80
|
+
description: string;
|
|
81
|
+
values?: string[];
|
|
82
|
+
initial?: string;
|
|
83
|
+
aliases: string[];
|
|
84
|
+
isCSSProp?: boolean;
|
|
85
|
+
usage?: string;
|
|
86
|
+
csstype?: unknown;
|
|
87
|
+
single?: boolean;
|
|
88
|
+
handler?: (options: {
|
|
89
|
+
value: unknown;
|
|
90
|
+
output: Record<string, unknown>;
|
|
91
|
+
contexts: string[];
|
|
92
|
+
}) => void;
|
|
93
|
+
descriptor?: any;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { DebugValue, DictionaryItem, FrameworkFileType, FrameworkId, UserConfig };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { BosswindConfig } from "../prop/bosswind/shared.mjs";
|
|
2
|
+
import { FontConfig } from "../fontsource/types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/types.d.ts
|
|
5
|
+
type DebugValue = boolean | string | undefined;
|
|
6
|
+
type CompileConfig = {
|
|
7
|
+
spread?: boolean;
|
|
8
|
+
stats?: false | 'quick' | 'detailed';
|
|
9
|
+
tempOutDir?: string;
|
|
10
|
+
classNameStrategy?: false | 'hash' | 'shortest' | 'unicode';
|
|
11
|
+
};
|
|
12
|
+
type RuntimeConfig = {
|
|
13
|
+
only?: boolean;
|
|
14
|
+
strategy?: 'inline-first' | 'classname-first' | 'classic';
|
|
15
|
+
globals?: 'inline' | 'file' | 'none';
|
|
16
|
+
};
|
|
17
|
+
type FrameworkFileType = 'jsx' | 'unknown';
|
|
18
|
+
type FrameworkId = 'react' | 'preact' | 'solid' | 'qwik' | 'stencil' | 'unknown' | 'custom' | 'auto';
|
|
19
|
+
type FrameworkConfig = {
|
|
20
|
+
name?: FrameworkId | 'auto';
|
|
21
|
+
className?: string;
|
|
22
|
+
fileType?: FrameworkFileType;
|
|
23
|
+
jsx?: {
|
|
24
|
+
importSource?: string;
|
|
25
|
+
runtimeModule?: string;
|
|
26
|
+
typesModule?: string;
|
|
27
|
+
typesNamespace?: string;
|
|
28
|
+
elementType?: string;
|
|
29
|
+
componentProps?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type AiConfig = {
|
|
33
|
+
llms?: {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
path?: string;
|
|
36
|
+
};
|
|
37
|
+
skills?: {
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
outputDir?: string;
|
|
40
|
+
includeBuiltins?: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type UserConfig = {
|
|
44
|
+
bosswind?: BosswindConfig;
|
|
45
|
+
fonts?: FontConfig[];
|
|
46
|
+
breakpoints?: Record<string, [number | null, number | null]>;
|
|
47
|
+
compile?: CompileConfig;
|
|
48
|
+
configDir?: string;
|
|
49
|
+
debug?: DebugValue;
|
|
50
|
+
content?: string | string[];
|
|
51
|
+
ai?: AiConfig;
|
|
52
|
+
css?: {
|
|
53
|
+
autoLoad?: boolean;
|
|
54
|
+
boundaries?: {
|
|
55
|
+
ignore?: string[];
|
|
56
|
+
criticality?: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
devServer?: {
|
|
60
|
+
port?: number;
|
|
61
|
+
autoStart?: boolean;
|
|
62
|
+
};
|
|
63
|
+
folder?: string;
|
|
64
|
+
framework?: FrameworkConfig | FrameworkId;
|
|
65
|
+
jsx?: {
|
|
66
|
+
globals?: boolean;
|
|
67
|
+
};
|
|
68
|
+
nativeStyleProps?: string[];
|
|
69
|
+
plugins?: unknown[];
|
|
70
|
+
runtime?: RuntimeConfig;
|
|
71
|
+
selectorPrefix?: string;
|
|
72
|
+
selectorScope?: string;
|
|
73
|
+
stylesheetPath?: string;
|
|
74
|
+
tokens?: Record<string, unknown> | ((valueMap: unknown) => Record<string, unknown>);
|
|
75
|
+
tokenPropGroups?: Record<string, string[]>;
|
|
76
|
+
unit?: string;
|
|
77
|
+
};
|
|
78
|
+
type DictionaryItem = {
|
|
79
|
+
property: string;
|
|
80
|
+
description: string;
|
|
81
|
+
values?: string[];
|
|
82
|
+
initial?: string;
|
|
83
|
+
aliases: string[];
|
|
84
|
+
isCSSProp?: boolean;
|
|
85
|
+
usage?: string;
|
|
86
|
+
csstype?: unknown;
|
|
87
|
+
single?: boolean;
|
|
88
|
+
handler?: (options: {
|
|
89
|
+
value: unknown;
|
|
90
|
+
output: Record<string, unknown>;
|
|
91
|
+
contexts: string[];
|
|
92
|
+
}) => void;
|
|
93
|
+
descriptor?: any;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { DebugValue, DictionaryItem, FrameworkFileType, FrameworkId, UserConfig };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/browser.d.ts
|
|
4
|
+
declare const name = "classname-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/browser.d.ts
|
|
4
|
+
declare const name = "classname-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/runtime-only.d.ts
|
|
4
|
+
declare const name = "classname-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/runtime-only.d.ts
|
|
4
|
+
declare const name = "classname-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/server.d.ts
|
|
4
|
+
declare const settings: Map<string, unknown>;
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
7
|
+
declare const name = "classname-first";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-first/server.d.ts
|
|
4
|
+
declare const settings: Map<string, unknown>;
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
7
|
+
declare const name = "classname-first";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-only/server.d.ts
|
|
4
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
5
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
6
|
+
declare const name = "classname-only";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { name, onBoot, onPropTree };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/classname-only/server.d.ts
|
|
4
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
5
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
6
|
+
declare const name = "classname-only";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { name, onBoot, onPropTree };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/inline-first/runtime-only.d.ts
|
|
4
|
+
declare const name = "inline-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/inline-first/runtime-only.d.ts
|
|
4
|
+
declare const name = "inline-first";
|
|
5
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { name, onBrowserObjectStart };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/inline-first/server.d.ts
|
|
4
|
+
declare const settings: Map<string, unknown>;
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
7
|
+
declare const name = "inline-first";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/inline-first/server.d.ts
|
|
4
|
+
declare const settings: Map<string, unknown>;
|
|
5
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
6
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
7
|
+
declare const name = "inline-first";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
import { applyGlobals } from "../runtime-only/css.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/strategy/runtime/runtime-only.d.ts
|
|
5
|
+
declare const name = "runtime";
|
|
6
|
+
declare const onInit: Plugin<'onInit'>;
|
|
7
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { applyGlobals, name, onBrowserObjectStart, onInit };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
import { applyGlobals } from "../runtime-only/css.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/strategy/runtime/runtime-only.d.ts
|
|
5
|
+
declare const name = "runtime";
|
|
6
|
+
declare const onInit: Plugin<'onInit'>;
|
|
7
|
+
declare const onBrowserObjectStart: Plugin<'onBrowserObjectStart'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { applyGlobals, name, onBrowserObjectStart, onInit };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/runtime/server.d.ts
|
|
4
|
+
declare const name = "runtime";
|
|
5
|
+
declare const settings: Map<string, unknown>;
|
|
6
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
7
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/runtime/server.d.ts
|
|
4
|
+
declare const name = "runtime";
|
|
5
|
+
declare const settings: Map<string, unknown>;
|
|
6
|
+
declare const onBoot: Plugin<'onBoot'>;
|
|
7
|
+
declare const onPropTree: Plugin<'onPropTree'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { name, onBoot, onPropTree, settings };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BossBrowserApi, Plugin } from "../../types/Plugin.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/runtime-only/css.d.ts
|
|
4
|
+
declare const applyGlobals: (payload?: {
|
|
5
|
+
cssText?: string;
|
|
6
|
+
} | string | null) => void;
|
|
7
|
+
declare class RuntimeCSS {
|
|
8
|
+
api: BossBrowserApi;
|
|
9
|
+
current: {
|
|
10
|
+
className: string | null;
|
|
11
|
+
selector: string | null;
|
|
12
|
+
pseudos: string[];
|
|
13
|
+
values: Set<string>;
|
|
14
|
+
query: string | null;
|
|
15
|
+
} | null;
|
|
16
|
+
root: Set<string>;
|
|
17
|
+
imports: Set<string>;
|
|
18
|
+
constructor(api: BossBrowserApi);
|
|
19
|
+
get text(): string;
|
|
20
|
+
addImport(_url?: string): void;
|
|
21
|
+
addRoot(value?: string, _source?: string | null): void;
|
|
22
|
+
removeSource(_source?: string | null): void;
|
|
23
|
+
reset(): void;
|
|
24
|
+
selector({
|
|
25
|
+
className,
|
|
26
|
+
selector,
|
|
27
|
+
pseudos,
|
|
28
|
+
query
|
|
29
|
+
}: {
|
|
30
|
+
className?: string | null;
|
|
31
|
+
selector?: string | null;
|
|
32
|
+
pseudos?: string[];
|
|
33
|
+
query?: string | null;
|
|
34
|
+
}): void;
|
|
35
|
+
rule(property: string, value: unknown, options?: {
|
|
36
|
+
important?: boolean;
|
|
37
|
+
}): void;
|
|
38
|
+
addRule(rule: string, query?: string | null, _source?: string | null): void;
|
|
39
|
+
write(): void;
|
|
40
|
+
}
|
|
41
|
+
declare const onInit: Plugin<'onInit'>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { RuntimeCSS, applyGlobals, onInit };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BossBrowserApi, Plugin } from "../../types/Plugin.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/strategy/runtime-only/css.d.ts
|
|
4
|
+
declare const applyGlobals: (payload?: {
|
|
5
|
+
cssText?: string;
|
|
6
|
+
} | string | null) => void;
|
|
7
|
+
declare class RuntimeCSS {
|
|
8
|
+
api: BossBrowserApi;
|
|
9
|
+
current: {
|
|
10
|
+
className: string | null;
|
|
11
|
+
selector: string | null;
|
|
12
|
+
pseudos: string[];
|
|
13
|
+
values: Set<string>;
|
|
14
|
+
query: string | null;
|
|
15
|
+
} | null;
|
|
16
|
+
root: Set<string>;
|
|
17
|
+
imports: Set<string>;
|
|
18
|
+
constructor(api: BossBrowserApi);
|
|
19
|
+
get text(): string;
|
|
20
|
+
addImport(_url?: string): void;
|
|
21
|
+
addRoot(value?: string, _source?: string | null): void;
|
|
22
|
+
removeSource(_source?: string | null): void;
|
|
23
|
+
reset(): void;
|
|
24
|
+
selector({
|
|
25
|
+
className,
|
|
26
|
+
selector,
|
|
27
|
+
pseudos,
|
|
28
|
+
query
|
|
29
|
+
}: {
|
|
30
|
+
className?: string | null;
|
|
31
|
+
selector?: string | null;
|
|
32
|
+
pseudos?: string[];
|
|
33
|
+
query?: string | null;
|
|
34
|
+
}): void;
|
|
35
|
+
rule(property: string, value: unknown, options?: {
|
|
36
|
+
important?: boolean;
|
|
37
|
+
}): void;
|
|
38
|
+
addRule(rule: string, query?: string | null, _source?: string | null): void;
|
|
39
|
+
write(): void;
|
|
40
|
+
}
|
|
41
|
+
declare const onInit: Plugin<'onInit'>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { RuntimeCSS, applyGlobals, onInit };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UserConfig } from "../shared/types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/build.d.ts
|
|
4
|
+
type BuildResult = {
|
|
5
|
+
filesParsed: number;
|
|
6
|
+
cssPath: string | null;
|
|
7
|
+
cssBytes: number;
|
|
8
|
+
durationMs: number;
|
|
9
|
+
boundaryPaths?: string[];
|
|
10
|
+
};
|
|
11
|
+
type ResolvedBuildConfig = {
|
|
12
|
+
config: UserConfig;
|
|
13
|
+
folderPath: string;
|
|
14
|
+
stylesheetPath: string;
|
|
15
|
+
runtimeOnly: boolean;
|
|
16
|
+
runtimeGlobals: 'inline' | 'file' | 'none';
|
|
17
|
+
};
|
|
18
|
+
declare const resolveBuildConfig: (userConfig: UserConfig, baseDir?: string) => ResolvedBuildConfig;
|
|
19
|
+
declare const runBuild: (userConfig: UserConfig, options?: {
|
|
20
|
+
baseDir?: string;
|
|
21
|
+
}) => Promise<BuildResult>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { BuildResult, ResolvedBuildConfig, resolveBuildConfig, runBuild };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UserConfig } from "../shared/types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/build.d.ts
|
|
4
|
+
type BuildResult = {
|
|
5
|
+
filesParsed: number;
|
|
6
|
+
cssPath: string | null;
|
|
7
|
+
cssBytes: number;
|
|
8
|
+
durationMs: number;
|
|
9
|
+
boundaryPaths?: string[];
|
|
10
|
+
};
|
|
11
|
+
type ResolvedBuildConfig = {
|
|
12
|
+
config: UserConfig;
|
|
13
|
+
folderPath: string;
|
|
14
|
+
stylesheetPath: string;
|
|
15
|
+
runtimeOnly: boolean;
|
|
16
|
+
runtimeGlobals: 'inline' | 'file' | 'none';
|
|
17
|
+
};
|
|
18
|
+
declare const resolveBuildConfig: (userConfig: UserConfig, baseDir?: string) => ResolvedBuildConfig;
|
|
19
|
+
declare const runBuild: (userConfig: UserConfig, options?: {
|
|
20
|
+
baseDir?: string;
|
|
21
|
+
}) => Promise<BuildResult>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { BuildResult, ResolvedBuildConfig, resolveBuildConfig, runBuild };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UserConfig } from "../shared/types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/compile.d.ts
|
|
4
|
+
type CompileOptions = {
|
|
5
|
+
config: UserConfig;
|
|
6
|
+
prod?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const runCompile: ({
|
|
9
|
+
config,
|
|
10
|
+
prod
|
|
11
|
+
}: CompileOptions) => Promise<{
|
|
12
|
+
statsMode: false | "quick" | "detailed";
|
|
13
|
+
stats: {
|
|
14
|
+
outputMode: "prod" | "temp";
|
|
15
|
+
outputDir: string;
|
|
16
|
+
runtimeFree: boolean;
|
|
17
|
+
runtimeFiles: string[];
|
|
18
|
+
valueHelperFiles: string[];
|
|
19
|
+
filesProcessed: number;
|
|
20
|
+
filesCopied: number;
|
|
21
|
+
filesSkipped: number;
|
|
22
|
+
filesTotal: number;
|
|
23
|
+
elementsReplaced: number;
|
|
24
|
+
durationMs: number;
|
|
25
|
+
cssBytes: number;
|
|
26
|
+
cssWritten: boolean;
|
|
27
|
+
stylesheetPath: string | null;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { CompileOptions, runCompile };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UserConfig } from "../shared/types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/compile.d.ts
|
|
4
|
+
type CompileOptions = {
|
|
5
|
+
config: UserConfig;
|
|
6
|
+
prod?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const runCompile: ({
|
|
9
|
+
config,
|
|
10
|
+
prod
|
|
11
|
+
}: CompileOptions) => Promise<{
|
|
12
|
+
statsMode: false | "quick" | "detailed";
|
|
13
|
+
stats: {
|
|
14
|
+
outputMode: "prod" | "temp";
|
|
15
|
+
outputDir: string;
|
|
16
|
+
runtimeFree: boolean;
|
|
17
|
+
runtimeFiles: string[];
|
|
18
|
+
valueHelperFiles: string[];
|
|
19
|
+
filesProcessed: number;
|
|
20
|
+
filesCopied: number;
|
|
21
|
+
filesSkipped: number;
|
|
22
|
+
filesTotal: number;
|
|
23
|
+
elementsReplaced: number;
|
|
24
|
+
durationMs: number;
|
|
25
|
+
cssBytes: number;
|
|
26
|
+
cssWritten: boolean;
|
|
27
|
+
stylesheetPath: string | null;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { CompileOptions, runCompile };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import postcss from "postcss";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/postcss.d.ts
|
|
4
|
+
type BossPostcssOptions = {
|
|
5
|
+
baseDir?: string;
|
|
6
|
+
dirDependencies?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const runPostcss: (root: postcss.Root, result: postcss.Result, options?: BossPostcssOptions) => Promise<void>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { BossPostcssOptions, runPostcss };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import postcss from "postcss";
|
|
2
|
+
|
|
3
|
+
//#region src/tasks/postcss.d.ts
|
|
4
|
+
type BossPostcssOptions = {
|
|
5
|
+
baseDir?: string;
|
|
6
|
+
dirDependencies?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const runPostcss: (root: postcss.Root, result: postcss.Result, options?: BossPostcssOptions) => Promise<void>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { BossPostcssOptions, runPostcss };
|