@pandacss/config 2.0.0-beta.2 → 2.0.0-beta.20

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.
@@ -1,4 +1,9 @@
1
- import { Config } from '@pandacss/types';
1
+ import { Config, Dict } from '@pandacss/types';
2
+
3
+ type Extendable<T> = T & {
4
+ extend?: T;
5
+ };
6
+ type ExtendableConfig = Extendable<Config>;
2
7
 
3
8
  interface ConfigSourceEntry {
4
9
  kind: 'config' | 'preset';
@@ -19,12 +24,6 @@ declare class SourceTracker {
19
24
  delete(path: string[]): void;
20
25
  }
21
26
 
22
- type Dict = Record<string, any>;
23
- type Extendable<T> = T & {
24
- extend?: T;
25
- };
26
- type ExtendableConfig = Extendable<Config>;
27
-
28
27
  interface SourcedConfig {
29
28
  config: ExtendableConfig;
30
29
  source: ConfigSourceEntry;
@@ -39,7 +38,7 @@ declare function mergeConfigsWithSources(configs: SourcedConfig[]): {
39
38
  };
40
39
  /**
41
40
  * Merges an ordered list of configs (presets first, user config last) into one flat config.
42
- * Top-level keys replace; section keys deep-merge, with `extend` appending instead of replacing.
41
+ * A key written without `extend` replaces the entry it names; `extend` merges into it.
43
42
  */
44
43
  declare function mergeConfigs(configs: ExtendableConfig[]): Dict;
45
44
  declare function mergeConfigs(configs: SourcedConfig[], tracker: SourceTracker): Dict;
package/dist/merge.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { S as SourcedConfig, m as mergeConfigs, b as mergeConfigsWithSources } from './merge-Bt4BM1CH.js';
1
+ export { S as SourcedConfig, m as mergeConfigs, b as mergeConfigsWithSources } from './merge-EXcM0jFd.js';
2
2
  import '@pandacss/types';
package/dist/merge.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  mergeConfigs,
3
3
  mergeConfigsWithSources
4
- } from "./chunk-LUSBBUHX.js";
4
+ } from "./chunk-LDC4ZCDS.js";
5
+ import "./chunk-R4R5RHIS.js";
5
6
  export {
6
7
  mergeConfigs,
7
8
  mergeConfigsWithSources
@@ -12,6 +12,6 @@ interface ConfigSnapshot {
12
12
  * pattern's `transform`/`defaultValues` source as `codegenSource` for the Rust
13
13
  * pattern generator.
14
14
  */
15
- declare function createConfigSnapshot(config: UserConfig): ConfigSnapshot;
15
+ declare function createConfigSnapshot(input: UserConfig): ConfigSnapshot;
16
16
 
17
17
  export { type ConfigSnapshot, createConfigSnapshot };
package/dist/serialize.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  createConfigSnapshot
3
- } from "./chunk-VYX3JX5J.js";
3
+ } from "./chunk-Y642H6DU.js";
4
+ import "./chunk-R4R5RHIS.js";
4
5
  export {
5
6
  createConfigSnapshot
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.20",
4
4
  "description": "Self-contained loader that bundles and serializes a Panda config for the Rust compiler",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,14 +39,14 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
+ "@pandacss/compiler-shared": "2.0.0-beta.20",
43
+ "@pandacss/types": "2.0.0-beta.20",
42
44
  "acorn": "^8.17.0",
43
45
  "acorn-walk": "^8.3.5",
44
46
  "javascript-stringify": "2.1.0",
45
47
  "magic-string": "^0.30.21",
46
48
  "microdiff": "1.5.0",
47
- "rolldown": "1.0.0-rc.17",
48
- "@pandacss/compiler-shared": "2.0.0-beta.2",
49
- "@pandacss/types": "2.0.0-beta.2"
49
+ "rolldown": "1.2.7"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22"