@pandacss/config 0.0.0-dev-20240130182551 → 0.0.0-dev-20240201214314

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/index.js CHANGED
@@ -669,11 +669,6 @@ var validateTokens = (options) => {
669
669
  });
670
670
  validateTokenReferences(valueAtPath, refsByPath, addError);
671
671
  }
672
- semanticTokenNames.forEach((semanticTokenName) => {
673
- if (tokenNames.has(semanticTokenName)) {
674
- addError("tokens", `This token name is already used in \`config.theme.token\`: \`${semanticTokenName}\``);
675
- }
676
- });
677
672
  };
678
673
 
679
674
  // src/validate-config.ts
@@ -739,7 +734,11 @@ async function resolveConfig(result, cwd) {
739
734
  ...result,
740
735
  config
741
736
  };
742
- await hooks["config:resolved"]?.({ conf: loadConfigResult });
737
+ await hooks["config:resolved"]?.({
738
+ config: loadConfigResult.config,
739
+ path: loadConfigResult.path,
740
+ dependencies: loadConfigResult.dependencies
741
+ });
743
742
  const serialized = (0, import_shared7.stringifyJson)(loadConfigResult.config);
744
743
  const deserialize = () => (0, import_shared7.parseJson)(serialized);
745
744
  return { ...loadConfigResult, serialized, deserialize, hooks };
package/dist/index.mjs CHANGED
@@ -401,11 +401,6 @@ var validateTokens = (options) => {
401
401
  });
402
402
  validateTokenReferences(valueAtPath, refsByPath, addError);
403
403
  }
404
- semanticTokenNames.forEach((semanticTokenName) => {
405
- if (tokenNames.has(semanticTokenName)) {
406
- addError("tokens", `This token name is already used in \`config.theme.token\`: \`${semanticTokenName}\``);
407
- }
408
- });
409
404
  };
410
405
 
411
406
  // src/validate-config.ts
@@ -471,7 +466,11 @@ async function resolveConfig(result, cwd) {
471
466
  ...result,
472
467
  config
473
468
  };
474
- await hooks["config:resolved"]?.({ conf: loadConfigResult });
469
+ await hooks["config:resolved"]?.({
470
+ config: loadConfigResult.config,
471
+ path: loadConfigResult.path,
472
+ dependencies: loadConfigResult.dependencies
473
+ });
475
474
  const serialized = stringifyJson(loadConfigResult.config);
476
475
  const deserialize = () => parseJson(serialized);
477
476
  return { ...loadConfigResult, serialized, deserialize, hooks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "0.0.0-dev-20240130182551",
3
+ "version": "0.0.0-dev-20240201214314",
4
4
  "description": "Find and load panda config",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -64,11 +64,11 @@
64
64
  "merge-anything": "^5.1.7",
65
65
  "microdiff": "^1.3.2",
66
66
  "typescript": "^5.3.3",
67
- "@pandacss/logger": "0.0.0-dev-20240130182551",
68
- "@pandacss/preset-base": "0.0.0-dev-20240130182551",
69
- "@pandacss/preset-panda": "0.0.0-dev-20240130182551",
70
- "@pandacss/shared": "0.0.0-dev-20240130182551",
71
- "@pandacss/types": "0.0.0-dev-20240130182551"
67
+ "@pandacss/logger": "0.0.0-dev-20240201214314",
68
+ "@pandacss/preset-base": "0.0.0-dev-20240201214314",
69
+ "@pandacss/preset-panda": "0.0.0-dev-20240201214314",
70
+ "@pandacss/shared": "0.0.0-dev-20240201214314",
71
+ "@pandacss/types": "0.0.0-dev-20240201214314"
72
72
  },
73
73
  "devDependencies": {
74
74
  "pkg-types": "1.0.3"