Skip to content

Commit 61e78d4

Browse files
chriseppsteinamiller-gh
authored andcommitted
chore: Update lockfile. Organize imports.
1 parent 557fd49 commit 61e78d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+90
-320
lines changed

packages/@css-blocks/core/src/Analyzer/Analysis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// tslint:disable-next-line:no-unused-variable Imported for Documentation link
22
import {
3-
isSourcePosition,
43
POSITION_UNKNOWN,
54
SourceLocation,
65
SourcePosition,
6+
isSourcePosition,
77
} from "@opticss/element-analysis";
88
import {
99
SerializedTemplateInfo,

packages/@css-blocks/core/src/Analyzer/Analyzer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { BlockFactory } from "../BlockParser";
1010
import { Block, Style } from "../BlockTree";
1111
import {
1212
Options,
13-
resolveConfiguration,
1413
ResolvedConfiguration,
14+
resolveConfiguration,
1515
} from "../configuration";
1616

1717
import { Analysis, SerializedAnalysis } from "./Analysis";

packages/@css-blocks/core/src/Analyzer/ElementAnalysis.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import {
44
AttributeValueChoiceOption,
55
AttributeValueSet,
66
AttributeValueSetItem,
7-
attrValues,
87
Element,
9-
isConstant,
108
POSITION_UNKNOWN,
119
SourceLocation,
1210
Tagname,
1311
ValueAbsent,
1412
ValueConstant,
13+
attrValues,
14+
isConstant,
1515
} from "@opticss/element-analysis";
1616
import {
1717
MultiMap,
@@ -21,13 +21,13 @@ import {
2121
} from "@opticss/util";
2222

2323
import {
24-
Attribute,
2524
AttrValue,
25+
Attribute,
2626
Block,
2727
BlockClass,
28+
Style,
2829
isAttrValue,
2930
isBlockClass,
30-
Style,
3131
} from "../BlockTree";
3232
import {
3333
ResolvedConfiguration,

packages/@css-blocks/core/src/Analyzer/validations/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import * as errors from "../../errors";
55
import { Analysis } from "../Analysis";
66
import { ElementAnalysis } from "../ElementAnalysis";
77

8-
import { Validator } from "./Validator";
98
import { attributeGroupValidator } from "./attribute-group-validator";
109
import { attributeParentValidator } from "./attribute-parent-validator";
1110
import { classPairsValidator } from "./class-pairs-validator";
1211
import { propertyConflictValidator } from "./property-conflict-validator";
1312
import { rootClassValidator } from "./root-class-validator";
13+
import { Validator } from "./Validator";
1414

1515
export * from "./class-pairs-validator";
1616
export * from "./root-class-validator";

packages/@css-blocks/core/src/Analyzer/validations/property-conflict-validator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MultiMap, objectValues, TwoKeyMultiMap } from "@opticss/util";
1+
import { MultiMap, TwoKeyMultiMap, objectValues } from "@opticss/util";
22
import * as propParser from "css-property-parser";
33
import { postcss } from "opticss";
44

packages/@css-blocks/core/src/BlockCompiler/ConflictResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { CompoundSelector, ParsedSelector, parseSelector, postcss, postcssSelect
44
import { getBlockNode } from "../BlockParser";
55
import { RESOLVE_RE } from "../BlockSyntax";
66
import { Block, Style } from "../BlockTree";
7-
import { SourceLocation, sourceLocation } from "../SourceLocation";
87
import { ResolvedConfiguration } from "../configuration";
98
import * as errors from "../errors";
109
import { QueryKeySelector } from "../query";
10+
import { SourceLocation, sourceLocation } from "../SourceLocation";
1111

1212
import { Conflicts, detectConflicts } from "./conflictDetection";
1313

packages/@css-blocks/core/src/BlockCompiler/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import {
66
BLOCK_DEBUG,
77
BLOCK_PROP_NAMES_RE,
88
BLOCK_REFERENCE,
9-
parseBlockDebug,
109
ROOT_CLASS,
10+
parseBlockDebug,
1111
} from "../BlockSyntax";
1212
import { Block } from "../BlockTree";
1313
import {
1414
Options,
15-
resolveConfiguration,
1615
ResolvedConfiguration,
16+
resolveConfiguration,
1717
} from "../configuration";
1818

1919
import { ConflictResolver } from "./ConflictResolver";

packages/@css-blocks/core/src/BlockParser/BlockFactory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import * as path from "path";
55
import { RawSourceMap } from "source-map";
66

77
import { Block } from "../BlockTree";
8-
import { Options, resolveConfiguration, ResolvedConfiguration } from "../configuration";
8+
import { Options, ResolvedConfiguration, resolveConfiguration } from "../configuration";
99
import { FileIdentifier, ImportedFile, Importer } from "../importing";
1010
import { PromiseQueue } from "../util/PromiseQueue";
1111

1212
import { BlockParser, ParsedSource } from "./BlockParser";
13-
import { annotateCssContentWithSourceMap, Preprocessor, Preprocessors, ProcessedFile, Syntax, syntaxName } from "./preprocessing";
13+
import { Preprocessor, Preprocessors, ProcessedFile, Syntax, annotateCssContentWithSourceMap, syntaxName } from "./preprocessing";
1414

1515
const debug = debugGenerator("css-blocks:BlockFactory");
1616

packages/@css-blocks/core/src/BlockParser/BlockParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { postcss } from "opticss";
22

33
import { Block } from "../BlockTree";
4-
import { Options, resolveConfiguration, ResolvedConfiguration } from "../configuration";
4+
import { Options, ResolvedConfiguration, resolveConfiguration } from "../configuration";
55
import * as errors from "../errors";
66
import { FileIdentifier } from "../importing";
77

packages/@css-blocks/core/src/BlockParser/features/assert-foreign-global-attribute.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { postcss } from "opticss";
22

33
import { Block } from "../../BlockTree";
4-
import { selectorSourceLocation as loc } from "../../SourceLocation";
54
import * as errors from "../../errors";
5+
import { selectorSourceLocation as loc } from "../../SourceLocation";
66
import {
77
BlockType,
88
getBlockNode,

packages/@css-blocks/core/src/BlockParser/features/construct-block.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ import { assertNever } from "@opticss/util";
22
import { CompoundSelector, ParsedSelector, postcss, postcssSelectorParser as selectorParser } from "opticss";
33

44
import { Block, Style } from "../../BlockTree";
5-
import { selectorSourceLocation as loc, sourceLocation } from "../../SourceLocation";
65
import * as errors from "../../errors";
6+
import { selectorSourceLocation as loc, sourceLocation } from "../../SourceLocation";
77
import {
88
BlockNodeAndType,
99
BlockType,
10+
NodeAndType,
1011
blockTypeName,
1112
getBlockNode,
1213
isAttributeNode,
1314
isClassLevelObject,
1415
isClassNode,
1516
isRootLevelObject,
1617
isRootNode,
17-
NodeAndType,
1818
toAttrToken,
1919
} from "../block-intermediates";
2020

packages/@css-blocks/core/src/BlockParser/features/disallow-important.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { postcss } from "opticss";
22

3-
import { sourceLocation as loc } from "../../SourceLocation";
43
import * as errors from "../../errors";
4+
import { sourceLocation as loc } from "../../SourceLocation";
55

66
export async function disallowImportant(root: postcss.Root, file: string): Promise<postcss.Root> {
77
root.walkDecls((decl) => {

packages/@css-blocks/core/src/BlockParser/features/discover-name.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { postcss } from "opticss";
22

33
import { BLOCK_NAME, CLASS_NAME_IDENT } from "../../BlockSyntax";
4-
import { sourceLocation } from "../../SourceLocation";
54
import * as errors from "../../errors";
5+
import { sourceLocation } from "../../SourceLocation";
66

77
export async function discoverName(root: postcss.Root, defaultName: string, file: string): Promise<string> {
88

packages/@css-blocks/core/src/BlockParser/features/extend-block.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { postcss } from "opticss";
22

33
import { EXTENDS } from "../../BlockSyntax";
44
import { Block } from "../../BlockTree";
5-
import { sourceLocation } from "../../SourceLocation";
65
import * as errors from "../../errors";
6+
import { sourceLocation } from "../../SourceLocation";
77

88
/**
99
* For each `extends` property found in the passed ruleset, set the block's base

packages/@css-blocks/core/src/BlockParser/features/global-attributes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { parseSelector, postcss, postcssSelectorParser as selectorParser } from
22

33
import { BLOCK_GLOBAL } from "../../BlockSyntax";
44
import { Block } from "../../BlockTree";
5-
import { sourceLocation as loc } from "../../SourceLocation";
65
import * as errors from "../../errors";
6+
import { sourceLocation as loc } from "../../SourceLocation";
77
import { toAttrToken } from "../block-intermediates";
88

99
export async function globalAttributes(root: postcss.Root, block: Block, file: string): Promise<Block> {

packages/@css-blocks/core/src/BlockParser/features/implement-block.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { postcss } from "opticss";
22

33
import { IMPLEMENTS } from "../../BlockSyntax";
44
import { Block } from "../../BlockTree";
5-
import { sourceLocation } from "../../SourceLocation";
65
import * as errors from "../../errors";
6+
import { sourceLocation } from "../../SourceLocation";
77

88
/**
99
* For each `implements` property found in the passed ruleset, track the foreign

packages/@css-blocks/core/src/BlockParser/features/resolve-references.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { postcss } from "opticss";
33

44
import { BLOCK_REFERENCE, CLASS_NAME_IDENT } from "../../BlockSyntax";
55
import { Block } from "../../BlockTree";
6-
import { sourceLocation } from "../../SourceLocation";
76
import * as errors from "../../errors";
7+
import { sourceLocation } from "../../SourceLocation";
88
import { BlockFactory } from "../index";
99

1010
/**

packages/@css-blocks/core/src/BlockSyntax/parseBlockDebug.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { postcss } from "opticss";
22

33
import { Block } from "../BlockTree";
4-
import { sourceLocation } from "../SourceLocation";
54
import * as errors from "../errors";
5+
import { sourceLocation } from "../SourceLocation";
66

77
export type DebugChannel = "comment" | "stderr" | "stdout";
88

packages/@css-blocks/core/src/BlockTree/Attribute.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ValueAbsent,
77
ValueConstant,
88
} from "@opticss/element-analysis";
9-
import { assertNever, ObjectDictionary } from "@opticss/util";
9+
import { ObjectDictionary, assertNever } from "@opticss/util";
1010

1111
import { ATTR_PRESENT, IAttrToken as AttrToken } from "../BlockSyntax";
1212
import { OutputMode, ResolvedConfiguration } from "../configuration";

packages/@css-blocks/core/src/BlockTree/Block.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertNever, MultiMap, ObjectDictionary } from "@opticss/util";
1+
import { MultiMap, ObjectDictionary, assertNever } from "@opticss/util";
22
import { whatever } from "@opticss/util";
33
import {
44
CompoundSelector,
@@ -10,16 +10,16 @@ import {
1010

1111
import {
1212
BlockType,
13+
NodeAndType,
1314
isAttributeNode,
1415
isClassNode,
15-
NodeAndType,
1616
} from "../BlockParser";
1717
import { isRootNode, toAttrToken } from "../BlockParser";
1818
import { BlockPath, CLASS_NAME_IDENT, ROOT_CLASS } from "../BlockSyntax";
19-
import { SourceLocation } from "../SourceLocation";
2019
import { ResolvedConfiguration } from "../configuration";
2120
import { CssBlockError, InvalidBlockSyntax } from "../errors";
2221
import { FileIdentifier } from "../importing";
22+
import { SourceLocation } from "../SourceLocation";
2323

2424
import { BlockClass } from "./BlockClass";
2525
import { Inheritable } from "./Inheritable";

packages/@css-blocks/core/src/BlockTree/BlockClass.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { ATTR_PRESENT, IAttrToken as AttrToken, ROOT_CLASS } from "../BlockSynta
66
import { BlockPath } from "../BlockSyntax";
77
import { OutputMode, ResolvedConfiguration } from "../configuration";
88

9-
import { AttrValue } from "./AttrValue";
109
import { Attribute } from "./Attribute";
10+
import { AttrValue } from "./AttrValue";
1111
import { Block } from "./Block";
1212
import { RulesetContainer } from "./RulesetContainer";
1313
import { Style } from "./Style";

packages/@css-blocks/core/src/BlockTree/RulesetContainer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import * as propParser from "css-property-parser";
1111
import { ParsedSelector, postcss } from "opticss";
1212

1313
import { BLOCK_PROP_NAMES, RESOLVE_RE, SELF_SELECTOR } from "../BlockSyntax";
14-
import { sourceLocation } from "../SourceLocation";
1514
import { InvalidBlockSyntax } from "../errors";
15+
import { sourceLocation } from "../SourceLocation";
1616

17-
import { isStyle, Styles } from "./Styles";
17+
import { Styles, isStyle } from "./Styles";
1818
export { Styles, BlockClass, AttrValue } from "./Styles";
1919

2020
// Convenience types to help our code read better.

packages/@css-blocks/core/src/Plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { postcss } from "opticss";
22

33
import { BlockCompiler } from "./BlockCompiler";
44
import { BlockFactory } from "./BlockParser";
5-
import { Options, resolveConfiguration, ResolvedConfiguration } from "./configuration";
5+
import { Options, ResolvedConfiguration, resolveConfiguration } from "./configuration";
66
import * as errors from "./errors";
77

88
/**

packages/@css-blocks/core/src/TemplateRewriter/RewriteMapping.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {
22
BooleanExpression,
3+
RewriteMapping as OptimizedMapping,
4+
SimpleAttribute,
5+
SimpleTagname,
36
isAndExpression,
47
isBooleanExpression,
58
isNotExpression,
69
isOrExpression,
710
isSimpleTagname,
8-
RewriteMapping as OptimizedMapping,
9-
SimpleAttribute,
10-
SimpleTagname,
1111
} from "@opticss/template-api";
12-
import { assertNever, Maybe, maybe, ObjectDictionary, objectValues } from "@opticss/util";
12+
import { Maybe, ObjectDictionary, assertNever, maybe, objectValues } from "@opticss/util";
1313
import { inspect } from "util";
1414

1515
import { Style } from "../BlockTree";

packages/@css-blocks/core/src/configuration/resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Preprocessors } from "../BlockParser";
22
import {
3-
filesystemImporter,
43
Importer,
54
ImporterData,
5+
filesystemImporter,
66
} from "../importing";
77

88
import { OutputMode } from "./OutputMode";

packages/@css-blocks/core/src/cssBlocks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { postcss } from "opticss";
22

3-
import { Plugin } from "./Plugin";
43
import { Configuration, OutputMode } from "./configuration";
54
import { CssBlockError, InvalidBlockSyntax, MissingSourcePath } from "./errors";
5+
import { Plugin } from "./Plugin";
66

77
// This is ugly but it's the only thing I have been able to make work.
88
// I welcome a patch that cleans this up.

packages/@css-blocks/core/test/global-states-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { suite, test } from "mocha-typescript";
33

44
import cssBlocks = require("./util/postcss-helper");
55

6-
import { BEMProcessor } from "./util/BEMProcessor";
76
import { assertError } from "./util/assertError";
7+
import { BEMProcessor } from "./util/BEMProcessor";
88
import { setupImporting } from "./util/setupImporting";
99

1010
@suite("Resolves conflicts")

packages/@css-blocks/core/test/importing-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import * as path from "path";
66
import { Syntax } from "../src/BlockParser";
77
import {
88
Options,
9-
resolveConfiguration,
109
ResolvedConfiguration,
10+
resolveConfiguration,
1111
} from "../src/configuration";
1212
import {
13-
filesystemImporter,
1413
Importer,
1514
PathAliasImporter,
15+
filesystemImporter,
1616
} from "../src/importing";
1717

1818
const FIXTURES = path.resolve(__dirname, "..", "..", "test", "fixtures");

packages/@css-blocks/core/test/opticss-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
POSITION_UNKNOWN,
33
} from "@opticss/element-analysis";
44
import {
5-
isAndExpression,
65
Template,
6+
isAndExpression,
77
} from "@opticss/template-api";
88
import {
99
clean,
@@ -18,8 +18,8 @@ import { Analysis, Analyzer } from "../src/Analyzer";
1818
import { ElementAnalysis } from "../src/Analyzer";
1919
import { BlockCompiler } from "../src/BlockCompiler";
2020
import { AttrValue, Block, BlockClass } from "../src/BlockTree";
21-
import { StyleMapping } from "../src/TemplateRewriter/StyleMapping";
2221
import { resolveConfiguration } from "../src/configuration";
22+
import { StyleMapping } from "../src/TemplateRewriter/StyleMapping";
2323

2424
@suite("Optimization")
2525
export class TemplateAnalysisTests {

packages/@css-blocks/core/test/resolution-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { skip, suite, test } from "mocha-typescript";
33

44
import cssBlocks = require("./util/postcss-helper");
55

6-
import { BEMProcessor } from "./util/BEMProcessor";
76
import { assertError } from "./util/assertError";
7+
import { BEMProcessor } from "./util/BEMProcessor";
88
import { setupImporting } from "./util/setupImporting";
99

1010
@suite("Resolves conflicts")

0 commit comments

Comments
 (0)