@pandacss/node 0.41.0 → 0.43.0

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
@@ -1,5 +1,5 @@
1
1
  import * as _pandacss_types from '@pandacss/types';
2
- import { LoadConfigResult, Artifact, Runtime, PandaHooks, WatchOptions, WatcherEventType, ParserResultInterface, ArtifactId, Config, CssArtifactType } from '@pandacss/types';
2
+ import { LoadConfigResult, Artifact, Runtime, PandaHooks, WatchOptions, WatcherEventType, ReportSnapshot, ParserResultInterface, ArtifactId, Config, CssArtifactType } from '@pandacss/types';
3
3
  import { StyleEncoder, Stylesheet } from '@pandacss/core';
4
4
  import { Generator } from '@pandacss/generator';
5
5
  import * as _pandacss_parser from '@pandacss/parser';
@@ -60,124 +60,8 @@ declare class PandaContext extends Generator {
60
60
  interface Options {
61
61
  onResult?: (file: string, result: ParserResultInterface) => void;
62
62
  }
63
- declare function analyzeTokens(ctx: PandaContext, options?: Options): {
64
- duration: {
65
- extractTimeByFiles: {
66
- [k: string]: number;
67
- };
68
- extractTotal: number;
69
- classify: number;
70
- };
71
- fileSizes: {
72
- lineCount: number;
73
- normal: string;
74
- minified: string;
75
- gzip: {
76
- normal: string;
77
- minified: string;
78
- };
79
- };
80
- } & {
81
- counts: {
82
- filesWithTokens: number;
83
- propNameUsed: number;
84
- tokenUsed: number;
85
- shorthandUsed: number;
86
- propertyPathUsed: number;
87
- typeUsed: number;
88
- instanceNameUsed: number;
89
- kindUsed: number;
90
- instanceOfKindUsed: number;
91
- colorsUsed: number;
92
- };
93
- stats: {
94
- filesWithMostInstance: {
95
- [k: string]: number;
96
- };
97
- filesWithMostPropValueCombinations: {
98
- [k: string]: number;
99
- };
100
- mostUseds: {
101
- propNames: {
102
- key: string;
103
- count: number;
104
- }[];
105
- tokens: {
106
- key: string;
107
- count: number;
108
- }[];
109
- shorthands: {
110
- key: string;
111
- count: number;
112
- }[];
113
- conditions: {
114
- key: string;
115
- count: number;
116
- }[];
117
- propertyPaths: {
118
- key: string;
119
- count: number;
120
- }[];
121
- categories: {
122
- key: string;
123
- count: number;
124
- }[];
125
- types: {
126
- key: string;
127
- count: number;
128
- }[];
129
- instanceNames: {
130
- key: string;
131
- count: number;
132
- }[];
133
- fromKinds: {
134
- key: string;
135
- count: number;
136
- }[];
137
- instanceOfKinds: {
138
- key: string;
139
- count: number;
140
- }[];
141
- colors: {
142
- key: string;
143
- count: number;
144
- }[];
145
- };
146
- };
147
- details: {
148
- byId: Map<number, _pandacss_types.ReportItem>;
149
- byInstanceId: Map<number, _pandacss_types.ReportInstanceItem>;
150
- byFilepath: Map<string, Set<number>>;
151
- byInstanceInFilepath: Map<string, Set<number>>;
152
- globalMaps: {
153
- byInstanceOfKind: Map<"function" | "component", Set<number>>;
154
- byPropertyName: Map<string, Set<number>>;
155
- byCategory: Map<string, Set<number>>;
156
- byConditionName: Map<string, Set<number>>;
157
- byShorthand: Map<string, Set<number>>;
158
- byTokenName: Map<string, Set<number>>;
159
- byPropertyPath: Map<string, Set<number>>;
160
- fromKind: Map<"function" | "component", Set<number>>;
161
- byType: Map<string, Set<number>>;
162
- byInstanceName: Map<string, Set<number>>;
163
- colorsUsed: Map<string, Set<number>>;
164
- };
165
- byFilePathMaps: Map<string, {
166
- byInstanceOfKind: Map<"function" | "component", Set<number>>;
167
- byPropertyName: Map<string, Set<number>>;
168
- byCategory: Map<string, Set<number>>;
169
- byConditionName: Map<string, Set<number>>;
170
- byShorthand: Map<string, Set<number>>;
171
- byTokenName: Map<string, Set<number>>;
172
- byPropertyPath: Map<string, Set<number>>;
173
- fromKind: Map<"function" | "component", Set<number>>;
174
- byType: Map<string, Set<number>>;
175
- byInstanceName: Map<string, Set<number>>;
176
- colorsUsed: Map<string, Set<number>>;
177
- }>;
178
- };
179
- };
180
- declare const writeAnalyzeJSON: (filePath: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
63
+ declare function analyzeTokens(ctx: PandaContext, options?: Options): ReportSnapshot;
64
+ declare const writeAnalyzeJSON: (filePath: string, result: ReportSnapshot, ctx: PandaContext) => Promise<void>;
181
65
 
182
66
  declare function buildInfo(ctx: PandaContext, outfile: string): Promise<void>;
183
67
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _pandacss_types from '@pandacss/types';
2
- import { LoadConfigResult, Artifact, Runtime, PandaHooks, WatchOptions, WatcherEventType, ParserResultInterface, ArtifactId, Config, CssArtifactType } from '@pandacss/types';
2
+ import { LoadConfigResult, Artifact, Runtime, PandaHooks, WatchOptions, WatcherEventType, ReportSnapshot, ParserResultInterface, ArtifactId, Config, CssArtifactType } from '@pandacss/types';
3
3
  import { StyleEncoder, Stylesheet } from '@pandacss/core';
4
4
  import { Generator } from '@pandacss/generator';
5
5
  import * as _pandacss_parser from '@pandacss/parser';
@@ -60,124 +60,8 @@ declare class PandaContext extends Generator {
60
60
  interface Options {
61
61
  onResult?: (file: string, result: ParserResultInterface) => void;
62
62
  }
63
- declare function analyzeTokens(ctx: PandaContext, options?: Options): {
64
- duration: {
65
- extractTimeByFiles: {
66
- [k: string]: number;
67
- };
68
- extractTotal: number;
69
- classify: number;
70
- };
71
- fileSizes: {
72
- lineCount: number;
73
- normal: string;
74
- minified: string;
75
- gzip: {
76
- normal: string;
77
- minified: string;
78
- };
79
- };
80
- } & {
81
- counts: {
82
- filesWithTokens: number;
83
- propNameUsed: number;
84
- tokenUsed: number;
85
- shorthandUsed: number;
86
- propertyPathUsed: number;
87
- typeUsed: number;
88
- instanceNameUsed: number;
89
- kindUsed: number;
90
- instanceOfKindUsed: number;
91
- colorsUsed: number;
92
- };
93
- stats: {
94
- filesWithMostInstance: {
95
- [k: string]: number;
96
- };
97
- filesWithMostPropValueCombinations: {
98
- [k: string]: number;
99
- };
100
- mostUseds: {
101
- propNames: {
102
- key: string;
103
- count: number;
104
- }[];
105
- tokens: {
106
- key: string;
107
- count: number;
108
- }[];
109
- shorthands: {
110
- key: string;
111
- count: number;
112
- }[];
113
- conditions: {
114
- key: string;
115
- count: number;
116
- }[];
117
- propertyPaths: {
118
- key: string;
119
- count: number;
120
- }[];
121
- categories: {
122
- key: string;
123
- count: number;
124
- }[];
125
- types: {
126
- key: string;
127
- count: number;
128
- }[];
129
- instanceNames: {
130
- key: string;
131
- count: number;
132
- }[];
133
- fromKinds: {
134
- key: string;
135
- count: number;
136
- }[];
137
- instanceOfKinds: {
138
- key: string;
139
- count: number;
140
- }[];
141
- colors: {
142
- key: string;
143
- count: number;
144
- }[];
145
- };
146
- };
147
- details: {
148
- byId: Map<number, _pandacss_types.ReportItem>;
149
- byInstanceId: Map<number, _pandacss_types.ReportInstanceItem>;
150
- byFilepath: Map<string, Set<number>>;
151
- byInstanceInFilepath: Map<string, Set<number>>;
152
- globalMaps: {
153
- byInstanceOfKind: Map<"function" | "component", Set<number>>;
154
- byPropertyName: Map<string, Set<number>>;
155
- byCategory: Map<string, Set<number>>;
156
- byConditionName: Map<string, Set<number>>;
157
- byShorthand: Map<string, Set<number>>;
158
- byTokenName: Map<string, Set<number>>;
159
- byPropertyPath: Map<string, Set<number>>;
160
- fromKind: Map<"function" | "component", Set<number>>;
161
- byType: Map<string, Set<number>>;
162
- byInstanceName: Map<string, Set<number>>;
163
- colorsUsed: Map<string, Set<number>>;
164
- };
165
- byFilePathMaps: Map<string, {
166
- byInstanceOfKind: Map<"function" | "component", Set<number>>;
167
- byPropertyName: Map<string, Set<number>>;
168
- byCategory: Map<string, Set<number>>;
169
- byConditionName: Map<string, Set<number>>;
170
- byShorthand: Map<string, Set<number>>;
171
- byTokenName: Map<string, Set<number>>;
172
- byPropertyPath: Map<string, Set<number>>;
173
- fromKind: Map<"function" | "component", Set<number>>;
174
- byType: Map<string, Set<number>>;
175
- byInstanceName: Map<string, Set<number>>;
176
- colorsUsed: Map<string, Set<number>>;
177
- }>;
178
- };
179
- };
180
- declare const writeAnalyzeJSON: (filePath: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
63
+ declare function analyzeTokens(ctx: PandaContext, options?: Options): ReportSnapshot;
64
+ declare const writeAnalyzeJSON: (filePath: string, result: ReportSnapshot, ctx: PandaContext) => Promise<void>;
181
65
 
182
66
  declare function buildInfo(ctx: PandaContext, outfile: string): Promise<void>;
183
67