@pandacss/types 0.0.0-dev-20240123144105 → 0.0.0-dev-20240124004338
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 +7 -0
- package/dist/hooks.d.ts +4 -3
- package/dist/index.d.ts +1 -1
- package/package.json +3 -2
package/dist/artifact.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Difference } from 'microdiff'
|
|
1
2
|
import type { Nullable } from './shared'
|
|
2
3
|
|
|
3
4
|
export interface ArtifactContent {
|
|
@@ -49,3 +50,9 @@ export interface ArtifactFilters {
|
|
|
49
50
|
ids?: ArtifactId[]
|
|
50
51
|
affecteds?: AffectedArtifacts
|
|
51
52
|
}
|
|
53
|
+
|
|
54
|
+
export interface DiffConfigResult {
|
|
55
|
+
hasConfigChanged: boolean
|
|
56
|
+
artifacts: Set<ArtifactId>
|
|
57
|
+
diffs: Difference[]
|
|
58
|
+
}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ArtifactId, DiffConfigResult } from './artifact'
|
|
2
2
|
import type { LoadConfigResult, UserConfig } from './config'
|
|
3
|
+
import type { HooksApiInterface } from './hooks-api'
|
|
3
4
|
import type { ParserResultInterface } from './parser'
|
|
4
5
|
|
|
5
6
|
type MaybeAsyncReturn<T = void> = Promise<T> | T
|
|
@@ -17,7 +18,7 @@ export interface PandaHooks {
|
|
|
17
18
|
/**
|
|
18
19
|
* Called when the config file or one of its dependencies (imports) has changed.
|
|
19
20
|
*/
|
|
20
|
-
'config:change': (args: { config: UserConfig }) => MaybeAsyncReturn
|
|
21
|
+
'config:change': (args: { config: UserConfig; changes: DiffConfigResult }) => MaybeAsyncReturn
|
|
21
22
|
/**
|
|
22
23
|
* Called after reading the file content but before parsing it.
|
|
23
24
|
* You can use this hook to transform the file content to a tsx-friendly syntax so that Panda's parser can parse it.
|
|
@@ -32,7 +33,7 @@ export interface PandaHooks {
|
|
|
32
33
|
/**
|
|
33
34
|
* Called after the codegen is completed
|
|
34
35
|
*/
|
|
35
|
-
'codegen:done': () => MaybeAsyncReturn
|
|
36
|
+
'codegen:done': (args: { changed: ArtifactId[] | undefined }) => MaybeAsyncReturn
|
|
36
37
|
/**
|
|
37
38
|
* Called right before adding the design-system CSS (global, static, preflight, tokens, keyframes) to the final CSS
|
|
38
39
|
* Called right before writing/injecting the final CSS (styles.css) that contains the design-system CSS and the parser CSS
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type * from './hooks-api'
|
|
2
1
|
export type * from './analyze-report'
|
|
3
2
|
export type * from './artifact'
|
|
4
3
|
export type * from './composition'
|
|
5
4
|
export type * from './conditions'
|
|
6
5
|
export type * from './config'
|
|
7
6
|
export type * from './hooks'
|
|
7
|
+
export type * from './hooks-api'
|
|
8
8
|
export type * from './parser'
|
|
9
9
|
export type * from './parts'
|
|
10
10
|
export type * from './pattern'
|
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-20240124004338",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"csstype": "3.1.3",
|
|
30
|
+
"microdiff": "^1.3.2",
|
|
30
31
|
"ncp": "^2.0.0",
|
|
31
32
|
"pkg-types": "1.0.3",
|
|
32
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
33
|
+
"@pandacss/extractor": "0.0.0-dev-20240124004338"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
36
|
"dev": "tsx scripts/watch.ts",
|