@adobe/css-tools
Advanced tools
Comparing version 4.4.0 to 4.4.1
@@ -153,19 +153,106 @@ declare class CssParseError extends Error { | ||
export type CssAllNodesAST = CssAtRuleAST | CssStylesheetAST | CssDeclarationAST | CssKeyframeAST; | ||
declare class Compiler { | ||
level: number; | ||
indentation: string; | ||
compress: boolean; | ||
constructor(options?: { | ||
indent?: string; | ||
compress?: boolean; | ||
}); | ||
emit(str: string, _position?: CssCommonPositionAST['position']): string; | ||
/** | ||
* Increase, decrease or return current indentation. | ||
*/ | ||
indent(level?: number): string; | ||
visit(node: CssAllNodesAST): string; | ||
mapVisit(nodes: Array<CssAllNodesAST>, delim?: string): string; | ||
compile(node: CssStylesheetAST): string; | ||
/** | ||
* Visit stylesheet node. | ||
*/ | ||
stylesheet(node: CssStylesheetAST): string; | ||
/** | ||
* Visit comment node. | ||
*/ | ||
comment(node: CssCommentAST): string; | ||
/** | ||
* Visit container node. | ||
*/ | ||
container(node: CssContainerAST): string; | ||
/** | ||
* Visit container node. | ||
*/ | ||
layer(node: CssLayerAST): string; | ||
/** | ||
* Visit import node. | ||
*/ | ||
import(node: CssImportAST): string; | ||
/** | ||
* Visit media node. | ||
*/ | ||
media(node: CssMediaAST): string; | ||
/** | ||
* Visit document node. | ||
*/ | ||
document(node: CssDocumentAST): string; | ||
/** | ||
* Visit charset node. | ||
*/ | ||
charset(node: CssCharsetAST): string; | ||
/** | ||
* Visit namespace node. | ||
*/ | ||
namespace(node: CssNamespaceAST): string; | ||
/** | ||
* Visit container node. | ||
*/ | ||
startingStyle(node: CssStartingStyleAST): string; | ||
/** | ||
* Visit supports node. | ||
*/ | ||
supports(node: CssSupportsAST): string; | ||
/** | ||
* Visit keyframes node. | ||
*/ | ||
keyframes(node: CssKeyframesAST): string; | ||
/** | ||
* Visit keyframe node. | ||
*/ | ||
keyframe(node: CssKeyframeAST): string; | ||
/** | ||
* Visit page node. | ||
*/ | ||
page(node: CssPageAST): string; | ||
/** | ||
* Visit font-face node. | ||
*/ | ||
fontFace(node: CssFontFaceAST): string; | ||
/** | ||
* Visit host node. | ||
*/ | ||
host(node: CssHostAST): string; | ||
/** | ||
* Visit custom-media node. | ||
*/ | ||
customMedia(node: CssCustomMediaAST): string; | ||
/** | ||
* Visit rule node. | ||
*/ | ||
rule(node: CssRuleAST): string; | ||
/** | ||
* Visit declaration node. | ||
*/ | ||
declaration(node: CssDeclarationAST): string; | ||
} | ||
export const parse: (css: string, options?: { | ||
source?: string | undefined; | ||
silent?: boolean | undefined; | ||
} | undefined) => CssStylesheetAST; | ||
export const stringify: (node: CssStylesheetAST, options?: { | ||
indent?: string | undefined; | ||
compress?: boolean | undefined; | ||
} | undefined) => string; | ||
source?: string; | ||
silent?: boolean; | ||
}) => CssStylesheetAST; | ||
export const stringify: (node: CssStylesheetAST, options?: ConstructorParameters<$$parcel$import$2>[0]) => string; | ||
declare const _default: { | ||
parse: (css: string, options?: { | ||
source?: string | undefined; | ||
silent?: boolean | undefined; | ||
} | undefined) => CssStylesheetAST; | ||
stringify: (node: CssStylesheetAST, options?: { | ||
indent?: string | undefined; | ||
compress?: boolean | undefined; | ||
} | undefined) => string; | ||
source?: string; | ||
silent?: boolean; | ||
}) => CssStylesheetAST; | ||
stringify: (node: CssStylesheetAST, options?: ConstructorParameters<$$parcel$import$5>[0]) => string; | ||
}; | ||
@@ -172,0 +259,0 @@ export default _default; |
{ | ||
"name": "@adobe/css-tools", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "CSS parser / stringifier", | ||
@@ -20,13 +20,13 @@ "source": "src/index.ts", | ||
"devDependencies": { | ||
"@parcel/packager-ts": "2.12.0", | ||
"@parcel/transformer-typescript-types": "2.12.0", | ||
"@parcel/packager-ts": "2.13.0", | ||
"@parcel/transformer-typescript-types": "2.13.0", | ||
"@types/benchmark": "^2.1.1", | ||
"@types/bytes": "^3.1.1", | ||
"@types/jest": "^29.5.3", | ||
"@types/node": "^20.4.5", | ||
"@types/node": "^22.7.5", | ||
"benchmark": "^2.1.4", | ||
"bytes": "^3.1.0", | ||
"gts": "^5.0.0", | ||
"gts": "^6.0.2", | ||
"jest": "^29.6.2", | ||
"parcel": "^2.12.0", | ||
"parcel": "^2.13.0", | ||
"ts-jest": "^29.1.1", | ||
@@ -33,0 +33,0 @@ "typescript": "^5.0.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190257
1805