@pandacss/types 0.0.0-dev-20240219094740 → 0.0.0-dev-20240222185959
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/artifact.d.ts +8 -1
- package/dist/hooks.d.ts +5 -9
- package/package.json +2 -2
package/dist/artifact.d.ts
CHANGED
|
@@ -26,7 +26,14 @@ export type ArtifactId =
|
|
|
26
26
|
| 'jsx-patterns-index'
|
|
27
27
|
| 'css-index'
|
|
28
28
|
| 'package.json'
|
|
29
|
-
|
|
|
29
|
+
| 'types-jsx'
|
|
30
|
+
| 'types-entry'
|
|
31
|
+
| 'types-styles'
|
|
32
|
+
| 'types-conditions'
|
|
33
|
+
| 'types-gen'
|
|
34
|
+
| 'types-gen-system'
|
|
35
|
+
| `recipes.${string}`
|
|
36
|
+
| `patterns.${string}`
|
|
30
37
|
|
|
31
38
|
export type CssArtifactType = 'preflight' | 'tokens' | 'static' | 'global' | 'keyframes'
|
|
32
39
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -41,14 +41,7 @@ export interface PandaHooks {
|
|
|
41
41
|
* Called right before writing the codegen files to disk.
|
|
42
42
|
* You can use this hook to tweak the codegen files before they are written to disk.
|
|
43
43
|
*/
|
|
44
|
-
'codegen:prepare': (args:
|
|
45
|
-
artifacts: Artifact[]
|
|
46
|
-
/**
|
|
47
|
-
* The original state of the artifacts, as it was generated by Panda, without any modification from other preset hooks
|
|
48
|
-
*/
|
|
49
|
-
original?: Artifact[]
|
|
50
|
-
changed: ArtifactId[] | undefined
|
|
51
|
-
}) => MaybeAsyncReturn<Artifact[]>
|
|
44
|
+
'codegen:prepare': (args: CodegenPrepareHookArgs) => MaybeAsyncReturn<void | Artifact[]>
|
|
52
45
|
/**
|
|
53
46
|
* Called after the codegen is completed
|
|
54
47
|
*/
|
|
@@ -165,9 +158,12 @@ export interface ParserResultAfterHookArgs {
|
|
|
165
158
|
|
|
166
159
|
export interface CodegenPrepareHookArgs {
|
|
167
160
|
artifacts: Artifact[]
|
|
161
|
+
/**
|
|
162
|
+
* The original state of the artifacts, as it was generated by Panda, without any modification from other preset hooks
|
|
163
|
+
*/
|
|
164
|
+
original?: Artifact[]
|
|
168
165
|
changed: ArtifactId[] | undefined
|
|
169
166
|
}
|
|
170
|
-
|
|
171
167
|
export interface CodegenDoneHookArgs {
|
|
172
168
|
changed: ArtifactId[] | undefined
|
|
173
169
|
}
|
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-20240222185959",
|
|
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-20240222185959"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "tsx scripts/watch.ts",
|