@pandacss/config 0.34.1 → 0.34.3

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
@@ -698,7 +698,11 @@ var validateTokenReferences = (valueAtPath, refsByPath, addError) => {
698
698
  }
699
699
  const stack = [path2];
700
700
  while (stack.length > 0) {
701
- const currentPath = stack.pop();
701
+ let currentPath = stack.pop();
702
+ if (currentPath.includes("/")) {
703
+ const [tokenPath] = currentPath.split("/");
704
+ currentPath = tokenPath;
705
+ }
702
706
  const value = valueAtPath.get(currentPath);
703
707
  if (!value) {
704
708
  addError("tokens", `Missing token: \`${currentPath}\` used in \`config.semanticTokens.${path2}\``);
@@ -743,7 +747,7 @@ var validateTokens = (options) => {
743
747
  tokenPaths.add(path2);
744
748
  valueAtPath.set(path2, value);
745
749
  if (path2.includes("DEFAULT")) {
746
- valueAtPath.set(path2.replace("DEFAULT", ""), value);
750
+ valueAtPath.set(path2.replace(SEP + "DEFAULT", ""), value);
747
751
  }
748
752
  },
749
753
  {
package/dist/index.mjs CHANGED
@@ -335,7 +335,11 @@ var validateTokenReferences = (valueAtPath, refsByPath, addError) => {
335
335
  }
336
336
  const stack = [path2];
337
337
  while (stack.length > 0) {
338
- const currentPath = stack.pop();
338
+ let currentPath = stack.pop();
339
+ if (currentPath.includes("/")) {
340
+ const [tokenPath] = currentPath.split("/");
341
+ currentPath = tokenPath;
342
+ }
339
343
  const value = valueAtPath.get(currentPath);
340
344
  if (!value) {
341
345
  addError("tokens", `Missing token: \`${currentPath}\` used in \`config.semanticTokens.${path2}\``);
@@ -380,7 +384,7 @@ var validateTokens = (options) => {
380
384
  tokenPaths.add(path2);
381
385
  valueAtPath.set(path2, value);
382
386
  if (path2.includes("DEFAULT")) {
383
- valueAtPath.set(path2.replace("DEFAULT", ""), value);
387
+ valueAtPath.set(path2.replace(SEP + "DEFAULT", ""), value);
384
388
  }
385
389
  },
386
390
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "0.34.1",
3
+ "version": "0.34.3",
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.34.1",
68
- "@pandacss/preset-base": "0.34.1",
69
- "@pandacss/preset-panda": "0.34.1",
70
- "@pandacss/shared": "0.34.1",
71
- "@pandacss/types": "0.34.1"
67
+ "@pandacss/logger": "0.34.3",
68
+ "@pandacss/preset-base": "0.34.3",
69
+ "@pandacss/preset-panda": "0.34.3",
70
+ "@pandacss/shared": "0.34.3",
71
+ "@pandacss/types": "0.34.3"
72
72
  },
73
73
  "devDependencies": {
74
74
  "pkg-types": "1.0.3"