@pandacss/config 0.0.0-dev-20230625194802 → 0.0.0-dev-20230626085107

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +57 -0
  2. package/package.json +6 -6
@@ -0,0 +1,57 @@
1
+ import * as _pandacss_types from '@pandacss/types';
2
+ import { LoadConfigResult, Config } from '@pandacss/types';
3
+
4
+ declare function findConfigFile({ cwd, file }: {
5
+ cwd: string;
6
+ file?: string;
7
+ }): string | void;
8
+
9
+ type PathMapping = {
10
+ pattern: RegExp;
11
+ paths: string[];
12
+ };
13
+
14
+ type GetDepsOptions = {
15
+ filename: string;
16
+ ext: string;
17
+ cwd: string;
18
+ seen: Set<string>;
19
+ baseUrl: string | undefined;
20
+ pathMappings: PathMapping[];
21
+ foundModuleAliases: Map<string, string>;
22
+ };
23
+ type GetConfigDependenciesTsOptions = {
24
+ baseUrl?: string | undefined;
25
+ pathMappings: PathMapping[];
26
+ };
27
+ declare function getConfigDependencies(filePath: string, tsOptions?: GetConfigDependenciesTsOptions): {
28
+ deps: Set<string>;
29
+ aliases: Map<string, string>;
30
+ };
31
+
32
+ type ConfigFileOptions = {
33
+ cwd: string;
34
+ file?: string;
35
+ };
36
+ declare function loadConfigFile(options: ConfigFileOptions): Promise<LoadConfigResult>;
37
+ declare function resolveConfigFile(result: Awaited<ReturnType<typeof bundleConfigFile>>, cwd: string): Promise<LoadConfigResult>;
38
+ declare function bundleConfigFile(options: ConfigFileOptions): Promise<{
39
+ config: _pandacss_types.Config;
40
+ path: string;
41
+ dependencies: string[];
42
+ }>;
43
+
44
+ type Extendable<T> = T & {
45
+ extend?: T;
46
+ };
47
+ type ExtendableConfig = Extendable<Config>;
48
+ /**
49
+ * Merge all configs into a single config
50
+ */
51
+ declare function mergeConfigs(configs: ExtendableConfig[]): any;
52
+ /**
53
+ * Recursively merge all presets into a single config
54
+ */
55
+ declare function getResolvedConfig(config: ExtendableConfig, cwd: string): Promise<Config>;
56
+
57
+ export { GetConfigDependenciesTsOptions, GetDepsOptions, bundleConfigFile, findConfigFile, getConfigDependencies, getResolvedConfig, loadConfigFile, mergeConfigs, resolveConfigFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "0.0.0-dev-20230625194802",
3
+ "version": "0.0.0-dev-20230626085107",
4
4
  "description": "Find and load panda config",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19,11 +19,11 @@
19
19
  "jiti": "^1.18.2",
20
20
  "merge-anything": "^5.1.7",
21
21
  "tsconfck": "^2.1.1",
22
- "@pandacss/error": "0.0.0-dev-20230625194802",
23
- "@pandacss/logger": "0.0.0-dev-20230625194802",
24
- "@pandacss/preset-base": "0.0.0-dev-20230625194802",
25
- "@pandacss/preset-panda": "0.0.0-dev-20230625194802",
26
- "@pandacss/types": "0.0.0-dev-20230625194802"
22
+ "@pandacss/error": "0.0.0-dev-20230626085107",
23
+ "@pandacss/logger": "0.0.0-dev-20230626085107",
24
+ "@pandacss/preset-base": "0.0.0-dev-20230626085107",
25
+ "@pandacss/preset-panda": "0.0.0-dev-20230626085107",
26
+ "@pandacss/types": "0.0.0-dev-20230626085107"
27
27
  },
28
28
  "devDependencies": {
29
29
  "pkg-types": "1.0.3"