@pandacss/config 0.27.3 → 0.28.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/dist/diff-config.d.mts +4 -8
- package/dist/diff-config.d.ts +4 -8
- package/dist/diff-config.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -7
- package/dist/index.mjs +6 -8
- package/package.json +7 -7
- /package/dist/{chunk-DQCK3AP6.mjs → chunk-TP2SOWHU.mjs} +0 -0
package/dist/diff-config.d.mts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Config, DiffConfigResult } from '@pandacss/types';
|
|
2
|
+
export { DiffConfigResult } from '@pandacss/types';
|
|
3
3
|
|
|
4
|
-
interface DiffConfigResult {
|
|
5
|
-
hasConfigChanged: boolean;
|
|
6
|
-
artifacts: Set<ArtifactId>;
|
|
7
|
-
diffs: Difference[];
|
|
8
|
-
}
|
|
9
4
|
type ConfigOrFn = Config | (() => Config);
|
|
5
|
+
|
|
10
6
|
/**
|
|
11
7
|
* Diff the two config objects and return the list of affected properties
|
|
12
8
|
*/
|
|
13
9
|
declare function diffConfigs(config: ConfigOrFn, prevConfig: Config | undefined): DiffConfigResult;
|
|
14
10
|
|
|
15
|
-
export {
|
|
11
|
+
export { diffConfigs };
|
package/dist/diff-config.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Config, DiffConfigResult } from '@pandacss/types';
|
|
2
|
+
export { DiffConfigResult } from '@pandacss/types';
|
|
3
3
|
|
|
4
|
-
interface DiffConfigResult {
|
|
5
|
-
hasConfigChanged: boolean;
|
|
6
|
-
artifacts: Set<ArtifactId>;
|
|
7
|
-
diffs: Difference[];
|
|
8
|
-
}
|
|
9
4
|
type ConfigOrFn = Config | (() => Config);
|
|
5
|
+
|
|
10
6
|
/**
|
|
11
7
|
* Diff the two config objects and return the list of affected properties
|
|
12
8
|
*/
|
|
13
9
|
declare function diffConfigs(config: ConfigOrFn, prevConfig: Config | undefined): DiffConfigResult;
|
|
14
10
|
|
|
15
|
-
export {
|
|
11
|
+
export { diffConfigs };
|
package/dist/diff-config.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _pandacss_types from '@pandacss/types';
|
|
2
2
|
import { Config, ConfigTsOptions } from '@pandacss/types';
|
|
3
|
-
export { DiffConfigResult
|
|
3
|
+
export { DiffConfigResult } from '@pandacss/types';
|
|
4
|
+
export { diffConfigs } from './diff-config.mjs';
|
|
4
5
|
import { P as PathMapping } from './ts-config-paths-2lh9mwzL.mjs';
|
|
5
6
|
export { c as convertTsPathsToRegexes } from './ts-config-paths-2lh9mwzL.mjs';
|
|
6
7
|
import { TSConfig } from 'pkg-types';
|
|
7
8
|
export { mergeConfigs } from './merge-config.mjs';
|
|
8
|
-
import 'microdiff';
|
|
9
9
|
|
|
10
10
|
interface ConfigFileOptions {
|
|
11
11
|
cwd: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _pandacss_types from '@pandacss/types';
|
|
2
2
|
import { Config, ConfigTsOptions } from '@pandacss/types';
|
|
3
|
-
export { DiffConfigResult
|
|
3
|
+
export { DiffConfigResult } from '@pandacss/types';
|
|
4
|
+
export { diffConfigs } from './diff-config.js';
|
|
4
5
|
import { P as PathMapping } from './ts-config-paths-2lh9mwzL.js';
|
|
5
6
|
export { c as convertTsPathsToRegexes } from './ts-config-paths-2lh9mwzL.js';
|
|
6
7
|
import { TSConfig } from 'pkg-types';
|
|
7
8
|
export { mergeConfigs } from './merge-config.js';
|
|
8
|
-
import 'microdiff';
|
|
9
9
|
|
|
10
10
|
interface ConfigFileOptions {
|
|
11
11
|
cwd: string;
|
package/dist/index.js
CHANGED
|
@@ -479,14 +479,12 @@ async function resolveConfig(result, cwd) {
|
|
|
479
479
|
}
|
|
480
480
|
result.config.presets = Array.from(presets);
|
|
481
481
|
const mergedConfig = await getResolvedConfig(result.config, cwd);
|
|
482
|
-
const
|
|
482
|
+
const hooks = result.config.hooks ?? {};
|
|
483
|
+
const loadConfigResult = { ...result, config: mergedConfig };
|
|
484
|
+
await hooks["config:resolved"]?.({ conf: loadConfigResult });
|
|
485
|
+
const serialized = (0, import_shared2.stringifyJson)(loadConfigResult.config);
|
|
483
486
|
const deserialize = () => (0, import_shared2.parseJson)(serialized);
|
|
484
|
-
return {
|
|
485
|
-
...result,
|
|
486
|
-
serialized,
|
|
487
|
-
deserialize,
|
|
488
|
-
config: mergedConfig
|
|
489
|
-
};
|
|
487
|
+
return { ...loadConfigResult, serialized, deserialize, hooks };
|
|
490
488
|
}
|
|
491
489
|
|
|
492
490
|
// src/load-config.ts
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-PROY5XLZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
diffConfigs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TP2SOWHU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveTsPathPattern
|
|
9
9
|
} from "./chunk-RPIVZP2I.mjs";
|
|
@@ -233,14 +233,12 @@ async function resolveConfig(result, cwd) {
|
|
|
233
233
|
}
|
|
234
234
|
result.config.presets = Array.from(presets);
|
|
235
235
|
const mergedConfig = await getResolvedConfig(result.config, cwd);
|
|
236
|
-
const
|
|
236
|
+
const hooks = result.config.hooks ?? {};
|
|
237
|
+
const loadConfigResult = { ...result, config: mergedConfig };
|
|
238
|
+
await hooks["config:resolved"]?.({ conf: loadConfigResult });
|
|
239
|
+
const serialized = stringifyJson(loadConfigResult.config);
|
|
237
240
|
const deserialize = () => parseJson(serialized);
|
|
238
|
-
return {
|
|
239
|
-
...result,
|
|
240
|
-
serialized,
|
|
241
|
-
deserialize,
|
|
242
|
-
config: mergedConfig
|
|
243
|
-
};
|
|
241
|
+
return { ...loadConfigResult, serialized, deserialize, hooks };
|
|
244
242
|
}
|
|
245
243
|
|
|
246
244
|
// src/load-config.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Find and load panda config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"merge-anything": "^5.1.7",
|
|
65
65
|
"microdiff": "^1.3.2",
|
|
66
66
|
"typescript": "^5.3.3",
|
|
67
|
-
"@pandacss/error": "0.
|
|
68
|
-
"@pandacss/logger": "0.
|
|
69
|
-
"@pandacss/preset-base": "0.
|
|
70
|
-
"@pandacss/preset-panda": "0.
|
|
71
|
-
"@pandacss/shared": "0.
|
|
72
|
-
"@pandacss/types": "0.
|
|
67
|
+
"@pandacss/error": "0.28.0",
|
|
68
|
+
"@pandacss/logger": "0.28.0",
|
|
69
|
+
"@pandacss/preset-base": "0.28.0",
|
|
70
|
+
"@pandacss/preset-panda": "0.28.0",
|
|
71
|
+
"@pandacss/shared": "0.28.0",
|
|
72
|
+
"@pandacss/types": "0.28.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"pkg-types": "1.0.3"
|
|
File without changes
|