@dmisdm/pandatail 0.4.0 → 0.6.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.
@@ -0,0 +1,8 @@
1
+ import type { Diagnostic } from "@pandacss/compiler-shared";
2
+ import type { CssSyntaxError } from "postcss";
3
+ export declare class PandatailDiagnosticError extends Error {
4
+ readonly diagnostics: Diagnostic[];
5
+ constructor(diagnostics: Diagnostic[]);
6
+ }
7
+ export declare function formatCheckDiagnostic(issue: Diagnostic): string;
8
+ export declare function cssIssue(error: CssSyntaxError, code: string, file?: string, severity?: Diagnostic["severity"]): Diagnostic;
package/dist/extract.d.ts CHANGED
@@ -43,5 +43,7 @@ export interface ExtractOptions {
43
43
  * theme into a flat list of {@link ExtractedToken}s ready for Panda.
44
44
  */
45
45
  export declare function extractTokens(opts: ExtractOptions): Promise<ExtractedToken[]>;
46
+ export declare function loadThemeEntries(opts: ExtractOptions): Promise<Map<string, string>>;
47
+ export declare function tokensFromTheme(themeEntries: ReadonlyMap<string, string>): ExtractedToken[];
46
48
  /** Convenience: load CSS from a file path then extract. */
47
49
  export declare function extractTokensFromFile(path: string): Promise<ExtractedToken[]>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { createPandatailProject, buildProject, formatDiagnostic, type PandatailOptions, type PandatailProject, type BuildOptions, type BuildResult, } from "./project";
2
+ export { checkProject, checkPandaDocument, type CheckResult } from "./check";
2
3
  export { tailwindPreset, loadTailwind, type TailwindPresetOptions, type LoadedTailwind, } from "./preset";
3
4
  export { extractTokens, extractTokensFromFile, type ExtractedToken, type ExtractOptions, } from "./extract";
4
5
  export { scanCss, type CssScan, type ScanCssOptions } from "./scanCss";