@navita/engine
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,3 +0,25 @@ | ||
import { StyleRule, FontFaceRule, CSSKeyframes } from '@navita/types'; | ||
import { CSSKeyframes, FontFaceRule, StyleRule } from '@navita/types'; | ||
interface StyleBlock { | ||
type: 'rule' | 'static'; | ||
selector: string; | ||
property: string; | ||
value: string; | ||
pseudo: string; | ||
media: string; | ||
support: string; | ||
container: string; | ||
id: string | number; | ||
} | ||
interface KeyframesBlock { | ||
type: 'keyframes'; | ||
rule: CSSKeyframes; | ||
id: string; | ||
} | ||
interface FontFaceBlock { | ||
type: 'fontFace'; | ||
rule: FontFaceRule[]; | ||
id: string; | ||
} | ||
declare class ClassList extends String { | ||
@@ -13,2 +35,6 @@ } | ||
}; | ||
interface Identifier { | ||
value: string; | ||
id: string; | ||
} | ||
type Options = { | ||
@@ -51,3 +77,19 @@ context?: string; | ||
getUsedFilePaths(): string[]; | ||
getItems(caches: UsedIdCache): {}; | ||
getItems(caches: UsedIdCache): { | ||
rule?: (StyleBlock & { | ||
id: string | number; | ||
})[]; | ||
static?: (StyleBlock & { | ||
id: string | number; | ||
})[]; | ||
keyframes?: (KeyframesBlock & { | ||
id: string | number; | ||
})[]; | ||
fontFace?: (FontFaceBlock & { | ||
id: string | number; | ||
})[]; | ||
identifiers?: (Identifier & { | ||
id: string | number; | ||
})[]; | ||
}; | ||
clearUsedIds(filePath: string): void; | ||
@@ -54,0 +96,0 @@ private addUsedIds; |
{ | ||
"name": "@navita/engine", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Navitas CSS-in-JS engine", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
79418
2146