@pandacss/token-dictionary 1.8.2 → 1.9.1

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
@@ -113,7 +113,7 @@ function expandReferences(value, fn) {
113
113
  import_logger.logger.warn("token", notFoundMessage(key, value));
114
114
  }
115
115
  const expandedValue = resolved ?? (0, import_shared.esc)(key);
116
- return valueStr.replace(`{${key}}`, expandedValue);
116
+ return valueStr.replaceAll(`{${key}}`, expandedValue);
117
117
  }, value);
118
118
  if (!expanded.includes(`token(`)) return expanded;
119
119
  return expanded.replace(tokenFunctionRegex, (_, token) => {
@@ -218,7 +218,7 @@ var Token = class _Token {
218
218
  return valueStr;
219
219
  }
220
220
  const value = referenceToken.expandReferences();
221
- return valueStr.replace(`{${key}}`, value);
221
+ return valueStr.replaceAll(`{${key}}`, value);
222
222
  }, this.value);
223
223
  delete this.extensions.references;
224
224
  return this.value;
@@ -654,7 +654,7 @@ var addConditionalCssVariables = {
654
654
  if (!modifier) {
655
655
  refs.forEach((ref) => {
656
656
  const variable = dictionary.formatCssVar(ref.split("."), { prefix, hash }).ref;
657
- token.value = token.value.replace(`{${ref}}`, variable);
657
+ token.value = token.value.replaceAll(`{${ref}}`, variable);
658
658
  });
659
659
  } else {
660
660
  const tokenFn = (name) => {
package/dist/index.mjs CHANGED
@@ -79,7 +79,7 @@ function expandReferences(value, fn) {
79
79
  logger.warn("token", notFoundMessage(key, value));
80
80
  }
81
81
  const expandedValue = resolved ?? esc(key);
82
- return valueStr.replace(`{${key}}`, expandedValue);
82
+ return valueStr.replaceAll(`{${key}}`, expandedValue);
83
83
  }, value);
84
84
  if (!expanded.includes(`token(`)) return expanded;
85
85
  return expanded.replace(tokenFunctionRegex, (_, token) => {
@@ -184,7 +184,7 @@ var Token = class _Token {
184
184
  return valueStr;
185
185
  }
186
186
  const value = referenceToken.expandReferences();
187
- return valueStr.replace(`{${key}}`, value);
187
+ return valueStr.replaceAll(`{${key}}`, value);
188
188
  }, this.value);
189
189
  delete this.extensions.references;
190
190
  return this.value;
@@ -620,7 +620,7 @@ var addConditionalCssVariables = {
620
620
  if (!modifier) {
621
621
  refs.forEach((ref) => {
622
622
  const variable = dictionary.formatCssVar(ref.split("."), { prefix, hash }).ref;
623
- token.value = token.value.replace(`{${ref}}`, variable);
623
+ token.value = token.value.replaceAll(`{${ref}}`, variable);
624
624
  });
625
625
  } else {
626
626
  const tokenFn = (name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "1.8.2",
3
+ "version": "1.9.1",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -35,9 +35,9 @@
35
35
  "dependencies": {
36
36
  "picomatch": "^4.0.0",
37
37
  "ts-pattern": "5.9.0",
38
- "@pandacss/logger": "^1.8.2",
39
- "@pandacss/shared": "1.8.2",
40
- "@pandacss/types": "1.8.2"
38
+ "@pandacss/logger": "^1.9.1",
39
+ "@pandacss/shared": "1.9.1",
40
+ "@pandacss/types": "1.9.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/picomatch": "4.0.2"