@pandacss/types 0.0.0-dev-20240129191307 → 0.0.0-dev-20240130182551
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/hooks.d.ts +1 -15
- package/dist/index.d.ts +1 -0
- package/dist/logger.d.ts +23 -0
- package/package.json +2 -2
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ArtifactId, DiffConfigResult } from './artifact'
|
|
2
2
|
import type { LoadConfigResult, UserConfig } from './config'
|
|
3
3
|
import type { HooksApiInterface } from './hooks-api'
|
|
4
|
+
import type { LoggerInterface } from './logger'
|
|
4
5
|
import type { ParserResultInterface } from './parser'
|
|
5
6
|
|
|
6
7
|
type MaybeAsyncReturn<T = void> = Promise<T> | T
|
|
@@ -44,18 +45,3 @@ export interface PandaHooks {
|
|
|
44
45
|
content: string
|
|
45
46
|
}) => string | void
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
-
export interface LoggerInterface {
|
|
49
|
-
level: 'debug' | 'info' | 'warn' | 'error' | 'silent'
|
|
50
|
-
print(data: any): void
|
|
51
|
-
warn: (type: string, data: any) => void
|
|
52
|
-
info: (type: string, data: any) => void
|
|
53
|
-
debug: (type: string, data: any) => void
|
|
54
|
-
error: (type: string, data: any) => void
|
|
55
|
-
log: (data: string) => void
|
|
56
|
-
time: {
|
|
57
|
-
info: (msg: string) => (_msg?: string) => void
|
|
58
|
-
debug: (msg: string) => (_msg?: string) => void
|
|
59
|
-
}
|
|
60
|
-
isDebug: boolean
|
|
61
|
-
}
|
package/dist/index.d.ts
CHANGED
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'
|
|
2
|
+
|
|
3
|
+
export interface LogEntry {
|
|
4
|
+
level: LogLevel | null
|
|
5
|
+
msg: string
|
|
6
|
+
[key: string]: any
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface LoggerInterface {
|
|
10
|
+
level: 'debug' | 'info' | 'warn' | 'error' | 'silent'
|
|
11
|
+
print(data: any): void
|
|
12
|
+
onLog?: (entry: LogEntry) => void
|
|
13
|
+
warn: (type: string, data: any) => void
|
|
14
|
+
info: (type: string, data: any) => void
|
|
15
|
+
debug: (type: string, data: any) => void
|
|
16
|
+
error: (type: string, data: any) => void
|
|
17
|
+
log: (data: string) => void
|
|
18
|
+
time: {
|
|
19
|
+
info: (msg: string) => (_msg?: string) => void
|
|
20
|
+
debug: (msg: string) => (_msg?: string) => void
|
|
21
|
+
}
|
|
22
|
+
isDebug: boolean
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240130182551",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"microdiff": "^1.3.2",
|
|
31
31
|
"ncp": "^2.0.0",
|
|
32
32
|
"pkg-types": "1.0.3",
|
|
33
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
33
|
+
"@pandacss/extractor": "0.0.0-dev-20240130182551"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "tsx scripts/watch.ts",
|