Bump @justinribeiro/lite-youtube from 0.9.0 to 0.9.1 in /build/javascript (#273)
* Commit updated Javascript packages * Bump preact from 10.5.4 to 10.5.5 in /build/javascript (#265) * Trying a new github workflow to install javascript packages * Bump tailwindcss from 1.9.2 to 1.9.4 in /build/javascript (#266) Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 1.9.2 to 1.9.4. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v1.9.2...v1.9.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Commit updated Javascript packages * Bump preact from 10.5.4 to 10.5.5 in /build/javascript Bumps [preact](https://github.com/preactjs/preact) from 10.5.4 to 10.5.5. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.5.4...10.5.5) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owncast <owncast@owncast.online> * Bump @justinribeiro/lite-youtube in /build/javascript Bumps [@justinribeiro/lite-youtube](https://github.com/justinribeiro/lite-youtube) from 0.9.0 to 0.9.1. - [Release notes](https://github.com/justinribeiro/lite-youtube/releases) - [Commits](https://github.com/justinribeiro/lite-youtube/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Owncast <owncast@owncast.online> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
237
build/javascript/node_modules/purgecss/lib/purgecss.esm.d.ts
generated
vendored
Executable file
237
build/javascript/node_modules/purgecss/lib/purgecss.esm.d.ts
generated
vendored
Executable file
@@ -0,0 +1,237 @@
|
||||
import * as postcss from "postcss";
|
||||
interface RawContent<T = string> {
|
||||
extension: string;
|
||||
raw: T;
|
||||
}
|
||||
interface RawCSS {
|
||||
raw: string;
|
||||
}
|
||||
interface ExtractorResultDetailed {
|
||||
attributes: {
|
||||
names: string[];
|
||||
values: string[];
|
||||
};
|
||||
classes: string[];
|
||||
ids: string[];
|
||||
tags: string[];
|
||||
undetermined: string[];
|
||||
}
|
||||
type ExtractorResult = ExtractorResultDetailed | string[];
|
||||
type ExtractorFunction<T = string> = (content: T) => ExtractorResult;
|
||||
interface Extractors {
|
||||
extensions: string[];
|
||||
extractor: ExtractorFunction;
|
||||
}
|
||||
interface UserDefinedOptions {
|
||||
content: Array<string | RawContent>;
|
||||
css: Array<string | RawCSS>;
|
||||
defaultExtractor?: ExtractorFunction;
|
||||
extractors?: Array<Extractors>;
|
||||
fontFace?: boolean;
|
||||
keyframes?: boolean;
|
||||
output?: string;
|
||||
rejected?: boolean;
|
||||
stdin?: boolean;
|
||||
stdout?: boolean;
|
||||
variables?: boolean;
|
||||
whitelist?: string[];
|
||||
whitelistPatterns?: Array<RegExp>;
|
||||
whitelistPatternsChildren?: Array<RegExp>;
|
||||
}
|
||||
interface Options {
|
||||
content: Array<string | RawContent>;
|
||||
css: Array<string | RawCSS>;
|
||||
defaultExtractor: ExtractorFunction;
|
||||
extractors: Array<Extractors>;
|
||||
fontFace: boolean;
|
||||
keyframes: boolean;
|
||||
output?: string;
|
||||
rejected: boolean;
|
||||
stdin: boolean;
|
||||
stdout: boolean;
|
||||
variables: boolean;
|
||||
whitelist: string[];
|
||||
whitelistPatterns: Array<RegExp>;
|
||||
whitelistPatternsChildren: Array<RegExp>;
|
||||
}
|
||||
interface ResultPurge {
|
||||
css: string;
|
||||
file?: string;
|
||||
rejected?: string[];
|
||||
}
|
||||
declare const defaultOptions: Options;
|
||||
declare class ExtractorResultSets {
|
||||
private undetermined;
|
||||
private attrNames;
|
||||
private attrValues;
|
||||
private classes;
|
||||
private ids;
|
||||
private tags;
|
||||
constructor(er: ExtractorResult);
|
||||
merge(that: ExtractorResult | ExtractorResultSets): this;
|
||||
hasAttrName(name: string): boolean;
|
||||
private someAttrValue;
|
||||
hasAttrPrefix(prefix: string): boolean;
|
||||
hasAttrSuffix(suffix: string): boolean;
|
||||
hasAttrSubstr(substr: string): boolean;
|
||||
hasAttrValue(value: string): boolean;
|
||||
hasClass(name: string): boolean;
|
||||
hasId(id: string): boolean;
|
||||
hasTag(tag: string): boolean;
|
||||
}
|
||||
/**
|
||||
* Load the configuration file from the path
|
||||
* @param configFile Path of the config file
|
||||
*/
|
||||
declare function setOptions(configFile?: string): Promise<Options>;
|
||||
/**
|
||||
* Merge two extractor selectors
|
||||
* @param extractorSelectorsA extractor selectors A
|
||||
* @param extractorSelectorsB extractor selectors B
|
||||
*/
|
||||
declare function mergeExtractorSelectors(...extractors: (ExtractorResultDetailed | ExtractorResultSets)[]): ExtractorResultSets;
|
||||
declare class PurgeCSS {
|
||||
private ignore;
|
||||
private atRules;
|
||||
private usedAnimations;
|
||||
private usedFontFaces;
|
||||
selectorsRemoved: Set<string>;
|
||||
private variablesStructure;
|
||||
options: Options;
|
||||
private collectDeclarationsData;
|
||||
/**
|
||||
* Get the extractor corresponding to the extension file
|
||||
* @param filename Name of the file
|
||||
* @param extractors Array of extractors definition
|
||||
*/
|
||||
/**
|
||||
* Get the extractor corresponding to the extension file
|
||||
* @param filename Name of the file
|
||||
* @param extractors Array of extractors definition
|
||||
*/
|
||||
private getFileExtractor;
|
||||
/**
|
||||
* Extract the selectors present in the files using a purgecss extractor
|
||||
* @param files Array of files path or glob pattern
|
||||
* @param extractors Array of extractors
|
||||
*/
|
||||
/**
|
||||
* Extract the selectors present in the files using a purgecss extractor
|
||||
* @param files Array of files path or glob pattern
|
||||
* @param extractors Array of extractors
|
||||
*/
|
||||
extractSelectorsFromFiles(files: string[], extractors: Extractors[]): Promise<ExtractorResultSets>;
|
||||
/**
|
||||
* Extract the selectors present in the passed string using a PurgeCSS extractor
|
||||
* @param content Array of content
|
||||
* @param extractors Array of extractors
|
||||
*/
|
||||
/**
|
||||
* Extract the selectors present in the passed string using a PurgeCSS extractor
|
||||
* @param content Array of content
|
||||
* @param extractors Array of extractors
|
||||
*/
|
||||
extractSelectorsFromString(content: RawContent[], extractors: Extractors[]): Promise<ExtractorResultSets>;
|
||||
/**
|
||||
* Evaluate at-rule and register it for future reference
|
||||
* @param node node of postcss AST
|
||||
*/
|
||||
/**
|
||||
* Evaluate at-rule and register it for future reference
|
||||
* @param node node of postcss AST
|
||||
*/
|
||||
private evaluateAtRule;
|
||||
/**
|
||||
* Evaluate css selector and decide if it should be removed or not
|
||||
* @param node node of postcss AST
|
||||
* @param selectors selectors used in content files
|
||||
*/
|
||||
/**
|
||||
* Evaluate css selector and decide if it should be removed or not
|
||||
* @param node node of postcss AST
|
||||
* @param selectors selectors used in content files
|
||||
*/
|
||||
private evaluateRule;
|
||||
/**
|
||||
* Get the purged version of the css based on the files
|
||||
* @param cssOptions css options, files or raw strings
|
||||
* @param selectors set of extracted css selectors
|
||||
*/
|
||||
/**
|
||||
* Get the purged version of the css based on the files
|
||||
* @param cssOptions css options, files or raw strings
|
||||
* @param selectors set of extracted css selectors
|
||||
*/
|
||||
getPurgedCSS(cssOptions: Array<string | RawCSS>, selectors: ExtractorResultSets): Promise<ResultPurge[]>;
|
||||
/**
|
||||
* Check if the selector is whitelisted by the option whitelist or whitelistPatterns
|
||||
* @param selector css selector
|
||||
*/
|
||||
/**
|
||||
* Check if the selector is whitelisted by the option whitelist or whitelistPatterns
|
||||
* @param selector css selector
|
||||
*/
|
||||
private isSelectorWhitelisted;
|
||||
/**
|
||||
* Check if the selector is whitelisted by the whitelistPatternsChildren option
|
||||
* @param selector selector
|
||||
*/
|
||||
/**
|
||||
* Check if the selector is whitelisted by the whitelistPatternsChildren option
|
||||
* @param selector selector
|
||||
*/
|
||||
private isSelectorWhitelistedChildren;
|
||||
/**
|
||||
* Remove unused css
|
||||
* @param userOptions PurgeCSS options
|
||||
*/
|
||||
/**
|
||||
* Remove unused css
|
||||
* @param userOptions PurgeCSS options
|
||||
*/
|
||||
purge(userOptions: UserDefinedOptions | string | undefined): Promise<ResultPurge[]>;
|
||||
/**
|
||||
* Remove unused CSS variables
|
||||
*/
|
||||
/**
|
||||
* Remove unused CSS variables
|
||||
*/
|
||||
removeUnusedCSSVariables(): void;
|
||||
/**
|
||||
* Remove unused font-faces
|
||||
*/
|
||||
/**
|
||||
* Remove unused font-faces
|
||||
*/
|
||||
removeUnusedFontFaces(): void;
|
||||
/**
|
||||
* Remove unused keyframes
|
||||
*/
|
||||
/**
|
||||
* Remove unused keyframes
|
||||
*/
|
||||
removeUnusedKeyframes(): void;
|
||||
/**
|
||||
* Determine if the selector should be kept, based on the selectors found in the files
|
||||
* @param selector set of css selectors found in the content files or string
|
||||
* @param selectorsFromExtractor selectors in the css rule
|
||||
*/
|
||||
/**
|
||||
* Determine if the selector should be kept, based on the selectors found in the files
|
||||
* @param selector set of css selectors found in the content files or string
|
||||
* @param selectorsFromExtractor selectors in the css rule
|
||||
*/
|
||||
private shouldKeepSelector;
|
||||
/**
|
||||
* Walk through the CSS AST and remove unused CSS
|
||||
* @param root root node of the postcss AST
|
||||
* @param selectors selectors used in content files
|
||||
*/
|
||||
/**
|
||||
* Walk through the CSS AST and remove unused CSS
|
||||
* @param root root node of the postcss AST
|
||||
* @param selectors selectors used in content files
|
||||
*/
|
||||
walkThroughCSS(root: postcss.Root, selectors: ExtractorResultSets): void;
|
||||
}
|
||||
export { PurgeCSS as default, PurgeCSS, defaultOptions, setOptions, mergeExtractorSelectors };
|
||||
Reference in New Issue
Block a user