@storm-software/config 1.99.4 → 1.100.0
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/chunk-5KAGNCTX.js +10 -0
- package/dist/chunk-AVMOBJJQ.cjs +12 -0
- package/dist/chunk-E2EZJIOY.cjs +166 -0
- package/dist/chunk-HFZRRAQB.js +22 -0
- package/dist/chunk-PQYQEEST.js +12 -0
- package/dist/chunk-SHUYVCID.js +6 -0
- package/dist/chunk-SNJKI2QW.cjs +10 -0
- package/dist/chunk-USNT2KNT.cjs +6 -0
- package/dist/chunk-W7MRCX7I.js +166 -0
- package/dist/chunk-WRJN6ED4.cjs +22 -0
- package/dist/constants.cjs +13 -0
- package/dist/constants.d.cts +6 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.js +13 -0
- package/dist/define-config.cjs +7 -0
- package/dist/define-config.d.cts +203 -0
- package/dist/define-config.d.ts +203 -0
- package/dist/define-config.js +7 -0
- package/dist/index.cjs +47 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +47 -0
- package/dist/schema.cjs +30 -0
- package/dist/schema.d.cts +2248 -0
- package/dist/schema.d.ts +2248 -0
- package/dist/schema.js +30 -0
- package/dist/types.cjs +7 -0
- package/dist/types.d.cts +25 -0
- package/dist/types.d.ts +25 -0
- package/dist/types.js +7 -0
- package/package.json +70 -8
- package/src/types.d.ts +2 -2
- package/declarations.d.ts +0 -80
- package/index.cjs +0 -4285
- package/index.js +0 -4263
- package/meta.cjs.json +0 -94
- package/meta.esm.json +0 -113
package/dist/schema.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ColorConfigMapSchema,
|
|
3
|
+
ColorConfigSchema,
|
|
4
|
+
DarkThemeColorConfigSchema,
|
|
5
|
+
ExtendsSchema,
|
|
6
|
+
LightThemeColorConfigSchema,
|
|
7
|
+
MultiThemeColorConfigSchema,
|
|
8
|
+
RegistryConfigSchema,
|
|
9
|
+
RegistryUrlConfigSchema,
|
|
10
|
+
SingleThemeColorConfigSchema,
|
|
11
|
+
StormConfigSchema,
|
|
12
|
+
WorkspaceBotConfigSchema,
|
|
13
|
+
WorkspaceDirectoryConfigSchema
|
|
14
|
+
} from "./chunk-W7MRCX7I.js";
|
|
15
|
+
import "./chunk-PQYQEEST.js";
|
|
16
|
+
import "./chunk-SHUYVCID.js";
|
|
17
|
+
export {
|
|
18
|
+
ColorConfigMapSchema,
|
|
19
|
+
ColorConfigSchema,
|
|
20
|
+
DarkThemeColorConfigSchema,
|
|
21
|
+
ExtendsSchema,
|
|
22
|
+
LightThemeColorConfigSchema,
|
|
23
|
+
MultiThemeColorConfigSchema,
|
|
24
|
+
RegistryConfigSchema,
|
|
25
|
+
RegistryUrlConfigSchema,
|
|
26
|
+
SingleThemeColorConfigSchema,
|
|
27
|
+
StormConfigSchema,
|
|
28
|
+
WorkspaceBotConfigSchema,
|
|
29
|
+
WorkspaceDirectoryConfigSchema
|
|
30
|
+
};
|
package/dist/types.cjs
ADDED
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema } from './schema.cjs';
|
|
3
|
+
|
|
4
|
+
type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
5
|
+
type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
|
|
6
|
+
type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
7
|
+
type LightThemeColorConfigInput = z.input<typeof LightThemeColorConfigSchema>;
|
|
8
|
+
type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
|
|
9
|
+
type MultiThemeColorConfigInput = z.input<typeof MultiThemeColorConfigSchema>;
|
|
10
|
+
type SingleThemeColorConfig = z.infer<typeof SingleThemeColorConfigSchema>;
|
|
11
|
+
type SingleThemeColorConfigInput = z.input<typeof SingleThemeColorConfigSchema>;
|
|
12
|
+
type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
13
|
+
type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
14
|
+
type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
15
|
+
type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
16
|
+
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
17
|
+
type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
18
|
+
type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
|
|
19
|
+
extensions: (TStormConfig["extensions"] & {
|
|
20
|
+
[extensionName in TExtensionName]: TExtensionConfig;
|
|
21
|
+
}) | NonNullable<Record<string, any>>;
|
|
22
|
+
};
|
|
23
|
+
declare const COLOR_KEYS: string[];
|
|
24
|
+
|
|
25
|
+
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormConfigInput };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema } from './schema.js';
|
|
3
|
+
|
|
4
|
+
type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
5
|
+
type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
|
|
6
|
+
type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
7
|
+
type LightThemeColorConfigInput = z.input<typeof LightThemeColorConfigSchema>;
|
|
8
|
+
type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
|
|
9
|
+
type MultiThemeColorConfigInput = z.input<typeof MultiThemeColorConfigSchema>;
|
|
10
|
+
type SingleThemeColorConfig = z.infer<typeof SingleThemeColorConfigSchema>;
|
|
11
|
+
type SingleThemeColorConfigInput = z.input<typeof SingleThemeColorConfigSchema>;
|
|
12
|
+
type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
13
|
+
type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
14
|
+
type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
15
|
+
type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
16
|
+
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
17
|
+
type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
18
|
+
type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
|
|
19
|
+
extensions: (TStormConfig["extensions"] & {
|
|
20
|
+
[extensionName in TExtensionName]: TExtensionConfig;
|
|
21
|
+
}) | NonNullable<Record<string, any>>;
|
|
22
|
+
};
|
|
23
|
+
declare const COLOR_KEYS: string[];
|
|
24
|
+
|
|
25
|
+
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormConfigInput };
|
package/dist/types.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.100.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Configuration management tools and schemas for Storm Software projects, providing a standardized approach to handle project settings and presets.",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "github",
|
|
@@ -8,20 +9,81 @@
|
|
|
8
9
|
"directory": "packages/config"
|
|
9
10
|
},
|
|
10
11
|
"private": false,
|
|
11
|
-
"main": "./index.cjs",
|
|
12
|
-
"module": "./index.js",
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.js",
|
|
13
14
|
"exports": {
|
|
14
15
|
"./package.json": "./package.json",
|
|
15
16
|
"./schemas/storm.schema.json": "./schemas/storm.schema.json",
|
|
16
17
|
"./presets/base.json": "./presets/base.json",
|
|
18
|
+
"./index": {
|
|
19
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/index.d.cts",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
23
|
+
},
|
|
24
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
25
|
+
},
|
|
17
26
|
".": {
|
|
18
|
-
"types": "./
|
|
19
|
-
"
|
|
20
|
-
|
|
27
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/index.d.cts",
|
|
30
|
+
"default": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
33
|
+
},
|
|
34
|
+
"./types": {
|
|
35
|
+
"import": { "types": "./dist/types.d.ts", "default": "./dist/types.js" },
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/types.d.cts",
|
|
38
|
+
"default": "./dist/types.cjs"
|
|
39
|
+
},
|
|
40
|
+
"default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
|
|
41
|
+
},
|
|
42
|
+
"./schema": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/schema.d.ts",
|
|
45
|
+
"default": "./dist/schema.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/schema.d.cts",
|
|
49
|
+
"default": "./dist/schema.cjs"
|
|
50
|
+
},
|
|
51
|
+
"default": {
|
|
52
|
+
"types": "./dist/schema.d.ts",
|
|
53
|
+
"default": "./dist/schema.js"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"./constants": {
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/constants.d.ts",
|
|
59
|
+
"default": "./dist/constants.js"
|
|
60
|
+
},
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/constants.d.cts",
|
|
63
|
+
"default": "./dist/constants.cjs"
|
|
64
|
+
},
|
|
65
|
+
"default": {
|
|
66
|
+
"types": "./dist/constants.d.ts",
|
|
67
|
+
"default": "./dist/constants.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./define-config": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/define-config.d.ts",
|
|
73
|
+
"default": "./dist/define-config.js"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/define-config.d.cts",
|
|
77
|
+
"default": "./dist/define-config.cjs"
|
|
78
|
+
},
|
|
79
|
+
"default": {
|
|
80
|
+
"types": "./dist/define-config.d.ts",
|
|
81
|
+
"default": "./dist/define-config.js"
|
|
82
|
+
}
|
|
21
83
|
}
|
|
22
84
|
},
|
|
23
|
-
"types": "./
|
|
85
|
+
"types": "./dist/index.d.ts",
|
|
24
86
|
"dependencies": { "zod": "^3.24.0" },
|
|
25
|
-
"devDependencies": { "
|
|
87
|
+
"devDependencies": { "tsup": "8.3.5" },
|
|
26
88
|
"publishConfig": { "access": "public" }
|
|
27
89
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
|
15
15
|
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
16
16
|
export type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
17
17
|
export type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
|
|
18
|
-
extensions
|
|
18
|
+
extensions: (TStormConfig["extensions"] & {
|
|
19
19
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
20
|
-
}) | Record<string, any
|
|
20
|
+
}) | NonNullable<Record<string, any>>;
|
|
21
21
|
};
|
|
22
22
|
export declare const COLOR_KEYS: string[];
|
|
23
23
|
export {};
|
package/declarations.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type * as z from "zod";
|
|
2
|
-
import {
|
|
3
|
-
ColorConfigMapSchema,
|
|
4
|
-
ColorConfigSchema,
|
|
5
|
-
DarkThemeColorConfigSchema,
|
|
6
|
-
LightThemeColorConfigSchema,
|
|
7
|
-
MultiThemeColorConfigSchema,
|
|
8
|
-
SingleThemeColorConfigSchema,
|
|
9
|
-
StormConfigSchema
|
|
10
|
-
} from "./src/schema";
|
|
11
|
-
|
|
12
|
-
export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
13
|
-
export type DarkThemeColorConfigInput = z.input<
|
|
14
|
-
typeof DarkThemeColorConfigSchema
|
|
15
|
-
>;
|
|
16
|
-
|
|
17
|
-
export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
18
|
-
export type LightThemeColorConfigInput = z.input<
|
|
19
|
-
typeof LightThemeColorConfigSchema
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
|
|
23
|
-
export type MultiThemeColorConfigInput = z.input<
|
|
24
|
-
typeof MultiThemeColorConfigSchema
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
export type SingleThemeColorConfig = z.infer<
|
|
28
|
-
typeof SingleThemeColorConfigSchema
|
|
29
|
-
>;
|
|
30
|
-
export type SingleThemeColorConfigInput = z.input<
|
|
31
|
-
typeof SingleThemeColorConfigSchema
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
35
|
-
export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
36
|
-
|
|
37
|
-
export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
38
|
-
export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
39
|
-
|
|
40
|
-
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
41
|
-
|
|
42
|
-
declare type StormConfig<
|
|
43
|
-
TExtensionName extends
|
|
44
|
-
keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"],
|
|
45
|
-
TExtensionConfig extends
|
|
46
|
-
TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]
|
|
47
|
-
> = TStormConfig & {
|
|
48
|
-
extensions:
|
|
49
|
-
| (TStormConfig["extensions"] & {
|
|
50
|
-
[extensionName in TExtensionName]: TExtensionConfig;
|
|
51
|
-
})
|
|
52
|
-
| NonNullable<Record<string, any>>;
|
|
53
|
-
};
|
|
54
|
-
export type { StormConfig };
|
|
55
|
-
|
|
56
|
-
declare type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
57
|
-
export type { StormConfigInput };
|
|
58
|
-
|
|
59
|
-
export { StormConfigSchema } from "./src/schema";
|
|
60
|
-
|
|
61
|
-
export const COLOR_KEYS = [
|
|
62
|
-
"dark",
|
|
63
|
-
"light",
|
|
64
|
-
"base",
|
|
65
|
-
"brand",
|
|
66
|
-
"alternate",
|
|
67
|
-
"accent",
|
|
68
|
-
"link",
|
|
69
|
-
"success",
|
|
70
|
-
"help",
|
|
71
|
-
"info",
|
|
72
|
-
"warning",
|
|
73
|
-
"danger",
|
|
74
|
-
"fatal",
|
|
75
|
-
"positive",
|
|
76
|
-
"negative"
|
|
77
|
-
];
|
|
78
|
-
|
|
79
|
-
export const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
80
|
-
export const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|