@pandacss/token-dictionary 0.50.0 → 0.51.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.d.mts CHANGED
@@ -119,7 +119,7 @@ declare class TokenDictionary {
119
119
  formatTokenName: (path: string[]) => string;
120
120
  formatCssVar: (path: string[], options: CssVarOptions) => CssVar;
121
121
  registerTokens(): this;
122
- registerToken: (token: Token, transformPhase?: 'pre' | 'post') => void;
122
+ registerToken: (token: Token, transformPhase?: "pre" | "post") => void;
123
123
  private transforms;
124
124
  registerTransform(...transforms: TokenTransformer[]): this;
125
125
  private execTransform;
@@ -197,7 +197,7 @@ declare function expandReferences(value: string, fn: (key: string) => string): s
197
197
  * Converts a JS Map to an object
198
198
  */
199
199
  declare function mapToJson(map: Map<string, any>): Record<string, unknown>;
200
- declare const isToken: (value: any) => value is Token$1<any>;
200
+ declare const isToken: (value: any) => value is Token$1;
201
201
  declare function assertTokenFormat(token: any): asserts token is Token$1;
202
202
 
203
203
  export { Token, TokenDictionary, type TokenExtensions, assertTokenFormat, expandReferences, getReferences, hasReference, isToken, mapToJson };
package/dist/index.d.ts CHANGED
@@ -119,7 +119,7 @@ declare class TokenDictionary {
119
119
  formatTokenName: (path: string[]) => string;
120
120
  formatCssVar: (path: string[], options: CssVarOptions) => CssVar;
121
121
  registerTokens(): this;
122
- registerToken: (token: Token, transformPhase?: 'pre' | 'post') => void;
122
+ registerToken: (token: Token, transformPhase?: "pre" | "post") => void;
123
123
  private transforms;
124
124
  registerTransform(...transforms: TokenTransformer[]): this;
125
125
  private execTransform;
@@ -197,7 +197,7 @@ declare function expandReferences(value: string, fn: (key: string) => string): s
197
197
  * Converts a JS Map to an object
198
198
  */
199
199
  declare function mapToJson(map: Map<string, any>): Record<string, unknown>;
200
- declare const isToken: (value: any) => value is Token$1<any>;
200
+ declare const isToken: (value: any) => value is Token$1;
201
201
  declare function assertTokenFormat(token: any): asserts token is Token$1;
202
202
 
203
203
  export { Token, TokenDictionary, type TokenExtensions, assertTokenFormat, expandReferences, getReferences, hasReference, isToken, mapToJson };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "0.50.0",
3
+ "version": "0.51.1",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "ts-pattern": "5.0.8",
36
- "@pandacss/logger": "^0.50.0",
37
- "@pandacss/shared": "0.50.0",
38
- "@pandacss/types": "0.50.0"
36
+ "@pandacss/logger": "^0.51.1",
37
+ "@pandacss/shared": "0.51.1",
38
+ "@pandacss/types": "0.51.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsup src/index.ts --format=esm,cjs --dts",