@pandacss/types 0.0.0-dev-20240219094740 → 0.0.0-dev-20240221020431

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.
Files changed (2) hide show
  1. package/dist/hooks.d.ts +5 -9
  2. package/package.json +2 -2
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-20240219094740",
3
+ "version": "0.0.0-dev-20240221020431",
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-20240219094740"
33
+ "@pandacss/extractor": "0.0.0-dev-20240221020431"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "tsx scripts/watch.ts",